]>
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 | |
5213506e | 642 | IEEE_FLAGS |
8b198102 FXC |
643 | IEEE_SUPPORT |
644 | IEEE_SUPPORT_FALSE | |
645 | IEEE_SUPPORT_TRUE | |
5213506e | 646 | FPU_HOST_HEADER |
1ec601bf FXC |
647 | LIBGFOR_BUILD_QUAD_FALSE |
648 | LIBGFOR_BUILD_QUAD_TRUE | |
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 |
5213506e RW |
660 | OTOOL64 |
661 | OTOOL | |
662 | LIPO | |
663 | NMEDIT | |
664 | DSYMUTIL | |
5213506e RW |
665 | OBJDUMP |
666 | LN_S | |
667 | NM | |
668 | ac_ct_DUMPBIN | |
669 | DUMPBIN | |
5213506e RW |
670 | LIBTOOL |
671 | RANLIB | |
672 | AR | |
673 | AS | |
66dbcf2d RO |
674 | HAVE_HWCAP_FALSE |
675 | HAVE_HWCAP_TRUE | |
676 | HWCAP_LDFLAGS | |
677 | LD | |
678 | FGREP | |
679 | SED | |
5213506e | 680 | SECTION_FLAGS |
ee95f928 BS |
681 | LIBGFOR_MINIMAL_FALSE |
682 | LIBGFOR_MINIMAL_TRUE | |
49ea7a0e RO |
683 | LIBGFOR_USE_SYMVER_SUN_FALSE |
684 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
685 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
686 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
5213506e RW |
687 | LIBGFOR_USE_SYMVER_FALSE |
688 | LIBGFOR_USE_SYMVER_TRUE | |
689 | AM_CFLAGS | |
690 | AM_FCFLAGS | |
21be0a5a JB |
691 | toolexeclibdir |
692 | toolexecdir | |
693 | EGREP | |
694 | GREP | |
695 | CPP | |
5213506e RW |
696 | am__fastdepCC_FALSE |
697 | am__fastdepCC_TRUE | |
698 | CCDEPMODE | |
c20fdb91 | 699 | am__nodep |
5213506e RW |
700 | AMDEPBACKSLASH |
701 | AMDEP_FALSE | |
702 | AMDEP_TRUE | |
703 | am__quote | |
704 | am__include | |
705 | DEPDIR | |
706 | OBJEXT | |
707 | EXEEXT | |
708 | ac_ct_CC | |
709 | CPPFLAGS | |
710 | LDFLAGS | |
711 | CFLAGS | |
712 | CC | |
5213506e RW |
713 | multi_basedir |
714 | MAINT | |
715 | MAINTAINER_MODE_FALSE | |
716 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
717 | AM_BACKSLASH |
718 | AM_DEFAULT_VERBOSITY | |
719 | AM_DEFAULT_V | |
720 | AM_V | |
5213506e RW |
721 | am__untar |
722 | am__tar | |
723 | AMTAR | |
724 | am__leading_dot | |
725 | SET_MAKE | |
726 | AWK | |
727 | mkdir_p | |
728 | MKDIR_P | |
729 | INSTALL_STRIP_PROGRAM | |
730 | STRIP | |
731 | install_sh | |
732 | MAKEINFO | |
733 | AUTOHEADER | |
734 | AUTOMAKE | |
735 | AUTOCONF | |
736 | ACLOCAL | |
737 | VERSION | |
738 | PACKAGE | |
739 | CYGPATH_W | |
740 | am__isrc | |
741 | INSTALL_DATA | |
742 | INSTALL_SCRIPT | |
743 | INSTALL_PROGRAM | |
60858d8a | 744 | target_noncanonical |
5213506e RW |
745 | target_os |
746 | target_vendor | |
747 | target_cpu | |
748 | target | |
749 | host_os | |
750 | host_vendor | |
751 | host_cpu | |
752 | host | |
753 | onestep | |
754 | onestep_FALSE | |
755 | onestep_TRUE | |
756 | target_subdir | |
757 | host_subdir | |
758 | build_subdir | |
759 | build_libsubdir | |
760 | build_os | |
761 | build_vendor | |
762 | build_cpu | |
763 | build | |
764 | target_alias | |
765 | host_alias | |
766 | build_alias | |
767 | LIBS | |
768 | ECHO_T | |
769 | ECHO_N | |
770 | ECHO_C | |
771 | DEFS | |
772 | mandir | |
773 | localedir | |
774 | libdir | |
775 | psdir | |
776 | pdfdir | |
777 | dvidir | |
778 | htmldir | |
779 | infodir | |
780 | docdir | |
781 | oldincludedir | |
782 | includedir | |
783 | localstatedir | |
784 | sharedstatedir | |
785 | sysconfdir | |
786 | datadir | |
787 | datarootdir | |
788 | libexecdir | |
789 | sbindir | |
790 | bindir | |
791 | program_transform_name | |
792 | prefix | |
793 | exec_prefix | |
794 | PACKAGE_URL | |
795 | PACKAGE_BUGREPORT | |
796 | PACKAGE_STRING | |
797 | PACKAGE_VERSION | |
798 | PACKAGE_TARNAME | |
799 | PACKAGE_NAME | |
800 | PATH_SEPARATOR | |
801 | SHELL' | |
6de9cd9a | 802 | ac_subst_files='' |
5213506e RW |
803 | ac_user_opts=' |
804 | enable_option_checking | |
805 | with_build_libsubdir | |
806 | enable_version_specific_runtime_libs | |
807 | enable_intermodule | |
22e05272 | 808 | enable_silent_rules |
5213506e RW |
809 | enable_maintainer_mode |
810 | enable_multilib | |
811 | enable_dependency_tracking | |
e8e66971 | 812 | with_toolexeclibdir |
26724ef9 | 813 | enable_cet |
bf382f5f | 814 | enable_symvers |
66dbcf2d | 815 | with_gnu_ld |
5213506e RW |
816 | enable_shared |
817 | enable_static | |
818 | with_pic | |
819 | enable_fast_install | |
5213506e RW |
820 | enable_libtool_lock |
821 | enable_largefile | |
87e6d9dc | 822 | enable_libquadmath_support |
3c36aa6b | 823 | with_gcc_major_version_only |
5213506e RW |
824 | ' |
825 | ac_precious_vars='build_alias | |
826 | host_alias | |
827 | target_alias | |
21be0a5a JB |
828 | CC |
829 | CFLAGS | |
830 | LDFLAGS | |
831 | LIBS | |
5213506e | 832 | CPPFLAGS |
21be0a5a | 833 | CPP |
5213506e | 834 | FC |
21be0a5a | 835 | FCFLAGS' |
5213506e | 836 | |
6de9cd9a DN |
837 | |
838 | # Initialize some variables set by options. | |
839 | ac_init_help= | |
840 | ac_init_version=false | |
5213506e RW |
841 | ac_unrecognized_opts= |
842 | ac_unrecognized_sep= | |
6de9cd9a DN |
843 | # The variables have the same names as the options, with |
844 | # dashes changed to underlines. | |
845 | cache_file=/dev/null | |
846 | exec_prefix=NONE | |
847 | no_create= | |
848 | no_recursion= | |
849 | prefix=NONE | |
850 | program_prefix=NONE | |
851 | program_suffix=NONE | |
852 | program_transform_name=s,x,x, | |
853 | silent= | |
854 | site= | |
855 | srcdir= | |
856 | verbose= | |
857 | x_includes=NONE | |
858 | x_libraries=NONE | |
859 | ||
860 | # Installation directory options. | |
861 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
862 | # and all the variables that are supposed to be based on exec_prefix | |
863 | # by default will actually change. | |
864 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 865 | # (The list follows the same order as the GNU Coding Standards.) |
6de9cd9a DN |
866 | bindir='${exec_prefix}/bin' |
867 | sbindir='${exec_prefix}/sbin' | |
868 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
869 | datarootdir='${prefix}/share' |
870 | datadir='${datarootdir}' | |
6de9cd9a DN |
871 | sysconfdir='${prefix}/etc' |
872 | sharedstatedir='${prefix}/com' | |
873 | localstatedir='${prefix}/var' | |
6de9cd9a DN |
874 | includedir='${prefix}/include' |
875 | oldincludedir='/usr/include' | |
5213506e RW |
876 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
877 | infodir='${datarootdir}/info' | |
878 | htmldir='${docdir}' | |
879 | dvidir='${docdir}' | |
880 | pdfdir='${docdir}' | |
881 | psdir='${docdir}' | |
882 | libdir='${exec_prefix}/lib' | |
883 | localedir='${datarootdir}/locale' | |
884 | mandir='${datarootdir}/man' | |
6de9cd9a DN |
885 | |
886 | ac_prev= | |
5213506e | 887 | ac_dashdash= |
6de9cd9a DN |
888 | for ac_option |
889 | do | |
890 | # If the previous option needs an argument, assign it. | |
891 | if test -n "$ac_prev"; then | |
5213506e | 892 | eval $ac_prev=\$ac_option |
6de9cd9a DN |
893 | ac_prev= |
894 | continue | |
895 | fi | |
896 | ||
5213506e | 897 | case $ac_option in |
22e05272 JM |
898 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
899 | *=) ac_optarg= ;; | |
900 | *) ac_optarg=yes ;; | |
5213506e | 901 | esac |
6de9cd9a DN |
902 | |
903 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
904 | ||
5213506e RW |
905 | case $ac_dashdash$ac_option in |
906 | --) | |
907 | ac_dashdash=yes ;; | |
6de9cd9a DN |
908 | |
909 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
910 | ac_prev=bindir ;; | |
911 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
912 | bindir=$ac_optarg ;; | |
913 | ||
914 | -build | --build | --buil | --bui | --bu) | |
915 | ac_prev=build_alias ;; | |
916 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
917 | build_alias=$ac_optarg ;; | |
918 | ||
919 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
920 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
921 | ac_prev=cache_file ;; | |
922 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
923 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
924 | cache_file=$ac_optarg ;; | |
925 | ||
926 | --config-cache | -C) | |
927 | cache_file=config.cache ;; | |
928 | ||
5213506e | 929 | -datadir | --datadir | --datadi | --datad) |
6de9cd9a | 930 | ac_prev=datadir ;; |
5213506e | 931 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
6de9cd9a DN |
932 | datadir=$ac_optarg ;; |
933 | ||
5213506e RW |
934 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
935 | | --dataroo | --dataro | --datar) | |
936 | ac_prev=datarootdir ;; | |
937 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
938 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
939 | datarootdir=$ac_optarg ;; | |
940 | ||
6de9cd9a | 941 | -disable-* | --disable-*) |
5213506e | 942 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6de9cd9a | 943 | # Reject names that are not valid shell variable names. |
5213506e | 944 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 945 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
946 | ac_useropt_orig=$ac_useropt |
947 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
948 | case $ac_user_opts in | |
949 | *" | |
950 | "enable_$ac_useropt" | |
951 | "*) ;; | |
952 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
953 | ac_unrecognized_sep=', ';; | |
954 | esac | |
955 | eval enable_$ac_useropt=no ;; | |
956 | ||
957 | -docdir | --docdir | --docdi | --doc | --do) | |
958 | ac_prev=docdir ;; | |
959 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
960 | docdir=$ac_optarg ;; | |
961 | ||
962 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
963 | ac_prev=dvidir ;; | |
964 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
965 | dvidir=$ac_optarg ;; | |
6de9cd9a DN |
966 | |
967 | -enable-* | --enable-*) | |
5213506e | 968 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6de9cd9a | 969 | # Reject names that are not valid shell variable names. |
5213506e | 970 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 971 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
972 | ac_useropt_orig=$ac_useropt |
973 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
974 | case $ac_user_opts in | |
975 | *" | |
976 | "enable_$ac_useropt" | |
977 | "*) ;; | |
978 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
979 | ac_unrecognized_sep=', ';; | |
38d24731 | 980 | esac |
5213506e | 981 | eval enable_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
982 | |
983 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
984 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
985 | | --exec | --exe | --ex) | |
986 | ac_prev=exec_prefix ;; | |
987 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
988 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
989 | | --exec=* | --exe=* | --ex=*) | |
990 | exec_prefix=$ac_optarg ;; | |
991 | ||
992 | -gas | --gas | --ga | --g) | |
993 | # Obsolete; use --with-gas. | |
994 | with_gas=yes ;; | |
995 | ||
996 | -help | --help | --hel | --he | -h) | |
997 | ac_init_help=long ;; | |
998 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
999 | ac_init_help=recursive ;; | |
1000 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1001 | ac_init_help=short ;; | |
1002 | ||
1003 | -host | --host | --hos | --ho) | |
1004 | ac_prev=host_alias ;; | |
1005 | -host=* | --host=* | --hos=* | --ho=*) | |
1006 | host_alias=$ac_optarg ;; | |
1007 | ||
5213506e RW |
1008 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1009 | ac_prev=htmldir ;; | |
1010 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1011 | | --ht=*) | |
1012 | htmldir=$ac_optarg ;; | |
1013 | ||
6de9cd9a DN |
1014 | -includedir | --includedir | --includedi | --included | --include \ |
1015 | | --includ | --inclu | --incl | --inc) | |
1016 | ac_prev=includedir ;; | |
1017 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1018 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1019 | includedir=$ac_optarg ;; | |
1020 | ||
1021 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1022 | ac_prev=infodir ;; | |
1023 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1024 | infodir=$ac_optarg ;; | |
1025 | ||
1026 | -libdir | --libdir | --libdi | --libd) | |
1027 | ac_prev=libdir ;; | |
1028 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1029 | libdir=$ac_optarg ;; | |
1030 | ||
1031 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1032 | | --libexe | --libex | --libe) | |
1033 | ac_prev=libexecdir ;; | |
1034 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1035 | | --libexe=* | --libex=* | --libe=*) | |
1036 | libexecdir=$ac_optarg ;; | |
1037 | ||
5213506e RW |
1038 | -localedir | --localedir | --localedi | --localed | --locale) |
1039 | ac_prev=localedir ;; | |
1040 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1041 | localedir=$ac_optarg ;; | |
1042 | ||
6de9cd9a | 1043 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1044 | | --localstate | --localstat | --localsta | --localst | --locals) |
6de9cd9a DN |
1045 | ac_prev=localstatedir ;; |
1046 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1047 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
6de9cd9a DN |
1048 | localstatedir=$ac_optarg ;; |
1049 | ||
1050 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1051 | ac_prev=mandir ;; | |
1052 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1053 | mandir=$ac_optarg ;; | |
1054 | ||
1055 | -nfp | --nfp | --nf) | |
1056 | # Obsolete; use --without-fp. | |
1057 | with_fp=no ;; | |
1058 | ||
1059 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1060 | | --no-cr | --no-c | -n) | |
1061 | no_create=yes ;; | |
1062 | ||
1063 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1064 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1065 | no_recursion=yes ;; | |
1066 | ||
1067 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1068 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1069 | | --oldin | --oldi | --old | --ol | --o) | |
1070 | ac_prev=oldincludedir ;; | |
1071 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1072 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1073 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1074 | oldincludedir=$ac_optarg ;; | |
1075 | ||
1076 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1077 | ac_prev=prefix ;; | |
1078 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1079 | prefix=$ac_optarg ;; | |
1080 | ||
1081 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1082 | | --program-pre | --program-pr | --program-p) | |
1083 | ac_prev=program_prefix ;; | |
1084 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1085 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1086 | program_prefix=$ac_optarg ;; | |
1087 | ||
1088 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1089 | | --program-suf | --program-su | --program-s) | |
1090 | ac_prev=program_suffix ;; | |
1091 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1092 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1093 | program_suffix=$ac_optarg ;; | |
1094 | ||
1095 | -program-transform-name | --program-transform-name \ | |
1096 | | --program-transform-nam | --program-transform-na \ | |
1097 | | --program-transform-n | --program-transform- \ | |
1098 | | --program-transform | --program-transfor \ | |
1099 | | --program-transfo | --program-transf \ | |
1100 | | --program-trans | --program-tran \ | |
1101 | | --progr-tra | --program-tr | --program-t) | |
1102 | ac_prev=program_transform_name ;; | |
1103 | -program-transform-name=* | --program-transform-name=* \ | |
1104 | | --program-transform-nam=* | --program-transform-na=* \ | |
1105 | | --program-transform-n=* | --program-transform-=* \ | |
1106 | | --program-transform=* | --program-transfor=* \ | |
1107 | | --program-transfo=* | --program-transf=* \ | |
1108 | | --program-trans=* | --program-tran=* \ | |
1109 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1110 | program_transform_name=$ac_optarg ;; | |
1111 | ||
5213506e RW |
1112 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1113 | ac_prev=pdfdir ;; | |
1114 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1115 | pdfdir=$ac_optarg ;; | |
1116 | ||
1117 | -psdir | --psdir | --psdi | --psd | --ps) | |
1118 | ac_prev=psdir ;; | |
1119 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1120 | psdir=$ac_optarg ;; | |
1121 | ||
6de9cd9a DN |
1122 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1123 | | -silent | --silent | --silen | --sile | --sil) | |
1124 | silent=yes ;; | |
1125 | ||
1126 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1127 | ac_prev=sbindir ;; | |
1128 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1129 | | --sbi=* | --sb=*) | |
1130 | sbindir=$ac_optarg ;; | |
1131 | ||
1132 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1133 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1134 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1135 | | --sha | --sh) | |
1136 | ac_prev=sharedstatedir ;; | |
1137 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1138 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1139 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1140 | | --sha=* | --sh=*) | |
1141 | sharedstatedir=$ac_optarg ;; | |
1142 | ||
1143 | -site | --site | --sit) | |
1144 | ac_prev=site ;; | |
1145 | -site=* | --site=* | --sit=*) | |
1146 | site=$ac_optarg ;; | |
1147 | ||
1148 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1149 | ac_prev=srcdir ;; | |
1150 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1151 | srcdir=$ac_optarg ;; | |
1152 | ||
1153 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1154 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1155 | ac_prev=sysconfdir ;; | |
1156 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1157 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1158 | sysconfdir=$ac_optarg ;; | |
1159 | ||
1160 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1161 | ac_prev=target_alias ;; | |
1162 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1163 | target_alias=$ac_optarg ;; | |
1164 | ||
1165 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1166 | verbose=yes ;; | |
1167 | ||
1168 | -version | --version | --versio | --versi | --vers | -V) | |
1169 | ac_init_version=: ;; | |
1170 | ||
1171 | -with-* | --with-*) | |
5213506e | 1172 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6de9cd9a | 1173 | # Reject names that are not valid shell variable names. |
5213506e | 1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1175 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1176 | ac_useropt_orig=$ac_useropt |
1177 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1178 | case $ac_user_opts in | |
1179 | *" | |
1180 | "with_$ac_useropt" | |
1181 | "*) ;; | |
1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1183 | ac_unrecognized_sep=', ';; | |
38d24731 | 1184 | esac |
5213506e | 1185 | eval with_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
1186 | |
1187 | -without-* | --without-*) | |
5213506e | 1188 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6de9cd9a | 1189 | # Reject names that are not valid shell variable names. |
5213506e | 1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1191 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1192 | ac_useropt_orig=$ac_useropt |
1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1194 | case $ac_user_opts in | |
1195 | *" | |
1196 | "with_$ac_useropt" | |
1197 | "*) ;; | |
1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1199 | ac_unrecognized_sep=', ';; | |
1200 | esac | |
1201 | eval with_$ac_useropt=no ;; | |
6de9cd9a DN |
1202 | |
1203 | --x) | |
1204 | # Obsolete; use --with-x. | |
1205 | with_x=yes ;; | |
1206 | ||
1207 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1208 | | --x-incl | --x-inc | --x-in | --x-i) | |
1209 | ac_prev=x_includes ;; | |
1210 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1211 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1212 | x_includes=$ac_optarg ;; | |
1213 | ||
1214 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1215 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1216 | ac_prev=x_libraries ;; | |
1217 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1218 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1219 | x_libraries=$ac_optarg ;; | |
1220 | ||
22e05272 JM |
1221 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1222 | Try \`$0 --help' for more information" | |
6de9cd9a DN |
1223 | ;; |
1224 | ||
1225 | *=*) | |
1226 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1227 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1228 | case $ac_envvar in #( |
1229 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1230 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1231 | esac |
1232 | eval $ac_envvar=\$ac_optarg | |
6de9cd9a DN |
1233 | export $ac_envvar ;; |
1234 | ||
1235 | *) | |
1236 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1237 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
6de9cd9a | 1238 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1239 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1240 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6de9cd9a DN |
1241 | ;; |
1242 | ||
1243 | esac | |
1244 | done | |
1245 | ||
1246 | if test -n "$ac_prev"; then | |
1247 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1248 | as_fn_error $? "missing argument to $ac_option" |
6de9cd9a DN |
1249 | fi |
1250 | ||
5213506e RW |
1251 | if test -n "$ac_unrecognized_opts"; then |
1252 | case $enable_option_checking in | |
1253 | no) ;; | |
22e05272 | 1254 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1255 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
38d24731 | 1256 | esac |
5213506e | 1257 | fi |
38d24731 | 1258 | |
5213506e RW |
1259 | # Check all directory arguments for consistency. |
1260 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1261 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1262 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e9085da5 | 1263 | libdir localedir mandir |
38d24731 | 1264 | do |
5213506e RW |
1265 | eval ac_val=\$$ac_var |
1266 | # Remove trailing slashes. | |
1267 | case $ac_val in | |
1268 | */ ) | |
1269 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1270 | eval $ac_var=\$ac_val;; | |
1271 | esac | |
1272 | # Be sure to have absolute directory names. | |
38d24731 | 1273 | case $ac_val in |
5213506e RW |
1274 | [\\/$]* | ?:[\\/]* ) continue;; |
1275 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6de9cd9a | 1276 | esac |
22e05272 | 1277 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6de9cd9a DN |
1278 | done |
1279 | ||
1280 | # There might be people who depend on the old broken behavior: `$host' | |
1281 | # used to hold the argument of --host etc. | |
1282 | # FIXME: To remove some day. | |
1283 | build=$build_alias | |
1284 | host=$host_alias | |
1285 | target=$target_alias | |
1286 | ||
1287 | # FIXME: To remove some day. | |
1288 | if test "x$host_alias" != x; then | |
1289 | if test "x$build_alias" = x; then | |
1290 | cross_compiling=maybe | |
6de9cd9a DN |
1291 | elif test "x$build_alias" != "x$host_alias"; then |
1292 | cross_compiling=yes | |
1293 | fi | |
1294 | fi | |
1295 | ||
1296 | ac_tool_prefix= | |
1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1298 | ||
1299 | test "$silent" = yes && exec 6>/dev/null | |
1300 | ||
1301 | ||
5213506e RW |
1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1303 | ac_ls_di=`ls -di .` && | |
1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1305 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1307 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1308 | |
1309 | ||
6de9cd9a DN |
1310 | # Find the source files, if location was not specified. |
1311 | if test -z "$srcdir"; then | |
1312 | ac_srcdir_defaulted=yes | |
5213506e RW |
1313 | # Try the directory containing this script, then the parent directory. |
1314 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1317 | X"$as_myself" : 'X\(//\)$' \| \ | |
1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1319 | $as_echo X"$as_myself" | | |
1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)[^/].*/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)$/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\).*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | s/.*/./; q'` | |
6de9cd9a | 1337 | srcdir=$ac_confdir |
5213506e | 1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
6de9cd9a DN |
1339 | srcdir=.. |
1340 | fi | |
1341 | else | |
1342 | ac_srcdir_defaulted=no | |
1343 | fi | |
5213506e RW |
1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1346 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1347 | fi |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1349 | ac_abs_confdir=`( | |
22e05272 | 1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1351 | pwd)` |
1352 | # When building in place, set srcdir=. | |
1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1354 | srcdir=. | |
1355 | fi | |
1356 | # Remove unnecessary trailing slashes from srcdir. | |
1357 | # Double slashes in file names in object file debugging info | |
1358 | # mess up M-x gdb in Emacs. | |
1359 | case $srcdir in | |
1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1361 | esac | |
1362 | for ac_var in $ac_precious_vars; do | |
1363 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1364 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1365 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1366 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1367 | done | |
6de9cd9a DN |
1368 | |
1369 | # | |
1370 | # Report the --help message. | |
1371 | # | |
1372 | if test "$ac_init_help" = "long"; then | |
1373 | # Omit some internal or obsolete options to make the list less imposing. | |
1374 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1375 | cat <<_ACEOF | |
0dce3ca1 | 1376 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
6de9cd9a DN |
1377 | |
1378 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1379 | ||
1380 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1381 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1382 | ||
1383 | Defaults for the options are specified in brackets. | |
1384 | ||
1385 | Configuration: | |
1386 | -h, --help display this help and exit | |
1387 | --help=short display options specific to this package | |
1388 | --help=recursive display the short help of all the included packages | |
1389 | -V, --version display version information and exit | |
22e05272 | 1390 | -q, --quiet, --silent do not print \`checking ...' messages |
6de9cd9a DN |
1391 | --cache-file=FILE cache test results in FILE [disabled] |
1392 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1393 | -n, --no-create do not create output files | |
1394 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1395 | ||
6de9cd9a DN |
1396 | Installation directories: |
1397 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1398 | [$ac_default_prefix] |
6de9cd9a | 1399 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1400 | [PREFIX] |
6de9cd9a DN |
1401 | |
1402 | By default, \`make install' will install all the files in | |
1403 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1404 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1405 | for instance \`--prefix=\$HOME'. | |
1406 | ||
1407 | For better control, use the options below. | |
1408 | ||
1409 | Fine tuning of the installation directories: | |
5213506e RW |
1410 | --bindir=DIR user executables [EPREFIX/bin] |
1411 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1412 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1413 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1414 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1415 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1416 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1417 | --includedir=DIR C header files [PREFIX/include] | |
1418 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1419 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1420 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1421 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1422 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1423 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1424 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1425 | --htmldir=DIR html documentation [DOCDIR] | |
1426 | --dvidir=DIR dvi documentation [DOCDIR] | |
1427 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1428 | --psdir=DIR ps documentation [DOCDIR] | |
6de9cd9a DN |
1429 | _ACEOF |
1430 | ||
1431 | cat <<\_ACEOF | |
1432 | ||
1433 | Program names: | |
1434 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1435 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1436 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1437 | ||
1438 | System types: | |
1439 | --build=BUILD configure for building on BUILD [guessed] | |
1440 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 1441 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
1442 | _ACEOF |
1443 | fi | |
1444 | ||
1445 | if test -n "$ac_init_help"; then | |
1446 | case $ac_init_help in | |
0dce3ca1 | 1447 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
6de9cd9a DN |
1448 | esac |
1449 | cat <<\_ACEOF | |
1450 | ||
1451 | Optional Features: | |
5213506e | 1452 | --disable-option-checking ignore unrecognized --enable/--with options |
6de9cd9a DN |
1453 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1454 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
87e6d9dc TB |
1455 | --enable-version-specific-runtime-libs |
1456 | specify that runtime libraries should be installed | |
1457 | in a compiler-specific directory | |
b808ac33 | 1458 | --enable-intermodule build the library in one step |
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 | |
a0e1df88 | 1469 | --enable-cet enable Intel CET in target libraries [default=no] |
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" | |
db9f46a9 | 2670 | as_fn_append ac_header_list " math.h" |
5213506e RW |
2671 | # Check that the precious variables saved in the cache have kept the same |
2672 | # value. | |
2673 | ac_cache_corrupted=false | |
2674 | for ac_var in $ac_precious_vars; do | |
2675 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2676 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2677 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2678 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2679 | case $ac_old_set,$ac_new_set in | |
2680 | set,) | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2682 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2683 | ac_cache_corrupted=: ;; | |
2684 | ,set) | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2686 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2687 | ac_cache_corrupted=: ;; | |
2688 | ,);; | |
2689 | *) | |
2690 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2691 | # differences in whitespace do not lead to failure. | |
2692 | ac_old_val_w=`echo x $ac_old_val` | |
2693 | ac_new_val_w=`echo x $ac_new_val` | |
2694 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2696 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2697 | ac_cache_corrupted=: | |
2698 | else | |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2700 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2701 | eval $ac_var=\$ac_old_val | |
2702 | fi | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2704 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2706 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2707 | fi;; | |
2708 | esac | |
2709 | # Pass precious variables to config.status. | |
2710 | if test "$ac_new_set" = set; then | |
2711 | case $ac_new_val in | |
2712 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2713 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2714 | esac | |
2715 | case " $ac_configure_args " in | |
2716 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2717 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2718 | esac | |
2719 | fi | |
2720 | done | |
2721 | if $ac_cache_corrupted; then | |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2725 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2726 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2727 | fi |
2728 | ## -------------------- ## | |
2729 | ## Main body of script. ## | |
2730 | ## -------------------- ## | |
2731 | ||
2732 | ac_ext=c | |
2733 | ac_cpp='$CPP $CPPFLAGS' | |
2734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2737 | ||
2738 | ||
2739 | ||
2740 | ||
2741 | ||
2742 | ac_config_headers="$ac_config_headers config.h" | |
2743 | ||
2744 | ac_aux_dir= | |
2745 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2746 | if test -f "$ac_dir/install-sh"; then |
2747 | ac_aux_dir=$ac_dir | |
2748 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2749 | break | |
2750 | elif test -f "$ac_dir/install.sh"; then | |
2751 | ac_aux_dir=$ac_dir | |
2752 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2753 | break | |
2754 | elif test -f "$ac_dir/shtool"; then | |
2755 | ac_aux_dir=$ac_dir | |
2756 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2757 | break | |
2758 | fi | |
5213506e RW |
2759 | done |
2760 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2761 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
5213506e RW |
2762 | fi |
2763 | ||
2764 | # These three variables are undocumented and unsupported, | |
2765 | # and are intended to be withdrawn in a future Autoconf release. | |
2766 | # They can cause serious problems if a builder's source tree is in a directory | |
2767 | # whose full name contains unusual characters. | |
2768 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2769 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2770 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2771 | ||
2772 | ||
2773 | # Make sure we can run config.sub. | |
2774 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2775 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2776 | |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2778 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2779 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2780 | $as_echo_n "(cached) " >&6 |
2781 | else | |
2782 | ac_build_alias=$build_alias | |
2783 | test "x$ac_build_alias" = x && | |
2784 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2785 | test "x$ac_build_alias" = x && | |
22e05272 | 2786 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2787 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2788 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2789 | |
2790 | fi | |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2792 | $as_echo "$ac_cv_build" >&6; } | |
2793 | case $ac_cv_build in | |
2794 | *-*-*) ;; | |
22e05272 | 2795 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2796 | esac |
2797 | build=$ac_cv_build | |
2798 | ac_save_IFS=$IFS; IFS='-' | |
2799 | set x $ac_cv_build | |
2800 | shift | |
2801 | build_cpu=$1 | |
2802 | build_vendor=$2 | |
2803 | shift; shift | |
2804 | # Remember, the first character of IFS is used to create $*, | |
2805 | # except with old shells: | |
2806 | build_os=$* | |
2807 | IFS=$ac_save_IFS | |
2808 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2809 | ||
2810 | ||
2811 | case ${build_alias} in | |
2812 | "") build_noncanonical=${build} ;; | |
2813 | *) build_noncanonical=${build_alias} ;; | |
2814 | esac | |
891c05b1 JJ |
2815 | |
2816 | case ${host_alias} in | |
2817 | "") host_noncanonical=${build_noncanonical} ;; | |
2818 | *) host_noncanonical=${host_alias} ;; | |
2819 | esac | |
2820 | ||
2821 | case ${target_alias} in | |
2822 | "") target_noncanonical=${host_noncanonical} ;; | |
2823 | *) target_noncanonical=${target_alias} ;; | |
2824 | esac | |
2825 | ||
57255173 PB |
2826 | |
2827 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2828 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2829 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2830 | # However, they still use the build modules, because the corresponding | |
2831 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2832 | # finishes. So: | |
2833 | # - build_subdir is where we find build modules, and never changes. | |
2834 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2835 | ||
2836 | # Prefix 'build-' so this never conflicts with target_subdir. | |
891c05b1 | 2837 | build_subdir="build-${build_noncanonical}" |
57255173 | 2838 | |
5213506e RW |
2839 | # Check whether --with-build-libsubdir was given. |
2840 | if test "${with_build_libsubdir+set}" = set; then : | |
2841 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
57255173 PB |
2842 | else |
2843 | build_libsubdir="$build_subdir" | |
5213506e RW |
2844 | fi |
2845 | ||
891c05b1 JJ |
2846 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2847 | if ( test $srcdir = . && test -d gcc ) \ | |
2848 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2849 | host_subdir="host-${host_noncanonical}" | |
2850 | else | |
2851 | host_subdir=. | |
2852 | fi | |
2853 | # No prefix. | |
2854 | target_subdir=${target_noncanonical} | |
2855 | ||
2856 | ||
2857 | # ------- | |
2858 | # Options | |
2859 | # ------- | |
2860 | ||
5213506e RW |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2862 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2863 | # Check whether --enable-version-specific-runtime-libs was given. | |
2864 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2865 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
891c05b1 JJ |
2866 | yes) version_specific_libs=yes ;; |
2867 | no) version_specific_libs=no ;; | |
22e05272 | 2868 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
891c05b1 JJ |
2869 | esac |
2870 | else | |
2871 | version_specific_libs=no | |
5213506e RW |
2872 | fi |
2873 | ||
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2875 | $as_echo "$version_specific_libs" >&6; } | |
891c05b1 | 2876 | |
b808ac33 | 2877 | # Build with intermodule optimisations |
5213506e RW |
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2879 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2880 | # Check whether --enable-intermodule was given. | |
2881 | if test "${enable_intermodule+set}" = set; then : | |
2882 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
b808ac33 BF |
2883 | yes) onestep="-onestep";; |
2884 | *) onestep="";; | |
2885 | esac | |
2886 | else | |
2887 | onestep="" | |
5213506e | 2888 | fi |
b808ac33 | 2889 | |
5213506e RW |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2891 | $as_echo "$enable_intermodule" >&6; } | |
2892 | if test x$onestep = x-onestep; then | |
b808ac33 BF |
2893 | onestep_TRUE= |
2894 | onestep_FALSE='#' | |
2895 | else | |
2896 | onestep_TRUE='#' | |
2897 | onestep_FALSE= | |
2898 | fi | |
2899 | ||
2900 | ||
891c05b1 JJ |
2901 | |
2902 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2903 | # | |
2904 | # You will slowly go insane if you do not grok the following fact: when | |
2905 | # building this library, the top-level /target/ becomes the library's /host/. | |
2906 | # | |
2907 | # configure then causes --target to default to --host, exactly like any | |
2908 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2909 | # always be the same. This makes sense both for native and cross compilers | |
2910 | # just think about it for a little while. :-) | |
2911 | # | |
2912 | # Also, if this library is being configured as part of a cross compiler, the | |
2913 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2914 | # | |
2915 | # Do not delete or change the following two lines. For why, see | |
2916 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
5213506e RW |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2918 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2919 | if ${ac_cv_host+:} false; then : |
5213506e RW |
2920 | $as_echo_n "(cached) " >&6 |
2921 | else | |
2922 | if test "x$host_alias" = x; then | |
2923 | ac_cv_host=$ac_cv_build | |
2924 | else | |
2925 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2926 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e RW |
2927 | fi |
2928 | ||
2929 | fi | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2931 | $as_echo "$ac_cv_host" >&6; } | |
2932 | case $ac_cv_host in | |
2933 | *-*-*) ;; | |
22e05272 | 2934 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2935 | esac |
96b8a615 | 2936 | host=$ac_cv_host |
5213506e RW |
2937 | ac_save_IFS=$IFS; IFS='-' |
2938 | set x $ac_cv_host | |
2939 | shift | |
2940 | host_cpu=$1 | |
2941 | host_vendor=$2 | |
2942 | shift; shift | |
2943 | # Remember, the first character of IFS is used to create $*, | |
2944 | # except with old shells: | |
2945 | host_os=$* | |
2946 | IFS=$ac_save_IFS | |
2947 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
38d24731 RW |
2948 | |
2949 | ||
5213506e RW |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2951 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2952 | if ${ac_cv_target+:} false; then : |
5213506e | 2953 | $as_echo_n "(cached) " >&6 |
96b8a615 | 2954 | else |
5213506e RW |
2955 | if test "x$target_alias" = x; then |
2956 | ac_cv_target=$ac_cv_host | |
2957 | else | |
2958 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2959 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2960 | fi |
96b8a615 AJ |
2961 | |
2962 | fi | |
5213506e RW |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2964 | $as_echo "$ac_cv_target" >&6; } | |
2965 | case $ac_cv_target in | |
2966 | *-*-*) ;; | |
22e05272 | 2967 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2968 | esac |
96b8a615 | 2969 | target=$ac_cv_target |
5213506e RW |
2970 | ac_save_IFS=$IFS; IFS='-' |
2971 | set x $ac_cv_target | |
2972 | shift | |
2973 | target_cpu=$1 | |
2974 | target_vendor=$2 | |
2975 | shift; shift | |
2976 | # Remember, the first character of IFS is used to create $*, | |
2977 | # except with old shells: | |
2978 | target_os=$* | |
2979 | IFS=$ac_save_IFS | |
2980 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
96b8a615 AJ |
2981 | |
2982 | ||
2983 | # The aliases save the names the user supplied, while $host etc. | |
2984 | # will get canonicalized. | |
2985 | test -n "$target_alias" && | |
2986 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2987 | NONENONEs,x,x, && | |
2988 | program_prefix=${target_alias}- | |
5213506e | 2989 | |
60858d8a TB |
2990 | |
2991 | ||
2992 | ||
96b8a615 AJ |
2993 | target_alias=${target_alias-$host_alias} |
2994 | ||
60858d8a | 2995 | |
96b8a615 AJ |
2996 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
2997 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
679c0f9a | 2998 | # 1.9.6: minimum required version |
96b8a615 AJ |
2999 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
3000 | # of other PACKAGE_* variables will, however, and there's nothing | |
3001 | # we can do about that; they come from AC_INIT). | |
3002 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
3003 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 3004 | # no-dist: we don't want 'dist' and related rules. |
96b8a615 AJ |
3005 | # -Wall: turns on all automake warnings... |
3006 | # -Wno-portability: ...except this one, since GNU make is required. | |
22e05272 | 3007 | am__api_version='1.15' |
5213506e | 3008 | |
6de9cd9a DN |
3009 | # Find a good install program. We prefer a C program (faster), |
3010 | # so one script is as good as another. But avoid the broken or | |
3011 | # incompatible versions: | |
3012 | # SysV /etc/install, /usr/sbin/install | |
3013 | # SunOS /usr/etc/install | |
3014 | # IRIX /sbin/install | |
3015 | # AIX /bin/install | |
3016 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3017 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3018 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3019 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3020 | # OS/2's system install, which has a completely different semantic | |
3021 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 3022 | # Reject install programs that cannot install multiple files. |
5213506e RW |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3024 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6de9cd9a | 3025 | if test -z "$INSTALL"; then |
22e05272 | 3026 | if ${ac_cv_path_install+:} false; then : |
5213506e | 3027 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3028 | else |
3029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3030 | for as_dir in $PATH | |
3031 | do | |
3032 | IFS=$as_save_IFS | |
3033 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3034 | # Account for people who put trailing slashes in PATH elements. |
3035 | case $as_dir/ in #(( | |
3036 | ./ | .// | /[cC]/* | \ | |
6de9cd9a | 3037 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 3038 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
6de9cd9a DN |
3039 | /usr/ucb/* ) ;; |
3040 | *) | |
3041 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3042 | # Don't use installbsd from OSF since it installs stuff as root | |
3043 | # by default. | |
3044 | for ac_prog in ginstall scoinst install; do | |
3045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3046 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6de9cd9a DN |
3047 | if test $ac_prog = install && |
3048 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3049 | # AIX install. It has an incompatible calling convention. | |
3050 | : | |
3051 | elif test $ac_prog = install && | |
3052 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3053 | # program-specific install script used by HP pwplus--don't use. | |
3054 | : | |
3055 | else | |
38d24731 RW |
3056 | rm -rf conftest.one conftest.two conftest.dir |
3057 | echo one > conftest.one | |
3058 | echo two > conftest.two | |
3059 | mkdir conftest.dir | |
3060 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3061 | test -s conftest.one && test -s conftest.two && | |
3062 | test -s conftest.dir/conftest.one && | |
3063 | test -s conftest.dir/conftest.two | |
3064 | then | |
3065 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3066 | break 3 | |
3067 | fi | |
6de9cd9a DN |
3068 | fi |
3069 | fi | |
3070 | done | |
3071 | done | |
3072 | ;; | |
3073 | esac | |
5213506e RW |
3074 | |
3075 | done | |
3076 | IFS=$as_save_IFS | |
6de9cd9a | 3077 | |
38d24731 | 3078 | rm -rf conftest.one conftest.two conftest.dir |
6de9cd9a DN |
3079 | |
3080 | fi | |
3081 | if test "${ac_cv_path_install+set}" = set; then | |
3082 | INSTALL=$ac_cv_path_install | |
3083 | else | |
f489fba1 FXC |
3084 | # As a last resort, use the slow shell script. Don't cache a |
3085 | # value for INSTALL within a source directory, because that will | |
6de9cd9a | 3086 | # break other packages using the cache if that directory is |
f489fba1 | 3087 | # removed, or if the value is a relative name. |
6de9cd9a DN |
3088 | INSTALL=$ac_install_sh |
3089 | fi | |
3090 | fi | |
5213506e RW |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3092 | $as_echo "$INSTALL" >&6; } | |
6de9cd9a DN |
3093 | |
3094 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3095 | # It thinks the first close brace ends the variable substitution. | |
3096 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3097 | ||
3098 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3099 | ||
3100 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3101 | ||
5213506e RW |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3103 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
3104 | # Reject unsafe characters in $srcdir or the absolute working directory |
3105 | # name. Accept space and tab only in the latter. | |
3106 | am_lf=' | |
3107 | ' | |
3108 | case `pwd` in | |
3109 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 3110 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
3111 | esac |
3112 | case $srcdir in | |
3113 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 3114 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
3115 | esac |
3116 | ||
22e05272 | 3117 | # Do 'set' in a subshell so we don't clobber the current shell's |
6de9cd9a DN |
3118 | # arguments. Must try -L first in case configure is actually a |
3119 | # symlink; some systems play weird games with the mod time of symlinks | |
3120 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3121 | # directory). | |
3122 | if ( | |
22e05272 JM |
3123 | am_has_slept=no |
3124 | for am_try in 1 2; do | |
3125 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3126 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3127 | if test "$*" = "X"; then | |
3128 | # -L didn't work. | |
3129 | set X `ls -t "$srcdir/configure" conftest.file` | |
3130 | fi | |
3131 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3132 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3133 | ||
3134 | # If neither matched, then we have a broken ls. This can happen | |
3135 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3136 | # broken ls alias from the environment. This has actually | |
3137 | # happened. Such a system could not be considered "sane". | |
3138 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3139 | alias in your environment" "$LINENO" 5 | |
3140 | fi | |
3141 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3142 | break | |
3143 | fi | |
3144 | # Just in case. | |
3145 | sleep 1 | |
3146 | am_has_slept=yes | |
3147 | done | |
6de9cd9a DN |
3148 | test "$2" = conftest.file |
3149 | ) | |
3150 | then | |
3151 | # Ok. | |
3152 | : | |
3153 | else | |
22e05272 | 3154 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3155 | Check your system clock" "$LINENO" 5 |
6de9cd9a | 3156 | fi |
5213506e RW |
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3158 | $as_echo "yes" >&6; } | |
22e05272 JM |
3159 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3160 | # generated files are strictly newer. | |
3161 | am_sleep_pid= | |
3162 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3163 | ( sleep 1 ) & | |
3164 | am_sleep_pid=$! | |
3165 | fi | |
3166 | ||
3167 | rm -f conftest.file | |
3168 | ||
6de9cd9a | 3169 | test "$program_prefix" != NONE && |
5213506e | 3170 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
6de9cd9a DN |
3171 | # Use a double $ so make ignores it. |
3172 | test "$program_suffix" != NONE && | |
5213506e RW |
3173 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3174 | # Double any \ or $. | |
6de9cd9a | 3175 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3176 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3177 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
6de9cd9a | 3178 | |
22e05272 JM |
3179 | # Expand $ac_aux_dir to an absolute path. |
3180 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6de9cd9a | 3181 | |
5213506e RW |
3182 | if test x"${MISSING+set}" != xset; then |
3183 | case $am_aux_dir in | |
3184 | *\ * | *\ *) | |
3185 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3186 | *) | |
3187 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3188 | esac | |
3189 | fi | |
6de9cd9a | 3190 | # Use eval to expand $SHELL |
22e05272 JM |
3191 | if eval "$MISSING --is-lightweight"; then |
3192 | am_missing_run="$MISSING " | |
6de9cd9a DN |
3193 | else |
3194 | am_missing_run= | |
22e05272 JM |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3196 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
6de9cd9a DN |
3197 | fi |
3198 | ||
22e05272 | 3199 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3200 | case $am_aux_dir in |
3201 | *\ * | *\ *) | |
3202 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3203 | *) | |
3204 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3205 | esac | |
3206 | fi | |
3207 | ||
22e05272 JM |
3208 | # Installed binaries are usually stripped using 'strip' when the user |
3209 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3210 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3211 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3212 | if test "$cross_compiling" != no; then |
3213 | if test -n "$ac_tool_prefix"; then | |
3214 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3215 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3217 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3218 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 3219 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3220 | else |
5213506e RW |
3221 | if test -n "$STRIP"; then |
3222 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6de9cd9a DN |
3223 | else |
3224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3225 | for as_dir in $PATH | |
3226 | do | |
3227 | IFS=$as_save_IFS | |
3228 | test -z "$as_dir" && as_dir=. | |
5213506e | 3229 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3231 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6de9cd9a DN |
3233 | break 2 |
3234 | fi | |
3235 | done | |
5213506e RW |
3236 | done |
3237 | IFS=$as_save_IFS | |
6de9cd9a DN |
3238 | |
3239 | fi | |
3240 | fi | |
5213506e RW |
3241 | STRIP=$ac_cv_prog_STRIP |
3242 | if test -n "$STRIP"; then | |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3244 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 3245 | else |
5213506e RW |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3247 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3248 | fi |
3249 | ||
6de9cd9a | 3250 | |
5213506e RW |
3251 | fi |
3252 | if test -z "$ac_cv_prog_STRIP"; then | |
3253 | ac_ct_STRIP=$STRIP | |
3254 | # Extract the first word of "strip", so it can be a program name with args. | |
3255 | set dummy strip; ac_word=$2 | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3257 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3258 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 3259 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3260 | else |
5213506e RW |
3261 | if test -n "$ac_ct_STRIP"; then |
3262 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38d24731 | 3263 | else |
5213506e RW |
3264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3265 | for as_dir in $PATH | |
3266 | do | |
3267 | IFS=$as_save_IFS | |
3268 | test -z "$as_dir" && as_dir=. | |
3269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3271 | ac_cv_prog_ac_ct_STRIP="strip" |
3272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3273 | break 2 | |
3274 | fi | |
3275 | done | |
3276 | done | |
3277 | IFS=$as_save_IFS | |
3278 | ||
38d24731 | 3279 | fi |
6de9cd9a | 3280 | fi |
5213506e RW |
3281 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3282 | if test -n "$ac_ct_STRIP"; then | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3284 | $as_echo "$ac_ct_STRIP" >&6; } | |
3285 | else | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3287 | $as_echo "no" >&6; } | |
3288 | fi | |
3289 | ||
3290 | if test "x$ac_ct_STRIP" = x; then | |
3291 | STRIP=":" | |
3292 | else | |
3293 | case $cross_compiling:$ac_tool_warned in | |
3294 | yes:) | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3296 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3297 | ac_tool_warned=yes ;; | |
3298 | esac | |
3299 | STRIP=$ac_ct_STRIP | |
3300 | fi | |
3301 | else | |
3302 | STRIP="$ac_cv_prog_STRIP" | |
3303 | fi | |
3304 | ||
3305 | fi | |
3306 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3307 | ||
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3309 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3310 | if test -z "$MKDIR_P"; then | |
22e05272 | 3311 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3312 | $as_echo_n "(cached) " >&6 |
3313 | else | |
3314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3315 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3316 | do | |
3317 | IFS=$as_save_IFS | |
3318 | test -z "$as_dir" && as_dir=. | |
3319 | for ac_prog in mkdir gmkdir; do | |
3320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3321 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3322 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3323 | 'mkdir (GNU coreutils) '* | \ | |
3324 | 'mkdir (coreutils) '* | \ | |
3325 | 'mkdir (fileutils) '4.1*) | |
3326 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3327 | break 3;; | |
3328 | esac | |
3329 | done | |
3330 | done | |
3331 | done | |
3332 | IFS=$as_save_IFS | |
3333 | ||
3334 | fi | |
3335 | ||
22e05272 | 3336 | test -d ./--version && rmdir ./--version |
5213506e RW |
3337 | if test "${ac_cv_path_mkdir+set}" = set; then |
3338 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3339 | else | |
3340 | # As a last resort, use the slow shell script. Don't cache a | |
3341 | # value for MKDIR_P within a source directory, because that will | |
3342 | # break other packages using the cache if that directory is | |
3343 | # removed, or if the value is a relative name. | |
5213506e RW |
3344 | MKDIR_P="$ac_install_sh -d" |
3345 | fi | |
3346 | fi | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3348 | $as_echo "$MKDIR_P" >&6; } | |
3349 | ||
5213506e RW |
3350 | for ac_prog in gawk mawk nawk awk |
3351 | do | |
3352 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3353 | set dummy $ac_prog; ac_word=$2 | |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3355 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3356 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e RW |
3357 | $as_echo_n "(cached) " >&6 |
3358 | else | |
3359 | if test -n "$AWK"; then | |
3360 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3361 | else | |
3362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3363 | for as_dir in $PATH | |
3364 | do | |
3365 | IFS=$as_save_IFS | |
3366 | test -z "$as_dir" && as_dir=. | |
3367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3369 | ac_cv_prog_AWK="$ac_prog" |
3370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3371 | break 2 | |
3372 | fi | |
3373 | done | |
3374 | done | |
3375 | IFS=$as_save_IFS | |
3376 | ||
3377 | fi | |
3378 | fi | |
3379 | AWK=$ac_cv_prog_AWK | |
3380 | if test -n "$AWK"; then | |
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3382 | $as_echo "$AWK" >&6; } | |
3383 | else | |
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3385 | $as_echo "no" >&6; } | |
3386 | fi | |
3387 | ||
3388 | ||
3389 | test -n "$AWK" && break | |
3390 | done | |
3391 | ||
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3393 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3394 | set x ${MAKE-make} | |
3395 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3396 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e RW |
3397 | $as_echo_n "(cached) " >&6 |
3398 | else | |
3399 | cat >conftest.make <<\_ACEOF | |
3400 | SHELL = /bin/sh | |
3401 | all: | |
3402 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3403 | _ACEOF | |
22e05272 | 3404 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3405 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3406 | *@@@%%%=?*=@@@%%%*) | |
3407 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3408 | *) | |
3409 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3410 | esac | |
3411 | rm -f conftest.make | |
3412 | fi | |
3413 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3415 | $as_echo "yes" >&6; } | |
6de9cd9a DN |
3416 | SET_MAKE= |
3417 | else | |
5213506e RW |
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3419 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3420 | SET_MAKE="MAKE=${MAKE-make}" |
3421 | fi | |
3422 | ||
3423 | rm -rf .tst 2>/dev/null | |
3424 | mkdir .tst 2>/dev/null | |
3425 | if test -d .tst; then | |
3426 | am__leading_dot=. | |
3427 | else | |
3428 | am__leading_dot=_ | |
3429 | fi | |
3430 | rmdir .tst 2>/dev/null | |
3431 | ||
22e05272 JM |
3432 | # Check whether --enable-silent-rules was given. |
3433 | if test "${enable_silent_rules+set}" = set; then : | |
3434 | enableval=$enable_silent_rules; | |
3435 | fi | |
3436 | ||
3437 | case $enable_silent_rules in # ((( | |
3438 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3439 | no) AM_DEFAULT_VERBOSITY=1;; | |
3440 | *) AM_DEFAULT_VERBOSITY=1;; | |
3441 | esac | |
3442 | am_make=${MAKE-make} | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3444 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3445 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3446 | $as_echo_n "(cached) " >&6 | |
3447 | else | |
3448 | if $as_echo 'TRUE=$(BAR$(V)) | |
3449 | BAR0=false | |
3450 | BAR1=true | |
3451 | V=1 | |
3452 | am__doit: | |
3453 | @$(TRUE) | |
3454 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3455 | am_cv_make_support_nested_variables=yes | |
3456 | else | |
3457 | am_cv_make_support_nested_variables=no | |
3458 | fi | |
3459 | fi | |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3461 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3462 | if test $am_cv_make_support_nested_variables = yes; then | |
3463 | AM_V='$(V)' | |
3464 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3465 | else | |
3466 | AM_V=$AM_DEFAULT_VERBOSITY | |
3467 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3468 | fi | |
3469 | AM_BACKSLASH='\' | |
3470 | ||
5213506e RW |
3471 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3472 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3473 | # is not polluted with repeated "-I." | |
3474 | am__isrc=' -I$(srcdir)' | |
3475 | # test to see if srcdir already configured | |
3476 | if test -f $srcdir/config.status; then | |
22e05272 | 3477 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3478 | fi |
6de9cd9a DN |
3479 | fi |
3480 | ||
3481 | # test whether we have cygpath | |
3482 | if test -z "$CYGPATH_W"; then | |
3483 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3484 | CYGPATH_W='cygpath -w' | |
3485 | else | |
3486 | CYGPATH_W=echo | |
3487 | fi | |
3488 | fi | |
3489 | ||
3490 | ||
3491 | # Define the identity of the package. | |
3492 | PACKAGE='libgfortran' | |
0dce3ca1 | 3493 | VERSION='0.3' |
6de9cd9a DN |
3494 | |
3495 | ||
6de9cd9a DN |
3496 | # Some tools Automake needs. |
3497 | ||
3498 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3499 | ||
3500 | ||
3501 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3502 | ||
3503 | ||
3504 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3505 | ||
3506 | ||
3507 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3508 | ||
3509 | ||
3510 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3511 | ||
22e05272 JM |
3512 | # For better backward compatibility. To be removed once Automake 1.9.x |
3513 | # dies out for good. For more background, see: | |
3514 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3515 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3516 | mkdir_p='$(MKDIR_P)' | |
3517 | ||
3518 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3519 | # system "awk" is bad on some platforms. | |
c20fdb91 JB |
3520 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3521 | # in the wild :-( We should find a proper way to deprecate it ... | |
3522 | AMTAR='$${TAR-tar}' | |
d49ec2d1 | 3523 | |
22e05272 JM |
3524 | |
3525 | # We'll loop over all known methods to create a tar archive until one works. | |
3526 | _am_tools='gnutar pax cpio none' | |
3527 | ||
c20fdb91 | 3528 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d49ec2d1 KC |
3529 | |
3530 | ||
6de9cd9a DN |
3531 | |
3532 | ||
3533 | ||
6de9cd9a | 3534 | |
22e05272 JM |
3535 | # POSIX will say in a future version that running "rm -f" with no argument |
3536 | # is OK; and we want to be able to make that assumption in our Makefile | |
3537 | # recipes. So use an aggressive probe to check that the usage we want is | |
3538 | # actually supported "in the wild" to an acceptable degree. | |
3539 | # See automake bug#10828. | |
3540 | # To make any issue more visible, cause the running configure to be aborted | |
3541 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3542 | # user can still override this though. | |
3543 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3544 | cat >&2 <<'END' | |
3545 | Oops! | |
3546 | ||
3547 | Your 'rm' program seems unable to run without file operands specified | |
3548 | on the command line, even when the '-f' option is present. This is contrary | |
3549 | to the behaviour of most rm programs out there, and not conforming with | |
3550 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3551 | ||
3552 | Please tell bug-automake@gnu.org about your system, including the value | |
3553 | of your $PATH and any error possibly output before this message. This | |
3554 | can help us improve future automake versions. | |
3555 | ||
3556 | END | |
3557 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3558 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3559 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3560 | echo >&2 | |
3561 | else | |
3562 | cat >&2 <<'END' | |
3563 | Aborting the configuration process, to ensure you take notice of the issue. | |
3564 | ||
3565 | You can download and install GNU coreutils to get an 'rm' implementation | |
3566 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3567 | ||
3568 | If you want to complete the configuration process using your problematic | |
3569 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3570 | to "yes", and re-run configure. | |
3571 | ||
3572 | END | |
3573 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3574 | fi | |
3575 | fi | |
3576 | ||
3577 | ||
5213506e RW |
3578 | |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3580 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3581 | # Check whether --enable-maintainer-mode was given. | |
3582 | if test "${enable_maintainer_mode+set}" = set; then : | |
3583 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
6de9cd9a DN |
3584 | else |
3585 | USE_MAINTAINER_MODE=no | |
5213506e | 3586 | fi |
6de9cd9a | 3587 | |
5213506e RW |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3589 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3590 | if test $USE_MAINTAINER_MODE = yes; then | |
6de9cd9a DN |
3591 | MAINTAINER_MODE_TRUE= |
3592 | MAINTAINER_MODE_FALSE='#' | |
3593 | else | |
3594 | MAINTAINER_MODE_TRUE='#' | |
3595 | MAINTAINER_MODE_FALSE= | |
3596 | fi | |
3597 | ||
3598 | MAINT=$MAINTAINER_MODE_TRUE | |
3599 | ||
3600 | ||
96b8a615 | 3601 | # Default to --enable-multilib |
5213506e RW |
3602 | # Check whether --enable-multilib was given. |
3603 | if test "${enable_multilib+set}" = set; then : | |
3604 | enableval=$enable_multilib; case "$enableval" in | |
96b8a615 AJ |
3605 | yes) multilib=yes ;; |
3606 | no) multilib=no ;; | |
22e05272 | 3607 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
96b8a615 AJ |
3608 | esac |
3609 | else | |
3610 | multilib=yes | |
5213506e RW |
3611 | fi |
3612 | ||
96b8a615 AJ |
3613 | |
3614 | # We may get other options which we leave undocumented: | |
3615 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3616 | # See config-ml.in if you want the gory details. | |
3617 | ||
3618 | if test "$srcdir" = "."; then | |
3619 | if test "$with_target_subdir" != "."; then | |
3620 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3621 | else | |
3622 | multi_basedir="$srcdir/$with_multisrctop.." | |
3623 | fi | |
3624 | else | |
3625 | multi_basedir="$srcdir/.." | |
3626 | fi | |
3627 | ||
3628 | ||
9f9ef303 FXC |
3629 | # Even if the default multilib is not a cross compilation, |
3630 | # it may be that some of the other multilibs are. | |
3631 | if test $cross_compiling = no && test $multilib = yes \ | |
3632 | && test "x${with_multisubdir}" != x ; then | |
3633 | cross_compiling=maybe | |
3634 | fi | |
3635 | ||
5213506e | 3636 | ac_config_commands="$ac_config_commands default-1" |
96b8a615 AJ |
3637 | |
3638 | ||
3639 | # Handy for debugging: | |
3640 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3641 | ||
3642 | # Are we being configured with some form of cross compiler? | |
3643 | # NB: We don't actually need to know this just now, but when, say, a test | |
3644 | # suite is included, we'll have to know. | |
3645 | if test "$build" != "$host"; then | |
3646 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 3647 | |
96b8a615 AJ |
3648 | else |
3649 | LIBGFOR_IS_NATIVE=true | |
3650 | fi | |
3651 | ||
21be0a5a | 3652 | DEPDIR="${am__leading_dot}deps" |
96b8a615 | 3653 | |
21be0a5a | 3654 | ac_config_commands="$ac_config_commands depfiles" |
96b8a615 | 3655 | |
6de9cd9a | 3656 | |
21be0a5a JB |
3657 | am_make=${MAKE-make} |
3658 | cat > confinc << 'END' | |
3659 | am__doit: | |
3660 | @echo this is the am__doit target | |
3661 | .PHONY: am__doit | |
3662 | END | |
3663 | # If we don't find an include directive, just comment out the code. | |
3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3665 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3666 | am__include="#" | |
3667 | am__quote= | |
3668 | _am_result=none | |
3669 | # First try GNU make style include. | |
3670 | echo "include confinc" > confmf | |
22e05272 | 3671 | # Ignore all kinds of additional output from 'make'. |
21be0a5a JB |
3672 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3673 | *the\ am__doit\ target*) | |
3674 | am__include=include | |
3675 | am__quote= | |
3676 | _am_result=GNU | |
3677 | ;; | |
3678 | esac | |
3679 | # Now try BSD make style include. | |
3680 | if test "$am__include" = "#"; then | |
3681 | echo '.include "confinc"' > confmf | |
3682 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3683 | *the\ am__doit\ target*) | |
3684 | am__include=.include | |
3685 | am__quote="\"" | |
3686 | _am_result=BSD | |
3687 | ;; | |
3688 | esac | |
3689 | fi | |
1ec601bf | 3690 | |
6de9cd9a | 3691 | |
21be0a5a JB |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3693 | $as_echo "$_am_result" >&6; } | |
3694 | rm -f confinc confmf | |
3695 | ||
3696 | # Check whether --enable-dependency-tracking was given. | |
3697 | if test "${enable_dependency_tracking+set}" = set; then : | |
3698 | enableval=$enable_dependency_tracking; | |
3699 | fi | |
3700 | ||
3701 | if test "x$enable_dependency_tracking" != xno; then | |
3702 | am_depcomp="$ac_aux_dir/depcomp" | |
3703 | AMDEPBACKSLASH='\' | |
c20fdb91 | 3704 | am__nodep='_no' |
21be0a5a JB |
3705 | fi |
3706 | if test "x$enable_dependency_tracking" != xno; then | |
3707 | AMDEP_TRUE= | |
3708 | AMDEP_FALSE='#' | |
3709 | else | |
3710 | AMDEP_TRUE='#' | |
3711 | AMDEP_FALSE= | |
3712 | fi | |
6de9cd9a DN |
3713 | |
3714 | ||
6de9cd9a DN |
3715 | ac_ext=c |
3716 | ac_cpp='$CPP $CPPFLAGS' | |
3717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3720 | if test -n "$ac_tool_prefix"; then | |
3721 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3722 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3724 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3725 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3726 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3727 | else |
3728 | if test -n "$CC"; then | |
3729 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3730 | else | |
3731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3732 | for as_dir in $PATH | |
3733 | do | |
3734 | IFS=$as_save_IFS | |
3735 | test -z "$as_dir" && as_dir=. | |
5213506e | 3736 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3738 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3740 | break 2 |
3741 | fi | |
3742 | done | |
5213506e RW |
3743 | done |
3744 | IFS=$as_save_IFS | |
6de9cd9a DN |
3745 | |
3746 | fi | |
3747 | fi | |
3748 | CC=$ac_cv_prog_CC | |
3749 | if test -n "$CC"; then | |
5213506e RW |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3751 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3752 | else |
5213506e RW |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3754 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3755 | fi |
3756 | ||
5213506e | 3757 | |
6de9cd9a DN |
3758 | fi |
3759 | if test -z "$ac_cv_prog_CC"; then | |
3760 | ac_ct_CC=$CC | |
3761 | # Extract the first word of "gcc", so it can be a program name with args. | |
3762 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3764 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3765 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3766 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3767 | else |
3768 | if test -n "$ac_ct_CC"; then | |
3769 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3770 | else | |
3771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3772 | for as_dir in $PATH | |
3773 | do | |
3774 | IFS=$as_save_IFS | |
3775 | test -z "$as_dir" && as_dir=. | |
5213506e | 3776 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3777 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3778 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3780 | break 2 |
3781 | fi | |
3782 | done | |
5213506e RW |
3783 | done |
3784 | IFS=$as_save_IFS | |
6de9cd9a DN |
3785 | |
3786 | fi | |
3787 | fi | |
3788 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3789 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3791 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3792 | else |
5213506e RW |
3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3794 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3795 | fi |
3796 | ||
5213506e RW |
3797 | if test "x$ac_ct_CC" = x; then |
3798 | CC="" | |
3799 | else | |
3800 | case $cross_compiling:$ac_tool_warned in | |
3801 | yes:) | |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3803 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3804 | ac_tool_warned=yes ;; | |
3805 | esac | |
3806 | CC=$ac_ct_CC | |
3807 | fi | |
6de9cd9a DN |
3808 | else |
3809 | CC="$ac_cv_prog_CC" | |
3810 | fi | |
3811 | ||
3812 | if test -z "$CC"; then | |
5213506e RW |
3813 | if test -n "$ac_tool_prefix"; then |
3814 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6de9cd9a | 3815 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3817 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3818 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3819 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3820 | else |
3821 | if test -n "$CC"; then | |
3822 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3823 | else | |
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3825 | for as_dir in $PATH | |
3826 | do | |
3827 | IFS=$as_save_IFS | |
3828 | test -z "$as_dir" && as_dir=. | |
5213506e | 3829 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3831 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3833 | break 2 |
3834 | fi | |
3835 | done | |
5213506e RW |
3836 | done |
3837 | IFS=$as_save_IFS | |
6de9cd9a DN |
3838 | |
3839 | fi | |
3840 | fi | |
3841 | CC=$ac_cv_prog_CC | |
3842 | if test -n "$CC"; then | |
5213506e RW |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3844 | $as_echo "$CC" >&6; } | |
38d24731 | 3845 | else |
5213506e RW |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3847 | $as_echo "no" >&6; } | |
38d24731 RW |
3848 | fi |
3849 | ||
38d24731 | 3850 | |
5213506e | 3851 | fi |
6de9cd9a DN |
3852 | fi |
3853 | if test -z "$CC"; then | |
3854 | # Extract the first word of "cc", so it can be a program name with args. | |
3855 | set dummy cc; ac_word=$2 | |
5213506e RW |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3857 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3858 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3859 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3860 | else |
3861 | if test -n "$CC"; then | |
3862 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3863 | else | |
3864 | ac_prog_rejected=no | |
3865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3866 | for as_dir in $PATH | |
3867 | do | |
3868 | IFS=$as_save_IFS | |
3869 | test -z "$as_dir" && as_dir=. | |
5213506e | 3870 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3871 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a DN |
3872 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3873 | ac_prog_rejected=yes | |
3874 | continue | |
3875 | fi | |
3876 | ac_cv_prog_CC="cc" | |
5213506e | 3877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3878 | break 2 |
3879 | fi | |
3880 | done | |
5213506e RW |
3881 | done |
3882 | IFS=$as_save_IFS | |
6de9cd9a DN |
3883 | |
3884 | if test $ac_prog_rejected = yes; then | |
3885 | # We found a bogon in the path, so make sure we never use it. | |
3886 | set dummy $ac_cv_prog_CC | |
3887 | shift | |
3888 | if test $# != 0; then | |
3889 | # We chose a different compiler from the bogus one. | |
3890 | # However, it has the same basename, so the bogon will be chosen | |
3891 | # first if we set CC to just the basename; use the full file name. | |
3892 | shift | |
3893 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3894 | fi | |
3895 | fi | |
3896 | fi | |
3897 | fi | |
3898 | CC=$ac_cv_prog_CC | |
3899 | if test -n "$CC"; then | |
5213506e RW |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3901 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3902 | else |
5213506e RW |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3904 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3905 | fi |
3906 | ||
5213506e | 3907 | |
6de9cd9a DN |
3908 | fi |
3909 | if test -z "$CC"; then | |
3910 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3911 | for ac_prog in cl.exe |
6de9cd9a DN |
3912 | do |
3913 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3914 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3916 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3917 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3918 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3919 | else |
3920 | if test -n "$CC"; then | |
3921 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3922 | else | |
3923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3924 | for as_dir in $PATH | |
3925 | do | |
3926 | IFS=$as_save_IFS | |
3927 | test -z "$as_dir" && as_dir=. | |
5213506e | 3928 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3930 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3932 | break 2 |
3933 | fi | |
3934 | done | |
5213506e RW |
3935 | done |
3936 | IFS=$as_save_IFS | |
6de9cd9a DN |
3937 | |
3938 | fi | |
3939 | fi | |
3940 | CC=$ac_cv_prog_CC | |
3941 | if test -n "$CC"; then | |
5213506e RW |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3943 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3944 | else |
5213506e RW |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3946 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3947 | fi |
3948 | ||
5213506e | 3949 | |
6de9cd9a DN |
3950 | test -n "$CC" && break |
3951 | done | |
3952 | fi | |
3953 | if test -z "$CC"; then | |
3954 | ac_ct_CC=$CC | |
5213506e | 3955 | for ac_prog in cl.exe |
6de9cd9a DN |
3956 | do |
3957 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3958 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3960 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3961 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3962 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3963 | else |
3964 | if test -n "$ac_ct_CC"; then | |
3965 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3966 | else | |
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3968 | for as_dir in $PATH | |
3969 | do | |
3970 | IFS=$as_save_IFS | |
3971 | test -z "$as_dir" && as_dir=. | |
5213506e | 3972 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3974 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3976 | break 2 |
3977 | fi | |
3978 | done | |
5213506e RW |
3979 | done |
3980 | IFS=$as_save_IFS | |
6de9cd9a DN |
3981 | |
3982 | fi | |
3983 | fi | |
3984 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3985 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3987 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3988 | else |
5213506e RW |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3990 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3991 | fi |
3992 | ||
5213506e | 3993 | |
6de9cd9a DN |
3994 | test -n "$ac_ct_CC" && break |
3995 | done | |
3996 | ||
5213506e RW |
3997 | if test "x$ac_ct_CC" = x; then |
3998 | CC="" | |
3999 | else | |
4000 | case $cross_compiling:$ac_tool_warned in | |
4001 | yes:) | |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4003 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4004 | ac_tool_warned=yes ;; | |
4005 | esac | |
4006 | CC=$ac_ct_CC | |
4007 | fi | |
6de9cd9a DN |
4008 | fi |
4009 | ||
4010 | fi | |
4011 | ||
4012 | ||
5213506e RW |
4013 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4014 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4015 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4016 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a DN |
4017 | |
4018 | # Provide some information about the compiler. | |
5213506e RW |
4019 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4020 | set X $ac_compile | |
4021 | ac_compiler=$2 | |
4022 | for ac_option in --version -v -V -qversion; do | |
4023 | { { ac_try="$ac_compiler $ac_option >&5" | |
4024 | case "(($ac_try" in | |
4025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4026 | *) ac_try_echo=$ac_try;; | |
4027 | esac | |
4028 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4029 | $as_echo "$ac_try_echo"; } >&5 | |
4030 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6de9cd9a | 4031 | ac_status=$? |
5213506e RW |
4032 | if test -s conftest.err; then |
4033 | sed '10a\ | |
4034 | ... rest of stderr output deleted ... | |
4035 | 10q' conftest.err >conftest.er1 | |
4036 | cat conftest.er1 >&5 | |
5213506e | 4037 | fi |
22e05272 | 4038 | rm -f conftest.er1 conftest.err |
5213506e RW |
4039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4040 | test $ac_status = 0; } | |
4041 | done | |
6de9cd9a | 4042 | |
5213506e | 4043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4044 | /* end confdefs.h. */ |
02ce382c | 4045 | #include <stdio.h> |
f02d008e JD |
4046 | int |
4047 | main () | |
4048 | { | |
02ce382c | 4049 | printf ("hello world\n"); |
f02d008e JD |
4050 | ; |
4051 | return 0; | |
4052 | } | |
4053 | _ACEOF | |
4054 | # FIXME: Cleanup? | |
5213506e | 4055 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
f02d008e JD |
4056 | (eval $ac_link) 2>&5 |
4057 | ac_status=$? | |
5213506e RW |
4058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4059 | test $ac_status = 0; }; then : | |
f02d008e JD |
4060 | gcc_no_link=no |
4061 | else | |
4062 | gcc_no_link=yes | |
4063 | fi | |
f02d008e JD |
4064 | if test x$gcc_no_link = xyes; then |
4065 | # Setting cross_compile will disable run tests; it will | |
4066 | # also disable AC_CHECK_FILE but that's generally | |
4067 | # correct if we can't link. | |
4068 | cross_compiling=yes | |
4069 | EXEEXT= | |
4070 | else | |
5213506e | 4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
4072 | /* end confdefs.h. */ |
4073 | ||
6de9cd9a DN |
4074 | int |
4075 | main () | |
4076 | { | |
4077 | ||
4078 | ; | |
4079 | return 0; | |
4080 | } | |
4081 | _ACEOF | |
4082 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4083 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6de9cd9a DN |
4084 | # Try to create an executable without -o first, disregard a.out. |
4085 | # It will help us diagnose broken compilers, and finding out an intuition | |
4086 | # of exeext. | |
22e05272 JM |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4088 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4089 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4090 | ||
4091 | # The possible output files: | |
4092 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4093 | ||
4094 | ac_rmfiles= | |
4095 | for ac_file in $ac_files | |
4096 | do | |
4097 | case $ac_file in | |
4098 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4099 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4100 | esac | |
4101 | done | |
4102 | rm -f $ac_rmfiles | |
4103 | ||
4104 | if { { ac_try="$ac_link_default" | |
4105 | case "(($ac_try" in | |
4106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4107 | *) ac_try_echo=$ac_try;; | |
4108 | esac | |
4109 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4110 | $as_echo "$ac_try_echo"; } >&5 | |
4111 | (eval "$ac_link_default") 2>&5 | |
4112 | ac_status=$? | |
4113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4114 | test $ac_status = 0; }; then : | |
4115 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4116 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4117 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4118 | # so that the user can short-circuit this test for compilers unknown to | |
4119 | # Autoconf. | |
4120 | for ac_file in $ac_files '' | |
6de9cd9a DN |
4121 | do |
4122 | test -f "$ac_file" || continue | |
4123 | case $ac_file in | |
5213506e | 4124 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
6de9cd9a DN |
4125 | ;; |
4126 | [ab].out ) | |
4127 | # We found the default executable, but exeext='' is most | |
4128 | # certainly right. | |
4129 | break;; | |
4130 | *.* ) | |
5213506e RW |
4131 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4132 | then :; else | |
4133 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4134 | fi | |
4135 | # We set ac_cv_exeext here because the later test for it is not | |
4136 | # safe: cross compilers may not add the suffix if given an `-o' | |
4137 | # argument, so we may need to know it at that point already. | |
4138 | # Even if this section looks crufty: it has the advantage of | |
4139 | # actually working. | |
6de9cd9a DN |
4140 | break;; |
4141 | * ) | |
4142 | break;; | |
4143 | esac | |
4144 | done | |
5213506e RW |
4145 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4146 | ||
6de9cd9a | 4147 | else |
5213506e RW |
4148 | ac_file='' |
4149 | fi | |
5213506e | 4150 | if test -z "$ac_file"; then : |
22e05272 JM |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4152 | $as_echo "no" >&6; } | |
4153 | $as_echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
4154 | sed 's/^/| /' conftest.$ac_ext >&5 |
4155 | ||
5213506e RW |
4156 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4158 | as_fn_error 77 "C compiler cannot create executables |
4159 | See \`config.log' for more details" "$LINENO" 5; } | |
4160 | else | |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4162 | $as_echo "yes" >&6; } | |
6de9cd9a | 4163 | fi |
22e05272 JM |
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4165 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4167 | $as_echo "$ac_file" >&6; } | |
6de9cd9a | 4168 | ac_exeext=$ac_cv_exeext |
6de9cd9a | 4169 | |
22e05272 | 4170 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6de9cd9a | 4171 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4173 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4174 | if { { ac_try="$ac_link" | |
4175 | case "(($ac_try" in | |
4176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4177 | *) ac_try_echo=$ac_try;; | |
4178 | esac | |
4179 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4180 | $as_echo "$ac_try_echo"; } >&5 | |
4181 | (eval "$ac_link") 2>&5 | |
6de9cd9a | 4182 | ac_status=$? |
5213506e RW |
4183 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4184 | test $ac_status = 0; }; then : | |
6de9cd9a DN |
4185 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4186 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4187 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4188 | # `rm'. | |
4189 | for ac_file in conftest.exe conftest conftest.*; do | |
4190 | test -f "$ac_file" || continue | |
4191 | case $ac_file in | |
5213506e | 4192 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
6de9cd9a | 4193 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
6de9cd9a DN |
4194 | break;; |
4195 | * ) break;; | |
4196 | esac | |
4197 | done | |
4198 | else | |
5213506e RW |
4199 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4200 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4201 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4202 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a | 4203 | fi |
22e05272 | 4204 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4206 | $as_echo "$ac_cv_exeext" >&6; } | |
6de9cd9a DN |
4207 | |
4208 | rm -f conftest.$ac_ext | |
4209 | EXEEXT=$ac_cv_exeext | |
4210 | ac_exeext=$EXEEXT | |
22e05272 JM |
4211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4212 | /* end confdefs.h. */ | |
4213 | #include <stdio.h> | |
4214 | int | |
4215 | main () | |
4216 | { | |
4217 | FILE *f = fopen ("conftest.out", "w"); | |
4218 | return ferror (f) || fclose (f) != 0; | |
4219 | ||
4220 | ; | |
4221 | return 0; | |
4222 | } | |
4223 | _ACEOF | |
4224 | ac_clean_files="$ac_clean_files conftest.out" | |
4225 | # Check that the compiler produces executables we can run. If not, either | |
4226 | # the compiler is broken, or we cross compile. | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4228 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4229 | if test "$cross_compiling" != yes; then | |
4230 | { { ac_try="$ac_link" | |
4231 | case "(($ac_try" in | |
4232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4233 | *) ac_try_echo=$ac_try;; | |
4234 | esac | |
4235 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4236 | $as_echo "$ac_try_echo"; } >&5 | |
4237 | (eval "$ac_link") 2>&5 | |
4238 | ac_status=$? | |
4239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4240 | test $ac_status = 0; } | |
4241 | if { ac_try='./conftest$ac_cv_exeext' | |
4242 | { { case "(($ac_try" in | |
4243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4244 | *) ac_try_echo=$ac_try;; | |
4245 | esac | |
4246 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4247 | $as_echo "$ac_try_echo"; } >&5 | |
4248 | (eval "$ac_try") 2>&5 | |
4249 | ac_status=$? | |
4250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4251 | test $ac_status = 0; }; }; then | |
4252 | cross_compiling=no | |
4253 | else | |
4254 | if test "$cross_compiling" = maybe; then | |
4255 | cross_compiling=yes | |
4256 | else | |
4257 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4258 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4259 | as_fn_error $? "cannot run C compiled programs. | |
4260 | If you meant to cross compile, use \`--host'. | |
4261 | See \`config.log' for more details" "$LINENO" 5; } | |
4262 | fi | |
4263 | fi | |
4264 | fi | |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4266 | $as_echo "$cross_compiling" >&6; } | |
4267 | ||
4268 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4269 | ac_clean_files=$ac_clean_files_save | |
f02d008e | 4270 | fi |
5213506e RW |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4272 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4273 | if ${ac_cv_objext+:} false; then : |
5213506e | 4274 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4275 | else |
5213506e | 4276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a DN |
4277 | /* end confdefs.h. */ |
4278 | ||
4279 | int | |
4280 | main () | |
4281 | { | |
4282 | ||
4283 | ; | |
4284 | return 0; | |
4285 | } | |
4286 | _ACEOF | |
4287 | rm -f conftest.o conftest.obj | |
5213506e RW |
4288 | if { { ac_try="$ac_compile" |
4289 | case "(($ac_try" in | |
4290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4291 | *) ac_try_echo=$ac_try;; | |
4292 | esac | |
4293 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4294 | $as_echo "$ac_try_echo"; } >&5 | |
4295 | (eval "$ac_compile") 2>&5 | |
4296 | ac_status=$? | |
4297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4298 | test $ac_status = 0; }; then : | |
4299 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4300 | test -f "$ac_file" || continue; | |
6de9cd9a | 4301 | case $ac_file in |
5213506e | 4302 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
6de9cd9a DN |
4303 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4304 | break;; | |
4305 | esac | |
4306 | done | |
4307 | else | |
5213506e | 4308 | $as_echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
4309 | sed 's/^/| /' conftest.$ac_ext >&5 |
4310 | ||
5213506e RW |
4311 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4313 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4314 | See \`config.log' for more details" "$LINENO" 5; } | |
78511f8b | 4315 | fi |
78511f8b JB |
4316 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4317 | fi | |
5213506e RW |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4319 | $as_echo "$ac_cv_objext" >&6; } | |
78511f8b JB |
4320 | OBJEXT=$ac_cv_objext |
4321 | ac_objext=$OBJEXT | |
5213506e RW |
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4323 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4324 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4325 | $as_echo_n "(cached) " >&6 |
78511f8b | 4326 | else |
5213506e | 4327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4328 | /* end confdefs.h. */ |
6de9cd9a | 4329 | |
6de9cd9a DN |
4330 | int |
4331 | main () | |
4332 | { | |
78511f8b JB |
4333 | #ifndef __GNUC__ |
4334 | choke me | |
4335 | #endif | |
c0e7e2bf | 4336 | |
6de9cd9a DN |
4337 | ; |
4338 | return 0; | |
4339 | } | |
4340 | _ACEOF | |
5213506e | 4341 | if ac_fn_c_try_compile "$LINENO"; then : |
78511f8b | 4342 | ac_compiler_gnu=yes |
6de9cd9a | 4343 | else |
5213506e | 4344 | ac_compiler_gnu=no |
78511f8b | 4345 | fi |
5213506e | 4346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
78511f8b JB |
4347 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4348 | ||
4349 | fi | |
5213506e RW |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4351 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4352 | if test $ac_compiler_gnu = yes; then | |
4353 | GCC=yes | |
4354 | else | |
4355 | GCC= | |
4356 | fi | |
78511f8b JB |
4357 | ac_test_CFLAGS=${CFLAGS+set} |
4358 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4360 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4361 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e | 4362 | $as_echo_n "(cached) " >&6 |
78511f8b | 4363 | else |
5213506e RW |
4364 | ac_save_c_werror_flag=$ac_c_werror_flag |
4365 | ac_c_werror_flag=yes | |
4366 | ac_cv_prog_cc_g=no | |
4367 | CFLAGS="-g" | |
4368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6de9cd9a | 4369 | /* end confdefs.h. */ |
c0e7e2bf | 4370 | |
6de9cd9a DN |
4371 | int |
4372 | main () | |
4373 | { | |
c0e7e2bf | 4374 | |
6de9cd9a DN |
4375 | ; |
4376 | return 0; | |
4377 | } | |
4378 | _ACEOF | |
5213506e | 4379 | if ac_fn_c_try_compile "$LINENO"; then : |
f489fba1 FXC |
4380 | ac_cv_prog_cc_g=yes |
4381 | else | |
5213506e RW |
4382 | CFLAGS="" |
4383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4384 | /* end confdefs.h. */ | |
4385 | ||
4386 | int | |
4387 | main () | |
4388 | { | |
4389 | ||
4390 | ; | |
4391 | return 0; | |
4392 | } | |
4393 | _ACEOF | |
4394 | if ac_fn_c_try_compile "$LINENO"; then : | |
4395 | ||
4396 | else | |
4397 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4398 | CFLAGS="-g" | |
4399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4400 | /* end confdefs.h. */ | |
f489fba1 | 4401 | |
5213506e RW |
4402 | int |
4403 | main () | |
4404 | { | |
4405 | ||
4406 | ; | |
4407 | return 0; | |
4408 | } | |
4409 | _ACEOF | |
4410 | if ac_fn_c_try_compile "$LINENO"; then : | |
4411 | ac_cv_prog_cc_g=yes | |
4412 | fi | |
4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
38d24731 | 4414 | fi |
5213506e | 4415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
38d24731 | 4416 | fi |
5213506e RW |
4417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4418 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4419 | fi | |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4421 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
38d24731 RW |
4422 | if test "$ac_test_CFLAGS" = set; then |
4423 | CFLAGS=$ac_save_CFLAGS | |
4424 | elif test $ac_cv_prog_cc_g = yes; then | |
4425 | if test "$GCC" = yes; then | |
4426 | CFLAGS="-g -O2" | |
4427 | else | |
4428 | CFLAGS="-g" | |
4429 | fi | |
4430 | else | |
4431 | if test "$GCC" = yes; then | |
4432 | CFLAGS="-O2" | |
4433 | else | |
4434 | CFLAGS= | |
4435 | fi | |
4436 | fi | |
5213506e RW |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4438 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4439 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4440 | $as_echo_n "(cached) " >&6 |
38d24731 | 4441 | else |
5213506e | 4442 | ac_cv_prog_cc_c89=no |
38d24731 | 4443 | ac_save_CC=$CC |
5213506e | 4444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f489fba1 | 4445 | /* end confdefs.h. */ |
38d24731 RW |
4446 | #include <stdarg.h> |
4447 | #include <stdio.h> | |
22e05272 | 4448 | struct stat; |
38d24731 RW |
4449 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4450 | struct buf { int x; }; | |
4451 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4452 | static char *e (p, i) | |
4453 | char **p; | |
4454 | int i; | |
4455 | { | |
4456 | return p[i]; | |
4457 | } | |
4458 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4459 | { | |
4460 | char *s; | |
4461 | va_list v; | |
4462 | va_start (v,p); | |
4463 | s = g (p, va_arg (v,int)); | |
4464 | va_end (v); | |
4465 | return s; | |
4466 | } | |
f489fba1 | 4467 | |
38d24731 RW |
4468 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4469 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4470 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4471 | as 'x'. The following induces an error, until -std is added to get |
38d24731 RW |
4472 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4473 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4474 | that's true only with -std. */ |
38d24731 RW |
4475 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4476 | ||
5213506e RW |
4477 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4478 | inside strings and character constants. */ | |
4479 | #define FOO(x) 'x' | |
4480 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4481 | ||
38d24731 RW |
4482 | int test (int i, double x); |
4483 | struct s1 {int (*f) (int a);}; | |
4484 | struct s2 {int (*f) (double a);}; | |
4485 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4486 | int argc; | |
4487 | char **argv; | |
f489fba1 FXC |
4488 | int |
4489 | main () | |
4490 | { | |
38d24731 | 4491 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
f489fba1 FXC |
4492 | ; |
4493 | return 0; | |
4494 | } | |
4495 | _ACEOF | |
5213506e RW |
4496 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4497 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
38d24731 RW |
4498 | do |
4499 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4500 | if ac_fn_c_try_compile "$LINENO"; then : |
4501 | ac_cv_prog_cc_c89=$ac_arg | |
38d24731 | 4502 | fi |
5213506e RW |
4503 | rm -f core conftest.err conftest.$ac_objext |
4504 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
38d24731 | 4505 | done |
5213506e | 4506 | rm -f conftest.$ac_ext |
38d24731 RW |
4507 | CC=$ac_save_CC |
4508 | ||
4509 | fi | |
5213506e RW |
4510 | # AC_CACHE_VAL |
4511 | case "x$ac_cv_prog_cc_c89" in | |
4512 | x) | |
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4514 | $as_echo "none needed" >&6; } ;; | |
4515 | xno) | |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4517 | $as_echo "unsupported" >&6; } ;; | |
38d24731 | 4518 | *) |
5213506e RW |
4519 | CC="$CC $ac_cv_prog_cc_c89" |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4521 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
38d24731 | 4522 | esac |
5213506e | 4523 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6de9cd9a DN |
4524 | |
4525 | fi | |
6de9cd9a | 4526 | |
6de9cd9a DN |
4527 | ac_ext=c |
4528 | ac_cpp='$CPP $CPPFLAGS' | |
4529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
679c0f9a | 4532 | |
22e05272 JM |
4533 | ac_ext=c |
4534 | ac_cpp='$CPP $CPPFLAGS' | |
4535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4539 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4540 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4541 | $as_echo_n "(cached) " >&6 | |
4542 | else | |
4543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4544 | /* end confdefs.h. */ | |
4545 | ||
4546 | int | |
4547 | main () | |
4548 | { | |
4549 | ||
4550 | ; | |
4551 | return 0; | |
4552 | } | |
4553 | _ACEOF | |
4554 | # Make sure it works both with $CC and with simple cc. | |
4555 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4556 | # compilers refuse to overwrite an existing .o file with -o, | |
4557 | # though they will create one. | |
4558 | am_cv_prog_cc_c_o=yes | |
4559 | for am_i in 1 2; do | |
4560 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4561 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4562 | ac_status=$? | |
4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4564 | (exit $ac_status); } \ | |
4565 | && test -f conftest2.$ac_objext; then | |
4566 | : OK | |
4567 | else | |
4568 | am_cv_prog_cc_c_o=no | |
4569 | break | |
4570 | fi | |
4571 | done | |
4572 | rm -f core conftest* | |
4573 | unset am_i | |
4574 | fi | |
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4576 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4577 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4578 | # Losing compiler, so override with the script. | |
4579 | # FIXME: It is wrong to rewrite CC. | |
4580 | # But if we don't then we get into trouble of one sort or another. | |
4581 | # A longer-term fix would be to have automake use am__CC in this case, | |
4582 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4583 | CC="$am_aux_dir/compile $CC" | |
4584 | fi | |
4585 | ac_ext=c | |
4586 | ac_cpp='$CPP $CPPFLAGS' | |
4587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4590 | ||
4591 | ||
679c0f9a TT |
4592 | depcc="$CC" am_compiler_list= |
4593 | ||
5213506e RW |
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4595 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4596 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4597 | $as_echo_n "(cached) " >&6 |
679c0f9a TT |
4598 | else |
4599 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4600 | # We make a subdir and do the tests there. Otherwise we can end up | |
4601 | # making bogus files that we don't know about and never remove. For | |
4602 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4603 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4604 | # in D". | |
c20fdb91 | 4605 | rm -rf conftest.dir |
679c0f9a TT |
4606 | mkdir conftest.dir |
4607 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4608 | # using a relative directory. | |
4609 | cp "$am_depcomp" conftest.dir | |
4610 | cd conftest.dir | |
4611 | # We will build objects and dependencies in a subdirectory because | |
4612 | # it helps to detect inapplicable dependency modes. For instance | |
4613 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4614 | # side effect of compilation, but ICC will put the dependencies in | |
4615 | # the current directory while Tru64 will put them in the object | |
4616 | # directory. | |
4617 | mkdir sub | |
4618 | ||
4619 | am_cv_CC_dependencies_compiler_type=none | |
4620 | if test "$am_compiler_list" = ""; then | |
4621 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4622 | fi | |
5213506e RW |
4623 | am__universal=false |
4624 | case " $depcc " in #( | |
4625 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4626 | esac | |
4627 | ||
679c0f9a TT |
4628 | for depmode in $am_compiler_list; do |
4629 | # Setup a source with many dependencies, because some compilers | |
4630 | # like to wrap large dependency lists on column 80 (with \), and | |
4631 | # we should not choose a depcomp mode which is confused by this. | |
4632 | # | |
4633 | # We need to recreate these files for each test, as the compiler may | |
4634 | # overwrite some of them when testing with obscure command lines. | |
4635 | # This happens at least with the AIX C compiler. | |
4636 | : > sub/conftest.c | |
4637 | for i in 1 2 3 4 5 6; do | |
4638 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4639 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4640 | # Solaris 10 /bin/sh. | |
4641 | echo '/* dummy */' > sub/conftst$i.h | |
679c0f9a TT |
4642 | done |
4643 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4644 | ||
22e05272 | 4645 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4646 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4647 | # handle '-M -o', and we need to detect this. Also, some Intel |
4648 | # versions had trouble with output in subdirs. | |
5213506e RW |
4649 | am__obj=sub/conftest.${OBJEXT-o} |
4650 | am__minus_obj="-o $am__obj" | |
679c0f9a | 4651 | case $depmode in |
5213506e RW |
4652 | gcc) |
4653 | # This depmode causes a compiler race in universal mode. | |
4654 | test "$am__universal" = false || continue | |
4655 | ;; | |
679c0f9a | 4656 | nosideeffect) |
22e05272 JM |
4657 | # After this tag, mechanisms are not by side-effect, so they'll |
4658 | # only be used when explicitly requested. | |
679c0f9a TT |
4659 | if test "x$enable_dependency_tracking" = xyes; then |
4660 | continue | |
4661 | else | |
4662 | break | |
4663 | fi | |
4664 | ;; | |
c20fdb91 | 4665 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4666 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4667 | # not run yet. These depmodes are late enough in the game, and |
4668 | # so weak that their functioning should not be impacted. | |
4669 | am__obj=conftest.${OBJEXT-o} | |
4670 | am__minus_obj= | |
4671 | ;; | |
679c0f9a TT |
4672 | none) break ;; |
4673 | esac | |
679c0f9a | 4674 | if depmode=$depmode \ |
5213506e | 4675 | source=sub/conftest.c object=$am__obj \ |
679c0f9a | 4676 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4677 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
679c0f9a | 4678 | >/dev/null 2>conftest.err && |
5213506e | 4679 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a | 4680 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4681 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a TT |
4682 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4683 | # icc doesn't choke on unknown options, it will just issue warnings | |
4684 | # or remarks (even with -Werror). So we grep stderr for any message | |
4685 | # that says an option was ignored or not supported. | |
4686 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4687 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4688 | # The diagnosis changed in icc 8.0: | |
4689 | # icc: Command line remark: option '-MP' not supported | |
4690 | if (grep 'ignoring option' conftest.err || | |
4691 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4692 | am_cv_CC_dependencies_compiler_type=$depmode | |
4693 | break | |
4694 | fi | |
4695 | fi | |
4696 | done | |
4697 | ||
4698 | cd .. | |
4699 | rm -rf conftest.dir | |
4700 | else | |
4701 | am_cv_CC_dependencies_compiler_type=none | |
4702 | fi | |
4703 | ||
4704 | fi | |
5213506e RW |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4706 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
679c0f9a TT |
4707 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4708 | ||
5213506e | 4709 | if |
679c0f9a TT |
4710 | test "x$enable_dependency_tracking" != xno \ |
4711 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4712 | am__fastdepCC_TRUE= | |
4713 | am__fastdepCC_FALSE='#' | |
4714 | else | |
4715 | am__fastdepCC_TRUE='#' | |
4716 | am__fastdepCC_FALSE= | |
4717 | fi | |
4718 | ||
6de9cd9a | 4719 | |
6de9cd9a | 4720 | |
21be0a5a JB |
4721 | ac_ext=c |
4722 | ac_cpp='$CPP $CPPFLAGS' | |
4723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4727 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4728 | # On Suns, sometimes $CPP names a directory. | |
4729 | if test -n "$CPP" && test -d "$CPP"; then | |
4730 | CPP= | |
6de9cd9a | 4731 | fi |
21be0a5a | 4732 | if test -z "$CPP"; then |
22e05272 | 4733 | if ${ac_cv_prog_CPP+:} false; then : |
21be0a5a JB |
4734 | $as_echo_n "(cached) " >&6 |
4735 | else | |
4736 | # Double quotes because CPP needs to be expanded | |
4737 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4738 | do | |
4739 | ac_preproc_ok=false | |
4740 | for ac_c_preproc_warn_flag in '' yes | |
4741 | do | |
4742 | # Use a header file that comes with gcc, so configuring glibc | |
4743 | # with a fresh cross-compiler works. | |
4744 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4745 | # <limits.h> exists even on freestanding compilers. | |
4746 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4747 | # not just through cpp. "Syntax error" is here to catch this case. | |
4748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c0e7e2bf | 4749 | /* end confdefs.h. */ |
21be0a5a JB |
4750 | #ifdef __STDC__ |
4751 | # include <limits.h> | |
4752 | #else | |
4753 | # include <assert.h> | |
4754 | #endif | |
4755 | Syntax error | |
c0e7e2bf | 4756 | _ACEOF |
21be0a5a JB |
4757 | if ac_fn_c_try_cpp "$LINENO"; then : |
4758 | ||
49ea7a0e | 4759 | else |
21be0a5a JB |
4760 | # Broken: fails on valid input. |
4761 | continue | |
49ea7a0e | 4762 | fi |
22e05272 | 4763 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4764 | |
21be0a5a JB |
4765 | # OK, works on sane cases. Now check whether nonexistent headers |
4766 | # can be detected and how. | |
4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4768 | /* end confdefs.h. */ | |
4769 | #include <ac_nonexistent.h> | |
49ea7a0e | 4770 | _ACEOF |
21be0a5a JB |
4771 | if ac_fn_c_try_cpp "$LINENO"; then : |
4772 | # Broken: success on invalid input. | |
4773 | continue | |
c0e7e2bf | 4774 | else |
21be0a5a JB |
4775 | # Passes both tests. |
4776 | ac_preproc_ok=: | |
4777 | break | |
49ea7a0e | 4778 | fi |
22e05272 | 4779 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4780 | |
4781 | done | |
4782 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4783 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4784 | if $ac_preproc_ok; then : |
4785 | break | |
c0e7e2bf JB |
4786 | fi |
4787 | ||
21be0a5a JB |
4788 | done |
4789 | ac_cv_prog_CPP=$CPP | |
4790 | ||
4791 | fi | |
4792 | CPP=$ac_cv_prog_CPP | |
49ea7a0e | 4793 | else |
21be0a5a | 4794 | ac_cv_prog_CPP=$CPP |
49ea7a0e | 4795 | fi |
21be0a5a JB |
4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4797 | $as_echo "$CPP" >&6; } | |
4798 | ac_preproc_ok=false | |
4799 | for ac_c_preproc_warn_flag in '' yes | |
4800 | do | |
4801 | # Use a header file that comes with gcc, so configuring glibc | |
4802 | # with a fresh cross-compiler works. | |
4803 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4804 | # <limits.h> exists even on freestanding compilers. | |
4805 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4806 | # not just through cpp. "Syntax error" is here to catch this case. | |
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4808 | /* end confdefs.h. */ | |
4809 | #ifdef __STDC__ | |
4810 | # include <limits.h> | |
4811 | #else | |
4812 | # include <assert.h> | |
4813 | #endif | |
4814 | Syntax error | |
4815 | _ACEOF | |
4816 | if ac_fn_c_try_cpp "$LINENO"; then : | |
49ea7a0e | 4817 | |
49ea7a0e | 4818 | else |
21be0a5a JB |
4819 | # Broken: fails on valid input. |
4820 | continue | |
49ea7a0e | 4821 | fi |
22e05272 | 4822 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4823 | |
21be0a5a JB |
4824 | # OK, works on sane cases. Now check whether nonexistent headers |
4825 | # can be detected and how. | |
4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c049309d | 4827 | /* end confdefs.h. */ |
21be0a5a | 4828 | #include <ac_nonexistent.h> |
c049309d | 4829 | _ACEOF |
21be0a5a JB |
4830 | if ac_fn_c_try_cpp "$LINENO"; then : |
4831 | # Broken: success on invalid input. | |
4832 | continue | |
c049309d | 4833 | else |
21be0a5a JB |
4834 | # Passes both tests. |
4835 | ac_preproc_ok=: | |
4836 | break | |
c049309d | 4837 | fi |
22e05272 | 4838 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4839 | |
4840 | done | |
4841 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4842 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4843 | if $ac_preproc_ok; then : |
4844 | ||
c049309d | 4845 | else |
21be0a5a JB |
4846 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4847 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4848 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4849 | See \`config.log' for more details" "$LINENO" 5; } | |
c049309d | 4850 | fi |
c049309d | 4851 | |
21be0a5a JB |
4852 | ac_ext=c |
4853 | ac_cpp='$CPP $CPPFLAGS' | |
4854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c049309d | 4857 | |
21be0a5a JB |
4858 | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4860 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4861 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4862 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4863 | else |
21be0a5a JB |
4864 | if test -z "$GREP"; then |
4865 | ac_path_GREP_found=false | |
4866 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4868 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
96b8a615 AJ |
4869 | do |
4870 | IFS=$as_save_IFS | |
4871 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4872 | for ac_prog in grep ggrep; do |
5213506e | 4873 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4874 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4875 | as_fn_executable_p "$ac_path_GREP" || continue |
21be0a5a JB |
4876 | # Check for GNU ac_path_GREP and select it if it is found. |
4877 | # Check for GNU $ac_path_GREP | |
4878 | case `"$ac_path_GREP" --version 2>&1` in | |
4879 | *GNU*) | |
4880 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4881 | *) | |
4882 | ac_count=0 | |
4883 | $as_echo_n 0123456789 >"conftest.in" | |
4884 | while : | |
4885 | do | |
4886 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4887 | mv "conftest.tmp" "conftest.in" | |
4888 | cp "conftest.in" "conftest.nl" | |
4889 | $as_echo 'GREP' >> "conftest.nl" | |
4890 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4891 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4892 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4893 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4894 | # Best one so far, save it but keep looking for a better one | |
4895 | ac_cv_path_GREP="$ac_path_GREP" | |
4896 | ac_path_GREP_max=$ac_count | |
4897 | fi | |
4898 | # 10*(2^10) chars as input seems more than enough | |
4899 | test $ac_count -gt 10 && break | |
5213506e | 4900 | done |
21be0a5a JB |
4901 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4902 | esac | |
6de9cd9a | 4903 | |
21be0a5a JB |
4904 | $ac_path_GREP_found && break 3 |
4905 | done | |
4906 | done | |
4907 | done | |
4908 | IFS=$as_save_IFS | |
4909 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4910 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4911 | fi |
6de9cd9a | 4912 | else |
21be0a5a | 4913 | ac_cv_path_GREP=$GREP |
6de9cd9a DN |
4914 | fi |
4915 | ||
6de9cd9a | 4916 | fi |
21be0a5a JB |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4918 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4919 | GREP="$ac_cv_path_GREP" | |
6de9cd9a | 4920 | |
21be0a5a JB |
4921 | |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4923 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4924 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4925 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4926 | else |
21be0a5a JB |
4927 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4928 | then ac_cv_path_EGREP="$GREP -E" | |
4929 | else | |
4930 | if test -z "$EGREP"; then | |
4931 | ac_path_EGREP_found=false | |
4932 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4934 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6de9cd9a DN |
4935 | do |
4936 | IFS=$as_save_IFS | |
4937 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4938 | for ac_prog in egrep; do |
5213506e | 4939 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4940 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4941 | as_fn_executable_p "$ac_path_EGREP" || continue |
21be0a5a JB |
4942 | # Check for GNU ac_path_EGREP and select it if it is found. |
4943 | # Check for GNU $ac_path_EGREP | |
4944 | case `"$ac_path_EGREP" --version 2>&1` in | |
4945 | *GNU*) | |
4946 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4947 | *) | |
4948 | ac_count=0 | |
4949 | $as_echo_n 0123456789 >"conftest.in" | |
4950 | while : | |
4951 | do | |
4952 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4953 | mv "conftest.tmp" "conftest.in" | |
4954 | cp "conftest.in" "conftest.nl" | |
4955 | $as_echo 'EGREP' >> "conftest.nl" | |
4956 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4957 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4958 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4959 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4960 | # Best one so far, save it but keep looking for a better one | |
4961 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4962 | ac_path_EGREP_max=$ac_count | |
4963 | fi | |
4964 | # 10*(2^10) chars as input seems more than enough | |
4965 | test $ac_count -gt 10 && break | |
5213506e | 4966 | done |
21be0a5a JB |
4967 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4968 | esac | |
6de9cd9a | 4969 | |
21be0a5a JB |
4970 | $ac_path_EGREP_found && break 3 |
4971 | done | |
4972 | done | |
4973 | done | |
4974 | IFS=$as_save_IFS | |
4975 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4976 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4977 | fi |
6de9cd9a | 4978 | else |
21be0a5a | 4979 | ac_cv_path_EGREP=$EGREP |
6de9cd9a DN |
4980 | fi |
4981 | ||
21be0a5a | 4982 | fi |
6de9cd9a | 4983 | fi |
21be0a5a JB |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4985 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4986 | EGREP="$ac_cv_path_EGREP" | |
4987 | ||
4988 | ||
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4990 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4991 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4992 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4993 | else |
21be0a5a JB |
4994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4995 | /* end confdefs.h. */ | |
4996 | #include <stdlib.h> | |
4997 | #include <stdarg.h> | |
4998 | #include <string.h> | |
4999 | #include <float.h> | |
5000 | ||
5001 | int | |
5002 | main () | |
5003 | { | |
5004 | ||
5005 | ; | |
5006 | return 0; | |
5007 | } | |
5008 | _ACEOF | |
5009 | if ac_fn_c_try_compile "$LINENO"; then : | |
5010 | ac_cv_header_stdc=yes | |
6de9cd9a | 5011 | else |
21be0a5a JB |
5012 | ac_cv_header_stdc=no |
5013 | fi | |
5014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5015 | |
21be0a5a JB |
5016 | if test $ac_cv_header_stdc = yes; then |
5017 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5019 | /* end confdefs.h. */ | |
5020 | #include <string.h> | |
5021 | ||
5022 | _ACEOF | |
5023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5024 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5025 | ||
5026 | else | |
5027 | ac_cv_header_stdc=no | |
6de9cd9a | 5028 | fi |
21be0a5a JB |
5029 | rm -f conftest* |
5030 | ||
6de9cd9a | 5031 | fi |
21be0a5a JB |
5032 | |
5033 | if test $ac_cv_header_stdc = yes; then | |
5034 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5036 | /* end confdefs.h. */ | |
5037 | #include <stdlib.h> | |
5038 | ||
5039 | _ACEOF | |
5040 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5041 | $EGREP "free" >/dev/null 2>&1; then : | |
5042 | ||
6de9cd9a | 5043 | else |
21be0a5a | 5044 | ac_cv_header_stdc=no |
6de9cd9a | 5045 | fi |
21be0a5a | 5046 | rm -f conftest* |
6de9cd9a | 5047 | |
6de9cd9a DN |
5048 | fi |
5049 | ||
21be0a5a JB |
5050 | if test $ac_cv_header_stdc = yes; then |
5051 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5052 | if test "$cross_compiling" = yes; then : | |
5053 | : | |
5054 | else | |
5055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5056 | /* end confdefs.h. */ | |
5057 | #include <ctype.h> | |
5058 | #include <stdlib.h> | |
5059 | #if ((' ' & 0x0FF) == 0x020) | |
5060 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5061 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5062 | #else | |
5063 | # define ISLOWER(c) \ | |
5064 | (('a' <= (c) && (c) <= 'i') \ | |
5065 | || ('j' <= (c) && (c) <= 'r') \ | |
5066 | || ('s' <= (c) && (c) <= 'z')) | |
5067 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5068 | #endif | |
5069 | ||
5070 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5071 | int | |
5072 | main () | |
5073 | { | |
5074 | int i; | |
5075 | for (i = 0; i < 256; i++) | |
5076 | if (XOR (islower (i), ISLOWER (i)) | |
5077 | || toupper (i) != TOUPPER (i)) | |
5078 | return 2; | |
5079 | return 0; | |
5080 | } | |
5081 | _ACEOF | |
5082 | if ac_fn_c_try_run "$LINENO"; then : | |
5083 | ||
5084 | else | |
5085 | ac_cv_header_stdc=no | |
5086 | fi | |
5087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5088 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5089 | fi | |
5090 | ||
5091 | fi | |
5092 | fi | |
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5094 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5095 | if test $ac_cv_header_stdc = yes; then | |
5096 | ||
5097 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5098 | ||
5099 | fi | |
5100 | ||
5101 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5102 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5103 | inttypes.h stdint.h unistd.h | |
5104 | do : | |
5105 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5106 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5107 | " | |
22e05272 | 5108 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
21be0a5a JB |
5109 | cat >>confdefs.h <<_ACEOF |
5110 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5111 | _ACEOF | |
5112 | ||
5113 | fi | |
5114 | ||
5115 | done | |
5116 | ||
5117 | ||
5118 | ||
5119 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 5120 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
21be0a5a JB |
5121 | MINIX=yes |
5122 | else | |
5123 | MINIX= | |
5124 | fi | |
5125 | ||
5126 | ||
5127 | if test "$MINIX" = yes; then | |
5128 | ||
5129 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5130 | ||
5131 | ||
5132 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5133 | ||
5134 | ||
5135 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5136 | ||
5137 | fi | |
5138 | ||
5139 | ||
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5141 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 5142 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
21be0a5a JB |
5143 | $as_echo_n "(cached) " >&6 |
5144 | else | |
5145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5146 | /* end confdefs.h. */ | |
5147 | ||
22e05272 JM |
5148 | # define __EXTENSIONS__ 1 |
5149 | $ac_includes_default | |
21be0a5a JB |
5150 | int |
5151 | main () | |
5152 | { | |
5153 | ||
5154 | ; | |
5155 | return 0; | |
5156 | } | |
5157 | _ACEOF | |
5158 | if ac_fn_c_try_compile "$LINENO"; then : | |
5159 | ac_cv_safe_to_define___extensions__=yes | |
5160 | else | |
5161 | ac_cv_safe_to_define___extensions__=no | |
5162 | fi | |
5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5164 | fi | |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5166 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5167 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5168 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5169 | ||
5170 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5171 | ||
5172 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5173 | ||
5174 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5175 | ||
5176 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5177 | ||
5178 | ||
5179 | ||
e8e66971 MR |
5180 | |
5181 | # Check whether --with-toolexeclibdir was given. | |
5182 | if test "${with_toolexeclibdir+set}" = set; then : | |
5183 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
5184 | /) | |
5185 | ;; | |
5186 | */) | |
5187 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
5188 | ;; | |
5189 | esac | |
5190 | else | |
5191 | with_toolexeclibdir=no | |
5192 | fi | |
5193 | ||
5194 | ||
5195 | ||
21be0a5a JB |
5196 | # Calculate toolexeclibdir |
5197 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5198 | case ${version_specific_libs} in | |
5199 | yes) | |
5200 | # Need the gcc compiler version to know where to install libraries | |
5201 | # and header files if --enable-version-specific-runtime-libs option | |
5202 | # is selected. | |
5203 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5204 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5205 | ;; | |
5206 | no) | |
5207 | if test -n "$with_cross_host" && | |
5208 | test x"$with_cross_host" != x"no"; then | |
5209 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5210 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
5211 | case ${with_toolexeclibdir} in |
5212 | no) | |
5213 | toolexeclibdir='$(toolexecdir)/lib' | |
5214 | ;; | |
5215 | *) | |
5216 | toolexeclibdir=${with_toolexeclibdir} | |
5217 | ;; | |
5218 | esac | |
21be0a5a JB |
5219 | else |
5220 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5221 | toolexeclibdir='$(libdir)' | |
5222 | fi | |
5223 | multi_os_directory=`$CC -print-multi-os-directory` | |
5224 | case $multi_os_directory in | |
5225 | .) ;; # Avoid trailing /. | |
5226 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5227 | esac | |
5228 | ;; | |
5229 | esac | |
5230 | ||
5231 | ||
5232 | ||
5233 | # Create a spec file, so that compile/link tests don't fail | |
5234 | test -f libgfortran.spec || touch libgfortran.spec | |
5235 | ||
60858d8a TB |
5236 | ac_ext=c |
5237 | ac_cpp='$CPP $CPPFLAGS' | |
5238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5241 | ||
21be0a5a JB |
5242 | # Check the compiler. |
5243 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5244 | # We must force CC to /not/ be precious variables; otherwise | |
5245 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5246 | # As a side effect, we have to subst CFLAGS ourselves. | |
5247 | ||
5248 | ||
5249 | ||
5250 | ac_ext=c | |
5251 | ac_cpp='$CPP $CPPFLAGS' | |
5252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5255 | if test -n "$ac_tool_prefix"; then | |
5256 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5257 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5259 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5260 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5261 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5262 | else |
21be0a5a JB |
5263 | if test -n "$CC"; then |
5264 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5265 | else |
96b8a615 AJ |
5266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5267 | for as_dir in $PATH | |
5268 | do | |
5269 | IFS=$as_save_IFS | |
5270 | test -z "$as_dir" && as_dir=. | |
5213506e | 5271 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5273 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 5274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5275 | break 2 |
5276 | fi | |
5277 | done | |
5213506e RW |
5278 | done |
5279 | IFS=$as_save_IFS | |
6de9cd9a | 5280 | |
6de9cd9a | 5281 | fi |
96b8a615 | 5282 | fi |
21be0a5a JB |
5283 | CC=$ac_cv_prog_CC |
5284 | if test -n "$CC"; then | |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5286 | $as_echo "$CC" >&6; } | |
96b8a615 | 5287 | else |
5213506e RW |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5289 | $as_echo "no" >&6; } | |
96b8a615 | 5290 | fi |
6de9cd9a | 5291 | |
5213506e | 5292 | |
6de9cd9a | 5293 | fi |
21be0a5a JB |
5294 | if test -z "$ac_cv_prog_CC"; then |
5295 | ac_ct_CC=$CC | |
5296 | # Extract the first word of "gcc", so it can be a program name with args. | |
5297 | set dummy gcc; ac_word=$2 | |
5213506e RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5299 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5300 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 5301 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5302 | else |
21be0a5a JB |
5303 | if test -n "$ac_ct_CC"; then |
5304 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6de9cd9a | 5305 | else |
96b8a615 AJ |
5306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5307 | for as_dir in $PATH | |
5308 | do | |
5309 | IFS=$as_save_IFS | |
5310 | test -z "$as_dir" && as_dir=. | |
5213506e | 5311 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5312 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5313 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 5314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5315 | break 2 |
5316 | fi | |
5317 | done | |
5213506e RW |
5318 | done |
5319 | IFS=$as_save_IFS | |
6de9cd9a | 5320 | |
6de9cd9a | 5321 | fi |
6de9cd9a | 5322 | fi |
21be0a5a JB |
5323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5324 | if test -n "$ac_ct_CC"; then | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5326 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 5327 | else |
5213506e RW |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5329 | $as_echo "no" >&6; } | |
6de9cd9a DN |
5330 | fi |
5331 | ||
21be0a5a JB |
5332 | if test "x$ac_ct_CC" = x; then |
5333 | CC="" | |
5213506e RW |
5334 | else |
5335 | case $cross_compiling:$ac_tool_warned in | |
5336 | yes:) | |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5338 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5339 | ac_tool_warned=yes ;; | |
5340 | esac | |
21be0a5a | 5341 | CC=$ac_ct_CC |
5213506e | 5342 | fi |
96b8a615 | 5343 | else |
21be0a5a | 5344 | CC="$ac_cv_prog_CC" |
6de9cd9a | 5345 | fi |
96b8a615 | 5346 | |
21be0a5a JB |
5347 | if test -z "$CC"; then |
5348 | if test -n "$ac_tool_prefix"; then | |
5349 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5350 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5352 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5353 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5354 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5355 | else |
21be0a5a JB |
5356 | if test -n "$CC"; then |
5357 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5358 | else |
21be0a5a JB |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5360 | for as_dir in $PATH | |
5361 | do | |
5362 | IFS=$as_save_IFS | |
5363 | test -z "$as_dir" && as_dir=. | |
5364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5366 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5368 | break 2 | |
5369 | fi | |
5370 | done | |
5371 | done | |
5372 | IFS=$as_save_IFS | |
5373 | ||
5374 | fi | |
5375 | fi | |
5376 | CC=$ac_cv_prog_CC | |
5377 | if test -n "$CC"; then | |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5379 | $as_echo "$CC" >&6; } | |
5380 | else | |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5382 | $as_echo "no" >&6; } | |
5383 | fi | |
5384 | ||
5385 | ||
5386 | fi | |
5387 | fi | |
5388 | if test -z "$CC"; then | |
5389 | # Extract the first word of "cc", so it can be a program name with args. | |
5390 | set dummy cc; ac_word=$2 | |
5391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5392 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5393 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5394 | $as_echo_n "(cached) " >&6 |
5395 | else | |
5396 | if test -n "$CC"; then | |
5397 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5398 | else | |
5399 | ac_prog_rejected=no | |
5400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5401 | for as_dir in $PATH | |
5402 | do | |
5403 | IFS=$as_save_IFS | |
5404 | test -z "$as_dir" && as_dir=. | |
5405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5407 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5408 | ac_prog_rejected=yes | |
5409 | continue | |
5410 | fi | |
5411 | ac_cv_prog_CC="cc" | |
5412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5413 | break 2 | |
5414 | fi | |
5415 | done | |
5416 | done | |
5417 | IFS=$as_save_IFS | |
5418 | ||
5419 | if test $ac_prog_rejected = yes; then | |
5420 | # We found a bogon in the path, so make sure we never use it. | |
5421 | set dummy $ac_cv_prog_CC | |
5422 | shift | |
5423 | if test $# != 0; then | |
5424 | # We chose a different compiler from the bogus one. | |
5425 | # However, it has the same basename, so the bogon will be chosen | |
5426 | # first if we set CC to just the basename; use the full file name. | |
5427 | shift | |
5428 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5429 | fi | |
5430 | fi | |
5431 | fi | |
5432 | fi | |
5433 | CC=$ac_cv_prog_CC | |
5434 | if test -n "$CC"; then | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5436 | $as_echo "$CC" >&6; } | |
5437 | else | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5439 | $as_echo "no" >&6; } | |
5440 | fi | |
5441 | ||
5442 | ||
5443 | fi | |
5444 | if test -z "$CC"; then | |
5445 | if test -n "$ac_tool_prefix"; then | |
5446 | for ac_prog in cl.exe | |
5447 | do | |
5448 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5449 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5451 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5452 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5453 | $as_echo_n "(cached) " >&6 |
5454 | else | |
5455 | if test -n "$CC"; then | |
5456 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5457 | else | |
5458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5459 | for as_dir in $PATH | |
5460 | do | |
5461 | IFS=$as_save_IFS | |
5462 | test -z "$as_dir" && as_dir=. | |
5463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5464 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5465 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5467 | break 2 | |
5468 | fi | |
5469 | done | |
5470 | done | |
5471 | IFS=$as_save_IFS | |
5472 | ||
5473 | fi | |
5474 | fi | |
5475 | CC=$ac_cv_prog_CC | |
5476 | if test -n "$CC"; then | |
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5478 | $as_echo "$CC" >&6; } | |
5479 | else | |
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5481 | $as_echo "no" >&6; } | |
5482 | fi | |
5483 | ||
5484 | ||
5485 | test -n "$CC" && break | |
5486 | done | |
5487 | fi | |
5488 | if test -z "$CC"; then | |
5489 | ac_ct_CC=$CC | |
5490 | for ac_prog in cl.exe | |
5491 | do | |
5492 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5493 | set dummy $ac_prog; ac_word=$2 | |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5495 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5496 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
21be0a5a JB |
5497 | $as_echo_n "(cached) " >&6 |
5498 | else | |
5499 | if test -n "$ac_ct_CC"; then | |
5500 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5501 | else | |
5502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5503 | for as_dir in $PATH | |
5504 | do | |
5505 | IFS=$as_save_IFS | |
5506 | test -z "$as_dir" && as_dir=. | |
5507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5509 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5511 | break 2 | |
5512 | fi | |
5513 | done | |
5514 | done | |
5515 | IFS=$as_save_IFS | |
5516 | ||
5517 | fi | |
5518 | fi | |
5519 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5520 | if test -n "$ac_ct_CC"; then | |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5522 | $as_echo "$ac_ct_CC" >&6; } | |
5523 | else | |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5525 | $as_echo "no" >&6; } | |
5526 | fi | |
5527 | ||
5528 | ||
5529 | test -n "$ac_ct_CC" && break | |
5530 | done | |
5531 | ||
5532 | if test "x$ac_ct_CC" = x; then | |
5533 | CC="" | |
5534 | else | |
5535 | case $cross_compiling:$ac_tool_warned in | |
5536 | yes:) | |
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5538 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5539 | ac_tool_warned=yes ;; | |
5540 | esac | |
5541 | CC=$ac_ct_CC | |
5542 | fi | |
5543 | fi | |
5544 | ||
5545 | fi | |
5546 | ||
5547 | ||
5548 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5549 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5550 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5551 | See \`config.log' for more details" "$LINENO" 5; } | |
21be0a5a JB |
5552 | |
5553 | # Provide some information about the compiler. | |
5554 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5555 | set X $ac_compile | |
5556 | ac_compiler=$2 | |
5557 | for ac_option in --version -v -V -qversion; do | |
5558 | { { ac_try="$ac_compiler $ac_option >&5" | |
5559 | case "(($ac_try" in | |
5560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5561 | *) ac_try_echo=$ac_try;; | |
5562 | esac | |
5563 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5564 | $as_echo "$ac_try_echo"; } >&5 | |
5565 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5566 | ac_status=$? | |
5567 | if test -s conftest.err; then | |
5568 | sed '10a\ | |
5569 | ... rest of stderr output deleted ... | |
5570 | 10q' conftest.err >conftest.er1 | |
5571 | cat conftest.er1 >&5 | |
21be0a5a | 5572 | fi |
22e05272 | 5573 | rm -f conftest.er1 conftest.err |
21be0a5a JB |
5574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5575 | test $ac_status = 0; } | |
5576 | done | |
5577 | ||
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5579 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 5580 | if ${ac_cv_c_compiler_gnu+:} false; then : |
21be0a5a JB |
5581 | $as_echo_n "(cached) " >&6 |
5582 | else | |
5583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5584 | /* end confdefs.h. */ | |
5585 | ||
5586 | int | |
5587 | main () | |
5588 | { | |
5589 | #ifndef __GNUC__ | |
5590 | choke me | |
5591 | #endif | |
5592 | ||
5593 | ; | |
5594 | return 0; | |
5595 | } | |
5596 | _ACEOF | |
5597 | if ac_fn_c_try_compile "$LINENO"; then : | |
5598 | ac_compiler_gnu=yes | |
5599 | else | |
5600 | ac_compiler_gnu=no | |
5601 | fi | |
5602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5603 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5604 | ||
5605 | fi | |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5607 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5608 | if test $ac_compiler_gnu = yes; then | |
5609 | GCC=yes | |
5610 | else | |
5611 | GCC= | |
5612 | fi | |
5613 | ac_test_CFLAGS=${CFLAGS+set} | |
5614 | ac_save_CFLAGS=$CFLAGS | |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5616 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5617 | if ${ac_cv_prog_cc_g+:} false; then : |
21be0a5a JB |
5618 | $as_echo_n "(cached) " >&6 |
5619 | else | |
5620 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5621 | ac_c_werror_flag=yes | |
5622 | ac_cv_prog_cc_g=no | |
5623 | CFLAGS="-g" | |
5624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5625 | /* end confdefs.h. */ | |
5626 | ||
5627 | int | |
5628 | main () | |
5629 | { | |
5630 | ||
5631 | ; | |
5632 | return 0; | |
5633 | } | |
5634 | _ACEOF | |
5635 | if ac_fn_c_try_compile "$LINENO"; then : | |
5636 | ac_cv_prog_cc_g=yes | |
5637 | else | |
5638 | CFLAGS="" | |
5639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5640 | /* end confdefs.h. */ | |
5641 | ||
5642 | int | |
5643 | main () | |
5644 | { | |
5645 | ||
5646 | ; | |
5647 | return 0; | |
5648 | } | |
5649 | _ACEOF | |
5650 | if ac_fn_c_try_compile "$LINENO"; then : | |
5651 | ||
5652 | else | |
5653 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5654 | CFLAGS="-g" | |
5655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5656 | /* end confdefs.h. */ | |
5657 | ||
5658 | int | |
5659 | main () | |
5660 | { | |
5661 | ||
5662 | ; | |
5663 | return 0; | |
5664 | } | |
5665 | _ACEOF | |
5666 | if ac_fn_c_try_compile "$LINENO"; then : | |
5667 | ac_cv_prog_cc_g=yes | |
5668 | fi | |
5669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5670 | fi | |
5671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5672 | fi | |
5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5674 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5675 | fi | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5677 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5678 | if test "$ac_test_CFLAGS" = set; then | |
5679 | CFLAGS=$ac_save_CFLAGS | |
5680 | elif test $ac_cv_prog_cc_g = yes; then | |
5681 | if test "$GCC" = yes; then | |
5682 | CFLAGS="-g -O2" | |
5683 | else | |
5684 | CFLAGS="-g" | |
5685 | fi | |
5686 | else | |
5687 | if test "$GCC" = yes; then | |
5688 | CFLAGS="-O2" | |
5689 | else | |
5690 | CFLAGS= | |
5691 | fi | |
5692 | fi | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5694 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5695 | if ${ac_cv_prog_cc_c89+:} false; then : |
21be0a5a JB |
5696 | $as_echo_n "(cached) " >&6 |
5697 | else | |
5698 | ac_cv_prog_cc_c89=no | |
5699 | ac_save_CC=$CC | |
5700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5701 | /* end confdefs.h. */ | |
5702 | #include <stdarg.h> | |
5703 | #include <stdio.h> | |
22e05272 | 5704 | struct stat; |
21be0a5a JB |
5705 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5706 | struct buf { int x; }; | |
5707 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5708 | static char *e (p, i) | |
5709 | char **p; | |
5710 | int i; | |
5711 | { | |
5712 | return p[i]; | |
5713 | } | |
5714 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5715 | { | |
5716 | char *s; | |
5717 | va_list v; | |
5718 | va_start (v,p); | |
5719 | s = g (p, va_arg (v,int)); | |
5720 | va_end (v); | |
5721 | return s; | |
5722 | } | |
5723 | ||
5724 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5725 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5726 | These don't provoke an error unfortunately, instead are silently treated | |
5727 | as 'x'. The following induces an error, until -std is added to get | |
5728 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5729 | array size at least. It's necessary to write '\x00'==0 to get something | |
5730 | that's true only with -std. */ | |
5731 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5732 | ||
5733 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5734 | inside strings and character constants. */ | |
5735 | #define FOO(x) 'x' | |
5736 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5737 | ||
5738 | int test (int i, double x); | |
5739 | struct s1 {int (*f) (int a);}; | |
5740 | struct s2 {int (*f) (double a);}; | |
5741 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5742 | int argc; | |
5743 | char **argv; | |
5744 | int | |
5745 | main () | |
5746 | { | |
5747 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5748 | ; | |
5749 | return 0; | |
5750 | } | |
5751 | _ACEOF | |
5752 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5753 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5754 | do | |
5755 | CC="$ac_save_CC $ac_arg" | |
5756 | if ac_fn_c_try_compile "$LINENO"; then : | |
5757 | ac_cv_prog_cc_c89=$ac_arg | |
5758 | fi | |
5759 | rm -f core conftest.err conftest.$ac_objext | |
5760 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5761 | done | |
5762 | rm -f conftest.$ac_ext | |
5763 | CC=$ac_save_CC | |
5764 | ||
5765 | fi | |
5766 | # AC_CACHE_VAL | |
5767 | case "x$ac_cv_prog_cc_c89" in | |
5768 | x) | |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5770 | $as_echo "none needed" >&6; } ;; | |
5771 | xno) | |
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5773 | $as_echo "unsupported" >&6; } ;; | |
5774 | *) | |
5775 | CC="$CC $ac_cv_prog_cc_c89" | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5777 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5778 | esac | |
5779 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5780 | ||
5781 | fi | |
5782 | ||
5783 | ac_ext=c | |
5784 | ac_cpp='$CPP $CPPFLAGS' | |
5785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5788 | ||
22e05272 JM |
5789 | ac_ext=c |
5790 | ac_cpp='$CPP $CPPFLAGS' | |
5791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5795 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5796 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5797 | $as_echo_n "(cached) " >&6 | |
5798 | else | |
5799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5800 | /* end confdefs.h. */ | |
5801 | ||
5802 | int | |
5803 | main () | |
5804 | { | |
5805 | ||
5806 | ; | |
5807 | return 0; | |
5808 | } | |
5809 | _ACEOF | |
5810 | # Make sure it works both with $CC and with simple cc. | |
5811 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5812 | # compilers refuse to overwrite an existing .o file with -o, | |
5813 | # though they will create one. | |
5814 | am_cv_prog_cc_c_o=yes | |
5815 | for am_i in 1 2; do | |
5816 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5817 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5818 | ac_status=$? | |
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5820 | (exit $ac_status); } \ | |
5821 | && test -f conftest2.$ac_objext; then | |
5822 | : OK | |
5823 | else | |
5824 | am_cv_prog_cc_c_o=no | |
5825 | break | |
5826 | fi | |
5827 | done | |
5828 | rm -f core conftest* | |
5829 | unset am_i | |
5830 | fi | |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5832 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5833 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5834 | # Losing compiler, so override with the script. | |
5835 | # FIXME: It is wrong to rewrite CC. | |
5836 | # But if we don't then we get into trouble of one sort or another. | |
5837 | # A longer-term fix would be to have automake use am__CC in this case, | |
5838 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5839 | CC="$am_aux_dir/compile $CC" | |
5840 | fi | |
5841 | ac_ext=c | |
5842 | ac_cpp='$CPP $CPPFLAGS' | |
5843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5846 | ||
5847 | ||
21be0a5a JB |
5848 | depcc="$CC" am_compiler_list= |
5849 | ||
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5851 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5852 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
21be0a5a JB |
5853 | $as_echo_n "(cached) " >&6 |
5854 | else | |
5855 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5856 | # We make a subdir and do the tests there. Otherwise we can end up | |
5857 | # making bogus files that we don't know about and never remove. For | |
5858 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5859 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5860 | # in D". | |
c20fdb91 | 5861 | rm -rf conftest.dir |
21be0a5a JB |
5862 | mkdir conftest.dir |
5863 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5864 | # using a relative directory. | |
5865 | cp "$am_depcomp" conftest.dir | |
5866 | cd conftest.dir | |
5867 | # We will build objects and dependencies in a subdirectory because | |
5868 | # it helps to detect inapplicable dependency modes. For instance | |
5869 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5870 | # side effect of compilation, but ICC will put the dependencies in | |
5871 | # the current directory while Tru64 will put them in the object | |
5872 | # directory. | |
5873 | mkdir sub | |
5874 | ||
5875 | am_cv_CC_dependencies_compiler_type=none | |
5876 | if test "$am_compiler_list" = ""; then | |
5877 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5878 | fi | |
5879 | am__universal=false | |
5880 | case " $depcc " in #( | |
5881 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5882 | esac | |
5883 | ||
5884 | for depmode in $am_compiler_list; do | |
5885 | # Setup a source with many dependencies, because some compilers | |
5886 | # like to wrap large dependency lists on column 80 (with \), and | |
5887 | # we should not choose a depcomp mode which is confused by this. | |
5888 | # | |
5889 | # We need to recreate these files for each test, as the compiler may | |
5890 | # overwrite some of them when testing with obscure command lines. | |
5891 | # This happens at least with the AIX C compiler. | |
5892 | : > sub/conftest.c | |
5893 | for i in 1 2 3 4 5 6; do | |
5894 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5895 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5896 | # Solaris 10 /bin/sh. | |
5897 | echo '/* dummy */' > sub/conftst$i.h | |
21be0a5a JB |
5898 | done |
5899 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5900 | ||
22e05272 | 5901 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
21be0a5a | 5902 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5903 | # handle '-M -o', and we need to detect this. Also, some Intel |
5904 | # versions had trouble with output in subdirs. | |
21be0a5a JB |
5905 | am__obj=sub/conftest.${OBJEXT-o} |
5906 | am__minus_obj="-o $am__obj" | |
5907 | case $depmode in | |
5908 | gcc) | |
5909 | # This depmode causes a compiler race in universal mode. | |
5910 | test "$am__universal" = false || continue | |
5911 | ;; | |
5912 | nosideeffect) | |
22e05272 JM |
5913 | # After this tag, mechanisms are not by side-effect, so they'll |
5914 | # only be used when explicitly requested. | |
21be0a5a JB |
5915 | if test "x$enable_dependency_tracking" = xyes; then |
5916 | continue | |
5917 | else | |
5918 | break | |
5919 | fi | |
5920 | ;; | |
c20fdb91 | 5921 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 5922 | # This compiler won't grok '-c -o', but also, the minuso test has |
21be0a5a JB |
5923 | # not run yet. These depmodes are late enough in the game, and |
5924 | # so weak that their functioning should not be impacted. | |
5925 | am__obj=conftest.${OBJEXT-o} | |
5926 | am__minus_obj= | |
5927 | ;; | |
5928 | none) break ;; | |
5929 | esac | |
5930 | if depmode=$depmode \ | |
5931 | source=sub/conftest.c object=$am__obj \ | |
5932 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5933 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5934 | >/dev/null 2>conftest.err && | |
5935 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5936 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5937 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5938 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5939 | # icc doesn't choke on unknown options, it will just issue warnings | |
5940 | # or remarks (even with -Werror). So we grep stderr for any message | |
5941 | # that says an option was ignored or not supported. | |
5942 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5943 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5944 | # The diagnosis changed in icc 8.0: | |
5945 | # icc: Command line remark: option '-MP' not supported | |
5946 | if (grep 'ignoring option' conftest.err || | |
5947 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5948 | am_cv_CC_dependencies_compiler_type=$depmode | |
5949 | break | |
5950 | fi | |
5951 | fi | |
5952 | done | |
5953 | ||
5954 | cd .. | |
5955 | rm -rf conftest.dir | |
5956 | else | |
5957 | am_cv_CC_dependencies_compiler_type=none | |
5958 | fi | |
5959 | ||
5960 | fi | |
5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5962 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5963 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5964 | ||
5965 | if | |
5966 | test "x$enable_dependency_tracking" != xno \ | |
5967 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5968 | am__fastdepCC_TRUE= | |
5969 | am__fastdepCC_FALSE='#' | |
5970 | else | |
5971 | am__fastdepCC_TRUE='#' | |
5972 | am__fastdepCC_FALSE= | |
5973 | fi | |
5974 | ||
5975 | ||
5976 | ||
5977 | ||
60858d8a TB |
5978 | |
5979 | ||
60858d8a TB |
5980 | |
5981 | ||
21be0a5a JB |
5982 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
5983 | if test "x$GCC" = "xyes"; then | |
5984 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" | |
f7b6856f JB |
5985 | ## We like to use C11 and C99 routines when available. This makes |
5986 | ## sure that | |
21be0a5a | 5987 | ## __STDC_VERSION__ is set such that libc includes make them available. |
581d2326 | 5988 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
21be0a5a JB |
5989 | ## Compile the following tests with the same system header contents |
5990 | ## that we'll encounter when compiling our own source files. | |
f7b6856f | 5991 | CFLAGS="-std=gnu11 $CFLAGS" |
21be0a5a JB |
5992 | fi |
5993 | ||
26724ef9 IT |
5994 | # Add CET specific flags if CET is enabled |
5995 | # Check whether --enable-cet was given. | |
5996 | if test "${enable_cet+set}" = set; then : | |
5997 | enableval=$enable_cet; | |
5998 | case "$enableval" in | |
a0e1df88 | 5999 | yes|no|auto) ;; |
22e05272 | 6000 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
26724ef9 IT |
6001 | esac |
6002 | ||
6003 | else | |
a0e1df88 | 6004 | enable_cet=no |
26724ef9 IT |
6005 | fi |
6006 | ||
6007 | ||
14e335ed IT |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
6009 | $as_echo_n "checking for CET support... " >&6; } | |
6010 | ||
26724ef9 IT |
6011 | case "$host" in |
6012 | i[34567]86-*-linux* | x86_64-*-linux*) | |
6013 | case "$enable_cet" in | |
a0e1df88 | 6014 | auto) |
14e335ed IT |
6015 | # Check if target supports multi-byte NOPs |
6016 | # and if assembler supports CET insn. | |
26724ef9 IT |
6017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6018 | /* end confdefs.h. */ | |
6019 | ||
6020 | int | |
6021 | main () | |
6022 | { | |
14e335ed IT |
6023 | |
6024 | #if !defined(__SSE2__) | |
6025 | #error target does not support multi-byte NOPs | |
6026 | #else | |
26724ef9 | 6027 | asm ("setssbsy"); |
14e335ed IT |
6028 | #endif |
6029 | ||
26724ef9 IT |
6030 | ; |
6031 | return 0; | |
6032 | } | |
6033 | _ACEOF | |
6034 | if ac_fn_c_try_compile "$LINENO"; then : | |
6035 | enable_cet=yes | |
6036 | else | |
6037 | enable_cet=no | |
6038 | fi | |
6039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6040 | ;; | |
6041 | yes) | |
6042 | # Check if assembler supports CET. | |
6043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6044 | /* end confdefs.h. */ | |
6045 | ||
6046 | int | |
6047 | main () | |
6048 | { | |
6049 | asm ("setssbsy"); | |
6050 | ; | |
6051 | return 0; | |
6052 | } | |
6053 | _ACEOF | |
6054 | if ac_fn_c_try_compile "$LINENO"; then : | |
6055 | ||
6056 | else | |
22e05272 | 6057 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
26724ef9 IT |
6058 | fi |
6059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6060 | ;; | |
6061 | esac | |
6062 | ;; | |
6063 | *) | |
6064 | enable_cet=no | |
6065 | ;; | |
6066 | esac | |
6067 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 6068 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
6069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6070 | $as_echo "yes" >&6; } | |
6071 | else | |
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6073 | $as_echo "no" >&6; } | |
26724ef9 IT |
6074 | fi |
6075 | ||
6076 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6077 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6078 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6079 | ||
6080 | ||
21be0a5a JB |
6081 | |
6082 | ||
6083 | ||
6084 | # Check for symbol versioning (copied from libssp). | |
6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6086 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bf382f5f RO |
6087 | # Check whether --enable-symvers was given. |
6088 | if test "${enable_symvers+set}" = set; then : | |
6089 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6090 | else | |
6091 | gfortran_use_symver=yes | |
6092 | fi | |
6093 | ||
19af62db | 6094 | if test "x$gfortran_use_symver" != xno; then |
bf382f5f RO |
6095 | save_LDFLAGS="$LDFLAGS" |
6096 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6097 | cat > conftest.map <<EOF | |
21be0a5a JB |
6098 | FOO_1.0 { |
6099 | global: *foo*; bar; local: *; | |
6100 | }; | |
6101 | EOF | |
bf382f5f | 6102 | if test x$gcc_no_link = xyes; then |
22e05272 | 6103 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6104 | fi |
6105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6106 | /* end confdefs.h. */ | |
6107 | int foo; | |
6108 | int | |
6109 | main () | |
6110 | { | |
6111 | ||
6112 | ; | |
6113 | return 0; | |
6114 | } | |
6115 | _ACEOF | |
6116 | if ac_fn_c_try_link "$LINENO"; then : | |
6117 | gfortran_use_symver=gnu | |
6118 | else | |
6119 | gfortran_use_symver=no | |
6120 | fi | |
6121 | rm -f core conftest.err conftest.$ac_objext \ | |
6122 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6123 | if test x$gfortran_use_symver = xno; then |
6124 | case "$target_os" in | |
6125 | solaris2*) | |
6126 | LDFLAGS="$save_LDFLAGS" | |
6127 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6128 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6129 | cat > conftest.map <<EOF | |
21be0a5a JB |
6130 | FOO_1.0 { |
6131 | global: foo; local: *; | |
6132 | }; | |
6133 | EOF | |
bf382f5f | 6134 | if test x$gcc_no_link = xyes; then |
22e05272 | 6135 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6136 | fi |
6137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6138 | /* end confdefs.h. */ | |
6139 | int foo; | |
6140 | int | |
6141 | main () | |
6142 | { | |
6143 | ||
6144 | ; | |
6145 | return 0; | |
6146 | } | |
6147 | _ACEOF | |
6148 | if ac_fn_c_try_link "$LINENO"; then : | |
6149 | gfortran_use_symver=sun | |
6150 | else | |
6151 | gfortran_use_symver=no | |
6152 | fi | |
6153 | rm -f core conftest.err conftest.$ac_objext \ | |
6154 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6155 | ;; |
6156 | esac | |
6157 | fi | |
6158 | LDFLAGS="$save_LDFLAGS" | |
21be0a5a | 6159 | fi |
21be0a5a JB |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6161 | $as_echo "$gfortran_use_symver" >&6; } | |
6162 | if test "x$gfortran_use_symver" != xno; then | |
6163 | LIBGFOR_USE_SYMVER_TRUE= | |
6164 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6165 | else | |
6166 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6167 | LIBGFOR_USE_SYMVER_FALSE= | |
6168 | fi | |
6169 | ||
6170 | if test "x$gfortran_use_symver" = xgnu; then | |
6171 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6172 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6173 | else | |
6174 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6175 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6176 | fi | |
6177 | ||
6178 | if test "x$gfortran_use_symver" = xsun; then | |
6179 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6180 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6181 | else | |
6182 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6183 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6184 | fi | |
6185 | ||
6186 | ||
ee95f928 BS |
6187 | # For GPU offloading, not everything in libfortran can be supported. |
6188 | # Currently, the only target that has this problem is nvptx. The | |
6189 | # following is a (partial) list of features that are unsupportable on | |
6190 | # this particular target: | |
6191 | # * Constructors | |
6192 | # * alloca | |
6193 | # * C library support for I/O, with printf as the one notable exception | |
6194 | # * C library support for other features such as signal, environment | |
6195 | # variables, time functions | |
6196 | ||
b1e86e33 | 6197 | if test "x${target_cpu}" = xnvptx; then |
ee95f928 BS |
6198 | LIBGFOR_MINIMAL_TRUE= |
6199 | LIBGFOR_MINIMAL_FALSE='#' | |
6200 | else | |
6201 | LIBGFOR_MINIMAL_TRUE='#' | |
6202 | LIBGFOR_MINIMAL_FALSE= | |
6203 | fi | |
6204 | ||
6205 | ||
21be0a5a JB |
6206 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6207 | # similarly to how libstdc++ does it | |
6208 | ac_test_CFLAGS="${CFLAGS+set}" | |
6209 | ac_save_CFLAGS="$CFLAGS" | |
6210 | ||
6211 | # Check for -ffunction-sections -fdata-sections | |
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6213 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6214 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6216 | /* end confdefs.h. */ | |
6217 | ||
6218 | int | |
6219 | main () | |
6220 | { | |
6221 | int foo; | |
6222 | ; | |
6223 | return 0; | |
6224 | } | |
6225 | _ACEOF | |
6226 | if ac_fn_c_try_compile "$LINENO"; then : | |
6227 | ac_fdsections=yes | |
6228 | else | |
6229 | ac_fdsections=no | |
6230 | fi | |
6231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6232 | if test "$ac_test_CFLAGS" = set; then | |
6233 | CFLAGS="$ac_save_CFLAGS" | |
6234 | else | |
6235 | # this is the suspicious part | |
6236 | CFLAGS="" | |
6237 | fi | |
6238 | if test x"$ac_fdsections" = x"yes"; then | |
6239 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6240 | fi | |
6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6242 | $as_echo "$ac_fdsections" >&6; } | |
6243 | ||
6244 | ||
66dbcf2d RO |
6245 | # Check linker hardware capability support. |
6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6247 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 6248 | if ${ac_cv_path_SED+:} false; then : |
21be0a5a JB |
6249 | $as_echo_n "(cached) " >&6 |
6250 | else | |
66dbcf2d RO |
6251 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6252 | for ac_i in 1 2 3 4 5 6 7; do | |
6253 | ac_script="$ac_script$as_nl$ac_script" | |
6254 | done | |
6255 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6256 | { ac_script=; unset ac_script;} | |
6257 | if test -z "$SED"; then | |
6258 | ac_path_SED_found=false | |
6259 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21be0a5a JB |
6261 | for as_dir in $PATH |
6262 | do | |
6263 | IFS=$as_save_IFS | |
6264 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6265 | for ac_prog in sed gsed; do |
21be0a5a | 6266 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6267 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6268 | as_fn_executable_p "$ac_path_SED" || continue |
66dbcf2d RO |
6269 | # Check for GNU ac_path_SED and select it if it is found. |
6270 | # Check for GNU $ac_path_SED | |
6271 | case `"$ac_path_SED" --version 2>&1` in | |
6272 | *GNU*) | |
6273 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6274 | *) | |
6275 | ac_count=0 | |
6276 | $as_echo_n 0123456789 >"conftest.in" | |
6277 | while : | |
6278 | do | |
6279 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6280 | mv "conftest.tmp" "conftest.in" | |
6281 | cp "conftest.in" "conftest.nl" | |
6282 | $as_echo '' >> "conftest.nl" | |
6283 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6284 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6285 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6286 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6287 | # Best one so far, save it but keep looking for a better one | |
6288 | ac_cv_path_SED="$ac_path_SED" | |
6289 | ac_path_SED_max=$ac_count | |
6290 | fi | |
6291 | # 10*(2^10) chars as input seems more than enough | |
6292 | test $ac_count -gt 10 && break | |
21be0a5a | 6293 | done |
66dbcf2d RO |
6294 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6295 | esac | |
21be0a5a | 6296 | |
66dbcf2d RO |
6297 | $ac_path_SED_found && break 3 |
6298 | done | |
6299 | done | |
21be0a5a JB |
6300 | done |
6301 | IFS=$as_save_IFS | |
66dbcf2d | 6302 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 6303 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
66dbcf2d | 6304 | fi |
21be0a5a | 6305 | else |
66dbcf2d | 6306 | ac_cv_path_SED=$SED |
21be0a5a JB |
6307 | fi |
6308 | ||
21be0a5a | 6309 | fi |
66dbcf2d RO |
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6311 | $as_echo "$ac_cv_path_SED" >&6; } | |
6312 | SED="$ac_cv_path_SED" | |
6313 | rm -f conftest.sed | |
21be0a5a | 6314 | |
66dbcf2d RO |
6315 | test -z "$SED" && SED=sed |
6316 | Xsed="$SED -e 1s/^X//" | |
21be0a5a | 6317 | |
21be0a5a JB |
6318 | |
6319 | ||
66dbcf2d RO |
6320 | |
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6329 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 6330 | if ${ac_cv_path_FGREP+:} false; then : |
21be0a5a JB |
6331 | $as_echo_n "(cached) " >&6 |
6332 | else | |
66dbcf2d RO |
6333 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6334 | then ac_cv_path_FGREP="$GREP -F" | |
6335 | else | |
6336 | if test -z "$FGREP"; then | |
6337 | ac_path_FGREP_found=false | |
6338 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6340 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
21be0a5a JB |
6341 | do |
6342 | IFS=$as_save_IFS | |
6343 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6344 | for ac_prog in fgrep; do |
21be0a5a | 6345 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6346 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6347 | as_fn_executable_p "$ac_path_FGREP" || continue |
66dbcf2d RO |
6348 | # Check for GNU ac_path_FGREP and select it if it is found. |
6349 | # Check for GNU $ac_path_FGREP | |
6350 | case `"$ac_path_FGREP" --version 2>&1` in | |
6351 | *GNU*) | |
6352 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6353 | *) | |
6354 | ac_count=0 | |
6355 | $as_echo_n 0123456789 >"conftest.in" | |
6356 | while : | |
6357 | do | |
6358 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6359 | mv "conftest.tmp" "conftest.in" | |
6360 | cp "conftest.in" "conftest.nl" | |
6361 | $as_echo 'FGREP' >> "conftest.nl" | |
6362 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6363 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6364 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6365 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6366 | # Best one so far, save it but keep looking for a better one | |
6367 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6368 | ac_path_FGREP_max=$ac_count | |
6369 | fi | |
6370 | # 10*(2^10) chars as input seems more than enough | |
6371 | test $ac_count -gt 10 && break | |
6372 | done | |
6373 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6374 | esac | |
6375 | ||
6376 | $ac_path_FGREP_found && break 3 | |
6377 | done | |
6378 | done | |
21be0a5a JB |
6379 | done |
6380 | IFS=$as_save_IFS | |
66dbcf2d | 6381 | if test -z "$ac_cv_path_FGREP"; then |
22e05272 | 6382 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
66dbcf2d RO |
6383 | fi |
6384 | else | |
6385 | ac_cv_path_FGREP=$FGREP | |
6386 | fi | |
21be0a5a | 6387 | |
66dbcf2d | 6388 | fi |
21be0a5a | 6389 | fi |
66dbcf2d RO |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6391 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6392 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
6393 | |
6394 | ||
66dbcf2d | 6395 | test -z "$GREP" && GREP=grep |
1cf3d07d SE |
6396 | |
6397 | ||
6398 | ||
6399 | ||
6de9cd9a | 6400 | |
1cf3d07d SE |
6401 | |
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
43e02a8a | 6408 | |
43e02a8a | 6409 | |
43e02a8a | 6410 | |
43e02a8a | 6411 | |
43e02a8a RW |
6412 | |
6413 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6414 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6415 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6416 | ||
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6418 | $as_echo_n "checking how to print strings... " >&6; } | |
6419 | # Test print first, because it will be a builtin if present. | |
6420 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6421 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6422 | ECHO='print -r --' | |
6423 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6424 | ECHO='printf %s\n' | |
6425 | else | |
6426 | # Use this function as a fallback that always works. | |
6427 | func_fallback_echo () | |
6428 | { | |
6429 | eval 'cat <<_LTECHO_EOF | |
6430 | $1 | |
6431 | _LTECHO_EOF' | |
6432 | } | |
6433 | ECHO='func_fallback_echo' | |
6434 | fi | |
6435 | ||
6436 | # func_echo_all arg... | |
6437 | # Invoke $ECHO with all args, space-separated. | |
6438 | func_echo_all () | |
6439 | { | |
6440 | $ECHO "" | |
6441 | } | |
6442 | ||
6443 | case "$ECHO" in | |
6444 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6445 | $as_echo "printf" >&6; } ;; | |
6446 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6447 | $as_echo "print -r" >&6; } ;; | |
6448 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6449 | $as_echo "cat" >&6; } ;; | |
6450 | esac | |
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
21be0a5a JB |
6463 | |
6464 | ||
5213506e | 6465 | |
5213506e | 6466 | |
66dbcf2d RO |
6467 | # Check whether --with-gnu-ld was given. |
6468 | if test "${with_gnu_ld+set}" = set; then : | |
6469 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6470 | else | |
6471 | with_gnu_ld=no | |
1cf3d07d | 6472 | fi |
21be0a5a | 6473 | |
66dbcf2d RO |
6474 | ac_prog=ld |
6475 | if test "$GCC" = yes; then | |
6476 | # Check if gcc -print-prog-name=ld gives a path. | |
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6478 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6479 | case $host in | |
6480 | *-*-mingw*) | |
6481 | # gcc leaves a trailing carriage return which upsets mingw | |
6482 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6483 | *) | |
6484 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6485 | esac | |
6486 | case $ac_prog in | |
6487 | # Accept absolute paths. | |
6488 | [\\/]* | ?:[\\/]*) | |
6489 | re_direlt='/[^/][^/]*/\.\./' | |
6490 | # Canonicalize the pathname of ld | |
6491 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6492 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6493 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6494 | done | |
6495 | test -z "$LD" && LD="$ac_prog" | |
6496 | ;; | |
6497 | "") | |
6498 | # If it fails, then pretend we aren't using GCC. | |
6499 | ac_prog=ld | |
6500 | ;; | |
6501 | *) | |
6502 | # If it is relative, then search for the first ld in PATH. | |
6503 | with_gnu_ld=unknown | |
6504 | ;; | |
6505 | esac | |
6506 | elif test "$with_gnu_ld" = yes; then | |
6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6508 | $as_echo_n "checking for GNU ld... " >&6; } | |
6509 | else | |
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6511 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6512 | fi | |
22e05272 | 6513 | if ${lt_cv_path_LD+:} false; then : |
66dbcf2d RO |
6514 | $as_echo_n "(cached) " >&6 |
6515 | else | |
6516 | if test -z "$LD"; then | |
6517 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6518 | for ac_dir in $PATH; do | |
6519 | IFS="$lt_save_ifs" | |
6520 | test -z "$ac_dir" && ac_dir=. | |
6521 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6522 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6523 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6524 | # but apparently some variants of GNU ld only accept -v. | |
6525 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6526 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6527 | *GNU* | *'with BFD'*) | |
6528 | test "$with_gnu_ld" != no && break | |
6529 | ;; | |
6530 | *) | |
6531 | test "$with_gnu_ld" != yes && break | |
6532 | ;; | |
6533 | esac | |
6534 | fi | |
6535 | done | |
6536 | IFS="$lt_save_ifs" | |
6537 | else | |
6538 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6539 | fi | |
6540 | fi | |
6541 | ||
6542 | LD="$lt_cv_path_LD" | |
6543 | if test -n "$LD"; then | |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6545 | $as_echo "$LD" >&6; } | |
6546 | else | |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6548 | $as_echo "no" >&6; } | |
6549 | fi | |
22e05272 | 6550 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
66dbcf2d RO |
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6552 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6553 | if ${lt_cv_prog_gnu_ld+:} false; then : |
66dbcf2d RO |
6554 | $as_echo_n "(cached) " >&6 |
6555 | else | |
6556 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6557 | case `$LD -v 2>&1 </dev/null` in | |
6558 | *GNU* | *'with BFD'*) | |
6559 | lt_cv_prog_gnu_ld=yes | |
6560 | ;; | |
6561 | *) | |
6562 | lt_cv_prog_gnu_ld=no | |
6563 | ;; | |
6564 | esac | |
6565 | fi | |
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6567 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6568 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
21be0a5a JB |
6569 | |
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
1cf3d07d SE |
6577 | |
6578 | ||
66dbcf2d RO |
6579 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6580 | ||
6581 | ||
6582 | ac_save_LDFLAGS="$LDFLAGS" | |
6583 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6584 | ||
6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6586 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6587 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6588 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
66dbcf2d RO |
6589 | fi |
6590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6591 | /* end confdefs.h. */ | |
6592 | ||
6593 | int | |
6594 | main () | |
6595 | { | |
6596 | return 0; | |
6597 | ; | |
6598 | return 0; | |
6599 | } | |
6600 | _ACEOF | |
6601 | if ac_fn_c_try_link "$LINENO"; then : | |
6602 | ac_hwcap_ldflags=yes | |
6603 | else | |
6604 | ac_hwcap_ldflags=no | |
6605 | fi | |
6606 | rm -f core conftest.err conftest.$ac_objext \ | |
6607 | conftest$ac_exeext conftest.$ac_ext | |
6608 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6609 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6610 | fi | |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6612 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6613 | ||
6614 | LDFLAGS="$ac_save_LDFLAGS" | |
6615 | ||
6616 | ||
6617 | ||
6618 | if test $ac_hwcap_ldflags != no; then | |
6619 | HAVE_HWCAP_TRUE= | |
6620 | HAVE_HWCAP_FALSE='#' | |
6621 | else | |
6622 | HAVE_HWCAP_TRUE='#' | |
6623 | HAVE_HWCAP_FALSE= | |
6624 | fi | |
6625 | ||
6626 | ||
6627 | ||
6628 | # Find other programs we need. | |
6629 | if test -n "$ac_tool_prefix"; then | |
6630 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6631 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6633 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6634 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 6635 | $as_echo_n "(cached) " >&6 |
38d24731 | 6636 | else |
66dbcf2d RO |
6637 | if test -n "$AS"; then |
6638 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6639 | else | |
6640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6641 | for as_dir in $PATH | |
5213506e RW |
6642 | do |
6643 | IFS=$as_save_IFS | |
6644 | test -z "$as_dir" && as_dir=. | |
5213506e | 6645 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6646 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6647 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6649 | break 2 | |
6650 | fi | |
6651 | done | |
5213506e | 6652 | done |
66dbcf2d RO |
6653 | IFS=$as_save_IFS |
6654 | ||
6655 | fi | |
6656 | fi | |
6657 | AS=$ac_cv_prog_AS | |
6658 | if test -n "$AS"; then | |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6660 | $as_echo "$AS" >&6; } | |
6661 | else | |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6663 | $as_echo "no" >&6; } | |
6664 | fi | |
6665 | ||
6666 | ||
6667 | fi | |
6668 | if test -z "$ac_cv_prog_AS"; then | |
6669 | ac_ct_AS=$AS | |
6670 | # Extract the first word of "as", so it can be a program name with args. | |
6671 | set dummy as; ac_word=$2 | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6673 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6674 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
66dbcf2d RO |
6675 | $as_echo_n "(cached) " >&6 |
6676 | else | |
6677 | if test -n "$ac_ct_AS"; then | |
6678 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6679 | else | |
6680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6681 | for as_dir in $PATH | |
6682 | do | |
6683 | IFS=$as_save_IFS | |
6684 | test -z "$as_dir" && as_dir=. | |
6685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6687 | ac_cv_prog_ac_ct_AS="as" |
6688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6689 | break 2 | |
6690 | fi | |
6691 | done | |
6692 | done | |
6693 | IFS=$as_save_IFS | |
6694 | ||
6695 | fi | |
6696 | fi | |
6697 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6698 | if test -n "$ac_ct_AS"; then | |
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6700 | $as_echo "$ac_ct_AS" >&6; } | |
6701 | else | |
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6703 | $as_echo "no" >&6; } | |
6704 | fi | |
6705 | ||
6706 | if test "x$ac_ct_AS" = x; then | |
6707 | AS="" | |
6708 | else | |
6709 | case $cross_compiling:$ac_tool_warned in | |
6710 | yes:) | |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6712 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6713 | ac_tool_warned=yes ;; | |
5213506e | 6714 | esac |
66dbcf2d RO |
6715 | AS=$ac_ct_AS |
6716 | fi | |
6717 | else | |
6718 | AS="$ac_cv_prog_AS" | |
6719 | fi | |
5213506e | 6720 | |
66dbcf2d RO |
6721 | if test -n "$ac_tool_prefix"; then |
6722 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6723 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6725 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6726 | if ${ac_cv_prog_AR+:} false; then : |
66dbcf2d RO |
6727 | $as_echo_n "(cached) " >&6 |
6728 | else | |
6729 | if test -n "$AR"; then | |
6730 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6731 | else | |
6732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6733 | for as_dir in $PATH | |
6734 | do | |
6735 | IFS=$as_save_IFS | |
6736 | test -z "$as_dir" && as_dir=. | |
6737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6739 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6741 | break 2 | |
6742 | fi | |
6743 | done | |
5213506e | 6744 | done |
66dbcf2d RO |
6745 | IFS=$as_save_IFS |
6746 | ||
6747 | fi | |
6748 | fi | |
6749 | AR=$ac_cv_prog_AR | |
6750 | if test -n "$AR"; then | |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6752 | $as_echo "$AR" >&6; } | |
6753 | else | |
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6755 | $as_echo "no" >&6; } | |
6756 | fi | |
6757 | ||
6758 | ||
6759 | fi | |
6760 | if test -z "$ac_cv_prog_AR"; then | |
6761 | ac_ct_AR=$AR | |
6762 | # Extract the first word of "ar", so it can be a program name with args. | |
6763 | set dummy ar; ac_word=$2 | |
6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6765 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6766 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
66dbcf2d RO |
6767 | $as_echo_n "(cached) " >&6 |
6768 | else | |
6769 | if test -n "$ac_ct_AR"; then | |
6770 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6771 | else | |
6772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6773 | for as_dir in $PATH | |
6774 | do | |
6775 | IFS=$as_save_IFS | |
6776 | test -z "$as_dir" && as_dir=. | |
6777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6779 | ac_cv_prog_ac_ct_AR="ar" |
6780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6781 | break 2 | |
6782 | fi | |
6783 | done | |
6784 | done | |
6785 | IFS=$as_save_IFS | |
6786 | ||
6787 | fi | |
6788 | fi | |
6789 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6790 | if test -n "$ac_ct_AR"; then | |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6792 | $as_echo "$ac_ct_AR" >&6; } | |
6793 | else | |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6795 | $as_echo "no" >&6; } | |
6796 | fi | |
6797 | ||
6798 | if test "x$ac_ct_AR" = x; then | |
6799 | AR="" | |
6800 | else | |
6801 | case $cross_compiling:$ac_tool_warned in | |
6802 | yes:) | |
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6805 | ac_tool_warned=yes ;; | |
6806 | esac | |
6807 | AR=$ac_ct_AR | |
6808 | fi | |
6809 | else | |
6810 | AR="$ac_cv_prog_AR" | |
6811 | fi | |
6812 | ||
6813 | if test -n "$ac_tool_prefix"; then | |
6814 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6815 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6817 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6818 | if ${ac_cv_prog_RANLIB+:} false; then : |
66dbcf2d RO |
6819 | $as_echo_n "(cached) " >&6 |
6820 | else | |
6821 | if test -n "$RANLIB"; then | |
6822 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6823 | else | |
6824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6825 | for as_dir in $PATH | |
6826 | do | |
6827 | IFS=$as_save_IFS | |
6828 | test -z "$as_dir" && as_dir=. | |
6829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6831 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6833 | break 2 | |
6834 | fi | |
6835 | done | |
6836 | done | |
6837 | IFS=$as_save_IFS | |
6838 | ||
6839 | fi | |
6840 | fi | |
6841 | RANLIB=$ac_cv_prog_RANLIB | |
6842 | if test -n "$RANLIB"; then | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6844 | $as_echo "$RANLIB" >&6; } | |
6845 | else | |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6847 | $as_echo "no" >&6; } | |
6848 | fi | |
6849 | ||
6850 | ||
6851 | fi | |
6852 | if test -z "$ac_cv_prog_RANLIB"; then | |
6853 | ac_ct_RANLIB=$RANLIB | |
6854 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6855 | set dummy ranlib; ac_word=$2 | |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6857 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6858 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
66dbcf2d RO |
6859 | $as_echo_n "(cached) " >&6 |
6860 | else | |
6861 | if test -n "$ac_ct_RANLIB"; then | |
6862 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6863 | else | |
6864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6865 | for as_dir in $PATH | |
6866 | do | |
6867 | IFS=$as_save_IFS | |
6868 | test -z "$as_dir" && as_dir=. | |
6869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6871 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6873 | break 2 | |
6874 | fi | |
6875 | done | |
5213506e RW |
6876 | done |
6877 | IFS=$as_save_IFS | |
66dbcf2d RO |
6878 | |
6879 | fi | |
6880 | fi | |
6881 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6882 | if test -n "$ac_ct_RANLIB"; then | |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6884 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5213506e | 6885 | else |
66dbcf2d RO |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6887 | $as_echo "no" >&6; } | |
1cf3d07d | 6888 | fi |
5213506e | 6889 | |
66dbcf2d RO |
6890 | if test "x$ac_ct_RANLIB" = x; then |
6891 | RANLIB="ranlib-not-found-in-path-error" | |
6892 | else | |
6893 | case $cross_compiling:$ac_tool_warned in | |
6894 | yes:) | |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6896 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6897 | ac_tool_warned=yes ;; | |
6898 | esac | |
6899 | RANLIB=$ac_ct_RANLIB | |
6900 | fi | |
6901 | else | |
6902 | RANLIB="$ac_cv_prog_RANLIB" | |
5213506e | 6903 | fi |
1cf3d07d | 6904 | |
66dbcf2d RO |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6906 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6907 | set x ${MAKE-make} | |
6908 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 6909 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
66dbcf2d RO |
6910 | $as_echo_n "(cached) " >&6 |
6911 | else | |
6912 | cat >conftest.make <<\_ACEOF | |
6913 | SHELL = /bin/sh | |
6914 | all: | |
6915 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6916 | _ACEOF | |
22e05272 | 6917 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
66dbcf2d RO |
6918 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6919 | *@@@%%%=?*=@@@%%%*) | |
6920 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6921 | *) | |
6922 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6923 | esac | |
6924 | rm -f conftest.make | |
6925 | fi | |
6926 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6928 | $as_echo "yes" >&6; } | |
6929 | SET_MAKE= | |
6930 | else | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6932 | $as_echo "no" >&6; } | |
6933 | SET_MAKE="MAKE=${MAKE-make}" | |
6934 | fi | |
1cf3d07d SE |
6935 | |
6936 | ||
6937 | ||
66dbcf2d RO |
6938 | # Configure libtool |
6939 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6940 | enable_dlopen=yes | |
1cf3d07d SE |
6941 | |
6942 | ||
6943 | ||
66dbcf2d RO |
6944 | case `pwd` in |
6945 | *\ * | *\ *) | |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6947 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6948 | esac | |
1cf3d07d SE |
6949 | |
6950 | ||
6951 | ||
66dbcf2d RO |
6952 | macro_version='2.2.7a' |
6953 | macro_revision='1.3134' | |
1cf3d07d SE |
6954 | |
6955 | ||
6956 | ||
6957 | ||
6958 | ||
6959 | ||
6960 | ||
6961 | ||
5213506e | 6962 | |
96b8a615 | 6963 | |
96b8a615 AJ |
6964 | |
6965 | ||
96b8a615 | 6966 | |
66dbcf2d | 6967 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 6968 | |
66dbcf2d RO |
6969 | # Backslashify metacharacters that are still active within |
6970 | # double-quoted strings. | |
6971 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
1cf3d07d | 6972 | |
66dbcf2d RO |
6973 | # Same as above, but do not quote variable references. |
6974 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
1cf3d07d | 6975 | |
66dbcf2d RO |
6976 | # Sed substitution to delay expansion of an escaped shell variable in a |
6977 | # double_quote_subst'ed string. | |
6978 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1cf3d07d | 6979 | |
66dbcf2d RO |
6980 | # Sed substitution to delay expansion of an escaped single quote. |
6981 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1cf3d07d | 6982 | |
66dbcf2d RO |
6983 | # Sed substitution to avoid accidental globbing in evaled expressions |
6984 | no_glob_subst='s/\*/\\\*/g' | |
1cf3d07d | 6985 | |
5213506e RW |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6987 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 6988 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 6989 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
6990 | else |
6991 | if test -n "$NM"; then | |
6992 | # Let the user override the test. | |
6993 | lt_cv_path_NM="$NM" | |
6994 | else | |
1cf3d07d SE |
6995 | lt_nm_to_check="${ac_tool_prefix}nm" |
6996 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6997 | lt_nm_to_check="$lt_nm_to_check nm" | |
6998 | fi | |
6999 | for lt_tmp_nm in $lt_nm_to_check; do | |
7000 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7001 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
7002 | IFS="$lt_save_ifs" | |
7003 | test -z "$ac_dir" && ac_dir=. | |
7004 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
7005 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
7006 | # Check to see if the nm accepts a BSD-compat flag. | |
7007 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
7008 | # nm: unknown option "B" ignored | |
7009 | # Tru64's nm complains that /dev/null is an invalid object file | |
7010 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
7011 | */dev/null* | *'Invalid file or object type'*) | |
7012 | lt_cv_path_NM="$tmp_nm -B" | |
7013 | break | |
7014 | ;; | |
7015 | *) | |
7016 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7017 | */dev/null*) | |
7018 | lt_cv_path_NM="$tmp_nm -p" | |
7019 | break | |
7020 | ;; | |
7021 | *) | |
7022 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7023 | continue # so that we can try to find one that supports BSD flags | |
7024 | ;; | |
7025 | esac | |
7026 | ;; | |
7027 | esac | |
7028 | fi | |
7029 | done | |
7030 | IFS="$lt_save_ifs" | |
7031 | done | |
7032 | : ${lt_cv_path_NM=no} | |
7033 | fi | |
7034 | fi | |
5213506e RW |
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7036 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
7037 | if test "$lt_cv_path_NM" != "no"; then |
7038 | NM="$lt_cv_path_NM" | |
7039 | else | |
7040 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
7041 | if test -n "$DUMPBIN"; then : |
7042 | # Let the user override the test. | |
7043 | else | |
7044 | if test -n "$ac_tool_prefix"; then | |
7045 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
7046 | do |
7047 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7048 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
7049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7050 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7051 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 7052 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7053 | else |
7054 | if test -n "$DUMPBIN"; then | |
7055 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7056 | else | |
7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7058 | for as_dir in $PATH | |
7059 | do | |
7060 | IFS=$as_save_IFS | |
7061 | test -z "$as_dir" && as_dir=. | |
5213506e | 7062 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7064 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 7065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7066 | break 2 |
7067 | fi | |
7068 | done | |
5213506e RW |
7069 | done |
7070 | IFS=$as_save_IFS | |
1cf3d07d SE |
7071 | |
7072 | fi | |
7073 | fi | |
7074 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7075 | if test -n "$DUMPBIN"; then | |
5213506e RW |
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7077 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 7078 | else |
5213506e RW |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7080 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7081 | fi |
7082 | ||
5213506e | 7083 | |
1cf3d07d SE |
7084 | test -n "$DUMPBIN" && break |
7085 | done | |
7086 | fi | |
7087 | if test -z "$DUMPBIN"; then | |
7088 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 7089 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
7090 | do |
7091 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7092 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7094 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7095 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 7096 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7097 | else |
7098 | if test -n "$ac_ct_DUMPBIN"; then | |
7099 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7100 | else | |
7101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7102 | for as_dir in $PATH | |
7103 | do | |
7104 | IFS=$as_save_IFS | |
7105 | test -z "$as_dir" && as_dir=. | |
5213506e | 7106 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7107 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7108 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 7109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7110 | break 2 |
7111 | fi | |
7112 | done | |
5213506e RW |
7113 | done |
7114 | IFS=$as_save_IFS | |
1cf3d07d SE |
7115 | |
7116 | fi | |
7117 | fi | |
7118 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7119 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7121 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 7122 | else |
5213506e RW |
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7124 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7125 | fi |
7126 | ||
5213506e | 7127 | |
1cf3d07d SE |
7128 | test -n "$ac_ct_DUMPBIN" && break |
7129 | done | |
1cf3d07d | 7130 | |
5213506e RW |
7131 | if test "x$ac_ct_DUMPBIN" = x; then |
7132 | DUMPBIN=":" | |
7133 | else | |
7134 | case $cross_compiling:$ac_tool_warned in | |
7135 | yes:) | |
7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7137 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7138 | ac_tool_warned=yes ;; | |
7139 | esac | |
7140 | DUMPBIN=$ac_ct_DUMPBIN | |
7141 | fi | |
96b8a615 | 7142 | fi |
1cf3d07d | 7143 | |
43e02a8a RW |
7144 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7145 | *COFF*) | |
7146 | DUMPBIN="$DUMPBIN -symbols" | |
7147 | ;; | |
7148 | *) | |
7149 | DUMPBIN=: | |
7150 | ;; | |
7151 | esac | |
7152 | fi | |
1cf3d07d SE |
7153 | |
7154 | if test "$DUMPBIN" != ":"; then | |
7155 | NM="$DUMPBIN" | |
7156 | fi | |
96b8a615 | 7157 | fi |
1cf3d07d SE |
7158 | test -z "$NM" && NM=nm |
7159 | ||
7160 | ||
96b8a615 | 7161 | |
1cf3d07d SE |
7162 | |
7163 | ||
7164 | ||
5213506e RW |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7166 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 7167 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 7168 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7169 | else |
7170 | lt_cv_nm_interface="BSD nm" | |
7171 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 7172 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
7173 | (eval "$ac_compile" 2>conftest.err) |
7174 | cat conftest.err >&5 | |
43e02a8a | 7175 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
7176 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7177 | cat conftest.err >&5 | |
43e02a8a | 7178 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
7179 | cat conftest.out >&5 |
7180 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7181 | lt_cv_nm_interface="MS dumpbin" | |
7182 | fi | |
7183 | rm -f conftest* | |
7184 | fi | |
5213506e RW |
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7186 | $as_echo "$lt_cv_nm_interface" >&6; } | |
96b8a615 | 7187 | |
5213506e RW |
7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7189 | $as_echo_n "checking whether ln -s works... " >&6; } | |
96b8a615 AJ |
7190 | LN_S=$as_ln_s |
7191 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7193 | $as_echo "yes" >&6; } | |
96b8a615 | 7194 | else |
5213506e RW |
7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7196 | $as_echo "no, using $LN_S" >&6; } | |
96b8a615 AJ |
7197 | fi |
7198 | ||
1cf3d07d | 7199 | # find the maximum length of command line arguments |
5213506e RW |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7201 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 7202 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 7203 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7204 | else |
7205 | i=0 | |
7206 | teststring="ABCD" | |
7207 | ||
7208 | case $build_os in | |
7209 | msdosdjgpp*) | |
7210 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7211 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7212 | # during glob expansion). Even if it were fixed, the result of this | |
7213 | # check would be larger than it should be. | |
7214 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7215 | ;; | |
7216 | ||
7217 | gnu*) | |
7218 | # Under GNU Hurd, this test is not required because there is | |
7219 | # no limit to the length of command line arguments. | |
7220 | # Libtool will interpret -1 as no limit whatsoever | |
7221 | lt_cv_sys_max_cmd_len=-1; | |
7222 | ;; | |
7223 | ||
d58dead8 | 7224 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
7225 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7226 | # about 5 minutes as the teststring grows exponentially. | |
7227 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7228 | # you end up with a "frozen" computer, even though with patience | |
7229 | # the test eventually succeeds (with a max line length of 256k). | |
7230 | # Instead, let's just punt: use the minimum linelength reported by | |
7231 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7232 | lt_cv_sys_max_cmd_len=8192; | |
7233 | ;; | |
7234 | ||
43e02a8a RW |
7235 | mint*) |
7236 | # On MiNT this can take a long time and run out of memory. | |
7237 | lt_cv_sys_max_cmd_len=8192; | |
7238 | ;; | |
7239 | ||
1cf3d07d SE |
7240 | amigaos*) |
7241 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7242 | # So we just punt and use a minimum line length of 8192. | |
7243 | lt_cv_sys_max_cmd_len=8192; | |
7244 | ;; | |
7245 | ||
7246 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7247 | # This has been around since 386BSD, at least. Likely further. | |
7248 | if test -x /sbin/sysctl; then | |
7249 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7250 | elif test -x /usr/sbin/sysctl; then | |
7251 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7252 | else | |
7253 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7254 | fi | |
7255 | # And add a safety zone | |
7256 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7257 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7258 | ;; | |
7259 | ||
7260 | interix*) | |
7261 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7262 | lt_cv_sys_max_cmd_len=196608 | |
7263 | ;; | |
7264 | ||
7265 | osf*) | |
7266 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7267 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7268 | # nice to cause kernel panics so lets avoid the loop below. | |
7269 | # First set a reasonable default. | |
7270 | lt_cv_sys_max_cmd_len=16384 | |
7271 | # | |
7272 | if test -x /sbin/sysconfig; then | |
7273 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7274 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7275 | esac | |
7276 | fi | |
7277 | ;; | |
7278 | sco3.2v5*) | |
7279 | lt_cv_sys_max_cmd_len=102400 | |
7280 | ;; | |
7281 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7282 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7283 | if test -n "$kargmax"; then | |
7284 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7285 | else | |
7286 | lt_cv_sys_max_cmd_len=32768 | |
7287 | fi | |
7288 | ;; | |
7289 | *) | |
d58dead8 PG |
7290 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7291 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
7292 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7293 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7294 | else | |
7295 | # Make teststring a little bigger before we do anything with it. | |
7296 | # a 1K string should be a reasonable start. | |
7297 | for i in 1 2 3 4 5 6 7 8 ; do | |
7298 | teststring=$teststring$teststring | |
7299 | done | |
7300 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7301 | # If test is not a shell built-in, we'll probably end up computing a | |
7302 | # maximum length that is only half of the actual maximum length, but | |
7303 | # we can't tell. | |
43e02a8a RW |
7304 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7305 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
7306 | test $i != 17 # 1/2 MB should be enough |
7307 | do | |
7308 | i=`expr $i + 1` | |
7309 | teststring=$teststring$teststring | |
7310 | done | |
7311 | # Only check the string length outside the loop. | |
7312 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7313 | teststring= | |
7314 | # Add a significant safety factor because C++ compilers can tack on | |
7315 | # massive amounts of additional arguments before passing them to the | |
7316 | # linker. It appears as though 1/2 is a usable value. | |
7317 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7318 | fi | |
1cf3d07d SE |
7319 | ;; |
7320 | esac | |
7321 | ||
7322 | fi | |
7323 | ||
7324 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7326 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 7327 | else |
5213506e RW |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7329 | $as_echo "none" >&6; } | |
1cf3d07d SE |
7330 | fi |
7331 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7332 | ||
7333 | ||
7334 | ||
7335 | ||
7336 | ||
7337 | ||
1cf3d07d SE |
7338 | : ${CP="cp -f"} |
7339 | : ${MV="mv -f"} | |
7340 | : ${RM="rm -f"} | |
7341 | ||
5213506e RW |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7343 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
7344 | # Try some XSI features |
7345 | xsi_shell=no | |
7346 | ( _lt_dummy="a/b/c" | |
7347 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
d58dead8 PG |
7348 | = c,a/b,, \ |
7349 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7350 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 7351 | && xsi_shell=yes |
5213506e RW |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7353 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
7354 | |
7355 | ||
5213506e RW |
7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7357 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
7358 | lt_shell_append=no |
7359 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7360 | >/dev/null 2>&1 \ | |
7361 | && lt_shell_append=yes | |
5213506e RW |
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7363 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
7364 | |
7365 | ||
7366 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7367 | lt_unset=unset | |
7368 | else | |
7369 | lt_unset=false | |
7370 | fi | |
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | # test EBCDIC or ASCII | |
7377 | case `echo X|tr X '\101'` in | |
7378 | A) # ASCII based system | |
7379 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7380 | lt_SP2NL='tr \040 \012' | |
7381 | lt_NL2SP='tr \015\012 \040\040' | |
7382 | ;; | |
7383 | *) # EBCDIC based system | |
7384 | lt_SP2NL='tr \100 \n' | |
7385 | lt_NL2SP='tr \r\n \100\100' | |
7386 | ;; | |
7387 | esac | |
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | ||
7394 | ||
7395 | ||
7396 | ||
5213506e RW |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7398 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 7399 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 7400 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7401 | else |
7402 | lt_cv_ld_reload_flag='-r' | |
7403 | fi | |
5213506e RW |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7405 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
7406 | reload_flag=$lt_cv_ld_reload_flag |
7407 | case $reload_flag in | |
7408 | "" | " "*) ;; | |
7409 | *) reload_flag=" $reload_flag" ;; | |
7410 | esac | |
7411 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7412 | case $host_os in | |
7413 | darwin*) | |
7414 | if test "$GCC" = yes; then | |
7415 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7416 | else | |
7417 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7418 | fi | |
7419 | ;; | |
7420 | esac | |
7421 | ||
7422 | ||
7423 | ||
7424 | ||
7425 | ||
7426 | ||
7427 | ||
7428 | ||
7429 | ||
d58dead8 PG |
7430 | if test -n "$ac_tool_prefix"; then |
7431 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7432 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7434 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7435 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 7436 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7437 | else |
7438 | if test -n "$OBJDUMP"; then | |
7439 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7440 | else | |
7441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7442 | for as_dir in $PATH | |
7443 | do | |
7444 | IFS=$as_save_IFS | |
7445 | test -z "$as_dir" && as_dir=. | |
5213506e | 7446 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7448 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 7449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7450 | break 2 |
7451 | fi | |
7452 | done | |
5213506e RW |
7453 | done |
7454 | IFS=$as_save_IFS | |
d58dead8 PG |
7455 | |
7456 | fi | |
7457 | fi | |
7458 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7459 | if test -n "$OBJDUMP"; then | |
5213506e RW |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7461 | $as_echo "$OBJDUMP" >&6; } | |
d58dead8 | 7462 | else |
5213506e RW |
7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7464 | $as_echo "no" >&6; } | |
d58dead8 PG |
7465 | fi |
7466 | ||
5213506e | 7467 | |
d58dead8 PG |
7468 | fi |
7469 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7470 | ac_ct_OBJDUMP=$OBJDUMP | |
7471 | # Extract the first word of "objdump", so it can be a program name with args. | |
7472 | set dummy objdump; ac_word=$2 | |
5213506e RW |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7474 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7475 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 7476 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7477 | else |
7478 | if test -n "$ac_ct_OBJDUMP"; then | |
7479 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7480 | else | |
7481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7482 | for as_dir in $PATH | |
7483 | do | |
7484 | IFS=$as_save_IFS | |
7485 | test -z "$as_dir" && as_dir=. | |
5213506e | 7486 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7488 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 7489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7490 | break 2 |
7491 | fi | |
7492 | done | |
5213506e RW |
7493 | done |
7494 | IFS=$as_save_IFS | |
d58dead8 | 7495 | |
d58dead8 PG |
7496 | fi |
7497 | fi | |
7498 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7499 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7501 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d58dead8 | 7502 | else |
5213506e RW |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7504 | $as_echo "no" >&6; } | |
d58dead8 PG |
7505 | fi |
7506 | ||
5213506e RW |
7507 | if test "x$ac_ct_OBJDUMP" = x; then |
7508 | OBJDUMP="false" | |
7509 | else | |
7510 | case $cross_compiling:$ac_tool_warned in | |
7511 | yes:) | |
7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7513 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7514 | ac_tool_warned=yes ;; | |
7515 | esac | |
7516 | OBJDUMP=$ac_ct_OBJDUMP | |
7517 | fi | |
d58dead8 PG |
7518 | else |
7519 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7520 | fi | |
7521 | ||
7522 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
7530 | ||
1cf3d07d | 7531 | |
5213506e RW |
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7533 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 7534 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 7535 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7536 | else |
7537 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7538 | lt_cv_file_magic_test_file= | |
7539 | lt_cv_deplibs_check_method='unknown' | |
7540 | # Need to set the preceding variable on all platforms that support | |
7541 | # interlibrary dependencies. | |
7542 | # 'none' -- dependencies not supported. | |
7543 | # `unknown' -- same as none, but documents that we really don't know. | |
7544 | # 'pass_all' -- all dependencies passed with no checks. | |
7545 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
7546 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7547 | # which responds to the $file_magic_cmd with a given extended regex. | |
96b8a615 AJ |
7548 | # If you have `file' or equivalent on your system and you're not sure |
7549 | # whether `pass_all' will *always* work, you probably want this one. | |
7550 | ||
7551 | case $host_os in | |
4f6bebc3 | 7552 | aix[4-9]*) |
96b8a615 AJ |
7553 | lt_cv_deplibs_check_method=pass_all |
7554 | ;; | |
7555 | ||
7556 | beos*) | |
7557 | lt_cv_deplibs_check_method=pass_all | |
7558 | ;; | |
7559 | ||
1cf3d07d | 7560 | bsdi[45]*) |
96b8a615 AJ |
7561 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7562 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7563 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7564 | ;; | |
7565 | ||
1cf3d07d SE |
7566 | cygwin*) |
7567 | # func_win32_libid is a shell function defined in ltmain.sh | |
7568 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7569 | lt_cv_file_magic_cmd='func_win32_libid' | |
7570 | ;; | |
7571 | ||
7572 | mingw* | pw32*) | |
7573 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7574 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7575 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
7576 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7577 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
7578 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7579 | lt_cv_file_magic_cmd='func_win32_libid' | |
7580 | else | |
7581 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7582 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7583 | fi | |
96b8a615 AJ |
7584 | ;; |
7585 | ||
43e02a8a | 7586 | cegcc*) |
d58dead8 PG |
7587 | # use the weaker test based on 'objdump'. See mingw*. |
7588 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7589 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7590 | ;; | |
7591 | ||
96b8a615 | 7592 | darwin* | rhapsody*) |
96b8a615 AJ |
7593 | lt_cv_deplibs_check_method=pass_all |
7594 | ;; | |
7595 | ||
1cf3d07d SE |
7596 | freebsd* | dragonfly*) |
7597 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
96b8a615 AJ |
7598 | case $host_cpu in |
7599 | i*86 ) | |
7600 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7601 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 7602 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
96b8a615 AJ |
7603 | lt_cv_file_magic_cmd=/usr/bin/file |
7604 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7605 | ;; | |
7606 | esac | |
7607 | else | |
7608 | lt_cv_deplibs_check_method=pass_all | |
7609 | fi | |
7610 | ;; | |
7611 | ||
7612 | gnu*) | |
7613 | lt_cv_deplibs_check_method=pass_all | |
7614 | ;; | |
7615 | ||
43e02a8a RW |
7616 | haiku*) |
7617 | lt_cv_deplibs_check_method=pass_all | |
7618 | ;; | |
7619 | ||
1cf3d07d SE |
7620 | hpux10.20* | hpux11*) |
7621 | lt_cv_file_magic_cmd=/usr/bin/file | |
96b8a615 | 7622 | case $host_cpu in |
96b8a615 AJ |
7623 | ia64*) |
7624 | 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 |
7625 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7626 | ;; | |
1cf3d07d | 7627 | hppa*64*) |
43e02a8a | 7628 | 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 | 7629 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
96b8a615 AJ |
7630 | ;; |
7631 | *) | |
43e02a8a | 7632 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 7633 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
96b8a615 AJ |
7634 | ;; |
7635 | esac | |
1cf3d07d SE |
7636 | ;; |
7637 | ||
7638 | interix[3-9]*) | |
7639 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7640 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7641 | ;; | |
7642 | ||
7643 | irix5* | irix6* | nonstopux*) | |
7644 | case $LD in | |
7645 | *-32|*"-32 ") libmagic=32-bit;; | |
7646 | *-n32|*"-n32 ") libmagic=N32;; | |
7647 | *-64|*"-64 ") libmagic=64-bit;; | |
7648 | *) libmagic=never-match;; | |
7649 | esac | |
96b8a615 AJ |
7650 | lt_cv_deplibs_check_method=pass_all |
7651 | ;; | |
7652 | ||
7653 | # This must be Linux ELF. | |
e9085da5 | 7654 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
2c92e90f | 7655 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
7656 | ;; |
7657 | ||
1cf3d07d SE |
7658 | netbsd*) |
7659 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7660 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
96b8a615 | 7661 | else |
1cf3d07d | 7662 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
96b8a615 AJ |
7663 | fi |
7664 | ;; | |
7665 | ||
1cf3d07d | 7666 | newos6*) |
96b8a615 AJ |
7667 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7668 | lt_cv_file_magic_cmd=/usr/bin/file | |
7669 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7670 | ;; | |
7671 | ||
1cf3d07d SE |
7672 | *nto* | *qnx*) |
7673 | lt_cv_deplibs_check_method=pass_all | |
7674 | ;; | |
7675 | ||
7676 | openbsd*) | |
7677 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7678 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7679 | else | |
7680 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7681 | fi | |
7682 | ;; | |
7683 | ||
96b8a615 | 7684 | osf3* | osf4* | osf5*) |
96b8a615 AJ |
7685 | lt_cv_deplibs_check_method=pass_all |
7686 | ;; | |
7687 | ||
1cf3d07d | 7688 | rdos*) |
96b8a615 AJ |
7689 | lt_cv_deplibs_check_method=pass_all |
7690 | ;; | |
7691 | ||
7692 | solaris*) | |
7693 | lt_cv_deplibs_check_method=pass_all | |
96b8a615 AJ |
7694 | ;; |
7695 | ||
1cf3d07d | 7696 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
96b8a615 AJ |
7697 | lt_cv_deplibs_check_method=pass_all |
7698 | ;; | |
7699 | ||
1cf3d07d | 7700 | sysv4 | sysv4.3*) |
96b8a615 | 7701 | case $host_vendor in |
96b8a615 AJ |
7702 | motorola) |
7703 | 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]' | |
7704 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7705 | ;; | |
1cf3d07d SE |
7706 | ncr) |
7707 | lt_cv_deplibs_check_method=pass_all | |
7708 | ;; | |
7709 | sequent) | |
7710 | lt_cv_file_magic_cmd='/bin/file' | |
7711 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7712 | ;; | |
7713 | sni) | |
7714 | lt_cv_file_magic_cmd='/bin/file' | |
7715 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7716 | lt_cv_file_magic_test_file=/lib/libc.so | |
7717 | ;; | |
7718 | siemens) | |
7719 | lt_cv_deplibs_check_method=pass_all | |
7720 | ;; | |
7721 | pc) | |
7722 | lt_cv_deplibs_check_method=pass_all | |
7723 | ;; | |
96b8a615 AJ |
7724 | esac |
7725 | ;; | |
1cf3d07d SE |
7726 | |
7727 | tpf*) | |
7728 | lt_cv_deplibs_check_method=pass_all | |
7729 | ;; | |
96b8a615 AJ |
7730 | esac |
7731 | ||
7732 | fi | |
5213506e RW |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7734 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
96b8a615 AJ |
7735 | file_magic_cmd=$lt_cv_file_magic_cmd |
7736 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 7737 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
96b8a615 AJ |
7738 | |
7739 | ||
7740 | ||
7741 | ||
96b8a615 | 7742 | |
96b8a615 | 7743 | |
96b8a615 | 7744 | |
96b8a615 | 7745 | |
6de9cd9a | 7746 | |
6de9cd9a | 7747 | |
6de9cd9a | 7748 | |
6de9cd9a | 7749 | |
96b8a615 | 7750 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
7751 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7752 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7754 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7755 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 7756 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7757 | else |
1cf3d07d SE |
7758 | if test -n "$AR"; then |
7759 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
96b8a615 AJ |
7760 | else |
7761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7762 | for as_dir in $PATH | |
7763 | do | |
7764 | IFS=$as_save_IFS | |
7765 | test -z "$as_dir" && as_dir=. | |
5213506e | 7766 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7768 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 7769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7770 | break 2 |
7771 | fi | |
7772 | done | |
5213506e RW |
7773 | done |
7774 | IFS=$as_save_IFS | |
6de9cd9a | 7775 | |
96b8a615 AJ |
7776 | fi |
7777 | fi | |
1cf3d07d SE |
7778 | AR=$ac_cv_prog_AR |
7779 | if test -n "$AR"; then | |
5213506e RW |
7780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7781 | $as_echo "$AR" >&6; } | |
96b8a615 | 7782 | else |
5213506e RW |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7784 | $as_echo "no" >&6; } | |
6de9cd9a DN |
7785 | fi |
7786 | ||
5213506e | 7787 | |
96b8a615 | 7788 | fi |
1cf3d07d SE |
7789 | if test -z "$ac_cv_prog_AR"; then |
7790 | ac_ct_AR=$AR | |
7791 | # Extract the first word of "ar", so it can be a program name with args. | |
7792 | set dummy ar; ac_word=$2 | |
5213506e RW |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7794 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7795 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 7796 | $as_echo_n "(cached) " >&6 |
96b8a615 | 7797 | else |
1cf3d07d SE |
7798 | if test -n "$ac_ct_AR"; then |
7799 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
96b8a615 AJ |
7800 | else |
7801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7802 | for as_dir in $PATH | |
7803 | do | |
7804 | IFS=$as_save_IFS | |
7805 | test -z "$as_dir" && as_dir=. | |
5213506e | 7806 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7808 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 7809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7810 | break 2 |
7811 | fi | |
7812 | done | |
5213506e RW |
7813 | done |
7814 | IFS=$as_save_IFS | |
6de9cd9a | 7815 | |
96b8a615 AJ |
7816 | fi |
7817 | fi | |
1cf3d07d SE |
7818 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7819 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7821 | $as_echo "$ac_ct_AR" >&6; } | |
6de9cd9a | 7822 | else |
5213506e RW |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7824 | $as_echo "no" >&6; } | |
6de9cd9a | 7825 | fi |
6de9cd9a | 7826 | |
5213506e RW |
7827 | if test "x$ac_ct_AR" = x; then |
7828 | AR="false" | |
7829 | else | |
7830 | case $cross_compiling:$ac_tool_warned in | |
7831 | yes:) | |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7833 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7834 | ac_tool_warned=yes ;; | |
7835 | esac | |
7836 | AR=$ac_ct_AR | |
7837 | fi | |
96b8a615 | 7838 | else |
1cf3d07d | 7839 | AR="$ac_cv_prog_AR" |
6de9cd9a DN |
7840 | fi |
7841 | ||
1cf3d07d SE |
7842 | test -z "$AR" && AR=ar |
7843 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7844 | ||
7845 | ||
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | ||
96b8a615 AJ |
7855 | if test -n "$ac_tool_prefix"; then |
7856 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7857 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7859 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7860 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 7861 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7862 | else |
96b8a615 AJ |
7863 | if test -n "$STRIP"; then |
7864 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7865 | else | |
7866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7867 | for as_dir in $PATH | |
7868 | do | |
7869 | IFS=$as_save_IFS | |
7870 | test -z "$as_dir" && as_dir=. | |
5213506e | 7871 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7873 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 7874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7875 | break 2 |
7876 | fi | |
7877 | done | |
5213506e RW |
7878 | done |
7879 | IFS=$as_save_IFS | |
6de9cd9a | 7880 | |
96b8a615 AJ |
7881 | fi |
7882 | fi | |
7883 | STRIP=$ac_cv_prog_STRIP | |
7884 | if test -n "$STRIP"; then | |
5213506e RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7886 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 7887 | else |
5213506e RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7889 | $as_echo "no" >&6; } | |
96b8a615 | 7890 | fi |
6de9cd9a | 7891 | |
5213506e | 7892 | |
6de9cd9a | 7893 | fi |
96b8a615 AJ |
7894 | if test -z "$ac_cv_prog_STRIP"; then |
7895 | ac_ct_STRIP=$STRIP | |
7896 | # Extract the first word of "strip", so it can be a program name with args. | |
7897 | set dummy strip; ac_word=$2 | |
5213506e RW |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7899 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7900 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 7901 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7902 | else |
7903 | if test -n "$ac_ct_STRIP"; then | |
7904 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7905 | else | |
7906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7907 | for as_dir in $PATH | |
7908 | do | |
7909 | IFS=$as_save_IFS | |
7910 | test -z "$as_dir" && as_dir=. | |
5213506e | 7911 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7913 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 7914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7915 | break 2 |
7916 | fi | |
7917 | done | |
5213506e RW |
7918 | done |
7919 | IFS=$as_save_IFS | |
96b8a615 | 7920 | |
6de9cd9a DN |
7921 | fi |
7922 | fi | |
96b8a615 AJ |
7923 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7924 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7926 | $as_echo "$ac_ct_STRIP" >&6; } | |
96b8a615 | 7927 | else |
5213506e RW |
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7929 | $as_echo "no" >&6; } | |
6de9cd9a | 7930 | fi |
6de9cd9a | 7931 | |
5213506e RW |
7932 | if test "x$ac_ct_STRIP" = x; then |
7933 | STRIP=":" | |
7934 | else | |
7935 | case $cross_compiling:$ac_tool_warned in | |
7936 | yes:) | |
7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7938 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7939 | ac_tool_warned=yes ;; | |
7940 | esac | |
7941 | STRIP=$ac_ct_STRIP | |
7942 | fi | |
96b8a615 AJ |
7943 | else |
7944 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
7945 | fi |
7946 | ||
1cf3d07d | 7947 | test -z "$STRIP" && STRIP=: |
6de9cd9a DN |
7948 | |
7949 | ||
7950 | ||
7951 | ||
7952 | ||
7953 | ||
1cf3d07d SE |
7954 | if test -n "$ac_tool_prefix"; then |
7955 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7956 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7958 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7959 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 7960 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7961 | else |
1cf3d07d SE |
7962 | if test -n "$RANLIB"; then |
7963 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7964 | else | |
7965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7966 | for as_dir in $PATH | |
7967 | do | |
7968 | IFS=$as_save_IFS | |
7969 | test -z "$as_dir" && as_dir=. | |
5213506e | 7970 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7972 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 7973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7974 | break 2 |
7975 | fi | |
7976 | done | |
5213506e RW |
7977 | done |
7978 | IFS=$as_save_IFS | |
1cf3d07d SE |
7979 | |
7980 | fi | |
7981 | fi | |
7982 | RANLIB=$ac_cv_prog_RANLIB | |
7983 | if test -n "$RANLIB"; then | |
5213506e RW |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7985 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 7986 | else |
5213506e RW |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7988 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7989 | fi |
7990 | ||
5213506e | 7991 | |
1cf3d07d SE |
7992 | fi |
7993 | if test -z "$ac_cv_prog_RANLIB"; then | |
7994 | ac_ct_RANLIB=$RANLIB | |
7995 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7996 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7998 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7999 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 8000 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8001 | else |
8002 | if test -n "$ac_ct_RANLIB"; then | |
8003 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8004 | else | |
8005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8006 | for as_dir in $PATH | |
8007 | do | |
8008 | IFS=$as_save_IFS | |
8009 | test -z "$as_dir" && as_dir=. | |
5213506e | 8010 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8012 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 8013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8014 | break 2 |
8015 | fi | |
8016 | done | |
5213506e RW |
8017 | done |
8018 | IFS=$as_save_IFS | |
1cf3d07d | 8019 | |
1cf3d07d SE |
8020 | fi |
8021 | fi | |
8022 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8023 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8025 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 8026 | else |
5213506e RW |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8028 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8029 | fi |
8030 | ||
5213506e RW |
8031 | if test "x$ac_ct_RANLIB" = x; then |
8032 | RANLIB=":" | |
8033 | else | |
8034 | case $cross_compiling:$ac_tool_warned in | |
8035 | yes:) | |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8037 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8038 | ac_tool_warned=yes ;; | |
8039 | esac | |
8040 | RANLIB=$ac_ct_RANLIB | |
8041 | fi | |
1cf3d07d SE |
8042 | else |
8043 | RANLIB="$ac_cv_prog_RANLIB" | |
8044 | fi | |
8045 | ||
8046 | test -z "$RANLIB" && RANLIB=: | |
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | # Determine commands to create old-style static archives. | |
d58dead8 | 8054 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8055 | old_postinstall_cmds='chmod 644 $oldlib' |
8056 | old_postuninstall_cmds= | |
8057 | ||
8058 | if test -n "$RANLIB"; then | |
8059 | case $host_os in | |
8060 | openbsd*) | |
8061 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8062 | ;; | |
8063 | *) | |
8064 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8065 | ;; | |
8066 | esac | |
8067 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8068 | fi | |
8069 | ||
43e02a8a RW |
8070 | case $host_os in |
8071 | darwin*) | |
8072 | lock_old_archive_extraction=yes ;; | |
8073 | *) | |
8074 | lock_old_archive_extraction=no ;; | |
8075 | esac | |
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
1cf3d07d SE |
8082 | |
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | # If no C compiler was specified, use CC. | |
8116 | LTCC=${LTCC-"$CC"} | |
8117 | ||
8118 | # If no C compiler flags were specified, use CFLAGS. | |
8119 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8120 | ||
8121 | # Allow CC to be a program name with arguments. | |
8122 | compiler=$CC | |
8123 | ||
8124 | ||
8125 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8127 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 8128 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 8129 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8130 | else |
8131 | ||
8132 | # These are sane defaults that work on at least a few old systems. | |
8133 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8134 | ||
8135 | # Character class describing NM global symbol codes. | |
8136 | symcode='[BCDEGRST]' | |
8137 | ||
8138 | # Regexp to match symbols that can be accessed directly from C. | |
8139 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8140 | ||
8141 | # Define system-specific variables. | |
8142 | case $host_os in | |
8143 | aix*) | |
8144 | symcode='[BCDT]' | |
8145 | ;; | |
d58dead8 | 8146 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8147 | symcode='[ABCDGISTW]' |
8148 | ;; | |
8149 | hpux*) | |
8150 | if test "$host_cpu" = ia64; then | |
8151 | symcode='[ABCDEGRST]' | |
8152 | fi | |
8153 | ;; | |
8154 | irix* | nonstopux*) | |
8155 | symcode='[BCDEGRST]' | |
8156 | ;; | |
8157 | osf*) | |
8158 | symcode='[BCDEGQRST]' | |
8159 | ;; | |
8160 | solaris*) | |
8161 | symcode='[BDRT]' | |
8162 | ;; | |
8163 | sco3.2v5*) | |
8164 | symcode='[DT]' | |
8165 | ;; | |
8166 | sysv4.2uw2*) | |
8167 | symcode='[DT]' | |
8168 | ;; | |
8169 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8170 | symcode='[ABDT]' | |
8171 | ;; | |
8172 | sysv4) | |
8173 | symcode='[DFNSTU]' | |
8174 | ;; | |
8175 | esac | |
8176 | ||
8177 | # If we're using GNU nm, then use its standard symbol codes. | |
8178 | case `$NM -V 2>&1` in | |
8179 | *GNU* | *'with BFD'*) | |
8180 | symcode='[ABCDGIRSTW]' ;; | |
8181 | esac | |
8182 | ||
8183 | # Transform an extracted symbol line into a proper C declaration. | |
8184 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8185 | # so use this general approach. | |
8186 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8187 | ||
8188 | # Transform an extracted symbol line into symbol name and symbol address | |
8189 | 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 | 8190 | 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 |
8191 | |
8192 | # Handle CRLF in mingw tool chain | |
8193 | opt_cr= | |
8194 | case $build_os in | |
8195 | mingw*) | |
8196 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8197 | ;; | |
8198 | esac | |
8199 | ||
8200 | # Try without a prefix underscore, then with it. | |
8201 | for ac_symprfx in "" "_"; do | |
8202 | ||
8203 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8204 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8205 | ||
8206 | # Write the raw and C identifiers. | |
8207 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8208 | # Fake it for dumpbin and say T for any non-static function | |
8209 | # and D for any global variable. | |
8210 | # Also find C++ and __fastcall symbols from MSVC++, | |
8211 | # which start with @ or ?. | |
8212 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8213 | " {last_section=section; section=\$ 3};"\ | |
8214 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8215 | " \$ 0!~/External *\|/{next};"\ | |
8216 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8217 | " {if(hide[section]) next};"\ | |
8218 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8219 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8220 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8221 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8222 | " ' prfx=^$ac_symprfx" | |
8223 | else | |
8224 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8225 | fi | |
8226 | ||
8227 | # Check to see that the pipe works correctly. | |
8228 | pipe_works=no | |
8229 | ||
8230 | rm -f conftest* | |
8231 | cat > conftest.$ac_ext <<_LT_EOF | |
8232 | #ifdef __cplusplus | |
8233 | extern "C" { | |
8234 | #endif | |
8235 | char nm_test_var; | |
8236 | void nm_test_func(void); | |
8237 | void nm_test_func(void){} | |
8238 | #ifdef __cplusplus | |
8239 | } | |
8240 | #endif | |
8241 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8242 | _LT_EOF | |
8243 | ||
5213506e | 8244 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8245 | (eval $ac_compile) 2>&5 |
8246 | ac_status=$? | |
5213506e RW |
8247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8248 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8249 | # Now try to grab the symbols. |
8250 | nlist=conftest.nm | |
43e02a8a RW |
8251 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8252 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8253 | ac_status=$? |
5213506e RW |
8254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8255 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8256 | # Try sorting and uniquifying the output. |
8257 | if sort "$nlist" | uniq > "$nlist"T; then | |
8258 | mv -f "$nlist"T "$nlist" | |
8259 | else | |
8260 | rm -f "$nlist"T | |
8261 | fi | |
8262 | ||
8263 | # Make sure that we snagged all the symbols we need. | |
8264 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8265 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8266 | cat <<_LT_EOF > conftest.$ac_ext | |
8267 | #ifdef __cplusplus | |
8268 | extern "C" { | |
8269 | #endif | |
8270 | ||
8271 | _LT_EOF | |
8272 | # Now generate the symbol file. | |
8273 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8274 | ||
8275 | cat <<_LT_EOF >> conftest.$ac_ext | |
8276 | ||
8277 | /* The mapping between symbol names and symbols. */ | |
8278 | const struct { | |
8279 | const char *name; | |
8280 | void *address; | |
8281 | } | |
8282 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8283 | { | |
8284 | { "@PROGRAM@", (void *) 0 }, | |
8285 | _LT_EOF | |
8286 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8287 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8288 | {0, (void *) 0} | |
8289 | }; | |
8290 | ||
8291 | /* This works around a problem in FreeBSD linker */ | |
8292 | #ifdef FREEBSD_WORKAROUND | |
8293 | static const void *lt_preloaded_setup() { | |
8294 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8295 | } | |
8296 | #endif | |
8297 | ||
8298 | #ifdef __cplusplus | |
8299 | } | |
8300 | #endif | |
8301 | _LT_EOF | |
8302 | # Now try linking the two files. | |
8303 | mv conftest.$ac_objext conftstm.$ac_objext | |
8304 | lt_save_LIBS="$LIBS" | |
8305 | lt_save_CFLAGS="$CFLAGS" | |
8306 | LIBS="conftstm.$ac_objext" | |
8307 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8308 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
8309 | (eval $ac_link) 2>&5 |
8310 | ac_status=$? | |
5213506e RW |
8311 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8312 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8313 | pipe_works=yes |
8314 | fi | |
8315 | LIBS="$lt_save_LIBS" | |
8316 | CFLAGS="$lt_save_CFLAGS" | |
8317 | else | |
8318 | echo "cannot find nm_test_func in $nlist" >&5 | |
8319 | fi | |
8320 | else | |
8321 | echo "cannot find nm_test_var in $nlist" >&5 | |
8322 | fi | |
8323 | else | |
8324 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8325 | fi | |
8326 | else | |
8327 | echo "$progname: failed program was:" >&5 | |
8328 | cat conftest.$ac_ext >&5 | |
8329 | fi | |
d58dead8 | 8330 | rm -rf conftest* conftst* |
1cf3d07d SE |
8331 | |
8332 | # Do not use the global_symbol_pipe unless it works. | |
8333 | if test "$pipe_works" = yes; then | |
8334 | break | |
8335 | else | |
8336 | lt_cv_sys_global_symbol_pipe= | |
8337 | fi | |
8338 | done | |
8339 | ||
8340 | fi | |
8341 | ||
8342 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8343 | lt_cv_sys_global_symbol_to_cdecl= | |
8344 | fi | |
8345 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8347 | $as_echo "failed" >&6; } | |
1cf3d07d | 8348 | else |
5213506e RW |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8350 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
8351 | fi |
8352 | ||
8353 | ||
8354 | ||
8355 | ||
8356 | ||
8357 | ||
8358 | ||
8359 | ||
8360 | ||
8361 | ||
8362 | ||
8363 | ||
8364 | ||
8365 | ||
8366 | ||
d58dead8 PG |
8367 | |
8368 | ||
8369 | ||
8370 | ||
8371 | ||
1cf3d07d SE |
8372 | |
8373 | ||
5213506e RW |
8374 | # Check whether --enable-libtool-lock was given. |
8375 | if test "${enable_libtool_lock+set}" = set; then : | |
8376 | enableval=$enable_libtool_lock; | |
8377 | fi | |
1cf3d07d | 8378 | |
1cf3d07d | 8379 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6de9cd9a | 8380 | |
96b8a615 AJ |
8381 | # Some flags need to be propagated to the compiler or linker for good |
8382 | # libtool support. | |
8383 | case $host in | |
1cf3d07d | 8384 | ia64-*-hpux*) |
96b8a615 | 8385 | # Find out which ABI we are using. |
1cf3d07d | 8386 | echo 'int i;' > conftest.$ac_ext |
5213506e | 8387 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8388 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8389 | ac_status=$? |
5213506e RW |
8390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8391 | test $ac_status = 0; }; then | |
96b8a615 | 8392 | case `/usr/bin/file conftest.$ac_objext` in |
1cf3d07d SE |
8393 | *ELF-32*) |
8394 | HPUX_IA64_MODE="32" | |
8395 | ;; | |
8396 | *ELF-64*) | |
8397 | HPUX_IA64_MODE="64" | |
8398 | ;; | |
96b8a615 | 8399 | esac |
96b8a615 AJ |
8400 | fi |
8401 | rm -rf conftest* | |
8402 | ;; | |
1cf3d07d | 8403 | *-*-irix6*) |
96b8a615 | 8404 | # Find out which ABI we are using. |
43e02a8a | 8405 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8406 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8407 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8408 | ac_status=$? |
5213506e RW |
8409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8410 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8411 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8412 | case `/usr/bin/file conftest.$ac_objext` in | |
8413 | *32-bit*) | |
8414 | LD="${LD-ld} -melf32bsmip" | |
8415 | ;; | |
8416 | *N32*) | |
8417 | LD="${LD-ld} -melf32bmipn32" | |
8418 | ;; | |
8419 | *64-bit*) | |
8420 | LD="${LD-ld} -melf64bmip" | |
8421 | ;; | |
8422 | esac | |
8423 | else | |
8424 | case `/usr/bin/file conftest.$ac_objext` in | |
8425 | *32-bit*) | |
8426 | LD="${LD-ld} -32" | |
8427 | ;; | |
8428 | *N32*) | |
8429 | LD="${LD-ld} -n32" | |
8430 | ;; | |
8431 | *64-bit*) | |
8432 | LD="${LD-ld} -64" | |
8433 | ;; | |
8434 | esac | |
8435 | fi | |
96b8a615 AJ |
8436 | fi |
8437 | rm -rf conftest* | |
8438 | ;; | |
6de9cd9a | 8439 | |
3cbe17f7 | 8440 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d | 8441 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
96b8a615 AJ |
8442 | # Find out which ABI we are using. |
8443 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8444 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8445 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8446 | ac_status=$? |
5213506e RW |
8447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8448 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8449 | case `/usr/bin/file conftest.o` in |
8450 | *32-bit*) | |
8451 | case $host in | |
8452 | x86_64-*kfreebsd*-gnu) | |
8453 | LD="${LD-ld} -m elf_i386_fbsd" | |
8454 | ;; | |
8455 | x86_64-*linux*) | |
e6d5f8c9 L |
8456 | case `/usr/bin/file conftest.o` in |
8457 | *x86-64*) | |
8458 | LD="${LD-ld} -m elf32_x86_64" | |
8459 | ;; | |
8460 | *) | |
8461 | LD="${LD-ld} -m elf_i386" | |
8462 | ;; | |
8463 | esac | |
1cf3d07d | 8464 | ;; |
3cbe17f7 AM |
8465 | powerpc64le-*linux*) |
8466 | LD="${LD-ld} -m elf32lppclinux" | |
8467 | ;; | |
8468 | powerpc64-*linux*) | |
1cf3d07d SE |
8469 | LD="${LD-ld} -m elf32ppclinux" |
8470 | ;; | |
8471 | s390x-*linux*) | |
8472 | LD="${LD-ld} -m elf_s390" | |
8473 | ;; | |
8474 | sparc64-*linux*) | |
8475 | LD="${LD-ld} -m elf32_sparc" | |
8476 | ;; | |
8477 | esac | |
8478 | ;; | |
8479 | *64-bit*) | |
8480 | case $host in | |
8481 | x86_64-*kfreebsd*-gnu) | |
8482 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8483 | ;; | |
8484 | x86_64-*linux*) | |
8485 | LD="${LD-ld} -m elf_x86_64" | |
8486 | ;; | |
3cbe17f7 AM |
8487 | powerpcle-*linux*) |
8488 | LD="${LD-ld} -m elf64lppc" | |
8489 | ;; | |
8490 | powerpc-*linux*) | |
1cf3d07d SE |
8491 | LD="${LD-ld} -m elf64ppc" |
8492 | ;; | |
8493 | s390*-*linux*|s390*-*tpf*) | |
8494 | LD="${LD-ld} -m elf64_s390" | |
8495 | ;; | |
8496 | sparc*-*linux*) | |
8497 | LD="${LD-ld} -m elf64_sparc" | |
8498 | ;; | |
8499 | esac | |
8500 | ;; | |
96b8a615 | 8501 | esac |
6de9cd9a | 8502 | fi |
96b8a615 AJ |
8503 | rm -rf conftest* |
8504 | ;; | |
6de9cd9a | 8505 | |
96b8a615 AJ |
8506 | *-*-sco3.2v5*) |
8507 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8508 | SAVE_CFLAGS="$CFLAGS" | |
8509 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8511 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8512 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 8513 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8514 | else |
1cf3d07d | 8515 | ac_ext=c |
96b8a615 AJ |
8516 | ac_cpp='$CPP $CPPFLAGS' |
8517 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8518 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8519 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 8520 | |
f02d008e | 8521 | if test x$gcc_no_link = xyes; then |
22e05272 | 8522 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 8523 | fi |
5213506e | 8524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 8525 | /* end confdefs.h. */ |
6de9cd9a DN |
8526 | |
8527 | int | |
8528 | main () | |
8529 | { | |
96b8a615 | 8530 | |
6de9cd9a DN |
8531 | ; |
8532 | return 0; | |
8533 | } | |
8534 | _ACEOF | |
5213506e | 8535 | if ac_fn_c_try_link "$LINENO"; then : |
96b8a615 | 8536 | lt_cv_cc_needs_belf=yes |
6de9cd9a | 8537 | else |
5213506e | 8538 | lt_cv_cc_needs_belf=no |
6de9cd9a | 8539 | fi |
5213506e RW |
8540 | rm -f core conftest.err conftest.$ac_objext \ |
8541 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
8542 | ac_ext=c |
8543 | ac_cpp='$CPP $CPPFLAGS' | |
8544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8547 | ||
6de9cd9a | 8548 | fi |
5213506e RW |
8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8550 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
96b8a615 AJ |
8551 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8552 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8553 | CFLAGS="$SAVE_CFLAGS" | |
8554 | fi | |
8555 | ;; | |
1cf3d07d SE |
8556 | sparc*-*solaris*) |
8557 | # Find out which ABI we are using. | |
8558 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8559 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8560 | (eval $ac_compile) 2>&5 |
8561 | ac_status=$? | |
5213506e RW |
8562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8563 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8564 | case `/usr/bin/file conftest.o` in |
8565 | *64-bit*) | |
8566 | case $lt_cv_prog_gnu_ld in | |
8567 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
d58dead8 PG |
8568 | *) |
8569 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8570 | LD="${LD-ld} -64" | |
8571 | fi | |
8572 | ;; | |
1cf3d07d SE |
8573 | esac |
8574 | ;; | |
8575 | esac | |
8576 | fi | |
8577 | rm -rf conftest* | |
8578 | ;; | |
96b8a615 AJ |
8579 | esac |
8580 | ||
1cf3d07d | 8581 | need_locks="$enable_libtool_lock" |
96b8a615 | 8582 | |
d58dead8 PG |
8583 | |
8584 | case $host_os in | |
8585 | rhapsody* | darwin*) | |
8586 | if test -n "$ac_tool_prefix"; then | |
8587 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8588 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8590 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8591 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 8592 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
8593 | else |
8594 | if test -n "$DSYMUTIL"; then | |
8595 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8596 | else | |
8597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8598 | for as_dir in $PATH | |
8599 | do | |
8600 | IFS=$as_save_IFS | |
8601 | test -z "$as_dir" && as_dir=. | |
5213506e | 8602 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 8604 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8606 | break 2 |
8607 | fi | |
8608 | done | |
5213506e RW |
8609 | done |
8610 | IFS=$as_save_IFS | |
d58dead8 PG |
8611 | |
8612 | fi | |
8613 | fi | |
8614 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8615 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8617 | $as_echo "$DSYMUTIL" >&6; } | |
d58dead8 | 8618 | else |
5213506e RW |
8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8620 | $as_echo "no" >&6; } | |
d58dead8 PG |
8621 | fi |
8622 | ||
5213506e | 8623 | |
d58dead8 PG |
8624 | fi |
8625 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8626 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8627 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8628 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8630 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8631 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 8632 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8633 | else |
21be0a5a JB |
8634 | if test -n "$ac_ct_DSYMUTIL"; then |
8635 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d58dead8 PG |
8636 | else |
8637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8638 | for as_dir in $PATH | |
8639 | do | |
8640 | IFS=$as_save_IFS | |
8641 | test -z "$as_dir" && as_dir=. | |
5213506e | 8642 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8644 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 8645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8646 | break 2 |
8647 | fi | |
8648 | done | |
5213506e RW |
8649 | done |
8650 | IFS=$as_save_IFS | |
d58dead8 | 8651 | |
d58dead8 PG |
8652 | fi |
8653 | fi | |
21be0a5a JB |
8654 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8655 | if test -n "$ac_ct_DSYMUTIL"; then | |
8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8657 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d58dead8 | 8658 | else |
5213506e RW |
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8660 | $as_echo "no" >&6; } | |
d58dead8 PG |
8661 | fi |
8662 | ||
21be0a5a JB |
8663 | if test "x$ac_ct_DSYMUTIL" = x; then |
8664 | DSYMUTIL=":" | |
5213506e RW |
8665 | else |
8666 | case $cross_compiling:$ac_tool_warned in | |
8667 | yes:) | |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8669 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8670 | ac_tool_warned=yes ;; | |
8671 | esac | |
21be0a5a | 8672 | DSYMUTIL=$ac_ct_DSYMUTIL |
5213506e | 8673 | fi |
d58dead8 | 8674 | else |
21be0a5a | 8675 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d58dead8 PG |
8676 | fi |
8677 | ||
8678 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8679 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8680 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8682 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8683 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 8684 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8685 | else |
21be0a5a JB |
8686 | if test -n "$NMEDIT"; then |
8687 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8688 | else |
8689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8690 | for as_dir in $PATH | |
8691 | do | |
8692 | IFS=$as_save_IFS | |
8693 | test -z "$as_dir" && as_dir=. | |
5213506e | 8694 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8695 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8696 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 8697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8698 | break 2 |
8699 | fi | |
8700 | done | |
5213506e RW |
8701 | done |
8702 | IFS=$as_save_IFS | |
d58dead8 PG |
8703 | |
8704 | fi | |
8705 | fi | |
21be0a5a JB |
8706 | NMEDIT=$ac_cv_prog_NMEDIT |
8707 | if test -n "$NMEDIT"; then | |
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8709 | $as_echo "$NMEDIT" >&6; } | |
d58dead8 | 8710 | else |
5213506e RW |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8712 | $as_echo "no" >&6; } | |
d58dead8 PG |
8713 | fi |
8714 | ||
5213506e | 8715 | |
d58dead8 | 8716 | fi |
21be0a5a JB |
8717 | if test -z "$ac_cv_prog_NMEDIT"; then |
8718 | ac_ct_NMEDIT=$NMEDIT | |
8719 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8720 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8722 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8723 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 8724 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8725 | else |
21be0a5a JB |
8726 | if test -n "$ac_ct_NMEDIT"; then |
8727 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8728 | else |
8729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8730 | for as_dir in $PATH | |
8731 | do | |
8732 | IFS=$as_save_IFS | |
8733 | test -z "$as_dir" && as_dir=. | |
5213506e | 8734 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8735 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8736 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 8737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8738 | break 2 |
8739 | fi | |
8740 | done | |
5213506e RW |
8741 | done |
8742 | IFS=$as_save_IFS | |
d58dead8 | 8743 | |
d58dead8 PG |
8744 | fi |
8745 | fi | |
21be0a5a JB |
8746 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8747 | if test -n "$ac_ct_NMEDIT"; then | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8749 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d58dead8 | 8750 | else |
5213506e RW |
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8752 | $as_echo "no" >&6; } | |
d58dead8 PG |
8753 | fi |
8754 | ||
21be0a5a JB |
8755 | if test "x$ac_ct_NMEDIT" = x; then |
8756 | NMEDIT=":" | |
5213506e RW |
8757 | else |
8758 | case $cross_compiling:$ac_tool_warned in | |
8759 | yes:) | |
8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8761 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8762 | ac_tool_warned=yes ;; | |
8763 | esac | |
21be0a5a | 8764 | NMEDIT=$ac_ct_NMEDIT |
5213506e | 8765 | fi |
d58dead8 | 8766 | else |
21be0a5a | 8767 | NMEDIT="$ac_cv_prog_NMEDIT" |
d58dead8 PG |
8768 | fi |
8769 | ||
8770 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8771 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8772 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8774 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8775 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8776 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8777 | else |
21be0a5a JB |
8778 | if test -n "$LIPO"; then |
8779 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d58dead8 PG |
8780 | else |
8781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8782 | for as_dir in $PATH | |
8783 | do | |
8784 | IFS=$as_save_IFS | |
8785 | test -z "$as_dir" && as_dir=. | |
5213506e | 8786 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8788 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 8789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8790 | break 2 |
8791 | fi | |
8792 | done | |
5213506e RW |
8793 | done |
8794 | IFS=$as_save_IFS | |
d58dead8 PG |
8795 | |
8796 | fi | |
8797 | fi | |
21be0a5a JB |
8798 | LIPO=$ac_cv_prog_LIPO |
8799 | if test -n "$LIPO"; then | |
8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8801 | $as_echo "$LIPO" >&6; } | |
d58dead8 | 8802 | else |
5213506e RW |
8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8804 | $as_echo "no" >&6; } | |
d58dead8 PG |
8805 | fi |
8806 | ||
5213506e | 8807 | |
d58dead8 | 8808 | fi |
21be0a5a JB |
8809 | if test -z "$ac_cv_prog_LIPO"; then |
8810 | ac_ct_LIPO=$LIPO | |
8811 | # Extract the first word of "lipo", so it can be a program name with args. | |
8812 | set dummy lipo; ac_word=$2 | |
5213506e RW |
8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8814 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8815 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 8816 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8817 | else |
21be0a5a JB |
8818 | if test -n "$ac_ct_LIPO"; then |
8819 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d58dead8 PG |
8820 | else |
8821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8822 | for as_dir in $PATH | |
8823 | do | |
8824 | IFS=$as_save_IFS | |
8825 | test -z "$as_dir" && as_dir=. | |
5213506e | 8826 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8828 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 8829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8830 | break 2 |
8831 | fi | |
8832 | done | |
5213506e RW |
8833 | done |
8834 | IFS=$as_save_IFS | |
d58dead8 | 8835 | |
d58dead8 PG |
8836 | fi |
8837 | fi | |
21be0a5a JB |
8838 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8839 | if test -n "$ac_ct_LIPO"; then | |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8841 | $as_echo "$ac_ct_LIPO" >&6; } | |
d58dead8 | 8842 | else |
5213506e RW |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8844 | $as_echo "no" >&6; } | |
d58dead8 PG |
8845 | fi |
8846 | ||
21be0a5a JB |
8847 | if test "x$ac_ct_LIPO" = x; then |
8848 | LIPO=":" | |
5213506e RW |
8849 | else |
8850 | case $cross_compiling:$ac_tool_warned in | |
8851 | yes:) | |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8853 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8854 | ac_tool_warned=yes ;; | |
8855 | esac | |
21be0a5a | 8856 | LIPO=$ac_ct_LIPO |
5213506e | 8857 | fi |
d58dead8 | 8858 | else |
21be0a5a | 8859 | LIPO="$ac_cv_prog_LIPO" |
d58dead8 PG |
8860 | fi |
8861 | ||
21be0a5a JB |
8862 | if test -n "$ac_tool_prefix"; then |
8863 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8864 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8866 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8867 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 8868 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8869 | else |
21be0a5a JB |
8870 | if test -n "$OTOOL"; then |
8871 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
43e02a8a | 8872 | else |
21be0a5a JB |
8873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8874 | for as_dir in $PATH | |
8875 | do | |
8876 | IFS=$as_save_IFS | |
8877 | test -z "$as_dir" && as_dir=. | |
8878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8880 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8882 | break 2 | |
8883 | fi | |
8884 | done | |
8885 | done | |
8886 | IFS=$as_save_IFS | |
43e02a8a RW |
8887 | |
8888 | fi | |
21be0a5a JB |
8889 | fi |
8890 | OTOOL=$ac_cv_prog_OTOOL | |
8891 | if test -n "$OTOOL"; then | |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8893 | $as_echo "$OTOOL" >&6; } | |
8894 | else | |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8896 | $as_echo "no" >&6; } | |
8897 | fi | |
8898 | ||
d58dead8 | 8899 | |
1cf3d07d | 8900 | fi |
21be0a5a JB |
8901 | if test -z "$ac_cv_prog_OTOOL"; then |
8902 | ac_ct_OTOOL=$OTOOL | |
8903 | # Extract the first word of "otool", so it can be a program name with args. | |
8904 | set dummy otool; ac_word=$2 | |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8906 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8907 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 8908 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8909 | else |
21be0a5a JB |
8910 | if test -n "$ac_ct_OTOOL"; then |
8911 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8912 | else | |
8913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8914 | for as_dir in $PATH | |
1cf3d07d | 8915 | do |
21be0a5a JB |
8916 | IFS=$as_save_IFS |
8917 | test -z "$as_dir" && as_dir=. | |
8918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8920 | ac_cv_prog_ac_ct_OTOOL="otool" |
8921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8922 | break 2 | |
8923 | fi | |
8924 | done | |
8925 | done | |
8926 | IFS=$as_save_IFS | |
6de9cd9a | 8927 | |
21be0a5a JB |
8928 | fi |
8929 | fi | |
8930 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8931 | if test -n "$ac_ct_OTOOL"; then | |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8933 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5213506e | 8934 | else |
21be0a5a JB |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8936 | $as_echo "no" >&6; } | |
1cf3d07d | 8937 | fi |
96b8a615 | 8938 | |
21be0a5a JB |
8939 | if test "x$ac_ct_OTOOL" = x; then |
8940 | OTOOL=":" | |
8941 | else | |
8942 | case $cross_compiling:$ac_tool_warned in | |
8943 | yes:) | |
8944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8945 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8946 | ac_tool_warned=yes ;; | |
8947 | esac | |
8948 | OTOOL=$ac_ct_OTOOL | |
8949 | fi | |
1cf3d07d | 8950 | else |
21be0a5a | 8951 | OTOOL="$ac_cv_prog_OTOOL" |
1cf3d07d | 8952 | fi |
6de9cd9a | 8953 | |
21be0a5a JB |
8954 | if test -n "$ac_tool_prefix"; then |
8955 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8956 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8958 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8959 | if ${ac_cv_prog_OTOOL64+:} false; then : |
21be0a5a JB |
8960 | $as_echo_n "(cached) " >&6 |
8961 | else | |
8962 | if test -n "$OTOOL64"; then | |
8963 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8964 | else | |
8965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8966 | for as_dir in $PATH | |
8967 | do | |
8968 | IFS=$as_save_IFS | |
8969 | test -z "$as_dir" && as_dir=. | |
8970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8972 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8974 | break 2 | |
8975 | fi | |
1cf3d07d | 8976 | done |
21be0a5a JB |
8977 | done |
8978 | IFS=$as_save_IFS | |
8979 | ||
8980 | fi | |
8981 | fi | |
8982 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8983 | if test -n "$OTOOL64"; then | |
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8985 | $as_echo "$OTOOL64" >&6; } | |
8986 | else | |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8988 | $as_echo "no" >&6; } | |
1cf3d07d | 8989 | fi |
6de9cd9a | 8990 | |
96b8a615 | 8991 | |
1cf3d07d | 8992 | fi |
21be0a5a JB |
8993 | if test -z "$ac_cv_prog_OTOOL64"; then |
8994 | ac_ct_OTOOL64=$OTOOL64 | |
8995 | # Extract the first word of "otool64", so it can be a program name with args. | |
8996 | set dummy otool64; ac_word=$2 | |
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8998 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8999 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
21be0a5a | 9000 | $as_echo_n "(cached) " >&6 |
96b8a615 | 9001 | else |
21be0a5a JB |
9002 | if test -n "$ac_ct_OTOOL64"; then |
9003 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
9004 | else | |
9005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9006 | for as_dir in $PATH | |
96b8a615 | 9007 | do |
21be0a5a JB |
9008 | IFS=$as_save_IFS |
9009 | test -z "$as_dir" && as_dir=. | |
9010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9012 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
9013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9014 | break 2 | |
9015 | fi | |
9016 | done | |
9017 | done | |
9018 | IFS=$as_save_IFS | |
96b8a615 | 9019 | |
21be0a5a JB |
9020 | fi |
9021 | fi | |
9022 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9023 | if test -n "$ac_ct_OTOOL64"; then | |
9024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9025 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5213506e | 9026 | else |
21be0a5a JB |
9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9028 | $as_echo "no" >&6; } | |
96b8a615 AJ |
9029 | fi |
9030 | ||
21be0a5a JB |
9031 | if test "x$ac_ct_OTOOL64" = x; then |
9032 | OTOOL64=":" | |
9033 | else | |
9034 | case $cross_compiling:$ac_tool_warned in | |
9035 | yes:) | |
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9037 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9038 | ac_tool_warned=yes ;; | |
9039 | esac | |
9040 | OTOOL64=$ac_ct_OTOOL64 | |
9041 | fi | |
6de9cd9a | 9042 | else |
21be0a5a | 9043 | OTOOL64="$ac_cv_prog_OTOOL64" |
6de9cd9a | 9044 | fi |
6de9cd9a | 9045 | |
5213506e | 9046 | |
1cf3d07d | 9047 | |
1cf3d07d SE |
9048 | |
9049 | ||
6de9cd9a | 9050 | |
1cf3d07d | 9051 | |
6de9cd9a | 9052 | |
1cf3d07d | 9053 | |
5213506e | 9054 | |
6de9cd9a | 9055 | |
e87045f3 | 9056 | |
15e92535 | 9057 | |
5213506e | 9058 | |
15e92535 | 9059 | |
15e92535 | 9060 | |
21be0a5a JB |
9061 | |
9062 | ||
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | ||
9071 | ||
9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9073 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 9074 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
21be0a5a | 9075 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 9076 | else |
21be0a5a JB |
9077 | lt_cv_apple_cc_single_mod=no |
9078 | if test -z "${LT_MULTI_MODULE}"; then | |
9079 | # By default we will add the -single_module flag. You can override | |
9080 | # by either setting the environment variable LT_MULTI_MODULE | |
9081 | # non-empty at configure time, or by adding -multi_module to the | |
9082 | # link flags. | |
9083 | rm -rf libconftest.dylib* | |
9084 | echo "int foo(void){return 1;}" > conftest.c | |
9085 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9086 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9087 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9088 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9089 | _lt_result=$? | |
9090 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9091 | lt_cv_apple_cc_single_mod=yes | |
9092 | else | |
9093 | cat conftest.err >&5 | |
9094 | fi | |
9095 | rm -rf libconftest.dylib* | |
9096 | rm -f conftest.* | |
9097 | fi | |
9098 | fi | |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9100 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9102 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 9103 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
21be0a5a JB |
9104 | $as_echo_n "(cached) " >&6 |
9105 | else | |
9106 | lt_cv_ld_exported_symbols_list=no | |
9107 | save_LDFLAGS=$LDFLAGS | |
9108 | echo "_main" > conftest.sym | |
9109 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9110 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9111 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
9112 | fi |
9113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 9114 | /* end confdefs.h. */ |
15e92535 | 9115 | |
1cf3d07d SE |
9116 | int |
9117 | main () | |
9118 | { | |
21be0a5a JB |
9119 | |
9120 | ; | |
5213506e | 9121 | return 0; |
1cf3d07d | 9122 | } |
15e92535 | 9123 | _ACEOF |
21be0a5a JB |
9124 | if ac_fn_c_try_link "$LINENO"; then : |
9125 | lt_cv_ld_exported_symbols_list=yes | |
5213506e | 9126 | else |
21be0a5a | 9127 | lt_cv_ld_exported_symbols_list=no |
1cf3d07d | 9128 | fi |
21be0a5a JB |
9129 | rm -f core conftest.err conftest.$ac_objext \ |
9130 | conftest$ac_exeext conftest.$ac_ext | |
9131 | LDFLAGS="$save_LDFLAGS" | |
15e92535 FXC |
9132 | |
9133 | fi | |
21be0a5a JB |
9134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9135 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9137 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 9138 | if ${lt_cv_ld_force_load+:} false; then : |
21be0a5a JB |
9139 | $as_echo_n "(cached) " >&6 |
9140 | else | |
9141 | lt_cv_ld_force_load=no | |
9142 | cat > conftest.c << _LT_EOF | |
9143 | int forced_loaded() { return 2;} | |
9144 | _LT_EOF | |
9145 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9146 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9147 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9148 | $AR cru libconftest.a conftest.o 2>&5 | |
9149 | cat > conftest.c << _LT_EOF | |
9150 | int main() { return 0;} | |
9151 | _LT_EOF | |
9152 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9153 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9154 | _lt_result=$? | |
9155 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9156 | lt_cv_ld_force_load=yes | |
9157 | else | |
9158 | cat conftest.err >&5 | |
9159 | fi | |
9160 | rm -f conftest.err libconftest.a conftest conftest.c | |
9161 | rm -rf conftest.dSYM | |
1cf3d07d SE |
9162 | |
9163 | fi | |
21be0a5a JB |
9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9165 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
9166 | case $host_os in | |
9167 | rhapsody* | darwin1.[012]) | |
9168 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
9169 | darwin1.*) | |
9170 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
9171 | darwin*) # darwin 5.x on | |
9172 | # if running on 10.5 or later, the deployment target defaults | |
9173 | # to the OS version, if on x86, and 10.4, the deployment | |
9174 | # target defaults to 10.4. Don't you love it? | |
9175 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
9176 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9177 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ebf6d33b | 9178 | 10.[012][,.]*) |
21be0a5a JB |
9179 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
9180 | 10.*) | |
9181 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
9182 | esac | |
9183 | ;; | |
9184 | esac | |
9185 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9186 | _lt_dar_single_mod='$single_module' | |
9187 | fi | |
9188 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9189 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9190 | else | |
9191 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9192 | fi | |
9193 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9194 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9195 | else | |
9196 | _lt_dsymutil= | |
9197 | fi | |
9198 | ;; | |
9199 | esac | |
1cf3d07d | 9200 | |
1cf3d07d | 9201 | for ac_header in dlfcn.h |
5213506e RW |
9202 | do : |
9203 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9204 | " | |
22e05272 | 9205 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 9206 | cat >>confdefs.h <<_ACEOF |
5213506e | 9207 | #define HAVE_DLFCN_H 1 |
9cdc381b | 9208 | _ACEOF |
9cdc381b | 9209 | |
1cf3d07d SE |
9210 | fi |
9211 | ||
9212 | done | |
9213 | ||
9214 | ||
9215 | ||
43e02a8a RW |
9216 | |
9217 | ||
d58dead8 PG |
9218 | # Set options |
9219 | ||
9220 | ||
9221 | ||
9222 | ||
9223 | enable_win32_dll=no | |
9224 | ||
9225 | ||
5213506e RW |
9226 | # Check whether --enable-shared was given. |
9227 | if test "${enable_shared+set}" = set; then : | |
9228 | enableval=$enable_shared; p=${PACKAGE-default} | |
d58dead8 PG |
9229 | case $enableval in |
9230 | yes) enable_shared=yes ;; | |
9231 | no) enable_shared=no ;; | |
9232 | *) | |
9233 | enable_shared=no | |
9234 | # Look at the argument we got. We use all the common list separators. | |
9235 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9236 | for pkg in $enableval; do | |
9237 | IFS="$lt_save_ifs" | |
9238 | if test "X$pkg" = "X$p"; then | |
9239 | enable_shared=yes | |
9240 | fi | |
9241 | done | |
9242 | IFS="$lt_save_ifs" | |
9243 | ;; | |
9244 | esac | |
9245 | else | |
9246 | enable_shared=yes | |
5213506e RW |
9247 | fi |
9248 | ||
d58dead8 PG |
9249 | |
9250 | ||
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
9256 | ||
5213506e RW |
9257 | # Check whether --enable-static was given. |
9258 | if test "${enable_static+set}" = set; then : | |
9259 | enableval=$enable_static; p=${PACKAGE-default} | |
d58dead8 PG |
9260 | case $enableval in |
9261 | yes) enable_static=yes ;; | |
9262 | no) enable_static=no ;; | |
9263 | *) | |
9264 | enable_static=no | |
9265 | # Look at the argument we got. We use all the common list separators. | |
9266 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9267 | for pkg in $enableval; do | |
9268 | IFS="$lt_save_ifs" | |
9269 | if test "X$pkg" = "X$p"; then | |
9270 | enable_static=yes | |
9271 | fi | |
9272 | done | |
9273 | IFS="$lt_save_ifs" | |
9274 | ;; | |
9275 | esac | |
9276 | else | |
9277 | enable_static=yes | |
5213506e RW |
9278 | fi |
9279 | ||
d58dead8 PG |
9280 | |
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
5213506e RW |
9289 | # Check whether --with-pic was given. |
9290 | if test "${with_pic+set}" = set; then : | |
9291 | withval=$with_pic; pic_mode="$withval" | |
d58dead8 PG |
9292 | else |
9293 | pic_mode=default | |
5213506e RW |
9294 | fi |
9295 | ||
d58dead8 PG |
9296 | |
9297 | test -z "$pic_mode" && pic_mode=default | |
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
5213506e RW |
9305 | # Check whether --enable-fast-install was given. |
9306 | if test "${enable_fast_install+set}" = set; then : | |
9307 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
d58dead8 PG |
9308 | case $enableval in |
9309 | yes) enable_fast_install=yes ;; | |
9310 | no) enable_fast_install=no ;; | |
9311 | *) | |
9312 | enable_fast_install=no | |
9313 | # Look at the argument we got. We use all the common list separators. | |
9314 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9315 | for pkg in $enableval; do | |
9316 | IFS="$lt_save_ifs" | |
9317 | if test "X$pkg" = "X$p"; then | |
9318 | enable_fast_install=yes | |
9319 | fi | |
9320 | done | |
9321 | IFS="$lt_save_ifs" | |
9322 | ;; | |
9323 | esac | |
9324 | else | |
9325 | enable_fast_install=yes | |
5213506e RW |
9326 | fi |
9327 | ||
d58dead8 PG |
9328 | |
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
1cf3d07d SE |
9338 | # This can be used to rebuild libtool when needed |
9339 | LIBTOOL_DEPS="$ltmain" | |
9340 | ||
9341 | # Always use our own libtool. | |
9342 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
43e02a8a | 9366 | |
1cf3d07d SE |
9367 | |
9368 | ||
9369 | test -z "$LN_S" && LN_S="ln -s" | |
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9cdc381b | 9375 | |
1cf3d07d SE |
9376 | |
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | if test -n "${ZSH_VERSION+set}" ; then | |
9385 | setopt NO_GLOB_SUBST | |
9cdc381b | 9386 | fi |
9cdc381b | 9387 | |
5213506e RW |
9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9389 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9390 | if ${lt_cv_objdir+:} false; then : |
5213506e | 9391 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9392 | else |
1cf3d07d SE |
9393 | rm -f .libs 2>/dev/null |
9394 | mkdir .libs 2>/dev/null | |
9395 | if test -d .libs; then | |
9396 | lt_cv_objdir=.libs | |
9397 | else | |
9398 | # MS-DOS does not allow filenames that begin with a dot. | |
9399 | lt_cv_objdir=_libs | |
9cdc381b | 9400 | fi |
1cf3d07d | 9401 | rmdir .libs 2>/dev/null |
9cdc381b | 9402 | fi |
5213506e RW |
9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9404 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
9405 | objdir=$lt_cv_objdir |
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9cdc381b BD |
9410 | |
9411 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d | 9412 | #define LT_OBJDIR "$lt_cv_objdir/" |
9cdc381b BD |
9413 | _ACEOF |
9414 | ||
1cf3d07d SE |
9415 | |
9416 | ||
9417 | ||
1cf3d07d SE |
9418 | case $host_os in |
9419 | aix3*) | |
9420 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9421 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9422 | # vanish in a puff of smoke. | |
9423 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9424 | COLLECT_NAMES= | |
9425 | export COLLECT_NAMES | |
9426 | fi | |
9427 | ;; | |
9428 | esac | |
9429 | ||
1cf3d07d SE |
9430 | # Global variables: |
9431 | ofile=libtool | |
9432 | can_build_shared=yes | |
9433 | ||
9434 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9435 | # which needs '.lib'). | |
9436 | libext=a | |
9437 | ||
9438 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9439 | ||
9440 | old_CC="$CC" | |
9441 | old_CFLAGS="$CFLAGS" | |
9442 | ||
9443 | # Set sane defaults for various variables | |
9444 | test -z "$CC" && CC=cc | |
9445 | test -z "$LTCC" && LTCC=$CC | |
9446 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9447 | test -z "$LD" && LD=ld | |
9448 | test -z "$ac_objext" && ac_objext=o | |
9449 | ||
9450 | for cc_temp in $compiler""; do | |
9451 | case $cc_temp in | |
9452 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9453 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9454 | \-*) ;; | |
9455 | *) break;; | |
9456 | esac | |
9457 | done | |
43e02a8a | 9458 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
9459 | |
9460 | ||
9461 | # Only perform the check for file, if the check method requires it | |
9462 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9463 | case $deplibs_check_method in | |
9464 | file_magic*) | |
9465 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9467 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9468 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9469 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9470 | else |
1cf3d07d SE |
9471 | case $MAGIC_CMD in |
9472 | [\\/*] | ?:[\\/]*) | |
9473 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9474 | ;; | |
9475 | *) | |
9476 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9477 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9478 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9479 | for ac_dir in $ac_dummy; do | |
9480 | IFS="$lt_save_ifs" | |
9481 | test -z "$ac_dir" && ac_dir=. | |
9482 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9483 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9484 | if test -n "$file_magic_test_file"; then | |
9485 | case $deplibs_check_method in | |
9486 | "file_magic "*) | |
9487 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9488 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9489 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9490 | $EGREP "$file_magic_regex" > /dev/null; then | |
9491 | : | |
9492 | else | |
9493 | cat <<_LT_EOF 1>&2 | |
9cdc381b | 9494 | |
1cf3d07d SE |
9495 | *** Warning: the command libtool uses to detect shared libraries, |
9496 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9497 | *** The result is that libtool may fail to recognize shared libraries | |
9498 | *** as such. This will affect the creation of libtool libraries that | |
9499 | *** depend on shared libraries, but programs linked with such libtool | |
9500 | *** libraries will work regardless of this problem. Nevertheless, you | |
9501 | *** may want to report the problem to your system manager and/or to | |
9502 | *** bug-libtool@gnu.org | |
9503 | ||
9504 | _LT_EOF | |
9505 | fi ;; | |
9506 | esac | |
9507 | fi | |
9508 | break | |
9509 | fi | |
9510 | done | |
9511 | IFS="$lt_save_ifs" | |
9512 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9513 | ;; | |
9514 | esac | |
9515 | fi | |
9516 | ||
9517 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9518 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9520 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9521 | else |
5213506e RW |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9523 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9524 | fi |
9525 | ||
9526 | ||
9527 | ||
9528 | ||
9529 | ||
9530 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9531 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9533 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9534 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9535 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9536 | else |
9537 | case $MAGIC_CMD in | |
9538 | [\\/*] | ?:[\\/]*) | |
9539 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9540 | ;; | |
9541 | *) | |
9542 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9543 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9544 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9545 | for ac_dir in $ac_dummy; do | |
9546 | IFS="$lt_save_ifs" | |
9547 | test -z "$ac_dir" && ac_dir=. | |
9548 | if test -f $ac_dir/file; then | |
9549 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9550 | if test -n "$file_magic_test_file"; then | |
9551 | case $deplibs_check_method in | |
9552 | "file_magic "*) | |
9553 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9554 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9555 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9556 | $EGREP "$file_magic_regex" > /dev/null; then | |
9557 | : | |
9558 | else | |
9559 | cat <<_LT_EOF 1>&2 | |
9560 | ||
9561 | *** Warning: the command libtool uses to detect shared libraries, | |
9562 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9563 | *** The result is that libtool may fail to recognize shared libraries | |
9564 | *** as such. This will affect the creation of libtool libraries that | |
9565 | *** depend on shared libraries, but programs linked with such libtool | |
9566 | *** libraries will work regardless of this problem. Nevertheless, you | |
9567 | *** may want to report the problem to your system manager and/or to | |
9568 | *** bug-libtool@gnu.org | |
9569 | ||
9570 | _LT_EOF | |
9571 | fi ;; | |
9572 | esac | |
9573 | fi | |
9574 | break | |
9575 | fi | |
9576 | done | |
9577 | IFS="$lt_save_ifs" | |
9578 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9579 | ;; | |
9580 | esac | |
9581 | fi | |
9582 | ||
9583 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9584 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9586 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9587 | else |
5213506e RW |
9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9589 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9590 | fi |
9591 | ||
9592 | ||
9593 | else | |
9594 | MAGIC_CMD=: | |
9595 | fi | |
9596 | fi | |
9597 | ||
9598 | fi | |
9599 | ;; | |
9600 | esac | |
9601 | ||
9602 | # Use C for the default configuration in the libtool script | |
9603 | ||
9604 | lt_save_CC="$CC" | |
9605 | ac_ext=c | |
9606 | ac_cpp='$CPP $CPPFLAGS' | |
9607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9610 | ||
9611 | ||
9612 | # Source file extension for C test sources. | |
9613 | ac_ext=c | |
9614 | ||
9615 | # Object file extension for compiled C test sources. | |
9616 | objext=o | |
9617 | objext=$objext | |
9618 | ||
9619 | # Code to be used in simple compile tests | |
9620 | lt_simple_compile_test_code="int some_variable = 0;" | |
9621 | ||
9622 | # Code to be used in simple link tests | |
9623 | lt_simple_link_test_code='int main(){return(0);}' | |
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | # If no C compiler was specified, use CC. | |
9632 | LTCC=${LTCC-"$CC"} | |
9633 | ||
9634 | # If no C compiler flags were specified, use CFLAGS. | |
9635 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9636 | ||
9637 | # Allow CC to be a program name with arguments. | |
9638 | compiler=$CC | |
9639 | ||
9640 | # Save the default compiler, since it gets overwritten when the other | |
9641 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9642 | compiler_DEFAULT=$CC | |
9643 | ||
9644 | # save warnings/boilerplate of simple test code | |
9645 | ac_outfile=conftest.$ac_objext | |
9646 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9647 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9648 | _lt_compiler_boilerplate=`cat conftest.err` | |
9649 | $RM conftest* | |
9650 | ||
9651 | ac_outfile=conftest.$ac_objext | |
9652 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9653 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9654 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 9655 | $RM -r conftest* |
1cf3d07d SE |
9656 | |
9657 | ||
9658 | ## CAVEAT EMPTOR: | |
9659 | ## There is no encapsulation within the following macros, do not change | |
9660 | ## the running order or otherwise move them around unless you know exactly | |
9661 | ## what you are doing... | |
9662 | if test -n "$compiler"; then | |
9663 | ||
9664 | lt_prog_compiler_no_builtin_flag= | |
9665 | ||
9666 | if test "$GCC" = yes; then | |
43e02a8a RW |
9667 | case $cc_basename in |
9668 | nvcc*) | |
9669 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9670 | *) | |
9671 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9672 | esac | |
1cf3d07d | 9673 | |
5213506e RW |
9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9675 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9676 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 9677 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9678 | else |
9679 | lt_cv_prog_compiler_rtti_exceptions=no | |
9680 | ac_outfile=conftest.$ac_objext | |
9681 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9682 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9683 | # Insert the option either (1) after the last *FLAGS variable, or | |
9684 | # (2) before a word containing "conftest.", or (3) at the end. | |
9685 | # Note that $ac_compile itself does not contain backslashes and begins | |
9686 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9687 | # The option is referenced via a variable to avoid confusing sed. | |
9688 | lt_compile=`echo "$ac_compile" | $SED \ | |
9689 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9690 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9691 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 9692 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
9693 | (eval "$lt_compile" 2>conftest.err) |
9694 | ac_status=$? | |
9695 | cat conftest.err >&5 | |
43e02a8a | 9696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
9697 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9698 | # The compiler can only warn and ignore the option if not recognized | |
9699 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 9700 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
9701 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9702 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9703 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9704 | fi | |
9705 | fi | |
9706 | $RM conftest* | |
9707 | ||
9708 | fi | |
5213506e RW |
9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9710 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
9711 | |
9712 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9713 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9714 | else | |
9715 | : | |
9716 | fi | |
9717 | ||
9718 | fi | |
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | lt_prog_compiler_wl= | |
9726 | lt_prog_compiler_pic= | |
9727 | lt_prog_compiler_static= | |
9728 | ||
5213506e RW |
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9730 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
9731 | |
9732 | if test "$GCC" = yes; then | |
9733 | lt_prog_compiler_wl='-Wl,' | |
9734 | lt_prog_compiler_static='-static' | |
9735 | ||
9736 | case $host_os in | |
9737 | aix*) | |
9738 | # All AIX code is PIC. | |
9739 | if test "$host_cpu" = ia64; then | |
9740 | # AIX 5 now supports IA64 processor | |
9741 | lt_prog_compiler_static='-Bstatic' | |
9742 | fi | |
bad8a4a7 | 9743 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
9744 | ;; |
9745 | ||
9746 | amigaos*) | |
d58dead8 PG |
9747 | case $host_cpu in |
9748 | powerpc) | |
9749 | # see comment about AmigaOS4 .so support | |
9750 | lt_prog_compiler_pic='-fPIC' | |
9751 | ;; | |
9752 | m68k) | |
9753 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9754 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9755 | # like `-m68040'. | |
9756 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9757 | ;; | |
9758 | esac | |
1cf3d07d SE |
9759 | ;; |
9760 | ||
9761 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9762 | # PIC is the default for these OSes. | |
9763 | ;; | |
9764 | ||
d58dead8 | 9765 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9766 | # This hack is so that the source file can tell whether it is being |
9767 | # built for inclusion in a dll (and should export symbols for example). | |
9768 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9769 | # (--disable-auto-import) libraries | |
9770 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9771 | ;; | |
9772 | ||
9773 | darwin* | rhapsody*) | |
9774 | # PIC is the default on this platform | |
9775 | # Common symbols not allowed in MH_DYLIB files | |
9776 | lt_prog_compiler_pic='-fno-common' | |
9777 | ;; | |
9778 | ||
43e02a8a RW |
9779 | haiku*) |
9780 | # PIC is the default for Haiku. | |
9781 | # The "-static" flag exists, but is broken. | |
9782 | lt_prog_compiler_static= | |
9783 | ;; | |
9784 | ||
1cf3d07d | 9785 | hpux*) |
d58dead8 PG |
9786 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9787 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9788 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 9789 | case $host_cpu in |
d58dead8 | 9790 | hppa*64*) |
1cf3d07d SE |
9791 | # +Z the default |
9792 | ;; | |
9793 | *) | |
9794 | lt_prog_compiler_pic='-fPIC' | |
9795 | ;; | |
9796 | esac | |
9797 | ;; | |
9798 | ||
9799 | interix[3-9]*) | |
9800 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9801 | # Instead, we relocate shared libraries at runtime. | |
9802 | ;; | |
9803 | ||
9804 | msdosdjgpp*) | |
9805 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9806 | # on systems that don't support them. | |
9807 | lt_prog_compiler_can_build_shared=no | |
9808 | enable_shared=no | |
9809 | ;; | |
9810 | ||
9811 | *nto* | *qnx*) | |
9812 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9813 | # it will coredump. | |
9814 | lt_prog_compiler_pic='-fPIC -shared' | |
9815 | ;; | |
9816 | ||
9817 | sysv4*MP*) | |
9818 | if test -d /usr/nec; then | |
9819 | lt_prog_compiler_pic=-Kconform_pic | |
9820 | fi | |
9821 | ;; | |
9822 | ||
9823 | *) | |
9824 | lt_prog_compiler_pic='-fPIC' | |
9825 | ;; | |
9826 | esac | |
43e02a8a RW |
9827 | |
9828 | case $cc_basename in | |
9829 | nvcc*) # Cuda Compiler Driver 2.2 | |
9830 | lt_prog_compiler_wl='-Xlinker ' | |
9831 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9832 | ;; | |
9833 | esac | |
1cf3d07d SE |
9834 | else |
9835 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9836 | case $host_os in | |
9837 | aix*) | |
9838 | lt_prog_compiler_wl='-Wl,' | |
9839 | if test "$host_cpu" = ia64; then | |
9840 | # AIX 5 now supports IA64 processor | |
9841 | lt_prog_compiler_static='-Bstatic' | |
9842 | else | |
9843 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9844 | fi | |
9845 | ;; | |
1cf3d07d | 9846 | |
d58dead8 | 9847 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9848 | # This hack is so that the source file can tell whether it is being |
9849 | # built for inclusion in a dll (and should export symbols for example). | |
9850 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9851 | ;; | |
9852 | ||
9853 | hpux9* | hpux10* | hpux11*) | |
9854 | lt_prog_compiler_wl='-Wl,' | |
9855 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9856 | # not for PA HP-UX. | |
9857 | case $host_cpu in | |
9858 | hppa*64*|ia64*) | |
9859 | # +Z the default | |
9860 | ;; | |
9861 | *) | |
9862 | lt_prog_compiler_pic='+Z' | |
9863 | ;; | |
9864 | esac | |
9865 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9866 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9867 | ;; | |
9868 | ||
9869 | irix5* | irix6* | nonstopux*) | |
9870 | lt_prog_compiler_wl='-Wl,' | |
9871 | # PIC (with -KPIC) is the default. | |
9872 | lt_prog_compiler_static='-non_shared' | |
9873 | ;; | |
9874 | ||
7a9d3fe8 | 9875 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 9876 | case $cc_basename in |
d58dead8 PG |
9877 | # old Intel for x86_64 which still supported -KPIC. |
9878 | ecc*) | |
1cf3d07d SE |
9879 | lt_prog_compiler_wl='-Wl,' |
9880 | lt_prog_compiler_pic='-KPIC' | |
9881 | lt_prog_compiler_static='-static' | |
9882 | ;; | |
d58dead8 PG |
9883 | # icc used to be incompatible with GCC. |
9884 | # ICC 10 doesn't accept -KPIC any more. | |
9885 | icc* | ifort*) | |
9886 | lt_prog_compiler_wl='-Wl,' | |
9887 | lt_prog_compiler_pic='-fPIC' | |
9888 | lt_prog_compiler_static='-static' | |
9889 | ;; | |
9890 | # Lahey Fortran 8.1. | |
9891 | lf95*) | |
9892 | lt_prog_compiler_wl='-Wl,' | |
9893 | lt_prog_compiler_pic='--shared' | |
9894 | lt_prog_compiler_static='--static' | |
9895 | ;; | |
43e02a8a | 9896 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
9897 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9898 | # which looks to be a dead project) | |
9899 | lt_prog_compiler_wl='-Wl,' | |
9900 | lt_prog_compiler_pic='-fpic' | |
9901 | lt_prog_compiler_static='-Bstatic' | |
9902 | ;; | |
9903 | ccc*) | |
9904 | lt_prog_compiler_wl='-Wl,' | |
9905 | # All Alpha code is PIC. | |
9906 | lt_prog_compiler_static='-non_shared' | |
9907 | ;; | |
43e02a8a RW |
9908 | xl* | bgxl* | bgf* | mpixl*) |
9909 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
9910 | lt_prog_compiler_wl='-Wl,' |
9911 | lt_prog_compiler_pic='-qpic' | |
9912 | lt_prog_compiler_static='-qstaticlink' | |
9913 | ;; | |
1cf3d07d SE |
9914 | *) |
9915 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
9916 | *Sun\ F* | *Sun*Fortran*) |
9917 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
9918 | lt_prog_compiler_pic='-KPIC' |
9919 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9920 | lt_prog_compiler_wl='' |
1cf3d07d | 9921 | ;; |
43e02a8a RW |
9922 | *Sun\ C*) |
9923 | # Sun C 5.9 | |
1cf3d07d SE |
9924 | lt_prog_compiler_pic='-KPIC' |
9925 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9926 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
9927 | ;; |
9928 | esac | |
9929 | ;; | |
9930 | esac | |
9931 | ;; | |
9932 | ||
9933 | newsos6) | |
9934 | lt_prog_compiler_pic='-KPIC' | |
9935 | lt_prog_compiler_static='-Bstatic' | |
9936 | ;; | |
9937 | ||
9938 | *nto* | *qnx*) | |
9939 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9940 | # it will coredump. | |
9941 | lt_prog_compiler_pic='-fPIC -shared' | |
9942 | ;; | |
9943 | ||
9944 | osf3* | osf4* | osf5*) | |
9945 | lt_prog_compiler_wl='-Wl,' | |
9946 | # All OSF/1 code is PIC. | |
9947 | lt_prog_compiler_static='-non_shared' | |
9948 | ;; | |
9949 | ||
9950 | rdos*) | |
9951 | lt_prog_compiler_static='-non_shared' | |
9952 | ;; | |
9953 | ||
9954 | solaris*) | |
9955 | lt_prog_compiler_pic='-KPIC' | |
9956 | lt_prog_compiler_static='-Bstatic' | |
9957 | case $cc_basename in | |
9958 | f77* | f90* | f95*) | |
9959 | lt_prog_compiler_wl='-Qoption ld ';; | |
9960 | *) | |
9961 | lt_prog_compiler_wl='-Wl,';; | |
9962 | esac | |
9963 | ;; | |
9964 | ||
9965 | sunos4*) | |
9966 | lt_prog_compiler_wl='-Qoption ld ' | |
9967 | lt_prog_compiler_pic='-PIC' | |
9968 | lt_prog_compiler_static='-Bstatic' | |
9969 | ;; | |
9970 | ||
9971 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9972 | lt_prog_compiler_wl='-Wl,' | |
9973 | lt_prog_compiler_pic='-KPIC' | |
9974 | lt_prog_compiler_static='-Bstatic' | |
9975 | ;; | |
9976 | ||
9977 | sysv4*MP*) | |
9978 | if test -d /usr/nec ;then | |
9979 | lt_prog_compiler_pic='-Kconform_pic' | |
9980 | lt_prog_compiler_static='-Bstatic' | |
9981 | fi | |
9982 | ;; | |
9983 | ||
9984 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9985 | lt_prog_compiler_wl='-Wl,' | |
9986 | lt_prog_compiler_pic='-KPIC' | |
9987 | lt_prog_compiler_static='-Bstatic' | |
9988 | ;; | |
9989 | ||
9990 | unicos*) | |
9991 | lt_prog_compiler_wl='-Wl,' | |
9992 | lt_prog_compiler_can_build_shared=no | |
9993 | ;; | |
9994 | ||
9995 | uts4*) | |
9996 | lt_prog_compiler_pic='-pic' | |
9997 | lt_prog_compiler_static='-Bstatic' | |
9998 | ;; | |
9999 | ||
10000 | *) | |
10001 | lt_prog_compiler_can_build_shared=no | |
10002 | ;; | |
10003 | esac | |
10004 | fi | |
10005 | ||
10006 | case $host_os in | |
10007 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10008 | *djgpp*) | |
10009 | lt_prog_compiler_pic= | |
10010 | ;; | |
10011 | *) | |
10012 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10013 | ;; | |
10014 | esac | |
5213506e RW |
10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10016 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
10017 | |
10018 | ||
10019 | ||
10020 | ||
10021 | ||
10022 | ||
10023 | # | |
10024 | # Check to make sure the PIC flag actually works. | |
10025 | # | |
10026 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10028 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 10029 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 10030 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10031 | else |
d58dead8 | 10032 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10033 | ac_outfile=conftest.$ac_objext |
10034 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10035 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10036 | # Insert the option either (1) after the last *FLAGS variable, or | |
10037 | # (2) before a word containing "conftest.", or (3) at the end. | |
10038 | # Note that $ac_compile itself does not contain backslashes and begins | |
10039 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10040 | # The option is referenced via a variable to avoid confusing sed. | |
10041 | lt_compile=`echo "$ac_compile" | $SED \ | |
10042 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10043 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10044 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10045 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10046 | (eval "$lt_compile" 2>conftest.err) |
10047 | ac_status=$? | |
10048 | cat conftest.err >&5 | |
43e02a8a | 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10050 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10051 | # The compiler can only warn and ignore the option if not recognized | |
10052 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10053 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10054 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10055 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10056 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10057 | fi |
10058 | fi | |
10059 | $RM conftest* | |
10060 | ||
10061 | fi | |
5213506e RW |
10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10063 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 10064 | |
d58dead8 | 10065 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10066 | case $lt_prog_compiler_pic in |
10067 | "" | " "*) ;; | |
10068 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10069 | esac | |
10070 | else | |
10071 | lt_prog_compiler_pic= | |
10072 | lt_prog_compiler_can_build_shared=no | |
10073 | fi | |
10074 | ||
10075 | fi | |
10076 | ||
10077 | ||
10078 | ||
10079 | ||
10080 | ||
10081 | ||
10082 | # | |
10083 | # Check to make sure the static flag actually works. | |
10084 | # | |
10085 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10087 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 10088 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 10089 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10090 | else |
d58dead8 | 10091 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10092 | save_LDFLAGS="$LDFLAGS" |
10093 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10094 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10095 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10096 | # The linker can only warn and ignore the option if not recognized | |
10097 | # So say no if there are warnings | |
10098 | if test -s conftest.err; then | |
10099 | # Append any errors to the config.log. | |
10100 | cat conftest.err 1>&5 | |
43e02a8a | 10101 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10102 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10103 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10104 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10105 | fi |
10106 | else | |
d58dead8 | 10107 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10108 | fi |
10109 | fi | |
d58dead8 | 10110 | $RM -r conftest* |
1cf3d07d SE |
10111 | LDFLAGS="$save_LDFLAGS" |
10112 | ||
10113 | fi | |
5213506e RW |
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10115 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10116 | |
d58dead8 | 10117 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10118 | : |
10119 | else | |
10120 | lt_prog_compiler_static= | |
10121 | fi | |
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | ||
10127 | ||
10128 | ||
5213506e RW |
10129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10130 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10131 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10132 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10133 | else |
10134 | lt_cv_prog_compiler_c_o=no | |
10135 | $RM -r conftest 2>/dev/null | |
10136 | mkdir conftest | |
10137 | cd conftest | |
10138 | mkdir out | |
10139 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10140 | ||
10141 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10142 | # Insert the option either (1) after the last *FLAGS variable, or | |
10143 | # (2) before a word containing "conftest.", or (3) at the end. | |
10144 | # Note that $ac_compile itself does not contain backslashes and begins | |
10145 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10146 | lt_compile=`echo "$ac_compile" | $SED \ | |
10147 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10148 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10149 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10150 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10151 | (eval "$lt_compile" 2>out/conftest.err) |
10152 | ac_status=$? | |
10153 | cat out/conftest.err >&5 | |
43e02a8a | 10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10155 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10156 | then | |
10157 | # The compiler can only warn and ignore the option if not recognized | |
10158 | # So say no if there are warnings | |
43e02a8a | 10159 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10160 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10161 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10162 | lt_cv_prog_compiler_c_o=yes | |
10163 | fi | |
10164 | fi | |
10165 | chmod u+w . 2>&5 | |
10166 | $RM conftest* | |
10167 | # SGI C++ compiler will create directory out/ii_files/ for | |
10168 | # template instantiation | |
10169 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10170 | $RM out/* && rmdir out | |
10171 | cd .. | |
10172 | $RM -r conftest | |
10173 | $RM conftest* | |
10174 | ||
10175 | fi | |
5213506e RW |
10176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10177 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10178 | |
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
5213506e RW |
10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10185 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10186 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10187 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10188 | else |
10189 | lt_cv_prog_compiler_c_o=no | |
10190 | $RM -r conftest 2>/dev/null | |
10191 | mkdir conftest | |
10192 | cd conftest | |
10193 | mkdir out | |
10194 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10195 | ||
10196 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10197 | # Insert the option either (1) after the last *FLAGS variable, or | |
10198 | # (2) before a word containing "conftest.", or (3) at the end. | |
10199 | # Note that $ac_compile itself does not contain backslashes and begins | |
10200 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10201 | lt_compile=`echo "$ac_compile" | $SED \ | |
10202 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10203 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10204 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10205 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10206 | (eval "$lt_compile" 2>out/conftest.err) |
10207 | ac_status=$? | |
10208 | cat out/conftest.err >&5 | |
43e02a8a | 10209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10210 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10211 | then | |
10212 | # The compiler can only warn and ignore the option if not recognized | |
10213 | # So say no if there are warnings | |
43e02a8a | 10214 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10215 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10216 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10217 | lt_cv_prog_compiler_c_o=yes | |
10218 | fi | |
10219 | fi | |
10220 | chmod u+w . 2>&5 | |
10221 | $RM conftest* | |
10222 | # SGI C++ compiler will create directory out/ii_files/ for | |
10223 | # template instantiation | |
10224 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10225 | $RM out/* && rmdir out | |
10226 | cd .. | |
10227 | $RM -r conftest | |
10228 | $RM conftest* | |
10229 | ||
10230 | fi | |
5213506e RW |
10231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10232 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10233 | |
10234 | ||
10235 | ||
10236 | ||
10237 | hard_links="nottested" | |
10238 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10239 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10241 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10242 | hard_links=yes |
10243 | $RM conftest* | |
10244 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10245 | touch conftest.a | |
10246 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10247 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10249 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10250 | if test "$hard_links" = no; then |
5213506e RW |
10251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10252 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10253 | need_locks=warn |
10254 | fi | |
10255 | else | |
10256 | need_locks=no | |
10257 | fi | |
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
5213506e RW |
10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10265 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10266 | |
10267 | runpath_var= | |
10268 | allow_undefined_flag= | |
10269 | always_export_symbols=no | |
10270 | archive_cmds= | |
10271 | archive_expsym_cmds= | |
10272 | compiler_needs_object=no | |
10273 | enable_shared_with_static_runtimes=no | |
10274 | export_dynamic_flag_spec= | |
10275 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10276 | hardcode_automatic=no | |
10277 | hardcode_direct=no | |
10278 | hardcode_direct_absolute=no | |
10279 | hardcode_libdir_flag_spec= | |
10280 | hardcode_libdir_flag_spec_ld= | |
10281 | hardcode_libdir_separator= | |
10282 | hardcode_minus_L=no | |
10283 | hardcode_shlibpath_var=unsupported | |
10284 | inherit_rpath=no | |
10285 | link_all_deplibs=unknown | |
10286 | module_cmds= | |
10287 | module_expsym_cmds= | |
10288 | old_archive_from_new_cmds= | |
10289 | old_archive_from_expsyms_cmds= | |
10290 | thread_safe_flag_spec= | |
10291 | whole_archive_flag_spec= | |
10292 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10293 | # included in the symbol list | |
10294 | include_expsyms= | |
10295 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10296 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10297 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10298 | # as well as any symbol that contains `d'. | |
d58dead8 | 10299 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10300 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10301 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10302 | # the symbol is explicitly referenced. Since portable code cannot | |
10303 | # rely on this symbol name, it's probably fine to never include it in | |
10304 | # preloaded symbol tables. | |
d58dead8 | 10305 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10306 | extract_expsyms_cmds= |
10307 | ||
10308 | case $host_os in | |
d58dead8 | 10309 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10310 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10311 | # When not using gcc, we currently assume that we are using | |
10312 | # Microsoft Visual C++. | |
10313 | if test "$GCC" != yes; then | |
10314 | with_gnu_ld=no | |
10315 | fi | |
10316 | ;; | |
10317 | interix*) | |
10318 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10319 | with_gnu_ld=yes | |
10320 | ;; | |
10321 | openbsd*) | |
10322 | with_gnu_ld=no | |
10323 | ;; | |
10324 | esac | |
10325 | ||
10326 | ld_shlibs=yes | |
43e02a8a RW |
10327 | |
10328 | # On some targets, GNU ld is compatible enough with the native linker | |
10329 | # that we're better off using the native interface for both. | |
10330 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10331 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10332 | case $host_os in |
10333 | aix*) | |
10334 | # The AIX port of GNU ld has always aspired to compatibility | |
10335 | # with the native linker. However, as the warning in the GNU ld | |
10336 | # block says, versions before 2.19.5* couldn't really create working | |
10337 | # shared libraries, regardless of the interface used. | |
10338 | case `$LD -v 2>&1` in | |
10339 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10340 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10341 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10342 | *) | |
10343 | lt_use_gnu_ld_interface=yes | |
10344 | ;; | |
10345 | esac | |
10346 | ;; | |
10347 | *) | |
10348 | lt_use_gnu_ld_interface=yes | |
10349 | ;; | |
10350 | esac | |
10351 | fi | |
10352 | ||
10353 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10354 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10355 | wlarc='${wl}' | |
10356 | ||
10357 | # Set some defaults for GNU ld with shared library support. These | |
10358 | # are reset later if shared libraries are not supported. Putting them | |
10359 | # here allows them to be overridden if necessary. | |
10360 | runpath_var=LD_RUN_PATH | |
10361 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10362 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10363 | # ancient GNU ld didn't support --whole-archive et. al. | |
10364 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10365 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10366 | else | |
10367 | whole_archive_flag_spec= | |
10368 | fi | |
10369 | supports_anon_versioning=no | |
10370 | case `$LD -v 2>&1` in | |
43e02a8a | 10371 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10372 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10373 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10374 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10375 | *\ 2.11.*) ;; # other 2.11 versions | |
10376 | *) supports_anon_versioning=yes ;; | |
10377 | esac | |
10378 | ||
10379 | # See if GNU ld supports shared libraries. | |
10380 | case $host_os in | |
4f6bebc3 | 10381 | aix[3-9]*) |
1cf3d07d SE |
10382 | # On AIX/PPC, the GNU linker is very broken |
10383 | if test "$host_cpu" != ia64; then | |
10384 | ld_shlibs=no | |
10385 | cat <<_LT_EOF 1>&2 | |
10386 | ||
43e02a8a | 10387 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
10388 | *** to be unable to reliably create shared libraries on AIX. |
10389 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
10390 | *** really care for shared libraries, you may want to install binutils |
10391 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10392 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
10393 | |
10394 | _LT_EOF | |
10395 | fi | |
10396 | ;; | |
10397 | ||
10398 | amigaos*) | |
d58dead8 PG |
10399 | case $host_cpu in |
10400 | powerpc) | |
10401 | # see comment about AmigaOS4 .so support | |
10402 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10403 | archive_expsym_cmds='' | |
10404 | ;; | |
10405 | m68k) | |
10406 | 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)' | |
10407 | hardcode_libdir_flag_spec='-L$libdir' | |
10408 | hardcode_minus_L=yes | |
10409 | ;; | |
10410 | esac | |
1cf3d07d SE |
10411 | ;; |
10412 | ||
10413 | beos*) | |
10414 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10415 | allow_undefined_flag=unsupported | |
10416 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10417 | # support --undefined. This deserves some investigation. FIXME | |
10418 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10419 | else | |
10420 | ld_shlibs=no | |
10421 | fi | |
10422 | ;; | |
10423 | ||
d58dead8 | 10424 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10425 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10426 | # as there is no search path for DLLs. | |
10427 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 10428 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
10429 | allow_undefined_flag=unsupported |
10430 | always_export_symbols=no | |
10431 | enable_shared_with_static_runtimes=yes | |
10432 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10433 | ||
10434 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10435 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10436 | # If the export-symbols file already is a .def file (1st line | |
10437 | # is EXPORTS), use it as is; otherwise, prepend... | |
10438 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10439 | cp $export_symbols $output_objdir/$soname.def; | |
10440 | else | |
10441 | echo EXPORTS > $output_objdir/$soname.def; | |
10442 | cat $export_symbols >> $output_objdir/$soname.def; | |
10443 | fi~ | |
10444 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10445 | else | |
10446 | ld_shlibs=no | |
10447 | fi | |
10448 | ;; | |
10449 | ||
43e02a8a RW |
10450 | haiku*) |
10451 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10452 | link_all_deplibs=yes | |
10453 | ;; | |
10454 | ||
1cf3d07d SE |
10455 | interix[3-9]*) |
10456 | hardcode_direct=no | |
10457 | hardcode_shlibpath_var=no | |
10458 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10459 | export_dynamic_flag_spec='${wl}-E' | |
10460 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10461 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10462 | # default) and relocated if they conflict, which is a slow very memory | |
10463 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10464 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10465 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10466 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10467 | 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' | |
10468 | ;; | |
10469 | ||
e9085da5 | 10470 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
10471 | tmp_diet=no |
10472 | if test "$host_os" = linux-dietlibc; then | |
10473 | case $cc_basename in | |
10474 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10475 | esac | |
10476 | fi | |
10477 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10478 | && test "$tmp_diet" = no | |
10479 | then | |
a699d672 | 10480 | tmp_addflag=' $pic_flag' |
d58dead8 | 10481 | tmp_sharedflag='-shared' |
1cf3d07d SE |
10482 | case $cc_basename,$host_cpu in |
10483 | pgcc*) # Portland Group C compiler | |
43e02a8a | 10484 | 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 |
10485 | tmp_addflag=' $pic_flag' |
10486 | ;; | |
43e02a8a RW |
10487 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10488 | # Portland Group f77 and f90 compilers | |
10489 | 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 |
10490 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10491 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10492 | tmp_addflag=' -i_dynamic' ;; | |
10493 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10494 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10495 | ifc* | ifort*) # Intel Fortran compiler | |
10496 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
10497 | lf95*) # Lahey Fortran 8.1 |
10498 | whole_archive_flag_spec= | |
10499 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 10500 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
10501 | tmp_sharedflag='-qmkshrobj' |
10502 | tmp_addflag= ;; | |
43e02a8a RW |
10503 | nvcc*) # Cuda Compiler Driver 2.2 |
10504 | 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' | |
10505 | compiler_needs_object=yes | |
10506 | ;; | |
1cf3d07d SE |
10507 | esac |
10508 | case `$CC -V 2>&1 | sed 5q` in | |
10509 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 10510 | 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 |
10511 | compiler_needs_object=yes |
10512 | tmp_sharedflag='-G' ;; | |
10513 | *Sun\ F*) # Sun Fortran 8.3 | |
10514 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
10515 | esac |
10516 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10517 | ||
10518 | if test "x$supports_anon_versioning" = xyes; then | |
10519 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10520 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10521 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10522 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10523 | fi | |
d58dead8 PG |
10524 | |
10525 | case $cc_basename in | |
43e02a8a | 10526 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
10527 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10528 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10529 | hardcode_libdir_flag_spec= | |
10530 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10531 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10532 | if test "x$supports_anon_versioning" = xyes; then | |
10533 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10534 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10535 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10536 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10537 | fi | |
10538 | ;; | |
10539 | esac | |
1cf3d07d SE |
10540 | else |
10541 | ld_shlibs=no | |
10542 | fi | |
10543 | ;; | |
10544 | ||
10545 | netbsd*) | |
10546 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10547 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10548 | wlarc= | |
10549 | else | |
10550 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10551 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10552 | fi | |
10553 | ;; | |
10554 | ||
10555 | solaris*) | |
10556 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10557 | ld_shlibs=no | |
10558 | cat <<_LT_EOF 1>&2 | |
10559 | ||
10560 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10561 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10562 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10563 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10564 | *** your PATH or compiler configuration so that the native linker is | |
10565 | *** used, and then restart. | |
10566 | ||
10567 | _LT_EOF | |
10568 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10569 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10570 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10571 | else | |
10572 | ld_shlibs=no | |
10573 | fi | |
10574 | ;; | |
10575 | ||
10576 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10577 | case `$LD -v 2>&1` in | |
10578 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10579 | ld_shlibs=no | |
10580 | cat <<_LT_EOF 1>&2 | |
10581 | ||
10582 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10583 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10584 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10585 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10586 | *** your PATH or compiler configuration so that the native linker is | |
10587 | *** used, and then restart. | |
10588 | ||
10589 | _LT_EOF | |
10590 | ;; | |
10591 | *) | |
10592 | # For security reasons, it is highly recommended that you always | |
10593 | # use absolute paths for naming shared libraries, and exclude the | |
10594 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10595 | # requires that you compile everything twice, which is a pain. | |
10596 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10597 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10598 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10599 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10600 | else | |
10601 | ld_shlibs=no | |
10602 | fi | |
10603 | ;; | |
10604 | esac | |
10605 | ;; | |
10606 | ||
10607 | sunos4*) | |
10608 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10609 | wlarc= | |
10610 | hardcode_direct=yes | |
10611 | hardcode_shlibpath_var=no | |
10612 | ;; | |
10613 | ||
10614 | *) | |
10615 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10616 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10617 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10618 | else | |
10619 | ld_shlibs=no | |
10620 | fi | |
10621 | ;; | |
10622 | esac | |
10623 | ||
10624 | if test "$ld_shlibs" = no; then | |
10625 | runpath_var= | |
10626 | hardcode_libdir_flag_spec= | |
10627 | export_dynamic_flag_spec= | |
10628 | whole_archive_flag_spec= | |
10629 | fi | |
10630 | else | |
10631 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10632 | case $host_os in | |
10633 | aix3*) | |
10634 | allow_undefined_flag=unsupported | |
10635 | always_export_symbols=yes | |
10636 | 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' | |
10637 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10638 | # are no directories specified by -L. | |
10639 | hardcode_minus_L=yes | |
10640 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10641 | # Neither direct hardcoding nor static linking is supported with a | |
10642 | # broken collect2. | |
10643 | hardcode_direct=unsupported | |
10644 | fi | |
10645 | ;; | |
10646 | ||
4f6bebc3 | 10647 | aix[4-9]*) |
1cf3d07d SE |
10648 | if test "$host_cpu" = ia64; then |
10649 | # On IA64, the linker does run time linking by default, so we don't | |
10650 | # have to do anything special. | |
10651 | aix_use_runtimelinking=no | |
10652 | exp_sym_flag='-Bexport' | |
10653 | no_entry_flag="" | |
10654 | else | |
10655 | # If we're using GNU nm, then we don't want the "-C" option. | |
10656 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
10657 | # Also, AIX nm treats weak defined symbols like other global |
10658 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 10659 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 10660 | 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 | 10661 | else |
d3ca2257 | 10662 | 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 |
10663 | fi |
10664 | aix_use_runtimelinking=no | |
10665 | ||
10666 | # Test if we are trying to use run time linking or normal | |
10667 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10668 | # need to do runtime linking. | |
4f6bebc3 | 10669 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
10670 | for ld_flag in $LDFLAGS; do |
10671 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10672 | aix_use_runtimelinking=yes | |
10673 | break | |
10674 | fi | |
10675 | done | |
10676 | ;; | |
10677 | esac | |
10678 | ||
10679 | exp_sym_flag='-bexport' | |
10680 | no_entry_flag='-bnoentry' | |
10681 | fi | |
10682 | ||
10683 | # When large executables or shared objects are built, AIX ld can | |
10684 | # have problems creating the table of contents. If linking a library | |
10685 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10686 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10687 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10688 | ||
10689 | archive_cmds='' | |
10690 | hardcode_direct=yes | |
10691 | hardcode_direct_absolute=yes | |
10692 | hardcode_libdir_separator=':' | |
10693 | link_all_deplibs=yes | |
10694 | file_list_spec='${wl}-f,' | |
10695 | ||
10696 | if test "$GCC" = yes; then | |
10697 | case $host_os in aix4.[012]|aix4.[012].*) | |
10698 | # We only want to do this on AIX 4.2 and lower, the check | |
10699 | # below for broken collect2 doesn't work under 4.3+ | |
10700 | collect2name=`${CC} -print-prog-name=collect2` | |
10701 | if test -f "$collect2name" && | |
10702 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10703 | then | |
10704 | # We have reworked collect2 | |
10705 | : | |
10706 | else | |
10707 | # We have old collect2 | |
10708 | hardcode_direct=unsupported | |
10709 | # It fails to find uninstalled libraries when the uninstalled | |
10710 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10711 | # to unsupported forces relinking | |
10712 | hardcode_minus_L=yes | |
10713 | hardcode_libdir_flag_spec='-L$libdir' | |
10714 | hardcode_libdir_separator= | |
10715 | fi | |
10716 | ;; | |
10717 | esac | |
10718 | shared_flag='-shared' | |
10719 | if test "$aix_use_runtimelinking" = yes; then | |
10720 | shared_flag="$shared_flag "'${wl}-G' | |
10721 | fi | |
10722 | else | |
10723 | # not using gcc | |
10724 | if test "$host_cpu" = ia64; then | |
10725 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10726 | # chokes on -Wl,-G. The following line is correct: | |
10727 | shared_flag='-G' | |
10728 | else | |
10729 | if test "$aix_use_runtimelinking" = yes; then | |
10730 | shared_flag='${wl}-G' | |
10731 | else | |
10732 | shared_flag='${wl}-bM:SRE' | |
10733 | fi | |
10734 | fi | |
10735 | fi | |
10736 | ||
d58dead8 | 10737 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
10738 | # It seems that -bexpall does not export symbols beginning with |
10739 | # underscore (_), so it is better to generate a list of symbols to export. | |
10740 | always_export_symbols=yes | |
10741 | if test "$aix_use_runtimelinking" = yes; then | |
10742 | # Warning - without using the other runtime loading flags (-brtl), | |
10743 | # -berok will link without error, but may produce a broken library. | |
10744 | allow_undefined_flag='-berok' | |
10745 | # Determine the default libpath from the value encoded in an | |
10746 | # empty executable. | |
10747 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10748 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10749 | fi |
5213506e | 10750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10751 | /* end confdefs.h. */ |
10752 | ||
10753 | int | |
10754 | main () | |
10755 | { | |
10756 | ||
10757 | ; | |
10758 | return 0; | |
10759 | } | |
10760 | _ACEOF | |
5213506e | 10761 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10762 | |
10763 | lt_aix_libpath_sed=' | |
10764 | /Import File Strings/,/^$/ { | |
10765 | /^0/ { | |
10766 | s/^0 *\(.*\)$/\1/ | |
10767 | p | |
10768 | } | |
10769 | }' | |
10770 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10771 | # Check for a 64-bit object if we didn't find anything. | |
10772 | if test -z "$aix_libpath"; then | |
10773 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10774 | fi | |
1cf3d07d | 10775 | fi |
5213506e RW |
10776 | rm -f core conftest.err conftest.$ac_objext \ |
10777 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10778 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10779 | ||
10780 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 10781 | 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 |
10782 | else |
10783 | if test "$host_cpu" = ia64; then | |
10784 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10785 | allow_undefined_flag="-z nodefs" | |
10786 | 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" | |
10787 | else | |
10788 | # Determine the default libpath from the value encoded in an | |
10789 | # empty executable. | |
10790 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10791 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10792 | fi |
5213506e | 10793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10794 | /* end confdefs.h. */ |
10795 | ||
10796 | int | |
10797 | main () | |
10798 | { | |
10799 | ||
10800 | ; | |
10801 | return 0; | |
10802 | } | |
10803 | _ACEOF | |
5213506e | 10804 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10805 | |
10806 | lt_aix_libpath_sed=' | |
10807 | /Import File Strings/,/^$/ { | |
10808 | /^0/ { | |
10809 | s/^0 *\(.*\)$/\1/ | |
10810 | p | |
10811 | } | |
10812 | }' | |
10813 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10814 | # Check for a 64-bit object if we didn't find anything. | |
10815 | if test -z "$aix_libpath"; then | |
10816 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10817 | fi | |
1cf3d07d | 10818 | fi |
5213506e RW |
10819 | rm -f core conftest.err conftest.$ac_objext \ |
10820 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10821 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10822 | ||
10823 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10824 | # Warning - without using the other run time loading flags, | |
10825 | # -berok will link without error, but may produce a broken library. | |
10826 | no_undefined_flag=' ${wl}-bernotok' | |
10827 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
10828 | if test "$with_gnu_ld" = yes; then |
10829 | # We only use this code for GNU lds that support --whole-archive. | |
10830 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10831 | else | |
10832 | # Exported symbols can be pulled into shared objects from archives | |
10833 | whole_archive_flag_spec='$convenience' | |
10834 | fi | |
1cf3d07d SE |
10835 | archive_cmds_need_lc=yes |
10836 | # This is similar to how AIX traditionally builds its shared libraries. | |
10837 | 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' | |
10838 | fi | |
10839 | fi | |
10840 | ;; | |
10841 | ||
10842 | amigaos*) | |
d58dead8 PG |
10843 | case $host_cpu in |
10844 | powerpc) | |
10845 | # see comment about AmigaOS4 .so support | |
10846 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10847 | archive_expsym_cmds='' | |
10848 | ;; | |
10849 | m68k) | |
10850 | 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)' | |
10851 | hardcode_libdir_flag_spec='-L$libdir' | |
10852 | hardcode_minus_L=yes | |
10853 | ;; | |
10854 | esac | |
1cf3d07d SE |
10855 | ;; |
10856 | ||
10857 | bsdi[45]*) | |
10858 | export_dynamic_flag_spec=-rdynamic | |
10859 | ;; | |
10860 | ||
d58dead8 | 10861 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10862 | # When not using gcc, we currently assume that we are using |
10863 | # Microsoft Visual C++. | |
10864 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10865 | # no search path for DLLs. | |
10866 | hardcode_libdir_flag_spec=' ' | |
10867 | allow_undefined_flag=unsupported | |
10868 | # Tell ltmain to make .lib files, not .a files. | |
10869 | libext=lib | |
10870 | # Tell ltmain to make .dll files, not .so files. | |
10871 | shrext_cmds=".dll" | |
10872 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 10873 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
10874 | # The linker will automatically build a .lib file if we build a DLL. |
10875 | old_archive_from_new_cmds='true' | |
10876 | # FIXME: Should let the user specify the lib program. | |
10877 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10878 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10879 | enable_shared_with_static_runtimes=yes | |
10880 | ;; | |
10881 | ||
10882 | darwin* | rhapsody*) | |
1cf3d07d | 10883 | |
d58dead8 PG |
10884 | |
10885 | archive_cmds_need_lc=no | |
10886 | hardcode_direct=no | |
10887 | hardcode_automatic=yes | |
10888 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
10889 | if test "$lt_cv_ld_force_load" = "yes"; then |
10890 | 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\"`' | |
10891 | else | |
10892 | whole_archive_flag_spec='' | |
10893 | fi | |
d58dead8 PG |
10894 | link_all_deplibs=yes |
10895 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10896 | case $cc_basename in | |
10897 | ifort*) _lt_dar_can_shared=yes ;; | |
10898 | *) _lt_dar_can_shared=$GCC ;; | |
10899 | esac | |
10900 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 10901 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
10902 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10903 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10904 | 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}" | |
10905 | 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}" | |
10906 | ||
10907 | else | |
10908 | ld_shlibs=no | |
10909 | fi | |
10910 | ||
1cf3d07d SE |
10911 | ;; |
10912 | ||
10913 | dgux*) | |
10914 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10915 | hardcode_libdir_flag_spec='-L$libdir' | |
10916 | hardcode_shlibpath_var=no | |
10917 | ;; | |
10918 | ||
1cf3d07d SE |
10919 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10920 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10921 | # does not break anything, and helps significantly (at the cost of a little | |
10922 | # extra space). | |
10923 | freebsd2.2*) | |
10924 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10925 | hardcode_libdir_flag_spec='-R$libdir' | |
10926 | hardcode_direct=yes | |
10927 | hardcode_shlibpath_var=no | |
10928 | ;; | |
10929 | ||
10930 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 10931 | freebsd2.*) |
1cf3d07d SE |
10932 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10933 | hardcode_direct=yes | |
10934 | hardcode_minus_L=yes | |
10935 | hardcode_shlibpath_var=no | |
10936 | ;; | |
10937 | ||
10938 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10939 | freebsd* | dragonfly*) | |
10940 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10941 | hardcode_libdir_flag_spec='-R$libdir' | |
10942 | hardcode_direct=yes | |
10943 | hardcode_shlibpath_var=no | |
10944 | ;; | |
10945 | ||
10946 | hpux9*) | |
10947 | if test "$GCC" = yes; then | |
10948 | 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' | |
10949 | else | |
10950 | 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' | |
10951 | fi | |
10952 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10953 | hardcode_libdir_separator=: | |
10954 | hardcode_direct=yes | |
10955 | ||
10956 | # hardcode_minus_L: Not really in the search PATH, | |
10957 | # but as the default location of the library. | |
10958 | hardcode_minus_L=yes | |
10959 | export_dynamic_flag_spec='${wl}-E' | |
10960 | ;; | |
10961 | ||
10962 | hpux10*) | |
43e02a8a | 10963 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
10964 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10965 | else | |
10966 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10967 | fi | |
10968 | if test "$with_gnu_ld" = no; then | |
10969 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10970 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10971 | hardcode_libdir_separator=: | |
10972 | hardcode_direct=yes | |
10973 | hardcode_direct_absolute=yes | |
10974 | export_dynamic_flag_spec='${wl}-E' | |
10975 | # hardcode_minus_L: Not really in the search PATH, | |
10976 | # but as the default location of the library. | |
10977 | hardcode_minus_L=yes | |
10978 | fi | |
10979 | ;; | |
10980 | ||
10981 | hpux11*) | |
43e02a8a | 10982 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
10983 | case $host_cpu in |
10984 | hppa*64*) | |
10985 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10986 | ;; | |
10987 | ia64*) | |
d58dead8 | 10988 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
10989 | ;; |
10990 | *) | |
10991 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10992 | ;; | |
10993 | esac | |
10994 | else | |
10995 | case $host_cpu in | |
10996 | hppa*64*) | |
10997 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10998 | ;; | |
10999 | ia64*) | |
11000 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11001 | ;; | |
11002 | *) | |
43e02a8a RW |
11003 | |
11004 | # Older versions of the 11.00 compiler do not understand -b yet | |
11005 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11007 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 11008 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
11009 | $as_echo_n "(cached) " >&6 |
11010 | else | |
11011 | lt_cv_prog_compiler__b=no | |
11012 | save_LDFLAGS="$LDFLAGS" | |
11013 | LDFLAGS="$LDFLAGS -b" | |
11014 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11015 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11016 | # The linker can only warn and ignore the option if not recognized | |
11017 | # So say no if there are warnings | |
11018 | if test -s conftest.err; then | |
11019 | # Append any errors to the config.log. | |
11020 | cat conftest.err 1>&5 | |
11021 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11022 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11023 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11024 | lt_cv_prog_compiler__b=yes | |
11025 | fi | |
11026 | else | |
11027 | lt_cv_prog_compiler__b=yes | |
11028 | fi | |
11029 | fi | |
11030 | $RM -r conftest* | |
11031 | LDFLAGS="$save_LDFLAGS" | |
11032 | ||
11033 | fi | |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11035 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11036 | ||
11037 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11038 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11039 | else | |
11040 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11041 | fi | |
11042 | ||
1cf3d07d SE |
11043 | ;; |
11044 | esac | |
11045 | fi | |
11046 | if test "$with_gnu_ld" = no; then | |
11047 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11048 | hardcode_libdir_separator=: | |
11049 | ||
11050 | case $host_cpu in | |
11051 | hppa*64*|ia64*) | |
11052 | hardcode_direct=no | |
11053 | hardcode_shlibpath_var=no | |
11054 | ;; | |
11055 | *) | |
11056 | hardcode_direct=yes | |
11057 | hardcode_direct_absolute=yes | |
11058 | export_dynamic_flag_spec='${wl}-E' | |
11059 | ||
11060 | # hardcode_minus_L: Not really in the search PATH, | |
11061 | # but as the default location of the library. | |
11062 | hardcode_minus_L=yes | |
11063 | ;; | |
11064 | esac | |
11065 | fi | |
11066 | ;; | |
11067 | ||
11068 | irix5* | irix6* | nonstopux*) | |
11069 | if test "$GCC" = yes; then | |
43e02a8a | 11070 | 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 |
11071 | # Try to use the -exported_symbol ld option, if it does not |
11072 | # work, assume that -exports_file does not work either and | |
11073 | # implicitly export all symbols. | |
11074 | save_LDFLAGS="$LDFLAGS" | |
11075 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11076 | if test x$gcc_no_link = xyes; then | |
22e05272 | 11077 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 11078 | fi |
5213506e RW |
11079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11080 | /* end confdefs.h. */ | |
1cf3d07d SE |
11081 | int foo(void) {} |
11082 | _ACEOF | |
5213506e | 11083 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11084 | 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 | 11085 | |
1cf3d07d | 11086 | fi |
5213506e RW |
11087 | rm -f core conftest.err conftest.$ac_objext \ |
11088 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11089 | LDFLAGS="$save_LDFLAGS" |
11090 | else | |
43e02a8a RW |
11091 | 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' |
11092 | 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 |
11093 | fi |
11094 | archive_cmds_need_lc='no' | |
11095 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11096 | hardcode_libdir_separator=: | |
11097 | inherit_rpath=yes | |
11098 | link_all_deplibs=yes | |
11099 | ;; | |
11100 | ||
11101 | netbsd*) | |
11102 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11103 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11104 | else | |
11105 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11106 | fi | |
11107 | hardcode_libdir_flag_spec='-R$libdir' | |
11108 | hardcode_direct=yes | |
11109 | hardcode_shlibpath_var=no | |
11110 | ;; | |
11111 | ||
11112 | newsos6) | |
11113 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11114 | hardcode_direct=yes | |
11115 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11116 | hardcode_libdir_separator=: | |
11117 | hardcode_shlibpath_var=no | |
11118 | ;; | |
11119 | ||
11120 | *nto* | *qnx*) | |
11121 | ;; | |
11122 | ||
11123 | openbsd*) | |
d58dead8 PG |
11124 | if test -f /usr/libexec/ld.so; then |
11125 | hardcode_direct=yes | |
11126 | hardcode_shlibpath_var=no | |
11127 | hardcode_direct_absolute=yes | |
11128 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11129 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 11130 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11131 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
d58dead8 PG |
11132 | export_dynamic_flag_spec='${wl}-E' |
11133 | else | |
11134 | case $host_os in | |
11135 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11136 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11137 | hardcode_libdir_flag_spec='-R$libdir' | |
11138 | ;; | |
11139 | *) | |
11140 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11141 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11142 | ;; | |
11143 | esac | |
11144 | fi | |
11145 | else | |
11146 | ld_shlibs=no | |
1cf3d07d SE |
11147 | fi |
11148 | ;; | |
11149 | ||
11150 | os2*) | |
11151 | hardcode_libdir_flag_spec='-L$libdir' | |
11152 | hardcode_minus_L=yes | |
11153 | allow_undefined_flag=unsupported | |
43e02a8a | 11154 | 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 |
11155 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11156 | ;; | |
11157 | ||
11158 | osf3*) | |
11159 | if test "$GCC" = yes; then | |
11160 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11161 | 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 |
11162 | else |
11163 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11164 | 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 |
11165 | fi |
11166 | archive_cmds_need_lc='no' | |
11167 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11168 | hardcode_libdir_separator=: | |
11169 | ;; | |
11170 | ||
11171 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11172 | if test "$GCC" = yes; then | |
11173 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11174 | 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 |
11175 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11176 | else | |
11177 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11178 | 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 | 11179 | 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 | 11180 | $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 |
11181 | |
11182 | # Both c and cxx compiler support -rpath directly | |
11183 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11184 | fi | |
11185 | archive_cmds_need_lc='no' | |
11186 | hardcode_libdir_separator=: | |
11187 | ;; | |
11188 | ||
11189 | solaris*) | |
11190 | no_undefined_flag=' -z defs' | |
11191 | if test "$GCC" = yes; then | |
11192 | wlarc='${wl}' | |
11193 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11194 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11195 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11196 | else | |
11197 | case `$CC -V 2>&1` in | |
11198 | *"Compilers 5.0"*) | |
11199 | wlarc='' | |
11200 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11201 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11202 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11203 | ;; | |
11204 | *) | |
11205 | wlarc='${wl}' | |
11206 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11207 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11208 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11209 | ;; | |
11210 | esac | |
11211 | fi | |
11212 | hardcode_libdir_flag_spec='-R$libdir' | |
11213 | hardcode_shlibpath_var=no | |
11214 | case $host_os in | |
11215 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11216 | *) | |
11217 | # The compiler driver will combine and reorder linker options, | |
11218 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11219 | # but is careful enough not to reorder. | |
11220 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11221 | if test "$GCC" = yes; then | |
11222 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11223 | else | |
11224 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11225 | fi | |
11226 | ;; | |
11227 | esac | |
11228 | link_all_deplibs=yes | |
11229 | ;; | |
11230 | ||
11231 | sunos4*) | |
11232 | if test "x$host_vendor" = xsequent; then | |
11233 | # Use $CC to link under sequent, because it throws in some extra .o | |
11234 | # files that make .init and .fini sections work. | |
11235 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11236 | else | |
11237 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11238 | fi | |
11239 | hardcode_libdir_flag_spec='-L$libdir' | |
11240 | hardcode_direct=yes | |
11241 | hardcode_minus_L=yes | |
11242 | hardcode_shlibpath_var=no | |
11243 | ;; | |
11244 | ||
11245 | sysv4) | |
11246 | case $host_vendor in | |
11247 | sni) | |
11248 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11249 | hardcode_direct=yes # is this really true??? | |
11250 | ;; | |
11251 | siemens) | |
11252 | ## LD is ld it makes a PLAMLIB | |
11253 | ## CC just makes a GrossModule. | |
11254 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11255 | reload_cmds='$CC -r -o $output$reload_objs' | |
11256 | hardcode_direct=no | |
11257 | ;; | |
11258 | motorola) | |
11259 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11260 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11261 | ;; | |
11262 | esac | |
11263 | runpath_var='LD_RUN_PATH' | |
11264 | hardcode_shlibpath_var=no | |
11265 | ;; | |
11266 | ||
11267 | sysv4.3*) | |
11268 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11269 | hardcode_shlibpath_var=no | |
11270 | export_dynamic_flag_spec='-Bexport' | |
11271 | ;; | |
11272 | ||
11273 | sysv4*MP*) | |
11274 | if test -d /usr/nec; then | |
11275 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11276 | hardcode_shlibpath_var=no | |
11277 | runpath_var=LD_RUN_PATH | |
11278 | hardcode_runpath_var=yes | |
11279 | ld_shlibs=yes | |
11280 | fi | |
11281 | ;; | |
11282 | ||
11283 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11284 | no_undefined_flag='${wl}-z,text' | |
11285 | archive_cmds_need_lc=no | |
11286 | hardcode_shlibpath_var=no | |
11287 | runpath_var='LD_RUN_PATH' | |
11288 | ||
11289 | if test "$GCC" = yes; then | |
11290 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11291 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11292 | else | |
11293 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11294 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11295 | fi | |
11296 | ;; | |
11297 | ||
11298 | sysv5* | sco3.2v5* | sco5v6*) | |
11299 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11300 | # link with -lc, and that would cause any symbols used from libc to | |
11301 | # always be unresolved, which means just about no library would | |
11302 | # ever link correctly. If we're not using GNU ld we use -z text | |
11303 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11304 | # as -z defs. | |
11305 | no_undefined_flag='${wl}-z,text' | |
11306 | allow_undefined_flag='${wl}-z,nodefs' | |
11307 | archive_cmds_need_lc=no | |
11308 | hardcode_shlibpath_var=no | |
11309 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11310 | hardcode_libdir_separator=':' | |
11311 | link_all_deplibs=yes | |
11312 | export_dynamic_flag_spec='${wl}-Bexport' | |
11313 | runpath_var='LD_RUN_PATH' | |
11314 | ||
11315 | if test "$GCC" = yes; then | |
11316 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11317 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11318 | else | |
11319 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11320 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11321 | fi | |
11322 | ;; | |
11323 | ||
11324 | uts4*) | |
11325 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11326 | hardcode_libdir_flag_spec='-L$libdir' | |
11327 | hardcode_shlibpath_var=no | |
11328 | ;; | |
11329 | ||
11330 | *) | |
11331 | ld_shlibs=no | |
11332 | ;; | |
11333 | esac | |
11334 | ||
11335 | if test x$host_vendor = xsni; then | |
11336 | case $host in | |
11337 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11338 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11339 | ;; | |
11340 | esac | |
11341 | fi | |
11342 | fi | |
11343 | ||
5213506e RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11345 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11346 | test "$ld_shlibs" = no && can_build_shared=no |
11347 | ||
11348 | with_gnu_ld=$with_gnu_ld | |
11349 | ||
11350 | ||
11351 | ||
11352 | ||
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | # | |
11365 | # Do we need to explicitly link libc? | |
11366 | # | |
11367 | case "x$archive_cmds_need_lc" in | |
11368 | x|xyes) | |
11369 | # Assume -lc should be added | |
11370 | archive_cmds_need_lc=yes | |
11371 | ||
11372 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11373 | case $archive_cmds in | |
11374 | *'~'*) | |
11375 | # FIXME: we may have to deal with multi-command sequences. | |
11376 | ;; | |
11377 | '$CC '*) | |
11378 | # Test whether the compiler implicitly links with -lc since on some | |
11379 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11380 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11382 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11383 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 11384 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
11385 | else |
11386 | $RM conftest* | |
11387 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 11388 | |
5213506e | 11389 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11390 | (eval $ac_compile) 2>&5 |
11391 | ac_status=$? | |
5213506e RW |
11392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11393 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
11394 | soname=conftest |
11395 | lib=conftest | |
11396 | libobjs=conftest.$ac_objext | |
11397 | deplibs= | |
11398 | wl=$lt_prog_compiler_wl | |
11399 | pic_flag=$lt_prog_compiler_pic | |
11400 | compiler_flags=-v | |
11401 | linker_flags=-v | |
11402 | verstring= | |
11403 | output_objdir=. | |
11404 | libname=conftest | |
11405 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11406 | allow_undefined_flag= | |
5213506e | 11407 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
11408 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11409 | ac_status=$? | |
5213506e RW |
11410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11411 | test $ac_status = 0; } | |
baafc534 RW |
11412 | then |
11413 | lt_cv_archive_cmds_need_lc=no | |
11414 | else | |
11415 | lt_cv_archive_cmds_need_lc=yes | |
11416 | fi | |
11417 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11418 | else | |
11419 | cat conftest.err 1>&5 | |
11420 | fi | |
11421 | $RM conftest* | |
11422 | ||
11423 | fi | |
5213506e RW |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11425 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 11426 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
11427 | ;; |
11428 | esac | |
11429 | fi | |
11430 | ;; | |
11431 | esac | |
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
11573 | ||
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | ||
11583 | ||
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
5213506e RW |
11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11590 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 PG |
11591 | |
11592 | if test "$GCC" = yes; then | |
1cf3d07d SE |
11593 | case $host_os in |
11594 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11595 | *) lt_awk_arg="/^libraries:/" ;; | |
11596 | esac | |
43e02a8a RW |
11597 | case $host_os in |
11598 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11599 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11600 | esac | |
11601 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11602 | case $lt_search_path_spec in | |
11603 | *\;*) | |
1cf3d07d SE |
11604 | # if the path contains ";" then we assume it to be the separator |
11605 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11606 | # assumed that no part of a normal pathname contains ";" but that should | |
11607 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
11608 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11609 | ;; | |
11610 | *) | |
11611 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11612 | ;; | |
11613 | esac | |
1cf3d07d SE |
11614 | # Ok, now we have the path, separated by spaces, we can step through it |
11615 | # and add multilib dir if necessary. | |
11616 | lt_tmp_lt_search_path_spec= | |
11617 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11618 | for lt_sys_path in $lt_search_path_spec; do | |
11619 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11620 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11621 | else | |
11622 | test -d "$lt_sys_path" && \ | |
11623 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11624 | fi | |
11625 | done | |
43e02a8a | 11626 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
11627 | BEGIN {RS=" "; FS="/|\n";} { |
11628 | lt_foo=""; | |
11629 | lt_count=0; | |
11630 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11631 | if ($lt_i != "" && $lt_i != ".") { | |
11632 | if ($lt_i == "..") { | |
11633 | lt_count++; | |
11634 | } else { | |
11635 | if (lt_count == 0) { | |
11636 | lt_foo="/" $lt_i lt_foo; | |
11637 | } else { | |
11638 | lt_count--; | |
11639 | } | |
11640 | } | |
11641 | } | |
11642 | } | |
11643 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11644 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11645 | }'` | |
43e02a8a RW |
11646 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11647 | # for these hosts. | |
11648 | case $host_os in | |
11649 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11650 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11651 | esac | |
11652 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
11653 | else |
11654 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11655 | fi | |
11656 | library_names_spec= | |
11657 | libname_spec='lib$name' | |
11658 | soname_spec= | |
11659 | shrext_cmds=".so" | |
11660 | postinstall_cmds= | |
11661 | postuninstall_cmds= | |
11662 | finish_cmds= | |
11663 | finish_eval= | |
11664 | shlibpath_var= | |
11665 | shlibpath_overrides_runpath=unknown | |
11666 | version_type=none | |
11667 | dynamic_linker="$host_os ld.so" | |
11668 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11669 | need_lib_prefix=unknown | |
11670 | hardcode_into_libs=no | |
11671 | ||
11672 | # when you set need_version to no, make sure it does not cause -set_version | |
11673 | # flags to be left without arguments | |
11674 | need_version=unknown | |
11675 | ||
11676 | case $host_os in | |
11677 | aix3*) | |
11678 | version_type=linux | |
11679 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11680 | shlibpath_var=LIBPATH | |
11681 | ||
11682 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11683 | soname_spec='${libname}${release}${shared_ext}$major' | |
11684 | ;; | |
11685 | ||
4f6bebc3 | 11686 | aix[4-9]*) |
1cf3d07d SE |
11687 | version_type=linux |
11688 | need_lib_prefix=no | |
11689 | need_version=no | |
11690 | hardcode_into_libs=yes | |
11691 | if test "$host_cpu" = ia64; then | |
11692 | # AIX 5 supports IA64 | |
11693 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11694 | shlibpath_var=LD_LIBRARY_PATH | |
11695 | else | |
11696 | # With GCC up to 2.95.x, collect2 would create an import file | |
11697 | # for dependence libraries. The import file would start with | |
11698 | # the line `#! .'. This would cause the generated library to | |
11699 | # depend on `.', always an invalid library. This was fixed in | |
11700 | # development snapshots of GCC prior to 3.0. | |
11701 | case $host_os in | |
11702 | aix4 | aix4.[01] | aix4.[01].*) | |
11703 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11704 | echo ' yes ' | |
11705 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11706 | : | |
11707 | else | |
11708 | can_build_shared=no | |
11709 | fi | |
11710 | ;; | |
11711 | esac | |
11712 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11713 | # soname into executable. Probably we can add versioning support to | |
11714 | # collect2, so additional links can be useful in future. | |
11715 | if test "$aix_use_runtimelinking" = yes; then | |
11716 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11717 | # instead of lib<name>.a to let people know that these are not | |
11718 | # typical AIX shared libraries. | |
11719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11720 | else | |
11721 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11722 | # and later when we are not doing run time linking. | |
11723 | library_names_spec='${libname}${release}.a $libname.a' | |
11724 | soname_spec='${libname}${release}${shared_ext}$major' | |
11725 | fi | |
11726 | shlibpath_var=LIBPATH | |
11727 | fi | |
11728 | ;; | |
11729 | ||
11730 | amigaos*) | |
d58dead8 PG |
11731 | case $host_cpu in |
11732 | powerpc) | |
11733 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11734 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11736 | ;; | |
11737 | m68k) | |
1cf3d07d SE |
11738 | library_names_spec='$libname.ixlibrary $libname.a' |
11739 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 11740 | 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 |
11741 | ;; |
11742 | esac | |
1cf3d07d SE |
11743 | ;; |
11744 | ||
11745 | beos*) | |
11746 | library_names_spec='${libname}${shared_ext}' | |
11747 | dynamic_linker="$host_os ld.so" | |
11748 | shlibpath_var=LIBRARY_PATH | |
11749 | ;; | |
11750 | ||
11751 | bsdi[45]*) | |
11752 | version_type=linux | |
11753 | need_version=no | |
11754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11755 | soname_spec='${libname}${release}${shared_ext}$major' | |
11756 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11757 | shlibpath_var=LD_LIBRARY_PATH | |
11758 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11759 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11760 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11761 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11762 | # libtool to hard-code these into programs | |
11763 | ;; | |
11764 | ||
d58dead8 | 11765 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11766 | version_type=windows |
11767 | shrext_cmds=".dll" | |
11768 | need_version=no | |
11769 | need_lib_prefix=no | |
11770 | ||
d58dead8 PG |
11771 | case $GCC,$host_os in |
11772 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
11773 | library_names_spec='$libname.dll.a' |
11774 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11775 | postinstall_cmds='base_file=`basename \${file}`~ | |
11776 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11777 | dldir=$destdir/`dirname \$dlpath`~ | |
11778 | test -d \$dldir || mkdir -p \$dldir~ | |
11779 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11780 | chmod a+x \$dldir/$dlname~ | |
11781 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11782 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11783 | fi' | |
11784 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11785 | dlpath=$dir/\$dldll~ | |
11786 | $RM \$dlpath' | |
11787 | shlibpath_overrides_runpath=yes | |
11788 | ||
11789 | case $host_os in | |
11790 | cygwin*) | |
11791 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11792 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
11793 | |
11794 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 11795 | ;; |
d58dead8 | 11796 | mingw* | cegcc*) |
1cf3d07d SE |
11797 | # MinGW DLLs use traditional 'lib' prefix |
11798 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
11799 | ;; |
11800 | pw32*) | |
11801 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11802 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11803 | ;; | |
11804 | esac | |
11805 | ;; | |
11806 | ||
11807 | *) | |
11808 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11809 | ;; | |
11810 | esac | |
11811 | dynamic_linker='Win32 ld.exe' | |
11812 | # FIXME: first we should search . and the directory the executable is in | |
11813 | shlibpath_var=PATH | |
11814 | ;; | |
11815 | ||
11816 | darwin* | rhapsody*) | |
11817 | dynamic_linker="$host_os dyld" | |
11818 | version_type=darwin | |
11819 | need_lib_prefix=no | |
11820 | need_version=no | |
11821 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11822 | soname_spec='${libname}${release}${major}$shared_ext' | |
11823 | shlibpath_overrides_runpath=yes | |
11824 | shlibpath_var=DYLD_LIBRARY_PATH | |
11825 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11826 | ||
11827 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11828 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11829 | ;; | |
11830 | ||
11831 | dgux*) | |
11832 | version_type=linux | |
11833 | need_lib_prefix=no | |
11834 | need_version=no | |
11835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11836 | soname_spec='${libname}${release}${shared_ext}$major' | |
11837 | shlibpath_var=LD_LIBRARY_PATH | |
11838 | ;; | |
11839 | ||
1cf3d07d SE |
11840 | freebsd* | dragonfly*) |
11841 | # DragonFly does not have aout. When/if they implement a new | |
11842 | # versioning mechanism, adjust this. | |
11843 | if test -x /usr/bin/objformat; then | |
11844 | objformat=`/usr/bin/objformat` | |
11845 | else | |
11846 | case $host_os in | |
c6084f68 | 11847 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
11848 | *) objformat=elf ;; |
11849 | esac | |
11850 | fi | |
11851 | version_type=freebsd-$objformat | |
11852 | case $version_type in | |
11853 | freebsd-elf*) | |
11854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11855 | need_version=no | |
11856 | need_lib_prefix=no | |
11857 | ;; | |
11858 | freebsd-*) | |
11859 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11860 | need_version=yes | |
11861 | ;; | |
11862 | esac | |
11863 | shlibpath_var=LD_LIBRARY_PATH | |
11864 | case $host_os in | |
c6084f68 | 11865 | freebsd2.*) |
1cf3d07d SE |
11866 | shlibpath_overrides_runpath=yes |
11867 | ;; | |
11868 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11869 | shlibpath_overrides_runpath=yes | |
11870 | hardcode_into_libs=yes | |
11871 | ;; | |
11872 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11873 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11874 | shlibpath_overrides_runpath=no | |
11875 | hardcode_into_libs=yes | |
11876 | ;; | |
11877 | *) # from 4.6 on, and DragonFly | |
11878 | shlibpath_overrides_runpath=yes | |
11879 | hardcode_into_libs=yes | |
11880 | ;; | |
11881 | esac | |
11882 | ;; | |
11883 | ||
11884 | gnu*) | |
11885 | version_type=linux | |
11886 | need_lib_prefix=no | |
11887 | need_version=no | |
11888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11889 | soname_spec='${libname}${release}${shared_ext}$major' | |
11890 | shlibpath_var=LD_LIBRARY_PATH | |
11891 | hardcode_into_libs=yes | |
11892 | ;; | |
11893 | ||
43e02a8a RW |
11894 | haiku*) |
11895 | version_type=linux | |
11896 | need_lib_prefix=no | |
11897 | need_version=no | |
11898 | dynamic_linker="$host_os runtime_loader" | |
11899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11900 | soname_spec='${libname}${release}${shared_ext}$major' | |
11901 | shlibpath_var=LIBRARY_PATH | |
11902 | shlibpath_overrides_runpath=yes | |
11903 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11904 | hardcode_into_libs=yes | |
11905 | ;; | |
11906 | ||
1cf3d07d SE |
11907 | hpux9* | hpux10* | hpux11*) |
11908 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11909 | # link against other versions. | |
11910 | version_type=sunos | |
11911 | need_lib_prefix=no | |
11912 | need_version=no | |
11913 | case $host_cpu in | |
11914 | ia64*) | |
11915 | shrext_cmds='.so' | |
11916 | hardcode_into_libs=yes | |
11917 | dynamic_linker="$host_os dld.so" | |
11918 | shlibpath_var=LD_LIBRARY_PATH | |
11919 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11921 | soname_spec='${libname}${release}${shared_ext}$major' | |
11922 | if test "X$HPUX_IA64_MODE" = X32; then | |
11923 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11924 | else | |
11925 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11926 | fi | |
11927 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11928 | ;; | |
11929 | hppa*64*) | |
11930 | shrext_cmds='.sl' | |
11931 | hardcode_into_libs=yes | |
11932 | dynamic_linker="$host_os dld.sl" | |
11933 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11934 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11936 | soname_spec='${libname}${release}${shared_ext}$major' | |
11937 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11938 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11939 | ;; | |
11940 | *) | |
11941 | shrext_cmds='.sl' | |
11942 | dynamic_linker="$host_os dld.sl" | |
11943 | shlibpath_var=SHLIB_PATH | |
11944 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11946 | soname_spec='${libname}${release}${shared_ext}$major' | |
11947 | ;; | |
11948 | esac | |
43e02a8a | 11949 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 11950 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
11951 | # or fails outright, so override atomically: |
11952 | install_override_mode=555 | |
1cf3d07d SE |
11953 | ;; |
11954 | ||
11955 | interix[3-9]*) | |
11956 | version_type=linux | |
11957 | need_lib_prefix=no | |
11958 | need_version=no | |
11959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11960 | soname_spec='${libname}${release}${shared_ext}$major' | |
11961 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11962 | shlibpath_var=LD_LIBRARY_PATH | |
11963 | shlibpath_overrides_runpath=no | |
11964 | hardcode_into_libs=yes | |
11965 | ;; | |
11966 | ||
11967 | irix5* | irix6* | nonstopux*) | |
11968 | case $host_os in | |
11969 | nonstopux*) version_type=nonstopux ;; | |
11970 | *) | |
11971 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11972 | version_type=linux | |
11973 | else | |
11974 | version_type=irix | |
11975 | fi ;; | |
11976 | esac | |
11977 | need_lib_prefix=no | |
11978 | need_version=no | |
11979 | soname_spec='${libname}${release}${shared_ext}$major' | |
11980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11981 | case $host_os in | |
11982 | irix5* | nonstopux*) | |
11983 | libsuff= shlibsuff= | |
11984 | ;; | |
11985 | *) | |
11986 | case $LD in # libtool.m4 will add one of these switches to LD | |
11987 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11988 | libsuff= shlibsuff= libmagic=32-bit;; | |
11989 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11990 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11991 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11992 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11993 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11994 | esac | |
11995 | ;; | |
11996 | esac | |
11997 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11998 | shlibpath_overrides_runpath=no | |
11999 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12000 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12001 | hardcode_into_libs=yes | |
12002 | ;; | |
12003 | ||
12004 | # No shared lib support for Linux oldld, aout, or coff. | |
12005 | linux*oldld* | linux*aout* | linux*coff*) | |
12006 | dynamic_linker=no | |
12007 | ;; | |
12008 | ||
12009 | # This must be Linux ELF. | |
e9085da5 MR |
12010 | |
12011 | # uclinux* changes (here and below) have been submitted to the libtool | |
12012 | # project, but have not yet been accepted: they are GCC-local changes | |
12013 | # for the time being. (See | |
12014 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
12015 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) | |
1cf3d07d SE |
12016 | version_type=linux |
12017 | need_lib_prefix=no | |
12018 | need_version=no | |
12019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12020 | soname_spec='${libname}${release}${shared_ext}$major' | |
12021 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12022 | shlibpath_var=LD_LIBRARY_PATH | |
12023 | shlibpath_overrides_runpath=no | |
baafc534 | 12024 | |
1cf3d07d | 12025 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 12026 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 12027 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
12028 | else |
12029 | lt_cv_shlibpath_overrides_runpath=no | |
12030 | save_LDFLAGS=$LDFLAGS | |
12031 | save_libdir=$libdir | |
12032 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12033 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12034 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12035 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12036 | fi |
5213506e | 12037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12038 | /* end confdefs.h. */ |
12039 | ||
12040 | int | |
12041 | main () | |
12042 | { | |
12043 | ||
12044 | ; | |
12045 | return 0; | |
12046 | } | |
12047 | _ACEOF | |
5213506e RW |
12048 | if ac_fn_c_try_link "$LINENO"; then : |
12049 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12050 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 12051 | fi |
1cf3d07d | 12052 | fi |
5213506e RW |
12053 | rm -f core conftest.err conftest.$ac_objext \ |
12054 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12055 | LDFLAGS=$save_LDFLAGS |
12056 | libdir=$save_libdir | |
12057 | ||
12058 | fi | |
12059 | ||
12060 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
12061 | |
12062 | # This implies no fast_install, which is unacceptable. | |
12063 | # Some rework will be needed to allow for fast_install | |
12064 | # before this can be enabled. | |
12065 | hardcode_into_libs=yes | |
12066 | ||
12067 | # Append ld.so.conf contents to the search path | |
12068 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12069 | 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 |
12070 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12071 | fi | |
12072 | ||
12073 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12074 | # powerpc, because MkLinux only supported shared libraries with the | |
12075 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12076 | # most powerpc-linux boxes support dynamic linking these days and | |
12077 | # people can always --disable-shared, the test was removed, and we | |
12078 | # assume the GNU/Linux dynamic linker is in use. | |
12079 | dynamic_linker='GNU/Linux ld.so' | |
12080 | ;; | |
12081 | ||
12082 | netbsd*) | |
12083 | version_type=sunos | |
12084 | need_lib_prefix=no | |
12085 | need_version=no | |
12086 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12088 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12089 | dynamic_linker='NetBSD (a.out) ld.so' | |
12090 | else | |
12091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12092 | soname_spec='${libname}${release}${shared_ext}$major' | |
12093 | dynamic_linker='NetBSD ld.elf_so' | |
12094 | fi | |
12095 | shlibpath_var=LD_LIBRARY_PATH | |
12096 | shlibpath_overrides_runpath=yes | |
12097 | hardcode_into_libs=yes | |
12098 | ;; | |
12099 | ||
12100 | newsos6) | |
12101 | version_type=linux | |
12102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12103 | shlibpath_var=LD_LIBRARY_PATH | |
12104 | shlibpath_overrides_runpath=yes | |
12105 | ;; | |
12106 | ||
12107 | *nto* | *qnx*) | |
12108 | version_type=qnx | |
12109 | need_lib_prefix=no | |
12110 | need_version=no | |
12111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12112 | soname_spec='${libname}${release}${shared_ext}$major' | |
12113 | shlibpath_var=LD_LIBRARY_PATH | |
12114 | shlibpath_overrides_runpath=no | |
12115 | hardcode_into_libs=yes | |
12116 | dynamic_linker='ldqnx.so' | |
12117 | ;; | |
12118 | ||
12119 | openbsd*) | |
12120 | version_type=sunos | |
12121 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12122 | need_lib_prefix=no | |
12123 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12124 | case $host_os in | |
12125 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12126 | *) need_version=no ;; | |
12127 | esac | |
12128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12129 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12130 | shlibpath_var=LD_LIBRARY_PATH | |
12131 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12132 | case $host_os in | |
12133 | openbsd2.[89] | openbsd2.[89].*) | |
12134 | shlibpath_overrides_runpath=no | |
12135 | ;; | |
12136 | *) | |
12137 | shlibpath_overrides_runpath=yes | |
12138 | ;; | |
12139 | esac | |
12140 | else | |
12141 | shlibpath_overrides_runpath=yes | |
12142 | fi | |
12143 | ;; | |
12144 | ||
12145 | os2*) | |
12146 | libname_spec='$name' | |
12147 | shrext_cmds=".dll" | |
12148 | need_lib_prefix=no | |
12149 | library_names_spec='$libname${shared_ext} $libname.a' | |
12150 | dynamic_linker='OS/2 ld.exe' | |
12151 | shlibpath_var=LIBPATH | |
12152 | ;; | |
12153 | ||
12154 | osf3* | osf4* | osf5*) | |
12155 | version_type=osf | |
12156 | need_lib_prefix=no | |
12157 | need_version=no | |
12158 | soname_spec='${libname}${release}${shared_ext}$major' | |
12159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12160 | shlibpath_var=LD_LIBRARY_PATH | |
12161 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12162 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12163 | ;; | |
12164 | ||
12165 | rdos*) | |
12166 | dynamic_linker=no | |
12167 | ;; | |
12168 | ||
12169 | solaris*) | |
12170 | version_type=linux | |
12171 | need_lib_prefix=no | |
12172 | need_version=no | |
12173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12174 | soname_spec='${libname}${release}${shared_ext}$major' | |
12175 | shlibpath_var=LD_LIBRARY_PATH | |
12176 | shlibpath_overrides_runpath=yes | |
12177 | hardcode_into_libs=yes | |
12178 | # ldd complains unless libraries are executable | |
12179 | postinstall_cmds='chmod +x $lib' | |
12180 | ;; | |
12181 | ||
12182 | sunos4*) | |
12183 | version_type=sunos | |
12184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12185 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12186 | shlibpath_var=LD_LIBRARY_PATH | |
12187 | shlibpath_overrides_runpath=yes | |
12188 | if test "$with_gnu_ld" = yes; then | |
12189 | need_lib_prefix=no | |
12190 | fi | |
12191 | need_version=yes | |
12192 | ;; | |
12193 | ||
12194 | sysv4 | sysv4.3*) | |
12195 | version_type=linux | |
12196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12197 | soname_spec='${libname}${release}${shared_ext}$major' | |
12198 | shlibpath_var=LD_LIBRARY_PATH | |
12199 | case $host_vendor in | |
12200 | sni) | |
12201 | shlibpath_overrides_runpath=no | |
12202 | need_lib_prefix=no | |
12203 | runpath_var=LD_RUN_PATH | |
12204 | ;; | |
12205 | siemens) | |
12206 | need_lib_prefix=no | |
12207 | ;; | |
12208 | motorola) | |
12209 | need_lib_prefix=no | |
12210 | need_version=no | |
12211 | shlibpath_overrides_runpath=no | |
12212 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12213 | ;; | |
12214 | esac | |
12215 | ;; | |
12216 | ||
12217 | sysv4*MP*) | |
12218 | if test -d /usr/nec ;then | |
12219 | version_type=linux | |
12220 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12221 | soname_spec='$libname${shared_ext}.$major' | |
12222 | shlibpath_var=LD_LIBRARY_PATH | |
12223 | fi | |
12224 | ;; | |
12225 | ||
12226 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12227 | version_type=freebsd-elf | |
12228 | need_lib_prefix=no | |
12229 | need_version=no | |
12230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12231 | soname_spec='${libname}${release}${shared_ext}$major' | |
12232 | shlibpath_var=LD_LIBRARY_PATH | |
12233 | shlibpath_overrides_runpath=yes | |
12234 | hardcode_into_libs=yes | |
12235 | if test "$with_gnu_ld" = yes; then | |
12236 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12237 | else | |
12238 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12239 | case $host_os in | |
12240 | sco3.2v5*) | |
12241 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12242 | ;; | |
12243 | esac | |
12244 | fi | |
12245 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12246 | ;; | |
12247 | ||
12248 | tpf*) | |
12249 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12250 | version_type=linux | |
12251 | need_lib_prefix=no | |
12252 | need_version=no | |
d58dead8 | 12253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12254 | shlibpath_var=LD_LIBRARY_PATH |
12255 | shlibpath_overrides_runpath=no | |
12256 | hardcode_into_libs=yes | |
12257 | ;; | |
12258 | ||
12259 | uts4*) | |
12260 | version_type=linux | |
12261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12262 | soname_spec='${libname}${release}${shared_ext}$major' | |
12263 | shlibpath_var=LD_LIBRARY_PATH | |
12264 | ;; | |
12265 | ||
12266 | *) | |
12267 | dynamic_linker=no | |
12268 | ;; | |
12269 | esac | |
5213506e RW |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12271 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
12272 | test "$dynamic_linker" = no && can_build_shared=no |
12273 | ||
12274 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12275 | if test "$GCC" = yes; then | |
12276 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12277 | fi | |
12278 | ||
d58dead8 PG |
12279 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12280 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12281 | fi | |
12282 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12283 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12284 | fi | |
12285 | ||
1cf3d07d SE |
12286 | |
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | ||
12322 | ||
12323 | ||
12324 | ||
12325 | ||
12326 | ||
12327 | ||
12328 | ||
12329 | ||
12330 | ||
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | ||
12346 | ||
12347 | ||
12348 | ||
12349 | ||
12350 | ||
12351 | ||
12352 | ||
12353 | ||
12354 | ||
12355 | ||
12356 | ||
12357 | ||
12358 | ||
12359 | ||
12360 | ||
12361 | ||
12362 | ||
12363 | ||
12364 | ||
12365 | ||
43e02a8a RW |
12366 | |
12367 | ||
12368 | ||
12369 | ||
12370 | ||
1cf3d07d SE |
12371 | |
12372 | ||
12373 | ||
12374 | ||
12375 | ||
12376 | ||
5213506e RW |
12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12378 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
12379 | hardcode_action= |
12380 | if test -n "$hardcode_libdir_flag_spec" || | |
12381 | test -n "$runpath_var" || | |
12382 | test "X$hardcode_automatic" = "Xyes" ; then | |
12383 | ||
12384 | # We can hardcode non-existent directories. | |
12385 | if test "$hardcode_direct" != no && | |
12386 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12387 | # have to relink, otherwise we might link with an installed library | |
12388 | # when we should be linking with a yet-to-be-installed one | |
12389 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12390 | test "$hardcode_minus_L" != no; then | |
12391 | # Linking always hardcodes the temporary library directory. | |
12392 | hardcode_action=relink | |
12393 | else | |
12394 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12395 | hardcode_action=immediate | |
12396 | fi | |
12397 | else | |
12398 | # We cannot hardcode anything, or else we can only hardcode existing | |
12399 | # directories. | |
12400 | hardcode_action=unsupported | |
12401 | fi | |
5213506e RW |
12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12403 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
12404 | |
12405 | if test "$hardcode_action" = relink || | |
12406 | test "$inherit_rpath" = yes; then | |
12407 | # Fast installation is not supported | |
12408 | enable_fast_install=no | |
12409 | elif test "$shlibpath_overrides_runpath" = yes || | |
12410 | test "$enable_shared" = no; then | |
12411 | # Fast installation is not necessary | |
12412 | enable_fast_install=needless | |
12413 | fi | |
12414 | ||
12415 | ||
12416 | ||
12417 | ||
12418 | ||
12419 | ||
12420 | if test "x$enable_dlopen" != xyes; then | |
12421 | enable_dlopen=unknown | |
12422 | enable_dlopen_self=unknown | |
12423 | enable_dlopen_self_static=unknown | |
12424 | else | |
12425 | lt_cv_dlopen=no | |
12426 | lt_cv_dlopen_libs= | |
12427 | ||
12428 | case $host_os in | |
12429 | beos*) | |
12430 | lt_cv_dlopen="load_add_on" | |
12431 | lt_cv_dlopen_libs= | |
12432 | lt_cv_dlopen_self=yes | |
12433 | ;; | |
12434 | ||
d58dead8 | 12435 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12436 | lt_cv_dlopen="LoadLibrary" |
12437 | lt_cv_dlopen_libs= | |
12438 | ;; | |
12439 | ||
12440 | cygwin*) | |
12441 | lt_cv_dlopen="dlopen" | |
12442 | lt_cv_dlopen_libs= | |
12443 | ;; | |
12444 | ||
12445 | darwin*) | |
12446 | # if libdl is installed we need to link against it | |
5213506e RW |
12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12448 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12449 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12450 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12451 | else |
12452 | ac_check_lib_save_LIBS=$LIBS | |
12453 | LIBS="-ldl $LIBS" | |
12454 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12455 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12456 | fi |
5213506e | 12457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12458 | /* end confdefs.h. */ |
12459 | ||
5213506e RW |
12460 | /* Override any GCC internal prototype to avoid an error. |
12461 | Use char because int might match the return type of a GCC | |
12462 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12463 | #ifdef __cplusplus |
12464 | extern "C" | |
12465 | #endif | |
1cf3d07d SE |
12466 | char dlopen (); |
12467 | int | |
12468 | main () | |
12469 | { | |
5213506e | 12470 | return dlopen (); |
1cf3d07d SE |
12471 | ; |
12472 | return 0; | |
12473 | } | |
12474 | _ACEOF | |
5213506e | 12475 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12476 | ac_cv_lib_dl_dlopen=yes |
12477 | else | |
5213506e | 12478 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12479 | fi |
5213506e RW |
12480 | rm -f core conftest.err conftest.$ac_objext \ |
12481 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12482 | LIBS=$ac_check_lib_save_LIBS |
12483 | fi | |
5213506e RW |
12484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12485 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12486 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12487 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12488 | else | |
12489 | ||
12490 | lt_cv_dlopen="dyld" | |
12491 | lt_cv_dlopen_libs= | |
12492 | lt_cv_dlopen_self=yes | |
12493 | ||
12494 | fi | |
12495 | ||
12496 | ;; | |
12497 | ||
12498 | *) | |
5213506e | 12499 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 12500 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
12501 | lt_cv_dlopen="shl_load" |
12502 | else | |
5213506e RW |
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12504 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12505 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 12506 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12507 | else |
12508 | ac_check_lib_save_LIBS=$LIBS | |
12509 | LIBS="-ldld $LIBS" | |
12510 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12511 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12512 | fi |
5213506e | 12513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12514 | /* end confdefs.h. */ |
12515 | ||
5213506e RW |
12516 | /* Override any GCC internal prototype to avoid an error. |
12517 | Use char because int might match the return type of a GCC | |
12518 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12519 | #ifdef __cplusplus |
12520 | extern "C" | |
12521 | #endif | |
1cf3d07d SE |
12522 | char shl_load (); |
12523 | int | |
12524 | main () | |
12525 | { | |
5213506e | 12526 | return shl_load (); |
1cf3d07d SE |
12527 | ; |
12528 | return 0; | |
12529 | } | |
12530 | _ACEOF | |
5213506e | 12531 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12532 | ac_cv_lib_dld_shl_load=yes |
12533 | else | |
5213506e | 12534 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 12535 | fi |
5213506e RW |
12536 | rm -f core conftest.err conftest.$ac_objext \ |
12537 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12538 | LIBS=$ac_check_lib_save_LIBS |
12539 | fi | |
5213506e RW |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12541 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12542 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d58dead8 | 12543 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 12544 | else |
5213506e | 12545 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 12546 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
12547 | lt_cv_dlopen="dlopen" |
12548 | else | |
5213506e RW |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12550 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12551 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12552 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12553 | else |
12554 | ac_check_lib_save_LIBS=$LIBS | |
12555 | LIBS="-ldl $LIBS" | |
12556 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12557 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12558 | fi |
5213506e | 12559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12560 | /* end confdefs.h. */ |
12561 | ||
5213506e RW |
12562 | /* Override any GCC internal prototype to avoid an error. |
12563 | Use char because int might match the return type of a GCC | |
12564 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12565 | #ifdef __cplusplus |
12566 | extern "C" | |
12567 | #endif | |
1cf3d07d SE |
12568 | char dlopen (); |
12569 | int | |
12570 | main () | |
12571 | { | |
5213506e | 12572 | return dlopen (); |
1cf3d07d SE |
12573 | ; |
12574 | return 0; | |
12575 | } | |
12576 | _ACEOF | |
5213506e | 12577 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12578 | ac_cv_lib_dl_dlopen=yes |
12579 | else | |
5213506e | 12580 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12581 | fi |
5213506e RW |
12582 | rm -f core conftest.err conftest.$ac_objext \ |
12583 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12584 | LIBS=$ac_check_lib_save_LIBS |
12585 | fi | |
5213506e RW |
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12587 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12588 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12589 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12590 | else | |
5213506e RW |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12592 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12593 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 12594 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12595 | else |
12596 | ac_check_lib_save_LIBS=$LIBS | |
12597 | LIBS="-lsvld $LIBS" | |
12598 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12599 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12600 | fi |
5213506e | 12601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12602 | /* end confdefs.h. */ |
12603 | ||
5213506e RW |
12604 | /* Override any GCC internal prototype to avoid an error. |
12605 | Use char because int might match the return type of a GCC | |
12606 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12607 | #ifdef __cplusplus |
12608 | extern "C" | |
12609 | #endif | |
1cf3d07d SE |
12610 | char dlopen (); |
12611 | int | |
12612 | main () | |
12613 | { | |
5213506e | 12614 | return dlopen (); |
1cf3d07d SE |
12615 | ; |
12616 | return 0; | |
12617 | } | |
12618 | _ACEOF | |
5213506e | 12619 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12620 | ac_cv_lib_svld_dlopen=yes |
12621 | else | |
5213506e | 12622 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 12623 | fi |
5213506e RW |
12624 | rm -f core conftest.err conftest.$ac_objext \ |
12625 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12626 | LIBS=$ac_check_lib_save_LIBS |
12627 | fi | |
5213506e RW |
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12629 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12630 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
12631 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12632 | else | |
5213506e RW |
12633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12634 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12635 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 12636 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12637 | else |
12638 | ac_check_lib_save_LIBS=$LIBS | |
12639 | LIBS="-ldld $LIBS" | |
12640 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12641 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12642 | fi |
5213506e | 12643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12644 | /* end confdefs.h. */ |
12645 | ||
5213506e RW |
12646 | /* Override any GCC internal prototype to avoid an error. |
12647 | Use char because int might match the return type of a GCC | |
12648 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12649 | #ifdef __cplusplus |
12650 | extern "C" | |
12651 | #endif | |
1cf3d07d SE |
12652 | char dld_link (); |
12653 | int | |
12654 | main () | |
12655 | { | |
5213506e | 12656 | return dld_link (); |
1cf3d07d SE |
12657 | ; |
12658 | return 0; | |
12659 | } | |
12660 | _ACEOF | |
5213506e | 12661 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12662 | ac_cv_lib_dld_dld_link=yes |
12663 | else | |
5213506e | 12664 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 12665 | fi |
5213506e RW |
12666 | rm -f core conftest.err conftest.$ac_objext \ |
12667 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12668 | LIBS=$ac_check_lib_save_LIBS |
12669 | fi | |
5213506e RW |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12671 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12672 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d58dead8 | 12673 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
12674 | fi |
12675 | ||
12676 | ||
12677 | fi | |
12678 | ||
12679 | ||
12680 | fi | |
12681 | ||
12682 | ||
12683 | fi | |
12684 | ||
12685 | ||
12686 | fi | |
12687 | ||
12688 | ||
12689 | fi | |
12690 | ||
12691 | ;; | |
12692 | esac | |
12693 | ||
12694 | if test "x$lt_cv_dlopen" != xno; then | |
12695 | enable_dlopen=yes | |
12696 | else | |
12697 | enable_dlopen=no | |
12698 | fi | |
12699 | ||
12700 | case $lt_cv_dlopen in | |
12701 | dlopen) | |
12702 | save_CPPFLAGS="$CPPFLAGS" | |
12703 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12704 | ||
12705 | save_LDFLAGS="$LDFLAGS" | |
12706 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12707 | ||
12708 | save_LIBS="$LIBS" | |
12709 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12710 | ||
5213506e RW |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12712 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12713 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 12714 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12715 | else |
12716 | if test "$cross_compiling" = yes; then : | |
12717 | lt_cv_dlopen_self=cross | |
12718 | else | |
12719 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12720 | lt_status=$lt_dlunknown | |
12721 | cat > conftest.$ac_ext <<_LT_EOF | |
e8e66971 | 12722 | #line 12722 "configure" |
1cf3d07d SE |
12723 | #include "confdefs.h" |
12724 | ||
12725 | #if HAVE_DLFCN_H | |
12726 | #include <dlfcn.h> | |
12727 | #endif | |
12728 | ||
12729 | #include <stdio.h> | |
12730 | ||
12731 | #ifdef RTLD_GLOBAL | |
12732 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12733 | #else | |
12734 | # ifdef DL_GLOBAL | |
12735 | # define LT_DLGLOBAL DL_GLOBAL | |
12736 | # else | |
12737 | # define LT_DLGLOBAL 0 | |
12738 | # endif | |
12739 | #endif | |
12740 | ||
12741 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12742 | find out it does not work in some platform. */ | |
12743 | #ifndef LT_DLLAZY_OR_NOW | |
12744 | # ifdef RTLD_LAZY | |
12745 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12746 | # else | |
12747 | # ifdef DL_LAZY | |
12748 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12749 | # else | |
12750 | # ifdef RTLD_NOW | |
12751 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12752 | # else | |
12753 | # ifdef DL_NOW | |
12754 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12755 | # else | |
12756 | # define LT_DLLAZY_OR_NOW 0 | |
12757 | # endif | |
12758 | # endif | |
12759 | # endif | |
12760 | # endif | |
12761 | #endif | |
12762 | ||
43e02a8a RW |
12763 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12764 | correspondingly for the symbols needed. */ | |
12765 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12766 | void fnord () __attribute__((visibility("default"))); | |
12767 | #endif | |
12768 | ||
12769 | void fnord () { int i=42; } | |
1cf3d07d SE |
12770 | int main () |
12771 | { | |
12772 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12773 | int status = $lt_dlunknown; | |
12774 | ||
12775 | if (self) | |
12776 | { | |
12777 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12778 | else |
12779 | { | |
12780 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12781 | else puts (dlerror ()); | |
12782 | } | |
1cf3d07d SE |
12783 | /* dlclose (self); */ |
12784 | } | |
12785 | else | |
12786 | puts (dlerror ()); | |
12787 | ||
d58dead8 | 12788 | return status; |
1cf3d07d SE |
12789 | } |
12790 | _LT_EOF | |
5213506e | 12791 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12792 | (eval $ac_link) 2>&5 |
12793 | ac_status=$? | |
5213506e RW |
12794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12795 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12796 | (./conftest; exit; ) >&5 2>/dev/null |
12797 | lt_status=$? | |
12798 | case x$lt_status in | |
12799 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12800 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12801 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12802 | esac | |
12803 | else : | |
12804 | # compilation failed | |
12805 | lt_cv_dlopen_self=no | |
12806 | fi | |
12807 | fi | |
12808 | rm -fr conftest* | |
12809 | ||
12810 | ||
12811 | fi | |
5213506e RW |
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12813 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
12814 | |
12815 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12816 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12818 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12819 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 12820 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12821 | else |
12822 | if test "$cross_compiling" = yes; then : | |
12823 | lt_cv_dlopen_self_static=cross | |
12824 | else | |
12825 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12826 | lt_status=$lt_dlunknown | |
12827 | cat > conftest.$ac_ext <<_LT_EOF | |
e8e66971 | 12828 | #line 12828 "configure" |
1cf3d07d SE |
12829 | #include "confdefs.h" |
12830 | ||
12831 | #if HAVE_DLFCN_H | |
12832 | #include <dlfcn.h> | |
12833 | #endif | |
12834 | ||
12835 | #include <stdio.h> | |
12836 | ||
12837 | #ifdef RTLD_GLOBAL | |
12838 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12839 | #else | |
12840 | # ifdef DL_GLOBAL | |
12841 | # define LT_DLGLOBAL DL_GLOBAL | |
12842 | # else | |
12843 | # define LT_DLGLOBAL 0 | |
12844 | # endif | |
12845 | #endif | |
12846 | ||
12847 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12848 | find out it does not work in some platform. */ | |
12849 | #ifndef LT_DLLAZY_OR_NOW | |
12850 | # ifdef RTLD_LAZY | |
12851 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12852 | # else | |
12853 | # ifdef DL_LAZY | |
12854 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12855 | # else | |
12856 | # ifdef RTLD_NOW | |
12857 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12858 | # else | |
12859 | # ifdef DL_NOW | |
12860 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12861 | # else | |
12862 | # define LT_DLLAZY_OR_NOW 0 | |
12863 | # endif | |
12864 | # endif | |
12865 | # endif | |
12866 | # endif | |
12867 | #endif | |
12868 | ||
43e02a8a RW |
12869 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12870 | correspondingly for the symbols needed. */ | |
12871 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12872 | void fnord () __attribute__((visibility("default"))); | |
12873 | #endif | |
12874 | ||
12875 | void fnord () { int i=42; } | |
1cf3d07d SE |
12876 | int main () |
12877 | { | |
12878 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12879 | int status = $lt_dlunknown; | |
12880 | ||
12881 | if (self) | |
12882 | { | |
12883 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12884 | else |
12885 | { | |
12886 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12887 | else puts (dlerror ()); | |
12888 | } | |
1cf3d07d SE |
12889 | /* dlclose (self); */ |
12890 | } | |
12891 | else | |
12892 | puts (dlerror ()); | |
12893 | ||
d58dead8 | 12894 | return status; |
1cf3d07d SE |
12895 | } |
12896 | _LT_EOF | |
5213506e | 12897 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12898 | (eval $ac_link) 2>&5 |
12899 | ac_status=$? | |
5213506e RW |
12900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12901 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12902 | (./conftest; exit; ) >&5 2>/dev/null |
12903 | lt_status=$? | |
12904 | case x$lt_status in | |
12905 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12906 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12907 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12908 | esac | |
12909 | else : | |
12910 | # compilation failed | |
12911 | lt_cv_dlopen_self_static=no | |
12912 | fi | |
12913 | fi | |
12914 | rm -fr conftest* | |
12915 | ||
12916 | ||
12917 | fi | |
5213506e RW |
12918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12919 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
12920 | fi |
12921 | ||
12922 | CPPFLAGS="$save_CPPFLAGS" | |
12923 | LDFLAGS="$save_LDFLAGS" | |
12924 | LIBS="$save_LIBS" | |
12925 | ;; | |
12926 | esac | |
12927 | ||
12928 | case $lt_cv_dlopen_self in | |
12929 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12930 | *) enable_dlopen_self=unknown ;; | |
12931 | esac | |
12932 | ||
12933 | case $lt_cv_dlopen_self_static in | |
12934 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12935 | *) enable_dlopen_self_static=unknown ;; | |
12936 | esac | |
12937 | fi | |
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | striplib= | |
12956 | old_striplib= | |
5213506e RW |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12958 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
12959 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12960 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12961 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12963 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
12964 | else |
12965 | # FIXME - insert some real tests, host_os isn't really good enough | |
12966 | case $host_os in | |
12967 | darwin*) | |
12968 | if test -n "$STRIP" ; then | |
12969 | striplib="$STRIP -x" | |
12970 | old_striplib="$STRIP -S" | |
5213506e RW |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12972 | $as_echo "yes" >&6; } | |
1cf3d07d | 12973 | else |
5213506e RW |
12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12975 | $as_echo "no" >&6; } | |
1cf3d07d SE |
12976 | fi |
12977 | ;; | |
12978 | *) | |
5213506e RW |
12979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12980 | $as_echo "no" >&6; } | |
1cf3d07d SE |
12981 | ;; |
12982 | esac | |
12983 | fi | |
12984 | ||
12985 | ||
12986 | ||
12987 | ||
12988 | ||
12989 | ||
12990 | ||
12991 | ||
12992 | ||
12993 | ||
12994 | ||
12995 | ||
43e02a8a RW |
12996 | # Report which library types will actually be built |
12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12998 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13000 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13001 | |
43e02a8a RW |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13003 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13004 | test "$can_build_shared" = "no" && enable_shared=no | |
1cf3d07d | 13005 | |
43e02a8a RW |
13006 | # On AIX, shared libraries and static libraries use the same namespace, and |
13007 | # are all built from PIC. | |
13008 | case $host_os in | |
13009 | aix3*) | |
13010 | test "$enable_shared" = yes && enable_static=no | |
13011 | if test -n "$RANLIB"; then | |
13012 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13013 | postinstall_cmds='$RANLIB $lib' | |
13014 | fi | |
13015 | ;; | |
1cf3d07d | 13016 | |
43e02a8a RW |
13017 | aix[4-9]*) |
13018 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13019 | test "$enable_shared" = yes && enable_static=no | |
13020 | fi | |
13021 | ;; | |
13022 | esac | |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13024 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13025 | |
43e02a8a RW |
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13027 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13028 | # Make sure either enable_shared or enable_static is yes. | |
13029 | test "$enable_shared" = yes || enable_static=yes | |
13030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13031 | $as_echo "$enable_static" >&6; } | |
1cf3d07d | 13032 | |
1cf3d07d | 13033 | |
1cf3d07d | 13034 | |
1cf3d07d SE |
13035 | |
13036 | fi | |
1cf3d07d SE |
13037 | ac_ext=c |
13038 | ac_cpp='$CPP $CPPFLAGS' | |
13039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13042 | ||
43e02a8a RW |
13043 | CC="$lt_save_CC" |
13044 | ||
13045 | ||
13046 | ||
13047 | ||
13048 | ||
13049 | ||
13050 | ||
13051 | ||
13052 | ||
13053 | ||
13054 | ||
13055 | ||
13056 | ||
13057 | ac_config_commands="$ac_config_commands libtool" | |
13058 | ||
13059 | ||
13060 | ||
13061 | ||
13062 | # Only expand once: | |
13063 | ||
13064 | ||
13065 | ||
13066 | ||
7de6ba7a DK |
13067 | |
13068 | case $host in | |
13069 | *-cygwin* | *-mingw*) | |
13070 | # 'host' will be top-level target in the case of a target lib, | |
13071 | # we must compare to with_cross_host to decide if this is a native | |
13072 | # or cross-compiler and select where to install dlls appropriately. | |
13073 | if test -n "$with_cross_host" && | |
13074 | test x"$with_cross_host" != x"no"; then | |
13075 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13076 | else | |
13077 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13078 | fi | |
13079 | ;; | |
13080 | *) | |
13081 | lt_host_flags= | |
13082 | ;; | |
13083 | esac | |
13084 | ||
13085 | ||
13086 | ||
13087 | ||
13088 | ||
43e02a8a | 13089 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
1cf3d07d | 13090 | |
43e02a8a RW |
13091 | # We need gfortran to compile parts of the library |
13092 | #AC_PROG_FC(gfortran) | |
13093 | FC="$GFORTRAN" | |
5213506e RW |
13094 | ac_ext=${ac_fc_srcext-f} |
13095 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13096 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13097 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13098 | if test -n "$ac_tool_prefix"; then | |
43e02a8a | 13099 | for ac_prog in gfortran |
1cf3d07d SE |
13100 | do |
13101 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13102 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13104 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13105 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 13106 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13107 | else |
13108 | if test -n "$FC"; then | |
13109 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13110 | else | |
13111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13112 | for as_dir in $PATH | |
13113 | do | |
13114 | IFS=$as_save_IFS | |
13115 | test -z "$as_dir" && as_dir=. | |
5213506e | 13116 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13118 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 13119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13120 | break 2 |
13121 | fi | |
13122 | done | |
5213506e RW |
13123 | done |
13124 | IFS=$as_save_IFS | |
1cf3d07d SE |
13125 | |
13126 | fi | |
13127 | fi | |
13128 | FC=$ac_cv_prog_FC | |
13129 | if test -n "$FC"; then | |
5213506e RW |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13131 | $as_echo "$FC" >&6; } | |
1cf3d07d | 13132 | else |
5213506e RW |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13134 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13135 | fi |
13136 | ||
5213506e | 13137 | |
1cf3d07d SE |
13138 | test -n "$FC" && break |
13139 | done | |
13140 | fi | |
13141 | if test -z "$FC"; then | |
13142 | ac_ct_FC=$FC | |
43e02a8a | 13143 | for ac_prog in gfortran |
1cf3d07d SE |
13144 | do |
13145 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13146 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13148 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13149 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 13150 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13151 | else |
13152 | if test -n "$ac_ct_FC"; then | |
13153 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13154 | else | |
13155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13156 | for as_dir in $PATH | |
13157 | do | |
13158 | IFS=$as_save_IFS | |
13159 | test -z "$as_dir" && as_dir=. | |
5213506e | 13160 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13162 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 13163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13164 | break 2 |
13165 | fi | |
13166 | done | |
5213506e RW |
13167 | done |
13168 | IFS=$as_save_IFS | |
1cf3d07d SE |
13169 | |
13170 | fi | |
13171 | fi | |
13172 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13173 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13175 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 13176 | else |
5213506e RW |
13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13178 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13179 | fi |
13180 | ||
5213506e | 13181 | |
1cf3d07d | 13182 | test -n "$ac_ct_FC" && break |
38d24731 RW |
13183 | done |
13184 | ||
5213506e RW |
13185 | if test "x$ac_ct_FC" = x; then |
13186 | FC="" | |
13187 | else | |
13188 | case $cross_compiling:$ac_tool_warned in | |
13189 | yes:) | |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13191 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13192 | ac_tool_warned=yes ;; | |
13193 | esac | |
13194 | FC=$ac_ct_FC | |
13195 | fi | |
1cf3d07d SE |
13196 | fi |
13197 | ||
13198 | ||
13199 | # Provide some information about the compiler. | |
5213506e RW |
13200 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13201 | set X $ac_compile | |
13202 | ac_compiler=$2 | |
13203 | for ac_option in --version -v -V -qversion; do | |
13204 | { { ac_try="$ac_compiler $ac_option >&5" | |
13205 | case "(($ac_try" in | |
13206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13207 | *) ac_try_echo=$ac_try;; | |
13208 | esac | |
13209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13210 | $as_echo "$ac_try_echo"; } >&5 | |
13211 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 13212 | ac_status=$? |
5213506e RW |
13213 | if test -s conftest.err; then |
13214 | sed '10a\ | |
13215 | ... rest of stderr output deleted ... | |
13216 | 10q' conftest.err >conftest.er1 | |
13217 | cat conftest.er1 >&5 | |
5213506e | 13218 | fi |
22e05272 | 13219 | rm -f conftest.er1 conftest.err |
5213506e RW |
13220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13221 | test $ac_status = 0; } | |
13222 | done | |
1cf3d07d SE |
13223 | rm -f a.out |
13224 | ||
13225 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13226 | # input file. (Note that this only needs to work for GNU compilers.) | |
13227 | ac_save_ext=$ac_ext | |
13228 | ac_ext=F | |
5213506e RW |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13230 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 13231 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 13232 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13233 | else |
5213506e | 13234 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13235 | program main |
13236 | #ifndef __GNUC__ | |
13237 | choke me | |
13238 | #endif | |
13239 | ||
13240 | end | |
13241 | _ACEOF | |
5213506e | 13242 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13243 | ac_compiler_gnu=yes |
13244 | else | |
5213506e | 13245 | ac_compiler_gnu=no |
1cf3d07d | 13246 | fi |
5213506e | 13247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13248 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13249 | ||
13250 | fi | |
5213506e RW |
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13252 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 13253 | ac_ext=$ac_save_ext |
5213506e RW |
13254 | ac_test_FCFLAGS=${FCFLAGS+set} |
13255 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 13256 | FCFLAGS= |
5213506e RW |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13258 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 13259 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 13260 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13261 | else |
13262 | FCFLAGS=-g | |
5213506e | 13263 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13264 | program main |
13265 | ||
13266 | end | |
13267 | _ACEOF | |
5213506e | 13268 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13269 | ac_cv_prog_fc_g=yes |
13270 | else | |
5213506e | 13271 | ac_cv_prog_fc_g=no |
1cf3d07d | 13272 | fi |
5213506e | 13273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13274 | |
13275 | fi | |
5213506e RW |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13277 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13278 | if test "$ac_test_FCFLAGS" = set; then | |
13279 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
13280 | elif test $ac_cv_prog_fc_g = yes; then |
13281 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13282 | FCFLAGS="-g -O2" | |
13283 | else | |
13284 | FCFLAGS="-g" | |
13285 | fi | |
13286 | else | |
13287 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13288 | FCFLAGS="-O2" | |
13289 | else | |
13290 | FCFLAGS= | |
13291 | fi | |
13292 | fi | |
13293 | ||
22e05272 JM |
13294 | if test $ac_compiler_gnu = yes; then |
13295 | GFC=yes | |
13296 | else | |
13297 | GFC= | |
13298 | fi | |
1cf3d07d SE |
13299 | ac_ext=c |
13300 | ac_cpp='$CPP $CPPFLAGS' | |
13301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13304 | ||
5213506e RW |
13305 | ac_ext=${ac_fc_srcext-f} |
13306 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13307 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13308 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13309 | ||
13310 | ||
43e02a8a RW |
13311 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13312 | _lt_disable_FC=yes | |
13313 | fi | |
13314 | ||
1cf3d07d SE |
13315 | archive_cmds_need_lc_FC=no |
13316 | allow_undefined_flag_FC= | |
13317 | always_export_symbols_FC=no | |
13318 | archive_expsym_cmds_FC= | |
13319 | export_dynamic_flag_spec_FC= | |
13320 | hardcode_direct_FC=no | |
13321 | hardcode_direct_absolute_FC=no | |
13322 | hardcode_libdir_flag_spec_FC= | |
13323 | hardcode_libdir_flag_spec_ld_FC= | |
13324 | hardcode_libdir_separator_FC= | |
13325 | hardcode_minus_L_FC=no | |
13326 | hardcode_automatic_FC=no | |
13327 | inherit_rpath_FC=no | |
13328 | module_cmds_FC= | |
13329 | module_expsym_cmds_FC= | |
13330 | link_all_deplibs_FC=unknown | |
13331 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
13332 | reload_flag_FC=$reload_flag |
13333 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
13334 | no_undefined_flag_FC= |
13335 | whole_archive_flag_spec_FC= | |
13336 | enable_shared_with_static_runtimes_FC=no | |
13337 | ||
13338 | # Source file extension for fc test sources. | |
13339 | ac_ext=${ac_fc_srcext-f} | |
13340 | ||
13341 | # Object file extension for compiled fc test sources. | |
13342 | objext=o | |
13343 | objext_FC=$objext | |
13344 | ||
13345 | # No sense in running all these tests if we already determined that | |
13346 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13347 | # are currently assumed to apply to all compilers on this platform, | |
13348 | # and will be corrupted by setting them based on a non-working compiler. | |
13349 | if test "$_lt_disable_FC" != yes; then | |
13350 | # Code to be used in simple compile tests | |
13351 | lt_simple_compile_test_code="\ | |
13352 | subroutine t | |
13353 | return | |
13354 | end | |
13355 | " | |
13356 | ||
13357 | # Code to be used in simple link tests | |
13358 | lt_simple_link_test_code="\ | |
13359 | program t | |
13360 | end | |
13361 | " | |
13362 | ||
13363 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13364 | ||
13365 | ||
13366 | ||
13367 | ||
13368 | ||
13369 | ||
13370 | # If no C compiler was specified, use CC. | |
13371 | LTCC=${LTCC-"$CC"} | |
13372 | ||
13373 | # If no C compiler flags were specified, use CFLAGS. | |
13374 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13375 | ||
13376 | # Allow CC to be a program name with arguments. | |
13377 | compiler=$CC | |
13378 | ||
13379 | ||
13380 | # save warnings/boilerplate of simple test code | |
13381 | ac_outfile=conftest.$ac_objext | |
13382 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13383 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13384 | _lt_compiler_boilerplate=`cat conftest.err` | |
13385 | $RM conftest* | |
13386 | ||
13387 | ac_outfile=conftest.$ac_objext | |
13388 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13389 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13390 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 13391 | $RM -r conftest* |
1cf3d07d SE |
13392 | |
13393 | ||
13394 | # Allow CC to be a program name with arguments. | |
13395 | lt_save_CC="$CC" | |
d58dead8 | 13396 | lt_save_GCC=$GCC |
1cf3d07d SE |
13397 | CC=${FC-"f95"} |
13398 | compiler=$CC | |
d58dead8 PG |
13399 | GCC=$ac_cv_fc_compiler_gnu |
13400 | ||
1cf3d07d SE |
13401 | compiler_FC=$CC |
13402 | for cc_temp in $compiler""; do | |
13403 | case $cc_temp in | |
13404 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13405 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13406 | \-*) ;; | |
13407 | *) break;; | |
13408 | esac | |
13409 | done | |
43e02a8a | 13410 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13411 | |
13412 | ||
13413 | if test -n "$compiler"; then | |
5213506e RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13415 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13417 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13418 | |
5213506e RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13420 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13421 | test "$can_build_shared" = "no" && enable_shared=no |
13422 | ||
13423 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13424 | # are all built from PIC. | |
13425 | case $host_os in | |
13426 | aix3*) | |
13427 | test "$enable_shared" = yes && enable_static=no | |
13428 | if test -n "$RANLIB"; then | |
13429 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13430 | postinstall_cmds='$RANLIB $lib' | |
13431 | fi | |
13432 | ;; | |
4f6bebc3 | 13433 | aix[4-9]*) |
1cf3d07d SE |
13434 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13435 | test "$enable_shared" = yes && enable_static=no | |
13436 | fi | |
13437 | ;; | |
13438 | esac | |
5213506e RW |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13440 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13441 | |
5213506e RW |
13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13443 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13444 | # Make sure either enable_shared or enable_static is yes. |
13445 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13447 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13448 | |
13449 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13450 | LD_FC="$LD" | |
13451 | ||
13452 | ## CAVEAT EMPTOR: | |
13453 | ## There is no encapsulation within the following macros, do not change | |
13454 | ## the running order or otherwise move them around unless you know exactly | |
13455 | ## what you are doing... | |
13456 | # Dependencies to place before and after the object being linked: | |
13457 | predep_objects_FC= | |
13458 | postdep_objects_FC= | |
13459 | predeps_FC= | |
13460 | postdeps_FC= | |
13461 | compiler_lib_search_path_FC= | |
13462 | ||
13463 | cat > conftest.$ac_ext <<_LT_EOF | |
13464 | subroutine foo | |
13465 | implicit none | |
13466 | integer a | |
13467 | a=0 | |
13468 | return | |
13469 | end | |
13470 | _LT_EOF | |
13471 | ||
5213506e | 13472 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
13473 | (eval $ac_compile) 2>&5 |
13474 | ac_status=$? | |
5213506e RW |
13475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13476 | test $ac_status = 0; }; then | |
1cf3d07d SE |
13477 | # Parse the compiler output and extract the necessary |
13478 | # objects, libraries and library flags. | |
13479 | ||
13480 | # Sentinel used to keep track of whether or not we are before | |
13481 | # the conftest object file. | |
13482 | pre_test_object_deps_done=no | |
13483 | ||
d58dead8 | 13484 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13485 | case $p in |
13486 | ||
13487 | -L* | -R* | -l*) | |
13488 | # Some compilers place space between "-{L,R}" and the path. | |
13489 | # Remove the space. | |
13490 | if test $p = "-L" || | |
13491 | test $p = "-R"; then | |
13492 | prev=$p | |
13493 | continue | |
13494 | else | |
13495 | prev= | |
13496 | fi | |
13497 | ||
13498 | if test "$pre_test_object_deps_done" = no; then | |
13499 | case $p in | |
13500 | -L* | -R*) | |
13501 | # Internal compiler library paths should come after those | |
13502 | # provided the user. The postdeps already come after the | |
13503 | # user supplied libs so there is no need to process them. | |
13504 | if test -z "$compiler_lib_search_path_FC"; then | |
13505 | compiler_lib_search_path_FC="${prev}${p}" | |
13506 | else | |
13507 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13508 | fi | |
13509 | ;; | |
13510 | # The "-l" case would never come before the object being | |
13511 | # linked, so don't bother handling this case. | |
13512 | esac | |
13513 | else | |
13514 | if test -z "$postdeps_FC"; then | |
13515 | postdeps_FC="${prev}${p}" | |
13516 | else | |
13517 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13518 | fi | |
13519 | fi | |
13520 | ;; | |
13521 | ||
13522 | *.$objext) | |
13523 | # This assumes that the test object file only shows up | |
13524 | # once in the compiler output. | |
13525 | if test "$p" = "conftest.$objext"; then | |
13526 | pre_test_object_deps_done=yes | |
13527 | continue | |
13528 | fi | |
13529 | ||
13530 | if test "$pre_test_object_deps_done" = no; then | |
13531 | if test -z "$predep_objects_FC"; then | |
13532 | predep_objects_FC="$p" | |
13533 | else | |
13534 | predep_objects_FC="$predep_objects_FC $p" | |
13535 | fi | |
13536 | else | |
13537 | if test -z "$postdep_objects_FC"; then | |
13538 | postdep_objects_FC="$p" | |
13539 | else | |
13540 | postdep_objects_FC="$postdep_objects_FC $p" | |
13541 | fi | |
13542 | fi | |
13543 | ;; | |
13544 | ||
13545 | *) ;; # Ignore the rest. | |
13546 | ||
13547 | esac | |
13548 | done | |
13549 | ||
13550 | # Clean up. | |
13551 | rm -f a.out a.exe | |
13552 | else | |
13553 | echo "libtool.m4: error: problem compiling FC test program" | |
13554 | fi | |
13555 | ||
13556 | $RM -f confest.$objext | |
13557 | ||
13558 | # PORTME: override above test on systems where it is broken | |
13559 | ||
13560 | ||
13561 | case " $postdeps_FC " in | |
13562 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13563 | esac | |
d58dead8 PG |
13564 | compiler_lib_search_dirs_FC= |
13565 | if test -n "${compiler_lib_search_path_FC}"; then | |
13566 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13567 | fi | |
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | ||
1cf3d07d SE |
13573 | |
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | ||
13586 | ||
13587 | ||
13588 | ||
13589 | ||
13590 | ||
13591 | ||
13592 | ||
13593 | ||
13594 | ||
13595 | ||
13596 | ||
13597 | ||
13598 | ||
13599 | lt_prog_compiler_wl_FC= | |
13600 | lt_prog_compiler_pic_FC= | |
13601 | lt_prog_compiler_static_FC= | |
13602 | ||
5213506e RW |
13603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13604 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
13605 | |
13606 | if test "$GCC" = yes; then | |
13607 | lt_prog_compiler_wl_FC='-Wl,' | |
13608 | lt_prog_compiler_static_FC='-static' | |
13609 | ||
13610 | case $host_os in | |
13611 | aix*) | |
13612 | # All AIX code is PIC. | |
13613 | if test "$host_cpu" = ia64; then | |
13614 | # AIX 5 now supports IA64 processor | |
13615 | lt_prog_compiler_static_FC='-Bstatic' | |
13616 | fi | |
bad8a4a7 | 13617 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
13618 | ;; |
13619 | ||
13620 | amigaos*) | |
d58dead8 PG |
13621 | case $host_cpu in |
13622 | powerpc) | |
13623 | # see comment about AmigaOS4 .so support | |
13624 | lt_prog_compiler_pic_FC='-fPIC' | |
13625 | ;; | |
13626 | m68k) | |
13627 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13628 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13629 | # like `-m68040'. | |
13630 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13631 | ;; | |
13632 | esac | |
1cf3d07d SE |
13633 | ;; |
13634 | ||
13635 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13636 | # PIC is the default for these OSes. | |
13637 | ;; | |
13638 | ||
d58dead8 | 13639 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13640 | # This hack is so that the source file can tell whether it is being |
13641 | # built for inclusion in a dll (and should export symbols for example). | |
13642 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13643 | # (--disable-auto-import) libraries | |
13644 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13645 | ;; | |
13646 | ||
13647 | darwin* | rhapsody*) | |
13648 | # PIC is the default on this platform | |
13649 | # Common symbols not allowed in MH_DYLIB files | |
13650 | lt_prog_compiler_pic_FC='-fno-common' | |
13651 | ;; | |
13652 | ||
43e02a8a RW |
13653 | haiku*) |
13654 | # PIC is the default for Haiku. | |
13655 | # The "-static" flag exists, but is broken. | |
13656 | lt_prog_compiler_static_FC= | |
13657 | ;; | |
13658 | ||
1cf3d07d | 13659 | hpux*) |
d58dead8 PG |
13660 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13661 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13662 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13663 | case $host_cpu in |
d58dead8 | 13664 | hppa*64*) |
1cf3d07d SE |
13665 | # +Z the default |
13666 | ;; | |
13667 | *) | |
13668 | lt_prog_compiler_pic_FC='-fPIC' | |
13669 | ;; | |
13670 | esac | |
13671 | ;; | |
13672 | ||
13673 | interix[3-9]*) | |
13674 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13675 | # Instead, we relocate shared libraries at runtime. | |
13676 | ;; | |
13677 | ||
13678 | msdosdjgpp*) | |
13679 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13680 | # on systems that don't support them. | |
13681 | lt_prog_compiler_can_build_shared_FC=no | |
13682 | enable_shared=no | |
13683 | ;; | |
13684 | ||
13685 | *nto* | *qnx*) | |
13686 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13687 | # it will coredump. | |
13688 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13689 | ;; | |
13690 | ||
13691 | sysv4*MP*) | |
13692 | if test -d /usr/nec; then | |
13693 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13694 | fi | |
13695 | ;; | |
13696 | ||
13697 | *) | |
13698 | lt_prog_compiler_pic_FC='-fPIC' | |
13699 | ;; | |
13700 | esac | |
43e02a8a RW |
13701 | |
13702 | case $cc_basename in | |
13703 | nvcc*) # Cuda Compiler Driver 2.2 | |
13704 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13705 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13706 | ;; | |
13707 | esac | |
1cf3d07d SE |
13708 | else |
13709 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13710 | case $host_os in | |
13711 | aix*) | |
13712 | lt_prog_compiler_wl_FC='-Wl,' | |
13713 | if test "$host_cpu" = ia64; then | |
13714 | # AIX 5 now supports IA64 processor | |
13715 | lt_prog_compiler_static_FC='-Bstatic' | |
13716 | else | |
13717 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13718 | fi | |
13719 | ;; | |
1cf3d07d | 13720 | |
d58dead8 | 13721 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13722 | # This hack is so that the source file can tell whether it is being |
13723 | # built for inclusion in a dll (and should export symbols for example). | |
13724 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13725 | ;; | |
13726 | ||
13727 | hpux9* | hpux10* | hpux11*) | |
13728 | lt_prog_compiler_wl_FC='-Wl,' | |
13729 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13730 | # not for PA HP-UX. | |
13731 | case $host_cpu in | |
13732 | hppa*64*|ia64*) | |
13733 | # +Z the default | |
13734 | ;; | |
13735 | *) | |
13736 | lt_prog_compiler_pic_FC='+Z' | |
13737 | ;; | |
13738 | esac | |
13739 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13740 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13741 | ;; | |
13742 | ||
13743 | irix5* | irix6* | nonstopux*) | |
13744 | lt_prog_compiler_wl_FC='-Wl,' | |
13745 | # PIC (with -KPIC) is the default. | |
13746 | lt_prog_compiler_static_FC='-non_shared' | |
13747 | ;; | |
13748 | ||
7a9d3fe8 | 13749 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 13750 | case $cc_basename in |
d58dead8 PG |
13751 | # old Intel for x86_64 which still supported -KPIC. |
13752 | ecc*) | |
1cf3d07d SE |
13753 | lt_prog_compiler_wl_FC='-Wl,' |
13754 | lt_prog_compiler_pic_FC='-KPIC' | |
13755 | lt_prog_compiler_static_FC='-static' | |
13756 | ;; | |
d58dead8 PG |
13757 | # icc used to be incompatible with GCC. |
13758 | # ICC 10 doesn't accept -KPIC any more. | |
13759 | icc* | ifort*) | |
13760 | lt_prog_compiler_wl_FC='-Wl,' | |
13761 | lt_prog_compiler_pic_FC='-fPIC' | |
13762 | lt_prog_compiler_static_FC='-static' | |
13763 | ;; | |
13764 | # Lahey Fortran 8.1. | |
13765 | lf95*) | |
13766 | lt_prog_compiler_wl_FC='-Wl,' | |
13767 | lt_prog_compiler_pic_FC='--shared' | |
13768 | lt_prog_compiler_static_FC='--static' | |
13769 | ;; | |
43e02a8a | 13770 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
13771 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13772 | # which looks to be a dead project) | |
13773 | lt_prog_compiler_wl_FC='-Wl,' | |
13774 | lt_prog_compiler_pic_FC='-fpic' | |
13775 | lt_prog_compiler_static_FC='-Bstatic' | |
13776 | ;; | |
13777 | ccc*) | |
13778 | lt_prog_compiler_wl_FC='-Wl,' | |
13779 | # All Alpha code is PIC. | |
13780 | lt_prog_compiler_static_FC='-non_shared' | |
13781 | ;; | |
43e02a8a RW |
13782 | xl* | bgxl* | bgf* | mpixl*) |
13783 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
13784 | lt_prog_compiler_wl_FC='-Wl,' |
13785 | lt_prog_compiler_pic_FC='-qpic' | |
13786 | lt_prog_compiler_static_FC='-qstaticlink' | |
13787 | ;; | |
1cf3d07d SE |
13788 | *) |
13789 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
13790 | *Sun\ F* | *Sun*Fortran*) |
13791 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
13792 | lt_prog_compiler_pic_FC='-KPIC' |
13793 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13794 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 13795 | ;; |
43e02a8a RW |
13796 | *Sun\ C*) |
13797 | # Sun C 5.9 | |
1cf3d07d SE |
13798 | lt_prog_compiler_pic_FC='-KPIC' |
13799 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13800 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
13801 | ;; |
13802 | esac | |
13803 | ;; | |
13804 | esac | |
13805 | ;; | |
13806 | ||
13807 | newsos6) | |
13808 | lt_prog_compiler_pic_FC='-KPIC' | |
13809 | lt_prog_compiler_static_FC='-Bstatic' | |
13810 | ;; | |
13811 | ||
13812 | *nto* | *qnx*) | |
13813 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13814 | # it will coredump. | |
13815 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13816 | ;; | |
13817 | ||
13818 | osf3* | osf4* | osf5*) | |
13819 | lt_prog_compiler_wl_FC='-Wl,' | |
13820 | # All OSF/1 code is PIC. | |
13821 | lt_prog_compiler_static_FC='-non_shared' | |
13822 | ;; | |
13823 | ||
13824 | rdos*) | |
13825 | lt_prog_compiler_static_FC='-non_shared' | |
13826 | ;; | |
13827 | ||
13828 | solaris*) | |
13829 | lt_prog_compiler_pic_FC='-KPIC' | |
13830 | lt_prog_compiler_static_FC='-Bstatic' | |
13831 | case $cc_basename in | |
13832 | f77* | f90* | f95*) | |
13833 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13834 | *) | |
13835 | lt_prog_compiler_wl_FC='-Wl,';; | |
13836 | esac | |
13837 | ;; | |
13838 | ||
13839 | sunos4*) | |
13840 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13841 | lt_prog_compiler_pic_FC='-PIC' | |
13842 | lt_prog_compiler_static_FC='-Bstatic' | |
13843 | ;; | |
13844 | ||
13845 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13846 | lt_prog_compiler_wl_FC='-Wl,' | |
13847 | lt_prog_compiler_pic_FC='-KPIC' | |
13848 | lt_prog_compiler_static_FC='-Bstatic' | |
13849 | ;; | |
13850 | ||
13851 | sysv4*MP*) | |
13852 | if test -d /usr/nec ;then | |
13853 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
13854 | lt_prog_compiler_static_FC='-Bstatic' | |
13855 | fi | |
13856 | ;; | |
13857 | ||
13858 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13859 | lt_prog_compiler_wl_FC='-Wl,' | |
13860 | lt_prog_compiler_pic_FC='-KPIC' | |
13861 | lt_prog_compiler_static_FC='-Bstatic' | |
13862 | ;; | |
13863 | ||
13864 | unicos*) | |
13865 | lt_prog_compiler_wl_FC='-Wl,' | |
13866 | lt_prog_compiler_can_build_shared_FC=no | |
13867 | ;; | |
13868 | ||
13869 | uts4*) | |
13870 | lt_prog_compiler_pic_FC='-pic' | |
13871 | lt_prog_compiler_static_FC='-Bstatic' | |
13872 | ;; | |
13873 | ||
13874 | *) | |
13875 | lt_prog_compiler_can_build_shared_FC=no | |
13876 | ;; | |
13877 | esac | |
13878 | fi | |
13879 | ||
13880 | case $host_os in | |
13881 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13882 | *djgpp*) | |
13883 | lt_prog_compiler_pic_FC= | |
13884 | ;; | |
13885 | *) | |
13886 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
13887 | ;; | |
13888 | esac | |
5213506e RW |
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
13890 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
13891 | |
13892 | ||
13893 | ||
13894 | # | |
13895 | # Check to make sure the PIC flag actually works. | |
13896 | # | |
13897 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
13899 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 13900 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 13901 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13902 | else |
d58dead8 | 13903 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
13904 | ac_outfile=conftest.$ac_objext |
13905 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13906 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
13907 | # Insert the option either (1) after the last *FLAGS variable, or | |
13908 | # (2) before a word containing "conftest.", or (3) at the end. | |
13909 | # Note that $ac_compile itself does not contain backslashes and begins | |
13910 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13911 | # The option is referenced via a variable to avoid confusing sed. | |
13912 | lt_compile=`echo "$ac_compile" | $SED \ | |
13913 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13914 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13915 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 13916 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
13917 | (eval "$lt_compile" 2>conftest.err) |
13918 | ac_status=$? | |
13919 | cat conftest.err >&5 | |
43e02a8a | 13920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
13921 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13922 | # The compiler can only warn and ignore the option if not recognized | |
13923 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 13924 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
13925 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13926 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 13927 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
13928 | fi |
13929 | fi | |
13930 | $RM conftest* | |
13931 | ||
13932 | fi | |
5213506e RW |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
13934 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 13935 | |
d58dead8 | 13936 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
13937 | case $lt_prog_compiler_pic_FC in |
13938 | "" | " "*) ;; | |
13939 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
13940 | esac | |
13941 | else | |
13942 | lt_prog_compiler_pic_FC= | |
13943 | lt_prog_compiler_can_build_shared_FC=no | |
13944 | fi | |
13945 | ||
13946 | fi | |
13947 | ||
13948 | ||
13949 | ||
13950 | # | |
13951 | # Check to make sure the static flag actually works. | |
13952 | # | |
13953 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13955 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 13956 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 13957 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13958 | else |
d58dead8 | 13959 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
13960 | save_LDFLAGS="$LDFLAGS" |
13961 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13962 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13963 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13964 | # The linker can only warn and ignore the option if not recognized | |
13965 | # So say no if there are warnings | |
13966 | if test -s conftest.err; then | |
13967 | # Append any errors to the config.log. | |
13968 | cat conftest.err 1>&5 | |
43e02a8a | 13969 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
13970 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13971 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 13972 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
13973 | fi |
13974 | else | |
d58dead8 | 13975 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
13976 | fi |
13977 | fi | |
d58dead8 | 13978 | $RM -r conftest* |
1cf3d07d SE |
13979 | LDFLAGS="$save_LDFLAGS" |
13980 | ||
13981 | fi | |
5213506e RW |
13982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
13983 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 13984 | |
d58dead8 | 13985 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
13986 | : |
13987 | else | |
13988 | lt_prog_compiler_static_FC= | |
13989 | fi | |
13990 | ||
13991 | ||
13992 | ||
13993 | ||
5213506e RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13995 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 13996 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 13997 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13998 | else |
13999 | lt_cv_prog_compiler_c_o_FC=no | |
14000 | $RM -r conftest 2>/dev/null | |
14001 | mkdir conftest | |
14002 | cd conftest | |
14003 | mkdir out | |
14004 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14005 | ||
14006 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14007 | # Insert the option either (1) after the last *FLAGS variable, or | |
14008 | # (2) before a word containing "conftest.", or (3) at the end. | |
14009 | # Note that $ac_compile itself does not contain backslashes and begins | |
14010 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14011 | lt_compile=`echo "$ac_compile" | $SED \ | |
14012 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14013 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14014 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14015 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14016 | (eval "$lt_compile" 2>out/conftest.err) |
14017 | ac_status=$? | |
14018 | cat out/conftest.err >&5 | |
43e02a8a | 14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14020 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14021 | then | |
14022 | # The compiler can only warn and ignore the option if not recognized | |
14023 | # So say no if there are warnings | |
43e02a8a | 14024 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14025 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14026 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14027 | lt_cv_prog_compiler_c_o_FC=yes | |
14028 | fi | |
14029 | fi | |
14030 | chmod u+w . 2>&5 | |
14031 | $RM conftest* | |
14032 | # SGI C++ compiler will create directory out/ii_files/ for | |
14033 | # template instantiation | |
14034 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14035 | $RM out/* && rmdir out | |
14036 | cd .. | |
14037 | $RM -r conftest | |
14038 | $RM conftest* | |
14039 | ||
14040 | fi | |
5213506e RW |
14041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14042 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14043 | |
14044 | ||
14045 | ||
5213506e RW |
14046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14047 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14048 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14049 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14050 | else |
14051 | lt_cv_prog_compiler_c_o_FC=no | |
14052 | $RM -r conftest 2>/dev/null | |
14053 | mkdir conftest | |
14054 | cd conftest | |
14055 | mkdir out | |
14056 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14057 | ||
14058 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14059 | # Insert the option either (1) after the last *FLAGS variable, or | |
14060 | # (2) before a word containing "conftest.", or (3) at the end. | |
14061 | # Note that $ac_compile itself does not contain backslashes and begins | |
14062 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14063 | lt_compile=`echo "$ac_compile" | $SED \ | |
14064 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14065 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14066 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14067 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14068 | (eval "$lt_compile" 2>out/conftest.err) |
14069 | ac_status=$? | |
14070 | cat out/conftest.err >&5 | |
43e02a8a | 14071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14072 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14073 | then | |
14074 | # The compiler can only warn and ignore the option if not recognized | |
14075 | # So say no if there are warnings | |
43e02a8a | 14076 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14077 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14078 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14079 | lt_cv_prog_compiler_c_o_FC=yes | |
14080 | fi | |
14081 | fi | |
14082 | chmod u+w . 2>&5 | |
14083 | $RM conftest* | |
14084 | # SGI C++ compiler will create directory out/ii_files/ for | |
14085 | # template instantiation | |
14086 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14087 | $RM out/* && rmdir out | |
14088 | cd .. | |
14089 | $RM -r conftest | |
14090 | $RM conftest* | |
14091 | ||
14092 | fi | |
5213506e RW |
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14094 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14095 | |
14096 | ||
14097 | ||
14098 | ||
14099 | hard_links="nottested" | |
14100 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14101 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14103 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
14104 | hard_links=yes |
14105 | $RM conftest* | |
14106 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14107 | touch conftest.a | |
14108 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14109 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14111 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 14112 | if test "$hard_links" = no; then |
5213506e RW |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14114 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
14115 | need_locks=warn |
14116 | fi | |
14117 | else | |
14118 | need_locks=no | |
14119 | fi | |
14120 | ||
14121 | ||
14122 | ||
5213506e RW |
14123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14124 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14125 | |
14126 | runpath_var= | |
14127 | allow_undefined_flag_FC= | |
14128 | always_export_symbols_FC=no | |
14129 | archive_cmds_FC= | |
14130 | archive_expsym_cmds_FC= | |
14131 | compiler_needs_object_FC=no | |
14132 | enable_shared_with_static_runtimes_FC=no | |
14133 | export_dynamic_flag_spec_FC= | |
14134 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14135 | hardcode_automatic_FC=no | |
14136 | hardcode_direct_FC=no | |
14137 | hardcode_direct_absolute_FC=no | |
14138 | hardcode_libdir_flag_spec_FC= | |
14139 | hardcode_libdir_flag_spec_ld_FC= | |
14140 | hardcode_libdir_separator_FC= | |
14141 | hardcode_minus_L_FC=no | |
14142 | hardcode_shlibpath_var_FC=unsupported | |
14143 | inherit_rpath_FC=no | |
14144 | link_all_deplibs_FC=unknown | |
14145 | module_cmds_FC= | |
14146 | module_expsym_cmds_FC= | |
14147 | old_archive_from_new_cmds_FC= | |
14148 | old_archive_from_expsyms_cmds_FC= | |
14149 | thread_safe_flag_spec_FC= | |
14150 | whole_archive_flag_spec_FC= | |
14151 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14152 | # included in the symbol list | |
14153 | include_expsyms_FC= | |
14154 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14155 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14156 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14157 | # as well as any symbol that contains `d'. | |
d58dead8 | 14158 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
14159 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14160 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14161 | # the symbol is explicitly referenced. Since portable code cannot | |
14162 | # rely on this symbol name, it's probably fine to never include it in | |
14163 | # preloaded symbol tables. | |
d58dead8 | 14164 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
14165 | extract_expsyms_cmds= |
14166 | ||
14167 | case $host_os in | |
d58dead8 | 14168 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14169 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14170 | # When not using gcc, we currently assume that we are using | |
14171 | # Microsoft Visual C++. | |
14172 | if test "$GCC" != yes; then | |
14173 | with_gnu_ld=no | |
14174 | fi | |
14175 | ;; | |
14176 | interix*) | |
14177 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14178 | with_gnu_ld=yes | |
14179 | ;; | |
14180 | openbsd*) | |
14181 | with_gnu_ld=no | |
14182 | ;; | |
14183 | esac | |
14184 | ||
14185 | ld_shlibs_FC=yes | |
43e02a8a RW |
14186 | |
14187 | # On some targets, GNU ld is compatible enough with the native linker | |
14188 | # that we're better off using the native interface for both. | |
14189 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 14190 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
14191 | case $host_os in |
14192 | aix*) | |
14193 | # The AIX port of GNU ld has always aspired to compatibility | |
14194 | # with the native linker. However, as the warning in the GNU ld | |
14195 | # block says, versions before 2.19.5* couldn't really create working | |
14196 | # shared libraries, regardless of the interface used. | |
14197 | case `$LD -v 2>&1` in | |
14198 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14199 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14200 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14201 | *) | |
14202 | lt_use_gnu_ld_interface=yes | |
14203 | ;; | |
14204 | esac | |
14205 | ;; | |
14206 | *) | |
14207 | lt_use_gnu_ld_interface=yes | |
14208 | ;; | |
14209 | esac | |
14210 | fi | |
14211 | ||
14212 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
14213 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14214 | wlarc='${wl}' | |
14215 | ||
14216 | # Set some defaults for GNU ld with shared library support. These | |
14217 | # are reset later if shared libraries are not supported. Putting them | |
14218 | # here allows them to be overridden if necessary. | |
14219 | runpath_var=LD_RUN_PATH | |
14220 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14221 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14222 | # ancient GNU ld didn't support --whole-archive et. al. | |
14223 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14224 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14225 | else | |
14226 | whole_archive_flag_spec_FC= | |
14227 | fi | |
14228 | supports_anon_versioning=no | |
14229 | case `$LD -v 2>&1` in | |
43e02a8a | 14230 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
14231 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14232 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14233 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14234 | *\ 2.11.*) ;; # other 2.11 versions | |
14235 | *) supports_anon_versioning=yes ;; | |
14236 | esac | |
14237 | ||
14238 | # See if GNU ld supports shared libraries. | |
14239 | case $host_os in | |
4f6bebc3 | 14240 | aix[3-9]*) |
1cf3d07d SE |
14241 | # On AIX/PPC, the GNU linker is very broken |
14242 | if test "$host_cpu" != ia64; then | |
14243 | ld_shlibs_FC=no | |
14244 | cat <<_LT_EOF 1>&2 | |
14245 | ||
43e02a8a | 14246 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
14247 | *** to be unable to reliably create shared libraries on AIX. |
14248 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
14249 | *** really care for shared libraries, you may want to install binutils |
14250 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14251 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
14252 | |
14253 | _LT_EOF | |
14254 | fi | |
14255 | ;; | |
14256 | ||
14257 | amigaos*) | |
d58dead8 PG |
14258 | case $host_cpu in |
14259 | powerpc) | |
14260 | # see comment about AmigaOS4 .so support | |
14261 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14262 | archive_expsym_cmds_FC='' | |
14263 | ;; | |
14264 | m68k) | |
14265 | 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)' | |
14266 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14267 | hardcode_minus_L_FC=yes | |
14268 | ;; | |
14269 | esac | |
1cf3d07d SE |
14270 | ;; |
14271 | ||
14272 | beos*) | |
14273 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14274 | allow_undefined_flag_FC=unsupported | |
14275 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14276 | # support --undefined. This deserves some investigation. FIXME | |
14277 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14278 | else | |
14279 | ld_shlibs_FC=no | |
14280 | fi | |
14281 | ;; | |
14282 | ||
d58dead8 | 14283 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14284 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14285 | # as there is no search path for DLLs. | |
14286 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 14287 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
14288 | allow_undefined_flag_FC=unsupported |
14289 | always_export_symbols_FC=no | |
14290 | enable_shared_with_static_runtimes_FC=yes | |
14291 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14292 | ||
14293 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14294 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14295 | # If the export-symbols file already is a .def file (1st line | |
14296 | # is EXPORTS), use it as is; otherwise, prepend... | |
14297 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14298 | cp $export_symbols $output_objdir/$soname.def; | |
14299 | else | |
14300 | echo EXPORTS > $output_objdir/$soname.def; | |
14301 | cat $export_symbols >> $output_objdir/$soname.def; | |
14302 | fi~ | |
14303 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14304 | else | |
14305 | ld_shlibs_FC=no | |
14306 | fi | |
14307 | ;; | |
14308 | ||
43e02a8a RW |
14309 | haiku*) |
14310 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14311 | link_all_deplibs_FC=yes | |
14312 | ;; | |
14313 | ||
1cf3d07d SE |
14314 | interix[3-9]*) |
14315 | hardcode_direct_FC=no | |
14316 | hardcode_shlibpath_var_FC=no | |
14317 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14318 | export_dynamic_flag_spec_FC='${wl}-E' | |
14319 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14320 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14321 | # default) and relocated if they conflict, which is a slow very memory | |
14322 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14323 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14324 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14325 | 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' | |
14326 | 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' | |
14327 | ;; | |
14328 | ||
e9085da5 | 14329 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
14330 | tmp_diet=no |
14331 | if test "$host_os" = linux-dietlibc; then | |
14332 | case $cc_basename in | |
14333 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14334 | esac | |
14335 | fi | |
14336 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14337 | && test "$tmp_diet" = no | |
14338 | then | |
a699d672 | 14339 | tmp_addflag=' $pic_flag' |
d58dead8 | 14340 | tmp_sharedflag='-shared' |
1cf3d07d SE |
14341 | case $cc_basename,$host_cpu in |
14342 | pgcc*) # Portland Group C compiler | |
43e02a8a | 14343 | 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 |
14344 | tmp_addflag=' $pic_flag' |
14345 | ;; | |
43e02a8a RW |
14346 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14347 | # Portland Group f77 and f90 compilers | |
14348 | 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 |
14349 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14350 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14351 | tmp_addflag=' -i_dynamic' ;; | |
14352 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14353 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14354 | ifc* | ifort*) # Intel Fortran compiler | |
14355 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
14356 | lf95*) # Lahey Fortran 8.1 |
14357 | whole_archive_flag_spec_FC= | |
14358 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 14359 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
14360 | tmp_sharedflag='-qmkshrobj' |
14361 | tmp_addflag= ;; | |
43e02a8a RW |
14362 | nvcc*) # Cuda Compiler Driver 2.2 |
14363 | 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' | |
14364 | compiler_needs_object_FC=yes | |
14365 | ;; | |
1cf3d07d SE |
14366 | esac |
14367 | case `$CC -V 2>&1 | sed 5q` in | |
14368 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 14369 | 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 |
14370 | compiler_needs_object_FC=yes |
14371 | tmp_sharedflag='-G' ;; | |
14372 | *Sun\ F*) # Sun Fortran 8.3 | |
14373 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
14374 | esac |
14375 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14376 | ||
14377 | if test "x$supports_anon_versioning" = xyes; then | |
14378 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14379 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14380 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14381 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14382 | fi | |
d58dead8 PG |
14383 | |
14384 | case $cc_basename in | |
43e02a8a | 14385 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
14386 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14387 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14388 | hardcode_libdir_flag_spec_FC= | |
14389 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14390 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14391 | if test "x$supports_anon_versioning" = xyes; then | |
14392 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14393 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14394 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14395 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14396 | fi | |
14397 | ;; | |
14398 | esac | |
1cf3d07d SE |
14399 | else |
14400 | ld_shlibs_FC=no | |
14401 | fi | |
14402 | ;; | |
14403 | ||
14404 | netbsd*) | |
14405 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14406 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14407 | wlarc= | |
14408 | else | |
14409 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14410 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14411 | fi | |
14412 | ;; | |
14413 | ||
14414 | solaris*) | |
14415 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14416 | ld_shlibs_FC=no | |
14417 | cat <<_LT_EOF 1>&2 | |
14418 | ||
14419 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14420 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14421 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14422 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14423 | *** your PATH or compiler configuration so that the native linker is | |
14424 | *** used, and then restart. | |
14425 | ||
14426 | _LT_EOF | |
14427 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14428 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14429 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14430 | else | |
14431 | ld_shlibs_FC=no | |
14432 | fi | |
14433 | ;; | |
14434 | ||
14435 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14436 | case `$LD -v 2>&1` in | |
14437 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14438 | ld_shlibs_FC=no | |
14439 | cat <<_LT_EOF 1>&2 | |
14440 | ||
14441 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14442 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14443 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14444 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14445 | *** your PATH or compiler configuration so that the native linker is | |
14446 | *** used, and then restart. | |
14447 | ||
14448 | _LT_EOF | |
14449 | ;; | |
14450 | *) | |
14451 | # For security reasons, it is highly recommended that you always | |
14452 | # use absolute paths for naming shared libraries, and exclude the | |
14453 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14454 | # requires that you compile everything twice, which is a pain. | |
14455 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14456 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14457 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14458 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14459 | else | |
14460 | ld_shlibs_FC=no | |
14461 | fi | |
14462 | ;; | |
14463 | esac | |
14464 | ;; | |
14465 | ||
14466 | sunos4*) | |
14467 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14468 | wlarc= | |
14469 | hardcode_direct_FC=yes | |
14470 | hardcode_shlibpath_var_FC=no | |
14471 | ;; | |
14472 | ||
14473 | *) | |
14474 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14475 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14476 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14477 | else | |
14478 | ld_shlibs_FC=no | |
14479 | fi | |
14480 | ;; | |
14481 | esac | |
14482 | ||
14483 | if test "$ld_shlibs_FC" = no; then | |
14484 | runpath_var= | |
14485 | hardcode_libdir_flag_spec_FC= | |
14486 | export_dynamic_flag_spec_FC= | |
14487 | whole_archive_flag_spec_FC= | |
14488 | fi | |
14489 | else | |
14490 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14491 | case $host_os in | |
14492 | aix3*) | |
14493 | allow_undefined_flag_FC=unsupported | |
14494 | always_export_symbols_FC=yes | |
14495 | 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' | |
14496 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14497 | # are no directories specified by -L. | |
14498 | hardcode_minus_L_FC=yes | |
14499 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14500 | # Neither direct hardcoding nor static linking is supported with a | |
14501 | # broken collect2. | |
14502 | hardcode_direct_FC=unsupported | |
14503 | fi | |
14504 | ;; | |
14505 | ||
4f6bebc3 | 14506 | aix[4-9]*) |
1cf3d07d SE |
14507 | if test "$host_cpu" = ia64; then |
14508 | # On IA64, the linker does run time linking by default, so we don't | |
14509 | # have to do anything special. | |
14510 | aix_use_runtimelinking=no | |
14511 | exp_sym_flag='-Bexport' | |
14512 | no_entry_flag="" | |
14513 | else | |
14514 | # If we're using GNU nm, then we don't want the "-C" option. | |
14515 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
14516 | # Also, AIX nm treats weak defined symbols like other global |
14517 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 14518 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 14519 | 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 | 14520 | else |
d3ca2257 | 14521 | 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 |
14522 | fi |
14523 | aix_use_runtimelinking=no | |
14524 | ||
14525 | # Test if we are trying to use run time linking or normal | |
14526 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14527 | # need to do runtime linking. | |
4f6bebc3 | 14528 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14529 | for ld_flag in $LDFLAGS; do |
14530 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14531 | aix_use_runtimelinking=yes | |
14532 | break | |
14533 | fi | |
14534 | done | |
14535 | ;; | |
14536 | esac | |
14537 | ||
14538 | exp_sym_flag='-bexport' | |
14539 | no_entry_flag='-bnoentry' | |
14540 | fi | |
14541 | ||
14542 | # When large executables or shared objects are built, AIX ld can | |
14543 | # have problems creating the table of contents. If linking a library | |
14544 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14545 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14546 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14547 | ||
14548 | archive_cmds_FC='' | |
14549 | hardcode_direct_FC=yes | |
14550 | hardcode_direct_absolute_FC=yes | |
14551 | hardcode_libdir_separator_FC=':' | |
14552 | link_all_deplibs_FC=yes | |
14553 | file_list_spec_FC='${wl}-f,' | |
14554 | ||
14555 | if test "$GCC" = yes; then | |
14556 | case $host_os in aix4.[012]|aix4.[012].*) | |
14557 | # We only want to do this on AIX 4.2 and lower, the check | |
14558 | # below for broken collect2 doesn't work under 4.3+ | |
14559 | collect2name=`${CC} -print-prog-name=collect2` | |
14560 | if test -f "$collect2name" && | |
14561 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14562 | then | |
14563 | # We have reworked collect2 | |
14564 | : | |
14565 | else | |
14566 | # We have old collect2 | |
14567 | hardcode_direct_FC=unsupported | |
14568 | # It fails to find uninstalled libraries when the uninstalled | |
14569 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14570 | # to unsupported forces relinking | |
14571 | hardcode_minus_L_FC=yes | |
14572 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14573 | hardcode_libdir_separator_FC= | |
14574 | fi | |
14575 | ;; | |
14576 | esac | |
14577 | shared_flag='-shared' | |
14578 | if test "$aix_use_runtimelinking" = yes; then | |
14579 | shared_flag="$shared_flag "'${wl}-G' | |
14580 | fi | |
14581 | else | |
14582 | # not using gcc | |
14583 | if test "$host_cpu" = ia64; then | |
14584 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14585 | # chokes on -Wl,-G. The following line is correct: | |
14586 | shared_flag='-G' | |
14587 | else | |
14588 | if test "$aix_use_runtimelinking" = yes; then | |
14589 | shared_flag='${wl}-G' | |
14590 | else | |
14591 | shared_flag='${wl}-bM:SRE' | |
14592 | fi | |
14593 | fi | |
14594 | fi | |
14595 | ||
d58dead8 | 14596 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
14597 | # It seems that -bexpall does not export symbols beginning with |
14598 | # underscore (_), so it is better to generate a list of symbols to export. | |
14599 | always_export_symbols_FC=yes | |
14600 | if test "$aix_use_runtimelinking" = yes; then | |
14601 | # Warning - without using the other runtime loading flags (-brtl), | |
14602 | # -berok will link without error, but may produce a broken library. | |
14603 | allow_undefined_flag_FC='-berok' | |
14604 | # Determine the default libpath from the value encoded in an | |
14605 | # empty executable. | |
14606 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14607 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14608 | fi |
5213506e | 14609 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14610 | program main |
14611 | ||
14612 | end | |
14613 | _ACEOF | |
5213506e | 14614 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14615 | |
14616 | lt_aix_libpath_sed=' | |
14617 | /Import File Strings/,/^$/ { | |
14618 | /^0/ { | |
14619 | s/^0 *\(.*\)$/\1/ | |
14620 | p | |
14621 | } | |
14622 | }' | |
14623 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14624 | # Check for a 64-bit object if we didn't find anything. | |
14625 | if test -z "$aix_libpath"; then | |
14626 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14627 | fi | |
1cf3d07d | 14628 | fi |
5213506e RW |
14629 | rm -f core conftest.err conftest.$ac_objext \ |
14630 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14631 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14632 | ||
14633 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 14634 | 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 |
14635 | else |
14636 | if test "$host_cpu" = ia64; then | |
14637 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14638 | allow_undefined_flag_FC="-z nodefs" | |
14639 | 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" | |
14640 | else | |
14641 | # Determine the default libpath from the value encoded in an | |
14642 | # empty executable. | |
14643 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14644 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14645 | fi |
5213506e | 14646 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14647 | program main |
14648 | ||
14649 | end | |
14650 | _ACEOF | |
5213506e | 14651 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14652 | |
14653 | lt_aix_libpath_sed=' | |
14654 | /Import File Strings/,/^$/ { | |
14655 | /^0/ { | |
14656 | s/^0 *\(.*\)$/\1/ | |
14657 | p | |
14658 | } | |
14659 | }' | |
14660 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14661 | # Check for a 64-bit object if we didn't find anything. | |
14662 | if test -z "$aix_libpath"; then | |
14663 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14664 | fi | |
1cf3d07d | 14665 | fi |
5213506e RW |
14666 | rm -f core conftest.err conftest.$ac_objext \ |
14667 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14668 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14669 | ||
14670 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14671 | # Warning - without using the other run time loading flags, | |
14672 | # -berok will link without error, but may produce a broken library. | |
14673 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14674 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
14675 | if test "$with_gnu_ld" = yes; then |
14676 | # We only use this code for GNU lds that support --whole-archive. | |
14677 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14678 | else | |
14679 | # Exported symbols can be pulled into shared objects from archives | |
14680 | whole_archive_flag_spec_FC='$convenience' | |
14681 | fi | |
1cf3d07d SE |
14682 | archive_cmds_need_lc_FC=yes |
14683 | # This is similar to how AIX traditionally builds its shared libraries. | |
14684 | 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' | |
14685 | fi | |
14686 | fi | |
14687 | ;; | |
14688 | ||
14689 | amigaos*) | |
d58dead8 PG |
14690 | case $host_cpu in |
14691 | powerpc) | |
14692 | # see comment about AmigaOS4 .so support | |
14693 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14694 | archive_expsym_cmds_FC='' | |
14695 | ;; | |
14696 | m68k) | |
14697 | 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)' | |
14698 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14699 | hardcode_minus_L_FC=yes | |
14700 | ;; | |
14701 | esac | |
1cf3d07d SE |
14702 | ;; |
14703 | ||
14704 | bsdi[45]*) | |
14705 | export_dynamic_flag_spec_FC=-rdynamic | |
14706 | ;; | |
14707 | ||
d58dead8 | 14708 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14709 | # When not using gcc, we currently assume that we are using |
14710 | # Microsoft Visual C++. | |
14711 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14712 | # no search path for DLLs. | |
14713 | hardcode_libdir_flag_spec_FC=' ' | |
14714 | allow_undefined_flag_FC=unsupported | |
14715 | # Tell ltmain to make .lib files, not .a files. | |
14716 | libext=lib | |
14717 | # Tell ltmain to make .dll files, not .so files. | |
14718 | shrext_cmds=".dll" | |
14719 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 14720 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
14721 | # The linker will automatically build a .lib file if we build a DLL. |
14722 | old_archive_from_new_cmds_FC='true' | |
14723 | # FIXME: Should let the user specify the lib program. | |
14724 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14725 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14726 | enable_shared_with_static_runtimes_FC=yes | |
14727 | ;; | |
14728 | ||
14729 | darwin* | rhapsody*) | |
1cf3d07d | 14730 | |
d58dead8 PG |
14731 | |
14732 | archive_cmds_need_lc_FC=no | |
14733 | hardcode_direct_FC=no | |
14734 | hardcode_automatic_FC=yes | |
14735 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
14736 | if test "$lt_cv_ld_force_load" = "yes"; then |
14737 | 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\"`' | |
14738 | else | |
14739 | whole_archive_flag_spec_FC='' | |
14740 | fi | |
d58dead8 PG |
14741 | link_all_deplibs_FC=yes |
14742 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14743 | case $cc_basename in | |
14744 | ifort*) _lt_dar_can_shared=yes ;; | |
14745 | *) _lt_dar_can_shared=$GCC ;; | |
14746 | esac | |
14747 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14748 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
14749 | 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}" |
14750 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14751 | 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}" | |
14752 | 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}" | |
14753 | ||
14754 | else | |
14755 | ld_shlibs_FC=no | |
14756 | fi | |
14757 | ||
1cf3d07d SE |
14758 | ;; |
14759 | ||
14760 | dgux*) | |
14761 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14762 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14763 | hardcode_shlibpath_var_FC=no | |
14764 | ;; | |
14765 | ||
1cf3d07d SE |
14766 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14767 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14768 | # does not break anything, and helps significantly (at the cost of a little | |
14769 | # extra space). | |
14770 | freebsd2.2*) | |
14771 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14772 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14773 | hardcode_direct_FC=yes | |
14774 | hardcode_shlibpath_var_FC=no | |
14775 | ;; | |
14776 | ||
14777 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 14778 | freebsd2.*) |
1cf3d07d SE |
14779 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14780 | hardcode_direct_FC=yes | |
14781 | hardcode_minus_L_FC=yes | |
14782 | hardcode_shlibpath_var_FC=no | |
14783 | ;; | |
14784 | ||
14785 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14786 | freebsd* | dragonfly*) | |
14787 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14788 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14789 | hardcode_direct_FC=yes | |
14790 | hardcode_shlibpath_var_FC=no | |
14791 | ;; | |
14792 | ||
14793 | hpux9*) | |
14794 | if test "$GCC" = yes; then | |
14795 | 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' | |
14796 | else | |
14797 | 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' | |
14798 | fi | |
14799 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14800 | hardcode_libdir_separator_FC=: | |
14801 | hardcode_direct_FC=yes | |
14802 | ||
14803 | # hardcode_minus_L: Not really in the search PATH, | |
14804 | # but as the default location of the library. | |
14805 | hardcode_minus_L_FC=yes | |
14806 | export_dynamic_flag_spec_FC='${wl}-E' | |
14807 | ;; | |
14808 | ||
14809 | hpux10*) | |
43e02a8a | 14810 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
14811 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14812 | else | |
14813 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14814 | fi | |
14815 | if test "$with_gnu_ld" = no; then | |
14816 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14817 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14818 | hardcode_libdir_separator_FC=: | |
14819 | hardcode_direct_FC=yes | |
14820 | hardcode_direct_absolute_FC=yes | |
14821 | export_dynamic_flag_spec_FC='${wl}-E' | |
14822 | # hardcode_minus_L: Not really in the search PATH, | |
14823 | # but as the default location of the library. | |
14824 | hardcode_minus_L_FC=yes | |
14825 | fi | |
14826 | ;; | |
14827 | ||
14828 | hpux11*) | |
43e02a8a | 14829 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
14830 | case $host_cpu in |
14831 | hppa*64*) | |
14832 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14833 | ;; | |
14834 | ia64*) | |
d58dead8 | 14835 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14836 | ;; |
14837 | *) | |
14838 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14839 | ;; | |
14840 | esac | |
14841 | else | |
14842 | case $host_cpu in | |
14843 | hppa*64*) | |
14844 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14845 | ;; | |
14846 | ia64*) | |
14847 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14848 | ;; | |
14849 | *) | |
43e02a8a | 14850 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14851 | ;; |
14852 | esac | |
14853 | fi | |
14854 | if test "$with_gnu_ld" = no; then | |
14855 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14856 | hardcode_libdir_separator_FC=: | |
14857 | ||
14858 | case $host_cpu in | |
14859 | hppa*64*|ia64*) | |
14860 | hardcode_direct_FC=no | |
14861 | hardcode_shlibpath_var_FC=no | |
14862 | ;; | |
14863 | *) | |
14864 | hardcode_direct_FC=yes | |
14865 | hardcode_direct_absolute_FC=yes | |
14866 | export_dynamic_flag_spec_FC='${wl}-E' | |
14867 | ||
14868 | # hardcode_minus_L: Not really in the search PATH, | |
14869 | # but as the default location of the library. | |
14870 | hardcode_minus_L_FC=yes | |
14871 | ;; | |
14872 | esac | |
14873 | fi | |
14874 | ;; | |
14875 | ||
14876 | irix5* | irix6* | nonstopux*) | |
14877 | if test "$GCC" = yes; then | |
43e02a8a | 14878 | 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 |
14879 | # Try to use the -exported_symbol ld option, if it does not |
14880 | # work, assume that -exports_file does not work either and | |
14881 | # implicitly export all symbols. | |
14882 | save_LDFLAGS="$LDFLAGS" | |
14883 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
14884 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14885 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14886 | fi |
5213506e | 14887 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14888 | int foo(void) {} |
14889 | _ACEOF | |
5213506e | 14890 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 14891 | 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 | 14892 | |
1cf3d07d | 14893 | fi |
5213506e RW |
14894 | rm -f core conftest.err conftest.$ac_objext \ |
14895 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14896 | LDFLAGS="$save_LDFLAGS" |
14897 | else | |
43e02a8a RW |
14898 | 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' |
14899 | 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 |
14900 | fi |
14901 | archive_cmds_need_lc_FC='no' | |
14902 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14903 | hardcode_libdir_separator_FC=: | |
14904 | inherit_rpath_FC=yes | |
14905 | link_all_deplibs_FC=yes | |
14906 | ;; | |
14907 | ||
14908 | netbsd*) | |
14909 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14910 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14911 | else | |
14912 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14913 | fi | |
14914 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14915 | hardcode_direct_FC=yes | |
14916 | hardcode_shlibpath_var_FC=no | |
14917 | ;; | |
14918 | ||
14919 | newsos6) | |
14920 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14921 | hardcode_direct_FC=yes | |
14922 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14923 | hardcode_libdir_separator_FC=: | |
14924 | hardcode_shlibpath_var_FC=no | |
14925 | ;; | |
14926 | ||
14927 | *nto* | *qnx*) | |
14928 | ;; | |
14929 | ||
14930 | openbsd*) | |
d58dead8 PG |
14931 | if test -f /usr/libexec/ld.so; then |
14932 | hardcode_direct_FC=yes | |
14933 | hardcode_shlibpath_var_FC=no | |
14934 | hardcode_direct_absolute_FC=yes | |
14935 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 14936 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 14937 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 14938 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
d58dead8 PG |
14939 | export_dynamic_flag_spec_FC='${wl}-E' |
14940 | else | |
14941 | case $host_os in | |
14942 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14943 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14944 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14945 | ;; | |
14946 | *) | |
14947 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14948 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14949 | ;; | |
14950 | esac | |
14951 | fi | |
14952 | else | |
14953 | ld_shlibs_FC=no | |
1cf3d07d SE |
14954 | fi |
14955 | ;; | |
14956 | ||
14957 | os2*) | |
14958 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14959 | hardcode_minus_L_FC=yes | |
14960 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 14961 | 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 |
14962 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14963 | ;; | |
14964 | ||
14965 | osf3*) | |
14966 | if test "$GCC" = yes; then | |
14967 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 14968 | 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 |
14969 | else |
14970 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 14971 | 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 |
14972 | fi |
14973 | archive_cmds_need_lc_FC='no' | |
14974 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14975 | hardcode_libdir_separator_FC=: | |
14976 | ;; | |
14977 | ||
14978 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14979 | if test "$GCC" = yes; then | |
14980 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 14981 | 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 |
14982 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
14983 | else | |
14984 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 14985 | 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 | 14986 | 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 | 14987 | $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 |
14988 | |
14989 | # Both c and cxx compiler support -rpath directly | |
14990 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
14991 | fi | |
14992 | archive_cmds_need_lc_FC='no' | |
14993 | hardcode_libdir_separator_FC=: | |
14994 | ;; | |
14995 | ||
14996 | solaris*) | |
14997 | no_undefined_flag_FC=' -z defs' | |
14998 | if test "$GCC" = yes; then | |
14999 | wlarc='${wl}' | |
15000 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15001 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15002 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15003 | else | |
15004 | case `$CC -V 2>&1` in | |
15005 | *"Compilers 5.0"*) | |
15006 | wlarc='' | |
15007 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15008 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15009 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
15010 | ;; | |
15011 | *) | |
15012 | wlarc='${wl}' | |
15013 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15014 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15015 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15016 | ;; | |
15017 | esac | |
15018 | fi | |
15019 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15020 | hardcode_shlibpath_var_FC=no | |
15021 | case $host_os in | |
15022 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15023 | *) | |
15024 | # The compiler driver will combine and reorder linker options, | |
15025 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15026 | # but is careful enough not to reorder. | |
15027 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15028 | if test "$GCC" = yes; then | |
15029 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15030 | else | |
15031 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15032 | fi | |
15033 | ;; | |
15034 | esac | |
15035 | link_all_deplibs_FC=yes | |
15036 | ;; | |
15037 | ||
15038 | sunos4*) | |
15039 | if test "x$host_vendor" = xsequent; then | |
15040 | # Use $CC to link under sequent, because it throws in some extra .o | |
15041 | # files that make .init and .fini sections work. | |
15042 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15043 | else | |
15044 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15045 | fi | |
15046 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15047 | hardcode_direct_FC=yes | |
15048 | hardcode_minus_L_FC=yes | |
15049 | hardcode_shlibpath_var_FC=no | |
15050 | ;; | |
15051 | ||
15052 | sysv4) | |
15053 | case $host_vendor in | |
15054 | sni) | |
15055 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15056 | hardcode_direct_FC=yes # is this really true??? | |
15057 | ;; | |
15058 | siemens) | |
15059 | ## LD is ld it makes a PLAMLIB | |
15060 | ## CC just makes a GrossModule. | |
15061 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15062 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15063 | hardcode_direct_FC=no | |
15064 | ;; | |
15065 | motorola) | |
15066 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15067 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15068 | ;; | |
15069 | esac | |
15070 | runpath_var='LD_RUN_PATH' | |
15071 | hardcode_shlibpath_var_FC=no | |
15072 | ;; | |
15073 | ||
15074 | sysv4.3*) | |
15075 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15076 | hardcode_shlibpath_var_FC=no | |
15077 | export_dynamic_flag_spec_FC='-Bexport' | |
15078 | ;; | |
15079 | ||
15080 | sysv4*MP*) | |
15081 | if test -d /usr/nec; then | |
15082 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15083 | hardcode_shlibpath_var_FC=no | |
15084 | runpath_var=LD_RUN_PATH | |
15085 | hardcode_runpath_var=yes | |
15086 | ld_shlibs_FC=yes | |
15087 | fi | |
15088 | ;; | |
15089 | ||
15090 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15091 | no_undefined_flag_FC='${wl}-z,text' | |
15092 | archive_cmds_need_lc_FC=no | |
15093 | hardcode_shlibpath_var_FC=no | |
15094 | runpath_var='LD_RUN_PATH' | |
15095 | ||
15096 | if test "$GCC" = yes; then | |
15097 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15098 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15099 | else | |
15100 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15101 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15102 | fi | |
15103 | ;; | |
15104 | ||
15105 | sysv5* | sco3.2v5* | sco5v6*) | |
15106 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15107 | # link with -lc, and that would cause any symbols used from libc to | |
15108 | # always be unresolved, which means just about no library would | |
15109 | # ever link correctly. If we're not using GNU ld we use -z text | |
15110 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15111 | # as -z defs. | |
15112 | no_undefined_flag_FC='${wl}-z,text' | |
15113 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15114 | archive_cmds_need_lc_FC=no | |
15115 | hardcode_shlibpath_var_FC=no | |
15116 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15117 | hardcode_libdir_separator_FC=':' | |
15118 | link_all_deplibs_FC=yes | |
15119 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15120 | runpath_var='LD_RUN_PATH' | |
15121 | ||
15122 | if test "$GCC" = yes; then | |
15123 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15124 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15125 | else | |
15126 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15127 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15128 | fi | |
15129 | ;; | |
15130 | ||
15131 | uts4*) | |
15132 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15133 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15134 | hardcode_shlibpath_var_FC=no | |
15135 | ;; | |
15136 | ||
15137 | *) | |
15138 | ld_shlibs_FC=no | |
15139 | ;; | |
15140 | esac | |
15141 | ||
15142 | if test x$host_vendor = xsni; then | |
15143 | case $host in | |
15144 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15145 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15146 | ;; | |
15147 | esac | |
15148 | fi | |
15149 | fi | |
15150 | ||
5213506e RW |
15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15152 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d SE |
15153 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15154 | ||
15155 | with_gnu_ld_FC=$with_gnu_ld | |
15156 | ||
15157 | ||
15158 | ||
15159 | ||
15160 | ||
15161 | ||
15162 | # | |
15163 | # Do we need to explicitly link libc? | |
15164 | # | |
15165 | case "x$archive_cmds_need_lc_FC" in | |
15166 | x|xyes) | |
15167 | # Assume -lc should be added | |
15168 | archive_cmds_need_lc_FC=yes | |
15169 | ||
15170 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15171 | case $archive_cmds_FC in | |
15172 | *'~'*) | |
15173 | # FIXME: we may have to deal with multi-command sequences. | |
15174 | ;; | |
15175 | '$CC '*) | |
15176 | # Test whether the compiler implicitly links with -lc since on some | |
15177 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15178 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15180 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15181 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 15182 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15183 | else |
15184 | $RM conftest* | |
15185 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15186 | |
5213506e | 15187 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
15188 | (eval $ac_compile) 2>&5 |
15189 | ac_status=$? | |
5213506e RW |
15190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15191 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15192 | soname=conftest |
15193 | lib=conftest | |
15194 | libobjs=conftest.$ac_objext | |
15195 | deplibs= | |
15196 | wl=$lt_prog_compiler_wl_FC | |
15197 | pic_flag=$lt_prog_compiler_pic_FC | |
15198 | compiler_flags=-v | |
15199 | linker_flags=-v | |
15200 | verstring= | |
15201 | output_objdir=. | |
15202 | libname=conftest | |
15203 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15204 | allow_undefined_flag_FC= | |
5213506e | 15205 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15206 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9cdc381b | 15207 | ac_status=$? |
5213506e RW |
15208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15209 | test $ac_status = 0; } | |
baafc534 RW |
15210 | then |
15211 | lt_cv_archive_cmds_need_lc_FC=no | |
15212 | else | |
15213 | lt_cv_archive_cmds_need_lc_FC=yes | |
15214 | fi | |
15215 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15216 | else | |
15217 | cat conftest.err 1>&5 | |
15218 | fi | |
15219 | $RM conftest* | |
15220 | ||
15221 | fi | |
5213506e RW |
15222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15223 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 15224 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
15225 | ;; |
15226 | esac | |
15227 | fi | |
15228 | ;; | |
15229 | esac | |
9cdc381b | 15230 | |
9cdc381b | 15231 | |
1cf3d07d SE |
15232 | |
15233 | ||
15234 | ||
15235 | ||
15236 | ||
15237 | ||
15238 | ||
15239 | ||
15240 | ||
15241 | ||
15242 | ||
15243 | ||
15244 | ||
15245 | ||
15246 | ||
15247 | ||
15248 | ||
15249 | ||
15250 | ||
15251 | ||
15252 | ||
15253 | ||
15254 | ||
15255 | ||
15256 | ||
15257 | ||
15258 | ||
15259 | ||
15260 | ||
15261 | ||
15262 | ||
15263 | ||
15264 | ||
15265 | ||
15266 | ||
15267 | ||
15268 | ||
15269 | ||
15270 | ||
15271 | ||
15272 | ||
15273 | ||
15274 | ||
15275 | ||
15276 | ||
15277 | ||
15278 | ||
15279 | ||
15280 | ||
15281 | ||
15282 | ||
15283 | ||
15284 | ||
15285 | ||
15286 | ||
15287 | ||
15288 | ||
15289 | ||
15290 | ||
15291 | ||
15292 | ||
15293 | ||
5213506e RW |
15294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15295 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 | 15296 | |
1cf3d07d SE |
15297 | library_names_spec= |
15298 | libname_spec='lib$name' | |
15299 | soname_spec= | |
15300 | shrext_cmds=".so" | |
15301 | postinstall_cmds= | |
15302 | postuninstall_cmds= | |
15303 | finish_cmds= | |
15304 | finish_eval= | |
15305 | shlibpath_var= | |
15306 | shlibpath_overrides_runpath=unknown | |
15307 | version_type=none | |
15308 | dynamic_linker="$host_os ld.so" | |
15309 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15310 | need_lib_prefix=unknown | |
15311 | hardcode_into_libs=no | |
15312 | ||
15313 | # when you set need_version to no, make sure it does not cause -set_version | |
15314 | # flags to be left without arguments | |
15315 | need_version=unknown | |
15316 | ||
15317 | case $host_os in | |
15318 | aix3*) | |
15319 | version_type=linux | |
15320 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15321 | shlibpath_var=LIBPATH | |
15322 | ||
15323 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15324 | soname_spec='${libname}${release}${shared_ext}$major' | |
15325 | ;; | |
15326 | ||
4f6bebc3 | 15327 | aix[4-9]*) |
1cf3d07d SE |
15328 | version_type=linux |
15329 | need_lib_prefix=no | |
15330 | need_version=no | |
15331 | hardcode_into_libs=yes | |
15332 | if test "$host_cpu" = ia64; then | |
15333 | # AIX 5 supports IA64 | |
15334 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15335 | shlibpath_var=LD_LIBRARY_PATH | |
15336 | else | |
15337 | # With GCC up to 2.95.x, collect2 would create an import file | |
15338 | # for dependence libraries. The import file would start with | |
15339 | # the line `#! .'. This would cause the generated library to | |
15340 | # depend on `.', always an invalid library. This was fixed in | |
15341 | # development snapshots of GCC prior to 3.0. | |
15342 | case $host_os in | |
15343 | aix4 | aix4.[01] | aix4.[01].*) | |
15344 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15345 | echo ' yes ' | |
15346 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15347 | : | |
15348 | else | |
15349 | can_build_shared=no | |
15350 | fi | |
15351 | ;; | |
15352 | esac | |
15353 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15354 | # soname into executable. Probably we can add versioning support to | |
15355 | # collect2, so additional links can be useful in future. | |
15356 | if test "$aix_use_runtimelinking" = yes; then | |
15357 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15358 | # instead of lib<name>.a to let people know that these are not | |
15359 | # typical AIX shared libraries. | |
15360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15361 | else | |
15362 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15363 | # and later when we are not doing run time linking. | |
15364 | library_names_spec='${libname}${release}.a $libname.a' | |
15365 | soname_spec='${libname}${release}${shared_ext}$major' | |
15366 | fi | |
15367 | shlibpath_var=LIBPATH | |
15368 | fi | |
15369 | ;; | |
15370 | ||
15371 | amigaos*) | |
d58dead8 PG |
15372 | case $host_cpu in |
15373 | powerpc) | |
15374 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15375 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15377 | ;; | |
15378 | m68k) | |
1cf3d07d SE |
15379 | library_names_spec='$libname.ixlibrary $libname.a' |
15380 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 15381 | 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 |
15382 | ;; |
15383 | esac | |
1cf3d07d SE |
15384 | ;; |
15385 | ||
15386 | beos*) | |
15387 | library_names_spec='${libname}${shared_ext}' | |
15388 | dynamic_linker="$host_os ld.so" | |
15389 | shlibpath_var=LIBRARY_PATH | |
15390 | ;; | |
15391 | ||
15392 | bsdi[45]*) | |
15393 | version_type=linux | |
15394 | need_version=no | |
15395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15396 | soname_spec='${libname}${release}${shared_ext}$major' | |
15397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15398 | shlibpath_var=LD_LIBRARY_PATH | |
15399 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15400 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15401 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15402 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15403 | # libtool to hard-code these into programs | |
15404 | ;; | |
15405 | ||
d58dead8 | 15406 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
15407 | version_type=windows |
15408 | shrext_cmds=".dll" | |
15409 | need_version=no | |
15410 | need_lib_prefix=no | |
15411 | ||
d58dead8 PG |
15412 | case $GCC,$host_os in |
15413 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
15414 | library_names_spec='$libname.dll.a' |
15415 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15416 | postinstall_cmds='base_file=`basename \${file}`~ | |
15417 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15418 | dldir=$destdir/`dirname \$dlpath`~ | |
15419 | test -d \$dldir || mkdir -p \$dldir~ | |
15420 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15421 | chmod a+x \$dldir/$dlname~ | |
15422 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15423 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15424 | fi' | |
15425 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15426 | dlpath=$dir/\$dldll~ | |
15427 | $RM \$dlpath' | |
15428 | shlibpath_overrides_runpath=yes | |
15429 | ||
15430 | case $host_os in | |
15431 | cygwin*) | |
15432 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15433 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 15434 | |
1cf3d07d | 15435 | ;; |
d58dead8 | 15436 | mingw* | cegcc*) |
1cf3d07d SE |
15437 | # MinGW DLLs use traditional 'lib' prefix |
15438 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
15439 | ;; |
15440 | pw32*) | |
15441 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15442 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15443 | ;; | |
15444 | esac | |
15445 | ;; | |
15446 | ||
15447 | *) | |
15448 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15449 | ;; | |
15450 | esac | |
15451 | dynamic_linker='Win32 ld.exe' | |
15452 | # FIXME: first we should search . and the directory the executable is in | |
15453 | shlibpath_var=PATH | |
15454 | ;; | |
15455 | ||
15456 | darwin* | rhapsody*) | |
15457 | dynamic_linker="$host_os dyld" | |
15458 | version_type=darwin | |
15459 | need_lib_prefix=no | |
15460 | need_version=no | |
15461 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15462 | soname_spec='${libname}${release}${major}$shared_ext' | |
15463 | shlibpath_overrides_runpath=yes | |
15464 | shlibpath_var=DYLD_LIBRARY_PATH | |
15465 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15466 | ||
15467 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15468 | ;; | |
15469 | ||
15470 | dgux*) | |
15471 | version_type=linux | |
15472 | need_lib_prefix=no | |
15473 | need_version=no | |
15474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15475 | soname_spec='${libname}${release}${shared_ext}$major' | |
15476 | shlibpath_var=LD_LIBRARY_PATH | |
15477 | ;; | |
15478 | ||
1cf3d07d SE |
15479 | freebsd* | dragonfly*) |
15480 | # DragonFly does not have aout. When/if they implement a new | |
15481 | # versioning mechanism, adjust this. | |
15482 | if test -x /usr/bin/objformat; then | |
15483 | objformat=`/usr/bin/objformat` | |
15484 | else | |
15485 | case $host_os in | |
c6084f68 | 15486 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
15487 | *) objformat=elf ;; |
15488 | esac | |
15489 | fi | |
15490 | version_type=freebsd-$objformat | |
15491 | case $version_type in | |
15492 | freebsd-elf*) | |
15493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15494 | need_version=no | |
15495 | need_lib_prefix=no | |
15496 | ;; | |
15497 | freebsd-*) | |
15498 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15499 | need_version=yes | |
15500 | ;; | |
15501 | esac | |
15502 | shlibpath_var=LD_LIBRARY_PATH | |
15503 | case $host_os in | |
c6084f68 | 15504 | freebsd2.*) |
1cf3d07d SE |
15505 | shlibpath_overrides_runpath=yes |
15506 | ;; | |
15507 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15508 | shlibpath_overrides_runpath=yes | |
15509 | hardcode_into_libs=yes | |
15510 | ;; | |
15511 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15512 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15513 | shlibpath_overrides_runpath=no | |
15514 | hardcode_into_libs=yes | |
15515 | ;; | |
15516 | *) # from 4.6 on, and DragonFly | |
15517 | shlibpath_overrides_runpath=yes | |
15518 | hardcode_into_libs=yes | |
15519 | ;; | |
15520 | esac | |
15521 | ;; | |
15522 | ||
15523 | gnu*) | |
15524 | version_type=linux | |
15525 | need_lib_prefix=no | |
15526 | need_version=no | |
15527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15528 | soname_spec='${libname}${release}${shared_ext}$major' | |
15529 | shlibpath_var=LD_LIBRARY_PATH | |
15530 | hardcode_into_libs=yes | |
15531 | ;; | |
15532 | ||
43e02a8a RW |
15533 | haiku*) |
15534 | version_type=linux | |
15535 | need_lib_prefix=no | |
15536 | need_version=no | |
15537 | dynamic_linker="$host_os runtime_loader" | |
15538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15539 | soname_spec='${libname}${release}${shared_ext}$major' | |
15540 | shlibpath_var=LIBRARY_PATH | |
15541 | shlibpath_overrides_runpath=yes | |
15542 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15543 | hardcode_into_libs=yes | |
15544 | ;; | |
15545 | ||
1cf3d07d SE |
15546 | hpux9* | hpux10* | hpux11*) |
15547 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15548 | # link against other versions. | |
15549 | version_type=sunos | |
15550 | need_lib_prefix=no | |
15551 | need_version=no | |
15552 | case $host_cpu in | |
15553 | ia64*) | |
15554 | shrext_cmds='.so' | |
15555 | hardcode_into_libs=yes | |
15556 | dynamic_linker="$host_os dld.so" | |
15557 | shlibpath_var=LD_LIBRARY_PATH | |
15558 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15560 | soname_spec='${libname}${release}${shared_ext}$major' | |
15561 | if test "X$HPUX_IA64_MODE" = X32; then | |
15562 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15563 | else | |
15564 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15565 | fi | |
15566 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15567 | ;; | |
15568 | hppa*64*) | |
15569 | shrext_cmds='.sl' | |
15570 | hardcode_into_libs=yes | |
15571 | dynamic_linker="$host_os dld.sl" | |
15572 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15573 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15575 | soname_spec='${libname}${release}${shared_ext}$major' | |
15576 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15577 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15578 | ;; | |
15579 | *) | |
15580 | shrext_cmds='.sl' | |
15581 | dynamic_linker="$host_os dld.sl" | |
15582 | shlibpath_var=SHLIB_PATH | |
15583 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15585 | soname_spec='${libname}${release}${shared_ext}$major' | |
15586 | ;; | |
15587 | esac | |
43e02a8a | 15588 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 15589 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
15590 | # or fails outright, so override atomically: |
15591 | install_override_mode=555 | |
1cf3d07d SE |
15592 | ;; |
15593 | ||
15594 | interix[3-9]*) | |
15595 | version_type=linux | |
15596 | need_lib_prefix=no | |
15597 | need_version=no | |
15598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15599 | soname_spec='${libname}${release}${shared_ext}$major' | |
15600 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15601 | shlibpath_var=LD_LIBRARY_PATH | |
15602 | shlibpath_overrides_runpath=no | |
15603 | hardcode_into_libs=yes | |
15604 | ;; | |
15605 | ||
15606 | irix5* | irix6* | nonstopux*) | |
15607 | case $host_os in | |
15608 | nonstopux*) version_type=nonstopux ;; | |
15609 | *) | |
15610 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15611 | version_type=linux | |
15612 | else | |
15613 | version_type=irix | |
15614 | fi ;; | |
15615 | esac | |
15616 | need_lib_prefix=no | |
15617 | need_version=no | |
15618 | soname_spec='${libname}${release}${shared_ext}$major' | |
15619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15620 | case $host_os in | |
15621 | irix5* | nonstopux*) | |
15622 | libsuff= shlibsuff= | |
15623 | ;; | |
15624 | *) | |
15625 | case $LD in # libtool.m4 will add one of these switches to LD | |
15626 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15627 | libsuff= shlibsuff= libmagic=32-bit;; | |
15628 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15629 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15630 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15631 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15632 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15633 | esac | |
15634 | ;; | |
15635 | esac | |
15636 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15637 | shlibpath_overrides_runpath=no | |
15638 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15639 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15640 | hardcode_into_libs=yes | |
15641 | ;; | |
15642 | ||
15643 | # No shared lib support for Linux oldld, aout, or coff. | |
15644 | linux*oldld* | linux*aout* | linux*coff*) | |
15645 | dynamic_linker=no | |
15646 | ;; | |
15647 | ||
15648 | # This must be Linux ELF. | |
e9085da5 MR |
15649 | |
15650 | # uclinux* changes (here and below) have been submitted to the libtool | |
15651 | # project, but have not yet been accepted: they are GCC-local changes | |
15652 | # for the time being. (See | |
15653 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
15654 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) | |
1cf3d07d SE |
15655 | version_type=linux |
15656 | need_lib_prefix=no | |
15657 | need_version=no | |
15658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15659 | soname_spec='${libname}${release}${shared_ext}$major' | |
15660 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15661 | shlibpath_var=LD_LIBRARY_PATH | |
15662 | shlibpath_overrides_runpath=no | |
baafc534 | 15663 | |
1cf3d07d | 15664 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 15665 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 15666 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15667 | else |
15668 | lt_cv_shlibpath_overrides_runpath=no | |
15669 | save_LDFLAGS=$LDFLAGS | |
15670 | save_libdir=$libdir | |
15671 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15672 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15673 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15674 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15675 | fi |
5213506e | 15676 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15677 | program main |
15678 | ||
15679 | end | |
9cdc381b | 15680 | _ACEOF |
5213506e RW |
15681 | if ac_fn_fc_try_link "$LINENO"; then : |
15682 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 15683 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 15684 | fi |
9cdc381b | 15685 | fi |
5213506e RW |
15686 | rm -f core conftest.err conftest.$ac_objext \ |
15687 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
15688 | LDFLAGS=$save_LDFLAGS |
15689 | libdir=$save_libdir | |
15690 | ||
15691 | fi | |
15692 | ||
15693 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
15694 | |
15695 | # This implies no fast_install, which is unacceptable. | |
15696 | # Some rework will be needed to allow for fast_install | |
15697 | # before this can be enabled. | |
15698 | hardcode_into_libs=yes | |
15699 | ||
15700 | # Append ld.so.conf contents to the search path | |
15701 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 15702 | 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 |
15703 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15704 | fi | |
15705 | ||
15706 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15707 | # powerpc, because MkLinux only supported shared libraries with the | |
15708 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15709 | # most powerpc-linux boxes support dynamic linking these days and | |
15710 | # people can always --disable-shared, the test was removed, and we | |
15711 | # assume the GNU/Linux dynamic linker is in use. | |
15712 | dynamic_linker='GNU/Linux ld.so' | |
15713 | ;; | |
15714 | ||
15715 | netbsd*) | |
15716 | version_type=sunos | |
15717 | need_lib_prefix=no | |
15718 | need_version=no | |
15719 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15721 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15722 | dynamic_linker='NetBSD (a.out) ld.so' | |
15723 | else | |
15724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15725 | soname_spec='${libname}${release}${shared_ext}$major' | |
15726 | dynamic_linker='NetBSD ld.elf_so' | |
15727 | fi | |
15728 | shlibpath_var=LD_LIBRARY_PATH | |
15729 | shlibpath_overrides_runpath=yes | |
15730 | hardcode_into_libs=yes | |
15731 | ;; | |
15732 | ||
15733 | newsos6) | |
15734 | version_type=linux | |
15735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15736 | shlibpath_var=LD_LIBRARY_PATH | |
15737 | shlibpath_overrides_runpath=yes | |
15738 | ;; | |
15739 | ||
15740 | *nto* | *qnx*) | |
15741 | version_type=qnx | |
15742 | need_lib_prefix=no | |
15743 | need_version=no | |
15744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15745 | soname_spec='${libname}${release}${shared_ext}$major' | |
15746 | shlibpath_var=LD_LIBRARY_PATH | |
15747 | shlibpath_overrides_runpath=no | |
15748 | hardcode_into_libs=yes | |
15749 | dynamic_linker='ldqnx.so' | |
15750 | ;; | |
15751 | ||
15752 | openbsd*) | |
15753 | version_type=sunos | |
15754 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15755 | need_lib_prefix=no | |
15756 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15757 | case $host_os in | |
15758 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15759 | *) need_version=no ;; | |
15760 | esac | |
15761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15762 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15763 | shlibpath_var=LD_LIBRARY_PATH | |
15764 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15765 | case $host_os in | |
15766 | openbsd2.[89] | openbsd2.[89].*) | |
15767 | shlibpath_overrides_runpath=no | |
15768 | ;; | |
15769 | *) | |
15770 | shlibpath_overrides_runpath=yes | |
15771 | ;; | |
15772 | esac | |
15773 | else | |
15774 | shlibpath_overrides_runpath=yes | |
15775 | fi | |
15776 | ;; | |
15777 | ||
15778 | os2*) | |
15779 | libname_spec='$name' | |
15780 | shrext_cmds=".dll" | |
15781 | need_lib_prefix=no | |
15782 | library_names_spec='$libname${shared_ext} $libname.a' | |
15783 | dynamic_linker='OS/2 ld.exe' | |
15784 | shlibpath_var=LIBPATH | |
15785 | ;; | |
15786 | ||
15787 | osf3* | osf4* | osf5*) | |
15788 | version_type=osf | |
15789 | need_lib_prefix=no | |
15790 | need_version=no | |
15791 | soname_spec='${libname}${release}${shared_ext}$major' | |
15792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15793 | shlibpath_var=LD_LIBRARY_PATH | |
15794 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15795 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15796 | ;; | |
15797 | ||
15798 | rdos*) | |
15799 | dynamic_linker=no | |
15800 | ;; | |
15801 | ||
15802 | solaris*) | |
15803 | version_type=linux | |
15804 | need_lib_prefix=no | |
15805 | need_version=no | |
15806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15807 | soname_spec='${libname}${release}${shared_ext}$major' | |
15808 | shlibpath_var=LD_LIBRARY_PATH | |
15809 | shlibpath_overrides_runpath=yes | |
15810 | hardcode_into_libs=yes | |
15811 | # ldd complains unless libraries are executable | |
15812 | postinstall_cmds='chmod +x $lib' | |
15813 | ;; | |
15814 | ||
15815 | sunos4*) | |
15816 | version_type=sunos | |
15817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15818 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15819 | shlibpath_var=LD_LIBRARY_PATH | |
15820 | shlibpath_overrides_runpath=yes | |
15821 | if test "$with_gnu_ld" = yes; then | |
15822 | need_lib_prefix=no | |
15823 | fi | |
15824 | need_version=yes | |
15825 | ;; | |
15826 | ||
15827 | sysv4 | sysv4.3*) | |
15828 | version_type=linux | |
15829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15830 | soname_spec='${libname}${release}${shared_ext}$major' | |
15831 | shlibpath_var=LD_LIBRARY_PATH | |
15832 | case $host_vendor in | |
15833 | sni) | |
15834 | shlibpath_overrides_runpath=no | |
15835 | need_lib_prefix=no | |
15836 | runpath_var=LD_RUN_PATH | |
15837 | ;; | |
15838 | siemens) | |
15839 | need_lib_prefix=no | |
15840 | ;; | |
15841 | motorola) | |
15842 | need_lib_prefix=no | |
15843 | need_version=no | |
15844 | shlibpath_overrides_runpath=no | |
15845 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15846 | ;; | |
15847 | esac | |
15848 | ;; | |
15849 | ||
15850 | sysv4*MP*) | |
15851 | if test -d /usr/nec ;then | |
15852 | version_type=linux | |
15853 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15854 | soname_spec='$libname${shared_ext}.$major' | |
15855 | shlibpath_var=LD_LIBRARY_PATH | |
15856 | fi | |
15857 | ;; | |
15858 | ||
15859 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15860 | version_type=freebsd-elf | |
15861 | need_lib_prefix=no | |
15862 | need_version=no | |
15863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15864 | soname_spec='${libname}${release}${shared_ext}$major' | |
15865 | shlibpath_var=LD_LIBRARY_PATH | |
15866 | shlibpath_overrides_runpath=yes | |
15867 | hardcode_into_libs=yes | |
15868 | if test "$with_gnu_ld" = yes; then | |
15869 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15870 | else | |
15871 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15872 | case $host_os in | |
15873 | sco3.2v5*) | |
15874 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15875 | ;; | |
15876 | esac | |
15877 | fi | |
15878 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15879 | ;; | |
15880 | ||
15881 | tpf*) | |
15882 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15883 | version_type=linux | |
15884 | need_lib_prefix=no | |
15885 | need_version=no | |
d58dead8 | 15886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
15887 | shlibpath_var=LD_LIBRARY_PATH |
15888 | shlibpath_overrides_runpath=no | |
15889 | hardcode_into_libs=yes | |
15890 | ;; | |
15891 | ||
15892 | uts4*) | |
15893 | version_type=linux | |
15894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15895 | soname_spec='${libname}${release}${shared_ext}$major' | |
15896 | shlibpath_var=LD_LIBRARY_PATH | |
15897 | ;; | |
15898 | ||
15899 | *) | |
15900 | dynamic_linker=no | |
15901 | ;; | |
15902 | esac | |
5213506e RW |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
15904 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
15905 | test "$dynamic_linker" = no && can_build_shared=no |
15906 | ||
15907 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15908 | if test "$GCC" = yes; then | |
15909 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9cdc381b | 15910 | fi |
9cdc381b | 15911 | |
d58dead8 PG |
15912 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15913 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15914 | fi | |
15915 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15916 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15917 | fi | |
15918 | ||
9cdc381b | 15919 | |
1cf3d07d SE |
15920 | |
15921 | ||
15922 | ||
15923 | ||
15924 | ||
15925 | ||
15926 | ||
15927 | ||
15928 | ||
15929 | ||
15930 | ||
15931 | ||
15932 | ||
15933 | ||
15934 | ||
15935 | ||
15936 | ||
15937 | ||
15938 | ||
15939 | ||
15940 | ||
15941 | ||
15942 | ||
15943 | ||
15944 | ||
15945 | ||
15946 | ||
15947 | ||
15948 | ||
15949 | ||
15950 | ||
43e02a8a RW |
15951 | |
15952 | ||
1cf3d07d SE |
15953 | |
15954 | ||
15955 | ||
5213506e RW |
15956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15957 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
15958 | hardcode_action_FC= |
15959 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
15960 | test -n "$runpath_var_FC" || | |
15961 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
15962 | ||
15963 | # We can hardcode non-existent directories. | |
15964 | if test "$hardcode_direct_FC" != no && | |
15965 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15966 | # have to relink, otherwise we might link with an installed library | |
15967 | # when we should be linking with a yet-to-be-installed one | |
15968 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
15969 | test "$hardcode_minus_L_FC" != no; then | |
15970 | # Linking always hardcodes the temporary library directory. | |
15971 | hardcode_action_FC=relink | |
15972 | else | |
15973 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15974 | hardcode_action_FC=immediate | |
15975 | fi | |
15976 | else | |
15977 | # We cannot hardcode anything, or else we can only hardcode existing | |
15978 | # directories. | |
15979 | hardcode_action_FC=unsupported | |
9cdc381b | 15980 | fi |
5213506e RW |
15981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
15982 | $as_echo "$hardcode_action_FC" >&6; } | |
1cf3d07d SE |
15983 | |
15984 | if test "$hardcode_action_FC" = relink || | |
15985 | test "$inherit_rpath_FC" = yes; then | |
15986 | # Fast installation is not supported | |
15987 | enable_fast_install=no | |
15988 | elif test "$shlibpath_overrides_runpath" = yes || | |
15989 | test "$enable_shared" = no; then | |
15990 | # Fast installation is not necessary | |
15991 | enable_fast_install=needless | |
9cdc381b BD |
15992 | fi |
15993 | ||
1cf3d07d SE |
15994 | |
15995 | ||
15996 | ||
15997 | ||
15998 | ||
15999 | ||
16000 | fi # test -n "$compiler" | |
16001 | ||
d58dead8 | 16002 | GCC=$lt_save_GCC |
1cf3d07d SE |
16003 | CC="$lt_save_CC" |
16004 | fi # test "$_lt_disable_FC" != yes | |
16005 | ||
dd46a4de | 16006 | ac_ext=c |
96b8a615 AJ |
16007 | ac_cpp='$CPP $CPPFLAGS' |
16008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1cf3d07d SE |
16011 | |
16012 | ||
16013 | ||
16014 | # extra LD Flags which are required for targets | |
16015 | case "${host}" in | |
16016 | *-darwin*) | |
16017 | # Darwin needs -single_module when linking libgfortran | |
16018 | extra_ldflags_libgfortran=-Wl,-single_module | |
16019 | ;; | |
16020 | esac | |
16021 | ||
16022 | ||
16023 | # We need a working compiler at that point, otherwise give a clear | |
16024 | # error message and bail out. | |
16025 | ||
5213506e RW |
16026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16027 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16028 | ac_ext=${ac_fc_srcext-f} | |
16029 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16030 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
16031 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16032 | ||
5213506e | 16033 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
16034 | |
16035 | program foo | |
16036 | real, parameter :: bar = sin (12.34 / 2.5) | |
16037 | end program foo | |
6de9cd9a | 16038 | _ACEOF |
5213506e RW |
16039 | if ac_fn_fc_try_compile "$LINENO"; then : |
16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16041 | $as_echo "yes" >&6; } | |
6de9cd9a | 16042 | else |
5213506e RW |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16044 | $as_echo "no" >&6; } | |
22e05272 | 16045 | 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 | 16046 | |
96b8a615 | 16047 | fi |
5213506e | 16048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
16049 | ac_ext=c |
16050 | ac_cpp='$CPP $CPPFLAGS' | |
16051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
96b8a615 | 16054 | |
96b8a615 | 16055 | |
1cf3d07d | 16056 | |
5213506e RW |
16057 | # Check whether --enable-largefile was given. |
16058 | if test "${enable_largefile+set}" = set; then : | |
16059 | enableval=$enable_largefile; | |
16060 | fi | |
1cf3d07d | 16061 | |
1cf3d07d SE |
16062 | if test "$enable_largefile" != no; then |
16063 | ||
5213506e RW |
16064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16065 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 16066 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 16067 | $as_echo_n "(cached) " >&6 |
96b8a615 | 16068 | else |
1cf3d07d SE |
16069 | ac_cv_sys_largefile_CC=no |
16070 | if test "$GCC" != yes; then | |
16071 | ac_save_CC=$CC | |
16072 | while :; do | |
5213506e RW |
16073 | # IRIX 6.2 and later do not support large files by default, |
16074 | # so use the C compiler's -n32 option if that helps. | |
16075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
96b8a615 | 16076 | /* end confdefs.h. */ |
1cf3d07d SE |
16077 | #include <sys/types.h> |
16078 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16079 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16080 | since some C++ compilers masquerading as C compilers | |
16081 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16082 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16083 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16084 | && LARGE_OFF_T % 2147483647 == 1) | |
16085 | ? 1 : -1]; | |
4c4b3eb0 PB |
16086 | int |
16087 | main () | |
16088 | { | |
4c4b3eb0 PB |
16089 | |
16090 | ; | |
16091 | return 0; | |
16092 | } | |
16093 | _ACEOF | |
5213506e RW |
16094 | if ac_fn_c_try_compile "$LINENO"; then : |
16095 | break | |
4c4b3eb0 | 16096 | fi |
5213506e RW |
16097 | rm -f core conftest.err conftest.$ac_objext |
16098 | CC="$CC -n32" | |
16099 | if ac_fn_c_try_compile "$LINENO"; then : | |
16100 | ac_cv_sys_largefile_CC=' -n32'; break | |
16101 | fi | |
16102 | rm -f core conftest.err conftest.$ac_objext | |
16103 | break | |
16104 | done | |
16105 | CC=$ac_save_CC | |
16106 | rm -f conftest.$ac_ext | |
16107 | fi | |
16108 | fi | |
16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16110 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16111 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16112 | CC=$CC$ac_cv_sys_largefile_CC | |
16113 | fi | |
4c4b3eb0 | 16114 | |
5213506e RW |
16115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16116 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 16117 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e RW |
16118 | $as_echo_n "(cached) " >&6 |
16119 | else | |
16120 | while :; do | |
16121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16122 | /* end confdefs.h. */ |
5213506e RW |
16123 | #include <sys/types.h> |
16124 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16125 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16126 | since some C++ compilers masquerading as C compilers | |
16127 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16128 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16129 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16130 | && LARGE_OFF_T % 2147483647 == 1) | |
16131 | ? 1 : -1]; | |
4c4b3eb0 PB |
16132 | int |
16133 | main () | |
16134 | { | |
4c4b3eb0 PB |
16135 | |
16136 | ; | |
16137 | return 0; | |
16138 | } | |
16139 | _ACEOF | |
5213506e RW |
16140 | if ac_fn_c_try_compile "$LINENO"; then : |
16141 | ac_cv_sys_file_offset_bits=no; break | |
16142 | fi | |
16143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16145 | /* end confdefs.h. */ |
5213506e RW |
16146 | #define _FILE_OFFSET_BITS 64 |
16147 | #include <sys/types.h> | |
16148 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16149 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16150 | since some C++ compilers masquerading as C compilers | |
16151 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16152 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16153 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16154 | && LARGE_OFF_T % 2147483647 == 1) | |
16155 | ? 1 : -1]; | |
4c4b3eb0 PB |
16156 | int |
16157 | main () | |
16158 | { | |
4c4b3eb0 PB |
16159 | |
16160 | ; | |
16161 | return 0; | |
16162 | } | |
16163 | _ACEOF | |
5213506e RW |
16164 | if ac_fn_c_try_compile "$LINENO"; then : |
16165 | ac_cv_sys_file_offset_bits=64; break | |
4c4b3eb0 | 16166 | fi |
5213506e RW |
16167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16168 | ac_cv_sys_file_offset_bits=unknown | |
16169 | break | |
16170 | done | |
4c4b3eb0 | 16171 | fi |
5213506e RW |
16172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16173 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16174 | case $ac_cv_sys_file_offset_bits in #( | |
16175 | no | unknown) ;; | |
16176 | *) | |
16177 | cat >>confdefs.h <<_ACEOF | |
16178 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4c4b3eb0 | 16179 | _ACEOF |
5213506e RW |
16180 | ;; |
16181 | esac | |
16182 | rm -rf conftest* | |
16183 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16185 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 16186 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e RW |
16187 | $as_echo_n "(cached) " >&6 |
16188 | else | |
16189 | while :; do | |
16190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16191 | /* end confdefs.h. */ |
5213506e RW |
16192 | #include <sys/types.h> |
16193 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16194 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16195 | since some C++ compilers masquerading as C compilers | |
16196 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16197 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16198 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16199 | && LARGE_OFF_T % 2147483647 == 1) | |
16200 | ? 1 : -1]; | |
4c4b3eb0 PB |
16201 | int |
16202 | main () | |
16203 | { | |
4c4b3eb0 PB |
16204 | |
16205 | ; | |
16206 | return 0; | |
16207 | } | |
16208 | _ACEOF | |
5213506e RW |
16209 | if ac_fn_c_try_compile "$LINENO"; then : |
16210 | ac_cv_sys_large_files=no; break | |
4c4b3eb0 | 16211 | fi |
5213506e RW |
16212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16214 | /* end confdefs.h. */ |
5213506e RW |
16215 | #define _LARGE_FILES 1 |
16216 | #include <sys/types.h> | |
16217 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16218 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16219 | since some C++ compilers masquerading as C compilers | |
16220 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16221 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16222 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16223 | && LARGE_OFF_T % 2147483647 == 1) | |
16224 | ? 1 : -1]; | |
4c4b3eb0 PB |
16225 | int |
16226 | main () | |
16227 | { | |
16228 | ||
4c4b3eb0 PB |
16229 | ; |
16230 | return 0; | |
16231 | } | |
16232 | _ACEOF | |
5213506e RW |
16233 | if ac_fn_c_try_compile "$LINENO"; then : |
16234 | ac_cv_sys_large_files=1; break | |
4c4b3eb0 | 16235 | fi |
5213506e RW |
16236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16237 | ac_cv_sys_large_files=unknown | |
16238 | break | |
16239 | done | |
38d24731 | 16240 | fi |
5213506e RW |
16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16242 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16243 | case $ac_cv_sys_large_files in #( | |
16244 | no | unknown) ;; | |
16245 | *) | |
4c4b3eb0 | 16246 | cat >>confdefs.h <<_ACEOF |
5213506e | 16247 | #define _LARGE_FILES $ac_cv_sys_large_files |
4c4b3eb0 | 16248 | _ACEOF |
5213506e RW |
16249 | ;; |
16250 | esac | |
16251 | rm -rf conftest* | |
16252 | fi | |
22e05272 JM |
16253 | |
16254 | ||
4c4b3eb0 PB |
16255 | fi |
16256 | ||
44720bef JB |
16257 | |
16258 | # Types | |
5213506e | 16259 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 16260 | if test "x$ac_cv_type_off_t" = xyes; then : |
4c4b3eb0 | 16261 | |
5213506e | 16262 | else |
4c4b3eb0 | 16263 | |
5213506e RW |
16264 | cat >>confdefs.h <<_ACEOF |
16265 | #define off_t long int | |
16266 | _ACEOF | |
4c4b3eb0 | 16267 | |
44720bef JB |
16268 | fi |
16269 | ||
16270 | ||
16271 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
22e05272 | 16272 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
44720bef JB |
16273 | |
16274 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16275 | ||
16276 | else | |
16277 | for ac_type in 'int' 'long int' 'long long int'; do | |
16278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16279 | /* end confdefs.h. */ | |
16280 | $ac_includes_default | |
16281 | int | |
16282 | main () | |
16283 | { | |
16284 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16285 | test_array [0] = 0; |
16286 | return test_array [0]; | |
44720bef JB |
16287 | |
16288 | ; | |
16289 | return 0; | |
16290 | } | |
16291 | _ACEOF | |
16292 | if ac_fn_c_try_compile "$LINENO"; then : | |
16293 | ||
16294 | cat >>confdefs.h <<_ACEOF | |
16295 | #define intptr_t $ac_type | |
16296 | _ACEOF | |
16297 | ||
16298 | ac_type= | |
16299 | fi | |
16300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16301 | test -z "$ac_type" && break | |
16302 | done | |
16303 | fi | |
16304 | ||
16305 | ||
16306 | ||
16307 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
22e05272 | 16308 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
44720bef JB |
16309 | |
16310 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16311 | ||
16312 | else | |
16313 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16314 | 'unsigned long long int'; do | |
16315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16316 | /* end confdefs.h. */ | |
16317 | $ac_includes_default | |
16318 | int | |
16319 | main () | |
16320 | { | |
16321 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16322 | test_array [0] = 0; |
16323 | return test_array [0]; | |
44720bef JB |
16324 | |
16325 | ; | |
16326 | return 0; | |
16327 | } | |
16328 | _ACEOF | |
16329 | if ac_fn_c_try_compile "$LINENO"; then : | |
16330 | ||
16331 | cat >>confdefs.h <<_ACEOF | |
16332 | #define uintptr_t $ac_type | |
16333 | _ACEOF | |
16334 | ||
16335 | ac_type= | |
16336 | fi | |
16337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16338 | test -z "$ac_type" && break | |
16339 | done | |
16340 | fi | |
16341 | ||
16342 | ||
16343 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
22e05272 | 16344 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
44720bef JB |
16345 | |
16346 | cat >>confdefs.h <<_ACEOF | |
16347 | #define HAVE_PTRDIFF_T 1 | |
16348 | _ACEOF | |
16349 | ||
16350 | ||
4c4b3eb0 PB |
16351 | fi |
16352 | ||
4c4b3eb0 | 16353 | |
74544378 | 16354 | # check header files (we assume C89 is available, so don't check for that) |
df65f093 | 16355 | |
5213506e | 16356 | |
df65f093 | 16357 | |
74544378 JB |
16358 | for ac_header in $ac_header_list |
16359 | do : | |
16360 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16361 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16362 | " | |
22e05272 | 16363 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
74544378 JB |
16364 | cat >>confdefs.h <<_ACEOF |
16365 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
df65f093 SK |
16366 | _ACEOF |
16367 | ||
5213506e | 16368 | fi |
df65f093 | 16369 | |
74544378 | 16370 | done |
864c28e1 RO |
16371 | |
16372 | ||
df65f093 | 16373 | |
5213506e | 16374 | |
5213506e | 16375 | |
df65f093 | 16376 | |
5213506e | 16377 | |
5213506e | 16378 | |
df65f093 | 16379 | |
df65f093 | 16380 | |
df65f093 SK |
16381 | |
16382 | ||
df65f093 | 16383 | |
df65f093 | 16384 | |
df65f093 SK |
16385 | |
16386 | ||
df65f093 SK |
16387 | |
16388 | ||
41724e6a | 16389 | |
2cbcdeba | 16390 | |
3969c39f | 16391 | |
1fb2002d FXC |
16392 | |
16393 | ||
32aa3bff | 16394 | |
f77b6ca3 | 16395 | |
f77b6ca3 | 16396 | |
f77b6ca3 | 16397 | |
f77b6ca3 | 16398 | |
f77b6ca3 | 16399 | |
f77b6ca3 | 16400 | |
fa86f4f9 TB |
16401 | |
16402 | ||
9cbecd06 JB |
16403 | |
16404 | ||
edaaef60 JB |
16405 | |
16406 | ||
f77b6ca3 | 16407 | |
f77b6ca3 | 16408 | |
6de9cd9a | 16409 | |
c13e029b | 16410 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
6de9cd9a | 16411 | |
c13e029b PB |
16412 | acx_cv_header_stdint=stddef.h |
16413 | acx_cv_header_stdint_kind="(already complete)" | |
16414 | for i in stdint.h $inttype_headers; do | |
16415 | unset ac_cv_type_uintptr_t | |
16416 | unset ac_cv_type_uintmax_t | |
16417 | unset ac_cv_type_int_least32_t | |
16418 | unset ac_cv_type_int_fast32_t | |
16419 | unset ac_cv_type_uint64_t | |
16420 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16421 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16422 | #include <$i> | |
16423 | " | |
22e05272 | 16424 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c13e029b | 16425 | acx_cv_header_stdint=$i |
5213506e | 16426 | else |
c13e029b | 16427 | continue |
5213506e | 16428 | fi |
6de9cd9a | 16429 | |
c13e029b PB |
16430 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16431 | #include <$i> | |
16432 | " | |
22e05272 | 16433 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
96b8a615 | 16434 | |
5213506e | 16435 | else |
c13e029b | 16436 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16437 | fi |
96b8a615 | 16438 | |
c13e029b PB |
16439 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16440 | #include <$i> | |
16441 | " | |
22e05272 | 16442 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
c13e029b | 16443 | |
f77b6ca3 | 16444 | else |
c13e029b | 16445 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16446 | fi |
5213506e | 16447 | |
c13e029b PB |
16448 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16449 | #include <$i> | |
16450 | " | |
22e05272 | 16451 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f77b6ca3 | 16452 | |
c13e029b PB |
16453 | else |
16454 | acx_cv_header_stdint_kind="(mostly complete)" | |
16455 | fi | |
d72a3ac1 | 16456 | |
c13e029b PB |
16457 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16458 | #include <$i> | |
16459 | " | |
22e05272 | 16460 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
d72a3ac1 | 16461 | |
5213506e | 16462 | else |
c13e029b PB |
16463 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16464 | fi | |
f77b6ca3 | 16465 | |
c13e029b PB |
16466 | break |
16467 | done | |
16468 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16469 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16470 | for i in stdint.h $inttype_headers; do | |
16471 | unset ac_cv_type_uintptr_t | |
16472 | unset ac_cv_type_uint32_t | |
16473 | unset ac_cv_type_uint64_t | |
16474 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16475 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16476 | #include <$i> | |
16477 | " | |
22e05272 | 16478 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c13e029b PB |
16479 | acx_cv_header_stdint=$i |
16480 | else | |
16481 | continue | |
5213506e | 16482 | fi |
f77b6ca3 | 16483 | |
c13e029b PB |
16484 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16485 | #include <$i> | |
16486 | " | |
22e05272 | 16487 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
8845001b | 16488 | |
c13e029b | 16489 | fi |
185d7d97 | 16490 | |
c13e029b PB |
16491 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16492 | #include <$i> | |
16493 | " | |
22e05272 | 16494 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
185d7d97 | 16495 | |
c13e029b | 16496 | fi |
35059811 | 16497 | |
c13e029b PB |
16498 | break |
16499 | done | |
16500 | fi | |
16501 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16502 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16503 | for i in sys/types.h $inttype_headers; do | |
16504 | unset ac_cv_type_u_int32_t | |
16505 | unset ac_cv_type_u_int64_t | |
16506 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16507 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16508 | #include <$i> | |
16509 | " | |
22e05272 | 16510 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c13e029b | 16511 | acx_cv_header_stdint=$i |
d72a3ac1 | 16512 | else |
c13e029b PB |
16513 | continue |
16514 | fi | |
a119fc1c | 16515 | |
c13e029b PB |
16516 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16517 | #include <$i> | |
16518 | " | |
22e05272 | 16519 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
a119fc1c | 16520 | |
c13e029b | 16521 | fi |
a119fc1c | 16522 | |
c13e029b PB |
16523 | break |
16524 | done | |
a119fc1c | 16525 | fi |
c13e029b PB |
16526 | if test "$acx_cv_header_stdint" = stddef.h; then |
16527 | acx_cv_header_stdint_kind="(using manual detection)" | |
5213506e | 16528 | fi |
a119fc1c | 16529 | |
c13e029b PB |
16530 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16531 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16532 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16533 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16534 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
a119fc1c | 16535 | |
c13e029b | 16536 | # ----------------- Summarize what we found so far |
5213506e | 16537 | |
c13e029b PB |
16538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16539 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
a119fc1c | 16540 | |
c13e029b PB |
16541 | case `$as_basename -- gstdint.h || |
16542 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16543 | Xgstdint.h : 'X\(//\)$' \| \ | |
16544 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16545 | $as_echo X/gstdint.h | | |
16546 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16547 | s//\1/ | |
16548 | q | |
16549 | } | |
16550 | /^X\/\(\/\/\)$/{ | |
16551 | s//\1/ | |
16552 | q | |
16553 | } | |
16554 | /^X\/\(\/\).*/{ | |
16555 | s//\1/ | |
16556 | q | |
16557 | } | |
16558 | s/.*/./; q'` in | |
16559 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16560 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16561 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16562 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16563 | *) ;; | |
16564 | esac | |
a119fc1c | 16565 | |
c13e029b PB |
16566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16567 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
a63a0959 | 16568 | |
c13e029b | 16569 | # ----------------- done included file, check C basic types -------- |
868d75db | 16570 | |
c13e029b PB |
16571 | # Lacking an uintptr_t? Test size of void * |
16572 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16573 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16574 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16575 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16576 | # This bug is HP SR number 8606223364. | |
16577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16578 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16579 | if ${ac_cv_sizeof_void_p+:} false; then : |
c13e029b PB |
16580 | $as_echo_n "(cached) " >&6 |
16581 | else | |
16582 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
868d75db | 16583 | |
c13e029b PB |
16584 | else |
16585 | if test "$ac_cv_type_void_p" = yes; then | |
16586 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16588 | as_fn_error 77 "cannot compute sizeof (void *) |
16589 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16590 | else |
16591 | ac_cv_sizeof_void_p=0 | |
16592 | fi | |
16593 | fi | |
d72a3ac1 | 16594 | |
c13e029b PB |
16595 | fi |
16596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16597 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d72a3ac1 | 16598 | |
868d75db FXC |
16599 | |
16600 | ||
d72a3ac1 | 16601 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16602 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
d72a3ac1 | 16603 | _ACEOF |
d72a3ac1 | 16604 | |
c13e029b PB |
16605 | ;; |
16606 | esac | |
d72a3ac1 | 16607 | |
c13e029b PB |
16608 | # Lacking an uint64_t? Test size of long |
16609 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16610 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16611 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16612 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16613 | # This bug is HP SR number 8606223364. | |
16614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16615 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16616 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e RW |
16617 | $as_echo_n "(cached) " >&6 |
16618 | else | |
c13e029b | 16619 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
d72a3ac1 | 16620 | |
7f483eec | 16621 | else |
c13e029b PB |
16622 | if test "$ac_cv_type_long" = yes; then |
16623 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16624 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16625 | as_fn_error 77 "cannot compute sizeof (long) |
16626 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16627 | else |
16628 | ac_cv_sizeof_long=0 | |
16629 | fi | |
5213506e | 16630 | fi |
7f483eec | 16631 | |
c13e029b PB |
16632 | fi |
16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16634 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
d72a3ac1 | 16635 | |
7f483eec | 16636 | |
d72a3ac1 PB |
16637 | |
16638 | cat >>confdefs.h <<_ACEOF | |
c13e029b | 16639 | #define SIZEOF_LONG $ac_cv_sizeof_long |
d72a3ac1 | 16640 | _ACEOF |
7f483eec | 16641 | |
c13e029b PB |
16642 | ;; |
16643 | esac | |
29e86cb0 | 16644 | |
c13e029b PB |
16645 | if test $acx_cv_header_stdint = stddef.h; then |
16646 | # Lacking a good header? Test size of everything and deduce all types. | |
16647 | # The cast to long int works around a bug in the HP C Compiler | |
16648 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16649 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16650 | # This bug is HP SR number 8606223364. | |
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16652 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16653 | if ${ac_cv_sizeof_int+:} false; then : |
c13e029b PB |
16654 | $as_echo_n "(cached) " >&6 |
16655 | else | |
16656 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
6422c112 | 16657 | |
c13e029b PB |
16658 | else |
16659 | if test "$ac_cv_type_int" = yes; then | |
16660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16662 | as_fn_error 77 "cannot compute sizeof (int) |
16663 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16664 | else |
16665 | ac_cv_sizeof_int=0 | |
16666 | fi | |
16667 | fi | |
d8163f5c | 16668 | |
c13e029b PB |
16669 | fi |
16670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16671 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
2515e5a7 FXC |
16672 | |
16673 | ||
868d75db | 16674 | |
d72a3ac1 | 16675 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16676 | #define SIZEOF_INT $ac_cv_sizeof_int |
d72a3ac1 PB |
16677 | _ACEOF |
16678 | ||
d72a3ac1 | 16679 | |
c13e029b PB |
16680 | # The cast to long int works around a bug in the HP C Compiler |
16681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16683 | # This bug is HP SR number 8606223364. | |
16684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16685 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16686 | if ${ac_cv_sizeof_short+:} false; then : |
c13e029b PB |
16687 | $as_echo_n "(cached) " >&6 |
16688 | else | |
16689 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
d72a3ac1 | 16690 | |
c13e029b PB |
16691 | else |
16692 | if test "$ac_cv_type_short" = yes; then | |
16693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16695 | as_fn_error 77 "cannot compute sizeof (short) |
16696 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16697 | else |
16698 | ac_cv_sizeof_short=0 | |
16699 | fi | |
16700 | fi | |
d72a3ac1 | 16701 | |
c13e029b PB |
16702 | fi |
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16704 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
d72a3ac1 PB |
16705 | |
16706 | ||
16707 | ||
c13e029b PB |
16708 | cat >>confdefs.h <<_ACEOF |
16709 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16710 | _ACEOF | |
d72a3ac1 PB |
16711 | |
16712 | ||
c13e029b PB |
16713 | # The cast to long int works around a bug in the HP C Compiler |
16714 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16715 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16716 | # This bug is HP SR number 8606223364. | |
16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16718 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16719 | if ${ac_cv_sizeof_char+:} false; then : |
c13e029b PB |
16720 | $as_echo_n "(cached) " >&6 |
16721 | else | |
16722 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
d72a3ac1 | 16723 | |
c13e029b PB |
16724 | else |
16725 | if test "$ac_cv_type_char" = yes; then | |
16726 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16727 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16728 | as_fn_error 77 "cannot compute sizeof (char) |
16729 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16730 | else |
16731 | ac_cv_sizeof_char=0 | |
16732 | fi | |
16733 | fi | |
d72a3ac1 | 16734 | |
c13e029b PB |
16735 | fi |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16737 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
d72a3ac1 PB |
16738 | |
16739 | ||
d72a3ac1 | 16740 | |
5213506e | 16741 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16742 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
868d75db | 16743 | _ACEOF |
868d75db | 16744 | |
868d75db | 16745 | |
2017c370 | 16746 | |
c13e029b PB |
16747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16748 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16749 | case "$ac_cv_sizeof_char" in | |
16750 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16751 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16752 | esac |
16753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16754 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16755 | ||
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16757 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16758 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16759 | 2:*) acx_cv_type_int16_t=int ;; | |
16760 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16761 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16762 | esac |
16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16764 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16765 | ||
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16767 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16768 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16769 | 4:*) acx_cv_type_int32_t=int ;; | |
16770 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 16771 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16772 | esac |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16774 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
5213506e RW |
16775 | fi |
16776 | ||
c13e029b | 16777 | # These tests are here to make the output prettier |
d72a3ac1 | 16778 | |
c13e029b PB |
16779 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16780 | case "$ac_cv_sizeof_long" in | |
16781 | 8) acx_cv_type_int64_t=long ;; | |
16782 | esac | |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16784 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16786 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16787 | fi | |
16788 | ||
16789 | # Now we can use the above types | |
16790 | ||
16791 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16793 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16794 | case $ac_cv_sizeof_void_p in | |
16795 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16796 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16797 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 16798 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c13e029b PB |
16799 | esac |
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16801 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16802 | fi | |
d72a3ac1 | 16803 | |
c13e029b | 16804 | # ----------------- done all checks, emit header ------------- |
5213506e | 16805 | ac_config_commands="$ac_config_commands gstdint.h" |
2017c370 | 16806 | |
2017c370 | 16807 | |
5213506e RW |
16808 | |
16809 | ||
16810 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
22e05272 | 16811 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
5213506e RW |
16812 | |
16813 | cat >>confdefs.h <<_ACEOF | |
16814 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
2017c370 | 16815 | _ACEOF |
2017c370 | 16816 | |
5213506e | 16817 | |
2017c370 | 16818 | fi |
5213506e | 16819 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
22e05272 | 16820 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
5213506e RW |
16821 | |
16822 | cat >>confdefs.h <<_ACEOF | |
16823 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
2017c370 JB |
16824 | _ACEOF |
16825 | ||
5213506e | 16826 | |
2017c370 | 16827 | fi |
5213506e | 16828 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
22e05272 | 16829 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
2017c370 | 16830 | |
5213506e RW |
16831 | cat >>confdefs.h <<_ACEOF |
16832 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16833 | _ACEOF | |
868d75db FXC |
16834 | |
16835 | ||
f02d008e | 16836 | fi |
5213506e RW |
16837 | |
16838 | ||
bd459d0b JG |
16839 | case "${host}--x${with_newlib}" in |
16840 | mips*--xyes) | |
16841 | hardwire_newlib=1;; | |
d3ca2257 NS |
16842 | nvptx*--xyes) |
16843 | hardwire_newlib=1;; | |
bd459d0b JG |
16844 | esac |
16845 | ||
5213506e | 16846 | # Check for library functions. |
bd459d0b | 16847 | if test "${hardwire_newlib:-0}" -eq 1; then |
b4005c71 SE |
16848 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
16849 | # may not work correctly, because the compiler may not be able to | |
16850 | # link executables. | |
16851 | ||
16852 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
16853 | ||
16854 | ||
16855 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
16856 | ||
16857 | ||
b4005c71 SE |
16858 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
16859 | ||
16860 | ||
b4005c71 SE |
16861 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
16862 | ||
16863 | ||
16864 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
16865 | ||
16866 | ||
16867 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
16868 | ||
cb83df66 | 16869 | |
ebfedee6 HPN |
16870 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
16871 | ||
16872 | ||
16873 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
16874 | ||
16875 | ||
cb83df66 SE |
16876 | # At some point, we should differentiate between architectures |
16877 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
16878 | # which don't. For the time being, punt. | |
16879 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
16880 | ||
16881 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
16882 | ||
16883 | fi | |
b4005c71 | 16884 | else |
f77b6ca3 | 16885 | |
f77b6ca3 | 16886 | |
74544378 JB |
16887 | |
16888 | for ac_func in $ac_func_list | |
5213506e RW |
16889 | do : |
16890 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16891 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 16892 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
16893 | cat >>confdefs.h <<_ACEOF |
16894 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16895 | _ACEOF | |
f77b6ca3 | 16896 | |
5213506e RW |
16897 | fi |
16898 | done | |
f77b6ca3 | 16899 | |
f77b6ca3 | 16900 | |
5213506e | 16901 | |
96b8a615 | 16902 | |
5213506e | 16903 | |
5213506e | 16904 | |
5213506e | 16905 | |
6de9cd9a | 16906 | |
6de9cd9a | 16907 | |
b6e7a3d1 | 16908 | |
b6e7a3d1 | 16909 | |
6de9cd9a | 16910 | |
4c0c6b9f | 16911 | |
4c0c6b9f | 16912 | |
4c0c6b9f | 16913 | |
4c0c6b9f | 16914 | |
4c0c6b9f | 16915 | |
4c0c6b9f | 16916 | |
4c0c6b9f | 16917 | |
4c0c6b9f | 16918 | |
868d75db | 16919 | |
868d75db | 16920 | |
868d75db | 16921 | |
868d75db | 16922 | |
4c0c6b9f | 16923 | |
4c0c6b9f | 16924 | |
4c0c6b9f | 16925 | |
4c0c6b9f | 16926 | |
6422c112 | 16927 | |
6422c112 | 16928 | |
6422c112 | 16929 | |
74544378 JB |
16930 | |
16931 | ||
16932 | ||
16933 | ||
16934 | ||
16935 | ||
16936 | ||
16937 | ||
16938 | ||
16939 | ||
16940 | ||
16941 | ||
16942 | ||
16943 | ||
16944 | ||
16945 | ||
16946 | ||
16947 | ||
16948 | ||
16949 | ||
16950 | ||
16951 | ||
16952 | ||
16953 | ||
16954 | ||
16955 | ||
16956 | ||
16957 | ||
16958 | ||
16959 | ||
16960 | ||
16961 | ||
16962 | ||
16963 | ||
16964 | ||
16965 | ||
16966 | ||
16967 | ||
16968 | ||
16969 | ||
16970 | ||
16971 | ||
16972 | ||
16973 | ||
16974 | ||
16975 | ||
16976 | ||
16977 | ||
16978 | ||
16979 | ||
16980 | ||
16981 | ||
16982 | ||
16983 | ||
16984 | ||
16985 | ||
68ee9c08 | 16986 | |
227e441f | 16987 | |
9cbecd06 JB |
16988 | |
16989 | ||
4269f19c JB |
16990 | |
16991 | ||
b5b58343 UW |
16992 | |
16993 | ||
70480968 JB |
16994 | |
16995 | ||
d66d6d15 JB |
16996 | |
16997 | ||
edaaef60 JB |
16998 | |
16999 | ||
ef536b41 JB |
17000 | |
17001 | ||
17002 | ||
17003 | ||
f8886038 JB |
17004 | |
17005 | ||
227e441f | 17006 | |
8ecd1c0d TB |
17007 | |
17008 | ||
b4005c71 | 17009 | fi |
74544378 | 17010 | |
4179e59a TB |
17011 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
17012 | ||
17013 | ac_save_CFLAGS="$CFLAGS" | |
17014 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17016 | /* end confdefs.h. */ | |
17017 | #define _GNU_SOURCE 1 | |
17018 | #include <string.h> | |
17019 | #include <locale.h> | |
17020 | int | |
17021 | main () | |
17022 | { | |
17023 | char s[128]; strerror_r(5, s, 128); | |
17024 | ; | |
17025 | return 0; | |
17026 | } | |
17027 | _ACEOF | |
17028 | if ac_fn_c_try_compile "$LINENO"; then : | |
17029 | ||
17030 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17031 | ||
17032 | fi | |
17033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17034 | CFLAGS="$ac_save_CFLAGS" | |
17035 | ||
17036 | ac_save_CFLAGS="$CFLAGS" | |
17037 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17039 | /* end confdefs.h. */ | |
17040 | #define _GNU_SOURCE 1 | |
17041 | #include <string.h> | |
17042 | #include <locale.h> | |
17043 | int | |
17044 | main () | |
17045 | { | |
17046 | char s[128]; strerror_r(5, s); | |
17047 | ; | |
17048 | return 0; | |
17049 | } | |
17050 | _ACEOF | |
17051 | if ac_fn_c_try_compile "$LINENO"; then : | |
17052 | ||
17053 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17054 | ||
17055 | fi | |
17056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17057 | CFLAGS="$ac_save_CFLAGS" | |
6422c112 | 17058 | |
4c0c6b9f | 17059 | |
453310d8 | 17060 | # Check for C99 (and other IEEE) math functions |
db9f46a9 TG |
17061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17062 | $as_echo_n "checking for sin in -lm... " >&6; } | |
22e05272 | 17063 | if ${ac_cv_lib_m_sin+:} false; then : |
5213506e | 17064 | $as_echo_n "(cached) " >&6 |
453310d8 RS |
17065 | else |
17066 | ac_check_lib_save_LIBS=$LIBS | |
17067 | LIBS="-lm $LIBS" | |
f02d008e | 17068 | if test x$gcc_no_link = xyes; then |
22e05272 | 17069 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17070 | fi |
5213506e | 17071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17072 | /* end confdefs.h. */ |
17073 | ||
5213506e RW |
17074 | /* Override any GCC internal prototype to avoid an error. |
17075 | Use char because int might match the return type of a GCC | |
17076 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
17077 | #ifdef __cplusplus |
17078 | extern "C" | |
17079 | #endif | |
db9f46a9 | 17080 | char sin (); |
453310d8 RS |
17081 | int |
17082 | main () | |
17083 | { | |
db9f46a9 | 17084 | return sin (); |
453310d8 RS |
17085 | ; |
17086 | return 0; | |
17087 | } | |
17088 | _ACEOF | |
5213506e | 17089 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17090 | ac_cv_lib_m_sin=yes |
453310d8 | 17091 | else |
db9f46a9 | 17092 | ac_cv_lib_m_sin=no |
453310d8 | 17093 | fi |
5213506e RW |
17094 | rm -f core conftest.err conftest.$ac_objext \ |
17095 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 RS |
17096 | LIBS=$ac_check_lib_save_LIBS |
17097 | fi | |
db9f46a9 TG |
17098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17099 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
22e05272 | 17100 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
db9f46a9 TG |
17101 | cat >>confdefs.h <<_ACEOF |
17102 | #define HAVE_LIBM 1 | |
17103 | _ACEOF | |
453310d8 | 17104 | |
db9f46a9 | 17105 | LIBS="-lm $LIBS" |
453310d8 RS |
17106 | |
17107 | fi | |
17108 | ||
db9f46a9 TG |
17109 | |
17110 | ||
17111 | ||
17112 | ||
17113 | ||
17114 | ||
17115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17116 | $as_echo_n "checking for acosf... " >&6; } | |
22e05272 | 17117 | if ${gcc_cv_math_func_acosf+:} false; then : |
5213506e | 17118 | $as_echo_n "(cached) " >&6 |
f02d008e | 17119 | else |
db9f46a9 | 17120 | if test x$gcc_no_link = xyes; then |
22e05272 | 17121 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17122 | fi |
5213506e | 17123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17124 | /* end confdefs.h. */ |
17125 | ||
db9f46a9 TG |
17126 | #ifdef HAVE_COMPLEX_H |
17127 | #include <complex.h> | |
17128 | #endif | |
17129 | #ifdef HAVE_MATH_H | |
17130 | #include <math.h> | |
f02d008e | 17131 | #endif |
db9f46a9 TG |
17132 | |
17133 | int (*ptr)() = (int (*)())acosf; | |
17134 | ||
f02d008e JD |
17135 | int |
17136 | main () | |
17137 | { | |
f02d008e JD |
17138 | return 0; |
17139 | } | |
db9f46a9 | 17140 | |
f02d008e | 17141 | _ACEOF |
5213506e | 17142 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17143 | gcc_cv_math_func_acosf=yes |
f02d008e | 17144 | else |
db9f46a9 | 17145 | gcc_cv_math_func_acosf=no |
f02d008e | 17146 | fi |
5213506e RW |
17147 | rm -f core conftest.err conftest.$ac_objext \ |
17148 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17149 | fi |
db9f46a9 TG |
17150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17151 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17152 | if test $gcc_cv_math_func_acosf = yes; then | |
f1cdfa01 | 17153 | |
f38a14ca TG |
17154 | cat >>confdefs.h <<_ACEOF |
17155 | #define HAVE_ACOSF 1 | |
17156 | _ACEOF | |
db9f46a9 TG |
17157 | |
17158 | fi | |
f02d008e | 17159 | |
f02d008e | 17160 | |
f02d008e | 17161 | |
db9f46a9 TG |
17162 | |
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17164 | $as_echo_n "checking for acos... " >&6; } | |
22e05272 | 17165 | if ${gcc_cv_math_func_acos+:} false; then : |
5213506e | 17166 | $as_echo_n "(cached) " >&6 |
453310d8 | 17167 | else |
db9f46a9 | 17168 | if test x$gcc_no_link = xyes; then |
22e05272 | 17169 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17170 | fi |
5213506e | 17171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17172 | /* end confdefs.h. */ |
17173 | ||
db9f46a9 TG |
17174 | #ifdef HAVE_COMPLEX_H |
17175 | #include <complex.h> | |
453310d8 | 17176 | #endif |
db9f46a9 TG |
17177 | #ifdef HAVE_MATH_H |
17178 | #include <math.h> | |
17179 | #endif | |
17180 | ||
17181 | int (*ptr)() = (int (*)())acos; | |
17182 | ||
453310d8 RS |
17183 | int |
17184 | main () | |
17185 | { | |
453310d8 RS |
17186 | return 0; |
17187 | } | |
db9f46a9 | 17188 | |
453310d8 | 17189 | _ACEOF |
5213506e | 17190 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17191 | gcc_cv_math_func_acos=yes |
453310d8 | 17192 | else |
db9f46a9 | 17193 | gcc_cv_math_func_acos=no |
453310d8 | 17194 | fi |
5213506e RW |
17195 | rm -f core conftest.err conftest.$ac_objext \ |
17196 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17197 | fi |
db9f46a9 TG |
17198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17199 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17200 | if test $gcc_cv_math_func_acos = yes; then | |
f1cdfa01 | 17201 | |
f38a14ca TG |
17202 | cat >>confdefs.h <<_ACEOF |
17203 | #define HAVE_ACOS 1 | |
17204 | _ACEOF | |
db9f46a9 TG |
17205 | |
17206 | fi | |
17207 | ||
453310d8 | 17208 | |
453310d8 | 17209 | |
453310d8 | 17210 | |
db9f46a9 TG |
17211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17212 | $as_echo_n "checking for acosl... " >&6; } | |
22e05272 | 17213 | if ${gcc_cv_math_func_acosl+:} false; then : |
5213506e | 17214 | $as_echo_n "(cached) " >&6 |
f02d008e | 17215 | else |
db9f46a9 | 17216 | if test x$gcc_no_link = xyes; then |
22e05272 | 17217 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17218 | fi |
5213506e | 17219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17220 | /* end confdefs.h. */ |
17221 | ||
db9f46a9 TG |
17222 | #ifdef HAVE_COMPLEX_H |
17223 | #include <complex.h> | |
17224 | #endif | |
17225 | #ifdef HAVE_MATH_H | |
17226 | #include <math.h> | |
f02d008e | 17227 | #endif |
db9f46a9 TG |
17228 | |
17229 | int (*ptr)() = (int (*)())acosl; | |
17230 | ||
f02d008e JD |
17231 | int |
17232 | main () | |
17233 | { | |
f02d008e JD |
17234 | return 0; |
17235 | } | |
db9f46a9 | 17236 | |
f02d008e | 17237 | _ACEOF |
5213506e | 17238 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17239 | gcc_cv_math_func_acosl=yes |
f02d008e | 17240 | else |
db9f46a9 | 17241 | gcc_cv_math_func_acosl=no |
f02d008e | 17242 | fi |
5213506e RW |
17243 | rm -f core conftest.err conftest.$ac_objext \ |
17244 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17245 | fi |
db9f46a9 TG |
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17247 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17248 | if test $gcc_cv_math_func_acosl = yes; then | |
f1cdfa01 | 17249 | |
f38a14ca TG |
17250 | cat >>confdefs.h <<_ACEOF |
17251 | #define HAVE_ACOSL 1 | |
17252 | _ACEOF | |
db9f46a9 TG |
17253 | |
17254 | fi | |
f02d008e | 17255 | |
f02d008e | 17256 | |
f02d008e | 17257 | |
db9f46a9 TG |
17258 | |
17259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17260 | $as_echo_n "checking for acoshf... " >&6; } | |
22e05272 | 17261 | if ${gcc_cv_math_func_acoshf+:} false; then : |
5213506e | 17262 | $as_echo_n "(cached) " >&6 |
453310d8 | 17263 | else |
db9f46a9 | 17264 | if test x$gcc_no_link = xyes; then |
22e05272 | 17265 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17266 | fi |
5213506e | 17267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17268 | /* end confdefs.h. */ |
17269 | ||
db9f46a9 TG |
17270 | #ifdef HAVE_COMPLEX_H |
17271 | #include <complex.h> | |
453310d8 | 17272 | #endif |
db9f46a9 TG |
17273 | #ifdef HAVE_MATH_H |
17274 | #include <math.h> | |
17275 | #endif | |
17276 | ||
17277 | int (*ptr)() = (int (*)())acoshf; | |
17278 | ||
453310d8 RS |
17279 | int |
17280 | main () | |
17281 | { | |
453310d8 RS |
17282 | return 0; |
17283 | } | |
db9f46a9 | 17284 | |
453310d8 | 17285 | _ACEOF |
5213506e | 17286 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17287 | gcc_cv_math_func_acoshf=yes |
453310d8 | 17288 | else |
db9f46a9 | 17289 | gcc_cv_math_func_acoshf=no |
453310d8 | 17290 | fi |
5213506e RW |
17291 | rm -f core conftest.err conftest.$ac_objext \ |
17292 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17293 | fi |
db9f46a9 TG |
17294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17295 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17296 | if test $gcc_cv_math_func_acoshf = yes; then | |
f1cdfa01 | 17297 | |
f38a14ca TG |
17298 | cat >>confdefs.h <<_ACEOF |
17299 | #define HAVE_ACOSHF 1 | |
17300 | _ACEOF | |
453310d8 | 17301 | |
db9f46a9 | 17302 | fi |
453310d8 | 17303 | |
453310d8 | 17304 | |
db9f46a9 TG |
17305 | |
17306 | ||
17307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17308 | $as_echo_n "checking for acosh... " >&6; } | |
22e05272 | 17309 | if ${gcc_cv_math_func_acosh+:} false; then : |
5213506e | 17310 | $as_echo_n "(cached) " >&6 |
453310d8 | 17311 | else |
db9f46a9 | 17312 | if test x$gcc_no_link = xyes; then |
22e05272 | 17313 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17314 | fi |
5213506e | 17315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17316 | /* end confdefs.h. */ |
17317 | ||
db9f46a9 TG |
17318 | #ifdef HAVE_COMPLEX_H |
17319 | #include <complex.h> | |
17320 | #endif | |
17321 | #ifdef HAVE_MATH_H | |
17322 | #include <math.h> | |
453310d8 | 17323 | #endif |
db9f46a9 TG |
17324 | |
17325 | int (*ptr)() = (int (*)())acosh; | |
17326 | ||
453310d8 RS |
17327 | int |
17328 | main () | |
17329 | { | |
5213506e RW |
17330 | return 0; |
17331 | } | |
db9f46a9 | 17332 | |
5213506e RW |
17333 | _ACEOF |
17334 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 17335 | gcc_cv_math_func_acosh=yes |
453310d8 | 17336 | else |
db9f46a9 | 17337 | gcc_cv_math_func_acosh=no |
453310d8 | 17338 | fi |
5213506e RW |
17339 | rm -f core conftest.err conftest.$ac_objext \ |
17340 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17341 | fi |
db9f46a9 TG |
17342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17343 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17344 | if test $gcc_cv_math_func_acosh = yes; then | |
f1cdfa01 | 17345 | |
f38a14ca TG |
17346 | cat >>confdefs.h <<_ACEOF |
17347 | #define HAVE_ACOSH 1 | |
17348 | _ACEOF | |
db9f46a9 TG |
17349 | |
17350 | fi | |
453310d8 | 17351 | |
453310d8 | 17352 | |
453310d8 | 17353 | |
db9f46a9 TG |
17354 | |
17355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17356 | $as_echo_n "checking for acoshl... " >&6; } | |
22e05272 | 17357 | if ${gcc_cv_math_func_acoshl+:} false; then : |
5213506e | 17358 | $as_echo_n "(cached) " >&6 |
f02d008e | 17359 | else |
db9f46a9 | 17360 | if test x$gcc_no_link = xyes; then |
22e05272 | 17361 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17362 | fi |
5213506e | 17363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17364 | /* end confdefs.h. */ |
17365 | ||
db9f46a9 TG |
17366 | #ifdef HAVE_COMPLEX_H |
17367 | #include <complex.h> | |
f02d008e | 17368 | #endif |
db9f46a9 TG |
17369 | #ifdef HAVE_MATH_H |
17370 | #include <math.h> | |
17371 | #endif | |
17372 | ||
17373 | int (*ptr)() = (int (*)())acoshl; | |
17374 | ||
f02d008e JD |
17375 | int |
17376 | main () | |
17377 | { | |
f02d008e JD |
17378 | return 0; |
17379 | } | |
db9f46a9 | 17380 | |
f02d008e | 17381 | _ACEOF |
5213506e | 17382 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17383 | gcc_cv_math_func_acoshl=yes |
f02d008e | 17384 | else |
db9f46a9 | 17385 | gcc_cv_math_func_acoshl=no |
f02d008e | 17386 | fi |
5213506e RW |
17387 | rm -f core conftest.err conftest.$ac_objext \ |
17388 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17389 | fi |
db9f46a9 TG |
17390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17391 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17392 | if test $gcc_cv_math_func_acoshl = yes; then | |
f1cdfa01 | 17393 | |
f38a14ca TG |
17394 | cat >>confdefs.h <<_ACEOF |
17395 | #define HAVE_ACOSHL 1 | |
17396 | _ACEOF | |
db9f46a9 TG |
17397 | |
17398 | fi | |
17399 | ||
f02d008e | 17400 | |
f02d008e | 17401 | |
f02d008e | 17402 | |
db9f46a9 TG |
17403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17404 | $as_echo_n "checking for asinf... " >&6; } | |
22e05272 | 17405 | if ${gcc_cv_math_func_asinf+:} false; then : |
5213506e | 17406 | $as_echo_n "(cached) " >&6 |
453310d8 | 17407 | else |
db9f46a9 | 17408 | if test x$gcc_no_link = xyes; then |
22e05272 | 17409 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17410 | fi |
5213506e | 17411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17412 | /* end confdefs.h. */ |
17413 | ||
db9f46a9 TG |
17414 | #ifdef HAVE_COMPLEX_H |
17415 | #include <complex.h> | |
17416 | #endif | |
17417 | #ifdef HAVE_MATH_H | |
17418 | #include <math.h> | |
453310d8 | 17419 | #endif |
db9f46a9 TG |
17420 | |
17421 | int (*ptr)() = (int (*)())asinf; | |
17422 | ||
453310d8 RS |
17423 | int |
17424 | main () | |
17425 | { | |
453310d8 RS |
17426 | return 0; |
17427 | } | |
db9f46a9 | 17428 | |
453310d8 | 17429 | _ACEOF |
5213506e | 17430 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17431 | gcc_cv_math_func_asinf=yes |
453310d8 | 17432 | else |
db9f46a9 | 17433 | gcc_cv_math_func_asinf=no |
453310d8 | 17434 | fi |
5213506e RW |
17435 | rm -f core conftest.err conftest.$ac_objext \ |
17436 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17437 | fi |
db9f46a9 TG |
17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17439 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17440 | if test $gcc_cv_math_func_asinf = yes; then | |
f1cdfa01 | 17441 | |
f38a14ca TG |
17442 | cat >>confdefs.h <<_ACEOF |
17443 | #define HAVE_ASINF 1 | |
17444 | _ACEOF | |
db9f46a9 TG |
17445 | |
17446 | fi | |
453310d8 | 17447 | |
453310d8 | 17448 | |
453310d8 | 17449 | |
db9f46a9 TG |
17450 | |
17451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17452 | $as_echo_n "checking for asin... " >&6; } | |
22e05272 | 17453 | if ${gcc_cv_math_func_asin+:} false; then : |
5213506e | 17454 | $as_echo_n "(cached) " >&6 |
453310d8 | 17455 | else |
db9f46a9 | 17456 | if test x$gcc_no_link = xyes; then |
22e05272 | 17457 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17458 | fi |
5213506e | 17459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17460 | /* end confdefs.h. */ |
17461 | ||
db9f46a9 TG |
17462 | #ifdef HAVE_COMPLEX_H |
17463 | #include <complex.h> | |
453310d8 | 17464 | #endif |
db9f46a9 TG |
17465 | #ifdef HAVE_MATH_H |
17466 | #include <math.h> | |
17467 | #endif | |
17468 | ||
17469 | int (*ptr)() = (int (*)())asin; | |
17470 | ||
453310d8 RS |
17471 | int |
17472 | main () | |
17473 | { | |
453310d8 RS |
17474 | return 0; |
17475 | } | |
db9f46a9 | 17476 | |
453310d8 | 17477 | _ACEOF |
5213506e | 17478 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17479 | gcc_cv_math_func_asin=yes |
453310d8 | 17480 | else |
db9f46a9 | 17481 | gcc_cv_math_func_asin=no |
453310d8 | 17482 | fi |
5213506e RW |
17483 | rm -f core conftest.err conftest.$ac_objext \ |
17484 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17485 | fi |
db9f46a9 TG |
17486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17487 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17488 | if test $gcc_cv_math_func_asin = yes; then | |
f1cdfa01 | 17489 | |
f38a14ca TG |
17490 | cat >>confdefs.h <<_ACEOF |
17491 | #define HAVE_ASIN 1 | |
17492 | _ACEOF | |
453310d8 | 17493 | |
db9f46a9 | 17494 | fi |
453310d8 | 17495 | |
453310d8 | 17496 | |
db9f46a9 TG |
17497 | |
17498 | ||
17499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17500 | $as_echo_n "checking for asinl... " >&6; } | |
22e05272 | 17501 | if ${gcc_cv_math_func_asinl+:} false; then : |
5213506e | 17502 | $as_echo_n "(cached) " >&6 |
453310d8 | 17503 | else |
db9f46a9 | 17504 | if test x$gcc_no_link = xyes; then |
22e05272 | 17505 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17506 | fi |
5213506e | 17507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17508 | /* end confdefs.h. */ |
17509 | ||
db9f46a9 TG |
17510 | #ifdef HAVE_COMPLEX_H |
17511 | #include <complex.h> | |
17512 | #endif | |
17513 | #ifdef HAVE_MATH_H | |
17514 | #include <math.h> | |
453310d8 | 17515 | #endif |
db9f46a9 TG |
17516 | |
17517 | int (*ptr)() = (int (*)())asinl; | |
17518 | ||
453310d8 RS |
17519 | int |
17520 | main () | |
17521 | { | |
453310d8 RS |
17522 | return 0; |
17523 | } | |
db9f46a9 | 17524 | |
453310d8 | 17525 | _ACEOF |
5213506e | 17526 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17527 | gcc_cv_math_func_asinl=yes |
453310d8 | 17528 | else |
db9f46a9 | 17529 | gcc_cv_math_func_asinl=no |
453310d8 | 17530 | fi |
5213506e RW |
17531 | rm -f core conftest.err conftest.$ac_objext \ |
17532 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17533 | fi |
db9f46a9 TG |
17534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17535 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17536 | if test $gcc_cv_math_func_asinl = yes; then | |
f1cdfa01 | 17537 | |
f38a14ca TG |
17538 | cat >>confdefs.h <<_ACEOF |
17539 | #define HAVE_ASINL 1 | |
17540 | _ACEOF | |
db9f46a9 TG |
17541 | |
17542 | fi | |
453310d8 | 17543 | |
453310d8 | 17544 | |
453310d8 | 17545 | |
db9f46a9 TG |
17546 | |
17547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17548 | $as_echo_n "checking for asinhf... " >&6; } | |
22e05272 | 17549 | if ${gcc_cv_math_func_asinhf+:} false; then : |
5213506e | 17550 | $as_echo_n "(cached) " >&6 |
453310d8 | 17551 | else |
db9f46a9 | 17552 | if test x$gcc_no_link = xyes; then |
22e05272 | 17553 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17554 | fi |
5213506e | 17555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17556 | /* end confdefs.h. */ |
17557 | ||
db9f46a9 TG |
17558 | #ifdef HAVE_COMPLEX_H |
17559 | #include <complex.h> | |
453310d8 | 17560 | #endif |
db9f46a9 TG |
17561 | #ifdef HAVE_MATH_H |
17562 | #include <math.h> | |
17563 | #endif | |
17564 | ||
17565 | int (*ptr)() = (int (*)())asinhf; | |
17566 | ||
453310d8 RS |
17567 | int |
17568 | main () | |
17569 | { | |
453310d8 RS |
17570 | return 0; |
17571 | } | |
db9f46a9 | 17572 | |
453310d8 | 17573 | _ACEOF |
5213506e | 17574 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17575 | gcc_cv_math_func_asinhf=yes |
453310d8 | 17576 | else |
db9f46a9 | 17577 | gcc_cv_math_func_asinhf=no |
453310d8 | 17578 | fi |
5213506e RW |
17579 | rm -f core conftest.err conftest.$ac_objext \ |
17580 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17581 | fi |
db9f46a9 TG |
17582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17583 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17584 | if test $gcc_cv_math_func_asinhf = yes; then | |
f1cdfa01 | 17585 | |
f38a14ca TG |
17586 | cat >>confdefs.h <<_ACEOF |
17587 | #define HAVE_ASINHF 1 | |
17588 | _ACEOF | |
db9f46a9 TG |
17589 | |
17590 | fi | |
17591 | ||
453310d8 | 17592 | |
453310d8 | 17593 | |
453310d8 | 17594 | |
db9f46a9 TG |
17595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17596 | $as_echo_n "checking for asinh... " >&6; } | |
22e05272 | 17597 | if ${gcc_cv_math_func_asinh+:} false; then : |
5213506e | 17598 | $as_echo_n "(cached) " >&6 |
453310d8 | 17599 | else |
db9f46a9 | 17600 | if test x$gcc_no_link = xyes; then |
22e05272 | 17601 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17602 | fi |
5213506e | 17603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17604 | /* end confdefs.h. */ |
17605 | ||
db9f46a9 TG |
17606 | #ifdef HAVE_COMPLEX_H |
17607 | #include <complex.h> | |
17608 | #endif | |
17609 | #ifdef HAVE_MATH_H | |
17610 | #include <math.h> | |
453310d8 | 17611 | #endif |
db9f46a9 TG |
17612 | |
17613 | int (*ptr)() = (int (*)())asinh; | |
17614 | ||
453310d8 RS |
17615 | int |
17616 | main () | |
17617 | { | |
453310d8 RS |
17618 | return 0; |
17619 | } | |
db9f46a9 | 17620 | |
453310d8 | 17621 | _ACEOF |
5213506e | 17622 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17623 | gcc_cv_math_func_asinh=yes |
453310d8 | 17624 | else |
db9f46a9 | 17625 | gcc_cv_math_func_asinh=no |
453310d8 | 17626 | fi |
5213506e RW |
17627 | rm -f core conftest.err conftest.$ac_objext \ |
17628 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17629 | fi |
db9f46a9 TG |
17630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17631 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17632 | if test $gcc_cv_math_func_asinh = yes; then | |
f1cdfa01 | 17633 | |
f38a14ca TG |
17634 | cat >>confdefs.h <<_ACEOF |
17635 | #define HAVE_ASINH 1 | |
17636 | _ACEOF | |
db9f46a9 TG |
17637 | |
17638 | fi | |
453310d8 | 17639 | |
453310d8 | 17640 | |
453310d8 | 17641 | |
db9f46a9 TG |
17642 | |
17643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17644 | $as_echo_n "checking for asinhl... " >&6; } | |
22e05272 | 17645 | if ${gcc_cv_math_func_asinhl+:} false; then : |
5213506e | 17646 | $as_echo_n "(cached) " >&6 |
6e4d9244 | 17647 | else |
db9f46a9 | 17648 | if test x$gcc_no_link = xyes; then |
22e05272 | 17649 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17650 | fi |
5213506e | 17651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6e4d9244 EB |
17652 | /* end confdefs.h. */ |
17653 | ||
db9f46a9 TG |
17654 | #ifdef HAVE_COMPLEX_H |
17655 | #include <complex.h> | |
6e4d9244 | 17656 | #endif |
db9f46a9 TG |
17657 | #ifdef HAVE_MATH_H |
17658 | #include <math.h> | |
17659 | #endif | |
17660 | ||
17661 | int (*ptr)() = (int (*)())asinhl; | |
17662 | ||
6e4d9244 EB |
17663 | int |
17664 | main () | |
17665 | { | |
6e4d9244 EB |
17666 | return 0; |
17667 | } | |
db9f46a9 | 17668 | |
6e4d9244 | 17669 | _ACEOF |
5213506e | 17670 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17671 | gcc_cv_math_func_asinhl=yes |
6e4d9244 | 17672 | else |
db9f46a9 | 17673 | gcc_cv_math_func_asinhl=no |
6e4d9244 | 17674 | fi |
5213506e RW |
17675 | rm -f core conftest.err conftest.$ac_objext \ |
17676 | conftest$ac_exeext conftest.$ac_ext | |
6e4d9244 | 17677 | fi |
db9f46a9 TG |
17678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17679 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17680 | if test $gcc_cv_math_func_asinhl = yes; then | |
f1cdfa01 | 17681 | |
f38a14ca TG |
17682 | cat >>confdefs.h <<_ACEOF |
17683 | #define HAVE_ASINHL 1 | |
17684 | _ACEOF | |
6e4d9244 | 17685 | |
db9f46a9 | 17686 | fi |
6e4d9244 | 17687 | |
6e4d9244 | 17688 | |
db9f46a9 TG |
17689 | |
17690 | ||
17691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17692 | $as_echo_n "checking for atan2f... " >&6; } | |
22e05272 | 17693 | if ${gcc_cv_math_func_atan2f+:} false; then : |
5213506e | 17694 | $as_echo_n "(cached) " >&6 |
453310d8 | 17695 | else |
db9f46a9 | 17696 | if test x$gcc_no_link = xyes; then |
22e05272 | 17697 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17698 | fi |
5213506e | 17699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17700 | /* end confdefs.h. */ |
17701 | ||
db9f46a9 TG |
17702 | #ifdef HAVE_COMPLEX_H |
17703 | #include <complex.h> | |
453310d8 | 17704 | #endif |
db9f46a9 TG |
17705 | #ifdef HAVE_MATH_H |
17706 | #include <math.h> | |
17707 | #endif | |
17708 | ||
17709 | int (*ptr)() = (int (*)())atan2f; | |
17710 | ||
17711 | int | |
453310d8 RS |
17712 | main () |
17713 | { | |
453310d8 RS |
17714 | return 0; |
17715 | } | |
db9f46a9 | 17716 | |
453310d8 | 17717 | _ACEOF |
5213506e | 17718 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17719 | gcc_cv_math_func_atan2f=yes |
453310d8 | 17720 | else |
db9f46a9 | 17721 | gcc_cv_math_func_atan2f=no |
453310d8 | 17722 | fi |
5213506e RW |
17723 | rm -f core conftest.err conftest.$ac_objext \ |
17724 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17725 | fi |
db9f46a9 TG |
17726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17727 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17728 | if test $gcc_cv_math_func_atan2f = yes; then | |
f1cdfa01 | 17729 | |
f38a14ca TG |
17730 | cat >>confdefs.h <<_ACEOF |
17731 | #define HAVE_ATAN2F 1 | |
17732 | _ACEOF | |
db9f46a9 TG |
17733 | |
17734 | fi | |
453310d8 | 17735 | |
453310d8 | 17736 | |
453310d8 | 17737 | |
db9f46a9 TG |
17738 | |
17739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17740 | $as_echo_n "checking for atan2... " >&6; } | |
22e05272 | 17741 | if ${gcc_cv_math_func_atan2+:} false; then : |
5213506e | 17742 | $as_echo_n "(cached) " >&6 |
453310d8 | 17743 | else |
db9f46a9 | 17744 | if test x$gcc_no_link = xyes; then |
22e05272 | 17745 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17746 | fi |
5213506e | 17747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17748 | /* end confdefs.h. */ |
17749 | ||
db9f46a9 TG |
17750 | #ifdef HAVE_COMPLEX_H |
17751 | #include <complex.h> | |
453310d8 | 17752 | #endif |
db9f46a9 TG |
17753 | #ifdef HAVE_MATH_H |
17754 | #include <math.h> | |
17755 | #endif | |
17756 | ||
17757 | int (*ptr)() = (int (*)())atan2; | |
17758 | ||
453310d8 RS |
17759 | int |
17760 | main () | |
17761 | { | |
453310d8 RS |
17762 | return 0; |
17763 | } | |
db9f46a9 | 17764 | |
453310d8 | 17765 | _ACEOF |
5213506e | 17766 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17767 | gcc_cv_math_func_atan2=yes |
453310d8 | 17768 | else |
db9f46a9 | 17769 | gcc_cv_math_func_atan2=no |
453310d8 | 17770 | fi |
5213506e RW |
17771 | rm -f core conftest.err conftest.$ac_objext \ |
17772 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17773 | fi |
db9f46a9 TG |
17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17775 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17776 | if test $gcc_cv_math_func_atan2 = yes; then | |
f1cdfa01 | 17777 | |
f38a14ca TG |
17778 | cat >>confdefs.h <<_ACEOF |
17779 | #define HAVE_ATAN2 1 | |
17780 | _ACEOF | |
453310d8 | 17781 | |
db9f46a9 | 17782 | fi |
453310d8 | 17783 | |
453310d8 | 17784 | |
db9f46a9 TG |
17785 | |
17786 | ||
17787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17788 | $as_echo_n "checking for atan2l... " >&6; } | |
22e05272 | 17789 | if ${gcc_cv_math_func_atan2l+:} false; then : |
5213506e | 17790 | $as_echo_n "(cached) " >&6 |
453310d8 | 17791 | else |
db9f46a9 | 17792 | if test x$gcc_no_link = xyes; then |
22e05272 | 17793 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17794 | fi |
5213506e | 17795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17796 | /* end confdefs.h. */ |
17797 | ||
db9f46a9 TG |
17798 | #ifdef HAVE_COMPLEX_H |
17799 | #include <complex.h> | |
17800 | #endif | |
17801 | #ifdef HAVE_MATH_H | |
17802 | #include <math.h> | |
453310d8 | 17803 | #endif |
db9f46a9 TG |
17804 | |
17805 | int (*ptr)() = (int (*)())atan2l; | |
17806 | ||
453310d8 RS |
17807 | int |
17808 | main () | |
17809 | { | |
453310d8 RS |
17810 | return 0; |
17811 | } | |
db9f46a9 | 17812 | |
453310d8 | 17813 | _ACEOF |
5213506e | 17814 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17815 | gcc_cv_math_func_atan2l=yes |
453310d8 | 17816 | else |
db9f46a9 | 17817 | gcc_cv_math_func_atan2l=no |
453310d8 | 17818 | fi |
5213506e RW |
17819 | rm -f core conftest.err conftest.$ac_objext \ |
17820 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17821 | fi |
db9f46a9 TG |
17822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
17823 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
17824 | if test $gcc_cv_math_func_atan2l = yes; then | |
f1cdfa01 | 17825 | |
f38a14ca TG |
17826 | cat >>confdefs.h <<_ACEOF |
17827 | #define HAVE_ATAN2L 1 | |
17828 | _ACEOF | |
db9f46a9 TG |
17829 | |
17830 | fi | |
453310d8 | 17831 | |
453310d8 | 17832 | |
453310d8 | 17833 | |
db9f46a9 TG |
17834 | |
17835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
17836 | $as_echo_n "checking for atanf... " >&6; } | |
22e05272 | 17837 | if ${gcc_cv_math_func_atanf+:} false; then : |
5213506e | 17838 | $as_echo_n "(cached) " >&6 |
453310d8 | 17839 | else |
db9f46a9 | 17840 | if test x$gcc_no_link = xyes; then |
22e05272 | 17841 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17842 | fi |
5213506e | 17843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17844 | /* end confdefs.h. */ |
17845 | ||
db9f46a9 TG |
17846 | #ifdef HAVE_COMPLEX_H |
17847 | #include <complex.h> | |
453310d8 | 17848 | #endif |
db9f46a9 TG |
17849 | #ifdef HAVE_MATH_H |
17850 | #include <math.h> | |
17851 | #endif | |
17852 | ||
17853 | int (*ptr)() = (int (*)())atanf; | |
17854 | ||
453310d8 RS |
17855 | int |
17856 | main () | |
17857 | { | |
453310d8 RS |
17858 | return 0; |
17859 | } | |
db9f46a9 | 17860 | |
453310d8 | 17861 | _ACEOF |
5213506e | 17862 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17863 | gcc_cv_math_func_atanf=yes |
453310d8 | 17864 | else |
db9f46a9 | 17865 | gcc_cv_math_func_atanf=no |
453310d8 | 17866 | fi |
5213506e RW |
17867 | rm -f core conftest.err conftest.$ac_objext \ |
17868 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17869 | fi |
db9f46a9 TG |
17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
17871 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
17872 | if test $gcc_cv_math_func_atanf = yes; then | |
f1cdfa01 | 17873 | |
f38a14ca TG |
17874 | cat >>confdefs.h <<_ACEOF |
17875 | #define HAVE_ATANF 1 | |
17876 | _ACEOF | |
db9f46a9 TG |
17877 | |
17878 | fi | |
17879 | ||
453310d8 | 17880 | |
453310d8 | 17881 | |
453310d8 | 17882 | |
db9f46a9 TG |
17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
17884 | $as_echo_n "checking for atan... " >&6; } | |
22e05272 | 17885 | if ${gcc_cv_math_func_atan+:} false; then : |
5213506e | 17886 | $as_echo_n "(cached) " >&6 |
453310d8 | 17887 | else |
db9f46a9 | 17888 | if test x$gcc_no_link = xyes; then |
22e05272 | 17889 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17890 | fi |
5213506e | 17891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17892 | /* end confdefs.h. */ |
17893 | ||
db9f46a9 TG |
17894 | #ifdef HAVE_COMPLEX_H |
17895 | #include <complex.h> | |
17896 | #endif | |
17897 | #ifdef HAVE_MATH_H | |
17898 | #include <math.h> | |
453310d8 | 17899 | #endif |
db9f46a9 TG |
17900 | |
17901 | int (*ptr)() = (int (*)())atan; | |
17902 | ||
453310d8 RS |
17903 | int |
17904 | main () | |
17905 | { | |
453310d8 RS |
17906 | return 0; |
17907 | } | |
db9f46a9 | 17908 | |
453310d8 | 17909 | _ACEOF |
5213506e | 17910 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17911 | gcc_cv_math_func_atan=yes |
453310d8 | 17912 | else |
db9f46a9 | 17913 | gcc_cv_math_func_atan=no |
453310d8 | 17914 | fi |
5213506e RW |
17915 | rm -f core conftest.err conftest.$ac_objext \ |
17916 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17917 | fi |
db9f46a9 TG |
17918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
17919 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
17920 | if test $gcc_cv_math_func_atan = yes; then | |
f1cdfa01 | 17921 | |
f38a14ca TG |
17922 | cat >>confdefs.h <<_ACEOF |
17923 | #define HAVE_ATAN 1 | |
17924 | _ACEOF | |
db9f46a9 TG |
17925 | |
17926 | fi | |
453310d8 | 17927 | |
453310d8 | 17928 | |
453310d8 | 17929 | |
db9f46a9 TG |
17930 | |
17931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
17932 | $as_echo_n "checking for atanl... " >&6; } | |
22e05272 | 17933 | if ${gcc_cv_math_func_atanl+:} false; then : |
5213506e | 17934 | $as_echo_n "(cached) " >&6 |
32aa3bff | 17935 | else |
db9f46a9 | 17936 | if test x$gcc_no_link = xyes; then |
22e05272 | 17937 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17938 | fi |
5213506e | 17939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32aa3bff FXC |
17940 | /* end confdefs.h. */ |
17941 | ||
db9f46a9 TG |
17942 | #ifdef HAVE_COMPLEX_H |
17943 | #include <complex.h> | |
32aa3bff | 17944 | #endif |
db9f46a9 TG |
17945 | #ifdef HAVE_MATH_H |
17946 | #include <math.h> | |
17947 | #endif | |
17948 | ||
17949 | int (*ptr)() = (int (*)())atanl; | |
17950 | ||
32aa3bff FXC |
17951 | int |
17952 | main () | |
17953 | { | |
32aa3bff FXC |
17954 | return 0; |
17955 | } | |
db9f46a9 | 17956 | |
32aa3bff | 17957 | _ACEOF |
5213506e | 17958 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17959 | gcc_cv_math_func_atanl=yes |
32aa3bff | 17960 | else |
db9f46a9 | 17961 | gcc_cv_math_func_atanl=no |
32aa3bff | 17962 | fi |
5213506e RW |
17963 | rm -f core conftest.err conftest.$ac_objext \ |
17964 | conftest$ac_exeext conftest.$ac_ext | |
32aa3bff | 17965 | fi |
db9f46a9 TG |
17966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
17967 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
17968 | if test $gcc_cv_math_func_atanl = yes; then | |
f1cdfa01 | 17969 | |
f38a14ca TG |
17970 | cat >>confdefs.h <<_ACEOF |
17971 | #define HAVE_ATANL 1 | |
17972 | _ACEOF | |
32aa3bff | 17973 | |
db9f46a9 | 17974 | fi |
32aa3bff | 17975 | |
32aa3bff | 17976 | |
db9f46a9 TG |
17977 | |
17978 | ||
17979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
17980 | $as_echo_n "checking for atanhf... " >&6; } | |
22e05272 | 17981 | if ${gcc_cv_math_func_atanhf+:} false; then : |
5213506e | 17982 | $as_echo_n "(cached) " >&6 |
453310d8 | 17983 | else |
db9f46a9 | 17984 | if test x$gcc_no_link = xyes; then |
22e05272 | 17985 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17986 | fi |
5213506e | 17987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17988 | /* end confdefs.h. */ |
17989 | ||
db9f46a9 TG |
17990 | #ifdef HAVE_COMPLEX_H |
17991 | #include <complex.h> | |
17992 | #endif | |
17993 | #ifdef HAVE_MATH_H | |
17994 | #include <math.h> | |
453310d8 | 17995 | #endif |
db9f46a9 TG |
17996 | |
17997 | int (*ptr)() = (int (*)())atanhf; | |
17998 | ||
453310d8 RS |
17999 | int |
18000 | main () | |
18001 | { | |
453310d8 RS |
18002 | return 0; |
18003 | } | |
db9f46a9 | 18004 | |
453310d8 | 18005 | _ACEOF |
5213506e | 18006 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18007 | gcc_cv_math_func_atanhf=yes |
453310d8 | 18008 | else |
db9f46a9 | 18009 | gcc_cv_math_func_atanhf=no |
453310d8 | 18010 | fi |
5213506e RW |
18011 | rm -f core conftest.err conftest.$ac_objext \ |
18012 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18013 | fi |
db9f46a9 TG |
18014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
18015 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
18016 | if test $gcc_cv_math_func_atanhf = yes; then | |
f1cdfa01 | 18017 | |
f38a14ca TG |
18018 | cat >>confdefs.h <<_ACEOF |
18019 | #define HAVE_ATANHF 1 | |
18020 | _ACEOF | |
db9f46a9 TG |
18021 | |
18022 | fi | |
453310d8 | 18023 | |
453310d8 | 18024 | |
453310d8 | 18025 | |
db9f46a9 TG |
18026 | |
18027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18028 | $as_echo_n "checking for atanh... " >&6; } | |
22e05272 | 18029 | if ${gcc_cv_math_func_atanh+:} false; then : |
5213506e | 18030 | $as_echo_n "(cached) " >&6 |
453310d8 | 18031 | else |
db9f46a9 | 18032 | if test x$gcc_no_link = xyes; then |
22e05272 | 18033 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18034 | fi |
5213506e | 18035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18036 | /* end confdefs.h. */ |
18037 | ||
db9f46a9 TG |
18038 | #ifdef HAVE_COMPLEX_H |
18039 | #include <complex.h> | |
453310d8 | 18040 | #endif |
db9f46a9 TG |
18041 | #ifdef HAVE_MATH_H |
18042 | #include <math.h> | |
18043 | #endif | |
18044 | ||
18045 | int (*ptr)() = (int (*)())atanh; | |
18046 | ||
453310d8 RS |
18047 | int |
18048 | main () | |
18049 | { | |
453310d8 RS |
18050 | return 0; |
18051 | } | |
db9f46a9 | 18052 | |
453310d8 | 18053 | _ACEOF |
5213506e | 18054 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18055 | gcc_cv_math_func_atanh=yes |
453310d8 | 18056 | else |
db9f46a9 | 18057 | gcc_cv_math_func_atanh=no |
453310d8 | 18058 | fi |
5213506e RW |
18059 | rm -f core conftest.err conftest.$ac_objext \ |
18060 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18061 | fi |
db9f46a9 TG |
18062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18063 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18064 | if test $gcc_cv_math_func_atanh = yes; then | |
f1cdfa01 | 18065 | |
f38a14ca TG |
18066 | cat >>confdefs.h <<_ACEOF |
18067 | #define HAVE_ATANH 1 | |
18068 | _ACEOF | |
db9f46a9 TG |
18069 | |
18070 | fi | |
18071 | ||
453310d8 | 18072 | |
453310d8 | 18073 | |
453310d8 | 18074 | |
db9f46a9 TG |
18075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18076 | $as_echo_n "checking for atanhl... " >&6; } | |
22e05272 | 18077 | if ${gcc_cv_math_func_atanhl+:} false; then : |
5213506e | 18078 | $as_echo_n "(cached) " >&6 |
bf4d99cf | 18079 | else |
db9f46a9 | 18080 | if test x$gcc_no_link = xyes; then |
22e05272 | 18081 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18082 | fi |
5213506e | 18083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bf4d99cf TS |
18084 | /* end confdefs.h. */ |
18085 | ||
db9f46a9 TG |
18086 | #ifdef HAVE_COMPLEX_H |
18087 | #include <complex.h> | |
18088 | #endif | |
18089 | #ifdef HAVE_MATH_H | |
18090 | #include <math.h> | |
bf4d99cf | 18091 | #endif |
db9f46a9 TG |
18092 | |
18093 | int (*ptr)() = (int (*)())atanhl; | |
18094 | ||
bf4d99cf TS |
18095 | int |
18096 | main () | |
18097 | { | |
bf4d99cf TS |
18098 | return 0; |
18099 | } | |
db9f46a9 | 18100 | |
bf4d99cf | 18101 | _ACEOF |
5213506e | 18102 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18103 | gcc_cv_math_func_atanhl=yes |
bf4d99cf | 18104 | else |
db9f46a9 | 18105 | gcc_cv_math_func_atanhl=no |
bf4d99cf | 18106 | fi |
5213506e RW |
18107 | rm -f core conftest.err conftest.$ac_objext \ |
18108 | conftest$ac_exeext conftest.$ac_ext | |
bf4d99cf | 18109 | fi |
db9f46a9 TG |
18110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18111 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18112 | if test $gcc_cv_math_func_atanhl = yes; then | |
f1cdfa01 | 18113 | |
f38a14ca TG |
18114 | cat >>confdefs.h <<_ACEOF |
18115 | #define HAVE_ATANHL 1 | |
18116 | _ACEOF | |
db9f46a9 TG |
18117 | |
18118 | fi | |
bf4d99cf | 18119 | |
bf4d99cf | 18120 | |
bf4d99cf | 18121 | |
db9f46a9 TG |
18122 | |
18123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18124 | $as_echo_n "checking for cargf... " >&6; } | |
22e05272 | 18125 | if ${gcc_cv_math_func_cargf+:} false; then : |
5213506e | 18126 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18127 | else |
db9f46a9 | 18128 | if test x$gcc_no_link = xyes; then |
22e05272 | 18129 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18130 | fi |
5213506e | 18131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18132 | /* end confdefs.h. */ |
18133 | ||
db9f46a9 TG |
18134 | #ifdef HAVE_COMPLEX_H |
18135 | #include <complex.h> | |
a2a2059f | 18136 | #endif |
db9f46a9 TG |
18137 | #ifdef HAVE_MATH_H |
18138 | #include <math.h> | |
18139 | #endif | |
18140 | ||
18141 | int (*ptr)() = (int (*)())cargf; | |
18142 | ||
453310d8 RS |
18143 | int |
18144 | main () | |
18145 | { | |
453310d8 RS |
18146 | return 0; |
18147 | } | |
db9f46a9 | 18148 | |
453310d8 | 18149 | _ACEOF |
5213506e | 18150 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18151 | gcc_cv_math_func_cargf=yes |
453310d8 | 18152 | else |
db9f46a9 | 18153 | gcc_cv_math_func_cargf=no |
453310d8 | 18154 | fi |
5213506e RW |
18155 | rm -f core conftest.err conftest.$ac_objext \ |
18156 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18157 | fi |
db9f46a9 TG |
18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18159 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18160 | if test $gcc_cv_math_func_cargf = yes; then | |
f1cdfa01 | 18161 | |
f38a14ca TG |
18162 | cat >>confdefs.h <<_ACEOF |
18163 | #define HAVE_CARGF 1 | |
18164 | _ACEOF | |
453310d8 | 18165 | |
db9f46a9 | 18166 | fi |
453310d8 | 18167 | |
453310d8 | 18168 | |
db9f46a9 TG |
18169 | |
18170 | ||
18171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18172 | $as_echo_n "checking for carg... " >&6; } | |
22e05272 | 18173 | if ${gcc_cv_math_func_carg+:} false; then : |
5213506e | 18174 | $as_echo_n "(cached) " >&6 |
453310d8 | 18175 | else |
db9f46a9 | 18176 | if test x$gcc_no_link = xyes; then |
22e05272 | 18177 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18178 | fi |
5213506e | 18179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18180 | /* end confdefs.h. */ |
18181 | ||
db9f46a9 TG |
18182 | #ifdef HAVE_COMPLEX_H |
18183 | #include <complex.h> | |
18184 | #endif | |
18185 | #ifdef HAVE_MATH_H | |
18186 | #include <math.h> | |
453310d8 | 18187 | #endif |
db9f46a9 TG |
18188 | |
18189 | int (*ptr)() = (int (*)())carg; | |
18190 | ||
a2a2059f BD |
18191 | int |
18192 | main () | |
18193 | { | |
a2a2059f BD |
18194 | return 0; |
18195 | } | |
db9f46a9 | 18196 | |
a2a2059f | 18197 | _ACEOF |
5213506e | 18198 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18199 | gcc_cv_math_func_carg=yes |
a2a2059f | 18200 | else |
db9f46a9 | 18201 | gcc_cv_math_func_carg=no |
a2a2059f | 18202 | fi |
5213506e RW |
18203 | rm -f core conftest.err conftest.$ac_objext \ |
18204 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18205 | fi |
db9f46a9 TG |
18206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18207 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18208 | if test $gcc_cv_math_func_carg = yes; then | |
f1cdfa01 | 18209 | |
f38a14ca TG |
18210 | cat >>confdefs.h <<_ACEOF |
18211 | #define HAVE_CARG 1 | |
18212 | _ACEOF | |
db9f46a9 TG |
18213 | |
18214 | fi | |
a2a2059f | 18215 | |
a2a2059f | 18216 | |
a2a2059f | 18217 | |
db9f46a9 TG |
18218 | |
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18220 | $as_echo_n "checking for cargl... " >&6; } | |
22e05272 | 18221 | if ${gcc_cv_math_func_cargl+:} false; then : |
5213506e | 18222 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18223 | else |
db9f46a9 | 18224 | if test x$gcc_no_link = xyes; then |
22e05272 | 18225 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18226 | fi |
5213506e | 18227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18228 | /* end confdefs.h. */ |
18229 | ||
db9f46a9 TG |
18230 | #ifdef HAVE_COMPLEX_H |
18231 | #include <complex.h> | |
a2a2059f | 18232 | #endif |
db9f46a9 TG |
18233 | #ifdef HAVE_MATH_H |
18234 | #include <math.h> | |
18235 | #endif | |
18236 | ||
18237 | int (*ptr)() = (int (*)())cargl; | |
18238 | ||
a2a2059f BD |
18239 | int |
18240 | main () | |
18241 | { | |
a2a2059f BD |
18242 | return 0; |
18243 | } | |
db9f46a9 | 18244 | |
a2a2059f | 18245 | _ACEOF |
5213506e | 18246 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18247 | gcc_cv_math_func_cargl=yes |
a2a2059f | 18248 | else |
db9f46a9 | 18249 | gcc_cv_math_func_cargl=no |
a2a2059f | 18250 | fi |
5213506e RW |
18251 | rm -f core conftest.err conftest.$ac_objext \ |
18252 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18253 | fi |
db9f46a9 TG |
18254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18255 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18256 | if test $gcc_cv_math_func_cargl = yes; then | |
f1cdfa01 | 18257 | |
f38a14ca TG |
18258 | cat >>confdefs.h <<_ACEOF |
18259 | #define HAVE_CARGL 1 | |
18260 | _ACEOF | |
db9f46a9 TG |
18261 | |
18262 | fi | |
18263 | ||
a2a2059f | 18264 | |
a2a2059f | 18265 | |
a2a2059f | 18266 | |
db9f46a9 TG |
18267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18268 | $as_echo_n "checking for ceilf... " >&6; } | |
22e05272 | 18269 | if ${gcc_cv_math_func_ceilf+:} false; then : |
5213506e | 18270 | $as_echo_n "(cached) " >&6 |
ae973d6a | 18271 | else |
db9f46a9 | 18272 | if test x$gcc_no_link = xyes; then |
22e05272 | 18273 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18274 | fi |
5213506e | 18275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ae973d6a FXC |
18276 | /* end confdefs.h. */ |
18277 | ||
db9f46a9 TG |
18278 | #ifdef HAVE_COMPLEX_H |
18279 | #include <complex.h> | |
18280 | #endif | |
18281 | #ifdef HAVE_MATH_H | |
18282 | #include <math.h> | |
ae973d6a | 18283 | #endif |
db9f46a9 TG |
18284 | |
18285 | int (*ptr)() = (int (*)())ceilf; | |
18286 | ||
ae973d6a FXC |
18287 | int |
18288 | main () | |
18289 | { | |
ae973d6a FXC |
18290 | return 0; |
18291 | } | |
db9f46a9 | 18292 | |
ae973d6a | 18293 | _ACEOF |
5213506e | 18294 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18295 | gcc_cv_math_func_ceilf=yes |
ae973d6a | 18296 | else |
db9f46a9 | 18297 | gcc_cv_math_func_ceilf=no |
ae973d6a | 18298 | fi |
5213506e RW |
18299 | rm -f core conftest.err conftest.$ac_objext \ |
18300 | conftest$ac_exeext conftest.$ac_ext | |
ae973d6a | 18301 | fi |
db9f46a9 TG |
18302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18303 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18304 | if test $gcc_cv_math_func_ceilf = yes; then | |
f1cdfa01 | 18305 | |
f38a14ca TG |
18306 | cat >>confdefs.h <<_ACEOF |
18307 | #define HAVE_CEILF 1 | |
18308 | _ACEOF | |
db9f46a9 TG |
18309 | |
18310 | fi | |
ae973d6a | 18311 | |
ae973d6a | 18312 | |
ae973d6a | 18313 | |
db9f46a9 TG |
18314 | |
18315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18316 | $as_echo_n "checking for ceil... " >&6; } | |
22e05272 | 18317 | if ${gcc_cv_math_func_ceil+:} false; then : |
5213506e | 18318 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18319 | else |
db9f46a9 | 18320 | if test x$gcc_no_link = xyes; then |
22e05272 | 18321 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18322 | fi |
5213506e | 18323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18324 | /* end confdefs.h. */ |
18325 | ||
db9f46a9 TG |
18326 | #ifdef HAVE_COMPLEX_H |
18327 | #include <complex.h> | |
a9e7b9d3 | 18328 | #endif |
db9f46a9 TG |
18329 | #ifdef HAVE_MATH_H |
18330 | #include <math.h> | |
18331 | #endif | |
18332 | ||
18333 | int (*ptr)() = (int (*)())ceil; | |
18334 | ||
a9e7b9d3 PB |
18335 | int |
18336 | main () | |
18337 | { | |
a9e7b9d3 PB |
18338 | return 0; |
18339 | } | |
db9f46a9 | 18340 | |
a9e7b9d3 | 18341 | _ACEOF |
5213506e | 18342 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18343 | gcc_cv_math_func_ceil=yes |
a9e7b9d3 | 18344 | else |
db9f46a9 | 18345 | gcc_cv_math_func_ceil=no |
a9e7b9d3 | 18346 | fi |
5213506e RW |
18347 | rm -f core conftest.err conftest.$ac_objext \ |
18348 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18349 | fi |
db9f46a9 TG |
18350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18351 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18352 | if test $gcc_cv_math_func_ceil = yes; then | |
f1cdfa01 | 18353 | |
f38a14ca TG |
18354 | cat >>confdefs.h <<_ACEOF |
18355 | #define HAVE_CEIL 1 | |
18356 | _ACEOF | |
a9e7b9d3 | 18357 | |
db9f46a9 | 18358 | fi |
a9e7b9d3 | 18359 | |
a9e7b9d3 | 18360 | |
db9f46a9 TG |
18361 | |
18362 | ||
18363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18364 | $as_echo_n "checking for ceill... " >&6; } | |
22e05272 | 18365 | if ${gcc_cv_math_func_ceill+:} false; then : |
5213506e | 18366 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18367 | else |
db9f46a9 | 18368 | if test x$gcc_no_link = xyes; then |
22e05272 | 18369 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18370 | fi |
5213506e | 18371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18372 | /* end confdefs.h. */ |
18373 | ||
db9f46a9 TG |
18374 | #ifdef HAVE_COMPLEX_H |
18375 | #include <complex.h> | |
18376 | #endif | |
18377 | #ifdef HAVE_MATH_H | |
18378 | #include <math.h> | |
a9e7b9d3 | 18379 | #endif |
db9f46a9 TG |
18380 | |
18381 | int (*ptr)() = (int (*)())ceill; | |
18382 | ||
a9e7b9d3 PB |
18383 | int |
18384 | main () | |
18385 | { | |
a9e7b9d3 PB |
18386 | return 0; |
18387 | } | |
db9f46a9 | 18388 | |
a9e7b9d3 | 18389 | _ACEOF |
5213506e | 18390 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18391 | gcc_cv_math_func_ceill=yes |
a9e7b9d3 | 18392 | else |
db9f46a9 | 18393 | gcc_cv_math_func_ceill=no |
a9e7b9d3 | 18394 | fi |
5213506e RW |
18395 | rm -f core conftest.err conftest.$ac_objext \ |
18396 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18397 | fi |
db9f46a9 TG |
18398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18399 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18400 | if test $gcc_cv_math_func_ceill = yes; then | |
f1cdfa01 | 18401 | |
f38a14ca TG |
18402 | cat >>confdefs.h <<_ACEOF |
18403 | #define HAVE_CEILL 1 | |
18404 | _ACEOF | |
db9f46a9 TG |
18405 | |
18406 | fi | |
a9e7b9d3 | 18407 | |
453310d8 | 18408 | |
453310d8 | 18409 | |
db9f46a9 TG |
18410 | |
18411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18412 | $as_echo_n "checking for copysignf... " >&6; } | |
22e05272 | 18413 | if ${gcc_cv_math_func_copysignf+:} false; then : |
5213506e | 18414 | $as_echo_n "(cached) " >&6 |
453310d8 | 18415 | else |
db9f46a9 | 18416 | if test x$gcc_no_link = xyes; then |
22e05272 | 18417 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18418 | fi |
5213506e | 18419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18420 | /* end confdefs.h. */ |
18421 | ||
db9f46a9 TG |
18422 | #ifdef HAVE_COMPLEX_H |
18423 | #include <complex.h> | |
453310d8 | 18424 | #endif |
db9f46a9 TG |
18425 | #ifdef HAVE_MATH_H |
18426 | #include <math.h> | |
18427 | #endif | |
18428 | ||
18429 | int (*ptr)() = (int (*)())copysignf; | |
18430 | ||
453310d8 RS |
18431 | int |
18432 | main () | |
18433 | { | |
453310d8 RS |
18434 | return 0; |
18435 | } | |
db9f46a9 | 18436 | |
453310d8 | 18437 | _ACEOF |
5213506e | 18438 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18439 | gcc_cv_math_func_copysignf=yes |
453310d8 | 18440 | else |
db9f46a9 | 18441 | gcc_cv_math_func_copysignf=no |
453310d8 | 18442 | fi |
5213506e RW |
18443 | rm -f core conftest.err conftest.$ac_objext \ |
18444 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18445 | fi |
db9f46a9 TG |
18446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18447 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18448 | if test $gcc_cv_math_func_copysignf = yes; then | |
f1cdfa01 | 18449 | |
f38a14ca TG |
18450 | cat >>confdefs.h <<_ACEOF |
18451 | #define HAVE_COPYSIGNF 1 | |
18452 | _ACEOF | |
db9f46a9 TG |
18453 | |
18454 | fi | |
18455 | ||
453310d8 | 18456 | |
453310d8 | 18457 | |
453310d8 | 18458 | |
db9f46a9 TG |
18459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18460 | $as_echo_n "checking for copysign... " >&6; } | |
22e05272 | 18461 | if ${gcc_cv_math_func_copysign+:} false; then : |
5213506e | 18462 | $as_echo_n "(cached) " >&6 |
453310d8 | 18463 | else |
db9f46a9 | 18464 | if test x$gcc_no_link = xyes; then |
22e05272 | 18465 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18466 | fi |
5213506e | 18467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18468 | /* end confdefs.h. */ |
18469 | ||
db9f46a9 TG |
18470 | #ifdef HAVE_COMPLEX_H |
18471 | #include <complex.h> | |
18472 | #endif | |
18473 | #ifdef HAVE_MATH_H | |
18474 | #include <math.h> | |
453310d8 | 18475 | #endif |
db9f46a9 TG |
18476 | |
18477 | int (*ptr)() = (int (*)())copysign; | |
18478 | ||
453310d8 RS |
18479 | int |
18480 | main () | |
18481 | { | |
453310d8 RS |
18482 | return 0; |
18483 | } | |
db9f46a9 | 18484 | |
453310d8 | 18485 | _ACEOF |
5213506e | 18486 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18487 | gcc_cv_math_func_copysign=yes |
453310d8 | 18488 | else |
db9f46a9 | 18489 | gcc_cv_math_func_copysign=no |
453310d8 | 18490 | fi |
5213506e RW |
18491 | rm -f core conftest.err conftest.$ac_objext \ |
18492 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18493 | fi |
db9f46a9 TG |
18494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18495 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18496 | if test $gcc_cv_math_func_copysign = yes; then | |
f1cdfa01 | 18497 | |
f38a14ca TG |
18498 | cat >>confdefs.h <<_ACEOF |
18499 | #define HAVE_COPYSIGN 1 | |
18500 | _ACEOF | |
db9f46a9 TG |
18501 | |
18502 | fi | |
453310d8 | 18503 | |
453310d8 | 18504 | |
453310d8 | 18505 | |
db9f46a9 TG |
18506 | |
18507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18508 | $as_echo_n "checking for copysignl... " >&6; } | |
22e05272 | 18509 | if ${gcc_cv_math_func_copysignl+:} false; then : |
5213506e | 18510 | $as_echo_n "(cached) " >&6 |
453310d8 | 18511 | else |
db9f46a9 | 18512 | if test x$gcc_no_link = xyes; then |
22e05272 | 18513 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18514 | fi |
5213506e | 18515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18516 | /* end confdefs.h. */ |
18517 | ||
db9f46a9 TG |
18518 | #ifdef HAVE_COMPLEX_H |
18519 | #include <complex.h> | |
453310d8 | 18520 | #endif |
db9f46a9 TG |
18521 | #ifdef HAVE_MATH_H |
18522 | #include <math.h> | |
18523 | #endif | |
18524 | ||
18525 | int (*ptr)() = (int (*)())copysignl; | |
18526 | ||
453310d8 RS |
18527 | int |
18528 | main () | |
18529 | { | |
5213506e RW |
18530 | return 0; |
18531 | } | |
db9f46a9 | 18532 | |
5213506e RW |
18533 | _ACEOF |
18534 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 18535 | gcc_cv_math_func_copysignl=yes |
453310d8 | 18536 | else |
db9f46a9 | 18537 | gcc_cv_math_func_copysignl=no |
453310d8 | 18538 | fi |
5213506e RW |
18539 | rm -f core conftest.err conftest.$ac_objext \ |
18540 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18541 | fi |
db9f46a9 TG |
18542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18543 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18544 | if test $gcc_cv_math_func_copysignl = yes; then | |
f1cdfa01 | 18545 | |
f38a14ca TG |
18546 | cat >>confdefs.h <<_ACEOF |
18547 | #define HAVE_COPYSIGNL 1 | |
18548 | _ACEOF | |
453310d8 | 18549 | |
db9f46a9 | 18550 | fi |
a9e7b9d3 | 18551 | |
a9e7b9d3 | 18552 | |
db9f46a9 TG |
18553 | |
18554 | ||
18555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18556 | $as_echo_n "checking for cosf... " >&6; } | |
22e05272 | 18557 | if ${gcc_cv_math_func_cosf+:} false; then : |
5213506e | 18558 | $as_echo_n "(cached) " >&6 |
69a2d125 | 18559 | else |
db9f46a9 | 18560 | if test x$gcc_no_link = xyes; then |
22e05272 | 18561 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18562 | fi |
5213506e | 18563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
18564 | /* end confdefs.h. */ |
18565 | ||
db9f46a9 TG |
18566 | #ifdef HAVE_COMPLEX_H |
18567 | #include <complex.h> | |
18568 | #endif | |
18569 | #ifdef HAVE_MATH_H | |
18570 | #include <math.h> | |
69a2d125 | 18571 | #endif |
db9f46a9 TG |
18572 | |
18573 | int (*ptr)() = (int (*)())cosf; | |
18574 | ||
69a2d125 EB |
18575 | int |
18576 | main () | |
18577 | { | |
69a2d125 EB |
18578 | return 0; |
18579 | } | |
db9f46a9 | 18580 | |
69a2d125 | 18581 | _ACEOF |
5213506e | 18582 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18583 | gcc_cv_math_func_cosf=yes |
69a2d125 | 18584 | else |
db9f46a9 | 18585 | gcc_cv_math_func_cosf=no |
69a2d125 | 18586 | fi |
5213506e RW |
18587 | rm -f core conftest.err conftest.$ac_objext \ |
18588 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 18589 | fi |
db9f46a9 TG |
18590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18591 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18592 | if test $gcc_cv_math_func_cosf = yes; then | |
f1cdfa01 | 18593 | |
f38a14ca TG |
18594 | cat >>confdefs.h <<_ACEOF |
18595 | #define HAVE_COSF 1 | |
18596 | _ACEOF | |
db9f46a9 TG |
18597 | |
18598 | fi | |
69a2d125 | 18599 | |
1409cd0b | 18600 | |
1409cd0b | 18601 | |
db9f46a9 TG |
18602 | |
18603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18604 | $as_echo_n "checking for cos... " >&6; } | |
22e05272 | 18605 | if ${gcc_cv_math_func_cos+:} false; then : |
5213506e | 18606 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18607 | else |
db9f46a9 | 18608 | if test x$gcc_no_link = xyes; then |
22e05272 | 18609 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18610 | fi |
5213506e | 18611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18612 | /* end confdefs.h. */ |
18613 | ||
db9f46a9 TG |
18614 | #ifdef HAVE_COMPLEX_H |
18615 | #include <complex.h> | |
1409cd0b | 18616 | #endif |
db9f46a9 TG |
18617 | #ifdef HAVE_MATH_H |
18618 | #include <math.h> | |
18619 | #endif | |
18620 | ||
18621 | int (*ptr)() = (int (*)())cos; | |
18622 | ||
1409cd0b FXC |
18623 | int |
18624 | main () | |
18625 | { | |
1409cd0b FXC |
18626 | return 0; |
18627 | } | |
db9f46a9 | 18628 | |
1409cd0b | 18629 | _ACEOF |
5213506e | 18630 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18631 | gcc_cv_math_func_cos=yes |
1409cd0b | 18632 | else |
db9f46a9 | 18633 | gcc_cv_math_func_cos=no |
1409cd0b | 18634 | fi |
5213506e RW |
18635 | rm -f core conftest.err conftest.$ac_objext \ |
18636 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18637 | fi |
db9f46a9 TG |
18638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18639 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18640 | if test $gcc_cv_math_func_cos = yes; then | |
f1cdfa01 | 18641 | |
f38a14ca TG |
18642 | cat >>confdefs.h <<_ACEOF |
18643 | #define HAVE_COS 1 | |
18644 | _ACEOF | |
db9f46a9 TG |
18645 | |
18646 | fi | |
18647 | ||
1409cd0b | 18648 | |
1409cd0b | 18649 | |
1409cd0b | 18650 | |
db9f46a9 TG |
18651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18652 | $as_echo_n "checking for cosl... " >&6; } | |
22e05272 | 18653 | if ${gcc_cv_math_func_cosl+:} false; then : |
5213506e | 18654 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18655 | else |
db9f46a9 | 18656 | if test x$gcc_no_link = xyes; then |
22e05272 | 18657 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18658 | fi |
5213506e | 18659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18660 | /* end confdefs.h. */ |
18661 | ||
db9f46a9 TG |
18662 | #ifdef HAVE_COMPLEX_H |
18663 | #include <complex.h> | |
18664 | #endif | |
18665 | #ifdef HAVE_MATH_H | |
18666 | #include <math.h> | |
1409cd0b | 18667 | #endif |
db9f46a9 TG |
18668 | |
18669 | int (*ptr)() = (int (*)())cosl; | |
18670 | ||
1409cd0b FXC |
18671 | int |
18672 | main () | |
18673 | { | |
1409cd0b FXC |
18674 | return 0; |
18675 | } | |
db9f46a9 | 18676 | |
1409cd0b | 18677 | _ACEOF |
5213506e | 18678 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18679 | gcc_cv_math_func_cosl=yes |
1409cd0b | 18680 | else |
db9f46a9 | 18681 | gcc_cv_math_func_cosl=no |
1409cd0b | 18682 | fi |
5213506e RW |
18683 | rm -f core conftest.err conftest.$ac_objext \ |
18684 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18685 | fi |
db9f46a9 TG |
18686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18687 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18688 | if test $gcc_cv_math_func_cosl = yes; then | |
f1cdfa01 | 18689 | |
f38a14ca TG |
18690 | cat >>confdefs.h <<_ACEOF |
18691 | #define HAVE_COSL 1 | |
18692 | _ACEOF | |
db9f46a9 TG |
18693 | |
18694 | fi | |
1409cd0b | 18695 | |
1409cd0b | 18696 | |
1409cd0b | 18697 | |
db9f46a9 TG |
18698 | |
18699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18700 | $as_echo_n "checking for ccosf... " >&6; } | |
22e05272 | 18701 | if ${gcc_cv_math_func_ccosf+:} false; then : |
5213506e | 18702 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18703 | else |
db9f46a9 | 18704 | if test x$gcc_no_link = xyes; then |
22e05272 | 18705 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18706 | fi |
5213506e | 18707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18708 | /* end confdefs.h. */ |
18709 | ||
db9f46a9 TG |
18710 | #ifdef HAVE_COMPLEX_H |
18711 | #include <complex.h> | |
1409cd0b | 18712 | #endif |
db9f46a9 TG |
18713 | #ifdef HAVE_MATH_H |
18714 | #include <math.h> | |
18715 | #endif | |
18716 | ||
18717 | int (*ptr)() = (int (*)())ccosf; | |
18718 | ||
1409cd0b FXC |
18719 | int |
18720 | main () | |
18721 | { | |
1409cd0b FXC |
18722 | return 0; |
18723 | } | |
db9f46a9 | 18724 | |
1409cd0b | 18725 | _ACEOF |
5213506e | 18726 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18727 | gcc_cv_math_func_ccosf=yes |
1409cd0b | 18728 | else |
db9f46a9 | 18729 | gcc_cv_math_func_ccosf=no |
1409cd0b | 18730 | fi |
5213506e RW |
18731 | rm -f core conftest.err conftest.$ac_objext \ |
18732 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18733 | fi |
db9f46a9 TG |
18734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18735 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18736 | if test $gcc_cv_math_func_ccosf = yes; then | |
f1cdfa01 | 18737 | |
f38a14ca TG |
18738 | cat >>confdefs.h <<_ACEOF |
18739 | #define HAVE_CCOSF 1 | |
18740 | _ACEOF | |
1409cd0b | 18741 | |
db9f46a9 | 18742 | fi |
1409cd0b | 18743 | |
1409cd0b | 18744 | |
db9f46a9 TG |
18745 | |
18746 | ||
18747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18748 | $as_echo_n "checking for ccos... " >&6; } | |
22e05272 | 18749 | if ${gcc_cv_math_func_ccos+:} false; then : |
5213506e | 18750 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18751 | else |
db9f46a9 | 18752 | if test x$gcc_no_link = xyes; then |
22e05272 | 18753 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18754 | fi |
5213506e | 18755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18756 | /* end confdefs.h. */ |
18757 | ||
db9f46a9 TG |
18758 | #ifdef HAVE_COMPLEX_H |
18759 | #include <complex.h> | |
18760 | #endif | |
18761 | #ifdef HAVE_MATH_H | |
18762 | #include <math.h> | |
1409cd0b | 18763 | #endif |
db9f46a9 TG |
18764 | |
18765 | int (*ptr)() = (int (*)())ccos; | |
18766 | ||
1409cd0b FXC |
18767 | int |
18768 | main () | |
18769 | { | |
1409cd0b FXC |
18770 | return 0; |
18771 | } | |
db9f46a9 | 18772 | |
1409cd0b | 18773 | _ACEOF |
5213506e | 18774 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18775 | gcc_cv_math_func_ccos=yes |
1409cd0b | 18776 | else |
db9f46a9 | 18777 | gcc_cv_math_func_ccos=no |
1409cd0b | 18778 | fi |
5213506e RW |
18779 | rm -f core conftest.err conftest.$ac_objext \ |
18780 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18781 | fi |
db9f46a9 TG |
18782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18783 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18784 | if test $gcc_cv_math_func_ccos = yes; then | |
f1cdfa01 | 18785 | |
f38a14ca TG |
18786 | cat >>confdefs.h <<_ACEOF |
18787 | #define HAVE_CCOS 1 | |
18788 | _ACEOF | |
db9f46a9 TG |
18789 | |
18790 | fi | |
1409cd0b | 18791 | |
1409cd0b | 18792 | |
1409cd0b | 18793 | |
db9f46a9 TG |
18794 | |
18795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18796 | $as_echo_n "checking for ccosl... " >&6; } | |
22e05272 | 18797 | if ${gcc_cv_math_func_ccosl+:} false; then : |
5213506e | 18798 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18799 | else |
db9f46a9 | 18800 | if test x$gcc_no_link = xyes; then |
22e05272 | 18801 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18802 | fi |
5213506e | 18803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18804 | /* end confdefs.h. */ |
18805 | ||
db9f46a9 TG |
18806 | #ifdef HAVE_COMPLEX_H |
18807 | #include <complex.h> | |
1409cd0b | 18808 | #endif |
db9f46a9 TG |
18809 | #ifdef HAVE_MATH_H |
18810 | #include <math.h> | |
18811 | #endif | |
18812 | ||
18813 | int (*ptr)() = (int (*)())ccosl; | |
18814 | ||
1409cd0b FXC |
18815 | int |
18816 | main () | |
18817 | { | |
1409cd0b FXC |
18818 | return 0; |
18819 | } | |
db9f46a9 | 18820 | |
1409cd0b | 18821 | _ACEOF |
5213506e | 18822 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18823 | gcc_cv_math_func_ccosl=yes |
1409cd0b | 18824 | else |
db9f46a9 | 18825 | gcc_cv_math_func_ccosl=no |
1409cd0b | 18826 | fi |
5213506e RW |
18827 | rm -f core conftest.err conftest.$ac_objext \ |
18828 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18829 | fi |
db9f46a9 TG |
18830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
18831 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
18832 | if test $gcc_cv_math_func_ccosl = yes; then | |
f1cdfa01 | 18833 | |
f38a14ca TG |
18834 | cat >>confdefs.h <<_ACEOF |
18835 | #define HAVE_CCOSL 1 | |
18836 | _ACEOF | |
db9f46a9 TG |
18837 | |
18838 | fi | |
18839 | ||
1409cd0b | 18840 | |
1409cd0b | 18841 | |
1409cd0b | 18842 | |
db9f46a9 TG |
18843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
18844 | $as_echo_n "checking for coshf... " >&6; } | |
22e05272 | 18845 | if ${gcc_cv_math_func_coshf+:} false; then : |
5213506e | 18846 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18847 | else |
db9f46a9 | 18848 | if test x$gcc_no_link = xyes; then |
22e05272 | 18849 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18850 | fi |
5213506e | 18851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18852 | /* end confdefs.h. */ |
18853 | ||
db9f46a9 TG |
18854 | #ifdef HAVE_COMPLEX_H |
18855 | #include <complex.h> | |
18856 | #endif | |
18857 | #ifdef HAVE_MATH_H | |
18858 | #include <math.h> | |
1409cd0b | 18859 | #endif |
db9f46a9 TG |
18860 | |
18861 | int (*ptr)() = (int (*)())coshf; | |
18862 | ||
1409cd0b FXC |
18863 | int |
18864 | main () | |
18865 | { | |
1409cd0b FXC |
18866 | return 0; |
18867 | } | |
db9f46a9 | 18868 | |
1409cd0b | 18869 | _ACEOF |
5213506e | 18870 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18871 | gcc_cv_math_func_coshf=yes |
1409cd0b | 18872 | else |
db9f46a9 | 18873 | gcc_cv_math_func_coshf=no |
1409cd0b | 18874 | fi |
5213506e RW |
18875 | rm -f core conftest.err conftest.$ac_objext \ |
18876 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18877 | fi |
db9f46a9 TG |
18878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
18879 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
18880 | if test $gcc_cv_math_func_coshf = yes; then | |
f1cdfa01 | 18881 | |
f38a14ca TG |
18882 | cat >>confdefs.h <<_ACEOF |
18883 | #define HAVE_COSHF 1 | |
18884 | _ACEOF | |
db9f46a9 TG |
18885 | |
18886 | fi | |
1409cd0b | 18887 | |
1409cd0b | 18888 | |
1409cd0b | 18889 | |
db9f46a9 TG |
18890 | |
18891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
18892 | $as_echo_n "checking for cosh... " >&6; } | |
22e05272 | 18893 | if ${gcc_cv_math_func_cosh+:} false; then : |
5213506e | 18894 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18895 | else |
db9f46a9 | 18896 | if test x$gcc_no_link = xyes; then |
22e05272 | 18897 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18898 | fi |
5213506e | 18899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18900 | /* end confdefs.h. */ |
18901 | ||
db9f46a9 TG |
18902 | #ifdef HAVE_COMPLEX_H |
18903 | #include <complex.h> | |
1409cd0b | 18904 | #endif |
db9f46a9 TG |
18905 | #ifdef HAVE_MATH_H |
18906 | #include <math.h> | |
18907 | #endif | |
18908 | ||
18909 | int (*ptr)() = (int (*)())cosh; | |
18910 | ||
1409cd0b FXC |
18911 | int |
18912 | main () | |
18913 | { | |
1409cd0b FXC |
18914 | return 0; |
18915 | } | |
db9f46a9 | 18916 | |
1409cd0b | 18917 | _ACEOF |
5213506e | 18918 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18919 | gcc_cv_math_func_cosh=yes |
1409cd0b | 18920 | else |
db9f46a9 | 18921 | gcc_cv_math_func_cosh=no |
1409cd0b | 18922 | fi |
5213506e RW |
18923 | rm -f core conftest.err conftest.$ac_objext \ |
18924 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18925 | fi |
db9f46a9 TG |
18926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
18927 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
18928 | if test $gcc_cv_math_func_cosh = yes; then | |
f1cdfa01 | 18929 | |
f38a14ca TG |
18930 | cat >>confdefs.h <<_ACEOF |
18931 | #define HAVE_COSH 1 | |
18932 | _ACEOF | |
1409cd0b | 18933 | |
db9f46a9 | 18934 | fi |
1409cd0b | 18935 | |
1409cd0b | 18936 | |
db9f46a9 TG |
18937 | |
18938 | ||
18939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
18940 | $as_echo_n "checking for coshl... " >&6; } | |
22e05272 | 18941 | if ${gcc_cv_math_func_coshl+:} false; then : |
5213506e | 18942 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18943 | else |
db9f46a9 | 18944 | if test x$gcc_no_link = xyes; then |
22e05272 | 18945 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18946 | fi |
5213506e | 18947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18948 | /* end confdefs.h. */ |
18949 | ||
db9f46a9 TG |
18950 | #ifdef HAVE_COMPLEX_H |
18951 | #include <complex.h> | |
18952 | #endif | |
18953 | #ifdef HAVE_MATH_H | |
18954 | #include <math.h> | |
1409cd0b | 18955 | #endif |
db9f46a9 TG |
18956 | |
18957 | int (*ptr)() = (int (*)())coshl; | |
18958 | ||
1409cd0b FXC |
18959 | int |
18960 | main () | |
18961 | { | |
1409cd0b FXC |
18962 | return 0; |
18963 | } | |
db9f46a9 | 18964 | |
1409cd0b | 18965 | _ACEOF |
5213506e | 18966 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18967 | gcc_cv_math_func_coshl=yes |
1409cd0b | 18968 | else |
db9f46a9 | 18969 | gcc_cv_math_func_coshl=no |
1409cd0b | 18970 | fi |
5213506e RW |
18971 | rm -f core conftest.err conftest.$ac_objext \ |
18972 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18973 | fi |
db9f46a9 TG |
18974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
18975 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
18976 | if test $gcc_cv_math_func_coshl = yes; then | |
f1cdfa01 | 18977 | |
f38a14ca TG |
18978 | cat >>confdefs.h <<_ACEOF |
18979 | #define HAVE_COSHL 1 | |
18980 | _ACEOF | |
db9f46a9 TG |
18981 | |
18982 | fi | |
1409cd0b | 18983 | |
1409cd0b | 18984 | |
1409cd0b | 18985 | |
db9f46a9 TG |
18986 | |
18987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
18988 | $as_echo_n "checking for ccoshf... " >&6; } | |
22e05272 | 18989 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
5213506e | 18990 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18991 | else |
db9f46a9 | 18992 | if test x$gcc_no_link = xyes; then |
22e05272 | 18993 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18994 | fi |
5213506e | 18995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18996 | /* end confdefs.h. */ |
18997 | ||
db9f46a9 TG |
18998 | #ifdef HAVE_COMPLEX_H |
18999 | #include <complex.h> | |
1409cd0b | 19000 | #endif |
db9f46a9 TG |
19001 | #ifdef HAVE_MATH_H |
19002 | #include <math.h> | |
19003 | #endif | |
19004 | ||
19005 | int (*ptr)() = (int (*)())ccoshf; | |
19006 | ||
1409cd0b FXC |
19007 | int |
19008 | main () | |
19009 | { | |
1409cd0b FXC |
19010 | return 0; |
19011 | } | |
db9f46a9 | 19012 | |
1409cd0b | 19013 | _ACEOF |
5213506e | 19014 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19015 | gcc_cv_math_func_ccoshf=yes |
1409cd0b | 19016 | else |
db9f46a9 | 19017 | gcc_cv_math_func_ccoshf=no |
1409cd0b | 19018 | fi |
5213506e RW |
19019 | rm -f core conftest.err conftest.$ac_objext \ |
19020 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19021 | fi |
db9f46a9 TG |
19022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
19023 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
19024 | if test $gcc_cv_math_func_ccoshf = yes; then | |
f1cdfa01 | 19025 | |
f38a14ca TG |
19026 | cat >>confdefs.h <<_ACEOF |
19027 | #define HAVE_CCOSHF 1 | |
19028 | _ACEOF | |
db9f46a9 TG |
19029 | |
19030 | fi | |
19031 | ||
1409cd0b | 19032 | |
1409cd0b | 19033 | |
1409cd0b | 19034 | |
db9f46a9 TG |
19035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19036 | $as_echo_n "checking for ccosh... " >&6; } | |
22e05272 | 19037 | if ${gcc_cv_math_func_ccosh+:} false; then : |
5213506e | 19038 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19039 | else |
db9f46a9 | 19040 | if test x$gcc_no_link = xyes; then |
22e05272 | 19041 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19042 | fi |
5213506e | 19043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19044 | /* end confdefs.h. */ |
19045 | ||
db9f46a9 TG |
19046 | #ifdef HAVE_COMPLEX_H |
19047 | #include <complex.h> | |
19048 | #endif | |
19049 | #ifdef HAVE_MATH_H | |
19050 | #include <math.h> | |
1409cd0b | 19051 | #endif |
db9f46a9 TG |
19052 | |
19053 | int (*ptr)() = (int (*)())ccosh; | |
19054 | ||
1409cd0b FXC |
19055 | int |
19056 | main () | |
19057 | { | |
1409cd0b FXC |
19058 | return 0; |
19059 | } | |
db9f46a9 | 19060 | |
1409cd0b | 19061 | _ACEOF |
5213506e | 19062 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19063 | gcc_cv_math_func_ccosh=yes |
1409cd0b | 19064 | else |
db9f46a9 | 19065 | gcc_cv_math_func_ccosh=no |
1409cd0b | 19066 | fi |
5213506e RW |
19067 | rm -f core conftest.err conftest.$ac_objext \ |
19068 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19069 | fi |
db9f46a9 TG |
19070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19071 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19072 | if test $gcc_cv_math_func_ccosh = yes; then | |
f1cdfa01 | 19073 | |
f38a14ca TG |
19074 | cat >>confdefs.h <<_ACEOF |
19075 | #define HAVE_CCOSH 1 | |
19076 | _ACEOF | |
db9f46a9 TG |
19077 | |
19078 | fi | |
1409cd0b | 19079 | |
1409cd0b | 19080 | |
1409cd0b | 19081 | |
db9f46a9 TG |
19082 | |
19083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19084 | $as_echo_n "checking for ccoshl... " >&6; } | |
22e05272 | 19085 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
5213506e | 19086 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19087 | else |
db9f46a9 | 19088 | if test x$gcc_no_link = xyes; then |
22e05272 | 19089 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19090 | fi |
5213506e | 19091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19092 | /* end confdefs.h. */ |
19093 | ||
db9f46a9 TG |
19094 | #ifdef HAVE_COMPLEX_H |
19095 | #include <complex.h> | |
1409cd0b | 19096 | #endif |
db9f46a9 TG |
19097 | #ifdef HAVE_MATH_H |
19098 | #include <math.h> | |
19099 | #endif | |
19100 | ||
19101 | int (*ptr)() = (int (*)())ccoshl; | |
19102 | ||
1409cd0b FXC |
19103 | int |
19104 | main () | |
19105 | { | |
1409cd0b FXC |
19106 | return 0; |
19107 | } | |
db9f46a9 | 19108 | |
1409cd0b | 19109 | _ACEOF |
5213506e | 19110 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19111 | gcc_cv_math_func_ccoshl=yes |
1409cd0b | 19112 | else |
db9f46a9 | 19113 | gcc_cv_math_func_ccoshl=no |
1409cd0b | 19114 | fi |
5213506e RW |
19115 | rm -f core conftest.err conftest.$ac_objext \ |
19116 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19117 | fi |
db9f46a9 TG |
19118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19119 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19120 | if test $gcc_cv_math_func_ccoshl = yes; then | |
f1cdfa01 | 19121 | |
f38a14ca TG |
19122 | cat >>confdefs.h <<_ACEOF |
19123 | #define HAVE_CCOSHL 1 | |
19124 | _ACEOF | |
1409cd0b | 19125 | |
db9f46a9 | 19126 | fi |
1409cd0b | 19127 | |
1409cd0b | 19128 | |
db9f46a9 TG |
19129 | |
19130 | ||
19131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19132 | $as_echo_n "checking for expf... " >&6; } | |
22e05272 | 19133 | if ${gcc_cv_math_func_expf+:} false; then : |
5213506e | 19134 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19135 | else |
db9f46a9 | 19136 | if test x$gcc_no_link = xyes; then |
22e05272 | 19137 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19138 | fi |
5213506e | 19139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19140 | /* end confdefs.h. */ |
19141 | ||
db9f46a9 TG |
19142 | #ifdef HAVE_COMPLEX_H |
19143 | #include <complex.h> | |
19144 | #endif | |
19145 | #ifdef HAVE_MATH_H | |
19146 | #include <math.h> | |
1409cd0b | 19147 | #endif |
db9f46a9 TG |
19148 | |
19149 | int (*ptr)() = (int (*)())expf; | |
19150 | ||
1409cd0b FXC |
19151 | int |
19152 | main () | |
19153 | { | |
1409cd0b FXC |
19154 | return 0; |
19155 | } | |
db9f46a9 | 19156 | |
1409cd0b | 19157 | _ACEOF |
5213506e | 19158 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19159 | gcc_cv_math_func_expf=yes |
1409cd0b | 19160 | else |
db9f46a9 | 19161 | gcc_cv_math_func_expf=no |
1409cd0b | 19162 | fi |
5213506e RW |
19163 | rm -f core conftest.err conftest.$ac_objext \ |
19164 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19165 | fi |
db9f46a9 TG |
19166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19167 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19168 | if test $gcc_cv_math_func_expf = yes; then | |
f1cdfa01 | 19169 | |
f38a14ca TG |
19170 | cat >>confdefs.h <<_ACEOF |
19171 | #define HAVE_EXPF 1 | |
19172 | _ACEOF | |
db9f46a9 TG |
19173 | |
19174 | fi | |
1409cd0b | 19175 | |
1409cd0b | 19176 | |
1409cd0b | 19177 | |
db9f46a9 TG |
19178 | |
19179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19180 | $as_echo_n "checking for exp... " >&6; } | |
22e05272 | 19181 | if ${gcc_cv_math_func_exp+:} false; then : |
5213506e | 19182 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19183 | else |
db9f46a9 | 19184 | if test x$gcc_no_link = xyes; then |
22e05272 | 19185 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19186 | fi |
5213506e | 19187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19188 | /* end confdefs.h. */ |
19189 | ||
db9f46a9 TG |
19190 | #ifdef HAVE_COMPLEX_H |
19191 | #include <complex.h> | |
1409cd0b | 19192 | #endif |
db9f46a9 TG |
19193 | #ifdef HAVE_MATH_H |
19194 | #include <math.h> | |
19195 | #endif | |
19196 | ||
19197 | int (*ptr)() = (int (*)())exp; | |
19198 | ||
1409cd0b FXC |
19199 | int |
19200 | main () | |
19201 | { | |
1409cd0b FXC |
19202 | return 0; |
19203 | } | |
db9f46a9 | 19204 | |
1409cd0b | 19205 | _ACEOF |
5213506e | 19206 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19207 | gcc_cv_math_func_exp=yes |
1409cd0b | 19208 | else |
db9f46a9 | 19209 | gcc_cv_math_func_exp=no |
1409cd0b | 19210 | fi |
5213506e RW |
19211 | rm -f core conftest.err conftest.$ac_objext \ |
19212 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19213 | fi |
db9f46a9 TG |
19214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19215 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19216 | if test $gcc_cv_math_func_exp = yes; then | |
f1cdfa01 | 19217 | |
f38a14ca TG |
19218 | cat >>confdefs.h <<_ACEOF |
19219 | #define HAVE_EXP 1 | |
19220 | _ACEOF | |
db9f46a9 TG |
19221 | |
19222 | fi | |
19223 | ||
1409cd0b | 19224 | |
1409cd0b | 19225 | |
1409cd0b | 19226 | |
db9f46a9 TG |
19227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19228 | $as_echo_n "checking for expl... " >&6; } | |
22e05272 | 19229 | if ${gcc_cv_math_func_expl+:} false; then : |
5213506e | 19230 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19231 | else |
db9f46a9 | 19232 | if test x$gcc_no_link = xyes; then |
22e05272 | 19233 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19234 | fi |
5213506e | 19235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19236 | /* end confdefs.h. */ |
19237 | ||
db9f46a9 TG |
19238 | #ifdef HAVE_COMPLEX_H |
19239 | #include <complex.h> | |
19240 | #endif | |
19241 | #ifdef HAVE_MATH_H | |
19242 | #include <math.h> | |
1409cd0b | 19243 | #endif |
db9f46a9 TG |
19244 | |
19245 | int (*ptr)() = (int (*)())expl; | |
19246 | ||
1409cd0b FXC |
19247 | int |
19248 | main () | |
19249 | { | |
1409cd0b FXC |
19250 | return 0; |
19251 | } | |
db9f46a9 | 19252 | |
1409cd0b | 19253 | _ACEOF |
5213506e | 19254 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19255 | gcc_cv_math_func_expl=yes |
1409cd0b | 19256 | else |
db9f46a9 | 19257 | gcc_cv_math_func_expl=no |
1409cd0b | 19258 | fi |
5213506e RW |
19259 | rm -f core conftest.err conftest.$ac_objext \ |
19260 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19261 | fi |
db9f46a9 TG |
19262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19263 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19264 | if test $gcc_cv_math_func_expl = yes; then | |
f1cdfa01 | 19265 | |
f38a14ca TG |
19266 | cat >>confdefs.h <<_ACEOF |
19267 | #define HAVE_EXPL 1 | |
19268 | _ACEOF | |
db9f46a9 TG |
19269 | |
19270 | fi | |
1409cd0b | 19271 | |
1409cd0b | 19272 | |
1409cd0b | 19273 | |
db9f46a9 TG |
19274 | |
19275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19276 | $as_echo_n "checking for cexpf... " >&6; } | |
22e05272 | 19277 | if ${gcc_cv_math_func_cexpf+:} false; then : |
5213506e | 19278 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19279 | else |
db9f46a9 | 19280 | if test x$gcc_no_link = xyes; then |
22e05272 | 19281 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19282 | fi |
5213506e | 19283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19284 | /* end confdefs.h. */ |
19285 | ||
db9f46a9 TG |
19286 | #ifdef HAVE_COMPLEX_H |
19287 | #include <complex.h> | |
1409cd0b | 19288 | #endif |
db9f46a9 TG |
19289 | #ifdef HAVE_MATH_H |
19290 | #include <math.h> | |
19291 | #endif | |
19292 | ||
19293 | int (*ptr)() = (int (*)())cexpf; | |
19294 | ||
1409cd0b FXC |
19295 | int |
19296 | main () | |
19297 | { | |
1409cd0b FXC |
19298 | return 0; |
19299 | } | |
db9f46a9 | 19300 | |
1409cd0b | 19301 | _ACEOF |
5213506e | 19302 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19303 | gcc_cv_math_func_cexpf=yes |
1409cd0b | 19304 | else |
db9f46a9 | 19305 | gcc_cv_math_func_cexpf=no |
1409cd0b | 19306 | fi |
5213506e RW |
19307 | rm -f core conftest.err conftest.$ac_objext \ |
19308 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19309 | fi |
db9f46a9 TG |
19310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19311 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19312 | if test $gcc_cv_math_func_cexpf = yes; then | |
f1cdfa01 | 19313 | |
f38a14ca TG |
19314 | cat >>confdefs.h <<_ACEOF |
19315 | #define HAVE_CEXPF 1 | |
19316 | _ACEOF | |
1409cd0b | 19317 | |
db9f46a9 | 19318 | fi |
1409cd0b | 19319 | |
1409cd0b | 19320 | |
db9f46a9 TG |
19321 | |
19322 | ||
19323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19324 | $as_echo_n "checking for cexp... " >&6; } | |
22e05272 | 19325 | if ${gcc_cv_math_func_cexp+:} false; then : |
5213506e | 19326 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19327 | else |
db9f46a9 | 19328 | if test x$gcc_no_link = xyes; then |
22e05272 | 19329 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19330 | fi |
5213506e | 19331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19332 | /* end confdefs.h. */ |
19333 | ||
db9f46a9 TG |
19334 | #ifdef HAVE_COMPLEX_H |
19335 | #include <complex.h> | |
19336 | #endif | |
19337 | #ifdef HAVE_MATH_H | |
19338 | #include <math.h> | |
1409cd0b | 19339 | #endif |
db9f46a9 TG |
19340 | |
19341 | int (*ptr)() = (int (*)())cexp; | |
19342 | ||
1409cd0b FXC |
19343 | int |
19344 | main () | |
19345 | { | |
1409cd0b FXC |
19346 | return 0; |
19347 | } | |
db9f46a9 | 19348 | |
1409cd0b | 19349 | _ACEOF |
5213506e | 19350 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19351 | gcc_cv_math_func_cexp=yes |
1409cd0b | 19352 | else |
db9f46a9 | 19353 | gcc_cv_math_func_cexp=no |
1409cd0b | 19354 | fi |
5213506e RW |
19355 | rm -f core conftest.err conftest.$ac_objext \ |
19356 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19357 | fi |
db9f46a9 TG |
19358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19359 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19360 | if test $gcc_cv_math_func_cexp = yes; then | |
f1cdfa01 | 19361 | |
f38a14ca TG |
19362 | cat >>confdefs.h <<_ACEOF |
19363 | #define HAVE_CEXP 1 | |
19364 | _ACEOF | |
db9f46a9 TG |
19365 | |
19366 | fi | |
1409cd0b | 19367 | |
1409cd0b | 19368 | |
1409cd0b | 19369 | |
db9f46a9 TG |
19370 | |
19371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19372 | $as_echo_n "checking for cexpl... " >&6; } | |
22e05272 | 19373 | if ${gcc_cv_math_func_cexpl+:} false; then : |
5213506e | 19374 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19375 | else |
db9f46a9 | 19376 | if test x$gcc_no_link = xyes; then |
22e05272 | 19377 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19378 | fi |
5213506e | 19379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19380 | /* end confdefs.h. */ |
19381 | ||
db9f46a9 TG |
19382 | #ifdef HAVE_COMPLEX_H |
19383 | #include <complex.h> | |
1409cd0b | 19384 | #endif |
db9f46a9 TG |
19385 | #ifdef HAVE_MATH_H |
19386 | #include <math.h> | |
19387 | #endif | |
19388 | ||
19389 | int (*ptr)() = (int (*)())cexpl; | |
19390 | ||
1409cd0b FXC |
19391 | int |
19392 | main () | |
19393 | { | |
1409cd0b FXC |
19394 | return 0; |
19395 | } | |
db9f46a9 | 19396 | |
1409cd0b | 19397 | _ACEOF |
5213506e | 19398 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19399 | gcc_cv_math_func_cexpl=yes |
1409cd0b | 19400 | else |
db9f46a9 | 19401 | gcc_cv_math_func_cexpl=no |
1409cd0b | 19402 | fi |
5213506e RW |
19403 | rm -f core conftest.err conftest.$ac_objext \ |
19404 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19405 | fi |
db9f46a9 TG |
19406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19407 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19408 | if test $gcc_cv_math_func_cexpl = yes; then | |
f1cdfa01 | 19409 | |
f38a14ca TG |
19410 | cat >>confdefs.h <<_ACEOF |
19411 | #define HAVE_CEXPL 1 | |
19412 | _ACEOF | |
db9f46a9 TG |
19413 | |
19414 | fi | |
19415 | ||
1409cd0b | 19416 | |
1409cd0b | 19417 | |
1409cd0b | 19418 | |
db9f46a9 TG |
19419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19420 | $as_echo_n "checking for fabsf... " >&6; } | |
22e05272 | 19421 | if ${gcc_cv_math_func_fabsf+:} false; then : |
5213506e | 19422 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19423 | else |
db9f46a9 | 19424 | if test x$gcc_no_link = xyes; then |
22e05272 | 19425 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19426 | fi |
5213506e | 19427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19428 | /* end confdefs.h. */ |
19429 | ||
db9f46a9 TG |
19430 | #ifdef HAVE_COMPLEX_H |
19431 | #include <complex.h> | |
19432 | #endif | |
19433 | #ifdef HAVE_MATH_H | |
19434 | #include <math.h> | |
1409cd0b | 19435 | #endif |
db9f46a9 TG |
19436 | |
19437 | int (*ptr)() = (int (*)())fabsf; | |
19438 | ||
1409cd0b FXC |
19439 | int |
19440 | main () | |
19441 | { | |
1409cd0b FXC |
19442 | return 0; |
19443 | } | |
db9f46a9 | 19444 | |
1409cd0b | 19445 | _ACEOF |
5213506e | 19446 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19447 | gcc_cv_math_func_fabsf=yes |
1409cd0b | 19448 | else |
db9f46a9 | 19449 | gcc_cv_math_func_fabsf=no |
1409cd0b | 19450 | fi |
5213506e RW |
19451 | rm -f core conftest.err conftest.$ac_objext \ |
19452 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19453 | fi |
db9f46a9 TG |
19454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19455 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19456 | if test $gcc_cv_math_func_fabsf = yes; then | |
f1cdfa01 | 19457 | |
f38a14ca TG |
19458 | cat >>confdefs.h <<_ACEOF |
19459 | #define HAVE_FABSF 1 | |
19460 | _ACEOF | |
db9f46a9 TG |
19461 | |
19462 | fi | |
1409cd0b | 19463 | |
1409cd0b | 19464 | |
1409cd0b | 19465 | |
db9f46a9 TG |
19466 | |
19467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19468 | $as_echo_n "checking for fabs... " >&6; } | |
22e05272 | 19469 | if ${gcc_cv_math_func_fabs+:} false; then : |
5213506e | 19470 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19471 | else |
db9f46a9 | 19472 | if test x$gcc_no_link = xyes; then |
22e05272 | 19473 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19474 | fi |
5213506e | 19475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19476 | /* end confdefs.h. */ |
19477 | ||
db9f46a9 TG |
19478 | #ifdef HAVE_COMPLEX_H |
19479 | #include <complex.h> | |
1409cd0b | 19480 | #endif |
db9f46a9 TG |
19481 | #ifdef HAVE_MATH_H |
19482 | #include <math.h> | |
19483 | #endif | |
19484 | ||
19485 | int (*ptr)() = (int (*)())fabs; | |
19486 | ||
1409cd0b FXC |
19487 | int |
19488 | main () | |
19489 | { | |
1409cd0b FXC |
19490 | return 0; |
19491 | } | |
db9f46a9 | 19492 | |
1409cd0b | 19493 | _ACEOF |
5213506e | 19494 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19495 | gcc_cv_math_func_fabs=yes |
1409cd0b | 19496 | else |
db9f46a9 | 19497 | gcc_cv_math_func_fabs=no |
1409cd0b | 19498 | fi |
5213506e RW |
19499 | rm -f core conftest.err conftest.$ac_objext \ |
19500 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19501 | fi |
db9f46a9 TG |
19502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19503 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19504 | if test $gcc_cv_math_func_fabs = yes; then | |
f1cdfa01 | 19505 | |
f38a14ca TG |
19506 | cat >>confdefs.h <<_ACEOF |
19507 | #define HAVE_FABS 1 | |
19508 | _ACEOF | |
1409cd0b | 19509 | |
db9f46a9 | 19510 | fi |
1409cd0b | 19511 | |
1409cd0b | 19512 | |
db9f46a9 TG |
19513 | |
19514 | ||
19515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19516 | $as_echo_n "checking for fabsl... " >&6; } | |
22e05272 | 19517 | if ${gcc_cv_math_func_fabsl+:} false; then : |
5213506e | 19518 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19519 | else |
db9f46a9 | 19520 | if test x$gcc_no_link = xyes; then |
22e05272 | 19521 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19522 | fi |
5213506e | 19523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19524 | /* end confdefs.h. */ |
19525 | ||
db9f46a9 TG |
19526 | #ifdef HAVE_COMPLEX_H |
19527 | #include <complex.h> | |
19528 | #endif | |
19529 | #ifdef HAVE_MATH_H | |
19530 | #include <math.h> | |
1409cd0b | 19531 | #endif |
db9f46a9 TG |
19532 | |
19533 | int (*ptr)() = (int (*)())fabsl; | |
19534 | ||
1409cd0b FXC |
19535 | int |
19536 | main () | |
19537 | { | |
1409cd0b FXC |
19538 | return 0; |
19539 | } | |
db9f46a9 | 19540 | |
1409cd0b | 19541 | _ACEOF |
5213506e | 19542 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19543 | gcc_cv_math_func_fabsl=yes |
1409cd0b | 19544 | else |
db9f46a9 | 19545 | gcc_cv_math_func_fabsl=no |
1409cd0b | 19546 | fi |
5213506e RW |
19547 | rm -f core conftest.err conftest.$ac_objext \ |
19548 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19549 | fi |
db9f46a9 TG |
19550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19551 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19552 | if test $gcc_cv_math_func_fabsl = yes; then | |
f1cdfa01 | 19553 | |
f38a14ca TG |
19554 | cat >>confdefs.h <<_ACEOF |
19555 | #define HAVE_FABSL 1 | |
19556 | _ACEOF | |
db9f46a9 TG |
19557 | |
19558 | fi | |
1409cd0b | 19559 | |
1409cd0b | 19560 | |
1409cd0b | 19561 | |
db9f46a9 TG |
19562 | |
19563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19564 | $as_echo_n "checking for cabsf... " >&6; } | |
22e05272 | 19565 | if ${gcc_cv_math_func_cabsf+:} false; then : |
5213506e | 19566 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19567 | else |
db9f46a9 | 19568 | if test x$gcc_no_link = xyes; then |
22e05272 | 19569 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19570 | fi |
5213506e | 19571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19572 | /* end confdefs.h. */ |
19573 | ||
db9f46a9 TG |
19574 | #ifdef HAVE_COMPLEX_H |
19575 | #include <complex.h> | |
1409cd0b | 19576 | #endif |
db9f46a9 TG |
19577 | #ifdef HAVE_MATH_H |
19578 | #include <math.h> | |
19579 | #endif | |
19580 | ||
19581 | int (*ptr)() = (int (*)())cabsf; | |
19582 | ||
1409cd0b FXC |
19583 | int |
19584 | main () | |
19585 | { | |
1409cd0b FXC |
19586 | return 0; |
19587 | } | |
db9f46a9 | 19588 | |
1409cd0b | 19589 | _ACEOF |
5213506e | 19590 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19591 | gcc_cv_math_func_cabsf=yes |
1409cd0b | 19592 | else |
db9f46a9 | 19593 | gcc_cv_math_func_cabsf=no |
1409cd0b | 19594 | fi |
5213506e RW |
19595 | rm -f core conftest.err conftest.$ac_objext \ |
19596 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19597 | fi |
db9f46a9 TG |
19598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19599 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19600 | if test $gcc_cv_math_func_cabsf = yes; then | |
f1cdfa01 | 19601 | |
f38a14ca TG |
19602 | cat >>confdefs.h <<_ACEOF |
19603 | #define HAVE_CABSF 1 | |
19604 | _ACEOF | |
db9f46a9 TG |
19605 | |
19606 | fi | |
19607 | ||
1409cd0b | 19608 | |
1409cd0b | 19609 | |
1409cd0b | 19610 | |
db9f46a9 TG |
19611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19612 | $as_echo_n "checking for cabs... " >&6; } | |
22e05272 | 19613 | if ${gcc_cv_math_func_cabs+:} false; then : |
5213506e | 19614 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19615 | else |
db9f46a9 | 19616 | if test x$gcc_no_link = xyes; then |
22e05272 | 19617 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19618 | fi |
5213506e | 19619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19620 | /* end confdefs.h. */ |
19621 | ||
db9f46a9 TG |
19622 | #ifdef HAVE_COMPLEX_H |
19623 | #include <complex.h> | |
19624 | #endif | |
19625 | #ifdef HAVE_MATH_H | |
19626 | #include <math.h> | |
1409cd0b | 19627 | #endif |
db9f46a9 TG |
19628 | |
19629 | int (*ptr)() = (int (*)())cabs; | |
19630 | ||
1409cd0b FXC |
19631 | int |
19632 | main () | |
19633 | { | |
1409cd0b FXC |
19634 | return 0; |
19635 | } | |
db9f46a9 | 19636 | |
1409cd0b | 19637 | _ACEOF |
5213506e | 19638 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19639 | gcc_cv_math_func_cabs=yes |
1409cd0b | 19640 | else |
db9f46a9 | 19641 | gcc_cv_math_func_cabs=no |
1409cd0b | 19642 | fi |
5213506e RW |
19643 | rm -f core conftest.err conftest.$ac_objext \ |
19644 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19645 | fi |
db9f46a9 TG |
19646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19647 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19648 | if test $gcc_cv_math_func_cabs = yes; then | |
f1cdfa01 | 19649 | |
f38a14ca TG |
19650 | cat >>confdefs.h <<_ACEOF |
19651 | #define HAVE_CABS 1 | |
19652 | _ACEOF | |
db9f46a9 TG |
19653 | |
19654 | fi | |
1409cd0b | 19655 | |
1409cd0b | 19656 | |
1409cd0b | 19657 | |
db9f46a9 TG |
19658 | |
19659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19660 | $as_echo_n "checking for cabsl... " >&6; } | |
22e05272 | 19661 | if ${gcc_cv_math_func_cabsl+:} false; then : |
5213506e | 19662 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19663 | else |
db9f46a9 | 19664 | if test x$gcc_no_link = xyes; then |
22e05272 | 19665 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19666 | fi |
5213506e | 19667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19668 | /* end confdefs.h. */ |
19669 | ||
db9f46a9 TG |
19670 | #ifdef HAVE_COMPLEX_H |
19671 | #include <complex.h> | |
1409cd0b | 19672 | #endif |
db9f46a9 TG |
19673 | #ifdef HAVE_MATH_H |
19674 | #include <math.h> | |
19675 | #endif | |
19676 | ||
19677 | int (*ptr)() = (int (*)())cabsl; | |
19678 | ||
1409cd0b FXC |
19679 | int |
19680 | main () | |
19681 | { | |
1409cd0b FXC |
19682 | return 0; |
19683 | } | |
db9f46a9 | 19684 | |
1409cd0b | 19685 | _ACEOF |
5213506e | 19686 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19687 | gcc_cv_math_func_cabsl=yes |
1409cd0b | 19688 | else |
db9f46a9 | 19689 | gcc_cv_math_func_cabsl=no |
1409cd0b | 19690 | fi |
5213506e RW |
19691 | rm -f core conftest.err conftest.$ac_objext \ |
19692 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19693 | fi |
db9f46a9 TG |
19694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19695 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19696 | if test $gcc_cv_math_func_cabsl = yes; then | |
f1cdfa01 | 19697 | |
f38a14ca TG |
19698 | cat >>confdefs.h <<_ACEOF |
19699 | #define HAVE_CABSL 1 | |
19700 | _ACEOF | |
1409cd0b | 19701 | |
db9f46a9 | 19702 | fi |
1409cd0b | 19703 | |
1409cd0b | 19704 | |
db9f46a9 TG |
19705 | |
19706 | ||
19707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19708 | $as_echo_n "checking for floorf... " >&6; } | |
22e05272 | 19709 | if ${gcc_cv_math_func_floorf+:} false; then : |
5213506e | 19710 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19711 | else |
db9f46a9 | 19712 | if test x$gcc_no_link = xyes; then |
22e05272 | 19713 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19714 | fi |
5213506e | 19715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19716 | /* end confdefs.h. */ |
19717 | ||
db9f46a9 TG |
19718 | #ifdef HAVE_COMPLEX_H |
19719 | #include <complex.h> | |
19720 | #endif | |
19721 | #ifdef HAVE_MATH_H | |
19722 | #include <math.h> | |
1409cd0b | 19723 | #endif |
db9f46a9 TG |
19724 | |
19725 | int (*ptr)() = (int (*)())floorf; | |
19726 | ||
1409cd0b FXC |
19727 | int |
19728 | main () | |
19729 | { | |
5213506e RW |
19730 | return 0; |
19731 | } | |
db9f46a9 | 19732 | |
5213506e RW |
19733 | _ACEOF |
19734 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 19735 | gcc_cv_math_func_floorf=yes |
1409cd0b | 19736 | else |
db9f46a9 | 19737 | gcc_cv_math_func_floorf=no |
1409cd0b | 19738 | fi |
5213506e RW |
19739 | rm -f core conftest.err conftest.$ac_objext \ |
19740 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19741 | fi |
db9f46a9 TG |
19742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19743 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19744 | if test $gcc_cv_math_func_floorf = yes; then | |
f1cdfa01 | 19745 | |
f38a14ca TG |
19746 | cat >>confdefs.h <<_ACEOF |
19747 | #define HAVE_FLOORF 1 | |
19748 | _ACEOF | |
db9f46a9 TG |
19749 | |
19750 | fi | |
1409cd0b | 19751 | |
1409cd0b | 19752 | |
1409cd0b | 19753 | |
db9f46a9 TG |
19754 | |
19755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19756 | $as_echo_n "checking for floor... " >&6; } | |
22e05272 | 19757 | if ${gcc_cv_math_func_floor+:} false; then : |
5213506e | 19758 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19759 | else |
db9f46a9 | 19760 | if test x$gcc_no_link = xyes; then |
22e05272 | 19761 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19762 | fi |
5213506e | 19763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19764 | /* end confdefs.h. */ |
19765 | ||
db9f46a9 TG |
19766 | #ifdef HAVE_COMPLEX_H |
19767 | #include <complex.h> | |
1409cd0b | 19768 | #endif |
db9f46a9 TG |
19769 | #ifdef HAVE_MATH_H |
19770 | #include <math.h> | |
19771 | #endif | |
19772 | ||
19773 | int (*ptr)() = (int (*)())floor; | |
19774 | ||
1409cd0b FXC |
19775 | int |
19776 | main () | |
19777 | { | |
1409cd0b FXC |
19778 | return 0; |
19779 | } | |
db9f46a9 | 19780 | |
1409cd0b | 19781 | _ACEOF |
5213506e | 19782 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19783 | gcc_cv_math_func_floor=yes |
1409cd0b | 19784 | else |
db9f46a9 | 19785 | gcc_cv_math_func_floor=no |
1409cd0b | 19786 | fi |
5213506e RW |
19787 | rm -f core conftest.err conftest.$ac_objext \ |
19788 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19789 | fi |
db9f46a9 TG |
19790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19791 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19792 | if test $gcc_cv_math_func_floor = yes; then | |
f1cdfa01 | 19793 | |
f38a14ca TG |
19794 | cat >>confdefs.h <<_ACEOF |
19795 | #define HAVE_FLOOR 1 | |
19796 | _ACEOF | |
db9f46a9 TG |
19797 | |
19798 | fi | |
19799 | ||
1409cd0b | 19800 | |
1409cd0b | 19801 | |
1409cd0b | 19802 | |
db9f46a9 TG |
19803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19804 | $as_echo_n "checking for floorl... " >&6; } | |
22e05272 | 19805 | if ${gcc_cv_math_func_floorl+:} false; then : |
5213506e | 19806 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19807 | else |
db9f46a9 | 19808 | if test x$gcc_no_link = xyes; then |
22e05272 | 19809 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 19810 | fi |
5213506e | 19811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
19812 | /* end confdefs.h. */ |
19813 | ||
db9f46a9 TG |
19814 | #ifdef HAVE_COMPLEX_H |
19815 | #include <complex.h> | |
19816 | #endif | |
19817 | #ifdef HAVE_MATH_H | |
19818 | #include <math.h> | |
eb647f7d | 19819 | #endif |
db9f46a9 TG |
19820 | |
19821 | int (*ptr)() = (int (*)())floorl; | |
19822 | ||
eb647f7d FXC |
19823 | int |
19824 | main () | |
19825 | { | |
eb647f7d FXC |
19826 | return 0; |
19827 | } | |
db9f46a9 | 19828 | |
eb647f7d | 19829 | _ACEOF |
5213506e | 19830 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19831 | gcc_cv_math_func_floorl=yes |
eb647f7d | 19832 | else |
db9f46a9 | 19833 | gcc_cv_math_func_floorl=no |
eb647f7d | 19834 | fi |
5213506e RW |
19835 | rm -f core conftest.err conftest.$ac_objext \ |
19836 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 19837 | fi |
db9f46a9 TG |
19838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
19839 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
19840 | if test $gcc_cv_math_func_floorl = yes; then | |
f1cdfa01 | 19841 | |
f38a14ca TG |
19842 | cat >>confdefs.h <<_ACEOF |
19843 | #define HAVE_FLOORL 1 | |
19844 | _ACEOF | |
db9f46a9 TG |
19845 | |
19846 | fi | |
eb647f7d | 19847 | |
eb647f7d | 19848 | |
eb647f7d | 19849 | |
db9f46a9 | 19850 | |
1868599f JJ |
19851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 |
19852 | $as_echo_n "checking for fmaf... " >&6; } | |
19853 | if ${gcc_cv_math_func_fmaf+:} false; then : | |
19854 | $as_echo_n "(cached) " >&6 | |
19855 | else | |
19856 | if test x$gcc_no_link = xyes; then | |
19857 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
19858 | fi | |
19859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19860 | /* end confdefs.h. */ | |
19861 | ||
19862 | #ifdef HAVE_COMPLEX_H | |
19863 | #include <complex.h> | |
19864 | #endif | |
19865 | #ifdef HAVE_MATH_H | |
19866 | #include <math.h> | |
19867 | #endif | |
19868 | ||
19869 | int (*ptr)() = (int (*)())fmaf; | |
19870 | ||
19871 | int | |
19872 | main () | |
19873 | { | |
19874 | return 0; | |
19875 | } | |
19876 | ||
19877 | _ACEOF | |
19878 | if ac_fn_c_try_link "$LINENO"; then : | |
19879 | gcc_cv_math_func_fmaf=yes | |
19880 | else | |
19881 | gcc_cv_math_func_fmaf=no | |
19882 | fi | |
19883 | rm -f core conftest.err conftest.$ac_objext \ | |
19884 | conftest$ac_exeext conftest.$ac_ext | |
19885 | fi | |
19886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 | |
19887 | $as_echo "$gcc_cv_math_func_fmaf" >&6; } | |
19888 | if test $gcc_cv_math_func_fmaf = yes; then | |
19889 | ||
19890 | cat >>confdefs.h <<_ACEOF | |
19891 | #define HAVE_FMAF 1 | |
19892 | _ACEOF | |
19893 | ||
19894 | fi | |
19895 | ||
19896 | ||
19897 | ||
19898 | ||
19899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 | |
19900 | $as_echo_n "checking for fma... " >&6; } | |
19901 | if ${gcc_cv_math_func_fma+:} false; then : | |
19902 | $as_echo_n "(cached) " >&6 | |
19903 | else | |
19904 | if test x$gcc_no_link = xyes; then | |
19905 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
19906 | fi | |
19907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19908 | /* end confdefs.h. */ | |
19909 | ||
19910 | #ifdef HAVE_COMPLEX_H | |
19911 | #include <complex.h> | |
19912 | #endif | |
19913 | #ifdef HAVE_MATH_H | |
19914 | #include <math.h> | |
19915 | #endif | |
19916 | ||
19917 | int (*ptr)() = (int (*)())fma; | |
19918 | ||
19919 | int | |
19920 | main () | |
19921 | { | |
19922 | return 0; | |
19923 | } | |
19924 | ||
19925 | _ACEOF | |
19926 | if ac_fn_c_try_link "$LINENO"; then : | |
19927 | gcc_cv_math_func_fma=yes | |
19928 | else | |
19929 | gcc_cv_math_func_fma=no | |
19930 | fi | |
19931 | rm -f core conftest.err conftest.$ac_objext \ | |
19932 | conftest$ac_exeext conftest.$ac_ext | |
19933 | fi | |
19934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 | |
19935 | $as_echo "$gcc_cv_math_func_fma" >&6; } | |
19936 | if test $gcc_cv_math_func_fma = yes; then | |
19937 | ||
19938 | cat >>confdefs.h <<_ACEOF | |
19939 | #define HAVE_FMA 1 | |
19940 | _ACEOF | |
19941 | ||
19942 | fi | |
19943 | ||
19944 | ||
19945 | ||
19946 | ||
19947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 | |
19948 | $as_echo_n "checking for fmal... " >&6; } | |
19949 | if ${gcc_cv_math_func_fmal+:} false; then : | |
19950 | $as_echo_n "(cached) " >&6 | |
19951 | else | |
19952 | if test x$gcc_no_link = xyes; then | |
19953 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
19954 | fi | |
19955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19956 | /* end confdefs.h. */ | |
19957 | ||
19958 | #ifdef HAVE_COMPLEX_H | |
19959 | #include <complex.h> | |
19960 | #endif | |
19961 | #ifdef HAVE_MATH_H | |
19962 | #include <math.h> | |
19963 | #endif | |
19964 | ||
19965 | int (*ptr)() = (int (*)())fmal; | |
19966 | ||
19967 | int | |
19968 | main () | |
19969 | { | |
19970 | return 0; | |
19971 | } | |
19972 | ||
19973 | _ACEOF | |
19974 | if ac_fn_c_try_link "$LINENO"; then : | |
19975 | gcc_cv_math_func_fmal=yes | |
19976 | else | |
19977 | gcc_cv_math_func_fmal=no | |
19978 | fi | |
19979 | rm -f core conftest.err conftest.$ac_objext \ | |
19980 | conftest$ac_exeext conftest.$ac_ext | |
19981 | fi | |
19982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 | |
19983 | $as_echo "$gcc_cv_math_func_fmal" >&6; } | |
19984 | if test $gcc_cv_math_func_fmal = yes; then | |
19985 | ||
19986 | cat >>confdefs.h <<_ACEOF | |
19987 | #define HAVE_FMAL 1 | |
19988 | _ACEOF | |
19989 | ||
19990 | fi | |
19991 | ||
19992 | ||
19993 | ||
19994 | ||
db9f46a9 TG |
19995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 |
19996 | $as_echo_n "checking for fmodf... " >&6; } | |
22e05272 | 19997 | if ${gcc_cv_math_func_fmodf+:} false; then : |
5213506e | 19998 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19999 | else |
db9f46a9 | 20000 | if test x$gcc_no_link = xyes; then |
22e05272 | 20001 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20002 | fi |
5213506e | 20003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20004 | /* end confdefs.h. */ |
20005 | ||
db9f46a9 TG |
20006 | #ifdef HAVE_COMPLEX_H |
20007 | #include <complex.h> | |
eb647f7d | 20008 | #endif |
db9f46a9 TG |
20009 | #ifdef HAVE_MATH_H |
20010 | #include <math.h> | |
20011 | #endif | |
20012 | ||
20013 | int (*ptr)() = (int (*)())fmodf; | |
20014 | ||
eb647f7d FXC |
20015 | int |
20016 | main () | |
20017 | { | |
eb647f7d FXC |
20018 | return 0; |
20019 | } | |
db9f46a9 | 20020 | |
eb647f7d | 20021 | _ACEOF |
5213506e | 20022 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20023 | gcc_cv_math_func_fmodf=yes |
eb647f7d | 20024 | else |
db9f46a9 | 20025 | gcc_cv_math_func_fmodf=no |
eb647f7d | 20026 | fi |
5213506e RW |
20027 | rm -f core conftest.err conftest.$ac_objext \ |
20028 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20029 | fi |
db9f46a9 TG |
20030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
20031 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
20032 | if test $gcc_cv_math_func_fmodf = yes; then | |
f1cdfa01 | 20033 | |
f38a14ca TG |
20034 | cat >>confdefs.h <<_ACEOF |
20035 | #define HAVE_FMODF 1 | |
20036 | _ACEOF | |
eb647f7d | 20037 | |
db9f46a9 | 20038 | fi |
eb647f7d | 20039 | |
eb647f7d | 20040 | |
db9f46a9 TG |
20041 | |
20042 | ||
20043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
20044 | $as_echo_n "checking for fmod... " >&6; } | |
22e05272 | 20045 | if ${gcc_cv_math_func_fmod+:} false; then : |
5213506e | 20046 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20047 | else |
db9f46a9 | 20048 | if test x$gcc_no_link = xyes; then |
22e05272 | 20049 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20050 | fi |
5213506e | 20051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20052 | /* end confdefs.h. */ |
20053 | ||
db9f46a9 TG |
20054 | #ifdef HAVE_COMPLEX_H |
20055 | #include <complex.h> | |
20056 | #endif | |
20057 | #ifdef HAVE_MATH_H | |
20058 | #include <math.h> | |
eb647f7d | 20059 | #endif |
db9f46a9 TG |
20060 | |
20061 | int (*ptr)() = (int (*)())fmod; | |
20062 | ||
eb647f7d FXC |
20063 | int |
20064 | main () | |
20065 | { | |
eb647f7d FXC |
20066 | return 0; |
20067 | } | |
db9f46a9 | 20068 | |
eb647f7d | 20069 | _ACEOF |
5213506e | 20070 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20071 | gcc_cv_math_func_fmod=yes |
eb647f7d | 20072 | else |
db9f46a9 | 20073 | gcc_cv_math_func_fmod=no |
eb647f7d | 20074 | fi |
5213506e RW |
20075 | rm -f core conftest.err conftest.$ac_objext \ |
20076 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20077 | fi |
db9f46a9 TG |
20078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
20079 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
20080 | if test $gcc_cv_math_func_fmod = yes; then | |
f1cdfa01 | 20081 | |
f38a14ca TG |
20082 | cat >>confdefs.h <<_ACEOF |
20083 | #define HAVE_FMOD 1 | |
20084 | _ACEOF | |
db9f46a9 TG |
20085 | |
20086 | fi | |
eb647f7d | 20087 | |
eb647f7d | 20088 | |
eb647f7d | 20089 | |
db9f46a9 TG |
20090 | |
20091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
20092 | $as_echo_n "checking for fmodl... " >&6; } | |
22e05272 | 20093 | if ${gcc_cv_math_func_fmodl+:} false; then : |
5213506e | 20094 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20095 | else |
db9f46a9 | 20096 | if test x$gcc_no_link = xyes; then |
22e05272 | 20097 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20098 | fi |
5213506e | 20099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20100 | /* end confdefs.h. */ |
20101 | ||
db9f46a9 TG |
20102 | #ifdef HAVE_COMPLEX_H |
20103 | #include <complex.h> | |
1409cd0b | 20104 | #endif |
db9f46a9 TG |
20105 | #ifdef HAVE_MATH_H |
20106 | #include <math.h> | |
20107 | #endif | |
20108 | ||
20109 | int (*ptr)() = (int (*)())fmodl; | |
20110 | ||
1409cd0b FXC |
20111 | int |
20112 | main () | |
20113 | { | |
1409cd0b FXC |
20114 | return 0; |
20115 | } | |
db9f46a9 | 20116 | |
1409cd0b | 20117 | _ACEOF |
5213506e | 20118 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20119 | gcc_cv_math_func_fmodl=yes |
1409cd0b | 20120 | else |
db9f46a9 | 20121 | gcc_cv_math_func_fmodl=no |
1409cd0b | 20122 | fi |
5213506e RW |
20123 | rm -f core conftest.err conftest.$ac_objext \ |
20124 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20125 | fi |
db9f46a9 TG |
20126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
20127 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
20128 | if test $gcc_cv_math_func_fmodl = yes; then | |
f1cdfa01 | 20129 | |
f38a14ca TG |
20130 | cat >>confdefs.h <<_ACEOF |
20131 | #define HAVE_FMODL 1 | |
20132 | _ACEOF | |
db9f46a9 TG |
20133 | |
20134 | fi | |
20135 | ||
1409cd0b | 20136 | |
1409cd0b | 20137 | |
1409cd0b | 20138 | |
db9f46a9 TG |
20139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
20140 | $as_echo_n "checking for frexpf... " >&6; } | |
22e05272 | 20141 | if ${gcc_cv_math_func_frexpf+:} false; then : |
5213506e | 20142 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20143 | else |
db9f46a9 | 20144 | if test x$gcc_no_link = xyes; then |
22e05272 | 20145 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20146 | fi |
5213506e | 20147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20148 | /* end confdefs.h. */ |
20149 | ||
db9f46a9 TG |
20150 | #ifdef HAVE_COMPLEX_H |
20151 | #include <complex.h> | |
20152 | #endif | |
20153 | #ifdef HAVE_MATH_H | |
20154 | #include <math.h> | |
1409cd0b | 20155 | #endif |
db9f46a9 TG |
20156 | |
20157 | int (*ptr)() = (int (*)())frexpf; | |
20158 | ||
1409cd0b FXC |
20159 | int |
20160 | main () | |
20161 | { | |
1409cd0b FXC |
20162 | return 0; |
20163 | } | |
db9f46a9 | 20164 | |
1409cd0b | 20165 | _ACEOF |
5213506e | 20166 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20167 | gcc_cv_math_func_frexpf=yes |
1409cd0b | 20168 | else |
db9f46a9 | 20169 | gcc_cv_math_func_frexpf=no |
1409cd0b | 20170 | fi |
5213506e RW |
20171 | rm -f core conftest.err conftest.$ac_objext \ |
20172 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20173 | fi |
db9f46a9 TG |
20174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20175 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20176 | if test $gcc_cv_math_func_frexpf = yes; then | |
f1cdfa01 | 20177 | |
f38a14ca TG |
20178 | cat >>confdefs.h <<_ACEOF |
20179 | #define HAVE_FREXPF 1 | |
20180 | _ACEOF | |
db9f46a9 TG |
20181 | |
20182 | fi | |
1409cd0b | 20183 | |
1409cd0b | 20184 | |
1409cd0b | 20185 | |
db9f46a9 TG |
20186 | |
20187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20188 | $as_echo_n "checking for frexp... " >&6; } | |
22e05272 | 20189 | if ${gcc_cv_math_func_frexp+:} false; then : |
5213506e | 20190 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20191 | else |
db9f46a9 | 20192 | if test x$gcc_no_link = xyes; then |
22e05272 | 20193 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20194 | fi |
5213506e | 20195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20196 | /* end confdefs.h. */ |
20197 | ||
db9f46a9 TG |
20198 | #ifdef HAVE_COMPLEX_H |
20199 | #include <complex.h> | |
1409cd0b | 20200 | #endif |
db9f46a9 TG |
20201 | #ifdef HAVE_MATH_H |
20202 | #include <math.h> | |
20203 | #endif | |
20204 | ||
20205 | int (*ptr)() = (int (*)())frexp; | |
20206 | ||
1409cd0b FXC |
20207 | int |
20208 | main () | |
20209 | { | |
1409cd0b FXC |
20210 | return 0; |
20211 | } | |
db9f46a9 | 20212 | |
1409cd0b | 20213 | _ACEOF |
5213506e | 20214 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20215 | gcc_cv_math_func_frexp=yes |
1409cd0b | 20216 | else |
db9f46a9 | 20217 | gcc_cv_math_func_frexp=no |
1409cd0b | 20218 | fi |
5213506e RW |
20219 | rm -f core conftest.err conftest.$ac_objext \ |
20220 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20221 | fi |
db9f46a9 TG |
20222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20223 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20224 | if test $gcc_cv_math_func_frexp = yes; then | |
f1cdfa01 | 20225 | |
f38a14ca TG |
20226 | cat >>confdefs.h <<_ACEOF |
20227 | #define HAVE_FREXP 1 | |
20228 | _ACEOF | |
1409cd0b | 20229 | |
db9f46a9 | 20230 | fi |
1409cd0b | 20231 | |
1409cd0b | 20232 | |
db9f46a9 TG |
20233 | |
20234 | ||
20235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20236 | $as_echo_n "checking for frexpl... " >&6; } | |
22e05272 | 20237 | if ${gcc_cv_math_func_frexpl+:} false; then : |
5213506e | 20238 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20239 | else |
db9f46a9 | 20240 | if test x$gcc_no_link = xyes; then |
22e05272 | 20241 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20242 | fi |
5213506e | 20243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20244 | /* end confdefs.h. */ |
20245 | ||
db9f46a9 TG |
20246 | #ifdef HAVE_COMPLEX_H |
20247 | #include <complex.h> | |
20248 | #endif | |
20249 | #ifdef HAVE_MATH_H | |
20250 | #include <math.h> | |
1409cd0b | 20251 | #endif |
db9f46a9 TG |
20252 | |
20253 | int (*ptr)() = (int (*)())frexpl; | |
20254 | ||
1409cd0b FXC |
20255 | int |
20256 | main () | |
20257 | { | |
1409cd0b FXC |
20258 | return 0; |
20259 | } | |
db9f46a9 | 20260 | |
1409cd0b | 20261 | _ACEOF |
5213506e | 20262 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20263 | gcc_cv_math_func_frexpl=yes |
1409cd0b | 20264 | else |
db9f46a9 | 20265 | gcc_cv_math_func_frexpl=no |
1409cd0b | 20266 | fi |
5213506e RW |
20267 | rm -f core conftest.err conftest.$ac_objext \ |
20268 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20269 | fi |
db9f46a9 TG |
20270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20271 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20272 | if test $gcc_cv_math_func_frexpl = yes; then | |
f1cdfa01 | 20273 | |
f38a14ca TG |
20274 | cat >>confdefs.h <<_ACEOF |
20275 | #define HAVE_FREXPL 1 | |
20276 | _ACEOF | |
db9f46a9 TG |
20277 | |
20278 | fi | |
1409cd0b | 20279 | |
1409cd0b | 20280 | |
1409cd0b | 20281 | |
db9f46a9 TG |
20282 | |
20283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20284 | $as_echo_n "checking for hypotf... " >&6; } | |
22e05272 | 20285 | if ${gcc_cv_math_func_hypotf+:} false; then : |
5213506e | 20286 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20287 | else |
db9f46a9 | 20288 | if test x$gcc_no_link = xyes; then |
22e05272 | 20289 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20290 | fi |
5213506e | 20291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20292 | /* end confdefs.h. */ |
20293 | ||
db9f46a9 TG |
20294 | #ifdef HAVE_COMPLEX_H |
20295 | #include <complex.h> | |
1409cd0b | 20296 | #endif |
db9f46a9 TG |
20297 | #ifdef HAVE_MATH_H |
20298 | #include <math.h> | |
20299 | #endif | |
20300 | ||
20301 | int (*ptr)() = (int (*)())hypotf; | |
20302 | ||
1409cd0b FXC |
20303 | int |
20304 | main () | |
20305 | { | |
1409cd0b FXC |
20306 | return 0; |
20307 | } | |
db9f46a9 | 20308 | |
1409cd0b | 20309 | _ACEOF |
5213506e | 20310 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20311 | gcc_cv_math_func_hypotf=yes |
1409cd0b | 20312 | else |
db9f46a9 | 20313 | gcc_cv_math_func_hypotf=no |
1409cd0b | 20314 | fi |
5213506e RW |
20315 | rm -f core conftest.err conftest.$ac_objext \ |
20316 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20317 | fi |
db9f46a9 TG |
20318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20319 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20320 | if test $gcc_cv_math_func_hypotf = yes; then | |
f1cdfa01 | 20321 | |
f38a14ca TG |
20322 | cat >>confdefs.h <<_ACEOF |
20323 | #define HAVE_HYPOTF 1 | |
20324 | _ACEOF | |
db9f46a9 TG |
20325 | |
20326 | fi | |
20327 | ||
1409cd0b | 20328 | |
1409cd0b | 20329 | |
1409cd0b | 20330 | |
db9f46a9 TG |
20331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20332 | $as_echo_n "checking for hypot... " >&6; } | |
22e05272 | 20333 | if ${gcc_cv_math_func_hypot+:} false; then : |
5213506e | 20334 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20335 | else |
db9f46a9 | 20336 | if test x$gcc_no_link = xyes; then |
22e05272 | 20337 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20338 | fi |
5213506e | 20339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20340 | /* end confdefs.h. */ |
20341 | ||
db9f46a9 TG |
20342 | #ifdef HAVE_COMPLEX_H |
20343 | #include <complex.h> | |
20344 | #endif | |
20345 | #ifdef HAVE_MATH_H | |
20346 | #include <math.h> | |
1409cd0b | 20347 | #endif |
db9f46a9 TG |
20348 | |
20349 | int (*ptr)() = (int (*)())hypot; | |
20350 | ||
1409cd0b FXC |
20351 | int |
20352 | main () | |
20353 | { | |
1409cd0b FXC |
20354 | return 0; |
20355 | } | |
db9f46a9 | 20356 | |
1409cd0b | 20357 | _ACEOF |
5213506e | 20358 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20359 | gcc_cv_math_func_hypot=yes |
1409cd0b | 20360 | else |
db9f46a9 | 20361 | gcc_cv_math_func_hypot=no |
1409cd0b | 20362 | fi |
5213506e RW |
20363 | rm -f core conftest.err conftest.$ac_objext \ |
20364 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20365 | fi |
db9f46a9 TG |
20366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20367 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20368 | if test $gcc_cv_math_func_hypot = yes; then | |
f1cdfa01 | 20369 | |
f38a14ca TG |
20370 | cat >>confdefs.h <<_ACEOF |
20371 | #define HAVE_HYPOT 1 | |
20372 | _ACEOF | |
db9f46a9 TG |
20373 | |
20374 | fi | |
1409cd0b | 20375 | |
1409cd0b | 20376 | |
1409cd0b | 20377 | |
db9f46a9 TG |
20378 | |
20379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20380 | $as_echo_n "checking for hypotl... " >&6; } | |
22e05272 | 20381 | if ${gcc_cv_math_func_hypotl+:} false; then : |
5213506e | 20382 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20383 | else |
db9f46a9 | 20384 | if test x$gcc_no_link = xyes; then |
22e05272 | 20385 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20386 | fi |
5213506e | 20387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20388 | /* end confdefs.h. */ |
20389 | ||
db9f46a9 TG |
20390 | #ifdef HAVE_COMPLEX_H |
20391 | #include <complex.h> | |
cc6d3bde | 20392 | #endif |
db9f46a9 TG |
20393 | #ifdef HAVE_MATH_H |
20394 | #include <math.h> | |
20395 | #endif | |
20396 | ||
20397 | int (*ptr)() = (int (*)())hypotl; | |
20398 | ||
cc6d3bde SK |
20399 | int |
20400 | main () | |
20401 | { | |
cc6d3bde SK |
20402 | return 0; |
20403 | } | |
db9f46a9 | 20404 | |
cc6d3bde | 20405 | _ACEOF |
5213506e | 20406 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20407 | gcc_cv_math_func_hypotl=yes |
cc6d3bde | 20408 | else |
db9f46a9 | 20409 | gcc_cv_math_func_hypotl=no |
cc6d3bde | 20410 | fi |
5213506e RW |
20411 | rm -f core conftest.err conftest.$ac_objext \ |
20412 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20413 | fi |
db9f46a9 TG |
20414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20415 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20416 | if test $gcc_cv_math_func_hypotl = yes; then | |
f1cdfa01 | 20417 | |
f38a14ca TG |
20418 | cat >>confdefs.h <<_ACEOF |
20419 | #define HAVE_HYPOTL 1 | |
20420 | _ACEOF | |
cc6d3bde | 20421 | |
db9f46a9 | 20422 | fi |
cc6d3bde | 20423 | |
cc6d3bde | 20424 | |
db9f46a9 TG |
20425 | |
20426 | ||
20427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20428 | $as_echo_n "checking for ldexpf... " >&6; } | |
22e05272 | 20429 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
5213506e | 20430 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20431 | else |
db9f46a9 | 20432 | if test x$gcc_no_link = xyes; then |
22e05272 | 20433 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20434 | fi |
5213506e | 20435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20436 | /* end confdefs.h. */ |
20437 | ||
db9f46a9 TG |
20438 | #ifdef HAVE_COMPLEX_H |
20439 | #include <complex.h> | |
20440 | #endif | |
20441 | #ifdef HAVE_MATH_H | |
20442 | #include <math.h> | |
cc6d3bde | 20443 | #endif |
db9f46a9 TG |
20444 | |
20445 | int (*ptr)() = (int (*)())ldexpf; | |
20446 | ||
cc6d3bde SK |
20447 | int |
20448 | main () | |
20449 | { | |
cc6d3bde SK |
20450 | return 0; |
20451 | } | |
db9f46a9 | 20452 | |
cc6d3bde | 20453 | _ACEOF |
5213506e | 20454 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20455 | gcc_cv_math_func_ldexpf=yes |
cc6d3bde | 20456 | else |
db9f46a9 | 20457 | gcc_cv_math_func_ldexpf=no |
cc6d3bde | 20458 | fi |
5213506e RW |
20459 | rm -f core conftest.err conftest.$ac_objext \ |
20460 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20461 | fi |
db9f46a9 TG |
20462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20463 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20464 | if test $gcc_cv_math_func_ldexpf = yes; then | |
f1cdfa01 | 20465 | |
f38a14ca TG |
20466 | cat >>confdefs.h <<_ACEOF |
20467 | #define HAVE_LDEXPF 1 | |
20468 | _ACEOF | |
db9f46a9 TG |
20469 | |
20470 | fi | |
cc6d3bde | 20471 | |
cc6d3bde | 20472 | |
cc6d3bde | 20473 | |
db9f46a9 TG |
20474 | |
20475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20476 | $as_echo_n "checking for ldexp... " >&6; } | |
22e05272 | 20477 | if ${gcc_cv_math_func_ldexp+:} false; then : |
5213506e | 20478 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20479 | else |
db9f46a9 | 20480 | if test x$gcc_no_link = xyes; then |
22e05272 | 20481 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20482 | fi |
5213506e | 20483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20484 | /* end confdefs.h. */ |
20485 | ||
db9f46a9 TG |
20486 | #ifdef HAVE_COMPLEX_H |
20487 | #include <complex.h> | |
cc6d3bde | 20488 | #endif |
db9f46a9 TG |
20489 | #ifdef HAVE_MATH_H |
20490 | #include <math.h> | |
20491 | #endif | |
20492 | ||
20493 | int (*ptr)() = (int (*)())ldexp; | |
20494 | ||
cc6d3bde SK |
20495 | int |
20496 | main () | |
20497 | { | |
cc6d3bde SK |
20498 | return 0; |
20499 | } | |
db9f46a9 | 20500 | |
cc6d3bde | 20501 | _ACEOF |
5213506e | 20502 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20503 | gcc_cv_math_func_ldexp=yes |
cc6d3bde | 20504 | else |
db9f46a9 | 20505 | gcc_cv_math_func_ldexp=no |
cc6d3bde | 20506 | fi |
5213506e RW |
20507 | rm -f core conftest.err conftest.$ac_objext \ |
20508 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20509 | fi |
db9f46a9 TG |
20510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20511 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20512 | if test $gcc_cv_math_func_ldexp = yes; then | |
f1cdfa01 | 20513 | |
f38a14ca TG |
20514 | cat >>confdefs.h <<_ACEOF |
20515 | #define HAVE_LDEXP 1 | |
20516 | _ACEOF | |
db9f46a9 TG |
20517 | |
20518 | fi | |
20519 | ||
cc6d3bde | 20520 | |
cc6d3bde | 20521 | |
cc6d3bde | 20522 | |
db9f46a9 TG |
20523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20524 | $as_echo_n "checking for ldexpl... " >&6; } | |
22e05272 | 20525 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
5213506e | 20526 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20527 | else |
db9f46a9 | 20528 | if test x$gcc_no_link = xyes; then |
22e05272 | 20529 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20530 | fi |
5213506e | 20531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20532 | /* end confdefs.h. */ |
20533 | ||
db9f46a9 TG |
20534 | #ifdef HAVE_COMPLEX_H |
20535 | #include <complex.h> | |
20536 | #endif | |
20537 | #ifdef HAVE_MATH_H | |
20538 | #include <math.h> | |
1409cd0b | 20539 | #endif |
db9f46a9 TG |
20540 | |
20541 | int (*ptr)() = (int (*)())ldexpl; | |
20542 | ||
1409cd0b FXC |
20543 | int |
20544 | main () | |
20545 | { | |
1409cd0b FXC |
20546 | return 0; |
20547 | } | |
db9f46a9 | 20548 | |
1409cd0b | 20549 | _ACEOF |
5213506e | 20550 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20551 | gcc_cv_math_func_ldexpl=yes |
1409cd0b | 20552 | else |
db9f46a9 | 20553 | gcc_cv_math_func_ldexpl=no |
1409cd0b | 20554 | fi |
5213506e RW |
20555 | rm -f core conftest.err conftest.$ac_objext \ |
20556 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20557 | fi |
db9f46a9 TG |
20558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20559 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20560 | if test $gcc_cv_math_func_ldexpl = yes; then | |
f1cdfa01 | 20561 | |
f38a14ca TG |
20562 | cat >>confdefs.h <<_ACEOF |
20563 | #define HAVE_LDEXPL 1 | |
20564 | _ACEOF | |
db9f46a9 TG |
20565 | |
20566 | fi | |
1409cd0b | 20567 | |
1409cd0b | 20568 | |
1409cd0b | 20569 | |
db9f46a9 TG |
20570 | |
20571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20572 | $as_echo_n "checking for logf... " >&6; } | |
22e05272 | 20573 | if ${gcc_cv_math_func_logf+:} false; then : |
5213506e | 20574 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20575 | else |
db9f46a9 | 20576 | if test x$gcc_no_link = xyes; then |
22e05272 | 20577 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20578 | fi |
5213506e | 20579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20580 | /* end confdefs.h. */ |
20581 | ||
db9f46a9 TG |
20582 | #ifdef HAVE_COMPLEX_H |
20583 | #include <complex.h> | |
1409cd0b | 20584 | #endif |
db9f46a9 TG |
20585 | #ifdef HAVE_MATH_H |
20586 | #include <math.h> | |
20587 | #endif | |
20588 | ||
20589 | int (*ptr)() = (int (*)())logf; | |
20590 | ||
1409cd0b FXC |
20591 | int |
20592 | main () | |
20593 | { | |
1409cd0b FXC |
20594 | return 0; |
20595 | } | |
db9f46a9 | 20596 | |
1409cd0b | 20597 | _ACEOF |
5213506e | 20598 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20599 | gcc_cv_math_func_logf=yes |
1409cd0b | 20600 | else |
db9f46a9 | 20601 | gcc_cv_math_func_logf=no |
1409cd0b | 20602 | fi |
5213506e RW |
20603 | rm -f core conftest.err conftest.$ac_objext \ |
20604 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20605 | fi |
db9f46a9 TG |
20606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20607 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20608 | if test $gcc_cv_math_func_logf = yes; then | |
f1cdfa01 | 20609 | |
f38a14ca TG |
20610 | cat >>confdefs.h <<_ACEOF |
20611 | #define HAVE_LOGF 1 | |
20612 | _ACEOF | |
1409cd0b | 20613 | |
db9f46a9 | 20614 | fi |
1409cd0b | 20615 | |
1409cd0b | 20616 | |
db9f46a9 TG |
20617 | |
20618 | ||
20619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20620 | $as_echo_n "checking for log... " >&6; } | |
22e05272 | 20621 | if ${gcc_cv_math_func_log+:} false; then : |
5213506e | 20622 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20623 | else |
db9f46a9 | 20624 | if test x$gcc_no_link = xyes; then |
22e05272 | 20625 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20626 | fi |
5213506e | 20627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20628 | /* end confdefs.h. */ |
20629 | ||
db9f46a9 TG |
20630 | #ifdef HAVE_COMPLEX_H |
20631 | #include <complex.h> | |
20632 | #endif | |
20633 | #ifdef HAVE_MATH_H | |
20634 | #include <math.h> | |
1409cd0b | 20635 | #endif |
db9f46a9 TG |
20636 | |
20637 | int (*ptr)() = (int (*)())log; | |
20638 | ||
1409cd0b FXC |
20639 | int |
20640 | main () | |
20641 | { | |
1409cd0b FXC |
20642 | return 0; |
20643 | } | |
db9f46a9 | 20644 | |
1409cd0b | 20645 | _ACEOF |
5213506e | 20646 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20647 | gcc_cv_math_func_log=yes |
1409cd0b | 20648 | else |
db9f46a9 | 20649 | gcc_cv_math_func_log=no |
1409cd0b | 20650 | fi |
5213506e RW |
20651 | rm -f core conftest.err conftest.$ac_objext \ |
20652 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20653 | fi |
db9f46a9 TG |
20654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20655 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20656 | if test $gcc_cv_math_func_log = yes; then | |
f1cdfa01 | 20657 | |
f38a14ca TG |
20658 | cat >>confdefs.h <<_ACEOF |
20659 | #define HAVE_LOG 1 | |
20660 | _ACEOF | |
db9f46a9 TG |
20661 | |
20662 | fi | |
1409cd0b | 20663 | |
1409cd0b | 20664 | |
1409cd0b | 20665 | |
db9f46a9 TG |
20666 | |
20667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20668 | $as_echo_n "checking for logl... " >&6; } | |
22e05272 | 20669 | if ${gcc_cv_math_func_logl+:} false; then : |
5213506e | 20670 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20671 | else |
db9f46a9 | 20672 | if test x$gcc_no_link = xyes; then |
22e05272 | 20673 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20674 | fi |
5213506e | 20675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20676 | /* end confdefs.h. */ |
20677 | ||
db9f46a9 TG |
20678 | #ifdef HAVE_COMPLEX_H |
20679 | #include <complex.h> | |
1409cd0b | 20680 | #endif |
db9f46a9 TG |
20681 | #ifdef HAVE_MATH_H |
20682 | #include <math.h> | |
20683 | #endif | |
20684 | ||
20685 | int (*ptr)() = (int (*)())logl; | |
20686 | ||
1409cd0b FXC |
20687 | int |
20688 | main () | |
20689 | { | |
1409cd0b FXC |
20690 | return 0; |
20691 | } | |
db9f46a9 | 20692 | |
1409cd0b | 20693 | _ACEOF |
5213506e | 20694 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20695 | gcc_cv_math_func_logl=yes |
1409cd0b | 20696 | else |
db9f46a9 | 20697 | gcc_cv_math_func_logl=no |
1409cd0b | 20698 | fi |
5213506e RW |
20699 | rm -f core conftest.err conftest.$ac_objext \ |
20700 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20701 | fi |
db9f46a9 TG |
20702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20703 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20704 | if test $gcc_cv_math_func_logl = yes; then | |
f1cdfa01 | 20705 | |
f38a14ca TG |
20706 | cat >>confdefs.h <<_ACEOF |
20707 | #define HAVE_LOGL 1 | |
20708 | _ACEOF | |
db9f46a9 TG |
20709 | |
20710 | fi | |
20711 | ||
1409cd0b | 20712 | |
1409cd0b | 20713 | |
1409cd0b | 20714 | |
db9f46a9 TG |
20715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20716 | $as_echo_n "checking for clogf... " >&6; } | |
22e05272 | 20717 | if ${gcc_cv_math_func_clogf+:} false; then : |
5213506e | 20718 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20719 | else |
db9f46a9 | 20720 | if test x$gcc_no_link = xyes; then |
22e05272 | 20721 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20722 | fi |
5213506e | 20723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20724 | /* end confdefs.h. */ |
20725 | ||
db9f46a9 TG |
20726 | #ifdef HAVE_COMPLEX_H |
20727 | #include <complex.h> | |
20728 | #endif | |
20729 | #ifdef HAVE_MATH_H | |
20730 | #include <math.h> | |
1409cd0b | 20731 | #endif |
db9f46a9 TG |
20732 | |
20733 | int (*ptr)() = (int (*)())clogf; | |
20734 | ||
1409cd0b FXC |
20735 | int |
20736 | main () | |
20737 | { | |
1409cd0b FXC |
20738 | return 0; |
20739 | } | |
db9f46a9 | 20740 | |
1409cd0b | 20741 | _ACEOF |
5213506e | 20742 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20743 | gcc_cv_math_func_clogf=yes |
1409cd0b | 20744 | else |
db9f46a9 | 20745 | gcc_cv_math_func_clogf=no |
1409cd0b | 20746 | fi |
5213506e RW |
20747 | rm -f core conftest.err conftest.$ac_objext \ |
20748 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20749 | fi |
db9f46a9 TG |
20750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20751 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20752 | if test $gcc_cv_math_func_clogf = yes; then | |
f1cdfa01 | 20753 | |
f38a14ca TG |
20754 | cat >>confdefs.h <<_ACEOF |
20755 | #define HAVE_CLOGF 1 | |
20756 | _ACEOF | |
db9f46a9 TG |
20757 | |
20758 | fi | |
1409cd0b | 20759 | |
1409cd0b | 20760 | |
1409cd0b | 20761 | |
db9f46a9 TG |
20762 | |
20763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20764 | $as_echo_n "checking for clog... " >&6; } | |
22e05272 | 20765 | if ${gcc_cv_math_func_clog+:} false; then : |
5213506e | 20766 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20767 | else |
db9f46a9 | 20768 | if test x$gcc_no_link = xyes; then |
22e05272 | 20769 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20770 | fi |
5213506e | 20771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20772 | /* end confdefs.h. */ |
20773 | ||
db9f46a9 TG |
20774 | #ifdef HAVE_COMPLEX_H |
20775 | #include <complex.h> | |
1409cd0b | 20776 | #endif |
db9f46a9 TG |
20777 | #ifdef HAVE_MATH_H |
20778 | #include <math.h> | |
20779 | #endif | |
20780 | ||
20781 | int (*ptr)() = (int (*)())clog; | |
20782 | ||
1409cd0b FXC |
20783 | int |
20784 | main () | |
20785 | { | |
1409cd0b FXC |
20786 | return 0; |
20787 | } | |
db9f46a9 | 20788 | |
1409cd0b | 20789 | _ACEOF |
5213506e | 20790 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20791 | gcc_cv_math_func_clog=yes |
1409cd0b | 20792 | else |
db9f46a9 | 20793 | gcc_cv_math_func_clog=no |
1409cd0b | 20794 | fi |
5213506e RW |
20795 | rm -f core conftest.err conftest.$ac_objext \ |
20796 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20797 | fi |
db9f46a9 TG |
20798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20799 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20800 | if test $gcc_cv_math_func_clog = yes; then | |
f1cdfa01 | 20801 | |
f38a14ca TG |
20802 | cat >>confdefs.h <<_ACEOF |
20803 | #define HAVE_CLOG 1 | |
20804 | _ACEOF | |
1409cd0b | 20805 | |
db9f46a9 | 20806 | fi |
1409cd0b | 20807 | |
1409cd0b | 20808 | |
db9f46a9 TG |
20809 | |
20810 | ||
20811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20812 | $as_echo_n "checking for clogl... " >&6; } | |
22e05272 | 20813 | if ${gcc_cv_math_func_clogl+:} false; then : |
5213506e | 20814 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20815 | else |
db9f46a9 | 20816 | if test x$gcc_no_link = xyes; then |
22e05272 | 20817 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20818 | fi |
5213506e | 20819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20820 | /* end confdefs.h. */ |
20821 | ||
db9f46a9 TG |
20822 | #ifdef HAVE_COMPLEX_H |
20823 | #include <complex.h> | |
20824 | #endif | |
20825 | #ifdef HAVE_MATH_H | |
20826 | #include <math.h> | |
1409cd0b | 20827 | #endif |
db9f46a9 TG |
20828 | |
20829 | int (*ptr)() = (int (*)())clogl; | |
20830 | ||
1409cd0b FXC |
20831 | int |
20832 | main () | |
20833 | { | |
1409cd0b FXC |
20834 | return 0; |
20835 | } | |
db9f46a9 | 20836 | |
1409cd0b | 20837 | _ACEOF |
5213506e | 20838 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20839 | gcc_cv_math_func_clogl=yes |
1409cd0b | 20840 | else |
db9f46a9 | 20841 | gcc_cv_math_func_clogl=no |
1409cd0b | 20842 | fi |
5213506e RW |
20843 | rm -f core conftest.err conftest.$ac_objext \ |
20844 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20845 | fi |
db9f46a9 TG |
20846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
20847 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
20848 | if test $gcc_cv_math_func_clogl = yes; then | |
f1cdfa01 | 20849 | |
f38a14ca TG |
20850 | cat >>confdefs.h <<_ACEOF |
20851 | #define HAVE_CLOGL 1 | |
20852 | _ACEOF | |
db9f46a9 TG |
20853 | |
20854 | fi | |
1409cd0b | 20855 | |
1409cd0b | 20856 | |
1409cd0b | 20857 | |
db9f46a9 TG |
20858 | |
20859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
20860 | $as_echo_n "checking for log10f... " >&6; } | |
22e05272 | 20861 | if ${gcc_cv_math_func_log10f+:} false; then : |
5213506e | 20862 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20863 | else |
db9f46a9 | 20864 | if test x$gcc_no_link = xyes; then |
22e05272 | 20865 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20866 | fi |
5213506e | 20867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20868 | /* end confdefs.h. */ |
20869 | ||
db9f46a9 TG |
20870 | #ifdef HAVE_COMPLEX_H |
20871 | #include <complex.h> | |
1409cd0b | 20872 | #endif |
db9f46a9 TG |
20873 | #ifdef HAVE_MATH_H |
20874 | #include <math.h> | |
20875 | #endif | |
20876 | ||
20877 | int (*ptr)() = (int (*)())log10f; | |
20878 | ||
1409cd0b FXC |
20879 | int |
20880 | main () | |
20881 | { | |
1409cd0b FXC |
20882 | return 0; |
20883 | } | |
db9f46a9 | 20884 | |
1409cd0b | 20885 | _ACEOF |
5213506e | 20886 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20887 | gcc_cv_math_func_log10f=yes |
1409cd0b | 20888 | else |
db9f46a9 | 20889 | gcc_cv_math_func_log10f=no |
1409cd0b | 20890 | fi |
5213506e RW |
20891 | rm -f core conftest.err conftest.$ac_objext \ |
20892 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20893 | fi |
db9f46a9 TG |
20894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
20895 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
20896 | if test $gcc_cv_math_func_log10f = yes; then | |
f1cdfa01 | 20897 | |
f38a14ca TG |
20898 | cat >>confdefs.h <<_ACEOF |
20899 | #define HAVE_LOG10F 1 | |
20900 | _ACEOF | |
db9f46a9 TG |
20901 | |
20902 | fi | |
20903 | ||
1409cd0b | 20904 | |
1409cd0b | 20905 | |
1409cd0b | 20906 | |
db9f46a9 TG |
20907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
20908 | $as_echo_n "checking for log10... " >&6; } | |
22e05272 | 20909 | if ${gcc_cv_math_func_log10+:} false; then : |
5213506e | 20910 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20911 | else |
db9f46a9 | 20912 | if test x$gcc_no_link = xyes; then |
22e05272 | 20913 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20914 | fi |
5213506e | 20915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20916 | /* end confdefs.h. */ |
20917 | ||
db9f46a9 TG |
20918 | #ifdef HAVE_COMPLEX_H |
20919 | #include <complex.h> | |
20920 | #endif | |
20921 | #ifdef HAVE_MATH_H | |
20922 | #include <math.h> | |
1409cd0b | 20923 | #endif |
db9f46a9 TG |
20924 | |
20925 | int (*ptr)() = (int (*)())log10; | |
20926 | ||
1409cd0b FXC |
20927 | int |
20928 | main () | |
20929 | { | |
1409cd0b FXC |
20930 | return 0; |
20931 | } | |
db9f46a9 | 20932 | |
1409cd0b | 20933 | _ACEOF |
5213506e | 20934 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20935 | gcc_cv_math_func_log10=yes |
1409cd0b | 20936 | else |
db9f46a9 | 20937 | gcc_cv_math_func_log10=no |
1409cd0b | 20938 | fi |
5213506e RW |
20939 | rm -f core conftest.err conftest.$ac_objext \ |
20940 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20941 | fi |
db9f46a9 TG |
20942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
20943 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
20944 | if test $gcc_cv_math_func_log10 = yes; then | |
f1cdfa01 | 20945 | |
f38a14ca TG |
20946 | cat >>confdefs.h <<_ACEOF |
20947 | #define HAVE_LOG10 1 | |
20948 | _ACEOF | |
db9f46a9 TG |
20949 | |
20950 | fi | |
1409cd0b | 20951 | |
1409cd0b | 20952 | |
1409cd0b | 20953 | |
db9f46a9 TG |
20954 | |
20955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
20956 | $as_echo_n "checking for log10l... " >&6; } | |
22e05272 | 20957 | if ${gcc_cv_math_func_log10l+:} false; then : |
5213506e | 20958 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20959 | else |
db9f46a9 | 20960 | if test x$gcc_no_link = xyes; then |
22e05272 | 20961 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20962 | fi |
5213506e | 20963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20964 | /* end confdefs.h. */ |
20965 | ||
db9f46a9 TG |
20966 | #ifdef HAVE_COMPLEX_H |
20967 | #include <complex.h> | |
1409cd0b | 20968 | #endif |
db9f46a9 TG |
20969 | #ifdef HAVE_MATH_H |
20970 | #include <math.h> | |
20971 | #endif | |
20972 | ||
20973 | int (*ptr)() = (int (*)())log10l; | |
20974 | ||
1409cd0b FXC |
20975 | int |
20976 | main () | |
20977 | { | |
1409cd0b FXC |
20978 | return 0; |
20979 | } | |
db9f46a9 | 20980 | |
1409cd0b | 20981 | _ACEOF |
5213506e | 20982 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20983 | gcc_cv_math_func_log10l=yes |
1409cd0b | 20984 | else |
db9f46a9 | 20985 | gcc_cv_math_func_log10l=no |
1409cd0b | 20986 | fi |
5213506e RW |
20987 | rm -f core conftest.err conftest.$ac_objext \ |
20988 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20989 | fi |
db9f46a9 TG |
20990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
20991 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
20992 | if test $gcc_cv_math_func_log10l = yes; then | |
f1cdfa01 | 20993 | |
f38a14ca TG |
20994 | cat >>confdefs.h <<_ACEOF |
20995 | #define HAVE_LOG10L 1 | |
20996 | _ACEOF | |
1409cd0b | 20997 | |
db9f46a9 | 20998 | fi |
1409cd0b | 20999 | |
1409cd0b | 21000 | |
db9f46a9 TG |
21001 | |
21002 | ||
21003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
21004 | $as_echo_n "checking for clog10f... " >&6; } | |
22e05272 | 21005 | if ${gcc_cv_math_func_clog10f+:} false; then : |
5213506e | 21006 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21007 | else |
db9f46a9 | 21008 | if test x$gcc_no_link = xyes; then |
22e05272 | 21009 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21010 | fi |
5213506e | 21011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21012 | /* end confdefs.h. */ |
21013 | ||
db9f46a9 TG |
21014 | #ifdef HAVE_COMPLEX_H |
21015 | #include <complex.h> | |
21016 | #endif | |
21017 | #ifdef HAVE_MATH_H | |
21018 | #include <math.h> | |
1409cd0b | 21019 | #endif |
db9f46a9 TG |
21020 | |
21021 | int (*ptr)() = (int (*)())clog10f; | |
21022 | ||
1409cd0b FXC |
21023 | int |
21024 | main () | |
21025 | { | |
1409cd0b FXC |
21026 | return 0; |
21027 | } | |
db9f46a9 | 21028 | |
1409cd0b | 21029 | _ACEOF |
5213506e | 21030 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21031 | gcc_cv_math_func_clog10f=yes |
1409cd0b | 21032 | else |
db9f46a9 | 21033 | gcc_cv_math_func_clog10f=no |
1409cd0b | 21034 | fi |
5213506e RW |
21035 | rm -f core conftest.err conftest.$ac_objext \ |
21036 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21037 | fi |
db9f46a9 TG |
21038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
21039 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
21040 | if test $gcc_cv_math_func_clog10f = yes; then | |
f1cdfa01 | 21041 | |
f38a14ca TG |
21042 | cat >>confdefs.h <<_ACEOF |
21043 | #define HAVE_CLOG10F 1 | |
21044 | _ACEOF | |
db9f46a9 TG |
21045 | |
21046 | fi | |
1409cd0b | 21047 | |
1409cd0b | 21048 | |
1409cd0b | 21049 | |
db9f46a9 TG |
21050 | |
21051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
21052 | $as_echo_n "checking for clog10... " >&6; } | |
22e05272 | 21053 | if ${gcc_cv_math_func_clog10+:} false; then : |
5213506e | 21054 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21055 | else |
db9f46a9 | 21056 | if test x$gcc_no_link = xyes; then |
22e05272 | 21057 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21058 | fi |
5213506e | 21059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21060 | /* end confdefs.h. */ |
21061 | ||
db9f46a9 TG |
21062 | #ifdef HAVE_COMPLEX_H |
21063 | #include <complex.h> | |
1409cd0b | 21064 | #endif |
db9f46a9 TG |
21065 | #ifdef HAVE_MATH_H |
21066 | #include <math.h> | |
21067 | #endif | |
21068 | ||
21069 | int (*ptr)() = (int (*)())clog10; | |
21070 | ||
1409cd0b FXC |
21071 | int |
21072 | main () | |
21073 | { | |
5213506e RW |
21074 | return 0; |
21075 | } | |
db9f46a9 | 21076 | |
5213506e RW |
21077 | _ACEOF |
21078 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 21079 | gcc_cv_math_func_clog10=yes |
1409cd0b | 21080 | else |
db9f46a9 | 21081 | gcc_cv_math_func_clog10=no |
1409cd0b | 21082 | fi |
5213506e RW |
21083 | rm -f core conftest.err conftest.$ac_objext \ |
21084 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21085 | fi |
db9f46a9 TG |
21086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
21087 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
21088 | if test $gcc_cv_math_func_clog10 = yes; then | |
f1cdfa01 | 21089 | |
f38a14ca TG |
21090 | cat >>confdefs.h <<_ACEOF |
21091 | #define HAVE_CLOG10 1 | |
21092 | _ACEOF | |
db9f46a9 TG |
21093 | |
21094 | fi | |
21095 | ||
1409cd0b | 21096 | |
1409cd0b | 21097 | |
1409cd0b | 21098 | |
db9f46a9 TG |
21099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
21100 | $as_echo_n "checking for clog10l... " >&6; } | |
22e05272 | 21101 | if ${gcc_cv_math_func_clog10l+:} false; then : |
5213506e | 21102 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21103 | else |
db9f46a9 | 21104 | if test x$gcc_no_link = xyes; then |
22e05272 | 21105 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21106 | fi |
5213506e | 21107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21108 | /* end confdefs.h. */ |
21109 | ||
db9f46a9 TG |
21110 | #ifdef HAVE_COMPLEX_H |
21111 | #include <complex.h> | |
21112 | #endif | |
21113 | #ifdef HAVE_MATH_H | |
21114 | #include <math.h> | |
1409cd0b | 21115 | #endif |
db9f46a9 TG |
21116 | |
21117 | int (*ptr)() = (int (*)())clog10l; | |
21118 | ||
1409cd0b FXC |
21119 | int |
21120 | main () | |
21121 | { | |
1409cd0b FXC |
21122 | return 0; |
21123 | } | |
db9f46a9 | 21124 | |
1409cd0b | 21125 | _ACEOF |
5213506e | 21126 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21127 | gcc_cv_math_func_clog10l=yes |
1409cd0b | 21128 | else |
db9f46a9 | 21129 | gcc_cv_math_func_clog10l=no |
1409cd0b | 21130 | fi |
5213506e RW |
21131 | rm -f core conftest.err conftest.$ac_objext \ |
21132 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21133 | fi |
db9f46a9 TG |
21134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
21135 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
21136 | if test $gcc_cv_math_func_clog10l = yes; then | |
f1cdfa01 | 21137 | |
f38a14ca TG |
21138 | cat >>confdefs.h <<_ACEOF |
21139 | #define HAVE_CLOG10L 1 | |
21140 | _ACEOF | |
db9f46a9 TG |
21141 | |
21142 | fi | |
1409cd0b | 21143 | |
1409cd0b | 21144 | |
1409cd0b | 21145 | |
db9f46a9 TG |
21146 | |
21147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
21148 | $as_echo_n "checking for nextafterf... " >&6; } | |
22e05272 | 21149 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
5213506e | 21150 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21151 | else |
db9f46a9 | 21152 | if test x$gcc_no_link = xyes; then |
22e05272 | 21153 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21154 | fi |
5213506e | 21155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21156 | /* end confdefs.h. */ |
21157 | ||
db9f46a9 TG |
21158 | #ifdef HAVE_COMPLEX_H |
21159 | #include <complex.h> | |
1409cd0b | 21160 | #endif |
db9f46a9 TG |
21161 | #ifdef HAVE_MATH_H |
21162 | #include <math.h> | |
21163 | #endif | |
21164 | ||
21165 | int (*ptr)() = (int (*)())nextafterf; | |
21166 | ||
1409cd0b FXC |
21167 | int |
21168 | main () | |
21169 | { | |
1409cd0b FXC |
21170 | return 0; |
21171 | } | |
db9f46a9 | 21172 | |
1409cd0b | 21173 | _ACEOF |
5213506e | 21174 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21175 | gcc_cv_math_func_nextafterf=yes |
1409cd0b | 21176 | else |
db9f46a9 | 21177 | gcc_cv_math_func_nextafterf=no |
1409cd0b | 21178 | fi |
5213506e RW |
21179 | rm -f core conftest.err conftest.$ac_objext \ |
21180 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21181 | fi |
db9f46a9 TG |
21182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21183 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21184 | if test $gcc_cv_math_func_nextafterf = yes; then | |
f1cdfa01 | 21185 | |
f38a14ca TG |
21186 | cat >>confdefs.h <<_ACEOF |
21187 | #define HAVE_NEXTAFTERF 1 | |
21188 | _ACEOF | |
1409cd0b | 21189 | |
db9f46a9 | 21190 | fi |
1409cd0b | 21191 | |
1409cd0b | 21192 | |
db9f46a9 TG |
21193 | |
21194 | ||
21195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21196 | $as_echo_n "checking for nextafter... " >&6; } | |
22e05272 | 21197 | if ${gcc_cv_math_func_nextafter+:} false; then : |
5213506e | 21198 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21199 | else |
db9f46a9 | 21200 | if test x$gcc_no_link = xyes; then |
22e05272 | 21201 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21202 | fi |
5213506e | 21203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21204 | /* end confdefs.h. */ |
21205 | ||
db9f46a9 TG |
21206 | #ifdef HAVE_COMPLEX_H |
21207 | #include <complex.h> | |
21208 | #endif | |
21209 | #ifdef HAVE_MATH_H | |
21210 | #include <math.h> | |
1409cd0b | 21211 | #endif |
db9f46a9 TG |
21212 | |
21213 | int (*ptr)() = (int (*)())nextafter; | |
21214 | ||
1409cd0b FXC |
21215 | int |
21216 | main () | |
21217 | { | |
1409cd0b FXC |
21218 | return 0; |
21219 | } | |
db9f46a9 | 21220 | |
1409cd0b | 21221 | _ACEOF |
5213506e | 21222 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21223 | gcc_cv_math_func_nextafter=yes |
1409cd0b | 21224 | else |
db9f46a9 | 21225 | gcc_cv_math_func_nextafter=no |
1409cd0b | 21226 | fi |
5213506e RW |
21227 | rm -f core conftest.err conftest.$ac_objext \ |
21228 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21229 | fi |
db9f46a9 TG |
21230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21231 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21232 | if test $gcc_cv_math_func_nextafter = yes; then | |
f1cdfa01 | 21233 | |
f38a14ca TG |
21234 | cat >>confdefs.h <<_ACEOF |
21235 | #define HAVE_NEXTAFTER 1 | |
21236 | _ACEOF | |
db9f46a9 TG |
21237 | |
21238 | fi | |
1409cd0b | 21239 | |
1409cd0b | 21240 | |
1409cd0b | 21241 | |
db9f46a9 TG |
21242 | |
21243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21244 | $as_echo_n "checking for nextafterl... " >&6; } | |
22e05272 | 21245 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
5213506e | 21246 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21247 | else |
db9f46a9 | 21248 | if test x$gcc_no_link = xyes; then |
22e05272 | 21249 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21250 | fi |
5213506e | 21251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21252 | /* end confdefs.h. */ |
21253 | ||
db9f46a9 TG |
21254 | #ifdef HAVE_COMPLEX_H |
21255 | #include <complex.h> | |
1409cd0b | 21256 | #endif |
db9f46a9 TG |
21257 | #ifdef HAVE_MATH_H |
21258 | #include <math.h> | |
21259 | #endif | |
21260 | ||
21261 | int (*ptr)() = (int (*)())nextafterl; | |
21262 | ||
1409cd0b FXC |
21263 | int |
21264 | main () | |
21265 | { | |
1409cd0b FXC |
21266 | return 0; |
21267 | } | |
db9f46a9 | 21268 | |
1409cd0b | 21269 | _ACEOF |
5213506e | 21270 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21271 | gcc_cv_math_func_nextafterl=yes |
1409cd0b | 21272 | else |
db9f46a9 | 21273 | gcc_cv_math_func_nextafterl=no |
1409cd0b | 21274 | fi |
5213506e RW |
21275 | rm -f core conftest.err conftest.$ac_objext \ |
21276 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21277 | fi |
db9f46a9 TG |
21278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21279 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21280 | if test $gcc_cv_math_func_nextafterl = yes; then | |
f1cdfa01 | 21281 | |
f38a14ca TG |
21282 | cat >>confdefs.h <<_ACEOF |
21283 | #define HAVE_NEXTAFTERL 1 | |
21284 | _ACEOF | |
db9f46a9 TG |
21285 | |
21286 | fi | |
21287 | ||
1409cd0b | 21288 | |
1409cd0b | 21289 | |
1409cd0b | 21290 | |
db9f46a9 TG |
21291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21292 | $as_echo_n "checking for powf... " >&6; } | |
22e05272 | 21293 | if ${gcc_cv_math_func_powf+:} false; then : |
5213506e | 21294 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21295 | else |
db9f46a9 | 21296 | if test x$gcc_no_link = xyes; then |
22e05272 | 21297 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21298 | fi |
5213506e | 21299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21300 | /* end confdefs.h. */ |
21301 | ||
db9f46a9 TG |
21302 | #ifdef HAVE_COMPLEX_H |
21303 | #include <complex.h> | |
21304 | #endif | |
21305 | #ifdef HAVE_MATH_H | |
21306 | #include <math.h> | |
1409cd0b | 21307 | #endif |
db9f46a9 TG |
21308 | |
21309 | int (*ptr)() = (int (*)())powf; | |
21310 | ||
1409cd0b FXC |
21311 | int |
21312 | main () | |
21313 | { | |
1409cd0b FXC |
21314 | return 0; |
21315 | } | |
db9f46a9 | 21316 | |
1409cd0b | 21317 | _ACEOF |
5213506e | 21318 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21319 | gcc_cv_math_func_powf=yes |
1409cd0b | 21320 | else |
db9f46a9 | 21321 | gcc_cv_math_func_powf=no |
1409cd0b | 21322 | fi |
5213506e RW |
21323 | rm -f core conftest.err conftest.$ac_objext \ |
21324 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21325 | fi |
db9f46a9 TG |
21326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21327 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21328 | if test $gcc_cv_math_func_powf = yes; then | |
f1cdfa01 | 21329 | |
f38a14ca TG |
21330 | cat >>confdefs.h <<_ACEOF |
21331 | #define HAVE_POWF 1 | |
21332 | _ACEOF | |
db9f46a9 TG |
21333 | |
21334 | fi | |
1409cd0b | 21335 | |
1409cd0b | 21336 | |
1409cd0b | 21337 | |
db9f46a9 TG |
21338 | |
21339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21340 | $as_echo_n "checking for pow... " >&6; } | |
22e05272 | 21341 | if ${gcc_cv_math_func_pow+:} false; then : |
5213506e | 21342 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21343 | else |
db9f46a9 | 21344 | if test x$gcc_no_link = xyes; then |
22e05272 | 21345 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21346 | fi |
5213506e | 21347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21348 | /* end confdefs.h. */ |
21349 | ||
db9f46a9 TG |
21350 | #ifdef HAVE_COMPLEX_H |
21351 | #include <complex.h> | |
1409cd0b | 21352 | #endif |
db9f46a9 TG |
21353 | #ifdef HAVE_MATH_H |
21354 | #include <math.h> | |
21355 | #endif | |
21356 | ||
21357 | int (*ptr)() = (int (*)())pow; | |
21358 | ||
1409cd0b FXC |
21359 | int |
21360 | main () | |
21361 | { | |
1409cd0b FXC |
21362 | return 0; |
21363 | } | |
db9f46a9 | 21364 | |
1409cd0b | 21365 | _ACEOF |
5213506e | 21366 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21367 | gcc_cv_math_func_pow=yes |
1409cd0b | 21368 | else |
db9f46a9 | 21369 | gcc_cv_math_func_pow=no |
1409cd0b | 21370 | fi |
5213506e RW |
21371 | rm -f core conftest.err conftest.$ac_objext \ |
21372 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21373 | fi |
db9f46a9 TG |
21374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21375 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21376 | if test $gcc_cv_math_func_pow = yes; then | |
f1cdfa01 | 21377 | |
f38a14ca TG |
21378 | cat >>confdefs.h <<_ACEOF |
21379 | #define HAVE_POW 1 | |
21380 | _ACEOF | |
1409cd0b | 21381 | |
db9f46a9 | 21382 | fi |
1409cd0b | 21383 | |
1409cd0b | 21384 | |
db9f46a9 TG |
21385 | |
21386 | ||
db9f46a9 TG |
21387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21388 | $as_echo_n "checking for cpowf... " >&6; } | |
22e05272 | 21389 | if ${gcc_cv_math_func_cpowf+:} false; then : |
5213506e | 21390 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21391 | else |
db9f46a9 | 21392 | if test x$gcc_no_link = xyes; then |
22e05272 | 21393 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21394 | fi |
5213506e | 21395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21396 | /* end confdefs.h. */ |
21397 | ||
db9f46a9 TG |
21398 | #ifdef HAVE_COMPLEX_H |
21399 | #include <complex.h> | |
1409cd0b | 21400 | #endif |
db9f46a9 TG |
21401 | #ifdef HAVE_MATH_H |
21402 | #include <math.h> | |
21403 | #endif | |
21404 | ||
21405 | int (*ptr)() = (int (*)())cpowf; | |
21406 | ||
1409cd0b FXC |
21407 | int |
21408 | main () | |
21409 | { | |
1409cd0b FXC |
21410 | return 0; |
21411 | } | |
db9f46a9 | 21412 | |
1409cd0b | 21413 | _ACEOF |
5213506e | 21414 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21415 | gcc_cv_math_func_cpowf=yes |
1409cd0b | 21416 | else |
db9f46a9 | 21417 | gcc_cv_math_func_cpowf=no |
1409cd0b | 21418 | fi |
5213506e RW |
21419 | rm -f core conftest.err conftest.$ac_objext \ |
21420 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21421 | fi |
db9f46a9 TG |
21422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21423 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21424 | if test $gcc_cv_math_func_cpowf = yes; then | |
f1cdfa01 | 21425 | |
f38a14ca TG |
21426 | cat >>confdefs.h <<_ACEOF |
21427 | #define HAVE_CPOWF 1 | |
21428 | _ACEOF | |
db9f46a9 TG |
21429 | |
21430 | fi | |
21431 | ||
1409cd0b | 21432 | |
1409cd0b | 21433 | |
1409cd0b | 21434 | |
db9f46a9 TG |
21435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21436 | $as_echo_n "checking for cpow... " >&6; } | |
22e05272 | 21437 | if ${gcc_cv_math_func_cpow+:} false; then : |
5213506e | 21438 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21439 | else |
db9f46a9 | 21440 | if test x$gcc_no_link = xyes; then |
22e05272 | 21441 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21442 | fi |
5213506e | 21443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21444 | /* end confdefs.h. */ |
21445 | ||
db9f46a9 TG |
21446 | #ifdef HAVE_COMPLEX_H |
21447 | #include <complex.h> | |
21448 | #endif | |
21449 | #ifdef HAVE_MATH_H | |
21450 | #include <math.h> | |
1409cd0b | 21451 | #endif |
db9f46a9 TG |
21452 | |
21453 | int (*ptr)() = (int (*)())cpow; | |
21454 | ||
1409cd0b FXC |
21455 | int |
21456 | main () | |
21457 | { | |
1409cd0b FXC |
21458 | return 0; |
21459 | } | |
db9f46a9 | 21460 | |
1409cd0b | 21461 | _ACEOF |
5213506e | 21462 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21463 | gcc_cv_math_func_cpow=yes |
1409cd0b | 21464 | else |
db9f46a9 | 21465 | gcc_cv_math_func_cpow=no |
1409cd0b | 21466 | fi |
5213506e RW |
21467 | rm -f core conftest.err conftest.$ac_objext \ |
21468 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21469 | fi |
db9f46a9 TG |
21470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21471 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21472 | if test $gcc_cv_math_func_cpow = yes; then | |
f1cdfa01 | 21473 | |
f38a14ca TG |
21474 | cat >>confdefs.h <<_ACEOF |
21475 | #define HAVE_CPOW 1 | |
21476 | _ACEOF | |
db9f46a9 TG |
21477 | |
21478 | fi | |
1409cd0b | 21479 | |
1409cd0b | 21480 | |
1409cd0b | 21481 | |
db9f46a9 TG |
21482 | |
21483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21484 | $as_echo_n "checking for cpowl... " >&6; } | |
22e05272 | 21485 | if ${gcc_cv_math_func_cpowl+:} false; then : |
5213506e | 21486 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21487 | else |
db9f46a9 | 21488 | if test x$gcc_no_link = xyes; then |
22e05272 | 21489 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21490 | fi |
5213506e | 21491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21492 | /* end confdefs.h. */ |
21493 | ||
db9f46a9 TG |
21494 | #ifdef HAVE_COMPLEX_H |
21495 | #include <complex.h> | |
1409cd0b | 21496 | #endif |
db9f46a9 TG |
21497 | #ifdef HAVE_MATH_H |
21498 | #include <math.h> | |
21499 | #endif | |
21500 | ||
21501 | int (*ptr)() = (int (*)())cpowl; | |
21502 | ||
1409cd0b FXC |
21503 | int |
21504 | main () | |
21505 | { | |
1409cd0b FXC |
21506 | return 0; |
21507 | } | |
db9f46a9 | 21508 | |
1409cd0b | 21509 | _ACEOF |
5213506e | 21510 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21511 | gcc_cv_math_func_cpowl=yes |
1409cd0b | 21512 | else |
db9f46a9 | 21513 | gcc_cv_math_func_cpowl=no |
1409cd0b | 21514 | fi |
5213506e RW |
21515 | rm -f core conftest.err conftest.$ac_objext \ |
21516 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21517 | fi |
db9f46a9 TG |
21518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21519 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21520 | if test $gcc_cv_math_func_cpowl = yes; then | |
f1cdfa01 | 21521 | |
f38a14ca TG |
21522 | cat >>confdefs.h <<_ACEOF |
21523 | #define HAVE_CPOWL 1 | |
21524 | _ACEOF | |
1409cd0b | 21525 | |
db9f46a9 | 21526 | fi |
1409cd0b | 21527 | |
1409cd0b | 21528 | |
db9f46a9 TG |
21529 | |
21530 | ||
21531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21532 | $as_echo_n "checking for roundf... " >&6; } | |
22e05272 | 21533 | if ${gcc_cv_math_func_roundf+:} false; then : |
5213506e | 21534 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21535 | else |
db9f46a9 | 21536 | if test x$gcc_no_link = xyes; then |
22e05272 | 21537 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21538 | fi |
5213506e | 21539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21540 | /* end confdefs.h. */ |
21541 | ||
db9f46a9 TG |
21542 | #ifdef HAVE_COMPLEX_H |
21543 | #include <complex.h> | |
21544 | #endif | |
21545 | #ifdef HAVE_MATH_H | |
21546 | #include <math.h> | |
1409cd0b | 21547 | #endif |
db9f46a9 TG |
21548 | |
21549 | int (*ptr)() = (int (*)())roundf; | |
21550 | ||
1409cd0b FXC |
21551 | int |
21552 | main () | |
21553 | { | |
1409cd0b FXC |
21554 | return 0; |
21555 | } | |
db9f46a9 | 21556 | |
1409cd0b | 21557 | _ACEOF |
5213506e | 21558 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21559 | gcc_cv_math_func_roundf=yes |
1409cd0b | 21560 | else |
db9f46a9 | 21561 | gcc_cv_math_func_roundf=no |
1409cd0b | 21562 | fi |
5213506e RW |
21563 | rm -f core conftest.err conftest.$ac_objext \ |
21564 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21565 | fi |
db9f46a9 TG |
21566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21567 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21568 | if test $gcc_cv_math_func_roundf = yes; then | |
f1cdfa01 | 21569 | |
f38a14ca TG |
21570 | cat >>confdefs.h <<_ACEOF |
21571 | #define HAVE_ROUNDF 1 | |
21572 | _ACEOF | |
db9f46a9 TG |
21573 | |
21574 | fi | |
1409cd0b | 21575 | |
1409cd0b | 21576 | |
1409cd0b | 21577 | |
db9f46a9 TG |
21578 | |
21579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21580 | $as_echo_n "checking for round... " >&6; } | |
22e05272 | 21581 | if ${gcc_cv_math_func_round+:} false; then : |
5213506e | 21582 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21583 | else |
db9f46a9 | 21584 | if test x$gcc_no_link = xyes; then |
22e05272 | 21585 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21586 | fi |
5213506e | 21587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21588 | /* end confdefs.h. */ |
21589 | ||
db9f46a9 TG |
21590 | #ifdef HAVE_COMPLEX_H |
21591 | #include <complex.h> | |
1409cd0b | 21592 | #endif |
db9f46a9 TG |
21593 | #ifdef HAVE_MATH_H |
21594 | #include <math.h> | |
21595 | #endif | |
21596 | ||
21597 | int (*ptr)() = (int (*)())round; | |
21598 | ||
1409cd0b FXC |
21599 | int |
21600 | main () | |
21601 | { | |
1409cd0b FXC |
21602 | return 0; |
21603 | } | |
db9f46a9 | 21604 | |
1409cd0b | 21605 | _ACEOF |
5213506e | 21606 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21607 | gcc_cv_math_func_round=yes |
1409cd0b | 21608 | else |
db9f46a9 | 21609 | gcc_cv_math_func_round=no |
1409cd0b | 21610 | fi |
5213506e RW |
21611 | rm -f core conftest.err conftest.$ac_objext \ |
21612 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21613 | fi |
db9f46a9 TG |
21614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21615 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21616 | if test $gcc_cv_math_func_round = yes; then | |
f1cdfa01 | 21617 | |
f38a14ca TG |
21618 | cat >>confdefs.h <<_ACEOF |
21619 | #define HAVE_ROUND 1 | |
21620 | _ACEOF | |
db9f46a9 TG |
21621 | |
21622 | fi | |
21623 | ||
1409cd0b | 21624 | |
1409cd0b | 21625 | |
1409cd0b | 21626 | |
db9f46a9 TG |
21627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21628 | $as_echo_n "checking for roundl... " >&6; } | |
22e05272 | 21629 | if ${gcc_cv_math_func_roundl+:} false; then : |
5213506e | 21630 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21631 | else |
db9f46a9 | 21632 | if test x$gcc_no_link = xyes; then |
22e05272 | 21633 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21634 | fi |
5213506e | 21635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21636 | /* end confdefs.h. */ |
21637 | ||
db9f46a9 TG |
21638 | #ifdef HAVE_COMPLEX_H |
21639 | #include <complex.h> | |
21640 | #endif | |
21641 | #ifdef HAVE_MATH_H | |
21642 | #include <math.h> | |
94f548c2 | 21643 | #endif |
db9f46a9 TG |
21644 | |
21645 | int (*ptr)() = (int (*)())roundl; | |
21646 | ||
94f548c2 FXC |
21647 | int |
21648 | main () | |
21649 | { | |
94f548c2 FXC |
21650 | return 0; |
21651 | } | |
db9f46a9 | 21652 | |
94f548c2 | 21653 | _ACEOF |
5213506e | 21654 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21655 | gcc_cv_math_func_roundl=yes |
94f548c2 | 21656 | else |
db9f46a9 | 21657 | gcc_cv_math_func_roundl=no |
94f548c2 | 21658 | fi |
5213506e RW |
21659 | rm -f core conftest.err conftest.$ac_objext \ |
21660 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21661 | fi |
db9f46a9 TG |
21662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21663 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21664 | if test $gcc_cv_math_func_roundl = yes; then | |
f1cdfa01 | 21665 | |
f38a14ca TG |
21666 | cat >>confdefs.h <<_ACEOF |
21667 | #define HAVE_ROUNDL 1 | |
21668 | _ACEOF | |
db9f46a9 TG |
21669 | |
21670 | fi | |
94f548c2 | 21671 | |
94f548c2 | 21672 | |
94f548c2 | 21673 | |
db9f46a9 TG |
21674 | |
21675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21676 | $as_echo_n "checking for lroundf... " >&6; } | |
22e05272 | 21677 | if ${gcc_cv_math_func_lroundf+:} false; then : |
5213506e | 21678 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21679 | else |
db9f46a9 | 21680 | if test x$gcc_no_link = xyes; then |
22e05272 | 21681 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21682 | fi |
5213506e | 21683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21684 | /* end confdefs.h. */ |
21685 | ||
db9f46a9 TG |
21686 | #ifdef HAVE_COMPLEX_H |
21687 | #include <complex.h> | |
94f548c2 | 21688 | #endif |
db9f46a9 TG |
21689 | #ifdef HAVE_MATH_H |
21690 | #include <math.h> | |
21691 | #endif | |
21692 | ||
21693 | int (*ptr)() = (int (*)())lroundf; | |
21694 | ||
94f548c2 FXC |
21695 | int |
21696 | main () | |
21697 | { | |
94f548c2 FXC |
21698 | return 0; |
21699 | } | |
db9f46a9 | 21700 | |
94f548c2 | 21701 | _ACEOF |
5213506e | 21702 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21703 | gcc_cv_math_func_lroundf=yes |
94f548c2 | 21704 | else |
db9f46a9 | 21705 | gcc_cv_math_func_lroundf=no |
94f548c2 | 21706 | fi |
5213506e RW |
21707 | rm -f core conftest.err conftest.$ac_objext \ |
21708 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21709 | fi |
db9f46a9 TG |
21710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21711 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21712 | if test $gcc_cv_math_func_lroundf = yes; then | |
f1cdfa01 | 21713 | |
f38a14ca TG |
21714 | cat >>confdefs.h <<_ACEOF |
21715 | #define HAVE_LROUNDF 1 | |
21716 | _ACEOF | |
94f548c2 | 21717 | |
db9f46a9 | 21718 | fi |
94f548c2 | 21719 | |
94f548c2 | 21720 | |
db9f46a9 TG |
21721 | |
21722 | ||
21723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21724 | $as_echo_n "checking for lround... " >&6; } | |
22e05272 | 21725 | if ${gcc_cv_math_func_lround+:} false; then : |
5213506e | 21726 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21727 | else |
db9f46a9 | 21728 | if test x$gcc_no_link = xyes; then |
22e05272 | 21729 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21730 | fi |
5213506e | 21731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21732 | /* end confdefs.h. */ |
21733 | ||
db9f46a9 TG |
21734 | #ifdef HAVE_COMPLEX_H |
21735 | #include <complex.h> | |
21736 | #endif | |
21737 | #ifdef HAVE_MATH_H | |
21738 | #include <math.h> | |
94f548c2 | 21739 | #endif |
db9f46a9 TG |
21740 | |
21741 | int (*ptr)() = (int (*)())lround; | |
21742 | ||
94f548c2 FXC |
21743 | int |
21744 | main () | |
21745 | { | |
94f548c2 FXC |
21746 | return 0; |
21747 | } | |
db9f46a9 | 21748 | |
94f548c2 | 21749 | _ACEOF |
5213506e | 21750 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21751 | gcc_cv_math_func_lround=yes |
94f548c2 | 21752 | else |
db9f46a9 | 21753 | gcc_cv_math_func_lround=no |
94f548c2 | 21754 | fi |
5213506e RW |
21755 | rm -f core conftest.err conftest.$ac_objext \ |
21756 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21757 | fi |
db9f46a9 TG |
21758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21759 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21760 | if test $gcc_cv_math_func_lround = yes; then | |
f1cdfa01 | 21761 | |
f38a14ca TG |
21762 | cat >>confdefs.h <<_ACEOF |
21763 | #define HAVE_LROUND 1 | |
21764 | _ACEOF | |
db9f46a9 TG |
21765 | |
21766 | fi | |
21767 | ||
94f548c2 | 21768 | |
94f548c2 | 21769 | |
94f548c2 | 21770 | |
db9f46a9 TG |
21771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21772 | $as_echo_n "checking for lroundl... " >&6; } | |
22e05272 | 21773 | if ${gcc_cv_math_func_lroundl+:} false; then : |
5213506e | 21774 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21775 | else |
db9f46a9 | 21776 | if test x$gcc_no_link = xyes; then |
22e05272 | 21777 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21778 | fi |
5213506e | 21779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21780 | /* end confdefs.h. */ |
21781 | ||
db9f46a9 TG |
21782 | #ifdef HAVE_COMPLEX_H |
21783 | #include <complex.h> | |
21784 | #endif | |
21785 | #ifdef HAVE_MATH_H | |
21786 | #include <math.h> | |
94f548c2 | 21787 | #endif |
db9f46a9 TG |
21788 | |
21789 | int (*ptr)() = (int (*)())lroundl; | |
21790 | ||
94f548c2 FXC |
21791 | int |
21792 | main () | |
21793 | { | |
94f548c2 FXC |
21794 | return 0; |
21795 | } | |
db9f46a9 | 21796 | |
94f548c2 | 21797 | _ACEOF |
5213506e | 21798 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21799 | gcc_cv_math_func_lroundl=yes |
94f548c2 | 21800 | else |
db9f46a9 | 21801 | gcc_cv_math_func_lroundl=no |
94f548c2 | 21802 | fi |
5213506e RW |
21803 | rm -f core conftest.err conftest.$ac_objext \ |
21804 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21805 | fi |
db9f46a9 TG |
21806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21807 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21808 | if test $gcc_cv_math_func_lroundl = yes; then | |
f1cdfa01 | 21809 | |
f38a14ca TG |
21810 | cat >>confdefs.h <<_ACEOF |
21811 | #define HAVE_LROUNDL 1 | |
21812 | _ACEOF | |
94f548c2 | 21813 | |
db9f46a9 | 21814 | fi |
94f548c2 | 21815 | |
94f548c2 | 21816 | |
db9f46a9 TG |
21817 | |
21818 | ||
21819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
21820 | $as_echo_n "checking for llroundf... " >&6; } | |
22e05272 | 21821 | if ${gcc_cv_math_func_llroundf+:} false; then : |
5213506e | 21822 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21823 | else |
db9f46a9 | 21824 | if test x$gcc_no_link = xyes; then |
22e05272 | 21825 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21826 | fi |
5213506e | 21827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21828 | /* end confdefs.h. */ |
21829 | ||
db9f46a9 TG |
21830 | #ifdef HAVE_COMPLEX_H |
21831 | #include <complex.h> | |
94f548c2 | 21832 | #endif |
db9f46a9 TG |
21833 | #ifdef HAVE_MATH_H |
21834 | #include <math.h> | |
21835 | #endif | |
21836 | ||
21837 | int (*ptr)() = (int (*)())llroundf; | |
21838 | ||
94f548c2 FXC |
21839 | int |
21840 | main () | |
21841 | { | |
94f548c2 FXC |
21842 | return 0; |
21843 | } | |
db9f46a9 | 21844 | |
94f548c2 | 21845 | _ACEOF |
5213506e | 21846 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21847 | gcc_cv_math_func_llroundf=yes |
94f548c2 | 21848 | else |
db9f46a9 | 21849 | gcc_cv_math_func_llroundf=no |
94f548c2 | 21850 | fi |
5213506e RW |
21851 | rm -f core conftest.err conftest.$ac_objext \ |
21852 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21853 | fi |
db9f46a9 TG |
21854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
21855 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
21856 | if test $gcc_cv_math_func_llroundf = yes; then | |
f1cdfa01 | 21857 | |
f38a14ca TG |
21858 | cat >>confdefs.h <<_ACEOF |
21859 | #define HAVE_LLROUNDF 1 | |
21860 | _ACEOF | |
94f548c2 | 21861 | |
db9f46a9 | 21862 | fi |
94f548c2 | 21863 | |
94f548c2 | 21864 | |
db9f46a9 TG |
21865 | |
21866 | ||
21867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
21868 | $as_echo_n "checking for llround... " >&6; } | |
22e05272 | 21869 | if ${gcc_cv_math_func_llround+:} false; then : |
5213506e | 21870 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21871 | else |
db9f46a9 | 21872 | if test x$gcc_no_link = xyes; then |
22e05272 | 21873 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21874 | fi |
5213506e | 21875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21876 | /* end confdefs.h. */ |
21877 | ||
db9f46a9 TG |
21878 | #ifdef HAVE_COMPLEX_H |
21879 | #include <complex.h> | |
21880 | #endif | |
21881 | #ifdef HAVE_MATH_H | |
21882 | #include <math.h> | |
94f548c2 | 21883 | #endif |
db9f46a9 TG |
21884 | |
21885 | int (*ptr)() = (int (*)())llround; | |
21886 | ||
94f548c2 FXC |
21887 | int |
21888 | main () | |
21889 | { | |
94f548c2 FXC |
21890 | return 0; |
21891 | } | |
db9f46a9 | 21892 | |
94f548c2 | 21893 | _ACEOF |
5213506e | 21894 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21895 | gcc_cv_math_func_llround=yes |
94f548c2 | 21896 | else |
db9f46a9 | 21897 | gcc_cv_math_func_llround=no |
94f548c2 | 21898 | fi |
5213506e RW |
21899 | rm -f core conftest.err conftest.$ac_objext \ |
21900 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21901 | fi |
db9f46a9 TG |
21902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
21903 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
21904 | if test $gcc_cv_math_func_llround = yes; then | |
f1cdfa01 | 21905 | |
f38a14ca TG |
21906 | cat >>confdefs.h <<_ACEOF |
21907 | #define HAVE_LLROUND 1 | |
21908 | _ACEOF | |
db9f46a9 TG |
21909 | |
21910 | fi | |
21911 | ||
94f548c2 | 21912 | |
94f548c2 | 21913 | |
94f548c2 | 21914 | |
db9f46a9 TG |
21915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
21916 | $as_echo_n "checking for llroundl... " >&6; } | |
22e05272 | 21917 | if ${gcc_cv_math_func_llroundl+:} false; then : |
5213506e | 21918 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21919 | else |
db9f46a9 | 21920 | if test x$gcc_no_link = xyes; then |
22e05272 | 21921 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21922 | fi |
5213506e | 21923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21924 | /* end confdefs.h. */ |
21925 | ||
db9f46a9 TG |
21926 | #ifdef HAVE_COMPLEX_H |
21927 | #include <complex.h> | |
21928 | #endif | |
21929 | #ifdef HAVE_MATH_H | |
21930 | #include <math.h> | |
1409cd0b | 21931 | #endif |
db9f46a9 TG |
21932 | |
21933 | int (*ptr)() = (int (*)())llroundl; | |
21934 | ||
1409cd0b FXC |
21935 | int |
21936 | main () | |
21937 | { | |
1409cd0b FXC |
21938 | return 0; |
21939 | } | |
db9f46a9 | 21940 | |
1409cd0b | 21941 | _ACEOF |
5213506e | 21942 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21943 | gcc_cv_math_func_llroundl=yes |
1409cd0b | 21944 | else |
db9f46a9 | 21945 | gcc_cv_math_func_llroundl=no |
1409cd0b | 21946 | fi |
5213506e RW |
21947 | rm -f core conftest.err conftest.$ac_objext \ |
21948 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21949 | fi |
db9f46a9 TG |
21950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
21951 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
21952 | if test $gcc_cv_math_func_llroundl = yes; then | |
f1cdfa01 | 21953 | |
f38a14ca TG |
21954 | cat >>confdefs.h <<_ACEOF |
21955 | #define HAVE_LLROUNDL 1 | |
21956 | _ACEOF | |
1409cd0b | 21957 | |
db9f46a9 | 21958 | fi |
1409cd0b | 21959 | |
1409cd0b | 21960 | |
db9f46a9 TG |
21961 | |
21962 | ||
21963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
21964 | $as_echo_n "checking for scalbnf... " >&6; } | |
22e05272 | 21965 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
5213506e | 21966 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21967 | else |
db9f46a9 | 21968 | if test x$gcc_no_link = xyes; then |
22e05272 | 21969 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21970 | fi |
5213506e | 21971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21972 | /* end confdefs.h. */ |
21973 | ||
db9f46a9 TG |
21974 | #ifdef HAVE_COMPLEX_H |
21975 | #include <complex.h> | |
1409cd0b | 21976 | #endif |
db9f46a9 TG |
21977 | #ifdef HAVE_MATH_H |
21978 | #include <math.h> | |
21979 | #endif | |
21980 | ||
21981 | int (*ptr)() = (int (*)())scalbnf; | |
21982 | ||
1409cd0b FXC |
21983 | int |
21984 | main () | |
21985 | { | |
1409cd0b FXC |
21986 | return 0; |
21987 | } | |
db9f46a9 | 21988 | |
1409cd0b | 21989 | _ACEOF |
5213506e | 21990 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21991 | gcc_cv_math_func_scalbnf=yes |
1409cd0b | 21992 | else |
db9f46a9 | 21993 | gcc_cv_math_func_scalbnf=no |
1409cd0b | 21994 | fi |
5213506e RW |
21995 | rm -f core conftest.err conftest.$ac_objext \ |
21996 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21997 | fi |
db9f46a9 TG |
21998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
21999 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
22000 | if test $gcc_cv_math_func_scalbnf = yes; then | |
f1cdfa01 | 22001 | |
f38a14ca TG |
22002 | cat >>confdefs.h <<_ACEOF |
22003 | #define HAVE_SCALBNF 1 | |
22004 | _ACEOF | |
1409cd0b | 22005 | |
db9f46a9 | 22006 | fi |
1409cd0b | 22007 | |
1409cd0b | 22008 | |
db9f46a9 TG |
22009 | |
22010 | ||
22011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
22012 | $as_echo_n "checking for scalbn... " >&6; } | |
22e05272 | 22013 | if ${gcc_cv_math_func_scalbn+:} false; then : |
5213506e | 22014 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22015 | else |
db9f46a9 | 22016 | if test x$gcc_no_link = xyes; then |
22e05272 | 22017 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22018 | fi |
5213506e | 22019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22020 | /* end confdefs.h. */ |
22021 | ||
db9f46a9 TG |
22022 | #ifdef HAVE_COMPLEX_H |
22023 | #include <complex.h> | |
22024 | #endif | |
22025 | #ifdef HAVE_MATH_H | |
22026 | #include <math.h> | |
1409cd0b | 22027 | #endif |
db9f46a9 TG |
22028 | |
22029 | int (*ptr)() = (int (*)())scalbn; | |
22030 | ||
1409cd0b FXC |
22031 | int |
22032 | main () | |
22033 | { | |
1409cd0b FXC |
22034 | return 0; |
22035 | } | |
db9f46a9 | 22036 | |
1409cd0b | 22037 | _ACEOF |
5213506e | 22038 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22039 | gcc_cv_math_func_scalbn=yes |
1409cd0b | 22040 | else |
db9f46a9 | 22041 | gcc_cv_math_func_scalbn=no |
1409cd0b | 22042 | fi |
5213506e RW |
22043 | rm -f core conftest.err conftest.$ac_objext \ |
22044 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22045 | fi |
db9f46a9 TG |
22046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
22047 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
22048 | if test $gcc_cv_math_func_scalbn = yes; then | |
f1cdfa01 | 22049 | |
f38a14ca TG |
22050 | cat >>confdefs.h <<_ACEOF |
22051 | #define HAVE_SCALBN 1 | |
22052 | _ACEOF | |
db9f46a9 TG |
22053 | |
22054 | fi | |
22055 | ||
1409cd0b | 22056 | |
1409cd0b | 22057 | |
1409cd0b | 22058 | |
db9f46a9 TG |
22059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
22060 | $as_echo_n "checking for scalbnl... " >&6; } | |
22e05272 | 22061 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
5213506e | 22062 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22063 | else |
db9f46a9 | 22064 | if test x$gcc_no_link = xyes; then |
22e05272 | 22065 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22066 | fi |
5213506e | 22067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22068 | /* end confdefs.h. */ |
22069 | ||
db9f46a9 TG |
22070 | #ifdef HAVE_COMPLEX_H |
22071 | #include <complex.h> | |
22072 | #endif | |
22073 | #ifdef HAVE_MATH_H | |
22074 | #include <math.h> | |
1409cd0b | 22075 | #endif |
db9f46a9 TG |
22076 | |
22077 | int (*ptr)() = (int (*)())scalbnl; | |
22078 | ||
1409cd0b FXC |
22079 | int |
22080 | main () | |
22081 | { | |
1409cd0b FXC |
22082 | return 0; |
22083 | } | |
db9f46a9 | 22084 | |
1409cd0b | 22085 | _ACEOF |
5213506e | 22086 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22087 | gcc_cv_math_func_scalbnl=yes |
1409cd0b | 22088 | else |
db9f46a9 | 22089 | gcc_cv_math_func_scalbnl=no |
1409cd0b | 22090 | fi |
5213506e RW |
22091 | rm -f core conftest.err conftest.$ac_objext \ |
22092 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22093 | fi |
db9f46a9 TG |
22094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
22095 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
22096 | if test $gcc_cv_math_func_scalbnl = yes; then | |
f1cdfa01 | 22097 | |
f38a14ca TG |
22098 | cat >>confdefs.h <<_ACEOF |
22099 | #define HAVE_SCALBNL 1 | |
22100 | _ACEOF | |
1409cd0b | 22101 | |
db9f46a9 | 22102 | fi |
1409cd0b | 22103 | |
1409cd0b | 22104 | |
db9f46a9 TG |
22105 | |
22106 | ||
22107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
22108 | $as_echo_n "checking for sinf... " >&6; } | |
22e05272 | 22109 | if ${gcc_cv_math_func_sinf+:} false; then : |
5213506e | 22110 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22111 | else |
db9f46a9 | 22112 | if test x$gcc_no_link = xyes; then |
22e05272 | 22113 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22114 | fi |
5213506e | 22115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22116 | /* end confdefs.h. */ |
22117 | ||
db9f46a9 TG |
22118 | #ifdef HAVE_COMPLEX_H |
22119 | #include <complex.h> | |
1409cd0b | 22120 | #endif |
db9f46a9 TG |
22121 | #ifdef HAVE_MATH_H |
22122 | #include <math.h> | |
22123 | #endif | |
22124 | ||
22125 | int (*ptr)() = (int (*)())sinf; | |
22126 | ||
1409cd0b FXC |
22127 | int |
22128 | main () | |
22129 | { | |
1409cd0b FXC |
22130 | return 0; |
22131 | } | |
db9f46a9 | 22132 | |
1409cd0b | 22133 | _ACEOF |
5213506e | 22134 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22135 | gcc_cv_math_func_sinf=yes |
1409cd0b | 22136 | else |
db9f46a9 | 22137 | gcc_cv_math_func_sinf=no |
1409cd0b | 22138 | fi |
5213506e RW |
22139 | rm -f core conftest.err conftest.$ac_objext \ |
22140 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22141 | fi |
db9f46a9 TG |
22142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
22143 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
22144 | if test $gcc_cv_math_func_sinf = yes; then | |
f1cdfa01 | 22145 | |
f38a14ca TG |
22146 | cat >>confdefs.h <<_ACEOF |
22147 | #define HAVE_SINF 1 | |
22148 | _ACEOF | |
1409cd0b | 22149 | |
db9f46a9 | 22150 | fi |
1409cd0b | 22151 | |
1409cd0b | 22152 | |
db9f46a9 TG |
22153 | |
22154 | ||
22155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
22156 | $as_echo_n "checking for sin... " >&6; } | |
22e05272 | 22157 | if ${gcc_cv_math_func_sin+:} false; then : |
5213506e | 22158 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22159 | else |
db9f46a9 | 22160 | if test x$gcc_no_link = xyes; then |
22e05272 | 22161 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22162 | fi |
5213506e | 22163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22164 | /* end confdefs.h. */ |
22165 | ||
db9f46a9 TG |
22166 | #ifdef HAVE_COMPLEX_H |
22167 | #include <complex.h> | |
1409cd0b | 22168 | #endif |
db9f46a9 TG |
22169 | #ifdef HAVE_MATH_H |
22170 | #include <math.h> | |
22171 | #endif | |
22172 | ||
22173 | int (*ptr)() = (int (*)())sin; | |
22174 | ||
1409cd0b FXC |
22175 | int |
22176 | main () | |
22177 | { | |
1409cd0b FXC |
22178 | return 0; |
22179 | } | |
db9f46a9 | 22180 | |
1409cd0b | 22181 | _ACEOF |
5213506e | 22182 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22183 | gcc_cv_math_func_sin=yes |
1409cd0b | 22184 | else |
db9f46a9 | 22185 | gcc_cv_math_func_sin=no |
1409cd0b | 22186 | fi |
5213506e RW |
22187 | rm -f core conftest.err conftest.$ac_objext \ |
22188 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22189 | fi |
db9f46a9 TG |
22190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22191 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22192 | if test $gcc_cv_math_func_sin = yes; then | |
f1cdfa01 | 22193 | |
f38a14ca TG |
22194 | cat >>confdefs.h <<_ACEOF |
22195 | #define HAVE_SIN 1 | |
22196 | _ACEOF | |
db9f46a9 TG |
22197 | |
22198 | fi | |
22199 | ||
1409cd0b | 22200 | |
1409cd0b | 22201 | |
1409cd0b | 22202 | |
db9f46a9 TG |
22203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22204 | $as_echo_n "checking for sinl... " >&6; } | |
22e05272 | 22205 | if ${gcc_cv_math_func_sinl+:} false; then : |
5213506e | 22206 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22207 | else |
db9f46a9 | 22208 | if test x$gcc_no_link = xyes; then |
22e05272 | 22209 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22210 | fi |
5213506e | 22211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22212 | /* end confdefs.h. */ |
22213 | ||
db9f46a9 TG |
22214 | #ifdef HAVE_COMPLEX_H |
22215 | #include <complex.h> | |
1409cd0b | 22216 | #endif |
db9f46a9 TG |
22217 | #ifdef HAVE_MATH_H |
22218 | #include <math.h> | |
22219 | #endif | |
22220 | ||
22221 | int (*ptr)() = (int (*)())sinl; | |
22222 | ||
1409cd0b FXC |
22223 | int |
22224 | main () | |
22225 | { | |
5213506e RW |
22226 | return 0; |
22227 | } | |
db9f46a9 | 22228 | |
5213506e RW |
22229 | _ACEOF |
22230 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 22231 | gcc_cv_math_func_sinl=yes |
1409cd0b | 22232 | else |
db9f46a9 | 22233 | gcc_cv_math_func_sinl=no |
1409cd0b | 22234 | fi |
5213506e RW |
22235 | rm -f core conftest.err conftest.$ac_objext \ |
22236 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22237 | fi |
db9f46a9 TG |
22238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22239 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22240 | if test $gcc_cv_math_func_sinl = yes; then | |
f1cdfa01 | 22241 | |
f38a14ca TG |
22242 | cat >>confdefs.h <<_ACEOF |
22243 | #define HAVE_SINL 1 | |
22244 | _ACEOF | |
db9f46a9 TG |
22245 | |
22246 | fi | |
1409cd0b | 22247 | |
1409cd0b | 22248 | |
1409cd0b | 22249 | |
db9f46a9 TG |
22250 | |
22251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22252 | $as_echo_n "checking for csinf... " >&6; } | |
22e05272 | 22253 | if ${gcc_cv_math_func_csinf+:} false; then : |
5213506e | 22254 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22255 | else |
db9f46a9 | 22256 | if test x$gcc_no_link = xyes; then |
22e05272 | 22257 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22258 | fi |
5213506e | 22259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22260 | /* end confdefs.h. */ |
22261 | ||
db9f46a9 TG |
22262 | #ifdef HAVE_COMPLEX_H |
22263 | #include <complex.h> | |
22264 | #endif | |
22265 | #ifdef HAVE_MATH_H | |
22266 | #include <math.h> | |
1409cd0b | 22267 | #endif |
db9f46a9 TG |
22268 | |
22269 | int (*ptr)() = (int (*)())csinf; | |
22270 | ||
1409cd0b FXC |
22271 | int |
22272 | main () | |
22273 | { | |
1409cd0b FXC |
22274 | return 0; |
22275 | } | |
db9f46a9 | 22276 | |
1409cd0b | 22277 | _ACEOF |
5213506e | 22278 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22279 | gcc_cv_math_func_csinf=yes |
1409cd0b | 22280 | else |
db9f46a9 | 22281 | gcc_cv_math_func_csinf=no |
1409cd0b | 22282 | fi |
5213506e RW |
22283 | rm -f core conftest.err conftest.$ac_objext \ |
22284 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22285 | fi |
db9f46a9 TG |
22286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22287 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22288 | if test $gcc_cv_math_func_csinf = yes; then | |
f1cdfa01 | 22289 | |
f38a14ca TG |
22290 | cat >>confdefs.h <<_ACEOF |
22291 | #define HAVE_CSINF 1 | |
22292 | _ACEOF | |
1409cd0b | 22293 | |
db9f46a9 | 22294 | fi |
1409cd0b | 22295 | |
1409cd0b | 22296 | |
db9f46a9 TG |
22297 | |
22298 | ||
22299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22300 | $as_echo_n "checking for csin... " >&6; } | |
22e05272 | 22301 | if ${gcc_cv_math_func_csin+:} false; then : |
5213506e | 22302 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22303 | else |
db9f46a9 | 22304 | if test x$gcc_no_link = xyes; then |
22e05272 | 22305 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22306 | fi |
5213506e | 22307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22308 | /* end confdefs.h. */ |
22309 | ||
db9f46a9 TG |
22310 | #ifdef HAVE_COMPLEX_H |
22311 | #include <complex.h> | |
1409cd0b | 22312 | #endif |
db9f46a9 TG |
22313 | #ifdef HAVE_MATH_H |
22314 | #include <math.h> | |
22315 | #endif | |
22316 | ||
22317 | int (*ptr)() = (int (*)())csin; | |
22318 | ||
1409cd0b FXC |
22319 | int |
22320 | main () | |
22321 | { | |
1409cd0b FXC |
22322 | return 0; |
22323 | } | |
db9f46a9 | 22324 | |
1409cd0b | 22325 | _ACEOF |
5213506e | 22326 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22327 | gcc_cv_math_func_csin=yes |
1409cd0b | 22328 | else |
db9f46a9 | 22329 | gcc_cv_math_func_csin=no |
1409cd0b | 22330 | fi |
5213506e RW |
22331 | rm -f core conftest.err conftest.$ac_objext \ |
22332 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22333 | fi |
db9f46a9 TG |
22334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22335 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22336 | if test $gcc_cv_math_func_csin = yes; then | |
f1cdfa01 | 22337 | |
f38a14ca TG |
22338 | cat >>confdefs.h <<_ACEOF |
22339 | #define HAVE_CSIN 1 | |
22340 | _ACEOF | |
db9f46a9 TG |
22341 | |
22342 | fi | |
22343 | ||
1409cd0b | 22344 | |
1409cd0b | 22345 | |
1409cd0b | 22346 | |
db9f46a9 TG |
22347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22348 | $as_echo_n "checking for csinl... " >&6; } | |
22e05272 | 22349 | if ${gcc_cv_math_func_csinl+:} false; then : |
5213506e | 22350 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22351 | else |
db9f46a9 | 22352 | if test x$gcc_no_link = xyes; then |
22e05272 | 22353 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22354 | fi |
5213506e | 22355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22356 | /* end confdefs.h. */ |
22357 | ||
db9f46a9 TG |
22358 | #ifdef HAVE_COMPLEX_H |
22359 | #include <complex.h> | |
1409cd0b | 22360 | #endif |
db9f46a9 TG |
22361 | #ifdef HAVE_MATH_H |
22362 | #include <math.h> | |
22363 | #endif | |
22364 | ||
22365 | int (*ptr)() = (int (*)())csinl; | |
22366 | ||
1409cd0b FXC |
22367 | int |
22368 | main () | |
22369 | { | |
1409cd0b FXC |
22370 | return 0; |
22371 | } | |
db9f46a9 | 22372 | |
1409cd0b | 22373 | _ACEOF |
5213506e | 22374 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22375 | gcc_cv_math_func_csinl=yes |
1409cd0b | 22376 | else |
db9f46a9 | 22377 | gcc_cv_math_func_csinl=no |
1409cd0b | 22378 | fi |
5213506e RW |
22379 | rm -f core conftest.err conftest.$ac_objext \ |
22380 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22381 | fi |
db9f46a9 TG |
22382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22383 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22384 | if test $gcc_cv_math_func_csinl = yes; then | |
f1cdfa01 | 22385 | |
f38a14ca TG |
22386 | cat >>confdefs.h <<_ACEOF |
22387 | #define HAVE_CSINL 1 | |
22388 | _ACEOF | |
db9f46a9 TG |
22389 | |
22390 | fi | |
1409cd0b | 22391 | |
1409cd0b | 22392 | |
1409cd0b | 22393 | |
db9f46a9 TG |
22394 | |
22395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22396 | $as_echo_n "checking for sinhf... " >&6; } | |
22e05272 | 22397 | if ${gcc_cv_math_func_sinhf+:} false; then : |
5213506e | 22398 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22399 | else |
db9f46a9 | 22400 | if test x$gcc_no_link = xyes; then |
22e05272 | 22401 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22402 | fi |
5213506e | 22403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22404 | /* end confdefs.h. */ |
22405 | ||
db9f46a9 TG |
22406 | #ifdef HAVE_COMPLEX_H |
22407 | #include <complex.h> | |
22408 | #endif | |
22409 | #ifdef HAVE_MATH_H | |
22410 | #include <math.h> | |
1409cd0b | 22411 | #endif |
db9f46a9 TG |
22412 | |
22413 | int (*ptr)() = (int (*)())sinhf; | |
22414 | ||
1409cd0b FXC |
22415 | int |
22416 | main () | |
22417 | { | |
1409cd0b FXC |
22418 | return 0; |
22419 | } | |
db9f46a9 | 22420 | |
1409cd0b | 22421 | _ACEOF |
5213506e | 22422 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22423 | gcc_cv_math_func_sinhf=yes |
1409cd0b | 22424 | else |
db9f46a9 | 22425 | gcc_cv_math_func_sinhf=no |
1409cd0b | 22426 | fi |
5213506e RW |
22427 | rm -f core conftest.err conftest.$ac_objext \ |
22428 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22429 | fi |
db9f46a9 TG |
22430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22431 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22432 | if test $gcc_cv_math_func_sinhf = yes; then | |
f1cdfa01 | 22433 | |
f38a14ca TG |
22434 | cat >>confdefs.h <<_ACEOF |
22435 | #define HAVE_SINHF 1 | |
22436 | _ACEOF | |
1409cd0b | 22437 | |
db9f46a9 | 22438 | fi |
1409cd0b | 22439 | |
1409cd0b | 22440 | |
db9f46a9 TG |
22441 | |
22442 | ||
22443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22444 | $as_echo_n "checking for sinh... " >&6; } | |
22e05272 | 22445 | if ${gcc_cv_math_func_sinh+:} false; then : |
5213506e | 22446 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22447 | else |
db9f46a9 | 22448 | if test x$gcc_no_link = xyes; then |
22e05272 | 22449 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22450 | fi |
5213506e | 22451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22452 | /* end confdefs.h. */ |
22453 | ||
db9f46a9 TG |
22454 | #ifdef HAVE_COMPLEX_H |
22455 | #include <complex.h> | |
1409cd0b | 22456 | #endif |
db9f46a9 TG |
22457 | #ifdef HAVE_MATH_H |
22458 | #include <math.h> | |
22459 | #endif | |
22460 | ||
22461 | int (*ptr)() = (int (*)())sinh; | |
22462 | ||
1409cd0b FXC |
22463 | int |
22464 | main () | |
22465 | { | |
1409cd0b FXC |
22466 | return 0; |
22467 | } | |
db9f46a9 | 22468 | |
1409cd0b | 22469 | _ACEOF |
5213506e | 22470 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22471 | gcc_cv_math_func_sinh=yes |
1409cd0b | 22472 | else |
db9f46a9 | 22473 | gcc_cv_math_func_sinh=no |
1409cd0b | 22474 | fi |
5213506e RW |
22475 | rm -f core conftest.err conftest.$ac_objext \ |
22476 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22477 | fi |
db9f46a9 TG |
22478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22479 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22480 | if test $gcc_cv_math_func_sinh = yes; then | |
f1cdfa01 | 22481 | |
f38a14ca TG |
22482 | cat >>confdefs.h <<_ACEOF |
22483 | #define HAVE_SINH 1 | |
22484 | _ACEOF | |
db9f46a9 TG |
22485 | |
22486 | fi | |
22487 | ||
1409cd0b | 22488 | |
1409cd0b | 22489 | |
1409cd0b | 22490 | |
db9f46a9 TG |
22491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22492 | $as_echo_n "checking for sinhl... " >&6; } | |
22e05272 | 22493 | if ${gcc_cv_math_func_sinhl+:} false; then : |
5213506e | 22494 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22495 | else |
db9f46a9 | 22496 | if test x$gcc_no_link = xyes; then |
22e05272 | 22497 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22498 | fi |
5213506e | 22499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22500 | /* end confdefs.h. */ |
22501 | ||
db9f46a9 TG |
22502 | #ifdef HAVE_COMPLEX_H |
22503 | #include <complex.h> | |
1409cd0b | 22504 | #endif |
db9f46a9 TG |
22505 | #ifdef HAVE_MATH_H |
22506 | #include <math.h> | |
22507 | #endif | |
22508 | ||
22509 | int (*ptr)() = (int (*)())sinhl; | |
22510 | ||
1409cd0b FXC |
22511 | int |
22512 | main () | |
22513 | { | |
1409cd0b FXC |
22514 | return 0; |
22515 | } | |
db9f46a9 | 22516 | |
1409cd0b | 22517 | _ACEOF |
5213506e | 22518 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22519 | gcc_cv_math_func_sinhl=yes |
1409cd0b | 22520 | else |
db9f46a9 | 22521 | gcc_cv_math_func_sinhl=no |
1409cd0b | 22522 | fi |
5213506e RW |
22523 | rm -f core conftest.err conftest.$ac_objext \ |
22524 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22525 | fi |
db9f46a9 TG |
22526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22527 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22528 | if test $gcc_cv_math_func_sinhl = yes; then | |
f1cdfa01 | 22529 | |
f38a14ca TG |
22530 | cat >>confdefs.h <<_ACEOF |
22531 | #define HAVE_SINHL 1 | |
22532 | _ACEOF | |
db9f46a9 TG |
22533 | |
22534 | fi | |
1409cd0b | 22535 | |
1409cd0b | 22536 | |
1409cd0b | 22537 | |
db9f46a9 TG |
22538 | |
22539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22540 | $as_echo_n "checking for csinhf... " >&6; } | |
22e05272 | 22541 | if ${gcc_cv_math_func_csinhf+:} false; then : |
5213506e | 22542 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22543 | else |
db9f46a9 | 22544 | if test x$gcc_no_link = xyes; then |
22e05272 | 22545 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22546 | fi |
5213506e | 22547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22548 | /* end confdefs.h. */ |
22549 | ||
db9f46a9 TG |
22550 | #ifdef HAVE_COMPLEX_H |
22551 | #include <complex.h> | |
22552 | #endif | |
22553 | #ifdef HAVE_MATH_H | |
22554 | #include <math.h> | |
1409cd0b | 22555 | #endif |
db9f46a9 TG |
22556 | |
22557 | int (*ptr)() = (int (*)())csinhf; | |
22558 | ||
1409cd0b FXC |
22559 | int |
22560 | main () | |
22561 | { | |
1409cd0b FXC |
22562 | return 0; |
22563 | } | |
db9f46a9 | 22564 | |
1409cd0b | 22565 | _ACEOF |
5213506e | 22566 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22567 | gcc_cv_math_func_csinhf=yes |
1409cd0b | 22568 | else |
db9f46a9 | 22569 | gcc_cv_math_func_csinhf=no |
1409cd0b | 22570 | fi |
5213506e RW |
22571 | rm -f core conftest.err conftest.$ac_objext \ |
22572 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22573 | fi |
db9f46a9 TG |
22574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22575 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22576 | if test $gcc_cv_math_func_csinhf = yes; then | |
f1cdfa01 | 22577 | |
f38a14ca TG |
22578 | cat >>confdefs.h <<_ACEOF |
22579 | #define HAVE_CSINHF 1 | |
22580 | _ACEOF | |
1409cd0b | 22581 | |
db9f46a9 | 22582 | fi |
1409cd0b | 22583 | |
1409cd0b | 22584 | |
db9f46a9 TG |
22585 | |
22586 | ||
22587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22588 | $as_echo_n "checking for csinh... " >&6; } | |
22e05272 | 22589 | if ${gcc_cv_math_func_csinh+:} false; then : |
5213506e | 22590 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22591 | else |
db9f46a9 | 22592 | if test x$gcc_no_link = xyes; then |
22e05272 | 22593 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22594 | fi |
5213506e | 22595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22596 | /* end confdefs.h. */ |
22597 | ||
db9f46a9 TG |
22598 | #ifdef HAVE_COMPLEX_H |
22599 | #include <complex.h> | |
1409cd0b | 22600 | #endif |
db9f46a9 TG |
22601 | #ifdef HAVE_MATH_H |
22602 | #include <math.h> | |
22603 | #endif | |
22604 | ||
22605 | int (*ptr)() = (int (*)())csinh; | |
22606 | ||
1409cd0b FXC |
22607 | int |
22608 | main () | |
22609 | { | |
1409cd0b FXC |
22610 | return 0; |
22611 | } | |
db9f46a9 | 22612 | |
1409cd0b | 22613 | _ACEOF |
5213506e | 22614 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22615 | gcc_cv_math_func_csinh=yes |
1409cd0b | 22616 | else |
db9f46a9 | 22617 | gcc_cv_math_func_csinh=no |
1409cd0b | 22618 | fi |
5213506e RW |
22619 | rm -f core conftest.err conftest.$ac_objext \ |
22620 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22621 | fi |
db9f46a9 TG |
22622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22623 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22624 | if test $gcc_cv_math_func_csinh = yes; then | |
f1cdfa01 | 22625 | |
f38a14ca TG |
22626 | cat >>confdefs.h <<_ACEOF |
22627 | #define HAVE_CSINH 1 | |
22628 | _ACEOF | |
db9f46a9 TG |
22629 | |
22630 | fi | |
22631 | ||
1409cd0b | 22632 | |
1409cd0b | 22633 | |
1409cd0b | 22634 | |
db9f46a9 TG |
22635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22636 | $as_echo_n "checking for csinhl... " >&6; } | |
22e05272 | 22637 | if ${gcc_cv_math_func_csinhl+:} false; then : |
5213506e | 22638 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22639 | else |
db9f46a9 | 22640 | if test x$gcc_no_link = xyes; then |
22e05272 | 22641 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22642 | fi |
5213506e | 22643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22644 | /* end confdefs.h. */ |
22645 | ||
db9f46a9 TG |
22646 | #ifdef HAVE_COMPLEX_H |
22647 | #include <complex.h> | |
1409cd0b | 22648 | #endif |
db9f46a9 TG |
22649 | #ifdef HAVE_MATH_H |
22650 | #include <math.h> | |
22651 | #endif | |
22652 | ||
22653 | int (*ptr)() = (int (*)())csinhl; | |
22654 | ||
1409cd0b FXC |
22655 | int |
22656 | main () | |
22657 | { | |
1409cd0b FXC |
22658 | return 0; |
22659 | } | |
db9f46a9 | 22660 | |
1409cd0b | 22661 | _ACEOF |
5213506e | 22662 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22663 | gcc_cv_math_func_csinhl=yes |
1409cd0b | 22664 | else |
db9f46a9 | 22665 | gcc_cv_math_func_csinhl=no |
1409cd0b | 22666 | fi |
5213506e RW |
22667 | rm -f core conftest.err conftest.$ac_objext \ |
22668 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22669 | fi |
db9f46a9 TG |
22670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22671 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22672 | if test $gcc_cv_math_func_csinhl = yes; then | |
f1cdfa01 | 22673 | |
f38a14ca TG |
22674 | cat >>confdefs.h <<_ACEOF |
22675 | #define HAVE_CSINHL 1 | |
22676 | _ACEOF | |
db9f46a9 TG |
22677 | |
22678 | fi | |
1409cd0b | 22679 | |
1409cd0b | 22680 | |
1409cd0b | 22681 | |
db9f46a9 TG |
22682 | |
22683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22684 | $as_echo_n "checking for sqrtf... " >&6; } | |
22e05272 | 22685 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
5213506e | 22686 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22687 | else |
db9f46a9 | 22688 | if test x$gcc_no_link = xyes; then |
22e05272 | 22689 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22690 | fi |
5213506e | 22691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22692 | /* end confdefs.h. */ |
22693 | ||
db9f46a9 TG |
22694 | #ifdef HAVE_COMPLEX_H |
22695 | #include <complex.h> | |
22696 | #endif | |
22697 | #ifdef HAVE_MATH_H | |
22698 | #include <math.h> | |
1409cd0b | 22699 | #endif |
db9f46a9 TG |
22700 | |
22701 | int (*ptr)() = (int (*)())sqrtf; | |
22702 | ||
1409cd0b FXC |
22703 | int |
22704 | main () | |
22705 | { | |
1409cd0b FXC |
22706 | return 0; |
22707 | } | |
db9f46a9 | 22708 | |
1409cd0b | 22709 | _ACEOF |
5213506e | 22710 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22711 | gcc_cv_math_func_sqrtf=yes |
1409cd0b | 22712 | else |
db9f46a9 | 22713 | gcc_cv_math_func_sqrtf=no |
1409cd0b | 22714 | fi |
5213506e RW |
22715 | rm -f core conftest.err conftest.$ac_objext \ |
22716 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22717 | fi |
db9f46a9 TG |
22718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22719 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22720 | if test $gcc_cv_math_func_sqrtf = yes; then | |
f1cdfa01 | 22721 | |
f38a14ca TG |
22722 | cat >>confdefs.h <<_ACEOF |
22723 | #define HAVE_SQRTF 1 | |
22724 | _ACEOF | |
db9f46a9 TG |
22725 | |
22726 | fi | |
1409cd0b | 22727 | |
1409cd0b | 22728 | |
db9f46a9 TG |
22729 | |
22730 | ||
22731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22732 | $as_echo_n "checking for sqrt... " >&6; } | |
22e05272 | 22733 | if ${gcc_cv_math_func_sqrt+:} false; then : |
db9f46a9 TG |
22734 | $as_echo_n "(cached) " >&6 |
22735 | else | |
22736 | if test x$gcc_no_link = xyes; then | |
22e05272 | 22737 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22738 | fi |
db9f46a9 TG |
22739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22740 | /* end confdefs.h. */ | |
22741 | ||
22742 | #ifdef HAVE_COMPLEX_H | |
22743 | #include <complex.h> | |
22744 | #endif | |
22745 | #ifdef HAVE_MATH_H | |
22746 | #include <math.h> | |
22747 | #endif | |
22748 | ||
22749 | int (*ptr)() = (int (*)())sqrt; | |
22750 | ||
22751 | int | |
22752 | main () | |
22753 | { | |
22754 | return 0; | |
22755 | } | |
22756 | ||
22757 | _ACEOF | |
22758 | if ac_fn_c_try_link "$LINENO"; then : | |
22759 | gcc_cv_math_func_sqrt=yes | |
22760 | else | |
22761 | gcc_cv_math_func_sqrt=no | |
22762 | fi | |
22763 | rm -f core conftest.err conftest.$ac_objext \ | |
22764 | conftest$ac_exeext conftest.$ac_ext | |
22765 | fi | |
22766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22767 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22768 | if test $gcc_cv_math_func_sqrt = yes; then | |
f1cdfa01 | 22769 | |
f38a14ca TG |
22770 | cat >>confdefs.h <<_ACEOF |
22771 | #define HAVE_SQRT 1 | |
22772 | _ACEOF | |
db9f46a9 TG |
22773 | |
22774 | fi | |
1409cd0b | 22775 | |
db9f46a9 TG |
22776 | |
22777 | ||
22778 | ||
22779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22780 | $as_echo_n "checking for sqrtl... " >&6; } | |
22e05272 | 22781 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
5213506e | 22782 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22783 | else |
db9f46a9 | 22784 | if test x$gcc_no_link = xyes; then |
22e05272 | 22785 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22786 | fi |
5213506e | 22787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22788 | /* end confdefs.h. */ |
22789 | ||
db9f46a9 TG |
22790 | #ifdef HAVE_COMPLEX_H |
22791 | #include <complex.h> | |
22792 | #endif | |
22793 | #ifdef HAVE_MATH_H | |
22794 | #include <math.h> | |
1409cd0b | 22795 | #endif |
db9f46a9 TG |
22796 | |
22797 | int (*ptr)() = (int (*)())sqrtl; | |
22798 | ||
1409cd0b FXC |
22799 | int |
22800 | main () | |
22801 | { | |
1409cd0b FXC |
22802 | return 0; |
22803 | } | |
db9f46a9 | 22804 | |
1409cd0b | 22805 | _ACEOF |
5213506e | 22806 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22807 | gcc_cv_math_func_sqrtl=yes |
1409cd0b | 22808 | else |
db9f46a9 | 22809 | gcc_cv_math_func_sqrtl=no |
1409cd0b | 22810 | fi |
5213506e RW |
22811 | rm -f core conftest.err conftest.$ac_objext \ |
22812 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22813 | fi |
db9f46a9 TG |
22814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22815 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22816 | if test $gcc_cv_math_func_sqrtl = yes; then | |
f1cdfa01 | 22817 | |
f38a14ca TG |
22818 | cat >>confdefs.h <<_ACEOF |
22819 | #define HAVE_SQRTL 1 | |
22820 | _ACEOF | |
db9f46a9 TG |
22821 | |
22822 | fi | |
1409cd0b | 22823 | |
1409cd0b | 22824 | |
1409cd0b | 22825 | |
db9f46a9 TG |
22826 | |
22827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
22828 | $as_echo_n "checking for csqrtf... " >&6; } | |
22e05272 | 22829 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
5213506e | 22830 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22831 | else |
db9f46a9 | 22832 | if test x$gcc_no_link = xyes; then |
22e05272 | 22833 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22834 | fi |
5213506e | 22835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22836 | /* end confdefs.h. */ |
22837 | ||
db9f46a9 TG |
22838 | #ifdef HAVE_COMPLEX_H |
22839 | #include <complex.h> | |
1409cd0b | 22840 | #endif |
db9f46a9 TG |
22841 | #ifdef HAVE_MATH_H |
22842 | #include <math.h> | |
22843 | #endif | |
22844 | ||
22845 | int (*ptr)() = (int (*)())csqrtf; | |
22846 | ||
1409cd0b FXC |
22847 | int |
22848 | main () | |
22849 | { | |
1409cd0b FXC |
22850 | return 0; |
22851 | } | |
db9f46a9 | 22852 | |
1409cd0b | 22853 | _ACEOF |
5213506e | 22854 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22855 | gcc_cv_math_func_csqrtf=yes |
1409cd0b | 22856 | else |
db9f46a9 | 22857 | gcc_cv_math_func_csqrtf=no |
1409cd0b | 22858 | fi |
5213506e RW |
22859 | rm -f core conftest.err conftest.$ac_objext \ |
22860 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22861 | fi |
db9f46a9 TG |
22862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
22863 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
22864 | if test $gcc_cv_math_func_csqrtf = yes; then | |
f1cdfa01 | 22865 | |
f38a14ca TG |
22866 | cat >>confdefs.h <<_ACEOF |
22867 | #define HAVE_CSQRTF 1 | |
22868 | _ACEOF | |
1409cd0b | 22869 | |
db9f46a9 | 22870 | fi |
1409cd0b | 22871 | |
1409cd0b | 22872 | |
db9f46a9 TG |
22873 | |
22874 | ||
22875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
22876 | $as_echo_n "checking for csqrt... " >&6; } | |
22e05272 | 22877 | if ${gcc_cv_math_func_csqrt+:} false; then : |
5213506e | 22878 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22879 | else |
db9f46a9 | 22880 | if test x$gcc_no_link = xyes; then |
22e05272 | 22881 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22882 | fi |
5213506e | 22883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22884 | /* end confdefs.h. */ |
22885 | ||
db9f46a9 TG |
22886 | #ifdef HAVE_COMPLEX_H |
22887 | #include <complex.h> | |
22888 | #endif | |
22889 | #ifdef HAVE_MATH_H | |
22890 | #include <math.h> | |
1409cd0b | 22891 | #endif |
db9f46a9 TG |
22892 | |
22893 | int (*ptr)() = (int (*)())csqrt; | |
22894 | ||
1409cd0b FXC |
22895 | int |
22896 | main () | |
22897 | { | |
1409cd0b FXC |
22898 | return 0; |
22899 | } | |
db9f46a9 | 22900 | |
1409cd0b | 22901 | _ACEOF |
5213506e | 22902 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22903 | gcc_cv_math_func_csqrt=yes |
1409cd0b | 22904 | else |
db9f46a9 | 22905 | gcc_cv_math_func_csqrt=no |
1409cd0b | 22906 | fi |
5213506e RW |
22907 | rm -f core conftest.err conftest.$ac_objext \ |
22908 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22909 | fi |
db9f46a9 TG |
22910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
22911 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
22912 | if test $gcc_cv_math_func_csqrt = yes; then | |
f1cdfa01 | 22913 | |
f38a14ca TG |
22914 | cat >>confdefs.h <<_ACEOF |
22915 | #define HAVE_CSQRT 1 | |
22916 | _ACEOF | |
db9f46a9 TG |
22917 | |
22918 | fi | |
1409cd0b | 22919 | |
1409cd0b | 22920 | |
1409cd0b | 22921 | |
db9f46a9 TG |
22922 | |
22923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
22924 | $as_echo_n "checking for csqrtl... " >&6; } | |
22e05272 | 22925 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
5213506e | 22926 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22927 | else |
db9f46a9 | 22928 | if test x$gcc_no_link = xyes; then |
22e05272 | 22929 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22930 | fi |
5213506e | 22931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22932 | /* end confdefs.h. */ |
22933 | ||
db9f46a9 TG |
22934 | #ifdef HAVE_COMPLEX_H |
22935 | #include <complex.h> | |
1409cd0b | 22936 | #endif |
db9f46a9 TG |
22937 | #ifdef HAVE_MATH_H |
22938 | #include <math.h> | |
22939 | #endif | |
22940 | ||
22941 | int (*ptr)() = (int (*)())csqrtl; | |
22942 | ||
1409cd0b FXC |
22943 | int |
22944 | main () | |
22945 | { | |
1409cd0b FXC |
22946 | return 0; |
22947 | } | |
db9f46a9 | 22948 | |
1409cd0b | 22949 | _ACEOF |
5213506e | 22950 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22951 | gcc_cv_math_func_csqrtl=yes |
1409cd0b | 22952 | else |
db9f46a9 | 22953 | gcc_cv_math_func_csqrtl=no |
1409cd0b | 22954 | fi |
5213506e RW |
22955 | rm -f core conftest.err conftest.$ac_objext \ |
22956 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22957 | fi |
db9f46a9 TG |
22958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
22959 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
22960 | if test $gcc_cv_math_func_csqrtl = yes; then | |
f1cdfa01 | 22961 | |
f38a14ca TG |
22962 | cat >>confdefs.h <<_ACEOF |
22963 | #define HAVE_CSQRTL 1 | |
22964 | _ACEOF | |
db9f46a9 TG |
22965 | |
22966 | fi | |
22967 | ||
1409cd0b | 22968 | |
1409cd0b | 22969 | |
1409cd0b | 22970 | |
db9f46a9 TG |
22971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
22972 | $as_echo_n "checking for tanf... " >&6; } | |
22e05272 | 22973 | if ${gcc_cv_math_func_tanf+:} false; then : |
5213506e | 22974 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22975 | else |
db9f46a9 | 22976 | if test x$gcc_no_link = xyes; then |
22e05272 | 22977 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22978 | fi |
5213506e | 22979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22980 | /* end confdefs.h. */ |
22981 | ||
db9f46a9 TG |
22982 | #ifdef HAVE_COMPLEX_H |
22983 | #include <complex.h> | |
22984 | #endif | |
22985 | #ifdef HAVE_MATH_H | |
22986 | #include <math.h> | |
1409cd0b | 22987 | #endif |
db9f46a9 TG |
22988 | |
22989 | int (*ptr)() = (int (*)())tanf; | |
22990 | ||
1409cd0b FXC |
22991 | int |
22992 | main () | |
22993 | { | |
1409cd0b FXC |
22994 | return 0; |
22995 | } | |
db9f46a9 | 22996 | |
1409cd0b | 22997 | _ACEOF |
5213506e | 22998 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22999 | gcc_cv_math_func_tanf=yes |
1409cd0b | 23000 | else |
db9f46a9 | 23001 | gcc_cv_math_func_tanf=no |
1409cd0b | 23002 | fi |
5213506e RW |
23003 | rm -f core conftest.err conftest.$ac_objext \ |
23004 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23005 | fi |
db9f46a9 TG |
23006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
23007 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
23008 | if test $gcc_cv_math_func_tanf = yes; then | |
f1cdfa01 | 23009 | |
f38a14ca TG |
23010 | cat >>confdefs.h <<_ACEOF |
23011 | #define HAVE_TANF 1 | |
23012 | _ACEOF | |
db9f46a9 TG |
23013 | |
23014 | fi | |
1409cd0b | 23015 | |
1409cd0b | 23016 | |
1409cd0b | 23017 | |
db9f46a9 TG |
23018 | |
23019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
23020 | $as_echo_n "checking for tan... " >&6; } | |
22e05272 | 23021 | if ${gcc_cv_math_func_tan+:} false; then : |
5213506e | 23022 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23023 | else |
db9f46a9 | 23024 | if test x$gcc_no_link = xyes; then |
22e05272 | 23025 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23026 | fi |
5213506e | 23027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23028 | /* end confdefs.h. */ |
23029 | ||
db9f46a9 TG |
23030 | #ifdef HAVE_COMPLEX_H |
23031 | #include <complex.h> | |
1409cd0b | 23032 | #endif |
db9f46a9 TG |
23033 | #ifdef HAVE_MATH_H |
23034 | #include <math.h> | |
23035 | #endif | |
23036 | ||
23037 | int (*ptr)() = (int (*)())tan; | |
23038 | ||
1409cd0b FXC |
23039 | int |
23040 | main () | |
23041 | { | |
1409cd0b FXC |
23042 | return 0; |
23043 | } | |
db9f46a9 | 23044 | |
1409cd0b | 23045 | _ACEOF |
5213506e | 23046 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23047 | gcc_cv_math_func_tan=yes |
1409cd0b | 23048 | else |
db9f46a9 | 23049 | gcc_cv_math_func_tan=no |
1409cd0b | 23050 | fi |
5213506e RW |
23051 | rm -f core conftest.err conftest.$ac_objext \ |
23052 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23053 | fi |
db9f46a9 TG |
23054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
23055 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
23056 | if test $gcc_cv_math_func_tan = yes; then | |
f1cdfa01 | 23057 | |
f38a14ca TG |
23058 | cat >>confdefs.h <<_ACEOF |
23059 | #define HAVE_TAN 1 | |
23060 | _ACEOF | |
1409cd0b | 23061 | |
db9f46a9 | 23062 | fi |
1409cd0b | 23063 | |
1409cd0b | 23064 | |
db9f46a9 TG |
23065 | |
23066 | ||
23067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
23068 | $as_echo_n "checking for tanl... " >&6; } | |
22e05272 | 23069 | if ${gcc_cv_math_func_tanl+:} false; then : |
5213506e | 23070 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23071 | else |
db9f46a9 | 23072 | if test x$gcc_no_link = xyes; then |
22e05272 | 23073 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23074 | fi |
5213506e | 23075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23076 | /* end confdefs.h. */ |
23077 | ||
db9f46a9 TG |
23078 | #ifdef HAVE_COMPLEX_H |
23079 | #include <complex.h> | |
23080 | #endif | |
23081 | #ifdef HAVE_MATH_H | |
23082 | #include <math.h> | |
1409cd0b | 23083 | #endif |
db9f46a9 TG |
23084 | |
23085 | int (*ptr)() = (int (*)())tanl; | |
23086 | ||
1409cd0b FXC |
23087 | int |
23088 | main () | |
23089 | { | |
1409cd0b FXC |
23090 | return 0; |
23091 | } | |
db9f46a9 | 23092 | |
1409cd0b | 23093 | _ACEOF |
5213506e | 23094 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23095 | gcc_cv_math_func_tanl=yes |
1409cd0b | 23096 | else |
db9f46a9 | 23097 | gcc_cv_math_func_tanl=no |
1409cd0b | 23098 | fi |
5213506e RW |
23099 | rm -f core conftest.err conftest.$ac_objext \ |
23100 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23101 | fi |
db9f46a9 TG |
23102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
23103 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
23104 | if test $gcc_cv_math_func_tanl = yes; then | |
f1cdfa01 | 23105 | |
f38a14ca TG |
23106 | cat >>confdefs.h <<_ACEOF |
23107 | #define HAVE_TANL 1 | |
23108 | _ACEOF | |
db9f46a9 TG |
23109 | |
23110 | fi | |
1409cd0b | 23111 | |
1409cd0b | 23112 | |
1409cd0b | 23113 | |
db9f46a9 TG |
23114 | |
23115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
23116 | $as_echo_n "checking for ctanf... " >&6; } | |
22e05272 | 23117 | if ${gcc_cv_math_func_ctanf+:} false; then : |
5213506e | 23118 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23119 | else |
db9f46a9 | 23120 | if test x$gcc_no_link = xyes; then |
22e05272 | 23121 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23122 | fi |
5213506e | 23123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23124 | /* end confdefs.h. */ |
23125 | ||
db9f46a9 TG |
23126 | #ifdef HAVE_COMPLEX_H |
23127 | #include <complex.h> | |
1409cd0b | 23128 | #endif |
db9f46a9 TG |
23129 | #ifdef HAVE_MATH_H |
23130 | #include <math.h> | |
23131 | #endif | |
23132 | ||
23133 | int (*ptr)() = (int (*)())ctanf; | |
23134 | ||
1409cd0b FXC |
23135 | int |
23136 | main () | |
23137 | { | |
1409cd0b FXC |
23138 | return 0; |
23139 | } | |
db9f46a9 | 23140 | |
1409cd0b | 23141 | _ACEOF |
5213506e | 23142 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23143 | gcc_cv_math_func_ctanf=yes |
1409cd0b | 23144 | else |
db9f46a9 | 23145 | gcc_cv_math_func_ctanf=no |
1409cd0b | 23146 | fi |
5213506e RW |
23147 | rm -f core conftest.err conftest.$ac_objext \ |
23148 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23149 | fi |
db9f46a9 TG |
23150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
23151 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
23152 | if test $gcc_cv_math_func_ctanf = yes; then | |
f1cdfa01 | 23153 | |
f38a14ca TG |
23154 | cat >>confdefs.h <<_ACEOF |
23155 | #define HAVE_CTANF 1 | |
23156 | _ACEOF | |
db9f46a9 TG |
23157 | |
23158 | fi | |
23159 | ||
1409cd0b | 23160 | |
1409cd0b | 23161 | |
1409cd0b | 23162 | |
db9f46a9 TG |
23163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
23164 | $as_echo_n "checking for ctan... " >&6; } | |
22e05272 | 23165 | if ${gcc_cv_math_func_ctan+:} false; then : |
5213506e | 23166 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23167 | else |
db9f46a9 | 23168 | if test x$gcc_no_link = xyes; then |
22e05272 | 23169 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23170 | fi |
5213506e | 23171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23172 | /* end confdefs.h. */ |
23173 | ||
db9f46a9 TG |
23174 | #ifdef HAVE_COMPLEX_H |
23175 | #include <complex.h> | |
23176 | #endif | |
23177 | #ifdef HAVE_MATH_H | |
23178 | #include <math.h> | |
1409cd0b | 23179 | #endif |
db9f46a9 TG |
23180 | |
23181 | int (*ptr)() = (int (*)())ctan; | |
23182 | ||
1409cd0b FXC |
23183 | int |
23184 | main () | |
23185 | { | |
1409cd0b FXC |
23186 | return 0; |
23187 | } | |
db9f46a9 | 23188 | |
1409cd0b | 23189 | _ACEOF |
5213506e | 23190 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23191 | gcc_cv_math_func_ctan=yes |
1409cd0b | 23192 | else |
db9f46a9 | 23193 | gcc_cv_math_func_ctan=no |
1409cd0b | 23194 | fi |
5213506e RW |
23195 | rm -f core conftest.err conftest.$ac_objext \ |
23196 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23197 | fi |
db9f46a9 TG |
23198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23199 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23200 | if test $gcc_cv_math_func_ctan = yes; then | |
f1cdfa01 | 23201 | |
f38a14ca TG |
23202 | cat >>confdefs.h <<_ACEOF |
23203 | #define HAVE_CTAN 1 | |
23204 | _ACEOF | |
db9f46a9 TG |
23205 | |
23206 | fi | |
1409cd0b | 23207 | |
1409cd0b | 23208 | |
1409cd0b | 23209 | |
db9f46a9 TG |
23210 | |
23211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23212 | $as_echo_n "checking for ctanl... " >&6; } | |
22e05272 | 23213 | if ${gcc_cv_math_func_ctanl+:} false; then : |
5213506e | 23214 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23215 | else |
db9f46a9 | 23216 | if test x$gcc_no_link = xyes; then |
22e05272 | 23217 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23218 | fi |
5213506e | 23219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23220 | /* end confdefs.h. */ |
23221 | ||
db9f46a9 TG |
23222 | #ifdef HAVE_COMPLEX_H |
23223 | #include <complex.h> | |
1409cd0b | 23224 | #endif |
db9f46a9 TG |
23225 | #ifdef HAVE_MATH_H |
23226 | #include <math.h> | |
23227 | #endif | |
23228 | ||
23229 | int (*ptr)() = (int (*)())ctanl; | |
23230 | ||
1409cd0b FXC |
23231 | int |
23232 | main () | |
23233 | { | |
1409cd0b FXC |
23234 | return 0; |
23235 | } | |
db9f46a9 | 23236 | |
1409cd0b | 23237 | _ACEOF |
5213506e | 23238 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23239 | gcc_cv_math_func_ctanl=yes |
1409cd0b | 23240 | else |
db9f46a9 | 23241 | gcc_cv_math_func_ctanl=no |
1409cd0b | 23242 | fi |
5213506e RW |
23243 | rm -f core conftest.err conftest.$ac_objext \ |
23244 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23245 | fi |
db9f46a9 TG |
23246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23247 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23248 | if test $gcc_cv_math_func_ctanl = yes; then | |
f1cdfa01 | 23249 | |
f38a14ca TG |
23250 | cat >>confdefs.h <<_ACEOF |
23251 | #define HAVE_CTANL 1 | |
23252 | _ACEOF | |
1409cd0b | 23253 | |
db9f46a9 | 23254 | fi |
1409cd0b | 23255 | |
1409cd0b | 23256 | |
db9f46a9 TG |
23257 | |
23258 | ||
23259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23260 | $as_echo_n "checking for tanhf... " >&6; } | |
22e05272 | 23261 | if ${gcc_cv_math_func_tanhf+:} false; then : |
5213506e | 23262 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23263 | else |
db9f46a9 | 23264 | if test x$gcc_no_link = xyes; then |
22e05272 | 23265 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23266 | fi |
5213506e | 23267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23268 | /* end confdefs.h. */ |
23269 | ||
db9f46a9 TG |
23270 | #ifdef HAVE_COMPLEX_H |
23271 | #include <complex.h> | |
23272 | #endif | |
23273 | #ifdef HAVE_MATH_H | |
23274 | #include <math.h> | |
1409cd0b | 23275 | #endif |
db9f46a9 TG |
23276 | |
23277 | int (*ptr)() = (int (*)())tanhf; | |
23278 | ||
1409cd0b FXC |
23279 | int |
23280 | main () | |
23281 | { | |
1409cd0b FXC |
23282 | return 0; |
23283 | } | |
db9f46a9 | 23284 | |
1409cd0b | 23285 | _ACEOF |
5213506e | 23286 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23287 | gcc_cv_math_func_tanhf=yes |
1409cd0b | 23288 | else |
db9f46a9 | 23289 | gcc_cv_math_func_tanhf=no |
1409cd0b | 23290 | fi |
5213506e RW |
23291 | rm -f core conftest.err conftest.$ac_objext \ |
23292 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23293 | fi |
db9f46a9 TG |
23294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23295 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23296 | if test $gcc_cv_math_func_tanhf = yes; then | |
f1cdfa01 | 23297 | |
f38a14ca TG |
23298 | cat >>confdefs.h <<_ACEOF |
23299 | #define HAVE_TANHF 1 | |
23300 | _ACEOF | |
db9f46a9 TG |
23301 | |
23302 | fi | |
1409cd0b | 23303 | |
1409cd0b | 23304 | |
1409cd0b | 23305 | |
db9f46a9 TG |
23306 | |
23307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23308 | $as_echo_n "checking for tanh... " >&6; } | |
22e05272 | 23309 | if ${gcc_cv_math_func_tanh+:} false; then : |
5213506e | 23310 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23311 | else |
db9f46a9 | 23312 | if test x$gcc_no_link = xyes; then |
22e05272 | 23313 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23314 | fi |
5213506e | 23315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23316 | /* end confdefs.h. */ |
23317 | ||
db9f46a9 TG |
23318 | #ifdef HAVE_COMPLEX_H |
23319 | #include <complex.h> | |
1409cd0b | 23320 | #endif |
db9f46a9 TG |
23321 | #ifdef HAVE_MATH_H |
23322 | #include <math.h> | |
23323 | #endif | |
23324 | ||
23325 | int (*ptr)() = (int (*)())tanh; | |
23326 | ||
1409cd0b FXC |
23327 | int |
23328 | main () | |
23329 | { | |
1409cd0b FXC |
23330 | return 0; |
23331 | } | |
db9f46a9 | 23332 | |
1409cd0b | 23333 | _ACEOF |
5213506e | 23334 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23335 | gcc_cv_math_func_tanh=yes |
1409cd0b | 23336 | else |
db9f46a9 | 23337 | gcc_cv_math_func_tanh=no |
1409cd0b | 23338 | fi |
5213506e RW |
23339 | rm -f core conftest.err conftest.$ac_objext \ |
23340 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23341 | fi |
db9f46a9 TG |
23342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23343 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23344 | if test $gcc_cv_math_func_tanh = yes; then | |
f1cdfa01 | 23345 | |
f38a14ca TG |
23346 | cat >>confdefs.h <<_ACEOF |
23347 | #define HAVE_TANH 1 | |
23348 | _ACEOF | |
db9f46a9 TG |
23349 | |
23350 | fi | |
23351 | ||
1409cd0b | 23352 | |
1409cd0b | 23353 | |
1409cd0b | 23354 | |
db9f46a9 TG |
23355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23356 | $as_echo_n "checking for tanhl... " >&6; } | |
22e05272 | 23357 | if ${gcc_cv_math_func_tanhl+:} false; then : |
5213506e | 23358 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23359 | else |
db9f46a9 | 23360 | if test x$gcc_no_link = xyes; then |
22e05272 | 23361 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23362 | fi |
5213506e | 23363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23364 | /* end confdefs.h. */ |
23365 | ||
db9f46a9 TG |
23366 | #ifdef HAVE_COMPLEX_H |
23367 | #include <complex.h> | |
23368 | #endif | |
23369 | #ifdef HAVE_MATH_H | |
23370 | #include <math.h> | |
1409cd0b | 23371 | #endif |
db9f46a9 TG |
23372 | |
23373 | int (*ptr)() = (int (*)())tanhl; | |
23374 | ||
1409cd0b FXC |
23375 | int |
23376 | main () | |
23377 | { | |
1409cd0b FXC |
23378 | return 0; |
23379 | } | |
db9f46a9 | 23380 | |
1409cd0b | 23381 | _ACEOF |
5213506e | 23382 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23383 | gcc_cv_math_func_tanhl=yes |
1409cd0b | 23384 | else |
db9f46a9 | 23385 | gcc_cv_math_func_tanhl=no |
1409cd0b | 23386 | fi |
5213506e RW |
23387 | rm -f core conftest.err conftest.$ac_objext \ |
23388 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23389 | fi |
db9f46a9 TG |
23390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23391 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23392 | if test $gcc_cv_math_func_tanhl = yes; then | |
f1cdfa01 | 23393 | |
f38a14ca TG |
23394 | cat >>confdefs.h <<_ACEOF |
23395 | #define HAVE_TANHL 1 | |
23396 | _ACEOF | |
db9f46a9 TG |
23397 | |
23398 | fi | |
1409cd0b | 23399 | |
1409cd0b | 23400 | |
1409cd0b | 23401 | |
db9f46a9 TG |
23402 | |
23403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23404 | $as_echo_n "checking for ctanhf... " >&6; } | |
22e05272 | 23405 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
5213506e | 23406 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23407 | else |
db9f46a9 | 23408 | if test x$gcc_no_link = xyes; then |
22e05272 | 23409 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db9f46a9 TG |
23410 | fi |
23411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23412 | /* end confdefs.h. */ | |
23413 | ||
23414 | #ifdef HAVE_COMPLEX_H | |
23415 | #include <complex.h> | |
1409cd0b | 23416 | #endif |
db9f46a9 TG |
23417 | #ifdef HAVE_MATH_H |
23418 | #include <math.h> | |
23419 | #endif | |
23420 | ||
23421 | int (*ptr)() = (int (*)())ctanhf; | |
23422 | ||
1409cd0b FXC |
23423 | int |
23424 | main () | |
23425 | { | |
1409cd0b FXC |
23426 | return 0; |
23427 | } | |
db9f46a9 | 23428 | |
1409cd0b | 23429 | _ACEOF |
5213506e | 23430 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23431 | gcc_cv_math_func_ctanhf=yes |
1409cd0b | 23432 | else |
db9f46a9 | 23433 | gcc_cv_math_func_ctanhf=no |
1409cd0b | 23434 | fi |
5213506e RW |
23435 | rm -f core conftest.err conftest.$ac_objext \ |
23436 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23437 | fi |
db9f46a9 TG |
23438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23439 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23440 | if test $gcc_cv_math_func_ctanhf = yes; then | |
f1cdfa01 | 23441 | |
f38a14ca TG |
23442 | cat >>confdefs.h <<_ACEOF |
23443 | #define HAVE_CTANHF 1 | |
23444 | _ACEOF | |
1409cd0b | 23445 | |
db9f46a9 | 23446 | fi |
1409cd0b | 23447 | |
1409cd0b | 23448 | |
db9f46a9 TG |
23449 | |
23450 | ||
23451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23452 | $as_echo_n "checking for ctanh... " >&6; } | |
22e05272 | 23453 | if ${gcc_cv_math_func_ctanh+:} false; then : |
5213506e | 23454 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23455 | else |
db9f46a9 | 23456 | if test x$gcc_no_link = xyes; then |
22e05272 | 23457 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23458 | fi |
5213506e | 23459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23460 | /* end confdefs.h. */ |
23461 | ||
db9f46a9 TG |
23462 | #ifdef HAVE_COMPLEX_H |
23463 | #include <complex.h> | |
23464 | #endif | |
23465 | #ifdef HAVE_MATH_H | |
23466 | #include <math.h> | |
1409cd0b | 23467 | #endif |
db9f46a9 TG |
23468 | |
23469 | int (*ptr)() = (int (*)())ctanh; | |
23470 | ||
1409cd0b FXC |
23471 | int |
23472 | main () | |
23473 | { | |
5213506e RW |
23474 | return 0; |
23475 | } | |
db9f46a9 | 23476 | |
5213506e RW |
23477 | _ACEOF |
23478 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 23479 | gcc_cv_math_func_ctanh=yes |
1409cd0b | 23480 | else |
db9f46a9 | 23481 | gcc_cv_math_func_ctanh=no |
1409cd0b | 23482 | fi |
5213506e RW |
23483 | rm -f core conftest.err conftest.$ac_objext \ |
23484 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23485 | fi |
db9f46a9 TG |
23486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23487 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23488 | if test $gcc_cv_math_func_ctanh = yes; then | |
f1cdfa01 | 23489 | |
f38a14ca TG |
23490 | cat >>confdefs.h <<_ACEOF |
23491 | #define HAVE_CTANH 1 | |
23492 | _ACEOF | |
db9f46a9 TG |
23493 | |
23494 | fi | |
1409cd0b | 23495 | |
1409cd0b | 23496 | |
1409cd0b | 23497 | |
db9f46a9 TG |
23498 | |
23499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23500 | $as_echo_n "checking for ctanhl... " >&6; } | |
22e05272 | 23501 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
5213506e | 23502 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23503 | else |
db9f46a9 | 23504 | if test x$gcc_no_link = xyes; then |
22e05272 | 23505 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23506 | fi |
5213506e | 23507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23508 | /* end confdefs.h. */ |
23509 | ||
db9f46a9 TG |
23510 | #ifdef HAVE_COMPLEX_H |
23511 | #include <complex.h> | |
1409cd0b | 23512 | #endif |
db9f46a9 TG |
23513 | #ifdef HAVE_MATH_H |
23514 | #include <math.h> | |
23515 | #endif | |
23516 | ||
23517 | int (*ptr)() = (int (*)())ctanhl; | |
23518 | ||
1409cd0b FXC |
23519 | int |
23520 | main () | |
23521 | { | |
1409cd0b FXC |
23522 | return 0; |
23523 | } | |
db9f46a9 | 23524 | |
1409cd0b | 23525 | _ACEOF |
5213506e | 23526 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23527 | gcc_cv_math_func_ctanhl=yes |
1409cd0b | 23528 | else |
db9f46a9 | 23529 | gcc_cv_math_func_ctanhl=no |
1409cd0b | 23530 | fi |
5213506e RW |
23531 | rm -f core conftest.err conftest.$ac_objext \ |
23532 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23533 | fi |
db9f46a9 TG |
23534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23535 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23536 | if test $gcc_cv_math_func_ctanhl = yes; then | |
f1cdfa01 | 23537 | |
f38a14ca TG |
23538 | cat >>confdefs.h <<_ACEOF |
23539 | #define HAVE_CTANHL 1 | |
23540 | _ACEOF | |
db9f46a9 TG |
23541 | |
23542 | fi | |
23543 | ||
1409cd0b | 23544 | |
69a2d125 | 23545 | |
69a2d125 | 23546 | |
db9f46a9 TG |
23547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23548 | $as_echo_n "checking for truncf... " >&6; } | |
22e05272 | 23549 | if ${gcc_cv_math_func_truncf+:} false; then : |
5213506e | 23550 | $as_echo_n "(cached) " >&6 |
69a2d125 | 23551 | else |
db9f46a9 | 23552 | if test x$gcc_no_link = xyes; then |
22e05272 | 23553 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23554 | fi |
5213506e | 23555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
23556 | /* end confdefs.h. */ |
23557 | ||
db9f46a9 TG |
23558 | #ifdef HAVE_COMPLEX_H |
23559 | #include <complex.h> | |
23560 | #endif | |
23561 | #ifdef HAVE_MATH_H | |
23562 | #include <math.h> | |
69a2d125 | 23563 | #endif |
db9f46a9 TG |
23564 | |
23565 | int (*ptr)() = (int (*)())truncf; | |
23566 | ||
1409cd0b FXC |
23567 | int |
23568 | main () | |
23569 | { | |
1409cd0b FXC |
23570 | return 0; |
23571 | } | |
db9f46a9 | 23572 | |
1409cd0b | 23573 | _ACEOF |
5213506e | 23574 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23575 | gcc_cv_math_func_truncf=yes |
1409cd0b | 23576 | else |
db9f46a9 | 23577 | gcc_cv_math_func_truncf=no |
1409cd0b | 23578 | fi |
5213506e RW |
23579 | rm -f core conftest.err conftest.$ac_objext \ |
23580 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23581 | fi |
db9f46a9 TG |
23582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23583 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23584 | if test $gcc_cv_math_func_truncf = yes; then | |
f1cdfa01 | 23585 | |
f38a14ca TG |
23586 | cat >>confdefs.h <<_ACEOF |
23587 | #define HAVE_TRUNCF 1 | |
23588 | _ACEOF | |
db9f46a9 TG |
23589 | |
23590 | fi | |
1409cd0b | 23591 | |
1409cd0b | 23592 | |
1409cd0b | 23593 | |
db9f46a9 TG |
23594 | |
23595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23596 | $as_echo_n "checking for trunc... " >&6; } | |
22e05272 | 23597 | if ${gcc_cv_math_func_trunc+:} false; then : |
5213506e | 23598 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23599 | else |
db9f46a9 | 23600 | if test x$gcc_no_link = xyes; then |
22e05272 | 23601 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23602 | fi |
5213506e | 23603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23604 | /* end confdefs.h. */ |
23605 | ||
db9f46a9 TG |
23606 | #ifdef HAVE_COMPLEX_H |
23607 | #include <complex.h> | |
1409cd0b | 23608 | #endif |
db9f46a9 TG |
23609 | #ifdef HAVE_MATH_H |
23610 | #include <math.h> | |
23611 | #endif | |
23612 | ||
23613 | int (*ptr)() = (int (*)())trunc; | |
23614 | ||
1409cd0b FXC |
23615 | int |
23616 | main () | |
23617 | { | |
1409cd0b FXC |
23618 | return 0; |
23619 | } | |
db9f46a9 | 23620 | |
1409cd0b | 23621 | _ACEOF |
5213506e | 23622 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23623 | gcc_cv_math_func_trunc=yes |
1409cd0b | 23624 | else |
db9f46a9 | 23625 | gcc_cv_math_func_trunc=no |
1409cd0b | 23626 | fi |
5213506e RW |
23627 | rm -f core conftest.err conftest.$ac_objext \ |
23628 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23629 | fi |
db9f46a9 TG |
23630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23631 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23632 | if test $gcc_cv_math_func_trunc = yes; then | |
f1cdfa01 | 23633 | |
f38a14ca TG |
23634 | cat >>confdefs.h <<_ACEOF |
23635 | #define HAVE_TRUNC 1 | |
23636 | _ACEOF | |
1409cd0b | 23637 | |
db9f46a9 | 23638 | fi |
1409cd0b | 23639 | |
1409cd0b | 23640 | |
db9f46a9 TG |
23641 | |
23642 | ||
23643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23644 | $as_echo_n "checking for truncl... " >&6; } | |
22e05272 | 23645 | if ${gcc_cv_math_func_truncl+:} false; then : |
5213506e | 23646 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23647 | else |
db9f46a9 | 23648 | if test x$gcc_no_link = xyes; then |
22e05272 | 23649 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23650 | fi |
5213506e | 23651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23652 | /* end confdefs.h. */ |
23653 | ||
db9f46a9 TG |
23654 | #ifdef HAVE_COMPLEX_H |
23655 | #include <complex.h> | |
23656 | #endif | |
23657 | #ifdef HAVE_MATH_H | |
23658 | #include <math.h> | |
1409cd0b | 23659 | #endif |
db9f46a9 TG |
23660 | |
23661 | int (*ptr)() = (int (*)())truncl; | |
23662 | ||
1409cd0b FXC |
23663 | int |
23664 | main () | |
23665 | { | |
1409cd0b FXC |
23666 | return 0; |
23667 | } | |
db9f46a9 | 23668 | |
1409cd0b | 23669 | _ACEOF |
5213506e | 23670 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23671 | gcc_cv_math_func_truncl=yes |
1409cd0b | 23672 | else |
db9f46a9 | 23673 | gcc_cv_math_func_truncl=no |
1409cd0b | 23674 | fi |
5213506e RW |
23675 | rm -f core conftest.err conftest.$ac_objext \ |
23676 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23677 | fi |
db9f46a9 TG |
23678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23679 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23680 | if test $gcc_cv_math_func_truncl = yes; then | |
f1cdfa01 | 23681 | |
f38a14ca TG |
23682 | cat >>confdefs.h <<_ACEOF |
23683 | #define HAVE_TRUNCL 1 | |
23684 | _ACEOF | |
db9f46a9 TG |
23685 | |
23686 | fi | |
1409cd0b | 23687 | |
1409cd0b | 23688 | |
1409cd0b | 23689 | |
db9f46a9 TG |
23690 | |
23691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23692 | $as_echo_n "checking for erff... " >&6; } | |
22e05272 | 23693 | if ${gcc_cv_math_func_erff+:} false; then : |
5213506e | 23694 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23695 | else |
db9f46a9 | 23696 | if test x$gcc_no_link = xyes; then |
22e05272 | 23697 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23698 | fi |
5213506e | 23699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23700 | /* end confdefs.h. */ |
23701 | ||
db9f46a9 TG |
23702 | #ifdef HAVE_COMPLEX_H |
23703 | #include <complex.h> | |
1409cd0b | 23704 | #endif |
db9f46a9 TG |
23705 | #ifdef HAVE_MATH_H |
23706 | #include <math.h> | |
23707 | #endif | |
23708 | ||
23709 | int (*ptr)() = (int (*)())erff; | |
23710 | ||
1409cd0b FXC |
23711 | int |
23712 | main () | |
23713 | { | |
1409cd0b FXC |
23714 | return 0; |
23715 | } | |
db9f46a9 | 23716 | |
1409cd0b | 23717 | _ACEOF |
5213506e | 23718 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23719 | gcc_cv_math_func_erff=yes |
1409cd0b | 23720 | else |
db9f46a9 | 23721 | gcc_cv_math_func_erff=no |
1409cd0b | 23722 | fi |
5213506e RW |
23723 | rm -f core conftest.err conftest.$ac_objext \ |
23724 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23725 | fi |
db9f46a9 TG |
23726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23727 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23728 | if test $gcc_cv_math_func_erff = yes; then | |
f1cdfa01 | 23729 | |
f38a14ca TG |
23730 | cat >>confdefs.h <<_ACEOF |
23731 | #define HAVE_ERFF 1 | |
23732 | _ACEOF | |
db9f46a9 TG |
23733 | |
23734 | fi | |
23735 | ||
1409cd0b | 23736 | |
1409cd0b | 23737 | |
1409cd0b | 23738 | |
db9f46a9 TG |
23739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23740 | $as_echo_n "checking for erf... " >&6; } | |
22e05272 | 23741 | if ${gcc_cv_math_func_erf+:} false; then : |
5213506e | 23742 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23743 | else |
db9f46a9 | 23744 | if test x$gcc_no_link = xyes; then |
22e05272 | 23745 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23746 | fi |
5213506e | 23747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23748 | /* end confdefs.h. */ |
23749 | ||
db9f46a9 TG |
23750 | #ifdef HAVE_COMPLEX_H |
23751 | #include <complex.h> | |
23752 | #endif | |
23753 | #ifdef HAVE_MATH_H | |
23754 | #include <math.h> | |
1409cd0b | 23755 | #endif |
db9f46a9 TG |
23756 | |
23757 | int (*ptr)() = (int (*)())erf; | |
23758 | ||
1409cd0b FXC |
23759 | int |
23760 | main () | |
23761 | { | |
1409cd0b FXC |
23762 | return 0; |
23763 | } | |
db9f46a9 | 23764 | |
1409cd0b | 23765 | _ACEOF |
5213506e | 23766 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23767 | gcc_cv_math_func_erf=yes |
1409cd0b | 23768 | else |
db9f46a9 | 23769 | gcc_cv_math_func_erf=no |
1409cd0b | 23770 | fi |
5213506e RW |
23771 | rm -f core conftest.err conftest.$ac_objext \ |
23772 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23773 | fi |
db9f46a9 TG |
23774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23775 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23776 | if test $gcc_cv_math_func_erf = yes; then | |
f1cdfa01 | 23777 | |
f38a14ca TG |
23778 | cat >>confdefs.h <<_ACEOF |
23779 | #define HAVE_ERF 1 | |
23780 | _ACEOF | |
db9f46a9 TG |
23781 | |
23782 | fi | |
1409cd0b | 23783 | |
1409cd0b | 23784 | |
1409cd0b | 23785 | |
db9f46a9 | 23786 | |
db9f46a9 TG |
23787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23788 | $as_echo_n "checking for erfcf... " >&6; } | |
22e05272 | 23789 | if ${gcc_cv_math_func_erfcf+:} false; then : |
5213506e | 23790 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23791 | else |
db9f46a9 | 23792 | if test x$gcc_no_link = xyes; then |
22e05272 | 23793 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23794 | fi |
5213506e | 23795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23796 | /* end confdefs.h. */ |
23797 | ||
db9f46a9 TG |
23798 | #ifdef HAVE_COMPLEX_H |
23799 | #include <complex.h> | |
23800 | #endif | |
23801 | #ifdef HAVE_MATH_H | |
23802 | #include <math.h> | |
1409cd0b | 23803 | #endif |
db9f46a9 TG |
23804 | |
23805 | int (*ptr)() = (int (*)())erfcf; | |
23806 | ||
1409cd0b FXC |
23807 | int |
23808 | main () | |
23809 | { | |
1409cd0b FXC |
23810 | return 0; |
23811 | } | |
db9f46a9 | 23812 | |
1409cd0b | 23813 | _ACEOF |
5213506e | 23814 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23815 | gcc_cv_math_func_erfcf=yes |
1409cd0b | 23816 | else |
db9f46a9 | 23817 | gcc_cv_math_func_erfcf=no |
1409cd0b | 23818 | fi |
5213506e RW |
23819 | rm -f core conftest.err conftest.$ac_objext \ |
23820 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23821 | fi |
db9f46a9 TG |
23822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
23823 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
23824 | if test $gcc_cv_math_func_erfcf = yes; then | |
f1cdfa01 | 23825 | |
f38a14ca TG |
23826 | cat >>confdefs.h <<_ACEOF |
23827 | #define HAVE_ERFCF 1 | |
23828 | _ACEOF | |
db9f46a9 TG |
23829 | |
23830 | fi | |
1409cd0b | 23831 | |
1409cd0b | 23832 | |
1409cd0b | 23833 | |
db9f46a9 TG |
23834 | |
23835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
23836 | $as_echo_n "checking for erfc... " >&6; } | |
22e05272 | 23837 | if ${gcc_cv_math_func_erfc+:} false; then : |
5213506e | 23838 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23839 | else |
db9f46a9 | 23840 | if test x$gcc_no_link = xyes; then |
22e05272 | 23841 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23842 | fi |
5213506e | 23843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23844 | /* end confdefs.h. */ |
23845 | ||
db9f46a9 TG |
23846 | #ifdef HAVE_COMPLEX_H |
23847 | #include <complex.h> | |
1409cd0b | 23848 | #endif |
db9f46a9 TG |
23849 | #ifdef HAVE_MATH_H |
23850 | #include <math.h> | |
23851 | #endif | |
23852 | ||
23853 | int (*ptr)() = (int (*)())erfc; | |
23854 | ||
69a2d125 EB |
23855 | int |
23856 | main () | |
23857 | { | |
69a2d125 EB |
23858 | return 0; |
23859 | } | |
db9f46a9 | 23860 | |
69a2d125 | 23861 | _ACEOF |
5213506e | 23862 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23863 | gcc_cv_math_func_erfc=yes |
69a2d125 | 23864 | else |
db9f46a9 | 23865 | gcc_cv_math_func_erfc=no |
69a2d125 | 23866 | fi |
5213506e RW |
23867 | rm -f core conftest.err conftest.$ac_objext \ |
23868 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 23869 | fi |
db9f46a9 TG |
23870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
23871 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
23872 | if test $gcc_cv_math_func_erfc = yes; then | |
f1cdfa01 | 23873 | |
f38a14ca TG |
23874 | cat >>confdefs.h <<_ACEOF |
23875 | #define HAVE_ERFC 1 | |
23876 | _ACEOF | |
db9f46a9 TG |
23877 | |
23878 | fi | |
23879 | ||
69a2d125 | 23880 | |
69a2d125 | 23881 | |
69a2d125 | 23882 | |
db9f46a9 TG |
23883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
23884 | $as_echo_n "checking for erfcl... " >&6; } | |
22e05272 | 23885 | if ${gcc_cv_math_func_erfcl+:} false; then : |
5213506e | 23886 | $as_echo_n "(cached) " >&6 |
e8525382 | 23887 | else |
db9f46a9 | 23888 | if test x$gcc_no_link = xyes; then |
22e05272 | 23889 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23890 | fi |
5213506e | 23891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
23892 | /* end confdefs.h. */ |
23893 | ||
db9f46a9 TG |
23894 | #ifdef HAVE_COMPLEX_H |
23895 | #include <complex.h> | |
23896 | #endif | |
23897 | #ifdef HAVE_MATH_H | |
23898 | #include <math.h> | |
e8525382 | 23899 | #endif |
db9f46a9 TG |
23900 | |
23901 | int (*ptr)() = (int (*)())erfcl; | |
23902 | ||
e8525382 SK |
23903 | int |
23904 | main () | |
23905 | { | |
e8525382 SK |
23906 | return 0; |
23907 | } | |
db9f46a9 | 23908 | |
e8525382 | 23909 | _ACEOF |
5213506e | 23910 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23911 | gcc_cv_math_func_erfcl=yes |
e8525382 | 23912 | else |
db9f46a9 | 23913 | gcc_cv_math_func_erfcl=no |
e8525382 | 23914 | fi |
5213506e RW |
23915 | rm -f core conftest.err conftest.$ac_objext \ |
23916 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 23917 | fi |
db9f46a9 TG |
23918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
23919 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
23920 | if test $gcc_cv_math_func_erfcl = yes; then | |
f1cdfa01 | 23921 | |
f38a14ca TG |
23922 | cat >>confdefs.h <<_ACEOF |
23923 | #define HAVE_ERFCL 1 | |
23924 | _ACEOF | |
db9f46a9 TG |
23925 | |
23926 | fi | |
e8525382 | 23927 | |
e8525382 | 23928 | |
e8525382 | 23929 | |
db9f46a9 TG |
23930 | |
23931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
23932 | $as_echo_n "checking for j0f... " >&6; } | |
22e05272 | 23933 | if ${gcc_cv_math_func_j0f+:} false; then : |
5213506e | 23934 | $as_echo_n "(cached) " >&6 |
e8525382 | 23935 | else |
db9f46a9 | 23936 | if test x$gcc_no_link = xyes; then |
22e05272 | 23937 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23938 | fi |
5213506e | 23939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
23940 | /* end confdefs.h. */ |
23941 | ||
db9f46a9 TG |
23942 | #ifdef HAVE_COMPLEX_H |
23943 | #include <complex.h> | |
e8525382 | 23944 | #endif |
db9f46a9 TG |
23945 | #ifdef HAVE_MATH_H |
23946 | #include <math.h> | |
23947 | #endif | |
23948 | ||
23949 | int (*ptr)() = (int (*)())j0f; | |
23950 | ||
e8525382 SK |
23951 | int |
23952 | main () | |
23953 | { | |
e8525382 SK |
23954 | return 0; |
23955 | } | |
db9f46a9 | 23956 | |
e8525382 | 23957 | _ACEOF |
5213506e | 23958 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23959 | gcc_cv_math_func_j0f=yes |
e8525382 | 23960 | else |
db9f46a9 | 23961 | gcc_cv_math_func_j0f=no |
1409cd0b | 23962 | fi |
5213506e RW |
23963 | rm -f core conftest.err conftest.$ac_objext \ |
23964 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23965 | fi |
db9f46a9 TG |
23966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
23967 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
23968 | if test $gcc_cv_math_func_j0f = yes; then | |
f1cdfa01 | 23969 | |
f38a14ca TG |
23970 | cat >>confdefs.h <<_ACEOF |
23971 | #define HAVE_J0F 1 | |
23972 | _ACEOF | |
1409cd0b | 23973 | |
db9f46a9 | 23974 | fi |
1409cd0b | 23975 | |
1409cd0b | 23976 | |
db9f46a9 TG |
23977 | |
23978 | ||
23979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
23980 | $as_echo_n "checking for j0... " >&6; } | |
22e05272 | 23981 | if ${gcc_cv_math_func_j0+:} false; then : |
5213506e | 23982 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23983 | else |
db9f46a9 | 23984 | if test x$gcc_no_link = xyes; then |
22e05272 | 23985 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23986 | fi |
5213506e | 23987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23988 | /* end confdefs.h. */ |
23989 | ||
db9f46a9 TG |
23990 | #ifdef HAVE_COMPLEX_H |
23991 | #include <complex.h> | |
23992 | #endif | |
23993 | #ifdef HAVE_MATH_H | |
23994 | #include <math.h> | |
1409cd0b | 23995 | #endif |
db9f46a9 TG |
23996 | |
23997 | int (*ptr)() = (int (*)())j0; | |
23998 | ||
1409cd0b FXC |
23999 | int |
24000 | main () | |
24001 | { | |
1409cd0b FXC |
24002 | return 0; |
24003 | } | |
db9f46a9 | 24004 | |
1409cd0b | 24005 | _ACEOF |
5213506e | 24006 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24007 | gcc_cv_math_func_j0=yes |
1409cd0b | 24008 | else |
db9f46a9 | 24009 | gcc_cv_math_func_j0=no |
1409cd0b | 24010 | fi |
5213506e RW |
24011 | rm -f core conftest.err conftest.$ac_objext \ |
24012 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24013 | fi |
db9f46a9 TG |
24014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
24015 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
24016 | if test $gcc_cv_math_func_j0 = yes; then | |
f1cdfa01 | 24017 | |
f38a14ca TG |
24018 | cat >>confdefs.h <<_ACEOF |
24019 | #define HAVE_J0 1 | |
24020 | _ACEOF | |
db9f46a9 TG |
24021 | |
24022 | fi | |
1409cd0b | 24023 | |
1409cd0b | 24024 | |
1409cd0b | 24025 | |
db9f46a9 | 24026 | |
db9f46a9 TG |
24027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
24028 | $as_echo_n "checking for j1f... " >&6; } | |
22e05272 | 24029 | if ${gcc_cv_math_func_j1f+:} false; then : |
5213506e | 24030 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24031 | else |
db9f46a9 | 24032 | if test x$gcc_no_link = xyes; then |
22e05272 | 24033 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24034 | fi |
5213506e | 24035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24036 | /* end confdefs.h. */ |
24037 | ||
db9f46a9 TG |
24038 | #ifdef HAVE_COMPLEX_H |
24039 | #include <complex.h> | |
24040 | #endif | |
24041 | #ifdef HAVE_MATH_H | |
24042 | #include <math.h> | |
1409cd0b | 24043 | #endif |
db9f46a9 TG |
24044 | |
24045 | int (*ptr)() = (int (*)())j1f; | |
24046 | ||
1409cd0b FXC |
24047 | int |
24048 | main () | |
24049 | { | |
1409cd0b FXC |
24050 | return 0; |
24051 | } | |
db9f46a9 | 24052 | |
1409cd0b | 24053 | _ACEOF |
5213506e | 24054 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24055 | gcc_cv_math_func_j1f=yes |
1409cd0b | 24056 | else |
db9f46a9 | 24057 | gcc_cv_math_func_j1f=no |
e8525382 | 24058 | fi |
5213506e RW |
24059 | rm -f core conftest.err conftest.$ac_objext \ |
24060 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24061 | fi |
db9f46a9 TG |
24062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
24063 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
24064 | if test $gcc_cv_math_func_j1f = yes; then | |
f1cdfa01 | 24065 | |
f38a14ca TG |
24066 | cat >>confdefs.h <<_ACEOF |
24067 | #define HAVE_J1F 1 | |
24068 | _ACEOF | |
db9f46a9 TG |
24069 | |
24070 | fi | |
e8525382 | 24071 | |
e8525382 | 24072 | |
e8525382 | 24073 | |
db9f46a9 TG |
24074 | |
24075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
24076 | $as_echo_n "checking for j1... " >&6; } | |
22e05272 | 24077 | if ${gcc_cv_math_func_j1+:} false; then : |
5213506e | 24078 | $as_echo_n "(cached) " >&6 |
e8525382 | 24079 | else |
db9f46a9 | 24080 | if test x$gcc_no_link = xyes; then |
22e05272 | 24081 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24082 | fi |
5213506e | 24083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24084 | /* end confdefs.h. */ |
24085 | ||
db9f46a9 TG |
24086 | #ifdef HAVE_COMPLEX_H |
24087 | #include <complex.h> | |
e8525382 | 24088 | #endif |
db9f46a9 TG |
24089 | #ifdef HAVE_MATH_H |
24090 | #include <math.h> | |
24091 | #endif | |
24092 | ||
24093 | int (*ptr)() = (int (*)())j1; | |
24094 | ||
e8525382 SK |
24095 | int |
24096 | main () | |
24097 | { | |
e8525382 SK |
24098 | return 0; |
24099 | } | |
db9f46a9 | 24100 | |
e8525382 | 24101 | _ACEOF |
5213506e | 24102 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24103 | gcc_cv_math_func_j1=yes |
e8525382 | 24104 | else |
db9f46a9 | 24105 | gcc_cv_math_func_j1=no |
e8525382 | 24106 | fi |
5213506e RW |
24107 | rm -f core conftest.err conftest.$ac_objext \ |
24108 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24109 | fi |
db9f46a9 TG |
24110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
24111 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
24112 | if test $gcc_cv_math_func_j1 = yes; then | |
f1cdfa01 | 24113 | |
f38a14ca TG |
24114 | cat >>confdefs.h <<_ACEOF |
24115 | #define HAVE_J1 1 | |
24116 | _ACEOF | |
e8525382 | 24117 | |
db9f46a9 | 24118 | fi |
e8525382 | 24119 | |
e8525382 | 24120 | |
db9f46a9 TG |
24121 | |
24122 | ||
db9f46a9 TG |
24123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
24124 | $as_echo_n "checking for jnf... " >&6; } | |
22e05272 | 24125 | if ${gcc_cv_math_func_jnf+:} false; then : |
5213506e | 24126 | $as_echo_n "(cached) " >&6 |
e8525382 | 24127 | else |
db9f46a9 | 24128 | if test x$gcc_no_link = xyes; then |
22e05272 | 24129 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24130 | fi |
5213506e | 24131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24132 | /* end confdefs.h. */ |
24133 | ||
db9f46a9 TG |
24134 | #ifdef HAVE_COMPLEX_H |
24135 | #include <complex.h> | |
e8525382 | 24136 | #endif |
db9f46a9 TG |
24137 | #ifdef HAVE_MATH_H |
24138 | #include <math.h> | |
24139 | #endif | |
24140 | ||
24141 | int (*ptr)() = (int (*)())jnf; | |
24142 | ||
e8525382 SK |
24143 | int |
24144 | main () | |
24145 | { | |
e8525382 SK |
24146 | return 0; |
24147 | } | |
db9f46a9 | 24148 | |
e8525382 | 24149 | _ACEOF |
5213506e | 24150 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24151 | gcc_cv_math_func_jnf=yes |
e8525382 | 24152 | else |
db9f46a9 | 24153 | gcc_cv_math_func_jnf=no |
e8525382 | 24154 | fi |
5213506e RW |
24155 | rm -f core conftest.err conftest.$ac_objext \ |
24156 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24157 | fi |
db9f46a9 TG |
24158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
24159 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
24160 | if test $gcc_cv_math_func_jnf = yes; then | |
f1cdfa01 | 24161 | |
f38a14ca TG |
24162 | cat >>confdefs.h <<_ACEOF |
24163 | #define HAVE_JNF 1 | |
24164 | _ACEOF | |
db9f46a9 TG |
24165 | |
24166 | fi | |
24167 | ||
e8525382 | 24168 | |
e8525382 | 24169 | |
e8525382 | 24170 | |
db9f46a9 TG |
24171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24172 | $as_echo_n "checking for jn... " >&6; } | |
22e05272 | 24173 | if ${gcc_cv_math_func_jn+:} false; then : |
5213506e | 24174 | $as_echo_n "(cached) " >&6 |
e8525382 | 24175 | else |
db9f46a9 | 24176 | if test x$gcc_no_link = xyes; then |
22e05272 | 24177 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24178 | fi |
5213506e | 24179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24180 | /* end confdefs.h. */ |
24181 | ||
db9f46a9 TG |
24182 | #ifdef HAVE_COMPLEX_H |
24183 | #include <complex.h> | |
24184 | #endif | |
24185 | #ifdef HAVE_MATH_H | |
24186 | #include <math.h> | |
e8525382 | 24187 | #endif |
db9f46a9 TG |
24188 | |
24189 | int (*ptr)() = (int (*)())jn; | |
24190 | ||
e8525382 SK |
24191 | int |
24192 | main () | |
24193 | { | |
e8525382 SK |
24194 | return 0; |
24195 | } | |
db9f46a9 | 24196 | |
e8525382 | 24197 | _ACEOF |
5213506e | 24198 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24199 | gcc_cv_math_func_jn=yes |
e8525382 | 24200 | else |
db9f46a9 | 24201 | gcc_cv_math_func_jn=no |
e8525382 | 24202 | fi |
5213506e RW |
24203 | rm -f core conftest.err conftest.$ac_objext \ |
24204 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24205 | fi |
db9f46a9 TG |
24206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24207 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24208 | if test $gcc_cv_math_func_jn = yes; then | |
f1cdfa01 | 24209 | |
f38a14ca TG |
24210 | cat >>confdefs.h <<_ACEOF |
24211 | #define HAVE_JN 1 | |
24212 | _ACEOF | |
db9f46a9 TG |
24213 | |
24214 | fi | |
e8525382 | 24215 | |
e8525382 | 24216 | |
e8525382 | 24217 | |
db9f46a9 TG |
24218 | |
24219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24220 | $as_echo_n "checking for jnl... " >&6; } | |
22e05272 | 24221 | if ${gcc_cv_math_func_jnl+:} false; then : |
5213506e | 24222 | $as_echo_n "(cached) " >&6 |
e8525382 | 24223 | else |
db9f46a9 | 24224 | if test x$gcc_no_link = xyes; then |
22e05272 | 24225 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24226 | fi |
5213506e | 24227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24228 | /* end confdefs.h. */ |
24229 | ||
db9f46a9 TG |
24230 | #ifdef HAVE_COMPLEX_H |
24231 | #include <complex.h> | |
e8525382 | 24232 | #endif |
db9f46a9 TG |
24233 | #ifdef HAVE_MATH_H |
24234 | #include <math.h> | |
24235 | #endif | |
24236 | ||
24237 | int (*ptr)() = (int (*)())jnl; | |
24238 | ||
e8525382 SK |
24239 | int |
24240 | main () | |
24241 | { | |
e8525382 SK |
24242 | return 0; |
24243 | } | |
db9f46a9 | 24244 | |
e8525382 | 24245 | _ACEOF |
5213506e | 24246 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24247 | gcc_cv_math_func_jnl=yes |
e8525382 | 24248 | else |
db9f46a9 | 24249 | gcc_cv_math_func_jnl=no |
e8525382 | 24250 | fi |
5213506e RW |
24251 | rm -f core conftest.err conftest.$ac_objext \ |
24252 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24253 | fi |
db9f46a9 TG |
24254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24255 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24256 | if test $gcc_cv_math_func_jnl = yes; then | |
f1cdfa01 | 24257 | |
f38a14ca TG |
24258 | cat >>confdefs.h <<_ACEOF |
24259 | #define HAVE_JNL 1 | |
24260 | _ACEOF | |
e8525382 | 24261 | |
db9f46a9 | 24262 | fi |
e8525382 | 24263 | |
e8525382 | 24264 | |
db9f46a9 TG |
24265 | |
24266 | ||
24267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24268 | $as_echo_n "checking for y0f... " >&6; } | |
22e05272 | 24269 | if ${gcc_cv_math_func_y0f+:} false; then : |
5213506e | 24270 | $as_echo_n "(cached) " >&6 |
e8525382 | 24271 | else |
db9f46a9 | 24272 | if test x$gcc_no_link = xyes; then |
22e05272 | 24273 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24274 | fi |
5213506e | 24275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24276 | /* end confdefs.h. */ |
24277 | ||
db9f46a9 TG |
24278 | #ifdef HAVE_COMPLEX_H |
24279 | #include <complex.h> | |
24280 | #endif | |
24281 | #ifdef HAVE_MATH_H | |
24282 | #include <math.h> | |
e8525382 | 24283 | #endif |
db9f46a9 TG |
24284 | |
24285 | int (*ptr)() = (int (*)())y0f; | |
24286 | ||
e8525382 SK |
24287 | int |
24288 | main () | |
24289 | { | |
e8525382 SK |
24290 | return 0; |
24291 | } | |
db9f46a9 | 24292 | |
e8525382 | 24293 | _ACEOF |
5213506e | 24294 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24295 | gcc_cv_math_func_y0f=yes |
e8525382 | 24296 | else |
db9f46a9 | 24297 | gcc_cv_math_func_y0f=no |
e8525382 | 24298 | fi |
5213506e RW |
24299 | rm -f core conftest.err conftest.$ac_objext \ |
24300 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24301 | fi |
db9f46a9 TG |
24302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24303 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24304 | if test $gcc_cv_math_func_y0f = yes; then | |
f1cdfa01 | 24305 | |
f38a14ca TG |
24306 | cat >>confdefs.h <<_ACEOF |
24307 | #define HAVE_Y0F 1 | |
24308 | _ACEOF | |
db9f46a9 TG |
24309 | |
24310 | fi | |
e8525382 | 24311 | |
e8525382 | 24312 | |
e8525382 | 24313 | |
db9f46a9 TG |
24314 | |
24315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24316 | $as_echo_n "checking for y0... " >&6; } | |
22e05272 | 24317 | if ${gcc_cv_math_func_y0+:} false; then : |
5213506e | 24318 | $as_echo_n "(cached) " >&6 |
e8525382 | 24319 | else |
db9f46a9 | 24320 | if test x$gcc_no_link = xyes; then |
22e05272 | 24321 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24322 | fi |
5213506e | 24323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24324 | /* end confdefs.h. */ |
24325 | ||
db9f46a9 TG |
24326 | #ifdef HAVE_COMPLEX_H |
24327 | #include <complex.h> | |
e8525382 | 24328 | #endif |
db9f46a9 TG |
24329 | #ifdef HAVE_MATH_H |
24330 | #include <math.h> | |
24331 | #endif | |
24332 | ||
24333 | int (*ptr)() = (int (*)())y0; | |
24334 | ||
e8525382 SK |
24335 | int |
24336 | main () | |
24337 | { | |
e8525382 SK |
24338 | return 0; |
24339 | } | |
db9f46a9 | 24340 | |
e8525382 | 24341 | _ACEOF |
5213506e | 24342 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24343 | gcc_cv_math_func_y0=yes |
e8525382 | 24344 | else |
db9f46a9 | 24345 | gcc_cv_math_func_y0=no |
e8525382 | 24346 | fi |
5213506e RW |
24347 | rm -f core conftest.err conftest.$ac_objext \ |
24348 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24349 | fi |
db9f46a9 TG |
24350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24351 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24352 | if test $gcc_cv_math_func_y0 = yes; then | |
f1cdfa01 | 24353 | |
f38a14ca TG |
24354 | cat >>confdefs.h <<_ACEOF |
24355 | #define HAVE_Y0 1 | |
24356 | _ACEOF | |
db9f46a9 TG |
24357 | |
24358 | fi | |
24359 | ||
e8525382 | 24360 | |
e8525382 | 24361 | |
e8525382 | 24362 | |
db9f46a9 TG |
24363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24364 | $as_echo_n "checking for y1f... " >&6; } | |
22e05272 | 24365 | if ${gcc_cv_math_func_y1f+:} false; then : |
5213506e | 24366 | $as_echo_n "(cached) " >&6 |
e8525382 | 24367 | else |
db9f46a9 | 24368 | if test x$gcc_no_link = xyes; then |
22e05272 | 24369 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24370 | fi |
5213506e | 24371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24372 | /* end confdefs.h. */ |
24373 | ||
db9f46a9 TG |
24374 | #ifdef HAVE_COMPLEX_H |
24375 | #include <complex.h> | |
e8525382 | 24376 | #endif |
db9f46a9 TG |
24377 | #ifdef HAVE_MATH_H |
24378 | #include <math.h> | |
24379 | #endif | |
24380 | ||
24381 | int (*ptr)() = (int (*)())y1f; | |
24382 | ||
e8525382 SK |
24383 | int |
24384 | main () | |
24385 | { | |
e8525382 SK |
24386 | return 0; |
24387 | } | |
db9f46a9 | 24388 | |
e8525382 | 24389 | _ACEOF |
5213506e | 24390 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24391 | gcc_cv_math_func_y1f=yes |
e8525382 | 24392 | else |
db9f46a9 | 24393 | gcc_cv_math_func_y1f=no |
e8525382 | 24394 | fi |
5213506e RW |
24395 | rm -f core conftest.err conftest.$ac_objext \ |
24396 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24397 | fi |
db9f46a9 TG |
24398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24399 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24400 | if test $gcc_cv_math_func_y1f = yes; then | |
f1cdfa01 | 24401 | |
f38a14ca TG |
24402 | cat >>confdefs.h <<_ACEOF |
24403 | #define HAVE_Y1F 1 | |
24404 | _ACEOF | |
e8525382 | 24405 | |
db9f46a9 | 24406 | fi |
e8525382 | 24407 | |
e8525382 | 24408 | |
db9f46a9 TG |
24409 | |
24410 | ||
24411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24412 | $as_echo_n "checking for y1... " >&6; } | |
22e05272 | 24413 | if ${gcc_cv_math_func_y1+:} false; then : |
5213506e | 24414 | $as_echo_n "(cached) " >&6 |
e8525382 | 24415 | else |
db9f46a9 | 24416 | if test x$gcc_no_link = xyes; then |
22e05272 | 24417 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24418 | fi |
5213506e | 24419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24420 | /* end confdefs.h. */ |
24421 | ||
db9f46a9 TG |
24422 | #ifdef HAVE_COMPLEX_H |
24423 | #include <complex.h> | |
24424 | #endif | |
24425 | #ifdef HAVE_MATH_H | |
24426 | #include <math.h> | |
e8525382 | 24427 | #endif |
db9f46a9 TG |
24428 | |
24429 | int (*ptr)() = (int (*)())y1; | |
24430 | ||
e8525382 SK |
24431 | int |
24432 | main () | |
24433 | { | |
e8525382 SK |
24434 | return 0; |
24435 | } | |
db9f46a9 | 24436 | |
e8525382 | 24437 | _ACEOF |
5213506e | 24438 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24439 | gcc_cv_math_func_y1=yes |
e8525382 | 24440 | else |
db9f46a9 | 24441 | gcc_cv_math_func_y1=no |
e8525382 | 24442 | fi |
5213506e RW |
24443 | rm -f core conftest.err conftest.$ac_objext \ |
24444 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24445 | fi |
db9f46a9 TG |
24446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24447 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24448 | if test $gcc_cv_math_func_y1 = yes; then | |
f1cdfa01 | 24449 | |
f38a14ca TG |
24450 | cat >>confdefs.h <<_ACEOF |
24451 | #define HAVE_Y1 1 | |
24452 | _ACEOF | |
db9f46a9 TG |
24453 | |
24454 | fi | |
e8525382 | 24455 | |
e8525382 | 24456 | |
e8525382 | 24457 | |
db9f46a9 | 24458 | |
db9f46a9 TG |
24459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24460 | $as_echo_n "checking for ynf... " >&6; } | |
22e05272 | 24461 | if ${gcc_cv_math_func_ynf+:} false; then : |
5213506e | 24462 | $as_echo_n "(cached) " >&6 |
db9f46a9 TG |
24463 | else |
24464 | if test x$gcc_no_link = xyes; then | |
22e05272 | 24465 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24466 | fi |
5213506e | 24467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24468 | /* end confdefs.h. */ |
24469 | ||
db9f46a9 TG |
24470 | #ifdef HAVE_COMPLEX_H |
24471 | #include <complex.h> | |
24472 | #endif | |
24473 | #ifdef HAVE_MATH_H | |
24474 | #include <math.h> | |
e8525382 | 24475 | #endif |
db9f46a9 TG |
24476 | |
24477 | int (*ptr)() = (int (*)())ynf; | |
24478 | ||
e8525382 SK |
24479 | int |
24480 | main () | |
24481 | { | |
e8525382 SK |
24482 | return 0; |
24483 | } | |
db9f46a9 | 24484 | |
e8525382 | 24485 | _ACEOF |
5213506e | 24486 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24487 | gcc_cv_math_func_ynf=yes |
e8525382 | 24488 | else |
db9f46a9 | 24489 | gcc_cv_math_func_ynf=no |
e8525382 | 24490 | fi |
5213506e RW |
24491 | rm -f core conftest.err conftest.$ac_objext \ |
24492 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24493 | fi |
db9f46a9 TG |
24494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24495 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24496 | if test $gcc_cv_math_func_ynf = yes; then | |
f1cdfa01 | 24497 | |
f38a14ca TG |
24498 | cat >>confdefs.h <<_ACEOF |
24499 | #define HAVE_YNF 1 | |
24500 | _ACEOF | |
db9f46a9 TG |
24501 | |
24502 | fi | |
e8525382 | 24503 | |
e8525382 | 24504 | |
e8525382 | 24505 | |
db9f46a9 TG |
24506 | |
24507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24508 | $as_echo_n "checking for yn... " >&6; } | |
22e05272 | 24509 | if ${gcc_cv_math_func_yn+:} false; then : |
5213506e | 24510 | $as_echo_n "(cached) " >&6 |
e8525382 | 24511 | else |
db9f46a9 | 24512 | if test x$gcc_no_link = xyes; then |
22e05272 | 24513 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24514 | fi |
5213506e | 24515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24516 | /* end confdefs.h. */ |
24517 | ||
db9f46a9 TG |
24518 | #ifdef HAVE_COMPLEX_H |
24519 | #include <complex.h> | |
e8525382 | 24520 | #endif |
db9f46a9 TG |
24521 | #ifdef HAVE_MATH_H |
24522 | #include <math.h> | |
24523 | #endif | |
24524 | ||
24525 | int (*ptr)() = (int (*)())yn; | |
24526 | ||
e8525382 SK |
24527 | int |
24528 | main () | |
24529 | { | |
e8525382 SK |
24530 | return 0; |
24531 | } | |
db9f46a9 | 24532 | |
e8525382 | 24533 | _ACEOF |
5213506e | 24534 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24535 | gcc_cv_math_func_yn=yes |
e8525382 | 24536 | else |
db9f46a9 | 24537 | gcc_cv_math_func_yn=no |
e8525382 | 24538 | fi |
5213506e RW |
24539 | rm -f core conftest.err conftest.$ac_objext \ |
24540 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24541 | fi |
db9f46a9 TG |
24542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24543 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24544 | if test $gcc_cv_math_func_yn = yes; then | |
f1cdfa01 | 24545 | |
f38a14ca TG |
24546 | cat >>confdefs.h <<_ACEOF |
24547 | #define HAVE_YN 1 | |
24548 | _ACEOF | |
db9f46a9 TG |
24549 | |
24550 | fi | |
24551 | ||
e8525382 | 24552 | |
e8525382 | 24553 | |
e8525382 | 24554 | |
db9f46a9 TG |
24555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24556 | $as_echo_n "checking for ynl... " >&6; } | |
22e05272 | 24557 | if ${gcc_cv_math_func_ynl+:} false; then : |
5213506e | 24558 | $as_echo_n "(cached) " >&6 |
e8525382 | 24559 | else |
db9f46a9 | 24560 | if test x$gcc_no_link = xyes; then |
22e05272 | 24561 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24562 | fi |
5213506e | 24563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24564 | /* end confdefs.h. */ |
24565 | ||
db9f46a9 TG |
24566 | #ifdef HAVE_COMPLEX_H |
24567 | #include <complex.h> | |
24568 | #endif | |
24569 | #ifdef HAVE_MATH_H | |
24570 | #include <math.h> | |
e8525382 | 24571 | #endif |
db9f46a9 TG |
24572 | |
24573 | int (*ptr)() = (int (*)())ynl; | |
24574 | ||
e8525382 SK |
24575 | int |
24576 | main () | |
24577 | { | |
e8525382 SK |
24578 | return 0; |
24579 | } | |
db9f46a9 | 24580 | |
e8525382 | 24581 | _ACEOF |
5213506e | 24582 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24583 | gcc_cv_math_func_ynl=yes |
e8525382 | 24584 | else |
db9f46a9 | 24585 | gcc_cv_math_func_ynl=no |
e8525382 | 24586 | fi |
5213506e RW |
24587 | rm -f core conftest.err conftest.$ac_objext \ |
24588 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24589 | fi |
db9f46a9 TG |
24590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24591 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24592 | if test $gcc_cv_math_func_ynl = yes; then | |
f1cdfa01 | 24593 | |
f38a14ca TG |
24594 | cat >>confdefs.h <<_ACEOF |
24595 | #define HAVE_YNL 1 | |
24596 | _ACEOF | |
db9f46a9 TG |
24597 | |
24598 | fi | |
e8525382 | 24599 | |
e8525382 | 24600 | |
e8525382 | 24601 | |
db9f46a9 TG |
24602 | |
24603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24604 | $as_echo_n "checking for tgamma... " >&6; } | |
22e05272 | 24605 | if ${gcc_cv_math_func_tgamma+:} false; then : |
5213506e | 24606 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24607 | else |
db9f46a9 | 24608 | if test x$gcc_no_link = xyes; then |
22e05272 | 24609 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24610 | fi |
5213506e | 24611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24612 | /* end confdefs.h. */ |
24613 | ||
db9f46a9 TG |
24614 | #ifdef HAVE_COMPLEX_H |
24615 | #include <complex.h> | |
fb0a0e15 | 24616 | #endif |
db9f46a9 TG |
24617 | #ifdef HAVE_MATH_H |
24618 | #include <math.h> | |
24619 | #endif | |
24620 | ||
24621 | int (*ptr)() = (int (*)())tgamma; | |
24622 | ||
fb0a0e15 FXC |
24623 | int |
24624 | main () | |
24625 | { | |
fb0a0e15 FXC |
24626 | return 0; |
24627 | } | |
db9f46a9 | 24628 | |
fb0a0e15 | 24629 | _ACEOF |
5213506e | 24630 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24631 | gcc_cv_math_func_tgamma=yes |
fb0a0e15 | 24632 | else |
db9f46a9 | 24633 | gcc_cv_math_func_tgamma=no |
fb0a0e15 | 24634 | fi |
5213506e RW |
24635 | rm -f core conftest.err conftest.$ac_objext \ |
24636 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24637 | fi |
db9f46a9 TG |
24638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24639 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24640 | if test $gcc_cv_math_func_tgamma = yes; then | |
f1cdfa01 | 24641 | |
f38a14ca TG |
24642 | cat >>confdefs.h <<_ACEOF |
24643 | #define HAVE_TGAMMA 1 | |
24644 | _ACEOF | |
fb0a0e15 | 24645 | |
db9f46a9 | 24646 | fi |
fb0a0e15 | 24647 | |
fb0a0e15 | 24648 | |
db9f46a9 TG |
24649 | |
24650 | ||
24651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24652 | $as_echo_n "checking for tgammaf... " >&6; } | |
22e05272 | 24653 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
5213506e | 24654 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24655 | else |
db9f46a9 | 24656 | if test x$gcc_no_link = xyes; then |
22e05272 | 24657 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24658 | fi |
5213506e | 24659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24660 | /* end confdefs.h. */ |
24661 | ||
db9f46a9 TG |
24662 | #ifdef HAVE_COMPLEX_H |
24663 | #include <complex.h> | |
24664 | #endif | |
24665 | #ifdef HAVE_MATH_H | |
24666 | #include <math.h> | |
fb0a0e15 | 24667 | #endif |
db9f46a9 TG |
24668 | |
24669 | int (*ptr)() = (int (*)())tgammaf; | |
24670 | ||
fb0a0e15 FXC |
24671 | int |
24672 | main () | |
24673 | { | |
fb0a0e15 FXC |
24674 | return 0; |
24675 | } | |
db9f46a9 | 24676 | |
fb0a0e15 | 24677 | _ACEOF |
5213506e | 24678 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24679 | gcc_cv_math_func_tgammaf=yes |
fb0a0e15 | 24680 | else |
db9f46a9 | 24681 | gcc_cv_math_func_tgammaf=no |
fb0a0e15 | 24682 | fi |
5213506e RW |
24683 | rm -f core conftest.err conftest.$ac_objext \ |
24684 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24685 | fi |
db9f46a9 TG |
24686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24687 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24688 | if test $gcc_cv_math_func_tgammaf = yes; then | |
f1cdfa01 | 24689 | |
f38a14ca TG |
24690 | cat >>confdefs.h <<_ACEOF |
24691 | #define HAVE_TGAMMAF 1 | |
24692 | _ACEOF | |
db9f46a9 TG |
24693 | |
24694 | fi | |
fb0a0e15 | 24695 | |
fb0a0e15 | 24696 | |
fb0a0e15 | 24697 | |
db9f46a9 | 24698 | |
db9f46a9 TG |
24699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24700 | $as_echo_n "checking for lgamma... " >&6; } | |
22e05272 | 24701 | if ${gcc_cv_math_func_lgamma+:} false; then : |
5213506e | 24702 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24703 | else |
db9f46a9 | 24704 | if test x$gcc_no_link = xyes; then |
22e05272 | 24705 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24706 | fi |
5213506e | 24707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24708 | /* end confdefs.h. */ |
24709 | ||
db9f46a9 TG |
24710 | #ifdef HAVE_COMPLEX_H |
24711 | #include <complex.h> | |
24712 | #endif | |
24713 | #ifdef HAVE_MATH_H | |
24714 | #include <math.h> | |
fb0a0e15 | 24715 | #endif |
db9f46a9 TG |
24716 | |
24717 | int (*ptr)() = (int (*)())lgamma; | |
24718 | ||
fb0a0e15 FXC |
24719 | int |
24720 | main () | |
24721 | { | |
fb0a0e15 FXC |
24722 | return 0; |
24723 | } | |
db9f46a9 | 24724 | |
fb0a0e15 | 24725 | _ACEOF |
5213506e | 24726 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24727 | gcc_cv_math_func_lgamma=yes |
fb0a0e15 | 24728 | else |
db9f46a9 | 24729 | gcc_cv_math_func_lgamma=no |
fb0a0e15 | 24730 | fi |
5213506e RW |
24731 | rm -f core conftest.err conftest.$ac_objext \ |
24732 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24733 | fi |
db9f46a9 TG |
24734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24735 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24736 | if test $gcc_cv_math_func_lgamma = yes; then | |
f1cdfa01 | 24737 | |
f38a14ca TG |
24738 | cat >>confdefs.h <<_ACEOF |
24739 | #define HAVE_LGAMMA 1 | |
24740 | _ACEOF | |
db9f46a9 TG |
24741 | |
24742 | fi | |
fb0a0e15 | 24743 | |
fb0a0e15 | 24744 | |
fb0a0e15 | 24745 | |
db9f46a9 TG |
24746 | |
24747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24748 | $as_echo_n "checking for lgammaf... " >&6; } | |
22e05272 | 24749 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
5213506e | 24750 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24751 | else |
db9f46a9 | 24752 | if test x$gcc_no_link = xyes; then |
22e05272 | 24753 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24754 | fi |
5213506e | 24755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24756 | /* end confdefs.h. */ |
24757 | ||
db9f46a9 TG |
24758 | #ifdef HAVE_COMPLEX_H |
24759 | #include <complex.h> | |
fb0a0e15 | 24760 | #endif |
db9f46a9 TG |
24761 | #ifdef HAVE_MATH_H |
24762 | #include <math.h> | |
24763 | #endif | |
24764 | ||
24765 | int (*ptr)() = (int (*)())lgammaf; | |
24766 | ||
fb0a0e15 FXC |
24767 | int |
24768 | main () | |
24769 | { | |
fb0a0e15 FXC |
24770 | return 0; |
24771 | } | |
db9f46a9 | 24772 | |
fb0a0e15 | 24773 | _ACEOF |
5213506e | 24774 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24775 | gcc_cv_math_func_lgammaf=yes |
fb0a0e15 | 24776 | else |
db9f46a9 | 24777 | gcc_cv_math_func_lgammaf=no |
fb0a0e15 | 24778 | fi |
5213506e RW |
24779 | rm -f core conftest.err conftest.$ac_objext \ |
24780 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24781 | fi |
db9f46a9 TG |
24782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24783 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24784 | if test $gcc_cv_math_func_lgammaf = yes; then | |
f1cdfa01 | 24785 | |
f38a14ca TG |
24786 | cat >>confdefs.h <<_ACEOF |
24787 | #define HAVE_LGAMMAF 1 | |
24788 | _ACEOF | |
fb0a0e15 | 24789 | |
db9f46a9 | 24790 | fi |
fb0a0e15 | 24791 | |
fb0a0e15 | 24792 | |
db1cf15c | 24793 | # Check for GFORTRAN_C99_1.1 funcs |
db9f46a9 TG |
24794 | |
24795 | ||
24796 | ||
24797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24798 | $as_echo_n "checking for cacos... " >&6; } | |
22e05272 | 24799 | if ${gcc_cv_math_func_cacos+:} false; then : |
db1cf15c IS |
24800 | $as_echo_n "(cached) " >&6 |
24801 | else | |
db9f46a9 | 24802 | if test x$gcc_no_link = xyes; then |
22e05272 | 24803 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24804 | fi |
24805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24806 | /* end confdefs.h. */ | |
24807 | ||
db9f46a9 TG |
24808 | #ifdef HAVE_COMPLEX_H |
24809 | #include <complex.h> | |
db1cf15c | 24810 | #endif |
db9f46a9 TG |
24811 | #ifdef HAVE_MATH_H |
24812 | #include <math.h> | |
24813 | #endif | |
24814 | ||
24815 | int (*ptr)() = (int (*)())cacos; | |
24816 | ||
db1cf15c IS |
24817 | int |
24818 | main () | |
24819 | { | |
db1cf15c IS |
24820 | return 0; |
24821 | } | |
db9f46a9 | 24822 | |
db1cf15c IS |
24823 | _ACEOF |
24824 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24825 | gcc_cv_math_func_cacos=yes |
db1cf15c | 24826 | else |
db9f46a9 | 24827 | gcc_cv_math_func_cacos=no |
db1cf15c IS |
24828 | fi |
24829 | rm -f core conftest.err conftest.$ac_objext \ | |
24830 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24831 | fi |
db9f46a9 TG |
24832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
24833 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
24834 | if test $gcc_cv_math_func_cacos = yes; then | |
f1cdfa01 | 24835 | |
f38a14ca TG |
24836 | cat >>confdefs.h <<_ACEOF |
24837 | #define HAVE_CACOS 1 | |
24838 | _ACEOF | |
db1cf15c | 24839 | |
db9f46a9 | 24840 | fi |
db1cf15c | 24841 | |
db1cf15c | 24842 | |
db9f46a9 TG |
24843 | |
24844 | ||
24845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
24846 | $as_echo_n "checking for cacosf... " >&6; } | |
22e05272 | 24847 | if ${gcc_cv_math_func_cacosf+:} false; then : |
db1cf15c IS |
24848 | $as_echo_n "(cached) " >&6 |
24849 | else | |
db9f46a9 | 24850 | if test x$gcc_no_link = xyes; then |
22e05272 | 24851 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24852 | fi |
24853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24854 | /* end confdefs.h. */ | |
24855 | ||
db9f46a9 TG |
24856 | #ifdef HAVE_COMPLEX_H |
24857 | #include <complex.h> | |
24858 | #endif | |
24859 | #ifdef HAVE_MATH_H | |
24860 | #include <math.h> | |
db1cf15c | 24861 | #endif |
db9f46a9 TG |
24862 | |
24863 | int (*ptr)() = (int (*)())cacosf; | |
24864 | ||
db1cf15c IS |
24865 | int |
24866 | main () | |
24867 | { | |
db1cf15c IS |
24868 | return 0; |
24869 | } | |
db9f46a9 | 24870 | |
db1cf15c IS |
24871 | _ACEOF |
24872 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24873 | gcc_cv_math_func_cacosf=yes |
db1cf15c | 24874 | else |
db9f46a9 | 24875 | gcc_cv_math_func_cacosf=no |
db1cf15c IS |
24876 | fi |
24877 | rm -f core conftest.err conftest.$ac_objext \ | |
24878 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24879 | fi |
db9f46a9 TG |
24880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
24881 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
24882 | if test $gcc_cv_math_func_cacosf = yes; then | |
f1cdfa01 | 24883 | |
f38a14ca TG |
24884 | cat >>confdefs.h <<_ACEOF |
24885 | #define HAVE_CACOSF 1 | |
24886 | _ACEOF | |
db9f46a9 TG |
24887 | |
24888 | fi | |
db1cf15c | 24889 | |
db1cf15c | 24890 | |
db1cf15c | 24891 | |
db9f46a9 TG |
24892 | |
24893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
24894 | $as_echo_n "checking for cacosh... " >&6; } | |
22e05272 | 24895 | if ${gcc_cv_math_func_cacosh+:} false; then : |
db1cf15c IS |
24896 | $as_echo_n "(cached) " >&6 |
24897 | else | |
db9f46a9 | 24898 | if test x$gcc_no_link = xyes; then |
22e05272 | 24899 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24900 | fi |
24901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24902 | /* end confdefs.h. */ | |
24903 | ||
db9f46a9 TG |
24904 | #ifdef HAVE_COMPLEX_H |
24905 | #include <complex.h> | |
db1cf15c | 24906 | #endif |
db9f46a9 TG |
24907 | #ifdef HAVE_MATH_H |
24908 | #include <math.h> | |
24909 | #endif | |
24910 | ||
24911 | int (*ptr)() = (int (*)())cacosh; | |
24912 | ||
db1cf15c IS |
24913 | int |
24914 | main () | |
24915 | { | |
db1cf15c IS |
24916 | return 0; |
24917 | } | |
db9f46a9 | 24918 | |
db1cf15c IS |
24919 | _ACEOF |
24920 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24921 | gcc_cv_math_func_cacosh=yes |
db1cf15c | 24922 | else |
db9f46a9 | 24923 | gcc_cv_math_func_cacosh=no |
db1cf15c IS |
24924 | fi |
24925 | rm -f core conftest.err conftest.$ac_objext \ | |
24926 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24927 | fi |
db9f46a9 TG |
24928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
24929 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
24930 | if test $gcc_cv_math_func_cacosh = yes; then | |
f1cdfa01 | 24931 | |
f38a14ca TG |
24932 | cat >>confdefs.h <<_ACEOF |
24933 | #define HAVE_CACOSH 1 | |
24934 | _ACEOF | |
db9f46a9 TG |
24935 | |
24936 | fi | |
24937 | ||
db1cf15c | 24938 | |
db1cf15c | 24939 | |
db1cf15c | 24940 | |
db9f46a9 TG |
24941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
24942 | $as_echo_n "checking for cacoshf... " >&6; } | |
22e05272 | 24943 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
db1cf15c IS |
24944 | $as_echo_n "(cached) " >&6 |
24945 | else | |
db9f46a9 | 24946 | if test x$gcc_no_link = xyes; then |
22e05272 | 24947 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24948 | fi |
24949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24950 | /* end confdefs.h. */ | |
24951 | ||
db9f46a9 TG |
24952 | #ifdef HAVE_COMPLEX_H |
24953 | #include <complex.h> | |
24954 | #endif | |
24955 | #ifdef HAVE_MATH_H | |
24956 | #include <math.h> | |
db1cf15c | 24957 | #endif |
db9f46a9 TG |
24958 | |
24959 | int (*ptr)() = (int (*)())cacoshf; | |
24960 | ||
db1cf15c IS |
24961 | int |
24962 | main () | |
24963 | { | |
db1cf15c IS |
24964 | return 0; |
24965 | } | |
db9f46a9 | 24966 | |
db1cf15c IS |
24967 | _ACEOF |
24968 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24969 | gcc_cv_math_func_cacoshf=yes |
db1cf15c | 24970 | else |
db9f46a9 | 24971 | gcc_cv_math_func_cacoshf=no |
db1cf15c IS |
24972 | fi |
24973 | rm -f core conftest.err conftest.$ac_objext \ | |
24974 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24975 | fi |
db9f46a9 TG |
24976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
24977 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
24978 | if test $gcc_cv_math_func_cacoshf = yes; then | |
f1cdfa01 | 24979 | |
f38a14ca TG |
24980 | cat >>confdefs.h <<_ACEOF |
24981 | #define HAVE_CACOSHF 1 | |
24982 | _ACEOF | |
db9f46a9 TG |
24983 | |
24984 | fi | |
db1cf15c | 24985 | |
db1cf15c | 24986 | |
db1cf15c | 24987 | |
db9f46a9 TG |
24988 | |
24989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
24990 | $as_echo_n "checking for cacoshl... " >&6; } | |
22e05272 | 24991 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
db1cf15c IS |
24992 | $as_echo_n "(cached) " >&6 |
24993 | else | |
db9f46a9 | 24994 | if test x$gcc_no_link = xyes; then |
22e05272 | 24995 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24996 | fi |
24997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24998 | /* end confdefs.h. */ | |
24999 | ||
db9f46a9 TG |
25000 | #ifdef HAVE_COMPLEX_H |
25001 | #include <complex.h> | |
db1cf15c | 25002 | #endif |
db9f46a9 TG |
25003 | #ifdef HAVE_MATH_H |
25004 | #include <math.h> | |
25005 | #endif | |
25006 | ||
25007 | int (*ptr)() = (int (*)())cacoshl; | |
25008 | ||
db1cf15c IS |
25009 | int |
25010 | main () | |
25011 | { | |
db1cf15c IS |
25012 | return 0; |
25013 | } | |
db9f46a9 | 25014 | |
db1cf15c IS |
25015 | _ACEOF |
25016 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25017 | gcc_cv_math_func_cacoshl=yes |
db1cf15c | 25018 | else |
db9f46a9 | 25019 | gcc_cv_math_func_cacoshl=no |
db1cf15c IS |
25020 | fi |
25021 | rm -f core conftest.err conftest.$ac_objext \ | |
25022 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25023 | fi |
db9f46a9 TG |
25024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
25025 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
25026 | if test $gcc_cv_math_func_cacoshl = yes; then | |
f1cdfa01 | 25027 | |
f38a14ca TG |
25028 | cat >>confdefs.h <<_ACEOF |
25029 | #define HAVE_CACOSHL 1 | |
25030 | _ACEOF | |
db1cf15c | 25031 | |
db9f46a9 | 25032 | fi |
db1cf15c | 25033 | |
db1cf15c | 25034 | |
db9f46a9 TG |
25035 | |
25036 | ||
25037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
25038 | $as_echo_n "checking for cacosl... " >&6; } | |
22e05272 | 25039 | if ${gcc_cv_math_func_cacosl+:} false; then : |
db1cf15c IS |
25040 | $as_echo_n "(cached) " >&6 |
25041 | else | |
db9f46a9 | 25042 | if test x$gcc_no_link = xyes; then |
22e05272 | 25043 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25044 | fi |
25045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25046 | /* end confdefs.h. */ | |
25047 | ||
db9f46a9 TG |
25048 | #ifdef HAVE_COMPLEX_H |
25049 | #include <complex.h> | |
25050 | #endif | |
25051 | #ifdef HAVE_MATH_H | |
25052 | #include <math.h> | |
db1cf15c | 25053 | #endif |
db9f46a9 TG |
25054 | |
25055 | int (*ptr)() = (int (*)())cacosl; | |
25056 | ||
db1cf15c IS |
25057 | int |
25058 | main () | |
25059 | { | |
db1cf15c IS |
25060 | return 0; |
25061 | } | |
db9f46a9 | 25062 | |
db1cf15c IS |
25063 | _ACEOF |
25064 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25065 | gcc_cv_math_func_cacosl=yes |
db1cf15c | 25066 | else |
db9f46a9 | 25067 | gcc_cv_math_func_cacosl=no |
db1cf15c IS |
25068 | fi |
25069 | rm -f core conftest.err conftest.$ac_objext \ | |
25070 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25071 | fi |
db9f46a9 TG |
25072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
25073 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
25074 | if test $gcc_cv_math_func_cacosl = yes; then | |
f1cdfa01 | 25075 | |
f38a14ca TG |
25076 | cat >>confdefs.h <<_ACEOF |
25077 | #define HAVE_CACOSL 1 | |
25078 | _ACEOF | |
db9f46a9 TG |
25079 | |
25080 | fi | |
db1cf15c | 25081 | |
db1cf15c | 25082 | |
db1cf15c | 25083 | |
db9f46a9 TG |
25084 | |
25085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
25086 | $as_echo_n "checking for casin... " >&6; } | |
22e05272 | 25087 | if ${gcc_cv_math_func_casin+:} false; then : |
db1cf15c IS |
25088 | $as_echo_n "(cached) " >&6 |
25089 | else | |
db9f46a9 | 25090 | if test x$gcc_no_link = xyes; then |
22e05272 | 25091 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25092 | fi |
25093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25094 | /* end confdefs.h. */ | |
25095 | ||
db9f46a9 TG |
25096 | #ifdef HAVE_COMPLEX_H |
25097 | #include <complex.h> | |
db1cf15c | 25098 | #endif |
db9f46a9 TG |
25099 | #ifdef HAVE_MATH_H |
25100 | #include <math.h> | |
25101 | #endif | |
25102 | ||
25103 | int (*ptr)() = (int (*)())casin; | |
25104 | ||
db1cf15c IS |
25105 | int |
25106 | main () | |
25107 | { | |
db1cf15c IS |
25108 | return 0; |
25109 | } | |
db9f46a9 | 25110 | |
db1cf15c IS |
25111 | _ACEOF |
25112 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25113 | gcc_cv_math_func_casin=yes |
db1cf15c | 25114 | else |
db9f46a9 | 25115 | gcc_cv_math_func_casin=no |
db1cf15c IS |
25116 | fi |
25117 | rm -f core conftest.err conftest.$ac_objext \ | |
25118 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25119 | fi |
db9f46a9 TG |
25120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
25121 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
25122 | if test $gcc_cv_math_func_casin = yes; then | |
f1cdfa01 | 25123 | |
f38a14ca TG |
25124 | cat >>confdefs.h <<_ACEOF |
25125 | #define HAVE_CASIN 1 | |
25126 | _ACEOF | |
db9f46a9 TG |
25127 | |
25128 | fi | |
25129 | ||
db1cf15c | 25130 | |
db1cf15c | 25131 | |
db1cf15c | 25132 | |
db9f46a9 TG |
25133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
25134 | $as_echo_n "checking for casinf... " >&6; } | |
22e05272 | 25135 | if ${gcc_cv_math_func_casinf+:} false; then : |
db1cf15c IS |
25136 | $as_echo_n "(cached) " >&6 |
25137 | else | |
db9f46a9 | 25138 | if test x$gcc_no_link = xyes; then |
22e05272 | 25139 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25140 | fi |
25141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25142 | /* end confdefs.h. */ | |
25143 | ||
db9f46a9 TG |
25144 | #ifdef HAVE_COMPLEX_H |
25145 | #include <complex.h> | |
25146 | #endif | |
25147 | #ifdef HAVE_MATH_H | |
25148 | #include <math.h> | |
db1cf15c | 25149 | #endif |
db9f46a9 TG |
25150 | |
25151 | int (*ptr)() = (int (*)())casinf; | |
25152 | ||
db1cf15c IS |
25153 | int |
25154 | main () | |
25155 | { | |
db1cf15c IS |
25156 | return 0; |
25157 | } | |
db9f46a9 | 25158 | |
db1cf15c IS |
25159 | _ACEOF |
25160 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25161 | gcc_cv_math_func_casinf=yes |
db1cf15c | 25162 | else |
db9f46a9 | 25163 | gcc_cv_math_func_casinf=no |
db1cf15c IS |
25164 | fi |
25165 | rm -f core conftest.err conftest.$ac_objext \ | |
25166 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25167 | fi |
db9f46a9 TG |
25168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
25169 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
25170 | if test $gcc_cv_math_func_casinf = yes; then | |
f1cdfa01 | 25171 | |
f38a14ca TG |
25172 | cat >>confdefs.h <<_ACEOF |
25173 | #define HAVE_CASINF 1 | |
25174 | _ACEOF | |
db9f46a9 TG |
25175 | |
25176 | fi | |
db1cf15c | 25177 | |
db1cf15c | 25178 | |
db1cf15c | 25179 | |
db9f46a9 TG |
25180 | |
25181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25182 | $as_echo_n "checking for casinh... " >&6; } | |
22e05272 | 25183 | if ${gcc_cv_math_func_casinh+:} false; then : |
db1cf15c IS |
25184 | $as_echo_n "(cached) " >&6 |
25185 | else | |
db9f46a9 | 25186 | if test x$gcc_no_link = xyes; then |
22e05272 | 25187 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25188 | fi |
25189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25190 | /* end confdefs.h. */ | |
25191 | ||
db9f46a9 TG |
25192 | #ifdef HAVE_COMPLEX_H |
25193 | #include <complex.h> | |
db1cf15c | 25194 | #endif |
db9f46a9 TG |
25195 | #ifdef HAVE_MATH_H |
25196 | #include <math.h> | |
25197 | #endif | |
25198 | ||
25199 | int (*ptr)() = (int (*)())casinh; | |
25200 | ||
db1cf15c IS |
25201 | int |
25202 | main () | |
25203 | { | |
db1cf15c IS |
25204 | return 0; |
25205 | } | |
db9f46a9 | 25206 | |
db1cf15c IS |
25207 | _ACEOF |
25208 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25209 | gcc_cv_math_func_casinh=yes |
db1cf15c | 25210 | else |
db9f46a9 | 25211 | gcc_cv_math_func_casinh=no |
db1cf15c IS |
25212 | fi |
25213 | rm -f core conftest.err conftest.$ac_objext \ | |
25214 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25215 | fi |
db9f46a9 TG |
25216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25217 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25218 | if test $gcc_cv_math_func_casinh = yes; then | |
f1cdfa01 | 25219 | |
f38a14ca TG |
25220 | cat >>confdefs.h <<_ACEOF |
25221 | #define HAVE_CASINH 1 | |
25222 | _ACEOF | |
db1cf15c | 25223 | |
db9f46a9 | 25224 | fi |
db1cf15c | 25225 | |
db1cf15c | 25226 | |
db9f46a9 TG |
25227 | |
25228 | ||
25229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25230 | $as_echo_n "checking for casinhf... " >&6; } | |
22e05272 | 25231 | if ${gcc_cv_math_func_casinhf+:} false; then : |
db1cf15c IS |
25232 | $as_echo_n "(cached) " >&6 |
25233 | else | |
db9f46a9 | 25234 | if test x$gcc_no_link = xyes; then |
22e05272 | 25235 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25236 | fi |
25237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25238 | /* end confdefs.h. */ | |
25239 | ||
db9f46a9 TG |
25240 | #ifdef HAVE_COMPLEX_H |
25241 | #include <complex.h> | |
25242 | #endif | |
25243 | #ifdef HAVE_MATH_H | |
25244 | #include <math.h> | |
db1cf15c | 25245 | #endif |
db9f46a9 TG |
25246 | |
25247 | int (*ptr)() = (int (*)())casinhf; | |
25248 | ||
db1cf15c IS |
25249 | int |
25250 | main () | |
25251 | { | |
db1cf15c IS |
25252 | return 0; |
25253 | } | |
db9f46a9 | 25254 | |
db1cf15c IS |
25255 | _ACEOF |
25256 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25257 | gcc_cv_math_func_casinhf=yes |
db1cf15c | 25258 | else |
db9f46a9 | 25259 | gcc_cv_math_func_casinhf=no |
db1cf15c IS |
25260 | fi |
25261 | rm -f core conftest.err conftest.$ac_objext \ | |
25262 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25263 | fi |
db9f46a9 TG |
25264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25265 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25266 | if test $gcc_cv_math_func_casinhf = yes; then | |
f1cdfa01 | 25267 | |
f38a14ca TG |
25268 | cat >>confdefs.h <<_ACEOF |
25269 | #define HAVE_CASINHF 1 | |
25270 | _ACEOF | |
db9f46a9 TG |
25271 | |
25272 | fi | |
db1cf15c | 25273 | |
db1cf15c | 25274 | |
db1cf15c | 25275 | |
db9f46a9 TG |
25276 | |
25277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25278 | $as_echo_n "checking for casinhl... " >&6; } | |
22e05272 | 25279 | if ${gcc_cv_math_func_casinhl+:} false; then : |
db1cf15c IS |
25280 | $as_echo_n "(cached) " >&6 |
25281 | else | |
db9f46a9 | 25282 | if test x$gcc_no_link = xyes; then |
22e05272 | 25283 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25284 | fi |
25285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25286 | /* end confdefs.h. */ | |
25287 | ||
db9f46a9 TG |
25288 | #ifdef HAVE_COMPLEX_H |
25289 | #include <complex.h> | |
db1cf15c | 25290 | #endif |
db9f46a9 TG |
25291 | #ifdef HAVE_MATH_H |
25292 | #include <math.h> | |
25293 | #endif | |
25294 | ||
25295 | int (*ptr)() = (int (*)())casinhl; | |
25296 | ||
db1cf15c IS |
25297 | int |
25298 | main () | |
25299 | { | |
db1cf15c IS |
25300 | return 0; |
25301 | } | |
db9f46a9 | 25302 | |
db1cf15c IS |
25303 | _ACEOF |
25304 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25305 | gcc_cv_math_func_casinhl=yes |
db1cf15c | 25306 | else |
db9f46a9 | 25307 | gcc_cv_math_func_casinhl=no |
db1cf15c IS |
25308 | fi |
25309 | rm -f core conftest.err conftest.$ac_objext \ | |
25310 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25311 | fi |
db9f46a9 TG |
25312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25313 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25314 | if test $gcc_cv_math_func_casinhl = yes; then | |
f1cdfa01 | 25315 | |
f38a14ca TG |
25316 | cat >>confdefs.h <<_ACEOF |
25317 | #define HAVE_CASINHL 1 | |
25318 | _ACEOF | |
db9f46a9 TG |
25319 | |
25320 | fi | |
25321 | ||
db1cf15c | 25322 | |
db1cf15c | 25323 | |
db1cf15c | 25324 | |
db9f46a9 TG |
25325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25326 | $as_echo_n "checking for casinl... " >&6; } | |
22e05272 | 25327 | if ${gcc_cv_math_func_casinl+:} false; then : |
db1cf15c IS |
25328 | $as_echo_n "(cached) " >&6 |
25329 | else | |
db9f46a9 | 25330 | if test x$gcc_no_link = xyes; then |
22e05272 | 25331 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25332 | fi |
25333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25334 | /* end confdefs.h. */ | |
25335 | ||
db9f46a9 TG |
25336 | #ifdef HAVE_COMPLEX_H |
25337 | #include <complex.h> | |
25338 | #endif | |
25339 | #ifdef HAVE_MATH_H | |
25340 | #include <math.h> | |
db1cf15c | 25341 | #endif |
db9f46a9 TG |
25342 | |
25343 | int (*ptr)() = (int (*)())casinl; | |
25344 | ||
db1cf15c IS |
25345 | int |
25346 | main () | |
25347 | { | |
db1cf15c IS |
25348 | return 0; |
25349 | } | |
db9f46a9 | 25350 | |
db1cf15c IS |
25351 | _ACEOF |
25352 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25353 | gcc_cv_math_func_casinl=yes |
db1cf15c | 25354 | else |
db9f46a9 | 25355 | gcc_cv_math_func_casinl=no |
db1cf15c IS |
25356 | fi |
25357 | rm -f core conftest.err conftest.$ac_objext \ | |
25358 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25359 | fi |
db9f46a9 TG |
25360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25361 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25362 | if test $gcc_cv_math_func_casinl = yes; then | |
f1cdfa01 | 25363 | |
f38a14ca TG |
25364 | cat >>confdefs.h <<_ACEOF |
25365 | #define HAVE_CASINL 1 | |
25366 | _ACEOF | |
db9f46a9 TG |
25367 | |
25368 | fi | |
db1cf15c | 25369 | |
db1cf15c | 25370 | |
db1cf15c | 25371 | |
db9f46a9 TG |
25372 | |
25373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25374 | $as_echo_n "checking for catan... " >&6; } | |
22e05272 | 25375 | if ${gcc_cv_math_func_catan+:} false; then : |
db1cf15c IS |
25376 | $as_echo_n "(cached) " >&6 |
25377 | else | |
db9f46a9 | 25378 | if test x$gcc_no_link = xyes; then |
22e05272 | 25379 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25380 | fi |
25381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25382 | /* end confdefs.h. */ | |
25383 | ||
db9f46a9 TG |
25384 | #ifdef HAVE_COMPLEX_H |
25385 | #include <complex.h> | |
db1cf15c | 25386 | #endif |
db9f46a9 TG |
25387 | #ifdef HAVE_MATH_H |
25388 | #include <math.h> | |
25389 | #endif | |
25390 | ||
25391 | int (*ptr)() = (int (*)())catan; | |
25392 | ||
db1cf15c IS |
25393 | int |
25394 | main () | |
25395 | { | |
db1cf15c IS |
25396 | return 0; |
25397 | } | |
db9f46a9 | 25398 | |
db1cf15c IS |
25399 | _ACEOF |
25400 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25401 | gcc_cv_math_func_catan=yes |
db1cf15c | 25402 | else |
db9f46a9 | 25403 | gcc_cv_math_func_catan=no |
db1cf15c IS |
25404 | fi |
25405 | rm -f core conftest.err conftest.$ac_objext \ | |
25406 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25407 | fi |
db9f46a9 TG |
25408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25409 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25410 | if test $gcc_cv_math_func_catan = yes; then | |
f1cdfa01 | 25411 | |
f38a14ca TG |
25412 | cat >>confdefs.h <<_ACEOF |
25413 | #define HAVE_CATAN 1 | |
25414 | _ACEOF | |
db1cf15c | 25415 | |
db9f46a9 | 25416 | fi |
db1cf15c | 25417 | |
db1cf15c | 25418 | |
db9f46a9 TG |
25419 | |
25420 | ||
25421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25422 | $as_echo_n "checking for catanf... " >&6; } | |
22e05272 | 25423 | if ${gcc_cv_math_func_catanf+:} false; then : |
db1cf15c IS |
25424 | $as_echo_n "(cached) " >&6 |
25425 | else | |
db9f46a9 | 25426 | if test x$gcc_no_link = xyes; then |
22e05272 | 25427 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25428 | fi |
25429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25430 | /* end confdefs.h. */ | |
25431 | ||
db9f46a9 TG |
25432 | #ifdef HAVE_COMPLEX_H |
25433 | #include <complex.h> | |
25434 | #endif | |
25435 | #ifdef HAVE_MATH_H | |
25436 | #include <math.h> | |
db1cf15c | 25437 | #endif |
db9f46a9 TG |
25438 | |
25439 | int (*ptr)() = (int (*)())catanf; | |
25440 | ||
db1cf15c IS |
25441 | int |
25442 | main () | |
25443 | { | |
db1cf15c IS |
25444 | return 0; |
25445 | } | |
db9f46a9 | 25446 | |
db1cf15c IS |
25447 | _ACEOF |
25448 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25449 | gcc_cv_math_func_catanf=yes |
db1cf15c | 25450 | else |
db9f46a9 | 25451 | gcc_cv_math_func_catanf=no |
db1cf15c IS |
25452 | fi |
25453 | rm -f core conftest.err conftest.$ac_objext \ | |
25454 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25455 | fi |
db9f46a9 TG |
25456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25457 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25458 | if test $gcc_cv_math_func_catanf = yes; then | |
f1cdfa01 | 25459 | |
f38a14ca TG |
25460 | cat >>confdefs.h <<_ACEOF |
25461 | #define HAVE_CATANF 1 | |
25462 | _ACEOF | |
db9f46a9 TG |
25463 | |
25464 | fi | |
db1cf15c | 25465 | |
db1cf15c | 25466 | |
db1cf15c | 25467 | |
db9f46a9 TG |
25468 | |
25469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25470 | $as_echo_n "checking for catanh... " >&6; } | |
22e05272 | 25471 | if ${gcc_cv_math_func_catanh+:} false; then : |
db1cf15c IS |
25472 | $as_echo_n "(cached) " >&6 |
25473 | else | |
db9f46a9 | 25474 | if test x$gcc_no_link = xyes; then |
22e05272 | 25475 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25476 | fi |
25477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25478 | /* end confdefs.h. */ | |
25479 | ||
db9f46a9 TG |
25480 | #ifdef HAVE_COMPLEX_H |
25481 | #include <complex.h> | |
db1cf15c | 25482 | #endif |
db9f46a9 TG |
25483 | #ifdef HAVE_MATH_H |
25484 | #include <math.h> | |
25485 | #endif | |
25486 | ||
25487 | int (*ptr)() = (int (*)())catanh; | |
25488 | ||
db1cf15c IS |
25489 | int |
25490 | main () | |
25491 | { | |
db1cf15c IS |
25492 | return 0; |
25493 | } | |
db9f46a9 | 25494 | |
db1cf15c IS |
25495 | _ACEOF |
25496 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25497 | gcc_cv_math_func_catanh=yes |
db1cf15c | 25498 | else |
db9f46a9 | 25499 | gcc_cv_math_func_catanh=no |
db1cf15c IS |
25500 | fi |
25501 | rm -f core conftest.err conftest.$ac_objext \ | |
25502 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25503 | fi |
db9f46a9 TG |
25504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25505 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25506 | if test $gcc_cv_math_func_catanh = yes; then | |
f1cdfa01 | 25507 | |
f38a14ca TG |
25508 | cat >>confdefs.h <<_ACEOF |
25509 | #define HAVE_CATANH 1 | |
25510 | _ACEOF | |
db9f46a9 TG |
25511 | |
25512 | fi | |
25513 | ||
db1cf15c | 25514 | |
db1cf15c | 25515 | |
db1cf15c | 25516 | |
db9f46a9 TG |
25517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25518 | $as_echo_n "checking for catanhf... " >&6; } | |
22e05272 | 25519 | if ${gcc_cv_math_func_catanhf+:} false; then : |
db1cf15c IS |
25520 | $as_echo_n "(cached) " >&6 |
25521 | else | |
db9f46a9 | 25522 | if test x$gcc_no_link = xyes; then |
22e05272 | 25523 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25524 | fi |
25525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25526 | /* end confdefs.h. */ | |
25527 | ||
db9f46a9 TG |
25528 | #ifdef HAVE_COMPLEX_H |
25529 | #include <complex.h> | |
25530 | #endif | |
25531 | #ifdef HAVE_MATH_H | |
25532 | #include <math.h> | |
db1cf15c | 25533 | #endif |
db9f46a9 TG |
25534 | |
25535 | int (*ptr)() = (int (*)())catanhf; | |
25536 | ||
db1cf15c IS |
25537 | int |
25538 | main () | |
25539 | { | |
db1cf15c IS |
25540 | return 0; |
25541 | } | |
db9f46a9 | 25542 | |
db1cf15c IS |
25543 | _ACEOF |
25544 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25545 | gcc_cv_math_func_catanhf=yes |
db1cf15c | 25546 | else |
db9f46a9 | 25547 | gcc_cv_math_func_catanhf=no |
db1cf15c IS |
25548 | fi |
25549 | rm -f core conftest.err conftest.$ac_objext \ | |
25550 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25551 | fi |
db9f46a9 TG |
25552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25553 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25554 | if test $gcc_cv_math_func_catanhf = yes; then | |
f1cdfa01 | 25555 | |
f38a14ca TG |
25556 | cat >>confdefs.h <<_ACEOF |
25557 | #define HAVE_CATANHF 1 | |
25558 | _ACEOF | |
db9f46a9 TG |
25559 | |
25560 | fi | |
db1cf15c | 25561 | |
db1cf15c | 25562 | |
db1cf15c | 25563 | |
db9f46a9 TG |
25564 | |
25565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25566 | $as_echo_n "checking for catanhl... " >&6; } | |
22e05272 | 25567 | if ${gcc_cv_math_func_catanhl+:} false; then : |
db1cf15c IS |
25568 | $as_echo_n "(cached) " >&6 |
25569 | else | |
db9f46a9 | 25570 | if test x$gcc_no_link = xyes; then |
22e05272 | 25571 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25572 | fi |
25573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25574 | /* end confdefs.h. */ | |
25575 | ||
db9f46a9 TG |
25576 | #ifdef HAVE_COMPLEX_H |
25577 | #include <complex.h> | |
db1cf15c | 25578 | #endif |
db9f46a9 TG |
25579 | #ifdef HAVE_MATH_H |
25580 | #include <math.h> | |
25581 | #endif | |
25582 | ||
25583 | int (*ptr)() = (int (*)())catanhl; | |
25584 | ||
db1cf15c IS |
25585 | int |
25586 | main () | |
25587 | { | |
db1cf15c IS |
25588 | return 0; |
25589 | } | |
db9f46a9 | 25590 | |
db1cf15c IS |
25591 | _ACEOF |
25592 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25593 | gcc_cv_math_func_catanhl=yes |
db1cf15c | 25594 | else |
db9f46a9 | 25595 | gcc_cv_math_func_catanhl=no |
db1cf15c IS |
25596 | fi |
25597 | rm -f core conftest.err conftest.$ac_objext \ | |
25598 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25599 | fi |
db9f46a9 TG |
25600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25601 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25602 | if test $gcc_cv_math_func_catanhl = yes; then | |
f1cdfa01 | 25603 | |
f38a14ca TG |
25604 | cat >>confdefs.h <<_ACEOF |
25605 | #define HAVE_CATANHL 1 | |
25606 | _ACEOF | |
db1cf15c | 25607 | |
db9f46a9 | 25608 | fi |
db1cf15c | 25609 | |
db1cf15c | 25610 | |
db9f46a9 TG |
25611 | |
25612 | ||
25613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25614 | $as_echo_n "checking for catanl... " >&6; } | |
22e05272 | 25615 | if ${gcc_cv_math_func_catanl+:} false; then : |
db1cf15c IS |
25616 | $as_echo_n "(cached) " >&6 |
25617 | else | |
db9f46a9 | 25618 | if test x$gcc_no_link = xyes; then |
22e05272 | 25619 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25620 | fi |
25621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25622 | /* end confdefs.h. */ | |
25623 | ||
db9f46a9 TG |
25624 | #ifdef HAVE_COMPLEX_H |
25625 | #include <complex.h> | |
25626 | #endif | |
25627 | #ifdef HAVE_MATH_H | |
25628 | #include <math.h> | |
db1cf15c | 25629 | #endif |
db9f46a9 TG |
25630 | |
25631 | int (*ptr)() = (int (*)())catanl; | |
25632 | ||
db1cf15c IS |
25633 | int |
25634 | main () | |
25635 | { | |
db1cf15c IS |
25636 | return 0; |
25637 | } | |
db9f46a9 | 25638 | |
db1cf15c IS |
25639 | _ACEOF |
25640 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25641 | gcc_cv_math_func_catanl=yes |
db1cf15c | 25642 | else |
db9f46a9 | 25643 | gcc_cv_math_func_catanl=no |
db1cf15c IS |
25644 | fi |
25645 | rm -f core conftest.err conftest.$ac_objext \ | |
25646 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25647 | fi |
db9f46a9 TG |
25648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25649 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25650 | if test $gcc_cv_math_func_catanl = yes; then | |
f1cdfa01 | 25651 | |
f38a14ca TG |
25652 | cat >>confdefs.h <<_ACEOF |
25653 | #define HAVE_CATANL 1 | |
25654 | _ACEOF | |
db1cf15c | 25655 | |
db9f46a9 | 25656 | fi |
db1cf15c IS |
25657 | |
25658 | ||
118ea208 | 25659 | # On AIX, clog is present in libm as __clog |
5213506e RW |
25660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
25661 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
22e05272 | 25662 | if ${ac_cv_lib_m___clog+:} false; then : |
5213506e | 25663 | $as_echo_n "(cached) " >&6 |
e097b4f1 DE |
25664 | else |
25665 | ac_check_lib_save_LIBS=$LIBS | |
25666 | LIBS="-lm $LIBS" | |
25667 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25668 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e097b4f1 | 25669 | fi |
5213506e | 25670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e097b4f1 DE |
25671 | /* end confdefs.h. */ |
25672 | ||
5213506e RW |
25673 | /* Override any GCC internal prototype to avoid an error. |
25674 | Use char because int might match the return type of a GCC | |
25675 | builtin and then its argument prototype would still apply. */ | |
e097b4f1 DE |
25676 | #ifdef __cplusplus |
25677 | extern "C" | |
25678 | #endif | |
e097b4f1 DE |
25679 | char __clog (); |
25680 | int | |
25681 | main () | |
25682 | { | |
5213506e | 25683 | return __clog (); |
e097b4f1 DE |
25684 | ; |
25685 | return 0; | |
25686 | } | |
25687 | _ACEOF | |
5213506e | 25688 | if ac_fn_c_try_link "$LINENO"; then : |
e097b4f1 DE |
25689 | ac_cv_lib_m___clog=yes |
25690 | else | |
5213506e | 25691 | ac_cv_lib_m___clog=no |
e097b4f1 | 25692 | fi |
5213506e RW |
25693 | rm -f core conftest.err conftest.$ac_objext \ |
25694 | conftest$ac_exeext conftest.$ac_ext | |
e097b4f1 DE |
25695 | LIBS=$ac_check_lib_save_LIBS |
25696 | fi | |
5213506e RW |
25697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
25698 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
22e05272 | 25699 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
e097b4f1 | 25700 | |
5213506e | 25701 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
e097b4f1 DE |
25702 | |
25703 | fi | |
25704 | ||
25705 | ||
1868599f JJ |
25706 | |
25707 | ||
25708 | if test $gcc_cv_math_func_copysign = no; then | |
25709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 | |
25710 | $as_echo_n "checking for inline __builtin_copysign... " >&6; } | |
25711 | if ${gcc_cv_math_inline_builtin_copysign+:} false; then : | |
25712 | $as_echo_n "(cached) " >&6 | |
25713 | else | |
25714 | if test x$gcc_no_link = xyes; then | |
25715 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25716 | fi | |
25717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25718 | /* end confdefs.h. */ | |
25719 | ||
25720 | double | |
25721 | copysign_fallback (double x, double y) | |
25722 | { | |
25723 | return __builtin_copysign (x, y); | |
25724 | } | |
25725 | ||
25726 | int | |
25727 | main () | |
25728 | { | |
25729 | return 0; | |
25730 | } | |
25731 | ||
25732 | _ACEOF | |
25733 | if ac_fn_c_try_link "$LINENO"; then : | |
25734 | gcc_cv_math_inline_builtin_copysign=yes | |
25735 | else | |
25736 | gcc_cv_math_inline_builtin_copysign=no | |
25737 | fi | |
25738 | rm -f core conftest.err conftest.$ac_objext \ | |
25739 | conftest$ac_exeext conftest.$ac_ext | |
25740 | fi | |
25741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 | |
25742 | $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } | |
25743 | if test $gcc_cv_math_inline_builtin_copysign = yes; then | |
25744 | ||
25745 | cat >>confdefs.h <<_ACEOF | |
25746 | #define HAVE_INLINE_BUILTIN_COPYSIGN 1 | |
25747 | _ACEOF | |
25748 | ||
25749 | fi | |
25750 | fi | |
25751 | ||
25752 | ||
25753 | if test $gcc_cv_math_func_copysignl = no; then | |
25754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 | |
25755 | $as_echo_n "checking for inline __builtin_copysignl... " >&6; } | |
25756 | if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : | |
25757 | $as_echo_n "(cached) " >&6 | |
25758 | else | |
25759 | if test x$gcc_no_link = xyes; then | |
25760 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25761 | fi | |
25762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25763 | /* end confdefs.h. */ | |
25764 | ||
25765 | long double | |
25766 | copysignl_fallback (long double x, long double y) | |
25767 | { | |
25768 | return __builtin_copysignl (x, y); | |
25769 | } | |
25770 | ||
25771 | int | |
25772 | main () | |
25773 | { | |
25774 | return 0; | |
25775 | } | |
25776 | ||
25777 | _ACEOF | |
25778 | if ac_fn_c_try_link "$LINENO"; then : | |
25779 | gcc_cv_math_inline_builtin_copysignl=yes | |
25780 | else | |
25781 | gcc_cv_math_inline_builtin_copysignl=no | |
25782 | fi | |
25783 | rm -f core conftest.err conftest.$ac_objext \ | |
25784 | conftest$ac_exeext conftest.$ac_ext | |
25785 | fi | |
25786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 | |
25787 | $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } | |
25788 | if test $gcc_cv_math_inline_builtin_copysignl = yes; then | |
25789 | ||
25790 | cat >>confdefs.h <<_ACEOF | |
25791 | #define HAVE_INLINE_BUILTIN_COPYSIGNL 1 | |
25792 | _ACEOF | |
25793 | ||
25794 | fi | |
25795 | fi | |
25796 | ||
25797 | ||
25798 | if test $gcc_cv_math_func_fabs = no; then | |
25799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 | |
25800 | $as_echo_n "checking for inline __builtin_fabs... " >&6; } | |
25801 | if ${gcc_cv_math_inline_builtin_fabs+:} false; then : | |
25802 | $as_echo_n "(cached) " >&6 | |
25803 | else | |
25804 | if test x$gcc_no_link = xyes; then | |
25805 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25806 | fi | |
25807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25808 | /* end confdefs.h. */ | |
25809 | ||
25810 | double | |
25811 | fabs_fallback (double x) | |
25812 | { | |
25813 | return __builtin_fabs (x); | |
25814 | } | |
25815 | ||
25816 | int | |
25817 | main () | |
25818 | { | |
25819 | return 0; | |
25820 | } | |
25821 | ||
25822 | _ACEOF | |
25823 | if ac_fn_c_try_link "$LINENO"; then : | |
25824 | gcc_cv_math_inline_builtin_fabs=yes | |
25825 | else | |
25826 | gcc_cv_math_inline_builtin_fabs=no | |
25827 | fi | |
25828 | rm -f core conftest.err conftest.$ac_objext \ | |
25829 | conftest$ac_exeext conftest.$ac_ext | |
25830 | fi | |
25831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 | |
25832 | $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } | |
25833 | if test $gcc_cv_math_inline_builtin_fabs = yes; then | |
25834 | ||
25835 | cat >>confdefs.h <<_ACEOF | |
25836 | #define HAVE_INLINE_BUILTIN_FABS 1 | |
25837 | _ACEOF | |
25838 | ||
25839 | fi | |
25840 | fi | |
25841 | ||
25842 | ||
25843 | if test $gcc_cv_math_func_fabsl = no; then | |
25844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 | |
25845 | $as_echo_n "checking for inline __builtin_fabsl... " >&6; } | |
25846 | if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : | |
25847 | $as_echo_n "(cached) " >&6 | |
25848 | else | |
25849 | if test x$gcc_no_link = xyes; then | |
25850 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25851 | fi | |
25852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25853 | /* end confdefs.h. */ | |
25854 | ||
25855 | long double | |
25856 | fabsl_fallback (long double x) | |
25857 | { | |
25858 | return __builtin_fabsl (x); | |
25859 | } | |
25860 | ||
25861 | int | |
25862 | main () | |
25863 | { | |
25864 | return 0; | |
25865 | } | |
25866 | ||
25867 | _ACEOF | |
25868 | if ac_fn_c_try_link "$LINENO"; then : | |
25869 | gcc_cv_math_inline_builtin_fabsl=yes | |
25870 | else | |
25871 | gcc_cv_math_inline_builtin_fabsl=no | |
25872 | fi | |
25873 | rm -f core conftest.err conftest.$ac_objext \ | |
25874 | conftest$ac_exeext conftest.$ac_ext | |
25875 | fi | |
25876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 | |
25877 | $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } | |
25878 | if test $gcc_cv_math_inline_builtin_fabsl = yes; then | |
25879 | ||
25880 | cat >>confdefs.h <<_ACEOF | |
25881 | #define HAVE_INLINE_BUILTIN_FABSL 1 | |
25882 | _ACEOF | |
25883 | ||
25884 | fi | |
25885 | fi | |
25886 | ||
ad238e4f FXC |
25887 | # Check whether the system has a working stat() |
25888 | ||
5213506e RW |
25889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
25890 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
22e05272 | 25891 | if ${libgfor_cv_have_working_stat+:} false; then : |
5213506e | 25892 | $as_echo_n "(cached) " >&6 |
ad238e4f FXC |
25893 | else |
25894 | ||
5213506e | 25895 | if test "$cross_compiling" = yes; then : |
ad238e4f FXC |
25896 | |
25897 | case "${target}" in | |
6d26724a RW |
25898 | *mingw*) libgfor_cv_have_working_stat=no ;; |
25899 | *) libgfor_cv_have_working_stat=yes;; | |
ad238e4f FXC |
25900 | esac |
25901 | else | |
5213506e | 25902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad238e4f FXC |
25903 | /* end confdefs.h. */ |
25904 | ||
25905 | #include <stdio.h> | |
25906 | #include <sys/types.h> | |
25907 | #include <sys/stat.h> | |
25908 | #include <unistd.h> | |
25909 | ||
25910 | int main () | |
25911 | { | |
25912 | FILE *f, *g; | |
25913 | struct stat st1, st2; | |
25914 | ||
25915 | f = fopen ("foo", "w"); | |
25916 | g = fopen ("bar", "w"); | |
25917 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
25918 | return 1; | |
25919 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
25920 | return 1; | |
25921 | fclose(f); | |
25922 | fclose(g); | |
25923 | return 0; | |
25924 | } | |
25925 | _ACEOF | |
5213506e | 25926 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 25927 | libgfor_cv_have_working_stat=yes |
ad238e4f | 25928 | else |
5213506e | 25929 | libgfor_cv_have_working_stat=no |
ad238e4f | 25930 | fi |
5213506e RW |
25931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25932 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
ad238e4f | 25933 | fi |
5213506e | 25934 | |
ad238e4f | 25935 | fi |
5213506e RW |
25936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
25937 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6d26724a | 25938 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
ad238e4f | 25939 | |
5213506e | 25940 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
ad238e4f FXC |
25941 | |
25942 | fi | |
25943 | ||
db8092dc FXC |
25944 | # Check whether __mingw_snprintf() is present |
25945 | ||
5213506e RW |
25946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
25947 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
22e05272 | 25948 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : |
5213506e | 25949 | $as_echo_n "(cached) " >&6 |
db8092dc FXC |
25950 | else |
25951 | ||
25952 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25953 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db8092dc | 25954 | fi |
5213506e | 25955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db8092dc FXC |
25956 | /* end confdefs.h. */ |
25957 | ||
25958 | #include <stdio.h> | |
25959 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
25960 | ||
25961 | int | |
25962 | main () | |
25963 | { | |
25964 | ||
25965 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
25966 | ||
25967 | ; | |
25968 | return 0; | |
25969 | } | |
25970 | _ACEOF | |
5213506e | 25971 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 25972 | eval "libgfor_cv_have_mingw_snprintf=yes" |
db8092dc | 25973 | else |
5213506e | 25974 | eval "libgfor_cv_have_mingw_snprintf=no" |
db8092dc | 25975 | fi |
5213506e RW |
25976 | rm -f core conftest.err conftest.$ac_objext \ |
25977 | conftest$ac_exeext conftest.$ac_ext | |
db8092dc FXC |
25978 | |
25979 | fi | |
5213506e RW |
25980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
25981 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6d26724a | 25982 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
db8092dc | 25983 | |
5213506e | 25984 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
db8092dc FXC |
25985 | |
25986 | fi | |
25987 | ||
25988 | ||
87e6d9dc TB |
25989 | # Check whether libquadmath should be used |
25990 | # Check whether --enable-libquadmath-support was given. | |
25991 | if test "${enable_libquadmath_support+set}" = set; then : | |
25992 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
25993 | else | |
25994 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
25995 | fi | |
25996 | ||
25997 | enable_libquadmath_support= | |
25998 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
25999 | enable_libquadmath_support=no | |
26000 | fi | |
26001 | ||
26002 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
1ec601bf FXC |
26003 | |
26004 | LIBQUADSPEC= | |
87e6d9dc TB |
26005 | |
26006 | if test "x$enable_libquadmath_support" != xno; then | |
26007 | ||
1ec601bf FXC |
26008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
26009 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
22e05272 | 26010 | if ${libgfor_cv_have_float128+:} false; then : |
1ec601bf FXC |
26011 | $as_echo_n "(cached) " >&6 |
26012 | else | |
26013 | ||
69eb61d4 TB |
26014 | if test x$gcc_no_link = xyes; then |
26015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1ec601bf FXC |
26016 | /* end confdefs.h. */ |
26017 | ||
69eb61d4 TB |
26018 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
26019 | ||
26020 | __float128 foo (__float128 x) | |
26021 | { | |
26022 | ||
26023 | __complex128 z1, z2; | |
26024 | ||
26025 | z1 = x; | |
26026 | z2 = x / 7.Q; | |
26027 | z2 /= z1; | |
26028 | ||
26029 | return (__float128) z2; | |
26030 | } | |
26031 | ||
26032 | __float128 bar (__float128 x) | |
26033 | { | |
26034 | return x * __builtin_huge_valq (); | |
26035 | } | |
1ec601bf FXC |
26036 | |
26037 | int | |
26038 | main () | |
26039 | { | |
26040 | ||
69eb61d4 TB |
26041 | foo (1.2Q); |
26042 | bar (1.2Q); | |
1ec601bf | 26043 | |
69eb61d4 TB |
26044 | ; |
26045 | return 0; | |
26046 | } | |
26047 | _ACEOF | |
26048 | if ac_fn_c_try_compile "$LINENO"; then : | |
1ec601bf | 26049 | |
69eb61d4 | 26050 | libgfor_cv_have_float128=yes |
1ec601bf | 26051 | |
69eb61d4 TB |
26052 | else |
26053 | ||
26054 | libgfor_cv_have_float128=no | |
26055 | ||
26056 | fi | |
26057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26058 | else | |
26059 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26060 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
69eb61d4 TB |
26061 | fi |
26062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26063 | /* end confdefs.h. */ | |
26064 | ||
26065 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
26066 | ||
26067 | __float128 foo (__float128 x) | |
26068 | { | |
26069 | ||
26070 | __complex128 z1, z2; | |
26071 | ||
26072 | z1 = x; | |
26073 | z2 = x / 7.Q; | |
26074 | z2 /= z1; | |
26075 | ||
26076 | return (__float128) z2; | |
26077 | } | |
26078 | ||
26079 | __float128 bar (__float128 x) | |
26080 | { | |
26081 | return x * __builtin_huge_valq (); | |
26082 | } | |
26083 | ||
26084 | int | |
26085 | main () | |
26086 | { | |
26087 | ||
26088 | foo (1.2Q); | |
26089 | bar (1.2Q); | |
1ec601bf FXC |
26090 | |
26091 | ; | |
26092 | return 0; | |
26093 | } | |
26094 | _ACEOF | |
26095 | if ac_fn_c_try_link "$LINENO"; then : | |
69eb61d4 TB |
26096 | |
26097 | libgfor_cv_have_float128=yes | |
26098 | ||
1ec601bf | 26099 | else |
69eb61d4 TB |
26100 | |
26101 | libgfor_cv_have_float128=no | |
26102 | ||
1ec601bf FXC |
26103 | fi |
26104 | rm -f core conftest.err conftest.$ac_objext \ | |
26105 | conftest$ac_exeext conftest.$ac_ext | |
69eb61d4 | 26106 | fi |
1ec601bf FXC |
26107 | fi |
26108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
26109 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
26110 | ||
26111 | if test "x$libgfor_cv_have_float128" = xyes; then | |
26112 | ||
26113 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
26114 | ||
26115 | ||
26116 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
828012a5 RO |
26117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
26118 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
22e05272 | 26119 | if ${libgfor_cv_have_as_needed+:} false; then : |
1ec601bf FXC |
26120 | $as_echo_n "(cached) " >&6 |
26121 | else | |
26122 | ||
828012a5 RO |
26123 | # Test for native Solaris options first. |
26124 | # No whitespace after -z to pass it through -Wl. | |
26125 | libgfor_cv_as_needed_option="-zignore" | |
26126 | libgfor_cv_no_as_needed_option="-zrecord" | |
1ec601bf | 26127 | save_LDFLAGS="$LDFLAGS" |
828012a5 | 26128 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" |
1ec601bf FXC |
26129 | libgfor_cv_have_as_needed=no |
26130 | ||
26131 | ac_c_werror_flag=yes | |
26132 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26133 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1ec601bf FXC |
26134 | fi |
26135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26136 | /* end confdefs.h. */ | |
26137 | ||
26138 | int | |
26139 | main () | |
26140 | { | |
26141 | ||
26142 | ; | |
26143 | return 0; | |
26144 | } | |
26145 | _ACEOF | |
26146 | if ac_fn_c_try_link "$LINENO"; then : | |
26147 | libgfor_cv_have_as_needed=yes | |
26148 | else | |
26149 | libgfor_cv_have_as_needed=no | |
26150 | fi | |
26151 | rm -f core conftest.err conftest.$ac_objext \ | |
26152 | conftest$ac_exeext conftest.$ac_ext | |
26153 | LDFLAGS="$save_LDFLAGS" | |
828012a5 RO |
26154 | if test "x$libgfor_cv_have_as_needed" = xno; then |
26155 | libgfor_cv_as_needed_option="--as-needed" | |
26156 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
26157 | save_LDFLAGS="$LDFLAGS" | |
26158 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
26159 | libgfor_cv_have_as_needed=no | |
26160 | ||
26161 | ac_c_werror_flag=yes | |
26162 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26163 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
828012a5 RO |
26164 | fi |
26165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26166 | /* end confdefs.h. */ | |
26167 | ||
26168 | int | |
26169 | main () | |
26170 | { | |
26171 | ||
26172 | ; | |
26173 | return 0; | |
26174 | } | |
26175 | _ACEOF | |
26176 | if ac_fn_c_try_link "$LINENO"; then : | |
26177 | libgfor_cv_have_as_needed=yes | |
26178 | else | |
26179 | libgfor_cv_have_as_needed=no | |
26180 | fi | |
26181 | rm -f core conftest.err conftest.$ac_objext \ | |
26182 | conftest$ac_exeext conftest.$ac_ext | |
26183 | LDFLAGS="$save_LDFLAGS" | |
26184 | fi | |
1ec601bf FXC |
26185 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
26186 | ||
26187 | fi | |
26188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
26189 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
26190 | ||
26191 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
828012a5 | 26192 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
1ec601bf FXC |
26193 | else |
26194 | LIBQUADSPEC="-lquadmath" | |
26195 | fi | |
26196 | if test -f ../libquadmath/libquadmath.la; then | |
26197 | LIBQUADLIB=../libquadmath/libquadmath.la | |
26198 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
26199 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
26200 | else | |
26201 | LIBQUADLIB="-lquadmath" | |
26202 | LIBQUADLIB_DEP= | |
26203 | LIBQUADINCLUDE= | |
26204 | fi | |
26205 | fi | |
87e6d9dc TB |
26206 | else |
26207 | # for --disable-quadmath | |
26208 | LIBQUADLIB= | |
26209 | LIBQUADLIB_DEP= | |
26210 | LIBQUADINCLUDE= | |
26211 | fi | |
1ec601bf FXC |
26212 | |
26213 | ||
26214 | ||
26215 | ||
26216 | ||
26217 | ||
26218 | if test "x$libgfor_cv_have_float128" = xyes; then | |
26219 | LIBGFOR_BUILD_QUAD_TRUE= | |
26220 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
26221 | else | |
26222 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
26223 | LIBGFOR_BUILD_QUAD_FALSE= | |
26224 | fi | |
26225 | ||
26226 | ||
26227 | ||
944b8b35 | 26228 | # Check for GNU libc feenableexcept |
5213506e RW |
26229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
26230 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
22e05272 | 26231 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
5213506e | 26232 | $as_echo_n "(cached) " >&6 |
944b8b35 FXC |
26233 | else |
26234 | ac_check_lib_save_LIBS=$LIBS | |
26235 | LIBS="-lm $LIBS" | |
26236 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26237 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
944b8b35 | 26238 | fi |
5213506e | 26239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
944b8b35 FXC |
26240 | /* end confdefs.h. */ |
26241 | ||
5213506e RW |
26242 | /* Override any GCC internal prototype to avoid an error. |
26243 | Use char because int might match the return type of a GCC | |
26244 | builtin and then its argument prototype would still apply. */ | |
944b8b35 FXC |
26245 | #ifdef __cplusplus |
26246 | extern "C" | |
26247 | #endif | |
944b8b35 FXC |
26248 | char feenableexcept (); |
26249 | int | |
26250 | main () | |
26251 | { | |
5213506e | 26252 | return feenableexcept (); |
944b8b35 FXC |
26253 | ; |
26254 | return 0; | |
26255 | } | |
26256 | _ACEOF | |
5213506e | 26257 | if ac_fn_c_try_link "$LINENO"; then : |
944b8b35 FXC |
26258 | ac_cv_lib_m_feenableexcept=yes |
26259 | else | |
5213506e | 26260 | ac_cv_lib_m_feenableexcept=no |
944b8b35 | 26261 | fi |
5213506e RW |
26262 | rm -f core conftest.err conftest.$ac_objext \ |
26263 | conftest$ac_exeext conftest.$ac_ext | |
944b8b35 FXC |
26264 | LIBS=$ac_check_lib_save_LIBS |
26265 | fi | |
5213506e RW |
26266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
26267 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
22e05272 | 26268 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
944b8b35 | 26269 | have_feenableexcept=yes |
5213506e | 26270 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
3b14f664 FXC |
26271 | |
26272 | fi | |
26273 | ||
3b14f664 | 26274 | |
5c30094f | 26275 | # At least for glibc, clock_gettime is in librt. But don't |
2aadeae2 JB |
26276 | # pull that in if it still doesn't give us the function we want. This |
26277 | # test is copied from libgomp, and modified to not link in -lrt as | |
26278 | # libgfortran calls clock_gettime via a weak reference if it's found | |
26279 | # in librt. | |
deb9dd74 | 26280 | if test "$ac_cv_func_clock_gettime" = no; then |
b6e7a3d1 JB |
26281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
26282 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 26283 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
b6e7a3d1 JB |
26284 | $as_echo_n "(cached) " >&6 |
26285 | else | |
26286 | ac_check_lib_save_LIBS=$LIBS | |
26287 | LIBS="-lrt $LIBS" | |
26288 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26289 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b6e7a3d1 JB |
26290 | fi |
26291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26292 | /* end confdefs.h. */ | |
26293 | ||
26294 | /* Override any GCC internal prototype to avoid an error. | |
26295 | Use char because int might match the return type of a GCC | |
26296 | builtin and then its argument prototype would still apply. */ | |
26297 | #ifdef __cplusplus | |
26298 | extern "C" | |
26299 | #endif | |
26300 | char clock_gettime (); | |
26301 | int | |
26302 | main () | |
26303 | { | |
26304 | return clock_gettime (); | |
26305 | ; | |
26306 | return 0; | |
26307 | } | |
26308 | _ACEOF | |
26309 | if ac_fn_c_try_link "$LINENO"; then : | |
26310 | ac_cv_lib_rt_clock_gettime=yes | |
26311 | else | |
26312 | ac_cv_lib_rt_clock_gettime=no | |
26313 | fi | |
26314 | rm -f core conftest.err conftest.$ac_objext \ | |
26315 | conftest$ac_exeext conftest.$ac_ext | |
26316 | LIBS=$ac_check_lib_save_LIBS | |
26317 | fi | |
26318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
26319 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 26320 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
b6e7a3d1 | 26321 | |
2aadeae2 | 26322 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
b6e7a3d1 JB |
26323 | |
26324 | fi | |
26325 | ||
26326 | fi | |
26327 | ||
5213506e | 26328 | # Check for SysV fpsetmask |
3b14f664 | 26329 | |
5213506e RW |
26330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
26331 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
22e05272 | 26332 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
5213506e RW |
26333 | $as_echo_n "(cached) " >&6 |
26334 | else | |
3b14f664 | 26335 | |
5213506e | 26336 | if test x$gcc_no_link = xyes; then |
22e05272 | 26337 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
26338 | fi |
26339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26340 | /* end confdefs.h. */ | |
3b14f664 | 26341 | |
5213506e RW |
26342 | #if HAVE_FLOATINGPOINT_H |
26343 | # include <floatingpoint.h> | |
26344 | #endif /* HAVE_FLOATINGPOINT_H */ | |
26345 | #if HAVE_IEEEFP_H | |
26346 | # include <ieeefp.h> | |
26347 | #endif /* HAVE_IEEEFP_H */ | |
3b14f664 FXC |
26348 | int |
26349 | main () | |
26350 | { | |
5213506e | 26351 | fpsetmask(0); |
3b14f664 FXC |
26352 | ; |
26353 | return 0; | |
26354 | } | |
26355 | _ACEOF | |
5213506e RW |
26356 | if ac_fn_c_try_link "$LINENO"; then : |
26357 | eval "libgfor_cv_have_fpsetmask=yes" | |
3b14f664 | 26358 | else |
5213506e RW |
26359 | eval "libgfor_cv_have_fpsetmask=no" |
26360 | fi | |
26361 | rm -f core conftest.err conftest.$ac_objext \ | |
26362 | conftest$ac_exeext conftest.$ac_ext | |
3b14f664 | 26363 | |
3b14f664 | 26364 | fi |
5213506e RW |
26365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
26366 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
26367 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
1b9fef3e | 26368 | have_fpsetmask=yes |
5213506e RW |
26369 | |
26370 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
26371 | ||
26372 | fi | |
26373 | ||
6faf4751 | 26374 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
67c4c164 | 26375 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26376 | #include <ieeefp.h> |
67c4c164 | 26377 | #endif |
6faf4751 FXC |
26378 | #include <math.h> |
26379 | ||
7ae346c3 | 26380 | " |
22e05272 | 26381 | if test "x$ac_cv_type_fp_except" = xyes; then : |
7ae346c3 TB |
26382 | |
26383 | cat >>confdefs.h <<_ACEOF | |
26384 | #define HAVE_FP_EXCEPT 1 | |
26385 | _ACEOF | |
26386 | ||
26387 | ||
26388 | fi | |
6faf4751 | 26389 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
67c4c164 | 26390 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26391 | #include <ieeefp.h> |
67c4c164 | 26392 | #endif |
6faf4751 FXC |
26393 | #include <math.h> |
26394 | ||
7ae346c3 | 26395 | " |
22e05272 | 26396 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
7ae346c3 TB |
26397 | |
26398 | cat >>confdefs.h <<_ACEOF | |
26399 | #define HAVE_FP_EXCEPT_T 1 | |
26400 | _ACEOF | |
26401 | ||
26402 | ||
82a4f54c TB |
26403 | fi |
26404 | ||
6faf4751 | 26405 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
67c4c164 | 26406 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26407 | #include <ieeefp.h> |
67c4c164 | 26408 | #endif |
6faf4751 FXC |
26409 | #include <math.h> |
26410 | ||
82a4f54c | 26411 | " |
22e05272 | 26412 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
82a4f54c TB |
26413 | |
26414 | cat >>confdefs.h <<_ACEOF | |
26415 | #define HAVE_FP_RND 1 | |
26416 | _ACEOF | |
26417 | ||
26418 | ||
26419 | fi | |
6faf4751 | 26420 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
67c4c164 | 26421 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26422 | #include <ieeefp.h> |
67c4c164 | 26423 | #endif |
6faf4751 FXC |
26424 | #include <math.h> |
26425 | ||
82a4f54c | 26426 | " |
22e05272 | 26427 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
82a4f54c TB |
26428 | |
26429 | cat >>confdefs.h <<_ACEOF | |
26430 | #define HAVE_FP_RND_T 1 | |
26431 | _ACEOF | |
26432 | ||
26433 | ||
7ae346c3 TB |
26434 | fi |
26435 | ||
5213506e | 26436 | |
de51fc1b RO |
26437 | # Check whether we have fpsetsticky or fpresetsticky |
26438 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
22e05272 | 26439 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
de51fc1b RO |
26440 | have_fpsetsticky=yes |
26441 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
26442 | ||
26443 | fi | |
26444 | ||
26445 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
22e05272 | 26446 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
de51fc1b RO |
26447 | have_fpresetsticky=yes |
26448 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
26449 | ||
26450 | fi | |
26451 | ||
26452 | ||
5213506e RW |
26453 | # Check for AIX fp_trap and fp_enable |
26454 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
22e05272 | 26455 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
5213506e RW |
26456 | have_fp_trap=yes |
26457 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
26458 | ||
3b14f664 | 26459 | fi |
5213506e RW |
26460 | |
26461 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
22e05272 | 26462 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
3b14f664 | 26463 | have_fp_enable=yes |
5213506e | 26464 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
3b14f664 FXC |
26465 | |
26466 | fi | |
26467 | ||
26468 | ||
7b32a8f6 UB |
26469 | # Check if _SOFT_FLOAT is defined |
26470 | ||
26471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
26472 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
22e05272 | 26473 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
7b32a8f6 UB |
26474 | $as_echo_n "(cached) " >&6 |
26475 | else | |
26476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26477 | /* end confdefs.h. */ | |
26478 | ||
26479 | int | |
26480 | main () | |
26481 | { | |
26482 | ||
26483 | #ifdef _SOFT_FLOAT | |
26484 | int ok; | |
26485 | #else | |
26486 | choke me | |
26487 | #endif | |
26488 | ||
26489 | ; | |
26490 | return 0; | |
26491 | } | |
26492 | _ACEOF | |
26493 | if ac_fn_c_try_compile "$LINENO"; then : | |
26494 | ac_cv_defined__SOFT_FLOAT=yes | |
26495 | else | |
26496 | ac_cv_defined__SOFT_FLOAT=no | |
26497 | fi | |
26498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26499 | fi | |
26500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
26501 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
26502 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
26503 | have_soft_float=yes | |
26504 | fi | |
26505 | ||
944b8b35 FXC |
26506 | # Runs configure.host to set up necessary host-dependent shell variables. |
26507 | # We then display a message about it, and propagate them through the | |
26508 | # build chain. | |
26509 | . ${srcdir}/configure.host | |
5213506e RW |
26510 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
26511 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8b198102 FXC |
26512 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
26513 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
944b8b35 FXC |
26514 | FPU_HOST_HEADER=config/${fpu_host}.h |
26515 | ||
26516 | ||
8b198102 FXC |
26517 | # Whether we will build the IEEE modules |
26518 | if test x${ieee_support} = xyes; then | |
26519 | IEEE_SUPPORT_TRUE= | |
26520 | IEEE_SUPPORT_FALSE='#' | |
26521 | else | |
26522 | IEEE_SUPPORT_TRUE='#' | |
26523 | IEEE_SUPPORT_FALSE= | |
26524 | fi | |
26525 | ||
26526 | ||
26527 | ||
9fc77574 KK |
26528 | # Some targets require additional compiler options for IEEE compatibility. |
26529 | IEEE_FLAGS="${ieee_flags}" | |
26530 | ||
26531 | ||
23e6d4a5 JB |
26532 | |
26533 | # Check for POSIX getpwuid_r | |
26534 | # | |
26535 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
26536 | # arguments, and another one with 4 arguments used by at least HP-UX | |
26537 | # 10.2. | |
26538 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
26539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
26540 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
22e05272 | 26541 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
23e6d4a5 JB |
26542 | $as_echo_n "(cached) " >&6 |
26543 | else | |
26544 | ||
26545 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26546 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
23e6d4a5 JB |
26547 | fi |
26548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26549 | /* end confdefs.h. */ | |
26550 | ||
26551 | #include <stdio.h> | |
26552 | #include <sys/types.h> | |
26553 | #include <pwd.h> | |
26554 | int | |
26555 | main () | |
26556 | { | |
26557 | ||
26558 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
26559 | ||
26560 | ; | |
26561 | return 0; | |
26562 | } | |
26563 | _ACEOF | |
26564 | if ac_fn_c_try_link "$LINENO"; then : | |
26565 | libgfor_cv_posix_getpwuid_r="yes" | |
26566 | else | |
26567 | libgfor_cv_posix_getpwuid_r="no" | |
26568 | fi | |
26569 | rm -f core conftest.err conftest.$ac_objext \ | |
26570 | conftest$ac_exeext conftest.$ac_ext | |
26571 | fi | |
26572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
26573 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
26574 | fi | |
26575 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
26576 | ||
26577 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
26578 | ||
26579 | fi | |
26580 | ||
26581 | ||
7d7b8bfe RH |
26582 | # Check out attribute support. |
26583 | ||
5213506e RW |
26584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
26585 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 26586 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
5213506e | 26587 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
26588 | else |
26589 | ||
26590 | save_CFLAGS="$CFLAGS" | |
26591 | CFLAGS="$CFLAGS -Werror" | |
5213506e | 26592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
26593 | /* end confdefs.h. */ |
26594 | void __attribute__((visibility("hidden"))) foo(void) { } | |
26595 | int | |
26596 | main () | |
26597 | { | |
26598 | ||
26599 | ; | |
26600 | return 0; | |
26601 | } | |
26602 | _ACEOF | |
5213506e | 26603 | if ac_fn_c_try_compile "$LINENO"; then : |
6d26724a | 26604 | libgfor_cv_have_attribute_visibility=yes |
7d7b8bfe | 26605 | else |
5213506e | 26606 | libgfor_cv_have_attribute_visibility=no |
7d7b8bfe | 26607 | fi |
5213506e | 26608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d7b8bfe RH |
26609 | CFLAGS="$save_CFLAGS" |
26610 | fi | |
5213506e RW |
26611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
26612 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6d26724a | 26613 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7d7b8bfe | 26614 | |
5213506e | 26615 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7d7b8bfe RH |
26616 | |
26617 | fi | |
26618 | ||
5213506e RW |
26619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
26620 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 26621 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
5213506e | 26622 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
26623 | else |
26624 | ||
f02d008e | 26625 | if test x$gcc_no_link = xyes; then |
22e05272 | 26626 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 26627 | fi |
5213506e | 26628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
26629 | /* end confdefs.h. */ |
26630 | ||
7d7b8bfe | 26631 | void foo(void) { } |
16a314a9 | 26632 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
26633 | int |
26634 | main () | |
26635 | { | |
26636 | bar(); | |
26637 | ; | |
26638 | return 0; | |
26639 | } | |
26640 | _ACEOF | |
5213506e | 26641 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 26642 | libgfor_cv_have_attribute_alias=yes |
7d7b8bfe | 26643 | else |
5213506e | 26644 | libgfor_cv_have_attribute_alias=no |
7d7b8bfe | 26645 | fi |
5213506e RW |
26646 | rm -f core conftest.err conftest.$ac_objext \ |
26647 | conftest$ac_exeext conftest.$ac_ext | |
7d7b8bfe | 26648 | fi |
5213506e RW |
26649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
26650 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6d26724a | 26651 | if test $libgfor_cv_have_attribute_alias = yes; then |
7d7b8bfe | 26652 | |
5213506e | 26653 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7d7b8bfe RH |
26654 | |
26655 | fi | |
26656 | ||
0536d5b3 | 26657 | # Check out atomic builtins support. |
5e805e44 | 26658 | |
0536d5b3 JB |
26659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
26660 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
26661 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
5213506e | 26662 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
26663 | else |
26664 | ||
26665 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26666 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5e805e44 | 26667 | fi |
5213506e | 26668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5e805e44 JJ |
26669 | /* end confdefs.h. */ |
26670 | int foovar = 0; | |
26671 | int | |
26672 | main () | |
26673 | { | |
26674 | ||
0536d5b3 JB |
26675 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
26676 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
5e805e44 JJ |
26677 | ; |
26678 | return 0; | |
26679 | } | |
26680 | _ACEOF | |
5213506e | 26681 | if ac_fn_c_try_link "$LINENO"; then : |
0536d5b3 | 26682 | libgfor_cv_have_atomic_fetch_add=yes |
5e805e44 | 26683 | else |
0536d5b3 | 26684 | libgfor_cv_have_atomic_fetch_add=no |
5e805e44 | 26685 | fi |
5213506e RW |
26686 | rm -f core conftest.err conftest.$ac_objext \ |
26687 | conftest$ac_exeext conftest.$ac_ext | |
5e805e44 | 26688 | fi |
0536d5b3 JB |
26689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
26690 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
26691 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
5e805e44 | 26692 | |
0536d5b3 | 26693 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
5e805e44 JJ |
26694 | |
26695 | fi | |
26696 | ||
6a822a74 FXC |
26697 | # Check out #pragma weak. |
26698 | ||
26699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
26700 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
22e05272 | 26701 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
6a822a74 FXC |
26702 | $as_echo_n "(cached) " >&6 |
26703 | else | |
26704 | ||
26705 | gfor_save_CFLAGS="$CFLAGS" | |
26706 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
26707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26708 | /* end confdefs.h. */ | |
26709 | ||
26710 | void foo (void); | |
26711 | #pragma weak foo | |
26712 | ||
26713 | int | |
26714 | main () | |
26715 | { | |
26716 | if (foo) foo (); | |
26717 | ; | |
26718 | return 0; | |
26719 | } | |
26720 | _ACEOF | |
26721 | if ac_fn_c_try_compile "$LINENO"; then : | |
26722 | libgfor_cv_have_pragma_weak=yes | |
26723 | else | |
26724 | libgfor_cv_have_pragma_weak=no | |
26725 | fi | |
26726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26727 | fi | |
26728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
26729 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
26730 | if test $libgfor_cv_have_pragma_weak = yes; then | |
26731 | ||
26732 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
26733 | ||
26734 | fi | |
26735 | case "$host" in | |
26736 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
26737 | ||
26738 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
26739 | ||
26740 | ;; | |
26741 | esac | |
26742 | ||
e7854993 | 26743 | # Check out weakref support. |
5e805e44 | 26744 | |
e7854993 FXC |
26745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
26746 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
22e05272 | 26747 | if ${libgfor_cv_have_weakref+:} false; then : |
5213506e | 26748 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
26749 | else |
26750 | ||
e7854993 FXC |
26751 | save_CFLAGS="$CFLAGS" |
26752 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
26753 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26754 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e7854993 FXC |
26755 | fi |
26756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5e805e44 | 26757 | /* end confdefs.h. */ |
de15ea94 | 26758 | |
e7854993 | 26759 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
de15ea94 | 26760 | |
5e805e44 JJ |
26761 | int |
26762 | main () | |
26763 | { | |
e7854993 | 26764 | return (mytoto != 0); |
5e805e44 JJ |
26765 | ; |
26766 | return 0; | |
26767 | } | |
26768 | _ACEOF | |
e7854993 FXC |
26769 | if ac_fn_c_try_link "$LINENO"; then : |
26770 | libgfor_cv_have_weakref=yes | |
5e805e44 | 26771 | else |
e7854993 | 26772 | libgfor_cv_have_weakref=no |
5e805e44 | 26773 | fi |
e7854993 FXC |
26774 | rm -f core conftest.err conftest.$ac_objext \ |
26775 | conftest$ac_exeext conftest.$ac_ext | |
26776 | CFLAGS="$save_CFLAGS" | |
5e805e44 | 26777 | fi |
e7854993 FXC |
26778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
26779 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
26780 | if test $libgfor_cv_have_weakref = yes; then | |
5e805e44 | 26781 | |
e7854993 | 26782 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
5e805e44 JJ |
26783 | |
26784 | fi | |
26785 | ||
10c682a0 FXC |
26786 | # Various other checks on target |
26787 | ||
5213506e RW |
26788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
26789 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
22e05272 | 26790 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
5213506e | 26791 | $as_echo_n "(cached) " >&6 |
10c682a0 FXC |
26792 | else |
26793 | ||
5213506e | 26794 | if test "$cross_compiling" = yes; then : |
10c682a0 FXC |
26795 | |
26796 | case "${target}" in | |
6d26724a RW |
26797 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
26798 | *) libgfor_cv_have_unlink_open_file=yes;; | |
10c682a0 FXC |
26799 | esac |
26800 | else | |
5213506e | 26801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10c682a0 FXC |
26802 | /* end confdefs.h. */ |
26803 | ||
26804 | #include <errno.h> | |
26805 | #include <fcntl.h> | |
26806 | #include <unistd.h> | |
26807 | #include <sys/stat.h> | |
26808 | ||
26809 | int main () | |
26810 | { | |
26811 | int fd; | |
26812 | ||
42dfafa9 | 26813 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
10c682a0 FXC |
26814 | if (fd <= 0) |
26815 | return 0; | |
26816 | if (unlink ("testfile") == -1) | |
26817 | return 1; | |
26818 | write (fd, "This is a test\n", 15); | |
26819 | close (fd); | |
26820 | ||
42dfafa9 | 26821 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
10c682a0 FXC |
26822 | return 0; |
26823 | else | |
26824 | return 1; | |
26825 | } | |
26826 | _ACEOF | |
5213506e | 26827 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 26828 | libgfor_cv_have_unlink_open_file=yes |
10c682a0 | 26829 | else |
5213506e | 26830 | libgfor_cv_have_unlink_open_file=no |
10c682a0 | 26831 | fi |
5213506e RW |
26832 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26833 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10c682a0 | 26834 | fi |
5213506e | 26835 | |
10c682a0 | 26836 | fi |
5213506e RW |
26837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
26838 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6d26724a | 26839 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
10c682a0 | 26840 | |
5213506e | 26841 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
10c682a0 FXC |
26842 | |
26843 | fi | |
26844 | ||
3c127520 FXC |
26845 | # Check whether line terminator is LF or CRLF |
26846 | ||
5213506e RW |
26847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
26848 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
22e05272 | 26849 | if ${libgfor_cv_have_crlf+:} false; then : |
5213506e | 26850 | $as_echo_n "(cached) " >&6 |
3c127520 FXC |
26851 | else |
26852 | ||
5213506e | 26853 | if test "$cross_compiling" = yes; then : |
3c127520 FXC |
26854 | |
26855 | case "${target}" in | |
6d26724a RW |
26856 | *mingw*) libgfor_cv_have_crlf=yes ;; |
26857 | *) libgfor_cv_have_crlf=no;; | |
3c127520 FXC |
26858 | esac |
26859 | else | |
5213506e | 26860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3c127520 FXC |
26861 | /* end confdefs.h. */ |
26862 | ||
26863 | /* This test program should exit with status 0 if system uses a CRLF as | |
26864 | line terminator, and status 1 otherwise. | |
26865 | Since it is used to check for mingw systems, and should return 0 in any | |
26866 | other case, in case of a failure we will not use CRLF. */ | |
26867 | #include <sys/stat.h> | |
26868 | #include <stdlib.h> | |
26869 | #include <fcntl.h> | |
26870 | #include <stdio.h> | |
26871 | ||
26872 | int main () | |
26873 | { | |
26874 | #ifndef O_BINARY | |
26875 | exit(1); | |
26876 | #else | |
26877 | int fd, bytes; | |
26878 | char buff[5]; | |
26879 | ||
26880 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
26881 | if (fd < 0) | |
26882 | exit(1); | |
26883 | if (write (fd, "\n", 1) < 0) | |
26884 | perror ("write"); | |
26885 | ||
26886 | close (fd); | |
26887 | ||
26888 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
26889 | exit(1); | |
26890 | bytes = read (fd, buff, 5); | |
26891 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
26892 | exit(0); | |
26893 | else | |
26894 | exit(1); | |
26895 | #endif | |
26896 | } | |
26897 | _ACEOF | |
5213506e | 26898 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 26899 | libgfor_cv_have_crlf=yes |
3c127520 | 26900 | else |
5213506e | 26901 | libgfor_cv_have_crlf=no |
3c127520 | 26902 | fi |
5213506e RW |
26903 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26904 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3c127520 | 26905 | fi |
5213506e | 26906 | |
3c127520 | 26907 | fi |
5213506e RW |
26908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
26909 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6d26724a | 26910 | if test x"$libgfor_cv_have_crlf" = xyes; then |
3c127520 | 26911 | |
5213506e | 26912 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
3c127520 FXC |
26913 | |
26914 | fi | |
26915 | ||
31cfd832 TK |
26916 | # Check whether we support AVX extensions |
26917 | ||
26918 | ac_save_CFLAGS="$CFLAGS" | |
26919 | CFLAGS="-O2 -mavx" | |
26920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26921 | /* end confdefs.h. */ | |
26922 | ||
26923 | void _mm256_zeroall (void) | |
26924 | { | |
26925 | __builtin_ia32_vzeroall (); | |
26926 | } | |
26927 | int | |
26928 | main () | |
26929 | { | |
26930 | ||
26931 | ; | |
26932 | return 0; | |
26933 | } | |
26934 | _ACEOF | |
26935 | if ac_fn_c_try_compile "$LINENO"; then : | |
26936 | ||
26937 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
26938 | ||
26939 | fi | |
26940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26941 | CFLAGS="$ac_save_CFLAGS" | |
26942 | ||
26943 | ||
26944 | # Check wether we support AVX2 extensions | |
26945 | ||
26946 | ac_save_CFLAGS="$CFLAGS" | |
26947 | CFLAGS="-O2 -mavx2" | |
26948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26949 | /* end confdefs.h. */ | |
26950 | ||
26951 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
26952 | __v4di | |
26953 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
26954 | { | |
26955 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
26956 | } | |
26957 | int | |
26958 | main () | |
26959 | { | |
26960 | ||
26961 | ; | |
26962 | return 0; | |
26963 | } | |
26964 | _ACEOF | |
26965 | if ac_fn_c_try_compile "$LINENO"; then : | |
26966 | ||
26967 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
26968 | ||
26969 | fi | |
26970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26971 | CFLAGS="$ac_save_CFLAGS" | |
26972 | ||
26973 | ||
26974 | # Check wether we support AVX512f extensions | |
26975 | ||
26976 | ac_save_CFLAGS="$CFLAGS" | |
26977 | CFLAGS="-O2 -mavx512f" | |
26978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26979 | /* end confdefs.h. */ | |
26980 | ||
26981 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
26982 | __m512d _mm512_add (__m512d a) | |
26983 | { | |
9db0a8c2 JJ |
26984 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
26985 | /* For -m64/-mx32 also verify that code will work even if | |
26986 | the target uses call saved zmm16+ and needs to emit | |
26987 | unwind info for them (e.g. on mingw). See PR79127. */ | |
26988 | #ifdef __x86_64__ | |
26989 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
26990 | #endif | |
26991 | return b; | |
31cfd832 TK |
26992 | } |
26993 | int | |
26994 | main () | |
26995 | { | |
26996 | ||
26997 | ; | |
26998 | return 0; | |
26999 | } | |
27000 | _ACEOF | |
27001 | if ac_fn_c_try_compile "$LINENO"; then : | |
27002 | ||
27003 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
27004 | ||
27005 | fi | |
27006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27007 | CFLAGS="$ac_save_CFLAGS" | |
27008 | ||
27009 | ||
1d5cf7fc TK |
27010 | # Check for FMA3 extensions |
27011 | ||
27012 | ac_save_CFLAGS="$CFLAGS" | |
27013 | CFLAGS="-O2 -mfma -mno-fma4" | |
27014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27015 | /* end confdefs.h. */ | |
27016 | ||
9698e1bb RO |
27017 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
27018 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
27019 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 27020 | { |
9698e1bb RO |
27021 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
27022 | (__v4sf)__B, | |
27023 | (__v4sf)__C); | |
1d5cf7fc TK |
27024 | } |
27025 | int | |
27026 | main () | |
27027 | { | |
27028 | ||
27029 | ; | |
27030 | return 0; | |
27031 | } | |
27032 | _ACEOF | |
27033 | if ac_fn_c_try_compile "$LINENO"; then : | |
27034 | ||
27035 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
27036 | ||
27037 | fi | |
27038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27039 | CFLAGS="$ac_save_CFLAGS" | |
27040 | ||
27041 | ||
27042 | # Check for FMA4 extensions | |
27043 | ||
27044 | ac_save_CFLAGS="$CFLAGS" | |
27045 | CFLAGS="-O2 -mfma4 -mno-fma" | |
27046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27047 | /* end confdefs.h. */ | |
27048 | ||
9698e1bb RO |
27049 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
27050 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
27051 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 27052 | { |
9698e1bb RO |
27053 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
27054 | (__v4sf)__B, | |
27055 | (__v4sf)__C); | |
1d5cf7fc TK |
27056 | } |
27057 | int | |
27058 | main () | |
27059 | { | |
27060 | ||
27061 | ; | |
27062 | return 0; | |
27063 | } | |
27064 | _ACEOF | |
27065 | if ac_fn_c_try_compile "$LINENO"; then : | |
27066 | ||
27067 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
27068 | ||
27069 | fi | |
27070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27071 | CFLAGS="$ac_save_CFLAGS" | |
27072 | ||
27073 | ||
27074 | # Check if AVX128 works | |
27075 | ||
27076 | ac_save_CFLAGS="$CFLAGS" | |
27077 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
27078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27079 | /* end confdefs.h. */ | |
27080 | ||
27081 | void foo() | |
27082 | { | |
27083 | } | |
27084 | int | |
27085 | main () | |
27086 | { | |
27087 | ||
27088 | ; | |
27089 | return 0; | |
27090 | } | |
27091 | _ACEOF | |
27092 | if ac_fn_c_try_compile "$LINENO"; then : | |
27093 | ||
27094 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
27095 | ||
27096 | if true; then | |
27097 | HAVE_AVX128_TRUE= | |
27098 | HAVE_AVX128_FALSE='#' | |
27099 | else | |
27100 | HAVE_AVX128_TRUE='#' | |
27101 | HAVE_AVX128_FALSE= | |
27102 | fi | |
27103 | ||
5596d26a TK |
27104 | else |
27105 | if false; then | |
27106 | HAVE_AVX128_TRUE= | |
27107 | HAVE_AVX128_FALSE='#' | |
27108 | else | |
27109 | HAVE_AVX128_TRUE='#' | |
27110 | HAVE_AVX128_FALSE= | |
27111 | fi | |
27112 | ||
1d5cf7fc TK |
27113 | fi |
27114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27115 | CFLAGS="$ac_save_CFLAGS" | |
27116 | ||
27117 | ||
3c36aa6b JJ |
27118 | # Determine what GCC version number to use in filesystem paths. |
27119 | ||
27120 | get_gcc_base_ver="cat" | |
27121 | ||
27122 | # Check whether --with-gcc-major-version-only was given. | |
27123 | if test "${with_gcc_major_version_only+set}" = set; then : | |
27124 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 27125 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
27126 | fi |
27127 | ||
27128 | fi | |
27129 | ||
27130 | ||
27131 | ||
27132 | ||
6de9cd9a DN |
27133 | cat >confcache <<\_ACEOF |
27134 | # This file is a shell script that caches the results of configure | |
27135 | # tests run on this system so they can be shared between configure | |
27136 | # scripts and configure runs, see configure's option --config-cache. | |
27137 | # It is not useful on other systems. If it contains results you don't | |
27138 | # want to keep, you may remove or edit it. | |
27139 | # | |
27140 | # config.status only pays attention to the cache file if you give it | |
27141 | # the --recheck option to rerun configure. | |
27142 | # | |
27143 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
27144 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
27145 | # following values. | |
27146 | ||
27147 | _ACEOF | |
27148 | ||
27149 | # The following way of writing the cache mishandles newlines in values, | |
27150 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 27151 | # So, we kill variables containing newlines. |
6de9cd9a DN |
27152 | # Ultrix sh set writes to stderr and can't be redirected directly, |
27153 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
27154 | ( |
27155 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
27156 | eval ac_val=\$$ac_var | |
27157 | case $ac_val in #( | |
27158 | *${as_nl}*) | |
27159 | case $ac_var in #( | |
27160 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
27161 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
27162 | esac | |
27163 | case $ac_var in #( | |
27164 | _ | IFS | as_nl) ;; #( | |
27165 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
27166 | *) { eval $ac_var=; unset $ac_var;} ;; | |
27167 | esac ;; | |
27168 | esac | |
27169 | done | |
27170 | ||
6de9cd9a | 27171 | (set) 2>&1 | |
5213506e RW |
27172 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
27173 | *${as_nl}ac_space=\ *) | |
27174 | # `set' does not quote correctly, so add quotes: double-quote | |
27175 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
27176 | sed -n \ |
27177 | "s/'/'\\\\''/g; | |
27178 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 27179 | ;; #( |
6de9cd9a DN |
27180 | *) |
27181 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 27182 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 27183 | ;; |
5213506e RW |
27184 | esac | |
27185 | sort | |
27186 | ) | | |
6de9cd9a | 27187 | sed ' |
5213506e | 27188 | /^ac_cv_env_/b end |
6de9cd9a | 27189 | t clear |
5213506e | 27190 | :clear |
6de9cd9a DN |
27191 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
27192 | t end | |
5213506e RW |
27193 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
27194 | :end' >>confcache | |
27195 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
27196 | if test -w "$cache_file"; then | |
22e05272 | 27197 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
27198 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
27199 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
27200 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
27201 | cat confcache >"$cache_file" | |
27202 | else | |
27203 | case $cache_file in #( | |
27204 | */* | ?:*) | |
27205 | mv -f confcache "$cache_file"$$ && | |
27206 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
27207 | *) | |
27208 | mv -f confcache "$cache_file" ;; | |
27209 | esac | |
27210 | fi | |
27211 | fi | |
6de9cd9a | 27212 | else |
5213506e RW |
27213 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
27214 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
27215 | fi |
27216 | fi | |
27217 | rm -f confcache | |
27218 | ||
96b8a615 AJ |
27219 | if test ${multilib} = yes; then |
27220 | multilib_arg="--enable-multilib" | |
6de9cd9a | 27221 | else |
96b8a615 | 27222 | multilib_arg= |
6de9cd9a | 27223 | fi |
6de9cd9a | 27224 | |
1ec601bf FXC |
27225 | # Write our Makefile and spec file. |
27226 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
96b8a615 | 27227 | |
6de9cd9a DN |
27228 | cat >confcache <<\_ACEOF |
27229 | # This file is a shell script that caches the results of configure | |
27230 | # tests run on this system so they can be shared between configure | |
27231 | # scripts and configure runs, see configure's option --config-cache. | |
27232 | # It is not useful on other systems. If it contains results you don't | |
27233 | # want to keep, you may remove or edit it. | |
27234 | # | |
27235 | # config.status only pays attention to the cache file if you give it | |
27236 | # the --recheck option to rerun configure. | |
27237 | # | |
27238 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
27239 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
27240 | # following values. | |
27241 | ||
27242 | _ACEOF | |
27243 | ||
27244 | # The following way of writing the cache mishandles newlines in values, | |
27245 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 27246 | # So, we kill variables containing newlines. |
6de9cd9a DN |
27247 | # Ultrix sh set writes to stderr and can't be redirected directly, |
27248 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
27249 | ( |
27250 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
27251 | eval ac_val=\$$ac_var | |
27252 | case $ac_val in #( | |
27253 | *${as_nl}*) | |
27254 | case $ac_var in #( | |
27255 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
27256 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
27257 | esac | |
27258 | case $ac_var in #( | |
27259 | _ | IFS | as_nl) ;; #( | |
27260 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
27261 | *) { eval $ac_var=; unset $ac_var;} ;; | |
27262 | esac ;; | |
27263 | esac | |
27264 | done | |
27265 | ||
6de9cd9a | 27266 | (set) 2>&1 | |
5213506e RW |
27267 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
27268 | *${as_nl}ac_space=\ *) | |
27269 | # `set' does not quote correctly, so add quotes: double-quote | |
27270 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
27271 | sed -n \ |
27272 | "s/'/'\\\\''/g; | |
27273 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 27274 | ;; #( |
6de9cd9a DN |
27275 | *) |
27276 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 27277 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 27278 | ;; |
5213506e RW |
27279 | esac | |
27280 | sort | |
27281 | ) | | |
6de9cd9a | 27282 | sed ' |
5213506e | 27283 | /^ac_cv_env_/b end |
6de9cd9a | 27284 | t clear |
5213506e | 27285 | :clear |
6de9cd9a DN |
27286 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
27287 | t end | |
5213506e RW |
27288 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
27289 | :end' >>confcache | |
27290 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
27291 | if test -w "$cache_file"; then | |
22e05272 | 27292 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
27293 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
27294 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
27295 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
27296 | cat confcache >"$cache_file" | |
27297 | else | |
27298 | case $cache_file in #( | |
27299 | */* | ?:*) | |
27300 | mv -f confcache "$cache_file"$$ && | |
27301 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
27302 | *) | |
27303 | mv -f confcache "$cache_file" ;; | |
27304 | esac | |
27305 | fi | |
27306 | fi | |
6de9cd9a | 27307 | else |
5213506e RW |
27308 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
27309 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
27310 | fi |
27311 | fi | |
27312 | rm -f confcache | |
27313 | ||
27314 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
27315 | # Let make expand exec_prefix. | |
27316 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
27317 | ||
6de9cd9a DN |
27318 | DEFS=-DHAVE_CONFIG_H |
27319 | ||
27320 | ac_libobjs= | |
27321 | ac_ltlibobjs= | |
22e05272 | 27322 | U= |
6de9cd9a DN |
27323 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
27324 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
27325 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
27326 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
27327 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
27328 | # will be set to the directory where LIBOBJS objects are built. | |
27329 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
27330 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6de9cd9a DN |
27331 | done |
27332 | LIBOBJS=$ac_libobjs | |
27333 | ||
27334 | LTLIBOBJS=$ac_ltlibobjs | |
27335 | ||
27336 | ||
b808ac33 | 27337 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
22e05272 | 27338 | as_fn_error $? "conditional \"onestep\" was never defined. |
5213506e RW |
27339 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27340 | fi | |
22e05272 JM |
27341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
27342 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
27343 | if test -n "$am_sleep_pid"; then | |
27344 | # Hide warnings about reused PIDs. | |
27345 | wait $am_sleep_pid 2>/dev/null | |
27346 | fi | |
27347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
27348 | $as_echo "done" >&6; } | |
5213506e RW |
27349 | if test -n "$EXEEXT"; then |
27350 | am__EXEEXT_TRUE= | |
27351 | am__EXEEXT_FALSE='#' | |
27352 | else | |
27353 | am__EXEEXT_TRUE='#' | |
27354 | am__EXEEXT_FALSE= | |
b808ac33 | 27355 | fi |
5213506e | 27356 | |
6de9cd9a | 27357 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 27358 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 27359 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6de9cd9a | 27360 | fi |
679c0f9a | 27361 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 27362 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 27363 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a TT |
27364 | fi |
27365 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 27366 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 27367 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a | 27368 | fi |
21be0a5a | 27369 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22e05272 | 27370 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
21be0a5a JB |
27371 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27372 | fi | |
c0e7e2bf | 27373 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
22e05272 | 27374 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
5213506e | 27375 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c0e7e2bf | 27376 | fi |
49ea7a0e | 27377 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
22e05272 | 27378 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
49ea7a0e RO |
27379 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27380 | fi | |
27381 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
22e05272 | 27382 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
49ea7a0e RO |
27383 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27384 | fi | |
ee95f928 | 27385 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
22e05272 | 27386 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
ee95f928 BS |
27387 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27388 | fi | |
66dbcf2d | 27389 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 27390 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
66dbcf2d RO |
27391 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27392 | fi | |
1ec601bf | 27393 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
22e05272 | 27394 | as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. |
1ec601bf FXC |
27395 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27396 | fi | |
8b198102 | 27397 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
22e05272 | 27398 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
8b198102 FXC |
27399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27400 | fi | |
1d5cf7fc | 27401 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 27402 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
1d5cf7fc TK |
27403 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27404 | fi | |
5596d26a | 27405 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 27406 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
5596d26a TK |
27407 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27408 | fi | |
6de9cd9a | 27409 | |
22e05272 | 27410 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 27411 | ac_write_fail=0 |
6de9cd9a DN |
27412 | ac_clean_files_save=$ac_clean_files |
27413 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
27414 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
27415 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
27416 | as_write_fail=0 | |
27417 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6de9cd9a DN |
27418 | #! $SHELL |
27419 | # Generated by $as_me. | |
27420 | # Run this file to recreate the current configuration. | |
27421 | # Compiler output produced by configure, useful for debugging | |
27422 | # configure, is in config.log if it exists. | |
27423 | ||
27424 | debug=false | |
27425 | ac_cs_recheck=false | |
27426 | ac_cs_silent=false | |
6de9cd9a | 27427 | |
5213506e RW |
27428 | SHELL=\${CONFIG_SHELL-$SHELL} |
27429 | export SHELL | |
27430 | _ASEOF | |
27431 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
27432 | ## -------------------- ## | |
27433 | ## M4sh Initialization. ## | |
27434 | ## -------------------- ## | |
27435 | ||
27436 | # Be more Bourne compatible | |
27437 | DUALCASE=1; export DUALCASE # for MKS sh | |
27438 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
27439 | emulate sh |
27440 | NULLCMD=: | |
5213506e | 27441 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
27442 | # is contrary to our usage. Disable this feature. |
27443 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
27444 | setopt NO_GLOB_SUBST |
27445 | else | |
27446 | case `(set -o) 2>/dev/null` in #( | |
27447 | *posix*) : | |
27448 | set -o posix ;; #( | |
27449 | *) : | |
27450 | ;; | |
27451 | esac | |
6de9cd9a | 27452 | fi |
6de9cd9a | 27453 | |
5213506e RW |
27454 | |
27455 | as_nl=' | |
27456 | ' | |
27457 | export as_nl | |
27458 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
27459 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
27460 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
27461 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
27462 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
27463 | # but without wasting forks for bash or zsh. | |
27464 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
27465 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27466 | as_echo='print -r --' | |
27467 | as_echo_n='print -rn --' | |
27468 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27469 | as_echo='printf %s\n' | |
27470 | as_echo_n='printf %s' | |
27471 | else | |
27472 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
27473 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
27474 | as_echo_n='/usr/ucb/echo -n' | |
27475 | else | |
27476 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
27477 | as_echo_n_body='eval | |
27478 | arg=$1; | |
27479 | case $arg in #( | |
27480 | *"$as_nl"*) | |
27481 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
27482 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
27483 | esac; | |
27484 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
27485 | ' | |
27486 | export as_echo_n_body | |
27487 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
27488 | fi | |
27489 | export as_echo_body | |
27490 | as_echo='sh -c $as_echo_body as_echo' | |
27491 | fi | |
27492 | ||
27493 | # The user is always right. | |
27494 | if test "${PATH_SEPARATOR+set}" != set; then | |
27495 | PATH_SEPARATOR=: | |
27496 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
27497 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
27498 | PATH_SEPARATOR=';' | |
27499 | } | |
6de9cd9a DN |
27500 | fi |
27501 | ||
27502 | ||
5213506e RW |
27503 | # IFS |
27504 | # We need space, tab and new line, in precisely that order. Quoting is | |
27505 | # there to prevent editors from complaining about space-tab. | |
27506 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
27507 | # splitting by setting IFS to empty value.) | |
27508 | IFS=" "" $as_nl" | |
27509 | ||
27510 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 27511 | as_myself= |
5213506e RW |
27512 | case $0 in #(( |
27513 | *[\\/]* ) as_myself=$0 ;; | |
27514 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27515 | for as_dir in $PATH | |
27516 | do | |
27517 | IFS=$as_save_IFS | |
27518 | test -z "$as_dir" && as_dir=. | |
27519 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
27520 | done | |
27521 | IFS=$as_save_IFS | |
27522 | ||
27523 | ;; | |
27524 | esac | |
27525 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
27526 | # in which case we are not to be found in the path. | |
27527 | if test "x$as_myself" = x; then | |
27528 | as_myself=$0 | |
27529 | fi | |
27530 | if test ! -f "$as_myself"; then | |
27531 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
27532 | exit 1 | |
27533 | fi | |
27534 | ||
27535 | # Unset variables that we do not need and which cause bugs (e.g. in | |
27536 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
27537 | # suppresses any "Segmentation fault" message there. '((' could | |
27538 | # trigger a bug in pdksh 5.2.14. | |
27539 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
27540 | do eval test x\${$as_var+set} = xset \ | |
27541 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
27542 | done | |
6de9cd9a DN |
27543 | PS1='$ ' |
27544 | PS2='> ' | |
27545 | PS4='+ ' | |
27546 | ||
27547 | # NLS nuisances. | |
5213506e RW |
27548 | LC_ALL=C |
27549 | export LC_ALL | |
27550 | LANGUAGE=C | |
27551 | export LANGUAGE | |
27552 | ||
27553 | # CDPATH. | |
27554 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27555 | ||
27556 | ||
22e05272 JM |
27557 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
27558 | # ---------------------------------------- | |
5213506e RW |
27559 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
27560 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 27561 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
27562 | as_fn_error () |
27563 | { | |
22e05272 JM |
27564 | as_status=$1; test $as_status -eq 0 && as_status=1 |
27565 | if test "$4"; then | |
27566 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
27567 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6de9cd9a | 27568 | fi |
22e05272 | 27569 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
27570 | as_fn_exit $as_status |
27571 | } # as_fn_error | |
27572 | ||
27573 | ||
27574 | # as_fn_set_status STATUS | |
27575 | # ----------------------- | |
27576 | # Set $? to STATUS, without forking. | |
27577 | as_fn_set_status () | |
27578 | { | |
27579 | return $1 | |
27580 | } # as_fn_set_status | |
27581 | ||
27582 | # as_fn_exit STATUS | |
27583 | # ----------------- | |
27584 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
27585 | as_fn_exit () | |
27586 | { | |
27587 | set +e | |
27588 | as_fn_set_status $1 | |
27589 | exit $1 | |
27590 | } # as_fn_exit | |
27591 | ||
27592 | # as_fn_unset VAR | |
27593 | # --------------- | |
27594 | # Portably unset VAR. | |
27595 | as_fn_unset () | |
27596 | { | |
27597 | { eval $1=; unset $1;} | |
27598 | } | |
27599 | as_unset=as_fn_unset | |
27600 | # as_fn_append VAR VALUE | |
27601 | # ---------------------- | |
27602 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
27603 | # advantage of any shell optimizations that allow amortized linear growth over | |
27604 | # repeated appends, instead of the typical quadratic growth present in naive | |
27605 | # implementations. | |
27606 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
27607 | eval 'as_fn_append () | |
27608 | { | |
27609 | eval $1+=\$2 | |
27610 | }' | |
27611 | else | |
27612 | as_fn_append () | |
27613 | { | |
27614 | eval $1=\$$1\$2 | |
27615 | } | |
27616 | fi # as_fn_append | |
27617 | ||
27618 | # as_fn_arith ARG... | |
27619 | # ------------------ | |
27620 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
27621 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
27622 | # must be portable across $(()) and expr. | |
27623 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
27624 | eval 'as_fn_arith () | |
27625 | { | |
27626 | as_val=$(( $* )) | |
27627 | }' | |
27628 | else | |
27629 | as_fn_arith () | |
27630 | { | |
27631 | as_val=`expr "$@" || test $? -eq 1` | |
27632 | } | |
27633 | fi # as_fn_arith | |
6de9cd9a | 27634 | |
5213506e RW |
27635 | |
27636 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
27637 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
27638 | as_expr=expr |
27639 | else | |
27640 | as_expr=false | |
27641 | fi | |
27642 | ||
5213506e | 27643 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
27644 | as_basename=basename |
27645 | else | |
27646 | as_basename=false | |
27647 | fi | |
27648 | ||
5213506e RW |
27649 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
27650 | as_dirname=dirname | |
27651 | else | |
27652 | as_dirname=false | |
27653 | fi | |
6de9cd9a | 27654 | |
5213506e | 27655 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
27656 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
27657 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
27658 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27659 | $as_echo X/"$0" | | |
27660 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
27661 | s//\1/ | |
27662 | q | |
27663 | } | |
27664 | /^X\/\(\/\/\)$/{ | |
27665 | s//\1/ | |
27666 | q | |
27667 | } | |
27668 | /^X\/\(\/\).*/{ | |
27669 | s//\1/ | |
27670 | q | |
27671 | } | |
27672 | s/.*/./; q'` | |
38d24731 | 27673 | |
38d24731 RW |
27674 | # Avoid depending upon Character Ranges. |
27675 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
27676 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
27677 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
27678 | as_cr_digits='0123456789' | |
27679 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
27680 | ||
5213506e RW |
27681 | ECHO_C= ECHO_N= ECHO_T= |
27682 | case `echo -n x` in #((((( | |
27683 | -n*) | |
27684 | case `echo 'xy\c'` in | |
27685 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
27686 | xy) ECHO_C='\c';; | |
27687 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
27688 | ECHO_T=' ';; | |
27689 | esac;; | |
27690 | *) | |
27691 | ECHO_N='-n';; | |
6de9cd9a DN |
27692 | esac |
27693 | ||
5213506e RW |
27694 | rm -f conf$$ conf$$.exe conf$$.file |
27695 | if test -d conf$$.dir; then | |
27696 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 27697 | else |
5213506e RW |
27698 | rm -f conf$$.dir |
27699 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 27700 | fi |
5213506e RW |
27701 | if (echo >conf$$.file) 2>/dev/null; then |
27702 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 27703 | as_ln_s='ln -s' |
5213506e RW |
27704 | # ... but there are two gotchas: |
27705 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
27706 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 27707 | # In both cases, we have to default to `cp -pR'. |
5213506e | 27708 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 27709 | as_ln_s='cp -pR' |
5213506e RW |
27710 | elif ln conf$$.file conf$$ 2>/dev/null; then |
27711 | as_ln_s=ln | |
27712 | else | |
22e05272 | 27713 | as_ln_s='cp -pR' |
38d24731 | 27714 | fi |
6de9cd9a | 27715 | else |
22e05272 | 27716 | as_ln_s='cp -pR' |
6de9cd9a | 27717 | fi |
5213506e RW |
27718 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
27719 | rmdir conf$$.dir 2>/dev/null | |
27720 | ||
27721 | ||
27722 | # as_fn_mkdir_p | |
27723 | # ------------- | |
27724 | # Create "$as_dir" as a directory, including parents if necessary. | |
27725 | as_fn_mkdir_p () | |
27726 | { | |
27727 | ||
27728 | case $as_dir in #( | |
27729 | -*) as_dir=./$as_dir;; | |
27730 | esac | |
27731 | test -d "$as_dir" || eval $as_mkdir_p || { | |
27732 | as_dirs= | |
27733 | while :; do | |
27734 | case $as_dir in #( | |
27735 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27736 | *) as_qdir=$as_dir;; | |
27737 | esac | |
27738 | as_dirs="'$as_qdir' $as_dirs" | |
27739 | as_dir=`$as_dirname -- "$as_dir" || | |
27740 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27741 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27742 | X"$as_dir" : 'X\(//\)$' \| \ | |
27743 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27744 | $as_echo X"$as_dir" | | |
27745 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27746 | s//\1/ | |
27747 | q | |
27748 | } | |
27749 | /^X\(\/\/\)[^/].*/{ | |
27750 | s//\1/ | |
27751 | q | |
27752 | } | |
27753 | /^X\(\/\/\)$/{ | |
27754 | s//\1/ | |
27755 | q | |
27756 | } | |
27757 | /^X\(\/\).*/{ | |
27758 | s//\1/ | |
27759 | q | |
27760 | } | |
27761 | s/.*/./; q'` | |
27762 | test -d "$as_dir" && break | |
27763 | done | |
27764 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 27765 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 27766 | |
6de9cd9a | 27767 | |
5213506e | 27768 | } # as_fn_mkdir_p |
6de9cd9a | 27769 | if mkdir -p . 2>/dev/null; then |
5213506e | 27770 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
27771 | else |
27772 | test -d ./-p && rmdir ./-p | |
27773 | as_mkdir_p=false | |
27774 | fi | |
27775 | ||
22e05272 JM |
27776 | |
27777 | # as_fn_executable_p FILE | |
27778 | # ----------------------- | |
27779 | # Test if FILE is an executable regular file. | |
27780 | as_fn_executable_p () | |
27781 | { | |
27782 | test -f "$1" && test -x "$1" | |
27783 | } # as_fn_executable_p | |
27784 | as_test_x='test -x' | |
27785 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
27786 | |
27787 | # Sed expression to map a string onto a valid CPP name. | |
27788 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
27789 | ||
27790 | # Sed expression to map a string onto a valid variable name. | |
27791 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
27792 | ||
27793 | ||
6de9cd9a | 27794 | exec 6>&1 |
5213506e RW |
27795 | ## ----------------------------------- ## |
27796 | ## Main body of $CONFIG_STATUS script. ## | |
27797 | ## ----------------------------------- ## | |
27798 | _ASEOF | |
27799 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
27800 | ||
27801 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27802 | # Save the log message, to keep $0 and so on meaningful, and to | |
6de9cd9a | 27803 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
27804 | # values after options handling. |
27805 | ac_log=" | |
0dce3ca1 | 27806 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 27807 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a DN |
27808 | |
27809 | CONFIG_FILES = $CONFIG_FILES | |
27810 | CONFIG_HEADERS = $CONFIG_HEADERS | |
27811 | CONFIG_LINKS = $CONFIG_LINKS | |
27812 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
27813 | $ $0 $@ | |
27814 | ||
5213506e RW |
27815 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
27816 | " | |
27817 | ||
6de9cd9a DN |
27818 | _ACEOF |
27819 | ||
5213506e RW |
27820 | case $ac_config_files in *" |
27821 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
27822 | esac | |
78511f8b | 27823 | |
5213506e RW |
27824 | case $ac_config_headers in *" |
27825 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
27826 | esac | |
38d24731 | 27827 | |
38d24731 | 27828 | |
5213506e RW |
27829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27830 | # Files that config.status was made for. | |
27831 | config_files="$ac_config_files" | |
27832 | config_headers="$ac_config_headers" | |
27833 | config_commands="$ac_config_commands" | |
6de9cd9a | 27834 | |
5213506e | 27835 | _ACEOF |
38d24731 | 27836 | |
5213506e | 27837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a | 27838 | ac_cs_usage="\ |
5213506e RW |
27839 | \`$as_me' instantiates files and other configuration actions |
27840 | from templates according to the current configuration. Unless the files | |
27841 | and actions are specified as TAGs, all are instantiated by default. | |
6de9cd9a | 27842 | |
5213506e | 27843 | Usage: $0 [OPTION]... [TAG]... |
6de9cd9a DN |
27844 | |
27845 | -h, --help print this help, then exit | |
5213506e | 27846 | -V, --version print version number and configuration settings, then exit |
22e05272 | 27847 | --config print configuration, then exit |
5213506e RW |
27848 | -q, --quiet, --silent |
27849 | do not print progress messages | |
6de9cd9a DN |
27850 | -d, --debug don't remove temporary files |
27851 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
27852 | --file=FILE[:TEMPLATE] |
27853 | instantiate the configuration file FILE | |
27854 | --header=FILE[:TEMPLATE] | |
27855 | instantiate the configuration header FILE | |
6de9cd9a DN |
27856 | |
27857 | Configuration files: | |
27858 | $config_files | |
27859 | ||
27860 | Configuration headers: | |
27861 | $config_headers | |
27862 | ||
27863 | Configuration commands: | |
27864 | $config_commands | |
27865 | ||
5213506e RW |
27866 | Report bugs to the package provider. |
27867 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
27868 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
38d24731 | 27869 | |
5213506e RW |
27870 | _ACEOF |
27871 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 27872 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6de9cd9a | 27873 | ac_cs_version="\\ |
0dce3ca1 | 27874 | GNU Fortran Runtime Library config.status 0.3 |
22e05272 JM |
27875 | configured by $0, generated by GNU Autoconf 2.69, |
27876 | with options \\"\$ac_cs_config\\" | |
6de9cd9a | 27877 | |
22e05272 | 27878 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
27879 | This config.status script is free software; the Free Software Foundation |
27880 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
27881 | |
27882 | ac_pwd='$ac_pwd' | |
27883 | srcdir='$srcdir' | |
27884 | INSTALL='$INSTALL' | |
27885 | MKDIR_P='$MKDIR_P' | |
27886 | AWK='$AWK' | |
27887 | test -n "\$AWK" || AWK=awk | |
6de9cd9a DN |
27888 | _ACEOF |
27889 | ||
5213506e RW |
27890 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27891 | # The default lists apply if the user does not specify any file. | |
6de9cd9a DN |
27892 | ac_need_defaults=: |
27893 | while test $# != 0 | |
27894 | do | |
27895 | case $1 in | |
22e05272 | 27896 | --*=?*) |
5213506e RW |
27897 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
27898 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6de9cd9a DN |
27899 | ac_shift=: |
27900 | ;; | |
22e05272 JM |
27901 | --*=) |
27902 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
27903 | ac_optarg= | |
27904 | ac_shift=: | |
27905 | ;; | |
5213506e | 27906 | *) |
6de9cd9a DN |
27907 | ac_option=$1 |
27908 | ac_optarg=$2 | |
27909 | ac_shift=shift | |
27910 | ;; | |
6de9cd9a DN |
27911 | esac |
27912 | ||
27913 | case $ac_option in | |
27914 | # Handling of the options. | |
6de9cd9a DN |
27915 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
27916 | ac_cs_recheck=: ;; | |
5213506e RW |
27917 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27918 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
27919 | --config | --confi | --conf | --con | --co | --c ) |
27920 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 27921 | --debug | --debu | --deb | --de | --d | -d ) |
6de9cd9a DN |
27922 | debug=: ;; |
27923 | --file | --fil | --fi | --f ) | |
27924 | $ac_shift | |
5213506e RW |
27925 | case $ac_optarg in |
27926 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 27927 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
27928 | esac |
27929 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6de9cd9a DN |
27930 | ac_need_defaults=false;; |
27931 | --header | --heade | --head | --hea ) | |
27932 | $ac_shift | |
5213506e RW |
27933 | case $ac_optarg in |
27934 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27935 | esac | |
27936 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6de9cd9a | 27937 | ac_need_defaults=false;; |
5213506e RW |
27938 | --he | --h) |
27939 | # Conflict between --help and --header | |
22e05272 | 27940 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
27941 | Try \`$0 --help' for more information.";; |
27942 | --help | --hel | -h ) | |
27943 | $as_echo "$ac_cs_usage"; exit ;; | |
6de9cd9a DN |
27944 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27945 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27946 | ac_cs_silent=: ;; | |
27947 | ||
27948 | # This is an error. | |
22e05272 | 27949 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 27950 | Try \`$0 --help' for more information." ;; |
6de9cd9a | 27951 | |
5213506e RW |
27952 | *) as_fn_append ac_config_targets " $1" |
27953 | ac_need_defaults=false ;; | |
6de9cd9a DN |
27954 | |
27955 | esac | |
27956 | shift | |
27957 | done | |
27958 | ||
27959 | ac_configure_extra_args= | |
27960 | ||
27961 | if $ac_cs_silent; then | |
27962 | exec 6>/dev/null | |
27963 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
27964 | fi | |
27965 | ||
27966 | _ACEOF | |
5213506e | 27967 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6de9cd9a | 27968 | if \$ac_cs_recheck; then |
22e05272 | 27969 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
27970 | shift |
27971 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
27972 | CONFIG_SHELL='$SHELL' | |
27973 | export CONFIG_SHELL | |
27974 | exec "\$@" | |
6de9cd9a DN |
27975 | fi |
27976 | ||
1cf3d07d | 27977 | _ACEOF |
5213506e RW |
27978 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27979 | exec 5>>config.log | |
27980 | { | |
27981 | echo | |
27982 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27983 | ## Running $as_me. ## | |
27984 | _ASBOX | |
27985 | $as_echo "$ac_log" | |
27986 | } >&5 | |
1cf3d07d | 27987 | |
5213506e RW |
27988 | _ACEOF |
27989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 27990 | # |
5213506e | 27991 | # INIT-COMMANDS |
1cf3d07d SE |
27992 | # |
27993 | ||
1cf3d07d SE |
27994 | srcdir="$srcdir" |
27995 | host="$host" | |
27996 | target="$target" | |
27997 | with_multisubdir="$with_multisubdir" | |
27998 | with_multisrctop="$with_multisrctop" | |
27999 | with_target_subdir="$with_target_subdir" | |
28000 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
28001 | multi_basedir="$multi_basedir" | |
28002 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
28003 | CC="$CC" | |
2017c370 JB |
28004 | CXX="$CXX" |
28005 | GFORTRAN="$GFORTRAN" | |
22e05272 | 28006 | GDC="$GDC" |
1cf3d07d SE |
28007 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
28008 | ||
28009 | ||
28010 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
28011 | # if CDPATH is set. | |
28012 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
28013 | ||
28014 | sed_quote_subst='$sed_quote_subst' | |
28015 | double_quote_subst='$double_quote_subst' | |
28016 | delay_variable_subst='$delay_variable_subst' | |
66dbcf2d RO |
28017 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
28018 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
28019 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
28020 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
28021 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
28022 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
28023 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
28024 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
28025 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
28026 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
28027 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
28028 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
28029 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
28030 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
28031 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
28032 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
28033 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
28034 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
28035 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
28036 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
28037 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
28038 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
28039 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
28040 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
28041 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
28042 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
28043 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
28044 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
28045 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
28046 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
28047 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
28048 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
28049 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
28050 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
28051 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
28052 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
28053 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
28054 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28055 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28056 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
28057 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
28058 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
28059 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
28060 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
28061 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
28062 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
28063 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
28064 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
28065 | 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"`' | |
28066 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
28067 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
28068 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
28069 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
28070 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
28071 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
28072 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
28073 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
28074 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
28075 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
28076 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
28077 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
28078 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
28079 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
28080 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
28081 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
28082 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
28083 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
28084 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
28085 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
28086 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
28087 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
28088 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
28089 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
28090 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
28091 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
28092 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
28093 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
28094 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
28095 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
28096 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
28097 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
28098 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
28099 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
28100 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
28101 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
28102 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
28103 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
28104 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
28105 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
28106 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
28107 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
28108 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
28109 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
28110 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
28111 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
28112 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
28113 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
28114 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
28115 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
28116 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
28117 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
28118 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
28119 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
28120 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
28121 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
28122 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
28123 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
28124 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28125 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28126 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
28127 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
28128 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
28129 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
28130 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
28131 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
28132 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
28133 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
28134 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
28135 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
28136 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
28137 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
28138 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
28139 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
28140 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
28141 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
28142 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
28143 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
28144 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28145 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28146 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28147 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
28148 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
28149 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28150 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
28151 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
28152 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
28153 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
28154 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
28155 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
28156 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28157 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28158 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
28159 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28160 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28161 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28162 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28163 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28164 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28165 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
28166 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28167 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28168 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28169 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
28170 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
28171 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
28172 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
28173 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
28174 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
28175 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
28176 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
28177 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
28178 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
28179 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
28180 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28181 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
28182 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
28183 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28184 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28185 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
28186 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
28187 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
28188 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
28189 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
28190 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
28191 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
28192 | |
28193 | LTCC='$LTCC' | |
28194 | LTCFLAGS='$LTCFLAGS' | |
28195 | compiler='$compiler_DEFAULT' | |
28196 | ||
43e02a8a RW |
28197 | # A function that is used when there is no print builtin or printf. |
28198 | func_fallback_echo () | |
28199 | { | |
28200 | eval 'cat <<_LTECHO_EOF | |
28201 | \$1 | |
28202 | _LTECHO_EOF' | |
28203 | } | |
28204 | ||
1cf3d07d | 28205 | # Quote evaled strings. |
66dbcf2d | 28206 | for var in SED \ |
1cf3d07d SE |
28207 | GREP \ |
28208 | EGREP \ | |
28209 | FGREP \ | |
66dbcf2d RO |
28210 | SHELL \ |
28211 | ECHO \ | |
1cf3d07d SE |
28212 | LD \ |
28213 | NM \ | |
28214 | LN_S \ | |
28215 | lt_SP2NL \ | |
28216 | lt_NL2SP \ | |
28217 | reload_flag \ | |
d58dead8 | 28218 | OBJDUMP \ |
1cf3d07d SE |
28219 | deplibs_check_method \ |
28220 | file_magic_cmd \ | |
28221 | AR \ | |
28222 | AR_FLAGS \ | |
28223 | STRIP \ | |
28224 | RANLIB \ | |
28225 | CC \ | |
28226 | CFLAGS \ | |
28227 | compiler \ | |
28228 | lt_cv_sys_global_symbol_pipe \ | |
28229 | lt_cv_sys_global_symbol_to_cdecl \ | |
28230 | lt_cv_sys_global_symbol_to_c_name_address \ | |
d58dead8 | 28231 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
28232 | lt_prog_compiler_no_builtin_flag \ |
28233 | lt_prog_compiler_wl \ | |
28234 | lt_prog_compiler_pic \ | |
28235 | lt_prog_compiler_static \ | |
28236 | lt_cv_prog_compiler_c_o \ | |
28237 | need_locks \ | |
d58dead8 PG |
28238 | DSYMUTIL \ |
28239 | NMEDIT \ | |
28240 | LIPO \ | |
28241 | OTOOL \ | |
28242 | OTOOL64 \ | |
1cf3d07d SE |
28243 | shrext_cmds \ |
28244 | export_dynamic_flag_spec \ | |
28245 | whole_archive_flag_spec \ | |
28246 | compiler_needs_object \ | |
28247 | with_gnu_ld \ | |
28248 | allow_undefined_flag \ | |
28249 | no_undefined_flag \ | |
28250 | hardcode_libdir_flag_spec \ | |
28251 | hardcode_libdir_flag_spec_ld \ | |
28252 | hardcode_libdir_separator \ | |
28253 | fix_srcfile_path \ | |
28254 | exclude_expsyms \ | |
28255 | include_expsyms \ | |
28256 | file_list_spec \ | |
28257 | variables_saved_for_relink \ | |
28258 | libname_spec \ | |
28259 | library_names_spec \ | |
28260 | soname_spec \ | |
43e02a8a | 28261 | install_override_mode \ |
1cf3d07d SE |
28262 | finish_eval \ |
28263 | old_striplib \ | |
28264 | striplib \ | |
d58dead8 | 28265 | compiler_lib_search_dirs \ |
1cf3d07d SE |
28266 | predep_objects \ |
28267 | postdep_objects \ | |
28268 | predeps \ | |
28269 | postdeps \ | |
28270 | compiler_lib_search_path \ | |
28271 | LD_FC \ | |
43e02a8a | 28272 | reload_flag_FC \ |
1cf3d07d SE |
28273 | compiler_FC \ |
28274 | lt_prog_compiler_no_builtin_flag_FC \ | |
28275 | lt_prog_compiler_wl_FC \ | |
28276 | lt_prog_compiler_pic_FC \ | |
28277 | lt_prog_compiler_static_FC \ | |
28278 | lt_cv_prog_compiler_c_o_FC \ | |
28279 | export_dynamic_flag_spec_FC \ | |
28280 | whole_archive_flag_spec_FC \ | |
28281 | compiler_needs_object_FC \ | |
28282 | with_gnu_ld_FC \ | |
28283 | allow_undefined_flag_FC \ | |
28284 | no_undefined_flag_FC \ | |
28285 | hardcode_libdir_flag_spec_FC \ | |
28286 | hardcode_libdir_flag_spec_ld_FC \ | |
28287 | hardcode_libdir_separator_FC \ | |
28288 | fix_srcfile_path_FC \ | |
28289 | exclude_expsyms_FC \ | |
28290 | include_expsyms_FC \ | |
28291 | file_list_spec_FC \ | |
d58dead8 | 28292 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
28293 | predep_objects_FC \ |
28294 | postdep_objects_FC \ | |
28295 | predeps_FC \ | |
28296 | postdeps_FC \ | |
28297 | compiler_lib_search_path_FC; do | |
43e02a8a | 28298 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 28299 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 28300 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
28301 | ;; |
28302 | *) | |
28303 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
28304 | ;; | |
28305 | esac | |
28306 | done | |
28307 | ||
28308 | # Double-quote double-evaled strings. | |
28309 | for var in reload_cmds \ | |
28310 | old_postinstall_cmds \ | |
28311 | old_postuninstall_cmds \ | |
28312 | old_archive_cmds \ | |
28313 | extract_expsyms_cmds \ | |
28314 | old_archive_from_new_cmds \ | |
28315 | old_archive_from_expsyms_cmds \ | |
28316 | archive_cmds \ | |
28317 | archive_expsym_cmds \ | |
28318 | module_cmds \ | |
28319 | module_expsym_cmds \ | |
28320 | export_symbols_cmds \ | |
28321 | prelink_cmds \ | |
28322 | postinstall_cmds \ | |
28323 | postuninstall_cmds \ | |
28324 | finish_cmds \ | |
28325 | sys_lib_search_path_spec \ | |
28326 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 28327 | reload_cmds_FC \ |
1cf3d07d SE |
28328 | old_archive_cmds_FC \ |
28329 | old_archive_from_new_cmds_FC \ | |
28330 | old_archive_from_expsyms_cmds_FC \ | |
28331 | archive_cmds_FC \ | |
28332 | archive_expsym_cmds_FC \ | |
28333 | module_cmds_FC \ | |
28334 | module_expsym_cmds_FC \ | |
28335 | export_symbols_cmds_FC \ | |
28336 | prelink_cmds_FC; do | |
43e02a8a | 28337 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 28338 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 28339 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
28340 | ;; |
28341 | *) | |
28342 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
28343 | ;; | |
28344 | esac | |
28345 | done | |
28346 | ||
1cf3d07d SE |
28347 | ac_aux_dir='$ac_aux_dir' |
28348 | xsi_shell='$xsi_shell' | |
28349 | lt_shell_append='$lt_shell_append' | |
28350 | ||
28351 | # See if we are running on zsh, and set the options which allow our | |
28352 | # commands through without removal of \ escapes INIT. | |
28353 | if test -n "\${ZSH_VERSION+set}" ; then | |
28354 | setopt NO_GLOB_SUBST | |
28355 | fi | |
28356 | ||
28357 | ||
28358 | PACKAGE='$PACKAGE' | |
28359 | VERSION='$VERSION' | |
28360 | TIMESTAMP='$TIMESTAMP' | |
28361 | RM='$RM' | |
28362 | ofile='$ofile' | |
28363 | ||
28364 | ||
6de9cd9a | 28365 | |
6de9cd9a | 28366 | |
78511f8b | 28367 | |
6de9cd9a | 28368 | |
c13e029b PB |
28369 | GCC="$GCC" |
28370 | CC="$CC" | |
28371 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
28372 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
28373 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
28374 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
28375 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
28376 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
28377 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
28378 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
28379 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
28380 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
28381 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
4c4b3eb0 PB |
28382 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
28383 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
c13e029b | 28384 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
4c4b3eb0 PB |
28385 | |
28386 | ||
6de9cd9a DN |
28387 | _ACEOF |
28388 | ||
5213506e | 28389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f489fba1 | 28390 | |
5213506e | 28391 | # Handling of arguments. |
6de9cd9a DN |
28392 | for ac_config_target in $ac_config_targets |
28393 | do | |
5213506e RW |
28394 | case $ac_config_target in |
28395 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
28396 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
28397 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
28398 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
28399 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
28400 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1ec601bf | 28401 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
5213506e | 28402 | |
22e05272 | 28403 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6de9cd9a DN |
28404 | esac |
28405 | done | |
28406 | ||
5213506e | 28407 | |
6de9cd9a DN |
28408 | # If the user did not use the arguments to specify the items to instantiate, |
28409 | # then the envvar interface is used. Set only those that are not. | |
28410 | # We use the long form for the default assignment because of an extremely | |
28411 | # bizarre bug on SunOS 4.1.3. | |
28412 | if $ac_need_defaults; then | |
28413 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
28414 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
28415 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
28416 | fi | |
28417 | ||
28418 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 28419 | # simply because there is no reason against having it here, and in addition, |
6de9cd9a | 28420 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
28421 | # Hook for its removal unless debugging. |
28422 | # Note that there is a small window in which the directory will not be cleaned: | |
28423 | # after its creation but before its name has been assigned to `$tmp'. | |
6de9cd9a DN |
28424 | $debug || |
28425 | { | |
22e05272 | 28426 | tmp= ac_tmp= |
5213506e | 28427 | trap 'exit_status=$? |
22e05272 JM |
28428 | : "${ac_tmp:=$tmp}" |
28429 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
28430 | ' 0 |
28431 | trap 'as_fn_exit 1' 1 2 13 15 | |
6de9cd9a | 28432 | } |
6de9cd9a DN |
28433 | # Create a (secure) tmp directory for tmp files. |
28434 | ||
28435 | { | |
5213506e | 28436 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 28437 | test -d "$tmp" |
6de9cd9a DN |
28438 | } || |
28439 | { | |
5213506e RW |
28440 | tmp=./conf$$-$RANDOM |
28441 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
28442 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
28443 | ac_tmp=$tmp | |
5213506e RW |
28444 | |
28445 | # Set up the scripts for CONFIG_FILES section. | |
28446 | # No need to generate them if there are no CONFIG_FILES. | |
28447 | # This happens for instance with `./config.status config.h'. | |
28448 | if test -n "$CONFIG_FILES"; then | |
28449 | ||
28450 | ||
28451 | ac_cr=`echo X | tr X '\015'` | |
28452 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
28453 | # But we know of no other shell where ac_cr would be empty at this | |
28454 | # point, so we can use a bashism as a fallback. | |
28455 | if test "x$ac_cr" = x; then | |
28456 | eval ac_cr=\$\'\\r\' | |
28457 | fi | |
28458 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
28459 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 28460 | ac_cs_awk_cr='\\r' |
5213506e RW |
28461 | else |
28462 | ac_cs_awk_cr=$ac_cr | |
28463 | fi | |
28464 | ||
22e05272 | 28465 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
28466 | _ACEOF |
28467 | ||
28468 | ||
6de9cd9a | 28469 | { |
5213506e RW |
28470 | echo "cat >conf$$subs.awk <<_ACEOF" && |
28471 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
28472 | echo "_ACEOF" | |
28473 | } >conf$$subs.sh || | |
22e05272 JM |
28474 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
28475 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
28476 | ac_delim='%!_!# ' |
28477 | for ac_last_try in false false false false false :; do | |
28478 | . ./conf$$subs.sh || | |
22e05272 | 28479 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
28480 | |
28481 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
28482 | if test $ac_delim_n = $ac_delim_num; then | |
28483 | break | |
28484 | elif $ac_last_try; then | |
22e05272 | 28485 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
28486 | else |
28487 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
28488 | fi | |
28489 | done | |
28490 | rm -f conf$$subs.sh | |
28491 | ||
28492 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 28493 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
28494 | _ACEOF |
28495 | sed -n ' | |
28496 | h | |
28497 | s/^/S["/; s/!.*/"]=/ | |
28498 | p | |
28499 | g | |
28500 | s/^[^!]*!// | |
28501 | :repl | |
28502 | t repl | |
28503 | s/'"$ac_delim"'$// | |
28504 | t delim | |
28505 | :nl | |
28506 | h | |
22e05272 | 28507 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
28508 | t more1 |
28509 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
28510 | p | |
28511 | n | |
28512 | b repl | |
28513 | :more1 | |
28514 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28515 | p | |
28516 | g | |
28517 | s/.\{148\}// | |
28518 | t nl | |
28519 | :delim | |
28520 | h | |
22e05272 | 28521 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
28522 | t more2 |
28523 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
28524 | p | |
28525 | b | |
28526 | :more2 | |
28527 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28528 | p | |
28529 | g | |
28530 | s/.\{148\}// | |
28531 | t delim | |
28532 | ' <conf$$subs.awk | sed ' | |
28533 | /^[^""]/{ | |
28534 | N | |
28535 | s/\n// | |
28536 | } | |
28537 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
28538 | rm -f conf$$subs.awk | |
28539 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28540 | _ACAWK | |
22e05272 | 28541 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
28542 | for (key in S) S_is_set[key] = 1 |
28543 | FS = "\a" | |
28544 | ||
28545 | } | |
28546 | { | |
28547 | line = $ 0 | |
28548 | nfields = split(line, field, "@") | |
28549 | substed = 0 | |
28550 | len = length(field[1]) | |
28551 | for (i = 2; i < nfields; i++) { | |
28552 | key = field[i] | |
28553 | keylen = length(key) | |
28554 | if (S_is_set[key]) { | |
28555 | value = S[key] | |
28556 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
28557 | len += length(value) + length(field[++i]) | |
28558 | substed = 1 | |
28559 | } else | |
28560 | len += 1 + keylen | |
28561 | } | |
28562 | ||
28563 | print line | |
6de9cd9a DN |
28564 | } |
28565 | ||
5213506e RW |
28566 | _ACAWK |
28567 | _ACEOF | |
28568 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
28569 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
28570 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
28571 | else | |
28572 | cat | |
22e05272 JM |
28573 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
28574 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
38d24731 RW |
28575 | _ACEOF |
28576 | ||
22e05272 JM |
28577 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
28578 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
28579 | # trailing colons and then remove the whole line if VPATH becomes empty |
28580 | # (actually we leave an empty line to preserve line numbers). | |
28581 | if test "x$srcdir" = x.; then | |
22e05272 JM |
28582 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
28583 | h | |
28584 | s/// | |
28585 | s/^/:/ | |
28586 | s/[ ]*$/:/ | |
28587 | s/:\$(srcdir):/:/g | |
28588 | s/:\${srcdir}:/:/g | |
28589 | s/:@srcdir@:/:/g | |
28590 | s/^:*// | |
5213506e | 28591 | s/:*$// |
22e05272 JM |
28592 | x |
28593 | s/\(=[ ]*\).*/\1/ | |
28594 | G | |
28595 | s/\n// | |
5213506e RW |
28596 | s/^[^=]*=[ ]*$// |
28597 | }' | |
28598 | fi | |
38d24731 | 28599 | |
5213506e RW |
28600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28601 | fi # test -n "$CONFIG_FILES" | |
6de9cd9a | 28602 | |
5213506e RW |
28603 | # Set up the scripts for CONFIG_HEADERS section. |
28604 | # No need to generate them if there are no CONFIG_HEADERS. | |
28605 | # This happens for instance with `./config.status Makefile'. | |
28606 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 28607 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
28608 | BEGIN { |
28609 | _ACEOF | |
28610 | ||
28611 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
28612 | # here-document in config.status, that substitutes the proper values into | |
28613 | # config.h.in to produce config.h. | |
28614 | ||
28615 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
28616 | # handling of long lines. | |
28617 | ac_delim='%!_!# ' | |
28618 | for ac_last_try in false false :; do | |
22e05272 JM |
28619 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
28620 | if test -z "$ac_tt"; then | |
5213506e RW |
28621 | break |
28622 | elif $ac_last_try; then | |
22e05272 | 28623 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
28624 | else |
28625 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
f489fba1 | 28626 | fi |
5213506e | 28627 | done |
c0e7e2bf | 28628 | |
5213506e RW |
28629 | # For the awk script, D is an array of macro values keyed by name, |
28630 | # likewise P contains macro parameters if any. Preserve backslash | |
28631 | # newline sequences. | |
28632 | ||
28633 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
28634 | sed -n ' | |
28635 | s/.\{148\}/&'"$ac_delim"'/g | |
28636 | t rset | |
28637 | :rset | |
28638 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
28639 | t def | |
28640 | d | |
28641 | :def | |
28642 | s/\\$// | |
28643 | t bsnl | |
28644 | s/["\\]/\\&/g | |
28645 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28646 | D["\1"]=" \3"/p | |
28647 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
28648 | d | |
28649 | :bsnl | |
28650 | s/["\\]/\\&/g | |
28651 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28652 | D["\1"]=" \3\\\\\\n"\\/p | |
28653 | t cont | |
28654 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
28655 | t cont | |
28656 | d | |
28657 | :cont | |
28658 | n | |
28659 | s/.\{148\}/&'"$ac_delim"'/g | |
28660 | t clear | |
28661 | :clear | |
28662 | s/\\$// | |
28663 | t bsnlc | |
28664 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
28665 | d | |
28666 | :bsnlc | |
28667 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
28668 | b cont | |
28669 | ' <confdefs.h | sed ' | |
28670 | s/'"$ac_delim"'/"\\\ | |
28671 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
28672 | ||
28673 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28674 | for (key in D) D_is_set[key] = 1 | |
28675 | FS = "\a" | |
28676 | } | |
28677 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
28678 | line = \$ 0 | |
28679 | split(line, arg, " ") | |
28680 | if (arg[1] == "#") { | |
28681 | defundef = arg[2] | |
28682 | mac1 = arg[3] | |
28683 | } else { | |
28684 | defundef = substr(arg[1], 2) | |
28685 | mac1 = arg[2] | |
28686 | } | |
28687 | split(mac1, mac2, "(") #) | |
28688 | macro = mac2[1] | |
28689 | prefix = substr(line, 1, index(line, defundef) - 1) | |
28690 | if (D_is_set[macro]) { | |
28691 | # Preserve the white space surrounding the "#". | |
28692 | print prefix "define", macro P[macro] D[macro] | |
28693 | next | |
28694 | } else { | |
28695 | # Replace #undef with comments. This is necessary, for example, | |
28696 | # in the case of _POSIX_SOURCE, which is predefined and required | |
28697 | # on some systems where configure will not decide to define it. | |
28698 | if (defundef == "undef") { | |
28699 | print "/*", prefix defundef, macro, "*/" | |
28700 | next | |
28701 | } | |
28702 | } | |
28703 | } | |
28704 | { print } | |
28705 | _ACAWK | |
6de9cd9a | 28706 | _ACEOF |
5213506e | 28707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 28708 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
28709 | fi # test -n "$CONFIG_HEADERS" |
28710 | ||
28711 | ||
28712 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
28713 | shift | |
28714 | for ac_tag | |
28715 | do | |
28716 | case $ac_tag in | |
28717 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
28718 | esac | |
28719 | case $ac_mode$ac_tag in | |
28720 | :[FHL]*:*);; | |
22e05272 | 28721 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
28722 | :[FH]-) ac_tag=-:-;; |
28723 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
28724 | esac | |
28725 | ac_save_IFS=$IFS | |
28726 | IFS=: | |
28727 | set x $ac_tag | |
28728 | IFS=$ac_save_IFS | |
28729 | shift | |
28730 | ac_file=$1 | |
28731 | shift | |
28732 | ||
28733 | case $ac_mode in | |
28734 | :L) ac_source=$1;; | |
28735 | :[FH]) | |
28736 | ac_file_inputs= | |
28737 | for ac_f | |
28738 | do | |
28739 | case $ac_f in | |
22e05272 | 28740 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
28741 | *) # Look for the file first in the build tree, then in the source tree |
28742 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
28743 | # because $ac_f cannot contain `:'. | |
28744 | test -f "$ac_f" || | |
28745 | case $ac_f in | |
28746 | [\\/$]*) false;; | |
28747 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
28748 | esac || | |
22e05272 | 28749 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
28750 | esac |
28751 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
28752 | as_fn_append ac_file_inputs " '$ac_f'" | |
28753 | done | |
28754 | ||
28755 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
28756 | # use $as_me), people would be surprised to read: | |
28757 | # /* config.h. Generated by config.status. */ | |
28758 | configure_input='Generated from '` | |
28759 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
28760 | `' by configure.' | |
28761 | if test x"$ac_file" != x-; then | |
28762 | configure_input="$ac_file. $configure_input" | |
28763 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
28764 | $as_echo "$as_me: creating $ac_file" >&6;} | |
28765 | fi | |
28766 | # Neutralize special characters interpreted by sed in replacement strings. | |
28767 | case $configure_input in #( | |
28768 | *\&* | *\|* | *\\* ) | |
28769 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
28770 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
28771 | *) ac_sed_conf_input=$configure_input;; | |
28772 | esac | |
28773 | ||
28774 | case $ac_tag in | |
22e05272 JM |
28775 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
28776 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
28777 | esac |
28778 | ;; | |
6de9cd9a DN |
28779 | esac |
28780 | ||
5213506e | 28781 | ac_dir=`$as_dirname -- "$ac_file" || |
6de9cd9a DN |
28782 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28783 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28784 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
28785 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
28786 | $as_echo X"$ac_file" | | |
28787 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28788 | s//\1/ | |
28789 | q | |
28790 | } | |
28791 | /^X\(\/\/\)[^/].*/{ | |
28792 | s//\1/ | |
28793 | q | |
28794 | } | |
28795 | /^X\(\/\/\)$/{ | |
28796 | s//\1/ | |
28797 | q | |
28798 | } | |
28799 | /^X\(\/\).*/{ | |
28800 | s//\1/ | |
28801 | q | |
28802 | } | |
28803 | s/.*/./; q'` | |
28804 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6de9cd9a DN |
28805 | ac_builddir=. |
28806 | ||
5213506e RW |
28807 | case "$ac_dir" in |
28808 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28809 | *) | |
28810 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
28811 | # A ".." for each directory in $ac_dir_suffix. | |
28812 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
28813 | case $ac_top_builddir_sub in | |
28814 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28815 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
28816 | esac ;; | |
28817 | esac | |
28818 | ac_abs_top_builddir=$ac_pwd | |
28819 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
28820 | # for backward compatibility: | |
28821 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
28822 | |
28823 | case $srcdir in | |
5213506e | 28824 | .) # We are building in place. |
6de9cd9a | 28825 | ac_srcdir=. |
5213506e RW |
28826 | ac_top_srcdir=$ac_top_builddir_sub |
28827 | ac_abs_top_srcdir=$ac_pwd ;; | |
28828 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 28829 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
28830 | ac_top_srcdir=$srcdir |
28831 | ac_abs_top_srcdir=$srcdir ;; | |
28832 | *) # Relative name. | |
28833 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
28834 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
28835 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6de9cd9a | 28836 | esac |
5213506e | 28837 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6de9cd9a | 28838 | |
6de9cd9a | 28839 | |
5213506e RW |
28840 | case $ac_mode in |
28841 | :F) | |
28842 | # | |
28843 | # CONFIG_FILE | |
28844 | # | |
6de9cd9a DN |
28845 | |
28846 | case $INSTALL in | |
28847 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
28848 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
28849 | esac | |
28850 | ac_MKDIR_P=$MKDIR_P | |
28851 | case $MKDIR_P in | |
28852 | [\\/$]* | ?:[\\/]* ) ;; | |
28853 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6de9cd9a | 28854 | esac |
5213506e | 28855 | _ACEOF |
6de9cd9a | 28856 | |
5213506e RW |
28857 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28858 | # If the template does not know about datarootdir, expand it. | |
28859 | # FIXME: This hack should be removed a few years after 2.60. | |
28860 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
28861 | ac_sed_dataroot=' | |
28862 | /datarootdir/ { | |
28863 | p | |
28864 | q | |
28865 | } | |
28866 | /@datadir@/p | |
28867 | /@docdir@/p | |
28868 | /@infodir@/p | |
28869 | /@localedir@/p | |
28870 | /@mandir@/p' | |
28871 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
28872 | *datarootdir*) ac_datarootdir_seen=yes;; | |
28873 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
28874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
28875 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
28876 | _ACEOF | |
28877 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28878 | ac_datarootdir_hack=' | |
28879 | s&@datadir@&$datadir&g | |
28880 | s&@docdir@&$docdir&g | |
28881 | s&@infodir@&$infodir&g | |
28882 | s&@localedir@&$localedir&g | |
28883 | s&@mandir@&$mandir&g | |
28884 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
28885 | esac | |
78511f8b | 28886 | _ACEOF |
5213506e RW |
28887 | |
28888 | # Neutralize VPATH when `$srcdir' = `.'. | |
28889 | # Shell code in configure.ac might set extrasub. | |
28890 | # FIXME: do we really want to maintain this feature? | |
28891 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28892 | ac_sed_extra="$ac_vpsub | |
6de9cd9a DN |
28893 | $extrasub |
28894 | _ACEOF | |
5213506e | 28895 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a DN |
28896 | :t |
28897 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
28898 | s|@configure_input@|$ac_sed_conf_input|;t t |
28899 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
28900 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
28901 | s&@srcdir@&$ac_srcdir&;t t | |
28902 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
28903 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
28904 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
28905 | s&@builddir@&$ac_builddir&;t t | |
28906 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
28907 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
28908 | s&@INSTALL@&$ac_INSTALL&;t t | |
28909 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
28910 | $ac_datarootdir_hack | |
28911 | " | |
22e05272 JM |
28912 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
28913 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
28914 | |
28915 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
28916 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
28917 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
28918 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 28919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 28920 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 28921 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 28922 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 28923 | |
22e05272 | 28924 | rm -f "$ac_tmp/stdin" |
6de9cd9a | 28925 | case $ac_file in |
22e05272 JM |
28926 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
28927 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 28928 | esac \ |
22e05272 | 28929 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
28930 | ;; |
28931 | :H) | |
28932 | # | |
28933 | # CONFIG_HEADER | |
28934 | # | |
6de9cd9a | 28935 | if test x"$ac_file" != x-; then |
5213506e RW |
28936 | { |
28937 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
28938 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
28939 | } >"$ac_tmp/config.h" \ | |
28940 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28941 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
28942 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
28943 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6de9cd9a | 28944 | else |
5213506e | 28945 | rm -f "$ac_file" |
22e05272 JM |
28946 | mv "$ac_tmp/config.h" "$ac_file" \ |
28947 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6de9cd9a DN |
28948 | fi |
28949 | else | |
5213506e | 28950 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
28951 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
28952 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6de9cd9a | 28953 | fi |
5213506e RW |
28954 | # Compute "$ac_file"'s index in $config_headers. |
28955 | _am_arg="$ac_file" | |
6de9cd9a DN |
28956 | _am_stamp_count=1 |
28957 | for _am_header in $config_headers :; do | |
28958 | case $_am_header in | |
5213506e | 28959 | $_am_arg | $_am_arg:* ) |
6de9cd9a DN |
28960 | break ;; |
28961 | * ) | |
28962 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
28963 | esac | |
28964 | done | |
5213506e RW |
28965 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
28966 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28967 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
28968 | X"$_am_arg" : 'X\(//\)$' \| \ | |
28969 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
28970 | $as_echo X"$_am_arg" | | |
28971 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28972 | s//\1/ | |
28973 | q | |
28974 | } | |
28975 | /^X\(\/\/\)[^/].*/{ | |
28976 | s//\1/ | |
28977 | q | |
28978 | } | |
28979 | /^X\(\/\/\)$/{ | |
28980 | s//\1/ | |
28981 | q | |
28982 | } | |
28983 | /^X\(\/\).*/{ | |
28984 | s//\1/ | |
28985 | q | |
28986 | } | |
28987 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
28988 | ;; | |
38d24731 | 28989 | |
5213506e RW |
28990 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
28991 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
28992 | ;; | |
28993 | esac | |
6de9cd9a DN |
28994 | |
28995 | ||
5213506e RW |
28996 | case $ac_file$ac_mode in |
28997 | "default-1":C) | |
96b8a615 AJ |
28998 | # Only add multilib support code if we just rebuilt the top-level |
28999 | # Makefile. | |
29000 | case " $CONFIG_FILES " in | |
29001 | *" Makefile "*) | |
29002 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
29003 | ;; | |
29004 | esac ;; | |
5213506e | 29005 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 29006 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
29007 | # are listed without --file. Let's play safe and only enable the eval |
29008 | # if we detect the quoting. | |
29009 | case $CONFIG_FILES in | |
29010 | *\'*) eval set x "$CONFIG_FILES" ;; | |
29011 | *) set x $CONFIG_FILES ;; | |
29012 | esac | |
29013 | shift | |
29014 | for mf | |
29015 | do | |
29016 | # Strip MF so we end up with the name of the file. | |
29017 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
29018 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 29019 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
29020 | # some people rename them; so instead we look at the file content. |
29021 | # Grep'ing the first line is not enough: some people post-process | |
29022 | # each Makefile.in and add a new line on top of each file to say so. | |
29023 | # Grep'ing the whole file is not good either: AIX grep has a line | |
29024 | # limit of 2048, but all sed's we know have understand at least 4000. | |
29025 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
29026 | dirpart=`$as_dirname -- "$mf" || | |
679c0f9a TT |
29027 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
29028 | X"$mf" : 'X\(//\)[^/]' \| \ | |
29029 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
29030 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
29031 | $as_echo X"$mf" | | |
29032 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
29033 | s//\1/ | |
29034 | q | |
29035 | } | |
29036 | /^X\(\/\/\)[^/].*/{ | |
29037 | s//\1/ | |
29038 | q | |
29039 | } | |
29040 | /^X\(\/\/\)$/{ | |
29041 | s//\1/ | |
29042 | q | |
29043 | } | |
29044 | /^X\(\/\).*/{ | |
29045 | s//\1/ | |
29046 | q | |
29047 | } | |
29048 | s/.*/./; q'` | |
29049 | else | |
29050 | continue | |
29051 | fi | |
29052 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 29053 | # from the Makefile without running 'make'. |
5213506e RW |
29054 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
29055 | test -z "$DEPDIR" && continue | |
29056 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 29057 | test -z "$am__include" && continue |
5213506e | 29058 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
29059 | # Find all dependency output files, they are included files with |
29060 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
29061 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
29062 | # expansion. | |
29063 | for file in `sed -n " | |
29064 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 29065 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
29066 | # Make sure the directory exists. |
29067 | test -f "$dirpart/$file" && continue | |
29068 | fdir=`$as_dirname -- "$file" || | |
679c0f9a TT |
29069 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
29070 | X"$file" : 'X\(//\)[^/]' \| \ | |
29071 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
29072 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
29073 | $as_echo X"$file" | | |
29074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
29075 | s//\1/ | |
29076 | q | |
29077 | } | |
29078 | /^X\(\/\/\)[^/].*/{ | |
29079 | s//\1/ | |
29080 | q | |
29081 | } | |
29082 | /^X\(\/\/\)$/{ | |
29083 | s//\1/ | |
29084 | q | |
29085 | } | |
29086 | /^X\(\/\).*/{ | |
29087 | s//\1/ | |
29088 | q | |
29089 | } | |
29090 | s/.*/./; q'` | |
29091 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
29092 | # echo "creating $dirpart/$file" | |
29093 | echo '# dummy' > "$dirpart/$file" | |
679c0f9a | 29094 | done |
679c0f9a | 29095 | done |
5213506e | 29096 | } |
1cf3d07d | 29097 | ;; |
5213506e | 29098 | "libtool":C) |
1cf3d07d SE |
29099 | |
29100 | # See if we are running on zsh, and set the options which allow our | |
29101 | # commands through without removal of \ escapes. | |
29102 | if test -n "${ZSH_VERSION+set}" ; then | |
29103 | setopt NO_GLOB_SUBST | |
29104 | fi | |
29105 | ||
29106 | cfgfile="${ofile}T" | |
29107 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
29108 | $RM "$cfgfile" | |
29109 | ||
29110 | cat <<_LT_EOF >> "$cfgfile" | |
29111 | #! $SHELL | |
29112 | ||
29113 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
d58dead8 | 29114 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
29115 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
29116 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
29117 | # | |
d58dead8 | 29118 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 29119 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
d58dead8 | 29120 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 29121 | # |
d58dead8 | 29122 | # This file is part of GNU Libtool. |
1cf3d07d | 29123 | # |
d58dead8 PG |
29124 | # GNU Libtool is free software; you can redistribute it and/or |
29125 | # modify it under the terms of the GNU General Public License as | |
29126 | # published by the Free Software Foundation; either version 2 of | |
29127 | # the License, or (at your option) any later version. | |
1cf3d07d | 29128 | # |
d58dead8 PG |
29129 | # As a special exception to the GNU General Public License, |
29130 | # if you distribute this file as part of a program or library that | |
29131 | # is built using GNU Libtool, you may include this file under the | |
29132 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 29133 | # |
d58dead8 PG |
29134 | # GNU Libtool is distributed in the hope that it will be useful, |
29135 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
29136 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
29137 | # GNU General Public License for more details. | |
1cf3d07d | 29138 | # |
d58dead8 PG |
29139 | # You should have received a copy of the GNU General Public License |
29140 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
29141 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
29142 | # obtained by writing to the Free Software Foundation, Inc., | |
29143 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
29144 | |
29145 | ||
29146 | # The names of the tagged configurations supported by this script. | |
29147 | available_tags="FC " | |
29148 | ||
29149 | # ### BEGIN LIBTOOL CONFIG | |
29150 | ||
66dbcf2d RO |
29151 | # A sed program that does not truncate output. |
29152 | SED=$lt_SED | |
29153 | ||
29154 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
29155 | Xsed="\$SED -e 1s/^X//" | |
29156 | ||
29157 | # A grep program that handles long lines. | |
29158 | GREP=$lt_GREP | |
29159 | ||
29160 | # An ERE matcher. | |
29161 | EGREP=$lt_EGREP | |
29162 | ||
29163 | # A literal string matcher. | |
29164 | FGREP=$lt_FGREP | |
29165 | ||
29166 | # Shell to use when invoking shell scripts. | |
29167 | SHELL=$lt_SHELL | |
29168 | ||
29169 | # An echo program that protects backslashes. | |
29170 | ECHO=$lt_ECHO | |
29171 | ||
1cf3d07d SE |
29172 | # Which release of libtool.m4 was used? |
29173 | macro_version=$macro_version | |
29174 | macro_revision=$macro_revision | |
29175 | ||
29176 | # Whether or not to build shared libraries. | |
29177 | build_libtool_libs=$enable_shared | |
29178 | ||
29179 | # Whether or not to build static libraries. | |
29180 | build_old_libs=$enable_static | |
29181 | ||
29182 | # What type of objects to build. | |
29183 | pic_mode=$pic_mode | |
29184 | ||
29185 | # Whether or not to optimize for fast installation. | |
29186 | fast_install=$enable_fast_install | |
29187 | ||
29188 | # The host system. | |
29189 | host_alias=$host_alias | |
29190 | host=$host | |
29191 | host_os=$host_os | |
29192 | ||
29193 | # The build system. | |
29194 | build_alias=$build_alias | |
29195 | build=$build | |
29196 | build_os=$build_os | |
29197 | ||
1cf3d07d SE |
29198 | # A BSD- or MS-compatible name lister. |
29199 | NM=$lt_NM | |
29200 | ||
29201 | # Whether we need soft or hard links. | |
29202 | LN_S=$lt_LN_S | |
29203 | ||
29204 | # What is the maximum length of a command? | |
29205 | max_cmd_len=$max_cmd_len | |
29206 | ||
29207 | # Object file suffix (normally "o"). | |
29208 | objext=$ac_objext | |
29209 | ||
29210 | # Executable file suffix (normally ""). | |
29211 | exeext=$exeext | |
29212 | ||
29213 | # whether the shell understands "unset". | |
29214 | lt_unset=$lt_unset | |
29215 | ||
29216 | # turn spaces into newlines. | |
29217 | SP2NL=$lt_lt_SP2NL | |
29218 | ||
29219 | # turn newlines into spaces. | |
29220 | NL2SP=$lt_lt_NL2SP | |
29221 | ||
d58dead8 PG |
29222 | # An object symbol dumper. |
29223 | OBJDUMP=$lt_OBJDUMP | |
29224 | ||
1cf3d07d SE |
29225 | # Method to check whether dependent libraries are shared objects. |
29226 | deplibs_check_method=$lt_deplibs_check_method | |
29227 | ||
29228 | # Command to use when deplibs_check_method == "file_magic". | |
29229 | file_magic_cmd=$lt_file_magic_cmd | |
29230 | ||
29231 | # The archiver. | |
29232 | AR=$lt_AR | |
29233 | AR_FLAGS=$lt_AR_FLAGS | |
29234 | ||
29235 | # A symbol stripping program. | |
29236 | STRIP=$lt_STRIP | |
29237 | ||
29238 | # Commands used to install an old-style archive. | |
29239 | RANLIB=$lt_RANLIB | |
29240 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
29241 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
29242 | ||
43e02a8a RW |
29243 | # Whether to use a lock for old archive extraction. |
29244 | lock_old_archive_extraction=$lock_old_archive_extraction | |
29245 | ||
1cf3d07d SE |
29246 | # A C compiler. |
29247 | LTCC=$lt_CC | |
29248 | ||
29249 | # LTCC compiler flags. | |
29250 | LTCFLAGS=$lt_CFLAGS | |
29251 | ||
29252 | # Take the output of nm and produce a listing of raw symbols and C names. | |
29253 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
29254 | ||
29255 | # Transform the output of nm in a proper C declaration. | |
29256 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
29257 | ||
29258 | # Transform the output of nm in a C name address pair. | |
29259 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
29260 | ||
d58dead8 PG |
29261 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
29262 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
29263 | ||
1cf3d07d SE |
29264 | # The name of the directory that contains temporary libtool files. |
29265 | objdir=$objdir | |
29266 | ||
1cf3d07d SE |
29267 | # Used to examine libraries when file_magic_cmd begins with "file". |
29268 | MAGIC_CMD=$MAGIC_CMD | |
29269 | ||
29270 | # Must we lock files when doing compilation? | |
29271 | need_locks=$lt_need_locks | |
29272 | ||
d58dead8 PG |
29273 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
29274 | DSYMUTIL=$lt_DSYMUTIL | |
29275 | ||
29276 | # Tool to change global to local symbols on Mac OS X. | |
29277 | NMEDIT=$lt_NMEDIT | |
29278 | ||
29279 | # Tool to manipulate fat objects and archives on Mac OS X. | |
29280 | LIPO=$lt_LIPO | |
29281 | ||
29282 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
29283 | OTOOL=$lt_OTOOL | |
29284 | ||
29285 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
29286 | OTOOL64=$lt_OTOOL64 | |
29287 | ||
1cf3d07d SE |
29288 | # Old archive suffix (normally "a"). |
29289 | libext=$libext | |
29290 | ||
29291 | # Shared library suffix (normally ".so"). | |
29292 | shrext_cmds=$lt_shrext_cmds | |
29293 | ||
29294 | # The commands to extract the exported symbol list from a shared archive. | |
29295 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
29296 | ||
29297 | # Variables whose values should be saved in libtool wrapper scripts and | |
29298 | # restored at link time. | |
29299 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
29300 | ||
29301 | # Do we need the "lib" prefix for modules? | |
29302 | need_lib_prefix=$need_lib_prefix | |
29303 | ||
29304 | # Do we need a version for libraries? | |
29305 | need_version=$need_version | |
29306 | ||
29307 | # Library versioning type. | |
29308 | version_type=$version_type | |
29309 | ||
29310 | # Shared library runtime path variable. | |
29311 | runpath_var=$runpath_var | |
29312 | ||
29313 | # Shared library path variable. | |
29314 | shlibpath_var=$shlibpath_var | |
29315 | ||
29316 | # Is shlibpath searched before the hard-coded library search path? | |
29317 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
29318 | ||
29319 | # Format of library name prefix. | |
29320 | libname_spec=$lt_libname_spec | |
29321 | ||
29322 | # List of archive names. First name is the real one, the rest are links. | |
29323 | # The last name is the one that the linker finds with -lNAME | |
29324 | library_names_spec=$lt_library_names_spec | |
29325 | ||
29326 | # The coded name of the library, if different from the real name. | |
29327 | soname_spec=$lt_soname_spec | |
29328 | ||
43e02a8a RW |
29329 | # Permission mode override for installation of shared libraries. |
29330 | install_override_mode=$lt_install_override_mode | |
29331 | ||
1cf3d07d SE |
29332 | # Command to use after installation of a shared archive. |
29333 | postinstall_cmds=$lt_postinstall_cmds | |
29334 | ||
29335 | # Command to use after uninstallation of a shared archive. | |
29336 | postuninstall_cmds=$lt_postuninstall_cmds | |
29337 | ||
29338 | # Commands used to finish a libtool library installation in a directory. | |
29339 | finish_cmds=$lt_finish_cmds | |
29340 | ||
29341 | # As "finish_cmds", except a single script fragment to be evaled but | |
29342 | # not shown. | |
29343 | finish_eval=$lt_finish_eval | |
29344 | ||
29345 | # Whether we should hardcode library paths into libraries. | |
29346 | hardcode_into_libs=$hardcode_into_libs | |
29347 | ||
29348 | # Compile-time system search path for libraries. | |
29349 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
29350 | ||
29351 | # Run-time system search path for libraries. | |
29352 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
29353 | ||
29354 | # Whether dlopen is supported. | |
29355 | dlopen_support=$enable_dlopen | |
29356 | ||
29357 | # Whether dlopen of programs is supported. | |
29358 | dlopen_self=$enable_dlopen_self | |
29359 | ||
29360 | # Whether dlopen of statically linked programs is supported. | |
29361 | dlopen_self_static=$enable_dlopen_self_static | |
29362 | ||
29363 | # Commands to strip libraries. | |
29364 | old_striplib=$lt_old_striplib | |
29365 | striplib=$lt_striplib | |
29366 | ||
29367 | ||
29368 | # The linker used to build libraries. | |
29369 | LD=$lt_LD | |
29370 | ||
43e02a8a RW |
29371 | # How to create reloadable object files. |
29372 | reload_flag=$lt_reload_flag | |
29373 | reload_cmds=$lt_reload_cmds | |
29374 | ||
1cf3d07d SE |
29375 | # Commands used to build an old-style archive. |
29376 | old_archive_cmds=$lt_old_archive_cmds | |
29377 | ||
29378 | # A language specific compiler. | |
29379 | CC=$lt_compiler | |
29380 | ||
29381 | # Is the compiler the GNU compiler? | |
29382 | with_gcc=$GCC | |
29383 | ||
29384 | # Compiler flag to turn off builtin functions. | |
29385 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
29386 | ||
29387 | # How to pass a linker flag through the compiler. | |
29388 | wl=$lt_lt_prog_compiler_wl | |
29389 | ||
29390 | # Additional compiler flags for building library objects. | |
29391 | pic_flag=$lt_lt_prog_compiler_pic | |
29392 | ||
29393 | # Compiler flag to prevent dynamic linking. | |
29394 | link_static_flag=$lt_lt_prog_compiler_static | |
29395 | ||
29396 | # Does compiler simultaneously support -c and -o options? | |
29397 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
29398 | ||
29399 | # Whether or not to add -lc for building shared libraries. | |
29400 | build_libtool_need_lc=$archive_cmds_need_lc | |
29401 | ||
29402 | # Whether or not to disallow shared libs when runtime libs are static. | |
29403 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
29404 | ||
29405 | # Compiler flag to allow reflexive dlopens. | |
29406 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
29407 | ||
29408 | # Compiler flag to generate shared objects directly from archives. | |
29409 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
29410 | ||
29411 | # Whether the compiler copes with passing no objects directly. | |
29412 | compiler_needs_object=$lt_compiler_needs_object | |
29413 | ||
29414 | # Create an old-style archive from a shared archive. | |
29415 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
29416 | ||
29417 | # Create a temporary old-style archive to link instead of a shared archive. | |
29418 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
29419 | ||
29420 | # Commands used to build a shared archive. | |
29421 | archive_cmds=$lt_archive_cmds | |
29422 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
29423 | ||
29424 | # Commands used to build a loadable module if different from building | |
29425 | # a shared archive. | |
29426 | module_cmds=$lt_module_cmds | |
29427 | module_expsym_cmds=$lt_module_expsym_cmds | |
29428 | ||
29429 | # Whether we are building with GNU ld or not. | |
29430 | with_gnu_ld=$lt_with_gnu_ld | |
29431 | ||
29432 | # Flag that allows shared libraries with undefined symbols to be built. | |
29433 | allow_undefined_flag=$lt_allow_undefined_flag | |
29434 | ||
29435 | # Flag that enforces no undefined symbols. | |
29436 | no_undefined_flag=$lt_no_undefined_flag | |
29437 | ||
29438 | # Flag to hardcode \$libdir into a binary during linking. | |
29439 | # This must work even if \$libdir does not exist | |
29440 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
29441 | ||
29442 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29443 | # during linking. This must work even if \$libdir does not exist. | |
29444 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
29445 | ||
29446 | # Whether we need a single "-rpath" flag with a separated argument. | |
29447 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
29448 | ||
29449 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29450 | # DIR into the resulting binary. | |
29451 | hardcode_direct=$hardcode_direct | |
29452 | ||
29453 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29454 | # DIR into the resulting binary and the resulting library dependency is | |
29455 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29456 | # library is relocated. | |
29457 | hardcode_direct_absolute=$hardcode_direct_absolute | |
29458 | ||
29459 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29460 | # into the resulting binary. | |
29461 | hardcode_minus_L=$hardcode_minus_L | |
29462 | ||
29463 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29464 | # into the resulting binary. | |
29465 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
29466 | ||
29467 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29468 | # into the library and all subsequent libraries and executables linked | |
29469 | # against it. | |
29470 | hardcode_automatic=$hardcode_automatic | |
29471 | ||
29472 | # Set to yes if linker adds runtime paths of dependent libraries | |
29473 | # to runtime path list. | |
29474 | inherit_rpath=$inherit_rpath | |
29475 | ||
29476 | # Whether libtool must link a program against all its dependency libraries. | |
29477 | link_all_deplibs=$link_all_deplibs | |
29478 | ||
29479 | # Fix the shell variable \$srcfile for the compiler. | |
29480 | fix_srcfile_path=$lt_fix_srcfile_path | |
29481 | ||
29482 | # Set to "yes" if exported symbols are required. | |
29483 | always_export_symbols=$always_export_symbols | |
29484 | ||
29485 | # The commands to list exported symbols. | |
29486 | export_symbols_cmds=$lt_export_symbols_cmds | |
29487 | ||
29488 | # Symbols that should not be listed in the preloaded symbols. | |
29489 | exclude_expsyms=$lt_exclude_expsyms | |
29490 | ||
29491 | # Symbols that must always be exported. | |
29492 | include_expsyms=$lt_include_expsyms | |
29493 | ||
29494 | # Commands necessary for linking programs (against libraries) with templates. | |
29495 | prelink_cmds=$lt_prelink_cmds | |
29496 | ||
29497 | # Specify filename containing input files. | |
29498 | file_list_spec=$lt_file_list_spec | |
29499 | ||
29500 | # How to hardcode a shared library path into an executable. | |
29501 | hardcode_action=$hardcode_action | |
29502 | ||
d58dead8 PG |
29503 | # The directories searched by this compiler when creating a shared library. |
29504 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
29505 | ||
1cf3d07d SE |
29506 | # Dependencies to place before and after the objects being linked to |
29507 | # create a shared library. | |
29508 | predep_objects=$lt_predep_objects | |
29509 | postdep_objects=$lt_postdep_objects | |
29510 | predeps=$lt_predeps | |
29511 | postdeps=$lt_postdeps | |
29512 | ||
29513 | # The library search path used internally by the compiler when linking | |
29514 | # a shared library. | |
29515 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
29516 | ||
29517 | # ### END LIBTOOL CONFIG | |
29518 | ||
29519 | _LT_EOF | |
29520 | ||
29521 | case $host_os in | |
29522 | aix3*) | |
29523 | cat <<\_LT_EOF >> "$cfgfile" | |
29524 | # AIX sometimes has problems with the GCC collect2 program. For some | |
29525 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
29526 | # vanish in a puff of smoke. | |
29527 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
29528 | COLLECT_NAMES= | |
29529 | export COLLECT_NAMES | |
29530 | fi | |
29531 | _LT_EOF | |
29532 | ;; | |
29533 | esac | |
29534 | ||
29535 | ||
29536 | ltmain="$ac_aux_dir/ltmain.sh" | |
29537 | ||
29538 | ||
29539 | # We use sed instead of cat because bash on DJGPP gets confused if | |
29540 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
29541 | # text mode, it properly converts lines to CR/LF. This bash problem | |
29542 | # is reportedly fixed, but why not run on old versions too? | |
29543 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
29544 | || (rm -f "$cfgfile"; exit 1) | |
29545 | ||
29546 | case $xsi_shell in | |
29547 | yes) | |
29548 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 29549 | |
1cf3d07d SE |
29550 | # func_dirname file append nondir_replacement |
29551 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29552 | # otherwise set result to NONDIR_REPLACEMENT. | |
29553 | func_dirname () | |
29554 | { | |
29555 | case ${1} in | |
29556 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29557 | * ) func_dirname_result="${3}" ;; | |
29558 | esac | |
29559 | } | |
29560 | ||
29561 | # func_basename file | |
29562 | func_basename () | |
29563 | { | |
29564 | func_basename_result="${1##*/}" | |
29565 | } | |
29566 | ||
d58dead8 PG |
29567 | # func_dirname_and_basename file append nondir_replacement |
29568 | # perform func_basename and func_dirname in a single function | |
29569 | # call: | |
29570 | # dirname: Compute the dirname of FILE. If nonempty, | |
29571 | # add APPEND to the result, otherwise set result | |
29572 | # to NONDIR_REPLACEMENT. | |
29573 | # value returned in "$func_dirname_result" | |
29574 | # basename: Compute filename of FILE. | |
29575 | # value retuned in "$func_basename_result" | |
29576 | # Implementation must be kept synchronized with func_dirname | |
29577 | # and func_basename. For efficiency, we do not delegate to | |
29578 | # those functions but instead duplicate the functionality here. | |
29579 | func_dirname_and_basename () | |
29580 | { | |
29581 | case ${1} in | |
29582 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29583 | * ) func_dirname_result="${3}" ;; | |
29584 | esac | |
29585 | func_basename_result="${1##*/}" | |
29586 | } | |
29587 | ||
1cf3d07d SE |
29588 | # func_stripname prefix suffix name |
29589 | # strip PREFIX and SUFFIX off of NAME. | |
29590 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29591 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29592 | # dot (in which case that matches only a dot). | |
29593 | func_stripname () | |
29594 | { | |
29595 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
29596 | # positional parameters, so assign one to ordinary parameter first. | |
29597 | func_stripname_result=${3} | |
29598 | func_stripname_result=${func_stripname_result#"${1}"} | |
29599 | func_stripname_result=${func_stripname_result%"${2}"} | |
29600 | } | |
29601 | ||
29602 | # func_opt_split | |
29603 | func_opt_split () | |
29604 | { | |
29605 | func_opt_split_opt=${1%%=*} | |
29606 | func_opt_split_arg=${1#*=} | |
29607 | } | |
29608 | ||
29609 | # func_lo2o object | |
29610 | func_lo2o () | |
29611 | { | |
29612 | case ${1} in | |
29613 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
29614 | *) func_lo2o_result=${1} ;; | |
29615 | esac | |
29616 | } | |
d58dead8 PG |
29617 | |
29618 | # func_xform libobj-or-source | |
29619 | func_xform () | |
29620 | { | |
29621 | func_xform_result=${1%.*}.lo | |
29622 | } | |
29623 | ||
29624 | # func_arith arithmetic-term... | |
29625 | func_arith () | |
29626 | { | |
29627 | func_arith_result=$(( $* )) | |
29628 | } | |
29629 | ||
29630 | # func_len string | |
29631 | # STRING may not start with a hyphen. | |
29632 | func_len () | |
29633 | { | |
29634 | func_len_result=${#1} | |
29635 | } | |
29636 | ||
1cf3d07d SE |
29637 | _LT_EOF |
29638 | ;; | |
29639 | *) # Bourne compatible functions. | |
29640 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 29641 | |
1cf3d07d SE |
29642 | # func_dirname file append nondir_replacement |
29643 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29644 | # otherwise set result to NONDIR_REPLACEMENT. | |
29645 | func_dirname () | |
29646 | { | |
29647 | # Extract subdirectory from the argument. | |
43e02a8a | 29648 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
29649 | if test "X$func_dirname_result" = "X${1}"; then |
29650 | func_dirname_result="${3}" | |
29651 | else | |
29652 | func_dirname_result="$func_dirname_result${2}" | |
29653 | fi | |
29654 | } | |
29655 | ||
29656 | # func_basename file | |
29657 | func_basename () | |
29658 | { | |
43e02a8a | 29659 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
29660 | } |
29661 | ||
d58dead8 | 29662 | |
1cf3d07d SE |
29663 | # func_stripname prefix suffix name |
29664 | # strip PREFIX and SUFFIX off of NAME. | |
29665 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29666 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29667 | # dot (in which case that matches only a dot). | |
29668 | # func_strip_suffix prefix name | |
29669 | func_stripname () | |
29670 | { | |
29671 | case ${2} in | |
43e02a8a RW |
29672 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
29673 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
29674 | esac |
29675 | } | |
29676 | ||
29677 | # sed scripts: | |
29678 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
29679 | my_sed_long_arg='1s/^-[^=]*=//' | |
29680 | ||
29681 | # func_opt_split | |
29682 | func_opt_split () | |
29683 | { | |
43e02a8a RW |
29684 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
29685 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
29686 | } |
29687 | ||
29688 | # func_lo2o object | |
29689 | func_lo2o () | |
29690 | { | |
43e02a8a | 29691 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 29692 | } |
d58dead8 PG |
29693 | |
29694 | # func_xform libobj-or-source | |
29695 | func_xform () | |
29696 | { | |
43e02a8a | 29697 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
d58dead8 PG |
29698 | } |
29699 | ||
29700 | # func_arith arithmetic-term... | |
29701 | func_arith () | |
29702 | { | |
29703 | func_arith_result=`expr "$@"` | |
29704 | } | |
29705 | ||
29706 | # func_len string | |
29707 | # STRING may not start with a hyphen. | |
29708 | func_len () | |
29709 | { | |
29710 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
29711 | } | |
29712 | ||
1cf3d07d SE |
29713 | _LT_EOF |
29714 | esac | |
29715 | ||
29716 | case $lt_shell_append in | |
29717 | yes) | |
29718 | cat << \_LT_EOF >> "$cfgfile" | |
29719 | ||
29720 | # func_append var value | |
29721 | # Append VALUE to the end of shell variable VAR. | |
29722 | func_append () | |
29723 | { | |
29724 | eval "$1+=\$2" | |
29725 | } | |
29726 | _LT_EOF | |
29727 | ;; | |
29728 | *) | |
29729 | cat << \_LT_EOF >> "$cfgfile" | |
29730 | ||
29731 | # func_append var value | |
29732 | # Append VALUE to the end of shell variable VAR. | |
29733 | func_append () | |
29734 | { | |
29735 | eval "$1=\$$1\$2" | |
29736 | } | |
d58dead8 | 29737 | |
1cf3d07d SE |
29738 | _LT_EOF |
29739 | ;; | |
29740 | esac | |
29741 | ||
29742 | ||
29743 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
29744 | || (rm -f "$cfgfile"; exit 1) | |
29745 | ||
29746 | mv -f "$cfgfile" "$ofile" || | |
29747 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
29748 | chmod +x "$ofile" | |
29749 | ||
29750 | ||
29751 | cat <<_LT_EOF >> "$ofile" | |
29752 | ||
29753 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
29754 | ||
29755 | # The linker used to build libraries. | |
29756 | LD=$lt_LD_FC | |
29757 | ||
43e02a8a RW |
29758 | # How to create reloadable object files. |
29759 | reload_flag=$lt_reload_flag_FC | |
29760 | reload_cmds=$lt_reload_cmds_FC | |
29761 | ||
1cf3d07d SE |
29762 | # Commands used to build an old-style archive. |
29763 | old_archive_cmds=$lt_old_archive_cmds_FC | |
29764 | ||
29765 | # A language specific compiler. | |
29766 | CC=$lt_compiler_FC | |
29767 | ||
29768 | # Is the compiler the GNU compiler? | |
29769 | with_gcc=$GCC_FC | |
29770 | ||
29771 | # Compiler flag to turn off builtin functions. | |
29772 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
29773 | ||
29774 | # How to pass a linker flag through the compiler. | |
29775 | wl=$lt_lt_prog_compiler_wl_FC | |
29776 | ||
29777 | # Additional compiler flags for building library objects. | |
29778 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
29779 | ||
29780 | # Compiler flag to prevent dynamic linking. | |
29781 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
29782 | ||
29783 | # Does compiler simultaneously support -c and -o options? | |
29784 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
29785 | ||
29786 | # Whether or not to add -lc for building shared libraries. | |
29787 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
29788 | ||
29789 | # Whether or not to disallow shared libs when runtime libs are static. | |
29790 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
29791 | ||
29792 | # Compiler flag to allow reflexive dlopens. | |
29793 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
29794 | ||
29795 | # Compiler flag to generate shared objects directly from archives. | |
29796 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
29797 | ||
29798 | # Whether the compiler copes with passing no objects directly. | |
29799 | compiler_needs_object=$lt_compiler_needs_object_FC | |
29800 | ||
29801 | # Create an old-style archive from a shared archive. | |
29802 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
29803 | ||
29804 | # Create a temporary old-style archive to link instead of a shared archive. | |
29805 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
29806 | ||
29807 | # Commands used to build a shared archive. | |
29808 | archive_cmds=$lt_archive_cmds_FC | |
29809 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
29810 | ||
29811 | # Commands used to build a loadable module if different from building | |
29812 | # a shared archive. | |
29813 | module_cmds=$lt_module_cmds_FC | |
29814 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
29815 | ||
29816 | # Whether we are building with GNU ld or not. | |
29817 | with_gnu_ld=$lt_with_gnu_ld_FC | |
29818 | ||
29819 | # Flag that allows shared libraries with undefined symbols to be built. | |
29820 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
29821 | ||
29822 | # Flag that enforces no undefined symbols. | |
29823 | no_undefined_flag=$lt_no_undefined_flag_FC | |
29824 | ||
29825 | # Flag to hardcode \$libdir into a binary during linking. | |
29826 | # This must work even if \$libdir does not exist | |
29827 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
29828 | ||
29829 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29830 | # during linking. This must work even if \$libdir does not exist. | |
29831 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
29832 | ||
29833 | # Whether we need a single "-rpath" flag with a separated argument. | |
29834 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
29835 | ||
29836 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29837 | # DIR into the resulting binary. | |
29838 | hardcode_direct=$hardcode_direct_FC | |
29839 | ||
29840 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29841 | # DIR into the resulting binary and the resulting library dependency is | |
29842 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29843 | # library is relocated. | |
29844 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
29845 | ||
29846 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29847 | # into the resulting binary. | |
29848 | hardcode_minus_L=$hardcode_minus_L_FC | |
29849 | ||
29850 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29851 | # into the resulting binary. | |
29852 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
29853 | ||
29854 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29855 | # into the library and all subsequent libraries and executables linked | |
29856 | # against it. | |
29857 | hardcode_automatic=$hardcode_automatic_FC | |
29858 | ||
29859 | # Set to yes if linker adds runtime paths of dependent libraries | |
29860 | # to runtime path list. | |
29861 | inherit_rpath=$inherit_rpath_FC | |
29862 | ||
29863 | # Whether libtool must link a program against all its dependency libraries. | |
29864 | link_all_deplibs=$link_all_deplibs_FC | |
29865 | ||
29866 | # Fix the shell variable \$srcfile for the compiler. | |
29867 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
29868 | ||
29869 | # Set to "yes" if exported symbols are required. | |
29870 | always_export_symbols=$always_export_symbols_FC | |
29871 | ||
29872 | # The commands to list exported symbols. | |
29873 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
29874 | ||
29875 | # Symbols that should not be listed in the preloaded symbols. | |
29876 | exclude_expsyms=$lt_exclude_expsyms_FC | |
29877 | ||
29878 | # Symbols that must always be exported. | |
29879 | include_expsyms=$lt_include_expsyms_FC | |
29880 | ||
29881 | # Commands necessary for linking programs (against libraries) with templates. | |
29882 | prelink_cmds=$lt_prelink_cmds_FC | |
29883 | ||
29884 | # Specify filename containing input files. | |
29885 | file_list_spec=$lt_file_list_spec_FC | |
29886 | ||
29887 | # How to hardcode a shared library path into an executable. | |
29888 | hardcode_action=$hardcode_action_FC | |
29889 | ||
d58dead8 PG |
29890 | # The directories searched by this compiler when creating a shared library. |
29891 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
29892 | ||
1cf3d07d SE |
29893 | # Dependencies to place before and after the objects being linked to |
29894 | # create a shared library. | |
29895 | predep_objects=$lt_predep_objects_FC | |
29896 | postdep_objects=$lt_postdep_objects_FC | |
29897 | predeps=$lt_predeps_FC | |
29898 | postdeps=$lt_postdeps_FC | |
29899 | ||
29900 | # The library search path used internally by the compiler when linking | |
29901 | # a shared library. | |
29902 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
29903 | ||
29904 | # ### END LIBTOOL TAG CONFIG: FC | |
29905 | _LT_EOF | |
29906 | ||
679c0f9a | 29907 | ;; |
5213506e | 29908 | "gstdint.h":C) |
c13e029b PB |
29909 | if test "$GCC" = yes; then |
29910 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
29911 | else | |
29912 | echo "/* generated for $CC */" > tmp-stdint.h | |
29913 | fi | |
4c4b3eb0 | 29914 | |
c13e029b PB |
29915 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29916 | ||
29917 | #ifndef GCC_GENERATED_STDINT_H | |
29918 | #define GCC_GENERATED_STDINT_H 1 | |
29919 | ||
29920 | #include <sys/types.h> | |
4c4b3eb0 | 29921 | EOF |
4c4b3eb0 | 29922 | |
c13e029b PB |
29923 | if test "$acx_cv_header_stdint" != stdint.h; then |
29924 | echo "#include <stddef.h>" >> tmp-stdint.h | |
29925 | fi | |
29926 | if test "$acx_cv_header_stdint" != stddef.h; then | |
29927 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
29928 | fi | |
29929 | ||
29930 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29931 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
29932 | #ifdef __int8_t_defined | |
29933 | #define _INT8_T | |
29934 | #define _INT16_T | |
29935 | #define _INT32_T | |
29936 | #endif | |
29937 | #ifdef __uint32_t_defined | |
29938 | #define _UINT32_T | |
29939 | #endif | |
29940 | ||
29941 | EOF | |
29942 | ||
29943 | # ----------------- done header, emit basic int types ------------- | |
29944 | if test "$acx_cv_header_stdint" = stddef.h; then | |
29945 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29946 | ||
29947 | #ifndef _UINT8_T | |
29948 | #define _UINT8_T | |
29949 | #ifndef __uint8_t_defined | |
29950 | #define __uint8_t_defined | |
b9497ab5 | 29951 | #ifndef uint8_t |
c13e029b PB |
29952 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
29953 | #endif | |
29954 | #endif | |
b9497ab5 | 29955 | #endif |
c13e029b PB |
29956 | |
29957 | #ifndef _UINT16_T | |
29958 | #define _UINT16_T | |
29959 | #ifndef __uint16_t_defined | |
29960 | #define __uint16_t_defined | |
b9497ab5 | 29961 | #ifndef uint16_t |
c13e029b PB |
29962 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
29963 | #endif | |
29964 | #endif | |
b9497ab5 | 29965 | #endif |
c13e029b PB |
29966 | |
29967 | #ifndef _UINT32_T | |
29968 | #define _UINT32_T | |
29969 | #ifndef __uint32_t_defined | |
29970 | #define __uint32_t_defined | |
b9497ab5 | 29971 | #ifndef uint32_t |
c13e029b PB |
29972 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
29973 | #endif | |
29974 | #endif | |
b9497ab5 | 29975 | #endif |
c13e029b PB |
29976 | |
29977 | #ifndef _INT8_T | |
29978 | #define _INT8_T | |
29979 | #ifndef __int8_t_defined | |
29980 | #define __int8_t_defined | |
b9497ab5 | 29981 | #ifndef int8_t |
c13e029b PB |
29982 | typedef $acx_cv_type_int8_t int8_t; |
29983 | #endif | |
29984 | #endif | |
b9497ab5 | 29985 | #endif |
c13e029b PB |
29986 | |
29987 | #ifndef _INT16_T | |
29988 | #define _INT16_T | |
29989 | #ifndef __int16_t_defined | |
29990 | #define __int16_t_defined | |
b9497ab5 | 29991 | #ifndef int16_t |
c13e029b PB |
29992 | typedef $acx_cv_type_int16_t int16_t; |
29993 | #endif | |
29994 | #endif | |
b9497ab5 | 29995 | #endif |
c13e029b PB |
29996 | |
29997 | #ifndef _INT32_T | |
29998 | #define _INT32_T | |
29999 | #ifndef __int32_t_defined | |
30000 | #define __int32_t_defined | |
b9497ab5 | 30001 | #ifndef int32_t |
c13e029b PB |
30002 | typedef $acx_cv_type_int32_t int32_t; |
30003 | #endif | |
30004 | #endif | |
b9497ab5 | 30005 | #endif |
c13e029b PB |
30006 | EOF |
30007 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
30008 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30009 | ||
30010 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
30011 | #ifndef _INT8_T | |
30012 | #define _INT8_T | |
30013 | #endif | |
30014 | #ifndef _INT16_T | |
30015 | #define _INT16_T | |
30016 | #endif | |
30017 | #ifndef _INT32_T | |
30018 | #define _INT32_T | |
30019 | #endif | |
30020 | ||
30021 | #ifndef _UINT8_T | |
30022 | #define _UINT8_T | |
30023 | #ifndef __uint8_t_defined | |
30024 | #define __uint8_t_defined | |
b9497ab5 | 30025 | #ifndef uint8_t |
c13e029b PB |
30026 | typedef u_int8_t uint8_t; |
30027 | #endif | |
30028 | #endif | |
b9497ab5 | 30029 | #endif |
c13e029b PB |
30030 | |
30031 | #ifndef _UINT16_T | |
30032 | #define _UINT16_T | |
30033 | #ifndef __uint16_t_defined | |
30034 | #define __uint16_t_defined | |
b9497ab5 | 30035 | #ifndef uint16_t |
c13e029b PB |
30036 | typedef u_int16_t uint16_t; |
30037 | #endif | |
30038 | #endif | |
b9497ab5 | 30039 | #endif |
c13e029b PB |
30040 | |
30041 | #ifndef _UINT32_T | |
30042 | #define _UINT32_T | |
30043 | #ifndef __uint32_t_defined | |
30044 | #define __uint32_t_defined | |
b9497ab5 | 30045 | #ifndef uint32_t |
c13e029b PB |
30046 | typedef u_int32_t uint32_t; |
30047 | #endif | |
30048 | #endif | |
b9497ab5 | 30049 | #endif |
c13e029b PB |
30050 | EOF |
30051 | else | |
30052 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30053 | ||
30054 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
30055 | #ifndef _INT8_T | |
30056 | #define _INT8_T | |
30057 | #endif | |
30058 | #ifndef _INT16_T | |
30059 | #define _INT16_T | |
30060 | #endif | |
30061 | #ifndef _INT32_T | |
30062 | #define _INT32_T | |
30063 | #endif | |
30064 | #ifndef _UINT8_T | |
30065 | #define _UINT8_T | |
30066 | #endif | |
30067 | #ifndef _UINT16_T | |
30068 | #define _UINT16_T | |
30069 | #endif | |
30070 | #ifndef _UINT32_T | |
30071 | #define _UINT32_T | |
30072 | #endif | |
30073 | EOF | |
30074 | fi | |
30075 | ||
30076 | # ------------- done basic int types, emit int64_t types ------------ | |
30077 | if test "$ac_cv_type_uint64_t" = yes; then | |
30078 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30079 | ||
30080 | /* system headers have good uint64_t and int64_t */ | |
30081 | #ifndef _INT64_T | |
30082 | #define _INT64_T | |
30083 | #endif | |
30084 | #ifndef _UINT64_T | |
30085 | #define _UINT64_T | |
30086 | #endif | |
30087 | EOF | |
30088 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
30089 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30090 | ||
30091 | /* system headers have an u_int64_t (and int64_t) */ | |
30092 | #ifndef _INT64_T | |
30093 | #define _INT64_T | |
30094 | #endif | |
30095 | #ifndef _UINT64_T | |
30096 | #define _UINT64_T | |
30097 | #ifndef __uint64_t_defined | |
30098 | #define __uint64_t_defined | |
b9497ab5 | 30099 | #ifndef uint64_t |
c13e029b PB |
30100 | typedef u_int64_t uint64_t; |
30101 | #endif | |
30102 | #endif | |
b9497ab5 | 30103 | #endif |
c13e029b PB |
30104 | EOF |
30105 | elif test -n "$acx_cv_type_int64_t"; then | |
30106 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30107 | ||
30108 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
30109 | #ifndef _INT64_T | |
30110 | #define _INT64_T | |
b9497ab5 | 30111 | #ifndef int64_t |
c13e029b PB |
30112 | typedef $acx_cv_type_int64_t int64_t; |
30113 | #endif | |
b9497ab5 | 30114 | #endif |
c13e029b PB |
30115 | #ifndef _UINT64_T |
30116 | #define _UINT64_T | |
30117 | #ifndef __uint64_t_defined | |
30118 | #define __uint64_t_defined | |
b9497ab5 | 30119 | #ifndef uint64_t |
c13e029b PB |
30120 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
30121 | #endif | |
30122 | #endif | |
b9497ab5 | 30123 | #endif |
c13e029b PB |
30124 | EOF |
30125 | else | |
30126 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30127 | ||
30128 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
30129 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
30130 | #ifndef _INT64_T | |
30131 | #define _INT64_T | |
30132 | #ifndef __int64_t_defined | |
b9497ab5 | 30133 | #ifndef int64_t |
c13e029b PB |
30134 | typedef long long int64_t; |
30135 | #endif | |
30136 | #endif | |
b9497ab5 | 30137 | #endif |
c13e029b PB |
30138 | #ifndef _UINT64_T |
30139 | #define _UINT64_T | |
b9497ab5 | 30140 | #ifndef uint64_t |
c13e029b PB |
30141 | typedef unsigned long long uint64_t; |
30142 | #endif | |
b9497ab5 | 30143 | #endif |
c13e029b PB |
30144 | |
30145 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
30146 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
30147 | does not implement __extension__. But that compiler doesn't define | |
30148 | __GNUC_MINOR__. */ | |
30149 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
30150 | # define __extension__ | |
30151 | # endif | |
30152 | ||
30153 | # ifndef _INT64_T | |
30154 | # define _INT64_T | |
b9497ab5 | 30155 | # ifndef int64_t |
c13e029b PB |
30156 | __extension__ typedef long long int64_t; |
30157 | # endif | |
b9497ab5 | 30158 | # endif |
c13e029b PB |
30159 | # ifndef _UINT64_T |
30160 | # define _UINT64_T | |
b9497ab5 | 30161 | # ifndef uint64_t |
c13e029b PB |
30162 | __extension__ typedef unsigned long long uint64_t; |
30163 | # endif | |
b9497ab5 | 30164 | # endif |
c13e029b PB |
30165 | |
30166 | #elif !defined __STRICT_ANSI__ | |
30167 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
30168 | ||
30169 | # ifndef _INT64_T | |
30170 | # define _INT64_T | |
b9497ab5 | 30171 | # ifndef int64_t |
c13e029b PB |
30172 | typedef __int64 int64_t; |
30173 | # endif | |
b9497ab5 | 30174 | # endif |
c13e029b PB |
30175 | # ifndef _UINT64_T |
30176 | # define _UINT64_T | |
b9497ab5 | 30177 | # ifndef uint64_t |
c13e029b PB |
30178 | typedef unsigned __int64 uint64_t; |
30179 | # endif | |
b9497ab5 | 30180 | # endif |
c13e029b PB |
30181 | # endif /* compiler */ |
30182 | ||
30183 | #endif /* ANSI version */ | |
30184 | EOF | |
30185 | fi | |
30186 | ||
30187 | # ------------- done int64_t types, emit intptr types ------------ | |
30188 | if test "$ac_cv_type_uintptr_t" != yes; then | |
30189 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30190 | ||
30191 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
30192 | #ifndef __uintptr_t_defined | |
b9497ab5 | 30193 | #ifndef uintptr_t |
c13e029b PB |
30194 | typedef u$acx_cv_type_intptr_t uintptr_t; |
30195 | #endif | |
b9497ab5 | 30196 | #endif |
c13e029b | 30197 | #ifndef __intptr_t_defined |
b9497ab5 | 30198 | #ifndef intptr_t |
c13e029b PB |
30199 | typedef $acx_cv_type_intptr_t intptr_t; |
30200 | #endif | |
b9497ab5 | 30201 | #endif |
c13e029b PB |
30202 | EOF |
30203 | fi | |
30204 | ||
30205 | # ------------- done intptr types, emit int_least types ------------ | |
4c4b3eb0 | 30206 | if test "$ac_cv_type_int_least32_t" != yes; then |
c13e029b | 30207 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
30208 | |
30209 | /* Define int_least types */ | |
30210 | typedef int8_t int_least8_t; | |
30211 | typedef int16_t int_least16_t; | |
30212 | typedef int32_t int_least32_t; | |
c13e029b | 30213 | #ifdef _INT64_T |
4c4b3eb0 | 30214 | typedef int64_t int_least64_t; |
c13e029b | 30215 | #endif |
4c4b3eb0 PB |
30216 | |
30217 | typedef uint8_t uint_least8_t; | |
30218 | typedef uint16_t uint_least16_t; | |
30219 | typedef uint32_t uint_least32_t; | |
c13e029b | 30220 | #ifdef _UINT64_T |
4c4b3eb0 | 30221 | typedef uint64_t uint_least64_t; |
c13e029b | 30222 | #endif |
4c4b3eb0 PB |
30223 | EOF |
30224 | fi | |
30225 | ||
c13e029b | 30226 | # ------------- done intptr types, emit int_fast types ------------ |
4c4b3eb0 | 30227 | if test "$ac_cv_type_int_fast32_t" != yes; then |
c13e029b | 30228 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
30229 | |
30230 | /* Define int_fast types. short is often slow */ | |
30231 | typedef int8_t int_fast8_t; | |
30232 | typedef int int_fast16_t; | |
30233 | typedef int32_t int_fast32_t; | |
c13e029b | 30234 | #ifdef _INT64_T |
4c4b3eb0 | 30235 | typedef int64_t int_fast64_t; |
c13e029b | 30236 | #endif |
4c4b3eb0 PB |
30237 | |
30238 | typedef uint8_t uint_fast8_t; | |
30239 | typedef unsigned int uint_fast16_t; | |
30240 | typedef uint32_t uint_fast32_t; | |
c13e029b | 30241 | #ifdef _UINT64_T |
4c4b3eb0 | 30242 | typedef uint64_t uint_fast64_t; |
c13e029b PB |
30243 | #endif |
30244 | EOF | |
30245 | fi | |
30246 | ||
30247 | if test "$ac_cv_type_uintmax_t" != yes; then | |
30248 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30249 | ||
30250 | /* Define intmax based on what we found */ | |
b9497ab5 | 30251 | #ifndef intmax_t |
c13e029b PB |
30252 | #ifdef _INT64_T |
30253 | typedef int64_t intmax_t; | |
30254 | #else | |
30255 | typedef long intmax_t; | |
30256 | #endif | |
b9497ab5 RO |
30257 | #endif |
30258 | #ifndef uintmax_t | |
c13e029b PB |
30259 | #ifdef _UINT64_T |
30260 | typedef uint64_t uintmax_t; | |
30261 | #else | |
30262 | typedef unsigned long uintmax_t; | |
30263 | #endif | |
b9497ab5 | 30264 | #endif |
4c4b3eb0 PB |
30265 | EOF |
30266 | fi | |
30267 | ||
c13e029b PB |
30268 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
30269 | ||
30270 | #endif /* GCC_GENERATED_STDINT_H */ | |
30271 | EOF | |
4c4b3eb0 | 30272 | |
c13e029b PB |
30273 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
30274 | rm -f tmp-stdint.h | |
4c4b3eb0 | 30275 | else |
c13e029b | 30276 | mv -f tmp-stdint.h gstdint.h |
4c4b3eb0 PB |
30277 | fi |
30278 | ||
30279 | ;; | |
5213506e | 30280 | |
6de9cd9a | 30281 | esac |
5213506e | 30282 | done # for ac_tag |
6de9cd9a | 30283 | |
6de9cd9a | 30284 | |
5213506e | 30285 | as_fn_exit 0 |
6de9cd9a | 30286 | _ACEOF |
6de9cd9a DN |
30287 | ac_clean_files=$ac_clean_files_save |
30288 | ||
5213506e | 30289 | test $ac_write_fail = 0 || |
22e05272 | 30290 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 30291 | |
6de9cd9a DN |
30292 | |
30293 | # configure is writing to config.log, and then calls config.status. | |
30294 | # config.status does its own redirection, appending to config.log. | |
30295 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
30296 | # by configure, so config.status won't be able to write to it; its | |
30297 | # output is simply discarded. So we exec the FD to /dev/null, | |
30298 | # effectively closing config.log, so it can be properly (re)opened and | |
30299 | # appended to by config.status. When coming back to configure, we | |
30300 | # need to make the FD available again. | |
30301 | if test "$no_create" != yes; then | |
30302 | ac_cs_success=: | |
30303 | ac_config_status_args= | |
30304 | test "$silent" = yes && | |
30305 | ac_config_status_args="$ac_config_status_args --quiet" | |
30306 | exec 5>/dev/null | |
30307 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
30308 | exec 5>>config.log | |
30309 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
30310 | # would make configure fail if this is the last instruction. | |
22e05272 | 30311 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
30312 | fi |
30313 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
30314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
30315 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6de9cd9a DN |
30316 | fi |
30317 |