]>
Commit | Line | Data |
---|---|---|
6de9cd9a DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
6de9cd9a | 8 | # |
6de9cd9a DN |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
6de9cd9a | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
6de9cd9a | 31 | fi |
6de9cd9a | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
6de9cd9a DN |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
6de9cd9a DN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
21be0a5a | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
43e02a8a RW |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
21be0a5a | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
5213506e RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6de9cd9a | 219 | do |
5213506e RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
5213506e RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
6de9cd9a | 274 | else |
5213506e RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
6de9cd9a | 279 | fi |
5213506e RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
5213506e RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
5213506e RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
6de9cd9a | 426 | |
5213506e RW |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
5213506e | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
5213506e RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
6de9cd9a | 445 | |
5213506e | 446 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
c0e7e2bf | 464 | |
38d24731 RW |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f489fba1 | 471 | |
6de9cd9a | 472 | |
5213506e RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
6de9cd9a | 482 | sed ' |
5213506e RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
6de9cd9a | 487 | N |
5213506e RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
6de9cd9a | 490 | t loop |
5213506e | 491 | s/-\n.*// |
6de9cd9a | 492 | ' >$as_me.lineno && |
5213506e RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
6de9cd9a | 495 | |
22e05272 JM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
6de9cd9a DN |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
6de9cd9a DN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
5213506e RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
6de9cd9a DN |
519 | esac |
520 | ||
5213506e RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 524 | else |
5213506e RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 527 | fi |
5213506e RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 530 | as_ln_s='ln -s' |
5213506e RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
5213506e | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
5213506e RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
38d24731 | 541 | fi |
6de9cd9a | 542 | else |
22e05272 | 543 | as_ln_s='cp -pR' |
6de9cd9a | 544 | fi |
5213506e RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
6de9cd9a DN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
5213506e | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
1cf3d07d SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
1cf3d07d | 566 | |
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
5213506e | 569 | |
6de9cd9a | 570 | # Name of the host. |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
6de9cd9a DN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
6de9cd9a DN |
575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
5213506e | 579 | ac_clean_files= |
6de9cd9a | 580 | ac_config_libobj_dir=. |
5213506e | 581 | LIBOBJS= |
6de9cd9a DN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
38d24731 | 586 | |
6de9cd9a DN |
587 | # Identity of this package. |
588 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
589 | PACKAGE_TARNAME='libgfortran' | |
0dce3ca1 FXC |
590 | PACKAGE_VERSION='0.3' |
591 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
6de9cd9a | 592 | PACKAGE_BUGREPORT='' |
5213506e | 593 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
6de9cd9a DN |
594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
5213506e | 598 | #ifdef HAVE_SYS_TYPES_H |
6de9cd9a DN |
599 | # include <sys/types.h> |
600 | #endif | |
5213506e | 601 | #ifdef HAVE_SYS_STAT_H |
6de9cd9a DN |
602 | # include <sys/stat.h> |
603 | #endif | |
5213506e | 604 | #ifdef STDC_HEADERS |
6de9cd9a DN |
605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
5213506e | 608 | # ifdef HAVE_STDLIB_H |
6de9cd9a DN |
609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
5213506e RW |
612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
6de9cd9a DN |
614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
5213506e | 618 | #ifdef HAVE_STRINGS_H |
6de9cd9a DN |
619 | # include <strings.h> |
620 | #endif | |
5213506e | 621 | #ifdef HAVE_INTTYPES_H |
6de9cd9a | 622 | # include <inttypes.h> |
6de9cd9a | 623 | #endif |
5213506e RW |
624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
6de9cd9a DN |
628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
74544378 JB |
631 | ac_header_list= |
632 | ac_func_list= | |
1ec601bf | 633 | ac_c_werror_flag= |
828012a5 | 634 | ac_c_werror_flag= |
5213506e RW |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
3c36aa6b | 639 | get_gcc_base_ver |
1d5cf7fc TK |
640 | HAVE_AVX128_FALSE |
641 | HAVE_AVX128_TRUE | |
47ddb895 | 642 | tmake_file |
5213506e | 643 | IEEE_FLAGS |
8b198102 FXC |
644 | IEEE_SUPPORT |
645 | IEEE_SUPPORT_FALSE | |
646 | IEEE_SUPPORT_TRUE | |
5213506e | 647 | FPU_HOST_HEADER |
1ec601bf FXC |
648 | LIBGFOR_BUILD_QUAD_FALSE |
649 | LIBGFOR_BUILD_QUAD_TRUE | |
650 | LIBQUADINCLUDE | |
651 | LIBQUADLIB_DEP | |
652 | LIBQUADLIB | |
653 | LIBQUADSPEC | |
5213506e RW |
654 | extra_ldflags_libgfortran |
655 | ac_ct_FC | |
656 | FCFLAGS | |
657 | FC | |
658 | enable_static | |
659 | enable_shared | |
7de6ba7a | 660 | lt_host_flags |
9b025925 | 661 | LIBM |
5213506e RW |
662 | OTOOL64 |
663 | OTOOL | |
664 | LIPO | |
665 | NMEDIT | |
666 | DSYMUTIL | |
5213506e RW |
667 | OBJDUMP |
668 | LN_S | |
669 | NM | |
670 | ac_ct_DUMPBIN | |
671 | DUMPBIN | |
5213506e RW |
672 | LIBTOOL |
673 | RANLIB | |
674 | AR | |
675 | AS | |
66dbcf2d RO |
676 | HAVE_HWCAP_FALSE |
677 | HAVE_HWCAP_TRUE | |
678 | HWCAP_LDFLAGS | |
679 | LD | |
680 | FGREP | |
681 | SED | |
5213506e | 682 | SECTION_FLAGS |
2e764ae1 TB |
683 | LIBGOMP_CHECKED_REAL_KINDS |
684 | LIBGOMP_CHECKED_INT_KINDS | |
ee95f928 BS |
685 | LIBGFOR_MINIMAL_FALSE |
686 | LIBGFOR_MINIMAL_TRUE | |
49ea7a0e RO |
687 | LIBGFOR_USE_SYMVER_SUN_FALSE |
688 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
689 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
690 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
5213506e RW |
691 | LIBGFOR_USE_SYMVER_FALSE |
692 | LIBGFOR_USE_SYMVER_TRUE | |
693 | AM_CFLAGS | |
694 | AM_FCFLAGS | |
21be0a5a JB |
695 | toolexeclibdir |
696 | toolexecdir | |
697 | EGREP | |
698 | GREP | |
699 | CPP | |
5213506e RW |
700 | am__fastdepCC_FALSE |
701 | am__fastdepCC_TRUE | |
702 | CCDEPMODE | |
c20fdb91 | 703 | am__nodep |
5213506e RW |
704 | AMDEPBACKSLASH |
705 | AMDEP_FALSE | |
706 | AMDEP_TRUE | |
707 | am__quote | |
708 | am__include | |
709 | DEPDIR | |
710 | OBJEXT | |
711 | EXEEXT | |
712 | ac_ct_CC | |
713 | CPPFLAGS | |
714 | LDFLAGS | |
715 | CFLAGS | |
716 | CC | |
5213506e RW |
717 | multi_basedir |
718 | MAINT | |
719 | MAINTAINER_MODE_FALSE | |
720 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
721 | AM_BACKSLASH |
722 | AM_DEFAULT_VERBOSITY | |
723 | AM_DEFAULT_V | |
724 | AM_V | |
5213506e RW |
725 | am__untar |
726 | am__tar | |
727 | AMTAR | |
728 | am__leading_dot | |
729 | SET_MAKE | |
730 | AWK | |
731 | mkdir_p | |
732 | MKDIR_P | |
733 | INSTALL_STRIP_PROGRAM | |
734 | STRIP | |
735 | install_sh | |
736 | MAKEINFO | |
737 | AUTOHEADER | |
738 | AUTOMAKE | |
739 | AUTOCONF | |
740 | ACLOCAL | |
741 | VERSION | |
742 | PACKAGE | |
743 | CYGPATH_W | |
744 | am__isrc | |
745 | INSTALL_DATA | |
746 | INSTALL_SCRIPT | |
747 | INSTALL_PROGRAM | |
60858d8a | 748 | target_noncanonical |
5213506e RW |
749 | target_os |
750 | target_vendor | |
751 | target_cpu | |
752 | target | |
753 | host_os | |
754 | host_vendor | |
755 | host_cpu | |
756 | host | |
757 | onestep | |
758 | onestep_FALSE | |
759 | onestep_TRUE | |
760 | target_subdir | |
761 | host_subdir | |
762 | build_subdir | |
763 | build_libsubdir | |
764 | build_os | |
765 | build_vendor | |
766 | build_cpu | |
767 | build | |
768 | target_alias | |
769 | host_alias | |
770 | build_alias | |
771 | LIBS | |
772 | ECHO_T | |
773 | ECHO_N | |
774 | ECHO_C | |
775 | DEFS | |
776 | mandir | |
777 | localedir | |
778 | libdir | |
779 | psdir | |
780 | pdfdir | |
781 | dvidir | |
782 | htmldir | |
783 | infodir | |
784 | docdir | |
785 | oldincludedir | |
786 | includedir | |
787 | localstatedir | |
788 | sharedstatedir | |
789 | sysconfdir | |
790 | datadir | |
791 | datarootdir | |
792 | libexecdir | |
793 | sbindir | |
794 | bindir | |
795 | program_transform_name | |
796 | prefix | |
797 | exec_prefix | |
798 | PACKAGE_URL | |
799 | PACKAGE_BUGREPORT | |
800 | PACKAGE_STRING | |
801 | PACKAGE_VERSION | |
802 | PACKAGE_TARNAME | |
803 | PACKAGE_NAME | |
804 | PATH_SEPARATOR | |
805 | SHELL' | |
6de9cd9a | 806 | ac_subst_files='' |
5213506e RW |
807 | ac_user_opts=' |
808 | enable_option_checking | |
809 | with_build_libsubdir | |
810 | enable_version_specific_runtime_libs | |
811 | enable_intermodule | |
22e05272 | 812 | enable_silent_rules |
5213506e RW |
813 | enable_maintainer_mode |
814 | enable_multilib | |
815 | enable_dependency_tracking | |
e8e66971 | 816 | with_toolexeclibdir |
26724ef9 | 817 | enable_cet |
bf382f5f | 818 | enable_symvers |
66dbcf2d | 819 | with_gnu_ld |
5213506e RW |
820 | enable_shared |
821 | enable_static | |
822 | with_pic | |
823 | enable_fast_install | |
5213506e RW |
824 | enable_libtool_lock |
825 | enable_largefile | |
87e6d9dc | 826 | enable_libquadmath_support |
3c36aa6b | 827 | with_gcc_major_version_only |
5213506e RW |
828 | ' |
829 | ac_precious_vars='build_alias | |
830 | host_alias | |
831 | target_alias | |
21be0a5a JB |
832 | CC |
833 | CFLAGS | |
834 | LDFLAGS | |
835 | LIBS | |
5213506e | 836 | CPPFLAGS |
21be0a5a | 837 | CPP |
5213506e | 838 | FC |
21be0a5a | 839 | FCFLAGS' |
5213506e | 840 | |
6de9cd9a DN |
841 | |
842 | # Initialize some variables set by options. | |
843 | ac_init_help= | |
844 | ac_init_version=false | |
5213506e RW |
845 | ac_unrecognized_opts= |
846 | ac_unrecognized_sep= | |
6de9cd9a DN |
847 | # The variables have the same names as the options, with |
848 | # dashes changed to underlines. | |
849 | cache_file=/dev/null | |
850 | exec_prefix=NONE | |
851 | no_create= | |
852 | no_recursion= | |
853 | prefix=NONE | |
854 | program_prefix=NONE | |
855 | program_suffix=NONE | |
856 | program_transform_name=s,x,x, | |
857 | silent= | |
858 | site= | |
859 | srcdir= | |
860 | verbose= | |
861 | x_includes=NONE | |
862 | x_libraries=NONE | |
863 | ||
864 | # Installation directory options. | |
865 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
866 | # and all the variables that are supposed to be based on exec_prefix | |
867 | # by default will actually change. | |
868 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 869 | # (The list follows the same order as the GNU Coding Standards.) |
6de9cd9a DN |
870 | bindir='${exec_prefix}/bin' |
871 | sbindir='${exec_prefix}/sbin' | |
872 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
873 | datarootdir='${prefix}/share' |
874 | datadir='${datarootdir}' | |
6de9cd9a DN |
875 | sysconfdir='${prefix}/etc' |
876 | sharedstatedir='${prefix}/com' | |
877 | localstatedir='${prefix}/var' | |
6de9cd9a DN |
878 | includedir='${prefix}/include' |
879 | oldincludedir='/usr/include' | |
5213506e RW |
880 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
881 | infodir='${datarootdir}/info' | |
882 | htmldir='${docdir}' | |
883 | dvidir='${docdir}' | |
884 | pdfdir='${docdir}' | |
885 | psdir='${docdir}' | |
886 | libdir='${exec_prefix}/lib' | |
887 | localedir='${datarootdir}/locale' | |
888 | mandir='${datarootdir}/man' | |
6de9cd9a DN |
889 | |
890 | ac_prev= | |
5213506e | 891 | ac_dashdash= |
6de9cd9a DN |
892 | for ac_option |
893 | do | |
894 | # If the previous option needs an argument, assign it. | |
895 | if test -n "$ac_prev"; then | |
5213506e | 896 | eval $ac_prev=\$ac_option |
6de9cd9a DN |
897 | ac_prev= |
898 | continue | |
899 | fi | |
900 | ||
5213506e | 901 | case $ac_option in |
22e05272 JM |
902 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
903 | *=) ac_optarg= ;; | |
904 | *) ac_optarg=yes ;; | |
5213506e | 905 | esac |
6de9cd9a DN |
906 | |
907 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
908 | ||
5213506e RW |
909 | case $ac_dashdash$ac_option in |
910 | --) | |
911 | ac_dashdash=yes ;; | |
6de9cd9a DN |
912 | |
913 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
914 | ac_prev=bindir ;; | |
915 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
916 | bindir=$ac_optarg ;; | |
917 | ||
918 | -build | --build | --buil | --bui | --bu) | |
919 | ac_prev=build_alias ;; | |
920 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
921 | build_alias=$ac_optarg ;; | |
922 | ||
923 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
924 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
925 | ac_prev=cache_file ;; | |
926 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
927 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
928 | cache_file=$ac_optarg ;; | |
929 | ||
930 | --config-cache | -C) | |
931 | cache_file=config.cache ;; | |
932 | ||
5213506e | 933 | -datadir | --datadir | --datadi | --datad) |
6de9cd9a | 934 | ac_prev=datadir ;; |
5213506e | 935 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
6de9cd9a DN |
936 | datadir=$ac_optarg ;; |
937 | ||
5213506e RW |
938 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
939 | | --dataroo | --dataro | --datar) | |
940 | ac_prev=datarootdir ;; | |
941 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
942 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
943 | datarootdir=$ac_optarg ;; | |
944 | ||
6de9cd9a | 945 | -disable-* | --disable-*) |
5213506e | 946 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
6de9cd9a | 947 | # Reject names that are not valid shell variable names. |
5213506e | 948 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 949 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
950 | ac_useropt_orig=$ac_useropt |
951 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
952 | case $ac_user_opts in | |
953 | *" | |
954 | "enable_$ac_useropt" | |
955 | "*) ;; | |
956 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
957 | ac_unrecognized_sep=', ';; | |
958 | esac | |
959 | eval enable_$ac_useropt=no ;; | |
960 | ||
961 | -docdir | --docdir | --docdi | --doc | --do) | |
962 | ac_prev=docdir ;; | |
963 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
964 | docdir=$ac_optarg ;; | |
965 | ||
966 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
967 | ac_prev=dvidir ;; | |
968 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
969 | dvidir=$ac_optarg ;; | |
6de9cd9a DN |
970 | |
971 | -enable-* | --enable-*) | |
5213506e | 972 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
6de9cd9a | 973 | # Reject names that are not valid shell variable names. |
5213506e | 974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 975 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
976 | ac_useropt_orig=$ac_useropt |
977 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
978 | case $ac_user_opts in | |
979 | *" | |
980 | "enable_$ac_useropt" | |
981 | "*) ;; | |
982 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
983 | ac_unrecognized_sep=', ';; | |
38d24731 | 984 | esac |
5213506e | 985 | eval enable_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
986 | |
987 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
988 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
989 | | --exec | --exe | --ex) | |
990 | ac_prev=exec_prefix ;; | |
991 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
992 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
993 | | --exec=* | --exe=* | --ex=*) | |
994 | exec_prefix=$ac_optarg ;; | |
995 | ||
996 | -gas | --gas | --ga | --g) | |
997 | # Obsolete; use --with-gas. | |
998 | with_gas=yes ;; | |
999 | ||
1000 | -help | --help | --hel | --he | -h) | |
1001 | ac_init_help=long ;; | |
1002 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1003 | ac_init_help=recursive ;; | |
1004 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1005 | ac_init_help=short ;; | |
1006 | ||
1007 | -host | --host | --hos | --ho) | |
1008 | ac_prev=host_alias ;; | |
1009 | -host=* | --host=* | --hos=* | --ho=*) | |
1010 | host_alias=$ac_optarg ;; | |
1011 | ||
5213506e RW |
1012 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1013 | ac_prev=htmldir ;; | |
1014 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1015 | | --ht=*) | |
1016 | htmldir=$ac_optarg ;; | |
1017 | ||
6de9cd9a DN |
1018 | -includedir | --includedir | --includedi | --included | --include \ |
1019 | | --includ | --inclu | --incl | --inc) | |
1020 | ac_prev=includedir ;; | |
1021 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1022 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1023 | includedir=$ac_optarg ;; | |
1024 | ||
1025 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1026 | ac_prev=infodir ;; | |
1027 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1028 | infodir=$ac_optarg ;; | |
1029 | ||
1030 | -libdir | --libdir | --libdi | --libd) | |
1031 | ac_prev=libdir ;; | |
1032 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1033 | libdir=$ac_optarg ;; | |
1034 | ||
1035 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1036 | | --libexe | --libex | --libe) | |
1037 | ac_prev=libexecdir ;; | |
1038 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1039 | | --libexe=* | --libex=* | --libe=*) | |
1040 | libexecdir=$ac_optarg ;; | |
1041 | ||
5213506e RW |
1042 | -localedir | --localedir | --localedi | --localed | --locale) |
1043 | ac_prev=localedir ;; | |
1044 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1045 | localedir=$ac_optarg ;; | |
1046 | ||
6de9cd9a | 1047 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1048 | | --localstate | --localstat | --localsta | --localst | --locals) |
6de9cd9a DN |
1049 | ac_prev=localstatedir ;; |
1050 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1051 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
6de9cd9a DN |
1052 | localstatedir=$ac_optarg ;; |
1053 | ||
1054 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1055 | ac_prev=mandir ;; | |
1056 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1057 | mandir=$ac_optarg ;; | |
1058 | ||
1059 | -nfp | --nfp | --nf) | |
1060 | # Obsolete; use --without-fp. | |
1061 | with_fp=no ;; | |
1062 | ||
1063 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1064 | | --no-cr | --no-c | -n) | |
1065 | no_create=yes ;; | |
1066 | ||
1067 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1068 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1069 | no_recursion=yes ;; | |
1070 | ||
1071 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1072 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1073 | | --oldin | --oldi | --old | --ol | --o) | |
1074 | ac_prev=oldincludedir ;; | |
1075 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1076 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1077 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1078 | oldincludedir=$ac_optarg ;; | |
1079 | ||
1080 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1081 | ac_prev=prefix ;; | |
1082 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1083 | prefix=$ac_optarg ;; | |
1084 | ||
1085 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1086 | | --program-pre | --program-pr | --program-p) | |
1087 | ac_prev=program_prefix ;; | |
1088 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1089 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1090 | program_prefix=$ac_optarg ;; | |
1091 | ||
1092 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1093 | | --program-suf | --program-su | --program-s) | |
1094 | ac_prev=program_suffix ;; | |
1095 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1096 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1097 | program_suffix=$ac_optarg ;; | |
1098 | ||
1099 | -program-transform-name | --program-transform-name \ | |
1100 | | --program-transform-nam | --program-transform-na \ | |
1101 | | --program-transform-n | --program-transform- \ | |
1102 | | --program-transform | --program-transfor \ | |
1103 | | --program-transfo | --program-transf \ | |
1104 | | --program-trans | --program-tran \ | |
1105 | | --progr-tra | --program-tr | --program-t) | |
1106 | ac_prev=program_transform_name ;; | |
1107 | -program-transform-name=* | --program-transform-name=* \ | |
1108 | | --program-transform-nam=* | --program-transform-na=* \ | |
1109 | | --program-transform-n=* | --program-transform-=* \ | |
1110 | | --program-transform=* | --program-transfor=* \ | |
1111 | | --program-transfo=* | --program-transf=* \ | |
1112 | | --program-trans=* | --program-tran=* \ | |
1113 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1114 | program_transform_name=$ac_optarg ;; | |
1115 | ||
5213506e RW |
1116 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1117 | ac_prev=pdfdir ;; | |
1118 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1119 | pdfdir=$ac_optarg ;; | |
1120 | ||
1121 | -psdir | --psdir | --psdi | --psd | --ps) | |
1122 | ac_prev=psdir ;; | |
1123 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1124 | psdir=$ac_optarg ;; | |
1125 | ||
6de9cd9a DN |
1126 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1127 | | -silent | --silent | --silen | --sile | --sil) | |
1128 | silent=yes ;; | |
1129 | ||
1130 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1131 | ac_prev=sbindir ;; | |
1132 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1133 | | --sbi=* | --sb=*) | |
1134 | sbindir=$ac_optarg ;; | |
1135 | ||
1136 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1137 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1138 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1139 | | --sha | --sh) | |
1140 | ac_prev=sharedstatedir ;; | |
1141 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1142 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1143 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1144 | | --sha=* | --sh=*) | |
1145 | sharedstatedir=$ac_optarg ;; | |
1146 | ||
1147 | -site | --site | --sit) | |
1148 | ac_prev=site ;; | |
1149 | -site=* | --site=* | --sit=*) | |
1150 | site=$ac_optarg ;; | |
1151 | ||
1152 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1153 | ac_prev=srcdir ;; | |
1154 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1155 | srcdir=$ac_optarg ;; | |
1156 | ||
1157 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1158 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1159 | ac_prev=sysconfdir ;; | |
1160 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1161 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1162 | sysconfdir=$ac_optarg ;; | |
1163 | ||
1164 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1165 | ac_prev=target_alias ;; | |
1166 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1167 | target_alias=$ac_optarg ;; | |
1168 | ||
1169 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1170 | verbose=yes ;; | |
1171 | ||
1172 | -version | --version | --versio | --versi | --vers | -V) | |
1173 | ac_init_version=: ;; | |
1174 | ||
1175 | -with-* | --with-*) | |
5213506e | 1176 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
6de9cd9a | 1177 | # Reject names that are not valid shell variable names. |
5213506e | 1178 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1179 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1180 | ac_useropt_orig=$ac_useropt |
1181 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1182 | case $ac_user_opts in | |
1183 | *" | |
1184 | "with_$ac_useropt" | |
1185 | "*) ;; | |
1186 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1187 | ac_unrecognized_sep=', ';; | |
38d24731 | 1188 | esac |
5213506e | 1189 | eval with_$ac_useropt=\$ac_optarg ;; |
6de9cd9a DN |
1190 | |
1191 | -without-* | --without-*) | |
5213506e | 1192 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
6de9cd9a | 1193 | # Reject names that are not valid shell variable names. |
5213506e | 1194 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1195 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1196 | ac_useropt_orig=$ac_useropt |
1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1198 | case $ac_user_opts in | |
1199 | *" | |
1200 | "with_$ac_useropt" | |
1201 | "*) ;; | |
1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1203 | ac_unrecognized_sep=', ';; | |
1204 | esac | |
1205 | eval with_$ac_useropt=no ;; | |
6de9cd9a DN |
1206 | |
1207 | --x) | |
1208 | # Obsolete; use --with-x. | |
1209 | with_x=yes ;; | |
1210 | ||
1211 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1212 | | --x-incl | --x-inc | --x-in | --x-i) | |
1213 | ac_prev=x_includes ;; | |
1214 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1215 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1216 | x_includes=$ac_optarg ;; | |
1217 | ||
1218 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1219 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1220 | ac_prev=x_libraries ;; | |
1221 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1222 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1223 | x_libraries=$ac_optarg ;; | |
1224 | ||
22e05272 JM |
1225 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1226 | Try \`$0 --help' for more information" | |
6de9cd9a DN |
1227 | ;; |
1228 | ||
1229 | *=*) | |
1230 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1231 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1232 | case $ac_envvar in #( |
1233 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1234 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1235 | esac |
1236 | eval $ac_envvar=\$ac_optarg | |
6de9cd9a DN |
1237 | export $ac_envvar ;; |
1238 | ||
1239 | *) | |
1240 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1241 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
6de9cd9a | 1242 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1243 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1244 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
6de9cd9a DN |
1245 | ;; |
1246 | ||
1247 | esac | |
1248 | done | |
1249 | ||
1250 | if test -n "$ac_prev"; then | |
1251 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1252 | as_fn_error $? "missing argument to $ac_option" |
6de9cd9a DN |
1253 | fi |
1254 | ||
5213506e RW |
1255 | if test -n "$ac_unrecognized_opts"; then |
1256 | case $enable_option_checking in | |
1257 | no) ;; | |
22e05272 | 1258 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1259 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
38d24731 | 1260 | esac |
5213506e | 1261 | fi |
38d24731 | 1262 | |
5213506e RW |
1263 | # Check all directory arguments for consistency. |
1264 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1265 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1266 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e9085da5 | 1267 | libdir localedir mandir |
38d24731 | 1268 | do |
5213506e RW |
1269 | eval ac_val=\$$ac_var |
1270 | # Remove trailing slashes. | |
1271 | case $ac_val in | |
1272 | */ ) | |
1273 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1274 | eval $ac_var=\$ac_val;; | |
1275 | esac | |
1276 | # Be sure to have absolute directory names. | |
38d24731 | 1277 | case $ac_val in |
5213506e RW |
1278 | [\\/$]* | ?:[\\/]* ) continue;; |
1279 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
6de9cd9a | 1280 | esac |
22e05272 | 1281 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
6de9cd9a DN |
1282 | done |
1283 | ||
1284 | # There might be people who depend on the old broken behavior: `$host' | |
1285 | # used to hold the argument of --host etc. | |
1286 | # FIXME: To remove some day. | |
1287 | build=$build_alias | |
1288 | host=$host_alias | |
1289 | target=$target_alias | |
1290 | ||
1291 | # FIXME: To remove some day. | |
1292 | if test "x$host_alias" != x; then | |
1293 | if test "x$build_alias" = x; then | |
1294 | cross_compiling=maybe | |
6de9cd9a DN |
1295 | elif test "x$build_alias" != "x$host_alias"; then |
1296 | cross_compiling=yes | |
1297 | fi | |
1298 | fi | |
1299 | ||
1300 | ac_tool_prefix= | |
1301 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1302 | ||
1303 | test "$silent" = yes && exec 6>/dev/null | |
1304 | ||
1305 | ||
5213506e RW |
1306 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1307 | ac_ls_di=`ls -di .` && | |
1308 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1309 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1310 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1311 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1312 | |
1313 | ||
6de9cd9a DN |
1314 | # Find the source files, if location was not specified. |
1315 | if test -z "$srcdir"; then | |
1316 | ac_srcdir_defaulted=yes | |
5213506e RW |
1317 | # Try the directory containing this script, then the parent directory. |
1318 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1319 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1320 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1321 | X"$as_myself" : 'X\(//\)$' \| \ | |
1322 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1323 | $as_echo X"$as_myself" | | |
1324 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)[^/].*/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\/\)$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\).*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | s/.*/./; q'` | |
6de9cd9a | 1341 | srcdir=$ac_confdir |
5213506e | 1342 | if test ! -r "$srcdir/$ac_unique_file"; then |
6de9cd9a DN |
1343 | srcdir=.. |
1344 | fi | |
1345 | else | |
1346 | ac_srcdir_defaulted=no | |
1347 | fi | |
5213506e RW |
1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
1349 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1350 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1351 | fi |
1352 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1353 | ac_abs_confdir=`( | |
22e05272 | 1354 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1355 | pwd)` |
1356 | # When building in place, set srcdir=. | |
1357 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1358 | srcdir=. | |
1359 | fi | |
1360 | # Remove unnecessary trailing slashes from srcdir. | |
1361 | # Double slashes in file names in object file debugging info | |
1362 | # mess up M-x gdb in Emacs. | |
1363 | case $srcdir in | |
1364 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1365 | esac | |
1366 | for ac_var in $ac_precious_vars; do | |
1367 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1368 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1369 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1370 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1371 | done | |
6de9cd9a DN |
1372 | |
1373 | # | |
1374 | # Report the --help message. | |
1375 | # | |
1376 | if test "$ac_init_help" = "long"; then | |
1377 | # Omit some internal or obsolete options to make the list less imposing. | |
1378 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1379 | cat <<_ACEOF | |
0dce3ca1 | 1380 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
6de9cd9a DN |
1381 | |
1382 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1383 | ||
1384 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1385 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1386 | ||
1387 | Defaults for the options are specified in brackets. | |
1388 | ||
1389 | Configuration: | |
1390 | -h, --help display this help and exit | |
1391 | --help=short display options specific to this package | |
1392 | --help=recursive display the short help of all the included packages | |
1393 | -V, --version display version information and exit | |
22e05272 | 1394 | -q, --quiet, --silent do not print \`checking ...' messages |
6de9cd9a DN |
1395 | --cache-file=FILE cache test results in FILE [disabled] |
1396 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1397 | -n, --no-create do not create output files | |
1398 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1399 | ||
6de9cd9a DN |
1400 | Installation directories: |
1401 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1402 | [$ac_default_prefix] |
6de9cd9a | 1403 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1404 | [PREFIX] |
6de9cd9a DN |
1405 | |
1406 | By default, \`make install' will install all the files in | |
1407 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1408 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1409 | for instance \`--prefix=\$HOME'. | |
1410 | ||
1411 | For better control, use the options below. | |
1412 | ||
1413 | Fine tuning of the installation directories: | |
5213506e RW |
1414 | --bindir=DIR user executables [EPREFIX/bin] |
1415 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1416 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1417 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1418 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1419 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1420 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1421 | --includedir=DIR C header files [PREFIX/include] | |
1422 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1423 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1424 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1425 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1426 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1427 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1428 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1429 | --htmldir=DIR html documentation [DOCDIR] | |
1430 | --dvidir=DIR dvi documentation [DOCDIR] | |
1431 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1432 | --psdir=DIR ps documentation [DOCDIR] | |
6de9cd9a DN |
1433 | _ACEOF |
1434 | ||
1435 | cat <<\_ACEOF | |
1436 | ||
1437 | Program names: | |
1438 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1439 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1440 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1441 | ||
1442 | System types: | |
1443 | --build=BUILD configure for building on BUILD [guessed] | |
1444 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 1445 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
1446 | _ACEOF |
1447 | fi | |
1448 | ||
1449 | if test -n "$ac_init_help"; then | |
1450 | case $ac_init_help in | |
0dce3ca1 | 1451 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
6de9cd9a DN |
1452 | esac |
1453 | cat <<\_ACEOF | |
1454 | ||
1455 | Optional Features: | |
5213506e | 1456 | --disable-option-checking ignore unrecognized --enable/--with options |
6de9cd9a DN |
1457 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1458 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
87e6d9dc TB |
1459 | --enable-version-specific-runtime-libs |
1460 | specify that runtime libraries should be installed | |
1461 | in a compiler-specific directory | |
b808ac33 | 1462 | --enable-intermodule build the library in one step |
22e05272 JM |
1463 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1464 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1465 | --enable-maintainer-mode | |
1466 | enable make rules and dependencies not useful (and | |
1467 | sometimes confusing) to the casual installer | |
96b8a615 | 1468 | --enable-multilib build many library versions (default) |
22e05272 JM |
1469 | --enable-dependency-tracking |
1470 | do not reject slow dependency extractors | |
1471 | --disable-dependency-tracking | |
1472 | speeds up one-time build | |
8d286dd1 | 1473 | --enable-cet enable Intel CET in target libraries [default=auto] |
bf382f5f | 1474 | --disable-symvers disable symbol versioning for libgfortran |
5213506e RW |
1475 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1476 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1477 | --enable-fast-install[=PKGS] |
1478 | optimize for fast installation [default=yes] | |
6de9cd9a | 1479 | --disable-libtool-lock avoid locking (might break parallel builds) |
9cdc381b | 1480 | --disable-largefile omit support for large files |
87e6d9dc TB |
1481 | --disable-libquadmath-support |
1482 | disable libquadmath support for Fortran | |
6de9cd9a DN |
1483 | |
1484 | Optional Packages: | |
1485 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1486 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 1487 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
e8e66971 MR |
1488 | --with-toolexeclibdir=DIR |
1489 | install libraries built with a cross compiler within | |
1490 | DIR | |
66dbcf2d | 1491 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1cf3d07d SE |
1492 | --with-pic try to use only PIC/non-PIC objects [default=use |
1493 | both] | |
3c36aa6b JJ |
1494 | --with-gcc-major-version-only |
1495 | use only GCC major number in filesystem paths | |
6de9cd9a DN |
1496 | |
1497 | Some influential environment variables: | |
1498 | CC C compiler command | |
1499 | CFLAGS C compiler flags | |
1500 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1501 | nonstandard directory <lib dir> | |
5213506e | 1502 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1503 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1504 | you have headers in a nonstandard directory <include dir> |
1cf3d07d | 1505 | CPP C preprocessor |
c7a35fe9 AS |
1506 | FC Fortran compiler command |
1507 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
1508 | |
1509 | Use these variables to override the choices made by `configure' or to help | |
1510 | it to find libraries and programs with nonstandard names/locations. | |
1511 | ||
5213506e RW |
1512 | Report bugs to the package provider. |
1513 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1514 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
6de9cd9a | 1515 | _ACEOF |
5213506e | 1516 | ac_status=$? |
6de9cd9a DN |
1517 | fi |
1518 | ||
1519 | if test "$ac_init_help" = "recursive"; then | |
1520 | # If there are subdirs, report their specific --help. | |
6de9cd9a | 1521 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1522 | test -d "$ac_dir" || |
1523 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1524 | continue | |
6de9cd9a DN |
1525 | ac_builddir=. |
1526 | ||
5213506e RW |
1527 | case "$ac_dir" in |
1528 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1529 | *) | |
1530 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1531 | # A ".." for each directory in $ac_dir_suffix. | |
1532 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1533 | case $ac_top_builddir_sub in | |
1534 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1535 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1536 | esac ;; | |
1537 | esac | |
1538 | ac_abs_top_builddir=$ac_pwd | |
1539 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1540 | # for backward compatibility: | |
1541 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
1542 | |
1543 | case $srcdir in | |
5213506e | 1544 | .) # We are building in place. |
6de9cd9a | 1545 | ac_srcdir=. |
5213506e RW |
1546 | ac_top_srcdir=$ac_top_builddir_sub |
1547 | ac_abs_top_srcdir=$ac_pwd ;; | |
1548 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 1549 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1550 | ac_top_srcdir=$srcdir |
1551 | ac_abs_top_srcdir=$srcdir ;; | |
1552 | *) # Relative name. | |
1553 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1554 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1555 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
78511f8b | 1556 | esac |
5213506e RW |
1557 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1558 | ||
1559 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1560 | # Check for guested configure. | |
1561 | if test -f "$ac_srcdir/configure.gnu"; then | |
1562 | echo && | |
1563 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1564 | elif test -f "$ac_srcdir/configure"; then | |
1565 | echo && | |
1566 | $SHELL "$ac_srcdir/configure" --help=recursive | |
6de9cd9a | 1567 | else |
5213506e RW |
1568 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1569 | fi || ac_status=$? | |
1570 | cd "$ac_pwd" || { ac_status=$?; break; } | |
6de9cd9a DN |
1571 | done |
1572 | fi | |
1573 | ||
5213506e | 1574 | test -n "$ac_init_help" && exit $ac_status |
6de9cd9a DN |
1575 | if $ac_init_version; then |
1576 | cat <<\_ACEOF | |
0dce3ca1 | 1577 | GNU Fortran Runtime Library configure 0.3 |
22e05272 | 1578 | generated by GNU Autoconf 2.69 |
6de9cd9a | 1579 | |
22e05272 | 1580 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
1581 | This configure script is free software; the Free Software Foundation |
1582 | gives unlimited permission to copy, distribute and modify it. | |
1583 | _ACEOF | |
5213506e | 1584 | exit |
6de9cd9a | 1585 | fi |
6de9cd9a | 1586 | |
5213506e RW |
1587 | ## ------------------------ ## |
1588 | ## Autoconf initialization. ## | |
1589 | ## ------------------------ ## | |
6de9cd9a | 1590 | |
5213506e RW |
1591 | # ac_fn_c_try_compile LINENO |
1592 | # -------------------------- | |
1593 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1594 | ac_fn_c_try_compile () | |
1595 | { | |
1596 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1597 | rm -f conftest.$ac_objext | |
1598 | if { { ac_try="$ac_compile" | |
1599 | case "(($ac_try" in | |
1600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1601 | *) ac_try_echo=$ac_try;; | |
1602 | esac | |
1603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1604 | $as_echo "$ac_try_echo"; } >&5 | |
1605 | (eval "$ac_compile") 2>conftest.err | |
1606 | ac_status=$? | |
1607 | if test -s conftest.err; then | |
1608 | grep -v '^ *+' conftest.err >conftest.er1 | |
1609 | cat conftest.er1 >&5 | |
1610 | mv -f conftest.er1 conftest.err | |
1611 | fi | |
1612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1613 | test $ac_status = 0; } && { | |
1614 | test -z "$ac_c_werror_flag" || | |
1615 | test ! -s conftest.err | |
1616 | } && test -s conftest.$ac_objext; then : | |
1617 | ac_retval=0 | |
1618 | else | |
1619 | $as_echo "$as_me: failed program was:" >&5 | |
1620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1621 | |
5213506e RW |
1622 | ac_retval=1 |
1623 | fi | |
22e05272 JM |
1624 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1625 | as_fn_set_status $ac_retval | |
5213506e RW |
1626 | |
1627 | } # ac_fn_c_try_compile | |
1628 | ||
21be0a5a JB |
1629 | # ac_fn_c_try_cpp LINENO |
1630 | # ---------------------- | |
1631 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1632 | ac_fn_c_try_cpp () | |
6de9cd9a | 1633 | { |
5213506e | 1634 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
21be0a5a | 1635 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
5213506e RW |
1636 | case "(($ac_try" in |
1637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1638 | *) ac_try_echo=$ac_try;; | |
1639 | esac | |
1640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1641 | $as_echo "$ac_try_echo"; } >&5 | |
21be0a5a | 1642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
5213506e RW |
1643 | ac_status=$? |
1644 | if test -s conftest.err; then | |
1645 | grep -v '^ *+' conftest.err >conftest.er1 | |
1646 | cat conftest.er1 >&5 | |
1647 | mv -f conftest.er1 conftest.err | |
1648 | fi | |
1649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1650 | test $ac_status = 0; } > conftest.i && { |
21be0a5a | 1651 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5213506e | 1652 | test ! -s conftest.err |
5213506e RW |
1653 | }; then : |
1654 | ac_retval=0 | |
1655 | else | |
1656 | $as_echo "$as_me: failed program was:" >&5 | |
1657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1658 | |
21be0a5a | 1659 | ac_retval=1 |
5213506e | 1660 | fi |
22e05272 JM |
1661 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1662 | as_fn_set_status $ac_retval | |
6de9cd9a | 1663 | |
21be0a5a | 1664 | } # ac_fn_c_try_cpp |
6de9cd9a | 1665 | |
21be0a5a | 1666 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
5213506e | 1667 | # ------------------------------------------------------- |
21be0a5a JB |
1668 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1669 | # the include files in INCLUDES and setting the cache variable VAR | |
1670 | # accordingly. | |
1671 | ac_fn_c_check_header_mongrel () | |
5213506e RW |
1672 | { |
1673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1674 | if eval \${$3+:} false; then : |
5213506e RW |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1676 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1677 | if eval \${$3+:} false; then : |
5213506e | 1678 | $as_echo_n "(cached) " >&6 |
21be0a5a JB |
1679 | fi |
1680 | eval ac_res=\$$3 | |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1682 | $as_echo "$ac_res" >&6; } | |
5213506e | 1683 | else |
21be0a5a JB |
1684 | # Is the header compilable? |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1686 | $as_echo_n "checking $2 usability... " >&6; } | |
1687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e RW |
1688 | /* end confdefs.h. */ |
1689 | $4 | |
1690 | #include <$2> | |
1691 | _ACEOF | |
1692 | if ac_fn_c_try_compile "$LINENO"; then : | |
21be0a5a | 1693 | ac_header_compiler=yes |
5213506e | 1694 | else |
21be0a5a | 1695 | ac_header_compiler=no |
5213506e RW |
1696 | fi |
1697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21be0a5a JB |
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1699 | $as_echo "$ac_header_compiler" >&6; } | |
6de9cd9a | 1700 | |
21be0a5a JB |
1701 | # Is the header present? |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1703 | $as_echo_n "checking $2 presence... " >&6; } | |
1704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1705 | /* end confdefs.h. */ | |
1706 | #include <$2> | |
1707 | _ACEOF | |
1708 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1709 | ac_header_preproc=yes | |
1710 | else | |
1711 | ac_header_preproc=no | |
1712 | fi | |
22e05272 | 1713 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1715 | $as_echo "$ac_header_preproc" >&6; } | |
6de9cd9a | 1716 | |
21be0a5a JB |
1717 | # So? What about this header? |
1718 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1719 | yes:no: ) | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1724 | ;; | |
1725 | no:yes:* ) | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1727 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1729 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1736 | ;; | |
5213506e | 1737 | esac |
21be0a5a JB |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1739 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1740 | if eval \${$3+:} false; then : |
21be0a5a | 1741 | $as_echo_n "(cached) " >&6 |
5213506e | 1742 | else |
21be0a5a JB |
1743 | eval "$3=\$ac_header_compiler" |
1744 | fi | |
1745 | eval ac_res=\$$3 | |
1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1747 | $as_echo "$ac_res" >&6; } | |
5213506e | 1748 | fi |
22e05272 | 1749 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1750 | |
21be0a5a | 1751 | } # ac_fn_c_check_header_mongrel |
6de9cd9a | 1752 | |
5213506e RW |
1753 | # ac_fn_c_try_run LINENO |
1754 | # ---------------------- | |
1755 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1756 | # that executables *can* be run. | |
1757 | ac_fn_c_try_run () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | if { { ac_try="$ac_link" | |
1761 | case "(($ac_try" in | |
1762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1763 | *) ac_try_echo=$ac_try;; | |
1764 | esac | |
1765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1766 | $as_echo "$ac_try_echo"; } >&5 | |
1767 | (eval "$ac_link") 2>&5 | |
1768 | ac_status=$? | |
1769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1770 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1771 | { { case "(($ac_try" in | |
1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1773 | *) ac_try_echo=$ac_try;; | |
1774 | esac | |
1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1776 | $as_echo "$ac_try_echo"; } >&5 | |
1777 | (eval "$ac_try") 2>&5 | |
1778 | ac_status=$? | |
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1780 | test $ac_status = 0; }; }; then : | |
1781 | ac_retval=0 | |
1782 | else | |
1783 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1784 | $as_echo "$as_me: failed program was:" >&5 | |
1785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1786 | |
5213506e RW |
1787 | ac_retval=$ac_status |
1788 | fi | |
1789 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1790 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1791 | as_fn_set_status $ac_retval | |
6de9cd9a | 1792 | |
5213506e | 1793 | } # ac_fn_c_try_run |
6de9cd9a | 1794 | |
21be0a5a JB |
1795 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1796 | # ------------------------------------------------------- | |
1797 | # Tests whether HEADER exists and can be compiled using the include files in | |
1798 | # INCLUDES, setting the cache variable VAR accordingly. | |
1799 | ac_fn_c_check_header_compile () | |
1800 | { | |
1801 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1803 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1804 | if eval \${$3+:} false; then : |
21be0a5a JB |
1805 | $as_echo_n "(cached) " >&6 |
1806 | else | |
1807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1808 | /* end confdefs.h. */ | |
1809 | $4 | |
1810 | #include <$2> | |
1811 | _ACEOF | |
1812 | if ac_fn_c_try_compile "$LINENO"; then : | |
1813 | eval "$3=yes" | |
1814 | else | |
1815 | eval "$3=no" | |
1816 | fi | |
1817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1818 | fi | |
1819 | eval ac_res=\$$3 | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1821 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1822 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
21be0a5a JB |
1823 | |
1824 | } # ac_fn_c_check_header_compile | |
1825 | ||
1826 | # ac_fn_c_try_link LINENO | |
1827 | # ----------------------- | |
1828 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1829 | ac_fn_c_try_link () | |
1830 | { | |
1831 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1833 | if { { ac_try="$ac_link" | |
1834 | case "(($ac_try" in | |
1835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1836 | *) ac_try_echo=$ac_try;; | |
1837 | esac | |
1838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1839 | $as_echo "$ac_try_echo"; } >&5 | |
1840 | (eval "$ac_link") 2>conftest.err | |
1841 | ac_status=$? | |
1842 | if test -s conftest.err; then | |
1843 | grep -v '^ *+' conftest.err >conftest.er1 | |
1844 | cat conftest.er1 >&5 | |
1845 | mv -f conftest.er1 conftest.err | |
1846 | fi | |
1847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1848 | test $ac_status = 0; } && { | |
1849 | test -z "$ac_c_werror_flag" || | |
1850 | test ! -s conftest.err | |
1851 | } && test -s conftest$ac_exeext && { | |
1852 | test "$cross_compiling" = yes || | |
22e05272 | 1853 | test -x conftest$ac_exeext |
21be0a5a JB |
1854 | }; then : |
1855 | ac_retval=0 | |
1856 | else | |
1857 | $as_echo "$as_me: failed program was:" >&5 | |
1858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1859 | ||
1860 | ac_retval=1 | |
1861 | fi | |
1862 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1863 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1864 | # interfere with the next link command; also delete a directory that is | |
1865 | # left behind by Apple's compiler. We do this before executing the actions. | |
1866 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1868 | as_fn_set_status $ac_retval | |
21be0a5a JB |
1869 | |
1870 | } # ac_fn_c_try_link | |
1871 | ||
5213506e RW |
1872 | # ac_fn_c_check_func LINENO FUNC VAR |
1873 | # ---------------------------------- | |
1874 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1875 | ac_fn_c_check_func () | |
1876 | { | |
1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1879 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1880 | if eval \${$3+:} false; then : |
5213506e RW |
1881 | $as_echo_n "(cached) " >&6 |
1882 | else | |
1883 | if test x$gcc_no_link = xyes; then | |
22e05272 | 1884 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
1885 | fi |
1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1887 | /* end confdefs.h. */ | |
1888 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1890 | #define $2 innocuous_$2 | |
6de9cd9a | 1891 | |
5213506e RW |
1892 | /* System header to define __stub macros and hopefully few prototypes, |
1893 | which can conflict with char $2 (); below. | |
1894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1895 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 1896 | |
5213506e RW |
1897 | #ifdef __STDC__ |
1898 | # include <limits.h> | |
1899 | #else | |
1900 | # include <assert.h> | |
1901 | #endif | |
6de9cd9a | 1902 | |
5213506e RW |
1903 | #undef $2 |
1904 | ||
1905 | /* Override any GCC internal prototype to avoid an error. | |
1906 | Use char because int might match the return type of a GCC | |
1907 | builtin and then its argument prototype would still apply. */ | |
1908 | #ifdef __cplusplus | |
1909 | extern "C" | |
1910 | #endif | |
1911 | char $2 (); | |
1912 | /* The GNU C library defines this for functions which it implements | |
1913 | to always fail with ENOSYS. Some functions are actually named | |
1914 | something starting with __ and the normal name is an alias. */ | |
1915 | #if defined __stub_$2 || defined __stub___$2 | |
1916 | choke me | |
1917 | #endif | |
1918 | ||
1919 | int | |
1920 | main () | |
38d24731 | 1921 | { |
5213506e RW |
1922 | return $2 (); |
1923 | ; | |
1924 | return 0; | |
38d24731 | 1925 | } |
5213506e RW |
1926 | _ACEOF |
1927 | if ac_fn_c_try_link "$LINENO"; then : | |
1928 | eval "$3=yes" | |
1929 | else | |
1930 | eval "$3=no" | |
1931 | fi | |
1932 | rm -f core conftest.err conftest.$ac_objext \ | |
1933 | conftest$ac_exeext conftest.$ac_ext | |
1934 | fi | |
1935 | eval ac_res=\$$3 | |
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1937 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1938 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 1939 | |
5213506e | 1940 | } # ac_fn_c_check_func |
6de9cd9a | 1941 | |
5213506e RW |
1942 | # ac_fn_fc_try_compile LINENO |
1943 | # --------------------------- | |
1944 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1945 | ac_fn_fc_try_compile () | |
1946 | { | |
1947 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1948 | rm -f conftest.$ac_objext | |
1949 | if { { ac_try="$ac_compile" | |
1950 | case "(($ac_try" in | |
1951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1952 | *) ac_try_echo=$ac_try;; | |
1953 | esac | |
1954 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1955 | $as_echo "$ac_try_echo"; } >&5 | |
1956 | (eval "$ac_compile") 2>conftest.err | |
1957 | ac_status=$? | |
1958 | if test -s conftest.err; then | |
1959 | grep -v '^ *+' conftest.err >conftest.er1 | |
1960 | cat conftest.er1 >&5 | |
1961 | mv -f conftest.er1 conftest.err | |
1962 | fi | |
1963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1964 | test $ac_status = 0; } && { | |
1965 | test -z "$ac_fc_werror_flag" || | |
1966 | test ! -s conftest.err | |
1967 | } && test -s conftest.$ac_objext; then : | |
1968 | ac_retval=0 | |
1969 | else | |
1970 | $as_echo "$as_me: failed program was:" >&5 | |
1971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 1972 | |
5213506e RW |
1973 | ac_retval=1 |
1974 | fi | |
22e05272 JM |
1975 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1976 | as_fn_set_status $ac_retval | |
6de9cd9a | 1977 | |
5213506e | 1978 | } # ac_fn_fc_try_compile |
6de9cd9a | 1979 | |
5213506e RW |
1980 | # ac_fn_fc_try_link LINENO |
1981 | # ------------------------ | |
1982 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1983 | ac_fn_fc_try_link () | |
1984 | { | |
1985 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1987 | if { { ac_try="$ac_link" | |
1988 | case "(($ac_try" in | |
1989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1990 | *) ac_try_echo=$ac_try;; | |
1991 | esac | |
1992 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1993 | $as_echo "$ac_try_echo"; } >&5 | |
1994 | (eval "$ac_link") 2>conftest.err | |
1995 | ac_status=$? | |
1996 | if test -s conftest.err; then | |
1997 | grep -v '^ *+' conftest.err >conftest.er1 | |
1998 | cat conftest.er1 >&5 | |
1999 | mv -f conftest.er1 conftest.err | |
2000 | fi | |
2001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2002 | test $ac_status = 0; } && { | |
2003 | test -z "$ac_fc_werror_flag" || | |
2004 | test ! -s conftest.err | |
2005 | } && test -s conftest$ac_exeext && { | |
2006 | test "$cross_compiling" = yes || | |
22e05272 | 2007 | test -x conftest$ac_exeext |
5213506e RW |
2008 | }; then : |
2009 | ac_retval=0 | |
2010 | else | |
2011 | $as_echo "$as_me: failed program was:" >&5 | |
2012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 2013 | |
5213506e RW |
2014 | ac_retval=1 |
2015 | fi | |
2016 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2017 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2018 | # interfere with the next link command; also delete a directory that is | |
2019 | # left behind by Apple's compiler. We do this before executing the actions. | |
2020 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2021 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2022 | as_fn_set_status $ac_retval | |
6de9cd9a | 2023 | |
5213506e | 2024 | } # ac_fn_fc_try_link |
6de9cd9a | 2025 | |
5213506e RW |
2026 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2027 | # ------------------------------------------- | |
2028 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2029 | # variable VAR accordingly. | |
2030 | ac_fn_c_check_type () | |
2031 | { | |
2032 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2034 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2035 | if eval \${$3+:} false; then : |
5213506e RW |
2036 | $as_echo_n "(cached) " >&6 |
2037 | else | |
2038 | eval "$3=no" | |
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2040 | /* end confdefs.h. */ | |
2041 | $4 | |
2042 | int | |
2043 | main () | |
2044 | { | |
2045 | if (sizeof ($2)) | |
2046 | return 0; | |
2047 | ; | |
2048 | return 0; | |
2049 | } | |
6de9cd9a | 2050 | _ACEOF |
5213506e RW |
2051 | if ac_fn_c_try_compile "$LINENO"; then : |
2052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2053 | /* end confdefs.h. */ | |
2054 | $4 | |
2055 | int | |
2056 | main () | |
2057 | { | |
2058 | if (sizeof (($2))) | |
2059 | return 0; | |
2060 | ; | |
2061 | return 0; | |
2062 | } | |
6de9cd9a | 2063 | _ACEOF |
5213506e | 2064 | if ac_fn_c_try_compile "$LINENO"; then : |
6de9cd9a | 2065 | |
5213506e RW |
2066 | else |
2067 | eval "$3=yes" | |
2068 | fi | |
2069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2070 | fi | |
2071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2072 | fi | |
2073 | eval ac_res=\$$3 | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2075 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2076 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2077 | |
5213506e | 2078 | } # ac_fn_c_check_type |
6de9cd9a | 2079 | |
21be0a5a JB |
2080 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2081 | # -------------------------------------------- | |
2082 | # Tries to find the compile-time value of EXPR in a program that includes | |
2083 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2084 | # computed | |
2085 | ac_fn_c_compute_int () | |
5213506e RW |
2086 | { |
2087 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c13e029b PB |
2088 | if test "$cross_compiling" = yes; then |
2089 | # Depending upon the size, compute the lo and hi bounds. | |
2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2091 | /* end confdefs.h. */ |
c13e029b | 2092 | $4 |
5213506e RW |
2093 | int |
2094 | main () | |
2095 | { | |
c13e029b | 2096 | static int test_array [1 - 2 * !(($2) >= 0)]; |
22e05272 JM |
2097 | test_array [0] = 0; |
2098 | return test_array [0]; | |
6de9cd9a | 2099 | |
5213506e RW |
2100 | ; |
2101 | return 0; | |
2102 | } | |
2103 | _ACEOF | |
2104 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2105 | ac_lo=0 ac_mid=0 |
2106 | while :; do | |
2107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2108 | /* end confdefs.h. */ |
c13e029b | 2109 | $4 |
5213506e RW |
2110 | int |
2111 | main () | |
2112 | { | |
c13e029b | 2113 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2114 | test_array [0] = 0; |
2115 | return test_array [0]; | |
6de9cd9a | 2116 | |
5213506e RW |
2117 | ; |
2118 | return 0; | |
2119 | } | |
2120 | _ACEOF | |
2121 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b | 2122 | ac_hi=$ac_mid; break |
5213506e | 2123 | else |
c13e029b PB |
2124 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2125 | if test $ac_lo -le $ac_mid; then | |
2126 | ac_lo= ac_hi= | |
2127 | break | |
2128 | fi | |
2129 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
5213506e RW |
2130 | fi |
2131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2132 | done |
2133 | else | |
2134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2135 | /* end confdefs.h. */ | |
2136 | $4 | |
2137 | int | |
2138 | main () | |
2139 | { | |
2140 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2141 | test_array [0] = 0; |
2142 | return test_array [0]; | |
c13e029b PB |
2143 | |
2144 | ; | |
2145 | return 0; | |
2146 | } | |
2147 | _ACEOF | |
2148 | if ac_fn_c_try_compile "$LINENO"; then : | |
2149 | ac_hi=-1 ac_mid=-1 | |
2150 | while :; do | |
2151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2152 | /* end confdefs.h. */ | |
2153 | $4 | |
2154 | int | |
2155 | main () | |
2156 | { | |
2157 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2158 | test_array [0] = 0; |
2159 | return test_array [0]; | |
c13e029b PB |
2160 | |
2161 | ; | |
2162 | return 0; | |
2163 | } | |
2164 | _ACEOF | |
2165 | if ac_fn_c_try_compile "$LINENO"; then : | |
2166 | ac_lo=$ac_mid; break | |
2167 | else | |
2168 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2169 | if test $ac_mid -le $ac_hi; then | |
2170 | ac_lo= ac_hi= | |
2171 | break | |
2172 | fi | |
2173 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
5213506e RW |
2174 | fi |
2175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b | 2176 | done |
d72a3ac1 | 2177 | else |
c13e029b | 2178 | ac_lo= ac_hi= |
5213506e | 2179 | fi |
c13e029b | 2180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d72a3ac1 | 2181 | fi |
c13e029b PB |
2182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2183 | # Binary search between lo and hi bounds. | |
2184 | while test "x$ac_lo" != "x$ac_hi"; do | |
2185 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5213506e | 2187 | /* end confdefs.h. */ |
c13e029b | 2188 | $4 |
5213506e RW |
2189 | int |
2190 | main () | |
2191 | { | |
c13e029b | 2192 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
22e05272 JM |
2193 | test_array [0] = 0; |
2194 | return test_array [0]; | |
6de9cd9a | 2195 | |
5213506e RW |
2196 | ; |
2197 | return 0; | |
2198 | } | |
2199 | _ACEOF | |
2200 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13e029b PB |
2201 | ac_hi=$ac_mid |
2202 | else | |
2203 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
5213506e RW |
2204 | fi |
2205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c13e029b PB |
2206 | done |
2207 | case $ac_lo in #(( | |
2208 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2209 | '') ac_retval=1 ;; | |
2210 | esac | |
2211 | else | |
2212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2213 | /* end confdefs.h. */ | |
2214 | $4 | |
2215 | static long int longval () { return $2; } | |
2216 | static unsigned long int ulongval () { return $2; } | |
2217 | #include <stdio.h> | |
2218 | #include <stdlib.h> | |
2219 | int | |
2220 | main () | |
2221 | { | |
6de9cd9a | 2222 | |
c13e029b PB |
2223 | FILE *f = fopen ("conftest.val", "w"); |
2224 | if (! f) | |
2225 | return 1; | |
2226 | if (($2) < 0) | |
2227 | { | |
2228 | long int i = longval (); | |
2229 | if (i != ($2)) | |
2230 | return 1; | |
2231 | fprintf (f, "%ld", i); | |
2232 | } | |
2233 | else | |
2234 | { | |
2235 | unsigned long int i = ulongval (); | |
2236 | if (i != ($2)) | |
2237 | return 1; | |
2238 | fprintf (f, "%lu", i); | |
2239 | } | |
2240 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2241 | on some platforms. */ | |
2242 | return ferror (f) || fclose (f) != 0; | |
2243 | ||
2244 | ; | |
2245 | return 0; | |
2246 | } | |
2247 | _ACEOF | |
2248 | if ac_fn_c_try_run "$LINENO"; then : | |
2249 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
5213506e | 2250 | else |
c13e029b | 2251 | ac_retval=1 |
d72a3ac1 | 2252 | fi |
c13e029b PB |
2253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2254 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2255 | rm -f conftest.val | |
2256 | ||
2257 | fi | |
22e05272 JM |
2258 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2259 | as_fn_set_status $ac_retval | |
6de9cd9a | 2260 | |
c13e029b | 2261 | } # ac_fn_c_compute_int |
6de9cd9a | 2262 | |
5213506e RW |
2263 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2264 | # ---------------------------------------------------- | |
2265 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2266 | # INCLUDES, setting cache variable VAR accordingly. | |
2267 | ac_fn_c_check_member () | |
2268 | { | |
2269 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2271 | $as_echo_n "checking for $2.$3... " >&6; } | |
22e05272 | 2272 | if eval \${$4+:} false; then : |
5213506e RW |
2273 | $as_echo_n "(cached) " >&6 |
2274 | else | |
2275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2276 | /* end confdefs.h. */ | |
2277 | $5 | |
2278 | int | |
2279 | main () | |
2280 | { | |
2281 | static $2 ac_aggr; | |
2282 | if (ac_aggr.$3) | |
2283 | return 0; | |
2284 | ; | |
2285 | return 0; | |
2286 | } | |
2287 | _ACEOF | |
2288 | if ac_fn_c_try_compile "$LINENO"; then : | |
2289 | eval "$4=yes" | |
2290 | else | |
2291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2292 | /* end confdefs.h. */ | |
2293 | $5 | |
2294 | int | |
2295 | main () | |
2296 | { | |
2297 | static $2 ac_aggr; | |
2298 | if (sizeof ac_aggr.$3) | |
2299 | return 0; | |
2300 | ; | |
2301 | return 0; | |
2302 | } | |
2303 | _ACEOF | |
2304 | if ac_fn_c_try_compile "$LINENO"; then : | |
2305 | eval "$4=yes" | |
2306 | else | |
2307 | eval "$4=no" | |
2308 | fi | |
2309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2310 | fi | |
2311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2312 | fi | |
2313 | eval ac_res=\$$4 | |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2315 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2316 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6de9cd9a | 2317 | |
5213506e RW |
2318 | } # ac_fn_c_check_member |
2319 | cat >config.log <<_ACEOF | |
2320 | This file contains any messages produced by compilers while | |
2321 | running configure, to aid debugging if configure makes a mistake. | |
6de9cd9a | 2322 | |
5213506e | 2323 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 2324 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a | 2325 | |
5213506e | 2326 | $ $0 $@ |
6de9cd9a | 2327 | |
5213506e RW |
2328 | _ACEOF |
2329 | exec 5>>config.log | |
2330 | { | |
2331 | cat <<_ASUNAME | |
2332 | ## --------- ## | |
2333 | ## Platform. ## | |
2334 | ## --------- ## | |
6de9cd9a | 2335 | |
5213506e RW |
2336 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2337 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2338 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2339 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2340 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
6de9cd9a | 2341 | |
5213506e RW |
2342 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2343 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
6de9cd9a | 2344 | |
5213506e RW |
2345 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2346 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2347 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2348 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2349 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2350 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2351 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
6de9cd9a | 2352 | |
5213506e | 2353 | _ASUNAME |
18c04407 | 2354 | |
5213506e RW |
2355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2356 | for as_dir in $PATH | |
2357 | do | |
2358 | IFS=$as_save_IFS | |
2359 | test -z "$as_dir" && as_dir=. | |
2360 | $as_echo "PATH: $as_dir" | |
2361 | done | |
2362 | IFS=$as_save_IFS | |
18c04407 | 2363 | |
5213506e | 2364 | } >&5 |
18c04407 | 2365 | |
5213506e | 2366 | cat >&5 <<_ACEOF |
6de9cd9a DN |
2367 | |
2368 | ||
5213506e RW |
2369 | ## ----------- ## |
2370 | ## Core tests. ## | |
2371 | ## ----------- ## | |
78511f8b | 2372 | |
5213506e | 2373 | _ACEOF |
38d24731 | 2374 | |
96b8a615 | 2375 | |
5213506e RW |
2376 | # Keep a trace of the command line. |
2377 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2378 | # Strip out --silent because we don't want to record it for future runs. | |
2379 | # Also quote any args containing shell meta-characters. | |
2380 | # Make two passes to allow for proper duplicate-argument suppression. | |
2381 | ac_configure_args= | |
2382 | ac_configure_args0= | |
2383 | ac_configure_args1= | |
2384 | ac_must_keep_next=false | |
2385 | for ac_pass in 1 2 | |
2386 | do | |
2387 | for ac_arg | |
2388 | do | |
2389 | case $ac_arg in | |
2390 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2391 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2392 | | -silent | --silent | --silen | --sile | --sil) | |
2393 | continue ;; | |
2394 | *\'*) | |
2395 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2396 | esac | |
2397 | case $ac_pass in | |
2398 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2399 | 2) | |
2400 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2401 | if test $ac_must_keep_next = true; then | |
2402 | ac_must_keep_next=false # Got value, back to normal. | |
2403 | else | |
2404 | case $ac_arg in | |
2405 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2406 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2407 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2408 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2409 | case "$ac_configure_args0 " in | |
2410 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2411 | esac | |
2412 | ;; | |
2413 | -* ) ac_must_keep_next=true ;; | |
2414 | esac | |
2415 | fi | |
2416 | as_fn_append ac_configure_args " '$ac_arg'" | |
2417 | ;; | |
2418 | esac | |
2419 | done | |
6de9cd9a | 2420 | done |
5213506e RW |
2421 | { ac_configure_args0=; unset ac_configure_args0;} |
2422 | { ac_configure_args1=; unset ac_configure_args1;} | |
96b8a615 | 2423 | |
5213506e RW |
2424 | # When interrupted or exit'd, cleanup temporary files, and complete |
2425 | # config.log. We remove comments because anyway the quotes in there | |
2426 | # would cause problems or look ugly. | |
2427 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2428 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2429 | trap 'exit_status=$? | |
2430 | # Save into config.log some information that might help in debugging. | |
2431 | { | |
2432 | echo | |
96b8a615 | 2433 | |
22e05272 | 2434 | $as_echo "## ---------------- ## |
5213506e | 2435 | ## Cache variables. ## |
22e05272 | 2436 | ## ---------------- ##" |
5213506e RW |
2437 | echo |
2438 | # The following way of writing the cache mishandles newlines in values, | |
2439 | ( | |
2440 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2441 | eval ac_val=\$$ac_var | |
2442 | case $ac_val in #( | |
2443 | *${as_nl}*) | |
2444 | case $ac_var in #( | |
2445 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2446 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2447 | esac | |
2448 | case $ac_var in #( | |
2449 | _ | IFS | as_nl) ;; #( | |
2450 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2451 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2452 | esac ;; | |
2453 | esac | |
2454 | done | |
2455 | (set) 2>&1 | | |
2456 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2457 | *${as_nl}ac_space=\ *) | |
2458 | sed -n \ | |
2459 | "s/'\''/'\''\\\\'\'''\''/g; | |
2460 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2461 | ;; #( | |
2462 | *) | |
2463 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2464 | ;; | |
2465 | esac | | |
2466 | sort | |
2467 | ) | |
2468 | echo | |
2469 | ||
22e05272 | 2470 | $as_echo "## ----------------- ## |
5213506e | 2471 | ## Output variables. ## |
22e05272 | 2472 | ## ----------------- ##" |
5213506e RW |
2473 | echo |
2474 | for ac_var in $ac_subst_vars | |
2475 | do | |
2476 | eval ac_val=\$$ac_var | |
2477 | case $ac_val in | |
2478 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2479 | esac | |
2480 | $as_echo "$ac_var='\''$ac_val'\''" | |
2481 | done | sort | |
2482 | echo | |
2483 | ||
2484 | if test -n "$ac_subst_files"; then | |
22e05272 | 2485 | $as_echo "## ------------------- ## |
5213506e | 2486 | ## File substitutions. ## |
22e05272 | 2487 | ## ------------------- ##" |
5213506e RW |
2488 | echo |
2489 | for ac_var in $ac_subst_files | |
2490 | do | |
2491 | eval ac_val=\$$ac_var | |
2492 | case $ac_val in | |
2493 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2494 | esac | |
2495 | $as_echo "$ac_var='\''$ac_val'\''" | |
2496 | done | sort | |
2497 | echo | |
2498 | fi | |
2499 | ||
2500 | if test -s confdefs.h; then | |
22e05272 | 2501 | $as_echo "## ----------- ## |
5213506e | 2502 | ## confdefs.h. ## |
22e05272 | 2503 | ## ----------- ##" |
5213506e RW |
2504 | echo |
2505 | cat confdefs.h | |
2506 | echo | |
2507 | fi | |
2508 | test "$ac_signal" != 0 && | |
2509 | $as_echo "$as_me: caught signal $ac_signal" | |
2510 | $as_echo "$as_me: exit $exit_status" | |
2511 | } >&5 | |
2512 | rm -f core *.core core.conftest.* && | |
2513 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2514 | exit $exit_status | |
2515 | ' 0 | |
2516 | for ac_signal in 1 2 13 15; do | |
2517 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2518 | done | |
2519 | ac_signal=0 | |
2520 | ||
2521 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2522 | rm -f -r conftest* confdefs.h | |
2523 | ||
2524 | $as_echo "/* confdefs.h */" > confdefs.h | |
2525 | ||
2526 | # Predefined preprocessor variables. | |
2527 | ||
2528 | cat >>confdefs.h <<_ACEOF | |
2529 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2530 | _ACEOF | |
2531 | ||
2532 | cat >>confdefs.h <<_ACEOF | |
2533 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2534 | _ACEOF | |
2535 | ||
2536 | cat >>confdefs.h <<_ACEOF | |
2537 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2538 | _ACEOF | |
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2542 | _ACEOF | |
2543 | ||
2544 | cat >>confdefs.h <<_ACEOF | |
2545 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2546 | _ACEOF | |
2547 | ||
2548 | cat >>confdefs.h <<_ACEOF | |
2549 | #define PACKAGE_URL "$PACKAGE_URL" | |
2550 | _ACEOF | |
2551 | ||
2552 | ||
2553 | # Let the site file select an alternate cache file if it wants to. | |
2554 | # Prefer an explicitly selected file to automatically selected ones. | |
2555 | ac_site_file1=NONE | |
2556 | ac_site_file2=NONE | |
2557 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2558 | # We do not want a PATH search for config.site. |
2559 | case $CONFIG_SITE in #(( | |
2560 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2561 | */*) ac_site_file1=$CONFIG_SITE;; | |
2562 | *) ac_site_file1=./$CONFIG_SITE;; | |
2563 | esac | |
5213506e RW |
2564 | elif test "x$prefix" != xNONE; then |
2565 | ac_site_file1=$prefix/share/config.site | |
2566 | ac_site_file2=$prefix/etc/config.site | |
2567 | else | |
2568 | ac_site_file1=$ac_default_prefix/share/config.site | |
2569 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2570 | fi | |
2571 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2572 | do | |
2573 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2574 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2576 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2577 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2578 | . "$ac_site_file" \ |
2579 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2581 | as_fn_error $? "failed to load site script $ac_site_file | |
2582 | See \`config.log' for more details" "$LINENO" 5; } | |
5213506e RW |
2583 | fi |
2584 | done | |
2585 | ||
2586 | if test -r "$cache_file"; then | |
22e05272 JM |
2587 | # Some versions of bash will fail to source /dev/null (special files |
2588 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2589 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2591 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2592 | case $cache_file in | |
2593 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2594 | *) . "./$cache_file";; | |
2595 | esac | |
2596 | fi | |
2597 | else | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2599 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2600 | >$cache_file | |
2601 | fi | |
2602 | ||
74544378 | 2603 | as_fn_append ac_header_list " unistd.h" |
864c28e1 | 2604 | as_fn_append ac_header_list " sys/random.h" |
74544378 JB |
2605 | as_fn_append ac_header_list " sys/time.h" |
2606 | as_fn_append ac_header_list " sys/times.h" | |
2607 | as_fn_append ac_header_list " sys/resource.h" | |
2608 | as_fn_append ac_header_list " sys/types.h" | |
2609 | as_fn_append ac_header_list " sys/stat.h" | |
edaaef60 | 2610 | as_fn_append ac_header_list " sys/uio.h" |
74544378 JB |
2611 | as_fn_append ac_header_list " sys/wait.h" |
2612 | as_fn_append ac_header_list " floatingpoint.h" | |
2613 | as_fn_append ac_header_list " ieeefp.h" | |
2614 | as_fn_append ac_header_list " fenv.h" | |
2615 | as_fn_append ac_header_list " fptrap.h" | |
fa86f4f9 | 2616 | as_fn_append ac_header_list " fpxcp.h" |
74544378 JB |
2617 | as_fn_append ac_header_list " pwd.h" |
2618 | as_fn_append ac_header_list " complex.h" | |
9cbecd06 | 2619 | as_fn_append ac_header_list " xlocale.h" |
74544378 JB |
2620 | as_fn_append ac_func_list " getrusage" |
2621 | as_fn_append ac_func_list " times" | |
2622 | as_fn_append ac_func_list " mkstemp" | |
2623 | as_fn_append ac_func_list " strtof" | |
2624 | as_fn_append ac_func_list " strtold" | |
2625 | as_fn_append ac_func_list " snprintf" | |
2626 | as_fn_append ac_func_list " ftruncate" | |
2627 | as_fn_append ac_func_list " chsize" | |
2628 | as_fn_append ac_func_list " chdir" | |
d66d6d15 | 2629 | as_fn_append ac_func_list " getentropy" |
74544378 JB |
2630 | as_fn_append ac_func_list " getlogin" |
2631 | as_fn_append ac_func_list " gethostname" | |
2632 | as_fn_append ac_func_list " kill" | |
2633 | as_fn_append ac_func_list " link" | |
2634 | as_fn_append ac_func_list " symlink" | |
2635 | as_fn_append ac_func_list " sleep" | |
2636 | as_fn_append ac_func_list " ttyname" | |
ef536b41 JB |
2637 | as_fn_append ac_func_list " sigaction" |
2638 | as_fn_append ac_func_list " waitpid" | |
74544378 JB |
2639 | as_fn_append ac_func_list " alarm" |
2640 | as_fn_append ac_func_list " access" | |
2641 | as_fn_append ac_func_list " fork" | |
f8886038 | 2642 | as_fn_append ac_func_list " posix_spawn" |
74544378 | 2643 | as_fn_append ac_func_list " setmode" |
b5b58343 | 2644 | as_fn_append ac_func_list " fcntl" |
edaaef60 | 2645 | as_fn_append ac_func_list " writev" |
74544378 JB |
2646 | as_fn_append ac_func_list " gettimeofday" |
2647 | as_fn_append ac_func_list " stat" | |
2648 | as_fn_append ac_func_list " fstat" | |
2649 | as_fn_append ac_func_list " lstat" | |
2650 | as_fn_append ac_func_list " getpwuid" | |
2651 | as_fn_append ac_func_list " vsnprintf" | |
2652 | as_fn_append ac_func_list " dup" | |
2653 | as_fn_append ac_func_list " getcwd" | |
2654 | as_fn_append ac_func_list " localtime_r" | |
2655 | as_fn_append ac_func_list " gmtime_r" | |
74544378 JB |
2656 | as_fn_append ac_func_list " getpwuid_r" |
2657 | as_fn_append ac_func_list " ttyname_r" | |
2658 | as_fn_append ac_func_list " clock_gettime" | |
74544378 JB |
2659 | as_fn_append ac_func_list " getgid" |
2660 | as_fn_append ac_func_list " getpid" | |
74544378 JB |
2661 | as_fn_append ac_func_list " getuid" |
2662 | as_fn_append ac_func_list " geteuid" | |
8ecd1c0d | 2663 | as_fn_append ac_func_list " umask" |
68ee9c08 | 2664 | as_fn_append ac_func_list " getegid" |
227e441f | 2665 | as_fn_append ac_func_list " secure_getenv" |
68ee9c08 | 2666 | as_fn_append ac_func_list " __secure_getenv" |
c20fdb91 | 2667 | as_fn_append ac_func_list " mkostemp" |
4269f19c JB |
2668 | as_fn_append ac_func_list " strnlen" |
2669 | as_fn_append ac_func_list " strndup" | |
9cbecd06 JB |
2670 | as_fn_append ac_func_list " newlocale" |
2671 | as_fn_append ac_func_list " freelocale" | |
2672 | as_fn_append ac_func_list " uselocale" | |
2673 | as_fn_append ac_func_list " strerror_l" | |
db9f46a9 | 2674 | as_fn_append ac_header_list " math.h" |
5213506e RW |
2675 | # Check that the precious variables saved in the cache have kept the same |
2676 | # value. | |
2677 | ac_cache_corrupted=false | |
2678 | for ac_var in $ac_precious_vars; do | |
2679 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2680 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2681 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2682 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2683 | case $ac_old_set,$ac_new_set in | |
2684 | set,) | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2686 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2687 | ac_cache_corrupted=: ;; | |
2688 | ,set) | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2690 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2691 | ac_cache_corrupted=: ;; | |
2692 | ,);; | |
2693 | *) | |
2694 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2695 | # differences in whitespace do not lead to failure. | |
2696 | ac_old_val_w=`echo x $ac_old_val` | |
2697 | ac_new_val_w=`echo x $ac_new_val` | |
2698 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2700 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2701 | ac_cache_corrupted=: | |
2702 | else | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2704 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2705 | eval $ac_var=\$ac_old_val | |
2706 | fi | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2708 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2710 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2711 | fi;; | |
2712 | esac | |
2713 | # Pass precious variables to config.status. | |
2714 | if test "$ac_new_set" = set; then | |
2715 | case $ac_new_val in | |
2716 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2717 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2718 | esac | |
2719 | case " $ac_configure_args " in | |
2720 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2721 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2722 | esac | |
2723 | fi | |
2724 | done | |
2725 | if $ac_cache_corrupted; then | |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2727 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2729 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2730 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
5213506e RW |
2731 | fi |
2732 | ## -------------------- ## | |
2733 | ## Main body of script. ## | |
2734 | ## -------------------- ## | |
2735 | ||
2736 | ac_ext=c | |
2737 | ac_cpp='$CPP $CPPFLAGS' | |
2738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2741 | ||
2742 | ||
2743 | ||
2744 | ||
2745 | ||
2746 | ac_config_headers="$ac_config_headers config.h" | |
2747 | ||
2748 | ac_aux_dir= | |
2749 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2750 | if 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/install.sh"; then | |
2755 | ac_aux_dir=$ac_dir | |
2756 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2757 | break | |
2758 | elif test -f "$ac_dir/shtool"; then | |
2759 | ac_aux_dir=$ac_dir | |
2760 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2761 | break | |
2762 | fi | |
5213506e RW |
2763 | done |
2764 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2765 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
5213506e RW |
2766 | fi |
2767 | ||
2768 | # These three variables are undocumented and unsupported, | |
2769 | # and are intended to be withdrawn in a future Autoconf release. | |
2770 | # They can cause serious problems if a builder's source tree is in a directory | |
2771 | # whose full name contains unusual characters. | |
2772 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2773 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2774 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2775 | ||
2776 | ||
2777 | # Make sure we can run config.sub. | |
2778 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2779 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
5213506e RW |
2780 | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2782 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2783 | if ${ac_cv_build+:} false; then : |
5213506e RW |
2784 | $as_echo_n "(cached) " >&6 |
2785 | else | |
2786 | ac_build_alias=$build_alias | |
2787 | test "x$ac_build_alias" = x && | |
2788 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2789 | test "x$ac_build_alias" = x && | |
22e05272 | 2790 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
5213506e | 2791 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2792 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
5213506e RW |
2793 | |
2794 | fi | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2796 | $as_echo "$ac_cv_build" >&6; } | |
2797 | case $ac_cv_build in | |
2798 | *-*-*) ;; | |
22e05272 | 2799 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
5213506e RW |
2800 | esac |
2801 | build=$ac_cv_build | |
2802 | ac_save_IFS=$IFS; IFS='-' | |
2803 | set x $ac_cv_build | |
2804 | shift | |
2805 | build_cpu=$1 | |
2806 | build_vendor=$2 | |
2807 | shift; shift | |
2808 | # Remember, the first character of IFS is used to create $*, | |
2809 | # except with old shells: | |
2810 | build_os=$* | |
2811 | IFS=$ac_save_IFS | |
2812 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2813 | ||
2814 | ||
2815 | case ${build_alias} in | |
2816 | "") build_noncanonical=${build} ;; | |
2817 | *) build_noncanonical=${build_alias} ;; | |
2818 | esac | |
891c05b1 JJ |
2819 | |
2820 | case ${host_alias} in | |
2821 | "") host_noncanonical=${build_noncanonical} ;; | |
2822 | *) host_noncanonical=${host_alias} ;; | |
2823 | esac | |
2824 | ||
2825 | case ${target_alias} in | |
2826 | "") target_noncanonical=${host_noncanonical} ;; | |
2827 | *) target_noncanonical=${target_alias} ;; | |
2828 | esac | |
2829 | ||
57255173 PB |
2830 | |
2831 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2832 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2833 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2834 | # However, they still use the build modules, because the corresponding | |
2835 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2836 | # finishes. So: | |
2837 | # - build_subdir is where we find build modules, and never changes. | |
2838 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2839 | ||
2840 | # Prefix 'build-' so this never conflicts with target_subdir. | |
891c05b1 | 2841 | build_subdir="build-${build_noncanonical}" |
57255173 | 2842 | |
5213506e RW |
2843 | # Check whether --with-build-libsubdir was given. |
2844 | if test "${with_build_libsubdir+set}" = set; then : | |
2845 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
57255173 PB |
2846 | else |
2847 | build_libsubdir="$build_subdir" | |
5213506e RW |
2848 | fi |
2849 | ||
891c05b1 JJ |
2850 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2851 | if ( test $srcdir = . && test -d gcc ) \ | |
2852 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2853 | host_subdir="host-${host_noncanonical}" | |
2854 | else | |
2855 | host_subdir=. | |
2856 | fi | |
2857 | # No prefix. | |
2858 | target_subdir=${target_noncanonical} | |
2859 | ||
2860 | ||
2861 | # ------- | |
2862 | # Options | |
2863 | # ------- | |
2864 | ||
5213506e RW |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2866 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2867 | # Check whether --enable-version-specific-runtime-libs was given. | |
2868 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2869 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
891c05b1 JJ |
2870 | yes) version_specific_libs=yes ;; |
2871 | no) version_specific_libs=no ;; | |
22e05272 | 2872 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
891c05b1 JJ |
2873 | esac |
2874 | else | |
2875 | version_specific_libs=no | |
5213506e RW |
2876 | fi |
2877 | ||
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2879 | $as_echo "$version_specific_libs" >&6; } | |
891c05b1 | 2880 | |
b808ac33 | 2881 | # Build with intermodule optimisations |
5213506e RW |
2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2883 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2884 | # Check whether --enable-intermodule was given. | |
2885 | if test "${enable_intermodule+set}" = set; then : | |
2886 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
b808ac33 BF |
2887 | yes) onestep="-onestep";; |
2888 | *) onestep="";; | |
2889 | esac | |
2890 | else | |
2891 | onestep="" | |
5213506e | 2892 | fi |
b808ac33 | 2893 | |
5213506e RW |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2895 | $as_echo "$enable_intermodule" >&6; } | |
2896 | if test x$onestep = x-onestep; then | |
b808ac33 BF |
2897 | onestep_TRUE= |
2898 | onestep_FALSE='#' | |
2899 | else | |
2900 | onestep_TRUE='#' | |
2901 | onestep_FALSE= | |
2902 | fi | |
2903 | ||
2904 | ||
891c05b1 JJ |
2905 | |
2906 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2907 | # | |
2908 | # You will slowly go insane if you do not grok the following fact: when | |
2909 | # building this library, the top-level /target/ becomes the library's /host/. | |
2910 | # | |
2911 | # configure then causes --target to default to --host, exactly like any | |
2912 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2913 | # always be the same. This makes sense both for native and cross compilers | |
2914 | # just think about it for a little while. :-) | |
2915 | # | |
2916 | # Also, if this library is being configured as part of a cross compiler, the | |
2917 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2918 | # | |
2919 | # Do not delete or change the following two lines. For why, see | |
2920 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
5213506e RW |
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2922 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2923 | if ${ac_cv_host+:} false; then : |
5213506e RW |
2924 | $as_echo_n "(cached) " >&6 |
2925 | else | |
2926 | if test "x$host_alias" = x; then | |
2927 | ac_cv_host=$ac_cv_build | |
2928 | else | |
2929 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2930 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5213506e RW |
2931 | fi |
2932 | ||
2933 | fi | |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2935 | $as_echo "$ac_cv_host" >&6; } | |
2936 | case $ac_cv_host in | |
2937 | *-*-*) ;; | |
22e05272 | 2938 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
5213506e | 2939 | esac |
96b8a615 | 2940 | host=$ac_cv_host |
5213506e RW |
2941 | ac_save_IFS=$IFS; IFS='-' |
2942 | set x $ac_cv_host | |
2943 | shift | |
2944 | host_cpu=$1 | |
2945 | host_vendor=$2 | |
2946 | shift; shift | |
2947 | # Remember, the first character of IFS is used to create $*, | |
2948 | # except with old shells: | |
2949 | host_os=$* | |
2950 | IFS=$ac_save_IFS | |
2951 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
38d24731 RW |
2952 | |
2953 | ||
5213506e RW |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2955 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2956 | if ${ac_cv_target+:} false; then : |
5213506e | 2957 | $as_echo_n "(cached) " >&6 |
96b8a615 | 2958 | else |
5213506e RW |
2959 | if test "x$target_alias" = x; then |
2960 | ac_cv_target=$ac_cv_host | |
2961 | else | |
2962 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2963 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5213506e | 2964 | fi |
96b8a615 AJ |
2965 | |
2966 | fi | |
5213506e RW |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2968 | $as_echo "$ac_cv_target" >&6; } | |
2969 | case $ac_cv_target in | |
2970 | *-*-*) ;; | |
22e05272 | 2971 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
5213506e | 2972 | esac |
96b8a615 | 2973 | target=$ac_cv_target |
5213506e RW |
2974 | ac_save_IFS=$IFS; IFS='-' |
2975 | set x $ac_cv_target | |
2976 | shift | |
2977 | target_cpu=$1 | |
2978 | target_vendor=$2 | |
2979 | shift; shift | |
2980 | # Remember, the first character of IFS is used to create $*, | |
2981 | # except with old shells: | |
2982 | target_os=$* | |
2983 | IFS=$ac_save_IFS | |
2984 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
96b8a615 AJ |
2985 | |
2986 | ||
2987 | # The aliases save the names the user supplied, while $host etc. | |
2988 | # will get canonicalized. | |
2989 | test -n "$target_alias" && | |
2990 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2991 | NONENONEs,x,x, && | |
2992 | program_prefix=${target_alias}- | |
5213506e | 2993 | |
60858d8a TB |
2994 | |
2995 | ||
2996 | ||
96b8a615 AJ |
2997 | target_alias=${target_alias-$host_alias} |
2998 | ||
60858d8a | 2999 | |
96b8a615 AJ |
3000 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
3001 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
679c0f9a | 3002 | # 1.9.6: minimum required version |
96b8a615 AJ |
3003 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
3004 | # of other PACKAGE_* variables will, however, and there's nothing | |
3005 | # we can do about that; they come from AC_INIT). | |
3006 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
3007 | # file in the top srcdir, etc, etc), so stop complaining. | |
13917ae3 | 3008 | # no-dist: we don't want 'dist' and related rules. |
96b8a615 AJ |
3009 | # -Wall: turns on all automake warnings... |
3010 | # -Wno-portability: ...except this one, since GNU make is required. | |
22e05272 | 3011 | am__api_version='1.15' |
5213506e | 3012 | |
6de9cd9a DN |
3013 | # Find a good install program. We prefer a C program (faster), |
3014 | # so one script is as good as another. But avoid the broken or | |
3015 | # incompatible versions: | |
3016 | # SysV /etc/install, /usr/sbin/install | |
3017 | # SunOS /usr/etc/install | |
3018 | # IRIX /sbin/install | |
3019 | # AIX /bin/install | |
3020 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3021 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3022 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3023 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3024 | # OS/2's system install, which has a completely different semantic | |
3025 | # ./install, which can be erroneously created by make from ./install.sh. | |
38d24731 | 3026 | # Reject install programs that cannot install multiple files. |
5213506e RW |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3028 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6de9cd9a | 3029 | if test -z "$INSTALL"; then |
22e05272 | 3030 | if ${ac_cv_path_install+:} false; then : |
5213506e | 3031 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3032 | else |
3033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3034 | for as_dir in $PATH | |
3035 | do | |
3036 | IFS=$as_save_IFS | |
3037 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3038 | # Account for people who put trailing slashes in PATH elements. |
3039 | case $as_dir/ in #(( | |
3040 | ./ | .// | /[cC]/* | \ | |
6de9cd9a | 3041 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 3042 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
6de9cd9a DN |
3043 | /usr/ucb/* ) ;; |
3044 | *) | |
3045 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3046 | # Don't use installbsd from OSF since it installs stuff as root | |
3047 | # by default. | |
3048 | for ac_prog in ginstall scoinst install; do | |
3049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3050 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
6de9cd9a DN |
3051 | if test $ac_prog = install && |
3052 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3053 | # AIX install. It has an incompatible calling convention. | |
3054 | : | |
3055 | elif test $ac_prog = install && | |
3056 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3057 | # program-specific install script used by HP pwplus--don't use. | |
3058 | : | |
3059 | else | |
38d24731 RW |
3060 | rm -rf conftest.one conftest.two conftest.dir |
3061 | echo one > conftest.one | |
3062 | echo two > conftest.two | |
3063 | mkdir conftest.dir | |
3064 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3065 | test -s conftest.one && test -s conftest.two && | |
3066 | test -s conftest.dir/conftest.one && | |
3067 | test -s conftest.dir/conftest.two | |
3068 | then | |
3069 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3070 | break 3 | |
3071 | fi | |
6de9cd9a DN |
3072 | fi |
3073 | fi | |
3074 | done | |
3075 | done | |
3076 | ;; | |
3077 | esac | |
5213506e RW |
3078 | |
3079 | done | |
3080 | IFS=$as_save_IFS | |
6de9cd9a | 3081 | |
38d24731 | 3082 | rm -rf conftest.one conftest.two conftest.dir |
6de9cd9a DN |
3083 | |
3084 | fi | |
3085 | if test "${ac_cv_path_install+set}" = set; then | |
3086 | INSTALL=$ac_cv_path_install | |
3087 | else | |
f489fba1 FXC |
3088 | # As a last resort, use the slow shell script. Don't cache a |
3089 | # value for INSTALL within a source directory, because that will | |
6de9cd9a | 3090 | # break other packages using the cache if that directory is |
f489fba1 | 3091 | # removed, or if the value is a relative name. |
6de9cd9a DN |
3092 | INSTALL=$ac_install_sh |
3093 | fi | |
3094 | fi | |
5213506e RW |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3096 | $as_echo "$INSTALL" >&6; } | |
6de9cd9a DN |
3097 | |
3098 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3099 | # It thinks the first close brace ends the variable substitution. | |
3100 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3101 | ||
3102 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3103 | ||
3104 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3105 | ||
5213506e RW |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3107 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5213506e RW |
3108 | # Reject unsafe characters in $srcdir or the absolute working directory |
3109 | # name. Accept space and tab only in the latter. | |
3110 | am_lf=' | |
3111 | ' | |
3112 | case `pwd` in | |
3113 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 3114 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
5213506e RW |
3115 | esac |
3116 | case $srcdir in | |
3117 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 3118 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
5213506e RW |
3119 | esac |
3120 | ||
22e05272 | 3121 | # Do 'set' in a subshell so we don't clobber the current shell's |
6de9cd9a DN |
3122 | # arguments. Must try -L first in case configure is actually a |
3123 | # symlink; some systems play weird games with the mod time of symlinks | |
3124 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3125 | # directory). | |
3126 | if ( | |
22e05272 JM |
3127 | am_has_slept=no |
3128 | for am_try in 1 2; do | |
3129 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3130 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3131 | if test "$*" = "X"; then | |
3132 | # -L didn't work. | |
3133 | set X `ls -t "$srcdir/configure" conftest.file` | |
3134 | fi | |
3135 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3136 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3137 | ||
3138 | # If neither matched, then we have a broken ls. This can happen | |
3139 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3140 | # broken ls alias from the environment. This has actually | |
3141 | # happened. Such a system could not be considered "sane". | |
3142 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3143 | alias in your environment" "$LINENO" 5 | |
3144 | fi | |
3145 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3146 | break | |
3147 | fi | |
3148 | # Just in case. | |
3149 | sleep 1 | |
3150 | am_has_slept=yes | |
3151 | done | |
6de9cd9a DN |
3152 | test "$2" = conftest.file |
3153 | ) | |
3154 | then | |
3155 | # Ok. | |
3156 | : | |
3157 | else | |
22e05272 | 3158 | as_fn_error $? "newly created file is older than distributed files! |
5213506e | 3159 | Check your system clock" "$LINENO" 5 |
6de9cd9a | 3160 | fi |
5213506e RW |
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3162 | $as_echo "yes" >&6; } | |
22e05272 JM |
3163 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3164 | # generated files are strictly newer. | |
3165 | am_sleep_pid= | |
3166 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3167 | ( sleep 1 ) & | |
3168 | am_sleep_pid=$! | |
3169 | fi | |
3170 | ||
3171 | rm -f conftest.file | |
3172 | ||
6de9cd9a | 3173 | test "$program_prefix" != NONE && |
5213506e | 3174 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
6de9cd9a DN |
3175 | # Use a double $ so make ignores it. |
3176 | test "$program_suffix" != NONE && | |
5213506e RW |
3177 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3178 | # Double any \ or $. | |
6de9cd9a | 3179 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
3180 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3181 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
6de9cd9a | 3182 | |
22e05272 JM |
3183 | # Expand $ac_aux_dir to an absolute path. |
3184 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6de9cd9a | 3185 | |
5213506e RW |
3186 | if test x"${MISSING+set}" != xset; then |
3187 | case $am_aux_dir in | |
3188 | *\ * | *\ *) | |
3189 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3190 | *) | |
3191 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3192 | esac | |
3193 | fi | |
6de9cd9a | 3194 | # Use eval to expand $SHELL |
22e05272 JM |
3195 | if eval "$MISSING --is-lightweight"; then |
3196 | am_missing_run="$MISSING " | |
6de9cd9a DN |
3197 | else |
3198 | am_missing_run= | |
22e05272 JM |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3200 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
6de9cd9a DN |
3201 | fi |
3202 | ||
22e05272 | 3203 | if test x"${install_sh+set}" != xset; then |
5213506e RW |
3204 | case $am_aux_dir in |
3205 | *\ * | *\ *) | |
3206 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3207 | *) | |
3208 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3209 | esac | |
3210 | fi | |
3211 | ||
22e05272 JM |
3212 | # Installed binaries are usually stripped using 'strip' when the user |
3213 | # run "make install-strip". However 'strip' might not be the right | |
5213506e | 3214 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 3215 | # will honor the 'STRIP' environment variable to overrule this program. |
5213506e RW |
3216 | if test "$cross_compiling" != no; then |
3217 | if test -n "$ac_tool_prefix"; then | |
3218 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3219 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3221 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3222 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 3223 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3224 | else |
5213506e RW |
3225 | if test -n "$STRIP"; then |
3226 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6de9cd9a DN |
3227 | else |
3228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3229 | for as_dir in $PATH | |
3230 | do | |
3231 | IFS=$as_save_IFS | |
3232 | test -z "$as_dir" && as_dir=. | |
5213506e | 3233 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3235 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6de9cd9a DN |
3237 | break 2 |
3238 | fi | |
3239 | done | |
5213506e RW |
3240 | done |
3241 | IFS=$as_save_IFS | |
6de9cd9a DN |
3242 | |
3243 | fi | |
3244 | fi | |
5213506e RW |
3245 | STRIP=$ac_cv_prog_STRIP |
3246 | if test -n "$STRIP"; then | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3248 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 3249 | else |
5213506e RW |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3251 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3252 | fi |
3253 | ||
6de9cd9a | 3254 | |
5213506e RW |
3255 | fi |
3256 | if test -z "$ac_cv_prog_STRIP"; then | |
3257 | ac_ct_STRIP=$STRIP | |
3258 | # Extract the first word of "strip", so it can be a program name with args. | |
3259 | set dummy strip; ac_word=$2 | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3261 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3262 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 3263 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 3264 | else |
5213506e RW |
3265 | if test -n "$ac_ct_STRIP"; then |
3266 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38d24731 | 3267 | else |
5213506e RW |
3268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3269 | for as_dir in $PATH | |
3270 | do | |
3271 | IFS=$as_save_IFS | |
3272 | test -z "$as_dir" && as_dir=. | |
3273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3274 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3275 | ac_cv_prog_ac_ct_STRIP="strip" |
3276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3277 | break 2 | |
3278 | fi | |
3279 | done | |
3280 | done | |
3281 | IFS=$as_save_IFS | |
3282 | ||
38d24731 | 3283 | fi |
6de9cd9a | 3284 | fi |
5213506e RW |
3285 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3286 | if test -n "$ac_ct_STRIP"; then | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3288 | $as_echo "$ac_ct_STRIP" >&6; } | |
3289 | else | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3291 | $as_echo "no" >&6; } | |
3292 | fi | |
3293 | ||
3294 | if test "x$ac_ct_STRIP" = x; then | |
3295 | STRIP=":" | |
3296 | else | |
3297 | case $cross_compiling:$ac_tool_warned in | |
3298 | yes:) | |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3300 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3301 | ac_tool_warned=yes ;; | |
3302 | esac | |
3303 | STRIP=$ac_ct_STRIP | |
3304 | fi | |
3305 | else | |
3306 | STRIP="$ac_cv_prog_STRIP" | |
3307 | fi | |
3308 | ||
3309 | fi | |
3310 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3311 | ||
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3313 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3314 | if test -z "$MKDIR_P"; then | |
22e05272 | 3315 | if ${ac_cv_path_mkdir+:} false; then : |
5213506e RW |
3316 | $as_echo_n "(cached) " >&6 |
3317 | else | |
3318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3319 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3320 | do | |
3321 | IFS=$as_save_IFS | |
3322 | test -z "$as_dir" && as_dir=. | |
3323 | for ac_prog in mkdir gmkdir; do | |
3324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3325 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
5213506e RW |
3326 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3327 | 'mkdir (GNU coreutils) '* | \ | |
3328 | 'mkdir (coreutils) '* | \ | |
3329 | 'mkdir (fileutils) '4.1*) | |
3330 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3331 | break 3;; | |
3332 | esac | |
3333 | done | |
3334 | done | |
3335 | done | |
3336 | IFS=$as_save_IFS | |
3337 | ||
3338 | fi | |
3339 | ||
22e05272 | 3340 | test -d ./--version && rmdir ./--version |
5213506e RW |
3341 | if test "${ac_cv_path_mkdir+set}" = set; then |
3342 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3343 | else | |
3344 | # As a last resort, use the slow shell script. Don't cache a | |
3345 | # value for MKDIR_P within a source directory, because that will | |
3346 | # break other packages using the cache if that directory is | |
3347 | # removed, or if the value is a relative name. | |
5213506e RW |
3348 | MKDIR_P="$ac_install_sh -d" |
3349 | fi | |
3350 | fi | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3352 | $as_echo "$MKDIR_P" >&6; } | |
3353 | ||
5213506e RW |
3354 | for ac_prog in gawk mawk nawk awk |
3355 | do | |
3356 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3357 | set dummy $ac_prog; ac_word=$2 | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3359 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3360 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e RW |
3361 | $as_echo_n "(cached) " >&6 |
3362 | else | |
3363 | if test -n "$AWK"; then | |
3364 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3365 | else | |
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3367 | for as_dir in $PATH | |
3368 | do | |
3369 | IFS=$as_save_IFS | |
3370 | test -z "$as_dir" && as_dir=. | |
3371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5213506e RW |
3373 | ac_cv_prog_AWK="$ac_prog" |
3374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3375 | break 2 | |
3376 | fi | |
3377 | done | |
3378 | done | |
3379 | IFS=$as_save_IFS | |
3380 | ||
3381 | fi | |
3382 | fi | |
3383 | AWK=$ac_cv_prog_AWK | |
3384 | if test -n "$AWK"; then | |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3386 | $as_echo "$AWK" >&6; } | |
3387 | else | |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3389 | $as_echo "no" >&6; } | |
3390 | fi | |
3391 | ||
3392 | ||
3393 | test -n "$AWK" && break | |
3394 | done | |
3395 | ||
3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3397 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3398 | set x ${MAKE-make} | |
3399 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3400 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
5213506e RW |
3401 | $as_echo_n "(cached) " >&6 |
3402 | else | |
3403 | cat >conftest.make <<\_ACEOF | |
3404 | SHELL = /bin/sh | |
3405 | all: | |
3406 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3407 | _ACEOF | |
22e05272 | 3408 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5213506e RW |
3409 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3410 | *@@@%%%=?*=@@@%%%*) | |
3411 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3412 | *) | |
3413 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3414 | esac | |
3415 | rm -f conftest.make | |
3416 | fi | |
3417 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3419 | $as_echo "yes" >&6; } | |
6de9cd9a DN |
3420 | SET_MAKE= |
3421 | else | |
5213506e RW |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3423 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3424 | SET_MAKE="MAKE=${MAKE-make}" |
3425 | fi | |
3426 | ||
3427 | rm -rf .tst 2>/dev/null | |
3428 | mkdir .tst 2>/dev/null | |
3429 | if test -d .tst; then | |
3430 | am__leading_dot=. | |
3431 | else | |
3432 | am__leading_dot=_ | |
3433 | fi | |
3434 | rmdir .tst 2>/dev/null | |
3435 | ||
22e05272 JM |
3436 | # Check whether --enable-silent-rules was given. |
3437 | if test "${enable_silent_rules+set}" = set; then : | |
3438 | enableval=$enable_silent_rules; | |
3439 | fi | |
3440 | ||
3441 | case $enable_silent_rules in # ((( | |
3442 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3443 | no) AM_DEFAULT_VERBOSITY=1;; | |
3444 | *) AM_DEFAULT_VERBOSITY=1;; | |
3445 | esac | |
3446 | am_make=${MAKE-make} | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3448 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3449 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3450 | $as_echo_n "(cached) " >&6 | |
3451 | else | |
3452 | if $as_echo 'TRUE=$(BAR$(V)) | |
3453 | BAR0=false | |
3454 | BAR1=true | |
3455 | V=1 | |
3456 | am__doit: | |
3457 | @$(TRUE) | |
3458 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3459 | am_cv_make_support_nested_variables=yes | |
3460 | else | |
3461 | am_cv_make_support_nested_variables=no | |
3462 | fi | |
3463 | fi | |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3465 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3466 | if test $am_cv_make_support_nested_variables = yes; then | |
3467 | AM_V='$(V)' | |
3468 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3469 | else | |
3470 | AM_V=$AM_DEFAULT_VERBOSITY | |
3471 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3472 | fi | |
3473 | AM_BACKSLASH='\' | |
3474 | ||
5213506e RW |
3475 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3476 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3477 | # is not polluted with repeated "-I." | |
3478 | am__isrc=' -I$(srcdir)' | |
3479 | # test to see if srcdir already configured | |
3480 | if test -f $srcdir/config.status; then | |
22e05272 | 3481 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
5213506e | 3482 | fi |
6de9cd9a DN |
3483 | fi |
3484 | ||
3485 | # test whether we have cygpath | |
3486 | if test -z "$CYGPATH_W"; then | |
3487 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3488 | CYGPATH_W='cygpath -w' | |
3489 | else | |
3490 | CYGPATH_W=echo | |
3491 | fi | |
3492 | fi | |
3493 | ||
3494 | ||
3495 | # Define the identity of the package. | |
3496 | PACKAGE='libgfortran' | |
0dce3ca1 | 3497 | VERSION='0.3' |
6de9cd9a DN |
3498 | |
3499 | ||
6de9cd9a DN |
3500 | # Some tools Automake needs. |
3501 | ||
3502 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3503 | ||
3504 | ||
3505 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3506 | ||
3507 | ||
3508 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3509 | ||
3510 | ||
3511 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3512 | ||
3513 | ||
3514 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3515 | ||
22e05272 JM |
3516 | # For better backward compatibility. To be removed once Automake 1.9.x |
3517 | # dies out for good. For more background, see: | |
3518 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3519 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3520 | mkdir_p='$(MKDIR_P)' | |
3521 | ||
3522 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3523 | # system "awk" is bad on some platforms. | |
c20fdb91 JB |
3524 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3525 | # in the wild :-( We should find a proper way to deprecate it ... | |
3526 | AMTAR='$${TAR-tar}' | |
d49ec2d1 | 3527 | |
22e05272 JM |
3528 | |
3529 | # We'll loop over all known methods to create a tar archive until one works. | |
3530 | _am_tools='gnutar pax cpio none' | |
3531 | ||
c20fdb91 | 3532 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d49ec2d1 KC |
3533 | |
3534 | ||
6de9cd9a DN |
3535 | |
3536 | ||
3537 | ||
6de9cd9a | 3538 | |
22e05272 JM |
3539 | # POSIX will say in a future version that running "rm -f" with no argument |
3540 | # is OK; and we want to be able to make that assumption in our Makefile | |
3541 | # recipes. So use an aggressive probe to check that the usage we want is | |
3542 | # actually supported "in the wild" to an acceptable degree. | |
3543 | # See automake bug#10828. | |
3544 | # To make any issue more visible, cause the running configure to be aborted | |
3545 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3546 | # user can still override this though. | |
3547 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3548 | cat >&2 <<'END' | |
3549 | Oops! | |
3550 | ||
3551 | Your 'rm' program seems unable to run without file operands specified | |
3552 | on the command line, even when the '-f' option is present. This is contrary | |
3553 | to the behaviour of most rm programs out there, and not conforming with | |
3554 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3555 | ||
3556 | Please tell bug-automake@gnu.org about your system, including the value | |
3557 | of your $PATH and any error possibly output before this message. This | |
3558 | can help us improve future automake versions. | |
3559 | ||
3560 | END | |
3561 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3562 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3563 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3564 | echo >&2 | |
3565 | else | |
3566 | cat >&2 <<'END' | |
3567 | Aborting the configuration process, to ensure you take notice of the issue. | |
3568 | ||
3569 | You can download and install GNU coreutils to get an 'rm' implementation | |
3570 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3571 | ||
3572 | If you want to complete the configuration process using your problematic | |
3573 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3574 | to "yes", and re-run configure. | |
3575 | ||
3576 | END | |
3577 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3578 | fi | |
3579 | fi | |
3580 | ||
3581 | ||
5213506e RW |
3582 | |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3584 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3585 | # Check whether --enable-maintainer-mode was given. | |
3586 | if test "${enable_maintainer_mode+set}" = set; then : | |
3587 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
6de9cd9a DN |
3588 | else |
3589 | USE_MAINTAINER_MODE=no | |
5213506e | 3590 | fi |
6de9cd9a | 3591 | |
5213506e RW |
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3593 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3594 | if test $USE_MAINTAINER_MODE = yes; then | |
6de9cd9a DN |
3595 | MAINTAINER_MODE_TRUE= |
3596 | MAINTAINER_MODE_FALSE='#' | |
3597 | else | |
3598 | MAINTAINER_MODE_TRUE='#' | |
3599 | MAINTAINER_MODE_FALSE= | |
3600 | fi | |
3601 | ||
3602 | MAINT=$MAINTAINER_MODE_TRUE | |
3603 | ||
3604 | ||
96b8a615 | 3605 | # Default to --enable-multilib |
5213506e RW |
3606 | # Check whether --enable-multilib was given. |
3607 | if test "${enable_multilib+set}" = set; then : | |
3608 | enableval=$enable_multilib; case "$enableval" in | |
96b8a615 AJ |
3609 | yes) multilib=yes ;; |
3610 | no) multilib=no ;; | |
22e05272 | 3611 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
96b8a615 AJ |
3612 | esac |
3613 | else | |
3614 | multilib=yes | |
5213506e RW |
3615 | fi |
3616 | ||
96b8a615 AJ |
3617 | |
3618 | # We may get other options which we leave undocumented: | |
3619 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3620 | # See config-ml.in if you want the gory details. | |
3621 | ||
3622 | if test "$srcdir" = "."; then | |
3623 | if test "$with_target_subdir" != "."; then | |
3624 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3625 | else | |
3626 | multi_basedir="$srcdir/$with_multisrctop.." | |
3627 | fi | |
3628 | else | |
3629 | multi_basedir="$srcdir/.." | |
3630 | fi | |
3631 | ||
3632 | ||
9f9ef303 FXC |
3633 | # Even if the default multilib is not a cross compilation, |
3634 | # it may be that some of the other multilibs are. | |
3635 | if test $cross_compiling = no && test $multilib = yes \ | |
3636 | && test "x${with_multisubdir}" != x ; then | |
3637 | cross_compiling=maybe | |
3638 | fi | |
3639 | ||
5213506e | 3640 | ac_config_commands="$ac_config_commands default-1" |
96b8a615 AJ |
3641 | |
3642 | ||
3643 | # Handy for debugging: | |
3644 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3645 | ||
3646 | # Are we being configured with some form of cross compiler? | |
3647 | # NB: We don't actually need to know this just now, but when, say, a test | |
3648 | # suite is included, we'll have to know. | |
3649 | if test "$build" != "$host"; then | |
3650 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 3651 | |
96b8a615 AJ |
3652 | else |
3653 | LIBGFOR_IS_NATIVE=true | |
3654 | fi | |
3655 | ||
21be0a5a | 3656 | DEPDIR="${am__leading_dot}deps" |
96b8a615 | 3657 | |
21be0a5a | 3658 | ac_config_commands="$ac_config_commands depfiles" |
96b8a615 | 3659 | |
6de9cd9a | 3660 | |
21be0a5a JB |
3661 | am_make=${MAKE-make} |
3662 | cat > confinc << 'END' | |
3663 | am__doit: | |
3664 | @echo this is the am__doit target | |
3665 | .PHONY: am__doit | |
3666 | END | |
3667 | # If we don't find an include directive, just comment out the code. | |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3669 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3670 | am__include="#" | |
3671 | am__quote= | |
3672 | _am_result=none | |
3673 | # First try GNU make style include. | |
3674 | echo "include confinc" > confmf | |
22e05272 | 3675 | # Ignore all kinds of additional output from 'make'. |
21be0a5a JB |
3676 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3677 | *the\ am__doit\ target*) | |
3678 | am__include=include | |
3679 | am__quote= | |
3680 | _am_result=GNU | |
3681 | ;; | |
3682 | esac | |
3683 | # Now try BSD make style include. | |
3684 | if test "$am__include" = "#"; then | |
3685 | echo '.include "confinc"' > confmf | |
3686 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3687 | *the\ am__doit\ target*) | |
3688 | am__include=.include | |
3689 | am__quote="\"" | |
3690 | _am_result=BSD | |
3691 | ;; | |
3692 | esac | |
3693 | fi | |
1ec601bf | 3694 | |
6de9cd9a | 3695 | |
21be0a5a JB |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3697 | $as_echo "$_am_result" >&6; } | |
3698 | rm -f confinc confmf | |
3699 | ||
3700 | # Check whether --enable-dependency-tracking was given. | |
3701 | if test "${enable_dependency_tracking+set}" = set; then : | |
3702 | enableval=$enable_dependency_tracking; | |
3703 | fi | |
3704 | ||
3705 | if test "x$enable_dependency_tracking" != xno; then | |
3706 | am_depcomp="$ac_aux_dir/depcomp" | |
3707 | AMDEPBACKSLASH='\' | |
c20fdb91 | 3708 | am__nodep='_no' |
21be0a5a JB |
3709 | fi |
3710 | if test "x$enable_dependency_tracking" != xno; then | |
3711 | AMDEP_TRUE= | |
3712 | AMDEP_FALSE='#' | |
3713 | else | |
3714 | AMDEP_TRUE='#' | |
3715 | AMDEP_FALSE= | |
3716 | fi | |
6de9cd9a DN |
3717 | |
3718 | ||
6de9cd9a DN |
3719 | ac_ext=c |
3720 | ac_cpp='$CPP $CPPFLAGS' | |
3721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3724 | if test -n "$ac_tool_prefix"; then | |
3725 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3726 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3728 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3729 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3730 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3731 | else |
3732 | if test -n "$CC"; then | |
3733 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3734 | else | |
3735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3736 | for as_dir in $PATH | |
3737 | do | |
3738 | IFS=$as_save_IFS | |
3739 | test -z "$as_dir" && as_dir=. | |
5213506e | 3740 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3742 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3744 | break 2 |
3745 | fi | |
3746 | done | |
5213506e RW |
3747 | done |
3748 | IFS=$as_save_IFS | |
6de9cd9a DN |
3749 | |
3750 | fi | |
3751 | fi | |
3752 | CC=$ac_cv_prog_CC | |
3753 | if test -n "$CC"; then | |
5213506e RW |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3755 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3756 | else |
5213506e RW |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3758 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3759 | fi |
3760 | ||
5213506e | 3761 | |
6de9cd9a DN |
3762 | fi |
3763 | if test -z "$ac_cv_prog_CC"; then | |
3764 | ac_ct_CC=$CC | |
3765 | # Extract the first word of "gcc", so it can be a program name with args. | |
3766 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3768 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3769 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3770 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3771 | else |
3772 | if test -n "$ac_ct_CC"; then | |
3773 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3774 | else | |
3775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3776 | for as_dir in $PATH | |
3777 | do | |
3778 | IFS=$as_save_IFS | |
3779 | test -z "$as_dir" && as_dir=. | |
5213506e | 3780 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3782 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3784 | break 2 |
3785 | fi | |
3786 | done | |
5213506e RW |
3787 | done |
3788 | IFS=$as_save_IFS | |
6de9cd9a DN |
3789 | |
3790 | fi | |
3791 | fi | |
3792 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3793 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3795 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3796 | else |
5213506e RW |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3798 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3799 | fi |
3800 | ||
5213506e RW |
3801 | if test "x$ac_ct_CC" = x; then |
3802 | CC="" | |
3803 | else | |
3804 | case $cross_compiling:$ac_tool_warned in | |
3805 | yes:) | |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3807 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3808 | ac_tool_warned=yes ;; | |
3809 | esac | |
3810 | CC=$ac_ct_CC | |
3811 | fi | |
6de9cd9a DN |
3812 | else |
3813 | CC="$ac_cv_prog_CC" | |
3814 | fi | |
3815 | ||
3816 | if test -z "$CC"; then | |
5213506e RW |
3817 | if test -n "$ac_tool_prefix"; then |
3818 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6de9cd9a | 3819 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3821 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3822 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3823 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3824 | else |
3825 | if test -n "$CC"; then | |
3826 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3827 | else | |
3828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3829 | for as_dir in $PATH | |
3830 | do | |
3831 | IFS=$as_save_IFS | |
3832 | test -z "$as_dir" && as_dir=. | |
5213506e | 3833 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3835 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3837 | break 2 |
3838 | fi | |
3839 | done | |
5213506e RW |
3840 | done |
3841 | IFS=$as_save_IFS | |
6de9cd9a DN |
3842 | |
3843 | fi | |
3844 | fi | |
3845 | CC=$ac_cv_prog_CC | |
3846 | if test -n "$CC"; then | |
5213506e RW |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3848 | $as_echo "$CC" >&6; } | |
38d24731 | 3849 | else |
5213506e RW |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3851 | $as_echo "no" >&6; } | |
38d24731 RW |
3852 | fi |
3853 | ||
38d24731 | 3854 | |
5213506e | 3855 | fi |
6de9cd9a DN |
3856 | fi |
3857 | if test -z "$CC"; then | |
3858 | # Extract the first word of "cc", so it can be a program name with args. | |
3859 | set dummy cc; ac_word=$2 | |
5213506e RW |
3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3861 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3862 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3863 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3864 | else |
3865 | if test -n "$CC"; then | |
3866 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3867 | else | |
3868 | ac_prog_rejected=no | |
3869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3870 | for as_dir in $PATH | |
3871 | do | |
3872 | IFS=$as_save_IFS | |
3873 | test -z "$as_dir" && as_dir=. | |
5213506e | 3874 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a DN |
3876 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3877 | ac_prog_rejected=yes | |
3878 | continue | |
3879 | fi | |
3880 | ac_cv_prog_CC="cc" | |
5213506e | 3881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3882 | break 2 |
3883 | fi | |
3884 | done | |
5213506e RW |
3885 | done |
3886 | IFS=$as_save_IFS | |
6de9cd9a DN |
3887 | |
3888 | if test $ac_prog_rejected = yes; then | |
3889 | # We found a bogon in the path, so make sure we never use it. | |
3890 | set dummy $ac_cv_prog_CC | |
3891 | shift | |
3892 | if test $# != 0; then | |
3893 | # We chose a different compiler from the bogus one. | |
3894 | # However, it has the same basename, so the bogon will be chosen | |
3895 | # first if we set CC to just the basename; use the full file name. | |
3896 | shift | |
3897 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3898 | fi | |
3899 | fi | |
3900 | fi | |
3901 | fi | |
3902 | CC=$ac_cv_prog_CC | |
3903 | if test -n "$CC"; then | |
5213506e RW |
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3905 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3906 | else |
5213506e RW |
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3908 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3909 | fi |
3910 | ||
5213506e | 3911 | |
6de9cd9a DN |
3912 | fi |
3913 | if test -z "$CC"; then | |
3914 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3915 | for ac_prog in cl.exe |
6de9cd9a DN |
3916 | do |
3917 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3918 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3920 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3921 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3922 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3923 | else |
3924 | if test -n "$CC"; then | |
3925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3926 | else | |
3927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3928 | for as_dir in $PATH | |
3929 | do | |
3930 | IFS=$as_save_IFS | |
3931 | test -z "$as_dir" && as_dir=. | |
5213506e | 3932 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3933 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3934 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3936 | break 2 |
3937 | fi | |
3938 | done | |
5213506e RW |
3939 | done |
3940 | IFS=$as_save_IFS | |
6de9cd9a DN |
3941 | |
3942 | fi | |
3943 | fi | |
3944 | CC=$ac_cv_prog_CC | |
3945 | if test -n "$CC"; then | |
5213506e RW |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3947 | $as_echo "$CC" >&6; } | |
6de9cd9a | 3948 | else |
5213506e RW |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3950 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3951 | fi |
3952 | ||
5213506e | 3953 | |
6de9cd9a DN |
3954 | test -n "$CC" && break |
3955 | done | |
3956 | fi | |
3957 | if test -z "$CC"; then | |
3958 | ac_ct_CC=$CC | |
5213506e | 3959 | for ac_prog in cl.exe |
6de9cd9a DN |
3960 | do |
3961 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3962 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3964 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3965 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3966 | $as_echo_n "(cached) " >&6 |
6de9cd9a DN |
3967 | else |
3968 | if test -n "$ac_ct_CC"; then | |
3969 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3970 | else | |
3971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3972 | for as_dir in $PATH | |
3973 | do | |
3974 | IFS=$as_save_IFS | |
3975 | test -z "$as_dir" && as_dir=. | |
5213506e | 3976 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3977 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6de9cd9a | 3978 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6de9cd9a DN |
3980 | break 2 |
3981 | fi | |
3982 | done | |
5213506e RW |
3983 | done |
3984 | IFS=$as_save_IFS | |
6de9cd9a DN |
3985 | |
3986 | fi | |
3987 | fi | |
3988 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3989 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3991 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 3992 | else |
5213506e RW |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3994 | $as_echo "no" >&6; } | |
6de9cd9a DN |
3995 | fi |
3996 | ||
5213506e | 3997 | |
6de9cd9a DN |
3998 | test -n "$ac_ct_CC" && break |
3999 | done | |
4000 | ||
5213506e RW |
4001 | if test "x$ac_ct_CC" = x; then |
4002 | CC="" | |
4003 | else | |
4004 | case $cross_compiling:$ac_tool_warned in | |
4005 | yes:) | |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4007 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4008 | ac_tool_warned=yes ;; | |
4009 | esac | |
4010 | CC=$ac_ct_CC | |
4011 | fi | |
6de9cd9a DN |
4012 | fi |
4013 | ||
4014 | fi | |
4015 | ||
4016 | ||
5213506e RW |
4017 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4019 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4020 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a DN |
4021 | |
4022 | # Provide some information about the compiler. | |
5213506e RW |
4023 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4024 | set X $ac_compile | |
4025 | ac_compiler=$2 | |
4026 | for ac_option in --version -v -V -qversion; do | |
4027 | { { ac_try="$ac_compiler $ac_option >&5" | |
4028 | case "(($ac_try" in | |
4029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4030 | *) ac_try_echo=$ac_try;; | |
4031 | esac | |
4032 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4033 | $as_echo "$ac_try_echo"; } >&5 | |
4034 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6de9cd9a | 4035 | ac_status=$? |
5213506e RW |
4036 | if test -s conftest.err; then |
4037 | sed '10a\ | |
4038 | ... rest of stderr output deleted ... | |
4039 | 10q' conftest.err >conftest.er1 | |
4040 | cat conftest.er1 >&5 | |
5213506e | 4041 | fi |
22e05272 | 4042 | rm -f conftest.er1 conftest.err |
5213506e RW |
4043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4044 | test $ac_status = 0; } | |
4045 | done | |
6de9cd9a | 4046 | |
5213506e | 4047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4048 | /* end confdefs.h. */ |
02ce382c | 4049 | #include <stdio.h> |
f02d008e JD |
4050 | int |
4051 | main () | |
4052 | { | |
02ce382c | 4053 | printf ("hello world\n"); |
f02d008e JD |
4054 | ; |
4055 | return 0; | |
4056 | } | |
4057 | _ACEOF | |
4058 | # FIXME: Cleanup? | |
5213506e | 4059 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
f02d008e JD |
4060 | (eval $ac_link) 2>&5 |
4061 | ac_status=$? | |
5213506e RW |
4062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4063 | test $ac_status = 0; }; then : | |
f02d008e JD |
4064 | gcc_no_link=no |
4065 | else | |
4066 | gcc_no_link=yes | |
4067 | fi | |
f02d008e JD |
4068 | if test x$gcc_no_link = xyes; then |
4069 | # Setting cross_compile will disable run tests; it will | |
4070 | # also disable AC_CHECK_FILE but that's generally | |
4071 | # correct if we can't link. | |
4072 | cross_compiling=yes | |
4073 | EXEEXT= | |
4074 | else | |
5213506e | 4075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
4076 | /* end confdefs.h. */ |
4077 | ||
6de9cd9a DN |
4078 | int |
4079 | main () | |
4080 | { | |
4081 | ||
4082 | ; | |
4083 | return 0; | |
4084 | } | |
4085 | _ACEOF | |
4086 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 4087 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
6de9cd9a DN |
4088 | # Try to create an executable without -o first, disregard a.out. |
4089 | # It will help us diagnose broken compilers, and finding out an intuition | |
4090 | # of exeext. | |
22e05272 JM |
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4092 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
5213506e RW |
4093 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4094 | ||
4095 | # The possible output files: | |
4096 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4097 | ||
4098 | ac_rmfiles= | |
4099 | for ac_file in $ac_files | |
4100 | do | |
4101 | case $ac_file in | |
4102 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4103 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4104 | esac | |
4105 | done | |
4106 | rm -f $ac_rmfiles | |
4107 | ||
4108 | if { { ac_try="$ac_link_default" | |
4109 | case "(($ac_try" in | |
4110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4111 | *) ac_try_echo=$ac_try;; | |
4112 | esac | |
4113 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4114 | $as_echo "$ac_try_echo"; } >&5 | |
4115 | (eval "$ac_link_default") 2>&5 | |
4116 | ac_status=$? | |
4117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4118 | test $ac_status = 0; }; then : | |
4119 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4120 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4121 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4122 | # so that the user can short-circuit this test for compilers unknown to | |
4123 | # Autoconf. | |
4124 | for ac_file in $ac_files '' | |
6de9cd9a DN |
4125 | do |
4126 | test -f "$ac_file" || continue | |
4127 | case $ac_file in | |
5213506e | 4128 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
6de9cd9a DN |
4129 | ;; |
4130 | [ab].out ) | |
4131 | # We found the default executable, but exeext='' is most | |
4132 | # certainly right. | |
4133 | break;; | |
4134 | *.* ) | |
5213506e RW |
4135 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4136 | then :; else | |
4137 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4138 | fi | |
4139 | # We set ac_cv_exeext here because the later test for it is not | |
4140 | # safe: cross compilers may not add the suffix if given an `-o' | |
4141 | # argument, so we may need to know it at that point already. | |
4142 | # Even if this section looks crufty: it has the advantage of | |
4143 | # actually working. | |
6de9cd9a DN |
4144 | break;; |
4145 | * ) | |
4146 | break;; | |
4147 | esac | |
4148 | done | |
5213506e RW |
4149 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4150 | ||
6de9cd9a | 4151 | else |
5213506e RW |
4152 | ac_file='' |
4153 | fi | |
5213506e | 4154 | if test -z "$ac_file"; then : |
22e05272 JM |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4156 | $as_echo "no" >&6; } | |
4157 | $as_echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
4158 | sed 's/^/| /' conftest.$ac_ext >&5 |
4159 | ||
5213506e RW |
4160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4162 | as_fn_error 77 "C compiler cannot create executables |
4163 | See \`config.log' for more details" "$LINENO" 5; } | |
4164 | else | |
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4166 | $as_echo "yes" >&6; } | |
6de9cd9a | 4167 | fi |
22e05272 JM |
4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4169 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4171 | $as_echo "$ac_file" >&6; } | |
6de9cd9a | 4172 | ac_exeext=$ac_cv_exeext |
6de9cd9a | 4173 | |
22e05272 | 4174 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
6de9cd9a | 4175 | ac_clean_files=$ac_clean_files_save |
5213506e RW |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4177 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4178 | if { { ac_try="$ac_link" | |
4179 | case "(($ac_try" in | |
4180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4181 | *) ac_try_echo=$ac_try;; | |
4182 | esac | |
4183 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4184 | $as_echo "$ac_try_echo"; } >&5 | |
4185 | (eval "$ac_link") 2>&5 | |
6de9cd9a | 4186 | ac_status=$? |
5213506e RW |
4187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4188 | test $ac_status = 0; }; then : | |
6de9cd9a DN |
4189 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4190 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4191 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4192 | # `rm'. | |
4193 | for ac_file in conftest.exe conftest conftest.*; do | |
4194 | test -f "$ac_file" || continue | |
4195 | case $ac_file in | |
5213506e | 4196 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
6de9cd9a | 4197 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
6de9cd9a DN |
4198 | break;; |
4199 | * ) break;; | |
4200 | esac | |
4201 | done | |
4202 | else | |
5213506e RW |
4203 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4204 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4205 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4206 | See \`config.log' for more details" "$LINENO" 5; } | |
6de9cd9a | 4207 | fi |
22e05272 | 4208 | rm -f conftest conftest$ac_cv_exeext |
5213506e RW |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4210 | $as_echo "$ac_cv_exeext" >&6; } | |
6de9cd9a DN |
4211 | |
4212 | rm -f conftest.$ac_ext | |
4213 | EXEEXT=$ac_cv_exeext | |
4214 | ac_exeext=$EXEEXT | |
22e05272 JM |
4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4216 | /* end confdefs.h. */ | |
4217 | #include <stdio.h> | |
4218 | int | |
4219 | main () | |
4220 | { | |
4221 | FILE *f = fopen ("conftest.out", "w"); | |
4222 | return ferror (f) || fclose (f) != 0; | |
4223 | ||
4224 | ; | |
4225 | return 0; | |
4226 | } | |
4227 | _ACEOF | |
4228 | ac_clean_files="$ac_clean_files conftest.out" | |
4229 | # Check that the compiler produces executables we can run. If not, either | |
4230 | # the compiler is broken, or we cross compile. | |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4232 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4233 | if test "$cross_compiling" != yes; then | |
4234 | { { ac_try="$ac_link" | |
4235 | case "(($ac_try" in | |
4236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4237 | *) ac_try_echo=$ac_try;; | |
4238 | esac | |
4239 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4240 | $as_echo "$ac_try_echo"; } >&5 | |
4241 | (eval "$ac_link") 2>&5 | |
4242 | ac_status=$? | |
4243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4244 | test $ac_status = 0; } | |
4245 | if { ac_try='./conftest$ac_cv_exeext' | |
4246 | { { case "(($ac_try" in | |
4247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4248 | *) ac_try_echo=$ac_try;; | |
4249 | esac | |
4250 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4251 | $as_echo "$ac_try_echo"; } >&5 | |
4252 | (eval "$ac_try") 2>&5 | |
4253 | ac_status=$? | |
4254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4255 | test $ac_status = 0; }; }; then | |
4256 | cross_compiling=no | |
4257 | else | |
4258 | if test "$cross_compiling" = maybe; then | |
4259 | cross_compiling=yes | |
4260 | else | |
4261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4262 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4263 | as_fn_error $? "cannot run C compiled programs. | |
4264 | If you meant to cross compile, use \`--host'. | |
4265 | See \`config.log' for more details" "$LINENO" 5; } | |
4266 | fi | |
4267 | fi | |
4268 | fi | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4270 | $as_echo "$cross_compiling" >&6; } | |
4271 | ||
4272 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4273 | ac_clean_files=$ac_clean_files_save | |
f02d008e | 4274 | fi |
5213506e RW |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4276 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 4277 | if ${ac_cv_objext+:} false; then : |
5213506e | 4278 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4279 | else |
5213506e | 4280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a DN |
4281 | /* end confdefs.h. */ |
4282 | ||
4283 | int | |
4284 | main () | |
4285 | { | |
4286 | ||
4287 | ; | |
4288 | return 0; | |
4289 | } | |
4290 | _ACEOF | |
4291 | rm -f conftest.o conftest.obj | |
5213506e RW |
4292 | if { { ac_try="$ac_compile" |
4293 | case "(($ac_try" in | |
4294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4295 | *) ac_try_echo=$ac_try;; | |
4296 | esac | |
4297 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4298 | $as_echo "$ac_try_echo"; } >&5 | |
4299 | (eval "$ac_compile") 2>&5 | |
4300 | ac_status=$? | |
4301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4302 | test $ac_status = 0; }; then : | |
4303 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4304 | test -f "$ac_file" || continue; | |
6de9cd9a | 4305 | case $ac_file in |
5213506e | 4306 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
6de9cd9a DN |
4307 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4308 | break;; | |
4309 | esac | |
4310 | done | |
4311 | else | |
5213506e | 4312 | $as_echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
4313 | sed 's/^/| /' conftest.$ac_ext >&5 |
4314 | ||
5213506e RW |
4315 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4316 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4317 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4318 | See \`config.log' for more details" "$LINENO" 5; } | |
78511f8b | 4319 | fi |
78511f8b JB |
4320 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4321 | fi | |
5213506e RW |
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4323 | $as_echo "$ac_cv_objext" >&6; } | |
78511f8b JB |
4324 | OBJEXT=$ac_cv_objext |
4325 | ac_objext=$OBJEXT | |
5213506e RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4327 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4328 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 4329 | $as_echo_n "(cached) " >&6 |
78511f8b | 4330 | else |
5213506e | 4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 4332 | /* end confdefs.h. */ |
6de9cd9a | 4333 | |
6de9cd9a DN |
4334 | int |
4335 | main () | |
4336 | { | |
78511f8b JB |
4337 | #ifndef __GNUC__ |
4338 | choke me | |
4339 | #endif | |
c0e7e2bf | 4340 | |
6de9cd9a DN |
4341 | ; |
4342 | return 0; | |
4343 | } | |
4344 | _ACEOF | |
5213506e | 4345 | if ac_fn_c_try_compile "$LINENO"; then : |
78511f8b | 4346 | ac_compiler_gnu=yes |
6de9cd9a | 4347 | else |
5213506e | 4348 | ac_compiler_gnu=no |
78511f8b | 4349 | fi |
5213506e | 4350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
78511f8b JB |
4351 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4352 | ||
4353 | fi | |
5213506e RW |
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4355 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4356 | if test $ac_compiler_gnu = yes; then | |
4357 | GCC=yes | |
4358 | else | |
4359 | GCC= | |
4360 | fi | |
78511f8b JB |
4361 | ac_test_CFLAGS=${CFLAGS+set} |
4362 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4364 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4365 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e | 4366 | $as_echo_n "(cached) " >&6 |
78511f8b | 4367 | else |
5213506e RW |
4368 | ac_save_c_werror_flag=$ac_c_werror_flag |
4369 | ac_c_werror_flag=yes | |
4370 | ac_cv_prog_cc_g=no | |
4371 | CFLAGS="-g" | |
4372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6de9cd9a | 4373 | /* end confdefs.h. */ |
c0e7e2bf | 4374 | |
6de9cd9a DN |
4375 | int |
4376 | main () | |
4377 | { | |
c0e7e2bf | 4378 | |
6de9cd9a DN |
4379 | ; |
4380 | return 0; | |
4381 | } | |
4382 | _ACEOF | |
5213506e | 4383 | if ac_fn_c_try_compile "$LINENO"; then : |
f489fba1 FXC |
4384 | ac_cv_prog_cc_g=yes |
4385 | else | |
5213506e RW |
4386 | CFLAGS="" |
4387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4388 | /* end confdefs.h. */ | |
4389 | ||
4390 | int | |
4391 | main () | |
4392 | { | |
4393 | ||
4394 | ; | |
4395 | return 0; | |
4396 | } | |
4397 | _ACEOF | |
4398 | if ac_fn_c_try_compile "$LINENO"; then : | |
4399 | ||
4400 | else | |
4401 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4402 | CFLAGS="-g" | |
4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4404 | /* end confdefs.h. */ | |
f489fba1 | 4405 | |
5213506e RW |
4406 | int |
4407 | main () | |
4408 | { | |
4409 | ||
4410 | ; | |
4411 | return 0; | |
4412 | } | |
4413 | _ACEOF | |
4414 | if ac_fn_c_try_compile "$LINENO"; then : | |
4415 | ac_cv_prog_cc_g=yes | |
4416 | fi | |
4417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
38d24731 | 4418 | fi |
5213506e | 4419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
38d24731 | 4420 | fi |
5213506e RW |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4422 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4423 | fi | |
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4425 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
38d24731 RW |
4426 | if test "$ac_test_CFLAGS" = set; then |
4427 | CFLAGS=$ac_save_CFLAGS | |
4428 | elif test $ac_cv_prog_cc_g = yes; then | |
4429 | if test "$GCC" = yes; then | |
4430 | CFLAGS="-g -O2" | |
4431 | else | |
4432 | CFLAGS="-g" | |
4433 | fi | |
4434 | else | |
4435 | if test "$GCC" = yes; then | |
4436 | CFLAGS="-O2" | |
4437 | else | |
4438 | CFLAGS= | |
4439 | fi | |
4440 | fi | |
5213506e RW |
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4442 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4443 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 4444 | $as_echo_n "(cached) " >&6 |
38d24731 | 4445 | else |
5213506e | 4446 | ac_cv_prog_cc_c89=no |
38d24731 | 4447 | ac_save_CC=$CC |
5213506e | 4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f489fba1 | 4449 | /* end confdefs.h. */ |
38d24731 RW |
4450 | #include <stdarg.h> |
4451 | #include <stdio.h> | |
22e05272 | 4452 | struct stat; |
38d24731 RW |
4453 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4454 | struct buf { int x; }; | |
4455 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4456 | static char *e (p, i) | |
4457 | char **p; | |
4458 | int i; | |
4459 | { | |
4460 | return p[i]; | |
4461 | } | |
4462 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4463 | { | |
4464 | char *s; | |
4465 | va_list v; | |
4466 | va_start (v,p); | |
4467 | s = g (p, va_arg (v,int)); | |
4468 | va_end (v); | |
4469 | return s; | |
4470 | } | |
f489fba1 | 4471 | |
38d24731 RW |
4472 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4473 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4474 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4475 | as 'x'. The following induces an error, until -std is added to get |
38d24731 RW |
4476 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4477 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4478 | that's true only with -std. */ |
38d24731 RW |
4479 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4480 | ||
5213506e RW |
4481 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4482 | inside strings and character constants. */ | |
4483 | #define FOO(x) 'x' | |
4484 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4485 | ||
38d24731 RW |
4486 | int test (int i, double x); |
4487 | struct s1 {int (*f) (int a);}; | |
4488 | struct s2 {int (*f) (double a);}; | |
4489 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4490 | int argc; | |
4491 | char **argv; | |
f489fba1 FXC |
4492 | int |
4493 | main () | |
4494 | { | |
38d24731 | 4495 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
f489fba1 FXC |
4496 | ; |
4497 | return 0; | |
4498 | } | |
4499 | _ACEOF | |
5213506e RW |
4500 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4501 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
38d24731 RW |
4502 | do |
4503 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4504 | if ac_fn_c_try_compile "$LINENO"; then : |
4505 | ac_cv_prog_cc_c89=$ac_arg | |
38d24731 | 4506 | fi |
5213506e RW |
4507 | rm -f core conftest.err conftest.$ac_objext |
4508 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
38d24731 | 4509 | done |
5213506e | 4510 | rm -f conftest.$ac_ext |
38d24731 RW |
4511 | CC=$ac_save_CC |
4512 | ||
4513 | fi | |
5213506e RW |
4514 | # AC_CACHE_VAL |
4515 | case "x$ac_cv_prog_cc_c89" in | |
4516 | x) | |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4518 | $as_echo "none needed" >&6; } ;; | |
4519 | xno) | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4521 | $as_echo "unsupported" >&6; } ;; | |
38d24731 | 4522 | *) |
5213506e RW |
4523 | CC="$CC $ac_cv_prog_cc_c89" |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4525 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
38d24731 | 4526 | esac |
5213506e | 4527 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6de9cd9a DN |
4528 | |
4529 | fi | |
6de9cd9a | 4530 | |
6de9cd9a DN |
4531 | ac_ext=c |
4532 | ac_cpp='$CPP $CPPFLAGS' | |
4533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
679c0f9a | 4536 | |
22e05272 JM |
4537 | ac_ext=c |
4538 | ac_cpp='$CPP $CPPFLAGS' | |
4539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4543 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4544 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4545 | $as_echo_n "(cached) " >&6 | |
4546 | else | |
4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4548 | /* end confdefs.h. */ | |
4549 | ||
4550 | int | |
4551 | main () | |
4552 | { | |
4553 | ||
4554 | ; | |
4555 | return 0; | |
4556 | } | |
4557 | _ACEOF | |
4558 | # Make sure it works both with $CC and with simple cc. | |
4559 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4560 | # compilers refuse to overwrite an existing .o file with -o, | |
4561 | # though they will create one. | |
4562 | am_cv_prog_cc_c_o=yes | |
4563 | for am_i in 1 2; do | |
4564 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4565 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4566 | ac_status=$? | |
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4568 | (exit $ac_status); } \ | |
4569 | && test -f conftest2.$ac_objext; then | |
4570 | : OK | |
4571 | else | |
4572 | am_cv_prog_cc_c_o=no | |
4573 | break | |
4574 | fi | |
4575 | done | |
4576 | rm -f core conftest* | |
4577 | unset am_i | |
4578 | fi | |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4580 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4581 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4582 | # Losing compiler, so override with the script. | |
4583 | # FIXME: It is wrong to rewrite CC. | |
4584 | # But if we don't then we get into trouble of one sort or another. | |
4585 | # A longer-term fix would be to have automake use am__CC in this case, | |
4586 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4587 | CC="$am_aux_dir/compile $CC" | |
4588 | fi | |
4589 | ac_ext=c | |
4590 | ac_cpp='$CPP $CPPFLAGS' | |
4591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4594 | ||
4595 | ||
679c0f9a TT |
4596 | depcc="$CC" am_compiler_list= |
4597 | ||
5213506e RW |
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4599 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4600 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
5213506e | 4601 | $as_echo_n "(cached) " >&6 |
679c0f9a TT |
4602 | else |
4603 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4604 | # We make a subdir and do the tests there. Otherwise we can end up | |
4605 | # making bogus files that we don't know about and never remove. For | |
4606 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4607 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4608 | # in D". | |
c20fdb91 | 4609 | rm -rf conftest.dir |
679c0f9a TT |
4610 | mkdir conftest.dir |
4611 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4612 | # using a relative directory. | |
4613 | cp "$am_depcomp" conftest.dir | |
4614 | cd conftest.dir | |
4615 | # We will build objects and dependencies in a subdirectory because | |
4616 | # it helps to detect inapplicable dependency modes. For instance | |
4617 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4618 | # side effect of compilation, but ICC will put the dependencies in | |
4619 | # the current directory while Tru64 will put them in the object | |
4620 | # directory. | |
4621 | mkdir sub | |
4622 | ||
4623 | am_cv_CC_dependencies_compiler_type=none | |
4624 | if test "$am_compiler_list" = ""; then | |
4625 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4626 | fi | |
5213506e RW |
4627 | am__universal=false |
4628 | case " $depcc " in #( | |
4629 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4630 | esac | |
4631 | ||
679c0f9a TT |
4632 | for depmode in $am_compiler_list; do |
4633 | # Setup a source with many dependencies, because some compilers | |
4634 | # like to wrap large dependency lists on column 80 (with \), and | |
4635 | # we should not choose a depcomp mode which is confused by this. | |
4636 | # | |
4637 | # We need to recreate these files for each test, as the compiler may | |
4638 | # overwrite some of them when testing with obscure command lines. | |
4639 | # This happens at least with the AIX C compiler. | |
4640 | : > sub/conftest.c | |
4641 | for i in 1 2 3 4 5 6; do | |
4642 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4643 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4644 | # Solaris 10 /bin/sh. | |
4645 | echo '/* dummy */' > sub/conftst$i.h | |
679c0f9a TT |
4646 | done |
4647 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4648 | ||
22e05272 | 4649 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
5213506e | 4650 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4651 | # handle '-M -o', and we need to detect this. Also, some Intel |
4652 | # versions had trouble with output in subdirs. | |
5213506e RW |
4653 | am__obj=sub/conftest.${OBJEXT-o} |
4654 | am__minus_obj="-o $am__obj" | |
679c0f9a | 4655 | case $depmode in |
5213506e RW |
4656 | gcc) |
4657 | # This depmode causes a compiler race in universal mode. | |
4658 | test "$am__universal" = false || continue | |
4659 | ;; | |
679c0f9a | 4660 | nosideeffect) |
22e05272 JM |
4661 | # After this tag, mechanisms are not by side-effect, so they'll |
4662 | # only be used when explicitly requested. | |
679c0f9a TT |
4663 | if test "x$enable_dependency_tracking" = xyes; then |
4664 | continue | |
4665 | else | |
4666 | break | |
4667 | fi | |
4668 | ;; | |
c20fdb91 | 4669 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4670 | # This compiler won't grok '-c -o', but also, the minuso test has |
5213506e RW |
4671 | # not run yet. These depmodes are late enough in the game, and |
4672 | # so weak that their functioning should not be impacted. | |
4673 | am__obj=conftest.${OBJEXT-o} | |
4674 | am__minus_obj= | |
4675 | ;; | |
679c0f9a TT |
4676 | none) break ;; |
4677 | esac | |
679c0f9a | 4678 | if depmode=$depmode \ |
5213506e | 4679 | source=sub/conftest.c object=$am__obj \ |
679c0f9a | 4680 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 4681 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
679c0f9a | 4682 | >/dev/null 2>conftest.err && |
5213506e | 4683 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a | 4684 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 4685 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
679c0f9a TT |
4686 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4687 | # icc doesn't choke on unknown options, it will just issue warnings | |
4688 | # or remarks (even with -Werror). So we grep stderr for any message | |
4689 | # that says an option was ignored or not supported. | |
4690 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4691 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4692 | # The diagnosis changed in icc 8.0: | |
4693 | # icc: Command line remark: option '-MP' not supported | |
4694 | if (grep 'ignoring option' conftest.err || | |
4695 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4696 | am_cv_CC_dependencies_compiler_type=$depmode | |
4697 | break | |
4698 | fi | |
4699 | fi | |
4700 | done | |
4701 | ||
4702 | cd .. | |
4703 | rm -rf conftest.dir | |
4704 | else | |
4705 | am_cv_CC_dependencies_compiler_type=none | |
4706 | fi | |
4707 | ||
4708 | fi | |
5213506e RW |
4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4710 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
679c0f9a TT |
4711 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4712 | ||
5213506e | 4713 | if |
679c0f9a TT |
4714 | test "x$enable_dependency_tracking" != xno \ |
4715 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4716 | am__fastdepCC_TRUE= | |
4717 | am__fastdepCC_FALSE='#' | |
4718 | else | |
4719 | am__fastdepCC_TRUE='#' | |
4720 | am__fastdepCC_FALSE= | |
4721 | fi | |
4722 | ||
6de9cd9a | 4723 | |
6de9cd9a | 4724 | |
21be0a5a JB |
4725 | ac_ext=c |
4726 | ac_cpp='$CPP $CPPFLAGS' | |
4727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4731 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4732 | # On Suns, sometimes $CPP names a directory. | |
4733 | if test -n "$CPP" && test -d "$CPP"; then | |
4734 | CPP= | |
6de9cd9a | 4735 | fi |
21be0a5a | 4736 | if test -z "$CPP"; then |
22e05272 | 4737 | if ${ac_cv_prog_CPP+:} false; then : |
21be0a5a JB |
4738 | $as_echo_n "(cached) " >&6 |
4739 | else | |
4740 | # Double quotes because CPP needs to be expanded | |
4741 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4742 | do | |
4743 | ac_preproc_ok=false | |
4744 | for ac_c_preproc_warn_flag in '' yes | |
4745 | do | |
4746 | # Use a header file that comes with gcc, so configuring glibc | |
4747 | # with a fresh cross-compiler works. | |
4748 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4749 | # <limits.h> exists even on freestanding compilers. | |
4750 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4751 | # not just through cpp. "Syntax error" is here to catch this case. | |
4752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c0e7e2bf | 4753 | /* end confdefs.h. */ |
21be0a5a JB |
4754 | #ifdef __STDC__ |
4755 | # include <limits.h> | |
4756 | #else | |
4757 | # include <assert.h> | |
4758 | #endif | |
4759 | Syntax error | |
c0e7e2bf | 4760 | _ACEOF |
21be0a5a JB |
4761 | if ac_fn_c_try_cpp "$LINENO"; then : |
4762 | ||
49ea7a0e | 4763 | else |
21be0a5a JB |
4764 | # Broken: fails on valid input. |
4765 | continue | |
49ea7a0e | 4766 | fi |
22e05272 | 4767 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4768 | |
21be0a5a JB |
4769 | # OK, works on sane cases. Now check whether nonexistent headers |
4770 | # can be detected and how. | |
4771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4772 | /* end confdefs.h. */ | |
4773 | #include <ac_nonexistent.h> | |
49ea7a0e | 4774 | _ACEOF |
21be0a5a JB |
4775 | if ac_fn_c_try_cpp "$LINENO"; then : |
4776 | # Broken: success on invalid input. | |
4777 | continue | |
c0e7e2bf | 4778 | else |
21be0a5a JB |
4779 | # Passes both tests. |
4780 | ac_preproc_ok=: | |
4781 | break | |
49ea7a0e | 4782 | fi |
22e05272 | 4783 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4784 | |
4785 | done | |
4786 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4787 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4788 | if $ac_preproc_ok; then : |
4789 | break | |
c0e7e2bf JB |
4790 | fi |
4791 | ||
21be0a5a JB |
4792 | done |
4793 | ac_cv_prog_CPP=$CPP | |
4794 | ||
4795 | fi | |
4796 | CPP=$ac_cv_prog_CPP | |
49ea7a0e | 4797 | else |
21be0a5a | 4798 | ac_cv_prog_CPP=$CPP |
49ea7a0e | 4799 | fi |
21be0a5a JB |
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4801 | $as_echo "$CPP" >&6; } | |
4802 | ac_preproc_ok=false | |
4803 | for ac_c_preproc_warn_flag in '' yes | |
4804 | do | |
4805 | # Use a header file that comes with gcc, so configuring glibc | |
4806 | # with a fresh cross-compiler works. | |
4807 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4808 | # <limits.h> exists even on freestanding compilers. | |
4809 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4810 | # not just through cpp. "Syntax error" is here to catch this case. | |
4811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4812 | /* end confdefs.h. */ | |
4813 | #ifdef __STDC__ | |
4814 | # include <limits.h> | |
4815 | #else | |
4816 | # include <assert.h> | |
4817 | #endif | |
4818 | Syntax error | |
4819 | _ACEOF | |
4820 | if ac_fn_c_try_cpp "$LINENO"; then : | |
49ea7a0e | 4821 | |
49ea7a0e | 4822 | else |
21be0a5a JB |
4823 | # Broken: fails on valid input. |
4824 | continue | |
49ea7a0e | 4825 | fi |
22e05272 | 4826 | rm -f conftest.err conftest.i conftest.$ac_ext |
49ea7a0e | 4827 | |
21be0a5a JB |
4828 | # OK, works on sane cases. Now check whether nonexistent headers |
4829 | # can be detected and how. | |
4830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c049309d | 4831 | /* end confdefs.h. */ |
21be0a5a | 4832 | #include <ac_nonexistent.h> |
c049309d | 4833 | _ACEOF |
21be0a5a JB |
4834 | if ac_fn_c_try_cpp "$LINENO"; then : |
4835 | # Broken: success on invalid input. | |
4836 | continue | |
c049309d | 4837 | else |
21be0a5a JB |
4838 | # Passes both tests. |
4839 | ac_preproc_ok=: | |
4840 | break | |
c049309d | 4841 | fi |
22e05272 | 4842 | rm -f conftest.err conftest.i conftest.$ac_ext |
21be0a5a JB |
4843 | |
4844 | done | |
4845 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4846 | rm -f conftest.i conftest.err conftest.$ac_ext |
21be0a5a JB |
4847 | if $ac_preproc_ok; then : |
4848 | ||
c049309d | 4849 | else |
21be0a5a JB |
4850 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4852 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4853 | See \`config.log' for more details" "$LINENO" 5; } | |
c049309d | 4854 | fi |
c049309d | 4855 | |
21be0a5a JB |
4856 | ac_ext=c |
4857 | ac_cpp='$CPP $CPPFLAGS' | |
4858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c049309d | 4861 | |
21be0a5a JB |
4862 | |
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4864 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4865 | if ${ac_cv_path_GREP+:} false; then : |
5213506e | 4866 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4867 | else |
21be0a5a JB |
4868 | if test -z "$GREP"; then |
4869 | ac_path_GREP_found=false | |
4870 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4872 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
96b8a615 AJ |
4873 | do |
4874 | IFS=$as_save_IFS | |
4875 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4876 | for ac_prog in grep ggrep; do |
5213506e | 4877 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4878 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4879 | as_fn_executable_p "$ac_path_GREP" || continue |
21be0a5a JB |
4880 | # Check for GNU ac_path_GREP and select it if it is found. |
4881 | # Check for GNU $ac_path_GREP | |
4882 | case `"$ac_path_GREP" --version 2>&1` in | |
4883 | *GNU*) | |
4884 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4885 | *) | |
4886 | ac_count=0 | |
4887 | $as_echo_n 0123456789 >"conftest.in" | |
4888 | while : | |
4889 | do | |
4890 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4891 | mv "conftest.tmp" "conftest.in" | |
4892 | cp "conftest.in" "conftest.nl" | |
4893 | $as_echo 'GREP' >> "conftest.nl" | |
4894 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4895 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4896 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4897 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4898 | # Best one so far, save it but keep looking for a better one | |
4899 | ac_cv_path_GREP="$ac_path_GREP" | |
4900 | ac_path_GREP_max=$ac_count | |
4901 | fi | |
4902 | # 10*(2^10) chars as input seems more than enough | |
4903 | test $ac_count -gt 10 && break | |
5213506e | 4904 | done |
21be0a5a JB |
4905 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4906 | esac | |
6de9cd9a | 4907 | |
21be0a5a JB |
4908 | $ac_path_GREP_found && break 3 |
4909 | done | |
4910 | done | |
4911 | done | |
4912 | IFS=$as_save_IFS | |
4913 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4914 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4915 | fi |
6de9cd9a | 4916 | else |
21be0a5a | 4917 | ac_cv_path_GREP=$GREP |
6de9cd9a DN |
4918 | fi |
4919 | ||
6de9cd9a | 4920 | fi |
21be0a5a JB |
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4922 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4923 | GREP="$ac_cv_path_GREP" | |
6de9cd9a | 4924 | |
21be0a5a JB |
4925 | |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4927 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4928 | if ${ac_cv_path_EGREP+:} false; then : |
5213506e | 4929 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4930 | else |
21be0a5a JB |
4931 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4932 | then ac_cv_path_EGREP="$GREP -E" | |
4933 | else | |
4934 | if test -z "$EGREP"; then | |
4935 | ac_path_EGREP_found=false | |
4936 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4938 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6de9cd9a DN |
4939 | do |
4940 | IFS=$as_save_IFS | |
4941 | test -z "$as_dir" && as_dir=. | |
21be0a5a | 4942 | for ac_prog in egrep; do |
5213506e | 4943 | for ac_exec_ext in '' $ac_executable_extensions; do |
21be0a5a | 4944 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 4945 | as_fn_executable_p "$ac_path_EGREP" || continue |
21be0a5a JB |
4946 | # Check for GNU ac_path_EGREP and select it if it is found. |
4947 | # Check for GNU $ac_path_EGREP | |
4948 | case `"$ac_path_EGREP" --version 2>&1` in | |
4949 | *GNU*) | |
4950 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4951 | *) | |
4952 | ac_count=0 | |
4953 | $as_echo_n 0123456789 >"conftest.in" | |
4954 | while : | |
4955 | do | |
4956 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4957 | mv "conftest.tmp" "conftest.in" | |
4958 | cp "conftest.in" "conftest.nl" | |
4959 | $as_echo 'EGREP' >> "conftest.nl" | |
4960 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4961 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4962 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4963 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4964 | # Best one so far, save it but keep looking for a better one | |
4965 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4966 | ac_path_EGREP_max=$ac_count | |
4967 | fi | |
4968 | # 10*(2^10) chars as input seems more than enough | |
4969 | test $ac_count -gt 10 && break | |
5213506e | 4970 | done |
21be0a5a JB |
4971 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4972 | esac | |
6de9cd9a | 4973 | |
21be0a5a JB |
4974 | $ac_path_EGREP_found && break 3 |
4975 | done | |
4976 | done | |
4977 | done | |
4978 | IFS=$as_save_IFS | |
4979 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4980 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
21be0a5a | 4981 | fi |
6de9cd9a | 4982 | else |
21be0a5a | 4983 | ac_cv_path_EGREP=$EGREP |
6de9cd9a DN |
4984 | fi |
4985 | ||
21be0a5a | 4986 | fi |
6de9cd9a | 4987 | fi |
21be0a5a JB |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4989 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4990 | EGREP="$ac_cv_path_EGREP" | |
4991 | ||
4992 | ||
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4994 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4995 | if ${ac_cv_header_stdc+:} false; then : |
5213506e | 4996 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 4997 | else |
21be0a5a JB |
4998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4999 | /* end confdefs.h. */ | |
5000 | #include <stdlib.h> | |
5001 | #include <stdarg.h> | |
5002 | #include <string.h> | |
5003 | #include <float.h> | |
5004 | ||
5005 | int | |
5006 | main () | |
5007 | { | |
5008 | ||
5009 | ; | |
5010 | return 0; | |
5011 | } | |
5012 | _ACEOF | |
5013 | if ac_fn_c_try_compile "$LINENO"; then : | |
5014 | ac_cv_header_stdc=yes | |
6de9cd9a | 5015 | else |
21be0a5a JB |
5016 | ac_cv_header_stdc=no |
5017 | fi | |
5018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5019 | |
21be0a5a JB |
5020 | if test $ac_cv_header_stdc = yes; then |
5021 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5023 | /* end confdefs.h. */ | |
5024 | #include <string.h> | |
5025 | ||
5026 | _ACEOF | |
5027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5028 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5029 | ||
5030 | else | |
5031 | ac_cv_header_stdc=no | |
6de9cd9a | 5032 | fi |
21be0a5a JB |
5033 | rm -f conftest* |
5034 | ||
6de9cd9a | 5035 | fi |
21be0a5a JB |
5036 | |
5037 | if test $ac_cv_header_stdc = yes; then | |
5038 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5040 | /* end confdefs.h. */ | |
5041 | #include <stdlib.h> | |
5042 | ||
5043 | _ACEOF | |
5044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5045 | $EGREP "free" >/dev/null 2>&1; then : | |
5046 | ||
6de9cd9a | 5047 | else |
21be0a5a | 5048 | ac_cv_header_stdc=no |
6de9cd9a | 5049 | fi |
21be0a5a | 5050 | rm -f conftest* |
6de9cd9a | 5051 | |
6de9cd9a DN |
5052 | fi |
5053 | ||
21be0a5a JB |
5054 | if test $ac_cv_header_stdc = yes; then |
5055 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5056 | if test "$cross_compiling" = yes; then : | |
5057 | : | |
5058 | else | |
5059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5060 | /* end confdefs.h. */ | |
5061 | #include <ctype.h> | |
5062 | #include <stdlib.h> | |
5063 | #if ((' ' & 0x0FF) == 0x020) | |
5064 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5065 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5066 | #else | |
5067 | # define ISLOWER(c) \ | |
5068 | (('a' <= (c) && (c) <= 'i') \ | |
5069 | || ('j' <= (c) && (c) <= 'r') \ | |
5070 | || ('s' <= (c) && (c) <= 'z')) | |
5071 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5072 | #endif | |
5073 | ||
5074 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5075 | int | |
5076 | main () | |
5077 | { | |
5078 | int i; | |
5079 | for (i = 0; i < 256; i++) | |
5080 | if (XOR (islower (i), ISLOWER (i)) | |
5081 | || toupper (i) != TOUPPER (i)) | |
5082 | return 2; | |
5083 | return 0; | |
5084 | } | |
5085 | _ACEOF | |
5086 | if ac_fn_c_try_run "$LINENO"; then : | |
5087 | ||
5088 | else | |
5089 | ac_cv_header_stdc=no | |
5090 | fi | |
5091 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5092 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5093 | fi | |
5094 | ||
5095 | fi | |
5096 | fi | |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5098 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5099 | if test $ac_cv_header_stdc = yes; then | |
5100 | ||
5101 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5102 | ||
5103 | fi | |
5104 | ||
5105 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5106 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5107 | inttypes.h stdint.h unistd.h | |
5108 | do : | |
5109 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5110 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5111 | " | |
22e05272 | 5112 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
21be0a5a JB |
5113 | cat >>confdefs.h <<_ACEOF |
5114 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5115 | _ACEOF | |
5116 | ||
5117 | fi | |
5118 | ||
5119 | done | |
5120 | ||
5121 | ||
5122 | ||
5123 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 5124 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
21be0a5a JB |
5125 | MINIX=yes |
5126 | else | |
5127 | MINIX= | |
5128 | fi | |
5129 | ||
5130 | ||
5131 | if test "$MINIX" = yes; then | |
5132 | ||
5133 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5134 | ||
5135 | ||
5136 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5137 | ||
5138 | ||
5139 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5140 | ||
5141 | fi | |
5142 | ||
5143 | ||
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5145 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 5146 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
21be0a5a JB |
5147 | $as_echo_n "(cached) " >&6 |
5148 | else | |
5149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5150 | /* end confdefs.h. */ | |
5151 | ||
22e05272 JM |
5152 | # define __EXTENSIONS__ 1 |
5153 | $ac_includes_default | |
21be0a5a JB |
5154 | int |
5155 | main () | |
5156 | { | |
5157 | ||
5158 | ; | |
5159 | return 0; | |
5160 | } | |
5161 | _ACEOF | |
5162 | if ac_fn_c_try_compile "$LINENO"; then : | |
5163 | ac_cv_safe_to_define___extensions__=yes | |
5164 | else | |
5165 | ac_cv_safe_to_define___extensions__=no | |
5166 | fi | |
5167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5168 | fi | |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5170 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5171 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5172 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5173 | ||
5174 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5175 | ||
5176 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5177 | ||
5178 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5179 | ||
5180 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5181 | ||
5182 | ||
5183 | ||
e8e66971 MR |
5184 | |
5185 | # Check whether --with-toolexeclibdir was given. | |
5186 | if test "${with_toolexeclibdir+set}" = set; then : | |
5187 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
5188 | /) | |
5189 | ;; | |
5190 | */) | |
5191 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
5192 | ;; | |
5193 | esac | |
5194 | else | |
5195 | with_toolexeclibdir=no | |
5196 | fi | |
5197 | ||
5198 | ||
5199 | ||
21be0a5a JB |
5200 | # Calculate toolexeclibdir |
5201 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5202 | case ${version_specific_libs} in | |
5203 | yes) | |
5204 | # Need the gcc compiler version to know where to install libraries | |
5205 | # and header files if --enable-version-specific-runtime-libs option | |
5206 | # is selected. | |
5207 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5208 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5209 | ;; | |
5210 | no) | |
5211 | if test -n "$with_cross_host" && | |
5212 | test x"$with_cross_host" != x"no"; then | |
5213 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5214 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
5215 | case ${with_toolexeclibdir} in |
5216 | no) | |
5217 | toolexeclibdir='$(toolexecdir)/lib' | |
5218 | ;; | |
5219 | *) | |
5220 | toolexeclibdir=${with_toolexeclibdir} | |
5221 | ;; | |
5222 | esac | |
21be0a5a JB |
5223 | else |
5224 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5225 | toolexeclibdir='$(libdir)' | |
5226 | fi | |
5227 | multi_os_directory=`$CC -print-multi-os-directory` | |
5228 | case $multi_os_directory in | |
5229 | .) ;; # Avoid trailing /. | |
5230 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5231 | esac | |
5232 | ;; | |
5233 | esac | |
5234 | ||
5235 | ||
5236 | ||
5237 | # Create a spec file, so that compile/link tests don't fail | |
5238 | test -f libgfortran.spec || touch libgfortran.spec | |
5239 | ||
60858d8a TB |
5240 | ac_ext=c |
5241 | ac_cpp='$CPP $CPPFLAGS' | |
5242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5245 | ||
21be0a5a JB |
5246 | # Check the compiler. |
5247 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5248 | # We must force CC to /not/ be precious variables; otherwise | |
5249 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5250 | # As a side effect, we have to subst CFLAGS ourselves. | |
5251 | ||
5252 | ||
5253 | ||
5254 | ac_ext=c | |
5255 | ac_cpp='$CPP $CPPFLAGS' | |
5256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5259 | if test -n "$ac_tool_prefix"; then | |
5260 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5261 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5263 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5264 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5265 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5266 | else |
21be0a5a JB |
5267 | if test -n "$CC"; then |
5268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5269 | else |
96b8a615 AJ |
5270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5271 | for as_dir in $PATH | |
5272 | do | |
5273 | IFS=$as_save_IFS | |
5274 | test -z "$as_dir" && as_dir=. | |
5213506e | 5275 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5277 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 5278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5279 | break 2 |
5280 | fi | |
5281 | done | |
5213506e RW |
5282 | done |
5283 | IFS=$as_save_IFS | |
6de9cd9a | 5284 | |
6de9cd9a | 5285 | fi |
96b8a615 | 5286 | fi |
21be0a5a JB |
5287 | CC=$ac_cv_prog_CC |
5288 | if test -n "$CC"; then | |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5290 | $as_echo "$CC" >&6; } | |
96b8a615 | 5291 | else |
5213506e RW |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5293 | $as_echo "no" >&6; } | |
96b8a615 | 5294 | fi |
6de9cd9a | 5295 | |
5213506e | 5296 | |
6de9cd9a | 5297 | fi |
21be0a5a JB |
5298 | if test -z "$ac_cv_prog_CC"; then |
5299 | ac_ct_CC=$CC | |
5300 | # Extract the first word of "gcc", so it can be a program name with args. | |
5301 | set dummy gcc; ac_word=$2 | |
5213506e RW |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5303 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5304 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 5305 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5306 | else |
21be0a5a JB |
5307 | if test -n "$ac_ct_CC"; then |
5308 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6de9cd9a | 5309 | else |
96b8a615 AJ |
5310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5311 | for as_dir in $PATH | |
5312 | do | |
5313 | IFS=$as_save_IFS | |
5314 | test -z "$as_dir" && as_dir=. | |
5213506e | 5315 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 5316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 5317 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 5318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
5319 | break 2 |
5320 | fi | |
5321 | done | |
5213506e RW |
5322 | done |
5323 | IFS=$as_save_IFS | |
6de9cd9a | 5324 | |
6de9cd9a | 5325 | fi |
6de9cd9a | 5326 | fi |
21be0a5a JB |
5327 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5328 | if test -n "$ac_ct_CC"; then | |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5330 | $as_echo "$ac_ct_CC" >&6; } | |
6de9cd9a | 5331 | else |
5213506e RW |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5333 | $as_echo "no" >&6; } | |
6de9cd9a DN |
5334 | fi |
5335 | ||
21be0a5a JB |
5336 | if test "x$ac_ct_CC" = x; then |
5337 | CC="" | |
5213506e RW |
5338 | else |
5339 | case $cross_compiling:$ac_tool_warned in | |
5340 | yes:) | |
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5343 | ac_tool_warned=yes ;; | |
5344 | esac | |
21be0a5a | 5345 | CC=$ac_ct_CC |
5213506e | 5346 | fi |
96b8a615 | 5347 | else |
21be0a5a | 5348 | CC="$ac_cv_prog_CC" |
6de9cd9a | 5349 | fi |
96b8a615 | 5350 | |
21be0a5a JB |
5351 | if test -z "$CC"; then |
5352 | if test -n "$ac_tool_prefix"; then | |
5353 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5354 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5356 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5357 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 5358 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 5359 | else |
21be0a5a JB |
5360 | if test -n "$CC"; then |
5361 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6de9cd9a | 5362 | else |
21be0a5a JB |
5363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5364 | for as_dir in $PATH | |
5365 | do | |
5366 | IFS=$as_save_IFS | |
5367 | test -z "$as_dir" && as_dir=. | |
5368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5370 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5372 | break 2 | |
5373 | fi | |
5374 | done | |
5375 | done | |
5376 | IFS=$as_save_IFS | |
5377 | ||
5378 | fi | |
5379 | fi | |
5380 | CC=$ac_cv_prog_CC | |
5381 | if test -n "$CC"; then | |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5383 | $as_echo "$CC" >&6; } | |
5384 | else | |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5386 | $as_echo "no" >&6; } | |
5387 | fi | |
5388 | ||
5389 | ||
5390 | fi | |
5391 | fi | |
5392 | if test -z "$CC"; then | |
5393 | # Extract the first word of "cc", so it can be a program name with args. | |
5394 | set dummy cc; ac_word=$2 | |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5396 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5397 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5398 | $as_echo_n "(cached) " >&6 |
5399 | else | |
5400 | if test -n "$CC"; then | |
5401 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5402 | else | |
5403 | ac_prog_rejected=no | |
5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5405 | for as_dir in $PATH | |
5406 | do | |
5407 | IFS=$as_save_IFS | |
5408 | test -z "$as_dir" && as_dir=. | |
5409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5411 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5412 | ac_prog_rejected=yes | |
5413 | continue | |
5414 | fi | |
5415 | ac_cv_prog_CC="cc" | |
5416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5417 | break 2 | |
5418 | fi | |
5419 | done | |
5420 | done | |
5421 | IFS=$as_save_IFS | |
5422 | ||
5423 | if test $ac_prog_rejected = yes; then | |
5424 | # We found a bogon in the path, so make sure we never use it. | |
5425 | set dummy $ac_cv_prog_CC | |
5426 | shift | |
5427 | if test $# != 0; then | |
5428 | # We chose a different compiler from the bogus one. | |
5429 | # However, it has the same basename, so the bogon will be chosen | |
5430 | # first if we set CC to just the basename; use the full file name. | |
5431 | shift | |
5432 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5433 | fi | |
5434 | fi | |
5435 | fi | |
5436 | fi | |
5437 | CC=$ac_cv_prog_CC | |
5438 | if test -n "$CC"; then | |
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5440 | $as_echo "$CC" >&6; } | |
5441 | else | |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5443 | $as_echo "no" >&6; } | |
5444 | fi | |
5445 | ||
5446 | ||
5447 | fi | |
5448 | if test -z "$CC"; then | |
5449 | if test -n "$ac_tool_prefix"; then | |
5450 | for ac_prog in cl.exe | |
5451 | do | |
5452 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5453 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5455 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5456 | if ${ac_cv_prog_CC+:} false; then : |
21be0a5a JB |
5457 | $as_echo_n "(cached) " >&6 |
5458 | else | |
5459 | if test -n "$CC"; then | |
5460 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5461 | else | |
5462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5463 | for as_dir in $PATH | |
5464 | do | |
5465 | IFS=$as_save_IFS | |
5466 | test -z "$as_dir" && as_dir=. | |
5467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5468 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5469 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5471 | break 2 | |
5472 | fi | |
5473 | done | |
5474 | done | |
5475 | IFS=$as_save_IFS | |
5476 | ||
5477 | fi | |
5478 | fi | |
5479 | CC=$ac_cv_prog_CC | |
5480 | if test -n "$CC"; then | |
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5482 | $as_echo "$CC" >&6; } | |
5483 | else | |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5485 | $as_echo "no" >&6; } | |
5486 | fi | |
5487 | ||
5488 | ||
5489 | test -n "$CC" && break | |
5490 | done | |
5491 | fi | |
5492 | if test -z "$CC"; then | |
5493 | ac_ct_CC=$CC | |
5494 | for ac_prog in cl.exe | |
5495 | do | |
5496 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5497 | set dummy $ac_prog; ac_word=$2 | |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5499 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5500 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
21be0a5a JB |
5501 | $as_echo_n "(cached) " >&6 |
5502 | else | |
5503 | if test -n "$ac_ct_CC"; then | |
5504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5505 | else | |
5506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5507 | for as_dir in $PATH | |
5508 | do | |
5509 | IFS=$as_save_IFS | |
5510 | test -z "$as_dir" && as_dir=. | |
5511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
5513 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5515 | break 2 | |
5516 | fi | |
5517 | done | |
5518 | done | |
5519 | IFS=$as_save_IFS | |
5520 | ||
5521 | fi | |
5522 | fi | |
5523 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5524 | if test -n "$ac_ct_CC"; then | |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5526 | $as_echo "$ac_ct_CC" >&6; } | |
5527 | else | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5529 | $as_echo "no" >&6; } | |
5530 | fi | |
5531 | ||
5532 | ||
5533 | test -n "$ac_ct_CC" && break | |
5534 | done | |
5535 | ||
5536 | if test "x$ac_ct_CC" = x; then | |
5537 | CC="" | |
5538 | else | |
5539 | case $cross_compiling:$ac_tool_warned in | |
5540 | yes:) | |
5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5543 | ac_tool_warned=yes ;; | |
5544 | esac | |
5545 | CC=$ac_ct_CC | |
5546 | fi | |
5547 | fi | |
5548 | ||
5549 | fi | |
5550 | ||
5551 | ||
5552 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5554 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5555 | See \`config.log' for more details" "$LINENO" 5; } | |
21be0a5a JB |
5556 | |
5557 | # Provide some information about the compiler. | |
5558 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5559 | set X $ac_compile | |
5560 | ac_compiler=$2 | |
5561 | for ac_option in --version -v -V -qversion; do | |
5562 | { { ac_try="$ac_compiler $ac_option >&5" | |
5563 | case "(($ac_try" in | |
5564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5565 | *) ac_try_echo=$ac_try;; | |
5566 | esac | |
5567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5568 | $as_echo "$ac_try_echo"; } >&5 | |
5569 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5570 | ac_status=$? | |
5571 | if test -s conftest.err; then | |
5572 | sed '10a\ | |
5573 | ... rest of stderr output deleted ... | |
5574 | 10q' conftest.err >conftest.er1 | |
5575 | cat conftest.er1 >&5 | |
21be0a5a | 5576 | fi |
22e05272 | 5577 | rm -f conftest.er1 conftest.err |
21be0a5a JB |
5578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5579 | test $ac_status = 0; } | |
5580 | done | |
5581 | ||
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5583 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 5584 | if ${ac_cv_c_compiler_gnu+:} false; then : |
21be0a5a JB |
5585 | $as_echo_n "(cached) " >&6 |
5586 | else | |
5587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5588 | /* end confdefs.h. */ | |
5589 | ||
5590 | int | |
5591 | main () | |
5592 | { | |
5593 | #ifndef __GNUC__ | |
5594 | choke me | |
5595 | #endif | |
5596 | ||
5597 | ; | |
5598 | return 0; | |
5599 | } | |
5600 | _ACEOF | |
5601 | if ac_fn_c_try_compile "$LINENO"; then : | |
5602 | ac_compiler_gnu=yes | |
5603 | else | |
5604 | ac_compiler_gnu=no | |
5605 | fi | |
5606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5607 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5608 | ||
5609 | fi | |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5611 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5612 | if test $ac_compiler_gnu = yes; then | |
5613 | GCC=yes | |
5614 | else | |
5615 | GCC= | |
5616 | fi | |
5617 | ac_test_CFLAGS=${CFLAGS+set} | |
5618 | ac_save_CFLAGS=$CFLAGS | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5620 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5621 | if ${ac_cv_prog_cc_g+:} false; then : |
21be0a5a JB |
5622 | $as_echo_n "(cached) " >&6 |
5623 | else | |
5624 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5625 | ac_c_werror_flag=yes | |
5626 | ac_cv_prog_cc_g=no | |
5627 | CFLAGS="-g" | |
5628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5629 | /* end confdefs.h. */ | |
5630 | ||
5631 | int | |
5632 | main () | |
5633 | { | |
5634 | ||
5635 | ; | |
5636 | return 0; | |
5637 | } | |
5638 | _ACEOF | |
5639 | if ac_fn_c_try_compile "$LINENO"; then : | |
5640 | ac_cv_prog_cc_g=yes | |
5641 | else | |
5642 | CFLAGS="" | |
5643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5644 | /* end confdefs.h. */ | |
5645 | ||
5646 | int | |
5647 | main () | |
5648 | { | |
5649 | ||
5650 | ; | |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | if ac_fn_c_try_compile "$LINENO"; then : | |
5655 | ||
5656 | else | |
5657 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5658 | CFLAGS="-g" | |
5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5660 | /* end confdefs.h. */ | |
5661 | ||
5662 | int | |
5663 | main () | |
5664 | { | |
5665 | ||
5666 | ; | |
5667 | return 0; | |
5668 | } | |
5669 | _ACEOF | |
5670 | if ac_fn_c_try_compile "$LINENO"; then : | |
5671 | ac_cv_prog_cc_g=yes | |
5672 | fi | |
5673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5674 | fi | |
5675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5676 | fi | |
5677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5678 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5679 | fi | |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5681 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5682 | if test "$ac_test_CFLAGS" = set; then | |
5683 | CFLAGS=$ac_save_CFLAGS | |
5684 | elif test $ac_cv_prog_cc_g = yes; then | |
5685 | if test "$GCC" = yes; then | |
5686 | CFLAGS="-g -O2" | |
5687 | else | |
5688 | CFLAGS="-g" | |
5689 | fi | |
5690 | else | |
5691 | if test "$GCC" = yes; then | |
5692 | CFLAGS="-O2" | |
5693 | else | |
5694 | CFLAGS= | |
5695 | fi | |
5696 | fi | |
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5698 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5699 | if ${ac_cv_prog_cc_c89+:} false; then : |
21be0a5a JB |
5700 | $as_echo_n "(cached) " >&6 |
5701 | else | |
5702 | ac_cv_prog_cc_c89=no | |
5703 | ac_save_CC=$CC | |
5704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5705 | /* end confdefs.h. */ | |
5706 | #include <stdarg.h> | |
5707 | #include <stdio.h> | |
22e05272 | 5708 | struct stat; |
21be0a5a JB |
5709 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5710 | struct buf { int x; }; | |
5711 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5712 | static char *e (p, i) | |
5713 | char **p; | |
5714 | int i; | |
5715 | { | |
5716 | return p[i]; | |
5717 | } | |
5718 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5719 | { | |
5720 | char *s; | |
5721 | va_list v; | |
5722 | va_start (v,p); | |
5723 | s = g (p, va_arg (v,int)); | |
5724 | va_end (v); | |
5725 | return s; | |
5726 | } | |
5727 | ||
5728 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5729 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5730 | These don't provoke an error unfortunately, instead are silently treated | |
5731 | as 'x'. The following induces an error, until -std is added to get | |
5732 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5733 | array size at least. It's necessary to write '\x00'==0 to get something | |
5734 | that's true only with -std. */ | |
5735 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5736 | ||
5737 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5738 | inside strings and character constants. */ | |
5739 | #define FOO(x) 'x' | |
5740 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5741 | ||
5742 | int test (int i, double x); | |
5743 | struct s1 {int (*f) (int a);}; | |
5744 | struct s2 {int (*f) (double a);}; | |
5745 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5746 | int argc; | |
5747 | char **argv; | |
5748 | int | |
5749 | main () | |
5750 | { | |
5751 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5752 | ; | |
5753 | return 0; | |
5754 | } | |
5755 | _ACEOF | |
5756 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5757 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5758 | do | |
5759 | CC="$ac_save_CC $ac_arg" | |
5760 | if ac_fn_c_try_compile "$LINENO"; then : | |
5761 | ac_cv_prog_cc_c89=$ac_arg | |
5762 | fi | |
5763 | rm -f core conftest.err conftest.$ac_objext | |
5764 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5765 | done | |
5766 | rm -f conftest.$ac_ext | |
5767 | CC=$ac_save_CC | |
5768 | ||
5769 | fi | |
5770 | # AC_CACHE_VAL | |
5771 | case "x$ac_cv_prog_cc_c89" in | |
5772 | x) | |
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5774 | $as_echo "none needed" >&6; } ;; | |
5775 | xno) | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5777 | $as_echo "unsupported" >&6; } ;; | |
5778 | *) | |
5779 | CC="$CC $ac_cv_prog_cc_c89" | |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5781 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5782 | esac | |
5783 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5784 | ||
5785 | fi | |
5786 | ||
5787 | ac_ext=c | |
5788 | ac_cpp='$CPP $CPPFLAGS' | |
5789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5792 | ||
22e05272 JM |
5793 | ac_ext=c |
5794 | ac_cpp='$CPP $CPPFLAGS' | |
5795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5799 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5800 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5801 | $as_echo_n "(cached) " >&6 | |
5802 | else | |
5803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5804 | /* end confdefs.h. */ | |
5805 | ||
5806 | int | |
5807 | main () | |
5808 | { | |
5809 | ||
5810 | ; | |
5811 | return 0; | |
5812 | } | |
5813 | _ACEOF | |
5814 | # Make sure it works both with $CC and with simple cc. | |
5815 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5816 | # compilers refuse to overwrite an existing .o file with -o, | |
5817 | # though they will create one. | |
5818 | am_cv_prog_cc_c_o=yes | |
5819 | for am_i in 1 2; do | |
5820 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5821 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5822 | ac_status=$? | |
5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5824 | (exit $ac_status); } \ | |
5825 | && test -f conftest2.$ac_objext; then | |
5826 | : OK | |
5827 | else | |
5828 | am_cv_prog_cc_c_o=no | |
5829 | break | |
5830 | fi | |
5831 | done | |
5832 | rm -f core conftest* | |
5833 | unset am_i | |
5834 | fi | |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5836 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5837 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5838 | # Losing compiler, so override with the script. | |
5839 | # FIXME: It is wrong to rewrite CC. | |
5840 | # But if we don't then we get into trouble of one sort or another. | |
5841 | # A longer-term fix would be to have automake use am__CC in this case, | |
5842 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5843 | CC="$am_aux_dir/compile $CC" | |
5844 | fi | |
5845 | ac_ext=c | |
5846 | ac_cpp='$CPP $CPPFLAGS' | |
5847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5850 | ||
5851 | ||
21be0a5a JB |
5852 | depcc="$CC" am_compiler_list= |
5853 | ||
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5855 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5856 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
21be0a5a JB |
5857 | $as_echo_n "(cached) " >&6 |
5858 | else | |
5859 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5860 | # We make a subdir and do the tests there. Otherwise we can end up | |
5861 | # making bogus files that we don't know about and never remove. For | |
5862 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5863 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5864 | # in D". | |
c20fdb91 | 5865 | rm -rf conftest.dir |
21be0a5a JB |
5866 | mkdir conftest.dir |
5867 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5868 | # using a relative directory. | |
5869 | cp "$am_depcomp" conftest.dir | |
5870 | cd conftest.dir | |
5871 | # We will build objects and dependencies in a subdirectory because | |
5872 | # it helps to detect inapplicable dependency modes. For instance | |
5873 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5874 | # side effect of compilation, but ICC will put the dependencies in | |
5875 | # the current directory while Tru64 will put them in the object | |
5876 | # directory. | |
5877 | mkdir sub | |
5878 | ||
5879 | am_cv_CC_dependencies_compiler_type=none | |
5880 | if test "$am_compiler_list" = ""; then | |
5881 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5882 | fi | |
5883 | am__universal=false | |
5884 | case " $depcc " in #( | |
5885 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5886 | esac | |
5887 | ||
5888 | for depmode in $am_compiler_list; do | |
5889 | # Setup a source with many dependencies, because some compilers | |
5890 | # like to wrap large dependency lists on column 80 (with \), and | |
5891 | # we should not choose a depcomp mode which is confused by this. | |
5892 | # | |
5893 | # We need to recreate these files for each test, as the compiler may | |
5894 | # overwrite some of them when testing with obscure command lines. | |
5895 | # This happens at least with the AIX C compiler. | |
5896 | : > sub/conftest.c | |
5897 | for i in 1 2 3 4 5 6; do | |
5898 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5899 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5900 | # Solaris 10 /bin/sh. | |
5901 | echo '/* dummy */' > sub/conftst$i.h | |
21be0a5a JB |
5902 | done |
5903 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5904 | ||
22e05272 | 5905 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
21be0a5a | 5906 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5907 | # handle '-M -o', and we need to detect this. Also, some Intel |
5908 | # versions had trouble with output in subdirs. | |
21be0a5a JB |
5909 | am__obj=sub/conftest.${OBJEXT-o} |
5910 | am__minus_obj="-o $am__obj" | |
5911 | case $depmode in | |
5912 | gcc) | |
5913 | # This depmode causes a compiler race in universal mode. | |
5914 | test "$am__universal" = false || continue | |
5915 | ;; | |
5916 | nosideeffect) | |
22e05272 JM |
5917 | # After this tag, mechanisms are not by side-effect, so they'll |
5918 | # only be used when explicitly requested. | |
21be0a5a JB |
5919 | if test "x$enable_dependency_tracking" = xyes; then |
5920 | continue | |
5921 | else | |
5922 | break | |
5923 | fi | |
5924 | ;; | |
c20fdb91 | 5925 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 5926 | # This compiler won't grok '-c -o', but also, the minuso test has |
21be0a5a JB |
5927 | # not run yet. These depmodes are late enough in the game, and |
5928 | # so weak that their functioning should not be impacted. | |
5929 | am__obj=conftest.${OBJEXT-o} | |
5930 | am__minus_obj= | |
5931 | ;; | |
5932 | none) break ;; | |
5933 | esac | |
5934 | if depmode=$depmode \ | |
5935 | source=sub/conftest.c object=$am__obj \ | |
5936 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5937 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5938 | >/dev/null 2>conftest.err && | |
5939 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5940 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5941 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5942 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5943 | # icc doesn't choke on unknown options, it will just issue warnings | |
5944 | # or remarks (even with -Werror). So we grep stderr for any message | |
5945 | # that says an option was ignored or not supported. | |
5946 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5947 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5948 | # The diagnosis changed in icc 8.0: | |
5949 | # icc: Command line remark: option '-MP' not supported | |
5950 | if (grep 'ignoring option' conftest.err || | |
5951 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5952 | am_cv_CC_dependencies_compiler_type=$depmode | |
5953 | break | |
5954 | fi | |
5955 | fi | |
5956 | done | |
5957 | ||
5958 | cd .. | |
5959 | rm -rf conftest.dir | |
5960 | else | |
5961 | am_cv_CC_dependencies_compiler_type=none | |
5962 | fi | |
5963 | ||
5964 | fi | |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5966 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5967 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5968 | ||
5969 | if | |
5970 | test "x$enable_dependency_tracking" != xno \ | |
5971 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5972 | am__fastdepCC_TRUE= | |
5973 | am__fastdepCC_FALSE='#' | |
5974 | else | |
5975 | am__fastdepCC_TRUE='#' | |
5976 | am__fastdepCC_FALSE= | |
5977 | fi | |
5978 | ||
5979 | ||
5980 | ||
5981 | ||
60858d8a TB |
5982 | |
5983 | ||
60858d8a TB |
5984 | |
5985 | ||
21be0a5a JB |
5986 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
5987 | if test "x$GCC" = "xyes"; then | |
417ea5c0 | 5988 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring -Wno-missing-include-dirs" |
f7b6856f JB |
5989 | ## We like to use C11 and C99 routines when available. This makes |
5990 | ## sure that | |
21be0a5a | 5991 | ## __STDC_VERSION__ is set such that libc includes make them available. |
581d2326 | 5992 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
21be0a5a JB |
5993 | ## Compile the following tests with the same system header contents |
5994 | ## that we'll encounter when compiling our own source files. | |
f7b6856f | 5995 | CFLAGS="-std=gnu11 $CFLAGS" |
21be0a5a JB |
5996 | fi |
5997 | ||
26724ef9 IT |
5998 | # Add CET specific flags if CET is enabled |
5999 | # Check whether --enable-cet was given. | |
6000 | if test "${enable_cet+set}" = set; then : | |
6001 | enableval=$enable_cet; | |
6002 | case "$enableval" in | |
a0e1df88 | 6003 | yes|no|auto) ;; |
22e05272 | 6004 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
26724ef9 IT |
6005 | esac |
6006 | ||
6007 | else | |
8d286dd1 | 6008 | enable_cet=auto |
26724ef9 IT |
6009 | fi |
6010 | ||
6011 | ||
14e335ed IT |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
6013 | $as_echo_n "checking for CET support... " >&6; } | |
6014 | ||
9051b548 | 6015 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
26724ef9 IT |
6016 | case "$host" in |
6017 | i[34567]86-*-linux* | x86_64-*-linux*) | |
6018 | case "$enable_cet" in | |
a0e1df88 | 6019 | auto) |
14e335ed | 6020 | # Check if target supports multi-byte NOPs |
c0f8c22a | 6021 | # and if compiler and assembler support CET insn. |
9051b548 | 6022 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 6023 | CFLAGS="$CFLAGS -fcf-protection" |
26724ef9 IT |
6024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6025 | /* end confdefs.h. */ | |
6026 | ||
6027 | int | |
6028 | main () | |
6029 | { | |
14e335ed IT |
6030 | |
6031 | #if !defined(__SSE2__) | |
6032 | #error target does not support multi-byte NOPs | |
6033 | #else | |
26724ef9 | 6034 | asm ("setssbsy"); |
14e335ed IT |
6035 | #endif |
6036 | ||
26724ef9 IT |
6037 | ; |
6038 | return 0; | |
6039 | } | |
6040 | _ACEOF | |
6041 | if ac_fn_c_try_compile "$LINENO"; then : | |
6042 | enable_cet=yes | |
6043 | else | |
6044 | enable_cet=no | |
6045 | fi | |
6046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 6047 | CFLAGS="$cet_save_CFLAGS" |
26724ef9 IT |
6048 | ;; |
6049 | yes) | |
6050 | # Check if assembler supports CET. | |
6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6052 | /* end confdefs.h. */ | |
6053 | ||
6054 | int | |
6055 | main () | |
6056 | { | |
6057 | asm ("setssbsy"); | |
6058 | ; | |
6059 | return 0; | |
6060 | } | |
6061 | _ACEOF | |
6062 | if ac_fn_c_try_compile "$LINENO"; then : | |
6063 | ||
6064 | else | |
22e05272 | 6065 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
26724ef9 IT |
6066 | fi |
6067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6068 | ;; | |
6069 | esac | |
6070 | ;; | |
6071 | *) | |
6072 | enable_cet=no | |
6073 | ;; | |
6074 | esac | |
6075 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 6076 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6078 | $as_echo "yes" >&6; } | |
6079 | else | |
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6081 | $as_echo "no" >&6; } | |
26724ef9 IT |
6082 | fi |
6083 | ||
6084 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6085 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6086 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6087 | ||
6088 | ||
21be0a5a JB |
6089 | |
6090 | ||
6091 | ||
6092 | # Check for symbol versioning (copied from libssp). | |
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6094 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bf382f5f RO |
6095 | # Check whether --enable-symvers was given. |
6096 | if test "${enable_symvers+set}" = set; then : | |
6097 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6098 | else | |
6099 | gfortran_use_symver=yes | |
6100 | fi | |
6101 | ||
19af62db | 6102 | if test "x$gfortran_use_symver" != xno; then |
bf382f5f RO |
6103 | save_LDFLAGS="$LDFLAGS" |
6104 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6105 | cat > conftest.map <<EOF | |
21be0a5a JB |
6106 | FOO_1.0 { |
6107 | global: *foo*; bar; local: *; | |
6108 | }; | |
6109 | EOF | |
bf382f5f | 6110 | if test x$gcc_no_link = xyes; then |
22e05272 | 6111 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6112 | fi |
6113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6114 | /* end confdefs.h. */ | |
6115 | int foo; | |
6116 | int | |
6117 | main () | |
6118 | { | |
6119 | ||
6120 | ; | |
6121 | return 0; | |
6122 | } | |
6123 | _ACEOF | |
6124 | if ac_fn_c_try_link "$LINENO"; then : | |
6125 | gfortran_use_symver=gnu | |
6126 | else | |
6127 | gfortran_use_symver=no | |
6128 | fi | |
6129 | rm -f core conftest.err conftest.$ac_objext \ | |
6130 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6131 | if test x$gfortran_use_symver = xno; then |
6132 | case "$target_os" in | |
6133 | solaris2*) | |
6134 | LDFLAGS="$save_LDFLAGS" | |
6135 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6136 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6137 | cat > conftest.map <<EOF | |
21be0a5a JB |
6138 | FOO_1.0 { |
6139 | global: foo; local: *; | |
6140 | }; | |
6141 | EOF | |
bf382f5f | 6142 | if test x$gcc_no_link = xyes; then |
22e05272 | 6143 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
6144 | fi |
6145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6146 | /* end confdefs.h. */ | |
6147 | int foo; | |
6148 | int | |
6149 | main () | |
6150 | { | |
6151 | ||
6152 | ; | |
6153 | return 0; | |
6154 | } | |
6155 | _ACEOF | |
6156 | if ac_fn_c_try_link "$LINENO"; then : | |
6157 | gfortran_use_symver=sun | |
6158 | else | |
6159 | gfortran_use_symver=no | |
6160 | fi | |
6161 | rm -f core conftest.err conftest.$ac_objext \ | |
6162 | conftest$ac_exeext conftest.$ac_ext | |
bf382f5f RO |
6163 | ;; |
6164 | esac | |
6165 | fi | |
6166 | LDFLAGS="$save_LDFLAGS" | |
21be0a5a | 6167 | fi |
21be0a5a JB |
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6169 | $as_echo "$gfortran_use_symver" >&6; } | |
6170 | if test "x$gfortran_use_symver" != xno; then | |
6171 | LIBGFOR_USE_SYMVER_TRUE= | |
6172 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6173 | else | |
6174 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6175 | LIBGFOR_USE_SYMVER_FALSE= | |
6176 | fi | |
6177 | ||
6178 | if test "x$gfortran_use_symver" = xgnu; then | |
6179 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6180 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6181 | else | |
6182 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6183 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6184 | fi | |
6185 | ||
6186 | if test "x$gfortran_use_symver" = xsun; then | |
6187 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6188 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6189 | else | |
6190 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6191 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6192 | fi | |
6193 | ||
6194 | ||
ee95f928 BS |
6195 | # For GPU offloading, not everything in libfortran can be supported. |
6196 | # Currently, the only target that has this problem is nvptx. The | |
6197 | # following is a (partial) list of features that are unsupportable on | |
6198 | # this particular target: | |
6199 | # * Constructors | |
6200 | # * alloca | |
6201 | # * C library support for I/O, with printf as the one notable exception | |
6202 | # * C library support for other features such as signal, environment | |
6203 | # variables, time functions | |
6204 | ||
b1e86e33 | 6205 | if test "x${target_cpu}" = xnvptx; then |
ee95f928 BS |
6206 | LIBGFOR_MINIMAL_TRUE= |
6207 | LIBGFOR_MINIMAL_FALSE='#' | |
6208 | else | |
6209 | LIBGFOR_MINIMAL_TRUE='#' | |
6210 | LIBGFOR_MINIMAL_FALSE= | |
6211 | fi | |
6212 | ||
6213 | ||
2e764ae1 TB |
6214 | # Some compiler target support may have limited support for integer |
6215 | # or floating point numbers – or may want to reduce the libgfortran size | |
6216 | # although they do have the support. | |
6217 | LIBGOMP_CHECKED_INT_KINDS="1 2 4 8 16" | |
6218 | LIBGOMP_CHECKED_REAL_KINDS="4 8 10 16" | |
6219 | ||
2e764ae1 TB |
6220 | |
6221 | ||
6222 | ||
21be0a5a JB |
6223 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6224 | # similarly to how libstdc++ does it | |
6225 | ac_test_CFLAGS="${CFLAGS+set}" | |
6226 | ac_save_CFLAGS="$CFLAGS" | |
6227 | ||
6228 | # Check for -ffunction-sections -fdata-sections | |
6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6230 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6231 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6233 | /* end confdefs.h. */ | |
6234 | ||
6235 | int | |
6236 | main () | |
6237 | { | |
6238 | int foo; | |
6239 | ; | |
6240 | return 0; | |
6241 | } | |
6242 | _ACEOF | |
6243 | if ac_fn_c_try_compile "$LINENO"; then : | |
6244 | ac_fdsections=yes | |
6245 | else | |
6246 | ac_fdsections=no | |
6247 | fi | |
6248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6249 | if test "$ac_test_CFLAGS" = set; then | |
6250 | CFLAGS="$ac_save_CFLAGS" | |
6251 | else | |
6252 | # this is the suspicious part | |
6253 | CFLAGS="" | |
6254 | fi | |
6255 | if test x"$ac_fdsections" = x"yes"; then | |
6256 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6257 | fi | |
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6259 | $as_echo "$ac_fdsections" >&6; } | |
6260 | ||
6261 | ||
66dbcf2d RO |
6262 | # Check linker hardware capability support. |
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6264 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 6265 | if ${ac_cv_path_SED+:} false; then : |
21be0a5a JB |
6266 | $as_echo_n "(cached) " >&6 |
6267 | else | |
66dbcf2d RO |
6268 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6269 | for ac_i in 1 2 3 4 5 6 7; do | |
6270 | ac_script="$ac_script$as_nl$ac_script" | |
6271 | done | |
6272 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6273 | { ac_script=; unset ac_script;} | |
6274 | if test -z "$SED"; then | |
6275 | ac_path_SED_found=false | |
6276 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21be0a5a JB |
6278 | for as_dir in $PATH |
6279 | do | |
6280 | IFS=$as_save_IFS | |
6281 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6282 | for ac_prog in sed gsed; do |
21be0a5a | 6283 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6284 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6285 | as_fn_executable_p "$ac_path_SED" || continue |
66dbcf2d RO |
6286 | # Check for GNU ac_path_SED and select it if it is found. |
6287 | # Check for GNU $ac_path_SED | |
6288 | case `"$ac_path_SED" --version 2>&1` in | |
6289 | *GNU*) | |
6290 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6291 | *) | |
6292 | ac_count=0 | |
6293 | $as_echo_n 0123456789 >"conftest.in" | |
6294 | while : | |
6295 | do | |
6296 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6297 | mv "conftest.tmp" "conftest.in" | |
6298 | cp "conftest.in" "conftest.nl" | |
6299 | $as_echo '' >> "conftest.nl" | |
6300 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6301 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6302 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6303 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6304 | # Best one so far, save it but keep looking for a better one | |
6305 | ac_cv_path_SED="$ac_path_SED" | |
6306 | ac_path_SED_max=$ac_count | |
6307 | fi | |
6308 | # 10*(2^10) chars as input seems more than enough | |
6309 | test $ac_count -gt 10 && break | |
21be0a5a | 6310 | done |
66dbcf2d RO |
6311 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6312 | esac | |
21be0a5a | 6313 | |
66dbcf2d RO |
6314 | $ac_path_SED_found && break 3 |
6315 | done | |
6316 | done | |
21be0a5a JB |
6317 | done |
6318 | IFS=$as_save_IFS | |
66dbcf2d | 6319 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 6320 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
66dbcf2d | 6321 | fi |
21be0a5a | 6322 | else |
66dbcf2d | 6323 | ac_cv_path_SED=$SED |
21be0a5a JB |
6324 | fi |
6325 | ||
21be0a5a | 6326 | fi |
66dbcf2d RO |
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6328 | $as_echo "$ac_cv_path_SED" >&6; } | |
6329 | SED="$ac_cv_path_SED" | |
6330 | rm -f conftest.sed | |
21be0a5a | 6331 | |
66dbcf2d RO |
6332 | test -z "$SED" && SED=sed |
6333 | Xsed="$SED -e 1s/^X//" | |
21be0a5a | 6334 | |
21be0a5a JB |
6335 | |
6336 | ||
66dbcf2d RO |
6337 | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6346 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 6347 | if ${ac_cv_path_FGREP+:} false; then : |
21be0a5a JB |
6348 | $as_echo_n "(cached) " >&6 |
6349 | else | |
66dbcf2d RO |
6350 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6351 | then ac_cv_path_FGREP="$GREP -F" | |
6352 | else | |
6353 | if test -z "$FGREP"; then | |
6354 | ac_path_FGREP_found=false | |
6355 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6357 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
21be0a5a JB |
6358 | do |
6359 | IFS=$as_save_IFS | |
6360 | test -z "$as_dir" && as_dir=. | |
66dbcf2d | 6361 | for ac_prog in fgrep; do |
21be0a5a | 6362 | for ac_exec_ext in '' $ac_executable_extensions; do |
66dbcf2d | 6363 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6364 | as_fn_executable_p "$ac_path_FGREP" || continue |
66dbcf2d RO |
6365 | # Check for GNU ac_path_FGREP and select it if it is found. |
6366 | # Check for GNU $ac_path_FGREP | |
6367 | case `"$ac_path_FGREP" --version 2>&1` in | |
6368 | *GNU*) | |
6369 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6370 | *) | |
6371 | ac_count=0 | |
6372 | $as_echo_n 0123456789 >"conftest.in" | |
6373 | while : | |
6374 | do | |
6375 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6376 | mv "conftest.tmp" "conftest.in" | |
6377 | cp "conftest.in" "conftest.nl" | |
6378 | $as_echo 'FGREP' >> "conftest.nl" | |
6379 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6380 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6381 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6382 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6383 | # Best one so far, save it but keep looking for a better one | |
6384 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6385 | ac_path_FGREP_max=$ac_count | |
6386 | fi | |
6387 | # 10*(2^10) chars as input seems more than enough | |
6388 | test $ac_count -gt 10 && break | |
6389 | done | |
6390 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6391 | esac | |
6392 | ||
6393 | $ac_path_FGREP_found && break 3 | |
6394 | done | |
6395 | done | |
21be0a5a JB |
6396 | done |
6397 | IFS=$as_save_IFS | |
66dbcf2d | 6398 | if test -z "$ac_cv_path_FGREP"; then |
22e05272 | 6399 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
66dbcf2d RO |
6400 | fi |
6401 | else | |
6402 | ac_cv_path_FGREP=$FGREP | |
6403 | fi | |
21be0a5a | 6404 | |
66dbcf2d | 6405 | fi |
21be0a5a | 6406 | fi |
66dbcf2d RO |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6408 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6409 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
6410 | |
6411 | ||
66dbcf2d | 6412 | test -z "$GREP" && GREP=grep |
1cf3d07d SE |
6413 | |
6414 | ||
6415 | ||
6416 | ||
6de9cd9a | 6417 | |
1cf3d07d SE |
6418 | |
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
43e02a8a | 6425 | |
43e02a8a | 6426 | |
43e02a8a | 6427 | |
43e02a8a | 6428 | |
43e02a8a RW |
6429 | |
6430 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6431 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6432 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6433 | ||
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6435 | $as_echo_n "checking how to print strings... " >&6; } | |
6436 | # Test print first, because it will be a builtin if present. | |
6437 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6438 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6439 | ECHO='print -r --' | |
6440 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6441 | ECHO='printf %s\n' | |
6442 | else | |
6443 | # Use this function as a fallback that always works. | |
6444 | func_fallback_echo () | |
6445 | { | |
6446 | eval 'cat <<_LTECHO_EOF | |
6447 | $1 | |
6448 | _LTECHO_EOF' | |
6449 | } | |
6450 | ECHO='func_fallback_echo' | |
6451 | fi | |
6452 | ||
6453 | # func_echo_all arg... | |
6454 | # Invoke $ECHO with all args, space-separated. | |
6455 | func_echo_all () | |
6456 | { | |
6457 | $ECHO "" | |
6458 | } | |
6459 | ||
6460 | case "$ECHO" in | |
6461 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6462 | $as_echo "printf" >&6; } ;; | |
6463 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6464 | $as_echo "print -r" >&6; } ;; | |
6465 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6466 | $as_echo "cat" >&6; } ;; | |
6467 | esac | |
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
21be0a5a JB |
6480 | |
6481 | ||
5213506e | 6482 | |
5213506e | 6483 | |
66dbcf2d RO |
6484 | # Check whether --with-gnu-ld was given. |
6485 | if test "${with_gnu_ld+set}" = set; then : | |
6486 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6487 | else | |
6488 | with_gnu_ld=no | |
1cf3d07d | 6489 | fi |
21be0a5a | 6490 | |
66dbcf2d RO |
6491 | ac_prog=ld |
6492 | if test "$GCC" = yes; then | |
6493 | # Check if gcc -print-prog-name=ld gives a path. | |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6495 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6496 | case $host in | |
6497 | *-*-mingw*) | |
6498 | # gcc leaves a trailing carriage return which upsets mingw | |
6499 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6500 | *) | |
6501 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6502 | esac | |
6503 | case $ac_prog in | |
6504 | # Accept absolute paths. | |
6505 | [\\/]* | ?:[\\/]*) | |
6506 | re_direlt='/[^/][^/]*/\.\./' | |
6507 | # Canonicalize the pathname of ld | |
6508 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6509 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6510 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6511 | done | |
6512 | test -z "$LD" && LD="$ac_prog" | |
6513 | ;; | |
6514 | "") | |
6515 | # If it fails, then pretend we aren't using GCC. | |
6516 | ac_prog=ld | |
6517 | ;; | |
6518 | *) | |
6519 | # If it is relative, then search for the first ld in PATH. | |
6520 | with_gnu_ld=unknown | |
6521 | ;; | |
6522 | esac | |
6523 | elif test "$with_gnu_ld" = yes; then | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6525 | $as_echo_n "checking for GNU ld... " >&6; } | |
6526 | else | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6528 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6529 | fi | |
22e05272 | 6530 | if ${lt_cv_path_LD+:} false; then : |
66dbcf2d RO |
6531 | $as_echo_n "(cached) " >&6 |
6532 | else | |
6533 | if test -z "$LD"; then | |
6534 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6535 | for ac_dir in $PATH; do | |
6536 | IFS="$lt_save_ifs" | |
6537 | test -z "$ac_dir" && ac_dir=. | |
6538 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6539 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6540 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6541 | # but apparently some variants of GNU ld only accept -v. | |
6542 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6543 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6544 | *GNU* | *'with BFD'*) | |
6545 | test "$with_gnu_ld" != no && break | |
6546 | ;; | |
6547 | *) | |
6548 | test "$with_gnu_ld" != yes && break | |
6549 | ;; | |
6550 | esac | |
6551 | fi | |
6552 | done | |
6553 | IFS="$lt_save_ifs" | |
6554 | else | |
6555 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6556 | fi | |
6557 | fi | |
6558 | ||
6559 | LD="$lt_cv_path_LD" | |
6560 | if test -n "$LD"; then | |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6562 | $as_echo "$LD" >&6; } | |
6563 | else | |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6565 | $as_echo "no" >&6; } | |
6566 | fi | |
22e05272 | 6567 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
66dbcf2d RO |
6568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6569 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6570 | if ${lt_cv_prog_gnu_ld+:} false; then : |
66dbcf2d RO |
6571 | $as_echo_n "(cached) " >&6 |
6572 | else | |
6573 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6574 | case `$LD -v 2>&1 </dev/null` in | |
6575 | *GNU* | *'with BFD'*) | |
6576 | lt_cv_prog_gnu_ld=yes | |
6577 | ;; | |
6578 | *) | |
6579 | lt_cv_prog_gnu_ld=no | |
6580 | ;; | |
6581 | esac | |
6582 | fi | |
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6584 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6585 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
21be0a5a JB |
6586 | |
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
1cf3d07d SE |
6594 | |
6595 | ||
66dbcf2d RO |
6596 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6597 | ||
6598 | ||
6599 | ac_save_LDFLAGS="$LDFLAGS" | |
6600 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6601 | ||
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6603 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6604 | if test x$gcc_no_link = xyes; then | |
22e05272 | 6605 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
66dbcf2d RO |
6606 | fi |
6607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6608 | /* end confdefs.h. */ | |
6609 | ||
6610 | int | |
6611 | main () | |
6612 | { | |
6613 | return 0; | |
6614 | ; | |
6615 | return 0; | |
6616 | } | |
6617 | _ACEOF | |
6618 | if ac_fn_c_try_link "$LINENO"; then : | |
6619 | ac_hwcap_ldflags=yes | |
6620 | else | |
6621 | ac_hwcap_ldflags=no | |
6622 | fi | |
6623 | rm -f core conftest.err conftest.$ac_objext \ | |
6624 | conftest$ac_exeext conftest.$ac_ext | |
6625 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6626 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6627 | fi | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6629 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6630 | ||
6631 | LDFLAGS="$ac_save_LDFLAGS" | |
6632 | ||
6633 | ||
6634 | ||
6635 | if test $ac_hwcap_ldflags != no; then | |
6636 | HAVE_HWCAP_TRUE= | |
6637 | HAVE_HWCAP_FALSE='#' | |
6638 | else | |
6639 | HAVE_HWCAP_TRUE='#' | |
6640 | HAVE_HWCAP_FALSE= | |
6641 | fi | |
6642 | ||
6643 | ||
6644 | ||
6645 | # Find other programs we need. | |
6646 | if test -n "$ac_tool_prefix"; then | |
6647 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6648 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6650 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6651 | if ${ac_cv_prog_AS+:} false; then : |
5213506e | 6652 | $as_echo_n "(cached) " >&6 |
38d24731 | 6653 | else |
66dbcf2d RO |
6654 | if test -n "$AS"; then |
6655 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6656 | else | |
6657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6658 | for as_dir in $PATH | |
5213506e RW |
6659 | do |
6660 | IFS=$as_save_IFS | |
6661 | test -z "$as_dir" && as_dir=. | |
5213506e | 6662 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 6663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6664 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6666 | break 2 | |
6667 | fi | |
6668 | done | |
5213506e | 6669 | done |
66dbcf2d RO |
6670 | IFS=$as_save_IFS |
6671 | ||
6672 | fi | |
6673 | fi | |
6674 | AS=$ac_cv_prog_AS | |
6675 | if test -n "$AS"; then | |
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6677 | $as_echo "$AS" >&6; } | |
6678 | else | |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6680 | $as_echo "no" >&6; } | |
6681 | fi | |
6682 | ||
6683 | ||
6684 | fi | |
6685 | if test -z "$ac_cv_prog_AS"; then | |
6686 | ac_ct_AS=$AS | |
6687 | # Extract the first word of "as", so it can be a program name with args. | |
6688 | set dummy as; ac_word=$2 | |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6690 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6691 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
66dbcf2d RO |
6692 | $as_echo_n "(cached) " >&6 |
6693 | else | |
6694 | if test -n "$ac_ct_AS"; then | |
6695 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6696 | else | |
6697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6698 | for as_dir in $PATH | |
6699 | do | |
6700 | IFS=$as_save_IFS | |
6701 | test -z "$as_dir" && as_dir=. | |
6702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6704 | ac_cv_prog_ac_ct_AS="as" |
6705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6706 | break 2 | |
6707 | fi | |
6708 | done | |
6709 | done | |
6710 | IFS=$as_save_IFS | |
6711 | ||
6712 | fi | |
6713 | fi | |
6714 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6715 | if test -n "$ac_ct_AS"; then | |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6717 | $as_echo "$ac_ct_AS" >&6; } | |
6718 | else | |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6720 | $as_echo "no" >&6; } | |
6721 | fi | |
6722 | ||
6723 | if test "x$ac_ct_AS" = x; then | |
6724 | AS="" | |
6725 | else | |
6726 | case $cross_compiling:$ac_tool_warned in | |
6727 | yes:) | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6730 | ac_tool_warned=yes ;; | |
5213506e | 6731 | esac |
66dbcf2d RO |
6732 | AS=$ac_ct_AS |
6733 | fi | |
6734 | else | |
6735 | AS="$ac_cv_prog_AS" | |
6736 | fi | |
5213506e | 6737 | |
66dbcf2d RO |
6738 | if test -n "$ac_tool_prefix"; then |
6739 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6740 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6742 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6743 | if ${ac_cv_prog_AR+:} false; then : |
66dbcf2d RO |
6744 | $as_echo_n "(cached) " >&6 |
6745 | else | |
6746 | if test -n "$AR"; then | |
6747 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6748 | else | |
6749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6750 | for as_dir in $PATH | |
6751 | do | |
6752 | IFS=$as_save_IFS | |
6753 | test -z "$as_dir" && as_dir=. | |
6754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6756 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6758 | break 2 | |
6759 | fi | |
6760 | done | |
5213506e | 6761 | done |
66dbcf2d RO |
6762 | IFS=$as_save_IFS |
6763 | ||
6764 | fi | |
6765 | fi | |
6766 | AR=$ac_cv_prog_AR | |
6767 | if test -n "$AR"; then | |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6769 | $as_echo "$AR" >&6; } | |
6770 | else | |
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6772 | $as_echo "no" >&6; } | |
6773 | fi | |
6774 | ||
6775 | ||
6776 | fi | |
6777 | if test -z "$ac_cv_prog_AR"; then | |
6778 | ac_ct_AR=$AR | |
6779 | # Extract the first word of "ar", so it can be a program name with args. | |
6780 | set dummy ar; ac_word=$2 | |
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6782 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6783 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
66dbcf2d RO |
6784 | $as_echo_n "(cached) " >&6 |
6785 | else | |
6786 | if test -n "$ac_ct_AR"; then | |
6787 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6788 | else | |
6789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6790 | for as_dir in $PATH | |
6791 | do | |
6792 | IFS=$as_save_IFS | |
6793 | test -z "$as_dir" && as_dir=. | |
6794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6796 | ac_cv_prog_ac_ct_AR="ar" |
6797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6798 | break 2 | |
6799 | fi | |
6800 | done | |
6801 | done | |
6802 | IFS=$as_save_IFS | |
6803 | ||
6804 | fi | |
6805 | fi | |
6806 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6807 | if test -n "$ac_ct_AR"; then | |
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6809 | $as_echo "$ac_ct_AR" >&6; } | |
6810 | else | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6812 | $as_echo "no" >&6; } | |
6813 | fi | |
6814 | ||
6815 | if test "x$ac_ct_AR" = x; then | |
6816 | AR="" | |
6817 | else | |
6818 | case $cross_compiling:$ac_tool_warned in | |
6819 | yes:) | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6821 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6822 | ac_tool_warned=yes ;; | |
6823 | esac | |
6824 | AR=$ac_ct_AR | |
6825 | fi | |
6826 | else | |
6827 | AR="$ac_cv_prog_AR" | |
6828 | fi | |
6829 | ||
6830 | if test -n "$ac_tool_prefix"; then | |
6831 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6832 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6834 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6835 | if ${ac_cv_prog_RANLIB+:} false; then : |
66dbcf2d RO |
6836 | $as_echo_n "(cached) " >&6 |
6837 | else | |
6838 | if test -n "$RANLIB"; then | |
6839 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6840 | else | |
6841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6842 | for as_dir in $PATH | |
6843 | do | |
6844 | IFS=$as_save_IFS | |
6845 | test -z "$as_dir" && as_dir=. | |
6846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6848 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6850 | break 2 | |
6851 | fi | |
6852 | done | |
6853 | done | |
6854 | IFS=$as_save_IFS | |
6855 | ||
6856 | fi | |
6857 | fi | |
6858 | RANLIB=$ac_cv_prog_RANLIB | |
6859 | if test -n "$RANLIB"; then | |
6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6861 | $as_echo "$RANLIB" >&6; } | |
6862 | else | |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6864 | $as_echo "no" >&6; } | |
6865 | fi | |
6866 | ||
6867 | ||
6868 | fi | |
6869 | if test -z "$ac_cv_prog_RANLIB"; then | |
6870 | ac_ct_RANLIB=$RANLIB | |
6871 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6872 | set dummy ranlib; ac_word=$2 | |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6874 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6875 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
66dbcf2d RO |
6876 | $as_echo_n "(cached) " >&6 |
6877 | else | |
6878 | if test -n "$ac_ct_RANLIB"; then | |
6879 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6880 | else | |
6881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6882 | for as_dir in $PATH | |
6883 | do | |
6884 | IFS=$as_save_IFS | |
6885 | test -z "$as_dir" && as_dir=. | |
6886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
66dbcf2d RO |
6888 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6890 | break 2 | |
6891 | fi | |
6892 | done | |
5213506e RW |
6893 | done |
6894 | IFS=$as_save_IFS | |
66dbcf2d RO |
6895 | |
6896 | fi | |
6897 | fi | |
6898 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6899 | if test -n "$ac_ct_RANLIB"; then | |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6901 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5213506e | 6902 | else |
66dbcf2d RO |
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6904 | $as_echo "no" >&6; } | |
1cf3d07d | 6905 | fi |
5213506e | 6906 | |
66dbcf2d RO |
6907 | if test "x$ac_ct_RANLIB" = x; then |
6908 | RANLIB="ranlib-not-found-in-path-error" | |
6909 | else | |
6910 | case $cross_compiling:$ac_tool_warned in | |
6911 | yes:) | |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6913 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6914 | ac_tool_warned=yes ;; | |
6915 | esac | |
6916 | RANLIB=$ac_ct_RANLIB | |
6917 | fi | |
6918 | else | |
6919 | RANLIB="$ac_cv_prog_RANLIB" | |
5213506e | 6920 | fi |
1cf3d07d | 6921 | |
66dbcf2d RO |
6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6923 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6924 | set x ${MAKE-make} | |
6925 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 6926 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
66dbcf2d RO |
6927 | $as_echo_n "(cached) " >&6 |
6928 | else | |
6929 | cat >conftest.make <<\_ACEOF | |
6930 | SHELL = /bin/sh | |
6931 | all: | |
6932 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6933 | _ACEOF | |
22e05272 | 6934 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
66dbcf2d RO |
6935 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6936 | *@@@%%%=?*=@@@%%%*) | |
6937 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6938 | *) | |
6939 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6940 | esac | |
6941 | rm -f conftest.make | |
6942 | fi | |
6943 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6945 | $as_echo "yes" >&6; } | |
6946 | SET_MAKE= | |
6947 | else | |
6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6949 | $as_echo "no" >&6; } | |
6950 | SET_MAKE="MAKE=${MAKE-make}" | |
6951 | fi | |
1cf3d07d SE |
6952 | |
6953 | ||
6954 | ||
66dbcf2d RO |
6955 | # Configure libtool |
6956 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6957 | enable_dlopen=yes | |
1cf3d07d SE |
6958 | |
6959 | ||
6960 | ||
66dbcf2d RO |
6961 | case `pwd` in |
6962 | *\ * | *\ *) | |
6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6964 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6965 | esac | |
1cf3d07d SE |
6966 | |
6967 | ||
6968 | ||
66dbcf2d RO |
6969 | macro_version='2.2.7a' |
6970 | macro_revision='1.3134' | |
1cf3d07d SE |
6971 | |
6972 | ||
6973 | ||
6974 | ||
6975 | ||
6976 | ||
6977 | ||
6978 | ||
5213506e | 6979 | |
96b8a615 | 6980 | |
96b8a615 AJ |
6981 | |
6982 | ||
96b8a615 | 6983 | |
66dbcf2d | 6984 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 6985 | |
66dbcf2d RO |
6986 | # Backslashify metacharacters that are still active within |
6987 | # double-quoted strings. | |
6988 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
1cf3d07d | 6989 | |
66dbcf2d RO |
6990 | # Same as above, but do not quote variable references. |
6991 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
1cf3d07d | 6992 | |
66dbcf2d RO |
6993 | # Sed substitution to delay expansion of an escaped shell variable in a |
6994 | # double_quote_subst'ed string. | |
6995 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1cf3d07d | 6996 | |
66dbcf2d RO |
6997 | # Sed substitution to delay expansion of an escaped single quote. |
6998 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1cf3d07d | 6999 | |
66dbcf2d RO |
7000 | # Sed substitution to avoid accidental globbing in evaled expressions |
7001 | no_glob_subst='s/\*/\\\*/g' | |
1cf3d07d | 7002 | |
5213506e RW |
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
7004 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 7005 | if ${lt_cv_path_NM+:} false; then : |
5213506e | 7006 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7007 | else |
7008 | if test -n "$NM"; then | |
7009 | # Let the user override the test. | |
7010 | lt_cv_path_NM="$NM" | |
7011 | else | |
1cf3d07d SE |
7012 | lt_nm_to_check="${ac_tool_prefix}nm" |
7013 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
7014 | lt_nm_to_check="$lt_nm_to_check nm" | |
7015 | fi | |
7016 | for lt_tmp_nm in $lt_nm_to_check; do | |
7017 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7018 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
7019 | IFS="$lt_save_ifs" | |
7020 | test -z "$ac_dir" && ac_dir=. | |
7021 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
7022 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
7023 | # Check to see if the nm accepts a BSD-compat flag. | |
7024 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
7025 | # nm: unknown option "B" ignored | |
7026 | # Tru64's nm complains that /dev/null is an invalid object file | |
7027 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
7028 | */dev/null* | *'Invalid file or object type'*) | |
7029 | lt_cv_path_NM="$tmp_nm -B" | |
7030 | break | |
7031 | ;; | |
7032 | *) | |
7033 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7034 | */dev/null*) | |
7035 | lt_cv_path_NM="$tmp_nm -p" | |
7036 | break | |
7037 | ;; | |
7038 | *) | |
7039 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7040 | continue # so that we can try to find one that supports BSD flags | |
7041 | ;; | |
7042 | esac | |
7043 | ;; | |
7044 | esac | |
7045 | fi | |
7046 | done | |
7047 | IFS="$lt_save_ifs" | |
7048 | done | |
7049 | : ${lt_cv_path_NM=no} | |
7050 | fi | |
7051 | fi | |
5213506e RW |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7053 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
7054 | if test "$lt_cv_path_NM" != "no"; then |
7055 | NM="$lt_cv_path_NM" | |
7056 | else | |
7057 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
7058 | if test -n "$DUMPBIN"; then : |
7059 | # Let the user override the test. | |
7060 | else | |
7061 | if test -n "$ac_tool_prefix"; then | |
7062 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
7063 | do |
7064 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7065 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7067 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7068 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
5213506e | 7069 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7070 | else |
7071 | if test -n "$DUMPBIN"; then | |
7072 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7073 | else | |
7074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7075 | for as_dir in $PATH | |
7076 | do | |
7077 | IFS=$as_save_IFS | |
7078 | test -z "$as_dir" && as_dir=. | |
5213506e | 7079 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7081 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 7082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7083 | break 2 |
7084 | fi | |
7085 | done | |
5213506e RW |
7086 | done |
7087 | IFS=$as_save_IFS | |
1cf3d07d SE |
7088 | |
7089 | fi | |
7090 | fi | |
7091 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7092 | if test -n "$DUMPBIN"; then | |
5213506e RW |
7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7094 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 7095 | else |
5213506e RW |
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7097 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7098 | fi |
7099 | ||
5213506e | 7100 | |
1cf3d07d SE |
7101 | test -n "$DUMPBIN" && break |
7102 | done | |
7103 | fi | |
7104 | if test -z "$DUMPBIN"; then | |
7105 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 7106 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
7107 | do |
7108 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7109 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7111 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7112 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5213506e | 7113 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7114 | else |
7115 | if test -n "$ac_ct_DUMPBIN"; then | |
7116 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7117 | else | |
7118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7119 | for as_dir in $PATH | |
7120 | do | |
7121 | IFS=$as_save_IFS | |
7122 | test -z "$as_dir" && as_dir=. | |
5213506e | 7123 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7125 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 7126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7127 | break 2 |
7128 | fi | |
7129 | done | |
5213506e RW |
7130 | done |
7131 | IFS=$as_save_IFS | |
1cf3d07d SE |
7132 | |
7133 | fi | |
7134 | fi | |
7135 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7136 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7138 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 7139 | else |
5213506e RW |
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7141 | $as_echo "no" >&6; } | |
1cf3d07d SE |
7142 | fi |
7143 | ||
5213506e | 7144 | |
1cf3d07d SE |
7145 | test -n "$ac_ct_DUMPBIN" && break |
7146 | done | |
1cf3d07d | 7147 | |
5213506e RW |
7148 | if test "x$ac_ct_DUMPBIN" = x; then |
7149 | DUMPBIN=":" | |
7150 | else | |
7151 | case $cross_compiling:$ac_tool_warned in | |
7152 | yes:) | |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7154 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7155 | ac_tool_warned=yes ;; | |
7156 | esac | |
7157 | DUMPBIN=$ac_ct_DUMPBIN | |
7158 | fi | |
96b8a615 | 7159 | fi |
1cf3d07d | 7160 | |
43e02a8a RW |
7161 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7162 | *COFF*) | |
7163 | DUMPBIN="$DUMPBIN -symbols" | |
7164 | ;; | |
7165 | *) | |
7166 | DUMPBIN=: | |
7167 | ;; | |
7168 | esac | |
7169 | fi | |
1cf3d07d SE |
7170 | |
7171 | if test "$DUMPBIN" != ":"; then | |
7172 | NM="$DUMPBIN" | |
7173 | fi | |
96b8a615 | 7174 | fi |
1cf3d07d SE |
7175 | test -z "$NM" && NM=nm |
7176 | ||
7177 | ||
96b8a615 | 7178 | |
1cf3d07d SE |
7179 | |
7180 | ||
7181 | ||
5213506e RW |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7183 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 7184 | if ${lt_cv_nm_interface+:} false; then : |
5213506e | 7185 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7186 | else |
7187 | lt_cv_nm_interface="BSD nm" | |
7188 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 7189 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
7190 | (eval "$ac_compile" 2>conftest.err) |
7191 | cat conftest.err >&5 | |
43e02a8a | 7192 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
7193 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7194 | cat conftest.err >&5 | |
43e02a8a | 7195 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
7196 | cat conftest.out >&5 |
7197 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7198 | lt_cv_nm_interface="MS dumpbin" | |
7199 | fi | |
7200 | rm -f conftest* | |
7201 | fi | |
5213506e RW |
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7203 | $as_echo "$lt_cv_nm_interface" >&6; } | |
96b8a615 | 7204 | |
5213506e RW |
7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7206 | $as_echo_n "checking whether ln -s works... " >&6; } | |
96b8a615 AJ |
7207 | LN_S=$as_ln_s |
7208 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7210 | $as_echo "yes" >&6; } | |
96b8a615 | 7211 | else |
5213506e RW |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7213 | $as_echo "no, using $LN_S" >&6; } | |
96b8a615 AJ |
7214 | fi |
7215 | ||
1cf3d07d | 7216 | # find the maximum length of command line arguments |
5213506e RW |
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7218 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 7219 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
5213506e | 7220 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7221 | else |
7222 | i=0 | |
7223 | teststring="ABCD" | |
7224 | ||
7225 | case $build_os in | |
7226 | msdosdjgpp*) | |
7227 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7228 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7229 | # during glob expansion). Even if it were fixed, the result of this | |
7230 | # check would be larger than it should be. | |
7231 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7232 | ;; | |
7233 | ||
7234 | gnu*) | |
7235 | # Under GNU Hurd, this test is not required because there is | |
7236 | # no limit to the length of command line arguments. | |
7237 | # Libtool will interpret -1 as no limit whatsoever | |
7238 | lt_cv_sys_max_cmd_len=-1; | |
7239 | ;; | |
7240 | ||
d58dead8 | 7241 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
7242 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7243 | # about 5 minutes as the teststring grows exponentially. | |
7244 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7245 | # you end up with a "frozen" computer, even though with patience | |
7246 | # the test eventually succeeds (with a max line length of 256k). | |
7247 | # Instead, let's just punt: use the minimum linelength reported by | |
7248 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7249 | lt_cv_sys_max_cmd_len=8192; | |
7250 | ;; | |
7251 | ||
43e02a8a RW |
7252 | mint*) |
7253 | # On MiNT this can take a long time and run out of memory. | |
7254 | lt_cv_sys_max_cmd_len=8192; | |
7255 | ;; | |
7256 | ||
1cf3d07d SE |
7257 | amigaos*) |
7258 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7259 | # So we just punt and use a minimum line length of 8192. | |
7260 | lt_cv_sys_max_cmd_len=8192; | |
7261 | ;; | |
7262 | ||
7263 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7264 | # This has been around since 386BSD, at least. Likely further. | |
7265 | if test -x /sbin/sysctl; then | |
7266 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7267 | elif test -x /usr/sbin/sysctl; then | |
7268 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7269 | else | |
7270 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7271 | fi | |
7272 | # And add a safety zone | |
7273 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7274 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7275 | ;; | |
7276 | ||
7277 | interix*) | |
7278 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7279 | lt_cv_sys_max_cmd_len=196608 | |
7280 | ;; | |
7281 | ||
7282 | osf*) | |
7283 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7284 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7285 | # nice to cause kernel panics so lets avoid the loop below. | |
7286 | # First set a reasonable default. | |
7287 | lt_cv_sys_max_cmd_len=16384 | |
7288 | # | |
7289 | if test -x /sbin/sysconfig; then | |
7290 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7291 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7292 | esac | |
7293 | fi | |
7294 | ;; | |
7295 | sco3.2v5*) | |
7296 | lt_cv_sys_max_cmd_len=102400 | |
7297 | ;; | |
7298 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7299 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7300 | if test -n "$kargmax"; then | |
7301 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7302 | else | |
7303 | lt_cv_sys_max_cmd_len=32768 | |
7304 | fi | |
7305 | ;; | |
7306 | *) | |
d58dead8 PG |
7307 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7308 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
7309 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7310 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7311 | else | |
7312 | # Make teststring a little bigger before we do anything with it. | |
7313 | # a 1K string should be a reasonable start. | |
7314 | for i in 1 2 3 4 5 6 7 8 ; do | |
7315 | teststring=$teststring$teststring | |
7316 | done | |
7317 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7318 | # If test is not a shell built-in, we'll probably end up computing a | |
7319 | # maximum length that is only half of the actual maximum length, but | |
7320 | # we can't tell. | |
43e02a8a RW |
7321 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7322 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
7323 | test $i != 17 # 1/2 MB should be enough |
7324 | do | |
7325 | i=`expr $i + 1` | |
7326 | teststring=$teststring$teststring | |
7327 | done | |
7328 | # Only check the string length outside the loop. | |
7329 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7330 | teststring= | |
7331 | # Add a significant safety factor because C++ compilers can tack on | |
7332 | # massive amounts of additional arguments before passing them to the | |
7333 | # linker. It appears as though 1/2 is a usable value. | |
7334 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7335 | fi | |
1cf3d07d SE |
7336 | ;; |
7337 | esac | |
7338 | ||
7339 | fi | |
7340 | ||
7341 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5213506e RW |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7343 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
1cf3d07d | 7344 | else |
5213506e RW |
7345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7346 | $as_echo "none" >&6; } | |
1cf3d07d SE |
7347 | fi |
7348 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7349 | ||
7350 | ||
7351 | ||
7352 | ||
7353 | ||
7354 | ||
1cf3d07d SE |
7355 | : ${CP="cp -f"} |
7356 | : ${MV="mv -f"} | |
7357 | : ${RM="rm -f"} | |
7358 | ||
5213506e RW |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7360 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
7361 | # Try some XSI features |
7362 | xsi_shell=no | |
7363 | ( _lt_dummy="a/b/c" | |
7364 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
d58dead8 PG |
7365 | = c,a/b,, \ |
7366 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7367 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 7368 | && xsi_shell=yes |
5213506e RW |
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7370 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
7371 | |
7372 | ||
5213506e RW |
7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7374 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
7375 | lt_shell_append=no |
7376 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7377 | >/dev/null 2>&1 \ | |
7378 | && lt_shell_append=yes | |
5213506e RW |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7380 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
7381 | |
7382 | ||
7383 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7384 | lt_unset=unset | |
7385 | else | |
7386 | lt_unset=false | |
7387 | fi | |
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | ||
7393 | # test EBCDIC or ASCII | |
7394 | case `echo X|tr X '\101'` in | |
7395 | A) # ASCII based system | |
7396 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7397 | lt_SP2NL='tr \040 \012' | |
7398 | lt_NL2SP='tr \015\012 \040\040' | |
7399 | ;; | |
7400 | *) # EBCDIC based system | |
7401 | lt_SP2NL='tr \100 \n' | |
7402 | lt_NL2SP='tr \r\n \100\100' | |
7403 | ;; | |
7404 | esac | |
7405 | ||
7406 | ||
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | ||
7412 | ||
7413 | ||
5213506e RW |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7415 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 7416 | if ${lt_cv_ld_reload_flag+:} false; then : |
5213506e | 7417 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
7418 | else |
7419 | lt_cv_ld_reload_flag='-r' | |
7420 | fi | |
5213506e RW |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7422 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
7423 | reload_flag=$lt_cv_ld_reload_flag |
7424 | case $reload_flag in | |
7425 | "" | " "*) ;; | |
7426 | *) reload_flag=" $reload_flag" ;; | |
7427 | esac | |
7428 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7429 | case $host_os in | |
7430 | darwin*) | |
7431 | if test "$GCC" = yes; then | |
7432 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7433 | else | |
7434 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7435 | fi | |
7436 | ;; | |
7437 | esac | |
7438 | ||
7439 | ||
7440 | ||
7441 | ||
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
d58dead8 PG |
7447 | if test -n "$ac_tool_prefix"; then |
7448 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7449 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7451 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7452 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
5213506e | 7453 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7454 | else |
7455 | if test -n "$OBJDUMP"; then | |
7456 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7457 | else | |
7458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7459 | for as_dir in $PATH | |
7460 | do | |
7461 | IFS=$as_save_IFS | |
7462 | test -z "$as_dir" && as_dir=. | |
5213506e | 7463 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7464 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7465 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 7466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7467 | break 2 |
7468 | fi | |
7469 | done | |
5213506e RW |
7470 | done |
7471 | IFS=$as_save_IFS | |
d58dead8 PG |
7472 | |
7473 | fi | |
7474 | fi | |
7475 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7476 | if test -n "$OBJDUMP"; then | |
5213506e RW |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7478 | $as_echo "$OBJDUMP" >&6; } | |
d58dead8 | 7479 | else |
5213506e RW |
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7481 | $as_echo "no" >&6; } | |
d58dead8 PG |
7482 | fi |
7483 | ||
5213506e | 7484 | |
d58dead8 PG |
7485 | fi |
7486 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7487 | ac_ct_OBJDUMP=$OBJDUMP | |
7488 | # Extract the first word of "objdump", so it can be a program name with args. | |
7489 | set dummy objdump; ac_word=$2 | |
5213506e RW |
7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7491 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7492 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5213506e | 7493 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
7494 | else |
7495 | if test -n "$ac_ct_OBJDUMP"; then | |
7496 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7497 | else | |
7498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7499 | for as_dir in $PATH | |
7500 | do | |
7501 | IFS=$as_save_IFS | |
7502 | test -z "$as_dir" && as_dir=. | |
5213506e | 7503 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7504 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 7505 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 7506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
7507 | break 2 |
7508 | fi | |
7509 | done | |
5213506e RW |
7510 | done |
7511 | IFS=$as_save_IFS | |
d58dead8 | 7512 | |
d58dead8 PG |
7513 | fi |
7514 | fi | |
7515 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7516 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7518 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
d58dead8 | 7519 | else |
5213506e RW |
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7521 | $as_echo "no" >&6; } | |
d58dead8 PG |
7522 | fi |
7523 | ||
5213506e RW |
7524 | if test "x$ac_ct_OBJDUMP" = x; then |
7525 | OBJDUMP="false" | |
7526 | else | |
7527 | case $cross_compiling:$ac_tool_warned in | |
7528 | yes:) | |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7530 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7531 | ac_tool_warned=yes ;; | |
7532 | esac | |
7533 | OBJDUMP=$ac_ct_OBJDUMP | |
7534 | fi | |
d58dead8 PG |
7535 | else |
7536 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7537 | fi | |
7538 | ||
7539 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7540 | ||
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
1cf3d07d | 7548 | |
5213506e RW |
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7550 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 7551 | if ${lt_cv_deplibs_check_method+:} false; then : |
5213506e | 7552 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7553 | else |
7554 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7555 | lt_cv_file_magic_test_file= | |
7556 | lt_cv_deplibs_check_method='unknown' | |
7557 | # Need to set the preceding variable on all platforms that support | |
7558 | # interlibrary dependencies. | |
7559 | # 'none' -- dependencies not supported. | |
7560 | # `unknown' -- same as none, but documents that we really don't know. | |
7561 | # 'pass_all' -- all dependencies passed with no checks. | |
7562 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
7563 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7564 | # which responds to the $file_magic_cmd with a given extended regex. | |
96b8a615 AJ |
7565 | # If you have `file' or equivalent on your system and you're not sure |
7566 | # whether `pass_all' will *always* work, you probably want this one. | |
7567 | ||
7568 | case $host_os in | |
4f6bebc3 | 7569 | aix[4-9]*) |
96b8a615 AJ |
7570 | lt_cv_deplibs_check_method=pass_all |
7571 | ;; | |
7572 | ||
7573 | beos*) | |
7574 | lt_cv_deplibs_check_method=pass_all | |
7575 | ;; | |
7576 | ||
1cf3d07d | 7577 | bsdi[45]*) |
96b8a615 AJ |
7578 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7579 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7580 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7581 | ;; | |
7582 | ||
1cf3d07d SE |
7583 | cygwin*) |
7584 | # func_win32_libid is a shell function defined in ltmain.sh | |
7585 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7586 | lt_cv_file_magic_cmd='func_win32_libid' | |
7587 | ;; | |
7588 | ||
7589 | mingw* | pw32*) | |
7590 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7591 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7592 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
7593 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7594 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
7595 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7596 | lt_cv_file_magic_cmd='func_win32_libid' | |
7597 | else | |
7598 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7599 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7600 | fi | |
96b8a615 AJ |
7601 | ;; |
7602 | ||
43e02a8a | 7603 | cegcc*) |
d58dead8 PG |
7604 | # use the weaker test based on 'objdump'. See mingw*. |
7605 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7606 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7607 | ;; | |
7608 | ||
96b8a615 | 7609 | darwin* | rhapsody*) |
96b8a615 AJ |
7610 | lt_cv_deplibs_check_method=pass_all |
7611 | ;; | |
7612 | ||
1cf3d07d SE |
7613 | freebsd* | dragonfly*) |
7614 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
96b8a615 AJ |
7615 | case $host_cpu in |
7616 | i*86 ) | |
7617 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7618 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 7619 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
96b8a615 AJ |
7620 | lt_cv_file_magic_cmd=/usr/bin/file |
7621 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7622 | ;; | |
7623 | esac | |
7624 | else | |
7625 | lt_cv_deplibs_check_method=pass_all | |
7626 | fi | |
7627 | ;; | |
7628 | ||
7629 | gnu*) | |
7630 | lt_cv_deplibs_check_method=pass_all | |
7631 | ;; | |
7632 | ||
43e02a8a RW |
7633 | haiku*) |
7634 | lt_cv_deplibs_check_method=pass_all | |
7635 | ;; | |
7636 | ||
1cf3d07d SE |
7637 | hpux10.20* | hpux11*) |
7638 | lt_cv_file_magic_cmd=/usr/bin/file | |
96b8a615 | 7639 | case $host_cpu in |
96b8a615 AJ |
7640 | ia64*) |
7641 | 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 |
7642 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7643 | ;; | |
1cf3d07d | 7644 | hppa*64*) |
43e02a8a | 7645 | 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 | 7646 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
96b8a615 AJ |
7647 | ;; |
7648 | *) | |
43e02a8a | 7649 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d | 7650 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
96b8a615 AJ |
7651 | ;; |
7652 | esac | |
1cf3d07d SE |
7653 | ;; |
7654 | ||
7655 | interix[3-9]*) | |
7656 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7657 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7658 | ;; | |
7659 | ||
7660 | irix5* | irix6* | nonstopux*) | |
7661 | case $LD in | |
7662 | *-32|*"-32 ") libmagic=32-bit;; | |
7663 | *-n32|*"-n32 ") libmagic=N32;; | |
7664 | *-64|*"-64 ") libmagic=64-bit;; | |
7665 | *) libmagic=never-match;; | |
7666 | esac | |
96b8a615 AJ |
7667 | lt_cv_deplibs_check_method=pass_all |
7668 | ;; | |
7669 | ||
7670 | # This must be Linux ELF. | |
e9085da5 | 7671 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
2c92e90f | 7672 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
7673 | ;; |
7674 | ||
1cf3d07d SE |
7675 | netbsd*) |
7676 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7677 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
96b8a615 | 7678 | else |
1cf3d07d | 7679 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
96b8a615 AJ |
7680 | fi |
7681 | ;; | |
7682 | ||
1cf3d07d | 7683 | newos6*) |
96b8a615 AJ |
7684 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7685 | lt_cv_file_magic_cmd=/usr/bin/file | |
7686 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7687 | ;; | |
7688 | ||
1cf3d07d SE |
7689 | *nto* | *qnx*) |
7690 | lt_cv_deplibs_check_method=pass_all | |
7691 | ;; | |
7692 | ||
7693 | openbsd*) | |
7694 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7695 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7696 | else | |
7697 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7698 | fi | |
7699 | ;; | |
7700 | ||
96b8a615 | 7701 | osf3* | osf4* | osf5*) |
96b8a615 AJ |
7702 | lt_cv_deplibs_check_method=pass_all |
7703 | ;; | |
7704 | ||
1cf3d07d | 7705 | rdos*) |
96b8a615 AJ |
7706 | lt_cv_deplibs_check_method=pass_all |
7707 | ;; | |
7708 | ||
7709 | solaris*) | |
7710 | lt_cv_deplibs_check_method=pass_all | |
96b8a615 AJ |
7711 | ;; |
7712 | ||
1cf3d07d | 7713 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
96b8a615 AJ |
7714 | lt_cv_deplibs_check_method=pass_all |
7715 | ;; | |
7716 | ||
1cf3d07d | 7717 | sysv4 | sysv4.3*) |
96b8a615 | 7718 | case $host_vendor in |
96b8a615 AJ |
7719 | motorola) |
7720 | 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]' | |
7721 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7722 | ;; | |
1cf3d07d SE |
7723 | ncr) |
7724 | lt_cv_deplibs_check_method=pass_all | |
7725 | ;; | |
7726 | sequent) | |
7727 | lt_cv_file_magic_cmd='/bin/file' | |
7728 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7729 | ;; | |
7730 | sni) | |
7731 | lt_cv_file_magic_cmd='/bin/file' | |
7732 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7733 | lt_cv_file_magic_test_file=/lib/libc.so | |
7734 | ;; | |
7735 | siemens) | |
7736 | lt_cv_deplibs_check_method=pass_all | |
7737 | ;; | |
7738 | pc) | |
7739 | lt_cv_deplibs_check_method=pass_all | |
7740 | ;; | |
96b8a615 AJ |
7741 | esac |
7742 | ;; | |
1cf3d07d SE |
7743 | |
7744 | tpf*) | |
7745 | lt_cv_deplibs_check_method=pass_all | |
7746 | ;; | |
96b8a615 AJ |
7747 | esac |
7748 | ||
7749 | fi | |
5213506e RW |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7751 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
96b8a615 AJ |
7752 | file_magic_cmd=$lt_cv_file_magic_cmd |
7753 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 7754 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
96b8a615 AJ |
7755 | |
7756 | ||
7757 | ||
7758 | ||
96b8a615 | 7759 | |
96b8a615 | 7760 | |
96b8a615 | 7761 | |
96b8a615 | 7762 | |
6de9cd9a | 7763 | |
6de9cd9a | 7764 | |
6de9cd9a | 7765 | |
6de9cd9a | 7766 | |
96b8a615 | 7767 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
7768 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7769 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7771 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7772 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 7773 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7774 | else |
1cf3d07d SE |
7775 | if test -n "$AR"; then |
7776 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
96b8a615 AJ |
7777 | else |
7778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7779 | for as_dir in $PATH | |
7780 | do | |
7781 | IFS=$as_save_IFS | |
7782 | test -z "$as_dir" && as_dir=. | |
5213506e | 7783 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7785 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 7786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7787 | break 2 |
7788 | fi | |
7789 | done | |
5213506e RW |
7790 | done |
7791 | IFS=$as_save_IFS | |
6de9cd9a | 7792 | |
96b8a615 AJ |
7793 | fi |
7794 | fi | |
1cf3d07d SE |
7795 | AR=$ac_cv_prog_AR |
7796 | if test -n "$AR"; then | |
5213506e RW |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7798 | $as_echo "$AR" >&6; } | |
96b8a615 | 7799 | else |
5213506e RW |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7801 | $as_echo "no" >&6; } | |
6de9cd9a DN |
7802 | fi |
7803 | ||
5213506e | 7804 | |
96b8a615 | 7805 | fi |
1cf3d07d SE |
7806 | if test -z "$ac_cv_prog_AR"; then |
7807 | ac_ct_AR=$AR | |
7808 | # Extract the first word of "ar", so it can be a program name with args. | |
7809 | set dummy ar; ac_word=$2 | |
5213506e RW |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7811 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7812 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 7813 | $as_echo_n "(cached) " >&6 |
96b8a615 | 7814 | else |
1cf3d07d SE |
7815 | if test -n "$ac_ct_AR"; then |
7816 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
96b8a615 AJ |
7817 | else |
7818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7819 | for as_dir in $PATH | |
7820 | do | |
7821 | IFS=$as_save_IFS | |
7822 | test -z "$as_dir" && as_dir=. | |
5213506e | 7823 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7825 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 7826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7827 | break 2 |
7828 | fi | |
7829 | done | |
5213506e RW |
7830 | done |
7831 | IFS=$as_save_IFS | |
6de9cd9a | 7832 | |
96b8a615 AJ |
7833 | fi |
7834 | fi | |
1cf3d07d SE |
7835 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7836 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7838 | $as_echo "$ac_ct_AR" >&6; } | |
6de9cd9a | 7839 | else |
5213506e RW |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7841 | $as_echo "no" >&6; } | |
6de9cd9a | 7842 | fi |
6de9cd9a | 7843 | |
5213506e RW |
7844 | if test "x$ac_ct_AR" = x; then |
7845 | AR="false" | |
7846 | else | |
7847 | case $cross_compiling:$ac_tool_warned in | |
7848 | yes:) | |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7851 | ac_tool_warned=yes ;; | |
7852 | esac | |
7853 | AR=$ac_ct_AR | |
7854 | fi | |
96b8a615 | 7855 | else |
1cf3d07d | 7856 | AR="$ac_cv_prog_AR" |
6de9cd9a DN |
7857 | fi |
7858 | ||
1cf3d07d SE |
7859 | test -z "$AR" && AR=ar |
7860 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7861 | ||
7862 | ||
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | ||
7868 | ||
7869 | ||
7870 | ||
7871 | ||
96b8a615 AJ |
7872 | if test -n "$ac_tool_prefix"; then |
7873 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7874 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7876 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7877 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 7878 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7879 | else |
96b8a615 AJ |
7880 | if test -n "$STRIP"; then |
7881 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7882 | else | |
7883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7884 | for as_dir in $PATH | |
7885 | do | |
7886 | IFS=$as_save_IFS | |
7887 | test -z "$as_dir" && as_dir=. | |
5213506e | 7888 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7890 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 7891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7892 | break 2 |
7893 | fi | |
7894 | done | |
5213506e RW |
7895 | done |
7896 | IFS=$as_save_IFS | |
6de9cd9a | 7897 | |
96b8a615 AJ |
7898 | fi |
7899 | fi | |
7900 | STRIP=$ac_cv_prog_STRIP | |
7901 | if test -n "$STRIP"; then | |
5213506e RW |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7903 | $as_echo "$STRIP" >&6; } | |
6de9cd9a | 7904 | else |
5213506e RW |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7906 | $as_echo "no" >&6; } | |
96b8a615 | 7907 | fi |
6de9cd9a | 7908 | |
5213506e | 7909 | |
6de9cd9a | 7910 | fi |
96b8a615 AJ |
7911 | if test -z "$ac_cv_prog_STRIP"; then |
7912 | ac_ct_STRIP=$STRIP | |
7913 | # Extract the first word of "strip", so it can be a program name with args. | |
7914 | set dummy strip; ac_word=$2 | |
5213506e RW |
7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7916 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7917 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 7918 | $as_echo_n "(cached) " >&6 |
96b8a615 AJ |
7919 | else |
7920 | if test -n "$ac_ct_STRIP"; then | |
7921 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7922 | else | |
7923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7924 | for as_dir in $PATH | |
7925 | do | |
7926 | IFS=$as_save_IFS | |
7927 | test -z "$as_dir" && as_dir=. | |
5213506e | 7928 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
96b8a615 | 7930 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 7931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
96b8a615 AJ |
7932 | break 2 |
7933 | fi | |
7934 | done | |
5213506e RW |
7935 | done |
7936 | IFS=$as_save_IFS | |
96b8a615 | 7937 | |
6de9cd9a DN |
7938 | fi |
7939 | fi | |
96b8a615 AJ |
7940 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7941 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7943 | $as_echo "$ac_ct_STRIP" >&6; } | |
96b8a615 | 7944 | else |
5213506e RW |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7946 | $as_echo "no" >&6; } | |
6de9cd9a | 7947 | fi |
6de9cd9a | 7948 | |
5213506e RW |
7949 | if test "x$ac_ct_STRIP" = x; then |
7950 | STRIP=":" | |
7951 | else | |
7952 | case $cross_compiling:$ac_tool_warned in | |
7953 | yes:) | |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7955 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7956 | ac_tool_warned=yes ;; | |
7957 | esac | |
7958 | STRIP=$ac_ct_STRIP | |
7959 | fi | |
96b8a615 AJ |
7960 | else |
7961 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
7962 | fi |
7963 | ||
1cf3d07d | 7964 | test -z "$STRIP" && STRIP=: |
6de9cd9a DN |
7965 | |
7966 | ||
7967 | ||
7968 | ||
7969 | ||
7970 | ||
1cf3d07d SE |
7971 | if test -n "$ac_tool_prefix"; then |
7972 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7973 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7975 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7976 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 7977 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 7978 | else |
1cf3d07d SE |
7979 | if test -n "$RANLIB"; then |
7980 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7981 | else | |
7982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7983 | for as_dir in $PATH | |
7984 | do | |
7985 | IFS=$as_save_IFS | |
7986 | test -z "$as_dir" && as_dir=. | |
5213506e | 7987 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 7988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 7989 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 7990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7991 | break 2 |
7992 | fi | |
7993 | done | |
5213506e RW |
7994 | done |
7995 | IFS=$as_save_IFS | |
1cf3d07d SE |
7996 | |
7997 | fi | |
7998 | fi | |
7999 | RANLIB=$ac_cv_prog_RANLIB | |
8000 | if test -n "$RANLIB"; then | |
5213506e RW |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8002 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 8003 | else |
5213506e RW |
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8005 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8006 | fi |
8007 | ||
5213506e | 8008 | |
1cf3d07d SE |
8009 | fi |
8010 | if test -z "$ac_cv_prog_RANLIB"; then | |
8011 | ac_ct_RANLIB=$RANLIB | |
8012 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8013 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8015 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8016 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 8017 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8018 | else |
8019 | if test -n "$ac_ct_RANLIB"; then | |
8020 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8021 | else | |
8022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8023 | for as_dir in $PATH | |
8024 | do | |
8025 | IFS=$as_save_IFS | |
8026 | test -z "$as_dir" && as_dir=. | |
5213506e | 8027 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 8029 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 8030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
8031 | break 2 |
8032 | fi | |
8033 | done | |
5213506e RW |
8034 | done |
8035 | IFS=$as_save_IFS | |
1cf3d07d | 8036 | |
1cf3d07d SE |
8037 | fi |
8038 | fi | |
8039 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8040 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8042 | $as_echo "$ac_ct_RANLIB" >&6; } | |
1cf3d07d | 8043 | else |
5213506e RW |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8045 | $as_echo "no" >&6; } | |
1cf3d07d SE |
8046 | fi |
8047 | ||
5213506e RW |
8048 | if test "x$ac_ct_RANLIB" = x; then |
8049 | RANLIB=":" | |
8050 | else | |
8051 | case $cross_compiling:$ac_tool_warned in | |
8052 | yes:) | |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8055 | ac_tool_warned=yes ;; | |
8056 | esac | |
8057 | RANLIB=$ac_ct_RANLIB | |
8058 | fi | |
1cf3d07d SE |
8059 | else |
8060 | RANLIB="$ac_cv_prog_RANLIB" | |
8061 | fi | |
8062 | ||
8063 | test -z "$RANLIB" && RANLIB=: | |
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | # Determine commands to create old-style static archives. | |
d58dead8 | 8071 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8072 | old_postinstall_cmds='chmod 644 $oldlib' |
8073 | old_postuninstall_cmds= | |
8074 | ||
8075 | if test -n "$RANLIB"; then | |
8076 | case $host_os in | |
8077 | openbsd*) | |
8078 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8079 | ;; | |
8080 | *) | |
8081 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8082 | ;; | |
8083 | esac | |
8084 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8085 | fi | |
8086 | ||
43e02a8a RW |
8087 | case $host_os in |
8088 | darwin*) | |
8089 | lock_old_archive_extraction=yes ;; | |
8090 | *) | |
8091 | lock_old_archive_extraction=no ;; | |
8092 | esac | |
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
1cf3d07d SE |
8099 | |
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | ||
8121 | ||
8122 | ||
8123 | ||
8124 | ||
8125 | ||
8126 | ||
8127 | ||
8128 | ||
8129 | ||
8130 | ||
8131 | ||
8132 | # If no C compiler was specified, use CC. | |
8133 | LTCC=${LTCC-"$CC"} | |
8134 | ||
8135 | # If no C compiler flags were specified, use CFLAGS. | |
8136 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8137 | ||
8138 | # Allow CC to be a program name with arguments. | |
8139 | compiler=$CC | |
8140 | ||
8141 | ||
8142 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8144 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 8145 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
5213506e | 8146 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
8147 | else |
8148 | ||
8149 | # These are sane defaults that work on at least a few old systems. | |
8150 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8151 | ||
8152 | # Character class describing NM global symbol codes. | |
8153 | symcode='[BCDEGRST]' | |
8154 | ||
8155 | # Regexp to match symbols that can be accessed directly from C. | |
8156 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8157 | ||
8158 | # Define system-specific variables. | |
8159 | case $host_os in | |
8160 | aix*) | |
8161 | symcode='[BCDT]' | |
8162 | ;; | |
d58dead8 | 8163 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8164 | symcode='[ABCDGISTW]' |
8165 | ;; | |
8166 | hpux*) | |
8167 | if test "$host_cpu" = ia64; then | |
8168 | symcode='[ABCDEGRST]' | |
8169 | fi | |
8170 | ;; | |
8171 | irix* | nonstopux*) | |
8172 | symcode='[BCDEGRST]' | |
8173 | ;; | |
8174 | osf*) | |
8175 | symcode='[BCDEGQRST]' | |
8176 | ;; | |
8177 | solaris*) | |
8178 | symcode='[BDRT]' | |
8179 | ;; | |
8180 | sco3.2v5*) | |
8181 | symcode='[DT]' | |
8182 | ;; | |
8183 | sysv4.2uw2*) | |
8184 | symcode='[DT]' | |
8185 | ;; | |
8186 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8187 | symcode='[ABDT]' | |
8188 | ;; | |
8189 | sysv4) | |
8190 | symcode='[DFNSTU]' | |
8191 | ;; | |
8192 | esac | |
8193 | ||
8194 | # If we're using GNU nm, then use its standard symbol codes. | |
8195 | case `$NM -V 2>&1` in | |
8196 | *GNU* | *'with BFD'*) | |
8197 | symcode='[ABCDGIRSTW]' ;; | |
8198 | esac | |
8199 | ||
8200 | # Transform an extracted symbol line into a proper C declaration. | |
8201 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8202 | # so use this general approach. | |
8203 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8204 | ||
8205 | # Transform an extracted symbol line into symbol name and symbol address | |
8206 | 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 | 8207 | 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 |
8208 | |
8209 | # Handle CRLF in mingw tool chain | |
8210 | opt_cr= | |
8211 | case $build_os in | |
8212 | mingw*) | |
8213 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8214 | ;; | |
8215 | esac | |
8216 | ||
8217 | # Try without a prefix underscore, then with it. | |
8218 | for ac_symprfx in "" "_"; do | |
8219 | ||
8220 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8221 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8222 | ||
8223 | # Write the raw and C identifiers. | |
8224 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8225 | # Fake it for dumpbin and say T for any non-static function | |
8226 | # and D for any global variable. | |
8227 | # Also find C++ and __fastcall symbols from MSVC++, | |
8228 | # which start with @ or ?. | |
8229 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8230 | " {last_section=section; section=\$ 3};"\ | |
8231 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8232 | " \$ 0!~/External *\|/{next};"\ | |
8233 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8234 | " {if(hide[section]) next};"\ | |
8235 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8236 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8237 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8238 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8239 | " ' prfx=^$ac_symprfx" | |
8240 | else | |
8241 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8242 | fi | |
8243 | ||
8244 | # Check to see that the pipe works correctly. | |
8245 | pipe_works=no | |
8246 | ||
8247 | rm -f conftest* | |
8248 | cat > conftest.$ac_ext <<_LT_EOF | |
8249 | #ifdef __cplusplus | |
8250 | extern "C" { | |
8251 | #endif | |
8252 | char nm_test_var; | |
8253 | void nm_test_func(void); | |
8254 | void nm_test_func(void){} | |
8255 | #ifdef __cplusplus | |
8256 | } | |
8257 | #endif | |
8258 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8259 | _LT_EOF | |
8260 | ||
5213506e | 8261 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8262 | (eval $ac_compile) 2>&5 |
8263 | ac_status=$? | |
5213506e RW |
8264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8265 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8266 | # Now try to grab the symbols. |
8267 | nlist=conftest.nm | |
43e02a8a RW |
8268 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8269 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8270 | ac_status=$? |
5213506e RW |
8271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8272 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8273 | # Try sorting and uniquifying the output. |
8274 | if sort "$nlist" | uniq > "$nlist"T; then | |
8275 | mv -f "$nlist"T "$nlist" | |
8276 | else | |
8277 | rm -f "$nlist"T | |
8278 | fi | |
8279 | ||
8280 | # Make sure that we snagged all the symbols we need. | |
8281 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8282 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8283 | cat <<_LT_EOF > conftest.$ac_ext | |
8284 | #ifdef __cplusplus | |
8285 | extern "C" { | |
8286 | #endif | |
8287 | ||
8288 | _LT_EOF | |
8289 | # Now generate the symbol file. | |
8290 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8291 | ||
8292 | cat <<_LT_EOF >> conftest.$ac_ext | |
8293 | ||
8294 | /* The mapping between symbol names and symbols. */ | |
8295 | const struct { | |
8296 | const char *name; | |
8297 | void *address; | |
8298 | } | |
8299 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8300 | { | |
8301 | { "@PROGRAM@", (void *) 0 }, | |
8302 | _LT_EOF | |
8303 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8304 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8305 | {0, (void *) 0} | |
8306 | }; | |
8307 | ||
8308 | /* This works around a problem in FreeBSD linker */ | |
8309 | #ifdef FREEBSD_WORKAROUND | |
8310 | static const void *lt_preloaded_setup() { | |
8311 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8312 | } | |
8313 | #endif | |
8314 | ||
8315 | #ifdef __cplusplus | |
8316 | } | |
8317 | #endif | |
8318 | _LT_EOF | |
8319 | # Now try linking the two files. | |
8320 | mv conftest.$ac_objext conftstm.$ac_objext | |
8321 | lt_save_LIBS="$LIBS" | |
8322 | lt_save_CFLAGS="$CFLAGS" | |
8323 | LIBS="conftstm.$ac_objext" | |
8324 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8325 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
8326 | (eval $ac_link) 2>&5 |
8327 | ac_status=$? | |
5213506e RW |
8328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8329 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8330 | pipe_works=yes |
8331 | fi | |
8332 | LIBS="$lt_save_LIBS" | |
8333 | CFLAGS="$lt_save_CFLAGS" | |
8334 | else | |
8335 | echo "cannot find nm_test_func in $nlist" >&5 | |
8336 | fi | |
8337 | else | |
8338 | echo "cannot find nm_test_var in $nlist" >&5 | |
8339 | fi | |
8340 | else | |
8341 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8342 | fi | |
8343 | else | |
8344 | echo "$progname: failed program was:" >&5 | |
8345 | cat conftest.$ac_ext >&5 | |
8346 | fi | |
d58dead8 | 8347 | rm -rf conftest* conftst* |
1cf3d07d SE |
8348 | |
8349 | # Do not use the global_symbol_pipe unless it works. | |
8350 | if test "$pipe_works" = yes; then | |
8351 | break | |
8352 | else | |
8353 | lt_cv_sys_global_symbol_pipe= | |
8354 | fi | |
8355 | done | |
8356 | ||
8357 | fi | |
8358 | ||
8359 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8360 | lt_cv_sys_global_symbol_to_cdecl= | |
8361 | fi | |
8362 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8364 | $as_echo "failed" >&6; } | |
1cf3d07d | 8365 | else |
5213506e RW |
8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8367 | $as_echo "ok" >&6; } | |
1cf3d07d SE |
8368 | fi |
8369 | ||
8370 | ||
8371 | ||
8372 | ||
8373 | ||
8374 | ||
8375 | ||
8376 | ||
8377 | ||
8378 | ||
8379 | ||
8380 | ||
8381 | ||
8382 | ||
8383 | ||
d58dead8 PG |
8384 | |
8385 | ||
8386 | ||
8387 | ||
8388 | ||
1cf3d07d SE |
8389 | |
8390 | ||
5213506e RW |
8391 | # Check whether --enable-libtool-lock was given. |
8392 | if test "${enable_libtool_lock+set}" = set; then : | |
8393 | enableval=$enable_libtool_lock; | |
8394 | fi | |
1cf3d07d | 8395 | |
1cf3d07d | 8396 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6de9cd9a | 8397 | |
96b8a615 AJ |
8398 | # Some flags need to be propagated to the compiler or linker for good |
8399 | # libtool support. | |
8400 | case $host in | |
1cf3d07d | 8401 | ia64-*-hpux*) |
96b8a615 | 8402 | # Find out which ABI we are using. |
1cf3d07d | 8403 | echo 'int i;' > conftest.$ac_ext |
5213506e | 8404 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8405 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8406 | ac_status=$? |
5213506e RW |
8407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8408 | test $ac_status = 0; }; then | |
96b8a615 | 8409 | case `/usr/bin/file conftest.$ac_objext` in |
1cf3d07d SE |
8410 | *ELF-32*) |
8411 | HPUX_IA64_MODE="32" | |
8412 | ;; | |
8413 | *ELF-64*) | |
8414 | HPUX_IA64_MODE="64" | |
8415 | ;; | |
96b8a615 | 8416 | esac |
96b8a615 AJ |
8417 | fi |
8418 | rm -rf conftest* | |
8419 | ;; | |
1cf3d07d | 8420 | *-*-irix6*) |
96b8a615 | 8421 | # Find out which ABI we are using. |
43e02a8a | 8422 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8423 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8424 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8425 | ac_status=$? |
5213506e RW |
8426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8427 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8428 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8429 | case `/usr/bin/file conftest.$ac_objext` in | |
8430 | *32-bit*) | |
8431 | LD="${LD-ld} -melf32bsmip" | |
8432 | ;; | |
8433 | *N32*) | |
8434 | LD="${LD-ld} -melf32bmipn32" | |
8435 | ;; | |
8436 | *64-bit*) | |
8437 | LD="${LD-ld} -melf64bmip" | |
8438 | ;; | |
8439 | esac | |
8440 | else | |
8441 | case `/usr/bin/file conftest.$ac_objext` in | |
8442 | *32-bit*) | |
8443 | LD="${LD-ld} -32" | |
8444 | ;; | |
8445 | *N32*) | |
8446 | LD="${LD-ld} -n32" | |
8447 | ;; | |
8448 | *64-bit*) | |
8449 | LD="${LD-ld} -64" | |
8450 | ;; | |
8451 | esac | |
8452 | fi | |
96b8a615 AJ |
8453 | fi |
8454 | rm -rf conftest* | |
8455 | ;; | |
6de9cd9a | 8456 | |
3cbe17f7 | 8457 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
1cf3d07d | 8458 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
96b8a615 AJ |
8459 | # Find out which ABI we are using. |
8460 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8461 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
96b8a615 | 8462 | (eval $ac_compile) 2>&5 |
6de9cd9a | 8463 | ac_status=$? |
5213506e RW |
8464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8465 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8466 | case `/usr/bin/file conftest.o` in |
8467 | *32-bit*) | |
8468 | case $host in | |
8469 | x86_64-*kfreebsd*-gnu) | |
8470 | LD="${LD-ld} -m elf_i386_fbsd" | |
8471 | ;; | |
8472 | x86_64-*linux*) | |
e6d5f8c9 L |
8473 | case `/usr/bin/file conftest.o` in |
8474 | *x86-64*) | |
8475 | LD="${LD-ld} -m elf32_x86_64" | |
8476 | ;; | |
8477 | *) | |
8478 | LD="${LD-ld} -m elf_i386" | |
8479 | ;; | |
8480 | esac | |
1cf3d07d | 8481 | ;; |
3cbe17f7 AM |
8482 | powerpc64le-*linux*) |
8483 | LD="${LD-ld} -m elf32lppclinux" | |
8484 | ;; | |
8485 | powerpc64-*linux*) | |
1cf3d07d SE |
8486 | LD="${LD-ld} -m elf32ppclinux" |
8487 | ;; | |
8488 | s390x-*linux*) | |
8489 | LD="${LD-ld} -m elf_s390" | |
8490 | ;; | |
8491 | sparc64-*linux*) | |
8492 | LD="${LD-ld} -m elf32_sparc" | |
8493 | ;; | |
8494 | esac | |
8495 | ;; | |
8496 | *64-bit*) | |
8497 | case $host in | |
8498 | x86_64-*kfreebsd*-gnu) | |
8499 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8500 | ;; | |
8501 | x86_64-*linux*) | |
8502 | LD="${LD-ld} -m elf_x86_64" | |
8503 | ;; | |
3cbe17f7 AM |
8504 | powerpcle-*linux*) |
8505 | LD="${LD-ld} -m elf64lppc" | |
8506 | ;; | |
8507 | powerpc-*linux*) | |
1cf3d07d SE |
8508 | LD="${LD-ld} -m elf64ppc" |
8509 | ;; | |
8510 | s390*-*linux*|s390*-*tpf*) | |
8511 | LD="${LD-ld} -m elf64_s390" | |
8512 | ;; | |
8513 | sparc*-*linux*) | |
8514 | LD="${LD-ld} -m elf64_sparc" | |
8515 | ;; | |
8516 | esac | |
8517 | ;; | |
96b8a615 | 8518 | esac |
6de9cd9a | 8519 | fi |
96b8a615 AJ |
8520 | rm -rf conftest* |
8521 | ;; | |
6de9cd9a | 8522 | |
96b8a615 AJ |
8523 | *-*-sco3.2v5*) |
8524 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8525 | SAVE_CFLAGS="$CFLAGS" | |
8526 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8528 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8529 | if ${lt_cv_cc_needs_belf+:} false; then : |
5213506e | 8530 | $as_echo_n "(cached) " >&6 |
6de9cd9a | 8531 | else |
1cf3d07d | 8532 | ac_ext=c |
96b8a615 AJ |
8533 | ac_cpp='$CPP $CPPFLAGS' |
8534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 8537 | |
f02d008e | 8538 | if test x$gcc_no_link = xyes; then |
22e05272 | 8539 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 8540 | fi |
5213506e | 8541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6de9cd9a | 8542 | /* end confdefs.h. */ |
6de9cd9a DN |
8543 | |
8544 | int | |
8545 | main () | |
8546 | { | |
96b8a615 | 8547 | |
6de9cd9a DN |
8548 | ; |
8549 | return 0; | |
8550 | } | |
8551 | _ACEOF | |
5213506e | 8552 | if ac_fn_c_try_link "$LINENO"; then : |
96b8a615 | 8553 | lt_cv_cc_needs_belf=yes |
6de9cd9a | 8554 | else |
5213506e | 8555 | lt_cv_cc_needs_belf=no |
6de9cd9a | 8556 | fi |
5213506e RW |
8557 | rm -f core conftest.err conftest.$ac_objext \ |
8558 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
8559 | ac_ext=c |
8560 | ac_cpp='$CPP $CPPFLAGS' | |
8561 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8562 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8563 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8564 | ||
6de9cd9a | 8565 | fi |
5213506e RW |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8567 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
96b8a615 AJ |
8568 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8569 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8570 | CFLAGS="$SAVE_CFLAGS" | |
8571 | fi | |
8572 | ;; | |
1cf3d07d SE |
8573 | sparc*-*solaris*) |
8574 | # Find out which ABI we are using. | |
8575 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8576 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8577 | (eval $ac_compile) 2>&5 |
8578 | ac_status=$? | |
5213506e RW |
8579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8580 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8581 | case `/usr/bin/file conftest.o` in |
8582 | *64-bit*) | |
8583 | case $lt_cv_prog_gnu_ld in | |
8584 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
d58dead8 PG |
8585 | *) |
8586 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8587 | LD="${LD-ld} -64" | |
8588 | fi | |
8589 | ;; | |
1cf3d07d SE |
8590 | esac |
8591 | ;; | |
8592 | esac | |
8593 | fi | |
8594 | rm -rf conftest* | |
8595 | ;; | |
96b8a615 AJ |
8596 | esac |
8597 | ||
1cf3d07d | 8598 | need_locks="$enable_libtool_lock" |
96b8a615 | 8599 | |
d58dead8 PG |
8600 | |
8601 | case $host_os in | |
8602 | rhapsody* | darwin*) | |
8603 | if test -n "$ac_tool_prefix"; then | |
8604 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8605 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8607 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8608 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
5213506e | 8609 | $as_echo_n "(cached) " >&6 |
d58dead8 PG |
8610 | else |
8611 | if test -n "$DSYMUTIL"; then | |
8612 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8613 | else | |
8614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8615 | for as_dir in $PATH | |
8616 | do | |
8617 | IFS=$as_save_IFS | |
8618 | test -z "$as_dir" && as_dir=. | |
5213506e | 8619 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d58dead8 | 8621 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8623 | break 2 |
8624 | fi | |
8625 | done | |
5213506e RW |
8626 | done |
8627 | IFS=$as_save_IFS | |
d58dead8 PG |
8628 | |
8629 | fi | |
8630 | fi | |
8631 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8632 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8634 | $as_echo "$DSYMUTIL" >&6; } | |
d58dead8 | 8635 | else |
5213506e RW |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8637 | $as_echo "no" >&6; } | |
d58dead8 PG |
8638 | fi |
8639 | ||
5213506e | 8640 | |
d58dead8 PG |
8641 | fi |
8642 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8643 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8644 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8645 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8647 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8648 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
5213506e | 8649 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8650 | else |
21be0a5a JB |
8651 | if test -n "$ac_ct_DSYMUTIL"; then |
8652 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
d58dead8 PG |
8653 | else |
8654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8655 | for as_dir in $PATH | |
8656 | do | |
8657 | IFS=$as_save_IFS | |
8658 | test -z "$as_dir" && as_dir=. | |
5213506e | 8659 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8660 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8661 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 8662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8663 | break 2 |
8664 | fi | |
8665 | done | |
5213506e RW |
8666 | done |
8667 | IFS=$as_save_IFS | |
d58dead8 | 8668 | |
d58dead8 PG |
8669 | fi |
8670 | fi | |
21be0a5a JB |
8671 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8672 | if test -n "$ac_ct_DSYMUTIL"; then | |
8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8674 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
d58dead8 | 8675 | else |
5213506e RW |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8677 | $as_echo "no" >&6; } | |
d58dead8 PG |
8678 | fi |
8679 | ||
21be0a5a JB |
8680 | if test "x$ac_ct_DSYMUTIL" = x; then |
8681 | DSYMUTIL=":" | |
5213506e RW |
8682 | else |
8683 | case $cross_compiling:$ac_tool_warned in | |
8684 | yes:) | |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8687 | ac_tool_warned=yes ;; | |
8688 | esac | |
21be0a5a | 8689 | DSYMUTIL=$ac_ct_DSYMUTIL |
5213506e | 8690 | fi |
d58dead8 | 8691 | else |
21be0a5a | 8692 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d58dead8 PG |
8693 | fi |
8694 | ||
8695 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8696 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8697 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8699 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8700 | if ${ac_cv_prog_NMEDIT+:} false; then : |
5213506e | 8701 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8702 | else |
21be0a5a JB |
8703 | if test -n "$NMEDIT"; then |
8704 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8705 | else |
8706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8707 | for as_dir in $PATH | |
8708 | do | |
8709 | IFS=$as_save_IFS | |
8710 | test -z "$as_dir" && as_dir=. | |
5213506e | 8711 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8713 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 8714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8715 | break 2 |
8716 | fi | |
8717 | done | |
5213506e RW |
8718 | done |
8719 | IFS=$as_save_IFS | |
d58dead8 PG |
8720 | |
8721 | fi | |
8722 | fi | |
21be0a5a JB |
8723 | NMEDIT=$ac_cv_prog_NMEDIT |
8724 | if test -n "$NMEDIT"; then | |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8726 | $as_echo "$NMEDIT" >&6; } | |
d58dead8 | 8727 | else |
5213506e RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8729 | $as_echo "no" >&6; } | |
d58dead8 PG |
8730 | fi |
8731 | ||
5213506e | 8732 | |
d58dead8 | 8733 | fi |
21be0a5a JB |
8734 | if test -z "$ac_cv_prog_NMEDIT"; then |
8735 | ac_ct_NMEDIT=$NMEDIT | |
8736 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8737 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8739 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8740 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
5213506e | 8741 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8742 | else |
21be0a5a JB |
8743 | if test -n "$ac_ct_NMEDIT"; then |
8744 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d58dead8 PG |
8745 | else |
8746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8747 | for as_dir in $PATH | |
8748 | do | |
8749 | IFS=$as_save_IFS | |
8750 | test -z "$as_dir" && as_dir=. | |
5213506e | 8751 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8753 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 8754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8755 | break 2 |
8756 | fi | |
8757 | done | |
5213506e RW |
8758 | done |
8759 | IFS=$as_save_IFS | |
d58dead8 | 8760 | |
d58dead8 PG |
8761 | fi |
8762 | fi | |
21be0a5a JB |
8763 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8764 | if test -n "$ac_ct_NMEDIT"; then | |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8766 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
d58dead8 | 8767 | else |
5213506e RW |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8769 | $as_echo "no" >&6; } | |
d58dead8 PG |
8770 | fi |
8771 | ||
21be0a5a JB |
8772 | if test "x$ac_ct_NMEDIT" = x; then |
8773 | NMEDIT=":" | |
5213506e RW |
8774 | else |
8775 | case $cross_compiling:$ac_tool_warned in | |
8776 | yes:) | |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8778 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8779 | ac_tool_warned=yes ;; | |
8780 | esac | |
21be0a5a | 8781 | NMEDIT=$ac_ct_NMEDIT |
5213506e | 8782 | fi |
d58dead8 | 8783 | else |
21be0a5a | 8784 | NMEDIT="$ac_cv_prog_NMEDIT" |
d58dead8 PG |
8785 | fi |
8786 | ||
8787 | if test -n "$ac_tool_prefix"; then | |
21be0a5a JB |
8788 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8789 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8791 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8792 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 8793 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8794 | else |
21be0a5a JB |
8795 | if test -n "$LIPO"; then |
8796 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d58dead8 PG |
8797 | else |
8798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8799 | for as_dir in $PATH | |
8800 | do | |
8801 | IFS=$as_save_IFS | |
8802 | test -z "$as_dir" && as_dir=. | |
5213506e | 8803 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8805 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 8806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8807 | break 2 |
8808 | fi | |
8809 | done | |
5213506e RW |
8810 | done |
8811 | IFS=$as_save_IFS | |
d58dead8 PG |
8812 | |
8813 | fi | |
8814 | fi | |
21be0a5a JB |
8815 | LIPO=$ac_cv_prog_LIPO |
8816 | if test -n "$LIPO"; then | |
8817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8818 | $as_echo "$LIPO" >&6; } | |
d58dead8 | 8819 | else |
5213506e RW |
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8821 | $as_echo "no" >&6; } | |
d58dead8 PG |
8822 | fi |
8823 | ||
5213506e | 8824 | |
d58dead8 | 8825 | fi |
21be0a5a JB |
8826 | if test -z "$ac_cv_prog_LIPO"; then |
8827 | ac_ct_LIPO=$LIPO | |
8828 | # Extract the first word of "lipo", so it can be a program name with args. | |
8829 | set dummy lipo; ac_word=$2 | |
5213506e RW |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8831 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8832 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 8833 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8834 | else |
21be0a5a JB |
8835 | if test -n "$ac_ct_LIPO"; then |
8836 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d58dead8 PG |
8837 | else |
8838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8839 | for as_dir in $PATH | |
8840 | do | |
8841 | IFS=$as_save_IFS | |
8842 | test -z "$as_dir" && as_dir=. | |
5213506e | 8843 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 8844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a | 8845 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 8846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d58dead8 PG |
8847 | break 2 |
8848 | fi | |
8849 | done | |
5213506e RW |
8850 | done |
8851 | IFS=$as_save_IFS | |
d58dead8 | 8852 | |
d58dead8 PG |
8853 | fi |
8854 | fi | |
21be0a5a JB |
8855 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8856 | if test -n "$ac_ct_LIPO"; then | |
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8858 | $as_echo "$ac_ct_LIPO" >&6; } | |
d58dead8 | 8859 | else |
5213506e RW |
8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8861 | $as_echo "no" >&6; } | |
d58dead8 PG |
8862 | fi |
8863 | ||
21be0a5a JB |
8864 | if test "x$ac_ct_LIPO" = x; then |
8865 | LIPO=":" | |
5213506e RW |
8866 | else |
8867 | case $cross_compiling:$ac_tool_warned in | |
8868 | yes:) | |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8871 | ac_tool_warned=yes ;; | |
8872 | esac | |
21be0a5a | 8873 | LIPO=$ac_ct_LIPO |
5213506e | 8874 | fi |
d58dead8 | 8875 | else |
21be0a5a | 8876 | LIPO="$ac_cv_prog_LIPO" |
d58dead8 PG |
8877 | fi |
8878 | ||
21be0a5a JB |
8879 | if test -n "$ac_tool_prefix"; then |
8880 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8881 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8883 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8884 | if ${ac_cv_prog_OTOOL+:} false; then : |
5213506e | 8885 | $as_echo_n "(cached) " >&6 |
d58dead8 | 8886 | else |
21be0a5a JB |
8887 | if test -n "$OTOOL"; then |
8888 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
43e02a8a | 8889 | else |
21be0a5a JB |
8890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8891 | for as_dir in $PATH | |
8892 | do | |
8893 | IFS=$as_save_IFS | |
8894 | test -z "$as_dir" && as_dir=. | |
8895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8897 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8899 | break 2 | |
8900 | fi | |
8901 | done | |
8902 | done | |
8903 | IFS=$as_save_IFS | |
43e02a8a RW |
8904 | |
8905 | fi | |
21be0a5a JB |
8906 | fi |
8907 | OTOOL=$ac_cv_prog_OTOOL | |
8908 | if test -n "$OTOOL"; then | |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8910 | $as_echo "$OTOOL" >&6; } | |
8911 | else | |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8913 | $as_echo "no" >&6; } | |
8914 | fi | |
8915 | ||
d58dead8 | 8916 | |
1cf3d07d | 8917 | fi |
21be0a5a JB |
8918 | if test -z "$ac_cv_prog_OTOOL"; then |
8919 | ac_ct_OTOOL=$OTOOL | |
8920 | # Extract the first word of "otool", so it can be a program name with args. | |
8921 | set dummy otool; ac_word=$2 | |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8923 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8924 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
5213506e | 8925 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 8926 | else |
21be0a5a JB |
8927 | if test -n "$ac_ct_OTOOL"; then |
8928 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8929 | else | |
8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8931 | for as_dir in $PATH | |
1cf3d07d | 8932 | do |
21be0a5a JB |
8933 | IFS=$as_save_IFS |
8934 | test -z "$as_dir" && as_dir=. | |
8935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8937 | ac_cv_prog_ac_ct_OTOOL="otool" |
8938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8939 | break 2 | |
8940 | fi | |
8941 | done | |
8942 | done | |
8943 | IFS=$as_save_IFS | |
6de9cd9a | 8944 | |
21be0a5a JB |
8945 | fi |
8946 | fi | |
8947 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8948 | if test -n "$ac_ct_OTOOL"; then | |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8950 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5213506e | 8951 | else |
21be0a5a JB |
8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8953 | $as_echo "no" >&6; } | |
1cf3d07d | 8954 | fi |
96b8a615 | 8955 | |
21be0a5a JB |
8956 | if test "x$ac_ct_OTOOL" = x; then |
8957 | OTOOL=":" | |
8958 | else | |
8959 | case $cross_compiling:$ac_tool_warned in | |
8960 | yes:) | |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8962 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8963 | ac_tool_warned=yes ;; | |
8964 | esac | |
8965 | OTOOL=$ac_ct_OTOOL | |
8966 | fi | |
1cf3d07d | 8967 | else |
21be0a5a | 8968 | OTOOL="$ac_cv_prog_OTOOL" |
1cf3d07d | 8969 | fi |
6de9cd9a | 8970 | |
21be0a5a JB |
8971 | if test -n "$ac_tool_prefix"; then |
8972 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8973 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8975 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8976 | if ${ac_cv_prog_OTOOL64+:} false; then : |
21be0a5a JB |
8977 | $as_echo_n "(cached) " >&6 |
8978 | else | |
8979 | if test -n "$OTOOL64"; then | |
8980 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8981 | else | |
8982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8983 | for as_dir in $PATH | |
8984 | do | |
8985 | IFS=$as_save_IFS | |
8986 | test -z "$as_dir" && as_dir=. | |
8987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
8989 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8991 | break 2 | |
8992 | fi | |
1cf3d07d | 8993 | done |
21be0a5a JB |
8994 | done |
8995 | IFS=$as_save_IFS | |
8996 | ||
8997 | fi | |
8998 | fi | |
8999 | OTOOL64=$ac_cv_prog_OTOOL64 | |
9000 | if test -n "$OTOOL64"; then | |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
9002 | $as_echo "$OTOOL64" >&6; } | |
9003 | else | |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9005 | $as_echo "no" >&6; } | |
1cf3d07d | 9006 | fi |
6de9cd9a | 9007 | |
96b8a615 | 9008 | |
1cf3d07d | 9009 | fi |
21be0a5a JB |
9010 | if test -z "$ac_cv_prog_OTOOL64"; then |
9011 | ac_ct_OTOOL64=$OTOOL64 | |
9012 | # Extract the first word of "otool64", so it can be a program name with args. | |
9013 | set dummy otool64; ac_word=$2 | |
9014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9015 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 9016 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
21be0a5a | 9017 | $as_echo_n "(cached) " >&6 |
96b8a615 | 9018 | else |
21be0a5a JB |
9019 | if test -n "$ac_ct_OTOOL64"; then |
9020 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
9021 | else | |
9022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9023 | for as_dir in $PATH | |
96b8a615 | 9024 | do |
21be0a5a JB |
9025 | IFS=$as_save_IFS |
9026 | test -z "$as_dir" && as_dir=. | |
9027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 9028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
21be0a5a JB |
9029 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
9030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9031 | break 2 | |
9032 | fi | |
9033 | done | |
9034 | done | |
9035 | IFS=$as_save_IFS | |
96b8a615 | 9036 | |
21be0a5a JB |
9037 | fi |
9038 | fi | |
9039 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9040 | if test -n "$ac_ct_OTOOL64"; then | |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9042 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5213506e | 9043 | else |
21be0a5a JB |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9045 | $as_echo "no" >&6; } | |
96b8a615 AJ |
9046 | fi |
9047 | ||
21be0a5a JB |
9048 | if test "x$ac_ct_OTOOL64" = x; then |
9049 | OTOOL64=":" | |
9050 | else | |
9051 | case $cross_compiling:$ac_tool_warned in | |
9052 | yes:) | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9055 | ac_tool_warned=yes ;; | |
9056 | esac | |
9057 | OTOOL64=$ac_ct_OTOOL64 | |
9058 | fi | |
6de9cd9a | 9059 | else |
21be0a5a | 9060 | OTOOL64="$ac_cv_prog_OTOOL64" |
6de9cd9a | 9061 | fi |
6de9cd9a | 9062 | |
5213506e | 9063 | |
1cf3d07d | 9064 | |
1cf3d07d SE |
9065 | |
9066 | ||
6de9cd9a | 9067 | |
1cf3d07d | 9068 | |
6de9cd9a | 9069 | |
1cf3d07d | 9070 | |
5213506e | 9071 | |
6de9cd9a | 9072 | |
e87045f3 | 9073 | |
15e92535 | 9074 | |
5213506e | 9075 | |
15e92535 | 9076 | |
15e92535 | 9077 | |
21be0a5a JB |
9078 | |
9079 | ||
9080 | ||
9081 | ||
9082 | ||
9083 | ||
9084 | ||
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9090 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 9091 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
21be0a5a | 9092 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 9093 | else |
21be0a5a JB |
9094 | lt_cv_apple_cc_single_mod=no |
9095 | if test -z "${LT_MULTI_MODULE}"; then | |
9096 | # By default we will add the -single_module flag. You can override | |
9097 | # by either setting the environment variable LT_MULTI_MODULE | |
9098 | # non-empty at configure time, or by adding -multi_module to the | |
9099 | # link flags. | |
9100 | rm -rf libconftest.dylib* | |
9101 | echo "int foo(void){return 1;}" > conftest.c | |
9102 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9103 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9104 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9105 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9106 | _lt_result=$? | |
9107 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9108 | lt_cv_apple_cc_single_mod=yes | |
9109 | else | |
9110 | cat conftest.err >&5 | |
9111 | fi | |
9112 | rm -rf libconftest.dylib* | |
9113 | rm -f conftest.* | |
9114 | fi | |
9115 | fi | |
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9117 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9119 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 9120 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
21be0a5a JB |
9121 | $as_echo_n "(cached) " >&6 |
9122 | else | |
9123 | lt_cv_ld_exported_symbols_list=no | |
9124 | save_LDFLAGS=$LDFLAGS | |
9125 | echo "_main" > conftest.sym | |
9126 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9127 | if test x$gcc_no_link = xyes; then | |
22e05272 | 9128 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
21be0a5a JB |
9129 | fi |
9130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 9131 | /* end confdefs.h. */ |
15e92535 | 9132 | |
1cf3d07d SE |
9133 | int |
9134 | main () | |
9135 | { | |
21be0a5a JB |
9136 | |
9137 | ; | |
5213506e | 9138 | return 0; |
1cf3d07d | 9139 | } |
15e92535 | 9140 | _ACEOF |
21be0a5a JB |
9141 | if ac_fn_c_try_link "$LINENO"; then : |
9142 | lt_cv_ld_exported_symbols_list=yes | |
5213506e | 9143 | else |
21be0a5a | 9144 | lt_cv_ld_exported_symbols_list=no |
1cf3d07d | 9145 | fi |
21be0a5a JB |
9146 | rm -f core conftest.err conftest.$ac_objext \ |
9147 | conftest$ac_exeext conftest.$ac_ext | |
9148 | LDFLAGS="$save_LDFLAGS" | |
15e92535 FXC |
9149 | |
9150 | fi | |
21be0a5a JB |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9152 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9154 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 9155 | if ${lt_cv_ld_force_load+:} false; then : |
21be0a5a JB |
9156 | $as_echo_n "(cached) " >&6 |
9157 | else | |
9158 | lt_cv_ld_force_load=no | |
9159 | cat > conftest.c << _LT_EOF | |
9160 | int forced_loaded() { return 2;} | |
9161 | _LT_EOF | |
9162 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9163 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9164 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9165 | $AR cru libconftest.a conftest.o 2>&5 | |
9166 | cat > conftest.c << _LT_EOF | |
9167 | int main() { return 0;} | |
9168 | _LT_EOF | |
9169 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9170 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9171 | _lt_result=$? | |
9172 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9173 | lt_cv_ld_force_load=yes | |
9174 | else | |
9175 | cat conftest.err >&5 | |
9176 | fi | |
9177 | rm -f conftest.err libconftest.a conftest conftest.c | |
9178 | rm -rf conftest.dSYM | |
1cf3d07d SE |
9179 | |
9180 | fi | |
21be0a5a JB |
9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9182 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
9183 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
9184 | # build without first building modern cctools / linker. | |
9185 | case $host_cpu-$host_os in | |
9186 | *-rhapsody* | *-darwin1.[012]) | |
21be0a5a | 9187 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 9188 | *-darwin1.*) |
21be0a5a | 9189 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
9190 | *-darwin*) |
9191 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
9192 | # deployment target is forced to an earlier version. | |
9193 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
9194 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
9195 | ;; | |
ebf6d33b | 9196 | 10.[012][,.]*) |
1352bc88 IS |
9197 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
9198 | ;; | |
9199 | *) | |
9200 | ;; | |
9201 | esac | |
21be0a5a JB |
9202 | ;; |
9203 | esac | |
9204 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9205 | _lt_dar_single_mod='$single_module' | |
9206 | fi | |
9207 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9208 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9209 | else | |
9210 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9211 | fi | |
9212 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9213 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9214 | else | |
9215 | _lt_dsymutil= | |
9216 | fi | |
9217 | ;; | |
9218 | esac | |
1cf3d07d | 9219 | |
1cf3d07d | 9220 | for ac_header in dlfcn.h |
5213506e RW |
9221 | do : |
9222 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9223 | " | |
22e05272 | 9224 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
1cf3d07d | 9225 | cat >>confdefs.h <<_ACEOF |
5213506e | 9226 | #define HAVE_DLFCN_H 1 |
9cdc381b | 9227 | _ACEOF |
9cdc381b | 9228 | |
1cf3d07d SE |
9229 | fi |
9230 | ||
9231 | done | |
9232 | ||
9233 | ||
9234 | ||
43e02a8a RW |
9235 | |
9236 | ||
d58dead8 PG |
9237 | # Set options |
9238 | ||
9239 | ||
9240 | ||
9241 | ||
9242 | enable_win32_dll=no | |
9243 | ||
9244 | ||
5213506e RW |
9245 | # Check whether --enable-shared was given. |
9246 | if test "${enable_shared+set}" = set; then : | |
9247 | enableval=$enable_shared; p=${PACKAGE-default} | |
d58dead8 PG |
9248 | case $enableval in |
9249 | yes) enable_shared=yes ;; | |
9250 | no) enable_shared=no ;; | |
9251 | *) | |
9252 | enable_shared=no | |
9253 | # Look at the argument we got. We use all the common list separators. | |
9254 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9255 | for pkg in $enableval; do | |
9256 | IFS="$lt_save_ifs" | |
9257 | if test "X$pkg" = "X$p"; then | |
9258 | enable_shared=yes | |
9259 | fi | |
9260 | done | |
9261 | IFS="$lt_save_ifs" | |
9262 | ;; | |
9263 | esac | |
9264 | else | |
9265 | enable_shared=yes | |
5213506e RW |
9266 | fi |
9267 | ||
d58dead8 PG |
9268 | |
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
5213506e RW |
9276 | # Check whether --enable-static was given. |
9277 | if test "${enable_static+set}" = set; then : | |
9278 | enableval=$enable_static; p=${PACKAGE-default} | |
d58dead8 PG |
9279 | case $enableval in |
9280 | yes) enable_static=yes ;; | |
9281 | no) enable_static=no ;; | |
9282 | *) | |
9283 | enable_static=no | |
9284 | # Look at the argument we got. We use all the common list separators. | |
9285 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9286 | for pkg in $enableval; do | |
9287 | IFS="$lt_save_ifs" | |
9288 | if test "X$pkg" = "X$p"; then | |
9289 | enable_static=yes | |
9290 | fi | |
9291 | done | |
9292 | IFS="$lt_save_ifs" | |
9293 | ;; | |
9294 | esac | |
9295 | else | |
9296 | enable_static=yes | |
5213506e RW |
9297 | fi |
9298 | ||
d58dead8 PG |
9299 | |
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
5213506e RW |
9308 | # Check whether --with-pic was given. |
9309 | if test "${with_pic+set}" = set; then : | |
9310 | withval=$with_pic; pic_mode="$withval" | |
d58dead8 PG |
9311 | else |
9312 | pic_mode=default | |
5213506e RW |
9313 | fi |
9314 | ||
d58dead8 PG |
9315 | |
9316 | test -z "$pic_mode" && pic_mode=default | |
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
5213506e RW |
9324 | # Check whether --enable-fast-install was given. |
9325 | if test "${enable_fast_install+set}" = set; then : | |
9326 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
d58dead8 PG |
9327 | case $enableval in |
9328 | yes) enable_fast_install=yes ;; | |
9329 | no) enable_fast_install=no ;; | |
9330 | *) | |
9331 | enable_fast_install=no | |
9332 | # Look at the argument we got. We use all the common list separators. | |
9333 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9334 | for pkg in $enableval; do | |
9335 | IFS="$lt_save_ifs" | |
9336 | if test "X$pkg" = "X$p"; then | |
9337 | enable_fast_install=yes | |
9338 | fi | |
9339 | done | |
9340 | IFS="$lt_save_ifs" | |
9341 | ;; | |
9342 | esac | |
9343 | else | |
9344 | enable_fast_install=yes | |
5213506e RW |
9345 | fi |
9346 | ||
d58dead8 PG |
9347 | |
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
1cf3d07d SE |
9357 | # This can be used to rebuild libtool when needed |
9358 | LIBTOOL_DEPS="$ltmain" | |
9359 | ||
9360 | # Always use our own libtool. | |
9361 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
43e02a8a | 9385 | |
1cf3d07d SE |
9386 | |
9387 | ||
9388 | test -z "$LN_S" && LN_S="ln -s" | |
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9cdc381b | 9394 | |
1cf3d07d SE |
9395 | |
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | if test -n "${ZSH_VERSION+set}" ; then | |
9404 | setopt NO_GLOB_SUBST | |
9cdc381b | 9405 | fi |
9cdc381b | 9406 | |
5213506e RW |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9408 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9409 | if ${lt_cv_objdir+:} false; then : |
5213506e | 9410 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9411 | else |
1cf3d07d SE |
9412 | rm -f .libs 2>/dev/null |
9413 | mkdir .libs 2>/dev/null | |
9414 | if test -d .libs; then | |
9415 | lt_cv_objdir=.libs | |
9416 | else | |
9417 | # MS-DOS does not allow filenames that begin with a dot. | |
9418 | lt_cv_objdir=_libs | |
9cdc381b | 9419 | fi |
1cf3d07d | 9420 | rmdir .libs 2>/dev/null |
9cdc381b | 9421 | fi |
5213506e RW |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9423 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d SE |
9424 | objdir=$lt_cv_objdir |
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9cdc381b BD |
9429 | |
9430 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d | 9431 | #define LT_OBJDIR "$lt_cv_objdir/" |
9cdc381b BD |
9432 | _ACEOF |
9433 | ||
1cf3d07d SE |
9434 | |
9435 | ||
9436 | ||
1cf3d07d SE |
9437 | case $host_os in |
9438 | aix3*) | |
9439 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9440 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9441 | # vanish in a puff of smoke. | |
9442 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9443 | COLLECT_NAMES= | |
9444 | export COLLECT_NAMES | |
9445 | fi | |
9446 | ;; | |
9447 | esac | |
9448 | ||
1cf3d07d SE |
9449 | # Global variables: |
9450 | ofile=libtool | |
9451 | can_build_shared=yes | |
9452 | ||
9453 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9454 | # which needs '.lib'). | |
9455 | libext=a | |
9456 | ||
9457 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9458 | ||
9459 | old_CC="$CC" | |
9460 | old_CFLAGS="$CFLAGS" | |
9461 | ||
9462 | # Set sane defaults for various variables | |
9463 | test -z "$CC" && CC=cc | |
9464 | test -z "$LTCC" && LTCC=$CC | |
9465 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9466 | test -z "$LD" && LD=ld | |
9467 | test -z "$ac_objext" && ac_objext=o | |
9468 | ||
9469 | for cc_temp in $compiler""; do | |
9470 | case $cc_temp in | |
9471 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9472 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9473 | \-*) ;; | |
9474 | *) break;; | |
9475 | esac | |
9476 | done | |
43e02a8a | 9477 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
9478 | |
9479 | ||
9480 | # Only perform the check for file, if the check method requires it | |
9481 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9482 | case $deplibs_check_method in | |
9483 | file_magic*) | |
9484 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9486 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9487 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9488 | $as_echo_n "(cached) " >&6 |
9cdc381b | 9489 | else |
1cf3d07d SE |
9490 | case $MAGIC_CMD in |
9491 | [\\/*] | ?:[\\/]*) | |
9492 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9493 | ;; | |
9494 | *) | |
9495 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9496 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9497 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9498 | for ac_dir in $ac_dummy; do | |
9499 | IFS="$lt_save_ifs" | |
9500 | test -z "$ac_dir" && ac_dir=. | |
9501 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9502 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9503 | if test -n "$file_magic_test_file"; then | |
9504 | case $deplibs_check_method in | |
9505 | "file_magic "*) | |
9506 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9507 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9508 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9509 | $EGREP "$file_magic_regex" > /dev/null; then | |
9510 | : | |
9511 | else | |
9512 | cat <<_LT_EOF 1>&2 | |
9cdc381b | 9513 | |
1cf3d07d SE |
9514 | *** Warning: the command libtool uses to detect shared libraries, |
9515 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9516 | *** The result is that libtool may fail to recognize shared libraries | |
9517 | *** as such. This will affect the creation of libtool libraries that | |
9518 | *** depend on shared libraries, but programs linked with such libtool | |
9519 | *** libraries will work regardless of this problem. Nevertheless, you | |
9520 | *** may want to report the problem to your system manager and/or to | |
9521 | *** bug-libtool@gnu.org | |
9522 | ||
9523 | _LT_EOF | |
9524 | fi ;; | |
9525 | esac | |
9526 | fi | |
9527 | break | |
9528 | fi | |
9529 | done | |
9530 | IFS="$lt_save_ifs" | |
9531 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9532 | ;; | |
9533 | esac | |
9534 | fi | |
9535 | ||
9536 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9537 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9539 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9540 | else |
5213506e RW |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9542 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9543 | fi |
9544 | ||
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9550 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9552 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9553 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
5213506e | 9554 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9555 | else |
9556 | case $MAGIC_CMD in | |
9557 | [\\/*] | ?:[\\/]*) | |
9558 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9559 | ;; | |
9560 | *) | |
9561 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9562 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9563 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9564 | for ac_dir in $ac_dummy; do | |
9565 | IFS="$lt_save_ifs" | |
9566 | test -z "$ac_dir" && ac_dir=. | |
9567 | if test -f $ac_dir/file; then | |
9568 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9569 | if test -n "$file_magic_test_file"; then | |
9570 | case $deplibs_check_method in | |
9571 | "file_magic "*) | |
9572 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9573 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9574 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9575 | $EGREP "$file_magic_regex" > /dev/null; then | |
9576 | : | |
9577 | else | |
9578 | cat <<_LT_EOF 1>&2 | |
9579 | ||
9580 | *** Warning: the command libtool uses to detect shared libraries, | |
9581 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9582 | *** The result is that libtool may fail to recognize shared libraries | |
9583 | *** as such. This will affect the creation of libtool libraries that | |
9584 | *** depend on shared libraries, but programs linked with such libtool | |
9585 | *** libraries will work regardless of this problem. Nevertheless, you | |
9586 | *** may want to report the problem to your system manager and/or to | |
9587 | *** bug-libtool@gnu.org | |
9588 | ||
9589 | _LT_EOF | |
9590 | fi ;; | |
9591 | esac | |
9592 | fi | |
9593 | break | |
9594 | fi | |
9595 | done | |
9596 | IFS="$lt_save_ifs" | |
9597 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9598 | ;; | |
9599 | esac | |
9600 | fi | |
9601 | ||
9602 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9603 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9605 | $as_echo "$MAGIC_CMD" >&6; } | |
1cf3d07d | 9606 | else |
5213506e RW |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9608 | $as_echo "no" >&6; } | |
1cf3d07d SE |
9609 | fi |
9610 | ||
9611 | ||
9612 | else | |
9613 | MAGIC_CMD=: | |
9614 | fi | |
9615 | fi | |
9616 | ||
9617 | fi | |
9618 | ;; | |
9619 | esac | |
9620 | ||
9621 | # Use C for the default configuration in the libtool script | |
9622 | ||
9623 | lt_save_CC="$CC" | |
9624 | ac_ext=c | |
9625 | ac_cpp='$CPP $CPPFLAGS' | |
9626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9627 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9629 | ||
9630 | ||
9631 | # Source file extension for C test sources. | |
9632 | ac_ext=c | |
9633 | ||
9634 | # Object file extension for compiled C test sources. | |
9635 | objext=o | |
9636 | objext=$objext | |
9637 | ||
9638 | # Code to be used in simple compile tests | |
9639 | lt_simple_compile_test_code="int some_variable = 0;" | |
9640 | ||
9641 | # Code to be used in simple link tests | |
9642 | lt_simple_link_test_code='int main(){return(0);}' | |
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | # If no C compiler was specified, use CC. | |
9651 | LTCC=${LTCC-"$CC"} | |
9652 | ||
9653 | # If no C compiler flags were specified, use CFLAGS. | |
9654 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9655 | ||
9656 | # Allow CC to be a program name with arguments. | |
9657 | compiler=$CC | |
9658 | ||
9659 | # Save the default compiler, since it gets overwritten when the other | |
9660 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9661 | compiler_DEFAULT=$CC | |
9662 | ||
9663 | # save warnings/boilerplate of simple test code | |
9664 | ac_outfile=conftest.$ac_objext | |
9665 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9666 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9667 | _lt_compiler_boilerplate=`cat conftest.err` | |
9668 | $RM conftest* | |
9669 | ||
9670 | ac_outfile=conftest.$ac_objext | |
9671 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9672 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9673 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 9674 | $RM -r conftest* |
1cf3d07d SE |
9675 | |
9676 | ||
9677 | ## CAVEAT EMPTOR: | |
9678 | ## There is no encapsulation within the following macros, do not change | |
9679 | ## the running order or otherwise move them around unless you know exactly | |
9680 | ## what you are doing... | |
9681 | if test -n "$compiler"; then | |
9682 | ||
9683 | lt_prog_compiler_no_builtin_flag= | |
9684 | ||
9685 | if test "$GCC" = yes; then | |
43e02a8a RW |
9686 | case $cc_basename in |
9687 | nvcc*) | |
9688 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9689 | *) | |
9690 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9691 | esac | |
1cf3d07d | 9692 | |
5213506e RW |
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9694 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9695 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
5213506e | 9696 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
9697 | else |
9698 | lt_cv_prog_compiler_rtti_exceptions=no | |
9699 | ac_outfile=conftest.$ac_objext | |
9700 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9701 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9702 | # Insert the option either (1) after the last *FLAGS variable, or | |
9703 | # (2) before a word containing "conftest.", or (3) at the end. | |
9704 | # Note that $ac_compile itself does not contain backslashes and begins | |
9705 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9706 | # The option is referenced via a variable to avoid confusing sed. | |
9707 | lt_compile=`echo "$ac_compile" | $SED \ | |
9708 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9709 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9710 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 9711 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
9712 | (eval "$lt_compile" 2>conftest.err) |
9713 | ac_status=$? | |
9714 | cat conftest.err >&5 | |
43e02a8a | 9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
9716 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9717 | # The compiler can only warn and ignore the option if not recognized | |
9718 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 9719 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
9720 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9721 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9722 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9723 | fi | |
9724 | fi | |
9725 | $RM conftest* | |
9726 | ||
9727 | fi | |
5213506e RW |
9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9729 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
1cf3d07d SE |
9730 | |
9731 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9732 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9733 | else | |
9734 | : | |
9735 | fi | |
9736 | ||
9737 | fi | |
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | lt_prog_compiler_wl= | |
9745 | lt_prog_compiler_pic= | |
9746 | lt_prog_compiler_static= | |
9747 | ||
5213506e RW |
9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9749 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
9750 | |
9751 | if test "$GCC" = yes; then | |
9752 | lt_prog_compiler_wl='-Wl,' | |
9753 | lt_prog_compiler_static='-static' | |
9754 | ||
9755 | case $host_os in | |
9756 | aix*) | |
9757 | # All AIX code is PIC. | |
9758 | if test "$host_cpu" = ia64; then | |
9759 | # AIX 5 now supports IA64 processor | |
9760 | lt_prog_compiler_static='-Bstatic' | |
9761 | fi | |
bad8a4a7 | 9762 | lt_prog_compiler_pic='-fPIC' |
1cf3d07d SE |
9763 | ;; |
9764 | ||
9765 | amigaos*) | |
d58dead8 PG |
9766 | case $host_cpu in |
9767 | powerpc) | |
9768 | # see comment about AmigaOS4 .so support | |
9769 | lt_prog_compiler_pic='-fPIC' | |
9770 | ;; | |
9771 | m68k) | |
9772 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9773 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9774 | # like `-m68040'. | |
9775 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9776 | ;; | |
9777 | esac | |
1cf3d07d SE |
9778 | ;; |
9779 | ||
9780 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9781 | # PIC is the default for these OSes. | |
9782 | ;; | |
9783 | ||
d58dead8 | 9784 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9785 | # This hack is so that the source file can tell whether it is being |
9786 | # built for inclusion in a dll (and should export symbols for example). | |
9787 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9788 | # (--disable-auto-import) libraries | |
9789 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9790 | ;; | |
9791 | ||
9792 | darwin* | rhapsody*) | |
9793 | # PIC is the default on this platform | |
9794 | # Common symbols not allowed in MH_DYLIB files | |
9795 | lt_prog_compiler_pic='-fno-common' | |
9796 | ;; | |
9797 | ||
43e02a8a RW |
9798 | haiku*) |
9799 | # PIC is the default for Haiku. | |
9800 | # The "-static" flag exists, but is broken. | |
9801 | lt_prog_compiler_static= | |
9802 | ;; | |
9803 | ||
1cf3d07d | 9804 | hpux*) |
d58dead8 PG |
9805 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9806 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9807 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 9808 | case $host_cpu in |
d58dead8 | 9809 | hppa*64*) |
1cf3d07d SE |
9810 | # +Z the default |
9811 | ;; | |
9812 | *) | |
9813 | lt_prog_compiler_pic='-fPIC' | |
9814 | ;; | |
9815 | esac | |
9816 | ;; | |
9817 | ||
9818 | interix[3-9]*) | |
9819 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9820 | # Instead, we relocate shared libraries at runtime. | |
9821 | ;; | |
9822 | ||
9823 | msdosdjgpp*) | |
9824 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9825 | # on systems that don't support them. | |
9826 | lt_prog_compiler_can_build_shared=no | |
9827 | enable_shared=no | |
9828 | ;; | |
9829 | ||
9830 | *nto* | *qnx*) | |
9831 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9832 | # it will coredump. | |
9833 | lt_prog_compiler_pic='-fPIC -shared' | |
9834 | ;; | |
9835 | ||
9836 | sysv4*MP*) | |
9837 | if test -d /usr/nec; then | |
9838 | lt_prog_compiler_pic=-Kconform_pic | |
9839 | fi | |
9840 | ;; | |
9841 | ||
9842 | *) | |
9843 | lt_prog_compiler_pic='-fPIC' | |
9844 | ;; | |
9845 | esac | |
43e02a8a RW |
9846 | |
9847 | case $cc_basename in | |
9848 | nvcc*) # Cuda Compiler Driver 2.2 | |
9849 | lt_prog_compiler_wl='-Xlinker ' | |
9850 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9851 | ;; | |
9852 | esac | |
1cf3d07d SE |
9853 | else |
9854 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9855 | case $host_os in | |
9856 | aix*) | |
9857 | lt_prog_compiler_wl='-Wl,' | |
9858 | if test "$host_cpu" = ia64; then | |
9859 | # AIX 5 now supports IA64 processor | |
9860 | lt_prog_compiler_static='-Bstatic' | |
9861 | else | |
9862 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9863 | fi | |
9864 | ;; | |
1cf3d07d | 9865 | |
d58dead8 | 9866 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
9867 | # This hack is so that the source file can tell whether it is being |
9868 | # built for inclusion in a dll (and should export symbols for example). | |
9869 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9870 | ;; | |
9871 | ||
9872 | hpux9* | hpux10* | hpux11*) | |
9873 | lt_prog_compiler_wl='-Wl,' | |
9874 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9875 | # not for PA HP-UX. | |
9876 | case $host_cpu in | |
9877 | hppa*64*|ia64*) | |
9878 | # +Z the default | |
9879 | ;; | |
9880 | *) | |
9881 | lt_prog_compiler_pic='+Z' | |
9882 | ;; | |
9883 | esac | |
9884 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9885 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9886 | ;; | |
9887 | ||
9888 | irix5* | irix6* | nonstopux*) | |
9889 | lt_prog_compiler_wl='-Wl,' | |
9890 | # PIC (with -KPIC) is the default. | |
9891 | lt_prog_compiler_static='-non_shared' | |
9892 | ;; | |
9893 | ||
7a9d3fe8 | 9894 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 9895 | case $cc_basename in |
d58dead8 PG |
9896 | # old Intel for x86_64 which still supported -KPIC. |
9897 | ecc*) | |
1cf3d07d SE |
9898 | lt_prog_compiler_wl='-Wl,' |
9899 | lt_prog_compiler_pic='-KPIC' | |
9900 | lt_prog_compiler_static='-static' | |
9901 | ;; | |
d58dead8 PG |
9902 | # icc used to be incompatible with GCC. |
9903 | # ICC 10 doesn't accept -KPIC any more. | |
9904 | icc* | ifort*) | |
9905 | lt_prog_compiler_wl='-Wl,' | |
9906 | lt_prog_compiler_pic='-fPIC' | |
9907 | lt_prog_compiler_static='-static' | |
9908 | ;; | |
9909 | # Lahey Fortran 8.1. | |
9910 | lf95*) | |
9911 | lt_prog_compiler_wl='-Wl,' | |
9912 | lt_prog_compiler_pic='--shared' | |
9913 | lt_prog_compiler_static='--static' | |
9914 | ;; | |
43e02a8a | 9915 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
9916 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9917 | # which looks to be a dead project) | |
9918 | lt_prog_compiler_wl='-Wl,' | |
9919 | lt_prog_compiler_pic='-fpic' | |
9920 | lt_prog_compiler_static='-Bstatic' | |
9921 | ;; | |
9922 | ccc*) | |
9923 | lt_prog_compiler_wl='-Wl,' | |
9924 | # All Alpha code is PIC. | |
9925 | lt_prog_compiler_static='-non_shared' | |
9926 | ;; | |
43e02a8a RW |
9927 | xl* | bgxl* | bgf* | mpixl*) |
9928 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
9929 | lt_prog_compiler_wl='-Wl,' |
9930 | lt_prog_compiler_pic='-qpic' | |
9931 | lt_prog_compiler_static='-qstaticlink' | |
9932 | ;; | |
1cf3d07d SE |
9933 | *) |
9934 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
9935 | *Sun\ F* | *Sun*Fortran*) |
9936 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
9937 | lt_prog_compiler_pic='-KPIC' |
9938 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9939 | lt_prog_compiler_wl='' |
1cf3d07d | 9940 | ;; |
43e02a8a RW |
9941 | *Sun\ C*) |
9942 | # Sun C 5.9 | |
1cf3d07d SE |
9943 | lt_prog_compiler_pic='-KPIC' |
9944 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 9945 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
9946 | ;; |
9947 | esac | |
9948 | ;; | |
9949 | esac | |
9950 | ;; | |
9951 | ||
9952 | newsos6) | |
9953 | lt_prog_compiler_pic='-KPIC' | |
9954 | lt_prog_compiler_static='-Bstatic' | |
9955 | ;; | |
9956 | ||
9957 | *nto* | *qnx*) | |
9958 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9959 | # it will coredump. | |
9960 | lt_prog_compiler_pic='-fPIC -shared' | |
9961 | ;; | |
9962 | ||
9963 | osf3* | osf4* | osf5*) | |
9964 | lt_prog_compiler_wl='-Wl,' | |
9965 | # All OSF/1 code is PIC. | |
9966 | lt_prog_compiler_static='-non_shared' | |
9967 | ;; | |
9968 | ||
9969 | rdos*) | |
9970 | lt_prog_compiler_static='-non_shared' | |
9971 | ;; | |
9972 | ||
9973 | solaris*) | |
9974 | lt_prog_compiler_pic='-KPIC' | |
9975 | lt_prog_compiler_static='-Bstatic' | |
9976 | case $cc_basename in | |
9977 | f77* | f90* | f95*) | |
9978 | lt_prog_compiler_wl='-Qoption ld ';; | |
9979 | *) | |
9980 | lt_prog_compiler_wl='-Wl,';; | |
9981 | esac | |
9982 | ;; | |
9983 | ||
9984 | sunos4*) | |
9985 | lt_prog_compiler_wl='-Qoption ld ' | |
9986 | lt_prog_compiler_pic='-PIC' | |
9987 | lt_prog_compiler_static='-Bstatic' | |
9988 | ;; | |
9989 | ||
9990 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9991 | lt_prog_compiler_wl='-Wl,' | |
9992 | lt_prog_compiler_pic='-KPIC' | |
9993 | lt_prog_compiler_static='-Bstatic' | |
9994 | ;; | |
9995 | ||
9996 | sysv4*MP*) | |
9997 | if test -d /usr/nec ;then | |
9998 | lt_prog_compiler_pic='-Kconform_pic' | |
9999 | lt_prog_compiler_static='-Bstatic' | |
10000 | fi | |
10001 | ;; | |
10002 | ||
10003 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10004 | lt_prog_compiler_wl='-Wl,' | |
10005 | lt_prog_compiler_pic='-KPIC' | |
10006 | lt_prog_compiler_static='-Bstatic' | |
10007 | ;; | |
10008 | ||
10009 | unicos*) | |
10010 | lt_prog_compiler_wl='-Wl,' | |
10011 | lt_prog_compiler_can_build_shared=no | |
10012 | ;; | |
10013 | ||
10014 | uts4*) | |
10015 | lt_prog_compiler_pic='-pic' | |
10016 | lt_prog_compiler_static='-Bstatic' | |
10017 | ;; | |
10018 | ||
10019 | *) | |
10020 | lt_prog_compiler_can_build_shared=no | |
10021 | ;; | |
10022 | esac | |
10023 | fi | |
10024 | ||
10025 | case $host_os in | |
10026 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10027 | *djgpp*) | |
10028 | lt_prog_compiler_pic= | |
10029 | ;; | |
10030 | *) | |
10031 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10032 | ;; | |
10033 | esac | |
5213506e RW |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10035 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
10036 | |
10037 | ||
10038 | ||
10039 | ||
10040 | ||
10041 | ||
10042 | # | |
10043 | # Check to make sure the PIC flag actually works. | |
10044 | # | |
10045 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10047 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 10048 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
5213506e | 10049 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10050 | else |
d58dead8 | 10051 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10052 | ac_outfile=conftest.$ac_objext |
10053 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10054 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10055 | # Insert the option either (1) after the last *FLAGS variable, or | |
10056 | # (2) before a word containing "conftest.", or (3) at the end. | |
10057 | # Note that $ac_compile itself does not contain backslashes and begins | |
10058 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10059 | # The option is referenced via a variable to avoid confusing sed. | |
10060 | lt_compile=`echo "$ac_compile" | $SED \ | |
10061 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10062 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10063 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10064 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10065 | (eval "$lt_compile" 2>conftest.err) |
10066 | ac_status=$? | |
10067 | cat conftest.err >&5 | |
43e02a8a | 10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10069 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10070 | # The compiler can only warn and ignore the option if not recognized | |
10071 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10072 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10073 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10074 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10075 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10076 | fi |
10077 | fi | |
10078 | $RM conftest* | |
10079 | ||
10080 | fi | |
5213506e RW |
10081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10082 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
1cf3d07d | 10083 | |
d58dead8 | 10084 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10085 | case $lt_prog_compiler_pic in |
10086 | "" | " "*) ;; | |
10087 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10088 | esac | |
10089 | else | |
10090 | lt_prog_compiler_pic= | |
10091 | lt_prog_compiler_can_build_shared=no | |
10092 | fi | |
10093 | ||
10094 | fi | |
10095 | ||
10096 | ||
10097 | ||
10098 | ||
10099 | ||
10100 | ||
10101 | # | |
10102 | # Check to make sure the static flag actually works. | |
10103 | # | |
10104 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10106 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 10107 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
5213506e | 10108 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 10109 | else |
d58dead8 | 10110 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10111 | save_LDFLAGS="$LDFLAGS" |
10112 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10113 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10114 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10115 | # The linker can only warn and ignore the option if not recognized | |
10116 | # So say no if there are warnings | |
10117 | if test -s conftest.err; then | |
10118 | # Append any errors to the config.log. | |
10119 | cat conftest.err 1>&5 | |
43e02a8a | 10120 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10121 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10122 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 10123 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10124 | fi |
10125 | else | |
d58dead8 | 10126 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10127 | fi |
10128 | fi | |
d58dead8 | 10129 | $RM -r conftest* |
1cf3d07d SE |
10130 | LDFLAGS="$save_LDFLAGS" |
10131 | ||
10132 | fi | |
5213506e RW |
10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10134 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10135 | |
d58dead8 | 10136 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10137 | : |
10138 | else | |
10139 | lt_prog_compiler_static= | |
10140 | fi | |
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
5213506e RW |
10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10149 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10150 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10151 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10152 | else |
10153 | lt_cv_prog_compiler_c_o=no | |
10154 | $RM -r conftest 2>/dev/null | |
10155 | mkdir conftest | |
10156 | cd conftest | |
10157 | mkdir out | |
10158 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10159 | ||
10160 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10161 | # Insert the option either (1) after the last *FLAGS variable, or | |
10162 | # (2) before a word containing "conftest.", or (3) at the end. | |
10163 | # Note that $ac_compile itself does not contain backslashes and begins | |
10164 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10165 | lt_compile=`echo "$ac_compile" | $SED \ | |
10166 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10167 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10168 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10169 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10170 | (eval "$lt_compile" 2>out/conftest.err) |
10171 | ac_status=$? | |
10172 | cat out/conftest.err >&5 | |
43e02a8a | 10173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10174 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10175 | then | |
10176 | # The compiler can only warn and ignore the option if not recognized | |
10177 | # So say no if there are warnings | |
43e02a8a | 10178 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10179 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10180 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10181 | lt_cv_prog_compiler_c_o=yes | |
10182 | fi | |
10183 | fi | |
10184 | chmod u+w . 2>&5 | |
10185 | $RM conftest* | |
10186 | # SGI C++ compiler will create directory out/ii_files/ for | |
10187 | # template instantiation | |
10188 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10189 | $RM out/* && rmdir out | |
10190 | cd .. | |
10191 | $RM -r conftest | |
10192 | $RM conftest* | |
10193 | ||
10194 | fi | |
5213506e RW |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10196 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10197 | |
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
5213506e RW |
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10204 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 10205 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
5213506e | 10206 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
10207 | else |
10208 | lt_cv_prog_compiler_c_o=no | |
10209 | $RM -r conftest 2>/dev/null | |
10210 | mkdir conftest | |
10211 | cd conftest | |
10212 | mkdir out | |
10213 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10214 | ||
10215 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10216 | # Insert the option either (1) after the last *FLAGS variable, or | |
10217 | # (2) before a word containing "conftest.", or (3) at the end. | |
10218 | # Note that $ac_compile itself does not contain backslashes and begins | |
10219 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10220 | lt_compile=`echo "$ac_compile" | $SED \ | |
10221 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10222 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10223 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10224 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10225 | (eval "$lt_compile" 2>out/conftest.err) |
10226 | ac_status=$? | |
10227 | cat out/conftest.err >&5 | |
43e02a8a | 10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10229 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10230 | then | |
10231 | # The compiler can only warn and ignore the option if not recognized | |
10232 | # So say no if there are warnings | |
43e02a8a | 10233 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10234 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10235 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10236 | lt_cv_prog_compiler_c_o=yes | |
10237 | fi | |
10238 | fi | |
10239 | chmod u+w . 2>&5 | |
10240 | $RM conftest* | |
10241 | # SGI C++ compiler will create directory out/ii_files/ for | |
10242 | # template instantiation | |
10243 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10244 | $RM out/* && rmdir out | |
10245 | cd .. | |
10246 | $RM -r conftest | |
10247 | $RM conftest* | |
10248 | ||
10249 | fi | |
5213506e RW |
10250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10251 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10252 | |
10253 | ||
10254 | ||
10255 | ||
10256 | hard_links="nottested" | |
10257 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10258 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10260 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10261 | hard_links=yes |
10262 | $RM conftest* | |
10263 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10264 | touch conftest.a | |
10265 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10266 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10268 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10269 | if test "$hard_links" = no; then |
5213506e RW |
10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10271 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10272 | need_locks=warn |
10273 | fi | |
10274 | else | |
10275 | need_locks=no | |
10276 | fi | |
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
5213506e RW |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10284 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10285 | |
10286 | runpath_var= | |
10287 | allow_undefined_flag= | |
10288 | always_export_symbols=no | |
10289 | archive_cmds= | |
10290 | archive_expsym_cmds= | |
10291 | compiler_needs_object=no | |
10292 | enable_shared_with_static_runtimes=no | |
10293 | export_dynamic_flag_spec= | |
10294 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10295 | hardcode_automatic=no | |
10296 | hardcode_direct=no | |
10297 | hardcode_direct_absolute=no | |
10298 | hardcode_libdir_flag_spec= | |
10299 | hardcode_libdir_flag_spec_ld= | |
10300 | hardcode_libdir_separator= | |
10301 | hardcode_minus_L=no | |
10302 | hardcode_shlibpath_var=unsupported | |
10303 | inherit_rpath=no | |
10304 | link_all_deplibs=unknown | |
10305 | module_cmds= | |
10306 | module_expsym_cmds= | |
10307 | old_archive_from_new_cmds= | |
10308 | old_archive_from_expsyms_cmds= | |
10309 | thread_safe_flag_spec= | |
10310 | whole_archive_flag_spec= | |
10311 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10312 | # included in the symbol list | |
10313 | include_expsyms= | |
10314 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10315 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10316 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10317 | # as well as any symbol that contains `d'. | |
d58dead8 | 10318 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10319 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10320 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10321 | # the symbol is explicitly referenced. Since portable code cannot | |
10322 | # rely on this symbol name, it's probably fine to never include it in | |
10323 | # preloaded symbol tables. | |
d58dead8 | 10324 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10325 | extract_expsyms_cmds= |
10326 | ||
10327 | case $host_os in | |
d58dead8 | 10328 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10329 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10330 | # When not using gcc, we currently assume that we are using | |
10331 | # Microsoft Visual C++. | |
10332 | if test "$GCC" != yes; then | |
10333 | with_gnu_ld=no | |
10334 | fi | |
10335 | ;; | |
10336 | interix*) | |
10337 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10338 | with_gnu_ld=yes | |
10339 | ;; | |
10340 | openbsd*) | |
10341 | with_gnu_ld=no | |
10342 | ;; | |
10343 | esac | |
10344 | ||
10345 | ld_shlibs=yes | |
43e02a8a RW |
10346 | |
10347 | # On some targets, GNU ld is compatible enough with the native linker | |
10348 | # that we're better off using the native interface for both. | |
10349 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10350 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10351 | case $host_os in |
10352 | aix*) | |
10353 | # The AIX port of GNU ld has always aspired to compatibility | |
10354 | # with the native linker. However, as the warning in the GNU ld | |
10355 | # block says, versions before 2.19.5* couldn't really create working | |
10356 | # shared libraries, regardless of the interface used. | |
10357 | case `$LD -v 2>&1` in | |
10358 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10359 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10360 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10361 | *) | |
10362 | lt_use_gnu_ld_interface=yes | |
10363 | ;; | |
10364 | esac | |
10365 | ;; | |
10366 | *) | |
10367 | lt_use_gnu_ld_interface=yes | |
10368 | ;; | |
10369 | esac | |
10370 | fi | |
10371 | ||
10372 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10373 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10374 | wlarc='${wl}' | |
10375 | ||
10376 | # Set some defaults for GNU ld with shared library support. These | |
10377 | # are reset later if shared libraries are not supported. Putting them | |
10378 | # here allows them to be overridden if necessary. | |
10379 | runpath_var=LD_RUN_PATH | |
10380 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10381 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10382 | # ancient GNU ld didn't support --whole-archive et. al. | |
10383 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10384 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10385 | else | |
10386 | whole_archive_flag_spec= | |
10387 | fi | |
10388 | supports_anon_versioning=no | |
10389 | case `$LD -v 2>&1` in | |
43e02a8a | 10390 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10391 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10392 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10393 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10394 | *\ 2.11.*) ;; # other 2.11 versions | |
10395 | *) supports_anon_versioning=yes ;; | |
10396 | esac | |
10397 | ||
10398 | # See if GNU ld supports shared libraries. | |
10399 | case $host_os in | |
4f6bebc3 | 10400 | aix[3-9]*) |
1cf3d07d SE |
10401 | # On AIX/PPC, the GNU linker is very broken |
10402 | if test "$host_cpu" != ia64; then | |
10403 | ld_shlibs=no | |
10404 | cat <<_LT_EOF 1>&2 | |
10405 | ||
43e02a8a | 10406 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
10407 | *** to be unable to reliably create shared libraries on AIX. |
10408 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
10409 | *** really care for shared libraries, you may want to install binutils |
10410 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10411 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
10412 | |
10413 | _LT_EOF | |
10414 | fi | |
10415 | ;; | |
10416 | ||
10417 | amigaos*) | |
d58dead8 PG |
10418 | case $host_cpu in |
10419 | powerpc) | |
10420 | # see comment about AmigaOS4 .so support | |
10421 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10422 | archive_expsym_cmds='' | |
10423 | ;; | |
10424 | m68k) | |
10425 | 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)' | |
10426 | hardcode_libdir_flag_spec='-L$libdir' | |
10427 | hardcode_minus_L=yes | |
10428 | ;; | |
10429 | esac | |
1cf3d07d SE |
10430 | ;; |
10431 | ||
10432 | beos*) | |
10433 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10434 | allow_undefined_flag=unsupported | |
10435 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10436 | # support --undefined. This deserves some investigation. FIXME | |
10437 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10438 | else | |
10439 | ld_shlibs=no | |
10440 | fi | |
10441 | ;; | |
10442 | ||
d58dead8 | 10443 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10444 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10445 | # as there is no search path for DLLs. | |
10446 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 10447 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
10448 | allow_undefined_flag=unsupported |
10449 | always_export_symbols=no | |
10450 | enable_shared_with_static_runtimes=yes | |
10451 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10452 | ||
10453 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10454 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10455 | # If the export-symbols file already is a .def file (1st line | |
10456 | # is EXPORTS), use it as is; otherwise, prepend... | |
10457 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10458 | cp $export_symbols $output_objdir/$soname.def; | |
10459 | else | |
10460 | echo EXPORTS > $output_objdir/$soname.def; | |
10461 | cat $export_symbols >> $output_objdir/$soname.def; | |
10462 | fi~ | |
10463 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10464 | else | |
10465 | ld_shlibs=no | |
10466 | fi | |
10467 | ;; | |
10468 | ||
43e02a8a RW |
10469 | haiku*) |
10470 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10471 | link_all_deplibs=yes | |
10472 | ;; | |
10473 | ||
1cf3d07d SE |
10474 | interix[3-9]*) |
10475 | hardcode_direct=no | |
10476 | hardcode_shlibpath_var=no | |
10477 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10478 | export_dynamic_flag_spec='${wl}-E' | |
10479 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10480 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10481 | # default) and relocated if they conflict, which is a slow very memory | |
10482 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10483 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10484 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10485 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10486 | 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' | |
10487 | ;; | |
10488 | ||
e9085da5 | 10489 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
10490 | tmp_diet=no |
10491 | if test "$host_os" = linux-dietlibc; then | |
10492 | case $cc_basename in | |
10493 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10494 | esac | |
10495 | fi | |
10496 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10497 | && test "$tmp_diet" = no | |
10498 | then | |
a699d672 | 10499 | tmp_addflag=' $pic_flag' |
d58dead8 | 10500 | tmp_sharedflag='-shared' |
1cf3d07d SE |
10501 | case $cc_basename,$host_cpu in |
10502 | pgcc*) # Portland Group C compiler | |
43e02a8a | 10503 | 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 |
10504 | tmp_addflag=' $pic_flag' |
10505 | ;; | |
43e02a8a RW |
10506 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10507 | # Portland Group f77 and f90 compilers | |
10508 | 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 |
10509 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10510 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10511 | tmp_addflag=' -i_dynamic' ;; | |
10512 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10513 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10514 | ifc* | ifort*) # Intel Fortran compiler | |
10515 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
10516 | lf95*) # Lahey Fortran 8.1 |
10517 | whole_archive_flag_spec= | |
10518 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 10519 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
10520 | tmp_sharedflag='-qmkshrobj' |
10521 | tmp_addflag= ;; | |
43e02a8a RW |
10522 | nvcc*) # Cuda Compiler Driver 2.2 |
10523 | 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' | |
10524 | compiler_needs_object=yes | |
10525 | ;; | |
1cf3d07d SE |
10526 | esac |
10527 | case `$CC -V 2>&1 | sed 5q` in | |
10528 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 10529 | 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 |
10530 | compiler_needs_object=yes |
10531 | tmp_sharedflag='-G' ;; | |
10532 | *Sun\ F*) # Sun Fortran 8.3 | |
10533 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
10534 | esac |
10535 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10536 | ||
10537 | if test "x$supports_anon_versioning" = xyes; then | |
10538 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10539 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10540 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10541 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10542 | fi | |
d58dead8 PG |
10543 | |
10544 | case $cc_basename in | |
43e02a8a | 10545 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
10546 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10547 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10548 | hardcode_libdir_flag_spec= | |
10549 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10550 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10551 | if test "x$supports_anon_versioning" = xyes; then | |
10552 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10553 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10554 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10555 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10556 | fi | |
10557 | ;; | |
10558 | esac | |
1cf3d07d SE |
10559 | else |
10560 | ld_shlibs=no | |
10561 | fi | |
10562 | ;; | |
10563 | ||
10564 | netbsd*) | |
10565 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10566 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10567 | wlarc= | |
10568 | else | |
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 | fi | |
10572 | ;; | |
10573 | ||
10574 | solaris*) | |
10575 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10576 | ld_shlibs=no | |
10577 | cat <<_LT_EOF 1>&2 | |
10578 | ||
10579 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10580 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10581 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10582 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10583 | *** your PATH or compiler configuration so that the native linker is | |
10584 | *** used, and then restart. | |
10585 | ||
10586 | _LT_EOF | |
10587 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10588 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10589 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10590 | else | |
10591 | ld_shlibs=no | |
10592 | fi | |
10593 | ;; | |
10594 | ||
10595 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10596 | case `$LD -v 2>&1` in | |
10597 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10598 | ld_shlibs=no | |
10599 | cat <<_LT_EOF 1>&2 | |
10600 | ||
10601 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10602 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10603 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10604 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10605 | *** your PATH or compiler configuration so that the native linker is | |
10606 | *** used, and then restart. | |
10607 | ||
10608 | _LT_EOF | |
10609 | ;; | |
10610 | *) | |
10611 | # For security reasons, it is highly recommended that you always | |
10612 | # use absolute paths for naming shared libraries, and exclude the | |
10613 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10614 | # requires that you compile everything twice, which is a pain. | |
10615 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10616 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10617 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10618 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10619 | else | |
10620 | ld_shlibs=no | |
10621 | fi | |
10622 | ;; | |
10623 | esac | |
10624 | ;; | |
10625 | ||
10626 | sunos4*) | |
10627 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10628 | wlarc= | |
10629 | hardcode_direct=yes | |
10630 | hardcode_shlibpath_var=no | |
10631 | ;; | |
10632 | ||
10633 | *) | |
10634 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10635 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10636 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10637 | else | |
10638 | ld_shlibs=no | |
10639 | fi | |
10640 | ;; | |
10641 | esac | |
10642 | ||
10643 | if test "$ld_shlibs" = no; then | |
10644 | runpath_var= | |
10645 | hardcode_libdir_flag_spec= | |
10646 | export_dynamic_flag_spec= | |
10647 | whole_archive_flag_spec= | |
10648 | fi | |
10649 | else | |
10650 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10651 | case $host_os in | |
10652 | aix3*) | |
10653 | allow_undefined_flag=unsupported | |
10654 | always_export_symbols=yes | |
10655 | 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' | |
10656 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10657 | # are no directories specified by -L. | |
10658 | hardcode_minus_L=yes | |
10659 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10660 | # Neither direct hardcoding nor static linking is supported with a | |
10661 | # broken collect2. | |
10662 | hardcode_direct=unsupported | |
10663 | fi | |
10664 | ;; | |
10665 | ||
4f6bebc3 | 10666 | aix[4-9]*) |
1cf3d07d SE |
10667 | if test "$host_cpu" = ia64; then |
10668 | # On IA64, the linker does run time linking by default, so we don't | |
10669 | # have to do anything special. | |
10670 | aix_use_runtimelinking=no | |
10671 | exp_sym_flag='-Bexport' | |
10672 | no_entry_flag="" | |
10673 | else | |
10674 | # If we're using GNU nm, then we don't want the "-C" option. | |
10675 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
10676 | # Also, AIX nm treats weak defined symbols like other global |
10677 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 10678 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 10679 | 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 | 10680 | else |
d3ca2257 | 10681 | 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 |
10682 | fi |
10683 | aix_use_runtimelinking=no | |
10684 | ||
10685 | # Test if we are trying to use run time linking or normal | |
10686 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10687 | # need to do runtime linking. | |
4f6bebc3 | 10688 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
10689 | for ld_flag in $LDFLAGS; do |
10690 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10691 | aix_use_runtimelinking=yes | |
10692 | break | |
10693 | fi | |
10694 | done | |
10695 | ;; | |
10696 | esac | |
10697 | ||
10698 | exp_sym_flag='-bexport' | |
10699 | no_entry_flag='-bnoentry' | |
10700 | fi | |
10701 | ||
10702 | # When large executables or shared objects are built, AIX ld can | |
10703 | # have problems creating the table of contents. If linking a library | |
10704 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10705 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10706 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10707 | ||
10708 | archive_cmds='' | |
10709 | hardcode_direct=yes | |
10710 | hardcode_direct_absolute=yes | |
10711 | hardcode_libdir_separator=':' | |
10712 | link_all_deplibs=yes | |
10713 | file_list_spec='${wl}-f,' | |
10714 | ||
10715 | if test "$GCC" = yes; then | |
10716 | case $host_os in aix4.[012]|aix4.[012].*) | |
10717 | # We only want to do this on AIX 4.2 and lower, the check | |
10718 | # below for broken collect2 doesn't work under 4.3+ | |
10719 | collect2name=`${CC} -print-prog-name=collect2` | |
10720 | if test -f "$collect2name" && | |
10721 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10722 | then | |
10723 | # We have reworked collect2 | |
10724 | : | |
10725 | else | |
10726 | # We have old collect2 | |
10727 | hardcode_direct=unsupported | |
10728 | # It fails to find uninstalled libraries when the uninstalled | |
10729 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10730 | # to unsupported forces relinking | |
10731 | hardcode_minus_L=yes | |
10732 | hardcode_libdir_flag_spec='-L$libdir' | |
10733 | hardcode_libdir_separator= | |
10734 | fi | |
10735 | ;; | |
10736 | esac | |
10737 | shared_flag='-shared' | |
10738 | if test "$aix_use_runtimelinking" = yes; then | |
10739 | shared_flag="$shared_flag "'${wl}-G' | |
10740 | fi | |
10741 | else | |
10742 | # not using gcc | |
10743 | if test "$host_cpu" = ia64; then | |
10744 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10745 | # chokes on -Wl,-G. The following line is correct: | |
10746 | shared_flag='-G' | |
10747 | else | |
10748 | if test "$aix_use_runtimelinking" = yes; then | |
10749 | shared_flag='${wl}-G' | |
10750 | else | |
10751 | shared_flag='${wl}-bM:SRE' | |
10752 | fi | |
10753 | fi | |
10754 | fi | |
10755 | ||
d58dead8 | 10756 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
10757 | # It seems that -bexpall does not export symbols beginning with |
10758 | # underscore (_), so it is better to generate a list of symbols to export. | |
10759 | always_export_symbols=yes | |
10760 | if test "$aix_use_runtimelinking" = yes; then | |
10761 | # Warning - without using the other runtime loading flags (-brtl), | |
10762 | # -berok will link without error, but may produce a broken library. | |
10763 | allow_undefined_flag='-berok' | |
10764 | # Determine the default libpath from the value encoded in an | |
10765 | # empty executable. | |
10766 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10767 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10768 | fi |
5213506e | 10769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10770 | /* end confdefs.h. */ |
10771 | ||
10772 | int | |
10773 | main () | |
10774 | { | |
10775 | ||
10776 | ; | |
10777 | return 0; | |
10778 | } | |
10779 | _ACEOF | |
5213506e | 10780 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10781 | |
10782 | lt_aix_libpath_sed=' | |
10783 | /Import File Strings/,/^$/ { | |
10784 | /^0/ { | |
10785 | s/^0 *\(.*\)$/\1/ | |
10786 | p | |
10787 | } | |
10788 | }' | |
10789 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10790 | # Check for a 64-bit object if we didn't find anything. | |
10791 | if test -z "$aix_libpath"; then | |
10792 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10793 | fi | |
1cf3d07d | 10794 | fi |
5213506e RW |
10795 | rm -f core conftest.err conftest.$ac_objext \ |
10796 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10797 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10798 | ||
10799 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 10800 | 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 |
10801 | else |
10802 | if test "$host_cpu" = ia64; then | |
10803 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10804 | allow_undefined_flag="-z nodefs" | |
10805 | 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" | |
10806 | else | |
10807 | # Determine the default libpath from the value encoded in an | |
10808 | # empty executable. | |
10809 | if test x$gcc_no_link = xyes; then | |
22e05272 | 10810 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 10811 | fi |
5213506e | 10812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
10813 | /* end confdefs.h. */ |
10814 | ||
10815 | int | |
10816 | main () | |
10817 | { | |
10818 | ||
10819 | ; | |
10820 | return 0; | |
10821 | } | |
10822 | _ACEOF | |
5213506e | 10823 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
10824 | |
10825 | lt_aix_libpath_sed=' | |
10826 | /Import File Strings/,/^$/ { | |
10827 | /^0/ { | |
10828 | s/^0 *\(.*\)$/\1/ | |
10829 | p | |
10830 | } | |
10831 | }' | |
10832 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10833 | # Check for a 64-bit object if we didn't find anything. | |
10834 | if test -z "$aix_libpath"; then | |
10835 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10836 | fi | |
1cf3d07d | 10837 | fi |
5213506e RW |
10838 | rm -f core conftest.err conftest.$ac_objext \ |
10839 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
10840 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10841 | ||
10842 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10843 | # Warning - without using the other run time loading flags, | |
10844 | # -berok will link without error, but may produce a broken library. | |
10845 | no_undefined_flag=' ${wl}-bernotok' | |
10846 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
10847 | if test "$with_gnu_ld" = yes; then |
10848 | # We only use this code for GNU lds that support --whole-archive. | |
10849 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10850 | else | |
10851 | # Exported symbols can be pulled into shared objects from archives | |
10852 | whole_archive_flag_spec='$convenience' | |
10853 | fi | |
1cf3d07d SE |
10854 | archive_cmds_need_lc=yes |
10855 | # This is similar to how AIX traditionally builds its shared libraries. | |
10856 | 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' | |
10857 | fi | |
10858 | fi | |
10859 | ;; | |
10860 | ||
10861 | amigaos*) | |
d58dead8 PG |
10862 | case $host_cpu in |
10863 | powerpc) | |
10864 | # see comment about AmigaOS4 .so support | |
10865 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10866 | archive_expsym_cmds='' | |
10867 | ;; | |
10868 | m68k) | |
10869 | 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)' | |
10870 | hardcode_libdir_flag_spec='-L$libdir' | |
10871 | hardcode_minus_L=yes | |
10872 | ;; | |
10873 | esac | |
1cf3d07d SE |
10874 | ;; |
10875 | ||
10876 | bsdi[45]*) | |
10877 | export_dynamic_flag_spec=-rdynamic | |
10878 | ;; | |
10879 | ||
d58dead8 | 10880 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10881 | # When not using gcc, we currently assume that we are using |
10882 | # Microsoft Visual C++. | |
10883 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10884 | # no search path for DLLs. | |
10885 | hardcode_libdir_flag_spec=' ' | |
10886 | allow_undefined_flag=unsupported | |
10887 | # Tell ltmain to make .lib files, not .a files. | |
10888 | libext=lib | |
10889 | # Tell ltmain to make .dll files, not .so files. | |
10890 | shrext_cmds=".dll" | |
10891 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 10892 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
10893 | # The linker will automatically build a .lib file if we build a DLL. |
10894 | old_archive_from_new_cmds='true' | |
10895 | # FIXME: Should let the user specify the lib program. | |
10896 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10897 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10898 | enable_shared_with_static_runtimes=yes | |
10899 | ;; | |
10900 | ||
10901 | darwin* | rhapsody*) | |
1cf3d07d | 10902 | |
d58dead8 PG |
10903 | |
10904 | archive_cmds_need_lc=no | |
10905 | hardcode_direct=no | |
10906 | hardcode_automatic=yes | |
10907 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
10908 | if test "$lt_cv_ld_force_load" = "yes"; then |
10909 | 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\"`' | |
10910 | else | |
10911 | whole_archive_flag_spec='' | |
10912 | fi | |
d58dead8 PG |
10913 | link_all_deplibs=yes |
10914 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10915 | case $cc_basename in | |
10916 | ifort*) _lt_dar_can_shared=yes ;; | |
10917 | *) _lt_dar_can_shared=$GCC ;; | |
10918 | esac | |
10919 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 10920 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
10921 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10922 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10923 | 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}" | |
10924 | 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}" | |
10925 | ||
10926 | else | |
10927 | ld_shlibs=no | |
10928 | fi | |
10929 | ||
1cf3d07d SE |
10930 | ;; |
10931 | ||
10932 | dgux*) | |
10933 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10934 | hardcode_libdir_flag_spec='-L$libdir' | |
10935 | hardcode_shlibpath_var=no | |
10936 | ;; | |
10937 | ||
1cf3d07d SE |
10938 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10939 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10940 | # does not break anything, and helps significantly (at the cost of a little | |
10941 | # extra space). | |
10942 | freebsd2.2*) | |
10943 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10944 | hardcode_libdir_flag_spec='-R$libdir' | |
10945 | hardcode_direct=yes | |
10946 | hardcode_shlibpath_var=no | |
10947 | ;; | |
10948 | ||
10949 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 10950 | freebsd2.*) |
1cf3d07d SE |
10951 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10952 | hardcode_direct=yes | |
10953 | hardcode_minus_L=yes | |
10954 | hardcode_shlibpath_var=no | |
10955 | ;; | |
10956 | ||
10957 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10958 | freebsd* | dragonfly*) | |
10959 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10960 | hardcode_libdir_flag_spec='-R$libdir' | |
10961 | hardcode_direct=yes | |
10962 | hardcode_shlibpath_var=no | |
10963 | ;; | |
10964 | ||
10965 | hpux9*) | |
10966 | if test "$GCC" = yes; then | |
10967 | 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' | |
10968 | else | |
10969 | 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' | |
10970 | fi | |
10971 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10972 | hardcode_libdir_separator=: | |
10973 | hardcode_direct=yes | |
10974 | ||
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 | export_dynamic_flag_spec='${wl}-E' | |
10979 | ;; | |
10980 | ||
10981 | hpux10*) | |
43e02a8a | 10982 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
10983 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10984 | else | |
10985 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10986 | fi | |
10987 | if test "$with_gnu_ld" = no; then | |
10988 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10989 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10990 | hardcode_libdir_separator=: | |
10991 | hardcode_direct=yes | |
10992 | hardcode_direct_absolute=yes | |
10993 | export_dynamic_flag_spec='${wl}-E' | |
10994 | # hardcode_minus_L: Not really in the search PATH, | |
10995 | # but as the default location of the library. | |
10996 | hardcode_minus_L=yes | |
10997 | fi | |
10998 | ;; | |
10999 | ||
11000 | hpux11*) | |
43e02a8a | 11001 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11002 | case $host_cpu in |
11003 | hppa*64*) | |
4e4ba647 | 11004 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11005 | ;; |
11006 | ia64*) | |
d58dead8 | 11007 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11008 | ;; |
11009 | *) | |
11010 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11011 | ;; | |
11012 | esac | |
11013 | else | |
11014 | case $host_cpu in | |
11015 | hppa*64*) | |
4e4ba647 | 11016 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11017 | ;; |
11018 | ia64*) | |
11019 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11020 | ;; | |
11021 | *) | |
43e02a8a RW |
11022 | |
11023 | # Older versions of the 11.00 compiler do not understand -b yet | |
11024 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11026 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 11027 | if ${lt_cv_prog_compiler__b+:} false; then : |
43e02a8a RW |
11028 | $as_echo_n "(cached) " >&6 |
11029 | else | |
11030 | lt_cv_prog_compiler__b=no | |
11031 | save_LDFLAGS="$LDFLAGS" | |
11032 | LDFLAGS="$LDFLAGS -b" | |
11033 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11034 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11035 | # The linker can only warn and ignore the option if not recognized | |
11036 | # So say no if there are warnings | |
11037 | if test -s conftest.err; then | |
11038 | # Append any errors to the config.log. | |
11039 | cat conftest.err 1>&5 | |
11040 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11041 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11042 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11043 | lt_cv_prog_compiler__b=yes | |
11044 | fi | |
11045 | else | |
11046 | lt_cv_prog_compiler__b=yes | |
11047 | fi | |
11048 | fi | |
11049 | $RM -r conftest* | |
11050 | LDFLAGS="$save_LDFLAGS" | |
11051 | ||
11052 | fi | |
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11054 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11055 | ||
11056 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11057 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11058 | else | |
11059 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11060 | fi | |
11061 | ||
1cf3d07d SE |
11062 | ;; |
11063 | esac | |
11064 | fi | |
11065 | if test "$with_gnu_ld" = no; then | |
11066 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11067 | hardcode_libdir_separator=: | |
11068 | ||
11069 | case $host_cpu in | |
11070 | hppa*64*|ia64*) | |
11071 | hardcode_direct=no | |
11072 | hardcode_shlibpath_var=no | |
11073 | ;; | |
11074 | *) | |
11075 | hardcode_direct=yes | |
11076 | hardcode_direct_absolute=yes | |
11077 | export_dynamic_flag_spec='${wl}-E' | |
11078 | ||
11079 | # hardcode_minus_L: Not really in the search PATH, | |
11080 | # but as the default location of the library. | |
11081 | hardcode_minus_L=yes | |
11082 | ;; | |
11083 | esac | |
11084 | fi | |
11085 | ;; | |
11086 | ||
11087 | irix5* | irix6* | nonstopux*) | |
11088 | if test "$GCC" = yes; then | |
43e02a8a | 11089 | 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 |
11090 | # Try to use the -exported_symbol ld option, if it does not |
11091 | # work, assume that -exports_file does not work either and | |
11092 | # implicitly export all symbols. | |
11093 | save_LDFLAGS="$LDFLAGS" | |
11094 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11095 | if test x$gcc_no_link = xyes; then | |
22e05272 | 11096 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 11097 | fi |
5213506e RW |
11098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11099 | /* end confdefs.h. */ | |
1cf3d07d SE |
11100 | int foo(void) {} |
11101 | _ACEOF | |
5213506e | 11102 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11103 | 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 | 11104 | |
1cf3d07d | 11105 | fi |
5213506e RW |
11106 | rm -f core conftest.err conftest.$ac_objext \ |
11107 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11108 | LDFLAGS="$save_LDFLAGS" |
11109 | else | |
43e02a8a RW |
11110 | 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' |
11111 | 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 |
11112 | fi |
11113 | archive_cmds_need_lc='no' | |
11114 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11115 | hardcode_libdir_separator=: | |
11116 | inherit_rpath=yes | |
11117 | link_all_deplibs=yes | |
11118 | ;; | |
11119 | ||
11120 | netbsd*) | |
11121 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11122 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11123 | else | |
11124 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11125 | fi | |
11126 | hardcode_libdir_flag_spec='-R$libdir' | |
11127 | hardcode_direct=yes | |
11128 | hardcode_shlibpath_var=no | |
11129 | ;; | |
11130 | ||
11131 | newsos6) | |
11132 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11133 | hardcode_direct=yes | |
11134 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11135 | hardcode_libdir_separator=: | |
11136 | hardcode_shlibpath_var=no | |
11137 | ;; | |
11138 | ||
11139 | *nto* | *qnx*) | |
11140 | ;; | |
11141 | ||
11142 | openbsd*) | |
d58dead8 PG |
11143 | if test -f /usr/libexec/ld.so; then |
11144 | hardcode_direct=yes | |
11145 | hardcode_shlibpath_var=no | |
11146 | hardcode_direct_absolute=yes | |
11147 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11148 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 11149 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11150 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
d58dead8 PG |
11151 | export_dynamic_flag_spec='${wl}-E' |
11152 | else | |
11153 | case $host_os in | |
11154 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11155 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11156 | hardcode_libdir_flag_spec='-R$libdir' | |
11157 | ;; | |
11158 | *) | |
11159 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11160 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11161 | ;; | |
11162 | esac | |
11163 | fi | |
11164 | else | |
11165 | ld_shlibs=no | |
1cf3d07d SE |
11166 | fi |
11167 | ;; | |
11168 | ||
11169 | os2*) | |
11170 | hardcode_libdir_flag_spec='-L$libdir' | |
11171 | hardcode_minus_L=yes | |
11172 | allow_undefined_flag=unsupported | |
43e02a8a | 11173 | 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 |
11174 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11175 | ;; | |
11176 | ||
11177 | osf3*) | |
11178 | if test "$GCC" = yes; then | |
11179 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11180 | 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 |
11181 | else |
11182 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11183 | 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 |
11184 | fi |
11185 | archive_cmds_need_lc='no' | |
11186 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11187 | hardcode_libdir_separator=: | |
11188 | ;; | |
11189 | ||
11190 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11191 | if test "$GCC" = yes; then | |
11192 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11193 | 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 |
11194 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11195 | else | |
11196 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11197 | 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 | 11198 | 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 | 11199 | $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 |
11200 | |
11201 | # Both c and cxx compiler support -rpath directly | |
11202 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11203 | fi | |
11204 | archive_cmds_need_lc='no' | |
11205 | hardcode_libdir_separator=: | |
11206 | ;; | |
11207 | ||
11208 | solaris*) | |
11209 | no_undefined_flag=' -z defs' | |
11210 | if test "$GCC" = yes; then | |
11211 | wlarc='${wl}' | |
11212 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11213 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11214 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11215 | else | |
11216 | case `$CC -V 2>&1` in | |
11217 | *"Compilers 5.0"*) | |
11218 | wlarc='' | |
11219 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11220 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11221 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11222 | ;; | |
11223 | *) | |
11224 | wlarc='${wl}' | |
11225 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11226 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11227 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11228 | ;; | |
11229 | esac | |
11230 | fi | |
11231 | hardcode_libdir_flag_spec='-R$libdir' | |
11232 | hardcode_shlibpath_var=no | |
11233 | case $host_os in | |
11234 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11235 | *) | |
11236 | # The compiler driver will combine and reorder linker options, | |
11237 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11238 | # but is careful enough not to reorder. | |
11239 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11240 | if test "$GCC" = yes; then | |
11241 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11242 | else | |
11243 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11244 | fi | |
11245 | ;; | |
11246 | esac | |
11247 | link_all_deplibs=yes | |
11248 | ;; | |
11249 | ||
11250 | sunos4*) | |
11251 | if test "x$host_vendor" = xsequent; then | |
11252 | # Use $CC to link under sequent, because it throws in some extra .o | |
11253 | # files that make .init and .fini sections work. | |
11254 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11255 | else | |
11256 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11257 | fi | |
11258 | hardcode_libdir_flag_spec='-L$libdir' | |
11259 | hardcode_direct=yes | |
11260 | hardcode_minus_L=yes | |
11261 | hardcode_shlibpath_var=no | |
11262 | ;; | |
11263 | ||
11264 | sysv4) | |
11265 | case $host_vendor in | |
11266 | sni) | |
11267 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11268 | hardcode_direct=yes # is this really true??? | |
11269 | ;; | |
11270 | siemens) | |
11271 | ## LD is ld it makes a PLAMLIB | |
11272 | ## CC just makes a GrossModule. | |
11273 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11274 | reload_cmds='$CC -r -o $output$reload_objs' | |
11275 | hardcode_direct=no | |
11276 | ;; | |
11277 | motorola) | |
11278 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11279 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11280 | ;; | |
11281 | esac | |
11282 | runpath_var='LD_RUN_PATH' | |
11283 | hardcode_shlibpath_var=no | |
11284 | ;; | |
11285 | ||
11286 | sysv4.3*) | |
11287 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11288 | hardcode_shlibpath_var=no | |
11289 | export_dynamic_flag_spec='-Bexport' | |
11290 | ;; | |
11291 | ||
11292 | sysv4*MP*) | |
11293 | if test -d /usr/nec; then | |
11294 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11295 | hardcode_shlibpath_var=no | |
11296 | runpath_var=LD_RUN_PATH | |
11297 | hardcode_runpath_var=yes | |
11298 | ld_shlibs=yes | |
11299 | fi | |
11300 | ;; | |
11301 | ||
11302 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11303 | no_undefined_flag='${wl}-z,text' | |
11304 | archive_cmds_need_lc=no | |
11305 | hardcode_shlibpath_var=no | |
11306 | runpath_var='LD_RUN_PATH' | |
11307 | ||
11308 | if test "$GCC" = yes; then | |
11309 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11310 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11311 | else | |
11312 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11313 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11314 | fi | |
11315 | ;; | |
11316 | ||
11317 | sysv5* | sco3.2v5* | sco5v6*) | |
11318 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11319 | # link with -lc, and that would cause any symbols used from libc to | |
11320 | # always be unresolved, which means just about no library would | |
11321 | # ever link correctly. If we're not using GNU ld we use -z text | |
11322 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11323 | # as -z defs. | |
11324 | no_undefined_flag='${wl}-z,text' | |
11325 | allow_undefined_flag='${wl}-z,nodefs' | |
11326 | archive_cmds_need_lc=no | |
11327 | hardcode_shlibpath_var=no | |
11328 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11329 | hardcode_libdir_separator=':' | |
11330 | link_all_deplibs=yes | |
11331 | export_dynamic_flag_spec='${wl}-Bexport' | |
11332 | runpath_var='LD_RUN_PATH' | |
11333 | ||
11334 | if test "$GCC" = yes; then | |
11335 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11336 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11337 | else | |
11338 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11339 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11340 | fi | |
11341 | ;; | |
11342 | ||
11343 | uts4*) | |
11344 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11345 | hardcode_libdir_flag_spec='-L$libdir' | |
11346 | hardcode_shlibpath_var=no | |
11347 | ;; | |
11348 | ||
11349 | *) | |
11350 | ld_shlibs=no | |
11351 | ;; | |
11352 | esac | |
11353 | ||
11354 | if test x$host_vendor = xsni; then | |
11355 | case $host in | |
11356 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11357 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11358 | ;; | |
11359 | esac | |
11360 | fi | |
11361 | fi | |
11362 | ||
5213506e RW |
11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11364 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11365 | test "$ld_shlibs" = no && can_build_shared=no |
11366 | ||
11367 | with_gnu_ld=$with_gnu_ld | |
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | # | |
11384 | # Do we need to explicitly link libc? | |
11385 | # | |
11386 | case "x$archive_cmds_need_lc" in | |
11387 | x|xyes) | |
11388 | # Assume -lc should be added | |
11389 | archive_cmds_need_lc=yes | |
11390 | ||
11391 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11392 | case $archive_cmds in | |
11393 | *'~'*) | |
11394 | # FIXME: we may have to deal with multi-command sequences. | |
11395 | ;; | |
11396 | '$CC '*) | |
11397 | # Test whether the compiler implicitly links with -lc since on some | |
11398 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11399 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11401 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11402 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
5213506e | 11403 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
11404 | else |
11405 | $RM conftest* | |
11406 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 11407 | |
5213506e | 11408 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
11409 | (eval $ac_compile) 2>&5 |
11410 | ac_status=$? | |
5213506e RW |
11411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11412 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
11413 | soname=conftest |
11414 | lib=conftest | |
11415 | libobjs=conftest.$ac_objext | |
11416 | deplibs= | |
11417 | wl=$lt_prog_compiler_wl | |
11418 | pic_flag=$lt_prog_compiler_pic | |
11419 | compiler_flags=-v | |
11420 | linker_flags=-v | |
11421 | verstring= | |
11422 | output_objdir=. | |
11423 | libname=conftest | |
11424 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11425 | allow_undefined_flag= | |
5213506e | 11426 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
11427 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11428 | ac_status=$? | |
5213506e RW |
11429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11430 | test $ac_status = 0; } | |
baafc534 RW |
11431 | then |
11432 | lt_cv_archive_cmds_need_lc=no | |
11433 | else | |
11434 | lt_cv_archive_cmds_need_lc=yes | |
11435 | fi | |
11436 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11437 | else | |
11438 | cat conftest.err 1>&5 | |
11439 | fi | |
11440 | $RM conftest* | |
11441 | ||
11442 | fi | |
5213506e RW |
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11444 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 11445 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
11446 | ;; |
11447 | esac | |
11448 | fi | |
11449 | ;; | |
11450 | esac | |
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 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11604 | ||
11605 | ||
11606 | ||
11607 | ||
5213506e RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11609 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 PG |
11610 | |
11611 | if test "$GCC" = yes; then | |
1cf3d07d SE |
11612 | case $host_os in |
11613 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11614 | *) lt_awk_arg="/^libraries:/" ;; | |
11615 | esac | |
43e02a8a RW |
11616 | case $host_os in |
11617 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11618 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11619 | esac | |
11620 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11621 | case $lt_search_path_spec in | |
11622 | *\;*) | |
1cf3d07d SE |
11623 | # if the path contains ";" then we assume it to be the separator |
11624 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11625 | # assumed that no part of a normal pathname contains ";" but that should | |
11626 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
11627 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11628 | ;; | |
11629 | *) | |
11630 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11631 | ;; | |
11632 | esac | |
1cf3d07d SE |
11633 | # Ok, now we have the path, separated by spaces, we can step through it |
11634 | # and add multilib dir if necessary. | |
11635 | lt_tmp_lt_search_path_spec= | |
11636 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11637 | for lt_sys_path in $lt_search_path_spec; do | |
11638 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11639 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11640 | else | |
11641 | test -d "$lt_sys_path" && \ | |
11642 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11643 | fi | |
11644 | done | |
43e02a8a | 11645 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
11646 | BEGIN {RS=" "; FS="/|\n";} { |
11647 | lt_foo=""; | |
11648 | lt_count=0; | |
11649 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11650 | if ($lt_i != "" && $lt_i != ".") { | |
11651 | if ($lt_i == "..") { | |
11652 | lt_count++; | |
11653 | } else { | |
11654 | if (lt_count == 0) { | |
11655 | lt_foo="/" $lt_i lt_foo; | |
11656 | } else { | |
11657 | lt_count--; | |
11658 | } | |
11659 | } | |
11660 | } | |
11661 | } | |
11662 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11663 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11664 | }'` | |
43e02a8a RW |
11665 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11666 | # for these hosts. | |
11667 | case $host_os in | |
11668 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11669 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11670 | esac | |
11671 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
1cf3d07d SE |
11672 | else |
11673 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11674 | fi | |
11675 | library_names_spec= | |
11676 | libname_spec='lib$name' | |
11677 | soname_spec= | |
11678 | shrext_cmds=".so" | |
11679 | postinstall_cmds= | |
11680 | postuninstall_cmds= | |
11681 | finish_cmds= | |
11682 | finish_eval= | |
11683 | shlibpath_var= | |
11684 | shlibpath_overrides_runpath=unknown | |
11685 | version_type=none | |
11686 | dynamic_linker="$host_os ld.so" | |
11687 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11688 | need_lib_prefix=unknown | |
11689 | hardcode_into_libs=no | |
11690 | ||
11691 | # when you set need_version to no, make sure it does not cause -set_version | |
11692 | # flags to be left without arguments | |
11693 | need_version=unknown | |
11694 | ||
11695 | case $host_os in | |
11696 | aix3*) | |
11697 | version_type=linux | |
11698 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11699 | shlibpath_var=LIBPATH | |
11700 | ||
11701 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11702 | soname_spec='${libname}${release}${shared_ext}$major' | |
11703 | ;; | |
11704 | ||
4f6bebc3 | 11705 | aix[4-9]*) |
1cf3d07d SE |
11706 | version_type=linux |
11707 | need_lib_prefix=no | |
11708 | need_version=no | |
11709 | hardcode_into_libs=yes | |
11710 | if test "$host_cpu" = ia64; then | |
11711 | # AIX 5 supports IA64 | |
11712 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11713 | shlibpath_var=LD_LIBRARY_PATH | |
11714 | else | |
11715 | # With GCC up to 2.95.x, collect2 would create an import file | |
11716 | # for dependence libraries. The import file would start with | |
11717 | # the line `#! .'. This would cause the generated library to | |
11718 | # depend on `.', always an invalid library. This was fixed in | |
11719 | # development snapshots of GCC prior to 3.0. | |
11720 | case $host_os in | |
11721 | aix4 | aix4.[01] | aix4.[01].*) | |
11722 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11723 | echo ' yes ' | |
11724 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11725 | : | |
11726 | else | |
11727 | can_build_shared=no | |
11728 | fi | |
11729 | ;; | |
11730 | esac | |
11731 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11732 | # soname into executable. Probably we can add versioning support to | |
11733 | # collect2, so additional links can be useful in future. | |
11734 | if test "$aix_use_runtimelinking" = yes; then | |
11735 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11736 | # instead of lib<name>.a to let people know that these are not | |
11737 | # typical AIX shared libraries. | |
11738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11739 | else | |
11740 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11741 | # and later when we are not doing run time linking. | |
11742 | library_names_spec='${libname}${release}.a $libname.a' | |
11743 | soname_spec='${libname}${release}${shared_ext}$major' | |
11744 | fi | |
11745 | shlibpath_var=LIBPATH | |
11746 | fi | |
11747 | ;; | |
11748 | ||
11749 | amigaos*) | |
d58dead8 PG |
11750 | case $host_cpu in |
11751 | powerpc) | |
11752 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11753 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11755 | ;; | |
11756 | m68k) | |
1cf3d07d SE |
11757 | library_names_spec='$libname.ixlibrary $libname.a' |
11758 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 11759 | 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 |
11760 | ;; |
11761 | esac | |
1cf3d07d SE |
11762 | ;; |
11763 | ||
11764 | beos*) | |
11765 | library_names_spec='${libname}${shared_ext}' | |
11766 | dynamic_linker="$host_os ld.so" | |
11767 | shlibpath_var=LIBRARY_PATH | |
11768 | ;; | |
11769 | ||
11770 | bsdi[45]*) | |
11771 | version_type=linux | |
11772 | need_version=no | |
11773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11774 | soname_spec='${libname}${release}${shared_ext}$major' | |
11775 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11776 | shlibpath_var=LD_LIBRARY_PATH | |
11777 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11778 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11779 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11780 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11781 | # libtool to hard-code these into programs | |
11782 | ;; | |
11783 | ||
d58dead8 | 11784 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11785 | version_type=windows |
11786 | shrext_cmds=".dll" | |
11787 | need_version=no | |
11788 | need_lib_prefix=no | |
11789 | ||
d58dead8 PG |
11790 | case $GCC,$host_os in |
11791 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
11792 | library_names_spec='$libname.dll.a' |
11793 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11794 | postinstall_cmds='base_file=`basename \${file}`~ | |
11795 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11796 | dldir=$destdir/`dirname \$dlpath`~ | |
11797 | test -d \$dldir || mkdir -p \$dldir~ | |
11798 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11799 | chmod a+x \$dldir/$dlname~ | |
11800 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11801 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11802 | fi' | |
11803 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11804 | dlpath=$dir/\$dldll~ | |
11805 | $RM \$dlpath' | |
11806 | shlibpath_overrides_runpath=yes | |
11807 | ||
11808 | case $host_os in | |
11809 | cygwin*) | |
11810 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11811 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
11812 | |
11813 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 11814 | ;; |
d58dead8 | 11815 | mingw* | cegcc*) |
1cf3d07d SE |
11816 | # MinGW DLLs use traditional 'lib' prefix |
11817 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
11818 | ;; |
11819 | pw32*) | |
11820 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11821 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11822 | ;; | |
11823 | esac | |
11824 | ;; | |
11825 | ||
11826 | *) | |
11827 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11828 | ;; | |
11829 | esac | |
11830 | dynamic_linker='Win32 ld.exe' | |
11831 | # FIXME: first we should search . and the directory the executable is in | |
11832 | shlibpath_var=PATH | |
11833 | ;; | |
11834 | ||
11835 | darwin* | rhapsody*) | |
11836 | dynamic_linker="$host_os dyld" | |
11837 | version_type=darwin | |
11838 | need_lib_prefix=no | |
11839 | need_version=no | |
11840 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11841 | soname_spec='${libname}${release}${major}$shared_ext' | |
11842 | shlibpath_overrides_runpath=yes | |
11843 | shlibpath_var=DYLD_LIBRARY_PATH | |
11844 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11845 | ||
11846 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11847 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11848 | ;; | |
11849 | ||
11850 | dgux*) | |
11851 | version_type=linux | |
11852 | need_lib_prefix=no | |
11853 | need_version=no | |
11854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11855 | soname_spec='${libname}${release}${shared_ext}$major' | |
11856 | shlibpath_var=LD_LIBRARY_PATH | |
11857 | ;; | |
11858 | ||
1cf3d07d SE |
11859 | freebsd* | dragonfly*) |
11860 | # DragonFly does not have aout. When/if they implement a new | |
11861 | # versioning mechanism, adjust this. | |
11862 | if test -x /usr/bin/objformat; then | |
11863 | objformat=`/usr/bin/objformat` | |
11864 | else | |
11865 | case $host_os in | |
c6084f68 | 11866 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
11867 | *) objformat=elf ;; |
11868 | esac | |
11869 | fi | |
11870 | version_type=freebsd-$objformat | |
11871 | case $version_type in | |
11872 | freebsd-elf*) | |
11873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11874 | need_version=no | |
11875 | need_lib_prefix=no | |
11876 | ;; | |
11877 | freebsd-*) | |
11878 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11879 | need_version=yes | |
11880 | ;; | |
11881 | esac | |
11882 | shlibpath_var=LD_LIBRARY_PATH | |
11883 | case $host_os in | |
c6084f68 | 11884 | freebsd2.*) |
1cf3d07d SE |
11885 | shlibpath_overrides_runpath=yes |
11886 | ;; | |
11887 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11888 | shlibpath_overrides_runpath=yes | |
11889 | hardcode_into_libs=yes | |
11890 | ;; | |
11891 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11892 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11893 | shlibpath_overrides_runpath=no | |
11894 | hardcode_into_libs=yes | |
11895 | ;; | |
11896 | *) # from 4.6 on, and DragonFly | |
11897 | shlibpath_overrides_runpath=yes | |
11898 | hardcode_into_libs=yes | |
11899 | ;; | |
11900 | esac | |
11901 | ;; | |
11902 | ||
43e02a8a RW |
11903 | haiku*) |
11904 | version_type=linux | |
11905 | need_lib_prefix=no | |
11906 | need_version=no | |
11907 | dynamic_linker="$host_os runtime_loader" | |
11908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11909 | soname_spec='${libname}${release}${shared_ext}$major' | |
11910 | shlibpath_var=LIBRARY_PATH | |
11911 | shlibpath_overrides_runpath=yes | |
11912 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11913 | hardcode_into_libs=yes | |
11914 | ;; | |
11915 | ||
1cf3d07d SE |
11916 | hpux9* | hpux10* | hpux11*) |
11917 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11918 | # link against other versions. | |
11919 | version_type=sunos | |
11920 | need_lib_prefix=no | |
11921 | need_version=no | |
11922 | case $host_cpu in | |
11923 | ia64*) | |
11924 | shrext_cmds='.so' | |
11925 | hardcode_into_libs=yes | |
11926 | dynamic_linker="$host_os dld.so" | |
11927 | shlibpath_var=LD_LIBRARY_PATH | |
11928 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11929 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11930 | soname_spec='${libname}${release}${shared_ext}$major' | |
11931 | if test "X$HPUX_IA64_MODE" = X32; then | |
11932 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11933 | else | |
11934 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11935 | fi | |
11936 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11937 | ;; | |
11938 | hppa*64*) | |
11939 | shrext_cmds='.sl' | |
11940 | hardcode_into_libs=yes | |
11941 | dynamic_linker="$host_os dld.sl" | |
11942 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11943 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11945 | soname_spec='${libname}${release}${shared_ext}$major' | |
11946 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11947 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11948 | ;; | |
11949 | *) | |
11950 | shrext_cmds='.sl' | |
11951 | dynamic_linker="$host_os dld.sl" | |
11952 | shlibpath_var=SHLIB_PATH | |
11953 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11955 | soname_spec='${libname}${release}${shared_ext}$major' | |
11956 | ;; | |
11957 | esac | |
43e02a8a | 11958 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 11959 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
11960 | # or fails outright, so override atomically: |
11961 | install_override_mode=555 | |
1cf3d07d SE |
11962 | ;; |
11963 | ||
11964 | interix[3-9]*) | |
11965 | version_type=linux | |
11966 | need_lib_prefix=no | |
11967 | need_version=no | |
11968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11969 | soname_spec='${libname}${release}${shared_ext}$major' | |
11970 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11971 | shlibpath_var=LD_LIBRARY_PATH | |
11972 | shlibpath_overrides_runpath=no | |
11973 | hardcode_into_libs=yes | |
11974 | ;; | |
11975 | ||
11976 | irix5* | irix6* | nonstopux*) | |
11977 | case $host_os in | |
11978 | nonstopux*) version_type=nonstopux ;; | |
11979 | *) | |
11980 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11981 | version_type=linux | |
11982 | else | |
11983 | version_type=irix | |
11984 | fi ;; | |
11985 | esac | |
11986 | need_lib_prefix=no | |
11987 | need_version=no | |
11988 | soname_spec='${libname}${release}${shared_ext}$major' | |
11989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11990 | case $host_os in | |
11991 | irix5* | nonstopux*) | |
11992 | libsuff= shlibsuff= | |
11993 | ;; | |
11994 | *) | |
11995 | case $LD in # libtool.m4 will add one of these switches to LD | |
11996 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11997 | libsuff= shlibsuff= libmagic=32-bit;; | |
11998 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11999 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12000 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12001 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12002 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12003 | esac | |
12004 | ;; | |
12005 | esac | |
12006 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12007 | shlibpath_overrides_runpath=no | |
12008 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12009 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12010 | hardcode_into_libs=yes | |
12011 | ;; | |
12012 | ||
12013 | # No shared lib support for Linux oldld, aout, or coff. | |
12014 | linux*oldld* | linux*aout* | linux*coff*) | |
12015 | dynamic_linker=no | |
12016 | ;; | |
12017 | ||
12018 | # This must be Linux ELF. | |
e9085da5 MR |
12019 | |
12020 | # uclinux* changes (here and below) have been submitted to the libtool | |
12021 | # project, but have not yet been accepted: they are GCC-local changes | |
12022 | # for the time being. (See | |
12023 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 12024 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
12025 | version_type=linux |
12026 | need_lib_prefix=no | |
12027 | need_version=no | |
12028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12029 | soname_spec='${libname}${release}${shared_ext}$major' | |
12030 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12031 | shlibpath_var=LD_LIBRARY_PATH | |
12032 | shlibpath_overrides_runpath=no | |
baafc534 | 12033 | |
1cf3d07d | 12034 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 12035 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 12036 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
12037 | else |
12038 | lt_cv_shlibpath_overrides_runpath=no | |
12039 | save_LDFLAGS=$LDFLAGS | |
12040 | save_libdir=$libdir | |
12041 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12042 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12043 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12044 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12045 | fi |
5213506e | 12046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12047 | /* end confdefs.h. */ |
12048 | ||
12049 | int | |
12050 | main () | |
12051 | { | |
12052 | ||
12053 | ; | |
12054 | return 0; | |
12055 | } | |
12056 | _ACEOF | |
5213506e RW |
12057 | if ac_fn_c_try_link "$LINENO"; then : |
12058 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12059 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 12060 | fi |
1cf3d07d | 12061 | fi |
5213506e RW |
12062 | rm -f core conftest.err conftest.$ac_objext \ |
12063 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12064 | LDFLAGS=$save_LDFLAGS |
12065 | libdir=$save_libdir | |
12066 | ||
12067 | fi | |
12068 | ||
12069 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
12070 | |
12071 | # This implies no fast_install, which is unacceptable. | |
12072 | # Some rework will be needed to allow for fast_install | |
12073 | # before this can be enabled. | |
12074 | hardcode_into_libs=yes | |
12075 | ||
12076 | # Append ld.so.conf contents to the search path | |
12077 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12078 | 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 |
12079 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12080 | fi | |
12081 | ||
12082 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12083 | # powerpc, because MkLinux only supported shared libraries with the | |
12084 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12085 | # most powerpc-linux boxes support dynamic linking these days and | |
12086 | # people can always --disable-shared, the test was removed, and we | |
12087 | # assume the GNU/Linux dynamic linker is in use. | |
12088 | dynamic_linker='GNU/Linux ld.so' | |
12089 | ;; | |
12090 | ||
12091 | netbsd*) | |
12092 | version_type=sunos | |
12093 | need_lib_prefix=no | |
12094 | need_version=no | |
12095 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12097 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12098 | dynamic_linker='NetBSD (a.out) ld.so' | |
12099 | else | |
12100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12101 | soname_spec='${libname}${release}${shared_ext}$major' | |
12102 | dynamic_linker='NetBSD ld.elf_so' | |
12103 | fi | |
12104 | shlibpath_var=LD_LIBRARY_PATH | |
12105 | shlibpath_overrides_runpath=yes | |
12106 | hardcode_into_libs=yes | |
12107 | ;; | |
12108 | ||
12109 | newsos6) | |
12110 | version_type=linux | |
12111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12112 | shlibpath_var=LD_LIBRARY_PATH | |
12113 | shlibpath_overrides_runpath=yes | |
12114 | ;; | |
12115 | ||
12116 | *nto* | *qnx*) | |
12117 | version_type=qnx | |
12118 | need_lib_prefix=no | |
12119 | need_version=no | |
12120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12121 | soname_spec='${libname}${release}${shared_ext}$major' | |
12122 | shlibpath_var=LD_LIBRARY_PATH | |
12123 | shlibpath_overrides_runpath=no | |
12124 | hardcode_into_libs=yes | |
12125 | dynamic_linker='ldqnx.so' | |
12126 | ;; | |
12127 | ||
12128 | openbsd*) | |
12129 | version_type=sunos | |
12130 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12131 | need_lib_prefix=no | |
12132 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12133 | case $host_os in | |
12134 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12135 | *) need_version=no ;; | |
12136 | esac | |
12137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12138 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12139 | shlibpath_var=LD_LIBRARY_PATH | |
12140 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12141 | case $host_os in | |
12142 | openbsd2.[89] | openbsd2.[89].*) | |
12143 | shlibpath_overrides_runpath=no | |
12144 | ;; | |
12145 | *) | |
12146 | shlibpath_overrides_runpath=yes | |
12147 | ;; | |
12148 | esac | |
12149 | else | |
12150 | shlibpath_overrides_runpath=yes | |
12151 | fi | |
12152 | ;; | |
12153 | ||
12154 | os2*) | |
12155 | libname_spec='$name' | |
12156 | shrext_cmds=".dll" | |
12157 | need_lib_prefix=no | |
12158 | library_names_spec='$libname${shared_ext} $libname.a' | |
12159 | dynamic_linker='OS/2 ld.exe' | |
12160 | shlibpath_var=LIBPATH | |
12161 | ;; | |
12162 | ||
12163 | osf3* | osf4* | osf5*) | |
12164 | version_type=osf | |
12165 | need_lib_prefix=no | |
12166 | need_version=no | |
12167 | soname_spec='${libname}${release}${shared_ext}$major' | |
12168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12169 | shlibpath_var=LD_LIBRARY_PATH | |
12170 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12171 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12172 | ;; | |
12173 | ||
12174 | rdos*) | |
12175 | dynamic_linker=no | |
12176 | ;; | |
12177 | ||
12178 | solaris*) | |
12179 | version_type=linux | |
12180 | need_lib_prefix=no | |
12181 | need_version=no | |
12182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12183 | soname_spec='${libname}${release}${shared_ext}$major' | |
12184 | shlibpath_var=LD_LIBRARY_PATH | |
12185 | shlibpath_overrides_runpath=yes | |
12186 | hardcode_into_libs=yes | |
12187 | # ldd complains unless libraries are executable | |
12188 | postinstall_cmds='chmod +x $lib' | |
12189 | ;; | |
12190 | ||
12191 | sunos4*) | |
12192 | version_type=sunos | |
12193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12194 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12195 | shlibpath_var=LD_LIBRARY_PATH | |
12196 | shlibpath_overrides_runpath=yes | |
12197 | if test "$with_gnu_ld" = yes; then | |
12198 | need_lib_prefix=no | |
12199 | fi | |
12200 | need_version=yes | |
12201 | ;; | |
12202 | ||
12203 | sysv4 | sysv4.3*) | |
12204 | version_type=linux | |
12205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12206 | soname_spec='${libname}${release}${shared_ext}$major' | |
12207 | shlibpath_var=LD_LIBRARY_PATH | |
12208 | case $host_vendor in | |
12209 | sni) | |
12210 | shlibpath_overrides_runpath=no | |
12211 | need_lib_prefix=no | |
12212 | runpath_var=LD_RUN_PATH | |
12213 | ;; | |
12214 | siemens) | |
12215 | need_lib_prefix=no | |
12216 | ;; | |
12217 | motorola) | |
12218 | need_lib_prefix=no | |
12219 | need_version=no | |
12220 | shlibpath_overrides_runpath=no | |
12221 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12222 | ;; | |
12223 | esac | |
12224 | ;; | |
12225 | ||
12226 | sysv4*MP*) | |
12227 | if test -d /usr/nec ;then | |
12228 | version_type=linux | |
12229 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12230 | soname_spec='$libname${shared_ext}.$major' | |
12231 | shlibpath_var=LD_LIBRARY_PATH | |
12232 | fi | |
12233 | ;; | |
12234 | ||
12235 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12236 | version_type=freebsd-elf | |
12237 | need_lib_prefix=no | |
12238 | need_version=no | |
12239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12240 | soname_spec='${libname}${release}${shared_ext}$major' | |
12241 | shlibpath_var=LD_LIBRARY_PATH | |
12242 | shlibpath_overrides_runpath=yes | |
12243 | hardcode_into_libs=yes | |
12244 | if test "$with_gnu_ld" = yes; then | |
12245 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12246 | else | |
12247 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12248 | case $host_os in | |
12249 | sco3.2v5*) | |
12250 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12251 | ;; | |
12252 | esac | |
12253 | fi | |
12254 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12255 | ;; | |
12256 | ||
12257 | tpf*) | |
12258 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12259 | version_type=linux | |
12260 | need_lib_prefix=no | |
12261 | need_version=no | |
d58dead8 | 12262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12263 | shlibpath_var=LD_LIBRARY_PATH |
12264 | shlibpath_overrides_runpath=no | |
12265 | hardcode_into_libs=yes | |
12266 | ;; | |
12267 | ||
12268 | uts4*) | |
12269 | version_type=linux | |
12270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12271 | soname_spec='${libname}${release}${shared_ext}$major' | |
12272 | shlibpath_var=LD_LIBRARY_PATH | |
12273 | ;; | |
12274 | ||
12275 | *) | |
12276 | dynamic_linker=no | |
12277 | ;; | |
12278 | esac | |
5213506e RW |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12280 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
12281 | test "$dynamic_linker" = no && can_build_shared=no |
12282 | ||
12283 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12284 | if test "$GCC" = yes; then | |
12285 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12286 | fi | |
12287 | ||
d58dead8 PG |
12288 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12289 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12290 | fi | |
12291 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12292 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12293 | fi | |
12294 | ||
1cf3d07d SE |
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 | ||
12366 | ||
12367 | ||
12368 | ||
12369 | ||
12370 | ||
12371 | ||
12372 | ||
12373 | ||
12374 | ||
43e02a8a RW |
12375 | |
12376 | ||
12377 | ||
12378 | ||
12379 | ||
1cf3d07d SE |
12380 | |
12381 | ||
12382 | ||
12383 | ||
12384 | ||
12385 | ||
5213506e RW |
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12387 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
12388 | hardcode_action= |
12389 | if test -n "$hardcode_libdir_flag_spec" || | |
12390 | test -n "$runpath_var" || | |
12391 | test "X$hardcode_automatic" = "Xyes" ; then | |
12392 | ||
12393 | # We can hardcode non-existent directories. | |
12394 | if test "$hardcode_direct" != no && | |
12395 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12396 | # have to relink, otherwise we might link with an installed library | |
12397 | # when we should be linking with a yet-to-be-installed one | |
12398 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12399 | test "$hardcode_minus_L" != no; then | |
12400 | # Linking always hardcodes the temporary library directory. | |
12401 | hardcode_action=relink | |
12402 | else | |
12403 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12404 | hardcode_action=immediate | |
12405 | fi | |
12406 | else | |
12407 | # We cannot hardcode anything, or else we can only hardcode existing | |
12408 | # directories. | |
12409 | hardcode_action=unsupported | |
12410 | fi | |
5213506e RW |
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12412 | $as_echo "$hardcode_action" >&6; } | |
1cf3d07d SE |
12413 | |
12414 | if test "$hardcode_action" = relink || | |
12415 | test "$inherit_rpath" = yes; then | |
12416 | # Fast installation is not supported | |
12417 | enable_fast_install=no | |
12418 | elif test "$shlibpath_overrides_runpath" = yes || | |
12419 | test "$enable_shared" = no; then | |
12420 | # Fast installation is not necessary | |
12421 | enable_fast_install=needless | |
12422 | fi | |
12423 | ||
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | ||
12429 | if test "x$enable_dlopen" != xyes; then | |
12430 | enable_dlopen=unknown | |
12431 | enable_dlopen_self=unknown | |
12432 | enable_dlopen_self_static=unknown | |
12433 | else | |
12434 | lt_cv_dlopen=no | |
12435 | lt_cv_dlopen_libs= | |
12436 | ||
12437 | case $host_os in | |
12438 | beos*) | |
12439 | lt_cv_dlopen="load_add_on" | |
12440 | lt_cv_dlopen_libs= | |
12441 | lt_cv_dlopen_self=yes | |
12442 | ;; | |
12443 | ||
d58dead8 | 12444 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12445 | lt_cv_dlopen="LoadLibrary" |
12446 | lt_cv_dlopen_libs= | |
12447 | ;; | |
12448 | ||
12449 | cygwin*) | |
12450 | lt_cv_dlopen="dlopen" | |
12451 | lt_cv_dlopen_libs= | |
12452 | ;; | |
12453 | ||
12454 | darwin*) | |
12455 | # if libdl is installed we need to link against it | |
5213506e RW |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12457 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12458 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12459 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12460 | else |
12461 | ac_check_lib_save_LIBS=$LIBS | |
12462 | LIBS="-ldl $LIBS" | |
12463 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12464 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12465 | fi |
5213506e | 12466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12467 | /* end confdefs.h. */ |
12468 | ||
5213506e RW |
12469 | /* Override any GCC internal prototype to avoid an error. |
12470 | Use char because int might match the return type of a GCC | |
12471 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12472 | #ifdef __cplusplus |
12473 | extern "C" | |
12474 | #endif | |
1cf3d07d SE |
12475 | char dlopen (); |
12476 | int | |
12477 | main () | |
12478 | { | |
5213506e | 12479 | return dlopen (); |
1cf3d07d SE |
12480 | ; |
12481 | return 0; | |
12482 | } | |
12483 | _ACEOF | |
5213506e | 12484 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12485 | ac_cv_lib_dl_dlopen=yes |
12486 | else | |
5213506e | 12487 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12488 | fi |
5213506e RW |
12489 | rm -f core conftest.err conftest.$ac_objext \ |
12490 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12491 | LIBS=$ac_check_lib_save_LIBS |
12492 | fi | |
5213506e RW |
12493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12494 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12495 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12496 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12497 | else | |
12498 | ||
12499 | lt_cv_dlopen="dyld" | |
12500 | lt_cv_dlopen_libs= | |
12501 | lt_cv_dlopen_self=yes | |
12502 | ||
12503 | fi | |
12504 | ||
12505 | ;; | |
12506 | ||
12507 | *) | |
5213506e | 12508 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
22e05272 | 12509 | if test "x$ac_cv_func_shl_load" = xyes; then : |
1cf3d07d SE |
12510 | lt_cv_dlopen="shl_load" |
12511 | else | |
5213506e RW |
12512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12513 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12514 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
5213506e | 12515 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12516 | else |
12517 | ac_check_lib_save_LIBS=$LIBS | |
12518 | LIBS="-ldld $LIBS" | |
12519 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12520 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12521 | fi |
5213506e | 12522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12523 | /* end confdefs.h. */ |
12524 | ||
5213506e RW |
12525 | /* Override any GCC internal prototype to avoid an error. |
12526 | Use char because int might match the return type of a GCC | |
12527 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12528 | #ifdef __cplusplus |
12529 | extern "C" | |
12530 | #endif | |
1cf3d07d SE |
12531 | char shl_load (); |
12532 | int | |
12533 | main () | |
12534 | { | |
5213506e | 12535 | return shl_load (); |
1cf3d07d SE |
12536 | ; |
12537 | return 0; | |
12538 | } | |
12539 | _ACEOF | |
5213506e | 12540 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12541 | ac_cv_lib_dld_shl_load=yes |
12542 | else | |
5213506e | 12543 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 12544 | fi |
5213506e RW |
12545 | rm -f core conftest.err conftest.$ac_objext \ |
12546 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12547 | LIBS=$ac_check_lib_save_LIBS |
12548 | fi | |
5213506e RW |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12550 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12551 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d58dead8 | 12552 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d | 12553 | else |
5213506e | 12554 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
22e05272 | 12555 | if test "x$ac_cv_func_dlopen" = xyes; then : |
1cf3d07d SE |
12556 | lt_cv_dlopen="dlopen" |
12557 | else | |
5213506e RW |
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12559 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12560 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
5213506e | 12561 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12562 | else |
12563 | ac_check_lib_save_LIBS=$LIBS | |
12564 | LIBS="-ldl $LIBS" | |
12565 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12566 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12567 | fi |
5213506e | 12568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12569 | /* end confdefs.h. */ |
12570 | ||
5213506e RW |
12571 | /* Override any GCC internal prototype to avoid an error. |
12572 | Use char because int might match the return type of a GCC | |
12573 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12574 | #ifdef __cplusplus |
12575 | extern "C" | |
12576 | #endif | |
1cf3d07d SE |
12577 | char dlopen (); |
12578 | int | |
12579 | main () | |
12580 | { | |
5213506e | 12581 | return dlopen (); |
1cf3d07d SE |
12582 | ; |
12583 | return 0; | |
12584 | } | |
12585 | _ACEOF | |
5213506e | 12586 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12587 | ac_cv_lib_dl_dlopen=yes |
12588 | else | |
5213506e | 12589 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 12590 | fi |
5213506e RW |
12591 | rm -f core conftest.err conftest.$ac_objext \ |
12592 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12593 | LIBS=$ac_check_lib_save_LIBS |
12594 | fi | |
5213506e RW |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12596 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12597 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
1cf3d07d SE |
12598 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12599 | else | |
5213506e RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12601 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12602 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
5213506e | 12603 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12604 | else |
12605 | ac_check_lib_save_LIBS=$LIBS | |
12606 | LIBS="-lsvld $LIBS" | |
12607 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12608 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12609 | fi |
5213506e | 12610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12611 | /* end confdefs.h. */ |
12612 | ||
5213506e RW |
12613 | /* Override any GCC internal prototype to avoid an error. |
12614 | Use char because int might match the return type of a GCC | |
12615 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12616 | #ifdef __cplusplus |
12617 | extern "C" | |
12618 | #endif | |
1cf3d07d SE |
12619 | char dlopen (); |
12620 | int | |
12621 | main () | |
12622 | { | |
5213506e | 12623 | return dlopen (); |
1cf3d07d SE |
12624 | ; |
12625 | return 0; | |
12626 | } | |
12627 | _ACEOF | |
5213506e | 12628 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12629 | ac_cv_lib_svld_dlopen=yes |
12630 | else | |
5213506e | 12631 | ac_cv_lib_svld_dlopen=no |
1cf3d07d | 12632 | fi |
5213506e RW |
12633 | rm -f core conftest.err conftest.$ac_objext \ |
12634 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12635 | LIBS=$ac_check_lib_save_LIBS |
12636 | fi | |
5213506e RW |
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12638 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12639 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
1cf3d07d SE |
12640 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12641 | else | |
5213506e RW |
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12643 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12644 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
5213506e | 12645 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12646 | else |
12647 | ac_check_lib_save_LIBS=$LIBS | |
12648 | LIBS="-ldld $LIBS" | |
12649 | if test x$gcc_no_link = xyes; then | |
22e05272 | 12650 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 12651 | fi |
5213506e | 12652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
12653 | /* end confdefs.h. */ |
12654 | ||
5213506e RW |
12655 | /* Override any GCC internal prototype to avoid an error. |
12656 | Use char because int might match the return type of a GCC | |
12657 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
12658 | #ifdef __cplusplus |
12659 | extern "C" | |
12660 | #endif | |
1cf3d07d SE |
12661 | char dld_link (); |
12662 | int | |
12663 | main () | |
12664 | { | |
5213506e | 12665 | return dld_link (); |
1cf3d07d SE |
12666 | ; |
12667 | return 0; | |
12668 | } | |
12669 | _ACEOF | |
5213506e | 12670 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
12671 | ac_cv_lib_dld_dld_link=yes |
12672 | else | |
5213506e | 12673 | ac_cv_lib_dld_dld_link=no |
1cf3d07d | 12674 | fi |
5213506e RW |
12675 | rm -f core conftest.err conftest.$ac_objext \ |
12676 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
12677 | LIBS=$ac_check_lib_save_LIBS |
12678 | fi | |
5213506e RW |
12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12680 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12681 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d58dead8 | 12682 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
12683 | fi |
12684 | ||
12685 | ||
12686 | fi | |
12687 | ||
12688 | ||
12689 | fi | |
12690 | ||
12691 | ||
12692 | fi | |
12693 | ||
12694 | ||
12695 | fi | |
12696 | ||
12697 | ||
12698 | fi | |
12699 | ||
12700 | ;; | |
12701 | esac | |
12702 | ||
12703 | if test "x$lt_cv_dlopen" != xno; then | |
12704 | enable_dlopen=yes | |
12705 | else | |
12706 | enable_dlopen=no | |
12707 | fi | |
12708 | ||
12709 | case $lt_cv_dlopen in | |
12710 | dlopen) | |
12711 | save_CPPFLAGS="$CPPFLAGS" | |
12712 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12713 | ||
12714 | save_LDFLAGS="$LDFLAGS" | |
12715 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12716 | ||
12717 | save_LIBS="$LIBS" | |
12718 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12719 | ||
5213506e RW |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12721 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12722 | if ${lt_cv_dlopen_self+:} false; then : |
5213506e | 12723 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12724 | else |
12725 | if test "$cross_compiling" = yes; then : | |
12726 | lt_cv_dlopen_self=cross | |
12727 | else | |
12728 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12729 | lt_status=$lt_dlunknown | |
12730 | cat > conftest.$ac_ext <<_LT_EOF | |
9b025925 | 12731 | #line 12731 "configure" |
1cf3d07d SE |
12732 | #include "confdefs.h" |
12733 | ||
12734 | #if HAVE_DLFCN_H | |
12735 | #include <dlfcn.h> | |
12736 | #endif | |
12737 | ||
12738 | #include <stdio.h> | |
12739 | ||
12740 | #ifdef RTLD_GLOBAL | |
12741 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12742 | #else | |
12743 | # ifdef DL_GLOBAL | |
12744 | # define LT_DLGLOBAL DL_GLOBAL | |
12745 | # else | |
12746 | # define LT_DLGLOBAL 0 | |
12747 | # endif | |
12748 | #endif | |
12749 | ||
12750 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12751 | find out it does not work in some platform. */ | |
12752 | #ifndef LT_DLLAZY_OR_NOW | |
12753 | # ifdef RTLD_LAZY | |
12754 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12755 | # else | |
12756 | # ifdef DL_LAZY | |
12757 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12758 | # else | |
12759 | # ifdef RTLD_NOW | |
12760 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12761 | # else | |
12762 | # ifdef DL_NOW | |
12763 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12764 | # else | |
12765 | # define LT_DLLAZY_OR_NOW 0 | |
12766 | # endif | |
12767 | # endif | |
12768 | # endif | |
12769 | # endif | |
12770 | #endif | |
12771 | ||
43e02a8a RW |
12772 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12773 | correspondingly for the symbols needed. */ | |
12774 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12775 | void fnord () __attribute__((visibility("default"))); | |
12776 | #endif | |
12777 | ||
12778 | void fnord () { int i=42; } | |
1cf3d07d SE |
12779 | int main () |
12780 | { | |
12781 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12782 | int status = $lt_dlunknown; | |
12783 | ||
12784 | if (self) | |
12785 | { | |
12786 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12787 | else |
12788 | { | |
12789 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12790 | else puts (dlerror ()); | |
12791 | } | |
1cf3d07d SE |
12792 | /* dlclose (self); */ |
12793 | } | |
12794 | else | |
12795 | puts (dlerror ()); | |
12796 | ||
d58dead8 | 12797 | return status; |
1cf3d07d SE |
12798 | } |
12799 | _LT_EOF | |
5213506e | 12800 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12801 | (eval $ac_link) 2>&5 |
12802 | ac_status=$? | |
5213506e RW |
12803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12804 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12805 | (./conftest; exit; ) >&5 2>/dev/null |
12806 | lt_status=$? | |
12807 | case x$lt_status in | |
12808 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12809 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12810 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12811 | esac | |
12812 | else : | |
12813 | # compilation failed | |
12814 | lt_cv_dlopen_self=no | |
12815 | fi | |
12816 | fi | |
12817 | rm -fr conftest* | |
12818 | ||
12819 | ||
12820 | fi | |
5213506e RW |
12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12822 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
1cf3d07d SE |
12823 | |
12824 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12825 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12827 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12828 | if ${lt_cv_dlopen_self_static+:} false; then : |
5213506e | 12829 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
12830 | else |
12831 | if test "$cross_compiling" = yes; then : | |
12832 | lt_cv_dlopen_self_static=cross | |
12833 | else | |
12834 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12835 | lt_status=$lt_dlunknown | |
12836 | cat > conftest.$ac_ext <<_LT_EOF | |
9b025925 | 12837 | #line 12837 "configure" |
1cf3d07d SE |
12838 | #include "confdefs.h" |
12839 | ||
12840 | #if HAVE_DLFCN_H | |
12841 | #include <dlfcn.h> | |
12842 | #endif | |
12843 | ||
12844 | #include <stdio.h> | |
12845 | ||
12846 | #ifdef RTLD_GLOBAL | |
12847 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12848 | #else | |
12849 | # ifdef DL_GLOBAL | |
12850 | # define LT_DLGLOBAL DL_GLOBAL | |
12851 | # else | |
12852 | # define LT_DLGLOBAL 0 | |
12853 | # endif | |
12854 | #endif | |
12855 | ||
12856 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12857 | find out it does not work in some platform. */ | |
12858 | #ifndef LT_DLLAZY_OR_NOW | |
12859 | # ifdef RTLD_LAZY | |
12860 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12861 | # else | |
12862 | # ifdef DL_LAZY | |
12863 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12864 | # else | |
12865 | # ifdef RTLD_NOW | |
12866 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12867 | # else | |
12868 | # ifdef DL_NOW | |
12869 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12870 | # else | |
12871 | # define LT_DLLAZY_OR_NOW 0 | |
12872 | # endif | |
12873 | # endif | |
12874 | # endif | |
12875 | # endif | |
12876 | #endif | |
12877 | ||
43e02a8a RW |
12878 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12879 | correspondingly for the symbols needed. */ | |
12880 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12881 | void fnord () __attribute__((visibility("default"))); | |
12882 | #endif | |
12883 | ||
12884 | void fnord () { int i=42; } | |
1cf3d07d SE |
12885 | int main () |
12886 | { | |
12887 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12888 | int status = $lt_dlunknown; | |
12889 | ||
12890 | if (self) | |
12891 | { | |
12892 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
12893 | else |
12894 | { | |
12895 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12896 | else puts (dlerror ()); | |
12897 | } | |
1cf3d07d SE |
12898 | /* dlclose (self); */ |
12899 | } | |
12900 | else | |
12901 | puts (dlerror ()); | |
12902 | ||
d58dead8 | 12903 | return status; |
1cf3d07d SE |
12904 | } |
12905 | _LT_EOF | |
5213506e | 12906 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d SE |
12907 | (eval $ac_link) 2>&5 |
12908 | ac_status=$? | |
5213506e RW |
12909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12910 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
12911 | (./conftest; exit; ) >&5 2>/dev/null |
12912 | lt_status=$? | |
12913 | case x$lt_status in | |
12914 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12915 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12916 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12917 | esac | |
12918 | else : | |
12919 | # compilation failed | |
12920 | lt_cv_dlopen_self_static=no | |
12921 | fi | |
12922 | fi | |
12923 | rm -fr conftest* | |
12924 | ||
12925 | ||
12926 | fi | |
5213506e RW |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12928 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d SE |
12929 | fi |
12930 | ||
12931 | CPPFLAGS="$save_CPPFLAGS" | |
12932 | LDFLAGS="$save_LDFLAGS" | |
12933 | LIBS="$save_LIBS" | |
12934 | ;; | |
12935 | esac | |
12936 | ||
12937 | case $lt_cv_dlopen_self in | |
12938 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12939 | *) enable_dlopen_self=unknown ;; | |
12940 | esac | |
12941 | ||
12942 | case $lt_cv_dlopen_self_static in | |
12943 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12944 | *) enable_dlopen_self_static=unknown ;; | |
12945 | esac | |
12946 | fi | |
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | ||
12956 | ||
12957 | ||
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | striplib= | |
12965 | old_striplib= | |
5213506e RW |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12967 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
12968 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12969 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12970 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12972 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
12973 | else |
12974 | # FIXME - insert some real tests, host_os isn't really good enough | |
12975 | case $host_os in | |
12976 | darwin*) | |
12977 | if test -n "$STRIP" ; then | |
12978 | striplib="$STRIP -x" | |
12979 | old_striplib="$STRIP -S" | |
5213506e RW |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12981 | $as_echo "yes" >&6; } | |
1cf3d07d | 12982 | else |
5213506e RW |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12984 | $as_echo "no" >&6; } | |
1cf3d07d SE |
12985 | fi |
12986 | ;; | |
12987 | *) | |
5213506e RW |
12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12989 | $as_echo "no" >&6; } | |
1cf3d07d SE |
12990 | ;; |
12991 | esac | |
12992 | fi | |
12993 | ||
12994 | ||
12995 | ||
12996 | ||
12997 | ||
12998 | ||
12999 | ||
13000 | ||
13001 | ||
13002 | ||
13003 | ||
13004 | ||
43e02a8a RW |
13005 | # Report which library types will actually be built |
13006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13007 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13009 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13010 | |
43e02a8a RW |
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13012 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13013 | test "$can_build_shared" = "no" && enable_shared=no | |
1cf3d07d | 13014 | |
43e02a8a RW |
13015 | # On AIX, shared libraries and static libraries use the same namespace, and |
13016 | # are all built from PIC. | |
13017 | case $host_os in | |
13018 | aix3*) | |
13019 | test "$enable_shared" = yes && enable_static=no | |
13020 | if test -n "$RANLIB"; then | |
13021 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13022 | postinstall_cmds='$RANLIB $lib' | |
13023 | fi | |
13024 | ;; | |
1cf3d07d | 13025 | |
43e02a8a RW |
13026 | aix[4-9]*) |
13027 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13028 | test "$enable_shared" = yes && enable_static=no | |
13029 | fi | |
13030 | ;; | |
13031 | esac | |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13033 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13034 | |
43e02a8a RW |
13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13036 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13037 | # Make sure either enable_shared or enable_static is yes. | |
13038 | test "$enable_shared" = yes || enable_static=yes | |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13040 | $as_echo "$enable_static" >&6; } | |
1cf3d07d | 13041 | |
1cf3d07d | 13042 | |
1cf3d07d | 13043 | |
1cf3d07d SE |
13044 | |
13045 | fi | |
1cf3d07d SE |
13046 | ac_ext=c |
13047 | ac_cpp='$CPP $CPPFLAGS' | |
13048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13051 | ||
43e02a8a RW |
13052 | CC="$lt_save_CC" |
13053 | ||
13054 | ||
13055 | ||
13056 | ||
13057 | ||
13058 | ||
13059 | ||
13060 | ||
13061 | ||
13062 | ||
13063 | ||
13064 | ||
13065 | ||
13066 | ac_config_commands="$ac_config_commands libtool" | |
13067 | ||
13068 | ||
13069 | ||
13070 | ||
13071 | # Only expand once: | |
13072 | ||
13073 | ||
9b025925 IS |
13074 | LIBM= |
13075 | case $host in | |
13076 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
13077 | # These system don't have libm, or don't need it | |
13078 | ;; | |
13079 | *-ncr-sysv4.3*) | |
13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 | |
13081 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13082 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : | |
13083 | $as_echo_n "(cached) " >&6 | |
13084 | else | |
13085 | ac_check_lib_save_LIBS=$LIBS | |
13086 | LIBS="-lmw $LIBS" | |
13087 | if test x$gcc_no_link = xyes; then | |
13088 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13089 | fi | |
13090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13091 | /* end confdefs.h. */ | |
13092 | ||
13093 | /* Override any GCC internal prototype to avoid an error. | |
13094 | Use char because int might match the return type of a GCC | |
13095 | builtin and then its argument prototype would still apply. */ | |
13096 | #ifdef __cplusplus | |
13097 | extern "C" | |
13098 | #endif | |
13099 | char _mwvalidcheckl (); | |
13100 | int | |
13101 | main () | |
13102 | { | |
13103 | return _mwvalidcheckl (); | |
13104 | ; | |
13105 | return 0; | |
13106 | } | |
13107 | _ACEOF | |
13108 | if ac_fn_c_try_link "$LINENO"; then : | |
13109 | ac_cv_lib_mw__mwvalidcheckl=yes | |
13110 | else | |
13111 | ac_cv_lib_mw__mwvalidcheckl=no | |
13112 | fi | |
13113 | rm -f core conftest.err conftest.$ac_objext \ | |
13114 | conftest$ac_exeext conftest.$ac_ext | |
13115 | LIBS=$ac_check_lib_save_LIBS | |
13116 | fi | |
13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
13118 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13119 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : | |
13120 | LIBM="-lmw" | |
13121 | fi | |
13122 | ||
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13124 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13125 | if ${ac_cv_lib_m_cos+:} false; then : | |
13126 | $as_echo_n "(cached) " >&6 | |
13127 | else | |
13128 | ac_check_lib_save_LIBS=$LIBS | |
13129 | LIBS="-lm $LIBS" | |
13130 | if test x$gcc_no_link = xyes; then | |
13131 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13132 | fi | |
13133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13134 | /* end confdefs.h. */ | |
13135 | ||
13136 | /* Override any GCC internal prototype to avoid an error. | |
13137 | Use char because int might match the return type of a GCC | |
13138 | builtin and then its argument prototype would still apply. */ | |
13139 | #ifdef __cplusplus | |
13140 | extern "C" | |
13141 | #endif | |
13142 | char cos (); | |
13143 | int | |
13144 | main () | |
13145 | { | |
13146 | return cos (); | |
13147 | ; | |
13148 | return 0; | |
13149 | } | |
13150 | _ACEOF | |
13151 | if ac_fn_c_try_link "$LINENO"; then : | |
13152 | ac_cv_lib_m_cos=yes | |
13153 | else | |
13154 | ac_cv_lib_m_cos=no | |
13155 | fi | |
13156 | rm -f core conftest.err conftest.$ac_objext \ | |
13157 | conftest$ac_exeext conftest.$ac_ext | |
13158 | LIBS=$ac_check_lib_save_LIBS | |
13159 | fi | |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13161 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13162 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13163 | LIBM="$LIBM -lm" | |
13164 | fi | |
13165 | ||
13166 | ;; | |
13167 | *) | |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13169 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13170 | if ${ac_cv_lib_m_cos+:} false; then : | |
13171 | $as_echo_n "(cached) " >&6 | |
13172 | else | |
13173 | ac_check_lib_save_LIBS=$LIBS | |
13174 | LIBS="-lm $LIBS" | |
13175 | if test x$gcc_no_link = xyes; then | |
13176 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13177 | fi | |
13178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13179 | /* end confdefs.h. */ | |
13180 | ||
13181 | /* Override any GCC internal prototype to avoid an error. | |
13182 | Use char because int might match the return type of a GCC | |
13183 | builtin and then its argument prototype would still apply. */ | |
13184 | #ifdef __cplusplus | |
13185 | extern "C" | |
13186 | #endif | |
13187 | char cos (); | |
13188 | int | |
13189 | main () | |
13190 | { | |
13191 | return cos (); | |
13192 | ; | |
13193 | return 0; | |
13194 | } | |
13195 | _ACEOF | |
13196 | if ac_fn_c_try_link "$LINENO"; then : | |
13197 | ac_cv_lib_m_cos=yes | |
13198 | else | |
13199 | ac_cv_lib_m_cos=no | |
13200 | fi | |
13201 | rm -f core conftest.err conftest.$ac_objext \ | |
13202 | conftest$ac_exeext conftest.$ac_ext | |
13203 | LIBS=$ac_check_lib_save_LIBS | |
13204 | fi | |
13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13206 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13207 | if test "x$ac_cv_lib_m_cos" = xyes; then : | |
13208 | LIBM="-lm" | |
13209 | fi | |
13210 | ||
13211 | ;; | |
13212 | esac | |
13213 | ||
13214 | ||
43e02a8a RW |
13215 | |
13216 | ||
7de6ba7a DK |
13217 | |
13218 | case $host in | |
13219 | *-cygwin* | *-mingw*) | |
13220 | # 'host' will be top-level target in the case of a target lib, | |
13221 | # we must compare to with_cross_host to decide if this is a native | |
13222 | # or cross-compiler and select where to install dlls appropriately. | |
13223 | if test -n "$with_cross_host" && | |
13224 | test x"$with_cross_host" != x"no"; then | |
13225 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13226 | else | |
13227 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13228 | fi | |
13229 | ;; | |
13230 | *) | |
13231 | lt_host_flags= | |
13232 | ;; | |
13233 | esac | |
13234 | ||
13235 | ||
13236 | ||
13237 | ||
13238 | ||
43e02a8a | 13239 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
1cf3d07d | 13240 | |
43e02a8a RW |
13241 | # We need gfortran to compile parts of the library |
13242 | #AC_PROG_FC(gfortran) | |
13243 | FC="$GFORTRAN" | |
5213506e RW |
13244 | ac_ext=${ac_fc_srcext-f} |
13245 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13246 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13247 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13248 | if test -n "$ac_tool_prefix"; then | |
43e02a8a | 13249 | for ac_prog in gfortran |
1cf3d07d SE |
13250 | do |
13251 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13252 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13254 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13255 | if ${ac_cv_prog_FC+:} false; then : |
5213506e | 13256 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13257 | else |
13258 | if test -n "$FC"; then | |
13259 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13260 | else | |
13261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13262 | for as_dir in $PATH | |
13263 | do | |
13264 | IFS=$as_save_IFS | |
13265 | test -z "$as_dir" && as_dir=. | |
5213506e | 13266 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13268 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
5213506e | 13269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13270 | break 2 |
13271 | fi | |
13272 | done | |
5213506e RW |
13273 | done |
13274 | IFS=$as_save_IFS | |
1cf3d07d SE |
13275 | |
13276 | fi | |
13277 | fi | |
13278 | FC=$ac_cv_prog_FC | |
13279 | if test -n "$FC"; then | |
5213506e RW |
13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13281 | $as_echo "$FC" >&6; } | |
1cf3d07d | 13282 | else |
5213506e RW |
13283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13284 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13285 | fi |
13286 | ||
5213506e | 13287 | |
1cf3d07d SE |
13288 | test -n "$FC" && break |
13289 | done | |
13290 | fi | |
13291 | if test -z "$FC"; then | |
13292 | ac_ct_FC=$FC | |
43e02a8a | 13293 | for ac_prog in gfortran |
1cf3d07d SE |
13294 | do |
13295 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13296 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13298 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13299 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
5213506e | 13300 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13301 | else |
13302 | if test -n "$ac_ct_FC"; then | |
13303 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13304 | else | |
13305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13306 | for as_dir in $PATH | |
13307 | do | |
13308 | IFS=$as_save_IFS | |
13309 | test -z "$as_dir" && as_dir=. | |
5213506e | 13310 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 13311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1cf3d07d | 13312 | ac_cv_prog_ac_ct_FC="$ac_prog" |
5213506e | 13313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
13314 | break 2 |
13315 | fi | |
13316 | done | |
5213506e RW |
13317 | done |
13318 | IFS=$as_save_IFS | |
1cf3d07d SE |
13319 | |
13320 | fi | |
13321 | fi | |
13322 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13323 | if test -n "$ac_ct_FC"; then | |
5213506e RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13325 | $as_echo "$ac_ct_FC" >&6; } | |
1cf3d07d | 13326 | else |
5213506e RW |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13328 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13329 | fi |
13330 | ||
5213506e | 13331 | |
1cf3d07d | 13332 | test -n "$ac_ct_FC" && break |
38d24731 RW |
13333 | done |
13334 | ||
5213506e RW |
13335 | if test "x$ac_ct_FC" = x; then |
13336 | FC="" | |
13337 | else | |
13338 | case $cross_compiling:$ac_tool_warned in | |
13339 | yes:) | |
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13341 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13342 | ac_tool_warned=yes ;; | |
13343 | esac | |
13344 | FC=$ac_ct_FC | |
13345 | fi | |
1cf3d07d SE |
13346 | fi |
13347 | ||
13348 | ||
13349 | # Provide some information about the compiler. | |
5213506e RW |
13350 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13351 | set X $ac_compile | |
13352 | ac_compiler=$2 | |
13353 | for ac_option in --version -v -V -qversion; do | |
13354 | { { ac_try="$ac_compiler $ac_option >&5" | |
13355 | case "(($ac_try" in | |
13356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13357 | *) ac_try_echo=$ac_try;; | |
13358 | esac | |
13359 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13360 | $as_echo "$ac_try_echo"; } >&5 | |
13361 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1cf3d07d | 13362 | ac_status=$? |
5213506e RW |
13363 | if test -s conftest.err; then |
13364 | sed '10a\ | |
13365 | ... rest of stderr output deleted ... | |
13366 | 10q' conftest.err >conftest.er1 | |
13367 | cat conftest.er1 >&5 | |
5213506e | 13368 | fi |
22e05272 | 13369 | rm -f conftest.er1 conftest.err |
5213506e RW |
13370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13371 | test $ac_status = 0; } | |
13372 | done | |
1cf3d07d SE |
13373 | rm -f a.out |
13374 | ||
13375 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13376 | # input file. (Note that this only needs to work for GNU compilers.) | |
13377 | ac_save_ext=$ac_ext | |
13378 | ac_ext=F | |
5213506e RW |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13380 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
22e05272 | 13381 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
5213506e | 13382 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 13383 | else |
5213506e | 13384 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13385 | program main |
13386 | #ifndef __GNUC__ | |
13387 | choke me | |
13388 | #endif | |
13389 | ||
13390 | end | |
13391 | _ACEOF | |
5213506e | 13392 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13393 | ac_compiler_gnu=yes |
13394 | else | |
5213506e | 13395 | ac_compiler_gnu=no |
1cf3d07d | 13396 | fi |
5213506e | 13397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13398 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13399 | ||
13400 | fi | |
5213506e RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13402 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
1cf3d07d | 13403 | ac_ext=$ac_save_ext |
5213506e RW |
13404 | ac_test_FCFLAGS=${FCFLAGS+set} |
13405 | ac_save_FCFLAGS=$FCFLAGS | |
1cf3d07d | 13406 | FCFLAGS= |
5213506e RW |
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13408 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
22e05272 | 13409 | if ${ac_cv_prog_fc_g+:} false; then : |
5213506e | 13410 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
13411 | else |
13412 | FCFLAGS=-g | |
5213506e | 13413 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
13414 | program main |
13415 | ||
13416 | end | |
13417 | _ACEOF | |
5213506e | 13418 | if ac_fn_fc_try_compile "$LINENO"; then : |
1cf3d07d SE |
13419 | ac_cv_prog_fc_g=yes |
13420 | else | |
5213506e | 13421 | ac_cv_prog_fc_g=no |
1cf3d07d | 13422 | fi |
5213506e | 13423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
13424 | |
13425 | fi | |
5213506e RW |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13427 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13428 | if test "$ac_test_FCFLAGS" = set; then | |
13429 | FCFLAGS=$ac_save_FCFLAGS | |
1cf3d07d SE |
13430 | elif test $ac_cv_prog_fc_g = yes; then |
13431 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13432 | FCFLAGS="-g -O2" | |
13433 | else | |
13434 | FCFLAGS="-g" | |
13435 | fi | |
13436 | else | |
13437 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13438 | FCFLAGS="-O2" | |
13439 | else | |
13440 | FCFLAGS= | |
13441 | fi | |
13442 | fi | |
13443 | ||
22e05272 JM |
13444 | if test $ac_compiler_gnu = yes; then |
13445 | GFC=yes | |
13446 | else | |
13447 | GFC= | |
13448 | fi | |
1cf3d07d SE |
13449 | ac_ext=c |
13450 | ac_cpp='$CPP $CPPFLAGS' | |
13451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13454 | ||
5213506e RW |
13455 | ac_ext=${ac_fc_srcext-f} |
13456 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13457 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
13458 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13459 | ||
13460 | ||
43e02a8a RW |
13461 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13462 | _lt_disable_FC=yes | |
13463 | fi | |
13464 | ||
1cf3d07d SE |
13465 | archive_cmds_need_lc_FC=no |
13466 | allow_undefined_flag_FC= | |
13467 | always_export_symbols_FC=no | |
13468 | archive_expsym_cmds_FC= | |
13469 | export_dynamic_flag_spec_FC= | |
13470 | hardcode_direct_FC=no | |
13471 | hardcode_direct_absolute_FC=no | |
13472 | hardcode_libdir_flag_spec_FC= | |
13473 | hardcode_libdir_flag_spec_ld_FC= | |
13474 | hardcode_libdir_separator_FC= | |
13475 | hardcode_minus_L_FC=no | |
13476 | hardcode_automatic_FC=no | |
13477 | inherit_rpath_FC=no | |
13478 | module_cmds_FC= | |
13479 | module_expsym_cmds_FC= | |
13480 | link_all_deplibs_FC=unknown | |
13481 | old_archive_cmds_FC=$old_archive_cmds | |
43e02a8a RW |
13482 | reload_flag_FC=$reload_flag |
13483 | reload_cmds_FC=$reload_cmds | |
1cf3d07d SE |
13484 | no_undefined_flag_FC= |
13485 | whole_archive_flag_spec_FC= | |
13486 | enable_shared_with_static_runtimes_FC=no | |
13487 | ||
13488 | # Source file extension for fc test sources. | |
13489 | ac_ext=${ac_fc_srcext-f} | |
13490 | ||
13491 | # Object file extension for compiled fc test sources. | |
13492 | objext=o | |
13493 | objext_FC=$objext | |
13494 | ||
13495 | # No sense in running all these tests if we already determined that | |
13496 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13497 | # are currently assumed to apply to all compilers on this platform, | |
13498 | # and will be corrupted by setting them based on a non-working compiler. | |
13499 | if test "$_lt_disable_FC" != yes; then | |
13500 | # Code to be used in simple compile tests | |
13501 | lt_simple_compile_test_code="\ | |
13502 | subroutine t | |
13503 | return | |
13504 | end | |
13505 | " | |
13506 | ||
13507 | # Code to be used in simple link tests | |
13508 | lt_simple_link_test_code="\ | |
13509 | program t | |
13510 | end | |
13511 | " | |
13512 | ||
13513 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13514 | ||
13515 | ||
13516 | ||
13517 | ||
13518 | ||
13519 | ||
13520 | # If no C compiler was specified, use CC. | |
13521 | LTCC=${LTCC-"$CC"} | |
13522 | ||
13523 | # If no C compiler flags were specified, use CFLAGS. | |
13524 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13525 | ||
13526 | # Allow CC to be a program name with arguments. | |
13527 | compiler=$CC | |
13528 | ||
13529 | ||
13530 | # save warnings/boilerplate of simple test code | |
13531 | ac_outfile=conftest.$ac_objext | |
13532 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13533 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13534 | _lt_compiler_boilerplate=`cat conftest.err` | |
13535 | $RM conftest* | |
13536 | ||
13537 | ac_outfile=conftest.$ac_objext | |
13538 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13539 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13540 | _lt_linker_boilerplate=`cat conftest.err` | |
d58dead8 | 13541 | $RM -r conftest* |
1cf3d07d SE |
13542 | |
13543 | ||
13544 | # Allow CC to be a program name with arguments. | |
13545 | lt_save_CC="$CC" | |
d58dead8 | 13546 | lt_save_GCC=$GCC |
1cf3d07d SE |
13547 | CC=${FC-"f95"} |
13548 | compiler=$CC | |
d58dead8 PG |
13549 | GCC=$ac_cv_fc_compiler_gnu |
13550 | ||
1cf3d07d SE |
13551 | compiler_FC=$CC |
13552 | for cc_temp in $compiler""; do | |
13553 | case $cc_temp in | |
13554 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13555 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13556 | \-*) ;; | |
13557 | *) break;; | |
13558 | esac | |
13559 | done | |
43e02a8a | 13560 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13561 | |
13562 | ||
13563 | if test -n "$compiler"; then | |
5213506e RW |
13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13565 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13567 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13568 | |
5213506e RW |
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13570 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13571 | test "$can_build_shared" = "no" && enable_shared=no |
13572 | ||
13573 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13574 | # are all built from PIC. | |
13575 | case $host_os in | |
13576 | aix3*) | |
13577 | test "$enable_shared" = yes && enable_static=no | |
13578 | if test -n "$RANLIB"; then | |
13579 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13580 | postinstall_cmds='$RANLIB $lib' | |
13581 | fi | |
13582 | ;; | |
4f6bebc3 | 13583 | aix[4-9]*) |
1cf3d07d SE |
13584 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13585 | test "$enable_shared" = yes && enable_static=no | |
13586 | fi | |
13587 | ;; | |
13588 | esac | |
5213506e RW |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13590 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13591 | |
5213506e RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13593 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13594 | # Make sure either enable_shared or enable_static is yes. |
13595 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13597 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13598 | |
13599 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13600 | LD_FC="$LD" | |
13601 | ||
13602 | ## CAVEAT EMPTOR: | |
13603 | ## There is no encapsulation within the following macros, do not change | |
13604 | ## the running order or otherwise move them around unless you know exactly | |
13605 | ## what you are doing... | |
13606 | # Dependencies to place before and after the object being linked: | |
13607 | predep_objects_FC= | |
13608 | postdep_objects_FC= | |
13609 | predeps_FC= | |
13610 | postdeps_FC= | |
13611 | compiler_lib_search_path_FC= | |
13612 | ||
13613 | cat > conftest.$ac_ext <<_LT_EOF | |
13614 | subroutine foo | |
13615 | implicit none | |
13616 | integer a | |
13617 | a=0 | |
13618 | return | |
13619 | end | |
13620 | _LT_EOF | |
13621 | ||
5213506e | 13622 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
13623 | (eval $ac_compile) 2>&5 |
13624 | ac_status=$? | |
5213506e RW |
13625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13626 | test $ac_status = 0; }; then | |
1cf3d07d SE |
13627 | # Parse the compiler output and extract the necessary |
13628 | # objects, libraries and library flags. | |
13629 | ||
13630 | # Sentinel used to keep track of whether or not we are before | |
13631 | # the conftest object file. | |
13632 | pre_test_object_deps_done=no | |
13633 | ||
d58dead8 | 13634 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13635 | case $p in |
13636 | ||
13637 | -L* | -R* | -l*) | |
13638 | # Some compilers place space between "-{L,R}" and the path. | |
13639 | # Remove the space. | |
13640 | if test $p = "-L" || | |
13641 | test $p = "-R"; then | |
13642 | prev=$p | |
13643 | continue | |
13644 | else | |
13645 | prev= | |
13646 | fi | |
13647 | ||
13648 | if test "$pre_test_object_deps_done" = no; then | |
13649 | case $p in | |
13650 | -L* | -R*) | |
13651 | # Internal compiler library paths should come after those | |
13652 | # provided the user. The postdeps already come after the | |
13653 | # user supplied libs so there is no need to process them. | |
13654 | if test -z "$compiler_lib_search_path_FC"; then | |
13655 | compiler_lib_search_path_FC="${prev}${p}" | |
13656 | else | |
13657 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13658 | fi | |
13659 | ;; | |
13660 | # The "-l" case would never come before the object being | |
13661 | # linked, so don't bother handling this case. | |
13662 | esac | |
13663 | else | |
13664 | if test -z "$postdeps_FC"; then | |
13665 | postdeps_FC="${prev}${p}" | |
13666 | else | |
13667 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13668 | fi | |
13669 | fi | |
13670 | ;; | |
13671 | ||
13672 | *.$objext) | |
13673 | # This assumes that the test object file only shows up | |
13674 | # once in the compiler output. | |
13675 | if test "$p" = "conftest.$objext"; then | |
13676 | pre_test_object_deps_done=yes | |
13677 | continue | |
13678 | fi | |
13679 | ||
13680 | if test "$pre_test_object_deps_done" = no; then | |
13681 | if test -z "$predep_objects_FC"; then | |
13682 | predep_objects_FC="$p" | |
13683 | else | |
13684 | predep_objects_FC="$predep_objects_FC $p" | |
13685 | fi | |
13686 | else | |
13687 | if test -z "$postdep_objects_FC"; then | |
13688 | postdep_objects_FC="$p" | |
13689 | else | |
13690 | postdep_objects_FC="$postdep_objects_FC $p" | |
13691 | fi | |
13692 | fi | |
13693 | ;; | |
13694 | ||
13695 | *) ;; # Ignore the rest. | |
13696 | ||
13697 | esac | |
13698 | done | |
13699 | ||
13700 | # Clean up. | |
13701 | rm -f a.out a.exe | |
13702 | else | |
13703 | echo "libtool.m4: error: problem compiling FC test program" | |
13704 | fi | |
13705 | ||
13706 | $RM -f confest.$objext | |
13707 | ||
13708 | # PORTME: override above test on systems where it is broken | |
13709 | ||
13710 | ||
13711 | case " $postdeps_FC " in | |
13712 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13713 | esac | |
d58dead8 PG |
13714 | compiler_lib_search_dirs_FC= |
13715 | if test -n "${compiler_lib_search_path_FC}"; then | |
13716 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13717 | fi | |
13718 | ||
13719 | ||
13720 | ||
13721 | ||
13722 | ||
1cf3d07d SE |
13723 | |
13724 | ||
13725 | ||
13726 | ||
13727 | ||
13728 | ||
13729 | ||
13730 | ||
13731 | ||
13732 | ||
13733 | ||
13734 | ||
13735 | ||
13736 | ||
13737 | ||
13738 | ||
13739 | ||
13740 | ||
13741 | ||
13742 | ||
13743 | ||
13744 | ||
13745 | ||
13746 | ||
13747 | ||
13748 | ||
13749 | lt_prog_compiler_wl_FC= | |
13750 | lt_prog_compiler_pic_FC= | |
13751 | lt_prog_compiler_static_FC= | |
13752 | ||
5213506e RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13754 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
13755 | |
13756 | if test "$GCC" = yes; then | |
13757 | lt_prog_compiler_wl_FC='-Wl,' | |
13758 | lt_prog_compiler_static_FC='-static' | |
13759 | ||
13760 | case $host_os in | |
13761 | aix*) | |
13762 | # All AIX code is PIC. | |
13763 | if test "$host_cpu" = ia64; then | |
13764 | # AIX 5 now supports IA64 processor | |
13765 | lt_prog_compiler_static_FC='-Bstatic' | |
13766 | fi | |
bad8a4a7 | 13767 | lt_prog_compiler_pic_FC='-fPIC' |
1cf3d07d SE |
13768 | ;; |
13769 | ||
13770 | amigaos*) | |
d58dead8 PG |
13771 | case $host_cpu in |
13772 | powerpc) | |
13773 | # see comment about AmigaOS4 .so support | |
13774 | lt_prog_compiler_pic_FC='-fPIC' | |
13775 | ;; | |
13776 | m68k) | |
13777 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13778 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13779 | # like `-m68040'. | |
13780 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13781 | ;; | |
13782 | esac | |
1cf3d07d SE |
13783 | ;; |
13784 | ||
13785 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13786 | # PIC is the default for these OSes. | |
13787 | ;; | |
13788 | ||
d58dead8 | 13789 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13790 | # This hack is so that the source file can tell whether it is being |
13791 | # built for inclusion in a dll (and should export symbols for example). | |
13792 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13793 | # (--disable-auto-import) libraries | |
13794 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13795 | ;; | |
13796 | ||
13797 | darwin* | rhapsody*) | |
13798 | # PIC is the default on this platform | |
13799 | # Common symbols not allowed in MH_DYLIB files | |
13800 | lt_prog_compiler_pic_FC='-fno-common' | |
13801 | ;; | |
13802 | ||
43e02a8a RW |
13803 | haiku*) |
13804 | # PIC is the default for Haiku. | |
13805 | # The "-static" flag exists, but is broken. | |
13806 | lt_prog_compiler_static_FC= | |
13807 | ;; | |
13808 | ||
1cf3d07d | 13809 | hpux*) |
d58dead8 PG |
13810 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13811 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13812 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13813 | case $host_cpu in |
d58dead8 | 13814 | hppa*64*) |
1cf3d07d SE |
13815 | # +Z the default |
13816 | ;; | |
13817 | *) | |
13818 | lt_prog_compiler_pic_FC='-fPIC' | |
13819 | ;; | |
13820 | esac | |
13821 | ;; | |
13822 | ||
13823 | interix[3-9]*) | |
13824 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13825 | # Instead, we relocate shared libraries at runtime. | |
13826 | ;; | |
13827 | ||
13828 | msdosdjgpp*) | |
13829 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13830 | # on systems that don't support them. | |
13831 | lt_prog_compiler_can_build_shared_FC=no | |
13832 | enable_shared=no | |
13833 | ;; | |
13834 | ||
13835 | *nto* | *qnx*) | |
13836 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13837 | # it will coredump. | |
13838 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13839 | ;; | |
13840 | ||
13841 | sysv4*MP*) | |
13842 | if test -d /usr/nec; then | |
13843 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13844 | fi | |
13845 | ;; | |
13846 | ||
13847 | *) | |
13848 | lt_prog_compiler_pic_FC='-fPIC' | |
13849 | ;; | |
13850 | esac | |
43e02a8a RW |
13851 | |
13852 | case $cc_basename in | |
13853 | nvcc*) # Cuda Compiler Driver 2.2 | |
13854 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13855 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13856 | ;; | |
13857 | esac | |
1cf3d07d SE |
13858 | else |
13859 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13860 | case $host_os in | |
13861 | aix*) | |
13862 | lt_prog_compiler_wl_FC='-Wl,' | |
13863 | if test "$host_cpu" = ia64; then | |
13864 | # AIX 5 now supports IA64 processor | |
13865 | lt_prog_compiler_static_FC='-Bstatic' | |
13866 | else | |
13867 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13868 | fi | |
13869 | ;; | |
1cf3d07d | 13870 | |
d58dead8 | 13871 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
13872 | # This hack is so that the source file can tell whether it is being |
13873 | # built for inclusion in a dll (and should export symbols for example). | |
13874 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13875 | ;; | |
13876 | ||
13877 | hpux9* | hpux10* | hpux11*) | |
13878 | lt_prog_compiler_wl_FC='-Wl,' | |
13879 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13880 | # not for PA HP-UX. | |
13881 | case $host_cpu in | |
13882 | hppa*64*|ia64*) | |
13883 | # +Z the default | |
13884 | ;; | |
13885 | *) | |
13886 | lt_prog_compiler_pic_FC='+Z' | |
13887 | ;; | |
13888 | esac | |
13889 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13890 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13891 | ;; | |
13892 | ||
13893 | irix5* | irix6* | nonstopux*) | |
13894 | lt_prog_compiler_wl_FC='-Wl,' | |
13895 | # PIC (with -KPIC) is the default. | |
13896 | lt_prog_compiler_static_FC='-non_shared' | |
13897 | ;; | |
13898 | ||
7a9d3fe8 | 13899 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 13900 | case $cc_basename in |
d58dead8 PG |
13901 | # old Intel for x86_64 which still supported -KPIC. |
13902 | ecc*) | |
1cf3d07d SE |
13903 | lt_prog_compiler_wl_FC='-Wl,' |
13904 | lt_prog_compiler_pic_FC='-KPIC' | |
13905 | lt_prog_compiler_static_FC='-static' | |
13906 | ;; | |
d58dead8 PG |
13907 | # icc used to be incompatible with GCC. |
13908 | # ICC 10 doesn't accept -KPIC any more. | |
13909 | icc* | ifort*) | |
13910 | lt_prog_compiler_wl_FC='-Wl,' | |
13911 | lt_prog_compiler_pic_FC='-fPIC' | |
13912 | lt_prog_compiler_static_FC='-static' | |
13913 | ;; | |
13914 | # Lahey Fortran 8.1. | |
13915 | lf95*) | |
13916 | lt_prog_compiler_wl_FC='-Wl,' | |
13917 | lt_prog_compiler_pic_FC='--shared' | |
13918 | lt_prog_compiler_static_FC='--static' | |
13919 | ;; | |
43e02a8a | 13920 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
13921 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13922 | # which looks to be a dead project) | |
13923 | lt_prog_compiler_wl_FC='-Wl,' | |
13924 | lt_prog_compiler_pic_FC='-fpic' | |
13925 | lt_prog_compiler_static_FC='-Bstatic' | |
13926 | ;; | |
13927 | ccc*) | |
13928 | lt_prog_compiler_wl_FC='-Wl,' | |
13929 | # All Alpha code is PIC. | |
13930 | lt_prog_compiler_static_FC='-non_shared' | |
13931 | ;; | |
43e02a8a RW |
13932 | xl* | bgxl* | bgf* | mpixl*) |
13933 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
d58dead8 PG |
13934 | lt_prog_compiler_wl_FC='-Wl,' |
13935 | lt_prog_compiler_pic_FC='-qpic' | |
13936 | lt_prog_compiler_static_FC='-qstaticlink' | |
13937 | ;; | |
1cf3d07d SE |
13938 | *) |
13939 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
13940 | *Sun\ F* | *Sun*Fortran*) |
13941 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
13942 | lt_prog_compiler_pic_FC='-KPIC' |
13943 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13944 | lt_prog_compiler_wl_FC='' |
1cf3d07d | 13945 | ;; |
43e02a8a RW |
13946 | *Sun\ C*) |
13947 | # Sun C 5.9 | |
1cf3d07d SE |
13948 | lt_prog_compiler_pic_FC='-KPIC' |
13949 | lt_prog_compiler_static_FC='-Bstatic' | |
43e02a8a | 13950 | lt_prog_compiler_wl_FC='-Wl,' |
1cf3d07d SE |
13951 | ;; |
13952 | esac | |
13953 | ;; | |
13954 | esac | |
13955 | ;; | |
13956 | ||
13957 | newsos6) | |
13958 | lt_prog_compiler_pic_FC='-KPIC' | |
13959 | lt_prog_compiler_static_FC='-Bstatic' | |
13960 | ;; | |
13961 | ||
13962 | *nto* | *qnx*) | |
13963 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13964 | # it will coredump. | |
13965 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13966 | ;; | |
13967 | ||
13968 | osf3* | osf4* | osf5*) | |
13969 | lt_prog_compiler_wl_FC='-Wl,' | |
13970 | # All OSF/1 code is PIC. | |
13971 | lt_prog_compiler_static_FC='-non_shared' | |
13972 | ;; | |
13973 | ||
13974 | rdos*) | |
13975 | lt_prog_compiler_static_FC='-non_shared' | |
13976 | ;; | |
13977 | ||
13978 | solaris*) | |
13979 | lt_prog_compiler_pic_FC='-KPIC' | |
13980 | lt_prog_compiler_static_FC='-Bstatic' | |
13981 | case $cc_basename in | |
13982 | f77* | f90* | f95*) | |
13983 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13984 | *) | |
13985 | lt_prog_compiler_wl_FC='-Wl,';; | |
13986 | esac | |
13987 | ;; | |
13988 | ||
13989 | sunos4*) | |
13990 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13991 | lt_prog_compiler_pic_FC='-PIC' | |
13992 | lt_prog_compiler_static_FC='-Bstatic' | |
13993 | ;; | |
13994 | ||
13995 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13996 | lt_prog_compiler_wl_FC='-Wl,' | |
13997 | lt_prog_compiler_pic_FC='-KPIC' | |
13998 | lt_prog_compiler_static_FC='-Bstatic' | |
13999 | ;; | |
14000 | ||
14001 | sysv4*MP*) | |
14002 | if test -d /usr/nec ;then | |
14003 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
14004 | lt_prog_compiler_static_FC='-Bstatic' | |
14005 | fi | |
14006 | ;; | |
14007 | ||
14008 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14009 | lt_prog_compiler_wl_FC='-Wl,' | |
14010 | lt_prog_compiler_pic_FC='-KPIC' | |
14011 | lt_prog_compiler_static_FC='-Bstatic' | |
14012 | ;; | |
14013 | ||
14014 | unicos*) | |
14015 | lt_prog_compiler_wl_FC='-Wl,' | |
14016 | lt_prog_compiler_can_build_shared_FC=no | |
14017 | ;; | |
14018 | ||
14019 | uts4*) | |
14020 | lt_prog_compiler_pic_FC='-pic' | |
14021 | lt_prog_compiler_static_FC='-Bstatic' | |
14022 | ;; | |
14023 | ||
14024 | *) | |
14025 | lt_prog_compiler_can_build_shared_FC=no | |
14026 | ;; | |
14027 | esac | |
14028 | fi | |
14029 | ||
14030 | case $host_os in | |
14031 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14032 | *djgpp*) | |
14033 | lt_prog_compiler_pic_FC= | |
14034 | ;; | |
14035 | *) | |
14036 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
14037 | ;; | |
14038 | esac | |
5213506e RW |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
14040 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
1cf3d07d SE |
14041 | |
14042 | ||
14043 | ||
14044 | # | |
14045 | # Check to make sure the PIC flag actually works. | |
14046 | # | |
14047 | if test -n "$lt_prog_compiler_pic_FC"; then | |
5213506e RW |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
14049 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
22e05272 | 14050 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
5213506e | 14051 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14052 | else |
d58dead8 | 14053 | lt_cv_prog_compiler_pic_works_FC=no |
1cf3d07d SE |
14054 | ac_outfile=conftest.$ac_objext |
14055 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14056 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
14057 | # Insert the option either (1) after the last *FLAGS variable, or | |
14058 | # (2) before a word containing "conftest.", or (3) at the end. | |
14059 | # Note that $ac_compile itself does not contain backslashes and begins | |
14060 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14061 | # The option is referenced via a variable to avoid confusing sed. | |
14062 | lt_compile=`echo "$ac_compile" | $SED \ | |
14063 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14064 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14065 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14066 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14067 | (eval "$lt_compile" 2>conftest.err) |
14068 | ac_status=$? | |
14069 | cat conftest.err >&5 | |
43e02a8a | 14070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14071 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14072 | # The compiler can only warn and ignore the option if not recognized | |
14073 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 14074 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
14075 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14076 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14077 | lt_cv_prog_compiler_pic_works_FC=yes |
1cf3d07d SE |
14078 | fi |
14079 | fi | |
14080 | $RM conftest* | |
14081 | ||
14082 | fi | |
5213506e RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
14084 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
1cf3d07d | 14085 | |
d58dead8 | 14086 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
1cf3d07d SE |
14087 | case $lt_prog_compiler_pic_FC in |
14088 | "" | " "*) ;; | |
14089 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
14090 | esac | |
14091 | else | |
14092 | lt_prog_compiler_pic_FC= | |
14093 | lt_prog_compiler_can_build_shared_FC=no | |
14094 | fi | |
14095 | ||
14096 | fi | |
14097 | ||
14098 | ||
14099 | ||
14100 | # | |
14101 | # Check to make sure the static flag actually works. | |
14102 | # | |
14103 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
5213506e RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14105 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 14106 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
5213506e | 14107 | $as_echo_n "(cached) " >&6 |
1cf3d07d | 14108 | else |
d58dead8 | 14109 | lt_cv_prog_compiler_static_works_FC=no |
1cf3d07d SE |
14110 | save_LDFLAGS="$LDFLAGS" |
14111 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14112 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14113 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14114 | # The linker can only warn and ignore the option if not recognized | |
14115 | # So say no if there are warnings | |
14116 | if test -s conftest.err; then | |
14117 | # Append any errors to the config.log. | |
14118 | cat conftest.err 1>&5 | |
43e02a8a | 14119 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
14120 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14121 | if diff conftest.exp conftest.er2 >/dev/null; then | |
d58dead8 | 14122 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14123 | fi |
14124 | else | |
d58dead8 | 14125 | lt_cv_prog_compiler_static_works_FC=yes |
1cf3d07d SE |
14126 | fi |
14127 | fi | |
d58dead8 | 14128 | $RM -r conftest* |
1cf3d07d SE |
14129 | LDFLAGS="$save_LDFLAGS" |
14130 | ||
14131 | fi | |
5213506e RW |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
14133 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
1cf3d07d | 14134 | |
d58dead8 | 14135 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
1cf3d07d SE |
14136 | : |
14137 | else | |
14138 | lt_prog_compiler_static_FC= | |
14139 | fi | |
14140 | ||
14141 | ||
14142 | ||
14143 | ||
5213506e RW |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14145 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14146 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14147 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14148 | else |
14149 | lt_cv_prog_compiler_c_o_FC=no | |
14150 | $RM -r conftest 2>/dev/null | |
14151 | mkdir conftest | |
14152 | cd conftest | |
14153 | mkdir out | |
14154 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14155 | ||
14156 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14157 | # Insert the option either (1) after the last *FLAGS variable, or | |
14158 | # (2) before a word containing "conftest.", or (3) at the end. | |
14159 | # Note that $ac_compile itself does not contain backslashes and begins | |
14160 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14161 | lt_compile=`echo "$ac_compile" | $SED \ | |
14162 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14163 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14164 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14165 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14166 | (eval "$lt_compile" 2>out/conftest.err) |
14167 | ac_status=$? | |
14168 | cat out/conftest.err >&5 | |
43e02a8a | 14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14170 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14171 | then | |
14172 | # The compiler can only warn and ignore the option if not recognized | |
14173 | # So say no if there are warnings | |
43e02a8a | 14174 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14175 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14176 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14177 | lt_cv_prog_compiler_c_o_FC=yes | |
14178 | fi | |
14179 | fi | |
14180 | chmod u+w . 2>&5 | |
14181 | $RM conftest* | |
14182 | # SGI C++ compiler will create directory out/ii_files/ for | |
14183 | # template instantiation | |
14184 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14185 | $RM out/* && rmdir out | |
14186 | cd .. | |
14187 | $RM -r conftest | |
14188 | $RM conftest* | |
14189 | ||
14190 | fi | |
5213506e RW |
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14192 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14193 | |
14194 | ||
14195 | ||
5213506e RW |
14196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14197 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14198 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
5213506e | 14199 | $as_echo_n "(cached) " >&6 |
1cf3d07d SE |
14200 | else |
14201 | lt_cv_prog_compiler_c_o_FC=no | |
14202 | $RM -r conftest 2>/dev/null | |
14203 | mkdir conftest | |
14204 | cd conftest | |
14205 | mkdir out | |
14206 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14207 | ||
14208 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14209 | # Insert the option either (1) after the last *FLAGS variable, or | |
14210 | # (2) before a word containing "conftest.", or (3) at the end. | |
14211 | # Note that $ac_compile itself does not contain backslashes and begins | |
14212 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14213 | lt_compile=`echo "$ac_compile" | $SED \ | |
14214 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14215 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14216 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 14217 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
14218 | (eval "$lt_compile" 2>out/conftest.err) |
14219 | ac_status=$? | |
14220 | cat out/conftest.err >&5 | |
43e02a8a | 14221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
14222 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14223 | then | |
14224 | # The compiler can only warn and ignore the option if not recognized | |
14225 | # So say no if there are warnings | |
43e02a8a | 14226 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
14227 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14228 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14229 | lt_cv_prog_compiler_c_o_FC=yes | |
14230 | fi | |
14231 | fi | |
14232 | chmod u+w . 2>&5 | |
14233 | $RM conftest* | |
14234 | # SGI C++ compiler will create directory out/ii_files/ for | |
14235 | # template instantiation | |
14236 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14237 | $RM out/* && rmdir out | |
14238 | cd .. | |
14239 | $RM -r conftest | |
14240 | $RM conftest* | |
14241 | ||
14242 | fi | |
5213506e RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14244 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
1cf3d07d SE |
14245 | |
14246 | ||
14247 | ||
14248 | ||
14249 | hard_links="nottested" | |
14250 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14251 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
14252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14253 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
14254 | hard_links=yes |
14255 | $RM conftest* | |
14256 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14257 | touch conftest.a | |
14258 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14259 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
14260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14261 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 14262 | if test "$hard_links" = no; then |
5213506e RW |
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14264 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
14265 | need_locks=warn |
14266 | fi | |
14267 | else | |
14268 | need_locks=no | |
14269 | fi | |
14270 | ||
14271 | ||
14272 | ||
5213506e RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14274 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14275 | |
14276 | runpath_var= | |
14277 | allow_undefined_flag_FC= | |
14278 | always_export_symbols_FC=no | |
14279 | archive_cmds_FC= | |
14280 | archive_expsym_cmds_FC= | |
14281 | compiler_needs_object_FC=no | |
14282 | enable_shared_with_static_runtimes_FC=no | |
14283 | export_dynamic_flag_spec_FC= | |
14284 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14285 | hardcode_automatic_FC=no | |
14286 | hardcode_direct_FC=no | |
14287 | hardcode_direct_absolute_FC=no | |
14288 | hardcode_libdir_flag_spec_FC= | |
14289 | hardcode_libdir_flag_spec_ld_FC= | |
14290 | hardcode_libdir_separator_FC= | |
14291 | hardcode_minus_L_FC=no | |
14292 | hardcode_shlibpath_var_FC=unsupported | |
14293 | inherit_rpath_FC=no | |
14294 | link_all_deplibs_FC=unknown | |
14295 | module_cmds_FC= | |
14296 | module_expsym_cmds_FC= | |
14297 | old_archive_from_new_cmds_FC= | |
14298 | old_archive_from_expsyms_cmds_FC= | |
14299 | thread_safe_flag_spec_FC= | |
14300 | whole_archive_flag_spec_FC= | |
14301 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14302 | # included in the symbol list | |
14303 | include_expsyms_FC= | |
14304 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14305 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14306 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14307 | # as well as any symbol that contains `d'. | |
d58dead8 | 14308 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
14309 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14310 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14311 | # the symbol is explicitly referenced. Since portable code cannot | |
14312 | # rely on this symbol name, it's probably fine to never include it in | |
14313 | # preloaded symbol tables. | |
d58dead8 | 14314 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
14315 | extract_expsyms_cmds= |
14316 | ||
14317 | case $host_os in | |
d58dead8 | 14318 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14319 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14320 | # When not using gcc, we currently assume that we are using | |
14321 | # Microsoft Visual C++. | |
14322 | if test "$GCC" != yes; then | |
14323 | with_gnu_ld=no | |
14324 | fi | |
14325 | ;; | |
14326 | interix*) | |
14327 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14328 | with_gnu_ld=yes | |
14329 | ;; | |
14330 | openbsd*) | |
14331 | with_gnu_ld=no | |
14332 | ;; | |
14333 | esac | |
14334 | ||
14335 | ld_shlibs_FC=yes | |
43e02a8a RW |
14336 | |
14337 | # On some targets, GNU ld is compatible enough with the native linker | |
14338 | # that we're better off using the native interface for both. | |
14339 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 14340 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
14341 | case $host_os in |
14342 | aix*) | |
14343 | # The AIX port of GNU ld has always aspired to compatibility | |
14344 | # with the native linker. However, as the warning in the GNU ld | |
14345 | # block says, versions before 2.19.5* couldn't really create working | |
14346 | # shared libraries, regardless of the interface used. | |
14347 | case `$LD -v 2>&1` in | |
14348 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14349 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14350 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14351 | *) | |
14352 | lt_use_gnu_ld_interface=yes | |
14353 | ;; | |
14354 | esac | |
14355 | ;; | |
14356 | *) | |
14357 | lt_use_gnu_ld_interface=yes | |
14358 | ;; | |
14359 | esac | |
14360 | fi | |
14361 | ||
14362 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
14363 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14364 | wlarc='${wl}' | |
14365 | ||
14366 | # Set some defaults for GNU ld with shared library support. These | |
14367 | # are reset later if shared libraries are not supported. Putting them | |
14368 | # here allows them to be overridden if necessary. | |
14369 | runpath_var=LD_RUN_PATH | |
14370 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14371 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14372 | # ancient GNU ld didn't support --whole-archive et. al. | |
14373 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14374 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14375 | else | |
14376 | whole_archive_flag_spec_FC= | |
14377 | fi | |
14378 | supports_anon_versioning=no | |
14379 | case `$LD -v 2>&1` in | |
43e02a8a | 14380 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
14381 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14382 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14383 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14384 | *\ 2.11.*) ;; # other 2.11 versions | |
14385 | *) supports_anon_versioning=yes ;; | |
14386 | esac | |
14387 | ||
14388 | # See if GNU ld supports shared libraries. | |
14389 | case $host_os in | |
4f6bebc3 | 14390 | aix[3-9]*) |
1cf3d07d SE |
14391 | # On AIX/PPC, the GNU linker is very broken |
14392 | if test "$host_cpu" != ia64; then | |
14393 | ld_shlibs_FC=no | |
14394 | cat <<_LT_EOF 1>&2 | |
14395 | ||
43e02a8a | 14396 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
14397 | *** to be unable to reliably create shared libraries on AIX. |
14398 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
14399 | *** really care for shared libraries, you may want to install binutils |
14400 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14401 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
14402 | |
14403 | _LT_EOF | |
14404 | fi | |
14405 | ;; | |
14406 | ||
14407 | amigaos*) | |
d58dead8 PG |
14408 | case $host_cpu in |
14409 | powerpc) | |
14410 | # see comment about AmigaOS4 .so support | |
14411 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14412 | archive_expsym_cmds_FC='' | |
14413 | ;; | |
14414 | m68k) | |
14415 | 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)' | |
14416 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14417 | hardcode_minus_L_FC=yes | |
14418 | ;; | |
14419 | esac | |
1cf3d07d SE |
14420 | ;; |
14421 | ||
14422 | beos*) | |
14423 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14424 | allow_undefined_flag_FC=unsupported | |
14425 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14426 | # support --undefined. This deserves some investigation. FIXME | |
14427 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14428 | else | |
14429 | ld_shlibs_FC=no | |
14430 | fi | |
14431 | ;; | |
14432 | ||
d58dead8 | 14433 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14434 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14435 | # as there is no search path for DLLs. | |
14436 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
43e02a8a | 14437 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
1cf3d07d SE |
14438 | allow_undefined_flag_FC=unsupported |
14439 | always_export_symbols_FC=no | |
14440 | enable_shared_with_static_runtimes_FC=yes | |
14441 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14442 | ||
14443 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14444 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14445 | # If the export-symbols file already is a .def file (1st line | |
14446 | # is EXPORTS), use it as is; otherwise, prepend... | |
14447 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14448 | cp $export_symbols $output_objdir/$soname.def; | |
14449 | else | |
14450 | echo EXPORTS > $output_objdir/$soname.def; | |
14451 | cat $export_symbols >> $output_objdir/$soname.def; | |
14452 | fi~ | |
14453 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14454 | else | |
14455 | ld_shlibs_FC=no | |
14456 | fi | |
14457 | ;; | |
14458 | ||
43e02a8a RW |
14459 | haiku*) |
14460 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14461 | link_all_deplibs_FC=yes | |
14462 | ;; | |
14463 | ||
1cf3d07d SE |
14464 | interix[3-9]*) |
14465 | hardcode_direct_FC=no | |
14466 | hardcode_shlibpath_var_FC=no | |
14467 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14468 | export_dynamic_flag_spec_FC='${wl}-E' | |
14469 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14470 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14471 | # default) and relocated if they conflict, which is a slow very memory | |
14472 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14473 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14474 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14475 | 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' | |
14476 | 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' | |
14477 | ;; | |
14478 | ||
e9085da5 | 14479 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
1cf3d07d SE |
14480 | tmp_diet=no |
14481 | if test "$host_os" = linux-dietlibc; then | |
14482 | case $cc_basename in | |
14483 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14484 | esac | |
14485 | fi | |
14486 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14487 | && test "$tmp_diet" = no | |
14488 | then | |
a699d672 | 14489 | tmp_addflag=' $pic_flag' |
d58dead8 | 14490 | tmp_sharedflag='-shared' |
1cf3d07d SE |
14491 | case $cc_basename,$host_cpu in |
14492 | pgcc*) # Portland Group C compiler | |
43e02a8a | 14493 | 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 |
14494 | tmp_addflag=' $pic_flag' |
14495 | ;; | |
43e02a8a RW |
14496 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14497 | # Portland Group f77 and f90 compilers | |
14498 | 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 |
14499 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14500 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14501 | tmp_addflag=' -i_dynamic' ;; | |
14502 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14503 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14504 | ifc* | ifort*) # Intel Fortran compiler | |
14505 | tmp_addflag=' -nofor_main' ;; | |
d58dead8 PG |
14506 | lf95*) # Lahey Fortran 8.1 |
14507 | whole_archive_flag_spec_FC= | |
14508 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 14509 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
d58dead8 PG |
14510 | tmp_sharedflag='-qmkshrobj' |
14511 | tmp_addflag= ;; | |
43e02a8a RW |
14512 | nvcc*) # Cuda Compiler Driver 2.2 |
14513 | 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' | |
14514 | compiler_needs_object_FC=yes | |
14515 | ;; | |
1cf3d07d SE |
14516 | esac |
14517 | case `$CC -V 2>&1 | sed 5q` in | |
14518 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 14519 | 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 |
14520 | compiler_needs_object_FC=yes |
14521 | tmp_sharedflag='-G' ;; | |
14522 | *Sun\ F*) # Sun Fortran 8.3 | |
14523 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
14524 | esac |
14525 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14526 | ||
14527 | if test "x$supports_anon_versioning" = xyes; then | |
14528 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14529 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14530 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14531 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14532 | fi | |
d58dead8 PG |
14533 | |
14534 | case $cc_basename in | |
43e02a8a | 14535 | xlf* | bgf* | bgxlf* | mpixlf*) |
d58dead8 PG |
14536 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14537 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14538 | hardcode_libdir_flag_spec_FC= | |
14539 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14540 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14541 | if test "x$supports_anon_versioning" = xyes; then | |
14542 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14543 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14544 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14545 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14546 | fi | |
14547 | ;; | |
14548 | esac | |
1cf3d07d SE |
14549 | else |
14550 | ld_shlibs_FC=no | |
14551 | fi | |
14552 | ;; | |
14553 | ||
14554 | netbsd*) | |
14555 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14556 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14557 | wlarc= | |
14558 | else | |
14559 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14560 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14561 | fi | |
14562 | ;; | |
14563 | ||
14564 | solaris*) | |
14565 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14566 | ld_shlibs_FC=no | |
14567 | cat <<_LT_EOF 1>&2 | |
14568 | ||
14569 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14570 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14571 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14572 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14573 | *** your PATH or compiler configuration so that the native linker is | |
14574 | *** used, and then restart. | |
14575 | ||
14576 | _LT_EOF | |
14577 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14578 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14579 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14580 | else | |
14581 | ld_shlibs_FC=no | |
14582 | fi | |
14583 | ;; | |
14584 | ||
14585 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14586 | case `$LD -v 2>&1` in | |
14587 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14588 | ld_shlibs_FC=no | |
14589 | cat <<_LT_EOF 1>&2 | |
14590 | ||
14591 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14592 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14593 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14594 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14595 | *** your PATH or compiler configuration so that the native linker is | |
14596 | *** used, and then restart. | |
14597 | ||
14598 | _LT_EOF | |
14599 | ;; | |
14600 | *) | |
14601 | # For security reasons, it is highly recommended that you always | |
14602 | # use absolute paths for naming shared libraries, and exclude the | |
14603 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14604 | # requires that you compile everything twice, which is a pain. | |
14605 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14606 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14607 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14608 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14609 | else | |
14610 | ld_shlibs_FC=no | |
14611 | fi | |
14612 | ;; | |
14613 | esac | |
14614 | ;; | |
14615 | ||
14616 | sunos4*) | |
14617 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14618 | wlarc= | |
14619 | hardcode_direct_FC=yes | |
14620 | hardcode_shlibpath_var_FC=no | |
14621 | ;; | |
14622 | ||
14623 | *) | |
14624 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14625 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14626 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14627 | else | |
14628 | ld_shlibs_FC=no | |
14629 | fi | |
14630 | ;; | |
14631 | esac | |
14632 | ||
14633 | if test "$ld_shlibs_FC" = no; then | |
14634 | runpath_var= | |
14635 | hardcode_libdir_flag_spec_FC= | |
14636 | export_dynamic_flag_spec_FC= | |
14637 | whole_archive_flag_spec_FC= | |
14638 | fi | |
14639 | else | |
14640 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14641 | case $host_os in | |
14642 | aix3*) | |
14643 | allow_undefined_flag_FC=unsupported | |
14644 | always_export_symbols_FC=yes | |
14645 | 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' | |
14646 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14647 | # are no directories specified by -L. | |
14648 | hardcode_minus_L_FC=yes | |
14649 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14650 | # Neither direct hardcoding nor static linking is supported with a | |
14651 | # broken collect2. | |
14652 | hardcode_direct_FC=unsupported | |
14653 | fi | |
14654 | ;; | |
14655 | ||
4f6bebc3 | 14656 | aix[4-9]*) |
1cf3d07d SE |
14657 | if test "$host_cpu" = ia64; then |
14658 | # On IA64, the linker does run time linking by default, so we don't | |
14659 | # have to do anything special. | |
14660 | aix_use_runtimelinking=no | |
14661 | exp_sym_flag='-Bexport' | |
14662 | no_entry_flag="" | |
14663 | else | |
14664 | # If we're using GNU nm, then we don't want the "-C" option. | |
14665 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
14666 | # Also, AIX nm treats weak defined symbols like other global |
14667 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 14668 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 14669 | 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 | 14670 | else |
d3ca2257 | 14671 | 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 |
14672 | fi |
14673 | aix_use_runtimelinking=no | |
14674 | ||
14675 | # Test if we are trying to use run time linking or normal | |
14676 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14677 | # need to do runtime linking. | |
4f6bebc3 | 14678 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14679 | for ld_flag in $LDFLAGS; do |
14680 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14681 | aix_use_runtimelinking=yes | |
14682 | break | |
14683 | fi | |
14684 | done | |
14685 | ;; | |
14686 | esac | |
14687 | ||
14688 | exp_sym_flag='-bexport' | |
14689 | no_entry_flag='-bnoentry' | |
14690 | fi | |
14691 | ||
14692 | # When large executables or shared objects are built, AIX ld can | |
14693 | # have problems creating the table of contents. If linking a library | |
14694 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14695 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14696 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14697 | ||
14698 | archive_cmds_FC='' | |
14699 | hardcode_direct_FC=yes | |
14700 | hardcode_direct_absolute_FC=yes | |
14701 | hardcode_libdir_separator_FC=':' | |
14702 | link_all_deplibs_FC=yes | |
14703 | file_list_spec_FC='${wl}-f,' | |
14704 | ||
14705 | if test "$GCC" = yes; then | |
14706 | case $host_os in aix4.[012]|aix4.[012].*) | |
14707 | # We only want to do this on AIX 4.2 and lower, the check | |
14708 | # below for broken collect2 doesn't work under 4.3+ | |
14709 | collect2name=`${CC} -print-prog-name=collect2` | |
14710 | if test -f "$collect2name" && | |
14711 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14712 | then | |
14713 | # We have reworked collect2 | |
14714 | : | |
14715 | else | |
14716 | # We have old collect2 | |
14717 | hardcode_direct_FC=unsupported | |
14718 | # It fails to find uninstalled libraries when the uninstalled | |
14719 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14720 | # to unsupported forces relinking | |
14721 | hardcode_minus_L_FC=yes | |
14722 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14723 | hardcode_libdir_separator_FC= | |
14724 | fi | |
14725 | ;; | |
14726 | esac | |
14727 | shared_flag='-shared' | |
14728 | if test "$aix_use_runtimelinking" = yes; then | |
14729 | shared_flag="$shared_flag "'${wl}-G' | |
14730 | fi | |
14731 | else | |
14732 | # not using gcc | |
14733 | if test "$host_cpu" = ia64; then | |
14734 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14735 | # chokes on -Wl,-G. The following line is correct: | |
14736 | shared_flag='-G' | |
14737 | else | |
14738 | if test "$aix_use_runtimelinking" = yes; then | |
14739 | shared_flag='${wl}-G' | |
14740 | else | |
14741 | shared_flag='${wl}-bM:SRE' | |
14742 | fi | |
14743 | fi | |
14744 | fi | |
14745 | ||
d58dead8 | 14746 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
1cf3d07d SE |
14747 | # It seems that -bexpall does not export symbols beginning with |
14748 | # underscore (_), so it is better to generate a list of symbols to export. | |
14749 | always_export_symbols_FC=yes | |
14750 | if test "$aix_use_runtimelinking" = yes; then | |
14751 | # Warning - without using the other runtime loading flags (-brtl), | |
14752 | # -berok will link without error, but may produce a broken library. | |
14753 | allow_undefined_flag_FC='-berok' | |
14754 | # Determine the default libpath from the value encoded in an | |
14755 | # empty executable. | |
14756 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14757 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14758 | fi |
5213506e | 14759 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14760 | program main |
14761 | ||
14762 | end | |
14763 | _ACEOF | |
5213506e | 14764 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14765 | |
14766 | lt_aix_libpath_sed=' | |
14767 | /Import File Strings/,/^$/ { | |
14768 | /^0/ { | |
14769 | s/^0 *\(.*\)$/\1/ | |
14770 | p | |
14771 | } | |
14772 | }' | |
14773 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14774 | # Check for a 64-bit object if we didn't find anything. | |
14775 | if test -z "$aix_libpath"; then | |
14776 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14777 | fi | |
1cf3d07d | 14778 | fi |
5213506e RW |
14779 | rm -f core conftest.err conftest.$ac_objext \ |
14780 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14781 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14782 | ||
14783 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 14784 | 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 |
14785 | else |
14786 | if test "$host_cpu" = ia64; then | |
14787 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14788 | allow_undefined_flag_FC="-z nodefs" | |
14789 | 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" | |
14790 | else | |
14791 | # Determine the default libpath from the value encoded in an | |
14792 | # empty executable. | |
14793 | if test x$gcc_no_link = xyes; then | |
22e05272 | 14794 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 14795 | fi |
5213506e | 14796 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
14797 | program main |
14798 | ||
14799 | end | |
14800 | _ACEOF | |
5213506e | 14801 | if ac_fn_fc_try_link "$LINENO"; then : |
1cf3d07d SE |
14802 | |
14803 | lt_aix_libpath_sed=' | |
14804 | /Import File Strings/,/^$/ { | |
14805 | /^0/ { | |
14806 | s/^0 *\(.*\)$/\1/ | |
14807 | p | |
14808 | } | |
14809 | }' | |
14810 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14811 | # Check for a 64-bit object if we didn't find anything. | |
14812 | if test -z "$aix_libpath"; then | |
14813 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14814 | fi | |
1cf3d07d | 14815 | fi |
5213506e RW |
14816 | rm -f core conftest.err conftest.$ac_objext \ |
14817 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14818 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14819 | ||
14820 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14821 | # Warning - without using the other run time loading flags, | |
14822 | # -berok will link without error, but may produce a broken library. | |
14823 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14824 | allow_undefined_flag_FC=' ${wl}-berok' | |
43e02a8a RW |
14825 | if test "$with_gnu_ld" = yes; then |
14826 | # We only use this code for GNU lds that support --whole-archive. | |
14827 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14828 | else | |
14829 | # Exported symbols can be pulled into shared objects from archives | |
14830 | whole_archive_flag_spec_FC='$convenience' | |
14831 | fi | |
1cf3d07d SE |
14832 | archive_cmds_need_lc_FC=yes |
14833 | # This is similar to how AIX traditionally builds its shared libraries. | |
14834 | 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' | |
14835 | fi | |
14836 | fi | |
14837 | ;; | |
14838 | ||
14839 | amigaos*) | |
d58dead8 PG |
14840 | case $host_cpu in |
14841 | powerpc) | |
14842 | # see comment about AmigaOS4 .so support | |
14843 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14844 | archive_expsym_cmds_FC='' | |
14845 | ;; | |
14846 | m68k) | |
14847 | 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)' | |
14848 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14849 | hardcode_minus_L_FC=yes | |
14850 | ;; | |
14851 | esac | |
1cf3d07d SE |
14852 | ;; |
14853 | ||
14854 | bsdi[45]*) | |
14855 | export_dynamic_flag_spec_FC=-rdynamic | |
14856 | ;; | |
14857 | ||
d58dead8 | 14858 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14859 | # When not using gcc, we currently assume that we are using |
14860 | # Microsoft Visual C++. | |
14861 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14862 | # no search path for DLLs. | |
14863 | hardcode_libdir_flag_spec_FC=' ' | |
14864 | allow_undefined_flag_FC=unsupported | |
14865 | # Tell ltmain to make .lib files, not .a files. | |
14866 | libext=lib | |
14867 | # Tell ltmain to make .dll files, not .so files. | |
14868 | shrext_cmds=".dll" | |
14869 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 14870 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
14871 | # The linker will automatically build a .lib file if we build a DLL. |
14872 | old_archive_from_new_cmds_FC='true' | |
14873 | # FIXME: Should let the user specify the lib program. | |
14874 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14875 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14876 | enable_shared_with_static_runtimes_FC=yes | |
14877 | ;; | |
14878 | ||
14879 | darwin* | rhapsody*) | |
1cf3d07d | 14880 | |
d58dead8 PG |
14881 | |
14882 | archive_cmds_need_lc_FC=no | |
14883 | hardcode_direct_FC=no | |
14884 | hardcode_automatic_FC=yes | |
14885 | hardcode_shlibpath_var_FC=unsupported | |
43e02a8a RW |
14886 | if test "$lt_cv_ld_force_load" = "yes"; then |
14887 | 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\"`' | |
14888 | else | |
14889 | whole_archive_flag_spec_FC='' | |
14890 | fi | |
d58dead8 PG |
14891 | link_all_deplibs_FC=yes |
14892 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14893 | case $cc_basename in | |
14894 | ifort*) _lt_dar_can_shared=yes ;; | |
14895 | *) _lt_dar_can_shared=$GCC ;; | |
14896 | esac | |
14897 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14898 | output_verbose_link_cmd=func_echo_all |
d58dead8 PG |
14899 | 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}" |
14900 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14901 | 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}" | |
14902 | 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}" | |
14903 | ||
14904 | else | |
14905 | ld_shlibs_FC=no | |
14906 | fi | |
14907 | ||
1cf3d07d SE |
14908 | ;; |
14909 | ||
14910 | dgux*) | |
14911 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14912 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14913 | hardcode_shlibpath_var_FC=no | |
14914 | ;; | |
14915 | ||
1cf3d07d SE |
14916 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14917 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14918 | # does not break anything, and helps significantly (at the cost of a little | |
14919 | # extra space). | |
14920 | freebsd2.2*) | |
14921 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14922 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14923 | hardcode_direct_FC=yes | |
14924 | hardcode_shlibpath_var_FC=no | |
14925 | ;; | |
14926 | ||
14927 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
c6084f68 | 14928 | freebsd2.*) |
1cf3d07d SE |
14929 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14930 | hardcode_direct_FC=yes | |
14931 | hardcode_minus_L_FC=yes | |
14932 | hardcode_shlibpath_var_FC=no | |
14933 | ;; | |
14934 | ||
14935 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14936 | freebsd* | dragonfly*) | |
14937 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14938 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14939 | hardcode_direct_FC=yes | |
14940 | hardcode_shlibpath_var_FC=no | |
14941 | ;; | |
14942 | ||
14943 | hpux9*) | |
14944 | if test "$GCC" = yes; then | |
14945 | 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' | |
14946 | else | |
14947 | 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' | |
14948 | fi | |
14949 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14950 | hardcode_libdir_separator_FC=: | |
14951 | hardcode_direct_FC=yes | |
14952 | ||
14953 | # hardcode_minus_L: Not really in the search PATH, | |
14954 | # but as the default location of the library. | |
14955 | hardcode_minus_L_FC=yes | |
14956 | export_dynamic_flag_spec_FC='${wl}-E' | |
14957 | ;; | |
14958 | ||
14959 | hpux10*) | |
43e02a8a | 14960 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
14961 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14962 | else | |
14963 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14964 | fi | |
14965 | if test "$with_gnu_ld" = no; then | |
14966 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14967 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14968 | hardcode_libdir_separator_FC=: | |
14969 | hardcode_direct_FC=yes | |
14970 | hardcode_direct_absolute_FC=yes | |
14971 | export_dynamic_flag_spec_FC='${wl}-E' | |
14972 | # hardcode_minus_L: Not really in the search PATH, | |
14973 | # but as the default location of the library. | |
14974 | hardcode_minus_L_FC=yes | |
14975 | fi | |
14976 | ;; | |
14977 | ||
14978 | hpux11*) | |
43e02a8a | 14979 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
14980 | case $host_cpu in |
14981 | hppa*64*) | |
4e4ba647 | 14982 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14983 | ;; |
14984 | ia64*) | |
d58dead8 | 14985 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14986 | ;; |
14987 | *) | |
14988 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14989 | ;; | |
14990 | esac | |
14991 | else | |
14992 | case $host_cpu in | |
14993 | hppa*64*) | |
4e4ba647 | 14994 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
14995 | ;; |
14996 | ia64*) | |
14997 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14998 | ;; | |
14999 | *) | |
43e02a8a | 15000 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
15001 | ;; |
15002 | esac | |
15003 | fi | |
15004 | if test "$with_gnu_ld" = no; then | |
15005 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
15006 | hardcode_libdir_separator_FC=: | |
15007 | ||
15008 | case $host_cpu in | |
15009 | hppa*64*|ia64*) | |
15010 | hardcode_direct_FC=no | |
15011 | hardcode_shlibpath_var_FC=no | |
15012 | ;; | |
15013 | *) | |
15014 | hardcode_direct_FC=yes | |
15015 | hardcode_direct_absolute_FC=yes | |
15016 | export_dynamic_flag_spec_FC='${wl}-E' | |
15017 | ||
15018 | # hardcode_minus_L: Not really in the search PATH, | |
15019 | # but as the default location of the library. | |
15020 | hardcode_minus_L_FC=yes | |
15021 | ;; | |
15022 | esac | |
15023 | fi | |
15024 | ;; | |
15025 | ||
15026 | irix5* | irix6* | nonstopux*) | |
15027 | if test "$GCC" = yes; then | |
43e02a8a | 15028 | 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 |
15029 | # Try to use the -exported_symbol ld option, if it does not |
15030 | # work, assume that -exports_file does not work either and | |
15031 | # implicitly export all symbols. | |
15032 | save_LDFLAGS="$LDFLAGS" | |
15033 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
15034 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15035 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15036 | fi |
5213506e | 15037 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15038 | int foo(void) {} |
15039 | _ACEOF | |
5213506e | 15040 | if ac_fn_fc_try_link "$LINENO"; then : |
43e02a8a | 15041 | 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 | 15042 | |
1cf3d07d | 15043 | fi |
5213506e RW |
15044 | rm -f core conftest.err conftest.$ac_objext \ |
15045 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
15046 | LDFLAGS="$save_LDFLAGS" |
15047 | else | |
43e02a8a RW |
15048 | 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' |
15049 | 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 |
15050 | fi |
15051 | archive_cmds_need_lc_FC='no' | |
15052 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15053 | hardcode_libdir_separator_FC=: | |
15054 | inherit_rpath_FC=yes | |
15055 | link_all_deplibs_FC=yes | |
15056 | ;; | |
15057 | ||
15058 | netbsd*) | |
15059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15060 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
15061 | else | |
15062 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
15063 | fi | |
15064 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15065 | hardcode_direct_FC=yes | |
15066 | hardcode_shlibpath_var_FC=no | |
15067 | ;; | |
15068 | ||
15069 | newsos6) | |
15070 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15071 | hardcode_direct_FC=yes | |
15072 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15073 | hardcode_libdir_separator_FC=: | |
15074 | hardcode_shlibpath_var_FC=no | |
15075 | ;; | |
15076 | ||
15077 | *nto* | *qnx*) | |
15078 | ;; | |
15079 | ||
15080 | openbsd*) | |
d58dead8 PG |
15081 | if test -f /usr/libexec/ld.so; then |
15082 | hardcode_direct_FC=yes | |
15083 | hardcode_shlibpath_var_FC=no | |
15084 | hardcode_direct_absolute_FC=yes | |
15085 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 15086 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d58dead8 | 15087 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 15088 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
d58dead8 PG |
15089 | export_dynamic_flag_spec_FC='${wl}-E' |
15090 | else | |
15091 | case $host_os in | |
15092 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
15093 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15094 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15095 | ;; | |
15096 | *) | |
15097 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15098 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
15099 | ;; | |
15100 | esac | |
15101 | fi | |
15102 | else | |
15103 | ld_shlibs_FC=no | |
1cf3d07d SE |
15104 | fi |
15105 | ;; | |
15106 | ||
15107 | os2*) | |
15108 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15109 | hardcode_minus_L_FC=yes | |
15110 | allow_undefined_flag_FC=unsupported | |
43e02a8a | 15111 | 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 |
15112 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15113 | ;; | |
15114 | ||
15115 | osf3*) | |
15116 | if test "$GCC" = yes; then | |
15117 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15118 | 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 |
15119 | else |
15120 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15121 | 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 |
15122 | fi |
15123 | archive_cmds_need_lc_FC='no' | |
15124 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
15125 | hardcode_libdir_separator_FC=: | |
15126 | ;; | |
15127 | ||
15128 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15129 | if test "$GCC" = yes; then | |
15130 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 15131 | 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 |
15132 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
15133 | else | |
15134 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
43e02a8a | 15135 | 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 | 15136 | 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 | 15137 | $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 |
15138 | |
15139 | # Both c and cxx compiler support -rpath directly | |
15140 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
15141 | fi | |
15142 | archive_cmds_need_lc_FC='no' | |
15143 | hardcode_libdir_separator_FC=: | |
15144 | ;; | |
15145 | ||
15146 | solaris*) | |
15147 | no_undefined_flag_FC=' -z defs' | |
15148 | if test "$GCC" = yes; then | |
15149 | wlarc='${wl}' | |
15150 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15151 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15152 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15153 | else | |
15154 | case `$CC -V 2>&1` in | |
15155 | *"Compilers 5.0"*) | |
15156 | wlarc='' | |
15157 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15158 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15159 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
15160 | ;; | |
15161 | *) | |
15162 | wlarc='${wl}' | |
15163 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15164 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
15165 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
15166 | ;; | |
15167 | esac | |
15168 | fi | |
15169 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
15170 | hardcode_shlibpath_var_FC=no | |
15171 | case $host_os in | |
15172 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15173 | *) | |
15174 | # The compiler driver will combine and reorder linker options, | |
15175 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15176 | # but is careful enough not to reorder. | |
15177 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15178 | if test "$GCC" = yes; then | |
15179 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15180 | else | |
15181 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15182 | fi | |
15183 | ;; | |
15184 | esac | |
15185 | link_all_deplibs_FC=yes | |
15186 | ;; | |
15187 | ||
15188 | sunos4*) | |
15189 | if test "x$host_vendor" = xsequent; then | |
15190 | # Use $CC to link under sequent, because it throws in some extra .o | |
15191 | # files that make .init and .fini sections work. | |
15192 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15193 | else | |
15194 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15195 | fi | |
15196 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15197 | hardcode_direct_FC=yes | |
15198 | hardcode_minus_L_FC=yes | |
15199 | hardcode_shlibpath_var_FC=no | |
15200 | ;; | |
15201 | ||
15202 | sysv4) | |
15203 | case $host_vendor in | |
15204 | sni) | |
15205 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15206 | hardcode_direct_FC=yes # is this really true??? | |
15207 | ;; | |
15208 | siemens) | |
15209 | ## LD is ld it makes a PLAMLIB | |
15210 | ## CC just makes a GrossModule. | |
15211 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15212 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15213 | hardcode_direct_FC=no | |
15214 | ;; | |
15215 | motorola) | |
15216 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15217 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15218 | ;; | |
15219 | esac | |
15220 | runpath_var='LD_RUN_PATH' | |
15221 | hardcode_shlibpath_var_FC=no | |
15222 | ;; | |
15223 | ||
15224 | sysv4.3*) | |
15225 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15226 | hardcode_shlibpath_var_FC=no | |
15227 | export_dynamic_flag_spec_FC='-Bexport' | |
15228 | ;; | |
15229 | ||
15230 | sysv4*MP*) | |
15231 | if test -d /usr/nec; then | |
15232 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15233 | hardcode_shlibpath_var_FC=no | |
15234 | runpath_var=LD_RUN_PATH | |
15235 | hardcode_runpath_var=yes | |
15236 | ld_shlibs_FC=yes | |
15237 | fi | |
15238 | ;; | |
15239 | ||
15240 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15241 | no_undefined_flag_FC='${wl}-z,text' | |
15242 | archive_cmds_need_lc_FC=no | |
15243 | hardcode_shlibpath_var_FC=no | |
15244 | runpath_var='LD_RUN_PATH' | |
15245 | ||
15246 | if test "$GCC" = yes; then | |
15247 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15248 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15249 | else | |
15250 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15251 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15252 | fi | |
15253 | ;; | |
15254 | ||
15255 | sysv5* | sco3.2v5* | sco5v6*) | |
15256 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15257 | # link with -lc, and that would cause any symbols used from libc to | |
15258 | # always be unresolved, which means just about no library would | |
15259 | # ever link correctly. If we're not using GNU ld we use -z text | |
15260 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15261 | # as -z defs. | |
15262 | no_undefined_flag_FC='${wl}-z,text' | |
15263 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15264 | archive_cmds_need_lc_FC=no | |
15265 | hardcode_shlibpath_var_FC=no | |
15266 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15267 | hardcode_libdir_separator_FC=':' | |
15268 | link_all_deplibs_FC=yes | |
15269 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15270 | runpath_var='LD_RUN_PATH' | |
15271 | ||
15272 | if test "$GCC" = yes; then | |
15273 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15274 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15275 | else | |
15276 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15277 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15278 | fi | |
15279 | ;; | |
15280 | ||
15281 | uts4*) | |
15282 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15283 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15284 | hardcode_shlibpath_var_FC=no | |
15285 | ;; | |
15286 | ||
15287 | *) | |
15288 | ld_shlibs_FC=no | |
15289 | ;; | |
15290 | esac | |
15291 | ||
15292 | if test x$host_vendor = xsni; then | |
15293 | case $host in | |
15294 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15295 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15296 | ;; | |
15297 | esac | |
15298 | fi | |
15299 | fi | |
15300 | ||
5213506e RW |
15301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15302 | $as_echo "$ld_shlibs_FC" >&6; } | |
1cf3d07d SE |
15303 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15304 | ||
15305 | with_gnu_ld_FC=$with_gnu_ld | |
15306 | ||
15307 | ||
15308 | ||
15309 | ||
15310 | ||
15311 | ||
15312 | # | |
15313 | # Do we need to explicitly link libc? | |
15314 | # | |
15315 | case "x$archive_cmds_need_lc_FC" in | |
15316 | x|xyes) | |
15317 | # Assume -lc should be added | |
15318 | archive_cmds_need_lc_FC=yes | |
15319 | ||
15320 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15321 | case $archive_cmds_FC in | |
15322 | *'~'*) | |
15323 | # FIXME: we may have to deal with multi-command sequences. | |
15324 | ;; | |
15325 | '$CC '*) | |
15326 | # Test whether the compiler implicitly links with -lc since on some | |
15327 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15328 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15330 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15331 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
5213506e | 15332 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15333 | else |
15334 | $RM conftest* | |
15335 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15336 | |
5213506e | 15337 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
15338 | (eval $ac_compile) 2>&5 |
15339 | ac_status=$? | |
5213506e RW |
15340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15341 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15342 | soname=conftest |
15343 | lib=conftest | |
15344 | libobjs=conftest.$ac_objext | |
15345 | deplibs= | |
15346 | wl=$lt_prog_compiler_wl_FC | |
15347 | pic_flag=$lt_prog_compiler_pic_FC | |
15348 | compiler_flags=-v | |
15349 | linker_flags=-v | |
15350 | verstring= | |
15351 | output_objdir=. | |
15352 | libname=conftest | |
15353 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15354 | allow_undefined_flag_FC= | |
5213506e | 15355 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15356 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9cdc381b | 15357 | ac_status=$? |
5213506e RW |
15358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15359 | test $ac_status = 0; } | |
baafc534 RW |
15360 | then |
15361 | lt_cv_archive_cmds_need_lc_FC=no | |
15362 | else | |
15363 | lt_cv_archive_cmds_need_lc_FC=yes | |
15364 | fi | |
15365 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15366 | else | |
15367 | cat conftest.err 1>&5 | |
15368 | fi | |
15369 | $RM conftest* | |
15370 | ||
15371 | fi | |
5213506e RW |
15372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15373 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
baafc534 | 15374 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
1cf3d07d SE |
15375 | ;; |
15376 | esac | |
15377 | fi | |
15378 | ;; | |
15379 | esac | |
9cdc381b | 15380 | |
9cdc381b | 15381 | |
1cf3d07d SE |
15382 | |
15383 | ||
15384 | ||
15385 | ||
15386 | ||
15387 | ||
15388 | ||
15389 | ||
15390 | ||
15391 | ||
15392 | ||
15393 | ||
15394 | ||
15395 | ||
15396 | ||
15397 | ||
15398 | ||
15399 | ||
15400 | ||
15401 | ||
15402 | ||
15403 | ||
15404 | ||
15405 | ||
15406 | ||
15407 | ||
15408 | ||
15409 | ||
15410 | ||
15411 | ||
15412 | ||
15413 | ||
15414 | ||
15415 | ||
15416 | ||
15417 | ||
15418 | ||
15419 | ||
15420 | ||
15421 | ||
15422 | ||
15423 | ||
15424 | ||
15425 | ||
15426 | ||
15427 | ||
15428 | ||
15429 | ||
15430 | ||
15431 | ||
15432 | ||
15433 | ||
15434 | ||
15435 | ||
15436 | ||
15437 | ||
15438 | ||
15439 | ||
15440 | ||
15441 | ||
15442 | ||
15443 | ||
5213506e RW |
15444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15445 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
d58dead8 | 15446 | |
1cf3d07d SE |
15447 | library_names_spec= |
15448 | libname_spec='lib$name' | |
15449 | soname_spec= | |
15450 | shrext_cmds=".so" | |
15451 | postinstall_cmds= | |
15452 | postuninstall_cmds= | |
15453 | finish_cmds= | |
15454 | finish_eval= | |
15455 | shlibpath_var= | |
15456 | shlibpath_overrides_runpath=unknown | |
15457 | version_type=none | |
15458 | dynamic_linker="$host_os ld.so" | |
15459 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15460 | need_lib_prefix=unknown | |
15461 | hardcode_into_libs=no | |
15462 | ||
15463 | # when you set need_version to no, make sure it does not cause -set_version | |
15464 | # flags to be left without arguments | |
15465 | need_version=unknown | |
15466 | ||
15467 | case $host_os in | |
15468 | aix3*) | |
15469 | version_type=linux | |
15470 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15471 | shlibpath_var=LIBPATH | |
15472 | ||
15473 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15474 | soname_spec='${libname}${release}${shared_ext}$major' | |
15475 | ;; | |
15476 | ||
4f6bebc3 | 15477 | aix[4-9]*) |
1cf3d07d SE |
15478 | version_type=linux |
15479 | need_lib_prefix=no | |
15480 | need_version=no | |
15481 | hardcode_into_libs=yes | |
15482 | if test "$host_cpu" = ia64; then | |
15483 | # AIX 5 supports IA64 | |
15484 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15485 | shlibpath_var=LD_LIBRARY_PATH | |
15486 | else | |
15487 | # With GCC up to 2.95.x, collect2 would create an import file | |
15488 | # for dependence libraries. The import file would start with | |
15489 | # the line `#! .'. This would cause the generated library to | |
15490 | # depend on `.', always an invalid library. This was fixed in | |
15491 | # development snapshots of GCC prior to 3.0. | |
15492 | case $host_os in | |
15493 | aix4 | aix4.[01] | aix4.[01].*) | |
15494 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15495 | echo ' yes ' | |
15496 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15497 | : | |
15498 | else | |
15499 | can_build_shared=no | |
15500 | fi | |
15501 | ;; | |
15502 | esac | |
15503 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15504 | # soname into executable. Probably we can add versioning support to | |
15505 | # collect2, so additional links can be useful in future. | |
15506 | if test "$aix_use_runtimelinking" = yes; then | |
15507 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15508 | # instead of lib<name>.a to let people know that these are not | |
15509 | # typical AIX shared libraries. | |
15510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15511 | else | |
15512 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15513 | # and later when we are not doing run time linking. | |
15514 | library_names_spec='${libname}${release}.a $libname.a' | |
15515 | soname_spec='${libname}${release}${shared_ext}$major' | |
15516 | fi | |
15517 | shlibpath_var=LIBPATH | |
15518 | fi | |
15519 | ;; | |
15520 | ||
15521 | amigaos*) | |
d58dead8 PG |
15522 | case $host_cpu in |
15523 | powerpc) | |
15524 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15525 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15527 | ;; | |
15528 | m68k) | |
1cf3d07d SE |
15529 | library_names_spec='$libname.ixlibrary $libname.a' |
15530 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 15531 | 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 |
15532 | ;; |
15533 | esac | |
1cf3d07d SE |
15534 | ;; |
15535 | ||
15536 | beos*) | |
15537 | library_names_spec='${libname}${shared_ext}' | |
15538 | dynamic_linker="$host_os ld.so" | |
15539 | shlibpath_var=LIBRARY_PATH | |
15540 | ;; | |
15541 | ||
15542 | bsdi[45]*) | |
15543 | version_type=linux | |
15544 | need_version=no | |
15545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15546 | soname_spec='${libname}${release}${shared_ext}$major' | |
15547 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15548 | shlibpath_var=LD_LIBRARY_PATH | |
15549 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15550 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15551 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15552 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15553 | # libtool to hard-code these into programs | |
15554 | ;; | |
15555 | ||
d58dead8 | 15556 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
15557 | version_type=windows |
15558 | shrext_cmds=".dll" | |
15559 | need_version=no | |
15560 | need_lib_prefix=no | |
15561 | ||
d58dead8 PG |
15562 | case $GCC,$host_os in |
15563 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
15564 | library_names_spec='$libname.dll.a' |
15565 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15566 | postinstall_cmds='base_file=`basename \${file}`~ | |
15567 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15568 | dldir=$destdir/`dirname \$dlpath`~ | |
15569 | test -d \$dldir || mkdir -p \$dldir~ | |
15570 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15571 | chmod a+x \$dldir/$dlname~ | |
15572 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15573 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15574 | fi' | |
15575 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15576 | dlpath=$dir/\$dldll~ | |
15577 | $RM \$dlpath' | |
15578 | shlibpath_overrides_runpath=yes | |
15579 | ||
15580 | case $host_os in | |
15581 | cygwin*) | |
15582 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15583 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 15584 | |
1cf3d07d | 15585 | ;; |
d58dead8 | 15586 | mingw* | cegcc*) |
1cf3d07d SE |
15587 | # MinGW DLLs use traditional 'lib' prefix |
15588 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
15589 | ;; |
15590 | pw32*) | |
15591 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15592 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15593 | ;; | |
15594 | esac | |
15595 | ;; | |
15596 | ||
15597 | *) | |
15598 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15599 | ;; | |
15600 | esac | |
15601 | dynamic_linker='Win32 ld.exe' | |
15602 | # FIXME: first we should search . and the directory the executable is in | |
15603 | shlibpath_var=PATH | |
15604 | ;; | |
15605 | ||
15606 | darwin* | rhapsody*) | |
15607 | dynamic_linker="$host_os dyld" | |
15608 | version_type=darwin | |
15609 | need_lib_prefix=no | |
15610 | need_version=no | |
15611 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15612 | soname_spec='${libname}${release}${major}$shared_ext' | |
15613 | shlibpath_overrides_runpath=yes | |
15614 | shlibpath_var=DYLD_LIBRARY_PATH | |
15615 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15616 | ||
15617 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15618 | ;; | |
15619 | ||
15620 | dgux*) | |
15621 | version_type=linux | |
15622 | need_lib_prefix=no | |
15623 | need_version=no | |
15624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15625 | soname_spec='${libname}${release}${shared_ext}$major' | |
15626 | shlibpath_var=LD_LIBRARY_PATH | |
15627 | ;; | |
15628 | ||
1cf3d07d SE |
15629 | freebsd* | dragonfly*) |
15630 | # DragonFly does not have aout. When/if they implement a new | |
15631 | # versioning mechanism, adjust this. | |
15632 | if test -x /usr/bin/objformat; then | |
15633 | objformat=`/usr/bin/objformat` | |
15634 | else | |
15635 | case $host_os in | |
c6084f68 | 15636 | freebsd[23].*) objformat=aout ;; |
1cf3d07d SE |
15637 | *) objformat=elf ;; |
15638 | esac | |
15639 | fi | |
15640 | version_type=freebsd-$objformat | |
15641 | case $version_type in | |
15642 | freebsd-elf*) | |
15643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15644 | need_version=no | |
15645 | need_lib_prefix=no | |
15646 | ;; | |
15647 | freebsd-*) | |
15648 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15649 | need_version=yes | |
15650 | ;; | |
15651 | esac | |
15652 | shlibpath_var=LD_LIBRARY_PATH | |
15653 | case $host_os in | |
c6084f68 | 15654 | freebsd2.*) |
1cf3d07d SE |
15655 | shlibpath_overrides_runpath=yes |
15656 | ;; | |
15657 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15658 | shlibpath_overrides_runpath=yes | |
15659 | hardcode_into_libs=yes | |
15660 | ;; | |
15661 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15662 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15663 | shlibpath_overrides_runpath=no | |
15664 | hardcode_into_libs=yes | |
15665 | ;; | |
15666 | *) # from 4.6 on, and DragonFly | |
15667 | shlibpath_overrides_runpath=yes | |
15668 | hardcode_into_libs=yes | |
15669 | ;; | |
15670 | esac | |
15671 | ;; | |
15672 | ||
43e02a8a RW |
15673 | haiku*) |
15674 | version_type=linux | |
15675 | need_lib_prefix=no | |
15676 | need_version=no | |
15677 | dynamic_linker="$host_os runtime_loader" | |
15678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15679 | soname_spec='${libname}${release}${shared_ext}$major' | |
15680 | shlibpath_var=LIBRARY_PATH | |
15681 | shlibpath_overrides_runpath=yes | |
15682 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15683 | hardcode_into_libs=yes | |
15684 | ;; | |
15685 | ||
1cf3d07d SE |
15686 | hpux9* | hpux10* | hpux11*) |
15687 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15688 | # link against other versions. | |
15689 | version_type=sunos | |
15690 | need_lib_prefix=no | |
15691 | need_version=no | |
15692 | case $host_cpu in | |
15693 | ia64*) | |
15694 | shrext_cmds='.so' | |
15695 | hardcode_into_libs=yes | |
15696 | dynamic_linker="$host_os dld.so" | |
15697 | shlibpath_var=LD_LIBRARY_PATH | |
15698 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15700 | soname_spec='${libname}${release}${shared_ext}$major' | |
15701 | if test "X$HPUX_IA64_MODE" = X32; then | |
15702 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15703 | else | |
15704 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15705 | fi | |
15706 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15707 | ;; | |
15708 | hppa*64*) | |
15709 | shrext_cmds='.sl' | |
15710 | hardcode_into_libs=yes | |
15711 | dynamic_linker="$host_os dld.sl" | |
15712 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15713 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15715 | soname_spec='${libname}${release}${shared_ext}$major' | |
15716 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15717 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15718 | ;; | |
15719 | *) | |
15720 | shrext_cmds='.sl' | |
15721 | dynamic_linker="$host_os dld.sl" | |
15722 | shlibpath_var=SHLIB_PATH | |
15723 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
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 | ;; | |
15727 | esac | |
43e02a8a | 15728 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 15729 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
15730 | # or fails outright, so override atomically: |
15731 | install_override_mode=555 | |
1cf3d07d SE |
15732 | ;; |
15733 | ||
15734 | interix[3-9]*) | |
15735 | version_type=linux | |
15736 | need_lib_prefix=no | |
15737 | need_version=no | |
15738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15739 | soname_spec='${libname}${release}${shared_ext}$major' | |
15740 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15741 | shlibpath_var=LD_LIBRARY_PATH | |
15742 | shlibpath_overrides_runpath=no | |
15743 | hardcode_into_libs=yes | |
15744 | ;; | |
15745 | ||
15746 | irix5* | irix6* | nonstopux*) | |
15747 | case $host_os in | |
15748 | nonstopux*) version_type=nonstopux ;; | |
15749 | *) | |
15750 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15751 | version_type=linux | |
15752 | else | |
15753 | version_type=irix | |
15754 | fi ;; | |
15755 | esac | |
15756 | need_lib_prefix=no | |
15757 | need_version=no | |
15758 | soname_spec='${libname}${release}${shared_ext}$major' | |
15759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15760 | case $host_os in | |
15761 | irix5* | nonstopux*) | |
15762 | libsuff= shlibsuff= | |
15763 | ;; | |
15764 | *) | |
15765 | case $LD in # libtool.m4 will add one of these switches to LD | |
15766 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15767 | libsuff= shlibsuff= libmagic=32-bit;; | |
15768 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15769 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15770 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15771 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15772 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15773 | esac | |
15774 | ;; | |
15775 | esac | |
15776 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15777 | shlibpath_overrides_runpath=no | |
15778 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15779 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15780 | hardcode_into_libs=yes | |
15781 | ;; | |
15782 | ||
15783 | # No shared lib support for Linux oldld, aout, or coff. | |
15784 | linux*oldld* | linux*aout* | linux*coff*) | |
15785 | dynamic_linker=no | |
15786 | ;; | |
15787 | ||
15788 | # This must be Linux ELF. | |
e9085da5 MR |
15789 | |
15790 | # uclinux* changes (here and below) have been submitted to the libtool | |
15791 | # project, but have not yet been accepted: they are GCC-local changes | |
15792 | # for the time being. (See | |
15793 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
c0f8c22a | 15794 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
1cf3d07d SE |
15795 | version_type=linux |
15796 | need_lib_prefix=no | |
15797 | need_version=no | |
15798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15799 | soname_spec='${libname}${release}${shared_ext}$major' | |
15800 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15801 | shlibpath_var=LD_LIBRARY_PATH | |
15802 | shlibpath_overrides_runpath=no | |
baafc534 | 15803 | |
1cf3d07d | 15804 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 15805 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
5213506e | 15806 | $as_echo_n "(cached) " >&6 |
baafc534 RW |
15807 | else |
15808 | lt_cv_shlibpath_overrides_runpath=no | |
15809 | save_LDFLAGS=$LDFLAGS | |
15810 | save_libdir=$libdir | |
15811 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15812 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15813 | if test x$gcc_no_link = xyes; then | |
22e05272 | 15814 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 15815 | fi |
5213506e | 15816 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
15817 | program main |
15818 | ||
15819 | end | |
9cdc381b | 15820 | _ACEOF |
5213506e RW |
15821 | if ac_fn_fc_try_link "$LINENO"; then : |
15822 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 15823 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 15824 | fi |
9cdc381b | 15825 | fi |
5213506e RW |
15826 | rm -f core conftest.err conftest.$ac_objext \ |
15827 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
15828 | LDFLAGS=$save_LDFLAGS |
15829 | libdir=$save_libdir | |
15830 | ||
15831 | fi | |
15832 | ||
15833 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
15834 | |
15835 | # This implies no fast_install, which is unacceptable. | |
15836 | # Some rework will be needed to allow for fast_install | |
15837 | # before this can be enabled. | |
15838 | hardcode_into_libs=yes | |
15839 | ||
15840 | # Append ld.so.conf contents to the search path | |
15841 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 15842 | 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 |
15843 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15844 | fi | |
15845 | ||
15846 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15847 | # powerpc, because MkLinux only supported shared libraries with the | |
15848 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15849 | # most powerpc-linux boxes support dynamic linking these days and | |
15850 | # people can always --disable-shared, the test was removed, and we | |
15851 | # assume the GNU/Linux dynamic linker is in use. | |
15852 | dynamic_linker='GNU/Linux ld.so' | |
15853 | ;; | |
15854 | ||
15855 | netbsd*) | |
15856 | version_type=sunos | |
15857 | need_lib_prefix=no | |
15858 | need_version=no | |
15859 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15861 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15862 | dynamic_linker='NetBSD (a.out) ld.so' | |
15863 | else | |
15864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15865 | soname_spec='${libname}${release}${shared_ext}$major' | |
15866 | dynamic_linker='NetBSD ld.elf_so' | |
15867 | fi | |
15868 | shlibpath_var=LD_LIBRARY_PATH | |
15869 | shlibpath_overrides_runpath=yes | |
15870 | hardcode_into_libs=yes | |
15871 | ;; | |
15872 | ||
15873 | newsos6) | |
15874 | version_type=linux | |
15875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15876 | shlibpath_var=LD_LIBRARY_PATH | |
15877 | shlibpath_overrides_runpath=yes | |
15878 | ;; | |
15879 | ||
15880 | *nto* | *qnx*) | |
15881 | version_type=qnx | |
15882 | need_lib_prefix=no | |
15883 | need_version=no | |
15884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15885 | soname_spec='${libname}${release}${shared_ext}$major' | |
15886 | shlibpath_var=LD_LIBRARY_PATH | |
15887 | shlibpath_overrides_runpath=no | |
15888 | hardcode_into_libs=yes | |
15889 | dynamic_linker='ldqnx.so' | |
15890 | ;; | |
15891 | ||
15892 | openbsd*) | |
15893 | version_type=sunos | |
15894 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15895 | need_lib_prefix=no | |
15896 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15897 | case $host_os in | |
15898 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15899 | *) need_version=no ;; | |
15900 | esac | |
15901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15902 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15903 | shlibpath_var=LD_LIBRARY_PATH | |
15904 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15905 | case $host_os in | |
15906 | openbsd2.[89] | openbsd2.[89].*) | |
15907 | shlibpath_overrides_runpath=no | |
15908 | ;; | |
15909 | *) | |
15910 | shlibpath_overrides_runpath=yes | |
15911 | ;; | |
15912 | esac | |
15913 | else | |
15914 | shlibpath_overrides_runpath=yes | |
15915 | fi | |
15916 | ;; | |
15917 | ||
15918 | os2*) | |
15919 | libname_spec='$name' | |
15920 | shrext_cmds=".dll" | |
15921 | need_lib_prefix=no | |
15922 | library_names_spec='$libname${shared_ext} $libname.a' | |
15923 | dynamic_linker='OS/2 ld.exe' | |
15924 | shlibpath_var=LIBPATH | |
15925 | ;; | |
15926 | ||
15927 | osf3* | osf4* | osf5*) | |
15928 | version_type=osf | |
15929 | need_lib_prefix=no | |
15930 | need_version=no | |
15931 | soname_spec='${libname}${release}${shared_ext}$major' | |
15932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15933 | shlibpath_var=LD_LIBRARY_PATH | |
15934 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15935 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15936 | ;; | |
15937 | ||
15938 | rdos*) | |
15939 | dynamic_linker=no | |
15940 | ;; | |
15941 | ||
15942 | solaris*) | |
15943 | version_type=linux | |
15944 | need_lib_prefix=no | |
15945 | need_version=no | |
15946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15947 | soname_spec='${libname}${release}${shared_ext}$major' | |
15948 | shlibpath_var=LD_LIBRARY_PATH | |
15949 | shlibpath_overrides_runpath=yes | |
15950 | hardcode_into_libs=yes | |
15951 | # ldd complains unless libraries are executable | |
15952 | postinstall_cmds='chmod +x $lib' | |
15953 | ;; | |
15954 | ||
15955 | sunos4*) | |
15956 | version_type=sunos | |
15957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15958 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15959 | shlibpath_var=LD_LIBRARY_PATH | |
15960 | shlibpath_overrides_runpath=yes | |
15961 | if test "$with_gnu_ld" = yes; then | |
15962 | need_lib_prefix=no | |
15963 | fi | |
15964 | need_version=yes | |
15965 | ;; | |
15966 | ||
15967 | sysv4 | sysv4.3*) | |
15968 | version_type=linux | |
15969 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15970 | soname_spec='${libname}${release}${shared_ext}$major' | |
15971 | shlibpath_var=LD_LIBRARY_PATH | |
15972 | case $host_vendor in | |
15973 | sni) | |
15974 | shlibpath_overrides_runpath=no | |
15975 | need_lib_prefix=no | |
15976 | runpath_var=LD_RUN_PATH | |
15977 | ;; | |
15978 | siemens) | |
15979 | need_lib_prefix=no | |
15980 | ;; | |
15981 | motorola) | |
15982 | need_lib_prefix=no | |
15983 | need_version=no | |
15984 | shlibpath_overrides_runpath=no | |
15985 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15986 | ;; | |
15987 | esac | |
15988 | ;; | |
15989 | ||
15990 | sysv4*MP*) | |
15991 | if test -d /usr/nec ;then | |
15992 | version_type=linux | |
15993 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15994 | soname_spec='$libname${shared_ext}.$major' | |
15995 | shlibpath_var=LD_LIBRARY_PATH | |
15996 | fi | |
15997 | ;; | |
15998 | ||
15999 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
16000 | version_type=freebsd-elf | |
16001 | need_lib_prefix=no | |
16002 | need_version=no | |
16003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16004 | soname_spec='${libname}${release}${shared_ext}$major' | |
16005 | shlibpath_var=LD_LIBRARY_PATH | |
16006 | shlibpath_overrides_runpath=yes | |
16007 | hardcode_into_libs=yes | |
16008 | if test "$with_gnu_ld" = yes; then | |
16009 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16010 | else | |
16011 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16012 | case $host_os in | |
16013 | sco3.2v5*) | |
16014 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16015 | ;; | |
16016 | esac | |
16017 | fi | |
16018 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16019 | ;; | |
16020 | ||
16021 | tpf*) | |
16022 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16023 | version_type=linux | |
16024 | need_lib_prefix=no | |
16025 | need_version=no | |
d58dead8 | 16026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
16027 | shlibpath_var=LD_LIBRARY_PATH |
16028 | shlibpath_overrides_runpath=no | |
16029 | hardcode_into_libs=yes | |
16030 | ;; | |
16031 | ||
16032 | uts4*) | |
16033 | version_type=linux | |
16034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16035 | soname_spec='${libname}${release}${shared_ext}$major' | |
16036 | shlibpath_var=LD_LIBRARY_PATH | |
16037 | ;; | |
16038 | ||
16039 | *) | |
16040 | dynamic_linker=no | |
16041 | ;; | |
16042 | esac | |
5213506e RW |
16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
16044 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d SE |
16045 | test "$dynamic_linker" = no && can_build_shared=no |
16046 | ||
16047 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
16048 | if test "$GCC" = yes; then | |
16049 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9cdc381b | 16050 | fi |
9cdc381b | 16051 | |
d58dead8 PG |
16052 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16053 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
16054 | fi | |
16055 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
16056 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
16057 | fi | |
16058 | ||
9cdc381b | 16059 | |
1cf3d07d SE |
16060 | |
16061 | ||
16062 | ||
16063 | ||
16064 | ||
16065 | ||
16066 | ||
16067 | ||
16068 | ||
16069 | ||
16070 | ||
16071 | ||
16072 | ||
16073 | ||
16074 | ||
16075 | ||
16076 | ||
16077 | ||
16078 | ||
16079 | ||
16080 | ||
16081 | ||
16082 | ||
16083 | ||
16084 | ||
16085 | ||
16086 | ||
16087 | ||
16088 | ||
16089 | ||
16090 | ||
43e02a8a RW |
16091 | |
16092 | ||
1cf3d07d SE |
16093 | |
16094 | ||
16095 | ||
5213506e RW |
16096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
16097 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
16098 | hardcode_action_FC= |
16099 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
16100 | test -n "$runpath_var_FC" || | |
16101 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
16102 | ||
16103 | # We can hardcode non-existent directories. | |
16104 | if test "$hardcode_direct_FC" != no && | |
16105 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16106 | # have to relink, otherwise we might link with an installed library | |
16107 | # when we should be linking with a yet-to-be-installed one | |
16108 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
16109 | test "$hardcode_minus_L_FC" != no; then | |
16110 | # Linking always hardcodes the temporary library directory. | |
16111 | hardcode_action_FC=relink | |
16112 | else | |
16113 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
16114 | hardcode_action_FC=immediate | |
16115 | fi | |
16116 | else | |
16117 | # We cannot hardcode anything, or else we can only hardcode existing | |
16118 | # directories. | |
16119 | hardcode_action_FC=unsupported | |
9cdc381b | 16120 | fi |
5213506e RW |
16121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
16122 | $as_echo "$hardcode_action_FC" >&6; } | |
1cf3d07d SE |
16123 | |
16124 | if test "$hardcode_action_FC" = relink || | |
16125 | test "$inherit_rpath_FC" = yes; then | |
16126 | # Fast installation is not supported | |
16127 | enable_fast_install=no | |
16128 | elif test "$shlibpath_overrides_runpath" = yes || | |
16129 | test "$enable_shared" = no; then | |
16130 | # Fast installation is not necessary | |
16131 | enable_fast_install=needless | |
9cdc381b BD |
16132 | fi |
16133 | ||
1cf3d07d SE |
16134 | |
16135 | ||
16136 | ||
16137 | ||
16138 | ||
16139 | ||
16140 | fi # test -n "$compiler" | |
16141 | ||
d58dead8 | 16142 | GCC=$lt_save_GCC |
1cf3d07d SE |
16143 | CC="$lt_save_CC" |
16144 | fi # test "$_lt_disable_FC" != yes | |
16145 | ||
dd46a4de | 16146 | ac_ext=c |
96b8a615 AJ |
16147 | ac_cpp='$CPP $CPPFLAGS' |
16148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1cf3d07d SE |
16151 | |
16152 | ||
16153 | ||
16154 | # extra LD Flags which are required for targets | |
16155 | case "${host}" in | |
16156 | *-darwin*) | |
16157 | # Darwin needs -single_module when linking libgfortran | |
16158 | extra_ldflags_libgfortran=-Wl,-single_module | |
16159 | ;; | |
16160 | esac | |
16161 | ||
16162 | ||
16163 | # We need a working compiler at that point, otherwise give a clear | |
16164 | # error message and bail out. | |
16165 | ||
5213506e RW |
16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16167 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16168 | ac_ext=${ac_fc_srcext-f} | |
16169 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16170 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
1cf3d07d SE |
16171 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16172 | ||
5213506e | 16173 | cat > conftest.$ac_ext <<_ACEOF |
1cf3d07d SE |
16174 | |
16175 | program foo | |
16176 | real, parameter :: bar = sin (12.34 / 2.5) | |
16177 | end program foo | |
6de9cd9a | 16178 | _ACEOF |
5213506e RW |
16179 | if ac_fn_fc_try_compile "$LINENO"; then : |
16180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16181 | $as_echo "yes" >&6; } | |
6de9cd9a | 16182 | else |
5213506e RW |
16183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16184 | $as_echo "no" >&6; } | |
22e05272 | 16185 | 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 | 16186 | |
96b8a615 | 16187 | fi |
5213506e | 16188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
16189 | ac_ext=c |
16190 | ac_cpp='$CPP $CPPFLAGS' | |
16191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
96b8a615 | 16194 | |
96b8a615 | 16195 | |
1cf3d07d | 16196 | |
5213506e RW |
16197 | # Check whether --enable-largefile was given. |
16198 | if test "${enable_largefile+set}" = set; then : | |
16199 | enableval=$enable_largefile; | |
16200 | fi | |
1cf3d07d | 16201 | |
1cf3d07d SE |
16202 | if test "$enable_largefile" != no; then |
16203 | ||
5213506e RW |
16204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16205 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 16206 | if ${ac_cv_sys_largefile_CC+:} false; then : |
5213506e | 16207 | $as_echo_n "(cached) " >&6 |
96b8a615 | 16208 | else |
1cf3d07d SE |
16209 | ac_cv_sys_largefile_CC=no |
16210 | if test "$GCC" != yes; then | |
16211 | ac_save_CC=$CC | |
16212 | while :; do | |
5213506e RW |
16213 | # IRIX 6.2 and later do not support large files by default, |
16214 | # so use the C compiler's -n32 option if that helps. | |
16215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
96b8a615 | 16216 | /* end confdefs.h. */ |
1cf3d07d SE |
16217 | #include <sys/types.h> |
16218 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16219 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16220 | since some C++ compilers masquerading as C compilers | |
16221 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16222 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16223 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16224 | && LARGE_OFF_T % 2147483647 == 1) | |
16225 | ? 1 : -1]; | |
4c4b3eb0 PB |
16226 | int |
16227 | main () | |
16228 | { | |
4c4b3eb0 PB |
16229 | |
16230 | ; | |
16231 | return 0; | |
16232 | } | |
16233 | _ACEOF | |
5213506e RW |
16234 | if ac_fn_c_try_compile "$LINENO"; then : |
16235 | break | |
4c4b3eb0 | 16236 | fi |
5213506e RW |
16237 | rm -f core conftest.err conftest.$ac_objext |
16238 | CC="$CC -n32" | |
16239 | if ac_fn_c_try_compile "$LINENO"; then : | |
16240 | ac_cv_sys_largefile_CC=' -n32'; break | |
16241 | fi | |
16242 | rm -f core conftest.err conftest.$ac_objext | |
16243 | break | |
16244 | done | |
16245 | CC=$ac_save_CC | |
16246 | rm -f conftest.$ac_ext | |
16247 | fi | |
16248 | fi | |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16250 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16251 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16252 | CC=$CC$ac_cv_sys_largefile_CC | |
16253 | fi | |
4c4b3eb0 | 16254 | |
5213506e RW |
16255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16256 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 16257 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
5213506e RW |
16258 | $as_echo_n "(cached) " >&6 |
16259 | else | |
16260 | while :; do | |
16261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16262 | /* end confdefs.h. */ |
5213506e RW |
16263 | #include <sys/types.h> |
16264 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16265 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16266 | since some C++ compilers masquerading as C compilers | |
16267 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16268 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16269 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16270 | && LARGE_OFF_T % 2147483647 == 1) | |
16271 | ? 1 : -1]; | |
4c4b3eb0 PB |
16272 | int |
16273 | main () | |
16274 | { | |
4c4b3eb0 PB |
16275 | |
16276 | ; | |
16277 | return 0; | |
16278 | } | |
16279 | _ACEOF | |
5213506e RW |
16280 | if ac_fn_c_try_compile "$LINENO"; then : |
16281 | ac_cv_sys_file_offset_bits=no; break | |
16282 | fi | |
16283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16285 | /* end confdefs.h. */ |
5213506e RW |
16286 | #define _FILE_OFFSET_BITS 64 |
16287 | #include <sys/types.h> | |
16288 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16289 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16290 | since some C++ compilers masquerading as C compilers | |
16291 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16292 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16293 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16294 | && LARGE_OFF_T % 2147483647 == 1) | |
16295 | ? 1 : -1]; | |
4c4b3eb0 PB |
16296 | int |
16297 | main () | |
16298 | { | |
4c4b3eb0 PB |
16299 | |
16300 | ; | |
16301 | return 0; | |
16302 | } | |
16303 | _ACEOF | |
5213506e RW |
16304 | if ac_fn_c_try_compile "$LINENO"; then : |
16305 | ac_cv_sys_file_offset_bits=64; break | |
4c4b3eb0 | 16306 | fi |
5213506e RW |
16307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16308 | ac_cv_sys_file_offset_bits=unknown | |
16309 | break | |
16310 | done | |
4c4b3eb0 | 16311 | fi |
5213506e RW |
16312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16313 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16314 | case $ac_cv_sys_file_offset_bits in #( | |
16315 | no | unknown) ;; | |
16316 | *) | |
16317 | cat >>confdefs.h <<_ACEOF | |
16318 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4c4b3eb0 | 16319 | _ACEOF |
5213506e RW |
16320 | ;; |
16321 | esac | |
16322 | rm -rf conftest* | |
16323 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16325 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 16326 | if ${ac_cv_sys_large_files+:} false; then : |
5213506e RW |
16327 | $as_echo_n "(cached) " >&6 |
16328 | else | |
16329 | while :; do | |
16330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16331 | /* end confdefs.h. */ |
5213506e RW |
16332 | #include <sys/types.h> |
16333 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16334 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16335 | since some C++ compilers masquerading as C compilers | |
16336 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16337 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16338 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16339 | && LARGE_OFF_T % 2147483647 == 1) | |
16340 | ? 1 : -1]; | |
4c4b3eb0 PB |
16341 | int |
16342 | main () | |
16343 | { | |
4c4b3eb0 PB |
16344 | |
16345 | ; | |
16346 | return 0; | |
16347 | } | |
16348 | _ACEOF | |
5213506e RW |
16349 | if ac_fn_c_try_compile "$LINENO"; then : |
16350 | ac_cv_sys_large_files=no; break | |
4c4b3eb0 | 16351 | fi |
5213506e RW |
16352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4c4b3eb0 | 16354 | /* end confdefs.h. */ |
5213506e RW |
16355 | #define _LARGE_FILES 1 |
16356 | #include <sys/types.h> | |
16357 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16358 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16359 | since some C++ compilers masquerading as C compilers | |
16360 | incorrectly reject 9223372036854775807. */ | |
e9085da5 | 16361 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
5213506e RW |
16362 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16363 | && LARGE_OFF_T % 2147483647 == 1) | |
16364 | ? 1 : -1]; | |
4c4b3eb0 PB |
16365 | int |
16366 | main () | |
16367 | { | |
16368 | ||
4c4b3eb0 PB |
16369 | ; |
16370 | return 0; | |
16371 | } | |
16372 | _ACEOF | |
5213506e RW |
16373 | if ac_fn_c_try_compile "$LINENO"; then : |
16374 | ac_cv_sys_large_files=1; break | |
4c4b3eb0 | 16375 | fi |
5213506e RW |
16376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16377 | ac_cv_sys_large_files=unknown | |
16378 | break | |
16379 | done | |
38d24731 | 16380 | fi |
5213506e RW |
16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16382 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16383 | case $ac_cv_sys_large_files in #( | |
16384 | no | unknown) ;; | |
16385 | *) | |
4c4b3eb0 | 16386 | cat >>confdefs.h <<_ACEOF |
5213506e | 16387 | #define _LARGE_FILES $ac_cv_sys_large_files |
4c4b3eb0 | 16388 | _ACEOF |
5213506e RW |
16389 | ;; |
16390 | esac | |
16391 | rm -rf conftest* | |
16392 | fi | |
22e05272 JM |
16393 | |
16394 | ||
4c4b3eb0 PB |
16395 | fi |
16396 | ||
44720bef JB |
16397 | |
16398 | # Types | |
5213506e | 16399 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
22e05272 | 16400 | if test "x$ac_cv_type_off_t" = xyes; then : |
4c4b3eb0 | 16401 | |
5213506e | 16402 | else |
4c4b3eb0 | 16403 | |
5213506e RW |
16404 | cat >>confdefs.h <<_ACEOF |
16405 | #define off_t long int | |
16406 | _ACEOF | |
4c4b3eb0 | 16407 | |
44720bef JB |
16408 | fi |
16409 | ||
16410 | ||
16411 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
22e05272 | 16412 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
44720bef JB |
16413 | |
16414 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16415 | ||
16416 | else | |
16417 | for ac_type in 'int' 'long int' 'long long int'; do | |
16418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16419 | /* end confdefs.h. */ | |
16420 | $ac_includes_default | |
16421 | int | |
16422 | main () | |
16423 | { | |
16424 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16425 | test_array [0] = 0; |
16426 | return test_array [0]; | |
44720bef JB |
16427 | |
16428 | ; | |
16429 | return 0; | |
16430 | } | |
16431 | _ACEOF | |
16432 | if ac_fn_c_try_compile "$LINENO"; then : | |
16433 | ||
16434 | cat >>confdefs.h <<_ACEOF | |
16435 | #define intptr_t $ac_type | |
16436 | _ACEOF | |
16437 | ||
16438 | ac_type= | |
16439 | fi | |
16440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16441 | test -z "$ac_type" && break | |
16442 | done | |
16443 | fi | |
16444 | ||
16445 | ||
16446 | ||
16447 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
22e05272 | 16448 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
44720bef JB |
16449 | |
16450 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16451 | ||
16452 | else | |
16453 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16454 | 'unsigned long long int'; do | |
16455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16456 | /* end confdefs.h. */ | |
16457 | $ac_includes_default | |
16458 | int | |
16459 | main () | |
16460 | { | |
16461 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
22e05272 JM |
16462 | test_array [0] = 0; |
16463 | return test_array [0]; | |
44720bef JB |
16464 | |
16465 | ; | |
16466 | return 0; | |
16467 | } | |
16468 | _ACEOF | |
16469 | if ac_fn_c_try_compile "$LINENO"; then : | |
16470 | ||
16471 | cat >>confdefs.h <<_ACEOF | |
16472 | #define uintptr_t $ac_type | |
16473 | _ACEOF | |
16474 | ||
16475 | ac_type= | |
16476 | fi | |
16477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16478 | test -z "$ac_type" && break | |
16479 | done | |
16480 | fi | |
16481 | ||
16482 | ||
16483 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
22e05272 | 16484 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
44720bef JB |
16485 | |
16486 | cat >>confdefs.h <<_ACEOF | |
16487 | #define HAVE_PTRDIFF_T 1 | |
16488 | _ACEOF | |
16489 | ||
16490 | ||
4c4b3eb0 PB |
16491 | fi |
16492 | ||
4c4b3eb0 | 16493 | |
74544378 | 16494 | # check header files (we assume C89 is available, so don't check for that) |
df65f093 | 16495 | |
5213506e | 16496 | |
df65f093 | 16497 | |
74544378 JB |
16498 | for ac_header in $ac_header_list |
16499 | do : | |
16500 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16501 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16502 | " | |
22e05272 | 16503 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
74544378 JB |
16504 | cat >>confdefs.h <<_ACEOF |
16505 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
df65f093 SK |
16506 | _ACEOF |
16507 | ||
5213506e | 16508 | fi |
df65f093 | 16509 | |
74544378 | 16510 | done |
864c28e1 RO |
16511 | |
16512 | ||
df65f093 | 16513 | |
5213506e | 16514 | |
5213506e | 16515 | |
df65f093 | 16516 | |
5213506e | 16517 | |
5213506e | 16518 | |
df65f093 | 16519 | |
df65f093 | 16520 | |
df65f093 SK |
16521 | |
16522 | ||
df65f093 | 16523 | |
df65f093 | 16524 | |
df65f093 SK |
16525 | |
16526 | ||
df65f093 SK |
16527 | |
16528 | ||
41724e6a | 16529 | |
2cbcdeba | 16530 | |
3969c39f | 16531 | |
1fb2002d FXC |
16532 | |
16533 | ||
32aa3bff | 16534 | |
f77b6ca3 | 16535 | |
f77b6ca3 | 16536 | |
f77b6ca3 | 16537 | |
f77b6ca3 | 16538 | |
f77b6ca3 | 16539 | |
f77b6ca3 | 16540 | |
fa86f4f9 TB |
16541 | |
16542 | ||
9cbecd06 JB |
16543 | |
16544 | ||
edaaef60 JB |
16545 | |
16546 | ||
f77b6ca3 | 16547 | |
f77b6ca3 | 16548 | |
6de9cd9a | 16549 | |
c13e029b | 16550 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
6de9cd9a | 16551 | |
c13e029b PB |
16552 | acx_cv_header_stdint=stddef.h |
16553 | acx_cv_header_stdint_kind="(already complete)" | |
16554 | for i in stdint.h $inttype_headers; do | |
16555 | unset ac_cv_type_uintptr_t | |
16556 | unset ac_cv_type_uintmax_t | |
16557 | unset ac_cv_type_int_least32_t | |
16558 | unset ac_cv_type_int_fast32_t | |
16559 | unset ac_cv_type_uint64_t | |
16560 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16561 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16562 | #include <$i> | |
16563 | " | |
22e05272 | 16564 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c13e029b | 16565 | acx_cv_header_stdint=$i |
5213506e | 16566 | else |
c13e029b | 16567 | continue |
5213506e | 16568 | fi |
6de9cd9a | 16569 | |
c13e029b PB |
16570 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16571 | #include <$i> | |
16572 | " | |
22e05272 | 16573 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
96b8a615 | 16574 | |
5213506e | 16575 | else |
c13e029b | 16576 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16577 | fi |
96b8a615 | 16578 | |
c13e029b PB |
16579 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16580 | #include <$i> | |
16581 | " | |
22e05272 | 16582 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
c13e029b | 16583 | |
f77b6ca3 | 16584 | else |
c13e029b | 16585 | acx_cv_header_stdint_kind="(mostly complete)" |
5213506e | 16586 | fi |
5213506e | 16587 | |
c13e029b PB |
16588 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16589 | #include <$i> | |
16590 | " | |
22e05272 | 16591 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f77b6ca3 | 16592 | |
c13e029b PB |
16593 | else |
16594 | acx_cv_header_stdint_kind="(mostly complete)" | |
16595 | fi | |
d72a3ac1 | 16596 | |
c13e029b PB |
16597 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16598 | #include <$i> | |
16599 | " | |
22e05272 | 16600 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
d72a3ac1 | 16601 | |
5213506e | 16602 | else |
c13e029b PB |
16603 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16604 | fi | |
f77b6ca3 | 16605 | |
c13e029b PB |
16606 | break |
16607 | done | |
16608 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16609 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16610 | for i in stdint.h $inttype_headers; do | |
16611 | unset ac_cv_type_uintptr_t | |
16612 | unset ac_cv_type_uint32_t | |
16613 | unset ac_cv_type_uint64_t | |
16614 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16615 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16616 | #include <$i> | |
16617 | " | |
22e05272 | 16618 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c13e029b PB |
16619 | acx_cv_header_stdint=$i |
16620 | else | |
16621 | continue | |
5213506e | 16622 | fi |
f77b6ca3 | 16623 | |
c13e029b PB |
16624 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16625 | #include <$i> | |
16626 | " | |
22e05272 | 16627 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
8845001b | 16628 | |
c13e029b | 16629 | fi |
185d7d97 | 16630 | |
c13e029b PB |
16631 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16632 | #include <$i> | |
16633 | " | |
22e05272 | 16634 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
185d7d97 | 16635 | |
c13e029b | 16636 | fi |
35059811 | 16637 | |
c13e029b PB |
16638 | break |
16639 | done | |
16640 | fi | |
16641 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16642 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16643 | for i in sys/types.h $inttype_headers; do | |
16644 | unset ac_cv_type_u_int32_t | |
16645 | unset ac_cv_type_u_int64_t | |
16646 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16647 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16648 | #include <$i> | |
16649 | " | |
22e05272 | 16650 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c13e029b | 16651 | acx_cv_header_stdint=$i |
d72a3ac1 | 16652 | else |
c13e029b PB |
16653 | continue |
16654 | fi | |
a119fc1c | 16655 | |
c13e029b PB |
16656 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16657 | #include <$i> | |
16658 | " | |
22e05272 | 16659 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
a119fc1c | 16660 | |
c13e029b | 16661 | fi |
a119fc1c | 16662 | |
c13e029b PB |
16663 | break |
16664 | done | |
a119fc1c | 16665 | fi |
c13e029b PB |
16666 | if test "$acx_cv_header_stdint" = stddef.h; then |
16667 | acx_cv_header_stdint_kind="(using manual detection)" | |
5213506e | 16668 | fi |
a119fc1c | 16669 | |
c13e029b PB |
16670 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16671 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16672 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16673 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16674 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
a119fc1c | 16675 | |
c13e029b | 16676 | # ----------------- Summarize what we found so far |
5213506e | 16677 | |
c13e029b PB |
16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16679 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
a119fc1c | 16680 | |
c13e029b PB |
16681 | case `$as_basename -- gstdint.h || |
16682 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16683 | Xgstdint.h : 'X\(//\)$' \| \ | |
16684 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16685 | $as_echo X/gstdint.h | | |
16686 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16687 | s//\1/ | |
16688 | q | |
16689 | } | |
16690 | /^X\/\(\/\/\)$/{ | |
16691 | s//\1/ | |
16692 | q | |
16693 | } | |
16694 | /^X\/\(\/\).*/{ | |
16695 | s//\1/ | |
16696 | q | |
16697 | } | |
16698 | s/.*/./; q'` in | |
16699 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16700 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16701 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16702 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16703 | *) ;; | |
16704 | esac | |
a119fc1c | 16705 | |
c13e029b PB |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16707 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
a63a0959 | 16708 | |
c13e029b | 16709 | # ----------------- done included file, check C basic types -------- |
868d75db | 16710 | |
c13e029b PB |
16711 | # Lacking an uintptr_t? Test size of void * |
16712 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16713 | stddef.h:* | *:no) # 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 void *" >&5 | |
16718 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16719 | if ${ac_cv_sizeof_void_p+:} false; then : |
c13e029b PB |
16720 | $as_echo_n "(cached) " >&6 |
16721 | else | |
16722 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
868d75db | 16723 | |
c13e029b PB |
16724 | else |
16725 | if test "$ac_cv_type_void_p" = 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 (void *) |
16729 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16730 | else |
16731 | ac_cv_sizeof_void_p=0 | |
16732 | fi | |
16733 | fi | |
d72a3ac1 | 16734 | |
c13e029b PB |
16735 | fi |
16736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16737 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d72a3ac1 | 16738 | |
868d75db FXC |
16739 | |
16740 | ||
d72a3ac1 | 16741 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16742 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
d72a3ac1 | 16743 | _ACEOF |
d72a3ac1 | 16744 | |
c13e029b PB |
16745 | ;; |
16746 | esac | |
d72a3ac1 | 16747 | |
c13e029b PB |
16748 | # Lacking an uint64_t? Test size of long |
16749 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16750 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16751 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16752 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16753 | # This bug is HP SR number 8606223364. | |
16754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16755 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16756 | if ${ac_cv_sizeof_long+:} false; then : |
5213506e RW |
16757 | $as_echo_n "(cached) " >&6 |
16758 | else | |
c13e029b | 16759 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
d72a3ac1 | 16760 | |
7f483eec | 16761 | else |
c13e029b PB |
16762 | if test "$ac_cv_type_long" = yes; then |
16763 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16765 | as_fn_error 77 "cannot compute sizeof (long) |
16766 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16767 | else |
16768 | ac_cv_sizeof_long=0 | |
16769 | fi | |
5213506e | 16770 | fi |
7f483eec | 16771 | |
c13e029b PB |
16772 | fi |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16774 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
d72a3ac1 | 16775 | |
7f483eec | 16776 | |
d72a3ac1 PB |
16777 | |
16778 | cat >>confdefs.h <<_ACEOF | |
c13e029b | 16779 | #define SIZEOF_LONG $ac_cv_sizeof_long |
d72a3ac1 | 16780 | _ACEOF |
7f483eec | 16781 | |
c13e029b PB |
16782 | ;; |
16783 | esac | |
29e86cb0 | 16784 | |
c13e029b PB |
16785 | if test $acx_cv_header_stdint = stddef.h; then |
16786 | # Lacking a good header? Test size of everything and deduce all types. | |
16787 | # The cast to long int works around a bug in the HP C Compiler | |
16788 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16789 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16790 | # This bug is HP SR number 8606223364. | |
16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16792 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16793 | if ${ac_cv_sizeof_int+:} false; then : |
c13e029b PB |
16794 | $as_echo_n "(cached) " >&6 |
16795 | else | |
16796 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
6422c112 | 16797 | |
c13e029b PB |
16798 | else |
16799 | if test "$ac_cv_type_int" = yes; then | |
16800 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16801 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16802 | as_fn_error 77 "cannot compute sizeof (int) |
16803 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16804 | else |
16805 | ac_cv_sizeof_int=0 | |
16806 | fi | |
16807 | fi | |
d8163f5c | 16808 | |
c13e029b PB |
16809 | fi |
16810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16811 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
2515e5a7 FXC |
16812 | |
16813 | ||
868d75db | 16814 | |
d72a3ac1 | 16815 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16816 | #define SIZEOF_INT $ac_cv_sizeof_int |
d72a3ac1 PB |
16817 | _ACEOF |
16818 | ||
d72a3ac1 | 16819 | |
c13e029b PB |
16820 | # The cast to long int works around a bug in the HP C Compiler |
16821 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16822 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16823 | # This bug is HP SR number 8606223364. | |
16824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16825 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16826 | if ${ac_cv_sizeof_short+:} false; then : |
c13e029b PB |
16827 | $as_echo_n "(cached) " >&6 |
16828 | else | |
16829 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
d72a3ac1 | 16830 | |
c13e029b PB |
16831 | else |
16832 | if test "$ac_cv_type_short" = yes; then | |
16833 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16835 | as_fn_error 77 "cannot compute sizeof (short) |
16836 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16837 | else |
16838 | ac_cv_sizeof_short=0 | |
16839 | fi | |
16840 | fi | |
d72a3ac1 | 16841 | |
c13e029b PB |
16842 | fi |
16843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16844 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
d72a3ac1 PB |
16845 | |
16846 | ||
16847 | ||
c13e029b PB |
16848 | cat >>confdefs.h <<_ACEOF |
16849 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16850 | _ACEOF | |
d72a3ac1 PB |
16851 | |
16852 | ||
c13e029b PB |
16853 | # The cast to long int works around a bug in the HP C Compiler |
16854 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16855 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16856 | # This bug is HP SR number 8606223364. | |
16857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16858 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16859 | if ${ac_cv_sizeof_char+:} false; then : |
c13e029b PB |
16860 | $as_echo_n "(cached) " >&6 |
16861 | else | |
16862 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
d72a3ac1 | 16863 | |
c13e029b PB |
16864 | else |
16865 | if test "$ac_cv_type_char" = yes; then | |
16866 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16868 | as_fn_error 77 "cannot compute sizeof (char) |
16869 | See \`config.log' for more details" "$LINENO" 5; } | |
c13e029b PB |
16870 | else |
16871 | ac_cv_sizeof_char=0 | |
16872 | fi | |
16873 | fi | |
d72a3ac1 | 16874 | |
c13e029b PB |
16875 | fi |
16876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16877 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
d72a3ac1 PB |
16878 | |
16879 | ||
d72a3ac1 | 16880 | |
5213506e | 16881 | cat >>confdefs.h <<_ACEOF |
c13e029b | 16882 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
868d75db | 16883 | _ACEOF |
868d75db | 16884 | |
868d75db | 16885 | |
2017c370 | 16886 | |
c13e029b PB |
16887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16888 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16889 | case "$ac_cv_sizeof_char" in | |
16890 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16891 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16892 | esac |
16893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16894 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16895 | ||
16896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16897 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16898 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16899 | 2:*) acx_cv_type_int16_t=int ;; | |
16900 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16901 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16902 | esac |
16903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16904 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16905 | ||
16906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16907 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16908 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16909 | 4:*) acx_cv_type_int32_t=int ;; | |
16910 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 16911 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c13e029b PB |
16912 | esac |
16913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16914 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
5213506e RW |
16915 | fi |
16916 | ||
c13e029b | 16917 | # These tests are here to make the output prettier |
d72a3ac1 | 16918 | |
c13e029b PB |
16919 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16920 | case "$ac_cv_sizeof_long" in | |
16921 | 8) acx_cv_type_int64_t=long ;; | |
16922 | esac | |
16923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16924 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16926 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16927 | fi | |
16928 | ||
16929 | # Now we can use the above types | |
16930 | ||
16931 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16933 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16934 | case $ac_cv_sizeof_void_p in | |
16935 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16936 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16937 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 16938 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c13e029b PB |
16939 | esac |
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16941 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16942 | fi | |
d72a3ac1 | 16943 | |
c13e029b | 16944 | # ----------------- done all checks, emit header ------------- |
5213506e | 16945 | ac_config_commands="$ac_config_commands gstdint.h" |
2017c370 | 16946 | |
2017c370 | 16947 | |
5213506e RW |
16948 | |
16949 | ||
16950 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
22e05272 | 16951 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
5213506e RW |
16952 | |
16953 | cat >>confdefs.h <<_ACEOF | |
16954 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
2017c370 | 16955 | _ACEOF |
2017c370 | 16956 | |
5213506e | 16957 | |
2017c370 | 16958 | fi |
5213506e | 16959 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
22e05272 | 16960 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
5213506e RW |
16961 | |
16962 | cat >>confdefs.h <<_ACEOF | |
16963 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
2017c370 JB |
16964 | _ACEOF |
16965 | ||
5213506e | 16966 | |
2017c370 | 16967 | fi |
5213506e | 16968 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
22e05272 | 16969 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
2017c370 | 16970 | |
5213506e RW |
16971 | cat >>confdefs.h <<_ACEOF |
16972 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16973 | _ACEOF | |
868d75db FXC |
16974 | |
16975 | ||
f02d008e | 16976 | fi |
5213506e RW |
16977 | |
16978 | ||
bd459d0b JG |
16979 | case "${host}--x${with_newlib}" in |
16980 | mips*--xyes) | |
16981 | hardwire_newlib=1;; | |
d3ca2257 NS |
16982 | nvptx*--xyes) |
16983 | hardwire_newlib=1;; | |
bd459d0b JG |
16984 | esac |
16985 | ||
5213506e | 16986 | # Check for library functions. |
bd459d0b | 16987 | if test "${hardwire_newlib:-0}" -eq 1; then |
b4005c71 SE |
16988 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
16989 | # may not work correctly, because the compiler may not be able to | |
16990 | # link executables. | |
16991 | ||
16992 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
16993 | ||
16994 | ||
16995 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
16996 | ||
16997 | ||
b4005c71 SE |
16998 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
16999 | ||
17000 | ||
b4005c71 SE |
17001 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
17002 | ||
17003 | ||
17004 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
17005 | ||
17006 | ||
17007 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
17008 | ||
cb83df66 | 17009 | |
ebfedee6 HPN |
17010 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
17011 | ||
17012 | ||
17013 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
17014 | ||
17015 | ||
cb83df66 SE |
17016 | # At some point, we should differentiate between architectures |
17017 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
17018 | # which don't. For the time being, punt. | |
17019 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
17020 | ||
17021 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
17022 | ||
17023 | fi | |
b4005c71 | 17024 | else |
f77b6ca3 | 17025 | |
f77b6ca3 | 17026 | |
74544378 JB |
17027 | |
17028 | for ac_func in $ac_func_list | |
5213506e RW |
17029 | do : |
17030 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17031 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 17032 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5213506e RW |
17033 | cat >>confdefs.h <<_ACEOF |
17034 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17035 | _ACEOF | |
f77b6ca3 | 17036 | |
5213506e RW |
17037 | fi |
17038 | done | |
f77b6ca3 | 17039 | |
f77b6ca3 | 17040 | |
5213506e | 17041 | |
96b8a615 | 17042 | |
5213506e | 17043 | |
5213506e | 17044 | |
5213506e | 17045 | |
6de9cd9a | 17046 | |
6de9cd9a | 17047 | |
b6e7a3d1 | 17048 | |
b6e7a3d1 | 17049 | |
6de9cd9a | 17050 | |
4c0c6b9f | 17051 | |
4c0c6b9f | 17052 | |
4c0c6b9f | 17053 | |
4c0c6b9f | 17054 | |
4c0c6b9f | 17055 | |
4c0c6b9f | 17056 | |
4c0c6b9f | 17057 | |
4c0c6b9f | 17058 | |
868d75db | 17059 | |
868d75db | 17060 | |
868d75db | 17061 | |
868d75db | 17062 | |
4c0c6b9f | 17063 | |
4c0c6b9f | 17064 | |
4c0c6b9f | 17065 | |
4c0c6b9f | 17066 | |
6422c112 | 17067 | |
6422c112 | 17068 | |
6422c112 | 17069 | |
74544378 JB |
17070 | |
17071 | ||
17072 | ||
17073 | ||
17074 | ||
17075 | ||
17076 | ||
17077 | ||
17078 | ||
17079 | ||
17080 | ||
17081 | ||
17082 | ||
17083 | ||
17084 | ||
17085 | ||
17086 | ||
17087 | ||
17088 | ||
17089 | ||
17090 | ||
17091 | ||
17092 | ||
17093 | ||
17094 | ||
17095 | ||
17096 | ||
17097 | ||
17098 | ||
17099 | ||
17100 | ||
17101 | ||
17102 | ||
17103 | ||
17104 | ||
17105 | ||
17106 | ||
17107 | ||
17108 | ||
17109 | ||
17110 | ||
17111 | ||
17112 | ||
17113 | ||
17114 | ||
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | ||
17120 | ||
17121 | ||
17122 | ||
17123 | ||
17124 | ||
17125 | ||
68ee9c08 | 17126 | |
227e441f | 17127 | |
9cbecd06 JB |
17128 | |
17129 | ||
4269f19c JB |
17130 | |
17131 | ||
b5b58343 UW |
17132 | |
17133 | ||
70480968 JB |
17134 | |
17135 | ||
d66d6d15 JB |
17136 | |
17137 | ||
edaaef60 JB |
17138 | |
17139 | ||
ef536b41 JB |
17140 | |
17141 | ||
17142 | ||
17143 | ||
f8886038 JB |
17144 | |
17145 | ||
227e441f | 17146 | |
8ecd1c0d TB |
17147 | |
17148 | ||
b4005c71 | 17149 | fi |
74544378 | 17150 | |
4179e59a TB |
17151 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
17152 | ||
17153 | ac_save_CFLAGS="$CFLAGS" | |
17154 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17156 | /* end confdefs.h. */ | |
17157 | #define _GNU_SOURCE 1 | |
17158 | #include <string.h> | |
17159 | #include <locale.h> | |
17160 | int | |
17161 | main () | |
17162 | { | |
17163 | char s[128]; strerror_r(5, s, 128); | |
17164 | ; | |
17165 | return 0; | |
17166 | } | |
17167 | _ACEOF | |
17168 | if ac_fn_c_try_compile "$LINENO"; then : | |
17169 | ||
17170 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17171 | ||
17172 | fi | |
17173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17174 | CFLAGS="$ac_save_CFLAGS" | |
17175 | ||
17176 | ac_save_CFLAGS="$CFLAGS" | |
17177 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17179 | /* end confdefs.h. */ | |
17180 | #define _GNU_SOURCE 1 | |
17181 | #include <string.h> | |
17182 | #include <locale.h> | |
17183 | int | |
17184 | main () | |
17185 | { | |
17186 | char s[128]; strerror_r(5, s); | |
17187 | ; | |
17188 | return 0; | |
17189 | } | |
17190 | _ACEOF | |
17191 | if ac_fn_c_try_compile "$LINENO"; then : | |
17192 | ||
17193 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17194 | ||
17195 | fi | |
17196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17197 | CFLAGS="$ac_save_CFLAGS" | |
6422c112 | 17198 | |
4c0c6b9f | 17199 | |
453310d8 | 17200 | # Check for C99 (and other IEEE) math functions |
db9f46a9 TG |
17201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17202 | $as_echo_n "checking for sin in -lm... " >&6; } | |
22e05272 | 17203 | if ${ac_cv_lib_m_sin+:} false; then : |
5213506e | 17204 | $as_echo_n "(cached) " >&6 |
453310d8 RS |
17205 | else |
17206 | ac_check_lib_save_LIBS=$LIBS | |
17207 | LIBS="-lm $LIBS" | |
f02d008e | 17208 | if test x$gcc_no_link = xyes; then |
22e05272 | 17209 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17210 | fi |
5213506e | 17211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17212 | /* end confdefs.h. */ |
17213 | ||
5213506e RW |
17214 | /* Override any GCC internal prototype to avoid an error. |
17215 | Use char because int might match the return type of a GCC | |
17216 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
17217 | #ifdef __cplusplus |
17218 | extern "C" | |
17219 | #endif | |
db9f46a9 | 17220 | char sin (); |
453310d8 RS |
17221 | int |
17222 | main () | |
17223 | { | |
db9f46a9 | 17224 | return sin (); |
453310d8 RS |
17225 | ; |
17226 | return 0; | |
17227 | } | |
17228 | _ACEOF | |
5213506e | 17229 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17230 | ac_cv_lib_m_sin=yes |
453310d8 | 17231 | else |
db9f46a9 | 17232 | ac_cv_lib_m_sin=no |
453310d8 | 17233 | fi |
5213506e RW |
17234 | rm -f core conftest.err conftest.$ac_objext \ |
17235 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 RS |
17236 | LIBS=$ac_check_lib_save_LIBS |
17237 | fi | |
db9f46a9 TG |
17238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17239 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
22e05272 | 17240 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
db9f46a9 TG |
17241 | cat >>confdefs.h <<_ACEOF |
17242 | #define HAVE_LIBM 1 | |
17243 | _ACEOF | |
453310d8 | 17244 | |
db9f46a9 | 17245 | LIBS="-lm $LIBS" |
453310d8 RS |
17246 | |
17247 | fi | |
17248 | ||
db9f46a9 TG |
17249 | |
17250 | ||
17251 | ||
17252 | ||
17253 | ||
17254 | ||
17255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17256 | $as_echo_n "checking for acosf... " >&6; } | |
22e05272 | 17257 | if ${gcc_cv_math_func_acosf+:} false; then : |
5213506e | 17258 | $as_echo_n "(cached) " >&6 |
f02d008e | 17259 | else |
db9f46a9 | 17260 | if test x$gcc_no_link = xyes; then |
22e05272 | 17261 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17262 | fi |
5213506e | 17263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17264 | /* end confdefs.h. */ |
17265 | ||
db9f46a9 TG |
17266 | #ifdef HAVE_COMPLEX_H |
17267 | #include <complex.h> | |
17268 | #endif | |
17269 | #ifdef HAVE_MATH_H | |
17270 | #include <math.h> | |
f02d008e | 17271 | #endif |
db9f46a9 TG |
17272 | |
17273 | int (*ptr)() = (int (*)())acosf; | |
17274 | ||
f02d008e JD |
17275 | int |
17276 | main () | |
17277 | { | |
f02d008e JD |
17278 | return 0; |
17279 | } | |
db9f46a9 | 17280 | |
f02d008e | 17281 | _ACEOF |
5213506e | 17282 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17283 | gcc_cv_math_func_acosf=yes |
f02d008e | 17284 | else |
db9f46a9 | 17285 | gcc_cv_math_func_acosf=no |
f02d008e | 17286 | fi |
5213506e RW |
17287 | rm -f core conftest.err conftest.$ac_objext \ |
17288 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17289 | fi |
db9f46a9 TG |
17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17291 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17292 | if test $gcc_cv_math_func_acosf = yes; then | |
f1cdfa01 | 17293 | |
f38a14ca TG |
17294 | cat >>confdefs.h <<_ACEOF |
17295 | #define HAVE_ACOSF 1 | |
17296 | _ACEOF | |
db9f46a9 TG |
17297 | |
17298 | fi | |
f02d008e | 17299 | |
f02d008e | 17300 | |
f02d008e | 17301 | |
db9f46a9 TG |
17302 | |
17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17304 | $as_echo_n "checking for acos... " >&6; } | |
22e05272 | 17305 | if ${gcc_cv_math_func_acos+:} false; then : |
5213506e | 17306 | $as_echo_n "(cached) " >&6 |
453310d8 | 17307 | else |
db9f46a9 | 17308 | if test x$gcc_no_link = xyes; then |
22e05272 | 17309 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17310 | fi |
5213506e | 17311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17312 | /* end confdefs.h. */ |
17313 | ||
db9f46a9 TG |
17314 | #ifdef HAVE_COMPLEX_H |
17315 | #include <complex.h> | |
453310d8 | 17316 | #endif |
db9f46a9 TG |
17317 | #ifdef HAVE_MATH_H |
17318 | #include <math.h> | |
17319 | #endif | |
17320 | ||
17321 | int (*ptr)() = (int (*)())acos; | |
17322 | ||
453310d8 RS |
17323 | int |
17324 | main () | |
17325 | { | |
453310d8 RS |
17326 | return 0; |
17327 | } | |
db9f46a9 | 17328 | |
453310d8 | 17329 | _ACEOF |
5213506e | 17330 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17331 | gcc_cv_math_func_acos=yes |
453310d8 | 17332 | else |
db9f46a9 | 17333 | gcc_cv_math_func_acos=no |
453310d8 | 17334 | fi |
5213506e RW |
17335 | rm -f core conftest.err conftest.$ac_objext \ |
17336 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17337 | fi |
db9f46a9 TG |
17338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17339 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17340 | if test $gcc_cv_math_func_acos = yes; then | |
f1cdfa01 | 17341 | |
f38a14ca TG |
17342 | cat >>confdefs.h <<_ACEOF |
17343 | #define HAVE_ACOS 1 | |
17344 | _ACEOF | |
db9f46a9 TG |
17345 | |
17346 | fi | |
17347 | ||
453310d8 | 17348 | |
453310d8 | 17349 | |
453310d8 | 17350 | |
db9f46a9 TG |
17351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17352 | $as_echo_n "checking for acosl... " >&6; } | |
22e05272 | 17353 | if ${gcc_cv_math_func_acosl+:} false; then : |
5213506e | 17354 | $as_echo_n "(cached) " >&6 |
f02d008e | 17355 | else |
db9f46a9 | 17356 | if test x$gcc_no_link = xyes; then |
22e05272 | 17357 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17358 | fi |
5213506e | 17359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17360 | /* end confdefs.h. */ |
17361 | ||
db9f46a9 TG |
17362 | #ifdef HAVE_COMPLEX_H |
17363 | #include <complex.h> | |
17364 | #endif | |
17365 | #ifdef HAVE_MATH_H | |
17366 | #include <math.h> | |
f02d008e | 17367 | #endif |
db9f46a9 TG |
17368 | |
17369 | int (*ptr)() = (int (*)())acosl; | |
17370 | ||
f02d008e JD |
17371 | int |
17372 | main () | |
17373 | { | |
f02d008e JD |
17374 | return 0; |
17375 | } | |
db9f46a9 | 17376 | |
f02d008e | 17377 | _ACEOF |
5213506e | 17378 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17379 | gcc_cv_math_func_acosl=yes |
f02d008e | 17380 | else |
db9f46a9 | 17381 | gcc_cv_math_func_acosl=no |
f02d008e | 17382 | fi |
5213506e RW |
17383 | rm -f core conftest.err conftest.$ac_objext \ |
17384 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17385 | fi |
db9f46a9 TG |
17386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17387 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17388 | if test $gcc_cv_math_func_acosl = yes; then | |
f1cdfa01 | 17389 | |
f38a14ca TG |
17390 | cat >>confdefs.h <<_ACEOF |
17391 | #define HAVE_ACOSL 1 | |
17392 | _ACEOF | |
db9f46a9 TG |
17393 | |
17394 | fi | |
f02d008e | 17395 | |
f02d008e | 17396 | |
f02d008e | 17397 | |
db9f46a9 TG |
17398 | |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17400 | $as_echo_n "checking for acoshf... " >&6; } | |
22e05272 | 17401 | if ${gcc_cv_math_func_acoshf+:} false; then : |
5213506e | 17402 | $as_echo_n "(cached) " >&6 |
453310d8 | 17403 | else |
db9f46a9 | 17404 | if test x$gcc_no_link = xyes; then |
22e05272 | 17405 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17406 | fi |
5213506e | 17407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17408 | /* end confdefs.h. */ |
17409 | ||
db9f46a9 TG |
17410 | #ifdef HAVE_COMPLEX_H |
17411 | #include <complex.h> | |
453310d8 | 17412 | #endif |
db9f46a9 TG |
17413 | #ifdef HAVE_MATH_H |
17414 | #include <math.h> | |
17415 | #endif | |
17416 | ||
17417 | int (*ptr)() = (int (*)())acoshf; | |
17418 | ||
453310d8 RS |
17419 | int |
17420 | main () | |
17421 | { | |
453310d8 RS |
17422 | return 0; |
17423 | } | |
db9f46a9 | 17424 | |
453310d8 | 17425 | _ACEOF |
5213506e | 17426 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17427 | gcc_cv_math_func_acoshf=yes |
453310d8 | 17428 | else |
db9f46a9 | 17429 | gcc_cv_math_func_acoshf=no |
453310d8 | 17430 | fi |
5213506e RW |
17431 | rm -f core conftest.err conftest.$ac_objext \ |
17432 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17433 | fi |
db9f46a9 TG |
17434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17435 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17436 | if test $gcc_cv_math_func_acoshf = yes; then | |
f1cdfa01 | 17437 | |
f38a14ca TG |
17438 | cat >>confdefs.h <<_ACEOF |
17439 | #define HAVE_ACOSHF 1 | |
17440 | _ACEOF | |
453310d8 | 17441 | |
db9f46a9 | 17442 | fi |
453310d8 | 17443 | |
453310d8 | 17444 | |
db9f46a9 TG |
17445 | |
17446 | ||
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17448 | $as_echo_n "checking for acosh... " >&6; } | |
22e05272 | 17449 | if ${gcc_cv_math_func_acosh+:} false; then : |
5213506e | 17450 | $as_echo_n "(cached) " >&6 |
453310d8 | 17451 | else |
db9f46a9 | 17452 | if test x$gcc_no_link = xyes; then |
22e05272 | 17453 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17454 | fi |
5213506e | 17455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17456 | /* end confdefs.h. */ |
17457 | ||
db9f46a9 TG |
17458 | #ifdef HAVE_COMPLEX_H |
17459 | #include <complex.h> | |
17460 | #endif | |
17461 | #ifdef HAVE_MATH_H | |
17462 | #include <math.h> | |
453310d8 | 17463 | #endif |
db9f46a9 TG |
17464 | |
17465 | int (*ptr)() = (int (*)())acosh; | |
17466 | ||
453310d8 RS |
17467 | int |
17468 | main () | |
17469 | { | |
5213506e RW |
17470 | return 0; |
17471 | } | |
db9f46a9 | 17472 | |
5213506e RW |
17473 | _ACEOF |
17474 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 17475 | gcc_cv_math_func_acosh=yes |
453310d8 | 17476 | else |
db9f46a9 | 17477 | gcc_cv_math_func_acosh=no |
453310d8 | 17478 | fi |
5213506e RW |
17479 | rm -f core conftest.err conftest.$ac_objext \ |
17480 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17481 | fi |
db9f46a9 TG |
17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17483 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17484 | if test $gcc_cv_math_func_acosh = yes; then | |
f1cdfa01 | 17485 | |
f38a14ca TG |
17486 | cat >>confdefs.h <<_ACEOF |
17487 | #define HAVE_ACOSH 1 | |
17488 | _ACEOF | |
db9f46a9 TG |
17489 | |
17490 | fi | |
453310d8 | 17491 | |
453310d8 | 17492 | |
453310d8 | 17493 | |
db9f46a9 TG |
17494 | |
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17496 | $as_echo_n "checking for acoshl... " >&6; } | |
22e05272 | 17497 | if ${gcc_cv_math_func_acoshl+:} false; then : |
5213506e | 17498 | $as_echo_n "(cached) " >&6 |
f02d008e | 17499 | else |
db9f46a9 | 17500 | if test x$gcc_no_link = xyes; then |
22e05272 | 17501 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17502 | fi |
5213506e | 17503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f02d008e JD |
17504 | /* end confdefs.h. */ |
17505 | ||
db9f46a9 TG |
17506 | #ifdef HAVE_COMPLEX_H |
17507 | #include <complex.h> | |
f02d008e | 17508 | #endif |
db9f46a9 TG |
17509 | #ifdef HAVE_MATH_H |
17510 | #include <math.h> | |
17511 | #endif | |
17512 | ||
17513 | int (*ptr)() = (int (*)())acoshl; | |
17514 | ||
f02d008e JD |
17515 | int |
17516 | main () | |
17517 | { | |
f02d008e JD |
17518 | return 0; |
17519 | } | |
db9f46a9 | 17520 | |
f02d008e | 17521 | _ACEOF |
5213506e | 17522 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17523 | gcc_cv_math_func_acoshl=yes |
f02d008e | 17524 | else |
db9f46a9 | 17525 | gcc_cv_math_func_acoshl=no |
f02d008e | 17526 | fi |
5213506e RW |
17527 | rm -f core conftest.err conftest.$ac_objext \ |
17528 | conftest$ac_exeext conftest.$ac_ext | |
f02d008e | 17529 | fi |
db9f46a9 TG |
17530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17531 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17532 | if test $gcc_cv_math_func_acoshl = yes; then | |
f1cdfa01 | 17533 | |
f38a14ca TG |
17534 | cat >>confdefs.h <<_ACEOF |
17535 | #define HAVE_ACOSHL 1 | |
17536 | _ACEOF | |
db9f46a9 TG |
17537 | |
17538 | fi | |
17539 | ||
f02d008e | 17540 | |
f02d008e | 17541 | |
f02d008e | 17542 | |
db9f46a9 TG |
17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17544 | $as_echo_n "checking for asinf... " >&6; } | |
22e05272 | 17545 | if ${gcc_cv_math_func_asinf+:} false; then : |
5213506e | 17546 | $as_echo_n "(cached) " >&6 |
453310d8 | 17547 | else |
db9f46a9 | 17548 | if test x$gcc_no_link = xyes; then |
22e05272 | 17549 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17550 | fi |
5213506e | 17551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17552 | /* end confdefs.h. */ |
17553 | ||
db9f46a9 TG |
17554 | #ifdef HAVE_COMPLEX_H |
17555 | #include <complex.h> | |
17556 | #endif | |
17557 | #ifdef HAVE_MATH_H | |
17558 | #include <math.h> | |
453310d8 | 17559 | #endif |
db9f46a9 TG |
17560 | |
17561 | int (*ptr)() = (int (*)())asinf; | |
17562 | ||
453310d8 RS |
17563 | int |
17564 | main () | |
17565 | { | |
453310d8 RS |
17566 | return 0; |
17567 | } | |
db9f46a9 | 17568 | |
453310d8 | 17569 | _ACEOF |
5213506e | 17570 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17571 | gcc_cv_math_func_asinf=yes |
453310d8 | 17572 | else |
db9f46a9 | 17573 | gcc_cv_math_func_asinf=no |
453310d8 | 17574 | fi |
5213506e RW |
17575 | rm -f core conftest.err conftest.$ac_objext \ |
17576 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17577 | fi |
db9f46a9 TG |
17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17579 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17580 | if test $gcc_cv_math_func_asinf = yes; then | |
f1cdfa01 | 17581 | |
f38a14ca TG |
17582 | cat >>confdefs.h <<_ACEOF |
17583 | #define HAVE_ASINF 1 | |
17584 | _ACEOF | |
db9f46a9 TG |
17585 | |
17586 | fi | |
453310d8 | 17587 | |
453310d8 | 17588 | |
453310d8 | 17589 | |
db9f46a9 TG |
17590 | |
17591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17592 | $as_echo_n "checking for asin... " >&6; } | |
22e05272 | 17593 | if ${gcc_cv_math_func_asin+:} false; then : |
5213506e | 17594 | $as_echo_n "(cached) " >&6 |
453310d8 | 17595 | else |
db9f46a9 | 17596 | if test x$gcc_no_link = xyes; then |
22e05272 | 17597 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17598 | fi |
5213506e | 17599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17600 | /* end confdefs.h. */ |
17601 | ||
db9f46a9 TG |
17602 | #ifdef HAVE_COMPLEX_H |
17603 | #include <complex.h> | |
453310d8 | 17604 | #endif |
db9f46a9 TG |
17605 | #ifdef HAVE_MATH_H |
17606 | #include <math.h> | |
17607 | #endif | |
17608 | ||
17609 | int (*ptr)() = (int (*)())asin; | |
17610 | ||
453310d8 RS |
17611 | int |
17612 | main () | |
17613 | { | |
453310d8 RS |
17614 | return 0; |
17615 | } | |
db9f46a9 | 17616 | |
453310d8 | 17617 | _ACEOF |
5213506e | 17618 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17619 | gcc_cv_math_func_asin=yes |
453310d8 | 17620 | else |
db9f46a9 | 17621 | gcc_cv_math_func_asin=no |
453310d8 | 17622 | fi |
5213506e RW |
17623 | rm -f core conftest.err conftest.$ac_objext \ |
17624 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17625 | fi |
db9f46a9 TG |
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17627 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17628 | if test $gcc_cv_math_func_asin = yes; then | |
f1cdfa01 | 17629 | |
f38a14ca TG |
17630 | cat >>confdefs.h <<_ACEOF |
17631 | #define HAVE_ASIN 1 | |
17632 | _ACEOF | |
453310d8 | 17633 | |
db9f46a9 | 17634 | fi |
453310d8 | 17635 | |
453310d8 | 17636 | |
db9f46a9 TG |
17637 | |
17638 | ||
17639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17640 | $as_echo_n "checking for asinl... " >&6; } | |
22e05272 | 17641 | if ${gcc_cv_math_func_asinl+:} false; then : |
5213506e | 17642 | $as_echo_n "(cached) " >&6 |
453310d8 | 17643 | else |
db9f46a9 | 17644 | if test x$gcc_no_link = xyes; then |
22e05272 | 17645 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17646 | fi |
5213506e | 17647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17648 | /* end confdefs.h. */ |
17649 | ||
db9f46a9 TG |
17650 | #ifdef HAVE_COMPLEX_H |
17651 | #include <complex.h> | |
17652 | #endif | |
17653 | #ifdef HAVE_MATH_H | |
17654 | #include <math.h> | |
453310d8 | 17655 | #endif |
db9f46a9 TG |
17656 | |
17657 | int (*ptr)() = (int (*)())asinl; | |
17658 | ||
453310d8 RS |
17659 | int |
17660 | main () | |
17661 | { | |
453310d8 RS |
17662 | return 0; |
17663 | } | |
db9f46a9 | 17664 | |
453310d8 | 17665 | _ACEOF |
5213506e | 17666 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17667 | gcc_cv_math_func_asinl=yes |
453310d8 | 17668 | else |
db9f46a9 | 17669 | gcc_cv_math_func_asinl=no |
453310d8 | 17670 | fi |
5213506e RW |
17671 | rm -f core conftest.err conftest.$ac_objext \ |
17672 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17673 | fi |
db9f46a9 TG |
17674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17675 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17676 | if test $gcc_cv_math_func_asinl = yes; then | |
f1cdfa01 | 17677 | |
f38a14ca TG |
17678 | cat >>confdefs.h <<_ACEOF |
17679 | #define HAVE_ASINL 1 | |
17680 | _ACEOF | |
db9f46a9 TG |
17681 | |
17682 | fi | |
453310d8 | 17683 | |
453310d8 | 17684 | |
453310d8 | 17685 | |
db9f46a9 TG |
17686 | |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17688 | $as_echo_n "checking for asinhf... " >&6; } | |
22e05272 | 17689 | if ${gcc_cv_math_func_asinhf+:} false; then : |
5213506e | 17690 | $as_echo_n "(cached) " >&6 |
453310d8 | 17691 | else |
db9f46a9 | 17692 | if test x$gcc_no_link = xyes; then |
22e05272 | 17693 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17694 | fi |
5213506e | 17695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17696 | /* end confdefs.h. */ |
17697 | ||
db9f46a9 TG |
17698 | #ifdef HAVE_COMPLEX_H |
17699 | #include <complex.h> | |
453310d8 | 17700 | #endif |
db9f46a9 TG |
17701 | #ifdef HAVE_MATH_H |
17702 | #include <math.h> | |
17703 | #endif | |
17704 | ||
17705 | int (*ptr)() = (int (*)())asinhf; | |
17706 | ||
453310d8 RS |
17707 | int |
17708 | main () | |
17709 | { | |
453310d8 RS |
17710 | return 0; |
17711 | } | |
db9f46a9 | 17712 | |
453310d8 | 17713 | _ACEOF |
5213506e | 17714 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17715 | gcc_cv_math_func_asinhf=yes |
453310d8 | 17716 | else |
db9f46a9 | 17717 | gcc_cv_math_func_asinhf=no |
453310d8 | 17718 | fi |
5213506e RW |
17719 | rm -f core conftest.err conftest.$ac_objext \ |
17720 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17721 | fi |
db9f46a9 TG |
17722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17723 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17724 | if test $gcc_cv_math_func_asinhf = yes; then | |
f1cdfa01 | 17725 | |
f38a14ca TG |
17726 | cat >>confdefs.h <<_ACEOF |
17727 | #define HAVE_ASINHF 1 | |
17728 | _ACEOF | |
db9f46a9 TG |
17729 | |
17730 | fi | |
17731 | ||
453310d8 | 17732 | |
453310d8 | 17733 | |
453310d8 | 17734 | |
db9f46a9 TG |
17735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17736 | $as_echo_n "checking for asinh... " >&6; } | |
22e05272 | 17737 | if ${gcc_cv_math_func_asinh+:} false; then : |
5213506e | 17738 | $as_echo_n "(cached) " >&6 |
453310d8 | 17739 | else |
db9f46a9 | 17740 | if test x$gcc_no_link = xyes; then |
22e05272 | 17741 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17742 | fi |
5213506e | 17743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17744 | /* end confdefs.h. */ |
17745 | ||
db9f46a9 TG |
17746 | #ifdef HAVE_COMPLEX_H |
17747 | #include <complex.h> | |
17748 | #endif | |
17749 | #ifdef HAVE_MATH_H | |
17750 | #include <math.h> | |
453310d8 | 17751 | #endif |
db9f46a9 TG |
17752 | |
17753 | int (*ptr)() = (int (*)())asinh; | |
17754 | ||
453310d8 RS |
17755 | int |
17756 | main () | |
17757 | { | |
453310d8 RS |
17758 | return 0; |
17759 | } | |
db9f46a9 | 17760 | |
453310d8 | 17761 | _ACEOF |
5213506e | 17762 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17763 | gcc_cv_math_func_asinh=yes |
453310d8 | 17764 | else |
db9f46a9 | 17765 | gcc_cv_math_func_asinh=no |
453310d8 | 17766 | fi |
5213506e RW |
17767 | rm -f core conftest.err conftest.$ac_objext \ |
17768 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17769 | fi |
db9f46a9 TG |
17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17771 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17772 | if test $gcc_cv_math_func_asinh = yes; then | |
f1cdfa01 | 17773 | |
f38a14ca TG |
17774 | cat >>confdefs.h <<_ACEOF |
17775 | #define HAVE_ASINH 1 | |
17776 | _ACEOF | |
db9f46a9 TG |
17777 | |
17778 | fi | |
453310d8 | 17779 | |
453310d8 | 17780 | |
453310d8 | 17781 | |
db9f46a9 TG |
17782 | |
17783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17784 | $as_echo_n "checking for asinhl... " >&6; } | |
22e05272 | 17785 | if ${gcc_cv_math_func_asinhl+:} false; then : |
5213506e | 17786 | $as_echo_n "(cached) " >&6 |
6e4d9244 | 17787 | else |
db9f46a9 | 17788 | if test x$gcc_no_link = xyes; then |
22e05272 | 17789 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17790 | fi |
5213506e | 17791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6e4d9244 EB |
17792 | /* end confdefs.h. */ |
17793 | ||
db9f46a9 TG |
17794 | #ifdef HAVE_COMPLEX_H |
17795 | #include <complex.h> | |
6e4d9244 | 17796 | #endif |
db9f46a9 TG |
17797 | #ifdef HAVE_MATH_H |
17798 | #include <math.h> | |
17799 | #endif | |
17800 | ||
17801 | int (*ptr)() = (int (*)())asinhl; | |
17802 | ||
6e4d9244 EB |
17803 | int |
17804 | main () | |
17805 | { | |
6e4d9244 EB |
17806 | return 0; |
17807 | } | |
db9f46a9 | 17808 | |
6e4d9244 | 17809 | _ACEOF |
5213506e | 17810 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17811 | gcc_cv_math_func_asinhl=yes |
6e4d9244 | 17812 | else |
db9f46a9 | 17813 | gcc_cv_math_func_asinhl=no |
6e4d9244 | 17814 | fi |
5213506e RW |
17815 | rm -f core conftest.err conftest.$ac_objext \ |
17816 | conftest$ac_exeext conftest.$ac_ext | |
6e4d9244 | 17817 | fi |
db9f46a9 TG |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17819 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17820 | if test $gcc_cv_math_func_asinhl = yes; then | |
f1cdfa01 | 17821 | |
f38a14ca TG |
17822 | cat >>confdefs.h <<_ACEOF |
17823 | #define HAVE_ASINHL 1 | |
17824 | _ACEOF | |
6e4d9244 | 17825 | |
db9f46a9 | 17826 | fi |
6e4d9244 | 17827 | |
6e4d9244 | 17828 | |
db9f46a9 TG |
17829 | |
17830 | ||
17831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17832 | $as_echo_n "checking for atan2f... " >&6; } | |
22e05272 | 17833 | if ${gcc_cv_math_func_atan2f+:} false; then : |
5213506e | 17834 | $as_echo_n "(cached) " >&6 |
453310d8 | 17835 | else |
db9f46a9 | 17836 | if test x$gcc_no_link = xyes; then |
22e05272 | 17837 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17838 | fi |
5213506e | 17839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17840 | /* end confdefs.h. */ |
17841 | ||
db9f46a9 TG |
17842 | #ifdef HAVE_COMPLEX_H |
17843 | #include <complex.h> | |
453310d8 | 17844 | #endif |
db9f46a9 TG |
17845 | #ifdef HAVE_MATH_H |
17846 | #include <math.h> | |
17847 | #endif | |
17848 | ||
17849 | int (*ptr)() = (int (*)())atan2f; | |
17850 | ||
17851 | int | |
453310d8 RS |
17852 | main () |
17853 | { | |
453310d8 RS |
17854 | return 0; |
17855 | } | |
db9f46a9 | 17856 | |
453310d8 | 17857 | _ACEOF |
5213506e | 17858 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17859 | gcc_cv_math_func_atan2f=yes |
453310d8 | 17860 | else |
db9f46a9 | 17861 | gcc_cv_math_func_atan2f=no |
453310d8 | 17862 | fi |
5213506e RW |
17863 | rm -f core conftest.err conftest.$ac_objext \ |
17864 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17865 | fi |
db9f46a9 TG |
17866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17867 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17868 | if test $gcc_cv_math_func_atan2f = yes; then | |
f1cdfa01 | 17869 | |
f38a14ca TG |
17870 | cat >>confdefs.h <<_ACEOF |
17871 | #define HAVE_ATAN2F 1 | |
17872 | _ACEOF | |
db9f46a9 TG |
17873 | |
17874 | fi | |
453310d8 | 17875 | |
453310d8 | 17876 | |
453310d8 | 17877 | |
db9f46a9 TG |
17878 | |
17879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17880 | $as_echo_n "checking for atan2... " >&6; } | |
22e05272 | 17881 | if ${gcc_cv_math_func_atan2+:} false; then : |
5213506e | 17882 | $as_echo_n "(cached) " >&6 |
453310d8 | 17883 | else |
db9f46a9 | 17884 | if test x$gcc_no_link = xyes; then |
22e05272 | 17885 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17886 | fi |
5213506e | 17887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17888 | /* end confdefs.h. */ |
17889 | ||
db9f46a9 TG |
17890 | #ifdef HAVE_COMPLEX_H |
17891 | #include <complex.h> | |
453310d8 | 17892 | #endif |
db9f46a9 TG |
17893 | #ifdef HAVE_MATH_H |
17894 | #include <math.h> | |
17895 | #endif | |
17896 | ||
17897 | int (*ptr)() = (int (*)())atan2; | |
17898 | ||
453310d8 RS |
17899 | int |
17900 | main () | |
17901 | { | |
453310d8 RS |
17902 | return 0; |
17903 | } | |
db9f46a9 | 17904 | |
453310d8 | 17905 | _ACEOF |
5213506e | 17906 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17907 | gcc_cv_math_func_atan2=yes |
453310d8 | 17908 | else |
db9f46a9 | 17909 | gcc_cv_math_func_atan2=no |
453310d8 | 17910 | fi |
5213506e RW |
17911 | rm -f core conftest.err conftest.$ac_objext \ |
17912 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17913 | fi |
db9f46a9 TG |
17914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17915 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17916 | if test $gcc_cv_math_func_atan2 = yes; then | |
f1cdfa01 | 17917 | |
f38a14ca TG |
17918 | cat >>confdefs.h <<_ACEOF |
17919 | #define HAVE_ATAN2 1 | |
17920 | _ACEOF | |
453310d8 | 17921 | |
db9f46a9 | 17922 | fi |
453310d8 | 17923 | |
453310d8 | 17924 | |
db9f46a9 TG |
17925 | |
17926 | ||
17927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17928 | $as_echo_n "checking for atan2l... " >&6; } | |
22e05272 | 17929 | if ${gcc_cv_math_func_atan2l+:} false; then : |
5213506e | 17930 | $as_echo_n "(cached) " >&6 |
453310d8 | 17931 | else |
db9f46a9 | 17932 | if test x$gcc_no_link = xyes; then |
22e05272 | 17933 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17934 | fi |
5213506e | 17935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17936 | /* end confdefs.h. */ |
17937 | ||
db9f46a9 TG |
17938 | #ifdef HAVE_COMPLEX_H |
17939 | #include <complex.h> | |
17940 | #endif | |
17941 | #ifdef HAVE_MATH_H | |
17942 | #include <math.h> | |
453310d8 | 17943 | #endif |
db9f46a9 TG |
17944 | |
17945 | int (*ptr)() = (int (*)())atan2l; | |
17946 | ||
453310d8 RS |
17947 | int |
17948 | main () | |
17949 | { | |
453310d8 RS |
17950 | return 0; |
17951 | } | |
db9f46a9 | 17952 | |
453310d8 | 17953 | _ACEOF |
5213506e | 17954 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 17955 | gcc_cv_math_func_atan2l=yes |
453310d8 | 17956 | else |
db9f46a9 | 17957 | gcc_cv_math_func_atan2l=no |
453310d8 | 17958 | fi |
5213506e RW |
17959 | rm -f core conftest.err conftest.$ac_objext \ |
17960 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 17961 | fi |
db9f46a9 TG |
17962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
17963 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
17964 | if test $gcc_cv_math_func_atan2l = yes; then | |
f1cdfa01 | 17965 | |
f38a14ca TG |
17966 | cat >>confdefs.h <<_ACEOF |
17967 | #define HAVE_ATAN2L 1 | |
17968 | _ACEOF | |
db9f46a9 TG |
17969 | |
17970 | fi | |
453310d8 | 17971 | |
453310d8 | 17972 | |
453310d8 | 17973 | |
db9f46a9 TG |
17974 | |
17975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
17976 | $as_echo_n "checking for atanf... " >&6; } | |
22e05272 | 17977 | if ${gcc_cv_math_func_atanf+:} false; then : |
5213506e | 17978 | $as_echo_n "(cached) " >&6 |
453310d8 | 17979 | else |
db9f46a9 | 17980 | if test x$gcc_no_link = xyes; then |
22e05272 | 17981 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 17982 | fi |
5213506e | 17983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
17984 | /* end confdefs.h. */ |
17985 | ||
db9f46a9 TG |
17986 | #ifdef HAVE_COMPLEX_H |
17987 | #include <complex.h> | |
453310d8 | 17988 | #endif |
db9f46a9 TG |
17989 | #ifdef HAVE_MATH_H |
17990 | #include <math.h> | |
17991 | #endif | |
17992 | ||
17993 | int (*ptr)() = (int (*)())atanf; | |
17994 | ||
453310d8 RS |
17995 | int |
17996 | main () | |
17997 | { | |
453310d8 RS |
17998 | return 0; |
17999 | } | |
db9f46a9 | 18000 | |
453310d8 | 18001 | _ACEOF |
5213506e | 18002 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18003 | gcc_cv_math_func_atanf=yes |
453310d8 | 18004 | else |
db9f46a9 | 18005 | gcc_cv_math_func_atanf=no |
453310d8 | 18006 | fi |
5213506e RW |
18007 | rm -f core conftest.err conftest.$ac_objext \ |
18008 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18009 | fi |
db9f46a9 TG |
18010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
18011 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
18012 | if test $gcc_cv_math_func_atanf = yes; then | |
f1cdfa01 | 18013 | |
f38a14ca TG |
18014 | cat >>confdefs.h <<_ACEOF |
18015 | #define HAVE_ATANF 1 | |
18016 | _ACEOF | |
db9f46a9 TG |
18017 | |
18018 | fi | |
18019 | ||
453310d8 | 18020 | |
453310d8 | 18021 | |
453310d8 | 18022 | |
db9f46a9 TG |
18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
18024 | $as_echo_n "checking for atan... " >&6; } | |
22e05272 | 18025 | if ${gcc_cv_math_func_atan+:} false; then : |
5213506e | 18026 | $as_echo_n "(cached) " >&6 |
453310d8 | 18027 | else |
db9f46a9 | 18028 | if test x$gcc_no_link = xyes; then |
22e05272 | 18029 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18030 | fi |
5213506e | 18031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18032 | /* end confdefs.h. */ |
18033 | ||
db9f46a9 TG |
18034 | #ifdef HAVE_COMPLEX_H |
18035 | #include <complex.h> | |
18036 | #endif | |
18037 | #ifdef HAVE_MATH_H | |
18038 | #include <math.h> | |
453310d8 | 18039 | #endif |
db9f46a9 TG |
18040 | |
18041 | int (*ptr)() = (int (*)())atan; | |
18042 | ||
453310d8 RS |
18043 | int |
18044 | main () | |
18045 | { | |
453310d8 RS |
18046 | return 0; |
18047 | } | |
db9f46a9 | 18048 | |
453310d8 | 18049 | _ACEOF |
5213506e | 18050 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18051 | gcc_cv_math_func_atan=yes |
453310d8 | 18052 | else |
db9f46a9 | 18053 | gcc_cv_math_func_atan=no |
453310d8 | 18054 | fi |
5213506e RW |
18055 | rm -f core conftest.err conftest.$ac_objext \ |
18056 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18057 | fi |
db9f46a9 TG |
18058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
18059 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
18060 | if test $gcc_cv_math_func_atan = yes; then | |
f1cdfa01 | 18061 | |
f38a14ca TG |
18062 | cat >>confdefs.h <<_ACEOF |
18063 | #define HAVE_ATAN 1 | |
18064 | _ACEOF | |
db9f46a9 TG |
18065 | |
18066 | fi | |
453310d8 | 18067 | |
453310d8 | 18068 | |
453310d8 | 18069 | |
db9f46a9 TG |
18070 | |
18071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
18072 | $as_echo_n "checking for atanl... " >&6; } | |
22e05272 | 18073 | if ${gcc_cv_math_func_atanl+:} false; then : |
5213506e | 18074 | $as_echo_n "(cached) " >&6 |
32aa3bff | 18075 | else |
db9f46a9 | 18076 | if test x$gcc_no_link = xyes; then |
22e05272 | 18077 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18078 | fi |
5213506e | 18079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
32aa3bff FXC |
18080 | /* end confdefs.h. */ |
18081 | ||
db9f46a9 TG |
18082 | #ifdef HAVE_COMPLEX_H |
18083 | #include <complex.h> | |
32aa3bff | 18084 | #endif |
db9f46a9 TG |
18085 | #ifdef HAVE_MATH_H |
18086 | #include <math.h> | |
18087 | #endif | |
18088 | ||
18089 | int (*ptr)() = (int (*)())atanl; | |
18090 | ||
32aa3bff FXC |
18091 | int |
18092 | main () | |
18093 | { | |
32aa3bff FXC |
18094 | return 0; |
18095 | } | |
db9f46a9 | 18096 | |
32aa3bff | 18097 | _ACEOF |
5213506e | 18098 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18099 | gcc_cv_math_func_atanl=yes |
32aa3bff | 18100 | else |
db9f46a9 | 18101 | gcc_cv_math_func_atanl=no |
32aa3bff | 18102 | fi |
5213506e RW |
18103 | rm -f core conftest.err conftest.$ac_objext \ |
18104 | conftest$ac_exeext conftest.$ac_ext | |
32aa3bff | 18105 | fi |
db9f46a9 TG |
18106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
18107 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
18108 | if test $gcc_cv_math_func_atanl = yes; then | |
f1cdfa01 | 18109 | |
f38a14ca TG |
18110 | cat >>confdefs.h <<_ACEOF |
18111 | #define HAVE_ATANL 1 | |
18112 | _ACEOF | |
32aa3bff | 18113 | |
db9f46a9 | 18114 | fi |
32aa3bff | 18115 | |
32aa3bff | 18116 | |
db9f46a9 TG |
18117 | |
18118 | ||
18119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
18120 | $as_echo_n "checking for atanhf... " >&6; } | |
22e05272 | 18121 | if ${gcc_cv_math_func_atanhf+:} false; then : |
5213506e | 18122 | $as_echo_n "(cached) " >&6 |
453310d8 | 18123 | else |
db9f46a9 | 18124 | if test x$gcc_no_link = xyes; then |
22e05272 | 18125 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18126 | fi |
5213506e | 18127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18128 | /* end confdefs.h. */ |
18129 | ||
db9f46a9 TG |
18130 | #ifdef HAVE_COMPLEX_H |
18131 | #include <complex.h> | |
18132 | #endif | |
18133 | #ifdef HAVE_MATH_H | |
18134 | #include <math.h> | |
453310d8 | 18135 | #endif |
db9f46a9 TG |
18136 | |
18137 | int (*ptr)() = (int (*)())atanhf; | |
18138 | ||
453310d8 RS |
18139 | int |
18140 | main () | |
18141 | { | |
453310d8 RS |
18142 | return 0; |
18143 | } | |
db9f46a9 | 18144 | |
453310d8 | 18145 | _ACEOF |
5213506e | 18146 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18147 | gcc_cv_math_func_atanhf=yes |
453310d8 | 18148 | else |
db9f46a9 | 18149 | gcc_cv_math_func_atanhf=no |
453310d8 | 18150 | fi |
5213506e RW |
18151 | rm -f core conftest.err conftest.$ac_objext \ |
18152 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18153 | fi |
db9f46a9 TG |
18154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
18155 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
18156 | if test $gcc_cv_math_func_atanhf = yes; then | |
f1cdfa01 | 18157 | |
f38a14ca TG |
18158 | cat >>confdefs.h <<_ACEOF |
18159 | #define HAVE_ATANHF 1 | |
18160 | _ACEOF | |
db9f46a9 TG |
18161 | |
18162 | fi | |
453310d8 | 18163 | |
453310d8 | 18164 | |
453310d8 | 18165 | |
db9f46a9 TG |
18166 | |
18167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
18168 | $as_echo_n "checking for atanh... " >&6; } | |
22e05272 | 18169 | if ${gcc_cv_math_func_atanh+:} false; then : |
5213506e | 18170 | $as_echo_n "(cached) " >&6 |
453310d8 | 18171 | else |
db9f46a9 | 18172 | if test x$gcc_no_link = xyes; then |
22e05272 | 18173 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18174 | fi |
5213506e | 18175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18176 | /* end confdefs.h. */ |
18177 | ||
db9f46a9 TG |
18178 | #ifdef HAVE_COMPLEX_H |
18179 | #include <complex.h> | |
453310d8 | 18180 | #endif |
db9f46a9 TG |
18181 | #ifdef HAVE_MATH_H |
18182 | #include <math.h> | |
18183 | #endif | |
18184 | ||
18185 | int (*ptr)() = (int (*)())atanh; | |
18186 | ||
453310d8 RS |
18187 | int |
18188 | main () | |
18189 | { | |
453310d8 RS |
18190 | return 0; |
18191 | } | |
db9f46a9 | 18192 | |
453310d8 | 18193 | _ACEOF |
5213506e | 18194 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18195 | gcc_cv_math_func_atanh=yes |
453310d8 | 18196 | else |
db9f46a9 | 18197 | gcc_cv_math_func_atanh=no |
453310d8 | 18198 | fi |
5213506e RW |
18199 | rm -f core conftest.err conftest.$ac_objext \ |
18200 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18201 | fi |
db9f46a9 TG |
18202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18203 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18204 | if test $gcc_cv_math_func_atanh = yes; then | |
f1cdfa01 | 18205 | |
f38a14ca TG |
18206 | cat >>confdefs.h <<_ACEOF |
18207 | #define HAVE_ATANH 1 | |
18208 | _ACEOF | |
db9f46a9 TG |
18209 | |
18210 | fi | |
18211 | ||
453310d8 | 18212 | |
453310d8 | 18213 | |
453310d8 | 18214 | |
db9f46a9 TG |
18215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18216 | $as_echo_n "checking for atanhl... " >&6; } | |
22e05272 | 18217 | if ${gcc_cv_math_func_atanhl+:} false; then : |
5213506e | 18218 | $as_echo_n "(cached) " >&6 |
bf4d99cf | 18219 | else |
db9f46a9 | 18220 | if test x$gcc_no_link = xyes; then |
22e05272 | 18221 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18222 | fi |
5213506e | 18223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bf4d99cf TS |
18224 | /* end confdefs.h. */ |
18225 | ||
db9f46a9 TG |
18226 | #ifdef HAVE_COMPLEX_H |
18227 | #include <complex.h> | |
18228 | #endif | |
18229 | #ifdef HAVE_MATH_H | |
18230 | #include <math.h> | |
bf4d99cf | 18231 | #endif |
db9f46a9 TG |
18232 | |
18233 | int (*ptr)() = (int (*)())atanhl; | |
18234 | ||
bf4d99cf TS |
18235 | int |
18236 | main () | |
18237 | { | |
bf4d99cf TS |
18238 | return 0; |
18239 | } | |
db9f46a9 | 18240 | |
bf4d99cf | 18241 | _ACEOF |
5213506e | 18242 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18243 | gcc_cv_math_func_atanhl=yes |
bf4d99cf | 18244 | else |
db9f46a9 | 18245 | gcc_cv_math_func_atanhl=no |
bf4d99cf | 18246 | fi |
5213506e RW |
18247 | rm -f core conftest.err conftest.$ac_objext \ |
18248 | conftest$ac_exeext conftest.$ac_ext | |
bf4d99cf | 18249 | fi |
db9f46a9 TG |
18250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18251 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18252 | if test $gcc_cv_math_func_atanhl = yes; then | |
f1cdfa01 | 18253 | |
f38a14ca TG |
18254 | cat >>confdefs.h <<_ACEOF |
18255 | #define HAVE_ATANHL 1 | |
18256 | _ACEOF | |
db9f46a9 TG |
18257 | |
18258 | fi | |
bf4d99cf | 18259 | |
bf4d99cf | 18260 | |
bf4d99cf | 18261 | |
db9f46a9 TG |
18262 | |
18263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18264 | $as_echo_n "checking for cargf... " >&6; } | |
22e05272 | 18265 | if ${gcc_cv_math_func_cargf+:} false; then : |
5213506e | 18266 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18267 | else |
db9f46a9 | 18268 | if test x$gcc_no_link = xyes; then |
22e05272 | 18269 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18270 | fi |
5213506e | 18271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18272 | /* end confdefs.h. */ |
18273 | ||
db9f46a9 TG |
18274 | #ifdef HAVE_COMPLEX_H |
18275 | #include <complex.h> | |
a2a2059f | 18276 | #endif |
db9f46a9 TG |
18277 | #ifdef HAVE_MATH_H |
18278 | #include <math.h> | |
18279 | #endif | |
18280 | ||
18281 | int (*ptr)() = (int (*)())cargf; | |
18282 | ||
453310d8 RS |
18283 | int |
18284 | main () | |
18285 | { | |
453310d8 RS |
18286 | return 0; |
18287 | } | |
db9f46a9 | 18288 | |
453310d8 | 18289 | _ACEOF |
5213506e | 18290 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18291 | gcc_cv_math_func_cargf=yes |
453310d8 | 18292 | else |
db9f46a9 | 18293 | gcc_cv_math_func_cargf=no |
453310d8 | 18294 | fi |
5213506e RW |
18295 | rm -f core conftest.err conftest.$ac_objext \ |
18296 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18297 | fi |
db9f46a9 TG |
18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18299 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18300 | if test $gcc_cv_math_func_cargf = yes; then | |
f1cdfa01 | 18301 | |
f38a14ca TG |
18302 | cat >>confdefs.h <<_ACEOF |
18303 | #define HAVE_CARGF 1 | |
18304 | _ACEOF | |
453310d8 | 18305 | |
db9f46a9 | 18306 | fi |
453310d8 | 18307 | |
453310d8 | 18308 | |
db9f46a9 TG |
18309 | |
18310 | ||
18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18312 | $as_echo_n "checking for carg... " >&6; } | |
22e05272 | 18313 | if ${gcc_cv_math_func_carg+:} false; then : |
5213506e | 18314 | $as_echo_n "(cached) " >&6 |
453310d8 | 18315 | else |
db9f46a9 | 18316 | if test x$gcc_no_link = xyes; then |
22e05272 | 18317 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18318 | fi |
5213506e | 18319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18320 | /* end confdefs.h. */ |
18321 | ||
db9f46a9 TG |
18322 | #ifdef HAVE_COMPLEX_H |
18323 | #include <complex.h> | |
18324 | #endif | |
18325 | #ifdef HAVE_MATH_H | |
18326 | #include <math.h> | |
453310d8 | 18327 | #endif |
db9f46a9 TG |
18328 | |
18329 | int (*ptr)() = (int (*)())carg; | |
18330 | ||
a2a2059f BD |
18331 | int |
18332 | main () | |
18333 | { | |
a2a2059f BD |
18334 | return 0; |
18335 | } | |
db9f46a9 | 18336 | |
a2a2059f | 18337 | _ACEOF |
5213506e | 18338 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18339 | gcc_cv_math_func_carg=yes |
a2a2059f | 18340 | else |
db9f46a9 | 18341 | gcc_cv_math_func_carg=no |
a2a2059f | 18342 | fi |
5213506e RW |
18343 | rm -f core conftest.err conftest.$ac_objext \ |
18344 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18345 | fi |
db9f46a9 TG |
18346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18347 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18348 | if test $gcc_cv_math_func_carg = yes; then | |
f1cdfa01 | 18349 | |
f38a14ca TG |
18350 | cat >>confdefs.h <<_ACEOF |
18351 | #define HAVE_CARG 1 | |
18352 | _ACEOF | |
db9f46a9 TG |
18353 | |
18354 | fi | |
a2a2059f | 18355 | |
a2a2059f | 18356 | |
a2a2059f | 18357 | |
db9f46a9 TG |
18358 | |
18359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18360 | $as_echo_n "checking for cargl... " >&6; } | |
22e05272 | 18361 | if ${gcc_cv_math_func_cargl+:} false; then : |
5213506e | 18362 | $as_echo_n "(cached) " >&6 |
a2a2059f | 18363 | else |
db9f46a9 | 18364 | if test x$gcc_no_link = xyes; then |
22e05272 | 18365 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18366 | fi |
5213506e | 18367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2a2059f BD |
18368 | /* end confdefs.h. */ |
18369 | ||
db9f46a9 TG |
18370 | #ifdef HAVE_COMPLEX_H |
18371 | #include <complex.h> | |
a2a2059f | 18372 | #endif |
db9f46a9 TG |
18373 | #ifdef HAVE_MATH_H |
18374 | #include <math.h> | |
18375 | #endif | |
18376 | ||
18377 | int (*ptr)() = (int (*)())cargl; | |
18378 | ||
a2a2059f BD |
18379 | int |
18380 | main () | |
18381 | { | |
a2a2059f BD |
18382 | return 0; |
18383 | } | |
db9f46a9 | 18384 | |
a2a2059f | 18385 | _ACEOF |
5213506e | 18386 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18387 | gcc_cv_math_func_cargl=yes |
a2a2059f | 18388 | else |
db9f46a9 | 18389 | gcc_cv_math_func_cargl=no |
a2a2059f | 18390 | fi |
5213506e RW |
18391 | rm -f core conftest.err conftest.$ac_objext \ |
18392 | conftest$ac_exeext conftest.$ac_ext | |
a2a2059f | 18393 | fi |
db9f46a9 TG |
18394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18395 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18396 | if test $gcc_cv_math_func_cargl = yes; then | |
f1cdfa01 | 18397 | |
f38a14ca TG |
18398 | cat >>confdefs.h <<_ACEOF |
18399 | #define HAVE_CARGL 1 | |
18400 | _ACEOF | |
db9f46a9 TG |
18401 | |
18402 | fi | |
18403 | ||
a2a2059f | 18404 | |
a2a2059f | 18405 | |
a2a2059f | 18406 | |
db9f46a9 TG |
18407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18408 | $as_echo_n "checking for ceilf... " >&6; } | |
22e05272 | 18409 | if ${gcc_cv_math_func_ceilf+:} false; then : |
5213506e | 18410 | $as_echo_n "(cached) " >&6 |
ae973d6a | 18411 | else |
db9f46a9 | 18412 | if test x$gcc_no_link = xyes; then |
22e05272 | 18413 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18414 | fi |
5213506e | 18415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ae973d6a FXC |
18416 | /* end confdefs.h. */ |
18417 | ||
db9f46a9 TG |
18418 | #ifdef HAVE_COMPLEX_H |
18419 | #include <complex.h> | |
18420 | #endif | |
18421 | #ifdef HAVE_MATH_H | |
18422 | #include <math.h> | |
ae973d6a | 18423 | #endif |
db9f46a9 TG |
18424 | |
18425 | int (*ptr)() = (int (*)())ceilf; | |
18426 | ||
ae973d6a FXC |
18427 | int |
18428 | main () | |
18429 | { | |
ae973d6a FXC |
18430 | return 0; |
18431 | } | |
db9f46a9 | 18432 | |
ae973d6a | 18433 | _ACEOF |
5213506e | 18434 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18435 | gcc_cv_math_func_ceilf=yes |
ae973d6a | 18436 | else |
db9f46a9 | 18437 | gcc_cv_math_func_ceilf=no |
ae973d6a | 18438 | fi |
5213506e RW |
18439 | rm -f core conftest.err conftest.$ac_objext \ |
18440 | conftest$ac_exeext conftest.$ac_ext | |
ae973d6a | 18441 | fi |
db9f46a9 TG |
18442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18443 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18444 | if test $gcc_cv_math_func_ceilf = yes; then | |
f1cdfa01 | 18445 | |
f38a14ca TG |
18446 | cat >>confdefs.h <<_ACEOF |
18447 | #define HAVE_CEILF 1 | |
18448 | _ACEOF | |
db9f46a9 TG |
18449 | |
18450 | fi | |
ae973d6a | 18451 | |
ae973d6a | 18452 | |
ae973d6a | 18453 | |
db9f46a9 TG |
18454 | |
18455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18456 | $as_echo_n "checking for ceil... " >&6; } | |
22e05272 | 18457 | if ${gcc_cv_math_func_ceil+:} false; then : |
5213506e | 18458 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18459 | else |
db9f46a9 | 18460 | if test x$gcc_no_link = xyes; then |
22e05272 | 18461 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18462 | fi |
5213506e | 18463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18464 | /* end confdefs.h. */ |
18465 | ||
db9f46a9 TG |
18466 | #ifdef HAVE_COMPLEX_H |
18467 | #include <complex.h> | |
a9e7b9d3 | 18468 | #endif |
db9f46a9 TG |
18469 | #ifdef HAVE_MATH_H |
18470 | #include <math.h> | |
18471 | #endif | |
18472 | ||
18473 | int (*ptr)() = (int (*)())ceil; | |
18474 | ||
a9e7b9d3 PB |
18475 | int |
18476 | main () | |
18477 | { | |
a9e7b9d3 PB |
18478 | return 0; |
18479 | } | |
db9f46a9 | 18480 | |
a9e7b9d3 | 18481 | _ACEOF |
5213506e | 18482 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18483 | gcc_cv_math_func_ceil=yes |
a9e7b9d3 | 18484 | else |
db9f46a9 | 18485 | gcc_cv_math_func_ceil=no |
a9e7b9d3 | 18486 | fi |
5213506e RW |
18487 | rm -f core conftest.err conftest.$ac_objext \ |
18488 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18489 | fi |
db9f46a9 TG |
18490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18491 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18492 | if test $gcc_cv_math_func_ceil = yes; then | |
f1cdfa01 | 18493 | |
f38a14ca TG |
18494 | cat >>confdefs.h <<_ACEOF |
18495 | #define HAVE_CEIL 1 | |
18496 | _ACEOF | |
a9e7b9d3 | 18497 | |
db9f46a9 | 18498 | fi |
a9e7b9d3 | 18499 | |
a9e7b9d3 | 18500 | |
db9f46a9 TG |
18501 | |
18502 | ||
18503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18504 | $as_echo_n "checking for ceill... " >&6; } | |
22e05272 | 18505 | if ${gcc_cv_math_func_ceill+:} false; then : |
5213506e | 18506 | $as_echo_n "(cached) " >&6 |
a9e7b9d3 | 18507 | else |
db9f46a9 | 18508 | if test x$gcc_no_link = xyes; then |
22e05272 | 18509 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18510 | fi |
5213506e | 18511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a9e7b9d3 PB |
18512 | /* end confdefs.h. */ |
18513 | ||
db9f46a9 TG |
18514 | #ifdef HAVE_COMPLEX_H |
18515 | #include <complex.h> | |
18516 | #endif | |
18517 | #ifdef HAVE_MATH_H | |
18518 | #include <math.h> | |
a9e7b9d3 | 18519 | #endif |
db9f46a9 TG |
18520 | |
18521 | int (*ptr)() = (int (*)())ceill; | |
18522 | ||
a9e7b9d3 PB |
18523 | int |
18524 | main () | |
18525 | { | |
a9e7b9d3 PB |
18526 | return 0; |
18527 | } | |
db9f46a9 | 18528 | |
a9e7b9d3 | 18529 | _ACEOF |
5213506e | 18530 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18531 | gcc_cv_math_func_ceill=yes |
a9e7b9d3 | 18532 | else |
db9f46a9 | 18533 | gcc_cv_math_func_ceill=no |
a9e7b9d3 | 18534 | fi |
5213506e RW |
18535 | rm -f core conftest.err conftest.$ac_objext \ |
18536 | conftest$ac_exeext conftest.$ac_ext | |
a9e7b9d3 | 18537 | fi |
db9f46a9 TG |
18538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18539 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18540 | if test $gcc_cv_math_func_ceill = yes; then | |
f1cdfa01 | 18541 | |
f38a14ca TG |
18542 | cat >>confdefs.h <<_ACEOF |
18543 | #define HAVE_CEILL 1 | |
18544 | _ACEOF | |
db9f46a9 TG |
18545 | |
18546 | fi | |
a9e7b9d3 | 18547 | |
453310d8 | 18548 | |
453310d8 | 18549 | |
db9f46a9 TG |
18550 | |
18551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18552 | $as_echo_n "checking for copysignf... " >&6; } | |
22e05272 | 18553 | if ${gcc_cv_math_func_copysignf+:} false; then : |
5213506e | 18554 | $as_echo_n "(cached) " >&6 |
453310d8 | 18555 | else |
db9f46a9 | 18556 | if test x$gcc_no_link = xyes; then |
22e05272 | 18557 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18558 | fi |
5213506e | 18559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18560 | /* end confdefs.h. */ |
18561 | ||
db9f46a9 TG |
18562 | #ifdef HAVE_COMPLEX_H |
18563 | #include <complex.h> | |
453310d8 | 18564 | #endif |
db9f46a9 TG |
18565 | #ifdef HAVE_MATH_H |
18566 | #include <math.h> | |
18567 | #endif | |
18568 | ||
18569 | int (*ptr)() = (int (*)())copysignf; | |
18570 | ||
453310d8 RS |
18571 | int |
18572 | main () | |
18573 | { | |
453310d8 RS |
18574 | return 0; |
18575 | } | |
db9f46a9 | 18576 | |
453310d8 | 18577 | _ACEOF |
5213506e | 18578 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18579 | gcc_cv_math_func_copysignf=yes |
453310d8 | 18580 | else |
db9f46a9 | 18581 | gcc_cv_math_func_copysignf=no |
453310d8 | 18582 | fi |
5213506e RW |
18583 | rm -f core conftest.err conftest.$ac_objext \ |
18584 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18585 | fi |
db9f46a9 TG |
18586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18587 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18588 | if test $gcc_cv_math_func_copysignf = yes; then | |
f1cdfa01 | 18589 | |
f38a14ca TG |
18590 | cat >>confdefs.h <<_ACEOF |
18591 | #define HAVE_COPYSIGNF 1 | |
18592 | _ACEOF | |
db9f46a9 TG |
18593 | |
18594 | fi | |
18595 | ||
453310d8 | 18596 | |
453310d8 | 18597 | |
453310d8 | 18598 | |
db9f46a9 TG |
18599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18600 | $as_echo_n "checking for copysign... " >&6; } | |
22e05272 | 18601 | if ${gcc_cv_math_func_copysign+:} false; then : |
5213506e | 18602 | $as_echo_n "(cached) " >&6 |
453310d8 | 18603 | else |
db9f46a9 | 18604 | if test x$gcc_no_link = xyes; then |
22e05272 | 18605 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18606 | fi |
5213506e | 18607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18608 | /* end confdefs.h. */ |
18609 | ||
db9f46a9 TG |
18610 | #ifdef HAVE_COMPLEX_H |
18611 | #include <complex.h> | |
18612 | #endif | |
18613 | #ifdef HAVE_MATH_H | |
18614 | #include <math.h> | |
453310d8 | 18615 | #endif |
db9f46a9 TG |
18616 | |
18617 | int (*ptr)() = (int (*)())copysign; | |
18618 | ||
453310d8 RS |
18619 | int |
18620 | main () | |
18621 | { | |
453310d8 RS |
18622 | return 0; |
18623 | } | |
db9f46a9 | 18624 | |
453310d8 | 18625 | _ACEOF |
5213506e | 18626 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18627 | gcc_cv_math_func_copysign=yes |
453310d8 | 18628 | else |
db9f46a9 | 18629 | gcc_cv_math_func_copysign=no |
453310d8 | 18630 | fi |
5213506e RW |
18631 | rm -f core conftest.err conftest.$ac_objext \ |
18632 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18633 | fi |
db9f46a9 TG |
18634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18635 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18636 | if test $gcc_cv_math_func_copysign = yes; then | |
f1cdfa01 | 18637 | |
f38a14ca TG |
18638 | cat >>confdefs.h <<_ACEOF |
18639 | #define HAVE_COPYSIGN 1 | |
18640 | _ACEOF | |
db9f46a9 TG |
18641 | |
18642 | fi | |
453310d8 | 18643 | |
453310d8 | 18644 | |
453310d8 | 18645 | |
db9f46a9 TG |
18646 | |
18647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18648 | $as_echo_n "checking for copysignl... " >&6; } | |
22e05272 | 18649 | if ${gcc_cv_math_func_copysignl+:} false; then : |
5213506e | 18650 | $as_echo_n "(cached) " >&6 |
453310d8 | 18651 | else |
db9f46a9 | 18652 | if test x$gcc_no_link = xyes; then |
22e05272 | 18653 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18654 | fi |
5213506e | 18655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
453310d8 RS |
18656 | /* end confdefs.h. */ |
18657 | ||
db9f46a9 TG |
18658 | #ifdef HAVE_COMPLEX_H |
18659 | #include <complex.h> | |
453310d8 | 18660 | #endif |
db9f46a9 TG |
18661 | #ifdef HAVE_MATH_H |
18662 | #include <math.h> | |
18663 | #endif | |
18664 | ||
18665 | int (*ptr)() = (int (*)())copysignl; | |
18666 | ||
453310d8 RS |
18667 | int |
18668 | main () | |
18669 | { | |
5213506e RW |
18670 | return 0; |
18671 | } | |
db9f46a9 | 18672 | |
5213506e RW |
18673 | _ACEOF |
18674 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 18675 | gcc_cv_math_func_copysignl=yes |
453310d8 | 18676 | else |
db9f46a9 | 18677 | gcc_cv_math_func_copysignl=no |
453310d8 | 18678 | fi |
5213506e RW |
18679 | rm -f core conftest.err conftest.$ac_objext \ |
18680 | conftest$ac_exeext conftest.$ac_ext | |
453310d8 | 18681 | fi |
db9f46a9 TG |
18682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18683 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18684 | if test $gcc_cv_math_func_copysignl = yes; then | |
f1cdfa01 | 18685 | |
f38a14ca TG |
18686 | cat >>confdefs.h <<_ACEOF |
18687 | #define HAVE_COPYSIGNL 1 | |
18688 | _ACEOF | |
453310d8 | 18689 | |
db9f46a9 | 18690 | fi |
a9e7b9d3 | 18691 | |
a9e7b9d3 | 18692 | |
db9f46a9 TG |
18693 | |
18694 | ||
18695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18696 | $as_echo_n "checking for cosf... " >&6; } | |
22e05272 | 18697 | if ${gcc_cv_math_func_cosf+:} false; then : |
5213506e | 18698 | $as_echo_n "(cached) " >&6 |
69a2d125 | 18699 | else |
db9f46a9 | 18700 | if test x$gcc_no_link = xyes; then |
22e05272 | 18701 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 18702 | fi |
5213506e | 18703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
18704 | /* end confdefs.h. */ |
18705 | ||
db9f46a9 TG |
18706 | #ifdef HAVE_COMPLEX_H |
18707 | #include <complex.h> | |
18708 | #endif | |
18709 | #ifdef HAVE_MATH_H | |
18710 | #include <math.h> | |
69a2d125 | 18711 | #endif |
db9f46a9 TG |
18712 | |
18713 | int (*ptr)() = (int (*)())cosf; | |
18714 | ||
69a2d125 EB |
18715 | int |
18716 | main () | |
18717 | { | |
69a2d125 EB |
18718 | return 0; |
18719 | } | |
db9f46a9 | 18720 | |
69a2d125 | 18721 | _ACEOF |
5213506e | 18722 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18723 | gcc_cv_math_func_cosf=yes |
69a2d125 | 18724 | else |
db9f46a9 | 18725 | gcc_cv_math_func_cosf=no |
69a2d125 | 18726 | fi |
5213506e RW |
18727 | rm -f core conftest.err conftest.$ac_objext \ |
18728 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 18729 | fi |
db9f46a9 TG |
18730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18731 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18732 | if test $gcc_cv_math_func_cosf = yes; then | |
f1cdfa01 | 18733 | |
f38a14ca TG |
18734 | cat >>confdefs.h <<_ACEOF |
18735 | #define HAVE_COSF 1 | |
18736 | _ACEOF | |
db9f46a9 TG |
18737 | |
18738 | fi | |
69a2d125 | 18739 | |
1409cd0b | 18740 | |
1409cd0b | 18741 | |
db9f46a9 TG |
18742 | |
18743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18744 | $as_echo_n "checking for cos... " >&6; } | |
22e05272 | 18745 | if ${gcc_cv_math_func_cos+:} false; then : |
5213506e | 18746 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18747 | else |
db9f46a9 | 18748 | if test x$gcc_no_link = xyes; then |
22e05272 | 18749 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18750 | fi |
5213506e | 18751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18752 | /* end confdefs.h. */ |
18753 | ||
db9f46a9 TG |
18754 | #ifdef HAVE_COMPLEX_H |
18755 | #include <complex.h> | |
1409cd0b | 18756 | #endif |
db9f46a9 TG |
18757 | #ifdef HAVE_MATH_H |
18758 | #include <math.h> | |
18759 | #endif | |
18760 | ||
18761 | int (*ptr)() = (int (*)())cos; | |
18762 | ||
1409cd0b FXC |
18763 | int |
18764 | main () | |
18765 | { | |
1409cd0b FXC |
18766 | return 0; |
18767 | } | |
db9f46a9 | 18768 | |
1409cd0b | 18769 | _ACEOF |
5213506e | 18770 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18771 | gcc_cv_math_func_cos=yes |
1409cd0b | 18772 | else |
db9f46a9 | 18773 | gcc_cv_math_func_cos=no |
1409cd0b | 18774 | fi |
5213506e RW |
18775 | rm -f core conftest.err conftest.$ac_objext \ |
18776 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18777 | fi |
db9f46a9 TG |
18778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18779 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18780 | if test $gcc_cv_math_func_cos = yes; then | |
f1cdfa01 | 18781 | |
f38a14ca TG |
18782 | cat >>confdefs.h <<_ACEOF |
18783 | #define HAVE_COS 1 | |
18784 | _ACEOF | |
db9f46a9 TG |
18785 | |
18786 | fi | |
18787 | ||
1409cd0b | 18788 | |
1409cd0b | 18789 | |
1409cd0b | 18790 | |
db9f46a9 TG |
18791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18792 | $as_echo_n "checking for cosl... " >&6; } | |
22e05272 | 18793 | if ${gcc_cv_math_func_cosl+:} false; then : |
5213506e | 18794 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18795 | else |
db9f46a9 | 18796 | if test x$gcc_no_link = xyes; then |
22e05272 | 18797 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18798 | fi |
5213506e | 18799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18800 | /* end confdefs.h. */ |
18801 | ||
db9f46a9 TG |
18802 | #ifdef HAVE_COMPLEX_H |
18803 | #include <complex.h> | |
18804 | #endif | |
18805 | #ifdef HAVE_MATH_H | |
18806 | #include <math.h> | |
1409cd0b | 18807 | #endif |
db9f46a9 TG |
18808 | |
18809 | int (*ptr)() = (int (*)())cosl; | |
18810 | ||
1409cd0b FXC |
18811 | int |
18812 | main () | |
18813 | { | |
1409cd0b FXC |
18814 | return 0; |
18815 | } | |
db9f46a9 | 18816 | |
1409cd0b | 18817 | _ACEOF |
5213506e | 18818 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18819 | gcc_cv_math_func_cosl=yes |
1409cd0b | 18820 | else |
db9f46a9 | 18821 | gcc_cv_math_func_cosl=no |
1409cd0b | 18822 | fi |
5213506e RW |
18823 | rm -f core conftest.err conftest.$ac_objext \ |
18824 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18825 | fi |
db9f46a9 TG |
18826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18827 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18828 | if test $gcc_cv_math_func_cosl = yes; then | |
f1cdfa01 | 18829 | |
f38a14ca TG |
18830 | cat >>confdefs.h <<_ACEOF |
18831 | #define HAVE_COSL 1 | |
18832 | _ACEOF | |
db9f46a9 TG |
18833 | |
18834 | fi | |
1409cd0b | 18835 | |
1409cd0b | 18836 | |
1409cd0b | 18837 | |
db9f46a9 TG |
18838 | |
18839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18840 | $as_echo_n "checking for ccosf... " >&6; } | |
22e05272 | 18841 | if ${gcc_cv_math_func_ccosf+:} false; then : |
5213506e | 18842 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18843 | else |
db9f46a9 | 18844 | if test x$gcc_no_link = xyes; then |
22e05272 | 18845 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18846 | fi |
5213506e | 18847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18848 | /* end confdefs.h. */ |
18849 | ||
db9f46a9 TG |
18850 | #ifdef HAVE_COMPLEX_H |
18851 | #include <complex.h> | |
1409cd0b | 18852 | #endif |
db9f46a9 TG |
18853 | #ifdef HAVE_MATH_H |
18854 | #include <math.h> | |
18855 | #endif | |
18856 | ||
18857 | int (*ptr)() = (int (*)())ccosf; | |
18858 | ||
1409cd0b FXC |
18859 | int |
18860 | main () | |
18861 | { | |
1409cd0b FXC |
18862 | return 0; |
18863 | } | |
db9f46a9 | 18864 | |
1409cd0b | 18865 | _ACEOF |
5213506e | 18866 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18867 | gcc_cv_math_func_ccosf=yes |
1409cd0b | 18868 | else |
db9f46a9 | 18869 | gcc_cv_math_func_ccosf=no |
1409cd0b | 18870 | fi |
5213506e RW |
18871 | rm -f core conftest.err conftest.$ac_objext \ |
18872 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18873 | fi |
db9f46a9 TG |
18874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18875 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18876 | if test $gcc_cv_math_func_ccosf = yes; then | |
f1cdfa01 | 18877 | |
f38a14ca TG |
18878 | cat >>confdefs.h <<_ACEOF |
18879 | #define HAVE_CCOSF 1 | |
18880 | _ACEOF | |
1409cd0b | 18881 | |
db9f46a9 | 18882 | fi |
1409cd0b | 18883 | |
1409cd0b | 18884 | |
db9f46a9 TG |
18885 | |
18886 | ||
18887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18888 | $as_echo_n "checking for ccos... " >&6; } | |
22e05272 | 18889 | if ${gcc_cv_math_func_ccos+:} false; then : |
5213506e | 18890 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18891 | else |
db9f46a9 | 18892 | if test x$gcc_no_link = xyes; then |
22e05272 | 18893 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18894 | fi |
5213506e | 18895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18896 | /* end confdefs.h. */ |
18897 | ||
db9f46a9 TG |
18898 | #ifdef HAVE_COMPLEX_H |
18899 | #include <complex.h> | |
18900 | #endif | |
18901 | #ifdef HAVE_MATH_H | |
18902 | #include <math.h> | |
1409cd0b | 18903 | #endif |
db9f46a9 TG |
18904 | |
18905 | int (*ptr)() = (int (*)())ccos; | |
18906 | ||
1409cd0b FXC |
18907 | int |
18908 | main () | |
18909 | { | |
1409cd0b FXC |
18910 | return 0; |
18911 | } | |
db9f46a9 | 18912 | |
1409cd0b | 18913 | _ACEOF |
5213506e | 18914 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18915 | gcc_cv_math_func_ccos=yes |
1409cd0b | 18916 | else |
db9f46a9 | 18917 | gcc_cv_math_func_ccos=no |
1409cd0b | 18918 | fi |
5213506e RW |
18919 | rm -f core conftest.err conftest.$ac_objext \ |
18920 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18921 | fi |
db9f46a9 TG |
18922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18923 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18924 | if test $gcc_cv_math_func_ccos = yes; then | |
f1cdfa01 | 18925 | |
f38a14ca TG |
18926 | cat >>confdefs.h <<_ACEOF |
18927 | #define HAVE_CCOS 1 | |
18928 | _ACEOF | |
db9f46a9 TG |
18929 | |
18930 | fi | |
1409cd0b | 18931 | |
1409cd0b | 18932 | |
1409cd0b | 18933 | |
db9f46a9 TG |
18934 | |
18935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18936 | $as_echo_n "checking for ccosl... " >&6; } | |
22e05272 | 18937 | if ${gcc_cv_math_func_ccosl+:} false; then : |
5213506e | 18938 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18939 | else |
db9f46a9 | 18940 | if test x$gcc_no_link = xyes; then |
22e05272 | 18941 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18942 | fi |
5213506e | 18943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18944 | /* end confdefs.h. */ |
18945 | ||
db9f46a9 TG |
18946 | #ifdef HAVE_COMPLEX_H |
18947 | #include <complex.h> | |
1409cd0b | 18948 | #endif |
db9f46a9 TG |
18949 | #ifdef HAVE_MATH_H |
18950 | #include <math.h> | |
18951 | #endif | |
18952 | ||
18953 | int (*ptr)() = (int (*)())ccosl; | |
18954 | ||
1409cd0b FXC |
18955 | int |
18956 | main () | |
18957 | { | |
1409cd0b FXC |
18958 | return 0; |
18959 | } | |
db9f46a9 | 18960 | |
1409cd0b | 18961 | _ACEOF |
5213506e | 18962 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 18963 | gcc_cv_math_func_ccosl=yes |
1409cd0b | 18964 | else |
db9f46a9 | 18965 | gcc_cv_math_func_ccosl=no |
1409cd0b | 18966 | fi |
5213506e RW |
18967 | rm -f core conftest.err conftest.$ac_objext \ |
18968 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 18969 | fi |
db9f46a9 TG |
18970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
18971 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
18972 | if test $gcc_cv_math_func_ccosl = yes; then | |
f1cdfa01 | 18973 | |
f38a14ca TG |
18974 | cat >>confdefs.h <<_ACEOF |
18975 | #define HAVE_CCOSL 1 | |
18976 | _ACEOF | |
db9f46a9 TG |
18977 | |
18978 | fi | |
18979 | ||
1409cd0b | 18980 | |
1409cd0b | 18981 | |
1409cd0b | 18982 | |
db9f46a9 TG |
18983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
18984 | $as_echo_n "checking for coshf... " >&6; } | |
22e05272 | 18985 | if ${gcc_cv_math_func_coshf+:} false; then : |
5213506e | 18986 | $as_echo_n "(cached) " >&6 |
1409cd0b | 18987 | else |
db9f46a9 | 18988 | if test x$gcc_no_link = xyes; then |
22e05272 | 18989 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 18990 | fi |
5213506e | 18991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
18992 | /* end confdefs.h. */ |
18993 | ||
db9f46a9 TG |
18994 | #ifdef HAVE_COMPLEX_H |
18995 | #include <complex.h> | |
18996 | #endif | |
18997 | #ifdef HAVE_MATH_H | |
18998 | #include <math.h> | |
1409cd0b | 18999 | #endif |
db9f46a9 TG |
19000 | |
19001 | int (*ptr)() = (int (*)())coshf; | |
19002 | ||
1409cd0b FXC |
19003 | int |
19004 | main () | |
19005 | { | |
1409cd0b FXC |
19006 | return 0; |
19007 | } | |
db9f46a9 | 19008 | |
1409cd0b | 19009 | _ACEOF |
5213506e | 19010 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19011 | gcc_cv_math_func_coshf=yes |
1409cd0b | 19012 | else |
db9f46a9 | 19013 | gcc_cv_math_func_coshf=no |
1409cd0b | 19014 | fi |
5213506e RW |
19015 | rm -f core conftest.err conftest.$ac_objext \ |
19016 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19017 | fi |
db9f46a9 TG |
19018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
19019 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
19020 | if test $gcc_cv_math_func_coshf = yes; then | |
f1cdfa01 | 19021 | |
f38a14ca TG |
19022 | cat >>confdefs.h <<_ACEOF |
19023 | #define HAVE_COSHF 1 | |
19024 | _ACEOF | |
db9f46a9 TG |
19025 | |
19026 | fi | |
1409cd0b | 19027 | |
1409cd0b | 19028 | |
1409cd0b | 19029 | |
db9f46a9 TG |
19030 | |
19031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
19032 | $as_echo_n "checking for cosh... " >&6; } | |
22e05272 | 19033 | if ${gcc_cv_math_func_cosh+:} false; then : |
5213506e | 19034 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19035 | else |
db9f46a9 | 19036 | if test x$gcc_no_link = xyes; then |
22e05272 | 19037 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19038 | fi |
5213506e | 19039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19040 | /* end confdefs.h. */ |
19041 | ||
db9f46a9 TG |
19042 | #ifdef HAVE_COMPLEX_H |
19043 | #include <complex.h> | |
1409cd0b | 19044 | #endif |
db9f46a9 TG |
19045 | #ifdef HAVE_MATH_H |
19046 | #include <math.h> | |
19047 | #endif | |
19048 | ||
19049 | int (*ptr)() = (int (*)())cosh; | |
19050 | ||
1409cd0b FXC |
19051 | int |
19052 | main () | |
19053 | { | |
1409cd0b FXC |
19054 | return 0; |
19055 | } | |
db9f46a9 | 19056 | |
1409cd0b | 19057 | _ACEOF |
5213506e | 19058 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19059 | gcc_cv_math_func_cosh=yes |
1409cd0b | 19060 | else |
db9f46a9 | 19061 | gcc_cv_math_func_cosh=no |
1409cd0b | 19062 | fi |
5213506e RW |
19063 | rm -f core conftest.err conftest.$ac_objext \ |
19064 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19065 | fi |
db9f46a9 TG |
19066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
19067 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
19068 | if test $gcc_cv_math_func_cosh = yes; then | |
f1cdfa01 | 19069 | |
f38a14ca TG |
19070 | cat >>confdefs.h <<_ACEOF |
19071 | #define HAVE_COSH 1 | |
19072 | _ACEOF | |
1409cd0b | 19073 | |
db9f46a9 | 19074 | fi |
1409cd0b | 19075 | |
1409cd0b | 19076 | |
db9f46a9 TG |
19077 | |
19078 | ||
19079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
19080 | $as_echo_n "checking for coshl... " >&6; } | |
22e05272 | 19081 | if ${gcc_cv_math_func_coshl+:} false; then : |
5213506e | 19082 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19083 | else |
db9f46a9 | 19084 | if test x$gcc_no_link = xyes; then |
22e05272 | 19085 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19086 | fi |
5213506e | 19087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19088 | /* end confdefs.h. */ |
19089 | ||
db9f46a9 TG |
19090 | #ifdef HAVE_COMPLEX_H |
19091 | #include <complex.h> | |
19092 | #endif | |
19093 | #ifdef HAVE_MATH_H | |
19094 | #include <math.h> | |
1409cd0b | 19095 | #endif |
db9f46a9 TG |
19096 | |
19097 | int (*ptr)() = (int (*)())coshl; | |
19098 | ||
1409cd0b FXC |
19099 | int |
19100 | main () | |
19101 | { | |
1409cd0b FXC |
19102 | return 0; |
19103 | } | |
db9f46a9 | 19104 | |
1409cd0b | 19105 | _ACEOF |
5213506e | 19106 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19107 | gcc_cv_math_func_coshl=yes |
1409cd0b | 19108 | else |
db9f46a9 | 19109 | gcc_cv_math_func_coshl=no |
1409cd0b | 19110 | fi |
5213506e RW |
19111 | rm -f core conftest.err conftest.$ac_objext \ |
19112 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19113 | fi |
db9f46a9 TG |
19114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
19115 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
19116 | if test $gcc_cv_math_func_coshl = yes; then | |
f1cdfa01 | 19117 | |
f38a14ca TG |
19118 | cat >>confdefs.h <<_ACEOF |
19119 | #define HAVE_COSHL 1 | |
19120 | _ACEOF | |
db9f46a9 TG |
19121 | |
19122 | fi | |
1409cd0b | 19123 | |
1409cd0b | 19124 | |
1409cd0b | 19125 | |
db9f46a9 TG |
19126 | |
19127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
19128 | $as_echo_n "checking for ccoshf... " >&6; } | |
22e05272 | 19129 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
5213506e | 19130 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19131 | else |
db9f46a9 | 19132 | if test x$gcc_no_link = xyes; then |
22e05272 | 19133 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19134 | fi |
5213506e | 19135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19136 | /* end confdefs.h. */ |
19137 | ||
db9f46a9 TG |
19138 | #ifdef HAVE_COMPLEX_H |
19139 | #include <complex.h> | |
1409cd0b | 19140 | #endif |
db9f46a9 TG |
19141 | #ifdef HAVE_MATH_H |
19142 | #include <math.h> | |
19143 | #endif | |
19144 | ||
19145 | int (*ptr)() = (int (*)())ccoshf; | |
19146 | ||
1409cd0b FXC |
19147 | int |
19148 | main () | |
19149 | { | |
1409cd0b FXC |
19150 | return 0; |
19151 | } | |
db9f46a9 | 19152 | |
1409cd0b | 19153 | _ACEOF |
5213506e | 19154 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19155 | gcc_cv_math_func_ccoshf=yes |
1409cd0b | 19156 | else |
db9f46a9 | 19157 | gcc_cv_math_func_ccoshf=no |
1409cd0b | 19158 | fi |
5213506e RW |
19159 | rm -f core conftest.err conftest.$ac_objext \ |
19160 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19161 | fi |
db9f46a9 TG |
19162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
19163 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
19164 | if test $gcc_cv_math_func_ccoshf = yes; then | |
f1cdfa01 | 19165 | |
f38a14ca TG |
19166 | cat >>confdefs.h <<_ACEOF |
19167 | #define HAVE_CCOSHF 1 | |
19168 | _ACEOF | |
db9f46a9 TG |
19169 | |
19170 | fi | |
19171 | ||
1409cd0b | 19172 | |
1409cd0b | 19173 | |
1409cd0b | 19174 | |
db9f46a9 TG |
19175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19176 | $as_echo_n "checking for ccosh... " >&6; } | |
22e05272 | 19177 | if ${gcc_cv_math_func_ccosh+:} false; then : |
5213506e | 19178 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19179 | else |
db9f46a9 | 19180 | if test x$gcc_no_link = xyes; then |
22e05272 | 19181 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19182 | fi |
5213506e | 19183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19184 | /* end confdefs.h. */ |
19185 | ||
db9f46a9 TG |
19186 | #ifdef HAVE_COMPLEX_H |
19187 | #include <complex.h> | |
19188 | #endif | |
19189 | #ifdef HAVE_MATH_H | |
19190 | #include <math.h> | |
1409cd0b | 19191 | #endif |
db9f46a9 TG |
19192 | |
19193 | int (*ptr)() = (int (*)())ccosh; | |
19194 | ||
1409cd0b FXC |
19195 | int |
19196 | main () | |
19197 | { | |
1409cd0b FXC |
19198 | return 0; |
19199 | } | |
db9f46a9 | 19200 | |
1409cd0b | 19201 | _ACEOF |
5213506e | 19202 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19203 | gcc_cv_math_func_ccosh=yes |
1409cd0b | 19204 | else |
db9f46a9 | 19205 | gcc_cv_math_func_ccosh=no |
1409cd0b | 19206 | fi |
5213506e RW |
19207 | rm -f core conftest.err conftest.$ac_objext \ |
19208 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19209 | fi |
db9f46a9 TG |
19210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19211 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19212 | if test $gcc_cv_math_func_ccosh = yes; then | |
f1cdfa01 | 19213 | |
f38a14ca TG |
19214 | cat >>confdefs.h <<_ACEOF |
19215 | #define HAVE_CCOSH 1 | |
19216 | _ACEOF | |
db9f46a9 TG |
19217 | |
19218 | fi | |
1409cd0b | 19219 | |
1409cd0b | 19220 | |
1409cd0b | 19221 | |
db9f46a9 TG |
19222 | |
19223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19224 | $as_echo_n "checking for ccoshl... " >&6; } | |
22e05272 | 19225 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
5213506e | 19226 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19227 | else |
db9f46a9 | 19228 | if test x$gcc_no_link = xyes; then |
22e05272 | 19229 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19230 | fi |
5213506e | 19231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19232 | /* end confdefs.h. */ |
19233 | ||
db9f46a9 TG |
19234 | #ifdef HAVE_COMPLEX_H |
19235 | #include <complex.h> | |
1409cd0b | 19236 | #endif |
db9f46a9 TG |
19237 | #ifdef HAVE_MATH_H |
19238 | #include <math.h> | |
19239 | #endif | |
19240 | ||
19241 | int (*ptr)() = (int (*)())ccoshl; | |
19242 | ||
1409cd0b FXC |
19243 | int |
19244 | main () | |
19245 | { | |
1409cd0b FXC |
19246 | return 0; |
19247 | } | |
db9f46a9 | 19248 | |
1409cd0b | 19249 | _ACEOF |
5213506e | 19250 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19251 | gcc_cv_math_func_ccoshl=yes |
1409cd0b | 19252 | else |
db9f46a9 | 19253 | gcc_cv_math_func_ccoshl=no |
1409cd0b | 19254 | fi |
5213506e RW |
19255 | rm -f core conftest.err conftest.$ac_objext \ |
19256 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19257 | fi |
db9f46a9 TG |
19258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19259 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19260 | if test $gcc_cv_math_func_ccoshl = yes; then | |
f1cdfa01 | 19261 | |
f38a14ca TG |
19262 | cat >>confdefs.h <<_ACEOF |
19263 | #define HAVE_CCOSHL 1 | |
19264 | _ACEOF | |
1409cd0b | 19265 | |
db9f46a9 | 19266 | fi |
1409cd0b | 19267 | |
1409cd0b | 19268 | |
db9f46a9 TG |
19269 | |
19270 | ||
19271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19272 | $as_echo_n "checking for expf... " >&6; } | |
22e05272 | 19273 | if ${gcc_cv_math_func_expf+:} false; then : |
5213506e | 19274 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19275 | else |
db9f46a9 | 19276 | if test x$gcc_no_link = xyes; then |
22e05272 | 19277 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19278 | fi |
5213506e | 19279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19280 | /* end confdefs.h. */ |
19281 | ||
db9f46a9 TG |
19282 | #ifdef HAVE_COMPLEX_H |
19283 | #include <complex.h> | |
19284 | #endif | |
19285 | #ifdef HAVE_MATH_H | |
19286 | #include <math.h> | |
1409cd0b | 19287 | #endif |
db9f46a9 TG |
19288 | |
19289 | int (*ptr)() = (int (*)())expf; | |
19290 | ||
1409cd0b FXC |
19291 | int |
19292 | main () | |
19293 | { | |
1409cd0b FXC |
19294 | return 0; |
19295 | } | |
db9f46a9 | 19296 | |
1409cd0b | 19297 | _ACEOF |
5213506e | 19298 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19299 | gcc_cv_math_func_expf=yes |
1409cd0b | 19300 | else |
db9f46a9 | 19301 | gcc_cv_math_func_expf=no |
1409cd0b | 19302 | fi |
5213506e RW |
19303 | rm -f core conftest.err conftest.$ac_objext \ |
19304 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19305 | fi |
db9f46a9 TG |
19306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19307 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19308 | if test $gcc_cv_math_func_expf = yes; then | |
f1cdfa01 | 19309 | |
f38a14ca TG |
19310 | cat >>confdefs.h <<_ACEOF |
19311 | #define HAVE_EXPF 1 | |
19312 | _ACEOF | |
db9f46a9 TG |
19313 | |
19314 | fi | |
1409cd0b | 19315 | |
1409cd0b | 19316 | |
1409cd0b | 19317 | |
db9f46a9 TG |
19318 | |
19319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19320 | $as_echo_n "checking for exp... " >&6; } | |
22e05272 | 19321 | if ${gcc_cv_math_func_exp+:} false; then : |
5213506e | 19322 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19323 | else |
db9f46a9 | 19324 | if test x$gcc_no_link = xyes; then |
22e05272 | 19325 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19326 | fi |
5213506e | 19327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19328 | /* end confdefs.h. */ |
19329 | ||
db9f46a9 TG |
19330 | #ifdef HAVE_COMPLEX_H |
19331 | #include <complex.h> | |
1409cd0b | 19332 | #endif |
db9f46a9 TG |
19333 | #ifdef HAVE_MATH_H |
19334 | #include <math.h> | |
19335 | #endif | |
19336 | ||
19337 | int (*ptr)() = (int (*)())exp; | |
19338 | ||
1409cd0b FXC |
19339 | int |
19340 | main () | |
19341 | { | |
1409cd0b FXC |
19342 | return 0; |
19343 | } | |
db9f46a9 | 19344 | |
1409cd0b | 19345 | _ACEOF |
5213506e | 19346 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19347 | gcc_cv_math_func_exp=yes |
1409cd0b | 19348 | else |
db9f46a9 | 19349 | gcc_cv_math_func_exp=no |
1409cd0b | 19350 | fi |
5213506e RW |
19351 | rm -f core conftest.err conftest.$ac_objext \ |
19352 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19353 | fi |
db9f46a9 TG |
19354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19355 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19356 | if test $gcc_cv_math_func_exp = yes; then | |
f1cdfa01 | 19357 | |
f38a14ca TG |
19358 | cat >>confdefs.h <<_ACEOF |
19359 | #define HAVE_EXP 1 | |
19360 | _ACEOF | |
db9f46a9 TG |
19361 | |
19362 | fi | |
19363 | ||
1409cd0b | 19364 | |
1409cd0b | 19365 | |
1409cd0b | 19366 | |
db9f46a9 TG |
19367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19368 | $as_echo_n "checking for expl... " >&6; } | |
22e05272 | 19369 | if ${gcc_cv_math_func_expl+:} false; then : |
5213506e | 19370 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19371 | else |
db9f46a9 | 19372 | if test x$gcc_no_link = xyes; then |
22e05272 | 19373 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19374 | fi |
5213506e | 19375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19376 | /* end confdefs.h. */ |
19377 | ||
db9f46a9 TG |
19378 | #ifdef HAVE_COMPLEX_H |
19379 | #include <complex.h> | |
19380 | #endif | |
19381 | #ifdef HAVE_MATH_H | |
19382 | #include <math.h> | |
1409cd0b | 19383 | #endif |
db9f46a9 TG |
19384 | |
19385 | int (*ptr)() = (int (*)())expl; | |
19386 | ||
1409cd0b FXC |
19387 | int |
19388 | main () | |
19389 | { | |
1409cd0b FXC |
19390 | return 0; |
19391 | } | |
db9f46a9 | 19392 | |
1409cd0b | 19393 | _ACEOF |
5213506e | 19394 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19395 | gcc_cv_math_func_expl=yes |
1409cd0b | 19396 | else |
db9f46a9 | 19397 | gcc_cv_math_func_expl=no |
1409cd0b | 19398 | fi |
5213506e RW |
19399 | rm -f core conftest.err conftest.$ac_objext \ |
19400 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19401 | fi |
db9f46a9 TG |
19402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19403 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19404 | if test $gcc_cv_math_func_expl = yes; then | |
f1cdfa01 | 19405 | |
f38a14ca TG |
19406 | cat >>confdefs.h <<_ACEOF |
19407 | #define HAVE_EXPL 1 | |
19408 | _ACEOF | |
db9f46a9 TG |
19409 | |
19410 | fi | |
1409cd0b | 19411 | |
1409cd0b | 19412 | |
1409cd0b | 19413 | |
db9f46a9 TG |
19414 | |
19415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19416 | $as_echo_n "checking for cexpf... " >&6; } | |
22e05272 | 19417 | if ${gcc_cv_math_func_cexpf+:} false; then : |
5213506e | 19418 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19419 | else |
db9f46a9 | 19420 | if test x$gcc_no_link = xyes; then |
22e05272 | 19421 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19422 | fi |
5213506e | 19423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19424 | /* end confdefs.h. */ |
19425 | ||
db9f46a9 TG |
19426 | #ifdef HAVE_COMPLEX_H |
19427 | #include <complex.h> | |
1409cd0b | 19428 | #endif |
db9f46a9 TG |
19429 | #ifdef HAVE_MATH_H |
19430 | #include <math.h> | |
19431 | #endif | |
19432 | ||
19433 | int (*ptr)() = (int (*)())cexpf; | |
19434 | ||
1409cd0b FXC |
19435 | int |
19436 | main () | |
19437 | { | |
1409cd0b FXC |
19438 | return 0; |
19439 | } | |
db9f46a9 | 19440 | |
1409cd0b | 19441 | _ACEOF |
5213506e | 19442 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19443 | gcc_cv_math_func_cexpf=yes |
1409cd0b | 19444 | else |
db9f46a9 | 19445 | gcc_cv_math_func_cexpf=no |
1409cd0b | 19446 | fi |
5213506e RW |
19447 | rm -f core conftest.err conftest.$ac_objext \ |
19448 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19449 | fi |
db9f46a9 TG |
19450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19451 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19452 | if test $gcc_cv_math_func_cexpf = yes; then | |
f1cdfa01 | 19453 | |
f38a14ca TG |
19454 | cat >>confdefs.h <<_ACEOF |
19455 | #define HAVE_CEXPF 1 | |
19456 | _ACEOF | |
1409cd0b | 19457 | |
db9f46a9 | 19458 | fi |
1409cd0b | 19459 | |
1409cd0b | 19460 | |
db9f46a9 TG |
19461 | |
19462 | ||
19463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19464 | $as_echo_n "checking for cexp... " >&6; } | |
22e05272 | 19465 | if ${gcc_cv_math_func_cexp+:} false; then : |
5213506e | 19466 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19467 | else |
db9f46a9 | 19468 | if test x$gcc_no_link = xyes; then |
22e05272 | 19469 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19470 | fi |
5213506e | 19471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19472 | /* end confdefs.h. */ |
19473 | ||
db9f46a9 TG |
19474 | #ifdef HAVE_COMPLEX_H |
19475 | #include <complex.h> | |
19476 | #endif | |
19477 | #ifdef HAVE_MATH_H | |
19478 | #include <math.h> | |
1409cd0b | 19479 | #endif |
db9f46a9 TG |
19480 | |
19481 | int (*ptr)() = (int (*)())cexp; | |
19482 | ||
1409cd0b FXC |
19483 | int |
19484 | main () | |
19485 | { | |
1409cd0b FXC |
19486 | return 0; |
19487 | } | |
db9f46a9 | 19488 | |
1409cd0b | 19489 | _ACEOF |
5213506e | 19490 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19491 | gcc_cv_math_func_cexp=yes |
1409cd0b | 19492 | else |
db9f46a9 | 19493 | gcc_cv_math_func_cexp=no |
1409cd0b | 19494 | fi |
5213506e RW |
19495 | rm -f core conftest.err conftest.$ac_objext \ |
19496 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19497 | fi |
db9f46a9 TG |
19498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19499 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19500 | if test $gcc_cv_math_func_cexp = yes; then | |
f1cdfa01 | 19501 | |
f38a14ca TG |
19502 | cat >>confdefs.h <<_ACEOF |
19503 | #define HAVE_CEXP 1 | |
19504 | _ACEOF | |
db9f46a9 TG |
19505 | |
19506 | fi | |
1409cd0b | 19507 | |
1409cd0b | 19508 | |
1409cd0b | 19509 | |
db9f46a9 TG |
19510 | |
19511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19512 | $as_echo_n "checking for cexpl... " >&6; } | |
22e05272 | 19513 | if ${gcc_cv_math_func_cexpl+:} false; then : |
5213506e | 19514 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19515 | else |
db9f46a9 | 19516 | if test x$gcc_no_link = xyes; then |
22e05272 | 19517 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19518 | fi |
5213506e | 19519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19520 | /* end confdefs.h. */ |
19521 | ||
db9f46a9 TG |
19522 | #ifdef HAVE_COMPLEX_H |
19523 | #include <complex.h> | |
1409cd0b | 19524 | #endif |
db9f46a9 TG |
19525 | #ifdef HAVE_MATH_H |
19526 | #include <math.h> | |
19527 | #endif | |
19528 | ||
19529 | int (*ptr)() = (int (*)())cexpl; | |
19530 | ||
1409cd0b FXC |
19531 | int |
19532 | main () | |
19533 | { | |
1409cd0b FXC |
19534 | return 0; |
19535 | } | |
db9f46a9 | 19536 | |
1409cd0b | 19537 | _ACEOF |
5213506e | 19538 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19539 | gcc_cv_math_func_cexpl=yes |
1409cd0b | 19540 | else |
db9f46a9 | 19541 | gcc_cv_math_func_cexpl=no |
1409cd0b | 19542 | fi |
5213506e RW |
19543 | rm -f core conftest.err conftest.$ac_objext \ |
19544 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19545 | fi |
db9f46a9 TG |
19546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19547 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19548 | if test $gcc_cv_math_func_cexpl = yes; then | |
f1cdfa01 | 19549 | |
f38a14ca TG |
19550 | cat >>confdefs.h <<_ACEOF |
19551 | #define HAVE_CEXPL 1 | |
19552 | _ACEOF | |
db9f46a9 TG |
19553 | |
19554 | fi | |
19555 | ||
1409cd0b | 19556 | |
1409cd0b | 19557 | |
1409cd0b | 19558 | |
db9f46a9 TG |
19559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19560 | $as_echo_n "checking for fabsf... " >&6; } | |
22e05272 | 19561 | if ${gcc_cv_math_func_fabsf+:} false; then : |
5213506e | 19562 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19563 | else |
db9f46a9 | 19564 | if test x$gcc_no_link = xyes; then |
22e05272 | 19565 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19566 | fi |
5213506e | 19567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19568 | /* end confdefs.h. */ |
19569 | ||
db9f46a9 TG |
19570 | #ifdef HAVE_COMPLEX_H |
19571 | #include <complex.h> | |
19572 | #endif | |
19573 | #ifdef HAVE_MATH_H | |
19574 | #include <math.h> | |
1409cd0b | 19575 | #endif |
db9f46a9 TG |
19576 | |
19577 | int (*ptr)() = (int (*)())fabsf; | |
19578 | ||
1409cd0b FXC |
19579 | int |
19580 | main () | |
19581 | { | |
1409cd0b FXC |
19582 | return 0; |
19583 | } | |
db9f46a9 | 19584 | |
1409cd0b | 19585 | _ACEOF |
5213506e | 19586 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19587 | gcc_cv_math_func_fabsf=yes |
1409cd0b | 19588 | else |
db9f46a9 | 19589 | gcc_cv_math_func_fabsf=no |
1409cd0b | 19590 | fi |
5213506e RW |
19591 | rm -f core conftest.err conftest.$ac_objext \ |
19592 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19593 | fi |
db9f46a9 TG |
19594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19595 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19596 | if test $gcc_cv_math_func_fabsf = yes; then | |
f1cdfa01 | 19597 | |
f38a14ca TG |
19598 | cat >>confdefs.h <<_ACEOF |
19599 | #define HAVE_FABSF 1 | |
19600 | _ACEOF | |
db9f46a9 TG |
19601 | |
19602 | fi | |
1409cd0b | 19603 | |
1409cd0b | 19604 | |
1409cd0b | 19605 | |
db9f46a9 TG |
19606 | |
19607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19608 | $as_echo_n "checking for fabs... " >&6; } | |
22e05272 | 19609 | if ${gcc_cv_math_func_fabs+:} false; then : |
5213506e | 19610 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19611 | else |
db9f46a9 | 19612 | if test x$gcc_no_link = xyes; then |
22e05272 | 19613 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19614 | fi |
5213506e | 19615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19616 | /* end confdefs.h. */ |
19617 | ||
db9f46a9 TG |
19618 | #ifdef HAVE_COMPLEX_H |
19619 | #include <complex.h> | |
1409cd0b | 19620 | #endif |
db9f46a9 TG |
19621 | #ifdef HAVE_MATH_H |
19622 | #include <math.h> | |
19623 | #endif | |
19624 | ||
19625 | int (*ptr)() = (int (*)())fabs; | |
19626 | ||
1409cd0b FXC |
19627 | int |
19628 | main () | |
19629 | { | |
1409cd0b FXC |
19630 | return 0; |
19631 | } | |
db9f46a9 | 19632 | |
1409cd0b | 19633 | _ACEOF |
5213506e | 19634 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19635 | gcc_cv_math_func_fabs=yes |
1409cd0b | 19636 | else |
db9f46a9 | 19637 | gcc_cv_math_func_fabs=no |
1409cd0b | 19638 | fi |
5213506e RW |
19639 | rm -f core conftest.err conftest.$ac_objext \ |
19640 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19641 | fi |
db9f46a9 TG |
19642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19643 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19644 | if test $gcc_cv_math_func_fabs = yes; then | |
f1cdfa01 | 19645 | |
f38a14ca TG |
19646 | cat >>confdefs.h <<_ACEOF |
19647 | #define HAVE_FABS 1 | |
19648 | _ACEOF | |
1409cd0b | 19649 | |
db9f46a9 | 19650 | fi |
1409cd0b | 19651 | |
1409cd0b | 19652 | |
db9f46a9 TG |
19653 | |
19654 | ||
19655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19656 | $as_echo_n "checking for fabsl... " >&6; } | |
22e05272 | 19657 | if ${gcc_cv_math_func_fabsl+:} false; then : |
5213506e | 19658 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19659 | else |
db9f46a9 | 19660 | if test x$gcc_no_link = xyes; then |
22e05272 | 19661 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19662 | fi |
5213506e | 19663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19664 | /* end confdefs.h. */ |
19665 | ||
db9f46a9 TG |
19666 | #ifdef HAVE_COMPLEX_H |
19667 | #include <complex.h> | |
19668 | #endif | |
19669 | #ifdef HAVE_MATH_H | |
19670 | #include <math.h> | |
1409cd0b | 19671 | #endif |
db9f46a9 TG |
19672 | |
19673 | int (*ptr)() = (int (*)())fabsl; | |
19674 | ||
1409cd0b FXC |
19675 | int |
19676 | main () | |
19677 | { | |
1409cd0b FXC |
19678 | return 0; |
19679 | } | |
db9f46a9 | 19680 | |
1409cd0b | 19681 | _ACEOF |
5213506e | 19682 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19683 | gcc_cv_math_func_fabsl=yes |
1409cd0b | 19684 | else |
db9f46a9 | 19685 | gcc_cv_math_func_fabsl=no |
1409cd0b | 19686 | fi |
5213506e RW |
19687 | rm -f core conftest.err conftest.$ac_objext \ |
19688 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19689 | fi |
db9f46a9 TG |
19690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19691 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19692 | if test $gcc_cv_math_func_fabsl = yes; then | |
f1cdfa01 | 19693 | |
f38a14ca TG |
19694 | cat >>confdefs.h <<_ACEOF |
19695 | #define HAVE_FABSL 1 | |
19696 | _ACEOF | |
db9f46a9 TG |
19697 | |
19698 | fi | |
1409cd0b | 19699 | |
1409cd0b | 19700 | |
1409cd0b | 19701 | |
db9f46a9 TG |
19702 | |
19703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19704 | $as_echo_n "checking for cabsf... " >&6; } | |
22e05272 | 19705 | if ${gcc_cv_math_func_cabsf+:} false; then : |
5213506e | 19706 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19707 | else |
db9f46a9 | 19708 | if test x$gcc_no_link = xyes; then |
22e05272 | 19709 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19710 | fi |
5213506e | 19711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19712 | /* end confdefs.h. */ |
19713 | ||
db9f46a9 TG |
19714 | #ifdef HAVE_COMPLEX_H |
19715 | #include <complex.h> | |
1409cd0b | 19716 | #endif |
db9f46a9 TG |
19717 | #ifdef HAVE_MATH_H |
19718 | #include <math.h> | |
19719 | #endif | |
19720 | ||
19721 | int (*ptr)() = (int (*)())cabsf; | |
19722 | ||
1409cd0b FXC |
19723 | int |
19724 | main () | |
19725 | { | |
1409cd0b FXC |
19726 | return 0; |
19727 | } | |
db9f46a9 | 19728 | |
1409cd0b | 19729 | _ACEOF |
5213506e | 19730 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19731 | gcc_cv_math_func_cabsf=yes |
1409cd0b | 19732 | else |
db9f46a9 | 19733 | gcc_cv_math_func_cabsf=no |
1409cd0b | 19734 | fi |
5213506e RW |
19735 | rm -f core conftest.err conftest.$ac_objext \ |
19736 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19737 | fi |
db9f46a9 TG |
19738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19739 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19740 | if test $gcc_cv_math_func_cabsf = yes; then | |
f1cdfa01 | 19741 | |
f38a14ca TG |
19742 | cat >>confdefs.h <<_ACEOF |
19743 | #define HAVE_CABSF 1 | |
19744 | _ACEOF | |
db9f46a9 TG |
19745 | |
19746 | fi | |
19747 | ||
1409cd0b | 19748 | |
1409cd0b | 19749 | |
1409cd0b | 19750 | |
db9f46a9 TG |
19751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19752 | $as_echo_n "checking for cabs... " >&6; } | |
22e05272 | 19753 | if ${gcc_cv_math_func_cabs+:} false; then : |
5213506e | 19754 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19755 | else |
db9f46a9 | 19756 | if test x$gcc_no_link = xyes; then |
22e05272 | 19757 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19758 | fi |
5213506e | 19759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19760 | /* end confdefs.h. */ |
19761 | ||
db9f46a9 TG |
19762 | #ifdef HAVE_COMPLEX_H |
19763 | #include <complex.h> | |
19764 | #endif | |
19765 | #ifdef HAVE_MATH_H | |
19766 | #include <math.h> | |
1409cd0b | 19767 | #endif |
db9f46a9 TG |
19768 | |
19769 | int (*ptr)() = (int (*)())cabs; | |
19770 | ||
1409cd0b FXC |
19771 | int |
19772 | main () | |
19773 | { | |
1409cd0b FXC |
19774 | return 0; |
19775 | } | |
db9f46a9 | 19776 | |
1409cd0b | 19777 | _ACEOF |
5213506e | 19778 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19779 | gcc_cv_math_func_cabs=yes |
1409cd0b | 19780 | else |
db9f46a9 | 19781 | gcc_cv_math_func_cabs=no |
1409cd0b | 19782 | fi |
5213506e RW |
19783 | rm -f core conftest.err conftest.$ac_objext \ |
19784 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19785 | fi |
db9f46a9 TG |
19786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19787 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19788 | if test $gcc_cv_math_func_cabs = yes; then | |
f1cdfa01 | 19789 | |
f38a14ca TG |
19790 | cat >>confdefs.h <<_ACEOF |
19791 | #define HAVE_CABS 1 | |
19792 | _ACEOF | |
db9f46a9 TG |
19793 | |
19794 | fi | |
1409cd0b | 19795 | |
1409cd0b | 19796 | |
1409cd0b | 19797 | |
db9f46a9 TG |
19798 | |
19799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19800 | $as_echo_n "checking for cabsl... " >&6; } | |
22e05272 | 19801 | if ${gcc_cv_math_func_cabsl+:} false; then : |
5213506e | 19802 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19803 | else |
db9f46a9 | 19804 | if test x$gcc_no_link = xyes; then |
22e05272 | 19805 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19806 | fi |
5213506e | 19807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19808 | /* end confdefs.h. */ |
19809 | ||
db9f46a9 TG |
19810 | #ifdef HAVE_COMPLEX_H |
19811 | #include <complex.h> | |
1409cd0b | 19812 | #endif |
db9f46a9 TG |
19813 | #ifdef HAVE_MATH_H |
19814 | #include <math.h> | |
19815 | #endif | |
19816 | ||
19817 | int (*ptr)() = (int (*)())cabsl; | |
19818 | ||
1409cd0b FXC |
19819 | int |
19820 | main () | |
19821 | { | |
1409cd0b FXC |
19822 | return 0; |
19823 | } | |
db9f46a9 | 19824 | |
1409cd0b | 19825 | _ACEOF |
5213506e | 19826 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19827 | gcc_cv_math_func_cabsl=yes |
1409cd0b | 19828 | else |
db9f46a9 | 19829 | gcc_cv_math_func_cabsl=no |
1409cd0b | 19830 | fi |
5213506e RW |
19831 | rm -f core conftest.err conftest.$ac_objext \ |
19832 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19833 | fi |
db9f46a9 TG |
19834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19835 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19836 | if test $gcc_cv_math_func_cabsl = yes; then | |
f1cdfa01 | 19837 | |
f38a14ca TG |
19838 | cat >>confdefs.h <<_ACEOF |
19839 | #define HAVE_CABSL 1 | |
19840 | _ACEOF | |
1409cd0b | 19841 | |
db9f46a9 | 19842 | fi |
1409cd0b | 19843 | |
1409cd0b | 19844 | |
db9f46a9 TG |
19845 | |
19846 | ||
19847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19848 | $as_echo_n "checking for floorf... " >&6; } | |
22e05272 | 19849 | if ${gcc_cv_math_func_floorf+:} false; then : |
5213506e | 19850 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19851 | else |
db9f46a9 | 19852 | if test x$gcc_no_link = xyes; then |
22e05272 | 19853 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19854 | fi |
5213506e | 19855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19856 | /* end confdefs.h. */ |
19857 | ||
db9f46a9 TG |
19858 | #ifdef HAVE_COMPLEX_H |
19859 | #include <complex.h> | |
19860 | #endif | |
19861 | #ifdef HAVE_MATH_H | |
19862 | #include <math.h> | |
1409cd0b | 19863 | #endif |
db9f46a9 TG |
19864 | |
19865 | int (*ptr)() = (int (*)())floorf; | |
19866 | ||
1409cd0b FXC |
19867 | int |
19868 | main () | |
19869 | { | |
5213506e RW |
19870 | return 0; |
19871 | } | |
db9f46a9 | 19872 | |
5213506e RW |
19873 | _ACEOF |
19874 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 19875 | gcc_cv_math_func_floorf=yes |
1409cd0b | 19876 | else |
db9f46a9 | 19877 | gcc_cv_math_func_floorf=no |
1409cd0b | 19878 | fi |
5213506e RW |
19879 | rm -f core conftest.err conftest.$ac_objext \ |
19880 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19881 | fi |
db9f46a9 TG |
19882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19883 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19884 | if test $gcc_cv_math_func_floorf = yes; then | |
f1cdfa01 | 19885 | |
f38a14ca TG |
19886 | cat >>confdefs.h <<_ACEOF |
19887 | #define HAVE_FLOORF 1 | |
19888 | _ACEOF | |
db9f46a9 TG |
19889 | |
19890 | fi | |
1409cd0b | 19891 | |
1409cd0b | 19892 | |
1409cd0b | 19893 | |
db9f46a9 TG |
19894 | |
19895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19896 | $as_echo_n "checking for floor... " >&6; } | |
22e05272 | 19897 | if ${gcc_cv_math_func_floor+:} false; then : |
5213506e | 19898 | $as_echo_n "(cached) " >&6 |
1409cd0b | 19899 | else |
db9f46a9 | 19900 | if test x$gcc_no_link = xyes; then |
22e05272 | 19901 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 19902 | fi |
5213506e | 19903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
19904 | /* end confdefs.h. */ |
19905 | ||
db9f46a9 TG |
19906 | #ifdef HAVE_COMPLEX_H |
19907 | #include <complex.h> | |
1409cd0b | 19908 | #endif |
db9f46a9 TG |
19909 | #ifdef HAVE_MATH_H |
19910 | #include <math.h> | |
19911 | #endif | |
19912 | ||
19913 | int (*ptr)() = (int (*)())floor; | |
19914 | ||
1409cd0b FXC |
19915 | int |
19916 | main () | |
19917 | { | |
1409cd0b FXC |
19918 | return 0; |
19919 | } | |
db9f46a9 | 19920 | |
1409cd0b | 19921 | _ACEOF |
5213506e | 19922 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19923 | gcc_cv_math_func_floor=yes |
1409cd0b | 19924 | else |
db9f46a9 | 19925 | gcc_cv_math_func_floor=no |
1409cd0b | 19926 | fi |
5213506e RW |
19927 | rm -f core conftest.err conftest.$ac_objext \ |
19928 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 19929 | fi |
db9f46a9 TG |
19930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19931 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19932 | if test $gcc_cv_math_func_floor = yes; then | |
f1cdfa01 | 19933 | |
f38a14ca TG |
19934 | cat >>confdefs.h <<_ACEOF |
19935 | #define HAVE_FLOOR 1 | |
19936 | _ACEOF | |
db9f46a9 TG |
19937 | |
19938 | fi | |
19939 | ||
1409cd0b | 19940 | |
1409cd0b | 19941 | |
1409cd0b | 19942 | |
db9f46a9 TG |
19943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19944 | $as_echo_n "checking for floorl... " >&6; } | |
22e05272 | 19945 | if ${gcc_cv_math_func_floorl+:} false; then : |
5213506e | 19946 | $as_echo_n "(cached) " >&6 |
eb647f7d | 19947 | else |
db9f46a9 | 19948 | if test x$gcc_no_link = xyes; then |
22e05272 | 19949 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 19950 | fi |
5213506e | 19951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
19952 | /* end confdefs.h. */ |
19953 | ||
db9f46a9 TG |
19954 | #ifdef HAVE_COMPLEX_H |
19955 | #include <complex.h> | |
19956 | #endif | |
19957 | #ifdef HAVE_MATH_H | |
19958 | #include <math.h> | |
eb647f7d | 19959 | #endif |
db9f46a9 TG |
19960 | |
19961 | int (*ptr)() = (int (*)())floorl; | |
19962 | ||
eb647f7d FXC |
19963 | int |
19964 | main () | |
19965 | { | |
eb647f7d FXC |
19966 | return 0; |
19967 | } | |
db9f46a9 | 19968 | |
eb647f7d | 19969 | _ACEOF |
5213506e | 19970 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 19971 | gcc_cv_math_func_floorl=yes |
eb647f7d | 19972 | else |
db9f46a9 | 19973 | gcc_cv_math_func_floorl=no |
eb647f7d | 19974 | fi |
5213506e RW |
19975 | rm -f core conftest.err conftest.$ac_objext \ |
19976 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 19977 | fi |
db9f46a9 TG |
19978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
19979 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
19980 | if test $gcc_cv_math_func_floorl = yes; then | |
f1cdfa01 | 19981 | |
f38a14ca TG |
19982 | cat >>confdefs.h <<_ACEOF |
19983 | #define HAVE_FLOORL 1 | |
19984 | _ACEOF | |
db9f46a9 TG |
19985 | |
19986 | fi | |
eb647f7d | 19987 | |
eb647f7d | 19988 | |
eb647f7d | 19989 | |
db9f46a9 | 19990 | |
1868599f JJ |
19991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 |
19992 | $as_echo_n "checking for fmaf... " >&6; } | |
19993 | if ${gcc_cv_math_func_fmaf+:} false; then : | |
19994 | $as_echo_n "(cached) " >&6 | |
19995 | else | |
19996 | if test x$gcc_no_link = xyes; then | |
19997 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
19998 | fi | |
19999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20000 | /* end confdefs.h. */ | |
20001 | ||
20002 | #ifdef HAVE_COMPLEX_H | |
20003 | #include <complex.h> | |
20004 | #endif | |
20005 | #ifdef HAVE_MATH_H | |
20006 | #include <math.h> | |
20007 | #endif | |
20008 | ||
20009 | int (*ptr)() = (int (*)())fmaf; | |
20010 | ||
20011 | int | |
20012 | main () | |
20013 | { | |
20014 | return 0; | |
20015 | } | |
20016 | ||
20017 | _ACEOF | |
20018 | if ac_fn_c_try_link "$LINENO"; then : | |
20019 | gcc_cv_math_func_fmaf=yes | |
20020 | else | |
20021 | gcc_cv_math_func_fmaf=no | |
20022 | fi | |
20023 | rm -f core conftest.err conftest.$ac_objext \ | |
20024 | conftest$ac_exeext conftest.$ac_ext | |
20025 | fi | |
20026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 | |
20027 | $as_echo "$gcc_cv_math_func_fmaf" >&6; } | |
20028 | if test $gcc_cv_math_func_fmaf = yes; then | |
20029 | ||
20030 | cat >>confdefs.h <<_ACEOF | |
20031 | #define HAVE_FMAF 1 | |
20032 | _ACEOF | |
20033 | ||
20034 | fi | |
20035 | ||
20036 | ||
20037 | ||
20038 | ||
20039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 | |
20040 | $as_echo_n "checking for fma... " >&6; } | |
20041 | if ${gcc_cv_math_func_fma+:} false; then : | |
20042 | $as_echo_n "(cached) " >&6 | |
20043 | else | |
20044 | if test x$gcc_no_link = xyes; then | |
20045 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20046 | fi | |
20047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20048 | /* end confdefs.h. */ | |
20049 | ||
20050 | #ifdef HAVE_COMPLEX_H | |
20051 | #include <complex.h> | |
20052 | #endif | |
20053 | #ifdef HAVE_MATH_H | |
20054 | #include <math.h> | |
20055 | #endif | |
20056 | ||
20057 | int (*ptr)() = (int (*)())fma; | |
20058 | ||
20059 | int | |
20060 | main () | |
20061 | { | |
20062 | return 0; | |
20063 | } | |
20064 | ||
20065 | _ACEOF | |
20066 | if ac_fn_c_try_link "$LINENO"; then : | |
20067 | gcc_cv_math_func_fma=yes | |
20068 | else | |
20069 | gcc_cv_math_func_fma=no | |
20070 | fi | |
20071 | rm -f core conftest.err conftest.$ac_objext \ | |
20072 | conftest$ac_exeext conftest.$ac_ext | |
20073 | fi | |
20074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 | |
20075 | $as_echo "$gcc_cv_math_func_fma" >&6; } | |
20076 | if test $gcc_cv_math_func_fma = yes; then | |
20077 | ||
20078 | cat >>confdefs.h <<_ACEOF | |
20079 | #define HAVE_FMA 1 | |
20080 | _ACEOF | |
20081 | ||
20082 | fi | |
20083 | ||
20084 | ||
20085 | ||
20086 | ||
20087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 | |
20088 | $as_echo_n "checking for fmal... " >&6; } | |
20089 | if ${gcc_cv_math_func_fmal+:} false; then : | |
20090 | $as_echo_n "(cached) " >&6 | |
20091 | else | |
20092 | if test x$gcc_no_link = xyes; then | |
20093 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20094 | fi | |
20095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20096 | /* end confdefs.h. */ | |
20097 | ||
20098 | #ifdef HAVE_COMPLEX_H | |
20099 | #include <complex.h> | |
20100 | #endif | |
20101 | #ifdef HAVE_MATH_H | |
20102 | #include <math.h> | |
20103 | #endif | |
20104 | ||
20105 | int (*ptr)() = (int (*)())fmal; | |
20106 | ||
20107 | int | |
20108 | main () | |
20109 | { | |
20110 | return 0; | |
20111 | } | |
20112 | ||
20113 | _ACEOF | |
20114 | if ac_fn_c_try_link "$LINENO"; then : | |
20115 | gcc_cv_math_func_fmal=yes | |
20116 | else | |
20117 | gcc_cv_math_func_fmal=no | |
20118 | fi | |
20119 | rm -f core conftest.err conftest.$ac_objext \ | |
20120 | conftest$ac_exeext conftest.$ac_ext | |
20121 | fi | |
20122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 | |
20123 | $as_echo "$gcc_cv_math_func_fmal" >&6; } | |
20124 | if test $gcc_cv_math_func_fmal = yes; then | |
20125 | ||
20126 | cat >>confdefs.h <<_ACEOF | |
20127 | #define HAVE_FMAL 1 | |
20128 | _ACEOF | |
20129 | ||
20130 | fi | |
20131 | ||
20132 | ||
20133 | ||
20134 | ||
db9f46a9 TG |
20135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 |
20136 | $as_echo_n "checking for fmodf... " >&6; } | |
22e05272 | 20137 | if ${gcc_cv_math_func_fmodf+:} false; then : |
5213506e | 20138 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20139 | else |
db9f46a9 | 20140 | if test x$gcc_no_link = xyes; then |
22e05272 | 20141 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20142 | fi |
5213506e | 20143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20144 | /* end confdefs.h. */ |
20145 | ||
db9f46a9 TG |
20146 | #ifdef HAVE_COMPLEX_H |
20147 | #include <complex.h> | |
eb647f7d | 20148 | #endif |
db9f46a9 TG |
20149 | #ifdef HAVE_MATH_H |
20150 | #include <math.h> | |
20151 | #endif | |
20152 | ||
20153 | int (*ptr)() = (int (*)())fmodf; | |
20154 | ||
eb647f7d FXC |
20155 | int |
20156 | main () | |
20157 | { | |
eb647f7d FXC |
20158 | return 0; |
20159 | } | |
db9f46a9 | 20160 | |
eb647f7d | 20161 | _ACEOF |
5213506e | 20162 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20163 | gcc_cv_math_func_fmodf=yes |
eb647f7d | 20164 | else |
db9f46a9 | 20165 | gcc_cv_math_func_fmodf=no |
eb647f7d | 20166 | fi |
5213506e RW |
20167 | rm -f core conftest.err conftest.$ac_objext \ |
20168 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20169 | fi |
db9f46a9 TG |
20170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
20171 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
20172 | if test $gcc_cv_math_func_fmodf = yes; then | |
f1cdfa01 | 20173 | |
f38a14ca TG |
20174 | cat >>confdefs.h <<_ACEOF |
20175 | #define HAVE_FMODF 1 | |
20176 | _ACEOF | |
eb647f7d | 20177 | |
db9f46a9 | 20178 | fi |
eb647f7d | 20179 | |
eb647f7d | 20180 | |
db9f46a9 TG |
20181 | |
20182 | ||
20183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
20184 | $as_echo_n "checking for fmod... " >&6; } | |
22e05272 | 20185 | if ${gcc_cv_math_func_fmod+:} false; then : |
5213506e | 20186 | $as_echo_n "(cached) " >&6 |
eb647f7d | 20187 | else |
db9f46a9 | 20188 | if test x$gcc_no_link = xyes; then |
22e05272 | 20189 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
eb647f7d | 20190 | fi |
5213506e | 20191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eb647f7d FXC |
20192 | /* end confdefs.h. */ |
20193 | ||
db9f46a9 TG |
20194 | #ifdef HAVE_COMPLEX_H |
20195 | #include <complex.h> | |
20196 | #endif | |
20197 | #ifdef HAVE_MATH_H | |
20198 | #include <math.h> | |
eb647f7d | 20199 | #endif |
db9f46a9 TG |
20200 | |
20201 | int (*ptr)() = (int (*)())fmod; | |
20202 | ||
eb647f7d FXC |
20203 | int |
20204 | main () | |
20205 | { | |
eb647f7d FXC |
20206 | return 0; |
20207 | } | |
db9f46a9 | 20208 | |
eb647f7d | 20209 | _ACEOF |
5213506e | 20210 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20211 | gcc_cv_math_func_fmod=yes |
eb647f7d | 20212 | else |
db9f46a9 | 20213 | gcc_cv_math_func_fmod=no |
eb647f7d | 20214 | fi |
5213506e RW |
20215 | rm -f core conftest.err conftest.$ac_objext \ |
20216 | conftest$ac_exeext conftest.$ac_ext | |
eb647f7d | 20217 | fi |
db9f46a9 TG |
20218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
20219 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
20220 | if test $gcc_cv_math_func_fmod = yes; then | |
f1cdfa01 | 20221 | |
f38a14ca TG |
20222 | cat >>confdefs.h <<_ACEOF |
20223 | #define HAVE_FMOD 1 | |
20224 | _ACEOF | |
db9f46a9 TG |
20225 | |
20226 | fi | |
eb647f7d | 20227 | |
eb647f7d | 20228 | |
eb647f7d | 20229 | |
db9f46a9 TG |
20230 | |
20231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
20232 | $as_echo_n "checking for fmodl... " >&6; } | |
22e05272 | 20233 | if ${gcc_cv_math_func_fmodl+:} false; then : |
5213506e | 20234 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20235 | else |
db9f46a9 | 20236 | if test x$gcc_no_link = xyes; then |
22e05272 | 20237 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20238 | fi |
5213506e | 20239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20240 | /* end confdefs.h. */ |
20241 | ||
db9f46a9 TG |
20242 | #ifdef HAVE_COMPLEX_H |
20243 | #include <complex.h> | |
1409cd0b | 20244 | #endif |
db9f46a9 TG |
20245 | #ifdef HAVE_MATH_H |
20246 | #include <math.h> | |
20247 | #endif | |
20248 | ||
20249 | int (*ptr)() = (int (*)())fmodl; | |
20250 | ||
1409cd0b FXC |
20251 | int |
20252 | main () | |
20253 | { | |
1409cd0b FXC |
20254 | return 0; |
20255 | } | |
db9f46a9 | 20256 | |
1409cd0b | 20257 | _ACEOF |
5213506e | 20258 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20259 | gcc_cv_math_func_fmodl=yes |
1409cd0b | 20260 | else |
db9f46a9 | 20261 | gcc_cv_math_func_fmodl=no |
1409cd0b | 20262 | fi |
5213506e RW |
20263 | rm -f core conftest.err conftest.$ac_objext \ |
20264 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20265 | fi |
db9f46a9 TG |
20266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
20267 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
20268 | if test $gcc_cv_math_func_fmodl = yes; then | |
f1cdfa01 | 20269 | |
f38a14ca TG |
20270 | cat >>confdefs.h <<_ACEOF |
20271 | #define HAVE_FMODL 1 | |
20272 | _ACEOF | |
db9f46a9 TG |
20273 | |
20274 | fi | |
20275 | ||
1409cd0b | 20276 | |
1409cd0b | 20277 | |
1409cd0b | 20278 | |
db9f46a9 TG |
20279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
20280 | $as_echo_n "checking for frexpf... " >&6; } | |
22e05272 | 20281 | if ${gcc_cv_math_func_frexpf+:} false; then : |
5213506e | 20282 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20283 | else |
db9f46a9 | 20284 | if test x$gcc_no_link = xyes; then |
22e05272 | 20285 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20286 | fi |
5213506e | 20287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20288 | /* end confdefs.h. */ |
20289 | ||
db9f46a9 TG |
20290 | #ifdef HAVE_COMPLEX_H |
20291 | #include <complex.h> | |
20292 | #endif | |
20293 | #ifdef HAVE_MATH_H | |
20294 | #include <math.h> | |
1409cd0b | 20295 | #endif |
db9f46a9 TG |
20296 | |
20297 | int (*ptr)() = (int (*)())frexpf; | |
20298 | ||
1409cd0b FXC |
20299 | int |
20300 | main () | |
20301 | { | |
1409cd0b FXC |
20302 | return 0; |
20303 | } | |
db9f46a9 | 20304 | |
1409cd0b | 20305 | _ACEOF |
5213506e | 20306 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20307 | gcc_cv_math_func_frexpf=yes |
1409cd0b | 20308 | else |
db9f46a9 | 20309 | gcc_cv_math_func_frexpf=no |
1409cd0b | 20310 | fi |
5213506e RW |
20311 | rm -f core conftest.err conftest.$ac_objext \ |
20312 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20313 | fi |
db9f46a9 TG |
20314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20315 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20316 | if test $gcc_cv_math_func_frexpf = yes; then | |
f1cdfa01 | 20317 | |
f38a14ca TG |
20318 | cat >>confdefs.h <<_ACEOF |
20319 | #define HAVE_FREXPF 1 | |
20320 | _ACEOF | |
db9f46a9 TG |
20321 | |
20322 | fi | |
1409cd0b | 20323 | |
1409cd0b | 20324 | |
1409cd0b | 20325 | |
db9f46a9 TG |
20326 | |
20327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20328 | $as_echo_n "checking for frexp... " >&6; } | |
22e05272 | 20329 | if ${gcc_cv_math_func_frexp+:} false; then : |
5213506e | 20330 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20331 | else |
db9f46a9 | 20332 | if test x$gcc_no_link = xyes; then |
22e05272 | 20333 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20334 | fi |
5213506e | 20335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20336 | /* end confdefs.h. */ |
20337 | ||
db9f46a9 TG |
20338 | #ifdef HAVE_COMPLEX_H |
20339 | #include <complex.h> | |
1409cd0b | 20340 | #endif |
db9f46a9 TG |
20341 | #ifdef HAVE_MATH_H |
20342 | #include <math.h> | |
20343 | #endif | |
20344 | ||
20345 | int (*ptr)() = (int (*)())frexp; | |
20346 | ||
1409cd0b FXC |
20347 | int |
20348 | main () | |
20349 | { | |
1409cd0b FXC |
20350 | return 0; |
20351 | } | |
db9f46a9 | 20352 | |
1409cd0b | 20353 | _ACEOF |
5213506e | 20354 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20355 | gcc_cv_math_func_frexp=yes |
1409cd0b | 20356 | else |
db9f46a9 | 20357 | gcc_cv_math_func_frexp=no |
1409cd0b | 20358 | fi |
5213506e RW |
20359 | rm -f core conftest.err conftest.$ac_objext \ |
20360 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20361 | fi |
db9f46a9 TG |
20362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20363 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20364 | if test $gcc_cv_math_func_frexp = yes; then | |
f1cdfa01 | 20365 | |
f38a14ca TG |
20366 | cat >>confdefs.h <<_ACEOF |
20367 | #define HAVE_FREXP 1 | |
20368 | _ACEOF | |
1409cd0b | 20369 | |
db9f46a9 | 20370 | fi |
1409cd0b | 20371 | |
1409cd0b | 20372 | |
db9f46a9 TG |
20373 | |
20374 | ||
20375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20376 | $as_echo_n "checking for frexpl... " >&6; } | |
22e05272 | 20377 | if ${gcc_cv_math_func_frexpl+:} false; then : |
5213506e | 20378 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20379 | else |
db9f46a9 | 20380 | if test x$gcc_no_link = xyes; then |
22e05272 | 20381 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20382 | fi |
5213506e | 20383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20384 | /* end confdefs.h. */ |
20385 | ||
db9f46a9 TG |
20386 | #ifdef HAVE_COMPLEX_H |
20387 | #include <complex.h> | |
20388 | #endif | |
20389 | #ifdef HAVE_MATH_H | |
20390 | #include <math.h> | |
1409cd0b | 20391 | #endif |
db9f46a9 TG |
20392 | |
20393 | int (*ptr)() = (int (*)())frexpl; | |
20394 | ||
1409cd0b FXC |
20395 | int |
20396 | main () | |
20397 | { | |
1409cd0b FXC |
20398 | return 0; |
20399 | } | |
db9f46a9 | 20400 | |
1409cd0b | 20401 | _ACEOF |
5213506e | 20402 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20403 | gcc_cv_math_func_frexpl=yes |
1409cd0b | 20404 | else |
db9f46a9 | 20405 | gcc_cv_math_func_frexpl=no |
1409cd0b | 20406 | fi |
5213506e RW |
20407 | rm -f core conftest.err conftest.$ac_objext \ |
20408 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20409 | fi |
db9f46a9 TG |
20410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20411 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20412 | if test $gcc_cv_math_func_frexpl = yes; then | |
f1cdfa01 | 20413 | |
f38a14ca TG |
20414 | cat >>confdefs.h <<_ACEOF |
20415 | #define HAVE_FREXPL 1 | |
20416 | _ACEOF | |
db9f46a9 TG |
20417 | |
20418 | fi | |
1409cd0b | 20419 | |
1409cd0b | 20420 | |
1409cd0b | 20421 | |
db9f46a9 TG |
20422 | |
20423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20424 | $as_echo_n "checking for hypotf... " >&6; } | |
22e05272 | 20425 | if ${gcc_cv_math_func_hypotf+:} false; then : |
5213506e | 20426 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20427 | else |
db9f46a9 | 20428 | if test x$gcc_no_link = xyes; then |
22e05272 | 20429 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20430 | fi |
5213506e | 20431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20432 | /* end confdefs.h. */ |
20433 | ||
db9f46a9 TG |
20434 | #ifdef HAVE_COMPLEX_H |
20435 | #include <complex.h> | |
1409cd0b | 20436 | #endif |
db9f46a9 TG |
20437 | #ifdef HAVE_MATH_H |
20438 | #include <math.h> | |
20439 | #endif | |
20440 | ||
20441 | int (*ptr)() = (int (*)())hypotf; | |
20442 | ||
1409cd0b FXC |
20443 | int |
20444 | main () | |
20445 | { | |
1409cd0b FXC |
20446 | return 0; |
20447 | } | |
db9f46a9 | 20448 | |
1409cd0b | 20449 | _ACEOF |
5213506e | 20450 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20451 | gcc_cv_math_func_hypotf=yes |
1409cd0b | 20452 | else |
db9f46a9 | 20453 | gcc_cv_math_func_hypotf=no |
1409cd0b | 20454 | fi |
5213506e RW |
20455 | rm -f core conftest.err conftest.$ac_objext \ |
20456 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20457 | fi |
db9f46a9 TG |
20458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20459 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20460 | if test $gcc_cv_math_func_hypotf = yes; then | |
f1cdfa01 | 20461 | |
f38a14ca TG |
20462 | cat >>confdefs.h <<_ACEOF |
20463 | #define HAVE_HYPOTF 1 | |
20464 | _ACEOF | |
db9f46a9 TG |
20465 | |
20466 | fi | |
20467 | ||
1409cd0b | 20468 | |
1409cd0b | 20469 | |
1409cd0b | 20470 | |
db9f46a9 TG |
20471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20472 | $as_echo_n "checking for hypot... " >&6; } | |
22e05272 | 20473 | if ${gcc_cv_math_func_hypot+:} false; then : |
5213506e | 20474 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20475 | else |
db9f46a9 | 20476 | if test x$gcc_no_link = xyes; then |
22e05272 | 20477 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20478 | fi |
5213506e | 20479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20480 | /* end confdefs.h. */ |
20481 | ||
db9f46a9 TG |
20482 | #ifdef HAVE_COMPLEX_H |
20483 | #include <complex.h> | |
20484 | #endif | |
20485 | #ifdef HAVE_MATH_H | |
20486 | #include <math.h> | |
1409cd0b | 20487 | #endif |
db9f46a9 TG |
20488 | |
20489 | int (*ptr)() = (int (*)())hypot; | |
20490 | ||
1409cd0b FXC |
20491 | int |
20492 | main () | |
20493 | { | |
1409cd0b FXC |
20494 | return 0; |
20495 | } | |
db9f46a9 | 20496 | |
1409cd0b | 20497 | _ACEOF |
5213506e | 20498 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20499 | gcc_cv_math_func_hypot=yes |
1409cd0b | 20500 | else |
db9f46a9 | 20501 | gcc_cv_math_func_hypot=no |
1409cd0b | 20502 | fi |
5213506e RW |
20503 | rm -f core conftest.err conftest.$ac_objext \ |
20504 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20505 | fi |
db9f46a9 TG |
20506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20507 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20508 | if test $gcc_cv_math_func_hypot = yes; then | |
f1cdfa01 | 20509 | |
f38a14ca TG |
20510 | cat >>confdefs.h <<_ACEOF |
20511 | #define HAVE_HYPOT 1 | |
20512 | _ACEOF | |
db9f46a9 TG |
20513 | |
20514 | fi | |
1409cd0b | 20515 | |
1409cd0b | 20516 | |
1409cd0b | 20517 | |
db9f46a9 TG |
20518 | |
20519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20520 | $as_echo_n "checking for hypotl... " >&6; } | |
22e05272 | 20521 | if ${gcc_cv_math_func_hypotl+:} false; then : |
5213506e | 20522 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20523 | else |
db9f46a9 | 20524 | if test x$gcc_no_link = xyes; then |
22e05272 | 20525 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20526 | fi |
5213506e | 20527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20528 | /* end confdefs.h. */ |
20529 | ||
db9f46a9 TG |
20530 | #ifdef HAVE_COMPLEX_H |
20531 | #include <complex.h> | |
cc6d3bde | 20532 | #endif |
db9f46a9 TG |
20533 | #ifdef HAVE_MATH_H |
20534 | #include <math.h> | |
20535 | #endif | |
20536 | ||
20537 | int (*ptr)() = (int (*)())hypotl; | |
20538 | ||
cc6d3bde SK |
20539 | int |
20540 | main () | |
20541 | { | |
cc6d3bde SK |
20542 | return 0; |
20543 | } | |
db9f46a9 | 20544 | |
cc6d3bde | 20545 | _ACEOF |
5213506e | 20546 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20547 | gcc_cv_math_func_hypotl=yes |
cc6d3bde | 20548 | else |
db9f46a9 | 20549 | gcc_cv_math_func_hypotl=no |
cc6d3bde | 20550 | fi |
5213506e RW |
20551 | rm -f core conftest.err conftest.$ac_objext \ |
20552 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20553 | fi |
db9f46a9 TG |
20554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20555 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20556 | if test $gcc_cv_math_func_hypotl = yes; then | |
f1cdfa01 | 20557 | |
f38a14ca TG |
20558 | cat >>confdefs.h <<_ACEOF |
20559 | #define HAVE_HYPOTL 1 | |
20560 | _ACEOF | |
cc6d3bde | 20561 | |
db9f46a9 | 20562 | fi |
cc6d3bde | 20563 | |
cc6d3bde | 20564 | |
db9f46a9 TG |
20565 | |
20566 | ||
20567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20568 | $as_echo_n "checking for ldexpf... " >&6; } | |
22e05272 | 20569 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
5213506e | 20570 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20571 | else |
db9f46a9 | 20572 | if test x$gcc_no_link = xyes; then |
22e05272 | 20573 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20574 | fi |
5213506e | 20575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20576 | /* end confdefs.h. */ |
20577 | ||
db9f46a9 TG |
20578 | #ifdef HAVE_COMPLEX_H |
20579 | #include <complex.h> | |
20580 | #endif | |
20581 | #ifdef HAVE_MATH_H | |
20582 | #include <math.h> | |
cc6d3bde | 20583 | #endif |
db9f46a9 TG |
20584 | |
20585 | int (*ptr)() = (int (*)())ldexpf; | |
20586 | ||
cc6d3bde SK |
20587 | int |
20588 | main () | |
20589 | { | |
cc6d3bde SK |
20590 | return 0; |
20591 | } | |
db9f46a9 | 20592 | |
cc6d3bde | 20593 | _ACEOF |
5213506e | 20594 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20595 | gcc_cv_math_func_ldexpf=yes |
cc6d3bde | 20596 | else |
db9f46a9 | 20597 | gcc_cv_math_func_ldexpf=no |
cc6d3bde | 20598 | fi |
5213506e RW |
20599 | rm -f core conftest.err conftest.$ac_objext \ |
20600 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20601 | fi |
db9f46a9 TG |
20602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20603 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20604 | if test $gcc_cv_math_func_ldexpf = yes; then | |
f1cdfa01 | 20605 | |
f38a14ca TG |
20606 | cat >>confdefs.h <<_ACEOF |
20607 | #define HAVE_LDEXPF 1 | |
20608 | _ACEOF | |
db9f46a9 TG |
20609 | |
20610 | fi | |
cc6d3bde | 20611 | |
cc6d3bde | 20612 | |
cc6d3bde | 20613 | |
db9f46a9 TG |
20614 | |
20615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20616 | $as_echo_n "checking for ldexp... " >&6; } | |
22e05272 | 20617 | if ${gcc_cv_math_func_ldexp+:} false; then : |
5213506e | 20618 | $as_echo_n "(cached) " >&6 |
cc6d3bde | 20619 | else |
db9f46a9 | 20620 | if test x$gcc_no_link = xyes; then |
22e05272 | 20621 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cc6d3bde | 20622 | fi |
5213506e | 20623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cc6d3bde SK |
20624 | /* end confdefs.h. */ |
20625 | ||
db9f46a9 TG |
20626 | #ifdef HAVE_COMPLEX_H |
20627 | #include <complex.h> | |
cc6d3bde | 20628 | #endif |
db9f46a9 TG |
20629 | #ifdef HAVE_MATH_H |
20630 | #include <math.h> | |
20631 | #endif | |
20632 | ||
20633 | int (*ptr)() = (int (*)())ldexp; | |
20634 | ||
cc6d3bde SK |
20635 | int |
20636 | main () | |
20637 | { | |
cc6d3bde SK |
20638 | return 0; |
20639 | } | |
db9f46a9 | 20640 | |
cc6d3bde | 20641 | _ACEOF |
5213506e | 20642 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20643 | gcc_cv_math_func_ldexp=yes |
cc6d3bde | 20644 | else |
db9f46a9 | 20645 | gcc_cv_math_func_ldexp=no |
cc6d3bde | 20646 | fi |
5213506e RW |
20647 | rm -f core conftest.err conftest.$ac_objext \ |
20648 | conftest$ac_exeext conftest.$ac_ext | |
cc6d3bde | 20649 | fi |
db9f46a9 TG |
20650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20651 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20652 | if test $gcc_cv_math_func_ldexp = yes; then | |
f1cdfa01 | 20653 | |
f38a14ca TG |
20654 | cat >>confdefs.h <<_ACEOF |
20655 | #define HAVE_LDEXP 1 | |
20656 | _ACEOF | |
db9f46a9 TG |
20657 | |
20658 | fi | |
20659 | ||
cc6d3bde | 20660 | |
cc6d3bde | 20661 | |
cc6d3bde | 20662 | |
db9f46a9 TG |
20663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20664 | $as_echo_n "checking for ldexpl... " >&6; } | |
22e05272 | 20665 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
5213506e | 20666 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20667 | else |
db9f46a9 | 20668 | if test x$gcc_no_link = xyes; then |
22e05272 | 20669 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20670 | fi |
5213506e | 20671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20672 | /* end confdefs.h. */ |
20673 | ||
db9f46a9 TG |
20674 | #ifdef HAVE_COMPLEX_H |
20675 | #include <complex.h> | |
20676 | #endif | |
20677 | #ifdef HAVE_MATH_H | |
20678 | #include <math.h> | |
1409cd0b | 20679 | #endif |
db9f46a9 TG |
20680 | |
20681 | int (*ptr)() = (int (*)())ldexpl; | |
20682 | ||
1409cd0b FXC |
20683 | int |
20684 | main () | |
20685 | { | |
1409cd0b FXC |
20686 | return 0; |
20687 | } | |
db9f46a9 | 20688 | |
1409cd0b | 20689 | _ACEOF |
5213506e | 20690 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20691 | gcc_cv_math_func_ldexpl=yes |
1409cd0b | 20692 | else |
db9f46a9 | 20693 | gcc_cv_math_func_ldexpl=no |
1409cd0b | 20694 | fi |
5213506e RW |
20695 | rm -f core conftest.err conftest.$ac_objext \ |
20696 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20697 | fi |
db9f46a9 TG |
20698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20699 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20700 | if test $gcc_cv_math_func_ldexpl = yes; then | |
f1cdfa01 | 20701 | |
f38a14ca TG |
20702 | cat >>confdefs.h <<_ACEOF |
20703 | #define HAVE_LDEXPL 1 | |
20704 | _ACEOF | |
db9f46a9 TG |
20705 | |
20706 | fi | |
1409cd0b | 20707 | |
1409cd0b | 20708 | |
1409cd0b | 20709 | |
db9f46a9 TG |
20710 | |
20711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20712 | $as_echo_n "checking for logf... " >&6; } | |
22e05272 | 20713 | if ${gcc_cv_math_func_logf+:} false; then : |
5213506e | 20714 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20715 | else |
db9f46a9 | 20716 | if test x$gcc_no_link = xyes; then |
22e05272 | 20717 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20718 | fi |
5213506e | 20719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20720 | /* end confdefs.h. */ |
20721 | ||
db9f46a9 TG |
20722 | #ifdef HAVE_COMPLEX_H |
20723 | #include <complex.h> | |
1409cd0b | 20724 | #endif |
db9f46a9 TG |
20725 | #ifdef HAVE_MATH_H |
20726 | #include <math.h> | |
20727 | #endif | |
20728 | ||
20729 | int (*ptr)() = (int (*)())logf; | |
20730 | ||
1409cd0b FXC |
20731 | int |
20732 | main () | |
20733 | { | |
1409cd0b FXC |
20734 | return 0; |
20735 | } | |
db9f46a9 | 20736 | |
1409cd0b | 20737 | _ACEOF |
5213506e | 20738 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20739 | gcc_cv_math_func_logf=yes |
1409cd0b | 20740 | else |
db9f46a9 | 20741 | gcc_cv_math_func_logf=no |
1409cd0b | 20742 | fi |
5213506e RW |
20743 | rm -f core conftest.err conftest.$ac_objext \ |
20744 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20745 | fi |
db9f46a9 TG |
20746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20747 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20748 | if test $gcc_cv_math_func_logf = yes; then | |
f1cdfa01 | 20749 | |
f38a14ca TG |
20750 | cat >>confdefs.h <<_ACEOF |
20751 | #define HAVE_LOGF 1 | |
20752 | _ACEOF | |
1409cd0b | 20753 | |
db9f46a9 | 20754 | fi |
1409cd0b | 20755 | |
1409cd0b | 20756 | |
db9f46a9 TG |
20757 | |
20758 | ||
20759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20760 | $as_echo_n "checking for log... " >&6; } | |
22e05272 | 20761 | if ${gcc_cv_math_func_log+:} false; then : |
5213506e | 20762 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20763 | else |
db9f46a9 | 20764 | if test x$gcc_no_link = xyes; then |
22e05272 | 20765 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20766 | fi |
5213506e | 20767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20768 | /* end confdefs.h. */ |
20769 | ||
db9f46a9 TG |
20770 | #ifdef HAVE_COMPLEX_H |
20771 | #include <complex.h> | |
20772 | #endif | |
20773 | #ifdef HAVE_MATH_H | |
20774 | #include <math.h> | |
1409cd0b | 20775 | #endif |
db9f46a9 TG |
20776 | |
20777 | int (*ptr)() = (int (*)())log; | |
20778 | ||
1409cd0b FXC |
20779 | int |
20780 | main () | |
20781 | { | |
1409cd0b FXC |
20782 | return 0; |
20783 | } | |
db9f46a9 | 20784 | |
1409cd0b | 20785 | _ACEOF |
5213506e | 20786 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20787 | gcc_cv_math_func_log=yes |
1409cd0b | 20788 | else |
db9f46a9 | 20789 | gcc_cv_math_func_log=no |
1409cd0b | 20790 | fi |
5213506e RW |
20791 | rm -f core conftest.err conftest.$ac_objext \ |
20792 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20793 | fi |
db9f46a9 TG |
20794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20795 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20796 | if test $gcc_cv_math_func_log = yes; then | |
f1cdfa01 | 20797 | |
f38a14ca TG |
20798 | cat >>confdefs.h <<_ACEOF |
20799 | #define HAVE_LOG 1 | |
20800 | _ACEOF | |
db9f46a9 TG |
20801 | |
20802 | fi | |
1409cd0b | 20803 | |
1409cd0b | 20804 | |
1409cd0b | 20805 | |
db9f46a9 TG |
20806 | |
20807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20808 | $as_echo_n "checking for logl... " >&6; } | |
22e05272 | 20809 | if ${gcc_cv_math_func_logl+:} false; then : |
5213506e | 20810 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20811 | else |
db9f46a9 | 20812 | if test x$gcc_no_link = xyes; then |
22e05272 | 20813 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20814 | fi |
5213506e | 20815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20816 | /* end confdefs.h. */ |
20817 | ||
db9f46a9 TG |
20818 | #ifdef HAVE_COMPLEX_H |
20819 | #include <complex.h> | |
1409cd0b | 20820 | #endif |
db9f46a9 TG |
20821 | #ifdef HAVE_MATH_H |
20822 | #include <math.h> | |
20823 | #endif | |
20824 | ||
20825 | int (*ptr)() = (int (*)())logl; | |
20826 | ||
1409cd0b FXC |
20827 | int |
20828 | main () | |
20829 | { | |
1409cd0b FXC |
20830 | return 0; |
20831 | } | |
db9f46a9 | 20832 | |
1409cd0b | 20833 | _ACEOF |
5213506e | 20834 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20835 | gcc_cv_math_func_logl=yes |
1409cd0b | 20836 | else |
db9f46a9 | 20837 | gcc_cv_math_func_logl=no |
1409cd0b | 20838 | fi |
5213506e RW |
20839 | rm -f core conftest.err conftest.$ac_objext \ |
20840 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20841 | fi |
db9f46a9 TG |
20842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20843 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20844 | if test $gcc_cv_math_func_logl = yes; then | |
f1cdfa01 | 20845 | |
f38a14ca TG |
20846 | cat >>confdefs.h <<_ACEOF |
20847 | #define HAVE_LOGL 1 | |
20848 | _ACEOF | |
db9f46a9 TG |
20849 | |
20850 | fi | |
20851 | ||
1409cd0b | 20852 | |
1409cd0b | 20853 | |
1409cd0b | 20854 | |
db9f46a9 TG |
20855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20856 | $as_echo_n "checking for clogf... " >&6; } | |
22e05272 | 20857 | if ${gcc_cv_math_func_clogf+:} false; then : |
5213506e | 20858 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20859 | else |
db9f46a9 | 20860 | if test x$gcc_no_link = xyes; then |
22e05272 | 20861 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20862 | fi |
5213506e | 20863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20864 | /* end confdefs.h. */ |
20865 | ||
db9f46a9 TG |
20866 | #ifdef HAVE_COMPLEX_H |
20867 | #include <complex.h> | |
20868 | #endif | |
20869 | #ifdef HAVE_MATH_H | |
20870 | #include <math.h> | |
1409cd0b | 20871 | #endif |
db9f46a9 TG |
20872 | |
20873 | int (*ptr)() = (int (*)())clogf; | |
20874 | ||
1409cd0b FXC |
20875 | int |
20876 | main () | |
20877 | { | |
1409cd0b FXC |
20878 | return 0; |
20879 | } | |
db9f46a9 | 20880 | |
1409cd0b | 20881 | _ACEOF |
5213506e | 20882 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20883 | gcc_cv_math_func_clogf=yes |
1409cd0b | 20884 | else |
db9f46a9 | 20885 | gcc_cv_math_func_clogf=no |
1409cd0b | 20886 | fi |
5213506e RW |
20887 | rm -f core conftest.err conftest.$ac_objext \ |
20888 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20889 | fi |
db9f46a9 TG |
20890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20891 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20892 | if test $gcc_cv_math_func_clogf = yes; then | |
f1cdfa01 | 20893 | |
f38a14ca TG |
20894 | cat >>confdefs.h <<_ACEOF |
20895 | #define HAVE_CLOGF 1 | |
20896 | _ACEOF | |
db9f46a9 TG |
20897 | |
20898 | fi | |
1409cd0b | 20899 | |
1409cd0b | 20900 | |
1409cd0b | 20901 | |
db9f46a9 TG |
20902 | |
20903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20904 | $as_echo_n "checking for clog... " >&6; } | |
22e05272 | 20905 | if ${gcc_cv_math_func_clog+:} false; then : |
5213506e | 20906 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20907 | else |
db9f46a9 | 20908 | if test x$gcc_no_link = xyes; then |
22e05272 | 20909 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20910 | fi |
5213506e | 20911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20912 | /* end confdefs.h. */ |
20913 | ||
db9f46a9 TG |
20914 | #ifdef HAVE_COMPLEX_H |
20915 | #include <complex.h> | |
1409cd0b | 20916 | #endif |
db9f46a9 TG |
20917 | #ifdef HAVE_MATH_H |
20918 | #include <math.h> | |
20919 | #endif | |
20920 | ||
20921 | int (*ptr)() = (int (*)())clog; | |
20922 | ||
1409cd0b FXC |
20923 | int |
20924 | main () | |
20925 | { | |
1409cd0b FXC |
20926 | return 0; |
20927 | } | |
db9f46a9 | 20928 | |
1409cd0b | 20929 | _ACEOF |
5213506e | 20930 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20931 | gcc_cv_math_func_clog=yes |
1409cd0b | 20932 | else |
db9f46a9 | 20933 | gcc_cv_math_func_clog=no |
1409cd0b | 20934 | fi |
5213506e RW |
20935 | rm -f core conftest.err conftest.$ac_objext \ |
20936 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20937 | fi |
db9f46a9 TG |
20938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20939 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20940 | if test $gcc_cv_math_func_clog = yes; then | |
f1cdfa01 | 20941 | |
f38a14ca TG |
20942 | cat >>confdefs.h <<_ACEOF |
20943 | #define HAVE_CLOG 1 | |
20944 | _ACEOF | |
1409cd0b | 20945 | |
db9f46a9 | 20946 | fi |
1409cd0b | 20947 | |
1409cd0b | 20948 | |
db9f46a9 TG |
20949 | |
20950 | ||
20951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20952 | $as_echo_n "checking for clogl... " >&6; } | |
22e05272 | 20953 | if ${gcc_cv_math_func_clogl+:} false; then : |
5213506e | 20954 | $as_echo_n "(cached) " >&6 |
1409cd0b | 20955 | else |
db9f46a9 | 20956 | if test x$gcc_no_link = xyes; then |
22e05272 | 20957 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 20958 | fi |
5213506e | 20959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
20960 | /* end confdefs.h. */ |
20961 | ||
db9f46a9 TG |
20962 | #ifdef HAVE_COMPLEX_H |
20963 | #include <complex.h> | |
20964 | #endif | |
20965 | #ifdef HAVE_MATH_H | |
20966 | #include <math.h> | |
1409cd0b | 20967 | #endif |
db9f46a9 TG |
20968 | |
20969 | int (*ptr)() = (int (*)())clogl; | |
20970 | ||
1409cd0b FXC |
20971 | int |
20972 | main () | |
20973 | { | |
1409cd0b FXC |
20974 | return 0; |
20975 | } | |
db9f46a9 | 20976 | |
1409cd0b | 20977 | _ACEOF |
5213506e | 20978 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 20979 | gcc_cv_math_func_clogl=yes |
1409cd0b | 20980 | else |
db9f46a9 | 20981 | gcc_cv_math_func_clogl=no |
1409cd0b | 20982 | fi |
5213506e RW |
20983 | rm -f core conftest.err conftest.$ac_objext \ |
20984 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 20985 | fi |
db9f46a9 TG |
20986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
20987 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
20988 | if test $gcc_cv_math_func_clogl = yes; then | |
f1cdfa01 | 20989 | |
f38a14ca TG |
20990 | cat >>confdefs.h <<_ACEOF |
20991 | #define HAVE_CLOGL 1 | |
20992 | _ACEOF | |
db9f46a9 TG |
20993 | |
20994 | fi | |
1409cd0b | 20995 | |
1409cd0b | 20996 | |
1409cd0b | 20997 | |
db9f46a9 TG |
20998 | |
20999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
21000 | $as_echo_n "checking for log10f... " >&6; } | |
22e05272 | 21001 | if ${gcc_cv_math_func_log10f+:} false; then : |
5213506e | 21002 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21003 | else |
db9f46a9 | 21004 | if test x$gcc_no_link = xyes; then |
22e05272 | 21005 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21006 | fi |
5213506e | 21007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21008 | /* end confdefs.h. */ |
21009 | ||
db9f46a9 TG |
21010 | #ifdef HAVE_COMPLEX_H |
21011 | #include <complex.h> | |
1409cd0b | 21012 | #endif |
db9f46a9 TG |
21013 | #ifdef HAVE_MATH_H |
21014 | #include <math.h> | |
21015 | #endif | |
21016 | ||
21017 | int (*ptr)() = (int (*)())log10f; | |
21018 | ||
1409cd0b FXC |
21019 | int |
21020 | main () | |
21021 | { | |
1409cd0b FXC |
21022 | return 0; |
21023 | } | |
db9f46a9 | 21024 | |
1409cd0b | 21025 | _ACEOF |
5213506e | 21026 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21027 | gcc_cv_math_func_log10f=yes |
1409cd0b | 21028 | else |
db9f46a9 | 21029 | gcc_cv_math_func_log10f=no |
1409cd0b | 21030 | fi |
5213506e RW |
21031 | rm -f core conftest.err conftest.$ac_objext \ |
21032 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21033 | fi |
db9f46a9 TG |
21034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
21035 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
21036 | if test $gcc_cv_math_func_log10f = yes; then | |
f1cdfa01 | 21037 | |
f38a14ca TG |
21038 | cat >>confdefs.h <<_ACEOF |
21039 | #define HAVE_LOG10F 1 | |
21040 | _ACEOF | |
db9f46a9 TG |
21041 | |
21042 | fi | |
21043 | ||
1409cd0b | 21044 | |
1409cd0b | 21045 | |
1409cd0b | 21046 | |
db9f46a9 TG |
21047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
21048 | $as_echo_n "checking for log10... " >&6; } | |
22e05272 | 21049 | if ${gcc_cv_math_func_log10+:} false; then : |
5213506e | 21050 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21051 | else |
db9f46a9 | 21052 | if test x$gcc_no_link = xyes; then |
22e05272 | 21053 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21054 | fi |
5213506e | 21055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21056 | /* end confdefs.h. */ |
21057 | ||
db9f46a9 TG |
21058 | #ifdef HAVE_COMPLEX_H |
21059 | #include <complex.h> | |
21060 | #endif | |
21061 | #ifdef HAVE_MATH_H | |
21062 | #include <math.h> | |
1409cd0b | 21063 | #endif |
db9f46a9 TG |
21064 | |
21065 | int (*ptr)() = (int (*)())log10; | |
21066 | ||
1409cd0b FXC |
21067 | int |
21068 | main () | |
21069 | { | |
1409cd0b FXC |
21070 | return 0; |
21071 | } | |
db9f46a9 | 21072 | |
1409cd0b | 21073 | _ACEOF |
5213506e | 21074 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21075 | gcc_cv_math_func_log10=yes |
1409cd0b | 21076 | else |
db9f46a9 | 21077 | gcc_cv_math_func_log10=no |
1409cd0b | 21078 | fi |
5213506e RW |
21079 | rm -f core conftest.err conftest.$ac_objext \ |
21080 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21081 | fi |
db9f46a9 TG |
21082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
21083 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
21084 | if test $gcc_cv_math_func_log10 = yes; then | |
f1cdfa01 | 21085 | |
f38a14ca TG |
21086 | cat >>confdefs.h <<_ACEOF |
21087 | #define HAVE_LOG10 1 | |
21088 | _ACEOF | |
db9f46a9 TG |
21089 | |
21090 | fi | |
1409cd0b | 21091 | |
1409cd0b | 21092 | |
1409cd0b | 21093 | |
db9f46a9 TG |
21094 | |
21095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
21096 | $as_echo_n "checking for log10l... " >&6; } | |
22e05272 | 21097 | if ${gcc_cv_math_func_log10l+:} false; then : |
5213506e | 21098 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21099 | else |
db9f46a9 | 21100 | if test x$gcc_no_link = xyes; then |
22e05272 | 21101 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21102 | fi |
5213506e | 21103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21104 | /* end confdefs.h. */ |
21105 | ||
db9f46a9 TG |
21106 | #ifdef HAVE_COMPLEX_H |
21107 | #include <complex.h> | |
1409cd0b | 21108 | #endif |
db9f46a9 TG |
21109 | #ifdef HAVE_MATH_H |
21110 | #include <math.h> | |
21111 | #endif | |
21112 | ||
21113 | int (*ptr)() = (int (*)())log10l; | |
21114 | ||
1409cd0b FXC |
21115 | int |
21116 | main () | |
21117 | { | |
1409cd0b FXC |
21118 | return 0; |
21119 | } | |
db9f46a9 | 21120 | |
1409cd0b | 21121 | _ACEOF |
5213506e | 21122 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21123 | gcc_cv_math_func_log10l=yes |
1409cd0b | 21124 | else |
db9f46a9 | 21125 | gcc_cv_math_func_log10l=no |
1409cd0b | 21126 | fi |
5213506e RW |
21127 | rm -f core conftest.err conftest.$ac_objext \ |
21128 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21129 | fi |
db9f46a9 TG |
21130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
21131 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
21132 | if test $gcc_cv_math_func_log10l = yes; then | |
f1cdfa01 | 21133 | |
f38a14ca TG |
21134 | cat >>confdefs.h <<_ACEOF |
21135 | #define HAVE_LOG10L 1 | |
21136 | _ACEOF | |
1409cd0b | 21137 | |
db9f46a9 | 21138 | fi |
1409cd0b | 21139 | |
1409cd0b | 21140 | |
db9f46a9 TG |
21141 | |
21142 | ||
21143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
21144 | $as_echo_n "checking for clog10f... " >&6; } | |
22e05272 | 21145 | if ${gcc_cv_math_func_clog10f+:} false; then : |
5213506e | 21146 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21147 | else |
db9f46a9 | 21148 | if test x$gcc_no_link = xyes; then |
22e05272 | 21149 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21150 | fi |
5213506e | 21151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21152 | /* end confdefs.h. */ |
21153 | ||
db9f46a9 TG |
21154 | #ifdef HAVE_COMPLEX_H |
21155 | #include <complex.h> | |
21156 | #endif | |
21157 | #ifdef HAVE_MATH_H | |
21158 | #include <math.h> | |
1409cd0b | 21159 | #endif |
db9f46a9 TG |
21160 | |
21161 | int (*ptr)() = (int (*)())clog10f; | |
21162 | ||
1409cd0b FXC |
21163 | int |
21164 | main () | |
21165 | { | |
1409cd0b FXC |
21166 | return 0; |
21167 | } | |
db9f46a9 | 21168 | |
1409cd0b | 21169 | _ACEOF |
5213506e | 21170 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21171 | gcc_cv_math_func_clog10f=yes |
1409cd0b | 21172 | else |
db9f46a9 | 21173 | gcc_cv_math_func_clog10f=no |
1409cd0b | 21174 | fi |
5213506e RW |
21175 | rm -f core conftest.err conftest.$ac_objext \ |
21176 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21177 | fi |
db9f46a9 TG |
21178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
21179 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
21180 | if test $gcc_cv_math_func_clog10f = yes; then | |
f1cdfa01 | 21181 | |
f38a14ca TG |
21182 | cat >>confdefs.h <<_ACEOF |
21183 | #define HAVE_CLOG10F 1 | |
21184 | _ACEOF | |
db9f46a9 TG |
21185 | |
21186 | fi | |
1409cd0b | 21187 | |
1409cd0b | 21188 | |
1409cd0b | 21189 | |
db9f46a9 TG |
21190 | |
21191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
21192 | $as_echo_n "checking for clog10... " >&6; } | |
22e05272 | 21193 | if ${gcc_cv_math_func_clog10+:} false; then : |
5213506e | 21194 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21195 | else |
db9f46a9 | 21196 | if test x$gcc_no_link = xyes; then |
22e05272 | 21197 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21198 | fi |
5213506e | 21199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21200 | /* end confdefs.h. */ |
21201 | ||
db9f46a9 TG |
21202 | #ifdef HAVE_COMPLEX_H |
21203 | #include <complex.h> | |
1409cd0b | 21204 | #endif |
db9f46a9 TG |
21205 | #ifdef HAVE_MATH_H |
21206 | #include <math.h> | |
21207 | #endif | |
21208 | ||
21209 | int (*ptr)() = (int (*)())clog10; | |
21210 | ||
1409cd0b FXC |
21211 | int |
21212 | main () | |
21213 | { | |
5213506e RW |
21214 | return 0; |
21215 | } | |
db9f46a9 | 21216 | |
5213506e RW |
21217 | _ACEOF |
21218 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 21219 | gcc_cv_math_func_clog10=yes |
1409cd0b | 21220 | else |
db9f46a9 | 21221 | gcc_cv_math_func_clog10=no |
1409cd0b | 21222 | fi |
5213506e RW |
21223 | rm -f core conftest.err conftest.$ac_objext \ |
21224 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21225 | fi |
db9f46a9 TG |
21226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
21227 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
21228 | if test $gcc_cv_math_func_clog10 = yes; then | |
f1cdfa01 | 21229 | |
f38a14ca TG |
21230 | cat >>confdefs.h <<_ACEOF |
21231 | #define HAVE_CLOG10 1 | |
21232 | _ACEOF | |
db9f46a9 TG |
21233 | |
21234 | fi | |
21235 | ||
1409cd0b | 21236 | |
1409cd0b | 21237 | |
1409cd0b | 21238 | |
db9f46a9 TG |
21239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
21240 | $as_echo_n "checking for clog10l... " >&6; } | |
22e05272 | 21241 | if ${gcc_cv_math_func_clog10l+:} false; then : |
5213506e | 21242 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21243 | else |
db9f46a9 | 21244 | if test x$gcc_no_link = xyes; then |
22e05272 | 21245 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21246 | fi |
5213506e | 21247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21248 | /* end confdefs.h. */ |
21249 | ||
db9f46a9 TG |
21250 | #ifdef HAVE_COMPLEX_H |
21251 | #include <complex.h> | |
21252 | #endif | |
21253 | #ifdef HAVE_MATH_H | |
21254 | #include <math.h> | |
1409cd0b | 21255 | #endif |
db9f46a9 TG |
21256 | |
21257 | int (*ptr)() = (int (*)())clog10l; | |
21258 | ||
1409cd0b FXC |
21259 | int |
21260 | main () | |
21261 | { | |
1409cd0b FXC |
21262 | return 0; |
21263 | } | |
db9f46a9 | 21264 | |
1409cd0b | 21265 | _ACEOF |
5213506e | 21266 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21267 | gcc_cv_math_func_clog10l=yes |
1409cd0b | 21268 | else |
db9f46a9 | 21269 | gcc_cv_math_func_clog10l=no |
1409cd0b | 21270 | fi |
5213506e RW |
21271 | rm -f core conftest.err conftest.$ac_objext \ |
21272 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21273 | fi |
db9f46a9 TG |
21274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
21275 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
21276 | if test $gcc_cv_math_func_clog10l = yes; then | |
f1cdfa01 | 21277 | |
f38a14ca TG |
21278 | cat >>confdefs.h <<_ACEOF |
21279 | #define HAVE_CLOG10L 1 | |
21280 | _ACEOF | |
db9f46a9 TG |
21281 | |
21282 | fi | |
1409cd0b | 21283 | |
1409cd0b | 21284 | |
1409cd0b | 21285 | |
db9f46a9 TG |
21286 | |
21287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
21288 | $as_echo_n "checking for nextafterf... " >&6; } | |
22e05272 | 21289 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
5213506e | 21290 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21291 | else |
db9f46a9 | 21292 | if test x$gcc_no_link = xyes; then |
22e05272 | 21293 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21294 | fi |
5213506e | 21295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21296 | /* end confdefs.h. */ |
21297 | ||
db9f46a9 TG |
21298 | #ifdef HAVE_COMPLEX_H |
21299 | #include <complex.h> | |
1409cd0b | 21300 | #endif |
db9f46a9 TG |
21301 | #ifdef HAVE_MATH_H |
21302 | #include <math.h> | |
21303 | #endif | |
21304 | ||
21305 | int (*ptr)() = (int (*)())nextafterf; | |
21306 | ||
1409cd0b FXC |
21307 | int |
21308 | main () | |
21309 | { | |
1409cd0b FXC |
21310 | return 0; |
21311 | } | |
db9f46a9 | 21312 | |
1409cd0b | 21313 | _ACEOF |
5213506e | 21314 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21315 | gcc_cv_math_func_nextafterf=yes |
1409cd0b | 21316 | else |
db9f46a9 | 21317 | gcc_cv_math_func_nextafterf=no |
1409cd0b | 21318 | fi |
5213506e RW |
21319 | rm -f core conftest.err conftest.$ac_objext \ |
21320 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21321 | fi |
db9f46a9 TG |
21322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21323 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21324 | if test $gcc_cv_math_func_nextafterf = yes; then | |
f1cdfa01 | 21325 | |
f38a14ca TG |
21326 | cat >>confdefs.h <<_ACEOF |
21327 | #define HAVE_NEXTAFTERF 1 | |
21328 | _ACEOF | |
1409cd0b | 21329 | |
db9f46a9 | 21330 | fi |
1409cd0b | 21331 | |
1409cd0b | 21332 | |
db9f46a9 TG |
21333 | |
21334 | ||
21335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21336 | $as_echo_n "checking for nextafter... " >&6; } | |
22e05272 | 21337 | if ${gcc_cv_math_func_nextafter+:} false; then : |
5213506e | 21338 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21339 | else |
db9f46a9 | 21340 | if test x$gcc_no_link = xyes; then |
22e05272 | 21341 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21342 | fi |
5213506e | 21343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21344 | /* end confdefs.h. */ |
21345 | ||
db9f46a9 TG |
21346 | #ifdef HAVE_COMPLEX_H |
21347 | #include <complex.h> | |
21348 | #endif | |
21349 | #ifdef HAVE_MATH_H | |
21350 | #include <math.h> | |
1409cd0b | 21351 | #endif |
db9f46a9 TG |
21352 | |
21353 | int (*ptr)() = (int (*)())nextafter; | |
21354 | ||
1409cd0b FXC |
21355 | int |
21356 | main () | |
21357 | { | |
1409cd0b FXC |
21358 | return 0; |
21359 | } | |
db9f46a9 | 21360 | |
1409cd0b | 21361 | _ACEOF |
5213506e | 21362 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21363 | gcc_cv_math_func_nextafter=yes |
1409cd0b | 21364 | else |
db9f46a9 | 21365 | gcc_cv_math_func_nextafter=no |
1409cd0b | 21366 | fi |
5213506e RW |
21367 | rm -f core conftest.err conftest.$ac_objext \ |
21368 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21369 | fi |
db9f46a9 TG |
21370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21371 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21372 | if test $gcc_cv_math_func_nextafter = yes; then | |
f1cdfa01 | 21373 | |
f38a14ca TG |
21374 | cat >>confdefs.h <<_ACEOF |
21375 | #define HAVE_NEXTAFTER 1 | |
21376 | _ACEOF | |
db9f46a9 TG |
21377 | |
21378 | fi | |
1409cd0b | 21379 | |
1409cd0b | 21380 | |
1409cd0b | 21381 | |
db9f46a9 TG |
21382 | |
21383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21384 | $as_echo_n "checking for nextafterl... " >&6; } | |
22e05272 | 21385 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
5213506e | 21386 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21387 | else |
db9f46a9 | 21388 | if test x$gcc_no_link = xyes; then |
22e05272 | 21389 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21390 | fi |
5213506e | 21391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21392 | /* end confdefs.h. */ |
21393 | ||
db9f46a9 TG |
21394 | #ifdef HAVE_COMPLEX_H |
21395 | #include <complex.h> | |
1409cd0b | 21396 | #endif |
db9f46a9 TG |
21397 | #ifdef HAVE_MATH_H |
21398 | #include <math.h> | |
21399 | #endif | |
21400 | ||
21401 | int (*ptr)() = (int (*)())nextafterl; | |
21402 | ||
1409cd0b FXC |
21403 | int |
21404 | main () | |
21405 | { | |
1409cd0b FXC |
21406 | return 0; |
21407 | } | |
db9f46a9 | 21408 | |
1409cd0b | 21409 | _ACEOF |
5213506e | 21410 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21411 | gcc_cv_math_func_nextafterl=yes |
1409cd0b | 21412 | else |
db9f46a9 | 21413 | gcc_cv_math_func_nextafterl=no |
1409cd0b | 21414 | fi |
5213506e RW |
21415 | rm -f core conftest.err conftest.$ac_objext \ |
21416 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21417 | fi |
db9f46a9 TG |
21418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21419 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21420 | if test $gcc_cv_math_func_nextafterl = yes; then | |
f1cdfa01 | 21421 | |
f38a14ca TG |
21422 | cat >>confdefs.h <<_ACEOF |
21423 | #define HAVE_NEXTAFTERL 1 | |
21424 | _ACEOF | |
db9f46a9 TG |
21425 | |
21426 | fi | |
21427 | ||
1409cd0b | 21428 | |
1409cd0b | 21429 | |
1409cd0b | 21430 | |
db9f46a9 TG |
21431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21432 | $as_echo_n "checking for powf... " >&6; } | |
22e05272 | 21433 | if ${gcc_cv_math_func_powf+:} false; then : |
5213506e | 21434 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21435 | else |
db9f46a9 | 21436 | if test x$gcc_no_link = xyes; then |
22e05272 | 21437 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21438 | fi |
5213506e | 21439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21440 | /* end confdefs.h. */ |
21441 | ||
db9f46a9 TG |
21442 | #ifdef HAVE_COMPLEX_H |
21443 | #include <complex.h> | |
21444 | #endif | |
21445 | #ifdef HAVE_MATH_H | |
21446 | #include <math.h> | |
1409cd0b | 21447 | #endif |
db9f46a9 TG |
21448 | |
21449 | int (*ptr)() = (int (*)())powf; | |
21450 | ||
1409cd0b FXC |
21451 | int |
21452 | main () | |
21453 | { | |
1409cd0b FXC |
21454 | return 0; |
21455 | } | |
db9f46a9 | 21456 | |
1409cd0b | 21457 | _ACEOF |
5213506e | 21458 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21459 | gcc_cv_math_func_powf=yes |
1409cd0b | 21460 | else |
db9f46a9 | 21461 | gcc_cv_math_func_powf=no |
1409cd0b | 21462 | fi |
5213506e RW |
21463 | rm -f core conftest.err conftest.$ac_objext \ |
21464 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21465 | fi |
db9f46a9 TG |
21466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21467 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21468 | if test $gcc_cv_math_func_powf = yes; then | |
f1cdfa01 | 21469 | |
f38a14ca TG |
21470 | cat >>confdefs.h <<_ACEOF |
21471 | #define HAVE_POWF 1 | |
21472 | _ACEOF | |
db9f46a9 TG |
21473 | |
21474 | fi | |
1409cd0b | 21475 | |
1409cd0b | 21476 | |
1409cd0b | 21477 | |
db9f46a9 TG |
21478 | |
21479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21480 | $as_echo_n "checking for pow... " >&6; } | |
22e05272 | 21481 | if ${gcc_cv_math_func_pow+:} false; then : |
5213506e | 21482 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21483 | else |
db9f46a9 | 21484 | if test x$gcc_no_link = xyes; then |
22e05272 | 21485 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21486 | fi |
5213506e | 21487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21488 | /* end confdefs.h. */ |
21489 | ||
db9f46a9 TG |
21490 | #ifdef HAVE_COMPLEX_H |
21491 | #include <complex.h> | |
1409cd0b | 21492 | #endif |
db9f46a9 TG |
21493 | #ifdef HAVE_MATH_H |
21494 | #include <math.h> | |
21495 | #endif | |
21496 | ||
21497 | int (*ptr)() = (int (*)())pow; | |
21498 | ||
1409cd0b FXC |
21499 | int |
21500 | main () | |
21501 | { | |
1409cd0b FXC |
21502 | return 0; |
21503 | } | |
db9f46a9 | 21504 | |
1409cd0b | 21505 | _ACEOF |
5213506e | 21506 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21507 | gcc_cv_math_func_pow=yes |
1409cd0b | 21508 | else |
db9f46a9 | 21509 | gcc_cv_math_func_pow=no |
1409cd0b | 21510 | fi |
5213506e RW |
21511 | rm -f core conftest.err conftest.$ac_objext \ |
21512 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21513 | fi |
db9f46a9 TG |
21514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21515 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21516 | if test $gcc_cv_math_func_pow = yes; then | |
f1cdfa01 | 21517 | |
f38a14ca TG |
21518 | cat >>confdefs.h <<_ACEOF |
21519 | #define HAVE_POW 1 | |
21520 | _ACEOF | |
1409cd0b | 21521 | |
db9f46a9 | 21522 | fi |
1409cd0b | 21523 | |
1409cd0b | 21524 | |
db9f46a9 TG |
21525 | |
21526 | ||
db9f46a9 TG |
21527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21528 | $as_echo_n "checking for cpowf... " >&6; } | |
22e05272 | 21529 | if ${gcc_cv_math_func_cpowf+:} false; then : |
5213506e | 21530 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21531 | else |
db9f46a9 | 21532 | if test x$gcc_no_link = xyes; then |
22e05272 | 21533 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21534 | fi |
5213506e | 21535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21536 | /* end confdefs.h. */ |
21537 | ||
db9f46a9 TG |
21538 | #ifdef HAVE_COMPLEX_H |
21539 | #include <complex.h> | |
1409cd0b | 21540 | #endif |
db9f46a9 TG |
21541 | #ifdef HAVE_MATH_H |
21542 | #include <math.h> | |
21543 | #endif | |
21544 | ||
21545 | int (*ptr)() = (int (*)())cpowf; | |
21546 | ||
1409cd0b FXC |
21547 | int |
21548 | main () | |
21549 | { | |
1409cd0b FXC |
21550 | return 0; |
21551 | } | |
db9f46a9 | 21552 | |
1409cd0b | 21553 | _ACEOF |
5213506e | 21554 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21555 | gcc_cv_math_func_cpowf=yes |
1409cd0b | 21556 | else |
db9f46a9 | 21557 | gcc_cv_math_func_cpowf=no |
1409cd0b | 21558 | fi |
5213506e RW |
21559 | rm -f core conftest.err conftest.$ac_objext \ |
21560 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21561 | fi |
db9f46a9 TG |
21562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21563 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21564 | if test $gcc_cv_math_func_cpowf = yes; then | |
f1cdfa01 | 21565 | |
f38a14ca TG |
21566 | cat >>confdefs.h <<_ACEOF |
21567 | #define HAVE_CPOWF 1 | |
21568 | _ACEOF | |
db9f46a9 TG |
21569 | |
21570 | fi | |
21571 | ||
1409cd0b | 21572 | |
1409cd0b | 21573 | |
1409cd0b | 21574 | |
db9f46a9 TG |
21575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21576 | $as_echo_n "checking for cpow... " >&6; } | |
22e05272 | 21577 | if ${gcc_cv_math_func_cpow+:} false; then : |
5213506e | 21578 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21579 | else |
db9f46a9 | 21580 | if test x$gcc_no_link = xyes; then |
22e05272 | 21581 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21582 | fi |
5213506e | 21583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21584 | /* end confdefs.h. */ |
21585 | ||
db9f46a9 TG |
21586 | #ifdef HAVE_COMPLEX_H |
21587 | #include <complex.h> | |
21588 | #endif | |
21589 | #ifdef HAVE_MATH_H | |
21590 | #include <math.h> | |
1409cd0b | 21591 | #endif |
db9f46a9 TG |
21592 | |
21593 | int (*ptr)() = (int (*)())cpow; | |
21594 | ||
1409cd0b FXC |
21595 | int |
21596 | main () | |
21597 | { | |
1409cd0b FXC |
21598 | return 0; |
21599 | } | |
db9f46a9 | 21600 | |
1409cd0b | 21601 | _ACEOF |
5213506e | 21602 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21603 | gcc_cv_math_func_cpow=yes |
1409cd0b | 21604 | else |
db9f46a9 | 21605 | gcc_cv_math_func_cpow=no |
1409cd0b | 21606 | fi |
5213506e RW |
21607 | rm -f core conftest.err conftest.$ac_objext \ |
21608 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21609 | fi |
db9f46a9 TG |
21610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21611 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21612 | if test $gcc_cv_math_func_cpow = yes; then | |
f1cdfa01 | 21613 | |
f38a14ca TG |
21614 | cat >>confdefs.h <<_ACEOF |
21615 | #define HAVE_CPOW 1 | |
21616 | _ACEOF | |
db9f46a9 TG |
21617 | |
21618 | fi | |
1409cd0b | 21619 | |
1409cd0b | 21620 | |
1409cd0b | 21621 | |
db9f46a9 TG |
21622 | |
21623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21624 | $as_echo_n "checking for cpowl... " >&6; } | |
22e05272 | 21625 | if ${gcc_cv_math_func_cpowl+:} false; then : |
5213506e | 21626 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21627 | else |
db9f46a9 | 21628 | if test x$gcc_no_link = xyes; then |
22e05272 | 21629 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21630 | fi |
5213506e | 21631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21632 | /* end confdefs.h. */ |
21633 | ||
db9f46a9 TG |
21634 | #ifdef HAVE_COMPLEX_H |
21635 | #include <complex.h> | |
1409cd0b | 21636 | #endif |
db9f46a9 TG |
21637 | #ifdef HAVE_MATH_H |
21638 | #include <math.h> | |
21639 | #endif | |
21640 | ||
21641 | int (*ptr)() = (int (*)())cpowl; | |
21642 | ||
1409cd0b FXC |
21643 | int |
21644 | main () | |
21645 | { | |
1409cd0b FXC |
21646 | return 0; |
21647 | } | |
db9f46a9 | 21648 | |
1409cd0b | 21649 | _ACEOF |
5213506e | 21650 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21651 | gcc_cv_math_func_cpowl=yes |
1409cd0b | 21652 | else |
db9f46a9 | 21653 | gcc_cv_math_func_cpowl=no |
1409cd0b | 21654 | fi |
5213506e RW |
21655 | rm -f core conftest.err conftest.$ac_objext \ |
21656 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21657 | fi |
db9f46a9 TG |
21658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21659 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21660 | if test $gcc_cv_math_func_cpowl = yes; then | |
f1cdfa01 | 21661 | |
f38a14ca TG |
21662 | cat >>confdefs.h <<_ACEOF |
21663 | #define HAVE_CPOWL 1 | |
21664 | _ACEOF | |
1409cd0b | 21665 | |
db9f46a9 | 21666 | fi |
1409cd0b | 21667 | |
1409cd0b | 21668 | |
db9f46a9 TG |
21669 | |
21670 | ||
21671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21672 | $as_echo_n "checking for roundf... " >&6; } | |
22e05272 | 21673 | if ${gcc_cv_math_func_roundf+:} false; then : |
5213506e | 21674 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21675 | else |
db9f46a9 | 21676 | if test x$gcc_no_link = xyes; then |
22e05272 | 21677 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21678 | fi |
5213506e | 21679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21680 | /* end confdefs.h. */ |
21681 | ||
db9f46a9 TG |
21682 | #ifdef HAVE_COMPLEX_H |
21683 | #include <complex.h> | |
21684 | #endif | |
21685 | #ifdef HAVE_MATH_H | |
21686 | #include <math.h> | |
1409cd0b | 21687 | #endif |
db9f46a9 TG |
21688 | |
21689 | int (*ptr)() = (int (*)())roundf; | |
21690 | ||
1409cd0b FXC |
21691 | int |
21692 | main () | |
21693 | { | |
1409cd0b FXC |
21694 | return 0; |
21695 | } | |
db9f46a9 | 21696 | |
1409cd0b | 21697 | _ACEOF |
5213506e | 21698 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21699 | gcc_cv_math_func_roundf=yes |
1409cd0b | 21700 | else |
db9f46a9 | 21701 | gcc_cv_math_func_roundf=no |
1409cd0b | 21702 | fi |
5213506e RW |
21703 | rm -f core conftest.err conftest.$ac_objext \ |
21704 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21705 | fi |
db9f46a9 TG |
21706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21707 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21708 | if test $gcc_cv_math_func_roundf = yes; then | |
f1cdfa01 | 21709 | |
f38a14ca TG |
21710 | cat >>confdefs.h <<_ACEOF |
21711 | #define HAVE_ROUNDF 1 | |
21712 | _ACEOF | |
db9f46a9 TG |
21713 | |
21714 | fi | |
1409cd0b | 21715 | |
1409cd0b | 21716 | |
1409cd0b | 21717 | |
db9f46a9 TG |
21718 | |
21719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21720 | $as_echo_n "checking for round... " >&6; } | |
22e05272 | 21721 | if ${gcc_cv_math_func_round+:} false; then : |
5213506e | 21722 | $as_echo_n "(cached) " >&6 |
1409cd0b | 21723 | else |
db9f46a9 | 21724 | if test x$gcc_no_link = xyes; then |
22e05272 | 21725 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 21726 | fi |
5213506e | 21727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
21728 | /* end confdefs.h. */ |
21729 | ||
db9f46a9 TG |
21730 | #ifdef HAVE_COMPLEX_H |
21731 | #include <complex.h> | |
1409cd0b | 21732 | #endif |
db9f46a9 TG |
21733 | #ifdef HAVE_MATH_H |
21734 | #include <math.h> | |
21735 | #endif | |
21736 | ||
21737 | int (*ptr)() = (int (*)())round; | |
21738 | ||
1409cd0b FXC |
21739 | int |
21740 | main () | |
21741 | { | |
1409cd0b FXC |
21742 | return 0; |
21743 | } | |
db9f46a9 | 21744 | |
1409cd0b | 21745 | _ACEOF |
5213506e | 21746 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21747 | gcc_cv_math_func_round=yes |
1409cd0b | 21748 | else |
db9f46a9 | 21749 | gcc_cv_math_func_round=no |
1409cd0b | 21750 | fi |
5213506e RW |
21751 | rm -f core conftest.err conftest.$ac_objext \ |
21752 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 21753 | fi |
db9f46a9 TG |
21754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21755 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21756 | if test $gcc_cv_math_func_round = yes; then | |
f1cdfa01 | 21757 | |
f38a14ca TG |
21758 | cat >>confdefs.h <<_ACEOF |
21759 | #define HAVE_ROUND 1 | |
21760 | _ACEOF | |
db9f46a9 TG |
21761 | |
21762 | fi | |
21763 | ||
1409cd0b | 21764 | |
1409cd0b | 21765 | |
1409cd0b | 21766 | |
db9f46a9 TG |
21767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21768 | $as_echo_n "checking for roundl... " >&6; } | |
22e05272 | 21769 | if ${gcc_cv_math_func_roundl+:} false; then : |
5213506e | 21770 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21771 | else |
db9f46a9 | 21772 | if test x$gcc_no_link = xyes; then |
22e05272 | 21773 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21774 | fi |
5213506e | 21775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21776 | /* end confdefs.h. */ |
21777 | ||
db9f46a9 TG |
21778 | #ifdef HAVE_COMPLEX_H |
21779 | #include <complex.h> | |
21780 | #endif | |
21781 | #ifdef HAVE_MATH_H | |
21782 | #include <math.h> | |
94f548c2 | 21783 | #endif |
db9f46a9 TG |
21784 | |
21785 | int (*ptr)() = (int (*)())roundl; | |
21786 | ||
94f548c2 FXC |
21787 | int |
21788 | main () | |
21789 | { | |
94f548c2 FXC |
21790 | return 0; |
21791 | } | |
db9f46a9 | 21792 | |
94f548c2 | 21793 | _ACEOF |
5213506e | 21794 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21795 | gcc_cv_math_func_roundl=yes |
94f548c2 | 21796 | else |
db9f46a9 | 21797 | gcc_cv_math_func_roundl=no |
94f548c2 | 21798 | fi |
5213506e RW |
21799 | rm -f core conftest.err conftest.$ac_objext \ |
21800 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21801 | fi |
db9f46a9 TG |
21802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21803 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21804 | if test $gcc_cv_math_func_roundl = yes; then | |
f1cdfa01 | 21805 | |
f38a14ca TG |
21806 | cat >>confdefs.h <<_ACEOF |
21807 | #define HAVE_ROUNDL 1 | |
21808 | _ACEOF | |
db9f46a9 TG |
21809 | |
21810 | fi | |
94f548c2 | 21811 | |
94f548c2 | 21812 | |
94f548c2 | 21813 | |
db9f46a9 TG |
21814 | |
21815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21816 | $as_echo_n "checking for lroundf... " >&6; } | |
22e05272 | 21817 | if ${gcc_cv_math_func_lroundf+:} false; then : |
5213506e | 21818 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21819 | else |
db9f46a9 | 21820 | if test x$gcc_no_link = xyes; then |
22e05272 | 21821 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21822 | fi |
5213506e | 21823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21824 | /* end confdefs.h. */ |
21825 | ||
db9f46a9 TG |
21826 | #ifdef HAVE_COMPLEX_H |
21827 | #include <complex.h> | |
94f548c2 | 21828 | #endif |
db9f46a9 TG |
21829 | #ifdef HAVE_MATH_H |
21830 | #include <math.h> | |
21831 | #endif | |
21832 | ||
21833 | int (*ptr)() = (int (*)())lroundf; | |
21834 | ||
94f548c2 FXC |
21835 | int |
21836 | main () | |
21837 | { | |
94f548c2 FXC |
21838 | return 0; |
21839 | } | |
db9f46a9 | 21840 | |
94f548c2 | 21841 | _ACEOF |
5213506e | 21842 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21843 | gcc_cv_math_func_lroundf=yes |
94f548c2 | 21844 | else |
db9f46a9 | 21845 | gcc_cv_math_func_lroundf=no |
94f548c2 | 21846 | fi |
5213506e RW |
21847 | rm -f core conftest.err conftest.$ac_objext \ |
21848 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21849 | fi |
db9f46a9 TG |
21850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21851 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21852 | if test $gcc_cv_math_func_lroundf = yes; then | |
f1cdfa01 | 21853 | |
f38a14ca TG |
21854 | cat >>confdefs.h <<_ACEOF |
21855 | #define HAVE_LROUNDF 1 | |
21856 | _ACEOF | |
94f548c2 | 21857 | |
db9f46a9 | 21858 | fi |
94f548c2 | 21859 | |
94f548c2 | 21860 | |
db9f46a9 TG |
21861 | |
21862 | ||
21863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21864 | $as_echo_n "checking for lround... " >&6; } | |
22e05272 | 21865 | if ${gcc_cv_math_func_lround+:} false; then : |
5213506e | 21866 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21867 | else |
db9f46a9 | 21868 | if test x$gcc_no_link = xyes; then |
22e05272 | 21869 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21870 | fi |
5213506e | 21871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21872 | /* end confdefs.h. */ |
21873 | ||
db9f46a9 TG |
21874 | #ifdef HAVE_COMPLEX_H |
21875 | #include <complex.h> | |
21876 | #endif | |
21877 | #ifdef HAVE_MATH_H | |
21878 | #include <math.h> | |
94f548c2 | 21879 | #endif |
db9f46a9 TG |
21880 | |
21881 | int (*ptr)() = (int (*)())lround; | |
21882 | ||
94f548c2 FXC |
21883 | int |
21884 | main () | |
21885 | { | |
94f548c2 FXC |
21886 | return 0; |
21887 | } | |
db9f46a9 | 21888 | |
94f548c2 | 21889 | _ACEOF |
5213506e | 21890 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21891 | gcc_cv_math_func_lround=yes |
94f548c2 | 21892 | else |
db9f46a9 | 21893 | gcc_cv_math_func_lround=no |
94f548c2 | 21894 | fi |
5213506e RW |
21895 | rm -f core conftest.err conftest.$ac_objext \ |
21896 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21897 | fi |
db9f46a9 TG |
21898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21899 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21900 | if test $gcc_cv_math_func_lround = yes; then | |
f1cdfa01 | 21901 | |
f38a14ca TG |
21902 | cat >>confdefs.h <<_ACEOF |
21903 | #define HAVE_LROUND 1 | |
21904 | _ACEOF | |
db9f46a9 TG |
21905 | |
21906 | fi | |
21907 | ||
94f548c2 | 21908 | |
94f548c2 | 21909 | |
94f548c2 | 21910 | |
db9f46a9 TG |
21911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21912 | $as_echo_n "checking for lroundl... " >&6; } | |
22e05272 | 21913 | if ${gcc_cv_math_func_lroundl+:} false; then : |
5213506e | 21914 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21915 | else |
db9f46a9 | 21916 | if test x$gcc_no_link = xyes; then |
22e05272 | 21917 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21918 | fi |
5213506e | 21919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21920 | /* end confdefs.h. */ |
21921 | ||
db9f46a9 TG |
21922 | #ifdef HAVE_COMPLEX_H |
21923 | #include <complex.h> | |
21924 | #endif | |
21925 | #ifdef HAVE_MATH_H | |
21926 | #include <math.h> | |
94f548c2 | 21927 | #endif |
db9f46a9 TG |
21928 | |
21929 | int (*ptr)() = (int (*)())lroundl; | |
21930 | ||
94f548c2 FXC |
21931 | int |
21932 | main () | |
21933 | { | |
94f548c2 FXC |
21934 | return 0; |
21935 | } | |
db9f46a9 | 21936 | |
94f548c2 | 21937 | _ACEOF |
5213506e | 21938 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21939 | gcc_cv_math_func_lroundl=yes |
94f548c2 | 21940 | else |
db9f46a9 | 21941 | gcc_cv_math_func_lroundl=no |
94f548c2 | 21942 | fi |
5213506e RW |
21943 | rm -f core conftest.err conftest.$ac_objext \ |
21944 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21945 | fi |
db9f46a9 TG |
21946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21947 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21948 | if test $gcc_cv_math_func_lroundl = yes; then | |
f1cdfa01 | 21949 | |
f38a14ca TG |
21950 | cat >>confdefs.h <<_ACEOF |
21951 | #define HAVE_LROUNDL 1 | |
21952 | _ACEOF | |
94f548c2 | 21953 | |
db9f46a9 | 21954 | fi |
94f548c2 | 21955 | |
94f548c2 | 21956 | |
db9f46a9 TG |
21957 | |
21958 | ||
21959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
21960 | $as_echo_n "checking for llroundf... " >&6; } | |
22e05272 | 21961 | if ${gcc_cv_math_func_llroundf+:} false; then : |
5213506e | 21962 | $as_echo_n "(cached) " >&6 |
94f548c2 | 21963 | else |
db9f46a9 | 21964 | if test x$gcc_no_link = xyes; then |
22e05272 | 21965 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 21966 | fi |
5213506e | 21967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
21968 | /* end confdefs.h. */ |
21969 | ||
db9f46a9 TG |
21970 | #ifdef HAVE_COMPLEX_H |
21971 | #include <complex.h> | |
94f548c2 | 21972 | #endif |
db9f46a9 TG |
21973 | #ifdef HAVE_MATH_H |
21974 | #include <math.h> | |
21975 | #endif | |
21976 | ||
21977 | int (*ptr)() = (int (*)())llroundf; | |
21978 | ||
94f548c2 FXC |
21979 | int |
21980 | main () | |
21981 | { | |
94f548c2 FXC |
21982 | return 0; |
21983 | } | |
db9f46a9 | 21984 | |
94f548c2 | 21985 | _ACEOF |
5213506e | 21986 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 21987 | gcc_cv_math_func_llroundf=yes |
94f548c2 | 21988 | else |
db9f46a9 | 21989 | gcc_cv_math_func_llroundf=no |
94f548c2 | 21990 | fi |
5213506e RW |
21991 | rm -f core conftest.err conftest.$ac_objext \ |
21992 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 21993 | fi |
db9f46a9 TG |
21994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
21995 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
21996 | if test $gcc_cv_math_func_llroundf = yes; then | |
f1cdfa01 | 21997 | |
f38a14ca TG |
21998 | cat >>confdefs.h <<_ACEOF |
21999 | #define HAVE_LLROUNDF 1 | |
22000 | _ACEOF | |
94f548c2 | 22001 | |
db9f46a9 | 22002 | fi |
94f548c2 | 22003 | |
94f548c2 | 22004 | |
db9f46a9 TG |
22005 | |
22006 | ||
22007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
22008 | $as_echo_n "checking for llround... " >&6; } | |
22e05272 | 22009 | if ${gcc_cv_math_func_llround+:} false; then : |
5213506e | 22010 | $as_echo_n "(cached) " >&6 |
94f548c2 | 22011 | else |
db9f46a9 | 22012 | if test x$gcc_no_link = xyes; then |
22e05272 | 22013 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
94f548c2 | 22014 | fi |
5213506e | 22015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
94f548c2 FXC |
22016 | /* end confdefs.h. */ |
22017 | ||
db9f46a9 TG |
22018 | #ifdef HAVE_COMPLEX_H |
22019 | #include <complex.h> | |
22020 | #endif | |
22021 | #ifdef HAVE_MATH_H | |
22022 | #include <math.h> | |
94f548c2 | 22023 | #endif |
db9f46a9 TG |
22024 | |
22025 | int (*ptr)() = (int (*)())llround; | |
22026 | ||
94f548c2 FXC |
22027 | int |
22028 | main () | |
22029 | { | |
94f548c2 FXC |
22030 | return 0; |
22031 | } | |
db9f46a9 | 22032 | |
94f548c2 | 22033 | _ACEOF |
5213506e | 22034 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22035 | gcc_cv_math_func_llround=yes |
94f548c2 | 22036 | else |
db9f46a9 | 22037 | gcc_cv_math_func_llround=no |
94f548c2 | 22038 | fi |
5213506e RW |
22039 | rm -f core conftest.err conftest.$ac_objext \ |
22040 | conftest$ac_exeext conftest.$ac_ext | |
94f548c2 | 22041 | fi |
db9f46a9 TG |
22042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
22043 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
22044 | if test $gcc_cv_math_func_llround = yes; then | |
f1cdfa01 | 22045 | |
f38a14ca TG |
22046 | cat >>confdefs.h <<_ACEOF |
22047 | #define HAVE_LLROUND 1 | |
22048 | _ACEOF | |
db9f46a9 TG |
22049 | |
22050 | fi | |
22051 | ||
94f548c2 | 22052 | |
94f548c2 | 22053 | |
94f548c2 | 22054 | |
db9f46a9 TG |
22055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
22056 | $as_echo_n "checking for llroundl... " >&6; } | |
22e05272 | 22057 | if ${gcc_cv_math_func_llroundl+:} false; then : |
5213506e | 22058 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22059 | else |
db9f46a9 | 22060 | if test x$gcc_no_link = xyes; then |
22e05272 | 22061 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22062 | fi |
5213506e | 22063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22064 | /* end confdefs.h. */ |
22065 | ||
db9f46a9 TG |
22066 | #ifdef HAVE_COMPLEX_H |
22067 | #include <complex.h> | |
22068 | #endif | |
22069 | #ifdef HAVE_MATH_H | |
22070 | #include <math.h> | |
1409cd0b | 22071 | #endif |
db9f46a9 TG |
22072 | |
22073 | int (*ptr)() = (int (*)())llroundl; | |
22074 | ||
1409cd0b FXC |
22075 | int |
22076 | main () | |
22077 | { | |
1409cd0b FXC |
22078 | return 0; |
22079 | } | |
db9f46a9 | 22080 | |
1409cd0b | 22081 | _ACEOF |
5213506e | 22082 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22083 | gcc_cv_math_func_llroundl=yes |
1409cd0b | 22084 | else |
db9f46a9 | 22085 | gcc_cv_math_func_llroundl=no |
1409cd0b | 22086 | fi |
5213506e RW |
22087 | rm -f core conftest.err conftest.$ac_objext \ |
22088 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22089 | fi |
db9f46a9 TG |
22090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
22091 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
22092 | if test $gcc_cv_math_func_llroundl = yes; then | |
f1cdfa01 | 22093 | |
f38a14ca TG |
22094 | cat >>confdefs.h <<_ACEOF |
22095 | #define HAVE_LLROUNDL 1 | |
22096 | _ACEOF | |
1409cd0b | 22097 | |
db9f46a9 | 22098 | fi |
1409cd0b | 22099 | |
1409cd0b | 22100 | |
db9f46a9 TG |
22101 | |
22102 | ||
22103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
22104 | $as_echo_n "checking for scalbnf... " >&6; } | |
22e05272 | 22105 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
5213506e | 22106 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22107 | else |
db9f46a9 | 22108 | if test x$gcc_no_link = xyes; then |
22e05272 | 22109 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22110 | fi |
5213506e | 22111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22112 | /* end confdefs.h. */ |
22113 | ||
db9f46a9 TG |
22114 | #ifdef HAVE_COMPLEX_H |
22115 | #include <complex.h> | |
1409cd0b | 22116 | #endif |
db9f46a9 TG |
22117 | #ifdef HAVE_MATH_H |
22118 | #include <math.h> | |
22119 | #endif | |
22120 | ||
22121 | int (*ptr)() = (int (*)())scalbnf; | |
22122 | ||
1409cd0b FXC |
22123 | int |
22124 | main () | |
22125 | { | |
1409cd0b FXC |
22126 | return 0; |
22127 | } | |
db9f46a9 | 22128 | |
1409cd0b | 22129 | _ACEOF |
5213506e | 22130 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22131 | gcc_cv_math_func_scalbnf=yes |
1409cd0b | 22132 | else |
db9f46a9 | 22133 | gcc_cv_math_func_scalbnf=no |
1409cd0b | 22134 | fi |
5213506e RW |
22135 | rm -f core conftest.err conftest.$ac_objext \ |
22136 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22137 | fi |
db9f46a9 TG |
22138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
22139 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
22140 | if test $gcc_cv_math_func_scalbnf = yes; then | |
f1cdfa01 | 22141 | |
f38a14ca TG |
22142 | cat >>confdefs.h <<_ACEOF |
22143 | #define HAVE_SCALBNF 1 | |
22144 | _ACEOF | |
1409cd0b | 22145 | |
db9f46a9 | 22146 | fi |
1409cd0b | 22147 | |
1409cd0b | 22148 | |
db9f46a9 TG |
22149 | |
22150 | ||
22151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
22152 | $as_echo_n "checking for scalbn... " >&6; } | |
22e05272 | 22153 | if ${gcc_cv_math_func_scalbn+:} false; then : |
5213506e | 22154 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22155 | else |
db9f46a9 | 22156 | if test x$gcc_no_link = xyes; then |
22e05272 | 22157 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22158 | fi |
5213506e | 22159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22160 | /* end confdefs.h. */ |
22161 | ||
db9f46a9 TG |
22162 | #ifdef HAVE_COMPLEX_H |
22163 | #include <complex.h> | |
22164 | #endif | |
22165 | #ifdef HAVE_MATH_H | |
22166 | #include <math.h> | |
1409cd0b | 22167 | #endif |
db9f46a9 TG |
22168 | |
22169 | int (*ptr)() = (int (*)())scalbn; | |
22170 | ||
1409cd0b FXC |
22171 | int |
22172 | main () | |
22173 | { | |
1409cd0b FXC |
22174 | return 0; |
22175 | } | |
db9f46a9 | 22176 | |
1409cd0b | 22177 | _ACEOF |
5213506e | 22178 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22179 | gcc_cv_math_func_scalbn=yes |
1409cd0b | 22180 | else |
db9f46a9 | 22181 | gcc_cv_math_func_scalbn=no |
1409cd0b | 22182 | fi |
5213506e RW |
22183 | rm -f core conftest.err conftest.$ac_objext \ |
22184 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22185 | fi |
db9f46a9 TG |
22186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
22187 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
22188 | if test $gcc_cv_math_func_scalbn = yes; then | |
f1cdfa01 | 22189 | |
f38a14ca TG |
22190 | cat >>confdefs.h <<_ACEOF |
22191 | #define HAVE_SCALBN 1 | |
22192 | _ACEOF | |
db9f46a9 TG |
22193 | |
22194 | fi | |
22195 | ||
1409cd0b | 22196 | |
1409cd0b | 22197 | |
1409cd0b | 22198 | |
db9f46a9 TG |
22199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
22200 | $as_echo_n "checking for scalbnl... " >&6; } | |
22e05272 | 22201 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
5213506e | 22202 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22203 | else |
db9f46a9 | 22204 | if test x$gcc_no_link = xyes; then |
22e05272 | 22205 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22206 | fi |
5213506e | 22207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22208 | /* end confdefs.h. */ |
22209 | ||
db9f46a9 TG |
22210 | #ifdef HAVE_COMPLEX_H |
22211 | #include <complex.h> | |
22212 | #endif | |
22213 | #ifdef HAVE_MATH_H | |
22214 | #include <math.h> | |
1409cd0b | 22215 | #endif |
db9f46a9 TG |
22216 | |
22217 | int (*ptr)() = (int (*)())scalbnl; | |
22218 | ||
1409cd0b FXC |
22219 | int |
22220 | main () | |
22221 | { | |
1409cd0b FXC |
22222 | return 0; |
22223 | } | |
db9f46a9 | 22224 | |
1409cd0b | 22225 | _ACEOF |
5213506e | 22226 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22227 | gcc_cv_math_func_scalbnl=yes |
1409cd0b | 22228 | else |
db9f46a9 | 22229 | gcc_cv_math_func_scalbnl=no |
1409cd0b | 22230 | fi |
5213506e RW |
22231 | rm -f core conftest.err conftest.$ac_objext \ |
22232 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22233 | fi |
db9f46a9 TG |
22234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
22235 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
22236 | if test $gcc_cv_math_func_scalbnl = yes; then | |
f1cdfa01 | 22237 | |
f38a14ca TG |
22238 | cat >>confdefs.h <<_ACEOF |
22239 | #define HAVE_SCALBNL 1 | |
22240 | _ACEOF | |
1409cd0b | 22241 | |
db9f46a9 | 22242 | fi |
1409cd0b | 22243 | |
1409cd0b | 22244 | |
db9f46a9 TG |
22245 | |
22246 | ||
22247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
22248 | $as_echo_n "checking for sinf... " >&6; } | |
22e05272 | 22249 | if ${gcc_cv_math_func_sinf+:} false; then : |
5213506e | 22250 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22251 | else |
db9f46a9 | 22252 | if test x$gcc_no_link = xyes; then |
22e05272 | 22253 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22254 | fi |
5213506e | 22255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22256 | /* end confdefs.h. */ |
22257 | ||
db9f46a9 TG |
22258 | #ifdef HAVE_COMPLEX_H |
22259 | #include <complex.h> | |
1409cd0b | 22260 | #endif |
db9f46a9 TG |
22261 | #ifdef HAVE_MATH_H |
22262 | #include <math.h> | |
22263 | #endif | |
22264 | ||
22265 | int (*ptr)() = (int (*)())sinf; | |
22266 | ||
1409cd0b FXC |
22267 | int |
22268 | main () | |
22269 | { | |
1409cd0b FXC |
22270 | return 0; |
22271 | } | |
db9f46a9 | 22272 | |
1409cd0b | 22273 | _ACEOF |
5213506e | 22274 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22275 | gcc_cv_math_func_sinf=yes |
1409cd0b | 22276 | else |
db9f46a9 | 22277 | gcc_cv_math_func_sinf=no |
1409cd0b | 22278 | fi |
5213506e RW |
22279 | rm -f core conftest.err conftest.$ac_objext \ |
22280 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22281 | fi |
db9f46a9 TG |
22282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
22283 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
22284 | if test $gcc_cv_math_func_sinf = yes; then | |
f1cdfa01 | 22285 | |
f38a14ca TG |
22286 | cat >>confdefs.h <<_ACEOF |
22287 | #define HAVE_SINF 1 | |
22288 | _ACEOF | |
1409cd0b | 22289 | |
db9f46a9 | 22290 | fi |
1409cd0b | 22291 | |
1409cd0b | 22292 | |
db9f46a9 TG |
22293 | |
22294 | ||
22295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
22296 | $as_echo_n "checking for sin... " >&6; } | |
22e05272 | 22297 | if ${gcc_cv_math_func_sin+:} false; then : |
5213506e | 22298 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22299 | else |
db9f46a9 | 22300 | if test x$gcc_no_link = xyes; then |
22e05272 | 22301 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22302 | fi |
5213506e | 22303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22304 | /* end confdefs.h. */ |
22305 | ||
db9f46a9 TG |
22306 | #ifdef HAVE_COMPLEX_H |
22307 | #include <complex.h> | |
1409cd0b | 22308 | #endif |
db9f46a9 TG |
22309 | #ifdef HAVE_MATH_H |
22310 | #include <math.h> | |
22311 | #endif | |
22312 | ||
22313 | int (*ptr)() = (int (*)())sin; | |
22314 | ||
1409cd0b FXC |
22315 | int |
22316 | main () | |
22317 | { | |
1409cd0b FXC |
22318 | return 0; |
22319 | } | |
db9f46a9 | 22320 | |
1409cd0b | 22321 | _ACEOF |
5213506e | 22322 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22323 | gcc_cv_math_func_sin=yes |
1409cd0b | 22324 | else |
db9f46a9 | 22325 | gcc_cv_math_func_sin=no |
1409cd0b | 22326 | fi |
5213506e RW |
22327 | rm -f core conftest.err conftest.$ac_objext \ |
22328 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22329 | fi |
db9f46a9 TG |
22330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22331 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22332 | if test $gcc_cv_math_func_sin = yes; then | |
f1cdfa01 | 22333 | |
f38a14ca TG |
22334 | cat >>confdefs.h <<_ACEOF |
22335 | #define HAVE_SIN 1 | |
22336 | _ACEOF | |
db9f46a9 TG |
22337 | |
22338 | fi | |
22339 | ||
1409cd0b | 22340 | |
1409cd0b | 22341 | |
1409cd0b | 22342 | |
db9f46a9 TG |
22343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22344 | $as_echo_n "checking for sinl... " >&6; } | |
22e05272 | 22345 | if ${gcc_cv_math_func_sinl+:} false; then : |
5213506e | 22346 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22347 | else |
db9f46a9 | 22348 | if test x$gcc_no_link = xyes; then |
22e05272 | 22349 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22350 | fi |
5213506e | 22351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22352 | /* end confdefs.h. */ |
22353 | ||
db9f46a9 TG |
22354 | #ifdef HAVE_COMPLEX_H |
22355 | #include <complex.h> | |
1409cd0b | 22356 | #endif |
db9f46a9 TG |
22357 | #ifdef HAVE_MATH_H |
22358 | #include <math.h> | |
22359 | #endif | |
22360 | ||
22361 | int (*ptr)() = (int (*)())sinl; | |
22362 | ||
1409cd0b FXC |
22363 | int |
22364 | main () | |
22365 | { | |
5213506e RW |
22366 | return 0; |
22367 | } | |
db9f46a9 | 22368 | |
5213506e RW |
22369 | _ACEOF |
22370 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 22371 | gcc_cv_math_func_sinl=yes |
1409cd0b | 22372 | else |
db9f46a9 | 22373 | gcc_cv_math_func_sinl=no |
1409cd0b | 22374 | fi |
5213506e RW |
22375 | rm -f core conftest.err conftest.$ac_objext \ |
22376 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22377 | fi |
db9f46a9 TG |
22378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22379 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22380 | if test $gcc_cv_math_func_sinl = yes; then | |
f1cdfa01 | 22381 | |
f38a14ca TG |
22382 | cat >>confdefs.h <<_ACEOF |
22383 | #define HAVE_SINL 1 | |
22384 | _ACEOF | |
db9f46a9 TG |
22385 | |
22386 | fi | |
1409cd0b | 22387 | |
1409cd0b | 22388 | |
1409cd0b | 22389 | |
db9f46a9 TG |
22390 | |
22391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22392 | $as_echo_n "checking for csinf... " >&6; } | |
22e05272 | 22393 | if ${gcc_cv_math_func_csinf+:} false; then : |
5213506e | 22394 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22395 | else |
db9f46a9 | 22396 | if test x$gcc_no_link = xyes; then |
22e05272 | 22397 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22398 | fi |
5213506e | 22399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22400 | /* end confdefs.h. */ |
22401 | ||
db9f46a9 TG |
22402 | #ifdef HAVE_COMPLEX_H |
22403 | #include <complex.h> | |
22404 | #endif | |
22405 | #ifdef HAVE_MATH_H | |
22406 | #include <math.h> | |
1409cd0b | 22407 | #endif |
db9f46a9 TG |
22408 | |
22409 | int (*ptr)() = (int (*)())csinf; | |
22410 | ||
1409cd0b FXC |
22411 | int |
22412 | main () | |
22413 | { | |
1409cd0b FXC |
22414 | return 0; |
22415 | } | |
db9f46a9 | 22416 | |
1409cd0b | 22417 | _ACEOF |
5213506e | 22418 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22419 | gcc_cv_math_func_csinf=yes |
1409cd0b | 22420 | else |
db9f46a9 | 22421 | gcc_cv_math_func_csinf=no |
1409cd0b | 22422 | fi |
5213506e RW |
22423 | rm -f core conftest.err conftest.$ac_objext \ |
22424 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22425 | fi |
db9f46a9 TG |
22426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22427 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22428 | if test $gcc_cv_math_func_csinf = yes; then | |
f1cdfa01 | 22429 | |
f38a14ca TG |
22430 | cat >>confdefs.h <<_ACEOF |
22431 | #define HAVE_CSINF 1 | |
22432 | _ACEOF | |
1409cd0b | 22433 | |
db9f46a9 | 22434 | fi |
1409cd0b | 22435 | |
1409cd0b | 22436 | |
db9f46a9 TG |
22437 | |
22438 | ||
22439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22440 | $as_echo_n "checking for csin... " >&6; } | |
22e05272 | 22441 | if ${gcc_cv_math_func_csin+:} false; then : |
5213506e | 22442 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22443 | else |
db9f46a9 | 22444 | if test x$gcc_no_link = xyes; then |
22e05272 | 22445 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22446 | fi |
5213506e | 22447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22448 | /* end confdefs.h. */ |
22449 | ||
db9f46a9 TG |
22450 | #ifdef HAVE_COMPLEX_H |
22451 | #include <complex.h> | |
1409cd0b | 22452 | #endif |
db9f46a9 TG |
22453 | #ifdef HAVE_MATH_H |
22454 | #include <math.h> | |
22455 | #endif | |
22456 | ||
22457 | int (*ptr)() = (int (*)())csin; | |
22458 | ||
1409cd0b FXC |
22459 | int |
22460 | main () | |
22461 | { | |
1409cd0b FXC |
22462 | return 0; |
22463 | } | |
db9f46a9 | 22464 | |
1409cd0b | 22465 | _ACEOF |
5213506e | 22466 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22467 | gcc_cv_math_func_csin=yes |
1409cd0b | 22468 | else |
db9f46a9 | 22469 | gcc_cv_math_func_csin=no |
1409cd0b | 22470 | fi |
5213506e RW |
22471 | rm -f core conftest.err conftest.$ac_objext \ |
22472 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22473 | fi |
db9f46a9 TG |
22474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22475 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22476 | if test $gcc_cv_math_func_csin = yes; then | |
f1cdfa01 | 22477 | |
f38a14ca TG |
22478 | cat >>confdefs.h <<_ACEOF |
22479 | #define HAVE_CSIN 1 | |
22480 | _ACEOF | |
db9f46a9 TG |
22481 | |
22482 | fi | |
22483 | ||
1409cd0b | 22484 | |
1409cd0b | 22485 | |
1409cd0b | 22486 | |
db9f46a9 TG |
22487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22488 | $as_echo_n "checking for csinl... " >&6; } | |
22e05272 | 22489 | if ${gcc_cv_math_func_csinl+:} false; then : |
5213506e | 22490 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22491 | else |
db9f46a9 | 22492 | if test x$gcc_no_link = xyes; then |
22e05272 | 22493 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22494 | fi |
5213506e | 22495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22496 | /* end confdefs.h. */ |
22497 | ||
db9f46a9 TG |
22498 | #ifdef HAVE_COMPLEX_H |
22499 | #include <complex.h> | |
1409cd0b | 22500 | #endif |
db9f46a9 TG |
22501 | #ifdef HAVE_MATH_H |
22502 | #include <math.h> | |
22503 | #endif | |
22504 | ||
22505 | int (*ptr)() = (int (*)())csinl; | |
22506 | ||
1409cd0b FXC |
22507 | int |
22508 | main () | |
22509 | { | |
1409cd0b FXC |
22510 | return 0; |
22511 | } | |
db9f46a9 | 22512 | |
1409cd0b | 22513 | _ACEOF |
5213506e | 22514 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22515 | gcc_cv_math_func_csinl=yes |
1409cd0b | 22516 | else |
db9f46a9 | 22517 | gcc_cv_math_func_csinl=no |
1409cd0b | 22518 | fi |
5213506e RW |
22519 | rm -f core conftest.err conftest.$ac_objext \ |
22520 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22521 | fi |
db9f46a9 TG |
22522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22523 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22524 | if test $gcc_cv_math_func_csinl = yes; then | |
f1cdfa01 | 22525 | |
f38a14ca TG |
22526 | cat >>confdefs.h <<_ACEOF |
22527 | #define HAVE_CSINL 1 | |
22528 | _ACEOF | |
db9f46a9 TG |
22529 | |
22530 | fi | |
1409cd0b | 22531 | |
1409cd0b | 22532 | |
1409cd0b | 22533 | |
db9f46a9 TG |
22534 | |
22535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22536 | $as_echo_n "checking for sinhf... " >&6; } | |
22e05272 | 22537 | if ${gcc_cv_math_func_sinhf+:} false; then : |
5213506e | 22538 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22539 | else |
db9f46a9 | 22540 | if test x$gcc_no_link = xyes; then |
22e05272 | 22541 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22542 | fi |
5213506e | 22543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22544 | /* end confdefs.h. */ |
22545 | ||
db9f46a9 TG |
22546 | #ifdef HAVE_COMPLEX_H |
22547 | #include <complex.h> | |
22548 | #endif | |
22549 | #ifdef HAVE_MATH_H | |
22550 | #include <math.h> | |
1409cd0b | 22551 | #endif |
db9f46a9 TG |
22552 | |
22553 | int (*ptr)() = (int (*)())sinhf; | |
22554 | ||
1409cd0b FXC |
22555 | int |
22556 | main () | |
22557 | { | |
1409cd0b FXC |
22558 | return 0; |
22559 | } | |
db9f46a9 | 22560 | |
1409cd0b | 22561 | _ACEOF |
5213506e | 22562 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22563 | gcc_cv_math_func_sinhf=yes |
1409cd0b | 22564 | else |
db9f46a9 | 22565 | gcc_cv_math_func_sinhf=no |
1409cd0b | 22566 | fi |
5213506e RW |
22567 | rm -f core conftest.err conftest.$ac_objext \ |
22568 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22569 | fi |
db9f46a9 TG |
22570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22571 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22572 | if test $gcc_cv_math_func_sinhf = yes; then | |
f1cdfa01 | 22573 | |
f38a14ca TG |
22574 | cat >>confdefs.h <<_ACEOF |
22575 | #define HAVE_SINHF 1 | |
22576 | _ACEOF | |
1409cd0b | 22577 | |
db9f46a9 | 22578 | fi |
1409cd0b | 22579 | |
1409cd0b | 22580 | |
db9f46a9 TG |
22581 | |
22582 | ||
22583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22584 | $as_echo_n "checking for sinh... " >&6; } | |
22e05272 | 22585 | if ${gcc_cv_math_func_sinh+:} false; then : |
5213506e | 22586 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22587 | else |
db9f46a9 | 22588 | if test x$gcc_no_link = xyes; then |
22e05272 | 22589 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22590 | fi |
5213506e | 22591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22592 | /* end confdefs.h. */ |
22593 | ||
db9f46a9 TG |
22594 | #ifdef HAVE_COMPLEX_H |
22595 | #include <complex.h> | |
1409cd0b | 22596 | #endif |
db9f46a9 TG |
22597 | #ifdef HAVE_MATH_H |
22598 | #include <math.h> | |
22599 | #endif | |
22600 | ||
22601 | int (*ptr)() = (int (*)())sinh; | |
22602 | ||
1409cd0b FXC |
22603 | int |
22604 | main () | |
22605 | { | |
1409cd0b FXC |
22606 | return 0; |
22607 | } | |
db9f46a9 | 22608 | |
1409cd0b | 22609 | _ACEOF |
5213506e | 22610 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22611 | gcc_cv_math_func_sinh=yes |
1409cd0b | 22612 | else |
db9f46a9 | 22613 | gcc_cv_math_func_sinh=no |
1409cd0b | 22614 | fi |
5213506e RW |
22615 | rm -f core conftest.err conftest.$ac_objext \ |
22616 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22617 | fi |
db9f46a9 TG |
22618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22619 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22620 | if test $gcc_cv_math_func_sinh = yes; then | |
f1cdfa01 | 22621 | |
f38a14ca TG |
22622 | cat >>confdefs.h <<_ACEOF |
22623 | #define HAVE_SINH 1 | |
22624 | _ACEOF | |
db9f46a9 TG |
22625 | |
22626 | fi | |
22627 | ||
1409cd0b | 22628 | |
1409cd0b | 22629 | |
1409cd0b | 22630 | |
db9f46a9 TG |
22631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22632 | $as_echo_n "checking for sinhl... " >&6; } | |
22e05272 | 22633 | if ${gcc_cv_math_func_sinhl+:} false; then : |
5213506e | 22634 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22635 | else |
db9f46a9 | 22636 | if test x$gcc_no_link = xyes; then |
22e05272 | 22637 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22638 | fi |
5213506e | 22639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22640 | /* end confdefs.h. */ |
22641 | ||
db9f46a9 TG |
22642 | #ifdef HAVE_COMPLEX_H |
22643 | #include <complex.h> | |
1409cd0b | 22644 | #endif |
db9f46a9 TG |
22645 | #ifdef HAVE_MATH_H |
22646 | #include <math.h> | |
22647 | #endif | |
22648 | ||
22649 | int (*ptr)() = (int (*)())sinhl; | |
22650 | ||
1409cd0b FXC |
22651 | int |
22652 | main () | |
22653 | { | |
1409cd0b FXC |
22654 | return 0; |
22655 | } | |
db9f46a9 | 22656 | |
1409cd0b | 22657 | _ACEOF |
5213506e | 22658 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22659 | gcc_cv_math_func_sinhl=yes |
1409cd0b | 22660 | else |
db9f46a9 | 22661 | gcc_cv_math_func_sinhl=no |
1409cd0b | 22662 | fi |
5213506e RW |
22663 | rm -f core conftest.err conftest.$ac_objext \ |
22664 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22665 | fi |
db9f46a9 TG |
22666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22667 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22668 | if test $gcc_cv_math_func_sinhl = yes; then | |
f1cdfa01 | 22669 | |
f38a14ca TG |
22670 | cat >>confdefs.h <<_ACEOF |
22671 | #define HAVE_SINHL 1 | |
22672 | _ACEOF | |
db9f46a9 TG |
22673 | |
22674 | fi | |
1409cd0b | 22675 | |
1409cd0b | 22676 | |
1409cd0b | 22677 | |
db9f46a9 TG |
22678 | |
22679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22680 | $as_echo_n "checking for csinhf... " >&6; } | |
22e05272 | 22681 | if ${gcc_cv_math_func_csinhf+:} false; then : |
5213506e | 22682 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22683 | else |
db9f46a9 | 22684 | if test x$gcc_no_link = xyes; then |
22e05272 | 22685 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22686 | fi |
5213506e | 22687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22688 | /* end confdefs.h. */ |
22689 | ||
db9f46a9 TG |
22690 | #ifdef HAVE_COMPLEX_H |
22691 | #include <complex.h> | |
22692 | #endif | |
22693 | #ifdef HAVE_MATH_H | |
22694 | #include <math.h> | |
1409cd0b | 22695 | #endif |
db9f46a9 TG |
22696 | |
22697 | int (*ptr)() = (int (*)())csinhf; | |
22698 | ||
1409cd0b FXC |
22699 | int |
22700 | main () | |
22701 | { | |
1409cd0b FXC |
22702 | return 0; |
22703 | } | |
db9f46a9 | 22704 | |
1409cd0b | 22705 | _ACEOF |
5213506e | 22706 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22707 | gcc_cv_math_func_csinhf=yes |
1409cd0b | 22708 | else |
db9f46a9 | 22709 | gcc_cv_math_func_csinhf=no |
1409cd0b | 22710 | fi |
5213506e RW |
22711 | rm -f core conftest.err conftest.$ac_objext \ |
22712 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22713 | fi |
db9f46a9 TG |
22714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22715 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22716 | if test $gcc_cv_math_func_csinhf = yes; then | |
f1cdfa01 | 22717 | |
f38a14ca TG |
22718 | cat >>confdefs.h <<_ACEOF |
22719 | #define HAVE_CSINHF 1 | |
22720 | _ACEOF | |
1409cd0b | 22721 | |
db9f46a9 | 22722 | fi |
1409cd0b | 22723 | |
1409cd0b | 22724 | |
db9f46a9 TG |
22725 | |
22726 | ||
22727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22728 | $as_echo_n "checking for csinh... " >&6; } | |
22e05272 | 22729 | if ${gcc_cv_math_func_csinh+:} false; then : |
5213506e | 22730 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22731 | else |
db9f46a9 | 22732 | if test x$gcc_no_link = xyes; then |
22e05272 | 22733 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22734 | fi |
5213506e | 22735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22736 | /* end confdefs.h. */ |
22737 | ||
db9f46a9 TG |
22738 | #ifdef HAVE_COMPLEX_H |
22739 | #include <complex.h> | |
1409cd0b | 22740 | #endif |
db9f46a9 TG |
22741 | #ifdef HAVE_MATH_H |
22742 | #include <math.h> | |
22743 | #endif | |
22744 | ||
22745 | int (*ptr)() = (int (*)())csinh; | |
22746 | ||
1409cd0b FXC |
22747 | int |
22748 | main () | |
22749 | { | |
1409cd0b FXC |
22750 | return 0; |
22751 | } | |
db9f46a9 | 22752 | |
1409cd0b | 22753 | _ACEOF |
5213506e | 22754 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22755 | gcc_cv_math_func_csinh=yes |
1409cd0b | 22756 | else |
db9f46a9 | 22757 | gcc_cv_math_func_csinh=no |
1409cd0b | 22758 | fi |
5213506e RW |
22759 | rm -f core conftest.err conftest.$ac_objext \ |
22760 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22761 | fi |
db9f46a9 TG |
22762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22763 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22764 | if test $gcc_cv_math_func_csinh = yes; then | |
f1cdfa01 | 22765 | |
f38a14ca TG |
22766 | cat >>confdefs.h <<_ACEOF |
22767 | #define HAVE_CSINH 1 | |
22768 | _ACEOF | |
db9f46a9 TG |
22769 | |
22770 | fi | |
22771 | ||
1409cd0b | 22772 | |
1409cd0b | 22773 | |
1409cd0b | 22774 | |
db9f46a9 TG |
22775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22776 | $as_echo_n "checking for csinhl... " >&6; } | |
22e05272 | 22777 | if ${gcc_cv_math_func_csinhl+:} false; then : |
5213506e | 22778 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22779 | else |
db9f46a9 | 22780 | if test x$gcc_no_link = xyes; then |
22e05272 | 22781 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22782 | fi |
5213506e | 22783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22784 | /* end confdefs.h. */ |
22785 | ||
db9f46a9 TG |
22786 | #ifdef HAVE_COMPLEX_H |
22787 | #include <complex.h> | |
1409cd0b | 22788 | #endif |
db9f46a9 TG |
22789 | #ifdef HAVE_MATH_H |
22790 | #include <math.h> | |
22791 | #endif | |
22792 | ||
22793 | int (*ptr)() = (int (*)())csinhl; | |
22794 | ||
1409cd0b FXC |
22795 | int |
22796 | main () | |
22797 | { | |
1409cd0b FXC |
22798 | return 0; |
22799 | } | |
db9f46a9 | 22800 | |
1409cd0b | 22801 | _ACEOF |
5213506e | 22802 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22803 | gcc_cv_math_func_csinhl=yes |
1409cd0b | 22804 | else |
db9f46a9 | 22805 | gcc_cv_math_func_csinhl=no |
1409cd0b | 22806 | fi |
5213506e RW |
22807 | rm -f core conftest.err conftest.$ac_objext \ |
22808 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22809 | fi |
db9f46a9 TG |
22810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22811 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22812 | if test $gcc_cv_math_func_csinhl = yes; then | |
f1cdfa01 | 22813 | |
f38a14ca TG |
22814 | cat >>confdefs.h <<_ACEOF |
22815 | #define HAVE_CSINHL 1 | |
22816 | _ACEOF | |
db9f46a9 TG |
22817 | |
22818 | fi | |
1409cd0b | 22819 | |
1409cd0b | 22820 | |
1409cd0b | 22821 | |
db9f46a9 TG |
22822 | |
22823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22824 | $as_echo_n "checking for sqrtf... " >&6; } | |
22e05272 | 22825 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
5213506e | 22826 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22827 | else |
db9f46a9 | 22828 | if test x$gcc_no_link = xyes; then |
22e05272 | 22829 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22830 | fi |
5213506e | 22831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22832 | /* end confdefs.h. */ |
22833 | ||
db9f46a9 TG |
22834 | #ifdef HAVE_COMPLEX_H |
22835 | #include <complex.h> | |
22836 | #endif | |
22837 | #ifdef HAVE_MATH_H | |
22838 | #include <math.h> | |
1409cd0b | 22839 | #endif |
db9f46a9 TG |
22840 | |
22841 | int (*ptr)() = (int (*)())sqrtf; | |
22842 | ||
1409cd0b FXC |
22843 | int |
22844 | main () | |
22845 | { | |
1409cd0b FXC |
22846 | return 0; |
22847 | } | |
db9f46a9 | 22848 | |
1409cd0b | 22849 | _ACEOF |
5213506e | 22850 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22851 | gcc_cv_math_func_sqrtf=yes |
1409cd0b | 22852 | else |
db9f46a9 | 22853 | gcc_cv_math_func_sqrtf=no |
1409cd0b | 22854 | fi |
5213506e RW |
22855 | rm -f core conftest.err conftest.$ac_objext \ |
22856 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22857 | fi |
db9f46a9 TG |
22858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22859 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22860 | if test $gcc_cv_math_func_sqrtf = yes; then | |
f1cdfa01 | 22861 | |
f38a14ca TG |
22862 | cat >>confdefs.h <<_ACEOF |
22863 | #define HAVE_SQRTF 1 | |
22864 | _ACEOF | |
db9f46a9 TG |
22865 | |
22866 | fi | |
1409cd0b | 22867 | |
1409cd0b | 22868 | |
db9f46a9 TG |
22869 | |
22870 | ||
22871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22872 | $as_echo_n "checking for sqrt... " >&6; } | |
22e05272 | 22873 | if ${gcc_cv_math_func_sqrt+:} false; then : |
db9f46a9 TG |
22874 | $as_echo_n "(cached) " >&6 |
22875 | else | |
22876 | if test x$gcc_no_link = xyes; then | |
22e05272 | 22877 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22878 | fi |
db9f46a9 TG |
22879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22880 | /* end confdefs.h. */ | |
22881 | ||
22882 | #ifdef HAVE_COMPLEX_H | |
22883 | #include <complex.h> | |
22884 | #endif | |
22885 | #ifdef HAVE_MATH_H | |
22886 | #include <math.h> | |
22887 | #endif | |
22888 | ||
22889 | int (*ptr)() = (int (*)())sqrt; | |
22890 | ||
22891 | int | |
22892 | main () | |
22893 | { | |
22894 | return 0; | |
22895 | } | |
22896 | ||
22897 | _ACEOF | |
22898 | if ac_fn_c_try_link "$LINENO"; then : | |
22899 | gcc_cv_math_func_sqrt=yes | |
22900 | else | |
22901 | gcc_cv_math_func_sqrt=no | |
22902 | fi | |
22903 | rm -f core conftest.err conftest.$ac_objext \ | |
22904 | conftest$ac_exeext conftest.$ac_ext | |
22905 | fi | |
22906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22907 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22908 | if test $gcc_cv_math_func_sqrt = yes; then | |
f1cdfa01 | 22909 | |
f38a14ca TG |
22910 | cat >>confdefs.h <<_ACEOF |
22911 | #define HAVE_SQRT 1 | |
22912 | _ACEOF | |
db9f46a9 TG |
22913 | |
22914 | fi | |
1409cd0b | 22915 | |
db9f46a9 TG |
22916 | |
22917 | ||
22918 | ||
22919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22920 | $as_echo_n "checking for sqrtl... " >&6; } | |
22e05272 | 22921 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
5213506e | 22922 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22923 | else |
db9f46a9 | 22924 | if test x$gcc_no_link = xyes; then |
22e05272 | 22925 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22926 | fi |
5213506e | 22927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22928 | /* end confdefs.h. */ |
22929 | ||
db9f46a9 TG |
22930 | #ifdef HAVE_COMPLEX_H |
22931 | #include <complex.h> | |
22932 | #endif | |
22933 | #ifdef HAVE_MATH_H | |
22934 | #include <math.h> | |
1409cd0b | 22935 | #endif |
db9f46a9 TG |
22936 | |
22937 | int (*ptr)() = (int (*)())sqrtl; | |
22938 | ||
1409cd0b FXC |
22939 | int |
22940 | main () | |
22941 | { | |
1409cd0b FXC |
22942 | return 0; |
22943 | } | |
db9f46a9 | 22944 | |
1409cd0b | 22945 | _ACEOF |
5213506e | 22946 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22947 | gcc_cv_math_func_sqrtl=yes |
1409cd0b | 22948 | else |
db9f46a9 | 22949 | gcc_cv_math_func_sqrtl=no |
1409cd0b | 22950 | fi |
5213506e RW |
22951 | rm -f core conftest.err conftest.$ac_objext \ |
22952 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 22953 | fi |
db9f46a9 TG |
22954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22955 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22956 | if test $gcc_cv_math_func_sqrtl = yes; then | |
f1cdfa01 | 22957 | |
f38a14ca TG |
22958 | cat >>confdefs.h <<_ACEOF |
22959 | #define HAVE_SQRTL 1 | |
22960 | _ACEOF | |
db9f46a9 TG |
22961 | |
22962 | fi | |
1409cd0b | 22963 | |
1409cd0b | 22964 | |
1409cd0b | 22965 | |
db9f46a9 TG |
22966 | |
22967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
22968 | $as_echo_n "checking for csqrtf... " >&6; } | |
22e05272 | 22969 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
5213506e | 22970 | $as_echo_n "(cached) " >&6 |
1409cd0b | 22971 | else |
db9f46a9 | 22972 | if test x$gcc_no_link = xyes; then |
22e05272 | 22973 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 22974 | fi |
5213506e | 22975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
22976 | /* end confdefs.h. */ |
22977 | ||
db9f46a9 TG |
22978 | #ifdef HAVE_COMPLEX_H |
22979 | #include <complex.h> | |
1409cd0b | 22980 | #endif |
db9f46a9 TG |
22981 | #ifdef HAVE_MATH_H |
22982 | #include <math.h> | |
22983 | #endif | |
22984 | ||
22985 | int (*ptr)() = (int (*)())csqrtf; | |
22986 | ||
1409cd0b FXC |
22987 | int |
22988 | main () | |
22989 | { | |
1409cd0b FXC |
22990 | return 0; |
22991 | } | |
db9f46a9 | 22992 | |
1409cd0b | 22993 | _ACEOF |
5213506e | 22994 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 22995 | gcc_cv_math_func_csqrtf=yes |
1409cd0b | 22996 | else |
db9f46a9 | 22997 | gcc_cv_math_func_csqrtf=no |
1409cd0b | 22998 | fi |
5213506e RW |
22999 | rm -f core conftest.err conftest.$ac_objext \ |
23000 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23001 | fi |
db9f46a9 TG |
23002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
23003 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
23004 | if test $gcc_cv_math_func_csqrtf = yes; then | |
f1cdfa01 | 23005 | |
f38a14ca TG |
23006 | cat >>confdefs.h <<_ACEOF |
23007 | #define HAVE_CSQRTF 1 | |
23008 | _ACEOF | |
1409cd0b | 23009 | |
db9f46a9 | 23010 | fi |
1409cd0b | 23011 | |
1409cd0b | 23012 | |
db9f46a9 TG |
23013 | |
23014 | ||
23015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
23016 | $as_echo_n "checking for csqrt... " >&6; } | |
22e05272 | 23017 | if ${gcc_cv_math_func_csqrt+:} false; then : |
5213506e | 23018 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23019 | else |
db9f46a9 | 23020 | if test x$gcc_no_link = xyes; then |
22e05272 | 23021 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23022 | fi |
5213506e | 23023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23024 | /* end confdefs.h. */ |
23025 | ||
db9f46a9 TG |
23026 | #ifdef HAVE_COMPLEX_H |
23027 | #include <complex.h> | |
23028 | #endif | |
23029 | #ifdef HAVE_MATH_H | |
23030 | #include <math.h> | |
1409cd0b | 23031 | #endif |
db9f46a9 TG |
23032 | |
23033 | int (*ptr)() = (int (*)())csqrt; | |
23034 | ||
1409cd0b FXC |
23035 | int |
23036 | main () | |
23037 | { | |
1409cd0b FXC |
23038 | return 0; |
23039 | } | |
db9f46a9 | 23040 | |
1409cd0b | 23041 | _ACEOF |
5213506e | 23042 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23043 | gcc_cv_math_func_csqrt=yes |
1409cd0b | 23044 | else |
db9f46a9 | 23045 | gcc_cv_math_func_csqrt=no |
1409cd0b | 23046 | fi |
5213506e RW |
23047 | rm -f core conftest.err conftest.$ac_objext \ |
23048 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23049 | fi |
db9f46a9 TG |
23050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
23051 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
23052 | if test $gcc_cv_math_func_csqrt = yes; then | |
f1cdfa01 | 23053 | |
f38a14ca TG |
23054 | cat >>confdefs.h <<_ACEOF |
23055 | #define HAVE_CSQRT 1 | |
23056 | _ACEOF | |
db9f46a9 TG |
23057 | |
23058 | fi | |
1409cd0b | 23059 | |
1409cd0b | 23060 | |
1409cd0b | 23061 | |
db9f46a9 TG |
23062 | |
23063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
23064 | $as_echo_n "checking for csqrtl... " >&6; } | |
22e05272 | 23065 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
5213506e | 23066 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23067 | else |
db9f46a9 | 23068 | if test x$gcc_no_link = xyes; then |
22e05272 | 23069 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23070 | fi |
5213506e | 23071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23072 | /* end confdefs.h. */ |
23073 | ||
db9f46a9 TG |
23074 | #ifdef HAVE_COMPLEX_H |
23075 | #include <complex.h> | |
1409cd0b | 23076 | #endif |
db9f46a9 TG |
23077 | #ifdef HAVE_MATH_H |
23078 | #include <math.h> | |
23079 | #endif | |
23080 | ||
23081 | int (*ptr)() = (int (*)())csqrtl; | |
23082 | ||
1409cd0b FXC |
23083 | int |
23084 | main () | |
23085 | { | |
1409cd0b FXC |
23086 | return 0; |
23087 | } | |
db9f46a9 | 23088 | |
1409cd0b | 23089 | _ACEOF |
5213506e | 23090 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23091 | gcc_cv_math_func_csqrtl=yes |
1409cd0b | 23092 | else |
db9f46a9 | 23093 | gcc_cv_math_func_csqrtl=no |
1409cd0b | 23094 | fi |
5213506e RW |
23095 | rm -f core conftest.err conftest.$ac_objext \ |
23096 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23097 | fi |
db9f46a9 TG |
23098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
23099 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
23100 | if test $gcc_cv_math_func_csqrtl = yes; then | |
f1cdfa01 | 23101 | |
f38a14ca TG |
23102 | cat >>confdefs.h <<_ACEOF |
23103 | #define HAVE_CSQRTL 1 | |
23104 | _ACEOF | |
db9f46a9 TG |
23105 | |
23106 | fi | |
23107 | ||
1409cd0b | 23108 | |
1409cd0b | 23109 | |
1409cd0b | 23110 | |
db9f46a9 TG |
23111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
23112 | $as_echo_n "checking for tanf... " >&6; } | |
22e05272 | 23113 | if ${gcc_cv_math_func_tanf+:} false; then : |
5213506e | 23114 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23115 | else |
db9f46a9 | 23116 | if test x$gcc_no_link = xyes; then |
22e05272 | 23117 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23118 | fi |
5213506e | 23119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23120 | /* end confdefs.h. */ |
23121 | ||
db9f46a9 TG |
23122 | #ifdef HAVE_COMPLEX_H |
23123 | #include <complex.h> | |
23124 | #endif | |
23125 | #ifdef HAVE_MATH_H | |
23126 | #include <math.h> | |
1409cd0b | 23127 | #endif |
db9f46a9 TG |
23128 | |
23129 | int (*ptr)() = (int (*)())tanf; | |
23130 | ||
1409cd0b FXC |
23131 | int |
23132 | main () | |
23133 | { | |
1409cd0b FXC |
23134 | return 0; |
23135 | } | |
db9f46a9 | 23136 | |
1409cd0b | 23137 | _ACEOF |
5213506e | 23138 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23139 | gcc_cv_math_func_tanf=yes |
1409cd0b | 23140 | else |
db9f46a9 | 23141 | gcc_cv_math_func_tanf=no |
1409cd0b | 23142 | fi |
5213506e RW |
23143 | rm -f core conftest.err conftest.$ac_objext \ |
23144 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23145 | fi |
db9f46a9 TG |
23146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
23147 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
23148 | if test $gcc_cv_math_func_tanf = yes; then | |
f1cdfa01 | 23149 | |
f38a14ca TG |
23150 | cat >>confdefs.h <<_ACEOF |
23151 | #define HAVE_TANF 1 | |
23152 | _ACEOF | |
db9f46a9 TG |
23153 | |
23154 | fi | |
1409cd0b | 23155 | |
1409cd0b | 23156 | |
1409cd0b | 23157 | |
db9f46a9 TG |
23158 | |
23159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
23160 | $as_echo_n "checking for tan... " >&6; } | |
22e05272 | 23161 | if ${gcc_cv_math_func_tan+:} false; then : |
5213506e | 23162 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23163 | else |
db9f46a9 | 23164 | if test x$gcc_no_link = xyes; then |
22e05272 | 23165 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23166 | fi |
5213506e | 23167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23168 | /* end confdefs.h. */ |
23169 | ||
db9f46a9 TG |
23170 | #ifdef HAVE_COMPLEX_H |
23171 | #include <complex.h> | |
1409cd0b | 23172 | #endif |
db9f46a9 TG |
23173 | #ifdef HAVE_MATH_H |
23174 | #include <math.h> | |
23175 | #endif | |
23176 | ||
23177 | int (*ptr)() = (int (*)())tan; | |
23178 | ||
1409cd0b FXC |
23179 | int |
23180 | main () | |
23181 | { | |
1409cd0b FXC |
23182 | return 0; |
23183 | } | |
db9f46a9 | 23184 | |
1409cd0b | 23185 | _ACEOF |
5213506e | 23186 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23187 | gcc_cv_math_func_tan=yes |
1409cd0b | 23188 | else |
db9f46a9 | 23189 | gcc_cv_math_func_tan=no |
1409cd0b | 23190 | fi |
5213506e RW |
23191 | rm -f core conftest.err conftest.$ac_objext \ |
23192 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23193 | fi |
db9f46a9 TG |
23194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
23195 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
23196 | if test $gcc_cv_math_func_tan = yes; then | |
f1cdfa01 | 23197 | |
f38a14ca TG |
23198 | cat >>confdefs.h <<_ACEOF |
23199 | #define HAVE_TAN 1 | |
23200 | _ACEOF | |
1409cd0b | 23201 | |
db9f46a9 | 23202 | fi |
1409cd0b | 23203 | |
1409cd0b | 23204 | |
db9f46a9 TG |
23205 | |
23206 | ||
23207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
23208 | $as_echo_n "checking for tanl... " >&6; } | |
22e05272 | 23209 | if ${gcc_cv_math_func_tanl+:} false; then : |
5213506e | 23210 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23211 | else |
db9f46a9 | 23212 | if test x$gcc_no_link = xyes; then |
22e05272 | 23213 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23214 | fi |
5213506e | 23215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23216 | /* end confdefs.h. */ |
23217 | ||
db9f46a9 TG |
23218 | #ifdef HAVE_COMPLEX_H |
23219 | #include <complex.h> | |
23220 | #endif | |
23221 | #ifdef HAVE_MATH_H | |
23222 | #include <math.h> | |
1409cd0b | 23223 | #endif |
db9f46a9 TG |
23224 | |
23225 | int (*ptr)() = (int (*)())tanl; | |
23226 | ||
1409cd0b FXC |
23227 | int |
23228 | main () | |
23229 | { | |
1409cd0b FXC |
23230 | return 0; |
23231 | } | |
db9f46a9 | 23232 | |
1409cd0b | 23233 | _ACEOF |
5213506e | 23234 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23235 | gcc_cv_math_func_tanl=yes |
1409cd0b | 23236 | else |
db9f46a9 | 23237 | gcc_cv_math_func_tanl=no |
1409cd0b | 23238 | fi |
5213506e RW |
23239 | rm -f core conftest.err conftest.$ac_objext \ |
23240 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23241 | fi |
db9f46a9 TG |
23242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
23243 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
23244 | if test $gcc_cv_math_func_tanl = yes; then | |
f1cdfa01 | 23245 | |
f38a14ca TG |
23246 | cat >>confdefs.h <<_ACEOF |
23247 | #define HAVE_TANL 1 | |
23248 | _ACEOF | |
db9f46a9 TG |
23249 | |
23250 | fi | |
1409cd0b | 23251 | |
1409cd0b | 23252 | |
1409cd0b | 23253 | |
db9f46a9 TG |
23254 | |
23255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
23256 | $as_echo_n "checking for ctanf... " >&6; } | |
22e05272 | 23257 | if ${gcc_cv_math_func_ctanf+:} false; then : |
5213506e | 23258 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23259 | else |
db9f46a9 | 23260 | if test x$gcc_no_link = xyes; then |
22e05272 | 23261 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23262 | fi |
5213506e | 23263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23264 | /* end confdefs.h. */ |
23265 | ||
db9f46a9 TG |
23266 | #ifdef HAVE_COMPLEX_H |
23267 | #include <complex.h> | |
1409cd0b | 23268 | #endif |
db9f46a9 TG |
23269 | #ifdef HAVE_MATH_H |
23270 | #include <math.h> | |
23271 | #endif | |
23272 | ||
23273 | int (*ptr)() = (int (*)())ctanf; | |
23274 | ||
1409cd0b FXC |
23275 | int |
23276 | main () | |
23277 | { | |
1409cd0b FXC |
23278 | return 0; |
23279 | } | |
db9f46a9 | 23280 | |
1409cd0b | 23281 | _ACEOF |
5213506e | 23282 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23283 | gcc_cv_math_func_ctanf=yes |
1409cd0b | 23284 | else |
db9f46a9 | 23285 | gcc_cv_math_func_ctanf=no |
1409cd0b | 23286 | fi |
5213506e RW |
23287 | rm -f core conftest.err conftest.$ac_objext \ |
23288 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23289 | fi |
db9f46a9 TG |
23290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
23291 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
23292 | if test $gcc_cv_math_func_ctanf = yes; then | |
f1cdfa01 | 23293 | |
f38a14ca TG |
23294 | cat >>confdefs.h <<_ACEOF |
23295 | #define HAVE_CTANF 1 | |
23296 | _ACEOF | |
db9f46a9 TG |
23297 | |
23298 | fi | |
23299 | ||
1409cd0b | 23300 | |
1409cd0b | 23301 | |
1409cd0b | 23302 | |
db9f46a9 TG |
23303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
23304 | $as_echo_n "checking for ctan... " >&6; } | |
22e05272 | 23305 | if ${gcc_cv_math_func_ctan+:} false; then : |
5213506e | 23306 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23307 | else |
db9f46a9 | 23308 | if test x$gcc_no_link = xyes; then |
22e05272 | 23309 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23310 | fi |
5213506e | 23311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23312 | /* end confdefs.h. */ |
23313 | ||
db9f46a9 TG |
23314 | #ifdef HAVE_COMPLEX_H |
23315 | #include <complex.h> | |
23316 | #endif | |
23317 | #ifdef HAVE_MATH_H | |
23318 | #include <math.h> | |
1409cd0b | 23319 | #endif |
db9f46a9 TG |
23320 | |
23321 | int (*ptr)() = (int (*)())ctan; | |
23322 | ||
1409cd0b FXC |
23323 | int |
23324 | main () | |
23325 | { | |
1409cd0b FXC |
23326 | return 0; |
23327 | } | |
db9f46a9 | 23328 | |
1409cd0b | 23329 | _ACEOF |
5213506e | 23330 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23331 | gcc_cv_math_func_ctan=yes |
1409cd0b | 23332 | else |
db9f46a9 | 23333 | gcc_cv_math_func_ctan=no |
1409cd0b | 23334 | fi |
5213506e RW |
23335 | rm -f core conftest.err conftest.$ac_objext \ |
23336 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23337 | fi |
db9f46a9 TG |
23338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23339 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23340 | if test $gcc_cv_math_func_ctan = yes; then | |
f1cdfa01 | 23341 | |
f38a14ca TG |
23342 | cat >>confdefs.h <<_ACEOF |
23343 | #define HAVE_CTAN 1 | |
23344 | _ACEOF | |
db9f46a9 TG |
23345 | |
23346 | fi | |
1409cd0b | 23347 | |
1409cd0b | 23348 | |
1409cd0b | 23349 | |
db9f46a9 TG |
23350 | |
23351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23352 | $as_echo_n "checking for ctanl... " >&6; } | |
22e05272 | 23353 | if ${gcc_cv_math_func_ctanl+:} false; then : |
5213506e | 23354 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23355 | else |
db9f46a9 | 23356 | if test x$gcc_no_link = xyes; then |
22e05272 | 23357 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23358 | fi |
5213506e | 23359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23360 | /* end confdefs.h. */ |
23361 | ||
db9f46a9 TG |
23362 | #ifdef HAVE_COMPLEX_H |
23363 | #include <complex.h> | |
1409cd0b | 23364 | #endif |
db9f46a9 TG |
23365 | #ifdef HAVE_MATH_H |
23366 | #include <math.h> | |
23367 | #endif | |
23368 | ||
23369 | int (*ptr)() = (int (*)())ctanl; | |
23370 | ||
1409cd0b FXC |
23371 | int |
23372 | main () | |
23373 | { | |
1409cd0b FXC |
23374 | return 0; |
23375 | } | |
db9f46a9 | 23376 | |
1409cd0b | 23377 | _ACEOF |
5213506e | 23378 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23379 | gcc_cv_math_func_ctanl=yes |
1409cd0b | 23380 | else |
db9f46a9 | 23381 | gcc_cv_math_func_ctanl=no |
1409cd0b | 23382 | fi |
5213506e RW |
23383 | rm -f core conftest.err conftest.$ac_objext \ |
23384 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23385 | fi |
db9f46a9 TG |
23386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23387 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23388 | if test $gcc_cv_math_func_ctanl = yes; then | |
f1cdfa01 | 23389 | |
f38a14ca TG |
23390 | cat >>confdefs.h <<_ACEOF |
23391 | #define HAVE_CTANL 1 | |
23392 | _ACEOF | |
1409cd0b | 23393 | |
db9f46a9 | 23394 | fi |
1409cd0b | 23395 | |
1409cd0b | 23396 | |
db9f46a9 TG |
23397 | |
23398 | ||
23399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23400 | $as_echo_n "checking for tanhf... " >&6; } | |
22e05272 | 23401 | if ${gcc_cv_math_func_tanhf+:} false; then : |
5213506e | 23402 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23403 | else |
db9f46a9 | 23404 | if test x$gcc_no_link = xyes; then |
22e05272 | 23405 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23406 | fi |
5213506e | 23407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23408 | /* end confdefs.h. */ |
23409 | ||
db9f46a9 TG |
23410 | #ifdef HAVE_COMPLEX_H |
23411 | #include <complex.h> | |
23412 | #endif | |
23413 | #ifdef HAVE_MATH_H | |
23414 | #include <math.h> | |
1409cd0b | 23415 | #endif |
db9f46a9 TG |
23416 | |
23417 | int (*ptr)() = (int (*)())tanhf; | |
23418 | ||
1409cd0b FXC |
23419 | int |
23420 | main () | |
23421 | { | |
1409cd0b FXC |
23422 | return 0; |
23423 | } | |
db9f46a9 | 23424 | |
1409cd0b | 23425 | _ACEOF |
5213506e | 23426 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23427 | gcc_cv_math_func_tanhf=yes |
1409cd0b | 23428 | else |
db9f46a9 | 23429 | gcc_cv_math_func_tanhf=no |
1409cd0b | 23430 | fi |
5213506e RW |
23431 | rm -f core conftest.err conftest.$ac_objext \ |
23432 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23433 | fi |
db9f46a9 TG |
23434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23435 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23436 | if test $gcc_cv_math_func_tanhf = yes; then | |
f1cdfa01 | 23437 | |
f38a14ca TG |
23438 | cat >>confdefs.h <<_ACEOF |
23439 | #define HAVE_TANHF 1 | |
23440 | _ACEOF | |
db9f46a9 TG |
23441 | |
23442 | fi | |
1409cd0b | 23443 | |
1409cd0b | 23444 | |
1409cd0b | 23445 | |
db9f46a9 TG |
23446 | |
23447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23448 | $as_echo_n "checking for tanh... " >&6; } | |
22e05272 | 23449 | if ${gcc_cv_math_func_tanh+:} false; then : |
5213506e | 23450 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23451 | else |
db9f46a9 | 23452 | if test x$gcc_no_link = xyes; then |
22e05272 | 23453 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23454 | fi |
5213506e | 23455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23456 | /* end confdefs.h. */ |
23457 | ||
db9f46a9 TG |
23458 | #ifdef HAVE_COMPLEX_H |
23459 | #include <complex.h> | |
1409cd0b | 23460 | #endif |
db9f46a9 TG |
23461 | #ifdef HAVE_MATH_H |
23462 | #include <math.h> | |
23463 | #endif | |
23464 | ||
23465 | int (*ptr)() = (int (*)())tanh; | |
23466 | ||
1409cd0b FXC |
23467 | int |
23468 | main () | |
23469 | { | |
1409cd0b FXC |
23470 | return 0; |
23471 | } | |
db9f46a9 | 23472 | |
1409cd0b | 23473 | _ACEOF |
5213506e | 23474 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23475 | gcc_cv_math_func_tanh=yes |
1409cd0b | 23476 | else |
db9f46a9 | 23477 | gcc_cv_math_func_tanh=no |
1409cd0b | 23478 | fi |
5213506e RW |
23479 | rm -f core conftest.err conftest.$ac_objext \ |
23480 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23481 | fi |
db9f46a9 TG |
23482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23483 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23484 | if test $gcc_cv_math_func_tanh = yes; then | |
f1cdfa01 | 23485 | |
f38a14ca TG |
23486 | cat >>confdefs.h <<_ACEOF |
23487 | #define HAVE_TANH 1 | |
23488 | _ACEOF | |
db9f46a9 TG |
23489 | |
23490 | fi | |
23491 | ||
1409cd0b | 23492 | |
1409cd0b | 23493 | |
1409cd0b | 23494 | |
db9f46a9 TG |
23495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23496 | $as_echo_n "checking for tanhl... " >&6; } | |
22e05272 | 23497 | if ${gcc_cv_math_func_tanhl+:} false; then : |
5213506e | 23498 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23499 | else |
db9f46a9 | 23500 | if test x$gcc_no_link = xyes; then |
22e05272 | 23501 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23502 | fi |
5213506e | 23503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23504 | /* end confdefs.h. */ |
23505 | ||
db9f46a9 TG |
23506 | #ifdef HAVE_COMPLEX_H |
23507 | #include <complex.h> | |
23508 | #endif | |
23509 | #ifdef HAVE_MATH_H | |
23510 | #include <math.h> | |
1409cd0b | 23511 | #endif |
db9f46a9 TG |
23512 | |
23513 | int (*ptr)() = (int (*)())tanhl; | |
23514 | ||
1409cd0b FXC |
23515 | int |
23516 | main () | |
23517 | { | |
1409cd0b FXC |
23518 | return 0; |
23519 | } | |
db9f46a9 | 23520 | |
1409cd0b | 23521 | _ACEOF |
5213506e | 23522 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23523 | gcc_cv_math_func_tanhl=yes |
1409cd0b | 23524 | else |
db9f46a9 | 23525 | gcc_cv_math_func_tanhl=no |
1409cd0b | 23526 | fi |
5213506e RW |
23527 | rm -f core conftest.err conftest.$ac_objext \ |
23528 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23529 | fi |
db9f46a9 TG |
23530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23531 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23532 | if test $gcc_cv_math_func_tanhl = yes; then | |
f1cdfa01 | 23533 | |
f38a14ca TG |
23534 | cat >>confdefs.h <<_ACEOF |
23535 | #define HAVE_TANHL 1 | |
23536 | _ACEOF | |
db9f46a9 TG |
23537 | |
23538 | fi | |
1409cd0b | 23539 | |
1409cd0b | 23540 | |
1409cd0b | 23541 | |
db9f46a9 TG |
23542 | |
23543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23544 | $as_echo_n "checking for ctanhf... " >&6; } | |
22e05272 | 23545 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
5213506e | 23546 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23547 | else |
db9f46a9 | 23548 | if test x$gcc_no_link = xyes; then |
22e05272 | 23549 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db9f46a9 TG |
23550 | fi |
23551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23552 | /* end confdefs.h. */ | |
23553 | ||
23554 | #ifdef HAVE_COMPLEX_H | |
23555 | #include <complex.h> | |
1409cd0b | 23556 | #endif |
db9f46a9 TG |
23557 | #ifdef HAVE_MATH_H |
23558 | #include <math.h> | |
23559 | #endif | |
23560 | ||
23561 | int (*ptr)() = (int (*)())ctanhf; | |
23562 | ||
1409cd0b FXC |
23563 | int |
23564 | main () | |
23565 | { | |
1409cd0b FXC |
23566 | return 0; |
23567 | } | |
db9f46a9 | 23568 | |
1409cd0b | 23569 | _ACEOF |
5213506e | 23570 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23571 | gcc_cv_math_func_ctanhf=yes |
1409cd0b | 23572 | else |
db9f46a9 | 23573 | gcc_cv_math_func_ctanhf=no |
1409cd0b | 23574 | fi |
5213506e RW |
23575 | rm -f core conftest.err conftest.$ac_objext \ |
23576 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23577 | fi |
db9f46a9 TG |
23578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23579 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23580 | if test $gcc_cv_math_func_ctanhf = yes; then | |
f1cdfa01 | 23581 | |
f38a14ca TG |
23582 | cat >>confdefs.h <<_ACEOF |
23583 | #define HAVE_CTANHF 1 | |
23584 | _ACEOF | |
1409cd0b | 23585 | |
db9f46a9 | 23586 | fi |
1409cd0b | 23587 | |
1409cd0b | 23588 | |
db9f46a9 TG |
23589 | |
23590 | ||
23591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23592 | $as_echo_n "checking for ctanh... " >&6; } | |
22e05272 | 23593 | if ${gcc_cv_math_func_ctanh+:} false; then : |
5213506e | 23594 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23595 | else |
db9f46a9 | 23596 | if test x$gcc_no_link = xyes; then |
22e05272 | 23597 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23598 | fi |
5213506e | 23599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23600 | /* end confdefs.h. */ |
23601 | ||
db9f46a9 TG |
23602 | #ifdef HAVE_COMPLEX_H |
23603 | #include <complex.h> | |
23604 | #endif | |
23605 | #ifdef HAVE_MATH_H | |
23606 | #include <math.h> | |
1409cd0b | 23607 | #endif |
db9f46a9 TG |
23608 | |
23609 | int (*ptr)() = (int (*)())ctanh; | |
23610 | ||
1409cd0b FXC |
23611 | int |
23612 | main () | |
23613 | { | |
5213506e RW |
23614 | return 0; |
23615 | } | |
db9f46a9 | 23616 | |
5213506e RW |
23617 | _ACEOF |
23618 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 23619 | gcc_cv_math_func_ctanh=yes |
1409cd0b | 23620 | else |
db9f46a9 | 23621 | gcc_cv_math_func_ctanh=no |
1409cd0b | 23622 | fi |
5213506e RW |
23623 | rm -f core conftest.err conftest.$ac_objext \ |
23624 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23625 | fi |
db9f46a9 TG |
23626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23627 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23628 | if test $gcc_cv_math_func_ctanh = yes; then | |
f1cdfa01 | 23629 | |
f38a14ca TG |
23630 | cat >>confdefs.h <<_ACEOF |
23631 | #define HAVE_CTANH 1 | |
23632 | _ACEOF | |
db9f46a9 TG |
23633 | |
23634 | fi | |
1409cd0b | 23635 | |
1409cd0b | 23636 | |
1409cd0b | 23637 | |
db9f46a9 TG |
23638 | |
23639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23640 | $as_echo_n "checking for ctanhl... " >&6; } | |
22e05272 | 23641 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
5213506e | 23642 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23643 | else |
db9f46a9 | 23644 | if test x$gcc_no_link = xyes; then |
22e05272 | 23645 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23646 | fi |
5213506e | 23647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23648 | /* end confdefs.h. */ |
23649 | ||
db9f46a9 TG |
23650 | #ifdef HAVE_COMPLEX_H |
23651 | #include <complex.h> | |
1409cd0b | 23652 | #endif |
db9f46a9 TG |
23653 | #ifdef HAVE_MATH_H |
23654 | #include <math.h> | |
23655 | #endif | |
23656 | ||
23657 | int (*ptr)() = (int (*)())ctanhl; | |
23658 | ||
1409cd0b FXC |
23659 | int |
23660 | main () | |
23661 | { | |
1409cd0b FXC |
23662 | return 0; |
23663 | } | |
db9f46a9 | 23664 | |
1409cd0b | 23665 | _ACEOF |
5213506e | 23666 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23667 | gcc_cv_math_func_ctanhl=yes |
1409cd0b | 23668 | else |
db9f46a9 | 23669 | gcc_cv_math_func_ctanhl=no |
1409cd0b | 23670 | fi |
5213506e RW |
23671 | rm -f core conftest.err conftest.$ac_objext \ |
23672 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23673 | fi |
db9f46a9 TG |
23674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23675 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23676 | if test $gcc_cv_math_func_ctanhl = yes; then | |
f1cdfa01 | 23677 | |
f38a14ca TG |
23678 | cat >>confdefs.h <<_ACEOF |
23679 | #define HAVE_CTANHL 1 | |
23680 | _ACEOF | |
db9f46a9 TG |
23681 | |
23682 | fi | |
23683 | ||
1409cd0b | 23684 | |
69a2d125 | 23685 | |
69a2d125 | 23686 | |
db9f46a9 TG |
23687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23688 | $as_echo_n "checking for truncf... " >&6; } | |
22e05272 | 23689 | if ${gcc_cv_math_func_truncf+:} false; then : |
5213506e | 23690 | $as_echo_n "(cached) " >&6 |
69a2d125 | 23691 | else |
db9f46a9 | 23692 | if test x$gcc_no_link = xyes; then |
22e05272 | 23693 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 23694 | fi |
5213506e | 23695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
69a2d125 EB |
23696 | /* end confdefs.h. */ |
23697 | ||
db9f46a9 TG |
23698 | #ifdef HAVE_COMPLEX_H |
23699 | #include <complex.h> | |
23700 | #endif | |
23701 | #ifdef HAVE_MATH_H | |
23702 | #include <math.h> | |
69a2d125 | 23703 | #endif |
db9f46a9 TG |
23704 | |
23705 | int (*ptr)() = (int (*)())truncf; | |
23706 | ||
1409cd0b FXC |
23707 | int |
23708 | main () | |
23709 | { | |
1409cd0b FXC |
23710 | return 0; |
23711 | } | |
db9f46a9 | 23712 | |
1409cd0b | 23713 | _ACEOF |
5213506e | 23714 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23715 | gcc_cv_math_func_truncf=yes |
1409cd0b | 23716 | else |
db9f46a9 | 23717 | gcc_cv_math_func_truncf=no |
1409cd0b | 23718 | fi |
5213506e RW |
23719 | rm -f core conftest.err conftest.$ac_objext \ |
23720 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23721 | fi |
db9f46a9 TG |
23722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23723 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23724 | if test $gcc_cv_math_func_truncf = yes; then | |
f1cdfa01 | 23725 | |
f38a14ca TG |
23726 | cat >>confdefs.h <<_ACEOF |
23727 | #define HAVE_TRUNCF 1 | |
23728 | _ACEOF | |
db9f46a9 TG |
23729 | |
23730 | fi | |
1409cd0b | 23731 | |
1409cd0b | 23732 | |
1409cd0b | 23733 | |
db9f46a9 TG |
23734 | |
23735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23736 | $as_echo_n "checking for trunc... " >&6; } | |
22e05272 | 23737 | if ${gcc_cv_math_func_trunc+:} false; then : |
5213506e | 23738 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23739 | else |
db9f46a9 | 23740 | if test x$gcc_no_link = xyes; then |
22e05272 | 23741 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23742 | fi |
5213506e | 23743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23744 | /* end confdefs.h. */ |
23745 | ||
db9f46a9 TG |
23746 | #ifdef HAVE_COMPLEX_H |
23747 | #include <complex.h> | |
1409cd0b | 23748 | #endif |
db9f46a9 TG |
23749 | #ifdef HAVE_MATH_H |
23750 | #include <math.h> | |
23751 | #endif | |
23752 | ||
23753 | int (*ptr)() = (int (*)())trunc; | |
23754 | ||
1409cd0b FXC |
23755 | int |
23756 | main () | |
23757 | { | |
1409cd0b FXC |
23758 | return 0; |
23759 | } | |
db9f46a9 | 23760 | |
1409cd0b | 23761 | _ACEOF |
5213506e | 23762 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23763 | gcc_cv_math_func_trunc=yes |
1409cd0b | 23764 | else |
db9f46a9 | 23765 | gcc_cv_math_func_trunc=no |
1409cd0b | 23766 | fi |
5213506e RW |
23767 | rm -f core conftest.err conftest.$ac_objext \ |
23768 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23769 | fi |
db9f46a9 TG |
23770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23771 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23772 | if test $gcc_cv_math_func_trunc = yes; then | |
f1cdfa01 | 23773 | |
f38a14ca TG |
23774 | cat >>confdefs.h <<_ACEOF |
23775 | #define HAVE_TRUNC 1 | |
23776 | _ACEOF | |
1409cd0b | 23777 | |
db9f46a9 | 23778 | fi |
1409cd0b | 23779 | |
1409cd0b | 23780 | |
db9f46a9 TG |
23781 | |
23782 | ||
23783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23784 | $as_echo_n "checking for truncl... " >&6; } | |
22e05272 | 23785 | if ${gcc_cv_math_func_truncl+:} false; then : |
5213506e | 23786 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23787 | else |
db9f46a9 | 23788 | if test x$gcc_no_link = xyes; then |
22e05272 | 23789 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23790 | fi |
5213506e | 23791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23792 | /* end confdefs.h. */ |
23793 | ||
db9f46a9 TG |
23794 | #ifdef HAVE_COMPLEX_H |
23795 | #include <complex.h> | |
23796 | #endif | |
23797 | #ifdef HAVE_MATH_H | |
23798 | #include <math.h> | |
1409cd0b | 23799 | #endif |
db9f46a9 TG |
23800 | |
23801 | int (*ptr)() = (int (*)())truncl; | |
23802 | ||
1409cd0b FXC |
23803 | int |
23804 | main () | |
23805 | { | |
1409cd0b FXC |
23806 | return 0; |
23807 | } | |
db9f46a9 | 23808 | |
1409cd0b | 23809 | _ACEOF |
5213506e | 23810 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23811 | gcc_cv_math_func_truncl=yes |
1409cd0b | 23812 | else |
db9f46a9 | 23813 | gcc_cv_math_func_truncl=no |
1409cd0b | 23814 | fi |
5213506e RW |
23815 | rm -f core conftest.err conftest.$ac_objext \ |
23816 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23817 | fi |
db9f46a9 TG |
23818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23819 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23820 | if test $gcc_cv_math_func_truncl = yes; then | |
f1cdfa01 | 23821 | |
f38a14ca TG |
23822 | cat >>confdefs.h <<_ACEOF |
23823 | #define HAVE_TRUNCL 1 | |
23824 | _ACEOF | |
db9f46a9 TG |
23825 | |
23826 | fi | |
1409cd0b | 23827 | |
1409cd0b | 23828 | |
1409cd0b | 23829 | |
db9f46a9 TG |
23830 | |
23831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23832 | $as_echo_n "checking for erff... " >&6; } | |
22e05272 | 23833 | if ${gcc_cv_math_func_erff+:} false; then : |
5213506e | 23834 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23835 | else |
db9f46a9 | 23836 | if test x$gcc_no_link = xyes; then |
22e05272 | 23837 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23838 | fi |
5213506e | 23839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23840 | /* end confdefs.h. */ |
23841 | ||
db9f46a9 TG |
23842 | #ifdef HAVE_COMPLEX_H |
23843 | #include <complex.h> | |
1409cd0b | 23844 | #endif |
db9f46a9 TG |
23845 | #ifdef HAVE_MATH_H |
23846 | #include <math.h> | |
23847 | #endif | |
23848 | ||
23849 | int (*ptr)() = (int (*)())erff; | |
23850 | ||
1409cd0b FXC |
23851 | int |
23852 | main () | |
23853 | { | |
1409cd0b FXC |
23854 | return 0; |
23855 | } | |
db9f46a9 | 23856 | |
1409cd0b | 23857 | _ACEOF |
5213506e | 23858 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23859 | gcc_cv_math_func_erff=yes |
1409cd0b | 23860 | else |
db9f46a9 | 23861 | gcc_cv_math_func_erff=no |
1409cd0b | 23862 | fi |
5213506e RW |
23863 | rm -f core conftest.err conftest.$ac_objext \ |
23864 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23865 | fi |
db9f46a9 TG |
23866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23867 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23868 | if test $gcc_cv_math_func_erff = yes; then | |
f1cdfa01 | 23869 | |
f38a14ca TG |
23870 | cat >>confdefs.h <<_ACEOF |
23871 | #define HAVE_ERFF 1 | |
23872 | _ACEOF | |
db9f46a9 TG |
23873 | |
23874 | fi | |
23875 | ||
1409cd0b | 23876 | |
1409cd0b | 23877 | |
1409cd0b | 23878 | |
db9f46a9 TG |
23879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23880 | $as_echo_n "checking for erf... " >&6; } | |
22e05272 | 23881 | if ${gcc_cv_math_func_erf+:} false; then : |
5213506e | 23882 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23883 | else |
db9f46a9 | 23884 | if test x$gcc_no_link = xyes; then |
22e05272 | 23885 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23886 | fi |
5213506e | 23887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23888 | /* end confdefs.h. */ |
23889 | ||
db9f46a9 TG |
23890 | #ifdef HAVE_COMPLEX_H |
23891 | #include <complex.h> | |
23892 | #endif | |
23893 | #ifdef HAVE_MATH_H | |
23894 | #include <math.h> | |
1409cd0b | 23895 | #endif |
db9f46a9 TG |
23896 | |
23897 | int (*ptr)() = (int (*)())erf; | |
23898 | ||
1409cd0b FXC |
23899 | int |
23900 | main () | |
23901 | { | |
1409cd0b FXC |
23902 | return 0; |
23903 | } | |
db9f46a9 | 23904 | |
1409cd0b | 23905 | _ACEOF |
5213506e | 23906 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23907 | gcc_cv_math_func_erf=yes |
1409cd0b | 23908 | else |
db9f46a9 | 23909 | gcc_cv_math_func_erf=no |
1409cd0b | 23910 | fi |
5213506e RW |
23911 | rm -f core conftest.err conftest.$ac_objext \ |
23912 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23913 | fi |
db9f46a9 TG |
23914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23915 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23916 | if test $gcc_cv_math_func_erf = yes; then | |
f1cdfa01 | 23917 | |
f38a14ca TG |
23918 | cat >>confdefs.h <<_ACEOF |
23919 | #define HAVE_ERF 1 | |
23920 | _ACEOF | |
db9f46a9 TG |
23921 | |
23922 | fi | |
1409cd0b | 23923 | |
1409cd0b | 23924 | |
1409cd0b | 23925 | |
db9f46a9 | 23926 | |
db9f46a9 TG |
23927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23928 | $as_echo_n "checking for erfcf... " >&6; } | |
22e05272 | 23929 | if ${gcc_cv_math_func_erfcf+:} false; then : |
5213506e | 23930 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23931 | else |
db9f46a9 | 23932 | if test x$gcc_no_link = xyes; then |
22e05272 | 23933 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23934 | fi |
5213506e | 23935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23936 | /* end confdefs.h. */ |
23937 | ||
db9f46a9 TG |
23938 | #ifdef HAVE_COMPLEX_H |
23939 | #include <complex.h> | |
23940 | #endif | |
23941 | #ifdef HAVE_MATH_H | |
23942 | #include <math.h> | |
1409cd0b | 23943 | #endif |
db9f46a9 TG |
23944 | |
23945 | int (*ptr)() = (int (*)())erfcf; | |
23946 | ||
1409cd0b FXC |
23947 | int |
23948 | main () | |
23949 | { | |
1409cd0b FXC |
23950 | return 0; |
23951 | } | |
db9f46a9 | 23952 | |
1409cd0b | 23953 | _ACEOF |
5213506e | 23954 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 23955 | gcc_cv_math_func_erfcf=yes |
1409cd0b | 23956 | else |
db9f46a9 | 23957 | gcc_cv_math_func_erfcf=no |
1409cd0b | 23958 | fi |
5213506e RW |
23959 | rm -f core conftest.err conftest.$ac_objext \ |
23960 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 23961 | fi |
db9f46a9 TG |
23962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
23963 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
23964 | if test $gcc_cv_math_func_erfcf = yes; then | |
f1cdfa01 | 23965 | |
f38a14ca TG |
23966 | cat >>confdefs.h <<_ACEOF |
23967 | #define HAVE_ERFCF 1 | |
23968 | _ACEOF | |
db9f46a9 TG |
23969 | |
23970 | fi | |
1409cd0b | 23971 | |
1409cd0b | 23972 | |
1409cd0b | 23973 | |
db9f46a9 TG |
23974 | |
23975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
23976 | $as_echo_n "checking for erfc... " >&6; } | |
22e05272 | 23977 | if ${gcc_cv_math_func_erfc+:} false; then : |
5213506e | 23978 | $as_echo_n "(cached) " >&6 |
1409cd0b | 23979 | else |
db9f46a9 | 23980 | if test x$gcc_no_link = xyes; then |
22e05272 | 23981 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 23982 | fi |
5213506e | 23983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
23984 | /* end confdefs.h. */ |
23985 | ||
db9f46a9 TG |
23986 | #ifdef HAVE_COMPLEX_H |
23987 | #include <complex.h> | |
1409cd0b | 23988 | #endif |
db9f46a9 TG |
23989 | #ifdef HAVE_MATH_H |
23990 | #include <math.h> | |
23991 | #endif | |
23992 | ||
23993 | int (*ptr)() = (int (*)())erfc; | |
23994 | ||
69a2d125 EB |
23995 | int |
23996 | main () | |
23997 | { | |
69a2d125 EB |
23998 | return 0; |
23999 | } | |
db9f46a9 | 24000 | |
69a2d125 | 24001 | _ACEOF |
5213506e | 24002 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24003 | gcc_cv_math_func_erfc=yes |
69a2d125 | 24004 | else |
db9f46a9 | 24005 | gcc_cv_math_func_erfc=no |
69a2d125 | 24006 | fi |
5213506e RW |
24007 | rm -f core conftest.err conftest.$ac_objext \ |
24008 | conftest$ac_exeext conftest.$ac_ext | |
69a2d125 | 24009 | fi |
db9f46a9 TG |
24010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
24011 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
24012 | if test $gcc_cv_math_func_erfc = yes; then | |
f1cdfa01 | 24013 | |
f38a14ca TG |
24014 | cat >>confdefs.h <<_ACEOF |
24015 | #define HAVE_ERFC 1 | |
24016 | _ACEOF | |
db9f46a9 TG |
24017 | |
24018 | fi | |
24019 | ||
69a2d125 | 24020 | |
69a2d125 | 24021 | |
69a2d125 | 24022 | |
db9f46a9 TG |
24023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
24024 | $as_echo_n "checking for erfcl... " >&6; } | |
22e05272 | 24025 | if ${gcc_cv_math_func_erfcl+:} false; then : |
5213506e | 24026 | $as_echo_n "(cached) " >&6 |
e8525382 | 24027 | else |
db9f46a9 | 24028 | if test x$gcc_no_link = xyes; then |
22e05272 | 24029 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24030 | fi |
5213506e | 24031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24032 | /* end confdefs.h. */ |
24033 | ||
db9f46a9 TG |
24034 | #ifdef HAVE_COMPLEX_H |
24035 | #include <complex.h> | |
24036 | #endif | |
24037 | #ifdef HAVE_MATH_H | |
24038 | #include <math.h> | |
e8525382 | 24039 | #endif |
db9f46a9 TG |
24040 | |
24041 | int (*ptr)() = (int (*)())erfcl; | |
24042 | ||
e8525382 SK |
24043 | int |
24044 | main () | |
24045 | { | |
e8525382 SK |
24046 | return 0; |
24047 | } | |
db9f46a9 | 24048 | |
e8525382 | 24049 | _ACEOF |
5213506e | 24050 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24051 | gcc_cv_math_func_erfcl=yes |
e8525382 | 24052 | else |
db9f46a9 | 24053 | gcc_cv_math_func_erfcl=no |
e8525382 | 24054 | fi |
5213506e RW |
24055 | rm -f core conftest.err conftest.$ac_objext \ |
24056 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24057 | fi |
db9f46a9 TG |
24058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
24059 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
24060 | if test $gcc_cv_math_func_erfcl = yes; then | |
f1cdfa01 | 24061 | |
f38a14ca TG |
24062 | cat >>confdefs.h <<_ACEOF |
24063 | #define HAVE_ERFCL 1 | |
24064 | _ACEOF | |
db9f46a9 TG |
24065 | |
24066 | fi | |
e8525382 | 24067 | |
e8525382 | 24068 | |
e8525382 | 24069 | |
db9f46a9 TG |
24070 | |
24071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
24072 | $as_echo_n "checking for j0f... " >&6; } | |
22e05272 | 24073 | if ${gcc_cv_math_func_j0f+:} false; then : |
5213506e | 24074 | $as_echo_n "(cached) " >&6 |
e8525382 | 24075 | else |
db9f46a9 | 24076 | if test x$gcc_no_link = xyes; then |
22e05272 | 24077 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24078 | fi |
5213506e | 24079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24080 | /* end confdefs.h. */ |
24081 | ||
db9f46a9 TG |
24082 | #ifdef HAVE_COMPLEX_H |
24083 | #include <complex.h> | |
e8525382 | 24084 | #endif |
db9f46a9 TG |
24085 | #ifdef HAVE_MATH_H |
24086 | #include <math.h> | |
24087 | #endif | |
24088 | ||
24089 | int (*ptr)() = (int (*)())j0f; | |
24090 | ||
e8525382 SK |
24091 | int |
24092 | main () | |
24093 | { | |
e8525382 SK |
24094 | return 0; |
24095 | } | |
db9f46a9 | 24096 | |
e8525382 | 24097 | _ACEOF |
5213506e | 24098 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24099 | gcc_cv_math_func_j0f=yes |
e8525382 | 24100 | else |
db9f46a9 | 24101 | gcc_cv_math_func_j0f=no |
1409cd0b | 24102 | fi |
5213506e RW |
24103 | rm -f core conftest.err conftest.$ac_objext \ |
24104 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24105 | fi |
db9f46a9 TG |
24106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
24107 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
24108 | if test $gcc_cv_math_func_j0f = yes; then | |
f1cdfa01 | 24109 | |
f38a14ca TG |
24110 | cat >>confdefs.h <<_ACEOF |
24111 | #define HAVE_J0F 1 | |
24112 | _ACEOF | |
1409cd0b | 24113 | |
db9f46a9 | 24114 | fi |
1409cd0b | 24115 | |
1409cd0b | 24116 | |
db9f46a9 TG |
24117 | |
24118 | ||
24119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
24120 | $as_echo_n "checking for j0... " >&6; } | |
22e05272 | 24121 | if ${gcc_cv_math_func_j0+:} false; then : |
5213506e | 24122 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24123 | else |
db9f46a9 | 24124 | if test x$gcc_no_link = xyes; then |
22e05272 | 24125 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24126 | fi |
5213506e | 24127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24128 | /* end confdefs.h. */ |
24129 | ||
db9f46a9 TG |
24130 | #ifdef HAVE_COMPLEX_H |
24131 | #include <complex.h> | |
24132 | #endif | |
24133 | #ifdef HAVE_MATH_H | |
24134 | #include <math.h> | |
1409cd0b | 24135 | #endif |
db9f46a9 TG |
24136 | |
24137 | int (*ptr)() = (int (*)())j0; | |
24138 | ||
1409cd0b FXC |
24139 | int |
24140 | main () | |
24141 | { | |
1409cd0b FXC |
24142 | return 0; |
24143 | } | |
db9f46a9 | 24144 | |
1409cd0b | 24145 | _ACEOF |
5213506e | 24146 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24147 | gcc_cv_math_func_j0=yes |
1409cd0b | 24148 | else |
db9f46a9 | 24149 | gcc_cv_math_func_j0=no |
1409cd0b | 24150 | fi |
5213506e RW |
24151 | rm -f core conftest.err conftest.$ac_objext \ |
24152 | conftest$ac_exeext conftest.$ac_ext | |
1409cd0b | 24153 | fi |
db9f46a9 TG |
24154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
24155 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
24156 | if test $gcc_cv_math_func_j0 = yes; then | |
f1cdfa01 | 24157 | |
f38a14ca TG |
24158 | cat >>confdefs.h <<_ACEOF |
24159 | #define HAVE_J0 1 | |
24160 | _ACEOF | |
db9f46a9 TG |
24161 | |
24162 | fi | |
1409cd0b | 24163 | |
1409cd0b | 24164 | |
1409cd0b | 24165 | |
db9f46a9 | 24166 | |
db9f46a9 TG |
24167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
24168 | $as_echo_n "checking for j1f... " >&6; } | |
22e05272 | 24169 | if ${gcc_cv_math_func_j1f+:} false; then : |
5213506e | 24170 | $as_echo_n "(cached) " >&6 |
1409cd0b | 24171 | else |
db9f46a9 | 24172 | if test x$gcc_no_link = xyes; then |
22e05272 | 24173 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1409cd0b | 24174 | fi |
5213506e | 24175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1409cd0b FXC |
24176 | /* end confdefs.h. */ |
24177 | ||
db9f46a9 TG |
24178 | #ifdef HAVE_COMPLEX_H |
24179 | #include <complex.h> | |
24180 | #endif | |
24181 | #ifdef HAVE_MATH_H | |
24182 | #include <math.h> | |
1409cd0b | 24183 | #endif |
db9f46a9 TG |
24184 | |
24185 | int (*ptr)() = (int (*)())j1f; | |
24186 | ||
1409cd0b FXC |
24187 | int |
24188 | main () | |
24189 | { | |
1409cd0b FXC |
24190 | return 0; |
24191 | } | |
db9f46a9 | 24192 | |
1409cd0b | 24193 | _ACEOF |
5213506e | 24194 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24195 | gcc_cv_math_func_j1f=yes |
1409cd0b | 24196 | else |
db9f46a9 | 24197 | gcc_cv_math_func_j1f=no |
e8525382 | 24198 | fi |
5213506e RW |
24199 | rm -f core conftest.err conftest.$ac_objext \ |
24200 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24201 | fi |
db9f46a9 TG |
24202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
24203 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
24204 | if test $gcc_cv_math_func_j1f = yes; then | |
f1cdfa01 | 24205 | |
f38a14ca TG |
24206 | cat >>confdefs.h <<_ACEOF |
24207 | #define HAVE_J1F 1 | |
24208 | _ACEOF | |
db9f46a9 TG |
24209 | |
24210 | fi | |
e8525382 | 24211 | |
e8525382 | 24212 | |
e8525382 | 24213 | |
db9f46a9 TG |
24214 | |
24215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
24216 | $as_echo_n "checking for j1... " >&6; } | |
22e05272 | 24217 | if ${gcc_cv_math_func_j1+:} false; then : |
5213506e | 24218 | $as_echo_n "(cached) " >&6 |
e8525382 | 24219 | else |
db9f46a9 | 24220 | if test x$gcc_no_link = xyes; then |
22e05272 | 24221 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24222 | fi |
5213506e | 24223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24224 | /* end confdefs.h. */ |
24225 | ||
db9f46a9 TG |
24226 | #ifdef HAVE_COMPLEX_H |
24227 | #include <complex.h> | |
e8525382 | 24228 | #endif |
db9f46a9 TG |
24229 | #ifdef HAVE_MATH_H |
24230 | #include <math.h> | |
24231 | #endif | |
24232 | ||
24233 | int (*ptr)() = (int (*)())j1; | |
24234 | ||
e8525382 SK |
24235 | int |
24236 | main () | |
24237 | { | |
e8525382 SK |
24238 | return 0; |
24239 | } | |
db9f46a9 | 24240 | |
e8525382 | 24241 | _ACEOF |
5213506e | 24242 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24243 | gcc_cv_math_func_j1=yes |
e8525382 | 24244 | else |
db9f46a9 | 24245 | gcc_cv_math_func_j1=no |
e8525382 | 24246 | fi |
5213506e RW |
24247 | rm -f core conftest.err conftest.$ac_objext \ |
24248 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24249 | fi |
db9f46a9 TG |
24250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
24251 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
24252 | if test $gcc_cv_math_func_j1 = yes; then | |
f1cdfa01 | 24253 | |
f38a14ca TG |
24254 | cat >>confdefs.h <<_ACEOF |
24255 | #define HAVE_J1 1 | |
24256 | _ACEOF | |
e8525382 | 24257 | |
db9f46a9 | 24258 | fi |
e8525382 | 24259 | |
e8525382 | 24260 | |
db9f46a9 TG |
24261 | |
24262 | ||
db9f46a9 TG |
24263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
24264 | $as_echo_n "checking for jnf... " >&6; } | |
22e05272 | 24265 | if ${gcc_cv_math_func_jnf+:} false; then : |
5213506e | 24266 | $as_echo_n "(cached) " >&6 |
e8525382 | 24267 | else |
db9f46a9 | 24268 | if test x$gcc_no_link = xyes; then |
22e05272 | 24269 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24270 | fi |
5213506e | 24271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24272 | /* end confdefs.h. */ |
24273 | ||
db9f46a9 TG |
24274 | #ifdef HAVE_COMPLEX_H |
24275 | #include <complex.h> | |
e8525382 | 24276 | #endif |
db9f46a9 TG |
24277 | #ifdef HAVE_MATH_H |
24278 | #include <math.h> | |
24279 | #endif | |
24280 | ||
24281 | int (*ptr)() = (int (*)())jnf; | |
24282 | ||
e8525382 SK |
24283 | int |
24284 | main () | |
24285 | { | |
e8525382 SK |
24286 | return 0; |
24287 | } | |
db9f46a9 | 24288 | |
e8525382 | 24289 | _ACEOF |
5213506e | 24290 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24291 | gcc_cv_math_func_jnf=yes |
e8525382 | 24292 | else |
db9f46a9 | 24293 | gcc_cv_math_func_jnf=no |
e8525382 | 24294 | fi |
5213506e RW |
24295 | rm -f core conftest.err conftest.$ac_objext \ |
24296 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24297 | fi |
db9f46a9 TG |
24298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
24299 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
24300 | if test $gcc_cv_math_func_jnf = yes; then | |
f1cdfa01 | 24301 | |
f38a14ca TG |
24302 | cat >>confdefs.h <<_ACEOF |
24303 | #define HAVE_JNF 1 | |
24304 | _ACEOF | |
db9f46a9 TG |
24305 | |
24306 | fi | |
24307 | ||
e8525382 | 24308 | |
e8525382 | 24309 | |
e8525382 | 24310 | |
db9f46a9 TG |
24311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
24312 | $as_echo_n "checking for jn... " >&6; } | |
22e05272 | 24313 | if ${gcc_cv_math_func_jn+:} false; then : |
5213506e | 24314 | $as_echo_n "(cached) " >&6 |
e8525382 | 24315 | else |
db9f46a9 | 24316 | if test x$gcc_no_link = xyes; then |
22e05272 | 24317 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24318 | fi |
5213506e | 24319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24320 | /* end confdefs.h. */ |
24321 | ||
db9f46a9 TG |
24322 | #ifdef HAVE_COMPLEX_H |
24323 | #include <complex.h> | |
24324 | #endif | |
24325 | #ifdef HAVE_MATH_H | |
24326 | #include <math.h> | |
e8525382 | 24327 | #endif |
db9f46a9 TG |
24328 | |
24329 | int (*ptr)() = (int (*)())jn; | |
24330 | ||
e8525382 SK |
24331 | int |
24332 | main () | |
24333 | { | |
e8525382 SK |
24334 | return 0; |
24335 | } | |
db9f46a9 | 24336 | |
e8525382 | 24337 | _ACEOF |
5213506e | 24338 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24339 | gcc_cv_math_func_jn=yes |
e8525382 | 24340 | else |
db9f46a9 | 24341 | gcc_cv_math_func_jn=no |
e8525382 | 24342 | fi |
5213506e RW |
24343 | rm -f core conftest.err conftest.$ac_objext \ |
24344 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24345 | fi |
db9f46a9 TG |
24346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24347 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24348 | if test $gcc_cv_math_func_jn = yes; then | |
f1cdfa01 | 24349 | |
f38a14ca TG |
24350 | cat >>confdefs.h <<_ACEOF |
24351 | #define HAVE_JN 1 | |
24352 | _ACEOF | |
db9f46a9 TG |
24353 | |
24354 | fi | |
e8525382 | 24355 | |
e8525382 | 24356 | |
e8525382 | 24357 | |
db9f46a9 TG |
24358 | |
24359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24360 | $as_echo_n "checking for jnl... " >&6; } | |
22e05272 | 24361 | if ${gcc_cv_math_func_jnl+:} false; then : |
5213506e | 24362 | $as_echo_n "(cached) " >&6 |
e8525382 | 24363 | else |
db9f46a9 | 24364 | if test x$gcc_no_link = xyes; then |
22e05272 | 24365 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24366 | fi |
5213506e | 24367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24368 | /* end confdefs.h. */ |
24369 | ||
db9f46a9 TG |
24370 | #ifdef HAVE_COMPLEX_H |
24371 | #include <complex.h> | |
e8525382 | 24372 | #endif |
db9f46a9 TG |
24373 | #ifdef HAVE_MATH_H |
24374 | #include <math.h> | |
24375 | #endif | |
24376 | ||
24377 | int (*ptr)() = (int (*)())jnl; | |
24378 | ||
e8525382 SK |
24379 | int |
24380 | main () | |
24381 | { | |
e8525382 SK |
24382 | return 0; |
24383 | } | |
db9f46a9 | 24384 | |
e8525382 | 24385 | _ACEOF |
5213506e | 24386 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24387 | gcc_cv_math_func_jnl=yes |
e8525382 | 24388 | else |
db9f46a9 | 24389 | gcc_cv_math_func_jnl=no |
e8525382 | 24390 | fi |
5213506e RW |
24391 | rm -f core conftest.err conftest.$ac_objext \ |
24392 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24393 | fi |
db9f46a9 TG |
24394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24395 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24396 | if test $gcc_cv_math_func_jnl = yes; then | |
f1cdfa01 | 24397 | |
f38a14ca TG |
24398 | cat >>confdefs.h <<_ACEOF |
24399 | #define HAVE_JNL 1 | |
24400 | _ACEOF | |
e8525382 | 24401 | |
db9f46a9 | 24402 | fi |
e8525382 | 24403 | |
e8525382 | 24404 | |
db9f46a9 TG |
24405 | |
24406 | ||
24407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24408 | $as_echo_n "checking for y0f... " >&6; } | |
22e05272 | 24409 | if ${gcc_cv_math_func_y0f+:} false; then : |
5213506e | 24410 | $as_echo_n "(cached) " >&6 |
e8525382 | 24411 | else |
db9f46a9 | 24412 | if test x$gcc_no_link = xyes; then |
22e05272 | 24413 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24414 | fi |
5213506e | 24415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24416 | /* end confdefs.h. */ |
24417 | ||
db9f46a9 TG |
24418 | #ifdef HAVE_COMPLEX_H |
24419 | #include <complex.h> | |
24420 | #endif | |
24421 | #ifdef HAVE_MATH_H | |
24422 | #include <math.h> | |
e8525382 | 24423 | #endif |
db9f46a9 TG |
24424 | |
24425 | int (*ptr)() = (int (*)())y0f; | |
24426 | ||
e8525382 SK |
24427 | int |
24428 | main () | |
24429 | { | |
e8525382 SK |
24430 | return 0; |
24431 | } | |
db9f46a9 | 24432 | |
e8525382 | 24433 | _ACEOF |
5213506e | 24434 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24435 | gcc_cv_math_func_y0f=yes |
e8525382 | 24436 | else |
db9f46a9 | 24437 | gcc_cv_math_func_y0f=no |
e8525382 | 24438 | fi |
5213506e RW |
24439 | rm -f core conftest.err conftest.$ac_objext \ |
24440 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24441 | fi |
db9f46a9 TG |
24442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24443 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24444 | if test $gcc_cv_math_func_y0f = yes; then | |
f1cdfa01 | 24445 | |
f38a14ca TG |
24446 | cat >>confdefs.h <<_ACEOF |
24447 | #define HAVE_Y0F 1 | |
24448 | _ACEOF | |
db9f46a9 TG |
24449 | |
24450 | fi | |
e8525382 | 24451 | |
e8525382 | 24452 | |
e8525382 | 24453 | |
db9f46a9 TG |
24454 | |
24455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24456 | $as_echo_n "checking for y0... " >&6; } | |
22e05272 | 24457 | if ${gcc_cv_math_func_y0+:} false; then : |
5213506e | 24458 | $as_echo_n "(cached) " >&6 |
e8525382 | 24459 | else |
db9f46a9 | 24460 | if test x$gcc_no_link = xyes; then |
22e05272 | 24461 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24462 | fi |
5213506e | 24463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24464 | /* end confdefs.h. */ |
24465 | ||
db9f46a9 TG |
24466 | #ifdef HAVE_COMPLEX_H |
24467 | #include <complex.h> | |
e8525382 | 24468 | #endif |
db9f46a9 TG |
24469 | #ifdef HAVE_MATH_H |
24470 | #include <math.h> | |
24471 | #endif | |
24472 | ||
24473 | int (*ptr)() = (int (*)())y0; | |
24474 | ||
e8525382 SK |
24475 | int |
24476 | main () | |
24477 | { | |
e8525382 SK |
24478 | return 0; |
24479 | } | |
db9f46a9 | 24480 | |
e8525382 | 24481 | _ACEOF |
5213506e | 24482 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24483 | gcc_cv_math_func_y0=yes |
e8525382 | 24484 | else |
db9f46a9 | 24485 | gcc_cv_math_func_y0=no |
e8525382 | 24486 | fi |
5213506e RW |
24487 | rm -f core conftest.err conftest.$ac_objext \ |
24488 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24489 | fi |
db9f46a9 TG |
24490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24491 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24492 | if test $gcc_cv_math_func_y0 = yes; then | |
f1cdfa01 | 24493 | |
f38a14ca TG |
24494 | cat >>confdefs.h <<_ACEOF |
24495 | #define HAVE_Y0 1 | |
24496 | _ACEOF | |
db9f46a9 TG |
24497 | |
24498 | fi | |
24499 | ||
e8525382 | 24500 | |
e8525382 | 24501 | |
e8525382 | 24502 | |
db9f46a9 TG |
24503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24504 | $as_echo_n "checking for y1f... " >&6; } | |
22e05272 | 24505 | if ${gcc_cv_math_func_y1f+:} false; then : |
5213506e | 24506 | $as_echo_n "(cached) " >&6 |
e8525382 | 24507 | else |
db9f46a9 | 24508 | if test x$gcc_no_link = xyes; then |
22e05272 | 24509 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24510 | fi |
5213506e | 24511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24512 | /* end confdefs.h. */ |
24513 | ||
db9f46a9 TG |
24514 | #ifdef HAVE_COMPLEX_H |
24515 | #include <complex.h> | |
e8525382 | 24516 | #endif |
db9f46a9 TG |
24517 | #ifdef HAVE_MATH_H |
24518 | #include <math.h> | |
24519 | #endif | |
24520 | ||
24521 | int (*ptr)() = (int (*)())y1f; | |
24522 | ||
e8525382 SK |
24523 | int |
24524 | main () | |
24525 | { | |
e8525382 SK |
24526 | return 0; |
24527 | } | |
db9f46a9 | 24528 | |
e8525382 | 24529 | _ACEOF |
5213506e | 24530 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24531 | gcc_cv_math_func_y1f=yes |
e8525382 | 24532 | else |
db9f46a9 | 24533 | gcc_cv_math_func_y1f=no |
e8525382 | 24534 | fi |
5213506e RW |
24535 | rm -f core conftest.err conftest.$ac_objext \ |
24536 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24537 | fi |
db9f46a9 TG |
24538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24539 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24540 | if test $gcc_cv_math_func_y1f = yes; then | |
f1cdfa01 | 24541 | |
f38a14ca TG |
24542 | cat >>confdefs.h <<_ACEOF |
24543 | #define HAVE_Y1F 1 | |
24544 | _ACEOF | |
e8525382 | 24545 | |
db9f46a9 | 24546 | fi |
e8525382 | 24547 | |
e8525382 | 24548 | |
db9f46a9 TG |
24549 | |
24550 | ||
24551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24552 | $as_echo_n "checking for y1... " >&6; } | |
22e05272 | 24553 | if ${gcc_cv_math_func_y1+:} false; then : |
5213506e | 24554 | $as_echo_n "(cached) " >&6 |
e8525382 | 24555 | else |
db9f46a9 | 24556 | if test x$gcc_no_link = xyes; then |
22e05272 | 24557 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24558 | fi |
5213506e | 24559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24560 | /* end confdefs.h. */ |
24561 | ||
db9f46a9 TG |
24562 | #ifdef HAVE_COMPLEX_H |
24563 | #include <complex.h> | |
24564 | #endif | |
24565 | #ifdef HAVE_MATH_H | |
24566 | #include <math.h> | |
e8525382 | 24567 | #endif |
db9f46a9 TG |
24568 | |
24569 | int (*ptr)() = (int (*)())y1; | |
24570 | ||
e8525382 SK |
24571 | int |
24572 | main () | |
24573 | { | |
e8525382 SK |
24574 | return 0; |
24575 | } | |
db9f46a9 | 24576 | |
e8525382 | 24577 | _ACEOF |
5213506e | 24578 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24579 | gcc_cv_math_func_y1=yes |
e8525382 | 24580 | else |
db9f46a9 | 24581 | gcc_cv_math_func_y1=no |
e8525382 | 24582 | fi |
5213506e RW |
24583 | rm -f core conftest.err conftest.$ac_objext \ |
24584 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24585 | fi |
db9f46a9 TG |
24586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24587 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24588 | if test $gcc_cv_math_func_y1 = yes; then | |
f1cdfa01 | 24589 | |
f38a14ca TG |
24590 | cat >>confdefs.h <<_ACEOF |
24591 | #define HAVE_Y1 1 | |
24592 | _ACEOF | |
db9f46a9 TG |
24593 | |
24594 | fi | |
e8525382 | 24595 | |
e8525382 | 24596 | |
e8525382 | 24597 | |
db9f46a9 | 24598 | |
db9f46a9 TG |
24599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24600 | $as_echo_n "checking for ynf... " >&6; } | |
22e05272 | 24601 | if ${gcc_cv_math_func_ynf+:} false; then : |
5213506e | 24602 | $as_echo_n "(cached) " >&6 |
db9f46a9 TG |
24603 | else |
24604 | if test x$gcc_no_link = xyes; then | |
22e05272 | 24605 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24606 | fi |
5213506e | 24607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24608 | /* end confdefs.h. */ |
24609 | ||
db9f46a9 TG |
24610 | #ifdef HAVE_COMPLEX_H |
24611 | #include <complex.h> | |
24612 | #endif | |
24613 | #ifdef HAVE_MATH_H | |
24614 | #include <math.h> | |
e8525382 | 24615 | #endif |
db9f46a9 TG |
24616 | |
24617 | int (*ptr)() = (int (*)())ynf; | |
24618 | ||
e8525382 SK |
24619 | int |
24620 | main () | |
24621 | { | |
e8525382 SK |
24622 | return 0; |
24623 | } | |
db9f46a9 | 24624 | |
e8525382 | 24625 | _ACEOF |
5213506e | 24626 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24627 | gcc_cv_math_func_ynf=yes |
e8525382 | 24628 | else |
db9f46a9 | 24629 | gcc_cv_math_func_ynf=no |
e8525382 | 24630 | fi |
5213506e RW |
24631 | rm -f core conftest.err conftest.$ac_objext \ |
24632 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24633 | fi |
db9f46a9 TG |
24634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24635 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24636 | if test $gcc_cv_math_func_ynf = yes; then | |
f1cdfa01 | 24637 | |
f38a14ca TG |
24638 | cat >>confdefs.h <<_ACEOF |
24639 | #define HAVE_YNF 1 | |
24640 | _ACEOF | |
db9f46a9 TG |
24641 | |
24642 | fi | |
e8525382 | 24643 | |
e8525382 | 24644 | |
e8525382 | 24645 | |
db9f46a9 TG |
24646 | |
24647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24648 | $as_echo_n "checking for yn... " >&6; } | |
22e05272 | 24649 | if ${gcc_cv_math_func_yn+:} false; then : |
5213506e | 24650 | $as_echo_n "(cached) " >&6 |
e8525382 | 24651 | else |
db9f46a9 | 24652 | if test x$gcc_no_link = xyes; then |
22e05272 | 24653 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24654 | fi |
5213506e | 24655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24656 | /* end confdefs.h. */ |
24657 | ||
db9f46a9 TG |
24658 | #ifdef HAVE_COMPLEX_H |
24659 | #include <complex.h> | |
e8525382 | 24660 | #endif |
db9f46a9 TG |
24661 | #ifdef HAVE_MATH_H |
24662 | #include <math.h> | |
24663 | #endif | |
24664 | ||
24665 | int (*ptr)() = (int (*)())yn; | |
24666 | ||
e8525382 SK |
24667 | int |
24668 | main () | |
24669 | { | |
e8525382 SK |
24670 | return 0; |
24671 | } | |
db9f46a9 | 24672 | |
e8525382 | 24673 | _ACEOF |
5213506e | 24674 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24675 | gcc_cv_math_func_yn=yes |
e8525382 | 24676 | else |
db9f46a9 | 24677 | gcc_cv_math_func_yn=no |
e8525382 | 24678 | fi |
5213506e RW |
24679 | rm -f core conftest.err conftest.$ac_objext \ |
24680 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24681 | fi |
db9f46a9 TG |
24682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24683 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24684 | if test $gcc_cv_math_func_yn = yes; then | |
f1cdfa01 | 24685 | |
f38a14ca TG |
24686 | cat >>confdefs.h <<_ACEOF |
24687 | #define HAVE_YN 1 | |
24688 | _ACEOF | |
db9f46a9 TG |
24689 | |
24690 | fi | |
24691 | ||
e8525382 | 24692 | |
e8525382 | 24693 | |
e8525382 | 24694 | |
db9f46a9 TG |
24695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24696 | $as_echo_n "checking for ynl... " >&6; } | |
22e05272 | 24697 | if ${gcc_cv_math_func_ynl+:} false; then : |
5213506e | 24698 | $as_echo_n "(cached) " >&6 |
e8525382 | 24699 | else |
db9f46a9 | 24700 | if test x$gcc_no_link = xyes; then |
22e05272 | 24701 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 24702 | fi |
5213506e | 24703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8525382 SK |
24704 | /* end confdefs.h. */ |
24705 | ||
db9f46a9 TG |
24706 | #ifdef HAVE_COMPLEX_H |
24707 | #include <complex.h> | |
24708 | #endif | |
24709 | #ifdef HAVE_MATH_H | |
24710 | #include <math.h> | |
e8525382 | 24711 | #endif |
db9f46a9 TG |
24712 | |
24713 | int (*ptr)() = (int (*)())ynl; | |
24714 | ||
e8525382 SK |
24715 | int |
24716 | main () | |
24717 | { | |
e8525382 SK |
24718 | return 0; |
24719 | } | |
db9f46a9 | 24720 | |
e8525382 | 24721 | _ACEOF |
5213506e | 24722 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24723 | gcc_cv_math_func_ynl=yes |
e8525382 | 24724 | else |
db9f46a9 | 24725 | gcc_cv_math_func_ynl=no |
e8525382 | 24726 | fi |
5213506e RW |
24727 | rm -f core conftest.err conftest.$ac_objext \ |
24728 | conftest$ac_exeext conftest.$ac_ext | |
e8525382 | 24729 | fi |
db9f46a9 TG |
24730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24731 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24732 | if test $gcc_cv_math_func_ynl = yes; then | |
f1cdfa01 | 24733 | |
f38a14ca TG |
24734 | cat >>confdefs.h <<_ACEOF |
24735 | #define HAVE_YNL 1 | |
24736 | _ACEOF | |
db9f46a9 TG |
24737 | |
24738 | fi | |
e8525382 | 24739 | |
e8525382 | 24740 | |
e8525382 | 24741 | |
db9f46a9 TG |
24742 | |
24743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24744 | $as_echo_n "checking for tgamma... " >&6; } | |
22e05272 | 24745 | if ${gcc_cv_math_func_tgamma+:} false; then : |
5213506e | 24746 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24747 | else |
db9f46a9 | 24748 | if test x$gcc_no_link = xyes; then |
22e05272 | 24749 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24750 | fi |
5213506e | 24751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24752 | /* end confdefs.h. */ |
24753 | ||
db9f46a9 TG |
24754 | #ifdef HAVE_COMPLEX_H |
24755 | #include <complex.h> | |
fb0a0e15 | 24756 | #endif |
db9f46a9 TG |
24757 | #ifdef HAVE_MATH_H |
24758 | #include <math.h> | |
24759 | #endif | |
24760 | ||
24761 | int (*ptr)() = (int (*)())tgamma; | |
24762 | ||
fb0a0e15 FXC |
24763 | int |
24764 | main () | |
24765 | { | |
fb0a0e15 FXC |
24766 | return 0; |
24767 | } | |
db9f46a9 | 24768 | |
fb0a0e15 | 24769 | _ACEOF |
5213506e | 24770 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24771 | gcc_cv_math_func_tgamma=yes |
fb0a0e15 | 24772 | else |
db9f46a9 | 24773 | gcc_cv_math_func_tgamma=no |
fb0a0e15 | 24774 | fi |
5213506e RW |
24775 | rm -f core conftest.err conftest.$ac_objext \ |
24776 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24777 | fi |
db9f46a9 TG |
24778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24779 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24780 | if test $gcc_cv_math_func_tgamma = yes; then | |
f1cdfa01 | 24781 | |
f38a14ca TG |
24782 | cat >>confdefs.h <<_ACEOF |
24783 | #define HAVE_TGAMMA 1 | |
24784 | _ACEOF | |
fb0a0e15 | 24785 | |
db9f46a9 | 24786 | fi |
fb0a0e15 | 24787 | |
fb0a0e15 | 24788 | |
db9f46a9 TG |
24789 | |
24790 | ||
24791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24792 | $as_echo_n "checking for tgammaf... " >&6; } | |
22e05272 | 24793 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
5213506e | 24794 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24795 | else |
db9f46a9 | 24796 | if test x$gcc_no_link = xyes; then |
22e05272 | 24797 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24798 | fi |
5213506e | 24799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24800 | /* end confdefs.h. */ |
24801 | ||
db9f46a9 TG |
24802 | #ifdef HAVE_COMPLEX_H |
24803 | #include <complex.h> | |
24804 | #endif | |
24805 | #ifdef HAVE_MATH_H | |
24806 | #include <math.h> | |
fb0a0e15 | 24807 | #endif |
db9f46a9 TG |
24808 | |
24809 | int (*ptr)() = (int (*)())tgammaf; | |
24810 | ||
fb0a0e15 FXC |
24811 | int |
24812 | main () | |
24813 | { | |
fb0a0e15 FXC |
24814 | return 0; |
24815 | } | |
db9f46a9 | 24816 | |
fb0a0e15 | 24817 | _ACEOF |
5213506e | 24818 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24819 | gcc_cv_math_func_tgammaf=yes |
fb0a0e15 | 24820 | else |
db9f46a9 | 24821 | gcc_cv_math_func_tgammaf=no |
fb0a0e15 | 24822 | fi |
5213506e RW |
24823 | rm -f core conftest.err conftest.$ac_objext \ |
24824 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24825 | fi |
db9f46a9 TG |
24826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24827 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24828 | if test $gcc_cv_math_func_tgammaf = yes; then | |
f1cdfa01 | 24829 | |
f38a14ca TG |
24830 | cat >>confdefs.h <<_ACEOF |
24831 | #define HAVE_TGAMMAF 1 | |
24832 | _ACEOF | |
db9f46a9 TG |
24833 | |
24834 | fi | |
fb0a0e15 | 24835 | |
fb0a0e15 | 24836 | |
fb0a0e15 | 24837 | |
db9f46a9 | 24838 | |
db9f46a9 TG |
24839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24840 | $as_echo_n "checking for lgamma... " >&6; } | |
22e05272 | 24841 | if ${gcc_cv_math_func_lgamma+:} false; then : |
5213506e | 24842 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24843 | else |
db9f46a9 | 24844 | if test x$gcc_no_link = xyes; then |
22e05272 | 24845 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24846 | fi |
5213506e | 24847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24848 | /* end confdefs.h. */ |
24849 | ||
db9f46a9 TG |
24850 | #ifdef HAVE_COMPLEX_H |
24851 | #include <complex.h> | |
24852 | #endif | |
24853 | #ifdef HAVE_MATH_H | |
24854 | #include <math.h> | |
fb0a0e15 | 24855 | #endif |
db9f46a9 TG |
24856 | |
24857 | int (*ptr)() = (int (*)())lgamma; | |
24858 | ||
fb0a0e15 FXC |
24859 | int |
24860 | main () | |
24861 | { | |
fb0a0e15 FXC |
24862 | return 0; |
24863 | } | |
db9f46a9 | 24864 | |
fb0a0e15 | 24865 | _ACEOF |
5213506e | 24866 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24867 | gcc_cv_math_func_lgamma=yes |
fb0a0e15 | 24868 | else |
db9f46a9 | 24869 | gcc_cv_math_func_lgamma=no |
fb0a0e15 | 24870 | fi |
5213506e RW |
24871 | rm -f core conftest.err conftest.$ac_objext \ |
24872 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24873 | fi |
db9f46a9 TG |
24874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24875 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24876 | if test $gcc_cv_math_func_lgamma = yes; then | |
f1cdfa01 | 24877 | |
f38a14ca TG |
24878 | cat >>confdefs.h <<_ACEOF |
24879 | #define HAVE_LGAMMA 1 | |
24880 | _ACEOF | |
db9f46a9 TG |
24881 | |
24882 | fi | |
fb0a0e15 | 24883 | |
fb0a0e15 | 24884 | |
fb0a0e15 | 24885 | |
db9f46a9 TG |
24886 | |
24887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24888 | $as_echo_n "checking for lgammaf... " >&6; } | |
22e05272 | 24889 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
5213506e | 24890 | $as_echo_n "(cached) " >&6 |
fb0a0e15 | 24891 | else |
db9f46a9 | 24892 | if test x$gcc_no_link = xyes; then |
22e05272 | 24893 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
fb0a0e15 | 24894 | fi |
5213506e | 24895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fb0a0e15 FXC |
24896 | /* end confdefs.h. */ |
24897 | ||
db9f46a9 TG |
24898 | #ifdef HAVE_COMPLEX_H |
24899 | #include <complex.h> | |
fb0a0e15 | 24900 | #endif |
db9f46a9 TG |
24901 | #ifdef HAVE_MATH_H |
24902 | #include <math.h> | |
24903 | #endif | |
24904 | ||
24905 | int (*ptr)() = (int (*)())lgammaf; | |
24906 | ||
fb0a0e15 FXC |
24907 | int |
24908 | main () | |
24909 | { | |
fb0a0e15 FXC |
24910 | return 0; |
24911 | } | |
db9f46a9 | 24912 | |
fb0a0e15 | 24913 | _ACEOF |
5213506e | 24914 | if ac_fn_c_try_link "$LINENO"; then : |
db9f46a9 | 24915 | gcc_cv_math_func_lgammaf=yes |
fb0a0e15 | 24916 | else |
db9f46a9 | 24917 | gcc_cv_math_func_lgammaf=no |
fb0a0e15 | 24918 | fi |
5213506e RW |
24919 | rm -f core conftest.err conftest.$ac_objext \ |
24920 | conftest$ac_exeext conftest.$ac_ext | |
fb0a0e15 | 24921 | fi |
db9f46a9 TG |
24922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24923 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24924 | if test $gcc_cv_math_func_lgammaf = yes; then | |
f1cdfa01 | 24925 | |
f38a14ca TG |
24926 | cat >>confdefs.h <<_ACEOF |
24927 | #define HAVE_LGAMMAF 1 | |
24928 | _ACEOF | |
fb0a0e15 | 24929 | |
db9f46a9 | 24930 | fi |
fb0a0e15 | 24931 | |
fb0a0e15 | 24932 | |
db1cf15c | 24933 | # Check for GFORTRAN_C99_1.1 funcs |
db9f46a9 TG |
24934 | |
24935 | ||
24936 | ||
24937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24938 | $as_echo_n "checking for cacos... " >&6; } | |
22e05272 | 24939 | if ${gcc_cv_math_func_cacos+:} false; then : |
db1cf15c IS |
24940 | $as_echo_n "(cached) " >&6 |
24941 | else | |
db9f46a9 | 24942 | if test x$gcc_no_link = xyes; then |
22e05272 | 24943 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24944 | fi |
24945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24946 | /* end confdefs.h. */ | |
24947 | ||
db9f46a9 TG |
24948 | #ifdef HAVE_COMPLEX_H |
24949 | #include <complex.h> | |
db1cf15c | 24950 | #endif |
db9f46a9 TG |
24951 | #ifdef HAVE_MATH_H |
24952 | #include <math.h> | |
24953 | #endif | |
24954 | ||
24955 | int (*ptr)() = (int (*)())cacos; | |
24956 | ||
db1cf15c IS |
24957 | int |
24958 | main () | |
24959 | { | |
db1cf15c IS |
24960 | return 0; |
24961 | } | |
db9f46a9 | 24962 | |
db1cf15c IS |
24963 | _ACEOF |
24964 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 24965 | gcc_cv_math_func_cacos=yes |
db1cf15c | 24966 | else |
db9f46a9 | 24967 | gcc_cv_math_func_cacos=no |
db1cf15c IS |
24968 | fi |
24969 | rm -f core conftest.err conftest.$ac_objext \ | |
24970 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 24971 | fi |
db9f46a9 TG |
24972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
24973 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
24974 | if test $gcc_cv_math_func_cacos = yes; then | |
f1cdfa01 | 24975 | |
f38a14ca TG |
24976 | cat >>confdefs.h <<_ACEOF |
24977 | #define HAVE_CACOS 1 | |
24978 | _ACEOF | |
db1cf15c | 24979 | |
db9f46a9 | 24980 | fi |
db1cf15c | 24981 | |
db1cf15c | 24982 | |
db9f46a9 TG |
24983 | |
24984 | ||
24985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
24986 | $as_echo_n "checking for cacosf... " >&6; } | |
22e05272 | 24987 | if ${gcc_cv_math_func_cacosf+:} false; then : |
db1cf15c IS |
24988 | $as_echo_n "(cached) " >&6 |
24989 | else | |
db9f46a9 | 24990 | if test x$gcc_no_link = xyes; then |
22e05272 | 24991 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
24992 | fi |
24993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24994 | /* end confdefs.h. */ | |
24995 | ||
db9f46a9 TG |
24996 | #ifdef HAVE_COMPLEX_H |
24997 | #include <complex.h> | |
24998 | #endif | |
24999 | #ifdef HAVE_MATH_H | |
25000 | #include <math.h> | |
db1cf15c | 25001 | #endif |
db9f46a9 TG |
25002 | |
25003 | int (*ptr)() = (int (*)())cacosf; | |
25004 | ||
db1cf15c IS |
25005 | int |
25006 | main () | |
25007 | { | |
db1cf15c IS |
25008 | return 0; |
25009 | } | |
db9f46a9 | 25010 | |
db1cf15c IS |
25011 | _ACEOF |
25012 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25013 | gcc_cv_math_func_cacosf=yes |
db1cf15c | 25014 | else |
db9f46a9 | 25015 | gcc_cv_math_func_cacosf=no |
db1cf15c IS |
25016 | fi |
25017 | rm -f core conftest.err conftest.$ac_objext \ | |
25018 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25019 | fi |
db9f46a9 TG |
25020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
25021 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
25022 | if test $gcc_cv_math_func_cacosf = yes; then | |
f1cdfa01 | 25023 | |
f38a14ca TG |
25024 | cat >>confdefs.h <<_ACEOF |
25025 | #define HAVE_CACOSF 1 | |
25026 | _ACEOF | |
db9f46a9 TG |
25027 | |
25028 | fi | |
db1cf15c | 25029 | |
db1cf15c | 25030 | |
db1cf15c | 25031 | |
db9f46a9 TG |
25032 | |
25033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
25034 | $as_echo_n "checking for cacosh... " >&6; } | |
22e05272 | 25035 | if ${gcc_cv_math_func_cacosh+:} false; then : |
db1cf15c IS |
25036 | $as_echo_n "(cached) " >&6 |
25037 | else | |
db9f46a9 | 25038 | if test x$gcc_no_link = xyes; then |
22e05272 | 25039 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25040 | fi |
25041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25042 | /* end confdefs.h. */ | |
25043 | ||
db9f46a9 TG |
25044 | #ifdef HAVE_COMPLEX_H |
25045 | #include <complex.h> | |
db1cf15c | 25046 | #endif |
db9f46a9 TG |
25047 | #ifdef HAVE_MATH_H |
25048 | #include <math.h> | |
25049 | #endif | |
25050 | ||
25051 | int (*ptr)() = (int (*)())cacosh; | |
25052 | ||
db1cf15c IS |
25053 | int |
25054 | main () | |
25055 | { | |
db1cf15c IS |
25056 | return 0; |
25057 | } | |
db9f46a9 | 25058 | |
db1cf15c IS |
25059 | _ACEOF |
25060 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25061 | gcc_cv_math_func_cacosh=yes |
db1cf15c | 25062 | else |
db9f46a9 | 25063 | gcc_cv_math_func_cacosh=no |
db1cf15c IS |
25064 | fi |
25065 | rm -f core conftest.err conftest.$ac_objext \ | |
25066 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25067 | fi |
db9f46a9 TG |
25068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
25069 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
25070 | if test $gcc_cv_math_func_cacosh = yes; then | |
f1cdfa01 | 25071 | |
f38a14ca TG |
25072 | cat >>confdefs.h <<_ACEOF |
25073 | #define HAVE_CACOSH 1 | |
25074 | _ACEOF | |
db9f46a9 TG |
25075 | |
25076 | fi | |
25077 | ||
db1cf15c | 25078 | |
db1cf15c | 25079 | |
db1cf15c | 25080 | |
db9f46a9 TG |
25081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
25082 | $as_echo_n "checking for cacoshf... " >&6; } | |
22e05272 | 25083 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
db1cf15c IS |
25084 | $as_echo_n "(cached) " >&6 |
25085 | else | |
db9f46a9 | 25086 | if test x$gcc_no_link = xyes; then |
22e05272 | 25087 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25088 | fi |
25089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25090 | /* end confdefs.h. */ | |
25091 | ||
db9f46a9 TG |
25092 | #ifdef HAVE_COMPLEX_H |
25093 | #include <complex.h> | |
25094 | #endif | |
25095 | #ifdef HAVE_MATH_H | |
25096 | #include <math.h> | |
db1cf15c | 25097 | #endif |
db9f46a9 TG |
25098 | |
25099 | int (*ptr)() = (int (*)())cacoshf; | |
25100 | ||
db1cf15c IS |
25101 | int |
25102 | main () | |
25103 | { | |
db1cf15c IS |
25104 | return 0; |
25105 | } | |
db9f46a9 | 25106 | |
db1cf15c IS |
25107 | _ACEOF |
25108 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25109 | gcc_cv_math_func_cacoshf=yes |
db1cf15c | 25110 | else |
db9f46a9 | 25111 | gcc_cv_math_func_cacoshf=no |
db1cf15c IS |
25112 | fi |
25113 | rm -f core conftest.err conftest.$ac_objext \ | |
25114 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25115 | fi |
db9f46a9 TG |
25116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
25117 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
25118 | if test $gcc_cv_math_func_cacoshf = yes; then | |
f1cdfa01 | 25119 | |
f38a14ca TG |
25120 | cat >>confdefs.h <<_ACEOF |
25121 | #define HAVE_CACOSHF 1 | |
25122 | _ACEOF | |
db9f46a9 TG |
25123 | |
25124 | fi | |
db1cf15c | 25125 | |
db1cf15c | 25126 | |
db1cf15c | 25127 | |
db9f46a9 TG |
25128 | |
25129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
25130 | $as_echo_n "checking for cacoshl... " >&6; } | |
22e05272 | 25131 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
db1cf15c IS |
25132 | $as_echo_n "(cached) " >&6 |
25133 | else | |
db9f46a9 | 25134 | if test x$gcc_no_link = xyes; then |
22e05272 | 25135 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25136 | fi |
25137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25138 | /* end confdefs.h. */ | |
25139 | ||
db9f46a9 TG |
25140 | #ifdef HAVE_COMPLEX_H |
25141 | #include <complex.h> | |
db1cf15c | 25142 | #endif |
db9f46a9 TG |
25143 | #ifdef HAVE_MATH_H |
25144 | #include <math.h> | |
25145 | #endif | |
25146 | ||
25147 | int (*ptr)() = (int (*)())cacoshl; | |
25148 | ||
db1cf15c IS |
25149 | int |
25150 | main () | |
25151 | { | |
db1cf15c IS |
25152 | return 0; |
25153 | } | |
db9f46a9 | 25154 | |
db1cf15c IS |
25155 | _ACEOF |
25156 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25157 | gcc_cv_math_func_cacoshl=yes |
db1cf15c | 25158 | else |
db9f46a9 | 25159 | gcc_cv_math_func_cacoshl=no |
db1cf15c IS |
25160 | fi |
25161 | rm -f core conftest.err conftest.$ac_objext \ | |
25162 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25163 | fi |
db9f46a9 TG |
25164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
25165 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
25166 | if test $gcc_cv_math_func_cacoshl = yes; then | |
f1cdfa01 | 25167 | |
f38a14ca TG |
25168 | cat >>confdefs.h <<_ACEOF |
25169 | #define HAVE_CACOSHL 1 | |
25170 | _ACEOF | |
db1cf15c | 25171 | |
db9f46a9 | 25172 | fi |
db1cf15c | 25173 | |
db1cf15c | 25174 | |
db9f46a9 TG |
25175 | |
25176 | ||
25177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
25178 | $as_echo_n "checking for cacosl... " >&6; } | |
22e05272 | 25179 | if ${gcc_cv_math_func_cacosl+:} false; then : |
db1cf15c IS |
25180 | $as_echo_n "(cached) " >&6 |
25181 | else | |
db9f46a9 | 25182 | if test x$gcc_no_link = xyes; then |
22e05272 | 25183 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25184 | fi |
25185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25186 | /* end confdefs.h. */ | |
25187 | ||
db9f46a9 TG |
25188 | #ifdef HAVE_COMPLEX_H |
25189 | #include <complex.h> | |
25190 | #endif | |
25191 | #ifdef HAVE_MATH_H | |
25192 | #include <math.h> | |
db1cf15c | 25193 | #endif |
db9f46a9 TG |
25194 | |
25195 | int (*ptr)() = (int (*)())cacosl; | |
25196 | ||
db1cf15c IS |
25197 | int |
25198 | main () | |
25199 | { | |
db1cf15c IS |
25200 | return 0; |
25201 | } | |
db9f46a9 | 25202 | |
db1cf15c IS |
25203 | _ACEOF |
25204 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25205 | gcc_cv_math_func_cacosl=yes |
db1cf15c | 25206 | else |
db9f46a9 | 25207 | gcc_cv_math_func_cacosl=no |
db1cf15c IS |
25208 | fi |
25209 | rm -f core conftest.err conftest.$ac_objext \ | |
25210 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25211 | fi |
db9f46a9 TG |
25212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
25213 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
25214 | if test $gcc_cv_math_func_cacosl = yes; then | |
f1cdfa01 | 25215 | |
f38a14ca TG |
25216 | cat >>confdefs.h <<_ACEOF |
25217 | #define HAVE_CACOSL 1 | |
25218 | _ACEOF | |
db9f46a9 TG |
25219 | |
25220 | fi | |
db1cf15c | 25221 | |
db1cf15c | 25222 | |
db1cf15c | 25223 | |
db9f46a9 TG |
25224 | |
25225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
25226 | $as_echo_n "checking for casin... " >&6; } | |
22e05272 | 25227 | if ${gcc_cv_math_func_casin+:} false; then : |
db1cf15c IS |
25228 | $as_echo_n "(cached) " >&6 |
25229 | else | |
db9f46a9 | 25230 | if test x$gcc_no_link = xyes; then |
22e05272 | 25231 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25232 | fi |
25233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25234 | /* end confdefs.h. */ | |
25235 | ||
db9f46a9 TG |
25236 | #ifdef HAVE_COMPLEX_H |
25237 | #include <complex.h> | |
db1cf15c | 25238 | #endif |
db9f46a9 TG |
25239 | #ifdef HAVE_MATH_H |
25240 | #include <math.h> | |
25241 | #endif | |
25242 | ||
25243 | int (*ptr)() = (int (*)())casin; | |
25244 | ||
db1cf15c IS |
25245 | int |
25246 | main () | |
25247 | { | |
db1cf15c IS |
25248 | return 0; |
25249 | } | |
db9f46a9 | 25250 | |
db1cf15c IS |
25251 | _ACEOF |
25252 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25253 | gcc_cv_math_func_casin=yes |
db1cf15c | 25254 | else |
db9f46a9 | 25255 | gcc_cv_math_func_casin=no |
db1cf15c IS |
25256 | fi |
25257 | rm -f core conftest.err conftest.$ac_objext \ | |
25258 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25259 | fi |
db9f46a9 TG |
25260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
25261 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
25262 | if test $gcc_cv_math_func_casin = yes; then | |
f1cdfa01 | 25263 | |
f38a14ca TG |
25264 | cat >>confdefs.h <<_ACEOF |
25265 | #define HAVE_CASIN 1 | |
25266 | _ACEOF | |
db9f46a9 TG |
25267 | |
25268 | fi | |
25269 | ||
db1cf15c | 25270 | |
db1cf15c | 25271 | |
db1cf15c | 25272 | |
db9f46a9 TG |
25273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
25274 | $as_echo_n "checking for casinf... " >&6; } | |
22e05272 | 25275 | if ${gcc_cv_math_func_casinf+:} false; then : |
db1cf15c IS |
25276 | $as_echo_n "(cached) " >&6 |
25277 | else | |
db9f46a9 | 25278 | if test x$gcc_no_link = xyes; then |
22e05272 | 25279 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25280 | fi |
25281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25282 | /* end confdefs.h. */ | |
25283 | ||
db9f46a9 TG |
25284 | #ifdef HAVE_COMPLEX_H |
25285 | #include <complex.h> | |
25286 | #endif | |
25287 | #ifdef HAVE_MATH_H | |
25288 | #include <math.h> | |
db1cf15c | 25289 | #endif |
db9f46a9 TG |
25290 | |
25291 | int (*ptr)() = (int (*)())casinf; | |
25292 | ||
db1cf15c IS |
25293 | int |
25294 | main () | |
25295 | { | |
db1cf15c IS |
25296 | return 0; |
25297 | } | |
db9f46a9 | 25298 | |
db1cf15c IS |
25299 | _ACEOF |
25300 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25301 | gcc_cv_math_func_casinf=yes |
db1cf15c | 25302 | else |
db9f46a9 | 25303 | gcc_cv_math_func_casinf=no |
db1cf15c IS |
25304 | fi |
25305 | rm -f core conftest.err conftest.$ac_objext \ | |
25306 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25307 | fi |
db9f46a9 TG |
25308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
25309 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
25310 | if test $gcc_cv_math_func_casinf = yes; then | |
f1cdfa01 | 25311 | |
f38a14ca TG |
25312 | cat >>confdefs.h <<_ACEOF |
25313 | #define HAVE_CASINF 1 | |
25314 | _ACEOF | |
db9f46a9 TG |
25315 | |
25316 | fi | |
db1cf15c | 25317 | |
db1cf15c | 25318 | |
db1cf15c | 25319 | |
db9f46a9 TG |
25320 | |
25321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25322 | $as_echo_n "checking for casinh... " >&6; } | |
22e05272 | 25323 | if ${gcc_cv_math_func_casinh+:} false; then : |
db1cf15c IS |
25324 | $as_echo_n "(cached) " >&6 |
25325 | else | |
db9f46a9 | 25326 | if test x$gcc_no_link = xyes; then |
22e05272 | 25327 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25328 | fi |
25329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25330 | /* end confdefs.h. */ | |
25331 | ||
db9f46a9 TG |
25332 | #ifdef HAVE_COMPLEX_H |
25333 | #include <complex.h> | |
db1cf15c | 25334 | #endif |
db9f46a9 TG |
25335 | #ifdef HAVE_MATH_H |
25336 | #include <math.h> | |
25337 | #endif | |
25338 | ||
25339 | int (*ptr)() = (int (*)())casinh; | |
25340 | ||
db1cf15c IS |
25341 | int |
25342 | main () | |
25343 | { | |
db1cf15c IS |
25344 | return 0; |
25345 | } | |
db9f46a9 | 25346 | |
db1cf15c IS |
25347 | _ACEOF |
25348 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25349 | gcc_cv_math_func_casinh=yes |
db1cf15c | 25350 | else |
db9f46a9 | 25351 | gcc_cv_math_func_casinh=no |
db1cf15c IS |
25352 | fi |
25353 | rm -f core conftest.err conftest.$ac_objext \ | |
25354 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25355 | fi |
db9f46a9 TG |
25356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25357 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25358 | if test $gcc_cv_math_func_casinh = yes; then | |
f1cdfa01 | 25359 | |
f38a14ca TG |
25360 | cat >>confdefs.h <<_ACEOF |
25361 | #define HAVE_CASINH 1 | |
25362 | _ACEOF | |
db1cf15c | 25363 | |
db9f46a9 | 25364 | fi |
db1cf15c | 25365 | |
db1cf15c | 25366 | |
db9f46a9 TG |
25367 | |
25368 | ||
25369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25370 | $as_echo_n "checking for casinhf... " >&6; } | |
22e05272 | 25371 | if ${gcc_cv_math_func_casinhf+:} false; then : |
db1cf15c IS |
25372 | $as_echo_n "(cached) " >&6 |
25373 | else | |
db9f46a9 | 25374 | if test x$gcc_no_link = xyes; then |
22e05272 | 25375 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25376 | fi |
25377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25378 | /* end confdefs.h. */ | |
25379 | ||
db9f46a9 TG |
25380 | #ifdef HAVE_COMPLEX_H |
25381 | #include <complex.h> | |
25382 | #endif | |
25383 | #ifdef HAVE_MATH_H | |
25384 | #include <math.h> | |
db1cf15c | 25385 | #endif |
db9f46a9 TG |
25386 | |
25387 | int (*ptr)() = (int (*)())casinhf; | |
25388 | ||
db1cf15c IS |
25389 | int |
25390 | main () | |
25391 | { | |
db1cf15c IS |
25392 | return 0; |
25393 | } | |
db9f46a9 | 25394 | |
db1cf15c IS |
25395 | _ACEOF |
25396 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25397 | gcc_cv_math_func_casinhf=yes |
db1cf15c | 25398 | else |
db9f46a9 | 25399 | gcc_cv_math_func_casinhf=no |
db1cf15c IS |
25400 | fi |
25401 | rm -f core conftest.err conftest.$ac_objext \ | |
25402 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25403 | fi |
db9f46a9 TG |
25404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25405 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25406 | if test $gcc_cv_math_func_casinhf = yes; then | |
f1cdfa01 | 25407 | |
f38a14ca TG |
25408 | cat >>confdefs.h <<_ACEOF |
25409 | #define HAVE_CASINHF 1 | |
25410 | _ACEOF | |
db9f46a9 TG |
25411 | |
25412 | fi | |
db1cf15c | 25413 | |
db1cf15c | 25414 | |
db1cf15c | 25415 | |
db9f46a9 TG |
25416 | |
25417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25418 | $as_echo_n "checking for casinhl... " >&6; } | |
22e05272 | 25419 | if ${gcc_cv_math_func_casinhl+:} false; then : |
db1cf15c IS |
25420 | $as_echo_n "(cached) " >&6 |
25421 | else | |
db9f46a9 | 25422 | if test x$gcc_no_link = xyes; then |
22e05272 | 25423 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25424 | fi |
25425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25426 | /* end confdefs.h. */ | |
25427 | ||
db9f46a9 TG |
25428 | #ifdef HAVE_COMPLEX_H |
25429 | #include <complex.h> | |
db1cf15c | 25430 | #endif |
db9f46a9 TG |
25431 | #ifdef HAVE_MATH_H |
25432 | #include <math.h> | |
25433 | #endif | |
25434 | ||
25435 | int (*ptr)() = (int (*)())casinhl; | |
25436 | ||
db1cf15c IS |
25437 | int |
25438 | main () | |
25439 | { | |
db1cf15c IS |
25440 | return 0; |
25441 | } | |
db9f46a9 | 25442 | |
db1cf15c IS |
25443 | _ACEOF |
25444 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25445 | gcc_cv_math_func_casinhl=yes |
db1cf15c | 25446 | else |
db9f46a9 | 25447 | gcc_cv_math_func_casinhl=no |
db1cf15c IS |
25448 | fi |
25449 | rm -f core conftest.err conftest.$ac_objext \ | |
25450 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25451 | fi |
db9f46a9 TG |
25452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25453 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25454 | if test $gcc_cv_math_func_casinhl = yes; then | |
f1cdfa01 | 25455 | |
f38a14ca TG |
25456 | cat >>confdefs.h <<_ACEOF |
25457 | #define HAVE_CASINHL 1 | |
25458 | _ACEOF | |
db9f46a9 TG |
25459 | |
25460 | fi | |
25461 | ||
db1cf15c | 25462 | |
db1cf15c | 25463 | |
db1cf15c | 25464 | |
db9f46a9 TG |
25465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25466 | $as_echo_n "checking for casinl... " >&6; } | |
22e05272 | 25467 | if ${gcc_cv_math_func_casinl+:} false; then : |
db1cf15c IS |
25468 | $as_echo_n "(cached) " >&6 |
25469 | else | |
db9f46a9 | 25470 | if test x$gcc_no_link = xyes; then |
22e05272 | 25471 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25472 | fi |
25473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25474 | /* end confdefs.h. */ | |
25475 | ||
db9f46a9 TG |
25476 | #ifdef HAVE_COMPLEX_H |
25477 | #include <complex.h> | |
25478 | #endif | |
25479 | #ifdef HAVE_MATH_H | |
25480 | #include <math.h> | |
db1cf15c | 25481 | #endif |
db9f46a9 TG |
25482 | |
25483 | int (*ptr)() = (int (*)())casinl; | |
25484 | ||
db1cf15c IS |
25485 | int |
25486 | main () | |
25487 | { | |
db1cf15c IS |
25488 | return 0; |
25489 | } | |
db9f46a9 | 25490 | |
db1cf15c IS |
25491 | _ACEOF |
25492 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25493 | gcc_cv_math_func_casinl=yes |
db1cf15c | 25494 | else |
db9f46a9 | 25495 | gcc_cv_math_func_casinl=no |
db1cf15c IS |
25496 | fi |
25497 | rm -f core conftest.err conftest.$ac_objext \ | |
25498 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25499 | fi |
db9f46a9 TG |
25500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25501 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25502 | if test $gcc_cv_math_func_casinl = yes; then | |
f1cdfa01 | 25503 | |
f38a14ca TG |
25504 | cat >>confdefs.h <<_ACEOF |
25505 | #define HAVE_CASINL 1 | |
25506 | _ACEOF | |
db9f46a9 TG |
25507 | |
25508 | fi | |
db1cf15c | 25509 | |
db1cf15c | 25510 | |
db1cf15c | 25511 | |
db9f46a9 TG |
25512 | |
25513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25514 | $as_echo_n "checking for catan... " >&6; } | |
22e05272 | 25515 | if ${gcc_cv_math_func_catan+:} false; then : |
db1cf15c IS |
25516 | $as_echo_n "(cached) " >&6 |
25517 | else | |
db9f46a9 | 25518 | if test x$gcc_no_link = xyes; then |
22e05272 | 25519 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25520 | fi |
25521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25522 | /* end confdefs.h. */ | |
25523 | ||
db9f46a9 TG |
25524 | #ifdef HAVE_COMPLEX_H |
25525 | #include <complex.h> | |
db1cf15c | 25526 | #endif |
db9f46a9 TG |
25527 | #ifdef HAVE_MATH_H |
25528 | #include <math.h> | |
25529 | #endif | |
25530 | ||
25531 | int (*ptr)() = (int (*)())catan; | |
25532 | ||
db1cf15c IS |
25533 | int |
25534 | main () | |
25535 | { | |
db1cf15c IS |
25536 | return 0; |
25537 | } | |
db9f46a9 | 25538 | |
db1cf15c IS |
25539 | _ACEOF |
25540 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25541 | gcc_cv_math_func_catan=yes |
db1cf15c | 25542 | else |
db9f46a9 | 25543 | gcc_cv_math_func_catan=no |
db1cf15c IS |
25544 | fi |
25545 | rm -f core conftest.err conftest.$ac_objext \ | |
25546 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25547 | fi |
db9f46a9 TG |
25548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25549 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25550 | if test $gcc_cv_math_func_catan = yes; then | |
f1cdfa01 | 25551 | |
f38a14ca TG |
25552 | cat >>confdefs.h <<_ACEOF |
25553 | #define HAVE_CATAN 1 | |
25554 | _ACEOF | |
db1cf15c | 25555 | |
db9f46a9 | 25556 | fi |
db1cf15c | 25557 | |
db1cf15c | 25558 | |
db9f46a9 TG |
25559 | |
25560 | ||
25561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25562 | $as_echo_n "checking for catanf... " >&6; } | |
22e05272 | 25563 | if ${gcc_cv_math_func_catanf+:} false; then : |
db1cf15c IS |
25564 | $as_echo_n "(cached) " >&6 |
25565 | else | |
db9f46a9 | 25566 | if test x$gcc_no_link = xyes; then |
22e05272 | 25567 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25568 | fi |
25569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25570 | /* end confdefs.h. */ | |
25571 | ||
db9f46a9 TG |
25572 | #ifdef HAVE_COMPLEX_H |
25573 | #include <complex.h> | |
25574 | #endif | |
25575 | #ifdef HAVE_MATH_H | |
25576 | #include <math.h> | |
db1cf15c | 25577 | #endif |
db9f46a9 TG |
25578 | |
25579 | int (*ptr)() = (int (*)())catanf; | |
25580 | ||
db1cf15c IS |
25581 | int |
25582 | main () | |
25583 | { | |
db1cf15c IS |
25584 | return 0; |
25585 | } | |
db9f46a9 | 25586 | |
db1cf15c IS |
25587 | _ACEOF |
25588 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25589 | gcc_cv_math_func_catanf=yes |
db1cf15c | 25590 | else |
db9f46a9 | 25591 | gcc_cv_math_func_catanf=no |
db1cf15c IS |
25592 | fi |
25593 | rm -f core conftest.err conftest.$ac_objext \ | |
25594 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25595 | fi |
db9f46a9 TG |
25596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25597 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25598 | if test $gcc_cv_math_func_catanf = yes; then | |
f1cdfa01 | 25599 | |
f38a14ca TG |
25600 | cat >>confdefs.h <<_ACEOF |
25601 | #define HAVE_CATANF 1 | |
25602 | _ACEOF | |
db9f46a9 TG |
25603 | |
25604 | fi | |
db1cf15c | 25605 | |
db1cf15c | 25606 | |
db1cf15c | 25607 | |
db9f46a9 TG |
25608 | |
25609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25610 | $as_echo_n "checking for catanh... " >&6; } | |
22e05272 | 25611 | if ${gcc_cv_math_func_catanh+:} false; then : |
db1cf15c IS |
25612 | $as_echo_n "(cached) " >&6 |
25613 | else | |
db9f46a9 | 25614 | if test x$gcc_no_link = xyes; then |
22e05272 | 25615 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25616 | fi |
25617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25618 | /* end confdefs.h. */ | |
25619 | ||
db9f46a9 TG |
25620 | #ifdef HAVE_COMPLEX_H |
25621 | #include <complex.h> | |
db1cf15c | 25622 | #endif |
db9f46a9 TG |
25623 | #ifdef HAVE_MATH_H |
25624 | #include <math.h> | |
25625 | #endif | |
25626 | ||
25627 | int (*ptr)() = (int (*)())catanh; | |
25628 | ||
db1cf15c IS |
25629 | int |
25630 | main () | |
25631 | { | |
db1cf15c IS |
25632 | return 0; |
25633 | } | |
db9f46a9 | 25634 | |
db1cf15c IS |
25635 | _ACEOF |
25636 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25637 | gcc_cv_math_func_catanh=yes |
db1cf15c | 25638 | else |
db9f46a9 | 25639 | gcc_cv_math_func_catanh=no |
db1cf15c IS |
25640 | fi |
25641 | rm -f core conftest.err conftest.$ac_objext \ | |
25642 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25643 | fi |
db9f46a9 TG |
25644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25645 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25646 | if test $gcc_cv_math_func_catanh = yes; then | |
f1cdfa01 | 25647 | |
f38a14ca TG |
25648 | cat >>confdefs.h <<_ACEOF |
25649 | #define HAVE_CATANH 1 | |
25650 | _ACEOF | |
db9f46a9 TG |
25651 | |
25652 | fi | |
25653 | ||
db1cf15c | 25654 | |
db1cf15c | 25655 | |
db1cf15c | 25656 | |
db9f46a9 TG |
25657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25658 | $as_echo_n "checking for catanhf... " >&6; } | |
22e05272 | 25659 | if ${gcc_cv_math_func_catanhf+:} false; then : |
db1cf15c IS |
25660 | $as_echo_n "(cached) " >&6 |
25661 | else | |
db9f46a9 | 25662 | if test x$gcc_no_link = xyes; then |
22e05272 | 25663 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25664 | fi |
25665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25666 | /* end confdefs.h. */ | |
25667 | ||
db9f46a9 TG |
25668 | #ifdef HAVE_COMPLEX_H |
25669 | #include <complex.h> | |
25670 | #endif | |
25671 | #ifdef HAVE_MATH_H | |
25672 | #include <math.h> | |
db1cf15c | 25673 | #endif |
db9f46a9 TG |
25674 | |
25675 | int (*ptr)() = (int (*)())catanhf; | |
25676 | ||
db1cf15c IS |
25677 | int |
25678 | main () | |
25679 | { | |
db1cf15c IS |
25680 | return 0; |
25681 | } | |
db9f46a9 | 25682 | |
db1cf15c IS |
25683 | _ACEOF |
25684 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25685 | gcc_cv_math_func_catanhf=yes |
db1cf15c | 25686 | else |
db9f46a9 | 25687 | gcc_cv_math_func_catanhf=no |
db1cf15c IS |
25688 | fi |
25689 | rm -f core conftest.err conftest.$ac_objext \ | |
25690 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25691 | fi |
db9f46a9 TG |
25692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25693 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25694 | if test $gcc_cv_math_func_catanhf = yes; then | |
f1cdfa01 | 25695 | |
f38a14ca TG |
25696 | cat >>confdefs.h <<_ACEOF |
25697 | #define HAVE_CATANHF 1 | |
25698 | _ACEOF | |
db9f46a9 TG |
25699 | |
25700 | fi | |
db1cf15c | 25701 | |
db1cf15c | 25702 | |
db1cf15c | 25703 | |
db9f46a9 TG |
25704 | |
25705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25706 | $as_echo_n "checking for catanhl... " >&6; } | |
22e05272 | 25707 | if ${gcc_cv_math_func_catanhl+:} false; then : |
db1cf15c IS |
25708 | $as_echo_n "(cached) " >&6 |
25709 | else | |
db9f46a9 | 25710 | if test x$gcc_no_link = xyes; then |
22e05272 | 25711 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25712 | fi |
25713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25714 | /* end confdefs.h. */ | |
25715 | ||
db9f46a9 TG |
25716 | #ifdef HAVE_COMPLEX_H |
25717 | #include <complex.h> | |
db1cf15c | 25718 | #endif |
db9f46a9 TG |
25719 | #ifdef HAVE_MATH_H |
25720 | #include <math.h> | |
25721 | #endif | |
25722 | ||
25723 | int (*ptr)() = (int (*)())catanhl; | |
25724 | ||
db1cf15c IS |
25725 | int |
25726 | main () | |
25727 | { | |
db1cf15c IS |
25728 | return 0; |
25729 | } | |
db9f46a9 | 25730 | |
db1cf15c IS |
25731 | _ACEOF |
25732 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25733 | gcc_cv_math_func_catanhl=yes |
db1cf15c | 25734 | else |
db9f46a9 | 25735 | gcc_cv_math_func_catanhl=no |
db1cf15c IS |
25736 | fi |
25737 | rm -f core conftest.err conftest.$ac_objext \ | |
25738 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25739 | fi |
db9f46a9 TG |
25740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25741 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25742 | if test $gcc_cv_math_func_catanhl = yes; then | |
f1cdfa01 | 25743 | |
f38a14ca TG |
25744 | cat >>confdefs.h <<_ACEOF |
25745 | #define HAVE_CATANHL 1 | |
25746 | _ACEOF | |
db1cf15c | 25747 | |
db9f46a9 | 25748 | fi |
db1cf15c | 25749 | |
db1cf15c | 25750 | |
db9f46a9 TG |
25751 | |
25752 | ||
25753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25754 | $as_echo_n "checking for catanl... " >&6; } | |
22e05272 | 25755 | if ${gcc_cv_math_func_catanl+:} false; then : |
db1cf15c IS |
25756 | $as_echo_n "(cached) " >&6 |
25757 | else | |
db9f46a9 | 25758 | if test x$gcc_no_link = xyes; then |
22e05272 | 25759 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db1cf15c IS |
25760 | fi |
25761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25762 | /* end confdefs.h. */ | |
25763 | ||
db9f46a9 TG |
25764 | #ifdef HAVE_COMPLEX_H |
25765 | #include <complex.h> | |
25766 | #endif | |
25767 | #ifdef HAVE_MATH_H | |
25768 | #include <math.h> | |
db1cf15c | 25769 | #endif |
db9f46a9 TG |
25770 | |
25771 | int (*ptr)() = (int (*)())catanl; | |
25772 | ||
db1cf15c IS |
25773 | int |
25774 | main () | |
25775 | { | |
db1cf15c IS |
25776 | return 0; |
25777 | } | |
db9f46a9 | 25778 | |
db1cf15c IS |
25779 | _ACEOF |
25780 | if ac_fn_c_try_link "$LINENO"; then : | |
db9f46a9 | 25781 | gcc_cv_math_func_catanl=yes |
db1cf15c | 25782 | else |
db9f46a9 | 25783 | gcc_cv_math_func_catanl=no |
db1cf15c IS |
25784 | fi |
25785 | rm -f core conftest.err conftest.$ac_objext \ | |
25786 | conftest$ac_exeext conftest.$ac_ext | |
db1cf15c | 25787 | fi |
db9f46a9 TG |
25788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25789 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25790 | if test $gcc_cv_math_func_catanl = yes; then | |
f1cdfa01 | 25791 | |
f38a14ca TG |
25792 | cat >>confdefs.h <<_ACEOF |
25793 | #define HAVE_CATANL 1 | |
25794 | _ACEOF | |
db1cf15c | 25795 | |
db9f46a9 | 25796 | fi |
db1cf15c IS |
25797 | |
25798 | ||
118ea208 | 25799 | # On AIX, clog is present in libm as __clog |
5213506e RW |
25800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
25801 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
22e05272 | 25802 | if ${ac_cv_lib_m___clog+:} false; then : |
5213506e | 25803 | $as_echo_n "(cached) " >&6 |
e097b4f1 DE |
25804 | else |
25805 | ac_check_lib_save_LIBS=$LIBS | |
25806 | LIBS="-lm $LIBS" | |
25807 | if test x$gcc_no_link = xyes; then | |
22e05272 | 25808 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e097b4f1 | 25809 | fi |
5213506e | 25810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e097b4f1 DE |
25811 | /* end confdefs.h. */ |
25812 | ||
5213506e RW |
25813 | /* Override any GCC internal prototype to avoid an error. |
25814 | Use char because int might match the return type of a GCC | |
25815 | builtin and then its argument prototype would still apply. */ | |
e097b4f1 DE |
25816 | #ifdef __cplusplus |
25817 | extern "C" | |
25818 | #endif | |
e097b4f1 DE |
25819 | char __clog (); |
25820 | int | |
25821 | main () | |
25822 | { | |
5213506e | 25823 | return __clog (); |
e097b4f1 DE |
25824 | ; |
25825 | return 0; | |
25826 | } | |
25827 | _ACEOF | |
5213506e | 25828 | if ac_fn_c_try_link "$LINENO"; then : |
e097b4f1 DE |
25829 | ac_cv_lib_m___clog=yes |
25830 | else | |
5213506e | 25831 | ac_cv_lib_m___clog=no |
e097b4f1 | 25832 | fi |
5213506e RW |
25833 | rm -f core conftest.err conftest.$ac_objext \ |
25834 | conftest$ac_exeext conftest.$ac_ext | |
e097b4f1 DE |
25835 | LIBS=$ac_check_lib_save_LIBS |
25836 | fi | |
5213506e RW |
25837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
25838 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
22e05272 | 25839 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
e097b4f1 | 25840 | |
5213506e | 25841 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
e097b4f1 DE |
25842 | |
25843 | fi | |
25844 | ||
25845 | ||
1868599f JJ |
25846 | |
25847 | ||
25848 | if test $gcc_cv_math_func_copysign = no; then | |
25849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 | |
25850 | $as_echo_n "checking for inline __builtin_copysign... " >&6; } | |
25851 | if ${gcc_cv_math_inline_builtin_copysign+:} false; then : | |
25852 | $as_echo_n "(cached) " >&6 | |
25853 | else | |
25854 | if test x$gcc_no_link = xyes; then | |
25855 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25856 | fi | |
25857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25858 | /* end confdefs.h. */ | |
25859 | ||
25860 | double | |
25861 | copysign_fallback (double x, double y) | |
25862 | { | |
25863 | return __builtin_copysign (x, y); | |
25864 | } | |
25865 | ||
25866 | int | |
25867 | main () | |
25868 | { | |
25869 | return 0; | |
25870 | } | |
25871 | ||
25872 | _ACEOF | |
25873 | if ac_fn_c_try_link "$LINENO"; then : | |
25874 | gcc_cv_math_inline_builtin_copysign=yes | |
25875 | else | |
25876 | gcc_cv_math_inline_builtin_copysign=no | |
25877 | fi | |
25878 | rm -f core conftest.err conftest.$ac_objext \ | |
25879 | conftest$ac_exeext conftest.$ac_ext | |
25880 | fi | |
25881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 | |
25882 | $as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } | |
25883 | if test $gcc_cv_math_inline_builtin_copysign = yes; then | |
25884 | ||
25885 | cat >>confdefs.h <<_ACEOF | |
25886 | #define HAVE_INLINE_BUILTIN_COPYSIGN 1 | |
25887 | _ACEOF | |
25888 | ||
25889 | fi | |
25890 | fi | |
25891 | ||
25892 | ||
25893 | if test $gcc_cv_math_func_copysignl = no; then | |
25894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 | |
25895 | $as_echo_n "checking for inline __builtin_copysignl... " >&6; } | |
25896 | if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : | |
25897 | $as_echo_n "(cached) " >&6 | |
25898 | else | |
25899 | if test x$gcc_no_link = xyes; then | |
25900 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25901 | fi | |
25902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25903 | /* end confdefs.h. */ | |
25904 | ||
25905 | long double | |
25906 | copysignl_fallback (long double x, long double y) | |
25907 | { | |
25908 | return __builtin_copysignl (x, y); | |
25909 | } | |
25910 | ||
25911 | int | |
25912 | main () | |
25913 | { | |
25914 | return 0; | |
25915 | } | |
25916 | ||
25917 | _ACEOF | |
25918 | if ac_fn_c_try_link "$LINENO"; then : | |
25919 | gcc_cv_math_inline_builtin_copysignl=yes | |
25920 | else | |
25921 | gcc_cv_math_inline_builtin_copysignl=no | |
25922 | fi | |
25923 | rm -f core conftest.err conftest.$ac_objext \ | |
25924 | conftest$ac_exeext conftest.$ac_ext | |
25925 | fi | |
25926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 | |
25927 | $as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } | |
25928 | if test $gcc_cv_math_inline_builtin_copysignl = yes; then | |
25929 | ||
25930 | cat >>confdefs.h <<_ACEOF | |
25931 | #define HAVE_INLINE_BUILTIN_COPYSIGNL 1 | |
25932 | _ACEOF | |
25933 | ||
25934 | fi | |
25935 | fi | |
25936 | ||
25937 | ||
25938 | if test $gcc_cv_math_func_fabs = no; then | |
25939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 | |
25940 | $as_echo_n "checking for inline __builtin_fabs... " >&6; } | |
25941 | if ${gcc_cv_math_inline_builtin_fabs+:} false; then : | |
25942 | $as_echo_n "(cached) " >&6 | |
25943 | else | |
25944 | if test x$gcc_no_link = xyes; then | |
25945 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25946 | fi | |
25947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25948 | /* end confdefs.h. */ | |
25949 | ||
25950 | double | |
25951 | fabs_fallback (double x) | |
25952 | { | |
25953 | return __builtin_fabs (x); | |
25954 | } | |
25955 | ||
25956 | int | |
25957 | main () | |
25958 | { | |
25959 | return 0; | |
25960 | } | |
25961 | ||
25962 | _ACEOF | |
25963 | if ac_fn_c_try_link "$LINENO"; then : | |
25964 | gcc_cv_math_inline_builtin_fabs=yes | |
25965 | else | |
25966 | gcc_cv_math_inline_builtin_fabs=no | |
25967 | fi | |
25968 | rm -f core conftest.err conftest.$ac_objext \ | |
25969 | conftest$ac_exeext conftest.$ac_ext | |
25970 | fi | |
25971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 | |
25972 | $as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } | |
25973 | if test $gcc_cv_math_inline_builtin_fabs = yes; then | |
25974 | ||
25975 | cat >>confdefs.h <<_ACEOF | |
25976 | #define HAVE_INLINE_BUILTIN_FABS 1 | |
25977 | _ACEOF | |
25978 | ||
25979 | fi | |
25980 | fi | |
25981 | ||
25982 | ||
25983 | if test $gcc_cv_math_func_fabsl = no; then | |
25984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 | |
25985 | $as_echo_n "checking for inline __builtin_fabsl... " >&6; } | |
25986 | if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : | |
25987 | $as_echo_n "(cached) " >&6 | |
25988 | else | |
25989 | if test x$gcc_no_link = xyes; then | |
25990 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25991 | fi | |
25992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25993 | /* end confdefs.h. */ | |
25994 | ||
25995 | long double | |
25996 | fabsl_fallback (long double x) | |
25997 | { | |
25998 | return __builtin_fabsl (x); | |
25999 | } | |
26000 | ||
26001 | int | |
26002 | main () | |
26003 | { | |
26004 | return 0; | |
26005 | } | |
26006 | ||
26007 | _ACEOF | |
26008 | if ac_fn_c_try_link "$LINENO"; then : | |
26009 | gcc_cv_math_inline_builtin_fabsl=yes | |
26010 | else | |
26011 | gcc_cv_math_inline_builtin_fabsl=no | |
26012 | fi | |
26013 | rm -f core conftest.err conftest.$ac_objext \ | |
26014 | conftest$ac_exeext conftest.$ac_ext | |
26015 | fi | |
26016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 | |
26017 | $as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } | |
26018 | if test $gcc_cv_math_inline_builtin_fabsl = yes; then | |
26019 | ||
26020 | cat >>confdefs.h <<_ACEOF | |
26021 | #define HAVE_INLINE_BUILTIN_FABSL 1 | |
26022 | _ACEOF | |
26023 | ||
26024 | fi | |
26025 | fi | |
26026 | ||
ad238e4f FXC |
26027 | # Check whether the system has a working stat() |
26028 | ||
5213506e RW |
26029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
26030 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
22e05272 | 26031 | if ${libgfor_cv_have_working_stat+:} false; then : |
5213506e | 26032 | $as_echo_n "(cached) " >&6 |
ad238e4f FXC |
26033 | else |
26034 | ||
5213506e | 26035 | if test "$cross_compiling" = yes; then : |
ad238e4f FXC |
26036 | |
26037 | case "${target}" in | |
6d26724a RW |
26038 | *mingw*) libgfor_cv_have_working_stat=no ;; |
26039 | *) libgfor_cv_have_working_stat=yes;; | |
ad238e4f FXC |
26040 | esac |
26041 | else | |
5213506e | 26042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad238e4f FXC |
26043 | /* end confdefs.h. */ |
26044 | ||
26045 | #include <stdio.h> | |
26046 | #include <sys/types.h> | |
26047 | #include <sys/stat.h> | |
26048 | #include <unistd.h> | |
26049 | ||
26050 | int main () | |
26051 | { | |
26052 | FILE *f, *g; | |
26053 | struct stat st1, st2; | |
26054 | ||
26055 | f = fopen ("foo", "w"); | |
26056 | g = fopen ("bar", "w"); | |
26057 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
26058 | return 1; | |
26059 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
26060 | return 1; | |
26061 | fclose(f); | |
26062 | fclose(g); | |
26063 | return 0; | |
26064 | } | |
26065 | _ACEOF | |
5213506e | 26066 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 26067 | libgfor_cv_have_working_stat=yes |
ad238e4f | 26068 | else |
5213506e | 26069 | libgfor_cv_have_working_stat=no |
ad238e4f | 26070 | fi |
5213506e RW |
26071 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26072 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
ad238e4f | 26073 | fi |
5213506e | 26074 | |
ad238e4f | 26075 | fi |
5213506e RW |
26076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
26077 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6d26724a | 26078 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
ad238e4f | 26079 | |
5213506e | 26080 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
ad238e4f FXC |
26081 | |
26082 | fi | |
26083 | ||
db8092dc FXC |
26084 | # Check whether __mingw_snprintf() is present |
26085 | ||
5213506e RW |
26086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
26087 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
22e05272 | 26088 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : |
5213506e | 26089 | $as_echo_n "(cached) " >&6 |
db8092dc FXC |
26090 | else |
26091 | ||
26092 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26093 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
db8092dc | 26094 | fi |
5213506e | 26095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
db8092dc FXC |
26096 | /* end confdefs.h. */ |
26097 | ||
26098 | #include <stdio.h> | |
26099 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
26100 | ||
26101 | int | |
26102 | main () | |
26103 | { | |
26104 | ||
26105 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
26106 | ||
26107 | ; | |
26108 | return 0; | |
26109 | } | |
26110 | _ACEOF | |
5213506e | 26111 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 26112 | eval "libgfor_cv_have_mingw_snprintf=yes" |
db8092dc | 26113 | else |
5213506e | 26114 | eval "libgfor_cv_have_mingw_snprintf=no" |
db8092dc | 26115 | fi |
5213506e RW |
26116 | rm -f core conftest.err conftest.$ac_objext \ |
26117 | conftest$ac_exeext conftest.$ac_ext | |
db8092dc FXC |
26118 | |
26119 | fi | |
5213506e RW |
26120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
26121 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6d26724a | 26122 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
db8092dc | 26123 | |
5213506e | 26124 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
db8092dc FXC |
26125 | |
26126 | fi | |
26127 | ||
26128 | ||
87e6d9dc TB |
26129 | # Check whether libquadmath should be used |
26130 | # Check whether --enable-libquadmath-support was given. | |
26131 | if test "${enable_libquadmath_support+set}" = set; then : | |
26132 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
26133 | else | |
26134 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
26135 | fi | |
26136 | ||
26137 | enable_libquadmath_support= | |
26138 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
26139 | enable_libquadmath_support=no | |
26140 | fi | |
26141 | ||
26142 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
1ec601bf FXC |
26143 | |
26144 | LIBQUADSPEC= | |
87e6d9dc TB |
26145 | |
26146 | if test "x$enable_libquadmath_support" != xno; then | |
26147 | ||
1ec601bf FXC |
26148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
26149 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
22e05272 | 26150 | if ${libgfor_cv_have_float128+:} false; then : |
1ec601bf FXC |
26151 | $as_echo_n "(cached) " >&6 |
26152 | else | |
26153 | ||
69eb61d4 TB |
26154 | if test x$gcc_no_link = xyes; then |
26155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1ec601bf FXC |
26156 | /* end confdefs.h. */ |
26157 | ||
69eb61d4 TB |
26158 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
26159 | ||
26160 | __float128 foo (__float128 x) | |
26161 | { | |
26162 | ||
26163 | __complex128 z1, z2; | |
26164 | ||
26165 | z1 = x; | |
26166 | z2 = x / 7.Q; | |
26167 | z2 /= z1; | |
26168 | ||
26169 | return (__float128) z2; | |
26170 | } | |
26171 | ||
26172 | __float128 bar (__float128 x) | |
26173 | { | |
26174 | return x * __builtin_huge_valq (); | |
26175 | } | |
1ec601bf FXC |
26176 | |
26177 | int | |
26178 | main () | |
26179 | { | |
26180 | ||
69eb61d4 TB |
26181 | foo (1.2Q); |
26182 | bar (1.2Q); | |
1ec601bf | 26183 | |
69eb61d4 TB |
26184 | ; |
26185 | return 0; | |
26186 | } | |
26187 | _ACEOF | |
26188 | if ac_fn_c_try_compile "$LINENO"; then : | |
1ec601bf | 26189 | |
69eb61d4 | 26190 | libgfor_cv_have_float128=yes |
1ec601bf | 26191 | |
69eb61d4 TB |
26192 | else |
26193 | ||
26194 | libgfor_cv_have_float128=no | |
26195 | ||
26196 | fi | |
26197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26198 | else | |
26199 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26200 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
69eb61d4 TB |
26201 | fi |
26202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26203 | /* end confdefs.h. */ | |
26204 | ||
26205 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
26206 | ||
26207 | __float128 foo (__float128 x) | |
26208 | { | |
26209 | ||
26210 | __complex128 z1, z2; | |
26211 | ||
26212 | z1 = x; | |
26213 | z2 = x / 7.Q; | |
26214 | z2 /= z1; | |
26215 | ||
26216 | return (__float128) z2; | |
26217 | } | |
26218 | ||
26219 | __float128 bar (__float128 x) | |
26220 | { | |
26221 | return x * __builtin_huge_valq (); | |
26222 | } | |
26223 | ||
26224 | int | |
26225 | main () | |
26226 | { | |
26227 | ||
26228 | foo (1.2Q); | |
26229 | bar (1.2Q); | |
1ec601bf FXC |
26230 | |
26231 | ; | |
26232 | return 0; | |
26233 | } | |
26234 | _ACEOF | |
26235 | if ac_fn_c_try_link "$LINENO"; then : | |
69eb61d4 TB |
26236 | |
26237 | libgfor_cv_have_float128=yes | |
26238 | ||
1ec601bf | 26239 | else |
69eb61d4 TB |
26240 | |
26241 | libgfor_cv_have_float128=no | |
26242 | ||
1ec601bf FXC |
26243 | fi |
26244 | rm -f core conftest.err conftest.$ac_objext \ | |
26245 | conftest$ac_exeext conftest.$ac_ext | |
69eb61d4 | 26246 | fi |
1ec601bf FXC |
26247 | fi |
26248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
26249 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
26250 | ||
26251 | if test "x$libgfor_cv_have_float128" = xyes; then | |
26252 | ||
26253 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
26254 | ||
26255 | ||
26256 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
828012a5 RO |
26257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
26258 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
22e05272 | 26259 | if ${libgfor_cv_have_as_needed+:} false; then : |
1ec601bf FXC |
26260 | $as_echo_n "(cached) " >&6 |
26261 | else | |
26262 | ||
828012a5 RO |
26263 | # Test for native Solaris options first. |
26264 | # No whitespace after -z to pass it through -Wl. | |
26265 | libgfor_cv_as_needed_option="-zignore" | |
26266 | libgfor_cv_no_as_needed_option="-zrecord" | |
1ec601bf | 26267 | save_LDFLAGS="$LDFLAGS" |
828012a5 | 26268 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" |
1ec601bf FXC |
26269 | libgfor_cv_have_as_needed=no |
26270 | ||
26271 | ac_c_werror_flag=yes | |
26272 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26273 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1ec601bf FXC |
26274 | fi |
26275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26276 | /* end confdefs.h. */ | |
26277 | ||
26278 | int | |
26279 | main () | |
26280 | { | |
26281 | ||
26282 | ; | |
26283 | return 0; | |
26284 | } | |
26285 | _ACEOF | |
26286 | if ac_fn_c_try_link "$LINENO"; then : | |
26287 | libgfor_cv_have_as_needed=yes | |
26288 | else | |
26289 | libgfor_cv_have_as_needed=no | |
26290 | fi | |
26291 | rm -f core conftest.err conftest.$ac_objext \ | |
26292 | conftest$ac_exeext conftest.$ac_ext | |
26293 | LDFLAGS="$save_LDFLAGS" | |
828012a5 RO |
26294 | if test "x$libgfor_cv_have_as_needed" = xno; then |
26295 | libgfor_cv_as_needed_option="--as-needed" | |
26296 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
26297 | save_LDFLAGS="$LDFLAGS" | |
26298 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
26299 | libgfor_cv_have_as_needed=no | |
26300 | ||
26301 | ac_c_werror_flag=yes | |
26302 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26303 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
828012a5 RO |
26304 | fi |
26305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26306 | /* end confdefs.h. */ | |
26307 | ||
26308 | int | |
26309 | main () | |
26310 | { | |
26311 | ||
26312 | ; | |
26313 | return 0; | |
26314 | } | |
26315 | _ACEOF | |
26316 | if ac_fn_c_try_link "$LINENO"; then : | |
26317 | libgfor_cv_have_as_needed=yes | |
26318 | else | |
26319 | libgfor_cv_have_as_needed=no | |
26320 | fi | |
26321 | rm -f core conftest.err conftest.$ac_objext \ | |
26322 | conftest$ac_exeext conftest.$ac_ext | |
26323 | LDFLAGS="$save_LDFLAGS" | |
26324 | fi | |
1ec601bf FXC |
26325 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
26326 | ||
26327 | fi | |
26328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
26329 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
26330 | ||
26331 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
828012a5 | 26332 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
1ec601bf FXC |
26333 | else |
26334 | LIBQUADSPEC="-lquadmath" | |
26335 | fi | |
26336 | if test -f ../libquadmath/libquadmath.la; then | |
26337 | LIBQUADLIB=../libquadmath/libquadmath.la | |
26338 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
26339 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
26340 | else | |
26341 | LIBQUADLIB="-lquadmath" | |
26342 | LIBQUADLIB_DEP= | |
26343 | LIBQUADINCLUDE= | |
26344 | fi | |
26345 | fi | |
87e6d9dc TB |
26346 | else |
26347 | # for --disable-quadmath | |
26348 | LIBQUADLIB= | |
26349 | LIBQUADLIB_DEP= | |
26350 | LIBQUADINCLUDE= | |
26351 | fi | |
1ec601bf FXC |
26352 | |
26353 | ||
26354 | ||
26355 | ||
26356 | ||
26357 | ||
26358 | if test "x$libgfor_cv_have_float128" = xyes; then | |
26359 | LIBGFOR_BUILD_QUAD_TRUE= | |
26360 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
26361 | else | |
26362 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
26363 | LIBGFOR_BUILD_QUAD_FALSE= | |
26364 | fi | |
26365 | ||
26366 | ||
26367 | ||
944b8b35 | 26368 | # Check for GNU libc feenableexcept |
5213506e RW |
26369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
26370 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
22e05272 | 26371 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
5213506e | 26372 | $as_echo_n "(cached) " >&6 |
944b8b35 FXC |
26373 | else |
26374 | ac_check_lib_save_LIBS=$LIBS | |
26375 | LIBS="-lm $LIBS" | |
26376 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26377 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
944b8b35 | 26378 | fi |
5213506e | 26379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
944b8b35 FXC |
26380 | /* end confdefs.h. */ |
26381 | ||
5213506e RW |
26382 | /* Override any GCC internal prototype to avoid an error. |
26383 | Use char because int might match the return type of a GCC | |
26384 | builtin and then its argument prototype would still apply. */ | |
944b8b35 FXC |
26385 | #ifdef __cplusplus |
26386 | extern "C" | |
26387 | #endif | |
944b8b35 FXC |
26388 | char feenableexcept (); |
26389 | int | |
26390 | main () | |
26391 | { | |
5213506e | 26392 | return feenableexcept (); |
944b8b35 FXC |
26393 | ; |
26394 | return 0; | |
26395 | } | |
26396 | _ACEOF | |
5213506e | 26397 | if ac_fn_c_try_link "$LINENO"; then : |
944b8b35 FXC |
26398 | ac_cv_lib_m_feenableexcept=yes |
26399 | else | |
5213506e | 26400 | ac_cv_lib_m_feenableexcept=no |
944b8b35 | 26401 | fi |
5213506e RW |
26402 | rm -f core conftest.err conftest.$ac_objext \ |
26403 | conftest$ac_exeext conftest.$ac_ext | |
944b8b35 FXC |
26404 | LIBS=$ac_check_lib_save_LIBS |
26405 | fi | |
5213506e RW |
26406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
26407 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
22e05272 | 26408 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
944b8b35 | 26409 | have_feenableexcept=yes |
5213506e | 26410 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
3b14f664 FXC |
26411 | |
26412 | fi | |
26413 | ||
3b14f664 | 26414 | |
5c30094f | 26415 | # At least for glibc, clock_gettime is in librt. But don't |
2aadeae2 JB |
26416 | # pull that in if it still doesn't give us the function we want. This |
26417 | # test is copied from libgomp, and modified to not link in -lrt as | |
26418 | # libgfortran calls clock_gettime via a weak reference if it's found | |
26419 | # in librt. | |
deb9dd74 | 26420 | if test "$ac_cv_func_clock_gettime" = no; then |
b6e7a3d1 JB |
26421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
26422 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 26423 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
b6e7a3d1 JB |
26424 | $as_echo_n "(cached) " >&6 |
26425 | else | |
26426 | ac_check_lib_save_LIBS=$LIBS | |
26427 | LIBS="-lrt $LIBS" | |
26428 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26429 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b6e7a3d1 JB |
26430 | fi |
26431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26432 | /* end confdefs.h. */ | |
26433 | ||
26434 | /* Override any GCC internal prototype to avoid an error. | |
26435 | Use char because int might match the return type of a GCC | |
26436 | builtin and then its argument prototype would still apply. */ | |
26437 | #ifdef __cplusplus | |
26438 | extern "C" | |
26439 | #endif | |
26440 | char clock_gettime (); | |
26441 | int | |
26442 | main () | |
26443 | { | |
26444 | return clock_gettime (); | |
26445 | ; | |
26446 | return 0; | |
26447 | } | |
26448 | _ACEOF | |
26449 | if ac_fn_c_try_link "$LINENO"; then : | |
26450 | ac_cv_lib_rt_clock_gettime=yes | |
26451 | else | |
26452 | ac_cv_lib_rt_clock_gettime=no | |
26453 | fi | |
26454 | rm -f core conftest.err conftest.$ac_objext \ | |
26455 | conftest$ac_exeext conftest.$ac_ext | |
26456 | LIBS=$ac_check_lib_save_LIBS | |
26457 | fi | |
26458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
26459 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 26460 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
b6e7a3d1 | 26461 | |
2aadeae2 | 26462 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
b6e7a3d1 JB |
26463 | |
26464 | fi | |
26465 | ||
26466 | fi | |
26467 | ||
5213506e | 26468 | # Check for SysV fpsetmask |
3b14f664 | 26469 | |
5213506e RW |
26470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
26471 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
22e05272 | 26472 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
5213506e RW |
26473 | $as_echo_n "(cached) " >&6 |
26474 | else | |
3b14f664 | 26475 | |
5213506e | 26476 | if test x$gcc_no_link = xyes; then |
22e05272 | 26477 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5213506e RW |
26478 | fi |
26479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26480 | /* end confdefs.h. */ | |
3b14f664 | 26481 | |
5213506e RW |
26482 | #if HAVE_FLOATINGPOINT_H |
26483 | # include <floatingpoint.h> | |
26484 | #endif /* HAVE_FLOATINGPOINT_H */ | |
26485 | #if HAVE_IEEEFP_H | |
26486 | # include <ieeefp.h> | |
26487 | #endif /* HAVE_IEEEFP_H */ | |
3b14f664 FXC |
26488 | int |
26489 | main () | |
26490 | { | |
5213506e | 26491 | fpsetmask(0); |
3b14f664 FXC |
26492 | ; |
26493 | return 0; | |
26494 | } | |
26495 | _ACEOF | |
5213506e RW |
26496 | if ac_fn_c_try_link "$LINENO"; then : |
26497 | eval "libgfor_cv_have_fpsetmask=yes" | |
3b14f664 | 26498 | else |
5213506e RW |
26499 | eval "libgfor_cv_have_fpsetmask=no" |
26500 | fi | |
26501 | rm -f core conftest.err conftest.$ac_objext \ | |
26502 | conftest$ac_exeext conftest.$ac_ext | |
3b14f664 | 26503 | |
3b14f664 | 26504 | fi |
5213506e RW |
26505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
26506 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
26507 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
1b9fef3e | 26508 | have_fpsetmask=yes |
5213506e RW |
26509 | |
26510 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
26511 | ||
26512 | fi | |
26513 | ||
6faf4751 | 26514 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
67c4c164 | 26515 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26516 | #include <ieeefp.h> |
67c4c164 | 26517 | #endif |
6faf4751 FXC |
26518 | #include <math.h> |
26519 | ||
7ae346c3 | 26520 | " |
22e05272 | 26521 | if test "x$ac_cv_type_fp_except" = xyes; then : |
7ae346c3 TB |
26522 | |
26523 | cat >>confdefs.h <<_ACEOF | |
26524 | #define HAVE_FP_EXCEPT 1 | |
26525 | _ACEOF | |
26526 | ||
26527 | ||
26528 | fi | |
6faf4751 | 26529 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
67c4c164 | 26530 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26531 | #include <ieeefp.h> |
67c4c164 | 26532 | #endif |
6faf4751 FXC |
26533 | #include <math.h> |
26534 | ||
7ae346c3 | 26535 | " |
22e05272 | 26536 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
7ae346c3 TB |
26537 | |
26538 | cat >>confdefs.h <<_ACEOF | |
26539 | #define HAVE_FP_EXCEPT_T 1 | |
26540 | _ACEOF | |
26541 | ||
26542 | ||
82a4f54c TB |
26543 | fi |
26544 | ||
6faf4751 | 26545 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
67c4c164 | 26546 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26547 | #include <ieeefp.h> |
67c4c164 | 26548 | #endif |
6faf4751 FXC |
26549 | #include <math.h> |
26550 | ||
82a4f54c | 26551 | " |
22e05272 | 26552 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
82a4f54c TB |
26553 | |
26554 | cat >>confdefs.h <<_ACEOF | |
26555 | #define HAVE_FP_RND 1 | |
26556 | _ACEOF | |
26557 | ||
26558 | ||
26559 | fi | |
6faf4751 | 26560 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
67c4c164 | 26561 | #ifdef HAVE_IEEEFP_H |
6faf4751 | 26562 | #include <ieeefp.h> |
67c4c164 | 26563 | #endif |
6faf4751 FXC |
26564 | #include <math.h> |
26565 | ||
82a4f54c | 26566 | " |
22e05272 | 26567 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
82a4f54c TB |
26568 | |
26569 | cat >>confdefs.h <<_ACEOF | |
26570 | #define HAVE_FP_RND_T 1 | |
26571 | _ACEOF | |
26572 | ||
26573 | ||
7ae346c3 TB |
26574 | fi |
26575 | ||
5213506e | 26576 | |
de51fc1b RO |
26577 | # Check whether we have fpsetsticky or fpresetsticky |
26578 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
22e05272 | 26579 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
de51fc1b RO |
26580 | have_fpsetsticky=yes |
26581 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
26582 | ||
26583 | fi | |
26584 | ||
26585 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
22e05272 | 26586 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
de51fc1b RO |
26587 | have_fpresetsticky=yes |
26588 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
26589 | ||
26590 | fi | |
26591 | ||
26592 | ||
5213506e RW |
26593 | # Check for AIX fp_trap and fp_enable |
26594 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
22e05272 | 26595 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
5213506e RW |
26596 | have_fp_trap=yes |
26597 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
26598 | ||
3b14f664 | 26599 | fi |
5213506e RW |
26600 | |
26601 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
22e05272 | 26602 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
3b14f664 | 26603 | have_fp_enable=yes |
5213506e | 26604 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
3b14f664 FXC |
26605 | |
26606 | fi | |
26607 | ||
26608 | ||
7b32a8f6 UB |
26609 | # Check if _SOFT_FLOAT is defined |
26610 | ||
26611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
26612 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
22e05272 | 26613 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
7b32a8f6 UB |
26614 | $as_echo_n "(cached) " >&6 |
26615 | else | |
26616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26617 | /* end confdefs.h. */ | |
26618 | ||
26619 | int | |
26620 | main () | |
26621 | { | |
26622 | ||
26623 | #ifdef _SOFT_FLOAT | |
26624 | int ok; | |
26625 | #else | |
26626 | choke me | |
26627 | #endif | |
26628 | ||
26629 | ; | |
26630 | return 0; | |
26631 | } | |
26632 | _ACEOF | |
26633 | if ac_fn_c_try_compile "$LINENO"; then : | |
26634 | ac_cv_defined__SOFT_FLOAT=yes | |
26635 | else | |
26636 | ac_cv_defined__SOFT_FLOAT=no | |
26637 | fi | |
26638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26639 | fi | |
26640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
26641 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
26642 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
26643 | have_soft_float=yes | |
26644 | fi | |
26645 | ||
944b8b35 FXC |
26646 | # Runs configure.host to set up necessary host-dependent shell variables. |
26647 | # We then display a message about it, and propagate them through the | |
26648 | # build chain. | |
26649 | . ${srcdir}/configure.host | |
5213506e RW |
26650 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
26651 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8b198102 FXC |
26652 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
26653 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
944b8b35 FXC |
26654 | FPU_HOST_HEADER=config/${fpu_host}.h |
26655 | ||
26656 | ||
8b198102 FXC |
26657 | # Whether we will build the IEEE modules |
26658 | if test x${ieee_support} = xyes; then | |
26659 | IEEE_SUPPORT_TRUE= | |
26660 | IEEE_SUPPORT_FALSE='#' | |
26661 | else | |
26662 | IEEE_SUPPORT_TRUE='#' | |
26663 | IEEE_SUPPORT_FALSE= | |
26664 | fi | |
26665 | ||
26666 | ||
26667 | ||
9fc77574 KK |
26668 | # Some targets require additional compiler options for IEEE compatibility. |
26669 | IEEE_FLAGS="${ieee_flags}" | |
26670 | ||
26671 | ||
47ddb895 DE |
26672 | # Conditionalize the makefile for this target machine. |
26673 | tmake_file_= | |
26674 | for f in ${tmake_file} | |
26675 | do | |
26676 | if test -f ${srcdir}/config/$f | |
26677 | then | |
26678 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
26679 | fi | |
26680 | done | |
26681 | tmake_file="${tmake_file_}" | |
26682 | ||
26683 | ||
23e6d4a5 JB |
26684 | |
26685 | # Check for POSIX getpwuid_r | |
26686 | # | |
26687 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
26688 | # arguments, and another one with 4 arguments used by at least HP-UX | |
26689 | # 10.2. | |
26690 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
26691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
26692 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
22e05272 | 26693 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
23e6d4a5 JB |
26694 | $as_echo_n "(cached) " >&6 |
26695 | else | |
26696 | ||
26697 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26698 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
23e6d4a5 JB |
26699 | fi |
26700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26701 | /* end confdefs.h. */ | |
26702 | ||
26703 | #include <stdio.h> | |
26704 | #include <sys/types.h> | |
26705 | #include <pwd.h> | |
26706 | int | |
26707 | main () | |
26708 | { | |
26709 | ||
26710 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
26711 | ||
26712 | ; | |
26713 | return 0; | |
26714 | } | |
26715 | _ACEOF | |
26716 | if ac_fn_c_try_link "$LINENO"; then : | |
26717 | libgfor_cv_posix_getpwuid_r="yes" | |
26718 | else | |
26719 | libgfor_cv_posix_getpwuid_r="no" | |
26720 | fi | |
26721 | rm -f core conftest.err conftest.$ac_objext \ | |
26722 | conftest$ac_exeext conftest.$ac_ext | |
26723 | fi | |
26724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
26725 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
26726 | fi | |
26727 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
26728 | ||
26729 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
26730 | ||
26731 | fi | |
26732 | ||
26733 | ||
7d7b8bfe RH |
26734 | # Check out attribute support. |
26735 | ||
5213506e RW |
26736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
26737 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 26738 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
5213506e | 26739 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
26740 | else |
26741 | ||
26742 | save_CFLAGS="$CFLAGS" | |
26743 | CFLAGS="$CFLAGS -Werror" | |
5213506e | 26744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
26745 | /* end confdefs.h. */ |
26746 | void __attribute__((visibility("hidden"))) foo(void) { } | |
26747 | int | |
26748 | main () | |
26749 | { | |
26750 | ||
26751 | ; | |
26752 | return 0; | |
26753 | } | |
26754 | _ACEOF | |
5213506e | 26755 | if ac_fn_c_try_compile "$LINENO"; then : |
6d26724a | 26756 | libgfor_cv_have_attribute_visibility=yes |
7d7b8bfe | 26757 | else |
5213506e | 26758 | libgfor_cv_have_attribute_visibility=no |
7d7b8bfe | 26759 | fi |
5213506e | 26760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d7b8bfe RH |
26761 | CFLAGS="$save_CFLAGS" |
26762 | fi | |
5213506e RW |
26763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
26764 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6d26724a | 26765 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7d7b8bfe | 26766 | |
5213506e | 26767 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7d7b8bfe RH |
26768 | |
26769 | fi | |
26770 | ||
5213506e RW |
26771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
26772 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 26773 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
5213506e | 26774 | $as_echo_n "(cached) " >&6 |
7d7b8bfe RH |
26775 | else |
26776 | ||
f02d008e | 26777 | if test x$gcc_no_link = xyes; then |
22e05272 | 26778 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
f02d008e | 26779 | fi |
5213506e | 26780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7d7b8bfe RH |
26781 | /* end confdefs.h. */ |
26782 | ||
7d7b8bfe | 26783 | void foo(void) { } |
16a314a9 | 26784 | extern void bar(void) __attribute__((alias("foo"))); |
7d7b8bfe RH |
26785 | int |
26786 | main () | |
26787 | { | |
26788 | bar(); | |
26789 | ; | |
26790 | return 0; | |
26791 | } | |
26792 | _ACEOF | |
5213506e | 26793 | if ac_fn_c_try_link "$LINENO"; then : |
6d26724a | 26794 | libgfor_cv_have_attribute_alias=yes |
7d7b8bfe | 26795 | else |
5213506e | 26796 | libgfor_cv_have_attribute_alias=no |
7d7b8bfe | 26797 | fi |
5213506e RW |
26798 | rm -f core conftest.err conftest.$ac_objext \ |
26799 | conftest$ac_exeext conftest.$ac_ext | |
7d7b8bfe | 26800 | fi |
5213506e RW |
26801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
26802 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6d26724a | 26803 | if test $libgfor_cv_have_attribute_alias = yes; then |
7d7b8bfe | 26804 | |
5213506e | 26805 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7d7b8bfe RH |
26806 | |
26807 | fi | |
26808 | ||
0536d5b3 | 26809 | # Check out atomic builtins support. |
5e805e44 | 26810 | |
0536d5b3 JB |
26811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
26812 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
26813 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
5213506e | 26814 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
26815 | else |
26816 | ||
26817 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26818 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5e805e44 | 26819 | fi |
5213506e | 26820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5e805e44 JJ |
26821 | /* end confdefs.h. */ |
26822 | int foovar = 0; | |
26823 | int | |
26824 | main () | |
26825 | { | |
26826 | ||
0536d5b3 JB |
26827 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
26828 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
5e805e44 JJ |
26829 | ; |
26830 | return 0; | |
26831 | } | |
26832 | _ACEOF | |
5213506e | 26833 | if ac_fn_c_try_link "$LINENO"; then : |
0536d5b3 | 26834 | libgfor_cv_have_atomic_fetch_add=yes |
5e805e44 | 26835 | else |
0536d5b3 | 26836 | libgfor_cv_have_atomic_fetch_add=no |
5e805e44 | 26837 | fi |
5213506e RW |
26838 | rm -f core conftest.err conftest.$ac_objext \ |
26839 | conftest$ac_exeext conftest.$ac_ext | |
5e805e44 | 26840 | fi |
0536d5b3 JB |
26841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
26842 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
26843 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
5e805e44 | 26844 | |
0536d5b3 | 26845 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
5e805e44 JJ |
26846 | |
26847 | fi | |
26848 | ||
6a822a74 FXC |
26849 | # Check out #pragma weak. |
26850 | ||
26851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
26852 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
22e05272 | 26853 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
6a822a74 FXC |
26854 | $as_echo_n "(cached) " >&6 |
26855 | else | |
26856 | ||
26857 | gfor_save_CFLAGS="$CFLAGS" | |
26858 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
26859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26860 | /* end confdefs.h. */ | |
26861 | ||
26862 | void foo (void); | |
26863 | #pragma weak foo | |
26864 | ||
26865 | int | |
26866 | main () | |
26867 | { | |
26868 | if (foo) foo (); | |
26869 | ; | |
26870 | return 0; | |
26871 | } | |
26872 | _ACEOF | |
26873 | if ac_fn_c_try_compile "$LINENO"; then : | |
26874 | libgfor_cv_have_pragma_weak=yes | |
26875 | else | |
26876 | libgfor_cv_have_pragma_weak=no | |
26877 | fi | |
26878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26879 | fi | |
26880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
26881 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
26882 | if test $libgfor_cv_have_pragma_weak = yes; then | |
26883 | ||
26884 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
26885 | ||
26886 | fi | |
26887 | case "$host" in | |
26888 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
26889 | ||
26890 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
26891 | ||
26892 | ;; | |
26893 | esac | |
26894 | ||
e7854993 | 26895 | # Check out weakref support. |
5e805e44 | 26896 | |
e7854993 FXC |
26897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
26898 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
22e05272 | 26899 | if ${libgfor_cv_have_weakref+:} false; then : |
5213506e | 26900 | $as_echo_n "(cached) " >&6 |
5e805e44 JJ |
26901 | else |
26902 | ||
e7854993 FXC |
26903 | save_CFLAGS="$CFLAGS" |
26904 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
26905 | if test x$gcc_no_link = xyes; then | |
22e05272 | 26906 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
e7854993 FXC |
26907 | fi |
26908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5e805e44 | 26909 | /* end confdefs.h. */ |
de15ea94 | 26910 | |
e7854993 | 26911 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
de15ea94 | 26912 | |
5e805e44 JJ |
26913 | int |
26914 | main () | |
26915 | { | |
e7854993 | 26916 | return (mytoto != 0); |
5e805e44 JJ |
26917 | ; |
26918 | return 0; | |
26919 | } | |
26920 | _ACEOF | |
e7854993 FXC |
26921 | if ac_fn_c_try_link "$LINENO"; then : |
26922 | libgfor_cv_have_weakref=yes | |
5e805e44 | 26923 | else |
e7854993 | 26924 | libgfor_cv_have_weakref=no |
5e805e44 | 26925 | fi |
e7854993 FXC |
26926 | rm -f core conftest.err conftest.$ac_objext \ |
26927 | conftest$ac_exeext conftest.$ac_ext | |
26928 | CFLAGS="$save_CFLAGS" | |
5e805e44 | 26929 | fi |
e7854993 FXC |
26930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
26931 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
26932 | if test $libgfor_cv_have_weakref = yes; then | |
5e805e44 | 26933 | |
e7854993 | 26934 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
5e805e44 JJ |
26935 | |
26936 | fi | |
26937 | ||
10c682a0 FXC |
26938 | # Various other checks on target |
26939 | ||
5213506e RW |
26940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
26941 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
22e05272 | 26942 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
5213506e | 26943 | $as_echo_n "(cached) " >&6 |
10c682a0 FXC |
26944 | else |
26945 | ||
5213506e | 26946 | if test "$cross_compiling" = yes; then : |
10c682a0 FXC |
26947 | |
26948 | case "${target}" in | |
6d26724a RW |
26949 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
26950 | *) libgfor_cv_have_unlink_open_file=yes;; | |
10c682a0 FXC |
26951 | esac |
26952 | else | |
5213506e | 26953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10c682a0 FXC |
26954 | /* end confdefs.h. */ |
26955 | ||
26956 | #include <errno.h> | |
26957 | #include <fcntl.h> | |
26958 | #include <unistd.h> | |
26959 | #include <sys/stat.h> | |
26960 | ||
26961 | int main () | |
26962 | { | |
26963 | int fd; | |
26964 | ||
42dfafa9 | 26965 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
10c682a0 FXC |
26966 | if (fd <= 0) |
26967 | return 0; | |
26968 | if (unlink ("testfile") == -1) | |
26969 | return 1; | |
26970 | write (fd, "This is a test\n", 15); | |
26971 | close (fd); | |
26972 | ||
42dfafa9 | 26973 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
10c682a0 FXC |
26974 | return 0; |
26975 | else | |
26976 | return 1; | |
26977 | } | |
26978 | _ACEOF | |
5213506e | 26979 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 26980 | libgfor_cv_have_unlink_open_file=yes |
10c682a0 | 26981 | else |
5213506e | 26982 | libgfor_cv_have_unlink_open_file=no |
10c682a0 | 26983 | fi |
5213506e RW |
26984 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26985 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
10c682a0 | 26986 | fi |
5213506e | 26987 | |
10c682a0 | 26988 | fi |
5213506e RW |
26989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
26990 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6d26724a | 26991 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
10c682a0 | 26992 | |
5213506e | 26993 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
10c682a0 FXC |
26994 | |
26995 | fi | |
26996 | ||
3c127520 FXC |
26997 | # Check whether line terminator is LF or CRLF |
26998 | ||
5213506e RW |
26999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
27000 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
22e05272 | 27001 | if ${libgfor_cv_have_crlf+:} false; then : |
5213506e | 27002 | $as_echo_n "(cached) " >&6 |
3c127520 FXC |
27003 | else |
27004 | ||
5213506e | 27005 | if test "$cross_compiling" = yes; then : |
3c127520 FXC |
27006 | |
27007 | case "${target}" in | |
6d26724a RW |
27008 | *mingw*) libgfor_cv_have_crlf=yes ;; |
27009 | *) libgfor_cv_have_crlf=no;; | |
3c127520 FXC |
27010 | esac |
27011 | else | |
5213506e | 27012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3c127520 FXC |
27013 | /* end confdefs.h. */ |
27014 | ||
27015 | /* This test program should exit with status 0 if system uses a CRLF as | |
27016 | line terminator, and status 1 otherwise. | |
27017 | Since it is used to check for mingw systems, and should return 0 in any | |
27018 | other case, in case of a failure we will not use CRLF. */ | |
27019 | #include <sys/stat.h> | |
27020 | #include <stdlib.h> | |
27021 | #include <fcntl.h> | |
27022 | #include <stdio.h> | |
27023 | ||
27024 | int main () | |
27025 | { | |
27026 | #ifndef O_BINARY | |
27027 | exit(1); | |
27028 | #else | |
27029 | int fd, bytes; | |
27030 | char buff[5]; | |
27031 | ||
27032 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
27033 | if (fd < 0) | |
27034 | exit(1); | |
27035 | if (write (fd, "\n", 1) < 0) | |
27036 | perror ("write"); | |
27037 | ||
27038 | close (fd); | |
27039 | ||
27040 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
27041 | exit(1); | |
27042 | bytes = read (fd, buff, 5); | |
27043 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
27044 | exit(0); | |
27045 | else | |
27046 | exit(1); | |
27047 | #endif | |
27048 | } | |
27049 | _ACEOF | |
5213506e | 27050 | if ac_fn_c_try_run "$LINENO"; then : |
6d26724a | 27051 | libgfor_cv_have_crlf=yes |
3c127520 | 27052 | else |
5213506e | 27053 | libgfor_cv_have_crlf=no |
3c127520 | 27054 | fi |
5213506e RW |
27055 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
27056 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3c127520 | 27057 | fi |
5213506e | 27058 | |
3c127520 | 27059 | fi |
5213506e RW |
27060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
27061 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6d26724a | 27062 | if test x"$libgfor_cv_have_crlf" = xyes; then |
3c127520 | 27063 | |
5213506e | 27064 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
3c127520 FXC |
27065 | |
27066 | fi | |
27067 | ||
31cfd832 TK |
27068 | # Check whether we support AVX extensions |
27069 | ||
27070 | ac_save_CFLAGS="$CFLAGS" | |
27071 | CFLAGS="-O2 -mavx" | |
27072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27073 | /* end confdefs.h. */ | |
27074 | ||
27075 | void _mm256_zeroall (void) | |
27076 | { | |
27077 | __builtin_ia32_vzeroall (); | |
27078 | } | |
27079 | int | |
27080 | main () | |
27081 | { | |
27082 | ||
27083 | ; | |
27084 | return 0; | |
27085 | } | |
27086 | _ACEOF | |
27087 | if ac_fn_c_try_compile "$LINENO"; then : | |
27088 | ||
27089 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
27090 | ||
27091 | fi | |
27092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27093 | CFLAGS="$ac_save_CFLAGS" | |
27094 | ||
27095 | ||
27096 | # Check wether we support AVX2 extensions | |
27097 | ||
27098 | ac_save_CFLAGS="$CFLAGS" | |
27099 | CFLAGS="-O2 -mavx2" | |
27100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27101 | /* end confdefs.h. */ | |
27102 | ||
27103 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
27104 | __v4di | |
27105 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
27106 | { | |
27107 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
27108 | } | |
27109 | int | |
27110 | main () | |
27111 | { | |
27112 | ||
27113 | ; | |
27114 | return 0; | |
27115 | } | |
27116 | _ACEOF | |
27117 | if ac_fn_c_try_compile "$LINENO"; then : | |
27118 | ||
27119 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
27120 | ||
27121 | fi | |
27122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27123 | CFLAGS="$ac_save_CFLAGS" | |
27124 | ||
27125 | ||
27126 | # Check wether we support AVX512f extensions | |
27127 | ||
27128 | ac_save_CFLAGS="$CFLAGS" | |
27129 | CFLAGS="-O2 -mavx512f" | |
27130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27131 | /* end confdefs.h. */ | |
27132 | ||
27133 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
27134 | __m512d _mm512_add (__m512d a) | |
27135 | { | |
9db0a8c2 JJ |
27136 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
27137 | /* For -m64/-mx32 also verify that code will work even if | |
27138 | the target uses call saved zmm16+ and needs to emit | |
27139 | unwind info for them (e.g. on mingw). See PR79127. */ | |
27140 | #ifdef __x86_64__ | |
27141 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
27142 | #endif | |
27143 | return b; | |
31cfd832 TK |
27144 | } |
27145 | int | |
27146 | main () | |
27147 | { | |
27148 | ||
27149 | ; | |
27150 | return 0; | |
27151 | } | |
27152 | _ACEOF | |
27153 | if ac_fn_c_try_compile "$LINENO"; then : | |
27154 | ||
27155 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
27156 | ||
27157 | fi | |
27158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27159 | CFLAGS="$ac_save_CFLAGS" | |
27160 | ||
27161 | ||
1d5cf7fc TK |
27162 | # Check for FMA3 extensions |
27163 | ||
27164 | ac_save_CFLAGS="$CFLAGS" | |
27165 | CFLAGS="-O2 -mfma -mno-fma4" | |
27166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27167 | /* end confdefs.h. */ | |
27168 | ||
9698e1bb RO |
27169 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
27170 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
27171 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 27172 | { |
9698e1bb RO |
27173 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
27174 | (__v4sf)__B, | |
27175 | (__v4sf)__C); | |
1d5cf7fc TK |
27176 | } |
27177 | int | |
27178 | main () | |
27179 | { | |
27180 | ||
27181 | ; | |
27182 | return 0; | |
27183 | } | |
27184 | _ACEOF | |
27185 | if ac_fn_c_try_compile "$LINENO"; then : | |
27186 | ||
27187 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
27188 | ||
27189 | fi | |
27190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27191 | CFLAGS="$ac_save_CFLAGS" | |
27192 | ||
27193 | ||
27194 | # Check for FMA4 extensions | |
27195 | ||
27196 | ac_save_CFLAGS="$CFLAGS" | |
27197 | CFLAGS="-O2 -mfma4 -mno-fma" | |
27198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27199 | /* end confdefs.h. */ | |
27200 | ||
9698e1bb RO |
27201 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
27202 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
27203 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
1d5cf7fc | 27204 | { |
9698e1bb RO |
27205 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
27206 | (__v4sf)__B, | |
27207 | (__v4sf)__C); | |
1d5cf7fc TK |
27208 | } |
27209 | int | |
27210 | main () | |
27211 | { | |
27212 | ||
27213 | ; | |
27214 | return 0; | |
27215 | } | |
27216 | _ACEOF | |
27217 | if ac_fn_c_try_compile "$LINENO"; then : | |
27218 | ||
27219 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
27220 | ||
27221 | fi | |
27222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27223 | CFLAGS="$ac_save_CFLAGS" | |
27224 | ||
27225 | ||
27226 | # Check if AVX128 works | |
27227 | ||
27228 | ac_save_CFLAGS="$CFLAGS" | |
27229 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
27230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
27231 | /* end confdefs.h. */ | |
27232 | ||
27233 | void foo() | |
27234 | { | |
27235 | } | |
27236 | int | |
27237 | main () | |
27238 | { | |
27239 | ||
27240 | ; | |
27241 | return 0; | |
27242 | } | |
27243 | _ACEOF | |
27244 | if ac_fn_c_try_compile "$LINENO"; then : | |
27245 | ||
27246 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
27247 | ||
27248 | if true; then | |
27249 | HAVE_AVX128_TRUE= | |
27250 | HAVE_AVX128_FALSE='#' | |
27251 | else | |
27252 | HAVE_AVX128_TRUE='#' | |
27253 | HAVE_AVX128_FALSE= | |
27254 | fi | |
27255 | ||
5596d26a TK |
27256 | else |
27257 | if false; then | |
27258 | HAVE_AVX128_TRUE= | |
27259 | HAVE_AVX128_FALSE='#' | |
27260 | else | |
27261 | HAVE_AVX128_TRUE='#' | |
27262 | HAVE_AVX128_FALSE= | |
27263 | fi | |
27264 | ||
1d5cf7fc TK |
27265 | fi |
27266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
27267 | CFLAGS="$ac_save_CFLAGS" | |
27268 | ||
27269 | ||
3c36aa6b JJ |
27270 | # Determine what GCC version number to use in filesystem paths. |
27271 | ||
27272 | get_gcc_base_ver="cat" | |
27273 | ||
27274 | # Check whether --with-gcc-major-version-only was given. | |
27275 | if test "${with_gcc_major_version_only+set}" = set; then : | |
27276 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 27277 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
27278 | fi |
27279 | ||
27280 | fi | |
27281 | ||
27282 | ||
27283 | ||
27284 | ||
6de9cd9a DN |
27285 | cat >confcache <<\_ACEOF |
27286 | # This file is a shell script that caches the results of configure | |
27287 | # tests run on this system so they can be shared between configure | |
27288 | # scripts and configure runs, see configure's option --config-cache. | |
27289 | # It is not useful on other systems. If it contains results you don't | |
27290 | # want to keep, you may remove or edit it. | |
27291 | # | |
27292 | # config.status only pays attention to the cache file if you give it | |
27293 | # the --recheck option to rerun configure. | |
27294 | # | |
27295 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
27296 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
27297 | # following values. | |
27298 | ||
27299 | _ACEOF | |
27300 | ||
27301 | # The following way of writing the cache mishandles newlines in values, | |
27302 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 27303 | # So, we kill variables containing newlines. |
6de9cd9a DN |
27304 | # Ultrix sh set writes to stderr and can't be redirected directly, |
27305 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
27306 | ( |
27307 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
27308 | eval ac_val=\$$ac_var | |
27309 | case $ac_val in #( | |
27310 | *${as_nl}*) | |
27311 | case $ac_var in #( | |
27312 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
27313 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
27314 | esac | |
27315 | case $ac_var in #( | |
27316 | _ | IFS | as_nl) ;; #( | |
27317 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
27318 | *) { eval $ac_var=; unset $ac_var;} ;; | |
27319 | esac ;; | |
27320 | esac | |
27321 | done | |
27322 | ||
6de9cd9a | 27323 | (set) 2>&1 | |
5213506e RW |
27324 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
27325 | *${as_nl}ac_space=\ *) | |
27326 | # `set' does not quote correctly, so add quotes: double-quote | |
27327 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
27328 | sed -n \ |
27329 | "s/'/'\\\\''/g; | |
27330 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 27331 | ;; #( |
6de9cd9a DN |
27332 | *) |
27333 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 27334 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 27335 | ;; |
5213506e RW |
27336 | esac | |
27337 | sort | |
27338 | ) | | |
6de9cd9a | 27339 | sed ' |
5213506e | 27340 | /^ac_cv_env_/b end |
6de9cd9a | 27341 | t clear |
5213506e | 27342 | :clear |
6de9cd9a DN |
27343 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
27344 | t end | |
5213506e RW |
27345 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
27346 | :end' >>confcache | |
27347 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
27348 | if test -w "$cache_file"; then | |
22e05272 | 27349 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
27350 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
27351 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
27352 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
27353 | cat confcache >"$cache_file" | |
27354 | else | |
27355 | case $cache_file in #( | |
27356 | */* | ?:*) | |
27357 | mv -f confcache "$cache_file"$$ && | |
27358 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
27359 | *) | |
27360 | mv -f confcache "$cache_file" ;; | |
27361 | esac | |
27362 | fi | |
27363 | fi | |
6de9cd9a | 27364 | else |
5213506e RW |
27365 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
27366 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
27367 | fi |
27368 | fi | |
27369 | rm -f confcache | |
27370 | ||
96b8a615 AJ |
27371 | if test ${multilib} = yes; then |
27372 | multilib_arg="--enable-multilib" | |
6de9cd9a | 27373 | else |
96b8a615 | 27374 | multilib_arg= |
6de9cd9a | 27375 | fi |
6de9cd9a | 27376 | |
1ec601bf FXC |
27377 | # Write our Makefile and spec file. |
27378 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
96b8a615 | 27379 | |
6de9cd9a DN |
27380 | cat >confcache <<\_ACEOF |
27381 | # This file is a shell script that caches the results of configure | |
27382 | # tests run on this system so they can be shared between configure | |
27383 | # scripts and configure runs, see configure's option --config-cache. | |
27384 | # It is not useful on other systems. If it contains results you don't | |
27385 | # want to keep, you may remove or edit it. | |
27386 | # | |
27387 | # config.status only pays attention to the cache file if you give it | |
27388 | # the --recheck option to rerun configure. | |
27389 | # | |
27390 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
27391 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
27392 | # following values. | |
27393 | ||
27394 | _ACEOF | |
27395 | ||
27396 | # The following way of writing the cache mishandles newlines in values, | |
27397 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 27398 | # So, we kill variables containing newlines. |
6de9cd9a DN |
27399 | # Ultrix sh set writes to stderr and can't be redirected directly, |
27400 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
27401 | ( |
27402 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
27403 | eval ac_val=\$$ac_var | |
27404 | case $ac_val in #( | |
27405 | *${as_nl}*) | |
27406 | case $ac_var in #( | |
27407 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
27408 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
27409 | esac | |
27410 | case $ac_var in #( | |
27411 | _ | IFS | as_nl) ;; #( | |
27412 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
27413 | *) { eval $ac_var=; unset $ac_var;} ;; | |
27414 | esac ;; | |
27415 | esac | |
27416 | done | |
27417 | ||
6de9cd9a | 27418 | (set) 2>&1 | |
5213506e RW |
27419 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
27420 | *${as_nl}ac_space=\ *) | |
27421 | # `set' does not quote correctly, so add quotes: double-quote | |
27422 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
6de9cd9a DN |
27423 | sed -n \ |
27424 | "s/'/'\\\\''/g; | |
27425 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 27426 | ;; #( |
6de9cd9a DN |
27427 | *) |
27428 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 27429 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
6de9cd9a | 27430 | ;; |
5213506e RW |
27431 | esac | |
27432 | sort | |
27433 | ) | | |
6de9cd9a | 27434 | sed ' |
5213506e | 27435 | /^ac_cv_env_/b end |
6de9cd9a | 27436 | t clear |
5213506e | 27437 | :clear |
6de9cd9a DN |
27438 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
27439 | t end | |
5213506e RW |
27440 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
27441 | :end' >>confcache | |
27442 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
27443 | if test -w "$cache_file"; then | |
22e05272 | 27444 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
27445 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
27446 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
27447 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
27448 | cat confcache >"$cache_file" | |
27449 | else | |
27450 | case $cache_file in #( | |
27451 | */* | ?:*) | |
27452 | mv -f confcache "$cache_file"$$ && | |
27453 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
27454 | *) | |
27455 | mv -f confcache "$cache_file" ;; | |
27456 | esac | |
27457 | fi | |
27458 | fi | |
6de9cd9a | 27459 | else |
5213506e RW |
27460 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
27461 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
6de9cd9a DN |
27462 | fi |
27463 | fi | |
27464 | rm -f confcache | |
27465 | ||
27466 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
27467 | # Let make expand exec_prefix. | |
27468 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
27469 | ||
6de9cd9a DN |
27470 | DEFS=-DHAVE_CONFIG_H |
27471 | ||
27472 | ac_libobjs= | |
27473 | ac_ltlibobjs= | |
22e05272 | 27474 | U= |
6de9cd9a DN |
27475 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
27476 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
27477 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
27478 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
27479 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
27480 | # will be set to the directory where LIBOBJS objects are built. | |
27481 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
27482 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
6de9cd9a DN |
27483 | done |
27484 | LIBOBJS=$ac_libobjs | |
27485 | ||
27486 | LTLIBOBJS=$ac_ltlibobjs | |
27487 | ||
27488 | ||
b808ac33 | 27489 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
22e05272 | 27490 | as_fn_error $? "conditional \"onestep\" was never defined. |
5213506e RW |
27491 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27492 | fi | |
22e05272 JM |
27493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
27494 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
27495 | if test -n "$am_sleep_pid"; then | |
27496 | # Hide warnings about reused PIDs. | |
27497 | wait $am_sleep_pid 2>/dev/null | |
27498 | fi | |
27499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
27500 | $as_echo "done" >&6; } | |
5213506e RW |
27501 | if test -n "$EXEEXT"; then |
27502 | am__EXEEXT_TRUE= | |
27503 | am__EXEEXT_FALSE='#' | |
27504 | else | |
27505 | am__EXEEXT_TRUE='#' | |
27506 | am__EXEEXT_FALSE= | |
b808ac33 | 27507 | fi |
5213506e | 27508 | |
6de9cd9a | 27509 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 27510 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
5213506e | 27511 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6de9cd9a | 27512 | fi |
679c0f9a | 27513 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 27514 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
5213506e | 27515 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a TT |
27516 | fi |
27517 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 27518 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
5213506e | 27519 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
679c0f9a | 27520 | fi |
21be0a5a | 27521 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
22e05272 | 27522 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
21be0a5a JB |
27523 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27524 | fi | |
c0e7e2bf | 27525 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
22e05272 | 27526 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
5213506e | 27527 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
c0e7e2bf | 27528 | fi |
49ea7a0e | 27529 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
22e05272 | 27530 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
49ea7a0e RO |
27531 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27532 | fi | |
27533 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
22e05272 | 27534 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
49ea7a0e RO |
27535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27536 | fi | |
ee95f928 | 27537 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
22e05272 | 27538 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
ee95f928 BS |
27539 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27540 | fi | |
66dbcf2d | 27541 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
22e05272 | 27542 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
66dbcf2d RO |
27543 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27544 | fi | |
1ec601bf | 27545 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
22e05272 | 27546 | as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. |
1ec601bf FXC |
27547 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27548 | fi | |
8b198102 | 27549 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
22e05272 | 27550 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
8b198102 FXC |
27551 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27552 | fi | |
1d5cf7fc | 27553 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 27554 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
1d5cf7fc TK |
27555 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27556 | fi | |
5596d26a | 27557 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
22e05272 | 27558 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
5596d26a TK |
27559 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27560 | fi | |
6de9cd9a | 27561 | |
22e05272 | 27562 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 27563 | ac_write_fail=0 |
6de9cd9a DN |
27564 | ac_clean_files_save=$ac_clean_files |
27565 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
27566 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
27567 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
27568 | as_write_fail=0 | |
27569 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
6de9cd9a DN |
27570 | #! $SHELL |
27571 | # Generated by $as_me. | |
27572 | # Run this file to recreate the current configuration. | |
27573 | # Compiler output produced by configure, useful for debugging | |
27574 | # configure, is in config.log if it exists. | |
27575 | ||
27576 | debug=false | |
27577 | ac_cs_recheck=false | |
27578 | ac_cs_silent=false | |
6de9cd9a | 27579 | |
5213506e RW |
27580 | SHELL=\${CONFIG_SHELL-$SHELL} |
27581 | export SHELL | |
27582 | _ASEOF | |
27583 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
27584 | ## -------------------- ## | |
27585 | ## M4sh Initialization. ## | |
27586 | ## -------------------- ## | |
27587 | ||
27588 | # Be more Bourne compatible | |
27589 | DUALCASE=1; export DUALCASE # for MKS sh | |
27590 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
6de9cd9a DN |
27591 | emulate sh |
27592 | NULLCMD=: | |
5213506e | 27593 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
6de9cd9a DN |
27594 | # is contrary to our usage. Disable this feature. |
27595 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
27596 | setopt NO_GLOB_SUBST |
27597 | else | |
27598 | case `(set -o) 2>/dev/null` in #( | |
27599 | *posix*) : | |
27600 | set -o posix ;; #( | |
27601 | *) : | |
27602 | ;; | |
27603 | esac | |
6de9cd9a | 27604 | fi |
6de9cd9a | 27605 | |
5213506e RW |
27606 | |
27607 | as_nl=' | |
27608 | ' | |
27609 | export as_nl | |
27610 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
27611 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
27612 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
27613 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
27614 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
27615 | # but without wasting forks for bash or zsh. | |
27616 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
27617 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27618 | as_echo='print -r --' | |
27619 | as_echo_n='print -rn --' | |
27620 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27621 | as_echo='printf %s\n' | |
27622 | as_echo_n='printf %s' | |
27623 | else | |
27624 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
27625 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
27626 | as_echo_n='/usr/ucb/echo -n' | |
27627 | else | |
27628 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
27629 | as_echo_n_body='eval | |
27630 | arg=$1; | |
27631 | case $arg in #( | |
27632 | *"$as_nl"*) | |
27633 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
27634 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
27635 | esac; | |
27636 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
27637 | ' | |
27638 | export as_echo_n_body | |
27639 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
27640 | fi | |
27641 | export as_echo_body | |
27642 | as_echo='sh -c $as_echo_body as_echo' | |
27643 | fi | |
27644 | ||
27645 | # The user is always right. | |
27646 | if test "${PATH_SEPARATOR+set}" != set; then | |
27647 | PATH_SEPARATOR=: | |
27648 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
27649 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
27650 | PATH_SEPARATOR=';' | |
27651 | } | |
6de9cd9a DN |
27652 | fi |
27653 | ||
27654 | ||
5213506e RW |
27655 | # IFS |
27656 | # We need space, tab and new line, in precisely that order. Quoting is | |
27657 | # there to prevent editors from complaining about space-tab. | |
27658 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
27659 | # splitting by setting IFS to empty value.) | |
27660 | IFS=" "" $as_nl" | |
27661 | ||
27662 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 27663 | as_myself= |
5213506e RW |
27664 | case $0 in #(( |
27665 | *[\\/]* ) as_myself=$0 ;; | |
27666 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27667 | for as_dir in $PATH | |
27668 | do | |
27669 | IFS=$as_save_IFS | |
27670 | test -z "$as_dir" && as_dir=. | |
27671 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
27672 | done | |
27673 | IFS=$as_save_IFS | |
27674 | ||
27675 | ;; | |
27676 | esac | |
27677 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
27678 | # in which case we are not to be found in the path. | |
27679 | if test "x$as_myself" = x; then | |
27680 | as_myself=$0 | |
27681 | fi | |
27682 | if test ! -f "$as_myself"; then | |
27683 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
27684 | exit 1 | |
27685 | fi | |
27686 | ||
27687 | # Unset variables that we do not need and which cause bugs (e.g. in | |
27688 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
27689 | # suppresses any "Segmentation fault" message there. '((' could | |
27690 | # trigger a bug in pdksh 5.2.14. | |
27691 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
27692 | do eval test x\${$as_var+set} = xset \ | |
27693 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
27694 | done | |
6de9cd9a DN |
27695 | PS1='$ ' |
27696 | PS2='> ' | |
27697 | PS4='+ ' | |
27698 | ||
27699 | # NLS nuisances. | |
5213506e RW |
27700 | LC_ALL=C |
27701 | export LC_ALL | |
27702 | LANGUAGE=C | |
27703 | export LANGUAGE | |
27704 | ||
27705 | # CDPATH. | |
27706 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27707 | ||
27708 | ||
22e05272 JM |
27709 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
27710 | # ---------------------------------------- | |
5213506e RW |
27711 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
27712 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 27713 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
27714 | as_fn_error () |
27715 | { | |
22e05272 JM |
27716 | as_status=$1; test $as_status -eq 0 && as_status=1 |
27717 | if test "$4"; then | |
27718 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
27719 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
6de9cd9a | 27720 | fi |
22e05272 | 27721 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
27722 | as_fn_exit $as_status |
27723 | } # as_fn_error | |
27724 | ||
27725 | ||
27726 | # as_fn_set_status STATUS | |
27727 | # ----------------------- | |
27728 | # Set $? to STATUS, without forking. | |
27729 | as_fn_set_status () | |
27730 | { | |
27731 | return $1 | |
27732 | } # as_fn_set_status | |
27733 | ||
27734 | # as_fn_exit STATUS | |
27735 | # ----------------- | |
27736 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
27737 | as_fn_exit () | |
27738 | { | |
27739 | set +e | |
27740 | as_fn_set_status $1 | |
27741 | exit $1 | |
27742 | } # as_fn_exit | |
27743 | ||
27744 | # as_fn_unset VAR | |
27745 | # --------------- | |
27746 | # Portably unset VAR. | |
27747 | as_fn_unset () | |
27748 | { | |
27749 | { eval $1=; unset $1;} | |
27750 | } | |
27751 | as_unset=as_fn_unset | |
27752 | # as_fn_append VAR VALUE | |
27753 | # ---------------------- | |
27754 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
27755 | # advantage of any shell optimizations that allow amortized linear growth over | |
27756 | # repeated appends, instead of the typical quadratic growth present in naive | |
27757 | # implementations. | |
27758 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
27759 | eval 'as_fn_append () | |
27760 | { | |
27761 | eval $1+=\$2 | |
27762 | }' | |
27763 | else | |
27764 | as_fn_append () | |
27765 | { | |
27766 | eval $1=\$$1\$2 | |
27767 | } | |
27768 | fi # as_fn_append | |
27769 | ||
27770 | # as_fn_arith ARG... | |
27771 | # ------------------ | |
27772 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
27773 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
27774 | # must be portable across $(()) and expr. | |
27775 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
27776 | eval 'as_fn_arith () | |
27777 | { | |
27778 | as_val=$(( $* )) | |
27779 | }' | |
27780 | else | |
27781 | as_fn_arith () | |
27782 | { | |
27783 | as_val=`expr "$@" || test $? -eq 1` | |
27784 | } | |
27785 | fi # as_fn_arith | |
6de9cd9a | 27786 | |
5213506e RW |
27787 | |
27788 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
27789 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6de9cd9a DN |
27790 | as_expr=expr |
27791 | else | |
27792 | as_expr=false | |
27793 | fi | |
27794 | ||
5213506e | 27795 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6de9cd9a DN |
27796 | as_basename=basename |
27797 | else | |
27798 | as_basename=false | |
27799 | fi | |
27800 | ||
5213506e RW |
27801 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
27802 | as_dirname=dirname | |
27803 | else | |
27804 | as_dirname=false | |
27805 | fi | |
6de9cd9a | 27806 | |
5213506e | 27807 | as_me=`$as_basename -- "$0" || |
6de9cd9a DN |
27808 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
27809 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
27810 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27811 | $as_echo X/"$0" | | |
27812 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
27813 | s//\1/ | |
27814 | q | |
27815 | } | |
27816 | /^X\/\(\/\/\)$/{ | |
27817 | s//\1/ | |
27818 | q | |
27819 | } | |
27820 | /^X\/\(\/\).*/{ | |
27821 | s//\1/ | |
27822 | q | |
27823 | } | |
27824 | s/.*/./; q'` | |
38d24731 | 27825 | |
38d24731 RW |
27826 | # Avoid depending upon Character Ranges. |
27827 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
27828 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
27829 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
27830 | as_cr_digits='0123456789' | |
27831 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
27832 | ||
5213506e RW |
27833 | ECHO_C= ECHO_N= ECHO_T= |
27834 | case `echo -n x` in #((((( | |
27835 | -n*) | |
27836 | case `echo 'xy\c'` in | |
27837 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
27838 | xy) ECHO_C='\c';; | |
27839 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
27840 | ECHO_T=' ';; | |
27841 | esac;; | |
27842 | *) | |
27843 | ECHO_N='-n';; | |
6de9cd9a DN |
27844 | esac |
27845 | ||
5213506e RW |
27846 | rm -f conf$$ conf$$.exe conf$$.file |
27847 | if test -d conf$$.dir; then | |
27848 | rm -f conf$$.dir/conf$$.file | |
6de9cd9a | 27849 | else |
5213506e RW |
27850 | rm -f conf$$.dir |
27851 | mkdir conf$$.dir 2>/dev/null | |
6de9cd9a | 27852 | fi |
5213506e RW |
27853 | if (echo >conf$$.file) 2>/dev/null; then |
27854 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38d24731 | 27855 | as_ln_s='ln -s' |
5213506e RW |
27856 | # ... but there are two gotchas: |
27857 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
27858 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 27859 | # In both cases, we have to default to `cp -pR'. |
5213506e | 27860 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 27861 | as_ln_s='cp -pR' |
5213506e RW |
27862 | elif ln conf$$.file conf$$ 2>/dev/null; then |
27863 | as_ln_s=ln | |
27864 | else | |
22e05272 | 27865 | as_ln_s='cp -pR' |
38d24731 | 27866 | fi |
6de9cd9a | 27867 | else |
22e05272 | 27868 | as_ln_s='cp -pR' |
6de9cd9a | 27869 | fi |
5213506e RW |
27870 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
27871 | rmdir conf$$.dir 2>/dev/null | |
27872 | ||
27873 | ||
27874 | # as_fn_mkdir_p | |
27875 | # ------------- | |
27876 | # Create "$as_dir" as a directory, including parents if necessary. | |
27877 | as_fn_mkdir_p () | |
27878 | { | |
27879 | ||
27880 | case $as_dir in #( | |
27881 | -*) as_dir=./$as_dir;; | |
27882 | esac | |
27883 | test -d "$as_dir" || eval $as_mkdir_p || { | |
27884 | as_dirs= | |
27885 | while :; do | |
27886 | case $as_dir in #( | |
27887 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27888 | *) as_qdir=$as_dir;; | |
27889 | esac | |
27890 | as_dirs="'$as_qdir' $as_dirs" | |
27891 | as_dir=`$as_dirname -- "$as_dir" || | |
27892 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27893 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27894 | X"$as_dir" : 'X\(//\)$' \| \ | |
27895 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27896 | $as_echo X"$as_dir" | | |
27897 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27898 | s//\1/ | |
27899 | q | |
27900 | } | |
27901 | /^X\(\/\/\)[^/].*/{ | |
27902 | s//\1/ | |
27903 | q | |
27904 | } | |
27905 | /^X\(\/\/\)$/{ | |
27906 | s//\1/ | |
27907 | q | |
27908 | } | |
27909 | /^X\(\/\).*/{ | |
27910 | s//\1/ | |
27911 | q | |
27912 | } | |
27913 | s/.*/./; q'` | |
27914 | test -d "$as_dir" && break | |
27915 | done | |
27916 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 27917 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e | 27918 | |
6de9cd9a | 27919 | |
5213506e | 27920 | } # as_fn_mkdir_p |
6de9cd9a | 27921 | if mkdir -p . 2>/dev/null; then |
5213506e | 27922 | as_mkdir_p='mkdir -p "$as_dir"' |
6de9cd9a DN |
27923 | else |
27924 | test -d ./-p && rmdir ./-p | |
27925 | as_mkdir_p=false | |
27926 | fi | |
27927 | ||
22e05272 JM |
27928 | |
27929 | # as_fn_executable_p FILE | |
27930 | # ----------------------- | |
27931 | # Test if FILE is an executable regular file. | |
27932 | as_fn_executable_p () | |
27933 | { | |
27934 | test -f "$1" && test -x "$1" | |
27935 | } # as_fn_executable_p | |
27936 | as_test_x='test -x' | |
27937 | as_executable_p=as_fn_executable_p | |
6de9cd9a DN |
27938 | |
27939 | # Sed expression to map a string onto a valid CPP name. | |
27940 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
27941 | ||
27942 | # Sed expression to map a string onto a valid variable name. | |
27943 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
27944 | ||
27945 | ||
6de9cd9a | 27946 | exec 6>&1 |
5213506e RW |
27947 | ## ----------------------------------- ## |
27948 | ## Main body of $CONFIG_STATUS script. ## | |
27949 | ## ----------------------------------- ## | |
27950 | _ASEOF | |
27951 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
27952 | ||
27953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27954 | # Save the log message, to keep $0 and so on meaningful, and to | |
6de9cd9a | 27955 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
27956 | # values after options handling. |
27957 | ac_log=" | |
0dce3ca1 | 27958 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
22e05272 | 27959 | generated by GNU Autoconf 2.69. Invocation command line was |
6de9cd9a DN |
27960 | |
27961 | CONFIG_FILES = $CONFIG_FILES | |
27962 | CONFIG_HEADERS = $CONFIG_HEADERS | |
27963 | CONFIG_LINKS = $CONFIG_LINKS | |
27964 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
27965 | $ $0 $@ | |
27966 | ||
5213506e RW |
27967 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
27968 | " | |
27969 | ||
6de9cd9a DN |
27970 | _ACEOF |
27971 | ||
5213506e RW |
27972 | case $ac_config_files in *" |
27973 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
27974 | esac | |
78511f8b | 27975 | |
5213506e RW |
27976 | case $ac_config_headers in *" |
27977 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
27978 | esac | |
38d24731 | 27979 | |
38d24731 | 27980 | |
5213506e RW |
27981 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27982 | # Files that config.status was made for. | |
27983 | config_files="$ac_config_files" | |
27984 | config_headers="$ac_config_headers" | |
27985 | config_commands="$ac_config_commands" | |
6de9cd9a | 27986 | |
5213506e | 27987 | _ACEOF |
38d24731 | 27988 | |
5213506e | 27989 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a | 27990 | ac_cs_usage="\ |
5213506e RW |
27991 | \`$as_me' instantiates files and other configuration actions |
27992 | from templates according to the current configuration. Unless the files | |
27993 | and actions are specified as TAGs, all are instantiated by default. | |
6de9cd9a | 27994 | |
5213506e | 27995 | Usage: $0 [OPTION]... [TAG]... |
6de9cd9a DN |
27996 | |
27997 | -h, --help print this help, then exit | |
5213506e | 27998 | -V, --version print version number and configuration settings, then exit |
22e05272 | 27999 | --config print configuration, then exit |
5213506e RW |
28000 | -q, --quiet, --silent |
28001 | do not print progress messages | |
6de9cd9a DN |
28002 | -d, --debug don't remove temporary files |
28003 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
28004 | --file=FILE[:TEMPLATE] |
28005 | instantiate the configuration file FILE | |
28006 | --header=FILE[:TEMPLATE] | |
28007 | instantiate the configuration header FILE | |
6de9cd9a DN |
28008 | |
28009 | Configuration files: | |
28010 | $config_files | |
28011 | ||
28012 | Configuration headers: | |
28013 | $config_headers | |
28014 | ||
28015 | Configuration commands: | |
28016 | $config_commands | |
28017 | ||
5213506e RW |
28018 | Report bugs to the package provider. |
28019 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
28020 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
38d24731 | 28021 | |
5213506e RW |
28022 | _ACEOF |
28023 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 28024 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
6de9cd9a | 28025 | ac_cs_version="\\ |
0dce3ca1 | 28026 | GNU Fortran Runtime Library config.status 0.3 |
22e05272 JM |
28027 | configured by $0, generated by GNU Autoconf 2.69, |
28028 | with options \\"\$ac_cs_config\\" | |
6de9cd9a | 28029 | |
22e05272 | 28030 | Copyright (C) 2012 Free Software Foundation, Inc. |
6de9cd9a DN |
28031 | This config.status script is free software; the Free Software Foundation |
28032 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
28033 | |
28034 | ac_pwd='$ac_pwd' | |
28035 | srcdir='$srcdir' | |
28036 | INSTALL='$INSTALL' | |
28037 | MKDIR_P='$MKDIR_P' | |
28038 | AWK='$AWK' | |
28039 | test -n "\$AWK" || AWK=awk | |
6de9cd9a DN |
28040 | _ACEOF |
28041 | ||
5213506e RW |
28042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28043 | # The default lists apply if the user does not specify any file. | |
6de9cd9a DN |
28044 | ac_need_defaults=: |
28045 | while test $# != 0 | |
28046 | do | |
28047 | case $1 in | |
22e05272 | 28048 | --*=?*) |
5213506e RW |
28049 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
28050 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6de9cd9a DN |
28051 | ac_shift=: |
28052 | ;; | |
22e05272 JM |
28053 | --*=) |
28054 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
28055 | ac_optarg= | |
28056 | ac_shift=: | |
28057 | ;; | |
5213506e | 28058 | *) |
6de9cd9a DN |
28059 | ac_option=$1 |
28060 | ac_optarg=$2 | |
28061 | ac_shift=shift | |
28062 | ;; | |
6de9cd9a DN |
28063 | esac |
28064 | ||
28065 | case $ac_option in | |
28066 | # Handling of the options. | |
6de9cd9a DN |
28067 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
28068 | ac_cs_recheck=: ;; | |
5213506e RW |
28069 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
28070 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
28071 | --config | --confi | --conf | --con | --co | --c ) |
28072 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 28073 | --debug | --debu | --deb | --de | --d | -d ) |
6de9cd9a DN |
28074 | debug=: ;; |
28075 | --file | --fil | --fi | --f ) | |
28076 | $ac_shift | |
5213506e RW |
28077 | case $ac_optarg in |
28078 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 28079 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
28080 | esac |
28081 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6de9cd9a DN |
28082 | ac_need_defaults=false;; |
28083 | --header | --heade | --head | --hea ) | |
28084 | $ac_shift | |
5213506e RW |
28085 | case $ac_optarg in |
28086 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
28087 | esac | |
28088 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6de9cd9a | 28089 | ac_need_defaults=false;; |
5213506e RW |
28090 | --he | --h) |
28091 | # Conflict between --help and --header | |
22e05272 | 28092 | as_fn_error $? "ambiguous option: \`$1' |
5213506e RW |
28093 | Try \`$0 --help' for more information.";; |
28094 | --help | --hel | -h ) | |
28095 | $as_echo "$ac_cs_usage"; exit ;; | |
6de9cd9a DN |
28096 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
28097 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
28098 | ac_cs_silent=: ;; | |
28099 | ||
28100 | # This is an error. | |
22e05272 | 28101 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 28102 | Try \`$0 --help' for more information." ;; |
6de9cd9a | 28103 | |
5213506e RW |
28104 | *) as_fn_append ac_config_targets " $1" |
28105 | ac_need_defaults=false ;; | |
6de9cd9a DN |
28106 | |
28107 | esac | |
28108 | shift | |
28109 | done | |
28110 | ||
28111 | ac_configure_extra_args= | |
28112 | ||
28113 | if $ac_cs_silent; then | |
28114 | exec 6>/dev/null | |
28115 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
28116 | fi | |
28117 | ||
28118 | _ACEOF | |
5213506e | 28119 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6de9cd9a | 28120 | if \$ac_cs_recheck; then |
22e05272 | 28121 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
28122 | shift |
28123 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
28124 | CONFIG_SHELL='$SHELL' | |
28125 | export CONFIG_SHELL | |
28126 | exec "\$@" | |
6de9cd9a DN |
28127 | fi |
28128 | ||
1cf3d07d | 28129 | _ACEOF |
5213506e RW |
28130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28131 | exec 5>>config.log | |
28132 | { | |
28133 | echo | |
28134 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
28135 | ## Running $as_me. ## | |
28136 | _ASBOX | |
28137 | $as_echo "$ac_log" | |
28138 | } >&5 | |
1cf3d07d | 28139 | |
5213506e RW |
28140 | _ACEOF |
28141 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 28142 | # |
5213506e | 28143 | # INIT-COMMANDS |
1cf3d07d SE |
28144 | # |
28145 | ||
1cf3d07d SE |
28146 | srcdir="$srcdir" |
28147 | host="$host" | |
28148 | target="$target" | |
28149 | with_multisubdir="$with_multisubdir" | |
28150 | with_multisrctop="$with_multisrctop" | |
28151 | with_target_subdir="$with_target_subdir" | |
28152 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
28153 | multi_basedir="$multi_basedir" | |
28154 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
28155 | CC="$CC" | |
2017c370 JB |
28156 | CXX="$CXX" |
28157 | GFORTRAN="$GFORTRAN" | |
22e05272 | 28158 | GDC="$GDC" |
1cf3d07d SE |
28159 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
28160 | ||
28161 | ||
28162 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
28163 | # if CDPATH is set. | |
28164 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
28165 | ||
28166 | sed_quote_subst='$sed_quote_subst' | |
28167 | double_quote_subst='$double_quote_subst' | |
28168 | delay_variable_subst='$delay_variable_subst' | |
66dbcf2d RO |
28169 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
28170 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
28171 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
28172 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
28173 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
28174 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
28175 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
28176 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
28177 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
28178 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
28179 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
28180 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
28181 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
28182 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
28183 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
28184 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
28185 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
28186 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
28187 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
28188 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
43e02a8a RW |
28189 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
28190 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
28191 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
28192 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
28193 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
28194 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
28195 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
28196 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
28197 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
28198 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
28199 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
28200 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
28201 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
28202 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
28203 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
28204 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
28205 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
28206 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28207 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28208 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
28209 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
28210 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
28211 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
28212 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
28213 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
28214 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
28215 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
28216 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
28217 | 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"`' | |
28218 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
28219 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
28220 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
28221 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
28222 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
28223 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
28224 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
28225 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
28226 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
28227 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
28228 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
28229 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
28230 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
28231 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
28232 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
28233 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
28234 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
28235 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
28236 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
28237 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
28238 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
28239 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
28240 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
28241 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
28242 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
28243 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
28244 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
28245 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
28246 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
28247 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
28248 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
28249 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
28250 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
28251 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
28252 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
28253 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
28254 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
28255 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
28256 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
28257 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
28258 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
28259 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
28260 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
28261 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
28262 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
28263 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
28264 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
28265 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
28266 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
28267 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
28268 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
28269 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
28270 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
28271 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
28272 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
28273 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
28274 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
28275 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
28276 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28277 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
28278 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
28279 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
28280 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
28281 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
28282 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
28283 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
28284 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
28285 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
28286 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
28287 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
28288 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
28289 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
28290 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
28291 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
28292 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
28293 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
28294 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
28295 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
28296 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28297 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28298 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28299 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
28300 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
28301 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28302 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
28303 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
28304 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
28305 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
28306 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
28307 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
28308 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28309 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28310 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
28311 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28312 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28313 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28314 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28315 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28316 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28317 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
28318 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28319 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
28320 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28321 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
28322 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
28323 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
28324 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
28325 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
28326 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
28327 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
28328 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
28329 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
28330 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
28331 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
28332 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28333 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
28334 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
28335 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
28336 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
28337 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
28338 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
28339 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
28340 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
28341 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
28342 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
28343 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
28344 | |
28345 | LTCC='$LTCC' | |
28346 | LTCFLAGS='$LTCFLAGS' | |
28347 | compiler='$compiler_DEFAULT' | |
28348 | ||
43e02a8a RW |
28349 | # A function that is used when there is no print builtin or printf. |
28350 | func_fallback_echo () | |
28351 | { | |
28352 | eval 'cat <<_LTECHO_EOF | |
28353 | \$1 | |
28354 | _LTECHO_EOF' | |
28355 | } | |
28356 | ||
1cf3d07d | 28357 | # Quote evaled strings. |
66dbcf2d | 28358 | for var in SED \ |
1cf3d07d SE |
28359 | GREP \ |
28360 | EGREP \ | |
28361 | FGREP \ | |
66dbcf2d RO |
28362 | SHELL \ |
28363 | ECHO \ | |
1cf3d07d SE |
28364 | LD \ |
28365 | NM \ | |
28366 | LN_S \ | |
28367 | lt_SP2NL \ | |
28368 | lt_NL2SP \ | |
28369 | reload_flag \ | |
d58dead8 | 28370 | OBJDUMP \ |
1cf3d07d SE |
28371 | deplibs_check_method \ |
28372 | file_magic_cmd \ | |
28373 | AR \ | |
28374 | AR_FLAGS \ | |
28375 | STRIP \ | |
28376 | RANLIB \ | |
28377 | CC \ | |
28378 | CFLAGS \ | |
28379 | compiler \ | |
28380 | lt_cv_sys_global_symbol_pipe \ | |
28381 | lt_cv_sys_global_symbol_to_cdecl \ | |
28382 | lt_cv_sys_global_symbol_to_c_name_address \ | |
d58dead8 | 28383 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
28384 | lt_prog_compiler_no_builtin_flag \ |
28385 | lt_prog_compiler_wl \ | |
28386 | lt_prog_compiler_pic \ | |
28387 | lt_prog_compiler_static \ | |
28388 | lt_cv_prog_compiler_c_o \ | |
28389 | need_locks \ | |
d58dead8 PG |
28390 | DSYMUTIL \ |
28391 | NMEDIT \ | |
28392 | LIPO \ | |
28393 | OTOOL \ | |
28394 | OTOOL64 \ | |
1cf3d07d SE |
28395 | shrext_cmds \ |
28396 | export_dynamic_flag_spec \ | |
28397 | whole_archive_flag_spec \ | |
28398 | compiler_needs_object \ | |
28399 | with_gnu_ld \ | |
28400 | allow_undefined_flag \ | |
28401 | no_undefined_flag \ | |
28402 | hardcode_libdir_flag_spec \ | |
28403 | hardcode_libdir_flag_spec_ld \ | |
28404 | hardcode_libdir_separator \ | |
28405 | fix_srcfile_path \ | |
28406 | exclude_expsyms \ | |
28407 | include_expsyms \ | |
28408 | file_list_spec \ | |
28409 | variables_saved_for_relink \ | |
28410 | libname_spec \ | |
28411 | library_names_spec \ | |
28412 | soname_spec \ | |
43e02a8a | 28413 | install_override_mode \ |
1cf3d07d SE |
28414 | finish_eval \ |
28415 | old_striplib \ | |
28416 | striplib \ | |
d58dead8 | 28417 | compiler_lib_search_dirs \ |
1cf3d07d SE |
28418 | predep_objects \ |
28419 | postdep_objects \ | |
28420 | predeps \ | |
28421 | postdeps \ | |
28422 | compiler_lib_search_path \ | |
28423 | LD_FC \ | |
43e02a8a | 28424 | reload_flag_FC \ |
1cf3d07d SE |
28425 | compiler_FC \ |
28426 | lt_prog_compiler_no_builtin_flag_FC \ | |
28427 | lt_prog_compiler_wl_FC \ | |
28428 | lt_prog_compiler_pic_FC \ | |
28429 | lt_prog_compiler_static_FC \ | |
28430 | lt_cv_prog_compiler_c_o_FC \ | |
28431 | export_dynamic_flag_spec_FC \ | |
28432 | whole_archive_flag_spec_FC \ | |
28433 | compiler_needs_object_FC \ | |
28434 | with_gnu_ld_FC \ | |
28435 | allow_undefined_flag_FC \ | |
28436 | no_undefined_flag_FC \ | |
28437 | hardcode_libdir_flag_spec_FC \ | |
28438 | hardcode_libdir_flag_spec_ld_FC \ | |
28439 | hardcode_libdir_separator_FC \ | |
28440 | fix_srcfile_path_FC \ | |
28441 | exclude_expsyms_FC \ | |
28442 | include_expsyms_FC \ | |
28443 | file_list_spec_FC \ | |
d58dead8 | 28444 | compiler_lib_search_dirs_FC \ |
1cf3d07d SE |
28445 | predep_objects_FC \ |
28446 | postdep_objects_FC \ | |
28447 | predeps_FC \ | |
28448 | postdeps_FC \ | |
28449 | compiler_lib_search_path_FC; do | |
43e02a8a | 28450 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 28451 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 28452 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
28453 | ;; |
28454 | *) | |
28455 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
28456 | ;; | |
28457 | esac | |
28458 | done | |
28459 | ||
28460 | # Double-quote double-evaled strings. | |
28461 | for var in reload_cmds \ | |
28462 | old_postinstall_cmds \ | |
28463 | old_postuninstall_cmds \ | |
28464 | old_archive_cmds \ | |
28465 | extract_expsyms_cmds \ | |
28466 | old_archive_from_new_cmds \ | |
28467 | old_archive_from_expsyms_cmds \ | |
28468 | archive_cmds \ | |
28469 | archive_expsym_cmds \ | |
28470 | module_cmds \ | |
28471 | module_expsym_cmds \ | |
28472 | export_symbols_cmds \ | |
28473 | prelink_cmds \ | |
28474 | postinstall_cmds \ | |
28475 | postuninstall_cmds \ | |
28476 | finish_cmds \ | |
28477 | sys_lib_search_path_spec \ | |
28478 | sys_lib_dlsearch_path_spec \ | |
43e02a8a | 28479 | reload_cmds_FC \ |
1cf3d07d SE |
28480 | old_archive_cmds_FC \ |
28481 | old_archive_from_new_cmds_FC \ | |
28482 | old_archive_from_expsyms_cmds_FC \ | |
28483 | archive_cmds_FC \ | |
28484 | archive_expsym_cmds_FC \ | |
28485 | module_cmds_FC \ | |
28486 | module_expsym_cmds_FC \ | |
28487 | export_symbols_cmds_FC \ | |
28488 | prelink_cmds_FC; do | |
43e02a8a | 28489 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 28490 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 28491 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
28492 | ;; |
28493 | *) | |
28494 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
28495 | ;; | |
28496 | esac | |
28497 | done | |
28498 | ||
1cf3d07d SE |
28499 | ac_aux_dir='$ac_aux_dir' |
28500 | xsi_shell='$xsi_shell' | |
28501 | lt_shell_append='$lt_shell_append' | |
28502 | ||
28503 | # See if we are running on zsh, and set the options which allow our | |
28504 | # commands through without removal of \ escapes INIT. | |
28505 | if test -n "\${ZSH_VERSION+set}" ; then | |
28506 | setopt NO_GLOB_SUBST | |
28507 | fi | |
28508 | ||
28509 | ||
28510 | PACKAGE='$PACKAGE' | |
28511 | VERSION='$VERSION' | |
28512 | TIMESTAMP='$TIMESTAMP' | |
28513 | RM='$RM' | |
28514 | ofile='$ofile' | |
28515 | ||
28516 | ||
6de9cd9a | 28517 | |
6de9cd9a | 28518 | |
78511f8b | 28519 | |
6de9cd9a | 28520 | |
c13e029b PB |
28521 | GCC="$GCC" |
28522 | CC="$CC" | |
28523 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
28524 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
28525 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
28526 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
28527 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
28528 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
28529 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
28530 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
28531 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
28532 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
28533 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
4c4b3eb0 PB |
28534 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
28535 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
c13e029b | 28536 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
4c4b3eb0 PB |
28537 | |
28538 | ||
6de9cd9a DN |
28539 | _ACEOF |
28540 | ||
5213506e | 28541 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f489fba1 | 28542 | |
5213506e | 28543 | # Handling of arguments. |
6de9cd9a DN |
28544 | for ac_config_target in $ac_config_targets |
28545 | do | |
5213506e RW |
28546 | case $ac_config_target in |
28547 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
28548 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
28549 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
28550 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
28551 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
28552 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
1ec601bf | 28553 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
5213506e | 28554 | |
22e05272 | 28555 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6de9cd9a DN |
28556 | esac |
28557 | done | |
28558 | ||
5213506e | 28559 | |
6de9cd9a DN |
28560 | # If the user did not use the arguments to specify the items to instantiate, |
28561 | # then the envvar interface is used. Set only those that are not. | |
28562 | # We use the long form for the default assignment because of an extremely | |
28563 | # bizarre bug on SunOS 4.1.3. | |
28564 | if $ac_need_defaults; then | |
28565 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
28566 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
28567 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
28568 | fi | |
28569 | ||
28570 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 28571 | # simply because there is no reason against having it here, and in addition, |
6de9cd9a | 28572 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
28573 | # Hook for its removal unless debugging. |
28574 | # Note that there is a small window in which the directory will not be cleaned: | |
28575 | # after its creation but before its name has been assigned to `$tmp'. | |
6de9cd9a DN |
28576 | $debug || |
28577 | { | |
22e05272 | 28578 | tmp= ac_tmp= |
5213506e | 28579 | trap 'exit_status=$? |
22e05272 JM |
28580 | : "${ac_tmp:=$tmp}" |
28581 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
28582 | ' 0 |
28583 | trap 'as_fn_exit 1' 1 2 13 15 | |
6de9cd9a | 28584 | } |
6de9cd9a DN |
28585 | # Create a (secure) tmp directory for tmp files. |
28586 | ||
28587 | { | |
5213506e | 28588 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 28589 | test -d "$tmp" |
6de9cd9a DN |
28590 | } || |
28591 | { | |
5213506e RW |
28592 | tmp=./conf$$-$RANDOM |
28593 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
28594 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
28595 | ac_tmp=$tmp | |
5213506e RW |
28596 | |
28597 | # Set up the scripts for CONFIG_FILES section. | |
28598 | # No need to generate them if there are no CONFIG_FILES. | |
28599 | # This happens for instance with `./config.status config.h'. | |
28600 | if test -n "$CONFIG_FILES"; then | |
28601 | ||
28602 | ||
28603 | ac_cr=`echo X | tr X '\015'` | |
28604 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
28605 | # But we know of no other shell where ac_cr would be empty at this | |
28606 | # point, so we can use a bashism as a fallback. | |
28607 | if test "x$ac_cr" = x; then | |
28608 | eval ac_cr=\$\'\\r\' | |
28609 | fi | |
28610 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
28611 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 28612 | ac_cs_awk_cr='\\r' |
5213506e RW |
28613 | else |
28614 | ac_cs_awk_cr=$ac_cr | |
28615 | fi | |
28616 | ||
22e05272 | 28617 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
28618 | _ACEOF |
28619 | ||
28620 | ||
6de9cd9a | 28621 | { |
5213506e RW |
28622 | echo "cat >conf$$subs.awk <<_ACEOF" && |
28623 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
28624 | echo "_ACEOF" | |
28625 | } >conf$$subs.sh || | |
22e05272 JM |
28626 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
28627 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
28628 | ac_delim='%!_!# ' |
28629 | for ac_last_try in false false false false false :; do | |
28630 | . ./conf$$subs.sh || | |
22e05272 | 28631 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
28632 | |
28633 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
28634 | if test $ac_delim_n = $ac_delim_num; then | |
28635 | break | |
28636 | elif $ac_last_try; then | |
22e05272 | 28637 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
28638 | else |
28639 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
28640 | fi | |
28641 | done | |
28642 | rm -f conf$$subs.sh | |
28643 | ||
28644 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 28645 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
28646 | _ACEOF |
28647 | sed -n ' | |
28648 | h | |
28649 | s/^/S["/; s/!.*/"]=/ | |
28650 | p | |
28651 | g | |
28652 | s/^[^!]*!// | |
28653 | :repl | |
28654 | t repl | |
28655 | s/'"$ac_delim"'$// | |
28656 | t delim | |
28657 | :nl | |
28658 | h | |
22e05272 | 28659 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
28660 | t more1 |
28661 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
28662 | p | |
28663 | n | |
28664 | b repl | |
28665 | :more1 | |
28666 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28667 | p | |
28668 | g | |
28669 | s/.\{148\}// | |
28670 | t nl | |
28671 | :delim | |
28672 | h | |
22e05272 | 28673 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
28674 | t more2 |
28675 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
28676 | p | |
28677 | b | |
28678 | :more2 | |
28679 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28680 | p | |
28681 | g | |
28682 | s/.\{148\}// | |
28683 | t delim | |
28684 | ' <conf$$subs.awk | sed ' | |
28685 | /^[^""]/{ | |
28686 | N | |
28687 | s/\n// | |
28688 | } | |
28689 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
28690 | rm -f conf$$subs.awk | |
28691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28692 | _ACAWK | |
22e05272 | 28693 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
28694 | for (key in S) S_is_set[key] = 1 |
28695 | FS = "\a" | |
28696 | ||
28697 | } | |
28698 | { | |
28699 | line = $ 0 | |
28700 | nfields = split(line, field, "@") | |
28701 | substed = 0 | |
28702 | len = length(field[1]) | |
28703 | for (i = 2; i < nfields; i++) { | |
28704 | key = field[i] | |
28705 | keylen = length(key) | |
28706 | if (S_is_set[key]) { | |
28707 | value = S[key] | |
28708 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
28709 | len += length(value) + length(field[++i]) | |
28710 | substed = 1 | |
28711 | } else | |
28712 | len += 1 + keylen | |
28713 | } | |
28714 | ||
28715 | print line | |
6de9cd9a DN |
28716 | } |
28717 | ||
5213506e RW |
28718 | _ACAWK |
28719 | _ACEOF | |
28720 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
28721 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
28722 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
28723 | else | |
28724 | cat | |
22e05272 JM |
28725 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
28726 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
38d24731 RW |
28727 | _ACEOF |
28728 | ||
22e05272 JM |
28729 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
28730 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
28731 | # trailing colons and then remove the whole line if VPATH becomes empty |
28732 | # (actually we leave an empty line to preserve line numbers). | |
28733 | if test "x$srcdir" = x.; then | |
22e05272 JM |
28734 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
28735 | h | |
28736 | s/// | |
28737 | s/^/:/ | |
28738 | s/[ ]*$/:/ | |
28739 | s/:\$(srcdir):/:/g | |
28740 | s/:\${srcdir}:/:/g | |
28741 | s/:@srcdir@:/:/g | |
28742 | s/^:*// | |
5213506e | 28743 | s/:*$// |
22e05272 JM |
28744 | x |
28745 | s/\(=[ ]*\).*/\1/ | |
28746 | G | |
28747 | s/\n// | |
5213506e RW |
28748 | s/^[^=]*=[ ]*$// |
28749 | }' | |
28750 | fi | |
38d24731 | 28751 | |
5213506e RW |
28752 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28753 | fi # test -n "$CONFIG_FILES" | |
6de9cd9a | 28754 | |
5213506e RW |
28755 | # Set up the scripts for CONFIG_HEADERS section. |
28756 | # No need to generate them if there are no CONFIG_HEADERS. | |
28757 | # This happens for instance with `./config.status Makefile'. | |
28758 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 28759 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5213506e RW |
28760 | BEGIN { |
28761 | _ACEOF | |
28762 | ||
28763 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
28764 | # here-document in config.status, that substitutes the proper values into | |
28765 | # config.h.in to produce config.h. | |
28766 | ||
28767 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
28768 | # handling of long lines. | |
28769 | ac_delim='%!_!# ' | |
28770 | for ac_last_try in false false :; do | |
22e05272 JM |
28771 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
28772 | if test -z "$ac_tt"; then | |
5213506e RW |
28773 | break |
28774 | elif $ac_last_try; then | |
22e05272 | 28775 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5213506e RW |
28776 | else |
28777 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
f489fba1 | 28778 | fi |
5213506e | 28779 | done |
c0e7e2bf | 28780 | |
5213506e RW |
28781 | # For the awk script, D is an array of macro values keyed by name, |
28782 | # likewise P contains macro parameters if any. Preserve backslash | |
28783 | # newline sequences. | |
28784 | ||
28785 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
28786 | sed -n ' | |
28787 | s/.\{148\}/&'"$ac_delim"'/g | |
28788 | t rset | |
28789 | :rset | |
28790 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
28791 | t def | |
28792 | d | |
28793 | :def | |
28794 | s/\\$// | |
28795 | t bsnl | |
28796 | s/["\\]/\\&/g | |
28797 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28798 | D["\1"]=" \3"/p | |
28799 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
28800 | d | |
28801 | :bsnl | |
28802 | s/["\\]/\\&/g | |
28803 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28804 | D["\1"]=" \3\\\\\\n"\\/p | |
28805 | t cont | |
28806 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
28807 | t cont | |
28808 | d | |
28809 | :cont | |
28810 | n | |
28811 | s/.\{148\}/&'"$ac_delim"'/g | |
28812 | t clear | |
28813 | :clear | |
28814 | s/\\$// | |
28815 | t bsnlc | |
28816 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
28817 | d | |
28818 | :bsnlc | |
28819 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
28820 | b cont | |
28821 | ' <confdefs.h | sed ' | |
28822 | s/'"$ac_delim"'/"\\\ | |
28823 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
28824 | ||
28825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28826 | for (key in D) D_is_set[key] = 1 | |
28827 | FS = "\a" | |
28828 | } | |
28829 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
28830 | line = \$ 0 | |
28831 | split(line, arg, " ") | |
28832 | if (arg[1] == "#") { | |
28833 | defundef = arg[2] | |
28834 | mac1 = arg[3] | |
28835 | } else { | |
28836 | defundef = substr(arg[1], 2) | |
28837 | mac1 = arg[2] | |
28838 | } | |
28839 | split(mac1, mac2, "(") #) | |
28840 | macro = mac2[1] | |
28841 | prefix = substr(line, 1, index(line, defundef) - 1) | |
28842 | if (D_is_set[macro]) { | |
28843 | # Preserve the white space surrounding the "#". | |
28844 | print prefix "define", macro P[macro] D[macro] | |
28845 | next | |
28846 | } else { | |
28847 | # Replace #undef with comments. This is necessary, for example, | |
28848 | # in the case of _POSIX_SOURCE, which is predefined and required | |
28849 | # on some systems where configure will not decide to define it. | |
28850 | if (defundef == "undef") { | |
28851 | print "/*", prefix defundef, macro, "*/" | |
28852 | next | |
28853 | } | |
28854 | } | |
28855 | } | |
28856 | { print } | |
28857 | _ACAWK | |
6de9cd9a | 28858 | _ACEOF |
5213506e | 28859 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
22e05272 | 28860 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5213506e RW |
28861 | fi # test -n "$CONFIG_HEADERS" |
28862 | ||
28863 | ||
28864 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
28865 | shift | |
28866 | for ac_tag | |
28867 | do | |
28868 | case $ac_tag in | |
28869 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
28870 | esac | |
28871 | case $ac_mode$ac_tag in | |
28872 | :[FHL]*:*);; | |
22e05272 | 28873 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
28874 | :[FH]-) ac_tag=-:-;; |
28875 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
28876 | esac | |
28877 | ac_save_IFS=$IFS | |
28878 | IFS=: | |
28879 | set x $ac_tag | |
28880 | IFS=$ac_save_IFS | |
28881 | shift | |
28882 | ac_file=$1 | |
28883 | shift | |
28884 | ||
28885 | case $ac_mode in | |
28886 | :L) ac_source=$1;; | |
28887 | :[FH]) | |
28888 | ac_file_inputs= | |
28889 | for ac_f | |
28890 | do | |
28891 | case $ac_f in | |
22e05272 | 28892 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
28893 | *) # Look for the file first in the build tree, then in the source tree |
28894 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
28895 | # because $ac_f cannot contain `:'. | |
28896 | test -f "$ac_f" || | |
28897 | case $ac_f in | |
28898 | [\\/$]*) false;; | |
28899 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
28900 | esac || | |
22e05272 | 28901 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
28902 | esac |
28903 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
28904 | as_fn_append ac_file_inputs " '$ac_f'" | |
28905 | done | |
28906 | ||
28907 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
28908 | # use $as_me), people would be surprised to read: | |
28909 | # /* config.h. Generated by config.status. */ | |
28910 | configure_input='Generated from '` | |
28911 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
28912 | `' by configure.' | |
28913 | if test x"$ac_file" != x-; then | |
28914 | configure_input="$ac_file. $configure_input" | |
28915 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
28916 | $as_echo "$as_me: creating $ac_file" >&6;} | |
28917 | fi | |
28918 | # Neutralize special characters interpreted by sed in replacement strings. | |
28919 | case $configure_input in #( | |
28920 | *\&* | *\|* | *\\* ) | |
28921 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
28922 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
28923 | *) ac_sed_conf_input=$configure_input;; | |
28924 | esac | |
28925 | ||
28926 | case $ac_tag in | |
22e05272 JM |
28927 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
28928 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
28929 | esac |
28930 | ;; | |
6de9cd9a DN |
28931 | esac |
28932 | ||
5213506e | 28933 | ac_dir=`$as_dirname -- "$ac_file" || |
6de9cd9a DN |
28934 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28935 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28936 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
28937 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
28938 | $as_echo X"$ac_file" | | |
28939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28940 | s//\1/ | |
28941 | q | |
28942 | } | |
28943 | /^X\(\/\/\)[^/].*/{ | |
28944 | s//\1/ | |
28945 | q | |
28946 | } | |
28947 | /^X\(\/\/\)$/{ | |
28948 | s//\1/ | |
28949 | q | |
28950 | } | |
28951 | /^X\(\/\).*/{ | |
28952 | s//\1/ | |
28953 | q | |
28954 | } | |
28955 | s/.*/./; q'` | |
28956 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6de9cd9a DN |
28957 | ac_builddir=. |
28958 | ||
5213506e RW |
28959 | case "$ac_dir" in |
28960 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28961 | *) | |
28962 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
28963 | # A ".." for each directory in $ac_dir_suffix. | |
28964 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
28965 | case $ac_top_builddir_sub in | |
28966 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28967 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
28968 | esac ;; | |
28969 | esac | |
28970 | ac_abs_top_builddir=$ac_pwd | |
28971 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
28972 | # for backward compatibility: | |
28973 | ac_top_builddir=$ac_top_build_prefix | |
6de9cd9a DN |
28974 | |
28975 | case $srcdir in | |
5213506e | 28976 | .) # We are building in place. |
6de9cd9a | 28977 | ac_srcdir=. |
5213506e RW |
28978 | ac_top_srcdir=$ac_top_builddir_sub |
28979 | ac_abs_top_srcdir=$ac_pwd ;; | |
28980 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6de9cd9a | 28981 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
28982 | ac_top_srcdir=$srcdir |
28983 | ac_abs_top_srcdir=$srcdir ;; | |
28984 | *) # Relative name. | |
28985 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
28986 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
28987 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6de9cd9a | 28988 | esac |
5213506e | 28989 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
6de9cd9a | 28990 | |
6de9cd9a | 28991 | |
5213506e RW |
28992 | case $ac_mode in |
28993 | :F) | |
28994 | # | |
28995 | # CONFIG_FILE | |
28996 | # | |
6de9cd9a DN |
28997 | |
28998 | case $INSTALL in | |
28999 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e RW |
29000 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
29001 | esac | |
29002 | ac_MKDIR_P=$MKDIR_P | |
29003 | case $MKDIR_P in | |
29004 | [\\/$]* | ?:[\\/]* ) ;; | |
29005 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6de9cd9a | 29006 | esac |
5213506e | 29007 | _ACEOF |
6de9cd9a | 29008 | |
5213506e RW |
29009 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
29010 | # If the template does not know about datarootdir, expand it. | |
29011 | # FIXME: This hack should be removed a few years after 2.60. | |
29012 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
29013 | ac_sed_dataroot=' | |
29014 | /datarootdir/ { | |
29015 | p | |
29016 | q | |
29017 | } | |
29018 | /@datadir@/p | |
29019 | /@docdir@/p | |
29020 | /@infodir@/p | |
29021 | /@localedir@/p | |
29022 | /@mandir@/p' | |
29023 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
29024 | *datarootdir*) ac_datarootdir_seen=yes;; | |
29025 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
29026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
29027 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
29028 | _ACEOF | |
29029 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
29030 | ac_datarootdir_hack=' | |
29031 | s&@datadir@&$datadir&g | |
29032 | s&@docdir@&$docdir&g | |
29033 | s&@infodir@&$infodir&g | |
29034 | s&@localedir@&$localedir&g | |
29035 | s&@mandir@&$mandir&g | |
29036 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
29037 | esac | |
78511f8b | 29038 | _ACEOF |
5213506e RW |
29039 | |
29040 | # Neutralize VPATH when `$srcdir' = `.'. | |
29041 | # Shell code in configure.ac might set extrasub. | |
29042 | # FIXME: do we really want to maintain this feature? | |
29043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
29044 | ac_sed_extra="$ac_vpsub | |
6de9cd9a DN |
29045 | $extrasub |
29046 | _ACEOF | |
5213506e | 29047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6de9cd9a DN |
29048 | :t |
29049 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
29050 | s|@configure_input@|$ac_sed_conf_input|;t t |
29051 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
29052 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
29053 | s&@srcdir@&$ac_srcdir&;t t | |
29054 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
29055 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
29056 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
29057 | s&@builddir@&$ac_builddir&;t t | |
29058 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
29059 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
29060 | s&@INSTALL@&$ac_INSTALL&;t t | |
29061 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
29062 | $ac_datarootdir_hack | |
29063 | " | |
22e05272 JM |
29064 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
29065 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
29066 | |
29067 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
29068 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
29069 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
29070 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 29071 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 29072 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 29073 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 29074 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 29075 | |
22e05272 | 29076 | rm -f "$ac_tmp/stdin" |
6de9cd9a | 29077 | case $ac_file in |
22e05272 JM |
29078 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
29079 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 29080 | esac \ |
22e05272 | 29081 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e RW |
29082 | ;; |
29083 | :H) | |
29084 | # | |
29085 | # CONFIG_HEADER | |
29086 | # | |
6de9cd9a | 29087 | if test x"$ac_file" != x-; then |
5213506e RW |
29088 | { |
29089 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
29090 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
29091 | } >"$ac_tmp/config.h" \ | |
29092 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
29093 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5213506e RW |
29094 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
29095 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6de9cd9a | 29096 | else |
5213506e | 29097 | rm -f "$ac_file" |
22e05272 JM |
29098 | mv "$ac_tmp/config.h" "$ac_file" \ |
29099 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6de9cd9a DN |
29100 | fi |
29101 | else | |
5213506e | 29102 | $as_echo "/* $configure_input */" \ |
22e05272 JM |
29103 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
29104 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6de9cd9a | 29105 | fi |
5213506e RW |
29106 | # Compute "$ac_file"'s index in $config_headers. |
29107 | _am_arg="$ac_file" | |
6de9cd9a DN |
29108 | _am_stamp_count=1 |
29109 | for _am_header in $config_headers :; do | |
29110 | case $_am_header in | |
5213506e | 29111 | $_am_arg | $_am_arg:* ) |
6de9cd9a DN |
29112 | break ;; |
29113 | * ) | |
29114 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
29115 | esac | |
29116 | done | |
5213506e RW |
29117 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
29118 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
29119 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
29120 | X"$_am_arg" : 'X\(//\)$' \| \ | |
29121 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
29122 | $as_echo X"$_am_arg" | | |
29123 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
29124 | s//\1/ | |
29125 | q | |
29126 | } | |
29127 | /^X\(\/\/\)[^/].*/{ | |
29128 | s//\1/ | |
29129 | q | |
29130 | } | |
29131 | /^X\(\/\/\)$/{ | |
29132 | s//\1/ | |
29133 | q | |
29134 | } | |
29135 | /^X\(\/\).*/{ | |
29136 | s//\1/ | |
29137 | q | |
29138 | } | |
29139 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
29140 | ;; | |
38d24731 | 29141 | |
5213506e RW |
29142 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
29143 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
29144 | ;; | |
29145 | esac | |
6de9cd9a DN |
29146 | |
29147 | ||
5213506e RW |
29148 | case $ac_file$ac_mode in |
29149 | "default-1":C) | |
96b8a615 AJ |
29150 | # Only add multilib support code if we just rebuilt the top-level |
29151 | # Makefile. | |
29152 | case " $CONFIG_FILES " in | |
29153 | *" Makefile "*) | |
29154 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
29155 | ;; | |
29156 | esac ;; | |
5213506e | 29157 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 29158 | # Older Autoconf quotes --file arguments for eval, but not when files |
5213506e RW |
29159 | # are listed without --file. Let's play safe and only enable the eval |
29160 | # if we detect the quoting. | |
29161 | case $CONFIG_FILES in | |
29162 | *\'*) eval set x "$CONFIG_FILES" ;; | |
29163 | *) set x $CONFIG_FILES ;; | |
29164 | esac | |
29165 | shift | |
29166 | for mf | |
29167 | do | |
29168 | # Strip MF so we end up with the name of the file. | |
29169 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
29170 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 29171 | # We used to match only the files named 'Makefile.in', but |
5213506e RW |
29172 | # some people rename them; so instead we look at the file content. |
29173 | # Grep'ing the first line is not enough: some people post-process | |
29174 | # each Makefile.in and add a new line on top of each file to say so. | |
29175 | # Grep'ing the whole file is not good either: AIX grep has a line | |
29176 | # limit of 2048, but all sed's we know have understand at least 4000. | |
29177 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
29178 | dirpart=`$as_dirname -- "$mf" || | |
679c0f9a TT |
29179 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
29180 | X"$mf" : 'X\(//\)[^/]' \| \ | |
29181 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
29182 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
29183 | $as_echo X"$mf" | | |
29184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
29185 | s//\1/ | |
29186 | q | |
29187 | } | |
29188 | /^X\(\/\/\)[^/].*/{ | |
29189 | s//\1/ | |
29190 | q | |
29191 | } | |
29192 | /^X\(\/\/\)$/{ | |
29193 | s//\1/ | |
29194 | q | |
29195 | } | |
29196 | /^X\(\/\).*/{ | |
29197 | s//\1/ | |
29198 | q | |
29199 | } | |
29200 | s/.*/./; q'` | |
29201 | else | |
29202 | continue | |
29203 | fi | |
29204 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 29205 | # from the Makefile without running 'make'. |
5213506e RW |
29206 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
29207 | test -z "$DEPDIR" && continue | |
29208 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 29209 | test -z "$am__include" && continue |
5213506e | 29210 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
5213506e RW |
29211 | # Find all dependency output files, they are included files with |
29212 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
29213 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
29214 | # expansion. | |
29215 | for file in `sed -n " | |
29216 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 29217 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
5213506e RW |
29218 | # Make sure the directory exists. |
29219 | test -f "$dirpart/$file" && continue | |
29220 | fdir=`$as_dirname -- "$file" || | |
679c0f9a TT |
29221 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
29222 | X"$file" : 'X\(//\)[^/]' \| \ | |
29223 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
29224 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
29225 | $as_echo X"$file" | | |
29226 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
29227 | s//\1/ | |
29228 | q | |
29229 | } | |
29230 | /^X\(\/\/\)[^/].*/{ | |
29231 | s//\1/ | |
29232 | q | |
29233 | } | |
29234 | /^X\(\/\/\)$/{ | |
29235 | s//\1/ | |
29236 | q | |
29237 | } | |
29238 | /^X\(\/\).*/{ | |
29239 | s//\1/ | |
29240 | q | |
29241 | } | |
29242 | s/.*/./; q'` | |
29243 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
29244 | # echo "creating $dirpart/$file" | |
29245 | echo '# dummy' > "$dirpart/$file" | |
679c0f9a | 29246 | done |
679c0f9a | 29247 | done |
5213506e | 29248 | } |
1cf3d07d | 29249 | ;; |
5213506e | 29250 | "libtool":C) |
1cf3d07d SE |
29251 | |
29252 | # See if we are running on zsh, and set the options which allow our | |
29253 | # commands through without removal of \ escapes. | |
29254 | if test -n "${ZSH_VERSION+set}" ; then | |
29255 | setopt NO_GLOB_SUBST | |
29256 | fi | |
29257 | ||
29258 | cfgfile="${ofile}T" | |
29259 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
29260 | $RM "$cfgfile" | |
29261 | ||
29262 | cat <<_LT_EOF >> "$cfgfile" | |
29263 | #! $SHELL | |
29264 | ||
29265 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
d58dead8 | 29266 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
29267 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
29268 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
29269 | # | |
d58dead8 | 29270 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 29271 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
d58dead8 | 29272 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 29273 | # |
d58dead8 | 29274 | # This file is part of GNU Libtool. |
1cf3d07d | 29275 | # |
d58dead8 PG |
29276 | # GNU Libtool is free software; you can redistribute it and/or |
29277 | # modify it under the terms of the GNU General Public License as | |
29278 | # published by the Free Software Foundation; either version 2 of | |
29279 | # the License, or (at your option) any later version. | |
1cf3d07d | 29280 | # |
d58dead8 PG |
29281 | # As a special exception to the GNU General Public License, |
29282 | # if you distribute this file as part of a program or library that | |
29283 | # is built using GNU Libtool, you may include this file under the | |
29284 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 29285 | # |
d58dead8 PG |
29286 | # GNU Libtool is distributed in the hope that it will be useful, |
29287 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
29288 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
29289 | # GNU General Public License for more details. | |
1cf3d07d | 29290 | # |
d58dead8 PG |
29291 | # You should have received a copy of the GNU General Public License |
29292 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
29293 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
29294 | # obtained by writing to the Free Software Foundation, Inc., | |
29295 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
29296 | |
29297 | ||
29298 | # The names of the tagged configurations supported by this script. | |
29299 | available_tags="FC " | |
29300 | ||
29301 | # ### BEGIN LIBTOOL CONFIG | |
29302 | ||
66dbcf2d RO |
29303 | # A sed program that does not truncate output. |
29304 | SED=$lt_SED | |
29305 | ||
29306 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
29307 | Xsed="\$SED -e 1s/^X//" | |
29308 | ||
29309 | # A grep program that handles long lines. | |
29310 | GREP=$lt_GREP | |
29311 | ||
29312 | # An ERE matcher. | |
29313 | EGREP=$lt_EGREP | |
29314 | ||
29315 | # A literal string matcher. | |
29316 | FGREP=$lt_FGREP | |
29317 | ||
29318 | # Shell to use when invoking shell scripts. | |
29319 | SHELL=$lt_SHELL | |
29320 | ||
29321 | # An echo program that protects backslashes. | |
29322 | ECHO=$lt_ECHO | |
29323 | ||
1cf3d07d SE |
29324 | # Which release of libtool.m4 was used? |
29325 | macro_version=$macro_version | |
29326 | macro_revision=$macro_revision | |
29327 | ||
29328 | # Whether or not to build shared libraries. | |
29329 | build_libtool_libs=$enable_shared | |
29330 | ||
29331 | # Whether or not to build static libraries. | |
29332 | build_old_libs=$enable_static | |
29333 | ||
29334 | # What type of objects to build. | |
29335 | pic_mode=$pic_mode | |
29336 | ||
29337 | # Whether or not to optimize for fast installation. | |
29338 | fast_install=$enable_fast_install | |
29339 | ||
29340 | # The host system. | |
29341 | host_alias=$host_alias | |
29342 | host=$host | |
29343 | host_os=$host_os | |
29344 | ||
29345 | # The build system. | |
29346 | build_alias=$build_alias | |
29347 | build=$build | |
29348 | build_os=$build_os | |
29349 | ||
1cf3d07d SE |
29350 | # A BSD- or MS-compatible name lister. |
29351 | NM=$lt_NM | |
29352 | ||
29353 | # Whether we need soft or hard links. | |
29354 | LN_S=$lt_LN_S | |
29355 | ||
29356 | # What is the maximum length of a command? | |
29357 | max_cmd_len=$max_cmd_len | |
29358 | ||
29359 | # Object file suffix (normally "o"). | |
29360 | objext=$ac_objext | |
29361 | ||
29362 | # Executable file suffix (normally ""). | |
29363 | exeext=$exeext | |
29364 | ||
29365 | # whether the shell understands "unset". | |
29366 | lt_unset=$lt_unset | |
29367 | ||
29368 | # turn spaces into newlines. | |
29369 | SP2NL=$lt_lt_SP2NL | |
29370 | ||
29371 | # turn newlines into spaces. | |
29372 | NL2SP=$lt_lt_NL2SP | |
29373 | ||
d58dead8 PG |
29374 | # An object symbol dumper. |
29375 | OBJDUMP=$lt_OBJDUMP | |
29376 | ||
1cf3d07d SE |
29377 | # Method to check whether dependent libraries are shared objects. |
29378 | deplibs_check_method=$lt_deplibs_check_method | |
29379 | ||
29380 | # Command to use when deplibs_check_method == "file_magic". | |
29381 | file_magic_cmd=$lt_file_magic_cmd | |
29382 | ||
29383 | # The archiver. | |
29384 | AR=$lt_AR | |
29385 | AR_FLAGS=$lt_AR_FLAGS | |
29386 | ||
29387 | # A symbol stripping program. | |
29388 | STRIP=$lt_STRIP | |
29389 | ||
29390 | # Commands used to install an old-style archive. | |
29391 | RANLIB=$lt_RANLIB | |
29392 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
29393 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
29394 | ||
43e02a8a RW |
29395 | # Whether to use a lock for old archive extraction. |
29396 | lock_old_archive_extraction=$lock_old_archive_extraction | |
29397 | ||
1cf3d07d SE |
29398 | # A C compiler. |
29399 | LTCC=$lt_CC | |
29400 | ||
29401 | # LTCC compiler flags. | |
29402 | LTCFLAGS=$lt_CFLAGS | |
29403 | ||
29404 | # Take the output of nm and produce a listing of raw symbols and C names. | |
29405 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
29406 | ||
29407 | # Transform the output of nm in a proper C declaration. | |
29408 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
29409 | ||
29410 | # Transform the output of nm in a C name address pair. | |
29411 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
29412 | ||
d58dead8 PG |
29413 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
29414 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
29415 | ||
1cf3d07d SE |
29416 | # The name of the directory that contains temporary libtool files. |
29417 | objdir=$objdir | |
29418 | ||
1cf3d07d SE |
29419 | # Used to examine libraries when file_magic_cmd begins with "file". |
29420 | MAGIC_CMD=$MAGIC_CMD | |
29421 | ||
29422 | # Must we lock files when doing compilation? | |
29423 | need_locks=$lt_need_locks | |
29424 | ||
d58dead8 PG |
29425 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
29426 | DSYMUTIL=$lt_DSYMUTIL | |
29427 | ||
29428 | # Tool to change global to local symbols on Mac OS X. | |
29429 | NMEDIT=$lt_NMEDIT | |
29430 | ||
29431 | # Tool to manipulate fat objects and archives on Mac OS X. | |
29432 | LIPO=$lt_LIPO | |
29433 | ||
29434 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
29435 | OTOOL=$lt_OTOOL | |
29436 | ||
29437 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
29438 | OTOOL64=$lt_OTOOL64 | |
29439 | ||
1cf3d07d SE |
29440 | # Old archive suffix (normally "a"). |
29441 | libext=$libext | |
29442 | ||
29443 | # Shared library suffix (normally ".so"). | |
29444 | shrext_cmds=$lt_shrext_cmds | |
29445 | ||
29446 | # The commands to extract the exported symbol list from a shared archive. | |
29447 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
29448 | ||
29449 | # Variables whose values should be saved in libtool wrapper scripts and | |
29450 | # restored at link time. | |
29451 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
29452 | ||
29453 | # Do we need the "lib" prefix for modules? | |
29454 | need_lib_prefix=$need_lib_prefix | |
29455 | ||
29456 | # Do we need a version for libraries? | |
29457 | need_version=$need_version | |
29458 | ||
29459 | # Library versioning type. | |
29460 | version_type=$version_type | |
29461 | ||
29462 | # Shared library runtime path variable. | |
29463 | runpath_var=$runpath_var | |
29464 | ||
29465 | # Shared library path variable. | |
29466 | shlibpath_var=$shlibpath_var | |
29467 | ||
29468 | # Is shlibpath searched before the hard-coded library search path? | |
29469 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
29470 | ||
29471 | # Format of library name prefix. | |
29472 | libname_spec=$lt_libname_spec | |
29473 | ||
29474 | # List of archive names. First name is the real one, the rest are links. | |
29475 | # The last name is the one that the linker finds with -lNAME | |
29476 | library_names_spec=$lt_library_names_spec | |
29477 | ||
29478 | # The coded name of the library, if different from the real name. | |
29479 | soname_spec=$lt_soname_spec | |
29480 | ||
43e02a8a RW |
29481 | # Permission mode override for installation of shared libraries. |
29482 | install_override_mode=$lt_install_override_mode | |
29483 | ||
1cf3d07d SE |
29484 | # Command to use after installation of a shared archive. |
29485 | postinstall_cmds=$lt_postinstall_cmds | |
29486 | ||
29487 | # Command to use after uninstallation of a shared archive. | |
29488 | postuninstall_cmds=$lt_postuninstall_cmds | |
29489 | ||
29490 | # Commands used to finish a libtool library installation in a directory. | |
29491 | finish_cmds=$lt_finish_cmds | |
29492 | ||
29493 | # As "finish_cmds", except a single script fragment to be evaled but | |
29494 | # not shown. | |
29495 | finish_eval=$lt_finish_eval | |
29496 | ||
29497 | # Whether we should hardcode library paths into libraries. | |
29498 | hardcode_into_libs=$hardcode_into_libs | |
29499 | ||
29500 | # Compile-time system search path for libraries. | |
29501 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
29502 | ||
29503 | # Run-time system search path for libraries. | |
29504 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
29505 | ||
29506 | # Whether dlopen is supported. | |
29507 | dlopen_support=$enable_dlopen | |
29508 | ||
29509 | # Whether dlopen of programs is supported. | |
29510 | dlopen_self=$enable_dlopen_self | |
29511 | ||
29512 | # Whether dlopen of statically linked programs is supported. | |
29513 | dlopen_self_static=$enable_dlopen_self_static | |
29514 | ||
29515 | # Commands to strip libraries. | |
29516 | old_striplib=$lt_old_striplib | |
29517 | striplib=$lt_striplib | |
29518 | ||
29519 | ||
29520 | # The linker used to build libraries. | |
29521 | LD=$lt_LD | |
29522 | ||
43e02a8a RW |
29523 | # How to create reloadable object files. |
29524 | reload_flag=$lt_reload_flag | |
29525 | reload_cmds=$lt_reload_cmds | |
29526 | ||
1cf3d07d SE |
29527 | # Commands used to build an old-style archive. |
29528 | old_archive_cmds=$lt_old_archive_cmds | |
29529 | ||
29530 | # A language specific compiler. | |
29531 | CC=$lt_compiler | |
29532 | ||
29533 | # Is the compiler the GNU compiler? | |
29534 | with_gcc=$GCC | |
29535 | ||
29536 | # Compiler flag to turn off builtin functions. | |
29537 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
29538 | ||
29539 | # How to pass a linker flag through the compiler. | |
29540 | wl=$lt_lt_prog_compiler_wl | |
29541 | ||
29542 | # Additional compiler flags for building library objects. | |
29543 | pic_flag=$lt_lt_prog_compiler_pic | |
29544 | ||
29545 | # Compiler flag to prevent dynamic linking. | |
29546 | link_static_flag=$lt_lt_prog_compiler_static | |
29547 | ||
29548 | # Does compiler simultaneously support -c and -o options? | |
29549 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
29550 | ||
29551 | # Whether or not to add -lc for building shared libraries. | |
29552 | build_libtool_need_lc=$archive_cmds_need_lc | |
29553 | ||
29554 | # Whether or not to disallow shared libs when runtime libs are static. | |
29555 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
29556 | ||
29557 | # Compiler flag to allow reflexive dlopens. | |
29558 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
29559 | ||
29560 | # Compiler flag to generate shared objects directly from archives. | |
29561 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
29562 | ||
29563 | # Whether the compiler copes with passing no objects directly. | |
29564 | compiler_needs_object=$lt_compiler_needs_object | |
29565 | ||
29566 | # Create an old-style archive from a shared archive. | |
29567 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
29568 | ||
29569 | # Create a temporary old-style archive to link instead of a shared archive. | |
29570 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
29571 | ||
29572 | # Commands used to build a shared archive. | |
29573 | archive_cmds=$lt_archive_cmds | |
29574 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
29575 | ||
29576 | # Commands used to build a loadable module if different from building | |
29577 | # a shared archive. | |
29578 | module_cmds=$lt_module_cmds | |
29579 | module_expsym_cmds=$lt_module_expsym_cmds | |
29580 | ||
29581 | # Whether we are building with GNU ld or not. | |
29582 | with_gnu_ld=$lt_with_gnu_ld | |
29583 | ||
29584 | # Flag that allows shared libraries with undefined symbols to be built. | |
29585 | allow_undefined_flag=$lt_allow_undefined_flag | |
29586 | ||
29587 | # Flag that enforces no undefined symbols. | |
29588 | no_undefined_flag=$lt_no_undefined_flag | |
29589 | ||
29590 | # Flag to hardcode \$libdir into a binary during linking. | |
29591 | # This must work even if \$libdir does not exist | |
29592 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
29593 | ||
29594 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29595 | # during linking. This must work even if \$libdir does not exist. | |
29596 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
29597 | ||
29598 | # Whether we need a single "-rpath" flag with a separated argument. | |
29599 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
29600 | ||
29601 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29602 | # DIR into the resulting binary. | |
29603 | hardcode_direct=$hardcode_direct | |
29604 | ||
29605 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29606 | # DIR into the resulting binary and the resulting library dependency is | |
29607 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29608 | # library is relocated. | |
29609 | hardcode_direct_absolute=$hardcode_direct_absolute | |
29610 | ||
29611 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29612 | # into the resulting binary. | |
29613 | hardcode_minus_L=$hardcode_minus_L | |
29614 | ||
29615 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29616 | # into the resulting binary. | |
29617 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
29618 | ||
29619 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29620 | # into the library and all subsequent libraries and executables linked | |
29621 | # against it. | |
29622 | hardcode_automatic=$hardcode_automatic | |
29623 | ||
29624 | # Set to yes if linker adds runtime paths of dependent libraries | |
29625 | # to runtime path list. | |
29626 | inherit_rpath=$inherit_rpath | |
29627 | ||
29628 | # Whether libtool must link a program against all its dependency libraries. | |
29629 | link_all_deplibs=$link_all_deplibs | |
29630 | ||
29631 | # Fix the shell variable \$srcfile for the compiler. | |
29632 | fix_srcfile_path=$lt_fix_srcfile_path | |
29633 | ||
29634 | # Set to "yes" if exported symbols are required. | |
29635 | always_export_symbols=$always_export_symbols | |
29636 | ||
29637 | # The commands to list exported symbols. | |
29638 | export_symbols_cmds=$lt_export_symbols_cmds | |
29639 | ||
29640 | # Symbols that should not be listed in the preloaded symbols. | |
29641 | exclude_expsyms=$lt_exclude_expsyms | |
29642 | ||
29643 | # Symbols that must always be exported. | |
29644 | include_expsyms=$lt_include_expsyms | |
29645 | ||
29646 | # Commands necessary for linking programs (against libraries) with templates. | |
29647 | prelink_cmds=$lt_prelink_cmds | |
29648 | ||
29649 | # Specify filename containing input files. | |
29650 | file_list_spec=$lt_file_list_spec | |
29651 | ||
29652 | # How to hardcode a shared library path into an executable. | |
29653 | hardcode_action=$hardcode_action | |
29654 | ||
d58dead8 PG |
29655 | # The directories searched by this compiler when creating a shared library. |
29656 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
29657 | ||
1cf3d07d SE |
29658 | # Dependencies to place before and after the objects being linked to |
29659 | # create a shared library. | |
29660 | predep_objects=$lt_predep_objects | |
29661 | postdep_objects=$lt_postdep_objects | |
29662 | predeps=$lt_predeps | |
29663 | postdeps=$lt_postdeps | |
29664 | ||
29665 | # The library search path used internally by the compiler when linking | |
29666 | # a shared library. | |
29667 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
29668 | ||
29669 | # ### END LIBTOOL CONFIG | |
29670 | ||
29671 | _LT_EOF | |
29672 | ||
29673 | case $host_os in | |
29674 | aix3*) | |
29675 | cat <<\_LT_EOF >> "$cfgfile" | |
29676 | # AIX sometimes has problems with the GCC collect2 program. For some | |
29677 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
29678 | # vanish in a puff of smoke. | |
29679 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
29680 | COLLECT_NAMES= | |
29681 | export COLLECT_NAMES | |
29682 | fi | |
29683 | _LT_EOF | |
29684 | ;; | |
29685 | esac | |
29686 | ||
29687 | ||
29688 | ltmain="$ac_aux_dir/ltmain.sh" | |
29689 | ||
29690 | ||
29691 | # We use sed instead of cat because bash on DJGPP gets confused if | |
29692 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
29693 | # text mode, it properly converts lines to CR/LF. This bash problem | |
29694 | # is reportedly fixed, but why not run on old versions too? | |
29695 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
29696 | || (rm -f "$cfgfile"; exit 1) | |
29697 | ||
29698 | case $xsi_shell in | |
29699 | yes) | |
29700 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 29701 | |
1cf3d07d SE |
29702 | # func_dirname file append nondir_replacement |
29703 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29704 | # otherwise set result to NONDIR_REPLACEMENT. | |
29705 | func_dirname () | |
29706 | { | |
29707 | case ${1} in | |
29708 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29709 | * ) func_dirname_result="${3}" ;; | |
29710 | esac | |
29711 | } | |
29712 | ||
29713 | # func_basename file | |
29714 | func_basename () | |
29715 | { | |
29716 | func_basename_result="${1##*/}" | |
29717 | } | |
29718 | ||
d58dead8 PG |
29719 | # func_dirname_and_basename file append nondir_replacement |
29720 | # perform func_basename and func_dirname in a single function | |
29721 | # call: | |
29722 | # dirname: Compute the dirname of FILE. If nonempty, | |
29723 | # add APPEND to the result, otherwise set result | |
29724 | # to NONDIR_REPLACEMENT. | |
29725 | # value returned in "$func_dirname_result" | |
29726 | # basename: Compute filename of FILE. | |
29727 | # value retuned in "$func_basename_result" | |
29728 | # Implementation must be kept synchronized with func_dirname | |
29729 | # and func_basename. For efficiency, we do not delegate to | |
29730 | # those functions but instead duplicate the functionality here. | |
29731 | func_dirname_and_basename () | |
29732 | { | |
29733 | case ${1} in | |
29734 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29735 | * ) func_dirname_result="${3}" ;; | |
29736 | esac | |
29737 | func_basename_result="${1##*/}" | |
29738 | } | |
29739 | ||
1cf3d07d SE |
29740 | # func_stripname prefix suffix name |
29741 | # strip PREFIX and SUFFIX off of NAME. | |
29742 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29743 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29744 | # dot (in which case that matches only a dot). | |
29745 | func_stripname () | |
29746 | { | |
29747 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
29748 | # positional parameters, so assign one to ordinary parameter first. | |
29749 | func_stripname_result=${3} | |
29750 | func_stripname_result=${func_stripname_result#"${1}"} | |
29751 | func_stripname_result=${func_stripname_result%"${2}"} | |
29752 | } | |
29753 | ||
29754 | # func_opt_split | |
29755 | func_opt_split () | |
29756 | { | |
29757 | func_opt_split_opt=${1%%=*} | |
29758 | func_opt_split_arg=${1#*=} | |
29759 | } | |
29760 | ||
29761 | # func_lo2o object | |
29762 | func_lo2o () | |
29763 | { | |
29764 | case ${1} in | |
29765 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
29766 | *) func_lo2o_result=${1} ;; | |
29767 | esac | |
29768 | } | |
d58dead8 PG |
29769 | |
29770 | # func_xform libobj-or-source | |
29771 | func_xform () | |
29772 | { | |
29773 | func_xform_result=${1%.*}.lo | |
29774 | } | |
29775 | ||
29776 | # func_arith arithmetic-term... | |
29777 | func_arith () | |
29778 | { | |
29779 | func_arith_result=$(( $* )) | |
29780 | } | |
29781 | ||
29782 | # func_len string | |
29783 | # STRING may not start with a hyphen. | |
29784 | func_len () | |
29785 | { | |
29786 | func_len_result=${#1} | |
29787 | } | |
29788 | ||
1cf3d07d SE |
29789 | _LT_EOF |
29790 | ;; | |
29791 | *) # Bourne compatible functions. | |
29792 | cat << \_LT_EOF >> "$cfgfile" | |
d58dead8 | 29793 | |
1cf3d07d SE |
29794 | # func_dirname file append nondir_replacement |
29795 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29796 | # otherwise set result to NONDIR_REPLACEMENT. | |
29797 | func_dirname () | |
29798 | { | |
29799 | # Extract subdirectory from the argument. | |
43e02a8a | 29800 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
29801 | if test "X$func_dirname_result" = "X${1}"; then |
29802 | func_dirname_result="${3}" | |
29803 | else | |
29804 | func_dirname_result="$func_dirname_result${2}" | |
29805 | fi | |
29806 | } | |
29807 | ||
29808 | # func_basename file | |
29809 | func_basename () | |
29810 | { | |
43e02a8a | 29811 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
29812 | } |
29813 | ||
d58dead8 | 29814 | |
1cf3d07d SE |
29815 | # func_stripname prefix suffix name |
29816 | # strip PREFIX and SUFFIX off of NAME. | |
29817 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29818 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29819 | # dot (in which case that matches only a dot). | |
29820 | # func_strip_suffix prefix name | |
29821 | func_stripname () | |
29822 | { | |
29823 | case ${2} in | |
43e02a8a RW |
29824 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
29825 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
29826 | esac |
29827 | } | |
29828 | ||
29829 | # sed scripts: | |
29830 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
29831 | my_sed_long_arg='1s/^-[^=]*=//' | |
29832 | ||
29833 | # func_opt_split | |
29834 | func_opt_split () | |
29835 | { | |
43e02a8a RW |
29836 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
29837 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d SE |
29838 | } |
29839 | ||
29840 | # func_lo2o object | |
29841 | func_lo2o () | |
29842 | { | |
43e02a8a | 29843 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 29844 | } |
d58dead8 PG |
29845 | |
29846 | # func_xform libobj-or-source | |
29847 | func_xform () | |
29848 | { | |
43e02a8a | 29849 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
d58dead8 PG |
29850 | } |
29851 | ||
29852 | # func_arith arithmetic-term... | |
29853 | func_arith () | |
29854 | { | |
29855 | func_arith_result=`expr "$@"` | |
29856 | } | |
29857 | ||
29858 | # func_len string | |
29859 | # STRING may not start with a hyphen. | |
29860 | func_len () | |
29861 | { | |
29862 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
29863 | } | |
29864 | ||
1cf3d07d SE |
29865 | _LT_EOF |
29866 | esac | |
29867 | ||
29868 | case $lt_shell_append in | |
29869 | yes) | |
29870 | cat << \_LT_EOF >> "$cfgfile" | |
29871 | ||
29872 | # func_append var value | |
29873 | # Append VALUE to the end of shell variable VAR. | |
29874 | func_append () | |
29875 | { | |
29876 | eval "$1+=\$2" | |
29877 | } | |
29878 | _LT_EOF | |
29879 | ;; | |
29880 | *) | |
29881 | cat << \_LT_EOF >> "$cfgfile" | |
29882 | ||
29883 | # func_append var value | |
29884 | # Append VALUE to the end of shell variable VAR. | |
29885 | func_append () | |
29886 | { | |
29887 | eval "$1=\$$1\$2" | |
29888 | } | |
d58dead8 | 29889 | |
1cf3d07d SE |
29890 | _LT_EOF |
29891 | ;; | |
29892 | esac | |
29893 | ||
29894 | ||
29895 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
29896 | || (rm -f "$cfgfile"; exit 1) | |
29897 | ||
29898 | mv -f "$cfgfile" "$ofile" || | |
29899 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
29900 | chmod +x "$ofile" | |
29901 | ||
29902 | ||
29903 | cat <<_LT_EOF >> "$ofile" | |
29904 | ||
29905 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
29906 | ||
29907 | # The linker used to build libraries. | |
29908 | LD=$lt_LD_FC | |
29909 | ||
43e02a8a RW |
29910 | # How to create reloadable object files. |
29911 | reload_flag=$lt_reload_flag_FC | |
29912 | reload_cmds=$lt_reload_cmds_FC | |
29913 | ||
1cf3d07d SE |
29914 | # Commands used to build an old-style archive. |
29915 | old_archive_cmds=$lt_old_archive_cmds_FC | |
29916 | ||
29917 | # A language specific compiler. | |
29918 | CC=$lt_compiler_FC | |
29919 | ||
29920 | # Is the compiler the GNU compiler? | |
29921 | with_gcc=$GCC_FC | |
29922 | ||
29923 | # Compiler flag to turn off builtin functions. | |
29924 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
29925 | ||
29926 | # How to pass a linker flag through the compiler. | |
29927 | wl=$lt_lt_prog_compiler_wl_FC | |
29928 | ||
29929 | # Additional compiler flags for building library objects. | |
29930 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
29931 | ||
29932 | # Compiler flag to prevent dynamic linking. | |
29933 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
29934 | ||
29935 | # Does compiler simultaneously support -c and -o options? | |
29936 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
29937 | ||
29938 | # Whether or not to add -lc for building shared libraries. | |
29939 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
29940 | ||
29941 | # Whether or not to disallow shared libs when runtime libs are static. | |
29942 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
29943 | ||
29944 | # Compiler flag to allow reflexive dlopens. | |
29945 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
29946 | ||
29947 | # Compiler flag to generate shared objects directly from archives. | |
29948 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
29949 | ||
29950 | # Whether the compiler copes with passing no objects directly. | |
29951 | compiler_needs_object=$lt_compiler_needs_object_FC | |
29952 | ||
29953 | # Create an old-style archive from a shared archive. | |
29954 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
29955 | ||
29956 | # Create a temporary old-style archive to link instead of a shared archive. | |
29957 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
29958 | ||
29959 | # Commands used to build a shared archive. | |
29960 | archive_cmds=$lt_archive_cmds_FC | |
29961 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
29962 | ||
29963 | # Commands used to build a loadable module if different from building | |
29964 | # a shared archive. | |
29965 | module_cmds=$lt_module_cmds_FC | |
29966 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
29967 | ||
29968 | # Whether we are building with GNU ld or not. | |
29969 | with_gnu_ld=$lt_with_gnu_ld_FC | |
29970 | ||
29971 | # Flag that allows shared libraries with undefined symbols to be built. | |
29972 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
29973 | ||
29974 | # Flag that enforces no undefined symbols. | |
29975 | no_undefined_flag=$lt_no_undefined_flag_FC | |
29976 | ||
29977 | # Flag to hardcode \$libdir into a binary during linking. | |
29978 | # This must work even if \$libdir does not exist | |
29979 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
29980 | ||
29981 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29982 | # during linking. This must work even if \$libdir does not exist. | |
29983 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
29984 | ||
29985 | # Whether we need a single "-rpath" flag with a separated argument. | |
29986 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
29987 | ||
29988 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29989 | # DIR into the resulting binary. | |
29990 | hardcode_direct=$hardcode_direct_FC | |
29991 | ||
29992 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29993 | # DIR into the resulting binary and the resulting library dependency is | |
29994 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29995 | # library is relocated. | |
29996 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
29997 | ||
29998 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29999 | # into the resulting binary. | |
30000 | hardcode_minus_L=$hardcode_minus_L_FC | |
30001 | ||
30002 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
30003 | # into the resulting binary. | |
30004 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
30005 | ||
30006 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
30007 | # into the library and all subsequent libraries and executables linked | |
30008 | # against it. | |
30009 | hardcode_automatic=$hardcode_automatic_FC | |
30010 | ||
30011 | # Set to yes if linker adds runtime paths of dependent libraries | |
30012 | # to runtime path list. | |
30013 | inherit_rpath=$inherit_rpath_FC | |
30014 | ||
30015 | # Whether libtool must link a program against all its dependency libraries. | |
30016 | link_all_deplibs=$link_all_deplibs_FC | |
30017 | ||
30018 | # Fix the shell variable \$srcfile for the compiler. | |
30019 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
30020 | ||
30021 | # Set to "yes" if exported symbols are required. | |
30022 | always_export_symbols=$always_export_symbols_FC | |
30023 | ||
30024 | # The commands to list exported symbols. | |
30025 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
30026 | ||
30027 | # Symbols that should not be listed in the preloaded symbols. | |
30028 | exclude_expsyms=$lt_exclude_expsyms_FC | |
30029 | ||
30030 | # Symbols that must always be exported. | |
30031 | include_expsyms=$lt_include_expsyms_FC | |
30032 | ||
30033 | # Commands necessary for linking programs (against libraries) with templates. | |
30034 | prelink_cmds=$lt_prelink_cmds_FC | |
30035 | ||
30036 | # Specify filename containing input files. | |
30037 | file_list_spec=$lt_file_list_spec_FC | |
30038 | ||
30039 | # How to hardcode a shared library path into an executable. | |
30040 | hardcode_action=$hardcode_action_FC | |
30041 | ||
d58dead8 PG |
30042 | # The directories searched by this compiler when creating a shared library. |
30043 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
30044 | ||
1cf3d07d SE |
30045 | # Dependencies to place before and after the objects being linked to |
30046 | # create a shared library. | |
30047 | predep_objects=$lt_predep_objects_FC | |
30048 | postdep_objects=$lt_postdep_objects_FC | |
30049 | predeps=$lt_predeps_FC | |
30050 | postdeps=$lt_postdeps_FC | |
30051 | ||
30052 | # The library search path used internally by the compiler when linking | |
30053 | # a shared library. | |
30054 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
30055 | ||
30056 | # ### END LIBTOOL TAG CONFIG: FC | |
30057 | _LT_EOF | |
30058 | ||
679c0f9a | 30059 | ;; |
5213506e | 30060 | "gstdint.h":C) |
c13e029b PB |
30061 | if test "$GCC" = yes; then |
30062 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
30063 | else | |
30064 | echo "/* generated for $CC */" > tmp-stdint.h | |
30065 | fi | |
4c4b3eb0 | 30066 | |
c13e029b PB |
30067 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
30068 | ||
30069 | #ifndef GCC_GENERATED_STDINT_H | |
30070 | #define GCC_GENERATED_STDINT_H 1 | |
30071 | ||
30072 | #include <sys/types.h> | |
4c4b3eb0 | 30073 | EOF |
4c4b3eb0 | 30074 | |
c13e029b PB |
30075 | if test "$acx_cv_header_stdint" != stdint.h; then |
30076 | echo "#include <stddef.h>" >> tmp-stdint.h | |
30077 | fi | |
30078 | if test "$acx_cv_header_stdint" != stddef.h; then | |
30079 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
30080 | fi | |
30081 | ||
30082 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30083 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
30084 | #ifdef __int8_t_defined | |
30085 | #define _INT8_T | |
30086 | #define _INT16_T | |
30087 | #define _INT32_T | |
30088 | #endif | |
30089 | #ifdef __uint32_t_defined | |
30090 | #define _UINT32_T | |
30091 | #endif | |
30092 | ||
30093 | EOF | |
30094 | ||
30095 | # ----------------- done header, emit basic int types ------------- | |
30096 | if test "$acx_cv_header_stdint" = stddef.h; then | |
30097 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30098 | ||
30099 | #ifndef _UINT8_T | |
30100 | #define _UINT8_T | |
30101 | #ifndef __uint8_t_defined | |
30102 | #define __uint8_t_defined | |
b9497ab5 | 30103 | #ifndef uint8_t |
c13e029b PB |
30104 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
30105 | #endif | |
30106 | #endif | |
b9497ab5 | 30107 | #endif |
c13e029b PB |
30108 | |
30109 | #ifndef _UINT16_T | |
30110 | #define _UINT16_T | |
30111 | #ifndef __uint16_t_defined | |
30112 | #define __uint16_t_defined | |
b9497ab5 | 30113 | #ifndef uint16_t |
c13e029b PB |
30114 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
30115 | #endif | |
30116 | #endif | |
b9497ab5 | 30117 | #endif |
c13e029b PB |
30118 | |
30119 | #ifndef _UINT32_T | |
30120 | #define _UINT32_T | |
30121 | #ifndef __uint32_t_defined | |
30122 | #define __uint32_t_defined | |
b9497ab5 | 30123 | #ifndef uint32_t |
c13e029b PB |
30124 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
30125 | #endif | |
30126 | #endif | |
b9497ab5 | 30127 | #endif |
c13e029b PB |
30128 | |
30129 | #ifndef _INT8_T | |
30130 | #define _INT8_T | |
30131 | #ifndef __int8_t_defined | |
30132 | #define __int8_t_defined | |
b9497ab5 | 30133 | #ifndef int8_t |
c13e029b PB |
30134 | typedef $acx_cv_type_int8_t int8_t; |
30135 | #endif | |
30136 | #endif | |
b9497ab5 | 30137 | #endif |
c13e029b PB |
30138 | |
30139 | #ifndef _INT16_T | |
30140 | #define _INT16_T | |
30141 | #ifndef __int16_t_defined | |
30142 | #define __int16_t_defined | |
b9497ab5 | 30143 | #ifndef int16_t |
c13e029b PB |
30144 | typedef $acx_cv_type_int16_t int16_t; |
30145 | #endif | |
30146 | #endif | |
b9497ab5 | 30147 | #endif |
c13e029b PB |
30148 | |
30149 | #ifndef _INT32_T | |
30150 | #define _INT32_T | |
30151 | #ifndef __int32_t_defined | |
30152 | #define __int32_t_defined | |
b9497ab5 | 30153 | #ifndef int32_t |
c13e029b PB |
30154 | typedef $acx_cv_type_int32_t int32_t; |
30155 | #endif | |
30156 | #endif | |
b9497ab5 | 30157 | #endif |
c13e029b PB |
30158 | EOF |
30159 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
30160 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30161 | ||
30162 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
30163 | #ifndef _INT8_T | |
30164 | #define _INT8_T | |
30165 | #endif | |
30166 | #ifndef _INT16_T | |
30167 | #define _INT16_T | |
30168 | #endif | |
30169 | #ifndef _INT32_T | |
30170 | #define _INT32_T | |
30171 | #endif | |
30172 | ||
30173 | #ifndef _UINT8_T | |
30174 | #define _UINT8_T | |
30175 | #ifndef __uint8_t_defined | |
30176 | #define __uint8_t_defined | |
b9497ab5 | 30177 | #ifndef uint8_t |
c13e029b PB |
30178 | typedef u_int8_t uint8_t; |
30179 | #endif | |
30180 | #endif | |
b9497ab5 | 30181 | #endif |
c13e029b PB |
30182 | |
30183 | #ifndef _UINT16_T | |
30184 | #define _UINT16_T | |
30185 | #ifndef __uint16_t_defined | |
30186 | #define __uint16_t_defined | |
b9497ab5 | 30187 | #ifndef uint16_t |
c13e029b PB |
30188 | typedef u_int16_t uint16_t; |
30189 | #endif | |
30190 | #endif | |
b9497ab5 | 30191 | #endif |
c13e029b PB |
30192 | |
30193 | #ifndef _UINT32_T | |
30194 | #define _UINT32_T | |
30195 | #ifndef __uint32_t_defined | |
30196 | #define __uint32_t_defined | |
b9497ab5 | 30197 | #ifndef uint32_t |
c13e029b PB |
30198 | typedef u_int32_t uint32_t; |
30199 | #endif | |
30200 | #endif | |
b9497ab5 | 30201 | #endif |
c13e029b PB |
30202 | EOF |
30203 | else | |
30204 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30205 | ||
30206 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
30207 | #ifndef _INT8_T | |
30208 | #define _INT8_T | |
30209 | #endif | |
30210 | #ifndef _INT16_T | |
30211 | #define _INT16_T | |
30212 | #endif | |
30213 | #ifndef _INT32_T | |
30214 | #define _INT32_T | |
30215 | #endif | |
30216 | #ifndef _UINT8_T | |
30217 | #define _UINT8_T | |
30218 | #endif | |
30219 | #ifndef _UINT16_T | |
30220 | #define _UINT16_T | |
30221 | #endif | |
30222 | #ifndef _UINT32_T | |
30223 | #define _UINT32_T | |
30224 | #endif | |
30225 | EOF | |
30226 | fi | |
30227 | ||
30228 | # ------------- done basic int types, emit int64_t types ------------ | |
30229 | if test "$ac_cv_type_uint64_t" = yes; then | |
30230 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30231 | ||
30232 | /* system headers have good uint64_t and int64_t */ | |
30233 | #ifndef _INT64_T | |
30234 | #define _INT64_T | |
30235 | #endif | |
30236 | #ifndef _UINT64_T | |
30237 | #define _UINT64_T | |
30238 | #endif | |
30239 | EOF | |
30240 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
30241 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30242 | ||
30243 | /* system headers have an u_int64_t (and int64_t) */ | |
30244 | #ifndef _INT64_T | |
30245 | #define _INT64_T | |
30246 | #endif | |
30247 | #ifndef _UINT64_T | |
30248 | #define _UINT64_T | |
30249 | #ifndef __uint64_t_defined | |
30250 | #define __uint64_t_defined | |
b9497ab5 | 30251 | #ifndef uint64_t |
c13e029b PB |
30252 | typedef u_int64_t uint64_t; |
30253 | #endif | |
30254 | #endif | |
b9497ab5 | 30255 | #endif |
c13e029b PB |
30256 | EOF |
30257 | elif test -n "$acx_cv_type_int64_t"; then | |
30258 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30259 | ||
30260 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
30261 | #ifndef _INT64_T | |
30262 | #define _INT64_T | |
b9497ab5 | 30263 | #ifndef int64_t |
c13e029b PB |
30264 | typedef $acx_cv_type_int64_t int64_t; |
30265 | #endif | |
b9497ab5 | 30266 | #endif |
c13e029b PB |
30267 | #ifndef _UINT64_T |
30268 | #define _UINT64_T | |
30269 | #ifndef __uint64_t_defined | |
30270 | #define __uint64_t_defined | |
b9497ab5 | 30271 | #ifndef uint64_t |
c13e029b PB |
30272 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
30273 | #endif | |
30274 | #endif | |
b9497ab5 | 30275 | #endif |
c13e029b PB |
30276 | EOF |
30277 | else | |
30278 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30279 | ||
30280 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
30281 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
30282 | #ifndef _INT64_T | |
30283 | #define _INT64_T | |
30284 | #ifndef __int64_t_defined | |
b9497ab5 | 30285 | #ifndef int64_t |
c13e029b PB |
30286 | typedef long long int64_t; |
30287 | #endif | |
30288 | #endif | |
b9497ab5 | 30289 | #endif |
c13e029b PB |
30290 | #ifndef _UINT64_T |
30291 | #define _UINT64_T | |
b9497ab5 | 30292 | #ifndef uint64_t |
c13e029b PB |
30293 | typedef unsigned long long uint64_t; |
30294 | #endif | |
b9497ab5 | 30295 | #endif |
c13e029b PB |
30296 | |
30297 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
30298 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
30299 | does not implement __extension__. But that compiler doesn't define | |
30300 | __GNUC_MINOR__. */ | |
30301 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
30302 | # define __extension__ | |
30303 | # endif | |
30304 | ||
30305 | # ifndef _INT64_T | |
30306 | # define _INT64_T | |
b9497ab5 | 30307 | # ifndef int64_t |
c13e029b PB |
30308 | __extension__ typedef long long int64_t; |
30309 | # endif | |
b9497ab5 | 30310 | # endif |
c13e029b PB |
30311 | # ifndef _UINT64_T |
30312 | # define _UINT64_T | |
b9497ab5 | 30313 | # ifndef uint64_t |
c13e029b PB |
30314 | __extension__ typedef unsigned long long uint64_t; |
30315 | # endif | |
b9497ab5 | 30316 | # endif |
c13e029b PB |
30317 | |
30318 | #elif !defined __STRICT_ANSI__ | |
30319 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
30320 | ||
30321 | # ifndef _INT64_T | |
30322 | # define _INT64_T | |
b9497ab5 | 30323 | # ifndef int64_t |
c13e029b PB |
30324 | typedef __int64 int64_t; |
30325 | # endif | |
b9497ab5 | 30326 | # endif |
c13e029b PB |
30327 | # ifndef _UINT64_T |
30328 | # define _UINT64_T | |
b9497ab5 | 30329 | # ifndef uint64_t |
c13e029b PB |
30330 | typedef unsigned __int64 uint64_t; |
30331 | # endif | |
b9497ab5 | 30332 | # endif |
c13e029b PB |
30333 | # endif /* compiler */ |
30334 | ||
30335 | #endif /* ANSI version */ | |
30336 | EOF | |
30337 | fi | |
30338 | ||
30339 | # ------------- done int64_t types, emit intptr types ------------ | |
30340 | if test "$ac_cv_type_uintptr_t" != yes; then | |
30341 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30342 | ||
30343 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
30344 | #ifndef __uintptr_t_defined | |
b9497ab5 | 30345 | #ifndef uintptr_t |
c13e029b PB |
30346 | typedef u$acx_cv_type_intptr_t uintptr_t; |
30347 | #endif | |
b9497ab5 | 30348 | #endif |
c13e029b | 30349 | #ifndef __intptr_t_defined |
b9497ab5 | 30350 | #ifndef intptr_t |
c13e029b PB |
30351 | typedef $acx_cv_type_intptr_t intptr_t; |
30352 | #endif | |
b9497ab5 | 30353 | #endif |
c13e029b PB |
30354 | EOF |
30355 | fi | |
30356 | ||
30357 | # ------------- done intptr types, emit int_least types ------------ | |
4c4b3eb0 | 30358 | if test "$ac_cv_type_int_least32_t" != yes; then |
c13e029b | 30359 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
30360 | |
30361 | /* Define int_least types */ | |
30362 | typedef int8_t int_least8_t; | |
30363 | typedef int16_t int_least16_t; | |
30364 | typedef int32_t int_least32_t; | |
c13e029b | 30365 | #ifdef _INT64_T |
4c4b3eb0 | 30366 | typedef int64_t int_least64_t; |
c13e029b | 30367 | #endif |
4c4b3eb0 PB |
30368 | |
30369 | typedef uint8_t uint_least8_t; | |
30370 | typedef uint16_t uint_least16_t; | |
30371 | typedef uint32_t uint_least32_t; | |
c13e029b | 30372 | #ifdef _UINT64_T |
4c4b3eb0 | 30373 | typedef uint64_t uint_least64_t; |
c13e029b | 30374 | #endif |
4c4b3eb0 PB |
30375 | EOF |
30376 | fi | |
30377 | ||
c13e029b | 30378 | # ------------- done intptr types, emit int_fast types ------------ |
4c4b3eb0 | 30379 | if test "$ac_cv_type_int_fast32_t" != yes; then |
c13e029b | 30380 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
4c4b3eb0 PB |
30381 | |
30382 | /* Define int_fast types. short is often slow */ | |
30383 | typedef int8_t int_fast8_t; | |
30384 | typedef int int_fast16_t; | |
30385 | typedef int32_t int_fast32_t; | |
c13e029b | 30386 | #ifdef _INT64_T |
4c4b3eb0 | 30387 | typedef int64_t int_fast64_t; |
c13e029b | 30388 | #endif |
4c4b3eb0 PB |
30389 | |
30390 | typedef uint8_t uint_fast8_t; | |
30391 | typedef unsigned int uint_fast16_t; | |
30392 | typedef uint32_t uint_fast32_t; | |
c13e029b | 30393 | #ifdef _UINT64_T |
4c4b3eb0 | 30394 | typedef uint64_t uint_fast64_t; |
c13e029b PB |
30395 | #endif |
30396 | EOF | |
30397 | fi | |
30398 | ||
30399 | if test "$ac_cv_type_uintmax_t" != yes; then | |
30400 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
30401 | ||
30402 | /* Define intmax based on what we found */ | |
b9497ab5 | 30403 | #ifndef intmax_t |
c13e029b PB |
30404 | #ifdef _INT64_T |
30405 | typedef int64_t intmax_t; | |
30406 | #else | |
30407 | typedef long intmax_t; | |
30408 | #endif | |
b9497ab5 RO |
30409 | #endif |
30410 | #ifndef uintmax_t | |
c13e029b PB |
30411 | #ifdef _UINT64_T |
30412 | typedef uint64_t uintmax_t; | |
30413 | #else | |
30414 | typedef unsigned long uintmax_t; | |
30415 | #endif | |
b9497ab5 | 30416 | #endif |
4c4b3eb0 PB |
30417 | EOF |
30418 | fi | |
30419 | ||
c13e029b PB |
30420 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
30421 | ||
30422 | #endif /* GCC_GENERATED_STDINT_H */ | |
30423 | EOF | |
4c4b3eb0 | 30424 | |
c13e029b PB |
30425 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
30426 | rm -f tmp-stdint.h | |
4c4b3eb0 | 30427 | else |
c13e029b | 30428 | mv -f tmp-stdint.h gstdint.h |
4c4b3eb0 PB |
30429 | fi |
30430 | ||
30431 | ;; | |
5213506e | 30432 | |
6de9cd9a | 30433 | esac |
5213506e | 30434 | done # for ac_tag |
6de9cd9a | 30435 | |
6de9cd9a | 30436 | |
5213506e | 30437 | as_fn_exit 0 |
6de9cd9a | 30438 | _ACEOF |
6de9cd9a DN |
30439 | ac_clean_files=$ac_clean_files_save |
30440 | ||
5213506e | 30441 | test $ac_write_fail = 0 || |
22e05272 | 30442 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 30443 | |
6de9cd9a DN |
30444 | |
30445 | # configure is writing to config.log, and then calls config.status. | |
30446 | # config.status does its own redirection, appending to config.log. | |
30447 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
30448 | # by configure, so config.status won't be able to write to it; its | |
30449 | # output is simply discarded. So we exec the FD to /dev/null, | |
30450 | # effectively closing config.log, so it can be properly (re)opened and | |
30451 | # appended to by config.status. When coming back to configure, we | |
30452 | # need to make the FD available again. | |
30453 | if test "$no_create" != yes; then | |
30454 | ac_cs_success=: | |
30455 | ac_config_status_args= | |
30456 | test "$silent" = yes && | |
30457 | ac_config_status_args="$ac_config_status_args --quiet" | |
30458 | exec 5>/dev/null | |
30459 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
30460 | exec 5>>config.log | |
30461 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
30462 | # would make configure fail if this is the last instruction. | |
22e05272 | 30463 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
30464 | fi |
30465 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
30466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
30467 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
6de9cd9a DN |
30468 | fi |
30469 |