]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
f00f02a3 | 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. | |
cd9a469c | 7 | # |
4ee9c684 | 8 | # |
4ee9c684 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
cd9a469c | 11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
4ee9c684 | 14 | |
cd9a469c | 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 : | |
4ee9c684 | 18 | emulate sh |
19 | NULLCMD=: | |
cd9a469c | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 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 | |
4ee9c684 | 31 | fi |
4ee9c684 | 32 | |
cd9a469c | 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 | } | |
4ee9c684 | 79 | fi |
80 | ||
81 | ||
cd9a469c | 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. | |
f00f02a3 | 90 | as_myself= |
cd9a469c | 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 | |
4ee9c684 | 122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
cd9a469c | 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 | ||
f00f02a3 | 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;} | |
cd9a469c | 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 | |
f00f02a3 | 193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
cd9a469c | 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 | |
d5d92632 | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
e6408286 | 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\" \\ | |
d5d92632 | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
cd9a469c | 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 | |
4ee9c684 | 219 | do |
cd9a469c | 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 : | |
f00f02a3 | 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 | |
cd9a469c | 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." | |
4ee9c684 | 274 | else |
cd9a469c | 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." | |
4ee9c684 | 279 | fi |
cd9a469c | 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" | |
f00f02a3 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
f00f02a3 | 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 | |
cd9a469c | 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 | ||
f00f02a3 | 411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
cd9a469c | 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 | |
f00f02a3 | 415 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 416 | as_fn_error () |
417 | { | |
f00f02a3 | 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 | |
cd9a469c | 422 | fi |
f00f02a3 | 423 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
4ee9c684 | 426 | |
cd9a469c | 427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
cd9a469c | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
cd9a469c | 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 | |
4ee9c684 | 445 | |
cd9a469c | 446 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 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'` | |
ce1a737c | 464 | |
82eaf560 | 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 | |
ff4425cf | 471 | |
4ee9c684 | 472 | |
cd9a469c | 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 | | |
4ee9c684 | 482 | sed ' |
cd9a469c | 483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
4ee9c684 | 487 | N |
cd9a469c | 488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
4ee9c684 | 490 | t loop |
cd9a469c | 491 | s/-\n.*// |
4ee9c684 | 492 | ' >$as_me.lineno && |
cd9a469c | 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; } | |
4ee9c684 | 495 | |
f00f02a3 | 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 | |
4ee9c684 | 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 | |
cd9a469c | 502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
4ee9c684 | 504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
cd9a469c | 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';; | |
4ee9c684 | 519 | esac |
520 | ||
cd9a469c | 521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 524 | else |
cd9a469c | 525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 527 | fi |
cd9a469c | 528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 530 | as_ln_s='ln -s' |
cd9a469c | 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. | |
f00f02a3 | 534 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 536 | as_ln_s='cp -pR' |
cd9a469c | 537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
f00f02a3 | 540 | as_ln_s='cp -pR' |
82eaf560 | 541 | fi |
4ee9c684 | 542 | else |
f00f02a3 | 543 | as_ln_s='cp -pR' |
4ee9c684 | 544 | fi |
cd9a469c | 545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
4ee9c684 | 547 | |
548 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
f00f02a3 | 555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
4ee9c684 | 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 | ||
542f9784 | 564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
542f9784 | 566 | |
f00f02a3 | 567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
cd9a469c | 569 | |
4ee9c684 | 570 | # Name of the host. |
f00f02a3 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
4ee9c684 | 572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
4ee9c684 | 575 | # |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
cd9a469c | 579 | ac_clean_files= |
4ee9c684 | 580 | ac_config_libobj_dir=. |
cd9a469c | 581 | LIBOBJS= |
4ee9c684 | 582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
82eaf560 | 586 | |
4ee9c684 | 587 | # Identity of this package. |
588 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
589 | PACKAGE_TARNAME='libgfortran' | |
76c0a846 | 590 | PACKAGE_VERSION='0.3' |
591 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
4ee9c684 | 592 | PACKAGE_BUGREPORT='' |
cd9a469c | 593 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
4ee9c684 | 594 | |
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
cd9a469c | 598 | #ifdef HAVE_SYS_TYPES_H |
4ee9c684 | 599 | # include <sys/types.h> |
600 | #endif | |
cd9a469c | 601 | #ifdef HAVE_SYS_STAT_H |
4ee9c684 | 602 | # include <sys/stat.h> |
603 | #endif | |
cd9a469c | 604 | #ifdef STDC_HEADERS |
4ee9c684 | 605 | # include <stdlib.h> |
606 | # include <stddef.h> | |
607 | #else | |
cd9a469c | 608 | # ifdef HAVE_STDLIB_H |
4ee9c684 | 609 | # include <stdlib.h> |
610 | # endif | |
611 | #endif | |
cd9a469c | 612 | #ifdef HAVE_STRING_H |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
4ee9c684 | 614 | # include <memory.h> |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
cd9a469c | 618 | #ifdef HAVE_STRINGS_H |
4ee9c684 | 619 | # include <strings.h> |
620 | #endif | |
cd9a469c | 621 | #ifdef HAVE_INTTYPES_H |
4ee9c684 | 622 | # include <inttypes.h> |
4ee9c684 | 623 | #endif |
cd9a469c | 624 | #ifdef HAVE_STDINT_H |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
4ee9c684 | 628 | # include <unistd.h> |
629 | #endif" | |
630 | ||
a1aa1d30 | 631 | ac_header_list= |
632 | ac_func_list= | |
87969c8c | 633 | ac_c_werror_flag= |
b14cf757 | 634 | ac_c_werror_flag= |
cd9a469c | 635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
0812bb06 | 639 | get_gcc_base_ver |
b4e409cb | 640 | HAVE_AVX128_FALSE |
641 | HAVE_AVX128_TRUE | |
cd9a469c | 642 | IEEE_FLAGS |
d566c3e0 | 643 | IEEE_SUPPORT |
644 | IEEE_SUPPORT_FALSE | |
645 | IEEE_SUPPORT_TRUE | |
cd9a469c | 646 | FPU_HOST_HEADER |
87969c8c | 647 | LIBGFOR_BUILD_QUAD_FALSE |
648 | LIBGFOR_BUILD_QUAD_TRUE | |
649 | LIBQUADINCLUDE | |
650 | LIBQUADLIB_DEP | |
651 | LIBQUADLIB | |
652 | LIBQUADSPEC | |
cd9a469c | 653 | extra_ldflags_libgfortran |
654 | ac_ct_FC | |
655 | FCFLAGS | |
656 | FC | |
657 | enable_static | |
658 | enable_shared | |
8c35d268 | 659 | lt_host_flags |
cd9a469c | 660 | OTOOL64 |
661 | OTOOL | |
662 | LIPO | |
663 | NMEDIT | |
664 | DSYMUTIL | |
cd9a469c | 665 | OBJDUMP |
666 | LN_S | |
667 | NM | |
668 | ac_ct_DUMPBIN | |
669 | DUMPBIN | |
cd9a469c | 670 | LIBTOOL |
671 | RANLIB | |
672 | AR | |
673 | AS | |
18ce903b | 674 | HAVE_HWCAP_FALSE |
675 | HAVE_HWCAP_TRUE | |
676 | HWCAP_LDFLAGS | |
677 | LD | |
678 | FGREP | |
679 | SED | |
cd9a469c | 680 | SECTION_FLAGS |
eb00e55c | 681 | LIBGFOR_MINIMAL_FALSE |
682 | LIBGFOR_MINIMAL_TRUE | |
019fb48a | 683 | LIBGFOR_USE_SYMVER_SUN_FALSE |
684 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
685 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
686 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
cd9a469c | 687 | LIBGFOR_USE_SYMVER_FALSE |
688 | LIBGFOR_USE_SYMVER_TRUE | |
689 | AM_CFLAGS | |
690 | AM_FCFLAGS | |
d5d92632 | 691 | toolexeclibdir |
692 | toolexecdir | |
693 | EGREP | |
694 | GREP | |
695 | CPP | |
cd9a469c | 696 | am__fastdepCC_FALSE |
697 | am__fastdepCC_TRUE | |
698 | CCDEPMODE | |
544db64f | 699 | am__nodep |
cd9a469c | 700 | AMDEPBACKSLASH |
701 | AMDEP_FALSE | |
702 | AMDEP_TRUE | |
703 | am__quote | |
704 | am__include | |
705 | DEPDIR | |
706 | OBJEXT | |
707 | EXEEXT | |
708 | ac_ct_CC | |
709 | CPPFLAGS | |
710 | LDFLAGS | |
711 | CFLAGS | |
712 | CC | |
cd9a469c | 713 | multi_basedir |
714 | MAINT | |
715 | MAINTAINER_MODE_FALSE | |
716 | MAINTAINER_MODE_TRUE | |
f00f02a3 | 717 | AM_BACKSLASH |
718 | AM_DEFAULT_VERBOSITY | |
719 | AM_DEFAULT_V | |
720 | AM_V | |
cd9a469c | 721 | am__untar |
722 | am__tar | |
723 | AMTAR | |
724 | am__leading_dot | |
725 | SET_MAKE | |
726 | AWK | |
727 | mkdir_p | |
728 | MKDIR_P | |
729 | INSTALL_STRIP_PROGRAM | |
730 | STRIP | |
731 | install_sh | |
732 | MAKEINFO | |
733 | AUTOHEADER | |
734 | AUTOMAKE | |
735 | AUTOCONF | |
736 | ACLOCAL | |
737 | VERSION | |
738 | PACKAGE | |
739 | CYGPATH_W | |
740 | am__isrc | |
741 | INSTALL_DATA | |
742 | INSTALL_SCRIPT | |
743 | INSTALL_PROGRAM | |
7eda0fb7 | 744 | target_noncanonical |
cd9a469c | 745 | target_os |
746 | target_vendor | |
747 | target_cpu | |
748 | target | |
749 | host_os | |
750 | host_vendor | |
751 | host_cpu | |
752 | host | |
753 | onestep | |
754 | onestep_FALSE | |
755 | onestep_TRUE | |
756 | target_subdir | |
757 | host_subdir | |
758 | build_subdir | |
759 | build_libsubdir | |
760 | build_os | |
761 | build_vendor | |
762 | build_cpu | |
763 | build | |
764 | target_alias | |
765 | host_alias | |
766 | build_alias | |
767 | LIBS | |
768 | ECHO_T | |
769 | ECHO_N | |
770 | ECHO_C | |
771 | DEFS | |
772 | mandir | |
773 | localedir | |
774 | libdir | |
775 | psdir | |
776 | pdfdir | |
777 | dvidir | |
778 | htmldir | |
779 | infodir | |
780 | docdir | |
781 | oldincludedir | |
782 | includedir | |
e38e222d | 783 | runstatedir |
cd9a469c | 784 | localstatedir |
785 | sharedstatedir | |
786 | sysconfdir | |
787 | datadir | |
788 | datarootdir | |
789 | libexecdir | |
790 | sbindir | |
791 | bindir | |
792 | program_transform_name | |
793 | prefix | |
794 | exec_prefix | |
795 | PACKAGE_URL | |
796 | PACKAGE_BUGREPORT | |
797 | PACKAGE_STRING | |
798 | PACKAGE_VERSION | |
799 | PACKAGE_TARNAME | |
800 | PACKAGE_NAME | |
801 | PATH_SEPARATOR | |
802 | SHELL' | |
4ee9c684 | 803 | ac_subst_files='' |
cd9a469c | 804 | ac_user_opts=' |
805 | enable_option_checking | |
806 | with_build_libsubdir | |
807 | enable_version_specific_runtime_libs | |
808 | enable_intermodule | |
f00f02a3 | 809 | enable_silent_rules |
cd9a469c | 810 | enable_maintainer_mode |
811 | enable_multilib | |
812 | enable_dependency_tracking | |
42ea2de2 | 813 | enable_cet |
bbb514dc | 814 | enable_symvers |
18ce903b | 815 | with_gnu_ld |
cd9a469c | 816 | enable_shared |
817 | enable_static | |
818 | with_pic | |
819 | enable_fast_install | |
cd9a469c | 820 | enable_libtool_lock |
821 | enable_largefile | |
d9d975ae | 822 | enable_libquadmath_support |
0812bb06 | 823 | with_gcc_major_version_only |
cd9a469c | 824 | ' |
825 | ac_precious_vars='build_alias | |
826 | host_alias | |
827 | target_alias | |
d5d92632 | 828 | CC |
829 | CFLAGS | |
830 | LDFLAGS | |
831 | LIBS | |
cd9a469c | 832 | CPPFLAGS |
d5d92632 | 833 | CPP |
cd9a469c | 834 | FC |
d5d92632 | 835 | FCFLAGS' |
cd9a469c | 836 | |
4ee9c684 | 837 | |
838 | # Initialize some variables set by options. | |
839 | ac_init_help= | |
840 | ac_init_version=false | |
cd9a469c | 841 | ac_unrecognized_opts= |
842 | ac_unrecognized_sep= | |
4ee9c684 | 843 | # The variables have the same names as the options, with |
844 | # dashes changed to underlines. | |
845 | cache_file=/dev/null | |
846 | exec_prefix=NONE | |
847 | no_create= | |
848 | no_recursion= | |
849 | prefix=NONE | |
850 | program_prefix=NONE | |
851 | program_suffix=NONE | |
852 | program_transform_name=s,x,x, | |
853 | silent= | |
854 | site= | |
855 | srcdir= | |
856 | verbose= | |
857 | x_includes=NONE | |
858 | x_libraries=NONE | |
859 | ||
860 | # Installation directory options. | |
861 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
862 | # and all the variables that are supposed to be based on exec_prefix | |
863 | # by default will actually change. | |
864 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 865 | # (The list follows the same order as the GNU Coding Standards.) |
4ee9c684 | 866 | bindir='${exec_prefix}/bin' |
867 | sbindir='${exec_prefix}/sbin' | |
868 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 869 | datarootdir='${prefix}/share' |
870 | datadir='${datarootdir}' | |
4ee9c684 | 871 | sysconfdir='${prefix}/etc' |
872 | sharedstatedir='${prefix}/com' | |
873 | localstatedir='${prefix}/var' | |
e38e222d | 874 | runstatedir='${localstatedir}/run' |
4ee9c684 | 875 | includedir='${prefix}/include' |
876 | oldincludedir='/usr/include' | |
cd9a469c | 877 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
878 | infodir='${datarootdir}/info' | |
879 | htmldir='${docdir}' | |
880 | dvidir='${docdir}' | |
881 | pdfdir='${docdir}' | |
882 | psdir='${docdir}' | |
883 | libdir='${exec_prefix}/lib' | |
884 | localedir='${datarootdir}/locale' | |
885 | mandir='${datarootdir}/man' | |
4ee9c684 | 886 | |
887 | ac_prev= | |
cd9a469c | 888 | ac_dashdash= |
4ee9c684 | 889 | for ac_option |
890 | do | |
891 | # If the previous option needs an argument, assign it. | |
892 | if test -n "$ac_prev"; then | |
cd9a469c | 893 | eval $ac_prev=\$ac_option |
4ee9c684 | 894 | ac_prev= |
895 | continue | |
896 | fi | |
897 | ||
cd9a469c | 898 | case $ac_option in |
f00f02a3 | 899 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
900 | *=) ac_optarg= ;; | |
901 | *) ac_optarg=yes ;; | |
cd9a469c | 902 | esac |
4ee9c684 | 903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
cd9a469c | 906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
4ee9c684 | 909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
913 | bindir=$ac_optarg ;; | |
914 | ||
915 | -build | --build | --buil | --bui | --bu) | |
916 | ac_prev=build_alias ;; | |
917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
918 | build_alias=$ac_optarg ;; | |
919 | ||
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
925 | cache_file=$ac_optarg ;; | |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
929 | ||
cd9a469c | 930 | -datadir | --datadir | --datadi | --datad) |
4ee9c684 | 931 | ac_prev=datadir ;; |
cd9a469c | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4ee9c684 | 933 | datadir=$ac_optarg ;; |
934 | ||
cd9a469c | 935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
4ee9c684 | 942 | -disable-* | --disable-*) |
cd9a469c | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4ee9c684 | 944 | # Reject names that are not valid shell variable names. |
cd9a469c | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 946 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 947 | ac_useropt_orig=$ac_useropt |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
957 | ||
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
4ee9c684 | 967 | |
968 | -enable-* | --enable-*) | |
cd9a469c | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4ee9c684 | 970 | # Reject names that are not valid shell variable names. |
cd9a469c | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 972 | as_fn_error $? "invalid feature name: $ac_useropt" |
cd9a469c | 973 | ac_useropt_orig=$ac_useropt |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
975 | case $ac_user_opts in | |
976 | *" | |
977 | "enable_$ac_useropt" | |
978 | "*) ;; | |
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
980 | ac_unrecognized_sep=', ';; | |
82eaf560 | 981 | esac |
cd9a469c | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 983 | |
984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
986 | | --exec | --exe | --ex) | |
987 | ac_prev=exec_prefix ;; | |
988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
990 | | --exec=* | --exe=* | --ex=*) | |
991 | exec_prefix=$ac_optarg ;; | |
992 | ||
993 | -gas | --gas | --ga | --g) | |
994 | # Obsolete; use --with-gas. | |
995 | with_gas=yes ;; | |
996 | ||
997 | -help | --help | --hel | --he | -h) | |
998 | ac_init_help=long ;; | |
999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1000 | ac_init_help=recursive ;; | |
1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1002 | ac_init_help=short ;; | |
1003 | ||
1004 | -host | --host | --hos | --ho) | |
1005 | ac_prev=host_alias ;; | |
1006 | -host=* | --host=* | --hos=* | --ho=*) | |
1007 | host_alias=$ac_optarg ;; | |
1008 | ||
cd9a469c | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1010 | ac_prev=htmldir ;; | |
1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1012 | | --ht=*) | |
1013 | htmldir=$ac_optarg ;; | |
1014 | ||
4ee9c684 | 1015 | -includedir | --includedir | --includedi | --included | --include \ |
1016 | | --includ | --inclu | --incl | --inc) | |
1017 | ac_prev=includedir ;; | |
1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1020 | includedir=$ac_optarg ;; | |
1021 | ||
1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1023 | ac_prev=infodir ;; | |
1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1025 | infodir=$ac_optarg ;; | |
1026 | ||
1027 | -libdir | --libdir | --libdi | --libd) | |
1028 | ac_prev=libdir ;; | |
1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1030 | libdir=$ac_optarg ;; | |
1031 | ||
1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1033 | | --libexe | --libex | --libe) | |
1034 | ac_prev=libexecdir ;; | |
1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1036 | | --libexe=* | --libex=* | --libe=*) | |
1037 | libexecdir=$ac_optarg ;; | |
1038 | ||
cd9a469c | 1039 | -localedir | --localedir | --localedi | --localed | --locale) |
1040 | ac_prev=localedir ;; | |
1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1042 | localedir=$ac_optarg ;; | |
1043 | ||
4ee9c684 | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
4ee9c684 | 1046 | ac_prev=localstatedir ;; |
1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4ee9c684 | 1049 | localstatedir=$ac_optarg ;; |
1050 | ||
1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1052 | ac_prev=mandir ;; | |
1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1054 | mandir=$ac_optarg ;; | |
1055 | ||
1056 | -nfp | --nfp | --nf) | |
1057 | # Obsolete; use --without-fp. | |
1058 | with_fp=no ;; | |
1059 | ||
1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1061 | | --no-cr | --no-c | -n) | |
1062 | no_create=yes ;; | |
1063 | ||
1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1066 | no_recursion=yes ;; | |
1067 | ||
1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1070 | | --oldin | --oldi | --old | --ol | --o) | |
1071 | ac_prev=oldincludedir ;; | |
1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1075 | oldincludedir=$ac_optarg ;; | |
1076 | ||
1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1078 | ac_prev=prefix ;; | |
1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1080 | prefix=$ac_optarg ;; | |
1081 | ||
1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1083 | | --program-pre | --program-pr | --program-p) | |
1084 | ac_prev=program_prefix ;; | |
1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1087 | program_prefix=$ac_optarg ;; | |
1088 | ||
1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1090 | | --program-suf | --program-su | --program-s) | |
1091 | ac_prev=program_suffix ;; | |
1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1094 | program_suffix=$ac_optarg ;; | |
1095 | ||
1096 | -program-transform-name | --program-transform-name \ | |
1097 | | --program-transform-nam | --program-transform-na \ | |
1098 | | --program-transform-n | --program-transform- \ | |
1099 | | --program-transform | --program-transfor \ | |
1100 | | --program-transfo | --program-transf \ | |
1101 | | --program-trans | --program-tran \ | |
1102 | | --progr-tra | --program-tr | --program-t) | |
1103 | ac_prev=program_transform_name ;; | |
1104 | -program-transform-name=* | --program-transform-name=* \ | |
1105 | | --program-transform-nam=* | --program-transform-na=* \ | |
1106 | | --program-transform-n=* | --program-transform-=* \ | |
1107 | | --program-transform=* | --program-transfor=* \ | |
1108 | | --program-transfo=* | --program-transf=* \ | |
1109 | | --program-trans=* | --program-tran=* \ | |
1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1111 | program_transform_name=$ac_optarg ;; | |
1112 | ||
cd9a469c | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1114 | ac_prev=pdfdir ;; | |
1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1116 | pdfdir=$ac_optarg ;; | |
1117 | ||
1118 | -psdir | --psdir | --psdi | --psd | --ps) | |
1119 | ac_prev=psdir ;; | |
1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1121 | psdir=$ac_optarg ;; | |
1122 | ||
4ee9c684 | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1124 | | -silent | --silent | --silen | --sile | --sil) | |
1125 | silent=yes ;; | |
1126 | ||
e38e222d | 1127 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1128 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1129 | | --run | --ru | --r) | |
1130 | ac_prev=runstatedir ;; | |
1131 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1132 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1133 | | --run=* | --ru=* | --r=*) | |
1134 | runstatedir=$ac_optarg ;; | |
1135 | ||
4ee9c684 | 1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
1140 | sbindir=$ac_optarg ;; | |
1141 | ||
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
1151 | sharedstatedir=$ac_optarg ;; | |
1152 | ||
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
1156 | site=$ac_optarg ;; | |
1157 | ||
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1161 | srcdir=$ac_optarg ;; | |
1162 | ||
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1168 | sysconfdir=$ac_optarg ;; | |
1169 | ||
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1171 | ac_prev=target_alias ;; | |
1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1173 | target_alias=$ac_optarg ;; | |
1174 | ||
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
1178 | -version | --version | --versio | --versi | --vers | -V) | |
1179 | ac_init_version=: ;; | |
1180 | ||
1181 | -with-* | --with-*) | |
cd9a469c | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4ee9c684 | 1183 | # Reject names that are not valid shell variable names. |
cd9a469c | 1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1185 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1186 | ac_useropt_orig=$ac_useropt |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
82eaf560 | 1194 | esac |
cd9a469c | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 1196 | |
1197 | -without-* | --without-*) | |
cd9a469c | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4ee9c684 | 1199 | # Reject names that are not valid shell variable names. |
cd9a469c | 1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f00f02a3 | 1201 | as_fn_error $? "invalid package name: $ac_useropt" |
cd9a469c | 1202 | ac_useropt_orig=$ac_useropt |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
4ee9c684 | 1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1222 | x_includes=$ac_optarg ;; | |
1223 | ||
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1229 | x_libraries=$ac_optarg ;; | |
1230 | ||
f00f02a3 | 1231 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information" | |
4ee9c684 | 1233 | ;; |
1234 | ||
1235 | *=*) | |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
f00f02a3 | 1240 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
cd9a469c | 1241 | esac |
1242 | eval $ac_envvar=\$ac_optarg | |
4ee9c684 | 1243 | export $ac_envvar ;; |
1244 | ||
1245 | *) | |
1246 | # FIXME: should be removed in autoconf 3.0. | |
cd9a469c | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4ee9c684 | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f00f02a3 | 1250 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
4ee9c684 | 1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
f00f02a3 | 1258 | as_fn_error $? "missing argument to $ac_option" |
4ee9c684 | 1259 | fi |
1260 | ||
cd9a469c | 1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
f00f02a3 | 1264 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
cd9a469c | 1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
82eaf560 | 1266 | esac |
cd9a469c | 1267 | fi |
82eaf560 | 1268 | |
cd9a469c | 1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e38e222d | 1273 | libdir localedir mandir runstatedir |
82eaf560 | 1274 | do |
cd9a469c | 1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
82eaf560 | 1283 | case $ac_val in |
cd9a469c | 1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
4ee9c684 | 1286 | esac |
f00f02a3 | 1287 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
4ee9c684 | 1288 | done |
1289 | ||
1290 | # There might be people who depend on the old broken behavior: `$host' | |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
1296 | ||
1297 | # FIXME: To remove some day. | |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
4ee9c684 | 1301 | elif test "x$build_alias" != "x$host_alias"; then |
1302 | cross_compiling=yes | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | ac_tool_prefix= | |
1307 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1308 | ||
1309 | test "$silent" = yes && exec 6>/dev/null | |
1310 | ||
1311 | ||
cd9a469c | 1312 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1313 | ac_ls_di=`ls -di .` && | |
1314 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f00f02a3 | 1315 | as_fn_error $? "working directory cannot be determined" |
cd9a469c | 1316 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f00f02a3 | 1317 | as_fn_error $? "pwd does not report name of working directory" |
cd9a469c | 1318 | |
1319 | ||
4ee9c684 | 1320 | # Find the source files, if location was not specified. |
1321 | if test -z "$srcdir"; then | |
1322 | ac_srcdir_defaulted=yes | |
cd9a469c | 1323 | # Try the directory containing this script, then the parent directory. |
1324 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1325 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1326 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1327 | X"$as_myself" : 'X\(//\)$' \| \ | |
1328 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1329 | $as_echo X"$as_myself" | | |
1330 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1331 | s//\1/ | |
1332 | q | |
1333 | } | |
1334 | /^X\(\/\/\)[^/].*/{ | |
1335 | s//\1/ | |
1336 | q | |
1337 | } | |
1338 | /^X\(\/\/\)$/{ | |
1339 | s//\1/ | |
1340 | q | |
1341 | } | |
1342 | /^X\(\/\).*/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | s/.*/./; q'` | |
4ee9c684 | 1347 | srcdir=$ac_confdir |
cd9a469c | 1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
4ee9c684 | 1349 | srcdir=.. |
1350 | fi | |
1351 | else | |
1352 | ac_srcdir_defaulted=no | |
1353 | fi | |
cd9a469c | 1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
1355 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f00f02a3 | 1356 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd9a469c | 1357 | fi |
1358 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1359 | ac_abs_confdir=`( | |
f00f02a3 | 1360 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
cd9a469c | 1361 | pwd)` |
1362 | # When building in place, set srcdir=. | |
1363 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 | srcdir=. | |
1365 | fi | |
1366 | # Remove unnecessary trailing slashes from srcdir. | |
1367 | # Double slashes in file names in object file debugging info | |
1368 | # mess up M-x gdb in Emacs. | |
1369 | case $srcdir in | |
1370 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 | esac | |
1372 | for ac_var in $ac_precious_vars; do | |
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 | done | |
4ee9c684 | 1378 | |
1379 | # | |
1380 | # Report the --help message. | |
1381 | # | |
1382 | if test "$ac_init_help" = "long"; then | |
1383 | # Omit some internal or obsolete options to make the list less imposing. | |
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 | cat <<_ACEOF | |
76c0a846 | 1386 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
4ee9c684 | 1387 | |
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | ||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | ||
1393 | Defaults for the options are specified in brackets. | |
1394 | ||
1395 | Configuration: | |
1396 | -h, --help display this help and exit | |
1397 | --help=short display options specific to this package | |
1398 | --help=recursive display the short help of all the included packages | |
1399 | -V, --version display version information and exit | |
f00f02a3 | 1400 | -q, --quiet, --silent do not print \`checking ...' messages |
4ee9c684 | 1401 | --cache-file=FILE cache test results in FILE [disabled] |
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 | -n, --no-create do not create output files | |
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | ||
4ee9c684 | 1406 | Installation directories: |
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1408 | [$ac_default_prefix] |
4ee9c684 | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1410 | [PREFIX] |
4ee9c684 | 1411 | |
1412 | By default, \`make install' will install all the files in | |
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 | for instance \`--prefix=\$HOME'. | |
1416 | ||
1417 | For better control, use the options below. | |
1418 | ||
1419 | Fine tuning of the installation directories: | |
cd9a469c | 1420 | --bindir=DIR user executables [EPREFIX/bin] |
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
e38e222d | 1426 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
cd9a469c | 1427 | --libdir=DIR object code libraries [EPREFIX/lib] |
1428 | --includedir=DIR C header files [PREFIX/include] | |
1429 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1430 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1431 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1432 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1433 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1434 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1435 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1436 | --htmldir=DIR html documentation [DOCDIR] | |
1437 | --dvidir=DIR dvi documentation [DOCDIR] | |
1438 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1439 | --psdir=DIR ps documentation [DOCDIR] | |
4ee9c684 | 1440 | _ACEOF |
1441 | ||
1442 | cat <<\_ACEOF | |
1443 | ||
1444 | Program names: | |
1445 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1446 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1447 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1448 | ||
1449 | System types: | |
1450 | --build=BUILD configure for building on BUILD [guessed] | |
1451 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
90973b19 | 1452 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 1453 | _ACEOF |
1454 | fi | |
1455 | ||
1456 | if test -n "$ac_init_help"; then | |
1457 | case $ac_init_help in | |
76c0a846 | 1458 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
4ee9c684 | 1459 | esac |
1460 | cat <<\_ACEOF | |
1461 | ||
1462 | Optional Features: | |
cd9a469c | 1463 | --disable-option-checking ignore unrecognized --enable/--with options |
4ee9c684 | 1464 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1465 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9d975ae | 1466 | --enable-version-specific-runtime-libs |
1467 | specify that runtime libraries should be installed | |
1468 | in a compiler-specific directory | |
93773f82 | 1469 | --enable-intermodule build the library in one step |
f00f02a3 | 1470 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1471 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1472 | --enable-maintainer-mode | |
1473 | enable make rules and dependencies not useful (and | |
1474 | sometimes confusing) to the casual installer | |
90973b19 | 1475 | --enable-multilib build many library versions (default) |
f00f02a3 | 1476 | --enable-dependency-tracking |
1477 | do not reject slow dependency extractors | |
1478 | --disable-dependency-tracking | |
1479 | speeds up one-time build | |
ee8fea81 | 1480 | --enable-cet enable Intel CET in target libraries [default=no] |
bbb514dc | 1481 | --disable-symvers disable symbol versioning for libgfortran |
cd9a469c | 1482 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1483 | --enable-static[=PKGS] build static libraries [default=yes] | |
542f9784 | 1484 | --enable-fast-install[=PKGS] |
1485 | optimize for fast installation [default=yes] | |
4ee9c684 | 1486 | --disable-libtool-lock avoid locking (might break parallel builds) |
90e67cff | 1487 | --disable-largefile omit support for large files |
d9d975ae | 1488 | --disable-libquadmath-support |
1489 | disable libquadmath support for Fortran | |
4ee9c684 | 1490 | |
1491 | Optional Packages: | |
1492 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1493 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3e427a9c | 1494 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
18ce903b | 1495 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
542f9784 | 1496 | --with-pic try to use only PIC/non-PIC objects [default=use |
1497 | both] | |
0812bb06 | 1498 | --with-gcc-major-version-only |
1499 | use only GCC major number in filesystem paths | |
4ee9c684 | 1500 | |
1501 | Some influential environment variables: | |
1502 | CC C compiler command | |
1503 | CFLAGS C compiler flags | |
1504 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1505 | nonstandard directory <lib dir> | |
cd9a469c | 1506 | LIBS libraries to pass to the linker, e.g. -l<library> |
f00f02a3 | 1507 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
cd9a469c | 1508 | you have headers in a nonstandard directory <include dir> |
542f9784 | 1509 | CPP C preprocessor |
6d73cceb | 1510 | FC Fortran compiler command |
1511 | FCFLAGS Fortran compiler flags | |
4ee9c684 | 1512 | |
1513 | Use these variables to override the choices made by `configure' or to help | |
1514 | it to find libraries and programs with nonstandard names/locations. | |
1515 | ||
cd9a469c | 1516 | Report bugs to the package provider. |
1517 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1518 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
4ee9c684 | 1519 | _ACEOF |
cd9a469c | 1520 | ac_status=$? |
4ee9c684 | 1521 | fi |
1522 | ||
1523 | if test "$ac_init_help" = "recursive"; then | |
1524 | # If there are subdirs, report their specific --help. | |
4ee9c684 | 1525 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1526 | test -d "$ac_dir" || |
1527 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1528 | continue | |
4ee9c684 | 1529 | ac_builddir=. |
1530 | ||
cd9a469c | 1531 | case "$ac_dir" in |
1532 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1533 | *) | |
1534 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1535 | # A ".." for each directory in $ac_dir_suffix. | |
1536 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1537 | case $ac_top_builddir_sub in | |
1538 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1539 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1540 | esac ;; | |
1541 | esac | |
1542 | ac_abs_top_builddir=$ac_pwd | |
1543 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1544 | # for backward compatibility: | |
1545 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 1546 | |
1547 | case $srcdir in | |
cd9a469c | 1548 | .) # We are building in place. |
4ee9c684 | 1549 | ac_srcdir=. |
cd9a469c | 1550 | ac_top_srcdir=$ac_top_builddir_sub |
1551 | ac_abs_top_srcdir=$ac_pwd ;; | |
1552 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 1553 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1554 | ac_top_srcdir=$srcdir |
1555 | ac_abs_top_srcdir=$srcdir ;; | |
1556 | *) # Relative name. | |
1557 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1558 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1559 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a106dabe | 1560 | esac |
cd9a469c | 1561 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1562 | ||
1563 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1564 | # Check for guested configure. | |
1565 | if test -f "$ac_srcdir/configure.gnu"; then | |
1566 | echo && | |
1567 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1568 | elif test -f "$ac_srcdir/configure"; then | |
1569 | echo && | |
1570 | $SHELL "$ac_srcdir/configure" --help=recursive | |
4ee9c684 | 1571 | else |
cd9a469c | 1572 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1573 | fi || ac_status=$? | |
1574 | cd "$ac_pwd" || { ac_status=$?; break; } | |
4ee9c684 | 1575 | done |
1576 | fi | |
1577 | ||
cd9a469c | 1578 | test -n "$ac_init_help" && exit $ac_status |
4ee9c684 | 1579 | if $ac_init_version; then |
1580 | cat <<\_ACEOF | |
76c0a846 | 1581 | GNU Fortran Runtime Library configure 0.3 |
f00f02a3 | 1582 | generated by GNU Autoconf 2.69 |
4ee9c684 | 1583 | |
f00f02a3 | 1584 | Copyright (C) 2012 Free Software Foundation, Inc. |
4ee9c684 | 1585 | This configure script is free software; the Free Software Foundation |
1586 | gives unlimited permission to copy, distribute and modify it. | |
1587 | _ACEOF | |
cd9a469c | 1588 | exit |
4ee9c684 | 1589 | fi |
4ee9c684 | 1590 | |
cd9a469c | 1591 | ## ------------------------ ## |
1592 | ## Autoconf initialization. ## | |
1593 | ## ------------------------ ## | |
4ee9c684 | 1594 | |
cd9a469c | 1595 | # ac_fn_c_try_compile LINENO |
1596 | # -------------------------- | |
1597 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1598 | ac_fn_c_try_compile () | |
1599 | { | |
1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1601 | rm -f conftest.$ac_objext | |
1602 | if { { ac_try="$ac_compile" | |
1603 | case "(($ac_try" in | |
1604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1605 | *) ac_try_echo=$ac_try;; | |
1606 | esac | |
1607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1608 | $as_echo "$ac_try_echo"; } >&5 | |
1609 | (eval "$ac_compile") 2>conftest.err | |
1610 | ac_status=$? | |
1611 | if test -s conftest.err; then | |
1612 | grep -v '^ *+' conftest.err >conftest.er1 | |
1613 | cat conftest.er1 >&5 | |
1614 | mv -f conftest.er1 conftest.err | |
1615 | fi | |
1616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1617 | test $ac_status = 0; } && { | |
1618 | test -z "$ac_c_werror_flag" || | |
1619 | test ! -s conftest.err | |
1620 | } && test -s conftest.$ac_objext; then : | |
1621 | ac_retval=0 | |
1622 | else | |
1623 | $as_echo "$as_me: failed program was:" >&5 | |
1624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1625 | |
cd9a469c | 1626 | ac_retval=1 |
1627 | fi | |
f00f02a3 | 1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1629 | as_fn_set_status $ac_retval | |
cd9a469c | 1630 | |
1631 | } # ac_fn_c_try_compile | |
1632 | ||
d5d92632 | 1633 | # ac_fn_c_try_cpp LINENO |
1634 | # ---------------------- | |
1635 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1636 | ac_fn_c_try_cpp () | |
4ee9c684 | 1637 | { |
cd9a469c | 1638 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
d5d92632 | 1639 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
cd9a469c | 1640 | case "(($ac_try" in |
1641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1642 | *) ac_try_echo=$ac_try;; | |
1643 | esac | |
1644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1645 | $as_echo "$ac_try_echo"; } >&5 | |
d5d92632 | 1646 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
cd9a469c | 1647 | ac_status=$? |
1648 | if test -s conftest.err; then | |
1649 | grep -v '^ *+' conftest.err >conftest.er1 | |
1650 | cat conftest.er1 >&5 | |
1651 | mv -f conftest.er1 conftest.err | |
1652 | fi | |
1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
f00f02a3 | 1654 | test $ac_status = 0; } > conftest.i && { |
d5d92632 | 1655 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
cd9a469c | 1656 | test ! -s conftest.err |
cd9a469c | 1657 | }; then : |
1658 | ac_retval=0 | |
1659 | else | |
1660 | $as_echo "$as_me: failed program was:" >&5 | |
1661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1662 | |
d5d92632 | 1663 | ac_retval=1 |
cd9a469c | 1664 | fi |
f00f02a3 | 1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1666 | as_fn_set_status $ac_retval | |
4ee9c684 | 1667 | |
d5d92632 | 1668 | } # ac_fn_c_try_cpp |
4ee9c684 | 1669 | |
d5d92632 | 1670 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
cd9a469c | 1671 | # ------------------------------------------------------- |
d5d92632 | 1672 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1673 | # the include files in INCLUDES and setting the cache variable VAR | |
1674 | # accordingly. | |
1675 | ac_fn_c_check_header_mongrel () | |
cd9a469c | 1676 | { |
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
f00f02a3 | 1678 | if eval \${$3+:} false; then : |
cd9a469c | 1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1680 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1681 | if eval \${$3+:} false; then : |
cd9a469c | 1682 | $as_echo_n "(cached) " >&6 |
d5d92632 | 1683 | fi |
1684 | eval ac_res=\$$3 | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1686 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1687 | else |
d5d92632 | 1688 | # Is the header compilable? |
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1690 | $as_echo_n "checking $2 usability... " >&6; } | |
1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 1692 | /* end confdefs.h. */ |
1693 | $4 | |
1694 | #include <$2> | |
1695 | _ACEOF | |
1696 | if ac_fn_c_try_compile "$LINENO"; then : | |
d5d92632 | 1697 | ac_header_compiler=yes |
cd9a469c | 1698 | else |
d5d92632 | 1699 | ac_header_compiler=no |
cd9a469c | 1700 | fi |
1701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d5d92632 | 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1703 | $as_echo "$ac_header_compiler" >&6; } | |
4ee9c684 | 1704 | |
d5d92632 | 1705 | # Is the header present? |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1707 | $as_echo_n "checking $2 presence... " >&6; } | |
1708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1709 | /* end confdefs.h. */ | |
1710 | #include <$2> | |
1711 | _ACEOF | |
1712 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1713 | ac_header_preproc=yes | |
1714 | else | |
1715 | ac_header_preproc=no | |
1716 | fi | |
f00f02a3 | 1717 | rm -f conftest.err conftest.i conftest.$ac_ext |
d5d92632 | 1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1719 | $as_echo "$ac_header_preproc" >&6; } | |
4ee9c684 | 1720 | |
d5d92632 | 1721 | # So? What about this header? |
1722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1723 | yes:no: ) | |
1724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1725 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1727 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1728 | ;; | |
1729 | no:yes:* ) | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1737 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1739 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1740 | ;; | |
cd9a469c | 1741 | esac |
d5d92632 | 1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1743 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1744 | if eval \${$3+:} false; then : |
d5d92632 | 1745 | $as_echo_n "(cached) " >&6 |
cd9a469c | 1746 | else |
d5d92632 | 1747 | eval "$3=\$ac_header_compiler" |
1748 | fi | |
1749 | eval ac_res=\$$3 | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1751 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1752 | fi |
f00f02a3 | 1753 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 1754 | |
d5d92632 | 1755 | } # ac_fn_c_check_header_mongrel |
4ee9c684 | 1756 | |
cd9a469c | 1757 | # ac_fn_c_try_run LINENO |
1758 | # ---------------------- | |
1759 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1760 | # that executables *can* be run. | |
1761 | ac_fn_c_try_run () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | if { { ac_try="$ac_link" | |
1765 | case "(($ac_try" in | |
1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1767 | *) ac_try_echo=$ac_try;; | |
1768 | esac | |
1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1770 | $as_echo "$ac_try_echo"; } >&5 | |
1771 | (eval "$ac_link") 2>&5 | |
1772 | ac_status=$? | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1774 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1775 | { { case "(($ac_try" in | |
1776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1777 | *) ac_try_echo=$ac_try;; | |
1778 | esac | |
1779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1780 | $as_echo "$ac_try_echo"; } >&5 | |
1781 | (eval "$ac_try") 2>&5 | |
1782 | ac_status=$? | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; }; }; then : | |
1785 | ac_retval=0 | |
1786 | else | |
1787 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1788 | $as_echo "$as_me: failed program was:" >&5 | |
1789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1790 | |
cd9a469c | 1791 | ac_retval=$ac_status |
1792 | fi | |
1793 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1795 | as_fn_set_status $ac_retval | |
4ee9c684 | 1796 | |
cd9a469c | 1797 | } # ac_fn_c_try_run |
4ee9c684 | 1798 | |
d5d92632 | 1799 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1800 | # ------------------------------------------------------- | |
1801 | # Tests whether HEADER exists and can be compiled using the include files in | |
1802 | # INCLUDES, setting the cache variable VAR accordingly. | |
1803 | ac_fn_c_check_header_compile () | |
1804 | { | |
1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1807 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1808 | if eval \${$3+:} false; then : |
d5d92632 | 1809 | $as_echo_n "(cached) " >&6 |
1810 | else | |
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1812 | /* end confdefs.h. */ | |
1813 | $4 | |
1814 | #include <$2> | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_compile "$LINENO"; then : | |
1817 | eval "$3=yes" | |
1818 | else | |
1819 | eval "$3=no" | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1822 | fi | |
1823 | eval ac_res=\$$3 | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1825 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1826 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d5d92632 | 1827 | |
1828 | } # ac_fn_c_check_header_compile | |
1829 | ||
1830 | # ac_fn_c_try_link LINENO | |
1831 | # ----------------------- | |
1832 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1833 | ac_fn_c_try_link () | |
1834 | { | |
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1837 | if { { ac_try="$ac_link" | |
1838 | case "(($ac_try" in | |
1839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1840 | *) ac_try_echo=$ac_try;; | |
1841 | esac | |
1842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1843 | $as_echo "$ac_try_echo"; } >&5 | |
1844 | (eval "$ac_link") 2>conftest.err | |
1845 | ac_status=$? | |
1846 | if test -s conftest.err; then | |
1847 | grep -v '^ *+' conftest.err >conftest.er1 | |
1848 | cat conftest.er1 >&5 | |
1849 | mv -f conftest.er1 conftest.err | |
1850 | fi | |
1851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1852 | test $ac_status = 0; } && { | |
1853 | test -z "$ac_c_werror_flag" || | |
1854 | test ! -s conftest.err | |
1855 | } && test -s conftest$ac_exeext && { | |
1856 | test "$cross_compiling" = yes || | |
f00f02a3 | 1857 | test -x conftest$ac_exeext |
d5d92632 | 1858 | }; then : |
1859 | ac_retval=0 | |
1860 | else | |
1861 | $as_echo "$as_me: failed program was:" >&5 | |
1862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1863 | ||
1864 | ac_retval=1 | |
1865 | fi | |
1866 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1867 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1868 | # interfere with the next link command; also delete a directory that is | |
1869 | # left behind by Apple's compiler. We do this before executing the actions. | |
1870 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 1871 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1872 | as_fn_set_status $ac_retval | |
d5d92632 | 1873 | |
1874 | } # ac_fn_c_try_link | |
1875 | ||
cd9a469c | 1876 | # ac_fn_c_check_func LINENO FUNC VAR |
1877 | # ---------------------------------- | |
1878 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1879 | ac_fn_c_check_func () | |
1880 | { | |
1881 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1883 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 1884 | if eval \${$3+:} false; then : |
cd9a469c | 1885 | $as_echo_n "(cached) " >&6 |
1886 | else | |
1887 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 1888 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cd9a469c | 1889 | fi |
1890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1891 | /* end confdefs.h. */ | |
1892 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1893 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1894 | #define $2 innocuous_$2 | |
4ee9c684 | 1895 | |
cd9a469c | 1896 | /* System header to define __stub macros and hopefully few prototypes, |
1897 | which can conflict with char $2 (); below. | |
1898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1899 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 1900 | |
cd9a469c | 1901 | #ifdef __STDC__ |
1902 | # include <limits.h> | |
1903 | #else | |
1904 | # include <assert.h> | |
1905 | #endif | |
4ee9c684 | 1906 | |
cd9a469c | 1907 | #undef $2 |
1908 | ||
1909 | /* Override any GCC internal prototype to avoid an error. | |
1910 | Use char because int might match the return type of a GCC | |
1911 | builtin and then its argument prototype would still apply. */ | |
1912 | #ifdef __cplusplus | |
1913 | extern "C" | |
1914 | #endif | |
1915 | char $2 (); | |
1916 | /* The GNU C library defines this for functions which it implements | |
1917 | to always fail with ENOSYS. Some functions are actually named | |
1918 | something starting with __ and the normal name is an alias. */ | |
1919 | #if defined __stub_$2 || defined __stub___$2 | |
1920 | choke me | |
1921 | #endif | |
1922 | ||
1923 | int | |
1924 | main () | |
82eaf560 | 1925 | { |
cd9a469c | 1926 | return $2 (); |
1927 | ; | |
1928 | return 0; | |
82eaf560 | 1929 | } |
cd9a469c | 1930 | _ACEOF |
1931 | if ac_fn_c_try_link "$LINENO"; then : | |
1932 | eval "$3=yes" | |
1933 | else | |
1934 | eval "$3=no" | |
1935 | fi | |
1936 | rm -f core conftest.err conftest.$ac_objext \ | |
1937 | conftest$ac_exeext conftest.$ac_ext | |
1938 | fi | |
1939 | eval ac_res=\$$3 | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1941 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 1943 | |
cd9a469c | 1944 | } # ac_fn_c_check_func |
4ee9c684 | 1945 | |
cd9a469c | 1946 | # ac_fn_fc_try_compile LINENO |
1947 | # --------------------------- | |
1948 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1949 | ac_fn_fc_try_compile () | |
1950 | { | |
1951 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1952 | rm -f conftest.$ac_objext | |
1953 | if { { ac_try="$ac_compile" | |
1954 | case "(($ac_try" in | |
1955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1956 | *) ac_try_echo=$ac_try;; | |
1957 | esac | |
1958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1959 | $as_echo "$ac_try_echo"; } >&5 | |
1960 | (eval "$ac_compile") 2>conftest.err | |
1961 | ac_status=$? | |
1962 | if test -s conftest.err; then | |
1963 | grep -v '^ *+' conftest.err >conftest.er1 | |
1964 | cat conftest.er1 >&5 | |
1965 | mv -f conftest.er1 conftest.err | |
1966 | fi | |
1967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1968 | test $ac_status = 0; } && { | |
1969 | test -z "$ac_fc_werror_flag" || | |
1970 | test ! -s conftest.err | |
1971 | } && test -s conftest.$ac_objext; then : | |
1972 | ac_retval=0 | |
1973 | else | |
1974 | $as_echo "$as_me: failed program was:" >&5 | |
1975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1976 | |
cd9a469c | 1977 | ac_retval=1 |
1978 | fi | |
f00f02a3 | 1979 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1980 | as_fn_set_status $ac_retval | |
4ee9c684 | 1981 | |
cd9a469c | 1982 | } # ac_fn_fc_try_compile |
4ee9c684 | 1983 | |
cd9a469c | 1984 | # ac_fn_fc_try_link LINENO |
1985 | # ------------------------ | |
1986 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1987 | ac_fn_fc_try_link () | |
1988 | { | |
1989 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1991 | if { { ac_try="$ac_link" | |
1992 | case "(($ac_try" in | |
1993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1994 | *) ac_try_echo=$ac_try;; | |
1995 | esac | |
1996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1997 | $as_echo "$ac_try_echo"; } >&5 | |
1998 | (eval "$ac_link") 2>conftest.err | |
1999 | ac_status=$? | |
2000 | if test -s conftest.err; then | |
2001 | grep -v '^ *+' conftest.err >conftest.er1 | |
2002 | cat conftest.er1 >&5 | |
2003 | mv -f conftest.er1 conftest.err | |
2004 | fi | |
2005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2006 | test $ac_status = 0; } && { | |
2007 | test -z "$ac_fc_werror_flag" || | |
2008 | test ! -s conftest.err | |
2009 | } && test -s conftest$ac_exeext && { | |
2010 | test "$cross_compiling" = yes || | |
f00f02a3 | 2011 | test -x conftest$ac_exeext |
cd9a469c | 2012 | }; then : |
2013 | ac_retval=0 | |
2014 | else | |
2015 | $as_echo "$as_me: failed program was:" >&5 | |
2016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 2017 | |
cd9a469c | 2018 | ac_retval=1 |
2019 | fi | |
2020 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2021 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2022 | # interfere with the next link command; also delete a directory that is | |
2023 | # left behind by Apple's compiler. We do this before executing the actions. | |
2024 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f00f02a3 | 2025 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2026 | as_fn_set_status $ac_retval | |
4ee9c684 | 2027 | |
cd9a469c | 2028 | } # ac_fn_fc_try_link |
4ee9c684 | 2029 | |
cd9a469c | 2030 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2031 | # ------------------------------------------- | |
2032 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2033 | # variable VAR accordingly. | |
2034 | ac_fn_c_check_type () | |
2035 | { | |
2036 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2038 | $as_echo_n "checking for $2... " >&6; } | |
f00f02a3 | 2039 | if eval \${$3+:} false; then : |
cd9a469c | 2040 | $as_echo_n "(cached) " >&6 |
2041 | else | |
2042 | eval "$3=no" | |
2043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2044 | /* end confdefs.h. */ | |
2045 | $4 | |
2046 | int | |
2047 | main () | |
2048 | { | |
2049 | if (sizeof ($2)) | |
2050 | return 0; | |
2051 | ; | |
2052 | return 0; | |
2053 | } | |
4ee9c684 | 2054 | _ACEOF |
cd9a469c | 2055 | if ac_fn_c_try_compile "$LINENO"; then : |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2057 | /* end confdefs.h. */ | |
2058 | $4 | |
2059 | int | |
2060 | main () | |
2061 | { | |
2062 | if (sizeof (($2))) | |
2063 | return 0; | |
2064 | ; | |
2065 | return 0; | |
2066 | } | |
4ee9c684 | 2067 | _ACEOF |
cd9a469c | 2068 | if ac_fn_c_try_compile "$LINENO"; then : |
4ee9c684 | 2069 | |
cd9a469c | 2070 | else |
2071 | eval "$3=yes" | |
2072 | fi | |
2073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2074 | fi | |
2075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2076 | fi | |
2077 | eval ac_res=\$$3 | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2079 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 2080 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 2081 | |
cd9a469c | 2082 | } # ac_fn_c_check_type |
4ee9c684 | 2083 | |
d5d92632 | 2084 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2085 | # -------------------------------------------- | |
2086 | # Tries to find the compile-time value of EXPR in a program that includes | |
2087 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2088 | # computed | |
2089 | ac_fn_c_compute_int () | |
cd9a469c | 2090 | { |
2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069752c | 2092 | if test "$cross_compiling" = yes; then |
2093 | # Depending upon the size, compute the lo and hi bounds. | |
2094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2095 | /* end confdefs.h. */ |
2069752c | 2096 | $4 |
cd9a469c | 2097 | int |
2098 | main () | |
2099 | { | |
2069752c | 2100 | static int test_array [1 - 2 * !(($2) >= 0)]; |
f00f02a3 | 2101 | test_array [0] = 0; |
2102 | return test_array [0]; | |
4ee9c684 | 2103 | |
cd9a469c | 2104 | ; |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
2108 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2109 | ac_lo=0 ac_mid=0 |
2110 | while :; do | |
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2112 | /* end confdefs.h. */ |
2069752c | 2113 | $4 |
cd9a469c | 2114 | int |
2115 | main () | |
2116 | { | |
2069752c | 2117 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
f00f02a3 | 2118 | test_array [0] = 0; |
2119 | return test_array [0]; | |
4ee9c684 | 2120 | |
cd9a469c | 2121 | ; |
2122 | return 0; | |
2123 | } | |
2124 | _ACEOF | |
2125 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2126 | ac_hi=$ac_mid; break |
cd9a469c | 2127 | else |
2069752c | 2128 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2129 | if test $ac_lo -le $ac_mid; then | |
2130 | ac_lo= ac_hi= | |
2131 | break | |
2132 | fi | |
2133 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
cd9a469c | 2134 | fi |
2135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2136 | done |
2137 | else | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | $4 | |
2141 | int | |
2142 | main () | |
2143 | { | |
2144 | static int test_array [1 - 2 * !(($2) < 0)]; | |
f00f02a3 | 2145 | test_array [0] = 0; |
2146 | return test_array [0]; | |
2069752c | 2147 | |
2148 | ; | |
2149 | return 0; | |
2150 | } | |
2151 | _ACEOF | |
2152 | if ac_fn_c_try_compile "$LINENO"; then : | |
2153 | ac_hi=-1 ac_mid=-1 | |
2154 | while :; do | |
2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2156 | /* end confdefs.h. */ | |
2157 | $4 | |
2158 | int | |
2159 | main () | |
2160 | { | |
2161 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
f00f02a3 | 2162 | test_array [0] = 0; |
2163 | return test_array [0]; | |
2069752c | 2164 | |
2165 | ; | |
2166 | return 0; | |
2167 | } | |
2168 | _ACEOF | |
2169 | if ac_fn_c_try_compile "$LINENO"; then : | |
2170 | ac_lo=$ac_mid; break | |
2171 | else | |
2172 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2173 | if test $ac_mid -le $ac_hi; then | |
2174 | ac_lo= ac_hi= | |
2175 | break | |
2176 | fi | |
2177 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
cd9a469c | 2178 | fi |
2179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2180 | done |
ea6b3890 | 2181 | else |
2069752c | 2182 | ac_lo= ac_hi= |
cd9a469c | 2183 | fi |
2069752c | 2184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea6b3890 | 2185 | fi |
2069752c | 2186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2187 | # Binary search between lo and hi bounds. | |
2188 | while test "x$ac_lo" != "x$ac_hi"; do | |
2189 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2191 | /* end confdefs.h. */ |
2069752c | 2192 | $4 |
cd9a469c | 2193 | int |
2194 | main () | |
2195 | { | |
2069752c | 2196 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
f00f02a3 | 2197 | test_array [0] = 0; |
2198 | return test_array [0]; | |
4ee9c684 | 2199 | |
cd9a469c | 2200 | ; |
2201 | return 0; | |
2202 | } | |
2203 | _ACEOF | |
2204 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2205 | ac_hi=$ac_mid |
2206 | else | |
2207 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
cd9a469c | 2208 | fi |
2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2210 | done |
2211 | case $ac_lo in #(( | |
2212 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2213 | '') ac_retval=1 ;; | |
2214 | esac | |
2215 | else | |
2216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2217 | /* end confdefs.h. */ | |
2218 | $4 | |
2219 | static long int longval () { return $2; } | |
2220 | static unsigned long int ulongval () { return $2; } | |
2221 | #include <stdio.h> | |
2222 | #include <stdlib.h> | |
2223 | int | |
2224 | main () | |
2225 | { | |
4ee9c684 | 2226 | |
2069752c | 2227 | FILE *f = fopen ("conftest.val", "w"); |
2228 | if (! f) | |
2229 | return 1; | |
2230 | if (($2) < 0) | |
2231 | { | |
2232 | long int i = longval (); | |
2233 | if (i != ($2)) | |
2234 | return 1; | |
2235 | fprintf (f, "%ld", i); | |
2236 | } | |
2237 | else | |
2238 | { | |
2239 | unsigned long int i = ulongval (); | |
2240 | if (i != ($2)) | |
2241 | return 1; | |
2242 | fprintf (f, "%lu", i); | |
2243 | } | |
2244 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2245 | on some platforms. */ | |
2246 | return ferror (f) || fclose (f) != 0; | |
2247 | ||
2248 | ; | |
2249 | return 0; | |
2250 | } | |
2251 | _ACEOF | |
2252 | if ac_fn_c_try_run "$LINENO"; then : | |
2253 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
cd9a469c | 2254 | else |
2069752c | 2255 | ac_retval=1 |
ea6b3890 | 2256 | fi |
2069752c | 2257 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2258 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2259 | rm -f conftest.val | |
2260 | ||
2261 | fi | |
f00f02a3 | 2262 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2263 | as_fn_set_status $ac_retval | |
4ee9c684 | 2264 | |
2069752c | 2265 | } # ac_fn_c_compute_int |
4ee9c684 | 2266 | |
cd9a469c | 2267 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2268 | # ---------------------------------------------------- | |
2269 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2270 | # INCLUDES, setting cache variable VAR accordingly. | |
2271 | ac_fn_c_check_member () | |
2272 | { | |
2273 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2275 | $as_echo_n "checking for $2.$3... " >&6; } | |
f00f02a3 | 2276 | if eval \${$4+:} false; then : |
cd9a469c | 2277 | $as_echo_n "(cached) " >&6 |
2278 | else | |
2279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2280 | /* end confdefs.h. */ | |
2281 | $5 | |
2282 | int | |
2283 | main () | |
2284 | { | |
2285 | static $2 ac_aggr; | |
2286 | if (ac_aggr.$3) | |
2287 | return 0; | |
2288 | ; | |
2289 | return 0; | |
2290 | } | |
2291 | _ACEOF | |
2292 | if ac_fn_c_try_compile "$LINENO"; then : | |
2293 | eval "$4=yes" | |
2294 | else | |
2295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2296 | /* end confdefs.h. */ | |
2297 | $5 | |
2298 | int | |
2299 | main () | |
2300 | { | |
2301 | static $2 ac_aggr; | |
2302 | if (sizeof ac_aggr.$3) | |
2303 | return 0; | |
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | if ac_fn_c_try_compile "$LINENO"; then : | |
2309 | eval "$4=yes" | |
2310 | else | |
2311 | eval "$4=no" | |
2312 | fi | |
2313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2314 | fi | |
2315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2316 | fi | |
2317 | eval ac_res=\$$4 | |
2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2319 | $as_echo "$ac_res" >&6; } | |
f00f02a3 | 2320 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
4ee9c684 | 2321 | |
cd9a469c | 2322 | } # ac_fn_c_check_member |
2323 | cat >config.log <<_ACEOF | |
2324 | This file contains any messages produced by compilers while | |
2325 | running configure, to aid debugging if configure makes a mistake. | |
4ee9c684 | 2326 | |
cd9a469c | 2327 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
f00f02a3 | 2328 | generated by GNU Autoconf 2.69. Invocation command line was |
4ee9c684 | 2329 | |
cd9a469c | 2330 | $ $0 $@ |
4ee9c684 | 2331 | |
cd9a469c | 2332 | _ACEOF |
2333 | exec 5>>config.log | |
2334 | { | |
2335 | cat <<_ASUNAME | |
2336 | ## --------- ## | |
2337 | ## Platform. ## | |
2338 | ## --------- ## | |
4ee9c684 | 2339 | |
cd9a469c | 2340 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2341 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2342 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2343 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2344 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4ee9c684 | 2345 | |
cd9a469c | 2346 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2347 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
4ee9c684 | 2348 | |
cd9a469c | 2349 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2350 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2351 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2352 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2353 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2354 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2355 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
4ee9c684 | 2356 | |
cd9a469c | 2357 | _ASUNAME |
5b2c7553 | 2358 | |
cd9a469c | 2359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2360 | for as_dir in $PATH | |
2361 | do | |
2362 | IFS=$as_save_IFS | |
2363 | test -z "$as_dir" && as_dir=. | |
2364 | $as_echo "PATH: $as_dir" | |
2365 | done | |
2366 | IFS=$as_save_IFS | |
5b2c7553 | 2367 | |
cd9a469c | 2368 | } >&5 |
5b2c7553 | 2369 | |
cd9a469c | 2370 | cat >&5 <<_ACEOF |
4ee9c684 | 2371 | |
2372 | ||
cd9a469c | 2373 | ## ----------- ## |
2374 | ## Core tests. ## | |
2375 | ## ----------- ## | |
a106dabe | 2376 | |
cd9a469c | 2377 | _ACEOF |
82eaf560 | 2378 | |
90973b19 | 2379 | |
cd9a469c | 2380 | # Keep a trace of the command line. |
2381 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2382 | # Strip out --silent because we don't want to record it for future runs. | |
2383 | # Also quote any args containing shell meta-characters. | |
2384 | # Make two passes to allow for proper duplicate-argument suppression. | |
2385 | ac_configure_args= | |
2386 | ac_configure_args0= | |
2387 | ac_configure_args1= | |
2388 | ac_must_keep_next=false | |
2389 | for ac_pass in 1 2 | |
2390 | do | |
2391 | for ac_arg | |
2392 | do | |
2393 | case $ac_arg in | |
2394 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2395 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2396 | | -silent | --silent | --silen | --sile | --sil) | |
2397 | continue ;; | |
2398 | *\'*) | |
2399 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2400 | esac | |
2401 | case $ac_pass in | |
2402 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2403 | 2) | |
2404 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2405 | if test $ac_must_keep_next = true; then | |
2406 | ac_must_keep_next=false # Got value, back to normal. | |
2407 | else | |
2408 | case $ac_arg in | |
2409 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2410 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2411 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2412 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2413 | case "$ac_configure_args0 " in | |
2414 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2415 | esac | |
2416 | ;; | |
2417 | -* ) ac_must_keep_next=true ;; | |
2418 | esac | |
2419 | fi | |
2420 | as_fn_append ac_configure_args " '$ac_arg'" | |
2421 | ;; | |
2422 | esac | |
2423 | done | |
4ee9c684 | 2424 | done |
cd9a469c | 2425 | { ac_configure_args0=; unset ac_configure_args0;} |
2426 | { ac_configure_args1=; unset ac_configure_args1;} | |
90973b19 | 2427 | |
cd9a469c | 2428 | # When interrupted or exit'd, cleanup temporary files, and complete |
2429 | # config.log. We remove comments because anyway the quotes in there | |
2430 | # would cause problems or look ugly. | |
2431 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2432 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2433 | trap 'exit_status=$? | |
2434 | # Save into config.log some information that might help in debugging. | |
2435 | { | |
2436 | echo | |
90973b19 | 2437 | |
f00f02a3 | 2438 | $as_echo "## ---------------- ## |
cd9a469c | 2439 | ## Cache variables. ## |
f00f02a3 | 2440 | ## ---------------- ##" |
cd9a469c | 2441 | echo |
2442 | # The following way of writing the cache mishandles newlines in values, | |
2443 | ( | |
2444 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2445 | eval ac_val=\$$ac_var | |
2446 | case $ac_val in #( | |
2447 | *${as_nl}*) | |
2448 | case $ac_var in #( | |
2449 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2450 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2451 | esac | |
2452 | case $ac_var in #( | |
2453 | _ | IFS | as_nl) ;; #( | |
2454 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2455 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2456 | esac ;; | |
2457 | esac | |
2458 | done | |
2459 | (set) 2>&1 | | |
2460 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2461 | *${as_nl}ac_space=\ *) | |
2462 | sed -n \ | |
2463 | "s/'\''/'\''\\\\'\'''\''/g; | |
2464 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2465 | ;; #( | |
2466 | *) | |
2467 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2468 | ;; | |
2469 | esac | | |
2470 | sort | |
2471 | ) | |
2472 | echo | |
2473 | ||
f00f02a3 | 2474 | $as_echo "## ----------------- ## |
cd9a469c | 2475 | ## Output variables. ## |
f00f02a3 | 2476 | ## ----------------- ##" |
cd9a469c | 2477 | echo |
2478 | for ac_var in $ac_subst_vars | |
2479 | do | |
2480 | eval ac_val=\$$ac_var | |
2481 | case $ac_val in | |
2482 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2483 | esac | |
2484 | $as_echo "$ac_var='\''$ac_val'\''" | |
2485 | done | sort | |
2486 | echo | |
2487 | ||
2488 | if test -n "$ac_subst_files"; then | |
f00f02a3 | 2489 | $as_echo "## ------------------- ## |
cd9a469c | 2490 | ## File substitutions. ## |
f00f02a3 | 2491 | ## ------------------- ##" |
cd9a469c | 2492 | echo |
2493 | for ac_var in $ac_subst_files | |
2494 | do | |
2495 | eval ac_val=\$$ac_var | |
2496 | case $ac_val in | |
2497 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2498 | esac | |
2499 | $as_echo "$ac_var='\''$ac_val'\''" | |
2500 | done | sort | |
2501 | echo | |
2502 | fi | |
2503 | ||
2504 | if test -s confdefs.h; then | |
f00f02a3 | 2505 | $as_echo "## ----------- ## |
cd9a469c | 2506 | ## confdefs.h. ## |
f00f02a3 | 2507 | ## ----------- ##" |
cd9a469c | 2508 | echo |
2509 | cat confdefs.h | |
2510 | echo | |
2511 | fi | |
2512 | test "$ac_signal" != 0 && | |
2513 | $as_echo "$as_me: caught signal $ac_signal" | |
2514 | $as_echo "$as_me: exit $exit_status" | |
2515 | } >&5 | |
2516 | rm -f core *.core core.conftest.* && | |
2517 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2518 | exit $exit_status | |
2519 | ' 0 | |
2520 | for ac_signal in 1 2 13 15; do | |
2521 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2522 | done | |
2523 | ac_signal=0 | |
2524 | ||
2525 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2526 | rm -f -r conftest* confdefs.h | |
2527 | ||
2528 | $as_echo "/* confdefs.h */" > confdefs.h | |
2529 | ||
2530 | # Predefined preprocessor variables. | |
2531 | ||
2532 | cat >>confdefs.h <<_ACEOF | |
2533 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2534 | _ACEOF | |
2535 | ||
2536 | cat >>confdefs.h <<_ACEOF | |
2537 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2538 | _ACEOF | |
2539 | ||
2540 | cat >>confdefs.h <<_ACEOF | |
2541 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2542 | _ACEOF | |
2543 | ||
2544 | cat >>confdefs.h <<_ACEOF | |
2545 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2546 | _ACEOF | |
2547 | ||
2548 | cat >>confdefs.h <<_ACEOF | |
2549 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2550 | _ACEOF | |
2551 | ||
2552 | cat >>confdefs.h <<_ACEOF | |
2553 | #define PACKAGE_URL "$PACKAGE_URL" | |
2554 | _ACEOF | |
2555 | ||
2556 | ||
2557 | # Let the site file select an alternate cache file if it wants to. | |
2558 | # Prefer an explicitly selected file to automatically selected ones. | |
2559 | ac_site_file1=NONE | |
2560 | ac_site_file2=NONE | |
2561 | if test -n "$CONFIG_SITE"; then | |
f00f02a3 | 2562 | # We do not want a PATH search for config.site. |
2563 | case $CONFIG_SITE in #(( | |
2564 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2565 | */*) ac_site_file1=$CONFIG_SITE;; | |
2566 | *) ac_site_file1=./$CONFIG_SITE;; | |
2567 | esac | |
cd9a469c | 2568 | elif test "x$prefix" != xNONE; then |
2569 | ac_site_file1=$prefix/share/config.site | |
2570 | ac_site_file2=$prefix/etc/config.site | |
2571 | else | |
2572 | ac_site_file1=$ac_default_prefix/share/config.site | |
2573 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2574 | fi | |
2575 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2576 | do | |
2577 | test "x$ac_site_file" = xNONE && continue | |
f00f02a3 | 2578 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
cd9a469c | 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2580 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2581 | sed 's/^/| /' "$ac_site_file" >&5 | |
f00f02a3 | 2582 | . "$ac_site_file" \ |
2583 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2585 | as_fn_error $? "failed to load site script $ac_site_file | |
2586 | See \`config.log' for more details" "$LINENO" 5; } | |
cd9a469c | 2587 | fi |
2588 | done | |
2589 | ||
2590 | if test -r "$cache_file"; then | |
f00f02a3 | 2591 | # Some versions of bash will fail to source /dev/null (special files |
2592 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2593 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
cd9a469c | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2595 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2596 | case $cache_file in | |
2597 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2598 | *) . "./$cache_file";; | |
2599 | esac | |
2600 | fi | |
2601 | else | |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2603 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2604 | >$cache_file | |
2605 | fi | |
2606 | ||
a1aa1d30 | 2607 | as_fn_append ac_header_list " unistd.h" |
1c383045 | 2608 | as_fn_append ac_header_list " sys/random.h" |
a1aa1d30 | 2609 | as_fn_append ac_header_list " sys/time.h" |
2610 | as_fn_append ac_header_list " sys/times.h" | |
2611 | as_fn_append ac_header_list " sys/resource.h" | |
2612 | as_fn_append ac_header_list " sys/types.h" | |
2613 | as_fn_append ac_header_list " sys/stat.h" | |
9680a5f4 | 2614 | as_fn_append ac_header_list " sys/uio.h" |
a1aa1d30 | 2615 | as_fn_append ac_header_list " sys/wait.h" |
2616 | as_fn_append ac_header_list " floatingpoint.h" | |
2617 | as_fn_append ac_header_list " ieeefp.h" | |
2618 | as_fn_append ac_header_list " fenv.h" | |
2619 | as_fn_append ac_header_list " fptrap.h" | |
553e7cef | 2620 | as_fn_append ac_header_list " fpxcp.h" |
a1aa1d30 | 2621 | as_fn_append ac_header_list " pwd.h" |
2622 | as_fn_append ac_header_list " complex.h" | |
b8a8c7bc | 2623 | as_fn_append ac_header_list " xlocale.h" |
a1aa1d30 | 2624 | as_fn_append ac_func_list " getrusage" |
2625 | as_fn_append ac_func_list " times" | |
2626 | as_fn_append ac_func_list " mkstemp" | |
2627 | as_fn_append ac_func_list " strtof" | |
2628 | as_fn_append ac_func_list " strtold" | |
2629 | as_fn_append ac_func_list " snprintf" | |
2630 | as_fn_append ac_func_list " ftruncate" | |
2631 | as_fn_append ac_func_list " chsize" | |
2632 | as_fn_append ac_func_list " chdir" | |
75535607 | 2633 | as_fn_append ac_func_list " getentropy" |
a1aa1d30 | 2634 | as_fn_append ac_func_list " getlogin" |
2635 | as_fn_append ac_func_list " gethostname" | |
2636 | as_fn_append ac_func_list " kill" | |
2637 | as_fn_append ac_func_list " link" | |
2638 | as_fn_append ac_func_list " symlink" | |
2639 | as_fn_append ac_func_list " sleep" | |
2640 | as_fn_append ac_func_list " ttyname" | |
2641 | as_fn_append ac_func_list " alarm" | |
2642 | as_fn_append ac_func_list " access" | |
2643 | as_fn_append ac_func_list " fork" | |
e38e222d | 2644 | as_fn_append ac_func_list " posix_spawn" |
a1aa1d30 | 2645 | as_fn_append ac_func_list " setmode" |
7520a494 | 2646 | as_fn_append ac_func_list " fcntl" |
9680a5f4 | 2647 | as_fn_append ac_func_list " writev" |
a1aa1d30 | 2648 | as_fn_append ac_func_list " gettimeofday" |
2649 | as_fn_append ac_func_list " stat" | |
2650 | as_fn_append ac_func_list " fstat" | |
2651 | as_fn_append ac_func_list " lstat" | |
2652 | as_fn_append ac_func_list " getpwuid" | |
2653 | as_fn_append ac_func_list " vsnprintf" | |
2654 | as_fn_append ac_func_list " dup" | |
2655 | as_fn_append ac_func_list " getcwd" | |
2656 | as_fn_append ac_func_list " localtime_r" | |
2657 | as_fn_append ac_func_list " gmtime_r" | |
a1aa1d30 | 2658 | as_fn_append ac_func_list " getpwuid_r" |
2659 | as_fn_append ac_func_list " ttyname_r" | |
2660 | as_fn_append ac_func_list " clock_gettime" | |
a1aa1d30 | 2661 | as_fn_append ac_func_list " getgid" |
2662 | as_fn_append ac_func_list " getpid" | |
a1aa1d30 | 2663 | as_fn_append ac_func_list " getuid" |
2664 | as_fn_append ac_func_list " geteuid" | |
ffb6d1fd | 2665 | as_fn_append ac_func_list " umask" |
a291e3b6 | 2666 | as_fn_append ac_func_list " getegid" |
5935a97b | 2667 | as_fn_append ac_func_list " secure_getenv" |
a291e3b6 | 2668 | as_fn_append ac_func_list " __secure_getenv" |
544db64f | 2669 | as_fn_append ac_func_list " mkostemp" |
fc3d374a | 2670 | as_fn_append ac_func_list " strnlen" |
2671 | as_fn_append ac_func_list " strndup" | |
b8a8c7bc | 2672 | as_fn_append ac_func_list " newlocale" |
2673 | as_fn_append ac_func_list " freelocale" | |
2674 | as_fn_append ac_func_list " uselocale" | |
2675 | as_fn_append ac_func_list " strerror_l" | |
7d9455ce | 2676 | as_fn_append ac_header_list " math.h" |
cd9a469c | 2677 | # Check that the precious variables saved in the cache have kept the same |
2678 | # value. | |
2679 | ac_cache_corrupted=false | |
2680 | for ac_var in $ac_precious_vars; do | |
2681 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2682 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2683 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2684 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2685 | case $ac_old_set,$ac_new_set in | |
2686 | set,) | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2688 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2689 | ac_cache_corrupted=: ;; | |
2690 | ,set) | |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2692 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2693 | ac_cache_corrupted=: ;; | |
2694 | ,);; | |
2695 | *) | |
2696 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2697 | # differences in whitespace do not lead to failure. | |
2698 | ac_old_val_w=`echo x $ac_old_val` | |
2699 | ac_new_val_w=`echo x $ac_new_val` | |
2700 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2702 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2703 | ac_cache_corrupted=: | |
2704 | else | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2706 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2707 | eval $ac_var=\$ac_old_val | |
2708 | fi | |
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2710 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2712 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2713 | fi;; | |
2714 | esac | |
2715 | # Pass precious variables to config.status. | |
2716 | if test "$ac_new_set" = set; then | |
2717 | case $ac_new_val in | |
2718 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2719 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2720 | esac | |
2721 | case " $ac_configure_args " in | |
2722 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2723 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2724 | esac | |
2725 | fi | |
2726 | done | |
2727 | if $ac_cache_corrupted; then | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2729 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2731 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
f00f02a3 | 2732 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
cd9a469c | 2733 | fi |
2734 | ## -------------------- ## | |
2735 | ## Main body of script. ## | |
2736 | ## -------------------- ## | |
2737 | ||
2738 | ac_ext=c | |
2739 | ac_cpp='$CPP $CPPFLAGS' | |
2740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2743 | ||
2744 | ||
2745 | ||
2746 | ||
2747 | ||
2748 | ac_config_headers="$ac_config_headers config.h" | |
2749 | ||
2750 | ac_aux_dir= | |
2751 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
f00f02a3 | 2752 | if test -f "$ac_dir/install-sh"; then |
2753 | ac_aux_dir=$ac_dir | |
2754 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2755 | break | |
2756 | elif test -f "$ac_dir/install.sh"; then | |
2757 | ac_aux_dir=$ac_dir | |
2758 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2759 | break | |
2760 | elif test -f "$ac_dir/shtool"; then | |
2761 | ac_aux_dir=$ac_dir | |
2762 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2763 | break | |
2764 | fi | |
cd9a469c | 2765 | done |
2766 | if test -z "$ac_aux_dir"; then | |
f00f02a3 | 2767 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
cd9a469c | 2768 | fi |
2769 | ||
2770 | # These three variables are undocumented and unsupported, | |
2771 | # and are intended to be withdrawn in a future Autoconf release. | |
2772 | # They can cause serious problems if a builder's source tree is in a directory | |
2773 | # whose full name contains unusual characters. | |
2774 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2775 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2776 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2777 | ||
2778 | ||
2779 | # Make sure we can run config.sub. | |
2780 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
f00f02a3 | 2781 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
cd9a469c | 2782 | |
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2784 | $as_echo_n "checking build system type... " >&6; } | |
f00f02a3 | 2785 | if ${ac_cv_build+:} false; then : |
cd9a469c | 2786 | $as_echo_n "(cached) " >&6 |
2787 | else | |
2788 | ac_build_alias=$build_alias | |
2789 | test "x$ac_build_alias" = x && | |
2790 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2791 | test "x$ac_build_alias" = x && | |
f00f02a3 | 2792 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
cd9a469c | 2793 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
f00f02a3 | 2794 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
cd9a469c | 2795 | |
2796 | fi | |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2798 | $as_echo "$ac_cv_build" >&6; } | |
2799 | case $ac_cv_build in | |
2800 | *-*-*) ;; | |
f00f02a3 | 2801 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
cd9a469c | 2802 | esac |
2803 | build=$ac_cv_build | |
2804 | ac_save_IFS=$IFS; IFS='-' | |
2805 | set x $ac_cv_build | |
2806 | shift | |
2807 | build_cpu=$1 | |
2808 | build_vendor=$2 | |
2809 | shift; shift | |
2810 | # Remember, the first character of IFS is used to create $*, | |
2811 | # except with old shells: | |
2812 | build_os=$* | |
2813 | IFS=$ac_save_IFS | |
2814 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2815 | ||
2816 | ||
2817 | case ${build_alias} in | |
2818 | "") build_noncanonical=${build} ;; | |
2819 | *) build_noncanonical=${build_alias} ;; | |
2820 | esac | |
4c82c0dd | 2821 | |
2822 | case ${host_alias} in | |
2823 | "") host_noncanonical=${build_noncanonical} ;; | |
2824 | *) host_noncanonical=${host_alias} ;; | |
2825 | esac | |
2826 | ||
2827 | case ${target_alias} in | |
2828 | "") target_noncanonical=${host_noncanonical} ;; | |
2829 | *) target_noncanonical=${target_alias} ;; | |
2830 | esac | |
2831 | ||
3e427a9c | 2832 | |
2833 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2834 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2835 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2836 | # However, they still use the build modules, because the corresponding | |
2837 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2838 | # finishes. So: | |
2839 | # - build_subdir is where we find build modules, and never changes. | |
2840 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2841 | ||
2842 | # Prefix 'build-' so this never conflicts with target_subdir. | |
4c82c0dd | 2843 | build_subdir="build-${build_noncanonical}" |
3e427a9c | 2844 | |
cd9a469c | 2845 | # Check whether --with-build-libsubdir was given. |
2846 | if test "${with_build_libsubdir+set}" = set; then : | |
2847 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3e427a9c | 2848 | else |
2849 | build_libsubdir="$build_subdir" | |
cd9a469c | 2850 | fi |
2851 | ||
4c82c0dd | 2852 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2853 | if ( test $srcdir = . && test -d gcc ) \ | |
2854 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2855 | host_subdir="host-${host_noncanonical}" | |
2856 | else | |
2857 | host_subdir=. | |
2858 | fi | |
2859 | # No prefix. | |
2860 | target_subdir=${target_noncanonical} | |
2861 | ||
2862 | ||
2863 | # ------- | |
2864 | # Options | |
2865 | # ------- | |
2866 | ||
cd9a469c | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2868 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2869 | # Check whether --enable-version-specific-runtime-libs was given. | |
2870 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2871 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
4c82c0dd | 2872 | yes) version_specific_libs=yes ;; |
2873 | no) version_specific_libs=no ;; | |
f00f02a3 | 2874 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
4c82c0dd | 2875 | esac |
2876 | else | |
2877 | version_specific_libs=no | |
cd9a469c | 2878 | fi |
2879 | ||
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2881 | $as_echo "$version_specific_libs" >&6; } | |
4c82c0dd | 2882 | |
93773f82 | 2883 | # Build with intermodule optimisations |
cd9a469c | 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2885 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2886 | # Check whether --enable-intermodule was given. | |
2887 | if test "${enable_intermodule+set}" = set; then : | |
2888 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
93773f82 | 2889 | yes) onestep="-onestep";; |
2890 | *) onestep="";; | |
2891 | esac | |
2892 | else | |
2893 | onestep="" | |
cd9a469c | 2894 | fi |
93773f82 | 2895 | |
cd9a469c | 2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2897 | $as_echo "$enable_intermodule" >&6; } | |
2898 | if test x$onestep = x-onestep; then | |
93773f82 | 2899 | onestep_TRUE= |
2900 | onestep_FALSE='#' | |
2901 | else | |
2902 | onestep_TRUE='#' | |
2903 | onestep_FALSE= | |
2904 | fi | |
2905 | ||
2906 | ||
4c82c0dd | 2907 | |
2908 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2909 | # | |
2910 | # You will slowly go insane if you do not grok the following fact: when | |
2911 | # building this library, the top-level /target/ becomes the library's /host/. | |
2912 | # | |
2913 | # configure then causes --target to default to --host, exactly like any | |
2914 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2915 | # always be the same. This makes sense both for native and cross compilers | |
2916 | # just think about it for a little while. :-) | |
2917 | # | |
2918 | # Also, if this library is being configured as part of a cross compiler, the | |
2919 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2920 | # | |
2921 | # Do not delete or change the following two lines. For why, see | |
2922 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
cd9a469c | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2924 | $as_echo_n "checking host system type... " >&6; } | |
f00f02a3 | 2925 | if ${ac_cv_host+:} false; then : |
cd9a469c | 2926 | $as_echo_n "(cached) " >&6 |
2927 | else | |
2928 | if test "x$host_alias" = x; then | |
2929 | ac_cv_host=$ac_cv_build | |
2930 | else | |
2931 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
f00f02a3 | 2932 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
cd9a469c | 2933 | fi |
2934 | ||
2935 | fi | |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2937 | $as_echo "$ac_cv_host" >&6; } | |
2938 | case $ac_cv_host in | |
2939 | *-*-*) ;; | |
f00f02a3 | 2940 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
cd9a469c | 2941 | esac |
90973b19 | 2942 | host=$ac_cv_host |
cd9a469c | 2943 | ac_save_IFS=$IFS; IFS='-' |
2944 | set x $ac_cv_host | |
2945 | shift | |
2946 | host_cpu=$1 | |
2947 | host_vendor=$2 | |
2948 | shift; shift | |
2949 | # Remember, the first character of IFS is used to create $*, | |
2950 | # except with old shells: | |
2951 | host_os=$* | |
2952 | IFS=$ac_save_IFS | |
2953 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
82eaf560 | 2954 | |
2955 | ||
cd9a469c | 2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2957 | $as_echo_n "checking target system type... " >&6; } | |
f00f02a3 | 2958 | if ${ac_cv_target+:} false; then : |
cd9a469c | 2959 | $as_echo_n "(cached) " >&6 |
90973b19 | 2960 | else |
cd9a469c | 2961 | if test "x$target_alias" = x; then |
2962 | ac_cv_target=$ac_cv_host | |
2963 | else | |
2964 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
f00f02a3 | 2965 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
cd9a469c | 2966 | fi |
90973b19 | 2967 | |
2968 | fi | |
cd9a469c | 2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2970 | $as_echo "$ac_cv_target" >&6; } | |
2971 | case $ac_cv_target in | |
2972 | *-*-*) ;; | |
f00f02a3 | 2973 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
cd9a469c | 2974 | esac |
90973b19 | 2975 | target=$ac_cv_target |
cd9a469c | 2976 | ac_save_IFS=$IFS; IFS='-' |
2977 | set x $ac_cv_target | |
2978 | shift | |
2979 | target_cpu=$1 | |
2980 | target_vendor=$2 | |
2981 | shift; shift | |
2982 | # Remember, the first character of IFS is used to create $*, | |
2983 | # except with old shells: | |
2984 | target_os=$* | |
2985 | IFS=$ac_save_IFS | |
2986 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
90973b19 | 2987 | |
2988 | ||
2989 | # The aliases save the names the user supplied, while $host etc. | |
2990 | # will get canonicalized. | |
2991 | test -n "$target_alias" && | |
2992 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2993 | NONENONEs,x,x, && | |
2994 | program_prefix=${target_alias}- | |
cd9a469c | 2995 | |
7eda0fb7 | 2996 | |
2997 | ||
2998 | ||
90973b19 | 2999 | target_alias=${target_alias-$host_alias} |
3000 | ||
7eda0fb7 | 3001 | |
90973b19 | 3002 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
3003 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2fd61f51 | 3004 | # 1.9.6: minimum required version |
90973b19 | 3005 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
3006 | # of other PACKAGE_* variables will, however, and there's nothing | |
3007 | # we can do about that; they come from AC_INIT). | |
3008 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
3009 | # file in the top srcdir, etc, etc), so stop complaining. | |
5dbeae57 | 3010 | # no-dist: we don't want 'dist' and related rules. |
90973b19 | 3011 | # -Wall: turns on all automake warnings... |
3012 | # -Wno-portability: ...except this one, since GNU make is required. | |
f00f02a3 | 3013 | am__api_version='1.15' |
cd9a469c | 3014 | |
4ee9c684 | 3015 | # Find a good install program. We prefer a C program (faster), |
3016 | # so one script is as good as another. But avoid the broken or | |
3017 | # incompatible versions: | |
3018 | # SysV /etc/install, /usr/sbin/install | |
3019 | # SunOS /usr/etc/install | |
3020 | # IRIX /sbin/install | |
3021 | # AIX /bin/install | |
3022 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3023 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3024 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3025 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3026 | # OS/2's system install, which has a completely different semantic | |
3027 | # ./install, which can be erroneously created by make from ./install.sh. | |
82eaf560 | 3028 | # Reject install programs that cannot install multiple files. |
cd9a469c | 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3030 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4ee9c684 | 3031 | if test -z "$INSTALL"; then |
f00f02a3 | 3032 | if ${ac_cv_path_install+:} false; then : |
cd9a469c | 3033 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3034 | else |
3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3036 | for as_dir in $PATH | |
3037 | do | |
3038 | IFS=$as_save_IFS | |
3039 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3040 | # Account for people who put trailing slashes in PATH elements. |
3041 | case $as_dir/ in #(( | |
3042 | ./ | .// | /[cC]/* | \ | |
4ee9c684 | 3043 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 3044 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4ee9c684 | 3045 | /usr/ucb/* ) ;; |
3046 | *) | |
3047 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3048 | # Don't use installbsd from OSF since it installs stuff as root | |
3049 | # by default. | |
3050 | for ac_prog in ginstall scoinst install; do | |
3051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3052 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
4ee9c684 | 3053 | if test $ac_prog = install && |
3054 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3055 | # AIX install. It has an incompatible calling convention. | |
3056 | : | |
3057 | elif test $ac_prog = install && | |
3058 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3059 | # program-specific install script used by HP pwplus--don't use. | |
3060 | : | |
3061 | else | |
82eaf560 | 3062 | rm -rf conftest.one conftest.two conftest.dir |
3063 | echo one > conftest.one | |
3064 | echo two > conftest.two | |
3065 | mkdir conftest.dir | |
3066 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3067 | test -s conftest.one && test -s conftest.two && | |
3068 | test -s conftest.dir/conftest.one && | |
3069 | test -s conftest.dir/conftest.two | |
3070 | then | |
3071 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3072 | break 3 | |
3073 | fi | |
4ee9c684 | 3074 | fi |
3075 | fi | |
3076 | done | |
3077 | done | |
3078 | ;; | |
3079 | esac | |
cd9a469c | 3080 | |
3081 | done | |
3082 | IFS=$as_save_IFS | |
4ee9c684 | 3083 | |
82eaf560 | 3084 | rm -rf conftest.one conftest.two conftest.dir |
4ee9c684 | 3085 | |
3086 | fi | |
3087 | if test "${ac_cv_path_install+set}" = set; then | |
3088 | INSTALL=$ac_cv_path_install | |
3089 | else | |
ff4425cf | 3090 | # As a last resort, use the slow shell script. Don't cache a |
3091 | # value for INSTALL within a source directory, because that will | |
4ee9c684 | 3092 | # break other packages using the cache if that directory is |
ff4425cf | 3093 | # removed, or if the value is a relative name. |
4ee9c684 | 3094 | INSTALL=$ac_install_sh |
3095 | fi | |
3096 | fi | |
cd9a469c | 3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3098 | $as_echo "$INSTALL" >&6; } | |
4ee9c684 | 3099 | |
3100 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3101 | # It thinks the first close brace ends the variable substitution. | |
3102 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3103 | ||
3104 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3105 | ||
3106 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3107 | ||
cd9a469c | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3109 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
cd9a469c | 3110 | # Reject unsafe characters in $srcdir or the absolute working directory |
3111 | # name. Accept space and tab only in the latter. | |
3112 | am_lf=' | |
3113 | ' | |
3114 | case `pwd` in | |
3115 | *[\\\"\#\$\&\'\`$am_lf]*) | |
f00f02a3 | 3116 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
cd9a469c | 3117 | esac |
3118 | case $srcdir in | |
3119 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
f00f02a3 | 3120 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
cd9a469c | 3121 | esac |
3122 | ||
f00f02a3 | 3123 | # Do 'set' in a subshell so we don't clobber the current shell's |
4ee9c684 | 3124 | # arguments. Must try -L first in case configure is actually a |
3125 | # symlink; some systems play weird games with the mod time of symlinks | |
3126 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3127 | # directory). | |
3128 | if ( | |
f00f02a3 | 3129 | am_has_slept=no |
3130 | for am_try in 1 2; do | |
3131 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
3132 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3133 | if test "$*" = "X"; then | |
3134 | # -L didn't work. | |
3135 | set X `ls -t "$srcdir/configure" conftest.file` | |
3136 | fi | |
3137 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3138 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3139 | ||
3140 | # If neither matched, then we have a broken ls. This can happen | |
3141 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3142 | # broken ls alias from the environment. This has actually | |
3143 | # happened. Such a system could not be considered "sane". | |
3144 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3145 | alias in your environment" "$LINENO" 5 | |
3146 | fi | |
3147 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
3148 | break | |
3149 | fi | |
3150 | # Just in case. | |
3151 | sleep 1 | |
3152 | am_has_slept=yes | |
3153 | done | |
4ee9c684 | 3154 | test "$2" = conftest.file |
3155 | ) | |
3156 | then | |
3157 | # Ok. | |
3158 | : | |
3159 | else | |
f00f02a3 | 3160 | as_fn_error $? "newly created file is older than distributed files! |
cd9a469c | 3161 | Check your system clock" "$LINENO" 5 |
4ee9c684 | 3162 | fi |
cd9a469c | 3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3164 | $as_echo "yes" >&6; } | |
f00f02a3 | 3165 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
3166 | # generated files are strictly newer. | |
3167 | am_sleep_pid= | |
3168 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
3169 | ( sleep 1 ) & | |
3170 | am_sleep_pid=$! | |
3171 | fi | |
3172 | ||
3173 | rm -f conftest.file | |
3174 | ||
4ee9c684 | 3175 | test "$program_prefix" != NONE && |
cd9a469c | 3176 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
4ee9c684 | 3177 | # Use a double $ so make ignores it. |
3178 | test "$program_suffix" != NONE && | |
cd9a469c | 3179 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3180 | # Double any \ or $. | |
4ee9c684 | 3181 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 3182 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3183 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4ee9c684 | 3184 | |
f00f02a3 | 3185 | # Expand $ac_aux_dir to an absolute path. |
3186 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
4ee9c684 | 3187 | |
cd9a469c | 3188 | if test x"${MISSING+set}" != xset; then |
3189 | case $am_aux_dir in | |
3190 | *\ * | *\ *) | |
3191 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3192 | *) | |
3193 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3194 | esac | |
3195 | fi | |
4ee9c684 | 3196 | # Use eval to expand $SHELL |
f00f02a3 | 3197 | if eval "$MISSING --is-lightweight"; then |
3198 | am_missing_run="$MISSING " | |
4ee9c684 | 3199 | else |
3200 | am_missing_run= | |
f00f02a3 | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
3202 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4ee9c684 | 3203 | fi |
3204 | ||
f00f02a3 | 3205 | if test x"${install_sh+set}" != xset; then |
cd9a469c | 3206 | case $am_aux_dir in |
3207 | *\ * | *\ *) | |
3208 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3209 | *) | |
3210 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3211 | esac | |
3212 | fi | |
3213 | ||
f00f02a3 | 3214 | # Installed binaries are usually stripped using 'strip' when the user |
3215 | # run "make install-strip". However 'strip' might not be the right | |
cd9a469c | 3216 | # tool to use in cross-compilation environments, therefore Automake |
f00f02a3 | 3217 | # will honor the 'STRIP' environment variable to overrule this program. |
cd9a469c | 3218 | if test "$cross_compiling" != no; then |
3219 | if test -n "$ac_tool_prefix"; then | |
3220 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3221 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3223 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3224 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 3225 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3226 | else |
cd9a469c | 3227 | if test -n "$STRIP"; then |
3228 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4ee9c684 | 3229 | else |
3230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3231 | for as_dir in $PATH | |
3232 | do | |
3233 | IFS=$as_save_IFS | |
3234 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3235 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3237 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4ee9c684 | 3239 | break 2 |
3240 | fi | |
3241 | done | |
cd9a469c | 3242 | done |
3243 | IFS=$as_save_IFS | |
4ee9c684 | 3244 | |
3245 | fi | |
3246 | fi | |
cd9a469c | 3247 | STRIP=$ac_cv_prog_STRIP |
3248 | if test -n "$STRIP"; then | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3250 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 3251 | else |
cd9a469c | 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3253 | $as_echo "no" >&6; } | |
4ee9c684 | 3254 | fi |
3255 | ||
4ee9c684 | 3256 | |
cd9a469c | 3257 | fi |
3258 | if test -z "$ac_cv_prog_STRIP"; then | |
3259 | ac_ct_STRIP=$STRIP | |
3260 | # Extract the first word of "strip", so it can be a program name with args. | |
3261 | set dummy strip; ac_word=$2 | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3263 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3264 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
cd9a469c | 3265 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3266 | else |
cd9a469c | 3267 | if test -n "$ac_ct_STRIP"; then |
3268 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
82eaf560 | 3269 | else |
cd9a469c | 3270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3271 | for as_dir in $PATH | |
3272 | do | |
3273 | IFS=$as_save_IFS | |
3274 | test -z "$as_dir" && as_dir=. | |
3275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3277 | ac_cv_prog_ac_ct_STRIP="strip" |
3278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3279 | break 2 | |
3280 | fi | |
3281 | done | |
3282 | done | |
3283 | IFS=$as_save_IFS | |
3284 | ||
82eaf560 | 3285 | fi |
4ee9c684 | 3286 | fi |
cd9a469c | 3287 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3288 | if test -n "$ac_ct_STRIP"; then | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3290 | $as_echo "$ac_ct_STRIP" >&6; } | |
3291 | else | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | fi | |
3295 | ||
3296 | if test "x$ac_ct_STRIP" = x; then | |
3297 | STRIP=":" | |
3298 | else | |
3299 | case $cross_compiling:$ac_tool_warned in | |
3300 | yes:) | |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3302 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3303 | ac_tool_warned=yes ;; | |
3304 | esac | |
3305 | STRIP=$ac_ct_STRIP | |
3306 | fi | |
3307 | else | |
3308 | STRIP="$ac_cv_prog_STRIP" | |
3309 | fi | |
3310 | ||
3311 | fi | |
3312 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3313 | ||
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3315 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3316 | if test -z "$MKDIR_P"; then | |
f00f02a3 | 3317 | if ${ac_cv_path_mkdir+:} false; then : |
cd9a469c | 3318 | $as_echo_n "(cached) " >&6 |
3319 | else | |
3320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3321 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3322 | do | |
3323 | IFS=$as_save_IFS | |
3324 | test -z "$as_dir" && as_dir=. | |
3325 | for ac_prog in mkdir gmkdir; do | |
3326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3327 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
cd9a469c | 3328 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3329 | 'mkdir (GNU coreutils) '* | \ | |
3330 | 'mkdir (coreutils) '* | \ | |
3331 | 'mkdir (fileutils) '4.1*) | |
3332 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3333 | break 3;; | |
3334 | esac | |
3335 | done | |
3336 | done | |
3337 | done | |
3338 | IFS=$as_save_IFS | |
3339 | ||
3340 | fi | |
3341 | ||
f00f02a3 | 3342 | test -d ./--version && rmdir ./--version |
cd9a469c | 3343 | if test "${ac_cv_path_mkdir+set}" = set; then |
3344 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3345 | else | |
3346 | # As a last resort, use the slow shell script. Don't cache a | |
3347 | # value for MKDIR_P within a source directory, because that will | |
3348 | # break other packages using the cache if that directory is | |
3349 | # removed, or if the value is a relative name. | |
cd9a469c | 3350 | MKDIR_P="$ac_install_sh -d" |
3351 | fi | |
3352 | fi | |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3354 | $as_echo "$MKDIR_P" >&6; } | |
3355 | ||
cd9a469c | 3356 | for ac_prog in gawk mawk nawk awk |
3357 | do | |
3358 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3359 | set dummy $ac_prog; ac_word=$2 | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3361 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3362 | if ${ac_cv_prog_AWK+:} false; then : |
cd9a469c | 3363 | $as_echo_n "(cached) " >&6 |
3364 | else | |
3365 | if test -n "$AWK"; then | |
3366 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3367 | else | |
3368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3369 | for as_dir in $PATH | |
3370 | do | |
3371 | IFS=$as_save_IFS | |
3372 | test -z "$as_dir" && as_dir=. | |
3373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 3374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cd9a469c | 3375 | ac_cv_prog_AWK="$ac_prog" |
3376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3377 | break 2 | |
3378 | fi | |
3379 | done | |
3380 | done | |
3381 | IFS=$as_save_IFS | |
3382 | ||
3383 | fi | |
3384 | fi | |
3385 | AWK=$ac_cv_prog_AWK | |
3386 | if test -n "$AWK"; then | |
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3388 | $as_echo "$AWK" >&6; } | |
3389 | else | |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3391 | $as_echo "no" >&6; } | |
3392 | fi | |
3393 | ||
3394 | ||
3395 | test -n "$AWK" && break | |
3396 | done | |
3397 | ||
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3399 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3400 | set x ${MAKE-make} | |
3401 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 3402 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
cd9a469c | 3403 | $as_echo_n "(cached) " >&6 |
3404 | else | |
3405 | cat >conftest.make <<\_ACEOF | |
3406 | SHELL = /bin/sh | |
3407 | all: | |
3408 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3409 | _ACEOF | |
f00f02a3 | 3410 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
cd9a469c | 3411 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3412 | *@@@%%%=?*=@@@%%%*) | |
3413 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3414 | *) | |
3415 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3416 | esac | |
3417 | rm -f conftest.make | |
3418 | fi | |
3419 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3421 | $as_echo "yes" >&6; } | |
4ee9c684 | 3422 | SET_MAKE= |
3423 | else | |
cd9a469c | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3425 | $as_echo "no" >&6; } | |
4ee9c684 | 3426 | SET_MAKE="MAKE=${MAKE-make}" |
3427 | fi | |
3428 | ||
3429 | rm -rf .tst 2>/dev/null | |
3430 | mkdir .tst 2>/dev/null | |
3431 | if test -d .tst; then | |
3432 | am__leading_dot=. | |
3433 | else | |
3434 | am__leading_dot=_ | |
3435 | fi | |
3436 | rmdir .tst 2>/dev/null | |
3437 | ||
f00f02a3 | 3438 | # Check whether --enable-silent-rules was given. |
3439 | if test "${enable_silent_rules+set}" = set; then : | |
3440 | enableval=$enable_silent_rules; | |
3441 | fi | |
3442 | ||
3443 | case $enable_silent_rules in # ((( | |
3444 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3445 | no) AM_DEFAULT_VERBOSITY=1;; | |
3446 | *) AM_DEFAULT_VERBOSITY=1;; | |
3447 | esac | |
3448 | am_make=${MAKE-make} | |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3450 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3451 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3452 | $as_echo_n "(cached) " >&6 | |
3453 | else | |
3454 | if $as_echo 'TRUE=$(BAR$(V)) | |
3455 | BAR0=false | |
3456 | BAR1=true | |
3457 | V=1 | |
3458 | am__doit: | |
3459 | @$(TRUE) | |
3460 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3461 | am_cv_make_support_nested_variables=yes | |
3462 | else | |
3463 | am_cv_make_support_nested_variables=no | |
3464 | fi | |
3465 | fi | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3467 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3468 | if test $am_cv_make_support_nested_variables = yes; then | |
3469 | AM_V='$(V)' | |
3470 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3471 | else | |
3472 | AM_V=$AM_DEFAULT_VERBOSITY | |
3473 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3474 | fi | |
3475 | AM_BACKSLASH='\' | |
3476 | ||
cd9a469c | 3477 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3478 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3479 | # is not polluted with repeated "-I." | |
3480 | am__isrc=' -I$(srcdir)' | |
3481 | # test to see if srcdir already configured | |
3482 | if test -f $srcdir/config.status; then | |
f00f02a3 | 3483 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
cd9a469c | 3484 | fi |
4ee9c684 | 3485 | fi |
3486 | ||
3487 | # test whether we have cygpath | |
3488 | if test -z "$CYGPATH_W"; then | |
3489 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3490 | CYGPATH_W='cygpath -w' | |
3491 | else | |
3492 | CYGPATH_W=echo | |
3493 | fi | |
3494 | fi | |
3495 | ||
3496 | ||
3497 | # Define the identity of the package. | |
3498 | PACKAGE='libgfortran' | |
76c0a846 | 3499 | VERSION='0.3' |
4ee9c684 | 3500 | |
3501 | ||
4ee9c684 | 3502 | # Some tools Automake needs. |
3503 | ||
3504 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3505 | ||
3506 | ||
3507 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3508 | ||
3509 | ||
3510 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3511 | ||
3512 | ||
3513 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3514 | ||
3515 | ||
3516 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3517 | ||
f00f02a3 | 3518 | # For better backward compatibility. To be removed once Automake 1.9.x |
3519 | # dies out for good. For more background, see: | |
3520 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3521 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3522 | mkdir_p='$(MKDIR_P)' | |
3523 | ||
3524 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3525 | # system "awk" is bad on some platforms. | |
544db64f | 3526 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3527 | # in the wild :-( We should find a proper way to deprecate it ... | |
3528 | AMTAR='$${TAR-tar}' | |
6745c9de | 3529 | |
f00f02a3 | 3530 | |
3531 | # We'll loop over all known methods to create a tar archive until one works. | |
3532 | _am_tools='gnutar pax cpio none' | |
3533 | ||
544db64f | 3534 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
6745c9de | 3535 | |
3536 | ||
4ee9c684 | 3537 | |
3538 | ||
3539 | ||
4ee9c684 | 3540 | |
f00f02a3 | 3541 | # POSIX will say in a future version that running "rm -f" with no argument |
3542 | # is OK; and we want to be able to make that assumption in our Makefile | |
3543 | # recipes. So use an aggressive probe to check that the usage we want is | |
3544 | # actually supported "in the wild" to an acceptable degree. | |
3545 | # See automake bug#10828. | |
3546 | # To make any issue more visible, cause the running configure to be aborted | |
3547 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3548 | # user can still override this though. | |
3549 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3550 | cat >&2 <<'END' | |
3551 | Oops! | |
3552 | ||
3553 | Your 'rm' program seems unable to run without file operands specified | |
3554 | on the command line, even when the '-f' option is present. This is contrary | |
3555 | to the behaviour of most rm programs out there, and not conforming with | |
3556 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3557 | ||
3558 | Please tell bug-automake@gnu.org about your system, including the value | |
3559 | of your $PATH and any error possibly output before this message. This | |
3560 | can help us improve future automake versions. | |
3561 | ||
3562 | END | |
3563 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3564 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3565 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3566 | echo >&2 | |
3567 | else | |
3568 | cat >&2 <<'END' | |
3569 | Aborting the configuration process, to ensure you take notice of the issue. | |
3570 | ||
3571 | You can download and install GNU coreutils to get an 'rm' implementation | |
3572 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3573 | ||
3574 | If you want to complete the configuration process using your problematic | |
3575 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3576 | to "yes", and re-run configure. | |
3577 | ||
3578 | END | |
3579 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3580 | fi | |
3581 | fi | |
3582 | ||
3583 | ||
cd9a469c | 3584 | |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3586 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3587 | # Check whether --enable-maintainer-mode was given. | |
3588 | if test "${enable_maintainer_mode+set}" = set; then : | |
3589 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4ee9c684 | 3590 | else |
3591 | USE_MAINTAINER_MODE=no | |
cd9a469c | 3592 | fi |
4ee9c684 | 3593 | |
cd9a469c | 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3595 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3596 | if test $USE_MAINTAINER_MODE = yes; then | |
4ee9c684 | 3597 | MAINTAINER_MODE_TRUE= |
3598 | MAINTAINER_MODE_FALSE='#' | |
3599 | else | |
3600 | MAINTAINER_MODE_TRUE='#' | |
3601 | MAINTAINER_MODE_FALSE= | |
3602 | fi | |
3603 | ||
3604 | MAINT=$MAINTAINER_MODE_TRUE | |
3605 | ||
3606 | ||
90973b19 | 3607 | # Default to --enable-multilib |
cd9a469c | 3608 | # Check whether --enable-multilib was given. |
3609 | if test "${enable_multilib+set}" = set; then : | |
3610 | enableval=$enable_multilib; case "$enableval" in | |
90973b19 | 3611 | yes) multilib=yes ;; |
3612 | no) multilib=no ;; | |
f00f02a3 | 3613 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
90973b19 | 3614 | esac |
3615 | else | |
3616 | multilib=yes | |
cd9a469c | 3617 | fi |
3618 | ||
90973b19 | 3619 | |
3620 | # We may get other options which we leave undocumented: | |
3621 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3622 | # See config-ml.in if you want the gory details. | |
3623 | ||
3624 | if test "$srcdir" = "."; then | |
3625 | if test "$with_target_subdir" != "."; then | |
3626 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3627 | else | |
3628 | multi_basedir="$srcdir/$with_multisrctop.." | |
3629 | fi | |
3630 | else | |
3631 | multi_basedir="$srcdir/.." | |
3632 | fi | |
3633 | ||
3634 | ||
04c8b51e | 3635 | # Even if the default multilib is not a cross compilation, |
3636 | # it may be that some of the other multilibs are. | |
3637 | if test $cross_compiling = no && test $multilib = yes \ | |
3638 | && test "x${with_multisubdir}" != x ; then | |
3639 | cross_compiling=maybe | |
3640 | fi | |
3641 | ||
cd9a469c | 3642 | ac_config_commands="$ac_config_commands default-1" |
90973b19 | 3643 | |
3644 | ||
3645 | # Handy for debugging: | |
3646 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3647 | ||
3648 | # Are we being configured with some form of cross compiler? | |
3649 | # NB: We don't actually need to know this just now, but when, say, a test | |
3650 | # suite is included, we'll have to know. | |
3651 | if test "$build" != "$host"; then | |
3652 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 3653 | |
90973b19 | 3654 | else |
3655 | LIBGFOR_IS_NATIVE=true | |
3656 | fi | |
3657 | ||
d5d92632 | 3658 | DEPDIR="${am__leading_dot}deps" |
90973b19 | 3659 | |
d5d92632 | 3660 | ac_config_commands="$ac_config_commands depfiles" |
90973b19 | 3661 | |
4ee9c684 | 3662 | |
d5d92632 | 3663 | am_make=${MAKE-make} |
3664 | cat > confinc << 'END' | |
3665 | am__doit: | |
3666 | @echo this is the am__doit target | |
3667 | .PHONY: am__doit | |
3668 | END | |
3669 | # If we don't find an include directive, just comment out the code. | |
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3671 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3672 | am__include="#" | |
3673 | am__quote= | |
3674 | _am_result=none | |
3675 | # First try GNU make style include. | |
3676 | echo "include confinc" > confmf | |
f00f02a3 | 3677 | # Ignore all kinds of additional output from 'make'. |
d5d92632 | 3678 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3679 | *the\ am__doit\ target*) | |
3680 | am__include=include | |
3681 | am__quote= | |
3682 | _am_result=GNU | |
3683 | ;; | |
3684 | esac | |
3685 | # Now try BSD make style include. | |
3686 | if test "$am__include" = "#"; then | |
3687 | echo '.include "confinc"' > confmf | |
3688 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3689 | *the\ am__doit\ target*) | |
3690 | am__include=.include | |
3691 | am__quote="\"" | |
3692 | _am_result=BSD | |
3693 | ;; | |
3694 | esac | |
3695 | fi | |
87969c8c | 3696 | |
4ee9c684 | 3697 | |
d5d92632 | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3699 | $as_echo "$_am_result" >&6; } | |
3700 | rm -f confinc confmf | |
3701 | ||
3702 | # Check whether --enable-dependency-tracking was given. | |
3703 | if test "${enable_dependency_tracking+set}" = set; then : | |
3704 | enableval=$enable_dependency_tracking; | |
3705 | fi | |
3706 | ||
3707 | if test "x$enable_dependency_tracking" != xno; then | |
3708 | am_depcomp="$ac_aux_dir/depcomp" | |
3709 | AMDEPBACKSLASH='\' | |
544db64f | 3710 | am__nodep='_no' |
d5d92632 | 3711 | fi |
3712 | if test "x$enable_dependency_tracking" != xno; then | |
3713 | AMDEP_TRUE= | |
3714 | AMDEP_FALSE='#' | |
3715 | else | |
3716 | AMDEP_TRUE='#' | |
3717 | AMDEP_FALSE= | |
3718 | fi | |
4ee9c684 | 3719 | |
3720 | ||
4ee9c684 | 3721 | ac_ext=c |
3722 | ac_cpp='$CPP $CPPFLAGS' | |
3723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3726 | if test -n "$ac_tool_prefix"; then | |
3727 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3728 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3730 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3731 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3732 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3733 | else |
3734 | if test -n "$CC"; then | |
3735 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3736 | else | |
3737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3738 | for as_dir in $PATH | |
3739 | do | |
3740 | IFS=$as_save_IFS | |
3741 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3742 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3744 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3746 | break 2 |
3747 | fi | |
3748 | done | |
cd9a469c | 3749 | done |
3750 | IFS=$as_save_IFS | |
4ee9c684 | 3751 | |
3752 | fi | |
3753 | fi | |
3754 | CC=$ac_cv_prog_CC | |
3755 | if test -n "$CC"; then | |
cd9a469c | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3757 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3758 | else |
cd9a469c | 3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3760 | $as_echo "no" >&6; } | |
4ee9c684 | 3761 | fi |
3762 | ||
cd9a469c | 3763 | |
4ee9c684 | 3764 | fi |
3765 | if test -z "$ac_cv_prog_CC"; then | |
3766 | ac_ct_CC=$CC | |
3767 | # Extract the first word of "gcc", so it can be a program name with args. | |
3768 | set dummy gcc; ac_word=$2 | |
cd9a469c | 3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3770 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3771 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 3772 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3773 | else |
3774 | if test -n "$ac_ct_CC"; then | |
3775 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3776 | else | |
3777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3778 | for as_dir in $PATH | |
3779 | do | |
3780 | IFS=$as_save_IFS | |
3781 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3782 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3784 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 3785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3786 | break 2 |
3787 | fi | |
3788 | done | |
cd9a469c | 3789 | done |
3790 | IFS=$as_save_IFS | |
4ee9c684 | 3791 | |
3792 | fi | |
3793 | fi | |
3794 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3795 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3797 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3798 | else |
cd9a469c | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3800 | $as_echo "no" >&6; } | |
4ee9c684 | 3801 | fi |
3802 | ||
cd9a469c | 3803 | if test "x$ac_ct_CC" = x; then |
3804 | CC="" | |
3805 | else | |
3806 | case $cross_compiling:$ac_tool_warned in | |
3807 | yes:) | |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3809 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3810 | ac_tool_warned=yes ;; | |
3811 | esac | |
3812 | CC=$ac_ct_CC | |
3813 | fi | |
4ee9c684 | 3814 | else |
3815 | CC="$ac_cv_prog_CC" | |
3816 | fi | |
3817 | ||
3818 | if test -z "$CC"; then | |
cd9a469c | 3819 | if test -n "$ac_tool_prefix"; then |
3820 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4ee9c684 | 3821 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3823 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3824 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3825 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3826 | else |
3827 | if test -n "$CC"; then | |
3828 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3829 | else | |
3830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3831 | for as_dir in $PATH | |
3832 | do | |
3833 | IFS=$as_save_IFS | |
3834 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3835 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3837 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 3838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3839 | break 2 |
3840 | fi | |
3841 | done | |
cd9a469c | 3842 | done |
3843 | IFS=$as_save_IFS | |
4ee9c684 | 3844 | |
3845 | fi | |
3846 | fi | |
3847 | CC=$ac_cv_prog_CC | |
3848 | if test -n "$CC"; then | |
cd9a469c | 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3850 | $as_echo "$CC" >&6; } | |
82eaf560 | 3851 | else |
cd9a469c | 3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3853 | $as_echo "no" >&6; } | |
82eaf560 | 3854 | fi |
3855 | ||
82eaf560 | 3856 | |
cd9a469c | 3857 | fi |
4ee9c684 | 3858 | fi |
3859 | if test -z "$CC"; then | |
3860 | # Extract the first word of "cc", so it can be a program name with args. | |
3861 | set dummy cc; ac_word=$2 | |
cd9a469c | 3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3863 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3864 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3865 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3866 | else |
3867 | if test -n "$CC"; then | |
3868 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3869 | else | |
3870 | ac_prog_rejected=no | |
3871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3872 | for as_dir in $PATH | |
3873 | do | |
3874 | IFS=$as_save_IFS | |
3875 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3876 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3877 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3878 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3879 | ac_prog_rejected=yes | |
3880 | continue | |
3881 | fi | |
3882 | ac_cv_prog_CC="cc" | |
cd9a469c | 3883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3884 | break 2 |
3885 | fi | |
3886 | done | |
cd9a469c | 3887 | done |
3888 | IFS=$as_save_IFS | |
4ee9c684 | 3889 | |
3890 | if test $ac_prog_rejected = yes; then | |
3891 | # We found a bogon in the path, so make sure we never use it. | |
3892 | set dummy $ac_cv_prog_CC | |
3893 | shift | |
3894 | if test $# != 0; then | |
3895 | # We chose a different compiler from the bogus one. | |
3896 | # However, it has the same basename, so the bogon will be chosen | |
3897 | # first if we set CC to just the basename; use the full file name. | |
3898 | shift | |
3899 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3900 | fi | |
3901 | fi | |
3902 | fi | |
3903 | fi | |
3904 | CC=$ac_cv_prog_CC | |
3905 | if test -n "$CC"; then | |
cd9a469c | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3907 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3908 | else |
cd9a469c | 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3910 | $as_echo "no" >&6; } | |
4ee9c684 | 3911 | fi |
3912 | ||
cd9a469c | 3913 | |
4ee9c684 | 3914 | fi |
3915 | if test -z "$CC"; then | |
3916 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 3917 | for ac_prog in cl.exe |
4ee9c684 | 3918 | do |
3919 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3920 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3922 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3923 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 3924 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3925 | else |
3926 | if test -n "$CC"; then | |
3927 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3928 | else | |
3929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3930 | for as_dir in $PATH | |
3931 | do | |
3932 | IFS=$as_save_IFS | |
3933 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3934 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3935 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3936 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 3937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3938 | break 2 |
3939 | fi | |
3940 | done | |
cd9a469c | 3941 | done |
3942 | IFS=$as_save_IFS | |
4ee9c684 | 3943 | |
3944 | fi | |
3945 | fi | |
3946 | CC=$ac_cv_prog_CC | |
3947 | if test -n "$CC"; then | |
cd9a469c | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3949 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3950 | else |
cd9a469c | 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3952 | $as_echo "no" >&6; } | |
4ee9c684 | 3953 | fi |
3954 | ||
cd9a469c | 3955 | |
4ee9c684 | 3956 | test -n "$CC" && break |
3957 | done | |
3958 | fi | |
3959 | if test -z "$CC"; then | |
3960 | ac_ct_CC=$CC | |
cd9a469c | 3961 | for ac_prog in cl.exe |
4ee9c684 | 3962 | do |
3963 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3964 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3966 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 3967 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 3968 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 3969 | else |
3970 | if test -n "$ac_ct_CC"; then | |
3971 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3972 | else | |
3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3974 | for as_dir in $PATH | |
3975 | do | |
3976 | IFS=$as_save_IFS | |
3977 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3978 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 3979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4ee9c684 | 3980 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 3981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3982 | break 2 |
3983 | fi | |
3984 | done | |
cd9a469c | 3985 | done |
3986 | IFS=$as_save_IFS | |
4ee9c684 | 3987 | |
3988 | fi | |
3989 | fi | |
3990 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3991 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3993 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3994 | else |
cd9a469c | 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3996 | $as_echo "no" >&6; } | |
4ee9c684 | 3997 | fi |
3998 | ||
cd9a469c | 3999 | |
4ee9c684 | 4000 | test -n "$ac_ct_CC" && break |
4001 | done | |
4002 | ||
cd9a469c | 4003 | if test "x$ac_ct_CC" = x; then |
4004 | CC="" | |
4005 | else | |
4006 | case $cross_compiling:$ac_tool_warned in | |
4007 | yes:) | |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4009 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4010 | ac_tool_warned=yes ;; | |
4011 | esac | |
4012 | CC=$ac_ct_CC | |
4013 | fi | |
4ee9c684 | 4014 | fi |
4015 | ||
4016 | fi | |
4017 | ||
4018 | ||
cd9a469c | 4019 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4020 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4021 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4022 | See \`config.log' for more details" "$LINENO" 5; } | |
4ee9c684 | 4023 | |
4024 | # Provide some information about the compiler. | |
cd9a469c | 4025 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4026 | set X $ac_compile | |
4027 | ac_compiler=$2 | |
4028 | for ac_option in --version -v -V -qversion; do | |
4029 | { { ac_try="$ac_compiler $ac_option >&5" | |
4030 | case "(($ac_try" in | |
4031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4032 | *) ac_try_echo=$ac_try;; | |
4033 | esac | |
4034 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4035 | $as_echo "$ac_try_echo"; } >&5 | |
4036 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4ee9c684 | 4037 | ac_status=$? |
cd9a469c | 4038 | if test -s conftest.err; then |
4039 | sed '10a\ | |
4040 | ... rest of stderr output deleted ... | |
4041 | 10q' conftest.err >conftest.er1 | |
4042 | cat conftest.er1 >&5 | |
cd9a469c | 4043 | fi |
f00f02a3 | 4044 | rm -f conftest.er1 conftest.err |
cd9a469c | 4045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4046 | test $ac_status = 0; } | |
4047 | done | |
4ee9c684 | 4048 | |
cd9a469c | 4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4050 | /* end confdefs.h. */ |
4051 | ||
b52ee437 | 4052 | int |
4053 | main () | |
4054 | { | |
4055 | ||
4056 | ; | |
4057 | return 0; | |
4058 | } | |
4059 | _ACEOF | |
4060 | # FIXME: Cleanup? | |
cd9a469c | 4061 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
b52ee437 | 4062 | (eval $ac_link) 2>&5 |
4063 | ac_status=$? | |
cd9a469c | 4064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4065 | test $ac_status = 0; }; then : | |
b52ee437 | 4066 | gcc_no_link=no |
4067 | else | |
4068 | gcc_no_link=yes | |
4069 | fi | |
b52ee437 | 4070 | if test x$gcc_no_link = xyes; then |
4071 | # Setting cross_compile will disable run tests; it will | |
4072 | # also disable AC_CHECK_FILE but that's generally | |
4073 | # correct if we can't link. | |
4074 | cross_compiling=yes | |
4075 | EXEEXT= | |
4076 | else | |
cd9a469c | 4077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 4078 | /* end confdefs.h. */ |
4079 | ||
4ee9c684 | 4080 | int |
4081 | main () | |
4082 | { | |
4083 | ||
4084 | ; | |
4085 | return 0; | |
4086 | } | |
4087 | _ACEOF | |
4088 | ac_clean_files_save=$ac_clean_files | |
f00f02a3 | 4089 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
4ee9c684 | 4090 | # Try to create an executable without -o first, disregard a.out. |
4091 | # It will help us diagnose broken compilers, and finding out an intuition | |
4092 | # of exeext. | |
f00f02a3 | 4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4094 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
cd9a469c | 4095 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4096 | ||
4097 | # The possible output files: | |
4098 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4099 | ||
4100 | ac_rmfiles= | |
4101 | for ac_file in $ac_files | |
4102 | do | |
4103 | case $ac_file in | |
4104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4105 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4106 | esac | |
4107 | done | |
4108 | rm -f $ac_rmfiles | |
4109 | ||
4110 | if { { ac_try="$ac_link_default" | |
4111 | case "(($ac_try" in | |
4112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4113 | *) ac_try_echo=$ac_try;; | |
4114 | esac | |
4115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4116 | $as_echo "$ac_try_echo"; } >&5 | |
4117 | (eval "$ac_link_default") 2>&5 | |
4118 | ac_status=$? | |
4119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4120 | test $ac_status = 0; }; then : | |
4121 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4122 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4123 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4124 | # so that the user can short-circuit this test for compilers unknown to | |
4125 | # Autoconf. | |
4126 | for ac_file in $ac_files '' | |
4ee9c684 | 4127 | do |
4128 | test -f "$ac_file" || continue | |
4129 | case $ac_file in | |
cd9a469c | 4130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
4ee9c684 | 4131 | ;; |
4132 | [ab].out ) | |
4133 | # We found the default executable, but exeext='' is most | |
4134 | # certainly right. | |
4135 | break;; | |
4136 | *.* ) | |
cd9a469c | 4137 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4138 | then :; else | |
4139 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4140 | fi | |
4141 | # We set ac_cv_exeext here because the later test for it is not | |
4142 | # safe: cross compilers may not add the suffix if given an `-o' | |
4143 | # argument, so we may need to know it at that point already. | |
4144 | # Even if this section looks crufty: it has the advantage of | |
4145 | # actually working. | |
4ee9c684 | 4146 | break;; |
4147 | * ) | |
4148 | break;; | |
4149 | esac | |
4150 | done | |
cd9a469c | 4151 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4152 | ||
4ee9c684 | 4153 | else |
cd9a469c | 4154 | ac_file='' |
4155 | fi | |
cd9a469c | 4156 | if test -z "$ac_file"; then : |
f00f02a3 | 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4158 | $as_echo "no" >&6; } | |
4159 | $as_echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 4160 | sed 's/^/| /' conftest.$ac_ext >&5 |
4161 | ||
cd9a469c | 4162 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4163 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4164 | as_fn_error 77 "C compiler cannot create executables |
4165 | See \`config.log' for more details" "$LINENO" 5; } | |
4166 | else | |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4168 | $as_echo "yes" >&6; } | |
4ee9c684 | 4169 | fi |
f00f02a3 | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4171 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4173 | $as_echo "$ac_file" >&6; } | |
4ee9c684 | 4174 | ac_exeext=$ac_cv_exeext |
4ee9c684 | 4175 | |
f00f02a3 | 4176 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
4ee9c684 | 4177 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4179 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4180 | if { { ac_try="$ac_link" | |
4181 | case "(($ac_try" in | |
4182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4183 | *) ac_try_echo=$ac_try;; | |
4184 | esac | |
4185 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4186 | $as_echo "$ac_try_echo"; } >&5 | |
4187 | (eval "$ac_link") 2>&5 | |
4ee9c684 | 4188 | ac_status=$? |
cd9a469c | 4189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4190 | test $ac_status = 0; }; then : | |
4ee9c684 | 4191 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4192 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4193 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4194 | # `rm'. | |
4195 | for ac_file in conftest.exe conftest conftest.*; do | |
4196 | test -f "$ac_file" || continue | |
4197 | case $ac_file in | |
cd9a469c | 4198 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4ee9c684 | 4199 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4ee9c684 | 4200 | break;; |
4201 | * ) break;; | |
4202 | esac | |
4203 | done | |
4204 | else | |
cd9a469c | 4205 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4206 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4207 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4208 | See \`config.log' for more details" "$LINENO" 5; } | |
4ee9c684 | 4209 | fi |
f00f02a3 | 4210 | rm -f conftest conftest$ac_cv_exeext |
cd9a469c | 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4212 | $as_echo "$ac_cv_exeext" >&6; } | |
4ee9c684 | 4213 | |
4214 | rm -f conftest.$ac_ext | |
4215 | EXEEXT=$ac_cv_exeext | |
4216 | ac_exeext=$EXEEXT | |
f00f02a3 | 4217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4218 | /* end confdefs.h. */ | |
4219 | #include <stdio.h> | |
4220 | int | |
4221 | main () | |
4222 | { | |
4223 | FILE *f = fopen ("conftest.out", "w"); | |
4224 | return ferror (f) || fclose (f) != 0; | |
4225 | ||
4226 | ; | |
4227 | return 0; | |
4228 | } | |
4229 | _ACEOF | |
4230 | ac_clean_files="$ac_clean_files conftest.out" | |
4231 | # Check that the compiler produces executables we can run. If not, either | |
4232 | # the compiler is broken, or we cross compile. | |
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4234 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4235 | if test "$cross_compiling" != yes; then | |
4236 | { { ac_try="$ac_link" | |
4237 | case "(($ac_try" in | |
4238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4239 | *) ac_try_echo=$ac_try;; | |
4240 | esac | |
4241 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4242 | $as_echo "$ac_try_echo"; } >&5 | |
4243 | (eval "$ac_link") 2>&5 | |
4244 | ac_status=$? | |
4245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4246 | test $ac_status = 0; } | |
4247 | if { ac_try='./conftest$ac_cv_exeext' | |
4248 | { { case "(($ac_try" in | |
4249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4250 | *) ac_try_echo=$ac_try;; | |
4251 | esac | |
4252 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4253 | $as_echo "$ac_try_echo"; } >&5 | |
4254 | (eval "$ac_try") 2>&5 | |
4255 | ac_status=$? | |
4256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4257 | test $ac_status = 0; }; }; then | |
4258 | cross_compiling=no | |
4259 | else | |
4260 | if test "$cross_compiling" = maybe; then | |
4261 | cross_compiling=yes | |
4262 | else | |
4263 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4264 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4265 | as_fn_error $? "cannot run C compiled programs. | |
4266 | If you meant to cross compile, use \`--host'. | |
4267 | See \`config.log' for more details" "$LINENO" 5; } | |
4268 | fi | |
4269 | fi | |
4270 | fi | |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4272 | $as_echo "$cross_compiling" >&6; } | |
4273 | ||
4274 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4275 | ac_clean_files=$ac_clean_files_save | |
b52ee437 | 4276 | fi |
cd9a469c | 4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4278 | $as_echo_n "checking for suffix of object files... " >&6; } | |
f00f02a3 | 4279 | if ${ac_cv_objext+:} false; then : |
cd9a469c | 4280 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4281 | else |
cd9a469c | 4282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4283 | /* end confdefs.h. */ |
4284 | ||
4285 | int | |
4286 | main () | |
4287 | { | |
4288 | ||
4289 | ; | |
4290 | return 0; | |
4291 | } | |
4292 | _ACEOF | |
4293 | rm -f conftest.o conftest.obj | |
cd9a469c | 4294 | if { { ac_try="$ac_compile" |
4295 | case "(($ac_try" in | |
4296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4297 | *) ac_try_echo=$ac_try;; | |
4298 | esac | |
4299 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4300 | $as_echo "$ac_try_echo"; } >&5 | |
4301 | (eval "$ac_compile") 2>&5 | |
4302 | ac_status=$? | |
4303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4304 | test $ac_status = 0; }; then : | |
4305 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4306 | test -f "$ac_file" || continue; | |
4ee9c684 | 4307 | case $ac_file in |
cd9a469c | 4308 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
4ee9c684 | 4309 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4310 | break;; | |
4311 | esac | |
4312 | done | |
4313 | else | |
cd9a469c | 4314 | $as_echo "$as_me: failed program was:" >&5 |
4ee9c684 | 4315 | sed 's/^/| /' conftest.$ac_ext >&5 |
4316 | ||
cd9a469c | 4317 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4318 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4319 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4320 | See \`config.log' for more details" "$LINENO" 5; } | |
a106dabe | 4321 | fi |
a106dabe | 4322 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4323 | fi | |
cd9a469c | 4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4325 | $as_echo "$ac_cv_objext" >&6; } | |
a106dabe | 4326 | OBJEXT=$ac_cv_objext |
4327 | ac_objext=$OBJEXT | |
cd9a469c | 4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4329 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 4330 | if ${ac_cv_c_compiler_gnu+:} false; then : |
cd9a469c | 4331 | $as_echo_n "(cached) " >&6 |
a106dabe | 4332 | else |
cd9a469c | 4333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4334 | /* end confdefs.h. */ |
4ee9c684 | 4335 | |
4ee9c684 | 4336 | int |
4337 | main () | |
4338 | { | |
a106dabe | 4339 | #ifndef __GNUC__ |
4340 | choke me | |
4341 | #endif | |
ce1a737c | 4342 | |
4ee9c684 | 4343 | ; |
4344 | return 0; | |
4345 | } | |
4346 | _ACEOF | |
cd9a469c | 4347 | if ac_fn_c_try_compile "$LINENO"; then : |
a106dabe | 4348 | ac_compiler_gnu=yes |
4ee9c684 | 4349 | else |
cd9a469c | 4350 | ac_compiler_gnu=no |
a106dabe | 4351 | fi |
cd9a469c | 4352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a106dabe | 4353 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4354 | ||
4355 | fi | |
cd9a469c | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4357 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4358 | if test $ac_compiler_gnu = yes; then | |
4359 | GCC=yes | |
4360 | else | |
4361 | GCC= | |
4362 | fi | |
a106dabe | 4363 | ac_test_CFLAGS=${CFLAGS+set} |
4364 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4366 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 4367 | if ${ac_cv_prog_cc_g+:} false; then : |
cd9a469c | 4368 | $as_echo_n "(cached) " >&6 |
a106dabe | 4369 | else |
cd9a469c | 4370 | ac_save_c_werror_flag=$ac_c_werror_flag |
4371 | ac_c_werror_flag=yes | |
4372 | ac_cv_prog_cc_g=no | |
4373 | CFLAGS="-g" | |
4374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4ee9c684 | 4375 | /* end confdefs.h. */ |
ce1a737c | 4376 | |
4ee9c684 | 4377 | int |
4378 | main () | |
4379 | { | |
ce1a737c | 4380 | |
4ee9c684 | 4381 | ; |
4382 | return 0; | |
4383 | } | |
4384 | _ACEOF | |
cd9a469c | 4385 | if ac_fn_c_try_compile "$LINENO"; then : |
ff4425cf | 4386 | ac_cv_prog_cc_g=yes |
4387 | else | |
cd9a469c | 4388 | CFLAGS="" |
4389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4390 | /* end confdefs.h. */ | |
4391 | ||
4392 | int | |
4393 | main () | |
4394 | { | |
4395 | ||
4396 | ; | |
4397 | return 0; | |
4398 | } | |
4399 | _ACEOF | |
4400 | if ac_fn_c_try_compile "$LINENO"; then : | |
4401 | ||
4402 | else | |
4403 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4404 | CFLAGS="-g" | |
4405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4406 | /* end confdefs.h. */ | |
ff4425cf | 4407 | |
cd9a469c | 4408 | int |
4409 | main () | |
4410 | { | |
4411 | ||
4412 | ; | |
4413 | return 0; | |
4414 | } | |
4415 | _ACEOF | |
4416 | if ac_fn_c_try_compile "$LINENO"; then : | |
4417 | ac_cv_prog_cc_g=yes | |
4418 | fi | |
4419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
82eaf560 | 4420 | fi |
cd9a469c | 4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
82eaf560 | 4422 | fi |
cd9a469c | 4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4424 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4425 | fi | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4427 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
82eaf560 | 4428 | if test "$ac_test_CFLAGS" = set; then |
4429 | CFLAGS=$ac_save_CFLAGS | |
4430 | elif test $ac_cv_prog_cc_g = yes; then | |
4431 | if test "$GCC" = yes; then | |
4432 | CFLAGS="-g -O2" | |
4433 | else | |
4434 | CFLAGS="-g" | |
4435 | fi | |
4436 | else | |
4437 | if test "$GCC" = yes; then | |
4438 | CFLAGS="-O2" | |
4439 | else | |
4440 | CFLAGS= | |
4441 | fi | |
4442 | fi | |
cd9a469c | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4444 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 4445 | if ${ac_cv_prog_cc_c89+:} false; then : |
cd9a469c | 4446 | $as_echo_n "(cached) " >&6 |
82eaf560 | 4447 | else |
cd9a469c | 4448 | ac_cv_prog_cc_c89=no |
82eaf560 | 4449 | ac_save_CC=$CC |
cd9a469c | 4450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff4425cf | 4451 | /* end confdefs.h. */ |
82eaf560 | 4452 | #include <stdarg.h> |
4453 | #include <stdio.h> | |
f00f02a3 | 4454 | struct stat; |
82eaf560 | 4455 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4456 | struct buf { int x; }; | |
4457 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4458 | static char *e (p, i) | |
4459 | char **p; | |
4460 | int i; | |
4461 | { | |
4462 | return p[i]; | |
4463 | } | |
4464 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4465 | { | |
4466 | char *s; | |
4467 | va_list v; | |
4468 | va_start (v,p); | |
4469 | s = g (p, va_arg (v,int)); | |
4470 | va_end (v); | |
4471 | return s; | |
4472 | } | |
ff4425cf | 4473 | |
82eaf560 | 4474 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4475 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4476 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4477 | as 'x'. The following induces an error, until -std is added to get |
82eaf560 | 4478 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4479 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4480 | that's true only with -std. */ |
82eaf560 | 4481 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4482 | ||
cd9a469c | 4483 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4484 | inside strings and character constants. */ | |
4485 | #define FOO(x) 'x' | |
4486 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4487 | ||
82eaf560 | 4488 | int test (int i, double x); |
4489 | struct s1 {int (*f) (int a);}; | |
4490 | struct s2 {int (*f) (double a);}; | |
4491 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4492 | int argc; | |
4493 | char **argv; | |
ff4425cf | 4494 | int |
4495 | main () | |
4496 | { | |
82eaf560 | 4497 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
ff4425cf | 4498 | ; |
4499 | return 0; | |
4500 | } | |
4501 | _ACEOF | |
cd9a469c | 4502 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4503 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
82eaf560 | 4504 | do |
4505 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4506 | if ac_fn_c_try_compile "$LINENO"; then : |
4507 | ac_cv_prog_cc_c89=$ac_arg | |
82eaf560 | 4508 | fi |
cd9a469c | 4509 | rm -f core conftest.err conftest.$ac_objext |
4510 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
82eaf560 | 4511 | done |
cd9a469c | 4512 | rm -f conftest.$ac_ext |
82eaf560 | 4513 | CC=$ac_save_CC |
4514 | ||
4515 | fi | |
cd9a469c | 4516 | # AC_CACHE_VAL |
4517 | case "x$ac_cv_prog_cc_c89" in | |
4518 | x) | |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4520 | $as_echo "none needed" >&6; } ;; | |
4521 | xno) | |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4523 | $as_echo "unsupported" >&6; } ;; | |
82eaf560 | 4524 | *) |
cd9a469c | 4525 | CC="$CC $ac_cv_prog_cc_c89" |
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4527 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
82eaf560 | 4528 | esac |
cd9a469c | 4529 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4ee9c684 | 4530 | |
4531 | fi | |
4ee9c684 | 4532 | |
4ee9c684 | 4533 | ac_ext=c |
4534 | ac_cpp='$CPP $CPPFLAGS' | |
4535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2fd61f51 | 4538 | |
f00f02a3 | 4539 | ac_ext=c |
4540 | ac_cpp='$CPP $CPPFLAGS' | |
4541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4545 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4546 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4547 | $as_echo_n "(cached) " >&6 | |
4548 | else | |
4549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4550 | /* end confdefs.h. */ | |
4551 | ||
4552 | int | |
4553 | main () | |
4554 | { | |
4555 | ||
4556 | ; | |
4557 | return 0; | |
4558 | } | |
4559 | _ACEOF | |
4560 | # Make sure it works both with $CC and with simple cc. | |
4561 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4562 | # compilers refuse to overwrite an existing .o file with -o, | |
4563 | # though they will create one. | |
4564 | am_cv_prog_cc_c_o=yes | |
4565 | for am_i in 1 2; do | |
4566 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4567 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4568 | ac_status=$? | |
4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4570 | (exit $ac_status); } \ | |
4571 | && test -f conftest2.$ac_objext; then | |
4572 | : OK | |
4573 | else | |
4574 | am_cv_prog_cc_c_o=no | |
4575 | break | |
4576 | fi | |
4577 | done | |
4578 | rm -f core conftest* | |
4579 | unset am_i | |
4580 | fi | |
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4582 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4583 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4584 | # Losing compiler, so override with the script. | |
4585 | # FIXME: It is wrong to rewrite CC. | |
4586 | # But if we don't then we get into trouble of one sort or another. | |
4587 | # A longer-term fix would be to have automake use am__CC in this case, | |
4588 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4589 | CC="$am_aux_dir/compile $CC" | |
4590 | fi | |
4591 | ac_ext=c | |
4592 | ac_cpp='$CPP $CPPFLAGS' | |
4593 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4594 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4595 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4596 | ||
4597 | ||
2fd61f51 | 4598 | depcc="$CC" am_compiler_list= |
4599 | ||
cd9a469c | 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4601 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
f00f02a3 | 4602 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
cd9a469c | 4603 | $as_echo_n "(cached) " >&6 |
2fd61f51 | 4604 | else |
4605 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4606 | # We make a subdir and do the tests there. Otherwise we can end up | |
4607 | # making bogus files that we don't know about and never remove. For | |
4608 | # instance it was reported that on HP-UX the gcc test will end up | |
f00f02a3 | 4609 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4610 | # in D". | |
544db64f | 4611 | rm -rf conftest.dir |
2fd61f51 | 4612 | mkdir conftest.dir |
4613 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4614 | # using a relative directory. | |
4615 | cp "$am_depcomp" conftest.dir | |
4616 | cd conftest.dir | |
4617 | # We will build objects and dependencies in a subdirectory because | |
4618 | # it helps to detect inapplicable dependency modes. For instance | |
4619 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4620 | # side effect of compilation, but ICC will put the dependencies in | |
4621 | # the current directory while Tru64 will put them in the object | |
4622 | # directory. | |
4623 | mkdir sub | |
4624 | ||
4625 | am_cv_CC_dependencies_compiler_type=none | |
4626 | if test "$am_compiler_list" = ""; then | |
4627 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4628 | fi | |
cd9a469c | 4629 | am__universal=false |
4630 | case " $depcc " in #( | |
4631 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4632 | esac | |
4633 | ||
2fd61f51 | 4634 | for depmode in $am_compiler_list; do |
4635 | # Setup a source with many dependencies, because some compilers | |
4636 | # like to wrap large dependency lists on column 80 (with \), and | |
4637 | # we should not choose a depcomp mode which is confused by this. | |
4638 | # | |
4639 | # We need to recreate these files for each test, as the compiler may | |
4640 | # overwrite some of them when testing with obscure command lines. | |
4641 | # This happens at least with the AIX C compiler. | |
4642 | : > sub/conftest.c | |
4643 | for i in 1 2 3 4 5 6; do | |
4644 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
f00f02a3 | 4645 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4646 | # Solaris 10 /bin/sh. | |
4647 | echo '/* dummy */' > sub/conftst$i.h | |
2fd61f51 | 4648 | done |
4649 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4650 | ||
f00f02a3 | 4651 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
cd9a469c | 4652 | # mode. It turns out that the SunPro C++ compiler does not properly |
f00f02a3 | 4653 | # handle '-M -o', and we need to detect this. Also, some Intel |
4654 | # versions had trouble with output in subdirs. | |
cd9a469c | 4655 | am__obj=sub/conftest.${OBJEXT-o} |
4656 | am__minus_obj="-o $am__obj" | |
2fd61f51 | 4657 | case $depmode in |
cd9a469c | 4658 | gcc) |
4659 | # This depmode causes a compiler race in universal mode. | |
4660 | test "$am__universal" = false || continue | |
4661 | ;; | |
2fd61f51 | 4662 | nosideeffect) |
f00f02a3 | 4663 | # After this tag, mechanisms are not by side-effect, so they'll |
4664 | # only be used when explicitly requested. | |
2fd61f51 | 4665 | if test "x$enable_dependency_tracking" = xyes; then |
4666 | continue | |
4667 | else | |
4668 | break | |
4669 | fi | |
4670 | ;; | |
544db64f | 4671 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
f00f02a3 | 4672 | # This compiler won't grok '-c -o', but also, the minuso test has |
cd9a469c | 4673 | # not run yet. These depmodes are late enough in the game, and |
4674 | # so weak that their functioning should not be impacted. | |
4675 | am__obj=conftest.${OBJEXT-o} | |
4676 | am__minus_obj= | |
4677 | ;; | |
2fd61f51 | 4678 | none) break ;; |
4679 | esac | |
2fd61f51 | 4680 | if depmode=$depmode \ |
cd9a469c | 4681 | source=sub/conftest.c object=$am__obj \ |
2fd61f51 | 4682 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
cd9a469c | 4683 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2fd61f51 | 4684 | >/dev/null 2>conftest.err && |
cd9a469c | 4685 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4686 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
cd9a469c | 4687 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4688 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4689 | # icc doesn't choke on unknown options, it will just issue warnings | |
4690 | # or remarks (even with -Werror). So we grep stderr for any message | |
4691 | # that says an option was ignored or not supported. | |
4692 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4693 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4694 | # The diagnosis changed in icc 8.0: | |
4695 | # icc: Command line remark: option '-MP' not supported | |
4696 | if (grep 'ignoring option' conftest.err || | |
4697 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4698 | am_cv_CC_dependencies_compiler_type=$depmode | |
4699 | break | |
4700 | fi | |
4701 | fi | |
4702 | done | |
4703 | ||
4704 | cd .. | |
4705 | rm -rf conftest.dir | |
4706 | else | |
4707 | am_cv_CC_dependencies_compiler_type=none | |
4708 | fi | |
4709 | ||
4710 | fi | |
cd9a469c | 4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4712 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2fd61f51 | 4713 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4714 | ||
cd9a469c | 4715 | if |
2fd61f51 | 4716 | test "x$enable_dependency_tracking" != xno \ |
4717 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4718 | am__fastdepCC_TRUE= | |
4719 | am__fastdepCC_FALSE='#' | |
4720 | else | |
4721 | am__fastdepCC_TRUE='#' | |
4722 | am__fastdepCC_FALSE= | |
4723 | fi | |
4724 | ||
4ee9c684 | 4725 | |
4ee9c684 | 4726 | |
d5d92632 | 4727 | ac_ext=c |
4728 | ac_cpp='$CPP $CPPFLAGS' | |
4729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4733 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4734 | # On Suns, sometimes $CPP names a directory. | |
4735 | if test -n "$CPP" && test -d "$CPP"; then | |
4736 | CPP= | |
4ee9c684 | 4737 | fi |
d5d92632 | 4738 | if test -z "$CPP"; then |
f00f02a3 | 4739 | if ${ac_cv_prog_CPP+:} false; then : |
d5d92632 | 4740 | $as_echo_n "(cached) " >&6 |
4741 | else | |
4742 | # Double quotes because CPP needs to be expanded | |
4743 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4744 | do | |
4745 | ac_preproc_ok=false | |
4746 | for ac_c_preproc_warn_flag in '' yes | |
4747 | do | |
4748 | # Use a header file that comes with gcc, so configuring glibc | |
4749 | # with a fresh cross-compiler works. | |
4750 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4751 | # <limits.h> exists even on freestanding compilers. | |
4752 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4753 | # not just through cpp. "Syntax error" is here to catch this case. | |
4754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce1a737c | 4755 | /* end confdefs.h. */ |
d5d92632 | 4756 | #ifdef __STDC__ |
4757 | # include <limits.h> | |
4758 | #else | |
4759 | # include <assert.h> | |
4760 | #endif | |
4761 | Syntax error | |
ce1a737c | 4762 | _ACEOF |
d5d92632 | 4763 | if ac_fn_c_try_cpp "$LINENO"; then : |
4764 | ||
019fb48a | 4765 | else |
d5d92632 | 4766 | # Broken: fails on valid input. |
4767 | continue | |
019fb48a | 4768 | fi |
f00f02a3 | 4769 | rm -f conftest.err conftest.i conftest.$ac_ext |
019fb48a | 4770 | |
d5d92632 | 4771 | # OK, works on sane cases. Now check whether nonexistent headers |
4772 | # can be detected and how. | |
4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4774 | /* end confdefs.h. */ | |
4775 | #include <ac_nonexistent.h> | |
019fb48a | 4776 | _ACEOF |
d5d92632 | 4777 | if ac_fn_c_try_cpp "$LINENO"; then : |
4778 | # Broken: success on invalid input. | |
4779 | continue | |
ce1a737c | 4780 | else |
d5d92632 | 4781 | # Passes both tests. |
4782 | ac_preproc_ok=: | |
4783 | break | |
019fb48a | 4784 | fi |
f00f02a3 | 4785 | rm -f conftest.err conftest.i conftest.$ac_ext |
d5d92632 | 4786 | |
4787 | done | |
4788 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
f00f02a3 | 4789 | rm -f conftest.i conftest.err conftest.$ac_ext |
d5d92632 | 4790 | if $ac_preproc_ok; then : |
4791 | break | |
ce1a737c | 4792 | fi |
4793 | ||
d5d92632 | 4794 | done |
4795 | ac_cv_prog_CPP=$CPP | |
4796 | ||
4797 | fi | |
4798 | CPP=$ac_cv_prog_CPP | |
019fb48a | 4799 | else |
d5d92632 | 4800 | ac_cv_prog_CPP=$CPP |
019fb48a | 4801 | fi |
d5d92632 | 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4803 | $as_echo "$CPP" >&6; } | |
4804 | ac_preproc_ok=false | |
4805 | for ac_c_preproc_warn_flag in '' yes | |
4806 | do | |
4807 | # Use a header file that comes with gcc, so configuring glibc | |
4808 | # with a fresh cross-compiler works. | |
4809 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4810 | # <limits.h> exists even on freestanding compilers. | |
4811 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4812 | # not just through cpp. "Syntax error" is here to catch this case. | |
4813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4814 | /* end confdefs.h. */ | |
4815 | #ifdef __STDC__ | |
4816 | # include <limits.h> | |
4817 | #else | |
4818 | # include <assert.h> | |
4819 | #endif | |
4820 | Syntax error | |
4821 | _ACEOF | |
4822 | if ac_fn_c_try_cpp "$LINENO"; then : | |
019fb48a | 4823 | |
019fb48a | 4824 | else |
d5d92632 | 4825 | # Broken: fails on valid input. |
4826 | continue | |
019fb48a | 4827 | fi |
f00f02a3 | 4828 | rm -f conftest.err conftest.i conftest.$ac_ext |
019fb48a | 4829 | |
d5d92632 | 4830 | # OK, works on sane cases. Now check whether nonexistent headers |
4831 | # can be detected and how. | |
4832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3443eac1 | 4833 | /* end confdefs.h. */ |
d5d92632 | 4834 | #include <ac_nonexistent.h> |
3443eac1 | 4835 | _ACEOF |
d5d92632 | 4836 | if ac_fn_c_try_cpp "$LINENO"; then : |
4837 | # Broken: success on invalid input. | |
4838 | continue | |
3443eac1 | 4839 | else |
d5d92632 | 4840 | # Passes both tests. |
4841 | ac_preproc_ok=: | |
4842 | break | |
3443eac1 | 4843 | fi |
f00f02a3 | 4844 | rm -f conftest.err conftest.i conftest.$ac_ext |
d5d92632 | 4845 | |
4846 | done | |
4847 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
f00f02a3 | 4848 | rm -f conftest.i conftest.err conftest.$ac_ext |
d5d92632 | 4849 | if $ac_preproc_ok; then : |
4850 | ||
3443eac1 | 4851 | else |
d5d92632 | 4852 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4853 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 4854 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4855 | See \`config.log' for more details" "$LINENO" 5; } | |
3443eac1 | 4856 | fi |
3443eac1 | 4857 | |
d5d92632 | 4858 | ac_ext=c |
4859 | ac_cpp='$CPP $CPPFLAGS' | |
4860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3443eac1 | 4863 | |
d5d92632 | 4864 | |
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4866 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
f00f02a3 | 4867 | if ${ac_cv_path_GREP+:} false; then : |
cd9a469c | 4868 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4869 | else |
d5d92632 | 4870 | if test -z "$GREP"; then |
4871 | ac_path_GREP_found=false | |
4872 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4874 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
90973b19 | 4875 | do |
4876 | IFS=$as_save_IFS | |
4877 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4878 | for ac_prog in grep ggrep; do |
cd9a469c | 4879 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4880 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 4881 | as_fn_executable_p "$ac_path_GREP" || continue |
d5d92632 | 4882 | # Check for GNU ac_path_GREP and select it if it is found. |
4883 | # Check for GNU $ac_path_GREP | |
4884 | case `"$ac_path_GREP" --version 2>&1` in | |
4885 | *GNU*) | |
4886 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4887 | *) | |
4888 | ac_count=0 | |
4889 | $as_echo_n 0123456789 >"conftest.in" | |
4890 | while : | |
4891 | do | |
4892 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4893 | mv "conftest.tmp" "conftest.in" | |
4894 | cp "conftest.in" "conftest.nl" | |
4895 | $as_echo 'GREP' >> "conftest.nl" | |
4896 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4897 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4898 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4899 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4900 | # Best one so far, save it but keep looking for a better one | |
4901 | ac_cv_path_GREP="$ac_path_GREP" | |
4902 | ac_path_GREP_max=$ac_count | |
4903 | fi | |
4904 | # 10*(2^10) chars as input seems more than enough | |
4905 | test $ac_count -gt 10 && break | |
cd9a469c | 4906 | done |
d5d92632 | 4907 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4908 | esac | |
4ee9c684 | 4909 | |
d5d92632 | 4910 | $ac_path_GREP_found && break 3 |
4911 | done | |
4912 | done | |
4913 | done | |
4914 | IFS=$as_save_IFS | |
4915 | if test -z "$ac_cv_path_GREP"; then | |
f00f02a3 | 4916 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
d5d92632 | 4917 | fi |
4ee9c684 | 4918 | else |
d5d92632 | 4919 | ac_cv_path_GREP=$GREP |
4ee9c684 | 4920 | fi |
4921 | ||
4ee9c684 | 4922 | fi |
d5d92632 | 4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4924 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4925 | GREP="$ac_cv_path_GREP" | |
4ee9c684 | 4926 | |
d5d92632 | 4927 | |
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4929 | $as_echo_n "checking for egrep... " >&6; } | |
f00f02a3 | 4930 | if ${ac_cv_path_EGREP+:} false; then : |
cd9a469c | 4931 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4932 | else |
d5d92632 | 4933 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4934 | then ac_cv_path_EGREP="$GREP -E" | |
4935 | else | |
4936 | if test -z "$EGREP"; then | |
4937 | ac_path_EGREP_found=false | |
4938 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4940 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4ee9c684 | 4941 | do |
4942 | IFS=$as_save_IFS | |
4943 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4944 | for ac_prog in egrep; do |
cd9a469c | 4945 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4946 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 4947 | as_fn_executable_p "$ac_path_EGREP" || continue |
d5d92632 | 4948 | # Check for GNU ac_path_EGREP and select it if it is found. |
4949 | # Check for GNU $ac_path_EGREP | |
4950 | case `"$ac_path_EGREP" --version 2>&1` in | |
4951 | *GNU*) | |
4952 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4953 | *) | |
4954 | ac_count=0 | |
4955 | $as_echo_n 0123456789 >"conftest.in" | |
4956 | while : | |
4957 | do | |
4958 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4959 | mv "conftest.tmp" "conftest.in" | |
4960 | cp "conftest.in" "conftest.nl" | |
4961 | $as_echo 'EGREP' >> "conftest.nl" | |
4962 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4963 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4964 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4965 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4966 | # Best one so far, save it but keep looking for a better one | |
4967 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4968 | ac_path_EGREP_max=$ac_count | |
4969 | fi | |
4970 | # 10*(2^10) chars as input seems more than enough | |
4971 | test $ac_count -gt 10 && break | |
cd9a469c | 4972 | done |
d5d92632 | 4973 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4974 | esac | |
4ee9c684 | 4975 | |
d5d92632 | 4976 | $ac_path_EGREP_found && break 3 |
4977 | done | |
4978 | done | |
4979 | done | |
4980 | IFS=$as_save_IFS | |
4981 | if test -z "$ac_cv_path_EGREP"; then | |
f00f02a3 | 4982 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
d5d92632 | 4983 | fi |
4ee9c684 | 4984 | else |
d5d92632 | 4985 | ac_cv_path_EGREP=$EGREP |
4ee9c684 | 4986 | fi |
4987 | ||
d5d92632 | 4988 | fi |
4ee9c684 | 4989 | fi |
d5d92632 | 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4991 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4992 | EGREP="$ac_cv_path_EGREP" | |
4993 | ||
4994 | ||
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4996 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
f00f02a3 | 4997 | if ${ac_cv_header_stdc+:} false; then : |
cd9a469c | 4998 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4999 | else |
d5d92632 | 5000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5001 | /* end confdefs.h. */ | |
5002 | #include <stdlib.h> | |
5003 | #include <stdarg.h> | |
5004 | #include <string.h> | |
5005 | #include <float.h> | |
5006 | ||
5007 | int | |
5008 | main () | |
5009 | { | |
5010 | ||
5011 | ; | |
5012 | return 0; | |
5013 | } | |
5014 | _ACEOF | |
5015 | if ac_fn_c_try_compile "$LINENO"; then : | |
5016 | ac_cv_header_stdc=yes | |
4ee9c684 | 5017 | else |
d5d92632 | 5018 | ac_cv_header_stdc=no |
5019 | fi | |
5020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 5021 | |
d5d92632 | 5022 | if test $ac_cv_header_stdc = yes; then |
5023 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5025 | /* end confdefs.h. */ | |
5026 | #include <string.h> | |
5027 | ||
5028 | _ACEOF | |
5029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5030 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5031 | ||
5032 | else | |
5033 | ac_cv_header_stdc=no | |
4ee9c684 | 5034 | fi |
d5d92632 | 5035 | rm -f conftest* |
5036 | ||
4ee9c684 | 5037 | fi |
d5d92632 | 5038 | |
5039 | if test $ac_cv_header_stdc = yes; then | |
5040 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5042 | /* end confdefs.h. */ | |
5043 | #include <stdlib.h> | |
5044 | ||
5045 | _ACEOF | |
5046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5047 | $EGREP "free" >/dev/null 2>&1; then : | |
5048 | ||
4ee9c684 | 5049 | else |
d5d92632 | 5050 | ac_cv_header_stdc=no |
4ee9c684 | 5051 | fi |
d5d92632 | 5052 | rm -f conftest* |
4ee9c684 | 5053 | |
4ee9c684 | 5054 | fi |
5055 | ||
d5d92632 | 5056 | if test $ac_cv_header_stdc = yes; then |
5057 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5058 | if test "$cross_compiling" = yes; then : | |
5059 | : | |
5060 | else | |
5061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5062 | /* end confdefs.h. */ | |
5063 | #include <ctype.h> | |
5064 | #include <stdlib.h> | |
5065 | #if ((' ' & 0x0FF) == 0x020) | |
5066 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5067 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5068 | #else | |
5069 | # define ISLOWER(c) \ | |
5070 | (('a' <= (c) && (c) <= 'i') \ | |
5071 | || ('j' <= (c) && (c) <= 'r') \ | |
5072 | || ('s' <= (c) && (c) <= 'z')) | |
5073 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5074 | #endif | |
5075 | ||
5076 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5077 | int | |
5078 | main () | |
5079 | { | |
5080 | int i; | |
5081 | for (i = 0; i < 256; i++) | |
5082 | if (XOR (islower (i), ISLOWER (i)) | |
5083 | || toupper (i) != TOUPPER (i)) | |
5084 | return 2; | |
5085 | return 0; | |
5086 | } | |
5087 | _ACEOF | |
5088 | if ac_fn_c_try_run "$LINENO"; then : | |
5089 | ||
5090 | else | |
5091 | ac_cv_header_stdc=no | |
5092 | fi | |
5093 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5094 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5095 | fi | |
5096 | ||
5097 | fi | |
5098 | fi | |
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5100 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5101 | if test $ac_cv_header_stdc = yes; then | |
5102 | ||
5103 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5104 | ||
5105 | fi | |
5106 | ||
5107 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5108 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5109 | inttypes.h stdint.h unistd.h | |
5110 | do : | |
5111 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5112 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5113 | " | |
f00f02a3 | 5114 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
d5d92632 | 5115 | cat >>confdefs.h <<_ACEOF |
5116 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5117 | _ACEOF | |
5118 | ||
5119 | fi | |
5120 | ||
5121 | done | |
5122 | ||
5123 | ||
5124 | ||
5125 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
f00f02a3 | 5126 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
d5d92632 | 5127 | MINIX=yes |
5128 | else | |
5129 | MINIX= | |
5130 | fi | |
5131 | ||
5132 | ||
5133 | if test "$MINIX" = yes; then | |
5134 | ||
5135 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
5136 | ||
5137 | ||
5138 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
5139 | ||
5140 | ||
5141 | $as_echo "#define _MINIX 1" >>confdefs.h | |
5142 | ||
5143 | fi | |
5144 | ||
5145 | ||
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
5147 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
f00f02a3 | 5148 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
d5d92632 | 5149 | $as_echo_n "(cached) " >&6 |
5150 | else | |
5151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5152 | /* end confdefs.h. */ | |
5153 | ||
f00f02a3 | 5154 | # define __EXTENSIONS__ 1 |
5155 | $ac_includes_default | |
d5d92632 | 5156 | int |
5157 | main () | |
5158 | { | |
5159 | ||
5160 | ; | |
5161 | return 0; | |
5162 | } | |
5163 | _ACEOF | |
5164 | if ac_fn_c_try_compile "$LINENO"; then : | |
5165 | ac_cv_safe_to_define___extensions__=yes | |
5166 | else | |
5167 | ac_cv_safe_to_define___extensions__=no | |
5168 | fi | |
5169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5170 | fi | |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
5172 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
5173 | test $ac_cv_safe_to_define___extensions__ = yes && | |
5174 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
5175 | ||
5176 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
5177 | ||
5178 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
5179 | ||
5180 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5181 | ||
5182 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
5183 | ||
5184 | ||
5185 | ||
5186 | # Calculate toolexeclibdir | |
5187 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5188 | case ${version_specific_libs} in | |
5189 | yes) | |
5190 | # Need the gcc compiler version to know where to install libraries | |
5191 | # and header files if --enable-version-specific-runtime-libs option | |
5192 | # is selected. | |
5193 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5194 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5195 | ;; | |
5196 | no) | |
5197 | if test -n "$with_cross_host" && | |
5198 | test x"$with_cross_host" != x"no"; then | |
5199 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5200 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
5201 | toolexeclibdir='$(toolexecdir)/lib' | |
5202 | else | |
5203 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5204 | toolexeclibdir='$(libdir)' | |
5205 | fi | |
5206 | multi_os_directory=`$CC -print-multi-os-directory` | |
5207 | case $multi_os_directory in | |
5208 | .) ;; # Avoid trailing /. | |
5209 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5210 | esac | |
5211 | ;; | |
5212 | esac | |
5213 | ||
5214 | ||
5215 | ||
5216 | # Create a spec file, so that compile/link tests don't fail | |
5217 | test -f libgfortran.spec || touch libgfortran.spec | |
5218 | ||
7eda0fb7 | 5219 | ac_ext=c |
5220 | ac_cpp='$CPP $CPPFLAGS' | |
5221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5224 | ||
d5d92632 | 5225 | # Check the compiler. |
5226 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
5227 | # We must force CC to /not/ be precious variables; otherwise | |
5228 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
5229 | # As a side effect, we have to subst CFLAGS ourselves. | |
5230 | ||
5231 | ||
5232 | ||
5233 | ac_ext=c | |
5234 | ac_cpp='$CPP $CPPFLAGS' | |
5235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5238 | if test -n "$ac_tool_prefix"; then | |
5239 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5240 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5242 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5243 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 5244 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5245 | else |
d5d92632 | 5246 | if test -n "$CC"; then |
5247 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 5248 | else |
90973b19 | 5249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5250 | for as_dir in $PATH | |
5251 | do | |
5252 | IFS=$as_save_IFS | |
5253 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5254 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5255 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5256 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 5257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 5258 | break 2 |
5259 | fi | |
5260 | done | |
cd9a469c | 5261 | done |
5262 | IFS=$as_save_IFS | |
4ee9c684 | 5263 | |
4ee9c684 | 5264 | fi |
90973b19 | 5265 | fi |
d5d92632 | 5266 | CC=$ac_cv_prog_CC |
5267 | if test -n "$CC"; then | |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5269 | $as_echo "$CC" >&6; } | |
90973b19 | 5270 | else |
cd9a469c | 5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5272 | $as_echo "no" >&6; } | |
90973b19 | 5273 | fi |
4ee9c684 | 5274 | |
cd9a469c | 5275 | |
4ee9c684 | 5276 | fi |
d5d92632 | 5277 | if test -z "$ac_cv_prog_CC"; then |
5278 | ac_ct_CC=$CC | |
5279 | # Extract the first word of "gcc", so it can be a program name with args. | |
5280 | set dummy gcc; ac_word=$2 | |
cd9a469c | 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5282 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5283 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
cd9a469c | 5284 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5285 | else |
d5d92632 | 5286 | if test -n "$ac_ct_CC"; then |
5287 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4ee9c684 | 5288 | else |
90973b19 | 5289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5290 | for as_dir in $PATH | |
5291 | do | |
5292 | IFS=$as_save_IFS | |
5293 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 5294 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 5295 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5296 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 5297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 5298 | break 2 |
5299 | fi | |
5300 | done | |
cd9a469c | 5301 | done |
5302 | IFS=$as_save_IFS | |
4ee9c684 | 5303 | |
4ee9c684 | 5304 | fi |
4ee9c684 | 5305 | fi |
d5d92632 | 5306 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5307 | if test -n "$ac_ct_CC"; then | |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5309 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 5310 | else |
cd9a469c | 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5312 | $as_echo "no" >&6; } | |
4ee9c684 | 5313 | fi |
5314 | ||
d5d92632 | 5315 | if test "x$ac_ct_CC" = x; then |
5316 | CC="" | |
cd9a469c | 5317 | else |
5318 | case $cross_compiling:$ac_tool_warned in | |
5319 | yes:) | |
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5321 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5322 | ac_tool_warned=yes ;; | |
5323 | esac | |
d5d92632 | 5324 | CC=$ac_ct_CC |
cd9a469c | 5325 | fi |
90973b19 | 5326 | else |
d5d92632 | 5327 | CC="$ac_cv_prog_CC" |
4ee9c684 | 5328 | fi |
90973b19 | 5329 | |
d5d92632 | 5330 | if test -z "$CC"; then |
5331 | if test -n "$ac_tool_prefix"; then | |
5332 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5333 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5335 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5336 | if ${ac_cv_prog_CC+:} false; then : |
cd9a469c | 5337 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 5338 | else |
d5d92632 | 5339 | if test -n "$CC"; then |
5340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 5341 | else |
d5d92632 | 5342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5343 | for as_dir in $PATH | |
5344 | do | |
5345 | IFS=$as_save_IFS | |
5346 | test -z "$as_dir" && as_dir=. | |
5347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5349 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5351 | break 2 | |
5352 | fi | |
5353 | done | |
5354 | done | |
5355 | IFS=$as_save_IFS | |
5356 | ||
5357 | fi | |
5358 | fi | |
5359 | CC=$ac_cv_prog_CC | |
5360 | if test -n "$CC"; then | |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5362 | $as_echo "$CC" >&6; } | |
5363 | else | |
5364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5365 | $as_echo "no" >&6; } | |
5366 | fi | |
5367 | ||
5368 | ||
5369 | fi | |
5370 | fi | |
5371 | if test -z "$CC"; then | |
5372 | # Extract the first word of "cc", so it can be a program name with args. | |
5373 | set dummy cc; ac_word=$2 | |
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5375 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5376 | if ${ac_cv_prog_CC+:} false; then : |
d5d92632 | 5377 | $as_echo_n "(cached) " >&6 |
5378 | else | |
5379 | if test -n "$CC"; then | |
5380 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5381 | else | |
5382 | ac_prog_rejected=no | |
5383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5384 | for as_dir in $PATH | |
5385 | do | |
5386 | IFS=$as_save_IFS | |
5387 | test -z "$as_dir" && as_dir=. | |
5388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5390 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5391 | ac_prog_rejected=yes | |
5392 | continue | |
5393 | fi | |
5394 | ac_cv_prog_CC="cc" | |
5395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5396 | break 2 | |
5397 | fi | |
5398 | done | |
5399 | done | |
5400 | IFS=$as_save_IFS | |
5401 | ||
5402 | if test $ac_prog_rejected = yes; then | |
5403 | # We found a bogon in the path, so make sure we never use it. | |
5404 | set dummy $ac_cv_prog_CC | |
5405 | shift | |
5406 | if test $# != 0; then | |
5407 | # We chose a different compiler from the bogus one. | |
5408 | # However, it has the same basename, so the bogon will be chosen | |
5409 | # first if we set CC to just the basename; use the full file name. | |
5410 | shift | |
5411 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5412 | fi | |
5413 | fi | |
5414 | fi | |
5415 | fi | |
5416 | CC=$ac_cv_prog_CC | |
5417 | if test -n "$CC"; then | |
5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5419 | $as_echo "$CC" >&6; } | |
5420 | else | |
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5422 | $as_echo "no" >&6; } | |
5423 | fi | |
5424 | ||
5425 | ||
5426 | fi | |
5427 | if test -z "$CC"; then | |
5428 | if test -n "$ac_tool_prefix"; then | |
5429 | for ac_prog in cl.exe | |
5430 | do | |
5431 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5432 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5434 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5435 | if ${ac_cv_prog_CC+:} false; then : |
d5d92632 | 5436 | $as_echo_n "(cached) " >&6 |
5437 | else | |
5438 | if test -n "$CC"; then | |
5439 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5440 | else | |
5441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5442 | for as_dir in $PATH | |
5443 | do | |
5444 | IFS=$as_save_IFS | |
5445 | test -z "$as_dir" && as_dir=. | |
5446 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5448 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5450 | break 2 | |
5451 | fi | |
5452 | done | |
5453 | done | |
5454 | IFS=$as_save_IFS | |
5455 | ||
5456 | fi | |
5457 | fi | |
5458 | CC=$ac_cv_prog_CC | |
5459 | if test -n "$CC"; then | |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5461 | $as_echo "$CC" >&6; } | |
5462 | else | |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5464 | $as_echo "no" >&6; } | |
5465 | fi | |
5466 | ||
5467 | ||
5468 | test -n "$CC" && break | |
5469 | done | |
5470 | fi | |
5471 | if test -z "$CC"; then | |
5472 | ac_ct_CC=$CC | |
5473 | for ac_prog in cl.exe | |
5474 | do | |
5475 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5476 | set dummy $ac_prog; ac_word=$2 | |
5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5478 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 5479 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
d5d92632 | 5480 | $as_echo_n "(cached) " >&6 |
5481 | else | |
5482 | if test -n "$ac_ct_CC"; then | |
5483 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5484 | else | |
5485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5486 | for as_dir in $PATH | |
5487 | do | |
5488 | IFS=$as_save_IFS | |
5489 | test -z "$as_dir" && as_dir=. | |
5490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 5491 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 5492 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5494 | break 2 | |
5495 | fi | |
5496 | done | |
5497 | done | |
5498 | IFS=$as_save_IFS | |
5499 | ||
5500 | fi | |
5501 | fi | |
5502 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5503 | if test -n "$ac_ct_CC"; then | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5505 | $as_echo "$ac_ct_CC" >&6; } | |
5506 | else | |
5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5508 | $as_echo "no" >&6; } | |
5509 | fi | |
5510 | ||
5511 | ||
5512 | test -n "$ac_ct_CC" && break | |
5513 | done | |
5514 | ||
5515 | if test "x$ac_ct_CC" = x; then | |
5516 | CC="" | |
5517 | else | |
5518 | case $cross_compiling:$ac_tool_warned in | |
5519 | yes:) | |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5521 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5522 | ac_tool_warned=yes ;; | |
5523 | esac | |
5524 | CC=$ac_ct_CC | |
5525 | fi | |
5526 | fi | |
5527 | ||
5528 | fi | |
5529 | ||
5530 | ||
5531 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5532 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 5533 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5534 | See \`config.log' for more details" "$LINENO" 5; } | |
d5d92632 | 5535 | |
5536 | # Provide some information about the compiler. | |
5537 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5538 | set X $ac_compile | |
5539 | ac_compiler=$2 | |
5540 | for ac_option in --version -v -V -qversion; do | |
5541 | { { ac_try="$ac_compiler $ac_option >&5" | |
5542 | case "(($ac_try" in | |
5543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5544 | *) ac_try_echo=$ac_try;; | |
5545 | esac | |
5546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5547 | $as_echo "$ac_try_echo"; } >&5 | |
5548 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5549 | ac_status=$? | |
5550 | if test -s conftest.err; then | |
5551 | sed '10a\ | |
5552 | ... rest of stderr output deleted ... | |
5553 | 10q' conftest.err >conftest.er1 | |
5554 | cat conftest.er1 >&5 | |
d5d92632 | 5555 | fi |
f00f02a3 | 5556 | rm -f conftest.er1 conftest.err |
d5d92632 | 5557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5558 | test $ac_status = 0; } | |
5559 | done | |
5560 | ||
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5562 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
f00f02a3 | 5563 | if ${ac_cv_c_compiler_gnu+:} false; then : |
d5d92632 | 5564 | $as_echo_n "(cached) " >&6 |
5565 | else | |
5566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5567 | /* end confdefs.h. */ | |
5568 | ||
5569 | int | |
5570 | main () | |
5571 | { | |
5572 | #ifndef __GNUC__ | |
5573 | choke me | |
5574 | #endif | |
5575 | ||
5576 | ; | |
5577 | return 0; | |
5578 | } | |
5579 | _ACEOF | |
5580 | if ac_fn_c_try_compile "$LINENO"; then : | |
5581 | ac_compiler_gnu=yes | |
5582 | else | |
5583 | ac_compiler_gnu=no | |
5584 | fi | |
5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5586 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5587 | ||
5588 | fi | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5590 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5591 | if test $ac_compiler_gnu = yes; then | |
5592 | GCC=yes | |
5593 | else | |
5594 | GCC= | |
5595 | fi | |
5596 | ac_test_CFLAGS=${CFLAGS+set} | |
5597 | ac_save_CFLAGS=$CFLAGS | |
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5599 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
f00f02a3 | 5600 | if ${ac_cv_prog_cc_g+:} false; then : |
d5d92632 | 5601 | $as_echo_n "(cached) " >&6 |
5602 | else | |
5603 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5604 | ac_c_werror_flag=yes | |
5605 | ac_cv_prog_cc_g=no | |
5606 | CFLAGS="-g" | |
5607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5608 | /* end confdefs.h. */ | |
5609 | ||
5610 | int | |
5611 | main () | |
5612 | { | |
5613 | ||
5614 | ; | |
5615 | return 0; | |
5616 | } | |
5617 | _ACEOF | |
5618 | if ac_fn_c_try_compile "$LINENO"; then : | |
5619 | ac_cv_prog_cc_g=yes | |
5620 | else | |
5621 | CFLAGS="" | |
5622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5623 | /* end confdefs.h. */ | |
5624 | ||
5625 | int | |
5626 | main () | |
5627 | { | |
5628 | ||
5629 | ; | |
5630 | return 0; | |
5631 | } | |
5632 | _ACEOF | |
5633 | if ac_fn_c_try_compile "$LINENO"; then : | |
5634 | ||
5635 | else | |
5636 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5637 | CFLAGS="-g" | |
5638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5639 | /* end confdefs.h. */ | |
5640 | ||
5641 | int | |
5642 | main () | |
5643 | { | |
5644 | ||
5645 | ; | |
5646 | return 0; | |
5647 | } | |
5648 | _ACEOF | |
5649 | if ac_fn_c_try_compile "$LINENO"; then : | |
5650 | ac_cv_prog_cc_g=yes | |
5651 | fi | |
5652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5653 | fi | |
5654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5655 | fi | |
5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5657 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5658 | fi | |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5660 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5661 | if test "$ac_test_CFLAGS" = set; then | |
5662 | CFLAGS=$ac_save_CFLAGS | |
5663 | elif test $ac_cv_prog_cc_g = yes; then | |
5664 | if test "$GCC" = yes; then | |
5665 | CFLAGS="-g -O2" | |
5666 | else | |
5667 | CFLAGS="-g" | |
5668 | fi | |
5669 | else | |
5670 | if test "$GCC" = yes; then | |
5671 | CFLAGS="-O2" | |
5672 | else | |
5673 | CFLAGS= | |
5674 | fi | |
5675 | fi | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5677 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
f00f02a3 | 5678 | if ${ac_cv_prog_cc_c89+:} false; then : |
d5d92632 | 5679 | $as_echo_n "(cached) " >&6 |
5680 | else | |
5681 | ac_cv_prog_cc_c89=no | |
5682 | ac_save_CC=$CC | |
5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5684 | /* end confdefs.h. */ | |
5685 | #include <stdarg.h> | |
5686 | #include <stdio.h> | |
f00f02a3 | 5687 | struct stat; |
d5d92632 | 5688 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5689 | struct buf { int x; }; | |
5690 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5691 | static char *e (p, i) | |
5692 | char **p; | |
5693 | int i; | |
5694 | { | |
5695 | return p[i]; | |
5696 | } | |
5697 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5698 | { | |
5699 | char *s; | |
5700 | va_list v; | |
5701 | va_start (v,p); | |
5702 | s = g (p, va_arg (v,int)); | |
5703 | va_end (v); | |
5704 | return s; | |
5705 | } | |
5706 | ||
5707 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5708 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5709 | These don't provoke an error unfortunately, instead are silently treated | |
5710 | as 'x'. The following induces an error, until -std is added to get | |
5711 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5712 | array size at least. It's necessary to write '\x00'==0 to get something | |
5713 | that's true only with -std. */ | |
5714 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5715 | ||
5716 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5717 | inside strings and character constants. */ | |
5718 | #define FOO(x) 'x' | |
5719 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5720 | ||
5721 | int test (int i, double x); | |
5722 | struct s1 {int (*f) (int a);}; | |
5723 | struct s2 {int (*f) (double a);}; | |
5724 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5725 | int argc; | |
5726 | char **argv; | |
5727 | int | |
5728 | main () | |
5729 | { | |
5730 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5731 | ; | |
5732 | return 0; | |
5733 | } | |
5734 | _ACEOF | |
5735 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5736 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5737 | do | |
5738 | CC="$ac_save_CC $ac_arg" | |
5739 | if ac_fn_c_try_compile "$LINENO"; then : | |
5740 | ac_cv_prog_cc_c89=$ac_arg | |
5741 | fi | |
5742 | rm -f core conftest.err conftest.$ac_objext | |
5743 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5744 | done | |
5745 | rm -f conftest.$ac_ext | |
5746 | CC=$ac_save_CC | |
5747 | ||
5748 | fi | |
5749 | # AC_CACHE_VAL | |
5750 | case "x$ac_cv_prog_cc_c89" in | |
5751 | x) | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5753 | $as_echo "none needed" >&6; } ;; | |
5754 | xno) | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5756 | $as_echo "unsupported" >&6; } ;; | |
5757 | *) | |
5758 | CC="$CC $ac_cv_prog_cc_c89" | |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5760 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5761 | esac | |
5762 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5763 | ||
5764 | fi | |
5765 | ||
5766 | ac_ext=c | |
5767 | ac_cpp='$CPP $CPPFLAGS' | |
5768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5771 | ||
f00f02a3 | 5772 | ac_ext=c |
5773 | ac_cpp='$CPP $CPPFLAGS' | |
5774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5778 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5779 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5780 | $as_echo_n "(cached) " >&6 | |
5781 | else | |
5782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5783 | /* end confdefs.h. */ | |
5784 | ||
5785 | int | |
5786 | main () | |
5787 | { | |
5788 | ||
5789 | ; | |
5790 | return 0; | |
5791 | } | |
5792 | _ACEOF | |
5793 | # Make sure it works both with $CC and with simple cc. | |
5794 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5795 | # compilers refuse to overwrite an existing .o file with -o, | |
5796 | # though they will create one. | |
5797 | am_cv_prog_cc_c_o=yes | |
5798 | for am_i in 1 2; do | |
5799 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5800 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5801 | ac_status=$? | |
5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5803 | (exit $ac_status); } \ | |
5804 | && test -f conftest2.$ac_objext; then | |
5805 | : OK | |
5806 | else | |
5807 | am_cv_prog_cc_c_o=no | |
5808 | break | |
5809 | fi | |
5810 | done | |
5811 | rm -f core conftest* | |
5812 | unset am_i | |
5813 | fi | |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5815 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5816 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5817 | # Losing compiler, so override with the script. | |
5818 | # FIXME: It is wrong to rewrite CC. | |
5819 | # But if we don't then we get into trouble of one sort or another. | |
5820 | # A longer-term fix would be to have automake use am__CC in this case, | |
5821 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5822 | CC="$am_aux_dir/compile $CC" | |
5823 | fi | |
5824 | ac_ext=c | |
5825 | ac_cpp='$CPP $CPPFLAGS' | |
5826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5829 | ||
5830 | ||
d5d92632 | 5831 | depcc="$CC" am_compiler_list= |
5832 | ||
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5834 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
f00f02a3 | 5835 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
d5d92632 | 5836 | $as_echo_n "(cached) " >&6 |
5837 | else | |
5838 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5839 | # We make a subdir and do the tests there. Otherwise we can end up | |
5840 | # making bogus files that we don't know about and never remove. For | |
5841 | # instance it was reported that on HP-UX the gcc test will end up | |
f00f02a3 | 5842 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5843 | # in D". | |
544db64f | 5844 | rm -rf conftest.dir |
d5d92632 | 5845 | mkdir conftest.dir |
5846 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5847 | # using a relative directory. | |
5848 | cp "$am_depcomp" conftest.dir | |
5849 | cd conftest.dir | |
5850 | # We will build objects and dependencies in a subdirectory because | |
5851 | # it helps to detect inapplicable dependency modes. For instance | |
5852 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5853 | # side effect of compilation, but ICC will put the dependencies in | |
5854 | # the current directory while Tru64 will put them in the object | |
5855 | # directory. | |
5856 | mkdir sub | |
5857 | ||
5858 | am_cv_CC_dependencies_compiler_type=none | |
5859 | if test "$am_compiler_list" = ""; then | |
5860 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5861 | fi | |
5862 | am__universal=false | |
5863 | case " $depcc " in #( | |
5864 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5865 | esac | |
5866 | ||
5867 | for depmode in $am_compiler_list; do | |
5868 | # Setup a source with many dependencies, because some compilers | |
5869 | # like to wrap large dependency lists on column 80 (with \), and | |
5870 | # we should not choose a depcomp mode which is confused by this. | |
5871 | # | |
5872 | # We need to recreate these files for each test, as the compiler may | |
5873 | # overwrite some of them when testing with obscure command lines. | |
5874 | # This happens at least with the AIX C compiler. | |
5875 | : > sub/conftest.c | |
5876 | for i in 1 2 3 4 5 6; do | |
5877 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
f00f02a3 | 5878 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5879 | # Solaris 10 /bin/sh. | |
5880 | echo '/* dummy */' > sub/conftst$i.h | |
d5d92632 | 5881 | done |
5882 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5883 | ||
f00f02a3 | 5884 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
d5d92632 | 5885 | # mode. It turns out that the SunPro C++ compiler does not properly |
f00f02a3 | 5886 | # handle '-M -o', and we need to detect this. Also, some Intel |
5887 | # versions had trouble with output in subdirs. | |
d5d92632 | 5888 | am__obj=sub/conftest.${OBJEXT-o} |
5889 | am__minus_obj="-o $am__obj" | |
5890 | case $depmode in | |
5891 | gcc) | |
5892 | # This depmode causes a compiler race in universal mode. | |
5893 | test "$am__universal" = false || continue | |
5894 | ;; | |
5895 | nosideeffect) | |
f00f02a3 | 5896 | # After this tag, mechanisms are not by side-effect, so they'll |
5897 | # only be used when explicitly requested. | |
d5d92632 | 5898 | if test "x$enable_dependency_tracking" = xyes; then |
5899 | continue | |
5900 | else | |
5901 | break | |
5902 | fi | |
5903 | ;; | |
544db64f | 5904 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
f00f02a3 | 5905 | # This compiler won't grok '-c -o', but also, the minuso test has |
d5d92632 | 5906 | # not run yet. These depmodes are late enough in the game, and |
5907 | # so weak that their functioning should not be impacted. | |
5908 | am__obj=conftest.${OBJEXT-o} | |
5909 | am__minus_obj= | |
5910 | ;; | |
5911 | none) break ;; | |
5912 | esac | |
5913 | if depmode=$depmode \ | |
5914 | source=sub/conftest.c object=$am__obj \ | |
5915 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5916 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5917 | >/dev/null 2>conftest.err && | |
5918 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5919 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5920 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5921 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5922 | # icc doesn't choke on unknown options, it will just issue warnings | |
5923 | # or remarks (even with -Werror). So we grep stderr for any message | |
5924 | # that says an option was ignored or not supported. | |
5925 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5926 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5927 | # The diagnosis changed in icc 8.0: | |
5928 | # icc: Command line remark: option '-MP' not supported | |
5929 | if (grep 'ignoring option' conftest.err || | |
5930 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5931 | am_cv_CC_dependencies_compiler_type=$depmode | |
5932 | break | |
5933 | fi | |
5934 | fi | |
5935 | done | |
5936 | ||
5937 | cd .. | |
5938 | rm -rf conftest.dir | |
5939 | else | |
5940 | am_cv_CC_dependencies_compiler_type=none | |
5941 | fi | |
5942 | ||
5943 | fi | |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5945 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5946 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5947 | ||
5948 | if | |
5949 | test "x$enable_dependency_tracking" != xno \ | |
5950 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5951 | am__fastdepCC_TRUE= | |
5952 | am__fastdepCC_FALSE='#' | |
5953 | else | |
5954 | am__fastdepCC_TRUE='#' | |
5955 | am__fastdepCC_FALSE= | |
5956 | fi | |
5957 | ||
5958 | ||
5959 | ||
5960 | ||
7eda0fb7 | 5961 | |
5962 | ||
7eda0fb7 | 5963 | |
5964 | ||
d5d92632 | 5965 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
5966 | if test "x$GCC" = "xyes"; then | |
5967 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" | |
a159faeb | 5968 | ## We like to use C11 and C99 routines when available. This makes |
5969 | ## sure that | |
d5d92632 | 5970 | ## __STDC_VERSION__ is set such that libc includes make them available. |
2cb567cf | 5971 | AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" |
d5d92632 | 5972 | ## Compile the following tests with the same system header contents |
5973 | ## that we'll encounter when compiling our own source files. | |
a159faeb | 5974 | CFLAGS="-std=gnu11 $CFLAGS" |
d5d92632 | 5975 | fi |
5976 | ||
42ea2de2 | 5977 | # Add CET specific flags if CET is enabled |
5978 | # Check whether --enable-cet was given. | |
5979 | if test "${enable_cet+set}" = set; then : | |
5980 | enableval=$enable_cet; | |
5981 | case "$enableval" in | |
ee8fea81 | 5982 | yes|no|auto) ;; |
f00f02a3 | 5983 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
42ea2de2 | 5984 | esac |
5985 | ||
5986 | else | |
ee8fea81 | 5987 | enable_cet=no |
42ea2de2 | 5988 | fi |
5989 | ||
5990 | ||
5611e648 | 5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
5992 | $as_echo_n "checking for CET support... " >&6; } | |
5993 | ||
42ea2de2 | 5994 | case "$host" in |
5995 | i[34567]86-*-linux* | x86_64-*-linux*) | |
5996 | case "$enable_cet" in | |
ee8fea81 | 5997 | auto) |
5611e648 | 5998 | # Check if target supports multi-byte NOPs |
5999 | # and if assembler supports CET insn. | |
42ea2de2 | 6000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6001 | /* end confdefs.h. */ | |
6002 | ||
6003 | int | |
6004 | main () | |
6005 | { | |
5611e648 | 6006 | |
6007 | #if !defined(__SSE2__) | |
6008 | #error target does not support multi-byte NOPs | |
6009 | #else | |
42ea2de2 | 6010 | asm ("setssbsy"); |
5611e648 | 6011 | #endif |
6012 | ||
42ea2de2 | 6013 | ; |
6014 | return 0; | |
6015 | } | |
6016 | _ACEOF | |
6017 | if ac_fn_c_try_compile "$LINENO"; then : | |
6018 | enable_cet=yes | |
6019 | else | |
6020 | enable_cet=no | |
6021 | fi | |
6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6023 | ;; | |
6024 | yes) | |
6025 | # Check if assembler supports CET. | |
6026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6027 | /* end confdefs.h. */ | |
6028 | ||
6029 | int | |
6030 | main () | |
6031 | { | |
6032 | asm ("setssbsy"); | |
6033 | ; | |
6034 | return 0; | |
6035 | } | |
6036 | _ACEOF | |
6037 | if ac_fn_c_try_compile "$LINENO"; then : | |
6038 | ||
6039 | else | |
f00f02a3 | 6040 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
42ea2de2 | 6041 | fi |
6042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6043 | ;; | |
6044 | esac | |
6045 | ;; | |
6046 | *) | |
6047 | enable_cet=no | |
6048 | ;; | |
6049 | esac | |
6050 | if test x$enable_cet = xyes; then | |
6726651f | 6051 | CET_FLAGS="-fcf-protection -mshstk" |
5611e648 | 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6053 | $as_echo "yes" >&6; } | |
6054 | else | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6056 | $as_echo "no" >&6; } | |
42ea2de2 | 6057 | fi |
6058 | ||
6059 | AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" | |
6060 | AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" | |
6061 | CFLAGS="$CFLAGS $CET_FLAGS" | |
6062 | ||
6063 | ||
d5d92632 | 6064 | |
6065 | ||
6066 | ||
6067 | # Check for symbol versioning (copied from libssp). | |
6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
6069 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bbb514dc | 6070 | # Check whether --enable-symvers was given. |
6071 | if test "${enable_symvers+set}" = set; then : | |
6072 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
6073 | else | |
6074 | gfortran_use_symver=yes | |
6075 | fi | |
6076 | ||
06e4a265 | 6077 | if test "x$gfortran_use_symver" != xno; then |
bbb514dc | 6078 | save_LDFLAGS="$LDFLAGS" |
6079 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
6080 | cat > conftest.map <<EOF | |
d5d92632 | 6081 | FOO_1.0 { |
6082 | global: *foo*; bar; local: *; | |
6083 | }; | |
6084 | EOF | |
bbb514dc | 6085 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 6086 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d5d92632 | 6087 | fi |
6088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6089 | /* end confdefs.h. */ | |
6090 | int foo; | |
6091 | int | |
6092 | main () | |
6093 | { | |
6094 | ||
6095 | ; | |
6096 | return 0; | |
6097 | } | |
6098 | _ACEOF | |
6099 | if ac_fn_c_try_link "$LINENO"; then : | |
6100 | gfortran_use_symver=gnu | |
6101 | else | |
6102 | gfortran_use_symver=no | |
6103 | fi | |
6104 | rm -f core conftest.err conftest.$ac_objext \ | |
6105 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 6106 | if test x$gfortran_use_symver = xno; then |
6107 | case "$target_os" in | |
6108 | solaris2*) | |
6109 | LDFLAGS="$save_LDFLAGS" | |
6110 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
6111 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
6112 | cat > conftest.map <<EOF | |
d5d92632 | 6113 | FOO_1.0 { |
6114 | global: foo; local: *; | |
6115 | }; | |
6116 | EOF | |
bbb514dc | 6117 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 6118 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d5d92632 | 6119 | fi |
6120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6121 | /* end confdefs.h. */ | |
6122 | int foo; | |
6123 | int | |
6124 | main () | |
6125 | { | |
6126 | ||
6127 | ; | |
6128 | return 0; | |
6129 | } | |
6130 | _ACEOF | |
6131 | if ac_fn_c_try_link "$LINENO"; then : | |
6132 | gfortran_use_symver=sun | |
6133 | else | |
6134 | gfortran_use_symver=no | |
6135 | fi | |
6136 | rm -f core conftest.err conftest.$ac_objext \ | |
6137 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 6138 | ;; |
6139 | esac | |
6140 | fi | |
6141 | LDFLAGS="$save_LDFLAGS" | |
d5d92632 | 6142 | fi |
d5d92632 | 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
6144 | $as_echo "$gfortran_use_symver" >&6; } | |
6145 | if test "x$gfortran_use_symver" != xno; then | |
6146 | LIBGFOR_USE_SYMVER_TRUE= | |
6147 | LIBGFOR_USE_SYMVER_FALSE='#' | |
6148 | else | |
6149 | LIBGFOR_USE_SYMVER_TRUE='#' | |
6150 | LIBGFOR_USE_SYMVER_FALSE= | |
6151 | fi | |
6152 | ||
6153 | if test "x$gfortran_use_symver" = xgnu; then | |
6154 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
6155 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
6156 | else | |
6157 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
6158 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
6159 | fi | |
6160 | ||
6161 | if test "x$gfortran_use_symver" = xsun; then | |
6162 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
6163 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
6164 | else | |
6165 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
6166 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
6167 | fi | |
6168 | ||
6169 | ||
eb00e55c | 6170 | # For GPU offloading, not everything in libfortran can be supported. |
6171 | # Currently, the only target that has this problem is nvptx. The | |
6172 | # following is a (partial) list of features that are unsupportable on | |
6173 | # this particular target: | |
6174 | # * Constructors | |
6175 | # * alloca | |
6176 | # * C library support for I/O, with printf as the one notable exception | |
6177 | # * C library support for other features such as signal, environment | |
6178 | # variables, time functions | |
6179 | ||
51177ee3 | 6180 | if test "x${target_cpu}" = xnvptx \ |
6181 | || test "x${target_cpu}" = xamdgcn; then | |
eb00e55c | 6182 | LIBGFOR_MINIMAL_TRUE= |
6183 | LIBGFOR_MINIMAL_FALSE='#' | |
6184 | else | |
6185 | LIBGFOR_MINIMAL_TRUE='#' | |
6186 | LIBGFOR_MINIMAL_FALSE= | |
6187 | fi | |
6188 | ||
6189 | ||
d5d92632 | 6190 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", |
6191 | # similarly to how libstdc++ does it | |
6192 | ac_test_CFLAGS="${CFLAGS+set}" | |
6193 | ac_save_CFLAGS="$CFLAGS" | |
6194 | ||
6195 | # Check for -ffunction-sections -fdata-sections | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
6197 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
6198 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
6199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6200 | /* end confdefs.h. */ | |
6201 | ||
6202 | int | |
6203 | main () | |
6204 | { | |
6205 | int foo; | |
6206 | ; | |
6207 | return 0; | |
6208 | } | |
6209 | _ACEOF | |
6210 | if ac_fn_c_try_compile "$LINENO"; then : | |
6211 | ac_fdsections=yes | |
6212 | else | |
6213 | ac_fdsections=no | |
6214 | fi | |
6215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6216 | if test "$ac_test_CFLAGS" = set; then | |
6217 | CFLAGS="$ac_save_CFLAGS" | |
6218 | else | |
6219 | # this is the suspicious part | |
6220 | CFLAGS="" | |
6221 | fi | |
6222 | if test x"$ac_fdsections" = x"yes"; then | |
6223 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
6224 | fi | |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
6226 | $as_echo "$ac_fdsections" >&6; } | |
6227 | ||
6228 | ||
18ce903b | 6229 | # Check linker hardware capability support. |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6231 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
f00f02a3 | 6232 | if ${ac_cv_path_SED+:} false; then : |
d5d92632 | 6233 | $as_echo_n "(cached) " >&6 |
6234 | else | |
18ce903b | 6235 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6236 | for ac_i in 1 2 3 4 5 6 7; do | |
6237 | ac_script="$ac_script$as_nl$ac_script" | |
6238 | done | |
6239 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6240 | { ac_script=; unset ac_script;} | |
6241 | if test -z "$SED"; then | |
6242 | ac_path_SED_found=false | |
6243 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d5d92632 | 6245 | for as_dir in $PATH |
6246 | do | |
6247 | IFS=$as_save_IFS | |
6248 | test -z "$as_dir" && as_dir=. | |
18ce903b | 6249 | for ac_prog in sed gsed; do |
d5d92632 | 6250 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 6251 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 6252 | as_fn_executable_p "$ac_path_SED" || continue |
18ce903b | 6253 | # Check for GNU ac_path_SED and select it if it is found. |
6254 | # Check for GNU $ac_path_SED | |
6255 | case `"$ac_path_SED" --version 2>&1` in | |
6256 | *GNU*) | |
6257 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6258 | *) | |
6259 | ac_count=0 | |
6260 | $as_echo_n 0123456789 >"conftest.in" | |
6261 | while : | |
6262 | do | |
6263 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6264 | mv "conftest.tmp" "conftest.in" | |
6265 | cp "conftest.in" "conftest.nl" | |
6266 | $as_echo '' >> "conftest.nl" | |
6267 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6268 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6269 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6270 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6271 | # Best one so far, save it but keep looking for a better one | |
6272 | ac_cv_path_SED="$ac_path_SED" | |
6273 | ac_path_SED_max=$ac_count | |
6274 | fi | |
6275 | # 10*(2^10) chars as input seems more than enough | |
6276 | test $ac_count -gt 10 && break | |
d5d92632 | 6277 | done |
18ce903b | 6278 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6279 | esac | |
d5d92632 | 6280 | |
18ce903b | 6281 | $ac_path_SED_found && break 3 |
6282 | done | |
6283 | done | |
d5d92632 | 6284 | done |
6285 | IFS=$as_save_IFS | |
18ce903b | 6286 | if test -z "$ac_cv_path_SED"; then |
f00f02a3 | 6287 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
18ce903b | 6288 | fi |
d5d92632 | 6289 | else |
18ce903b | 6290 | ac_cv_path_SED=$SED |
d5d92632 | 6291 | fi |
6292 | ||
d5d92632 | 6293 | fi |
18ce903b | 6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6295 | $as_echo "$ac_cv_path_SED" >&6; } | |
6296 | SED="$ac_cv_path_SED" | |
6297 | rm -f conftest.sed | |
d5d92632 | 6298 | |
18ce903b | 6299 | test -z "$SED" && SED=sed |
6300 | Xsed="$SED -e 1s/^X//" | |
d5d92632 | 6301 | |
d5d92632 | 6302 | |
6303 | ||
18ce903b | 6304 | |
6305 | ||
6306 | ||
6307 | ||
6308 | ||
6309 | ||
6310 | ||
6311 | ||
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6313 | $as_echo_n "checking for fgrep... " >&6; } | |
f00f02a3 | 6314 | if ${ac_cv_path_FGREP+:} false; then : |
d5d92632 | 6315 | $as_echo_n "(cached) " >&6 |
6316 | else | |
18ce903b | 6317 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6318 | then ac_cv_path_FGREP="$GREP -F" | |
6319 | else | |
6320 | if test -z "$FGREP"; then | |
6321 | ac_path_FGREP_found=false | |
6322 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6324 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
d5d92632 | 6325 | do |
6326 | IFS=$as_save_IFS | |
6327 | test -z "$as_dir" && as_dir=. | |
18ce903b | 6328 | for ac_prog in fgrep; do |
d5d92632 | 6329 | for ac_exec_ext in '' $ac_executable_extensions; do |
18ce903b | 6330 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
f00f02a3 | 6331 | as_fn_executable_p "$ac_path_FGREP" || continue |
18ce903b | 6332 | # Check for GNU ac_path_FGREP and select it if it is found. |
6333 | # Check for GNU $ac_path_FGREP | |
6334 | case `"$ac_path_FGREP" --version 2>&1` in | |
6335 | *GNU*) | |
6336 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6337 | *) | |
6338 | ac_count=0 | |
6339 | $as_echo_n 0123456789 >"conftest.in" | |
6340 | while : | |
6341 | do | |
6342 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6343 | mv "conftest.tmp" "conftest.in" | |
6344 | cp "conftest.in" "conftest.nl" | |
6345 | $as_echo 'FGREP' >> "conftest.nl" | |
6346 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6347 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6348 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6349 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6350 | # Best one so far, save it but keep looking for a better one | |
6351 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6352 | ac_path_FGREP_max=$ac_count | |
6353 | fi | |
6354 | # 10*(2^10) chars as input seems more than enough | |
6355 | test $ac_count -gt 10 && break | |
6356 | done | |
6357 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6358 | esac | |
6359 | ||
6360 | $ac_path_FGREP_found && break 3 | |
6361 | done | |
6362 | done | |
d5d92632 | 6363 | done |
6364 | IFS=$as_save_IFS | |
18ce903b | 6365 | if test -z "$ac_cv_path_FGREP"; then |
f00f02a3 | 6366 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
18ce903b | 6367 | fi |
6368 | else | |
6369 | ac_cv_path_FGREP=$FGREP | |
6370 | fi | |
d5d92632 | 6371 | |
18ce903b | 6372 | fi |
d5d92632 | 6373 | fi |
18ce903b | 6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6375 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6376 | FGREP="$ac_cv_path_FGREP" | |
542f9784 | 6377 | |
6378 | ||
18ce903b | 6379 | test -z "$GREP" && GREP=grep |
542f9784 | 6380 | |
6381 | ||
6382 | ||
6383 | ||
4ee9c684 | 6384 | |
542f9784 | 6385 | |
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
e6408286 | 6392 | |
e6408286 | 6393 | |
e6408286 | 6394 | |
e6408286 | 6395 | |
e6408286 | 6396 | |
6397 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6398 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6399 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6400 | ||
6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6402 | $as_echo_n "checking how to print strings... " >&6; } | |
6403 | # Test print first, because it will be a builtin if present. | |
6404 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6405 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6406 | ECHO='print -r --' | |
6407 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6408 | ECHO='printf %s\n' | |
6409 | else | |
6410 | # Use this function as a fallback that always works. | |
6411 | func_fallback_echo () | |
6412 | { | |
6413 | eval 'cat <<_LTECHO_EOF | |
6414 | $1 | |
6415 | _LTECHO_EOF' | |
6416 | } | |
6417 | ECHO='func_fallback_echo' | |
6418 | fi | |
6419 | ||
6420 | # func_echo_all arg... | |
6421 | # Invoke $ECHO with all args, space-separated. | |
6422 | func_echo_all () | |
6423 | { | |
6424 | $ECHO "" | |
6425 | } | |
6426 | ||
6427 | case "$ECHO" in | |
6428 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6429 | $as_echo "printf" >&6; } ;; | |
6430 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6431 | $as_echo "print -r" >&6; } ;; | |
6432 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6433 | $as_echo "cat" >&6; } ;; | |
6434 | esac | |
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
d5d92632 | 6447 | |
6448 | ||
cd9a469c | 6449 | |
cd9a469c | 6450 | |
18ce903b | 6451 | # Check whether --with-gnu-ld was given. |
6452 | if test "${with_gnu_ld+set}" = set; then : | |
6453 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6454 | else | |
6455 | with_gnu_ld=no | |
542f9784 | 6456 | fi |
d5d92632 | 6457 | |
18ce903b | 6458 | ac_prog=ld |
6459 | if test "$GCC" = yes; then | |
6460 | # Check if gcc -print-prog-name=ld gives a path. | |
6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6462 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6463 | case $host in | |
6464 | *-*-mingw*) | |
6465 | # gcc leaves a trailing carriage return which upsets mingw | |
6466 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6467 | *) | |
6468 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6469 | esac | |
6470 | case $ac_prog in | |
6471 | # Accept absolute paths. | |
6472 | [\\/]* | ?:[\\/]*) | |
6473 | re_direlt='/[^/][^/]*/\.\./' | |
6474 | # Canonicalize the pathname of ld | |
6475 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6476 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6477 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6478 | done | |
6479 | test -z "$LD" && LD="$ac_prog" | |
6480 | ;; | |
6481 | "") | |
6482 | # If it fails, then pretend we aren't using GCC. | |
6483 | ac_prog=ld | |
6484 | ;; | |
6485 | *) | |
6486 | # If it is relative, then search for the first ld in PATH. | |
6487 | with_gnu_ld=unknown | |
6488 | ;; | |
6489 | esac | |
6490 | elif test "$with_gnu_ld" = yes; then | |
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6492 | $as_echo_n "checking for GNU ld... " >&6; } | |
6493 | else | |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6495 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6496 | fi | |
f00f02a3 | 6497 | if ${lt_cv_path_LD+:} false; then : |
18ce903b | 6498 | $as_echo_n "(cached) " >&6 |
6499 | else | |
6500 | if test -z "$LD"; then | |
6501 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6502 | for ac_dir in $PATH; do | |
6503 | IFS="$lt_save_ifs" | |
6504 | test -z "$ac_dir" && ac_dir=. | |
6505 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6506 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6507 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6508 | # but apparently some variants of GNU ld only accept -v. | |
6509 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6510 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6511 | *GNU* | *'with BFD'*) | |
6512 | test "$with_gnu_ld" != no && break | |
6513 | ;; | |
6514 | *) | |
6515 | test "$with_gnu_ld" != yes && break | |
6516 | ;; | |
6517 | esac | |
6518 | fi | |
6519 | done | |
6520 | IFS="$lt_save_ifs" | |
6521 | else | |
6522 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6523 | fi | |
6524 | fi | |
6525 | ||
6526 | LD="$lt_cv_path_LD" | |
6527 | if test -n "$LD"; then | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6529 | $as_echo "$LD" >&6; } | |
6530 | else | |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6532 | $as_echo "no" >&6; } | |
6533 | fi | |
f00f02a3 | 6534 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
18ce903b | 6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6536 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
f00f02a3 | 6537 | if ${lt_cv_prog_gnu_ld+:} false; then : |
18ce903b | 6538 | $as_echo_n "(cached) " >&6 |
6539 | else | |
6540 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6541 | case `$LD -v 2>&1 </dev/null` in | |
6542 | *GNU* | *'with BFD'*) | |
6543 | lt_cv_prog_gnu_ld=yes | |
6544 | ;; | |
6545 | *) | |
6546 | lt_cv_prog_gnu_ld=no | |
6547 | ;; | |
6548 | esac | |
6549 | fi | |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6551 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6552 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
d5d92632 | 6553 | |
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
542f9784 | 6561 | |
6562 | ||
18ce903b | 6563 | test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' |
6564 | ||
6565 | ||
6566 | ac_save_LDFLAGS="$LDFLAGS" | |
6567 | LDFLAGS="$LFLAGS -mclear-hwcap" | |
6568 | ||
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 | |
6570 | $as_echo_n "checking for -mclear-hwcap... " >&6; } | |
6571 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 6572 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
18ce903b | 6573 | fi |
6574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6575 | /* end confdefs.h. */ | |
6576 | ||
6577 | int | |
6578 | main () | |
6579 | { | |
6580 | return 0; | |
6581 | ; | |
6582 | return 0; | |
6583 | } | |
6584 | _ACEOF | |
6585 | if ac_fn_c_try_link "$LINENO"; then : | |
6586 | ac_hwcap_ldflags=yes | |
6587 | else | |
6588 | ac_hwcap_ldflags=no | |
6589 | fi | |
6590 | rm -f core conftest.err conftest.$ac_objext \ | |
6591 | conftest$ac_exeext conftest.$ac_ext | |
6592 | if test "$ac_hwcap_ldflags" = "yes"; then | |
6593 | HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" | |
6594 | fi | |
6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 | |
6596 | $as_echo "$ac_hwcap_ldflags" >&6; } | |
6597 | ||
6598 | LDFLAGS="$ac_save_LDFLAGS" | |
6599 | ||
6600 | ||
6601 | ||
6602 | if test $ac_hwcap_ldflags != no; then | |
6603 | HAVE_HWCAP_TRUE= | |
6604 | HAVE_HWCAP_FALSE='#' | |
6605 | else | |
6606 | HAVE_HWCAP_TRUE='#' | |
6607 | HAVE_HWCAP_FALSE= | |
6608 | fi | |
6609 | ||
6610 | ||
6611 | ||
6612 | # Find other programs we need. | |
6613 | if test -n "$ac_tool_prefix"; then | |
6614 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
6615 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6617 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6618 | if ${ac_cv_prog_AS+:} false; then : |
cd9a469c | 6619 | $as_echo_n "(cached) " >&6 |
82eaf560 | 6620 | else |
18ce903b | 6621 | if test -n "$AS"; then |
6622 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
6623 | else | |
6624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6625 | for as_dir in $PATH | |
cd9a469c | 6626 | do |
6627 | IFS=$as_save_IFS | |
6628 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6629 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 6630 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6631 | ac_cv_prog_AS="${ac_tool_prefix}as" |
6632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6633 | break 2 | |
6634 | fi | |
6635 | done | |
cd9a469c | 6636 | done |
18ce903b | 6637 | IFS=$as_save_IFS |
6638 | ||
6639 | fi | |
6640 | fi | |
6641 | AS=$ac_cv_prog_AS | |
6642 | if test -n "$AS"; then | |
6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
6644 | $as_echo "$AS" >&6; } | |
6645 | else | |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6647 | $as_echo "no" >&6; } | |
6648 | fi | |
6649 | ||
6650 | ||
6651 | fi | |
6652 | if test -z "$ac_cv_prog_AS"; then | |
6653 | ac_ct_AS=$AS | |
6654 | # Extract the first word of "as", so it can be a program name with args. | |
6655 | set dummy as; ac_word=$2 | |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6657 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6658 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
18ce903b | 6659 | $as_echo_n "(cached) " >&6 |
6660 | else | |
6661 | if test -n "$ac_ct_AS"; then | |
6662 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
6663 | else | |
6664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6665 | for as_dir in $PATH | |
6666 | do | |
6667 | IFS=$as_save_IFS | |
6668 | test -z "$as_dir" && as_dir=. | |
6669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6670 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6671 | ac_cv_prog_ac_ct_AS="as" |
6672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6673 | break 2 | |
6674 | fi | |
6675 | done | |
6676 | done | |
6677 | IFS=$as_save_IFS | |
6678 | ||
6679 | fi | |
6680 | fi | |
6681 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
6682 | if test -n "$ac_ct_AS"; then | |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
6684 | $as_echo "$ac_ct_AS" >&6; } | |
6685 | else | |
6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6687 | $as_echo "no" >&6; } | |
6688 | fi | |
6689 | ||
6690 | if test "x$ac_ct_AS" = x; then | |
6691 | AS="" | |
6692 | else | |
6693 | case $cross_compiling:$ac_tool_warned in | |
6694 | yes:) | |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6696 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6697 | ac_tool_warned=yes ;; | |
cd9a469c | 6698 | esac |
18ce903b | 6699 | AS=$ac_ct_AS |
6700 | fi | |
6701 | else | |
6702 | AS="$ac_cv_prog_AS" | |
6703 | fi | |
cd9a469c | 6704 | |
18ce903b | 6705 | if test -n "$ac_tool_prefix"; then |
6706 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6707 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6709 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6710 | if ${ac_cv_prog_AR+:} false; then : |
18ce903b | 6711 | $as_echo_n "(cached) " >&6 |
6712 | else | |
6713 | if test -n "$AR"; then | |
6714 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6715 | else | |
6716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6717 | for as_dir in $PATH | |
6718 | do | |
6719 | IFS=$as_save_IFS | |
6720 | test -z "$as_dir" && as_dir=. | |
6721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6723 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6725 | break 2 | |
6726 | fi | |
6727 | done | |
cd9a469c | 6728 | done |
18ce903b | 6729 | IFS=$as_save_IFS |
6730 | ||
6731 | fi | |
6732 | fi | |
6733 | AR=$ac_cv_prog_AR | |
6734 | if test -n "$AR"; then | |
6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6736 | $as_echo "$AR" >&6; } | |
6737 | else | |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6739 | $as_echo "no" >&6; } | |
6740 | fi | |
6741 | ||
6742 | ||
6743 | fi | |
6744 | if test -z "$ac_cv_prog_AR"; then | |
6745 | ac_ct_AR=$AR | |
6746 | # Extract the first word of "ar", so it can be a program name with args. | |
6747 | set dummy ar; ac_word=$2 | |
6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6749 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6750 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
18ce903b | 6751 | $as_echo_n "(cached) " >&6 |
6752 | else | |
6753 | if test -n "$ac_ct_AR"; then | |
6754 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6755 | else | |
6756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6757 | for as_dir in $PATH | |
6758 | do | |
6759 | IFS=$as_save_IFS | |
6760 | test -z "$as_dir" && as_dir=. | |
6761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6763 | ac_cv_prog_ac_ct_AR="ar" |
6764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6765 | break 2 | |
6766 | fi | |
6767 | done | |
6768 | done | |
6769 | IFS=$as_save_IFS | |
6770 | ||
6771 | fi | |
6772 | fi | |
6773 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6774 | if test -n "$ac_ct_AR"; then | |
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6776 | $as_echo "$ac_ct_AR" >&6; } | |
6777 | else | |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6779 | $as_echo "no" >&6; } | |
6780 | fi | |
6781 | ||
6782 | if test "x$ac_ct_AR" = x; then | |
6783 | AR="" | |
6784 | else | |
6785 | case $cross_compiling:$ac_tool_warned in | |
6786 | yes:) | |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6788 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6789 | ac_tool_warned=yes ;; | |
6790 | esac | |
6791 | AR=$ac_ct_AR | |
6792 | fi | |
6793 | else | |
6794 | AR="$ac_cv_prog_AR" | |
6795 | fi | |
6796 | ||
6797 | if test -n "$ac_tool_prefix"; then | |
6798 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6799 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6801 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6802 | if ${ac_cv_prog_RANLIB+:} false; then : |
18ce903b | 6803 | $as_echo_n "(cached) " >&6 |
6804 | else | |
6805 | if test -n "$RANLIB"; then | |
6806 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6807 | else | |
6808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6809 | for as_dir in $PATH | |
6810 | do | |
6811 | IFS=$as_save_IFS | |
6812 | test -z "$as_dir" && as_dir=. | |
6813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6815 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6817 | break 2 | |
6818 | fi | |
6819 | done | |
6820 | done | |
6821 | IFS=$as_save_IFS | |
6822 | ||
6823 | fi | |
6824 | fi | |
6825 | RANLIB=$ac_cv_prog_RANLIB | |
6826 | if test -n "$RANLIB"; then | |
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6828 | $as_echo "$RANLIB" >&6; } | |
6829 | else | |
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6831 | $as_echo "no" >&6; } | |
6832 | fi | |
6833 | ||
6834 | ||
6835 | fi | |
6836 | if test -z "$ac_cv_prog_RANLIB"; then | |
6837 | ac_ct_RANLIB=$RANLIB | |
6838 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6839 | set dummy ranlib; ac_word=$2 | |
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6841 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 6842 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
18ce903b | 6843 | $as_echo_n "(cached) " >&6 |
6844 | else | |
6845 | if test -n "$ac_ct_RANLIB"; then | |
6846 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6847 | else | |
6848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6849 | for as_dir in $PATH | |
6850 | do | |
6851 | IFS=$as_save_IFS | |
6852 | test -z "$as_dir" && as_dir=. | |
6853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 6854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
18ce903b | 6855 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6857 | break 2 | |
6858 | fi | |
6859 | done | |
cd9a469c | 6860 | done |
6861 | IFS=$as_save_IFS | |
18ce903b | 6862 | |
6863 | fi | |
6864 | fi | |
6865 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6866 | if test -n "$ac_ct_RANLIB"; then | |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6868 | $as_echo "$ac_ct_RANLIB" >&6; } | |
cd9a469c | 6869 | else |
18ce903b | 6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6871 | $as_echo "no" >&6; } | |
542f9784 | 6872 | fi |
cd9a469c | 6873 | |
18ce903b | 6874 | if test "x$ac_ct_RANLIB" = x; then |
6875 | RANLIB="ranlib-not-found-in-path-error" | |
6876 | else | |
6877 | case $cross_compiling:$ac_tool_warned in | |
6878 | yes:) | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6880 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6881 | ac_tool_warned=yes ;; | |
6882 | esac | |
6883 | RANLIB=$ac_ct_RANLIB | |
6884 | fi | |
6885 | else | |
6886 | RANLIB="$ac_cv_prog_RANLIB" | |
cd9a469c | 6887 | fi |
542f9784 | 6888 | |
18ce903b | 6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
6890 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6891 | set x ${MAKE-make} | |
6892 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
f00f02a3 | 6893 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
18ce903b | 6894 | $as_echo_n "(cached) " >&6 |
6895 | else | |
6896 | cat >conftest.make <<\_ACEOF | |
6897 | SHELL = /bin/sh | |
6898 | all: | |
6899 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6900 | _ACEOF | |
f00f02a3 | 6901 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
18ce903b | 6902 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6903 | *@@@%%%=?*=@@@%%%*) | |
6904 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6905 | *) | |
6906 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6907 | esac | |
6908 | rm -f conftest.make | |
6909 | fi | |
6910 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6912 | $as_echo "yes" >&6; } | |
6913 | SET_MAKE= | |
6914 | else | |
6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6916 | $as_echo "no" >&6; } | |
6917 | SET_MAKE="MAKE=${MAKE-make}" | |
6918 | fi | |
542f9784 | 6919 | |
6920 | ||
6921 | ||
18ce903b | 6922 | # Configure libtool |
6923 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6924 | enable_dlopen=yes | |
542f9784 | 6925 | |
6926 | ||
6927 | ||
18ce903b | 6928 | case `pwd` in |
6929 | *\ * | *\ *) | |
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6931 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6932 | esac | |
542f9784 | 6933 | |
6934 | ||
6935 | ||
18ce903b | 6936 | macro_version='2.2.7a' |
6937 | macro_revision='1.3134' | |
542f9784 | 6938 | |
6939 | ||
6940 | ||
6941 | ||
6942 | ||
6943 | ||
6944 | ||
6945 | ||
cd9a469c | 6946 | |
90973b19 | 6947 | |
90973b19 | 6948 | |
6949 | ||
90973b19 | 6950 | |
18ce903b | 6951 | ltmain="$ac_aux_dir/ltmain.sh" |
542f9784 | 6952 | |
18ce903b | 6953 | # Backslashify metacharacters that are still active within |
6954 | # double-quoted strings. | |
6955 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
542f9784 | 6956 | |
18ce903b | 6957 | # Same as above, but do not quote variable references. |
6958 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
542f9784 | 6959 | |
18ce903b | 6960 | # Sed substitution to delay expansion of an escaped shell variable in a |
6961 | # double_quote_subst'ed string. | |
6962 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
542f9784 | 6963 | |
18ce903b | 6964 | # Sed substitution to delay expansion of an escaped single quote. |
6965 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
542f9784 | 6966 | |
18ce903b | 6967 | # Sed substitution to avoid accidental globbing in evaled expressions |
6968 | no_glob_subst='s/\*/\\\*/g' | |
542f9784 | 6969 | |
cd9a469c | 6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6971 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
f00f02a3 | 6972 | if ${lt_cv_path_NM+:} false; then : |
cd9a469c | 6973 | $as_echo_n "(cached) " >&6 |
90973b19 | 6974 | else |
6975 | if test -n "$NM"; then | |
6976 | # Let the user override the test. | |
6977 | lt_cv_path_NM="$NM" | |
6978 | else | |
542f9784 | 6979 | lt_nm_to_check="${ac_tool_prefix}nm" |
6980 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6981 | lt_nm_to_check="$lt_nm_to_check nm" | |
6982 | fi | |
6983 | for lt_tmp_nm in $lt_nm_to_check; do | |
6984 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6985 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6986 | IFS="$lt_save_ifs" | |
6987 | test -z "$ac_dir" && ac_dir=. | |
6988 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6989 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6990 | # Check to see if the nm accepts a BSD-compat flag. | |
6991 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6992 | # nm: unknown option "B" ignored | |
6993 | # Tru64's nm complains that /dev/null is an invalid object file | |
6994 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6995 | */dev/null* | *'Invalid file or object type'*) | |
6996 | lt_cv_path_NM="$tmp_nm -B" | |
6997 | break | |
6998 | ;; | |
6999 | *) | |
7000 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7001 | */dev/null*) | |
7002 | lt_cv_path_NM="$tmp_nm -p" | |
7003 | break | |
7004 | ;; | |
7005 | *) | |
7006 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7007 | continue # so that we can try to find one that supports BSD flags | |
7008 | ;; | |
7009 | esac | |
7010 | ;; | |
7011 | esac | |
7012 | fi | |
7013 | done | |
7014 | IFS="$lt_save_ifs" | |
7015 | done | |
7016 | : ${lt_cv_path_NM=no} | |
7017 | fi | |
7018 | fi | |
cd9a469c | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7020 | $as_echo "$lt_cv_path_NM" >&6; } | |
542f9784 | 7021 | if test "$lt_cv_path_NM" != "no"; then |
7022 | NM="$lt_cv_path_NM" | |
7023 | else | |
7024 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
e6408286 | 7025 | if test -n "$DUMPBIN"; then : |
7026 | # Let the user override the test. | |
7027 | else | |
7028 | if test -n "$ac_tool_prefix"; then | |
7029 | for ac_prog in dumpbin "link -dump" | |
542f9784 | 7030 | do |
7031 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7032 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7034 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7035 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
cd9a469c | 7036 | $as_echo_n "(cached) " >&6 |
542f9784 | 7037 | else |
7038 | if test -n "$DUMPBIN"; then | |
7039 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7040 | else | |
7041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7042 | for as_dir in $PATH | |
7043 | do | |
7044 | IFS=$as_save_IFS | |
7045 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7046 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7048 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
cd9a469c | 7049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7050 | break 2 |
7051 | fi | |
7052 | done | |
cd9a469c | 7053 | done |
7054 | IFS=$as_save_IFS | |
542f9784 | 7055 | |
7056 | fi | |
7057 | fi | |
7058 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7059 | if test -n "$DUMPBIN"; then | |
cd9a469c | 7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7061 | $as_echo "$DUMPBIN" >&6; } | |
542f9784 | 7062 | else |
cd9a469c | 7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7064 | $as_echo "no" >&6; } | |
542f9784 | 7065 | fi |
7066 | ||
cd9a469c | 7067 | |
542f9784 | 7068 | test -n "$DUMPBIN" && break |
7069 | done | |
7070 | fi | |
7071 | if test -z "$DUMPBIN"; then | |
7072 | ac_ct_DUMPBIN=$DUMPBIN | |
e6408286 | 7073 | for ac_prog in dumpbin "link -dump" |
542f9784 | 7074 | do |
7075 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7076 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7078 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7079 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
cd9a469c | 7080 | $as_echo_n "(cached) " >&6 |
542f9784 | 7081 | else |
7082 | if test -n "$ac_ct_DUMPBIN"; then | |
7083 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7084 | else | |
7085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7086 | for as_dir in $PATH | |
7087 | do | |
7088 | IFS=$as_save_IFS | |
7089 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7090 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7092 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
cd9a469c | 7093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7094 | break 2 |
7095 | fi | |
7096 | done | |
cd9a469c | 7097 | done |
7098 | IFS=$as_save_IFS | |
542f9784 | 7099 | |
7100 | fi | |
7101 | fi | |
7102 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7103 | if test -n "$ac_ct_DUMPBIN"; then | |
cd9a469c | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7105 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
542f9784 | 7106 | else |
cd9a469c | 7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7108 | $as_echo "no" >&6; } | |
542f9784 | 7109 | fi |
7110 | ||
cd9a469c | 7111 | |
542f9784 | 7112 | test -n "$ac_ct_DUMPBIN" && break |
7113 | done | |
542f9784 | 7114 | |
cd9a469c | 7115 | if test "x$ac_ct_DUMPBIN" = x; then |
7116 | DUMPBIN=":" | |
7117 | else | |
7118 | case $cross_compiling:$ac_tool_warned in | |
7119 | yes:) | |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7121 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7122 | ac_tool_warned=yes ;; | |
7123 | esac | |
7124 | DUMPBIN=$ac_ct_DUMPBIN | |
7125 | fi | |
90973b19 | 7126 | fi |
542f9784 | 7127 | |
e6408286 | 7128 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7129 | *COFF*) | |
7130 | DUMPBIN="$DUMPBIN -symbols" | |
7131 | ;; | |
7132 | *) | |
7133 | DUMPBIN=: | |
7134 | ;; | |
7135 | esac | |
7136 | fi | |
542f9784 | 7137 | |
7138 | if test "$DUMPBIN" != ":"; then | |
7139 | NM="$DUMPBIN" | |
7140 | fi | |
90973b19 | 7141 | fi |
542f9784 | 7142 | test -z "$NM" && NM=nm |
7143 | ||
7144 | ||
90973b19 | 7145 | |
542f9784 | 7146 | |
7147 | ||
7148 | ||
cd9a469c | 7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7150 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
f00f02a3 | 7151 | if ${lt_cv_nm_interface+:} false; then : |
cd9a469c | 7152 | $as_echo_n "(cached) " >&6 |
542f9784 | 7153 | else |
7154 | lt_cv_nm_interface="BSD nm" | |
7155 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e6408286 | 7156 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
542f9784 | 7157 | (eval "$ac_compile" 2>conftest.err) |
7158 | cat conftest.err >&5 | |
e6408286 | 7159 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
542f9784 | 7160 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7161 | cat conftest.err >&5 | |
e6408286 | 7162 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
542f9784 | 7163 | cat conftest.out >&5 |
7164 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7165 | lt_cv_nm_interface="MS dumpbin" | |
7166 | fi | |
7167 | rm -f conftest* | |
7168 | fi | |
cd9a469c | 7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7170 | $as_echo "$lt_cv_nm_interface" >&6; } | |
90973b19 | 7171 | |
cd9a469c | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
7173 | $as_echo_n "checking whether ln -s works... " >&6; } | |
90973b19 | 7174 | LN_S=$as_ln_s |
7175 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7177 | $as_echo "yes" >&6; } | |
90973b19 | 7178 | else |
cd9a469c | 7179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
7180 | $as_echo "no, using $LN_S" >&6; } | |
90973b19 | 7181 | fi |
7182 | ||
542f9784 | 7183 | # find the maximum length of command line arguments |
cd9a469c | 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7185 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
f00f02a3 | 7186 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
cd9a469c | 7187 | $as_echo_n "(cached) " >&6 |
542f9784 | 7188 | else |
7189 | i=0 | |
7190 | teststring="ABCD" | |
7191 | ||
7192 | case $build_os in | |
7193 | msdosdjgpp*) | |
7194 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7195 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7196 | # during glob expansion). Even if it were fixed, the result of this | |
7197 | # check would be larger than it should be. | |
7198 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7199 | ;; | |
7200 | ||
7201 | gnu*) | |
7202 | # Under GNU Hurd, this test is not required because there is | |
7203 | # no limit to the length of command line arguments. | |
7204 | # Libtool will interpret -1 as no limit whatsoever | |
7205 | lt_cv_sys_max_cmd_len=-1; | |
7206 | ;; | |
7207 | ||
00aafda4 | 7208 | cygwin* | mingw* | cegcc*) |
542f9784 | 7209 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7210 | # about 5 minutes as the teststring grows exponentially. | |
7211 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7212 | # you end up with a "frozen" computer, even though with patience | |
7213 | # the test eventually succeeds (with a max line length of 256k). | |
7214 | # Instead, let's just punt: use the minimum linelength reported by | |
7215 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7216 | lt_cv_sys_max_cmd_len=8192; | |
7217 | ;; | |
7218 | ||
e6408286 | 7219 | mint*) |
7220 | # On MiNT this can take a long time and run out of memory. | |
7221 | lt_cv_sys_max_cmd_len=8192; | |
7222 | ;; | |
7223 | ||
542f9784 | 7224 | amigaos*) |
7225 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7226 | # So we just punt and use a minimum line length of 8192. | |
7227 | lt_cv_sys_max_cmd_len=8192; | |
7228 | ;; | |
7229 | ||
7230 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7231 | # This has been around since 386BSD, at least. Likely further. | |
7232 | if test -x /sbin/sysctl; then | |
7233 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7234 | elif test -x /usr/sbin/sysctl; then | |
7235 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7236 | else | |
7237 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
7238 | fi | |
7239 | # And add a safety zone | |
7240 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7241 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7242 | ;; | |
7243 | ||
7244 | interix*) | |
7245 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7246 | lt_cv_sys_max_cmd_len=196608 | |
7247 | ;; | |
7248 | ||
7249 | osf*) | |
7250 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7251 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7252 | # nice to cause kernel panics so lets avoid the loop below. | |
7253 | # First set a reasonable default. | |
7254 | lt_cv_sys_max_cmd_len=16384 | |
7255 | # | |
7256 | if test -x /sbin/sysconfig; then | |
7257 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7258 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7259 | esac | |
7260 | fi | |
7261 | ;; | |
7262 | sco3.2v5*) | |
7263 | lt_cv_sys_max_cmd_len=102400 | |
7264 | ;; | |
7265 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7266 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7267 | if test -n "$kargmax"; then | |
7268 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7269 | else | |
7270 | lt_cv_sys_max_cmd_len=32768 | |
7271 | fi | |
7272 | ;; | |
7273 | *) | |
00aafda4 | 7274 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7275 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
07c46636 | 7276 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7277 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7278 | else | |
7279 | # Make teststring a little bigger before we do anything with it. | |
7280 | # a 1K string should be a reasonable start. | |
7281 | for i in 1 2 3 4 5 6 7 8 ; do | |
7282 | teststring=$teststring$teststring | |
7283 | done | |
7284 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7285 | # If test is not a shell built-in, we'll probably end up computing a | |
7286 | # maximum length that is only half of the actual maximum length, but | |
7287 | # we can't tell. | |
e6408286 | 7288 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7289 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
07c46636 | 7290 | test $i != 17 # 1/2 MB should be enough |
7291 | do | |
7292 | i=`expr $i + 1` | |
7293 | teststring=$teststring$teststring | |
7294 | done | |
7295 | # Only check the string length outside the loop. | |
7296 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7297 | teststring= | |
7298 | # Add a significant safety factor because C++ compilers can tack on | |
7299 | # massive amounts of additional arguments before passing them to the | |
7300 | # linker. It appears as though 1/2 is a usable value. | |
7301 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7302 | fi | |
542f9784 | 7303 | ;; |
7304 | esac | |
7305 | ||
7306 | fi | |
7307 | ||
7308 | if test -n $lt_cv_sys_max_cmd_len ; then | |
cd9a469c | 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7310 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
542f9784 | 7311 | else |
cd9a469c | 7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7313 | $as_echo "none" >&6; } | |
542f9784 | 7314 | fi |
7315 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7316 | ||
7317 | ||
7318 | ||
7319 | ||
7320 | ||
7321 | ||
542f9784 | 7322 | : ${CP="cp -f"} |
7323 | : ${MV="mv -f"} | |
7324 | : ${RM="rm -f"} | |
7325 | ||
cd9a469c | 7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7327 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
542f9784 | 7328 | # Try some XSI features |
7329 | xsi_shell=no | |
7330 | ( _lt_dummy="a/b/c" | |
7331 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
00aafda4 | 7332 | = c,a/b,, \ |
7333 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7334 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
542f9784 | 7335 | && xsi_shell=yes |
cd9a469c | 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7337 | $as_echo "$xsi_shell" >&6; } | |
542f9784 | 7338 | |
7339 | ||
cd9a469c | 7340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7341 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
542f9784 | 7342 | lt_shell_append=no |
7343 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7344 | >/dev/null 2>&1 \ | |
7345 | && lt_shell_append=yes | |
cd9a469c | 7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7347 | $as_echo "$lt_shell_append" >&6; } | |
542f9784 | 7348 | |
7349 | ||
7350 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7351 | lt_unset=unset | |
7352 | else | |
7353 | lt_unset=false | |
7354 | fi | |
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | # test EBCDIC or ASCII | |
7361 | case `echo X|tr X '\101'` in | |
7362 | A) # ASCII based system | |
7363 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7364 | lt_SP2NL='tr \040 \012' | |
7365 | lt_NL2SP='tr \015\012 \040\040' | |
7366 | ;; | |
7367 | *) # EBCDIC based system | |
7368 | lt_SP2NL='tr \100 \n' | |
7369 | lt_NL2SP='tr \r\n \100\100' | |
7370 | ;; | |
7371 | esac | |
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | ||
7378 | ||
7379 | ||
7380 | ||
cd9a469c | 7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7382 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
f00f02a3 | 7383 | if ${lt_cv_ld_reload_flag+:} false; then : |
cd9a469c | 7384 | $as_echo_n "(cached) " >&6 |
542f9784 | 7385 | else |
7386 | lt_cv_ld_reload_flag='-r' | |
7387 | fi | |
cd9a469c | 7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7389 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
542f9784 | 7390 | reload_flag=$lt_cv_ld_reload_flag |
7391 | case $reload_flag in | |
7392 | "" | " "*) ;; | |
7393 | *) reload_flag=" $reload_flag" ;; | |
7394 | esac | |
7395 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7396 | case $host_os in | |
7397 | darwin*) | |
7398 | if test "$GCC" = yes; then | |
7399 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7400 | else | |
7401 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7402 | fi | |
7403 | ;; | |
7404 | esac | |
7405 | ||
7406 | ||
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | ||
7412 | ||
7413 | ||
00aafda4 | 7414 | if test -n "$ac_tool_prefix"; then |
7415 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7416 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
cd9a469c | 7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7418 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7419 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
cd9a469c | 7420 | $as_echo_n "(cached) " >&6 |
00aafda4 | 7421 | else |
7422 | if test -n "$OBJDUMP"; then | |
7423 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7424 | else | |
7425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7426 | for as_dir in $PATH | |
7427 | do | |
7428 | IFS=$as_save_IFS | |
7429 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7430 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
00aafda4 | 7432 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
cd9a469c | 7433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 7434 | break 2 |
7435 | fi | |
7436 | done | |
cd9a469c | 7437 | done |
7438 | IFS=$as_save_IFS | |
00aafda4 | 7439 | |
7440 | fi | |
7441 | fi | |
7442 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7443 | if test -n "$OBJDUMP"; then | |
cd9a469c | 7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7445 | $as_echo "$OBJDUMP" >&6; } | |
00aafda4 | 7446 | else |
cd9a469c | 7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7448 | $as_echo "no" >&6; } | |
00aafda4 | 7449 | fi |
7450 | ||
cd9a469c | 7451 | |
00aafda4 | 7452 | fi |
7453 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7454 | ac_ct_OBJDUMP=$OBJDUMP | |
7455 | # Extract the first word of "objdump", so it can be a program name with args. | |
7456 | set dummy objdump; ac_word=$2 | |
cd9a469c | 7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7458 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7459 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
cd9a469c | 7460 | $as_echo_n "(cached) " >&6 |
00aafda4 | 7461 | else |
7462 | if test -n "$ac_ct_OBJDUMP"; then | |
7463 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7464 | else | |
7465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7466 | for as_dir in $PATH | |
7467 | do | |
7468 | IFS=$as_save_IFS | |
7469 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7470 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
00aafda4 | 7472 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
cd9a469c | 7473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 7474 | break 2 |
7475 | fi | |
7476 | done | |
cd9a469c | 7477 | done |
7478 | IFS=$as_save_IFS | |
00aafda4 | 7479 | |
00aafda4 | 7480 | fi |
7481 | fi | |
7482 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7483 | if test -n "$ac_ct_OBJDUMP"; then | |
cd9a469c | 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7485 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
00aafda4 | 7486 | else |
cd9a469c | 7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7488 | $as_echo "no" >&6; } | |
00aafda4 | 7489 | fi |
7490 | ||
cd9a469c | 7491 | if test "x$ac_ct_OBJDUMP" = x; then |
7492 | OBJDUMP="false" | |
7493 | else | |
7494 | case $cross_compiling:$ac_tool_warned in | |
7495 | yes:) | |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7497 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7498 | ac_tool_warned=yes ;; | |
7499 | esac | |
7500 | OBJDUMP=$ac_ct_OBJDUMP | |
7501 | fi | |
00aafda4 | 7502 | else |
7503 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7504 | fi | |
7505 | ||
7506 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
542f9784 | 7515 | |
cd9a469c | 7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7517 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
f00f02a3 | 7518 | if ${lt_cv_deplibs_check_method+:} false; then : |
cd9a469c | 7519 | $as_echo_n "(cached) " >&6 |
90973b19 | 7520 | else |
7521 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
7522 | lt_cv_file_magic_test_file= | |
7523 | lt_cv_deplibs_check_method='unknown' | |
7524 | # Need to set the preceding variable on all platforms that support | |
7525 | # interlibrary dependencies. | |
7526 | # 'none' -- dependencies not supported. | |
7527 | # `unknown' -- same as none, but documents that we really don't know. | |
7528 | # 'pass_all' -- all dependencies passed with no checks. | |
7529 | # 'test_compile' -- check by making test program. | |
542f9784 | 7530 | # 'file_magic [[regex]]' -- check by looking for files in library path |
7531 | # which responds to the $file_magic_cmd with a given extended regex. | |
90973b19 | 7532 | # If you have `file' or equivalent on your system and you're not sure |
7533 | # whether `pass_all' will *always* work, you probably want this one. | |
7534 | ||
7535 | case $host_os in | |
21e07d2f | 7536 | aix[4-9]*) |
90973b19 | 7537 | lt_cv_deplibs_check_method=pass_all |
7538 | ;; | |
7539 | ||
7540 | beos*) | |
7541 | lt_cv_deplibs_check_method=pass_all | |
7542 | ;; | |
7543 | ||
542f9784 | 7544 | bsdi[45]*) |
90973b19 | 7545 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
7546 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7547 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7548 | ;; | |
7549 | ||
542f9784 | 7550 | cygwin*) |
7551 | # func_win32_libid is a shell function defined in ltmain.sh | |
7552 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7553 | lt_cv_file_magic_cmd='func_win32_libid' | |
7554 | ;; | |
7555 | ||
7556 | mingw* | pw32*) | |
7557 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7558 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7559 | # unless we find 'file', for example because we are cross-compiling. | |
e6408286 | 7560 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7561 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
542f9784 | 7562 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7563 | lt_cv_file_magic_cmd='func_win32_libid' | |
7564 | else | |
7565 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7566 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7567 | fi | |
90973b19 | 7568 | ;; |
7569 | ||
e6408286 | 7570 | cegcc*) |
00aafda4 | 7571 | # use the weaker test based on 'objdump'. See mingw*. |
7572 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7573 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7574 | ;; | |
7575 | ||
90973b19 | 7576 | darwin* | rhapsody*) |
90973b19 | 7577 | lt_cv_deplibs_check_method=pass_all |
7578 | ;; | |
7579 | ||
542f9784 | 7580 | freebsd* | dragonfly*) |
7581 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
90973b19 | 7582 | case $host_cpu in |
7583 | i*86 ) | |
7584 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7585 | # Let's accept both of them until this is cleared up. | |
542f9784 | 7586 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
90973b19 | 7587 | lt_cv_file_magic_cmd=/usr/bin/file |
7588 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7589 | ;; | |
7590 | esac | |
7591 | else | |
7592 | lt_cv_deplibs_check_method=pass_all | |
7593 | fi | |
7594 | ;; | |
7595 | ||
7596 | gnu*) | |
7597 | lt_cv_deplibs_check_method=pass_all | |
7598 | ;; | |
7599 | ||
e6408286 | 7600 | haiku*) |
7601 | lt_cv_deplibs_check_method=pass_all | |
7602 | ;; | |
7603 | ||
542f9784 | 7604 | hpux10.20* | hpux11*) |
7605 | lt_cv_file_magic_cmd=/usr/bin/file | |
90973b19 | 7606 | case $host_cpu in |
90973b19 | 7607 | ia64*) |
7608 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
90973b19 | 7609 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7610 | ;; | |
542f9784 | 7611 | hppa*64*) |
e6408286 | 7612 | 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]' |
542f9784 | 7613 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
90973b19 | 7614 | ;; |
7615 | *) | |
e6408286 | 7616 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
542f9784 | 7617 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
90973b19 | 7618 | ;; |
7619 | esac | |
542f9784 | 7620 | ;; |
7621 | ||
7622 | interix[3-9]*) | |
7623 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7624 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7625 | ;; | |
7626 | ||
7627 | irix5* | irix6* | nonstopux*) | |
7628 | case $LD in | |
7629 | *-32|*"-32 ") libmagic=32-bit;; | |
7630 | *-n32|*"-n32 ") libmagic=N32;; | |
7631 | *-64|*"-64 ") libmagic=64-bit;; | |
7632 | *) libmagic=never-match;; | |
7633 | esac | |
90973b19 | 7634 | lt_cv_deplibs_check_method=pass_all |
7635 | ;; | |
7636 | ||
7637 | # This must be Linux ELF. | |
9af964d4 | 7638 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7f93fe7a | 7639 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 7640 | ;; |
7641 | ||
542f9784 | 7642 | netbsd*) |
7643 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7644 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
90973b19 | 7645 | else |
542f9784 | 7646 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
90973b19 | 7647 | fi |
7648 | ;; | |
7649 | ||
542f9784 | 7650 | newos6*) |
90973b19 | 7651 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7652 | lt_cv_file_magic_cmd=/usr/bin/file | |
7653 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7654 | ;; | |
7655 | ||
542f9784 | 7656 | *nto* | *qnx*) |
7657 | lt_cv_deplibs_check_method=pass_all | |
7658 | ;; | |
7659 | ||
7660 | openbsd*) | |
7661 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7662 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7663 | else | |
7664 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7665 | fi | |
7666 | ;; | |
7667 | ||
90973b19 | 7668 | osf3* | osf4* | osf5*) |
90973b19 | 7669 | lt_cv_deplibs_check_method=pass_all |
7670 | ;; | |
7671 | ||
542f9784 | 7672 | rdos*) |
90973b19 | 7673 | lt_cv_deplibs_check_method=pass_all |
7674 | ;; | |
7675 | ||
7676 | solaris*) | |
7677 | lt_cv_deplibs_check_method=pass_all | |
90973b19 | 7678 | ;; |
7679 | ||
542f9784 | 7680 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
90973b19 | 7681 | lt_cv_deplibs_check_method=pass_all |
7682 | ;; | |
7683 | ||
542f9784 | 7684 | sysv4 | sysv4.3*) |
90973b19 | 7685 | case $host_vendor in |
90973b19 | 7686 | motorola) |
7687 | 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]' | |
7688 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7689 | ;; | |
542f9784 | 7690 | ncr) |
7691 | lt_cv_deplibs_check_method=pass_all | |
7692 | ;; | |
7693 | sequent) | |
7694 | lt_cv_file_magic_cmd='/bin/file' | |
7695 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7696 | ;; | |
7697 | sni) | |
7698 | lt_cv_file_magic_cmd='/bin/file' | |
7699 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7700 | lt_cv_file_magic_test_file=/lib/libc.so | |
7701 | ;; | |
7702 | siemens) | |
7703 | lt_cv_deplibs_check_method=pass_all | |
7704 | ;; | |
7705 | pc) | |
7706 | lt_cv_deplibs_check_method=pass_all | |
7707 | ;; | |
90973b19 | 7708 | esac |
7709 | ;; | |
542f9784 | 7710 | |
7711 | tpf*) | |
7712 | lt_cv_deplibs_check_method=pass_all | |
7713 | ;; | |
90973b19 | 7714 | esac |
7715 | ||
7716 | fi | |
cd9a469c | 7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7718 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
90973b19 | 7719 | file_magic_cmd=$lt_cv_file_magic_cmd |
7720 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 7721 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
90973b19 | 7722 | |
7723 | ||
7724 | ||
7725 | ||
90973b19 | 7726 | |
90973b19 | 7727 | |
90973b19 | 7728 | |
90973b19 | 7729 | |
4ee9c684 | 7730 | |
4ee9c684 | 7731 | |
4ee9c684 | 7732 | |
4ee9c684 | 7733 | |
90973b19 | 7734 | if test -n "$ac_tool_prefix"; then |
542f9784 | 7735 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7736 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
cd9a469c | 7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7738 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7739 | if ${ac_cv_prog_AR+:} false; then : |
cd9a469c | 7740 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 7741 | else |
542f9784 | 7742 | if test -n "$AR"; then |
7743 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
90973b19 | 7744 | else |
7745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7746 | for as_dir in $PATH | |
7747 | do | |
7748 | IFS=$as_save_IFS | |
7749 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7750 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7751 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7752 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
cd9a469c | 7753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7754 | break 2 |
7755 | fi | |
7756 | done | |
cd9a469c | 7757 | done |
7758 | IFS=$as_save_IFS | |
4ee9c684 | 7759 | |
90973b19 | 7760 | fi |
7761 | fi | |
542f9784 | 7762 | AR=$ac_cv_prog_AR |
7763 | if test -n "$AR"; then | |
cd9a469c | 7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7765 | $as_echo "$AR" >&6; } | |
90973b19 | 7766 | else |
cd9a469c | 7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7768 | $as_echo "no" >&6; } | |
4ee9c684 | 7769 | fi |
7770 | ||
cd9a469c | 7771 | |
90973b19 | 7772 | fi |
542f9784 | 7773 | if test -z "$ac_cv_prog_AR"; then |
7774 | ac_ct_AR=$AR | |
7775 | # Extract the first word of "ar", so it can be a program name with args. | |
7776 | set dummy ar; ac_word=$2 | |
cd9a469c | 7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7778 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7779 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
cd9a469c | 7780 | $as_echo_n "(cached) " >&6 |
90973b19 | 7781 | else |
542f9784 | 7782 | if test -n "$ac_ct_AR"; then |
7783 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
90973b19 | 7784 | else |
7785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7786 | for as_dir in $PATH | |
7787 | do | |
7788 | IFS=$as_save_IFS | |
7789 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7790 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7792 | ac_cv_prog_ac_ct_AR="ar" |
cd9a469c | 7793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7794 | break 2 |
7795 | fi | |
7796 | done | |
cd9a469c | 7797 | done |
7798 | IFS=$as_save_IFS | |
4ee9c684 | 7799 | |
90973b19 | 7800 | fi |
7801 | fi | |
542f9784 | 7802 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7803 | if test -n "$ac_ct_AR"; then | |
cd9a469c | 7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7805 | $as_echo "$ac_ct_AR" >&6; } | |
4ee9c684 | 7806 | else |
cd9a469c | 7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7808 | $as_echo "no" >&6; } | |
4ee9c684 | 7809 | fi |
4ee9c684 | 7810 | |
cd9a469c | 7811 | if test "x$ac_ct_AR" = x; then |
7812 | AR="false" | |
7813 | else | |
7814 | case $cross_compiling:$ac_tool_warned in | |
7815 | yes:) | |
7816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7817 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7818 | ac_tool_warned=yes ;; | |
7819 | esac | |
7820 | AR=$ac_ct_AR | |
7821 | fi | |
90973b19 | 7822 | else |
542f9784 | 7823 | AR="$ac_cv_prog_AR" |
4ee9c684 | 7824 | fi |
7825 | ||
542f9784 | 7826 | test -z "$AR" && AR=ar |
7827 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7828 | ||
7829 | ||
7830 | ||
7831 | ||
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
90973b19 | 7839 | if test -n "$ac_tool_prefix"; then |
7840 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7841 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
cd9a469c | 7842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7843 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7844 | if ${ac_cv_prog_STRIP+:} false; then : |
cd9a469c | 7845 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 7846 | else |
90973b19 | 7847 | if test -n "$STRIP"; then |
7848 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7849 | else | |
7850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7851 | for as_dir in $PATH | |
7852 | do | |
7853 | IFS=$as_save_IFS | |
7854 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7855 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 7857 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
cd9a469c | 7858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7859 | break 2 |
7860 | fi | |
7861 | done | |
cd9a469c | 7862 | done |
7863 | IFS=$as_save_IFS | |
4ee9c684 | 7864 | |
90973b19 | 7865 | fi |
7866 | fi | |
7867 | STRIP=$ac_cv_prog_STRIP | |
7868 | if test -n "$STRIP"; then | |
cd9a469c | 7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7870 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 7871 | else |
cd9a469c | 7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7873 | $as_echo "no" >&6; } | |
90973b19 | 7874 | fi |
4ee9c684 | 7875 | |
cd9a469c | 7876 | |
4ee9c684 | 7877 | fi |
90973b19 | 7878 | if test -z "$ac_cv_prog_STRIP"; then |
7879 | ac_ct_STRIP=$STRIP | |
7880 | # Extract the first word of "strip", so it can be a program name with args. | |
7881 | set dummy strip; ac_word=$2 | |
cd9a469c | 7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7883 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7884 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
cd9a469c | 7885 | $as_echo_n "(cached) " >&6 |
90973b19 | 7886 | else |
7887 | if test -n "$ac_ct_STRIP"; then | |
7888 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7889 | else | |
7890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7891 | for as_dir in $PATH | |
7892 | do | |
7893 | IFS=$as_save_IFS | |
7894 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7895 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
90973b19 | 7897 | ac_cv_prog_ac_ct_STRIP="strip" |
cd9a469c | 7898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7899 | break 2 |
7900 | fi | |
7901 | done | |
cd9a469c | 7902 | done |
7903 | IFS=$as_save_IFS | |
90973b19 | 7904 | |
4ee9c684 | 7905 | fi |
7906 | fi | |
90973b19 | 7907 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7908 | if test -n "$ac_ct_STRIP"; then | |
cd9a469c | 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7910 | $as_echo "$ac_ct_STRIP" >&6; } | |
90973b19 | 7911 | else |
cd9a469c | 7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7913 | $as_echo "no" >&6; } | |
4ee9c684 | 7914 | fi |
4ee9c684 | 7915 | |
cd9a469c | 7916 | if test "x$ac_ct_STRIP" = x; then |
7917 | STRIP=":" | |
7918 | else | |
7919 | case $cross_compiling:$ac_tool_warned in | |
7920 | yes:) | |
7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7922 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7923 | ac_tool_warned=yes ;; | |
7924 | esac | |
7925 | STRIP=$ac_ct_STRIP | |
7926 | fi | |
90973b19 | 7927 | else |
7928 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 7929 | fi |
7930 | ||
542f9784 | 7931 | test -z "$STRIP" && STRIP=: |
4ee9c684 | 7932 | |
7933 | ||
7934 | ||
7935 | ||
7936 | ||
7937 | ||
542f9784 | 7938 | if test -n "$ac_tool_prefix"; then |
7939 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7940 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cd9a469c | 7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7942 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7943 | if ${ac_cv_prog_RANLIB+:} false; then : |
cd9a469c | 7944 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 7945 | else |
542f9784 | 7946 | if test -n "$RANLIB"; then |
7947 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7948 | else | |
7949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7950 | for as_dir in $PATH | |
7951 | do | |
7952 | IFS=$as_save_IFS | |
7953 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7954 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7956 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
cd9a469c | 7957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7958 | break 2 |
7959 | fi | |
7960 | done | |
cd9a469c | 7961 | done |
7962 | IFS=$as_save_IFS | |
542f9784 | 7963 | |
7964 | fi | |
7965 | fi | |
7966 | RANLIB=$ac_cv_prog_RANLIB | |
7967 | if test -n "$RANLIB"; then | |
cd9a469c | 7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7969 | $as_echo "$RANLIB" >&6; } | |
542f9784 | 7970 | else |
cd9a469c | 7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7972 | $as_echo "no" >&6; } | |
542f9784 | 7973 | fi |
7974 | ||
cd9a469c | 7975 | |
542f9784 | 7976 | fi |
7977 | if test -z "$ac_cv_prog_RANLIB"; then | |
7978 | ac_ct_RANLIB=$RANLIB | |
7979 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7980 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7982 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 7983 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
cd9a469c | 7984 | $as_echo_n "(cached) " >&6 |
542f9784 | 7985 | else |
7986 | if test -n "$ac_ct_RANLIB"; then | |
7987 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7988 | else | |
7989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7990 | for as_dir in $PATH | |
7991 | do | |
7992 | IFS=$as_save_IFS | |
7993 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7994 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 7995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 7996 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
cd9a469c | 7997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7998 | break 2 |
7999 | fi | |
8000 | done | |
cd9a469c | 8001 | done |
8002 | IFS=$as_save_IFS | |
542f9784 | 8003 | |
542f9784 | 8004 | fi |
8005 | fi | |
8006 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8007 | if test -n "$ac_ct_RANLIB"; then | |
cd9a469c | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8009 | $as_echo "$ac_ct_RANLIB" >&6; } | |
542f9784 | 8010 | else |
cd9a469c | 8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8012 | $as_echo "no" >&6; } | |
542f9784 | 8013 | fi |
8014 | ||
cd9a469c | 8015 | if test "x$ac_ct_RANLIB" = x; then |
8016 | RANLIB=":" | |
8017 | else | |
8018 | case $cross_compiling:$ac_tool_warned in | |
8019 | yes:) | |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8021 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8022 | ac_tool_warned=yes ;; | |
8023 | esac | |
8024 | RANLIB=$ac_ct_RANLIB | |
8025 | fi | |
542f9784 | 8026 | else |
8027 | RANLIB="$ac_cv_prog_RANLIB" | |
8028 | fi | |
8029 | ||
8030 | test -z "$RANLIB" && RANLIB=: | |
8031 | ||
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | # Determine commands to create old-style static archives. | |
00aafda4 | 8038 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
542f9784 | 8039 | old_postinstall_cmds='chmod 644 $oldlib' |
8040 | old_postuninstall_cmds= | |
8041 | ||
8042 | if test -n "$RANLIB"; then | |
8043 | case $host_os in | |
8044 | openbsd*) | |
8045 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8046 | ;; | |
8047 | *) | |
8048 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8049 | ;; | |
8050 | esac | |
8051 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8052 | fi | |
8053 | ||
e6408286 | 8054 | case $host_os in |
8055 | darwin*) | |
8056 | lock_old_archive_extraction=yes ;; | |
8057 | *) | |
8058 | lock_old_archive_extraction=no ;; | |
8059 | esac | |
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
542f9784 | 8066 | |
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | # If no C compiler was specified, use CC. | |
8100 | LTCC=${LTCC-"$CC"} | |
8101 | ||
8102 | # If no C compiler flags were specified, use CFLAGS. | |
8103 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8104 | ||
8105 | # Allow CC to be a program name with arguments. | |
8106 | compiler=$CC | |
8107 | ||
8108 | ||
8109 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
cd9a469c | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8111 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
f00f02a3 | 8112 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
cd9a469c | 8113 | $as_echo_n "(cached) " >&6 |
542f9784 | 8114 | else |
8115 | ||
8116 | # These are sane defaults that work on at least a few old systems. | |
8117 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8118 | ||
8119 | # Character class describing NM global symbol codes. | |
8120 | symcode='[BCDEGRST]' | |
8121 | ||
8122 | # Regexp to match symbols that can be accessed directly from C. | |
8123 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8124 | ||
8125 | # Define system-specific variables. | |
8126 | case $host_os in | |
8127 | aix*) | |
8128 | symcode='[BCDT]' | |
8129 | ;; | |
00aafda4 | 8130 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 8131 | symcode='[ABCDGISTW]' |
8132 | ;; | |
8133 | hpux*) | |
8134 | if test "$host_cpu" = ia64; then | |
8135 | symcode='[ABCDEGRST]' | |
8136 | fi | |
8137 | ;; | |
8138 | irix* | nonstopux*) | |
8139 | symcode='[BCDEGRST]' | |
8140 | ;; | |
8141 | osf*) | |
8142 | symcode='[BCDEGQRST]' | |
8143 | ;; | |
8144 | solaris*) | |
8145 | symcode='[BDRT]' | |
8146 | ;; | |
8147 | sco3.2v5*) | |
8148 | symcode='[DT]' | |
8149 | ;; | |
8150 | sysv4.2uw2*) | |
8151 | symcode='[DT]' | |
8152 | ;; | |
8153 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8154 | symcode='[ABDT]' | |
8155 | ;; | |
8156 | sysv4) | |
8157 | symcode='[DFNSTU]' | |
8158 | ;; | |
8159 | esac | |
8160 | ||
8161 | # If we're using GNU nm, then use its standard symbol codes. | |
8162 | case `$NM -V 2>&1` in | |
8163 | *GNU* | *'with BFD'*) | |
8164 | symcode='[ABCDGIRSTW]' ;; | |
8165 | esac | |
8166 | ||
8167 | # Transform an extracted symbol line into a proper C declaration. | |
8168 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8169 | # so use this general approach. | |
8170 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8171 | ||
8172 | # Transform an extracted symbol line into symbol name and symbol address | |
8173 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
00aafda4 | 8174 | 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'" |
542f9784 | 8175 | |
8176 | # Handle CRLF in mingw tool chain | |
8177 | opt_cr= | |
8178 | case $build_os in | |
8179 | mingw*) | |
8180 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8181 | ;; | |
8182 | esac | |
8183 | ||
8184 | # Try without a prefix underscore, then with it. | |
8185 | for ac_symprfx in "" "_"; do | |
8186 | ||
8187 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8188 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8189 | ||
8190 | # Write the raw and C identifiers. | |
8191 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8192 | # Fake it for dumpbin and say T for any non-static function | |
8193 | # and D for any global variable. | |
8194 | # Also find C++ and __fastcall symbols from MSVC++, | |
8195 | # which start with @ or ?. | |
8196 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8197 | " {last_section=section; section=\$ 3};"\ | |
8198 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8199 | " \$ 0!~/External *\|/{next};"\ | |
8200 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8201 | " {if(hide[section]) next};"\ | |
8202 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8203 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8204 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8205 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8206 | " ' prfx=^$ac_symprfx" | |
8207 | else | |
8208 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8209 | fi | |
8210 | ||
8211 | # Check to see that the pipe works correctly. | |
8212 | pipe_works=no | |
8213 | ||
8214 | rm -f conftest* | |
8215 | cat > conftest.$ac_ext <<_LT_EOF | |
8216 | #ifdef __cplusplus | |
8217 | extern "C" { | |
8218 | #endif | |
8219 | char nm_test_var; | |
8220 | void nm_test_func(void); | |
8221 | void nm_test_func(void){} | |
8222 | #ifdef __cplusplus | |
8223 | } | |
8224 | #endif | |
8225 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8226 | _LT_EOF | |
8227 | ||
cd9a469c | 8228 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 8229 | (eval $ac_compile) 2>&5 |
8230 | ac_status=$? | |
cd9a469c | 8231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8232 | test $ac_status = 0; }; then | |
542f9784 | 8233 | # Now try to grab the symbols. |
8234 | nlist=conftest.nm | |
e6408286 | 8235 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8236 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
542f9784 | 8237 | ac_status=$? |
cd9a469c | 8238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8239 | test $ac_status = 0; } && test -s "$nlist"; then | |
542f9784 | 8240 | # Try sorting and uniquifying the output. |
8241 | if sort "$nlist" | uniq > "$nlist"T; then | |
8242 | mv -f "$nlist"T "$nlist" | |
8243 | else | |
8244 | rm -f "$nlist"T | |
8245 | fi | |
8246 | ||
8247 | # Make sure that we snagged all the symbols we need. | |
8248 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8249 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8250 | cat <<_LT_EOF > conftest.$ac_ext | |
8251 | #ifdef __cplusplus | |
8252 | extern "C" { | |
8253 | #endif | |
8254 | ||
8255 | _LT_EOF | |
8256 | # Now generate the symbol file. | |
8257 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
8258 | ||
8259 | cat <<_LT_EOF >> conftest.$ac_ext | |
8260 | ||
8261 | /* The mapping between symbol names and symbols. */ | |
8262 | const struct { | |
8263 | const char *name; | |
8264 | void *address; | |
8265 | } | |
8266 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8267 | { | |
8268 | { "@PROGRAM@", (void *) 0 }, | |
8269 | _LT_EOF | |
8270 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8271 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8272 | {0, (void *) 0} | |
8273 | }; | |
8274 | ||
8275 | /* This works around a problem in FreeBSD linker */ | |
8276 | #ifdef FREEBSD_WORKAROUND | |
8277 | static const void *lt_preloaded_setup() { | |
8278 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8279 | } | |
8280 | #endif | |
8281 | ||
8282 | #ifdef __cplusplus | |
8283 | } | |
8284 | #endif | |
8285 | _LT_EOF | |
8286 | # Now try linking the two files. | |
8287 | mv conftest.$ac_objext conftstm.$ac_objext | |
8288 | lt_save_LIBS="$LIBS" | |
8289 | lt_save_CFLAGS="$CFLAGS" | |
8290 | LIBS="conftstm.$ac_objext" | |
8291 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
cd9a469c | 8292 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 8293 | (eval $ac_link) 2>&5 |
8294 | ac_status=$? | |
cd9a469c | 8295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8296 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
542f9784 | 8297 | pipe_works=yes |
8298 | fi | |
8299 | LIBS="$lt_save_LIBS" | |
8300 | CFLAGS="$lt_save_CFLAGS" | |
8301 | else | |
8302 | echo "cannot find nm_test_func in $nlist" >&5 | |
8303 | fi | |
8304 | else | |
8305 | echo "cannot find nm_test_var in $nlist" >&5 | |
8306 | fi | |
8307 | else | |
8308 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8309 | fi | |
8310 | else | |
8311 | echo "$progname: failed program was:" >&5 | |
8312 | cat conftest.$ac_ext >&5 | |
8313 | fi | |
00aafda4 | 8314 | rm -rf conftest* conftst* |
542f9784 | 8315 | |
8316 | # Do not use the global_symbol_pipe unless it works. | |
8317 | if test "$pipe_works" = yes; then | |
8318 | break | |
8319 | else | |
8320 | lt_cv_sys_global_symbol_pipe= | |
8321 | fi | |
8322 | done | |
8323 | ||
8324 | fi | |
8325 | ||
8326 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8327 | lt_cv_sys_global_symbol_to_cdecl= | |
8328 | fi | |
8329 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
cd9a469c | 8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8331 | $as_echo "failed" >&6; } | |
542f9784 | 8332 | else |
cd9a469c | 8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8334 | $as_echo "ok" >&6; } | |
542f9784 | 8335 | fi |
8336 | ||
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
00aafda4 | 8351 | |
8352 | ||
8353 | ||
8354 | ||
8355 | ||
542f9784 | 8356 | |
8357 | ||
cd9a469c | 8358 | # Check whether --enable-libtool-lock was given. |
8359 | if test "${enable_libtool_lock+set}" = set; then : | |
8360 | enableval=$enable_libtool_lock; | |
8361 | fi | |
542f9784 | 8362 | |
542f9784 | 8363 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4ee9c684 | 8364 | |
90973b19 | 8365 | # Some flags need to be propagated to the compiler or linker for good |
8366 | # libtool support. | |
8367 | case $host in | |
542f9784 | 8368 | ia64-*-hpux*) |
90973b19 | 8369 | # Find out which ABI we are using. |
542f9784 | 8370 | echo 'int i;' > conftest.$ac_ext |
cd9a469c | 8371 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8372 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8373 | ac_status=$? |
cd9a469c | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8375 | test $ac_status = 0; }; then | |
90973b19 | 8376 | case `/usr/bin/file conftest.$ac_objext` in |
542f9784 | 8377 | *ELF-32*) |
8378 | HPUX_IA64_MODE="32" | |
8379 | ;; | |
8380 | *ELF-64*) | |
8381 | HPUX_IA64_MODE="64" | |
8382 | ;; | |
90973b19 | 8383 | esac |
90973b19 | 8384 | fi |
8385 | rm -rf conftest* | |
8386 | ;; | |
542f9784 | 8387 | *-*-irix6*) |
90973b19 | 8388 | # Find out which ABI we are using. |
e6408286 | 8389 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
cd9a469c | 8390 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8391 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8392 | ac_status=$? |
cd9a469c | 8393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8394 | test $ac_status = 0; }; then | |
542f9784 | 8395 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8396 | case `/usr/bin/file conftest.$ac_objext` in | |
8397 | *32-bit*) | |
8398 | LD="${LD-ld} -melf32bsmip" | |
8399 | ;; | |
8400 | *N32*) | |
8401 | LD="${LD-ld} -melf32bmipn32" | |
8402 | ;; | |
8403 | *64-bit*) | |
8404 | LD="${LD-ld} -melf64bmip" | |
8405 | ;; | |
8406 | esac | |
8407 | else | |
8408 | case `/usr/bin/file conftest.$ac_objext` in | |
8409 | *32-bit*) | |
8410 | LD="${LD-ld} -32" | |
8411 | ;; | |
8412 | *N32*) | |
8413 | LD="${LD-ld} -n32" | |
8414 | ;; | |
8415 | *64-bit*) | |
8416 | LD="${LD-ld} -64" | |
8417 | ;; | |
8418 | esac | |
8419 | fi | |
90973b19 | 8420 | fi |
8421 | rm -rf conftest* | |
8422 | ;; | |
4ee9c684 | 8423 | |
9613c003 | 8424 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
542f9784 | 8425 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
90973b19 | 8426 | # Find out which ABI we are using. |
8427 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 8428 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 8429 | (eval $ac_compile) 2>&5 |
4ee9c684 | 8430 | ac_status=$? |
cd9a469c | 8431 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8432 | test $ac_status = 0; }; then | |
542f9784 | 8433 | case `/usr/bin/file conftest.o` in |
8434 | *32-bit*) | |
8435 | case $host in | |
8436 | x86_64-*kfreebsd*-gnu) | |
8437 | LD="${LD-ld} -m elf_i386_fbsd" | |
8438 | ;; | |
8439 | x86_64-*linux*) | |
b4b3bbba | 8440 | case `/usr/bin/file conftest.o` in |
8441 | *x86-64*) | |
8442 | LD="${LD-ld} -m elf32_x86_64" | |
8443 | ;; | |
8444 | *) | |
8445 | LD="${LD-ld} -m elf_i386" | |
8446 | ;; | |
8447 | esac | |
542f9784 | 8448 | ;; |
9613c003 | 8449 | powerpc64le-*linux*) |
8450 | LD="${LD-ld} -m elf32lppclinux" | |
8451 | ;; | |
8452 | powerpc64-*linux*) | |
542f9784 | 8453 | LD="${LD-ld} -m elf32ppclinux" |
8454 | ;; | |
8455 | s390x-*linux*) | |
8456 | LD="${LD-ld} -m elf_s390" | |
8457 | ;; | |
8458 | sparc64-*linux*) | |
8459 | LD="${LD-ld} -m elf32_sparc" | |
8460 | ;; | |
8461 | esac | |
8462 | ;; | |
8463 | *64-bit*) | |
8464 | case $host in | |
8465 | x86_64-*kfreebsd*-gnu) | |
8466 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8467 | ;; | |
8468 | x86_64-*linux*) | |
8469 | LD="${LD-ld} -m elf_x86_64" | |
8470 | ;; | |
9613c003 | 8471 | powerpcle-*linux*) |
8472 | LD="${LD-ld} -m elf64lppc" | |
8473 | ;; | |
8474 | powerpc-*linux*) | |
542f9784 | 8475 | LD="${LD-ld} -m elf64ppc" |
8476 | ;; | |
8477 | s390*-*linux*|s390*-*tpf*) | |
8478 | LD="${LD-ld} -m elf64_s390" | |
8479 | ;; | |
8480 | sparc*-*linux*) | |
8481 | LD="${LD-ld} -m elf64_sparc" | |
8482 | ;; | |
8483 | esac | |
8484 | ;; | |
90973b19 | 8485 | esac |
4ee9c684 | 8486 | fi |
90973b19 | 8487 | rm -rf conftest* |
8488 | ;; | |
4ee9c684 | 8489 | |
90973b19 | 8490 | *-*-sco3.2v5*) |
8491 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8492 | SAVE_CFLAGS="$CFLAGS" | |
8493 | CFLAGS="$CFLAGS -belf" | |
cd9a469c | 8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8495 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
f00f02a3 | 8496 | if ${lt_cv_cc_needs_belf+:} false; then : |
cd9a469c | 8497 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 8498 | else |
542f9784 | 8499 | ac_ext=c |
90973b19 | 8500 | ac_cpp='$CPP $CPPFLAGS' |
8501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 8504 | |
b52ee437 | 8505 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 8506 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 8507 | fi |
cd9a469c | 8508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 8509 | /* end confdefs.h. */ |
4ee9c684 | 8510 | |
8511 | int | |
8512 | main () | |
8513 | { | |
90973b19 | 8514 | |
4ee9c684 | 8515 | ; |
8516 | return 0; | |
8517 | } | |
8518 | _ACEOF | |
cd9a469c | 8519 | if ac_fn_c_try_link "$LINENO"; then : |
90973b19 | 8520 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 8521 | else |
cd9a469c | 8522 | lt_cv_cc_needs_belf=no |
4ee9c684 | 8523 | fi |
cd9a469c | 8524 | rm -f core conftest.err conftest.$ac_objext \ |
8525 | conftest$ac_exeext conftest.$ac_ext | |
90973b19 | 8526 | ac_ext=c |
8527 | ac_cpp='$CPP $CPPFLAGS' | |
8528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8531 | ||
4ee9c684 | 8532 | fi |
cd9a469c | 8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8534 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
90973b19 | 8535 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8536 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8537 | CFLAGS="$SAVE_CFLAGS" | |
8538 | fi | |
8539 | ;; | |
542f9784 | 8540 | sparc*-*solaris*) |
8541 | # Find out which ABI we are using. | |
8542 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 8543 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 8544 | (eval $ac_compile) 2>&5 |
8545 | ac_status=$? | |
cd9a469c | 8546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8547 | test $ac_status = 0; }; then | |
542f9784 | 8548 | case `/usr/bin/file conftest.o` in |
8549 | *64-bit*) | |
8550 | case $lt_cv_prog_gnu_ld in | |
8551 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
00aafda4 | 8552 | *) |
8553 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8554 | LD="${LD-ld} -64" | |
8555 | fi | |
8556 | ;; | |
542f9784 | 8557 | esac |
8558 | ;; | |
8559 | esac | |
8560 | fi | |
8561 | rm -rf conftest* | |
8562 | ;; | |
90973b19 | 8563 | esac |
8564 | ||
542f9784 | 8565 | need_locks="$enable_libtool_lock" |
90973b19 | 8566 | |
00aafda4 | 8567 | |
8568 | case $host_os in | |
8569 | rhapsody* | darwin*) | |
8570 | if test -n "$ac_tool_prefix"; then | |
8571 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8572 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
cd9a469c | 8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8574 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8575 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
cd9a469c | 8576 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8577 | else |
8578 | if test -n "$DSYMUTIL"; then | |
8579 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8580 | else | |
8581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8582 | for as_dir in $PATH | |
8583 | do | |
8584 | IFS=$as_save_IFS | |
8585 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8586 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
00aafda4 | 8588 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
cd9a469c | 8589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8590 | break 2 |
8591 | fi | |
8592 | done | |
cd9a469c | 8593 | done |
8594 | IFS=$as_save_IFS | |
00aafda4 | 8595 | |
8596 | fi | |
8597 | fi | |
8598 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8599 | if test -n "$DSYMUTIL"; then | |
cd9a469c | 8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8601 | $as_echo "$DSYMUTIL" >&6; } | |
00aafda4 | 8602 | else |
cd9a469c | 8603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8604 | $as_echo "no" >&6; } | |
00aafda4 | 8605 | fi |
8606 | ||
cd9a469c | 8607 | |
00aafda4 | 8608 | fi |
8609 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8610 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8611 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8612 | set dummy dsymutil; ac_word=$2 | |
cd9a469c | 8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8614 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8615 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
cd9a469c | 8616 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8617 | else |
d5d92632 | 8618 | if test -n "$ac_ct_DSYMUTIL"; then |
8619 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
00aafda4 | 8620 | else |
8621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8622 | for as_dir in $PATH | |
8623 | do | |
8624 | IFS=$as_save_IFS | |
8625 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8626 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8628 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
cd9a469c | 8629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8630 | break 2 |
8631 | fi | |
8632 | done | |
cd9a469c | 8633 | done |
8634 | IFS=$as_save_IFS | |
00aafda4 | 8635 | |
00aafda4 | 8636 | fi |
8637 | fi | |
d5d92632 | 8638 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8639 | if test -n "$ac_ct_DSYMUTIL"; then | |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8641 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
00aafda4 | 8642 | else |
cd9a469c | 8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8644 | $as_echo "no" >&6; } | |
00aafda4 | 8645 | fi |
8646 | ||
d5d92632 | 8647 | if test "x$ac_ct_DSYMUTIL" = x; then |
8648 | DSYMUTIL=":" | |
cd9a469c | 8649 | else |
8650 | case $cross_compiling:$ac_tool_warned in | |
8651 | yes:) | |
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8653 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8654 | ac_tool_warned=yes ;; | |
8655 | esac | |
d5d92632 | 8656 | DSYMUTIL=$ac_ct_DSYMUTIL |
cd9a469c | 8657 | fi |
00aafda4 | 8658 | else |
d5d92632 | 8659 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
00aafda4 | 8660 | fi |
8661 | ||
8662 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8663 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8664 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
cd9a469c | 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8666 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8667 | if ${ac_cv_prog_NMEDIT+:} false; then : |
cd9a469c | 8668 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8669 | else |
d5d92632 | 8670 | if test -n "$NMEDIT"; then |
8671 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
00aafda4 | 8672 | else |
8673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8674 | for as_dir in $PATH | |
8675 | do | |
8676 | IFS=$as_save_IFS | |
8677 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8678 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8680 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
cd9a469c | 8681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8682 | break 2 |
8683 | fi | |
8684 | done | |
cd9a469c | 8685 | done |
8686 | IFS=$as_save_IFS | |
00aafda4 | 8687 | |
8688 | fi | |
8689 | fi | |
d5d92632 | 8690 | NMEDIT=$ac_cv_prog_NMEDIT |
8691 | if test -n "$NMEDIT"; then | |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8693 | $as_echo "$NMEDIT" >&6; } | |
00aafda4 | 8694 | else |
cd9a469c | 8695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8696 | $as_echo "no" >&6; } | |
00aafda4 | 8697 | fi |
8698 | ||
cd9a469c | 8699 | |
00aafda4 | 8700 | fi |
d5d92632 | 8701 | if test -z "$ac_cv_prog_NMEDIT"; then |
8702 | ac_ct_NMEDIT=$NMEDIT | |
8703 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8704 | set dummy nmedit; ac_word=$2 | |
cd9a469c | 8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8706 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8707 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
cd9a469c | 8708 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8709 | else |
d5d92632 | 8710 | if test -n "$ac_ct_NMEDIT"; then |
8711 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
00aafda4 | 8712 | else |
8713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8714 | for as_dir in $PATH | |
8715 | do | |
8716 | IFS=$as_save_IFS | |
8717 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8718 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8720 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
cd9a469c | 8721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8722 | break 2 |
8723 | fi | |
8724 | done | |
cd9a469c | 8725 | done |
8726 | IFS=$as_save_IFS | |
00aafda4 | 8727 | |
00aafda4 | 8728 | fi |
8729 | fi | |
d5d92632 | 8730 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8731 | if test -n "$ac_ct_NMEDIT"; then | |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8733 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
00aafda4 | 8734 | else |
cd9a469c | 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8736 | $as_echo "no" >&6; } | |
00aafda4 | 8737 | fi |
8738 | ||
d5d92632 | 8739 | if test "x$ac_ct_NMEDIT" = x; then |
8740 | NMEDIT=":" | |
cd9a469c | 8741 | else |
8742 | case $cross_compiling:$ac_tool_warned in | |
8743 | yes:) | |
8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8745 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8746 | ac_tool_warned=yes ;; | |
8747 | esac | |
d5d92632 | 8748 | NMEDIT=$ac_ct_NMEDIT |
cd9a469c | 8749 | fi |
00aafda4 | 8750 | else |
d5d92632 | 8751 | NMEDIT="$ac_cv_prog_NMEDIT" |
00aafda4 | 8752 | fi |
8753 | ||
8754 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8755 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8756 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
cd9a469c | 8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8758 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8759 | if ${ac_cv_prog_LIPO+:} false; then : |
cd9a469c | 8760 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8761 | else |
d5d92632 | 8762 | if test -n "$LIPO"; then |
8763 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
00aafda4 | 8764 | else |
8765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8766 | for as_dir in $PATH | |
8767 | do | |
8768 | IFS=$as_save_IFS | |
8769 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8770 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8771 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8772 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
cd9a469c | 8773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8774 | break 2 |
8775 | fi | |
8776 | done | |
cd9a469c | 8777 | done |
8778 | IFS=$as_save_IFS | |
00aafda4 | 8779 | |
8780 | fi | |
8781 | fi | |
d5d92632 | 8782 | LIPO=$ac_cv_prog_LIPO |
8783 | if test -n "$LIPO"; then | |
8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8785 | $as_echo "$LIPO" >&6; } | |
00aafda4 | 8786 | else |
cd9a469c | 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8788 | $as_echo "no" >&6; } | |
00aafda4 | 8789 | fi |
8790 | ||
cd9a469c | 8791 | |
00aafda4 | 8792 | fi |
d5d92632 | 8793 | if test -z "$ac_cv_prog_LIPO"; then |
8794 | ac_ct_LIPO=$LIPO | |
8795 | # Extract the first word of "lipo", so it can be a program name with args. | |
8796 | set dummy lipo; ac_word=$2 | |
cd9a469c | 8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8798 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8799 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
cd9a469c | 8800 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8801 | else |
d5d92632 | 8802 | if test -n "$ac_ct_LIPO"; then |
8803 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
00aafda4 | 8804 | else |
8805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8806 | for as_dir in $PATH | |
8807 | do | |
8808 | IFS=$as_save_IFS | |
8809 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8810 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 8811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8812 | ac_cv_prog_ac_ct_LIPO="lipo" |
cd9a469c | 8813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8814 | break 2 |
8815 | fi | |
8816 | done | |
cd9a469c | 8817 | done |
8818 | IFS=$as_save_IFS | |
00aafda4 | 8819 | |
00aafda4 | 8820 | fi |
8821 | fi | |
d5d92632 | 8822 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8823 | if test -n "$ac_ct_LIPO"; then | |
8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8825 | $as_echo "$ac_ct_LIPO" >&6; } | |
00aafda4 | 8826 | else |
cd9a469c | 8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8828 | $as_echo "no" >&6; } | |
00aafda4 | 8829 | fi |
8830 | ||
d5d92632 | 8831 | if test "x$ac_ct_LIPO" = x; then |
8832 | LIPO=":" | |
cd9a469c | 8833 | else |
8834 | case $cross_compiling:$ac_tool_warned in | |
8835 | yes:) | |
8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8838 | ac_tool_warned=yes ;; | |
8839 | esac | |
d5d92632 | 8840 | LIPO=$ac_ct_LIPO |
cd9a469c | 8841 | fi |
00aafda4 | 8842 | else |
d5d92632 | 8843 | LIPO="$ac_cv_prog_LIPO" |
00aafda4 | 8844 | fi |
8845 | ||
d5d92632 | 8846 | if test -n "$ac_tool_prefix"; then |
8847 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8848 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8850 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8851 | if ${ac_cv_prog_OTOOL+:} false; then : |
cd9a469c | 8852 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8853 | else |
d5d92632 | 8854 | if test -n "$OTOOL"; then |
8855 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
e6408286 | 8856 | else |
d5d92632 | 8857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8858 | for as_dir in $PATH | |
8859 | do | |
8860 | IFS=$as_save_IFS | |
8861 | test -z "$as_dir" && as_dir=. | |
8862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8864 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8866 | break 2 | |
8867 | fi | |
8868 | done | |
8869 | done | |
8870 | IFS=$as_save_IFS | |
e6408286 | 8871 | |
8872 | fi | |
d5d92632 | 8873 | fi |
8874 | OTOOL=$ac_cv_prog_OTOOL | |
8875 | if test -n "$OTOOL"; then | |
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8877 | $as_echo "$OTOOL" >&6; } | |
8878 | else | |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8880 | $as_echo "no" >&6; } | |
8881 | fi | |
8882 | ||
00aafda4 | 8883 | |
542f9784 | 8884 | fi |
d5d92632 | 8885 | if test -z "$ac_cv_prog_OTOOL"; then |
8886 | ac_ct_OTOOL=$OTOOL | |
8887 | # Extract the first word of "otool", so it can be a program name with args. | |
8888 | set dummy otool; ac_word=$2 | |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8890 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8891 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
cd9a469c | 8892 | $as_echo_n "(cached) " >&6 |
542f9784 | 8893 | else |
d5d92632 | 8894 | if test -n "$ac_ct_OTOOL"; then |
8895 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8896 | else | |
8897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8898 | for as_dir in $PATH | |
542f9784 | 8899 | do |
d5d92632 | 8900 | IFS=$as_save_IFS |
8901 | test -z "$as_dir" && as_dir=. | |
8902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8904 | ac_cv_prog_ac_ct_OTOOL="otool" |
8905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8906 | break 2 | |
8907 | fi | |
8908 | done | |
8909 | done | |
8910 | IFS=$as_save_IFS | |
4ee9c684 | 8911 | |
d5d92632 | 8912 | fi |
8913 | fi | |
8914 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8915 | if test -n "$ac_ct_OTOOL"; then | |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8917 | $as_echo "$ac_ct_OTOOL" >&6; } | |
cd9a469c | 8918 | else |
d5d92632 | 8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8920 | $as_echo "no" >&6; } | |
542f9784 | 8921 | fi |
90973b19 | 8922 | |
d5d92632 | 8923 | if test "x$ac_ct_OTOOL" = x; then |
8924 | OTOOL=":" | |
8925 | else | |
8926 | case $cross_compiling:$ac_tool_warned in | |
8927 | yes:) | |
8928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8929 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8930 | ac_tool_warned=yes ;; | |
8931 | esac | |
8932 | OTOOL=$ac_ct_OTOOL | |
8933 | fi | |
542f9784 | 8934 | else |
d5d92632 | 8935 | OTOOL="$ac_cv_prog_OTOOL" |
542f9784 | 8936 | fi |
4ee9c684 | 8937 | |
d5d92632 | 8938 | if test -n "$ac_tool_prefix"; then |
8939 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8940 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8942 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8943 | if ${ac_cv_prog_OTOOL64+:} false; then : |
d5d92632 | 8944 | $as_echo_n "(cached) " >&6 |
8945 | else | |
8946 | if test -n "$OTOOL64"; then | |
8947 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8948 | else | |
8949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8950 | for as_dir in $PATH | |
8951 | do | |
8952 | IFS=$as_save_IFS | |
8953 | test -z "$as_dir" && as_dir=. | |
8954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8955 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8956 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8958 | break 2 | |
8959 | fi | |
542f9784 | 8960 | done |
d5d92632 | 8961 | done |
8962 | IFS=$as_save_IFS | |
8963 | ||
8964 | fi | |
8965 | fi | |
8966 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8967 | if test -n "$OTOOL64"; then | |
8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8969 | $as_echo "$OTOOL64" >&6; } | |
8970 | else | |
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8972 | $as_echo "no" >&6; } | |
542f9784 | 8973 | fi |
4ee9c684 | 8974 | |
90973b19 | 8975 | |
542f9784 | 8976 | fi |
d5d92632 | 8977 | if test -z "$ac_cv_prog_OTOOL64"; then |
8978 | ac_ct_OTOOL64=$OTOOL64 | |
8979 | # Extract the first word of "otool64", so it can be a program name with args. | |
8980 | set dummy otool64; ac_word=$2 | |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8982 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 8983 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
d5d92632 | 8984 | $as_echo_n "(cached) " >&6 |
90973b19 | 8985 | else |
d5d92632 | 8986 | if test -n "$ac_ct_OTOOL64"; then |
8987 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8988 | else | |
8989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8990 | for as_dir in $PATH | |
90973b19 | 8991 | do |
d5d92632 | 8992 | IFS=$as_save_IFS |
8993 | test -z "$as_dir" && as_dir=. | |
8994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f00f02a3 | 8995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d5d92632 | 8996 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8998 | break 2 | |
8999 | fi | |
9000 | done | |
9001 | done | |
9002 | IFS=$as_save_IFS | |
90973b19 | 9003 | |
d5d92632 | 9004 | fi |
9005 | fi | |
9006 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9007 | if test -n "$ac_ct_OTOOL64"; then | |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
9009 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
cd9a469c | 9010 | else |
d5d92632 | 9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9012 | $as_echo "no" >&6; } | |
90973b19 | 9013 | fi |
9014 | ||
d5d92632 | 9015 | if test "x$ac_ct_OTOOL64" = x; then |
9016 | OTOOL64=":" | |
9017 | else | |
9018 | case $cross_compiling:$ac_tool_warned in | |
9019 | yes:) | |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9021 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9022 | ac_tool_warned=yes ;; | |
9023 | esac | |
9024 | OTOOL64=$ac_ct_OTOOL64 | |
9025 | fi | |
4ee9c684 | 9026 | else |
d5d92632 | 9027 | OTOOL64="$ac_cv_prog_OTOOL64" |
4ee9c684 | 9028 | fi |
4ee9c684 | 9029 | |
cd9a469c | 9030 | |
542f9784 | 9031 | |
542f9784 | 9032 | |
9033 | ||
4ee9c684 | 9034 | |
542f9784 | 9035 | |
4ee9c684 | 9036 | |
542f9784 | 9037 | |
cd9a469c | 9038 | |
4ee9c684 | 9039 | |
9cf1c244 | 9040 | |
2e4ef4e4 | 9041 | |
cd9a469c | 9042 | |
2e4ef4e4 | 9043 | |
2e4ef4e4 | 9044 | |
d5d92632 | 9045 | |
9046 | ||
9047 | ||
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | ||
9054 | ||
9055 | ||
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
9057 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
f00f02a3 | 9058 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
d5d92632 | 9059 | $as_echo_n "(cached) " >&6 |
542f9784 | 9060 | else |
d5d92632 | 9061 | lt_cv_apple_cc_single_mod=no |
9062 | if test -z "${LT_MULTI_MODULE}"; then | |
9063 | # By default we will add the -single_module flag. You can override | |
9064 | # by either setting the environment variable LT_MULTI_MODULE | |
9065 | # non-empty at configure time, or by adding -multi_module to the | |
9066 | # link flags. | |
9067 | rm -rf libconftest.dylib* | |
9068 | echo "int foo(void){return 1;}" > conftest.c | |
9069 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9070 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9071 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9072 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9073 | _lt_result=$? | |
9074 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9075 | lt_cv_apple_cc_single_mod=yes | |
9076 | else | |
9077 | cat conftest.err >&5 | |
9078 | fi | |
9079 | rm -rf libconftest.dylib* | |
9080 | rm -f conftest.* | |
9081 | fi | |
9082 | fi | |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
9084 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9086 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
f00f02a3 | 9087 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
d5d92632 | 9088 | $as_echo_n "(cached) " >&6 |
9089 | else | |
9090 | lt_cv_ld_exported_symbols_list=no | |
9091 | save_LDFLAGS=$LDFLAGS | |
9092 | echo "_main" > conftest.sym | |
9093 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9094 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 9095 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d5d92632 | 9096 | fi |
9097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
542f9784 | 9098 | /* end confdefs.h. */ |
2e4ef4e4 | 9099 | |
542f9784 | 9100 | int |
9101 | main () | |
9102 | { | |
d5d92632 | 9103 | |
9104 | ; | |
cd9a469c | 9105 | return 0; |
542f9784 | 9106 | } |
2e4ef4e4 | 9107 | _ACEOF |
d5d92632 | 9108 | if ac_fn_c_try_link "$LINENO"; then : |
9109 | lt_cv_ld_exported_symbols_list=yes | |
cd9a469c | 9110 | else |
d5d92632 | 9111 | lt_cv_ld_exported_symbols_list=no |
542f9784 | 9112 | fi |
d5d92632 | 9113 | rm -f core conftest.err conftest.$ac_objext \ |
9114 | conftest$ac_exeext conftest.$ac_ext | |
9115 | LDFLAGS="$save_LDFLAGS" | |
2e4ef4e4 | 9116 | |
9117 | fi | |
d5d92632 | 9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9119 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
9121 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
f00f02a3 | 9122 | if ${lt_cv_ld_force_load+:} false; then : |
d5d92632 | 9123 | $as_echo_n "(cached) " >&6 |
9124 | else | |
9125 | lt_cv_ld_force_load=no | |
9126 | cat > conftest.c << _LT_EOF | |
9127 | int forced_loaded() { return 2;} | |
9128 | _LT_EOF | |
9129 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9130 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9131 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9132 | $AR cru libconftest.a conftest.o 2>&5 | |
9133 | cat > conftest.c << _LT_EOF | |
9134 | int main() { return 0;} | |
9135 | _LT_EOF | |
9136 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9137 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9138 | _lt_result=$? | |
9139 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9140 | lt_cv_ld_force_load=yes | |
9141 | else | |
9142 | cat conftest.err >&5 | |
9143 | fi | |
9144 | rm -f conftest.err libconftest.a conftest conftest.c | |
9145 | rm -rf conftest.dSYM | |
542f9784 | 9146 | |
9147 | fi | |
d5d92632 | 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
9149 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
9150 | case $host_os in | |
9151 | rhapsody* | darwin1.[012]) | |
9152 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
9153 | darwin1.*) | |
9154 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
9155 | darwin*) # darwin 5.x on | |
9156 | # if running on 10.5 or later, the deployment target defaults | |
9157 | # to the OS version, if on x86, and 10.4, the deployment | |
9158 | # target defaults to 10.4. Don't you love it? | |
9159 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
9160 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9161 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7c407808 | 9162 | 10.[012][,.]*) |
d5d92632 | 9163 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
9164 | 10.*) | |
9165 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
9166 | esac | |
9167 | ;; | |
9168 | esac | |
9169 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9170 | _lt_dar_single_mod='$single_module' | |
9171 | fi | |
9172 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9173 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9174 | else | |
9175 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9176 | fi | |
9177 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
9178 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
9179 | else | |
9180 | _lt_dsymutil= | |
9181 | fi | |
9182 | ;; | |
9183 | esac | |
542f9784 | 9184 | |
542f9784 | 9185 | for ac_header in dlfcn.h |
cd9a469c | 9186 | do : |
9187 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9188 | " | |
f00f02a3 | 9189 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
542f9784 | 9190 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 9191 | #define HAVE_DLFCN_H 1 |
90e67cff | 9192 | _ACEOF |
90e67cff | 9193 | |
542f9784 | 9194 | fi |
9195 | ||
9196 | done | |
9197 | ||
9198 | ||
9199 | ||
e6408286 | 9200 | |
9201 | ||
00aafda4 | 9202 | # Set options |
9203 | ||
9204 | ||
9205 | ||
9206 | ||
9207 | enable_win32_dll=no | |
9208 | ||
9209 | ||
cd9a469c | 9210 | # Check whether --enable-shared was given. |
9211 | if test "${enable_shared+set}" = set; then : | |
9212 | enableval=$enable_shared; p=${PACKAGE-default} | |
00aafda4 | 9213 | case $enableval in |
9214 | yes) enable_shared=yes ;; | |
9215 | no) enable_shared=no ;; | |
9216 | *) | |
9217 | enable_shared=no | |
9218 | # Look at the argument we got. We use all the common list separators. | |
9219 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9220 | for pkg in $enableval; do | |
9221 | IFS="$lt_save_ifs" | |
9222 | if test "X$pkg" = "X$p"; then | |
9223 | enable_shared=yes | |
9224 | fi | |
9225 | done | |
9226 | IFS="$lt_save_ifs" | |
9227 | ;; | |
9228 | esac | |
9229 | else | |
9230 | enable_shared=yes | |
cd9a469c | 9231 | fi |
9232 | ||
00aafda4 | 9233 | |
9234 | ||
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | ||
9240 | ||
cd9a469c | 9241 | # Check whether --enable-static was given. |
9242 | if test "${enable_static+set}" = set; then : | |
9243 | enableval=$enable_static; p=${PACKAGE-default} | |
00aafda4 | 9244 | case $enableval in |
9245 | yes) enable_static=yes ;; | |
9246 | no) enable_static=no ;; | |
9247 | *) | |
9248 | enable_static=no | |
9249 | # Look at the argument we got. We use all the common list separators. | |
9250 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9251 | for pkg in $enableval; do | |
9252 | IFS="$lt_save_ifs" | |
9253 | if test "X$pkg" = "X$p"; then | |
9254 | enable_static=yes | |
9255 | fi | |
9256 | done | |
9257 | IFS="$lt_save_ifs" | |
9258 | ;; | |
9259 | esac | |
9260 | else | |
9261 | enable_static=yes | |
cd9a469c | 9262 | fi |
9263 | ||
00aafda4 | 9264 | |
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
cd9a469c | 9273 | # Check whether --with-pic was given. |
9274 | if test "${with_pic+set}" = set; then : | |
9275 | withval=$with_pic; pic_mode="$withval" | |
00aafda4 | 9276 | else |
9277 | pic_mode=default | |
cd9a469c | 9278 | fi |
9279 | ||
00aafda4 | 9280 | |
9281 | test -z "$pic_mode" && pic_mode=default | |
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
cd9a469c | 9289 | # Check whether --enable-fast-install was given. |
9290 | if test "${enable_fast_install+set}" = set; then : | |
9291 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
00aafda4 | 9292 | case $enableval in |
9293 | yes) enable_fast_install=yes ;; | |
9294 | no) enable_fast_install=no ;; | |
9295 | *) | |
9296 | enable_fast_install=no | |
9297 | # Look at the argument we got. We use all the common list separators. | |
9298 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9299 | for pkg in $enableval; do | |
9300 | IFS="$lt_save_ifs" | |
9301 | if test "X$pkg" = "X$p"; then | |
9302 | enable_fast_install=yes | |
9303 | fi | |
9304 | done | |
9305 | IFS="$lt_save_ifs" | |
9306 | ;; | |
9307 | esac | |
9308 | else | |
9309 | enable_fast_install=yes | |
cd9a469c | 9310 | fi |
9311 | ||
00aafda4 | 9312 | |
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
542f9784 | 9322 | # This can be used to rebuild libtool when needed |
9323 | LIBTOOL_DEPS="$ltmain" | |
9324 | ||
9325 | # Always use our own libtool. | |
9326 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | ||
9347 | ||
9348 | ||
9349 | ||
e6408286 | 9350 | |
542f9784 | 9351 | |
9352 | ||
9353 | test -z "$LN_S" && LN_S="ln -s" | |
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
90e67cff | 9359 | |
542f9784 | 9360 | |
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | if test -n "${ZSH_VERSION+set}" ; then | |
9369 | setopt NO_GLOB_SUBST | |
90e67cff | 9370 | fi |
90e67cff | 9371 | |
cd9a469c | 9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9373 | $as_echo_n "checking for objdir... " >&6; } | |
f00f02a3 | 9374 | if ${lt_cv_objdir+:} false; then : |
cd9a469c | 9375 | $as_echo_n "(cached) " >&6 |
90e67cff | 9376 | else |
542f9784 | 9377 | rm -f .libs 2>/dev/null |
9378 | mkdir .libs 2>/dev/null | |
9379 | if test -d .libs; then | |
9380 | lt_cv_objdir=.libs | |
9381 | else | |
9382 | # MS-DOS does not allow filenames that begin with a dot. | |
9383 | lt_cv_objdir=_libs | |
90e67cff | 9384 | fi |
542f9784 | 9385 | rmdir .libs 2>/dev/null |
90e67cff | 9386 | fi |
cd9a469c | 9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
9388 | $as_echo "$lt_cv_objdir" >&6; } | |
542f9784 | 9389 | objdir=$lt_cv_objdir |
9390 | ||
9391 | ||
9392 | ||
9393 | ||
90e67cff | 9394 | |
9395 | cat >>confdefs.h <<_ACEOF | |
542f9784 | 9396 | #define LT_OBJDIR "$lt_cv_objdir/" |
90e67cff | 9397 | _ACEOF |
9398 | ||
542f9784 | 9399 | |
9400 | ||
9401 | ||
542f9784 | 9402 | case $host_os in |
9403 | aix3*) | |
9404 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9405 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9406 | # vanish in a puff of smoke. | |
9407 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9408 | COLLECT_NAMES= | |
9409 | export COLLECT_NAMES | |
9410 | fi | |
9411 | ;; | |
9412 | esac | |
9413 | ||
542f9784 | 9414 | # Global variables: |
9415 | ofile=libtool | |
9416 | can_build_shared=yes | |
9417 | ||
9418 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9419 | # which needs '.lib'). | |
9420 | libext=a | |
9421 | ||
9422 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9423 | ||
9424 | old_CC="$CC" | |
9425 | old_CFLAGS="$CFLAGS" | |
9426 | ||
9427 | # Set sane defaults for various variables | |
9428 | test -z "$CC" && CC=cc | |
9429 | test -z "$LTCC" && LTCC=$CC | |
9430 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9431 | test -z "$LD" && LD=ld | |
9432 | test -z "$ac_objext" && ac_objext=o | |
9433 | ||
9434 | for cc_temp in $compiler""; do | |
9435 | case $cc_temp in | |
9436 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9437 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9438 | \-*) ;; | |
9439 | *) break;; | |
9440 | esac | |
9441 | done | |
e6408286 | 9442 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 9443 | |
9444 | ||
9445 | # Only perform the check for file, if the check method requires it | |
9446 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9447 | case $deplibs_check_method in | |
9448 | file_magic*) | |
9449 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
cd9a469c | 9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
9451 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
f00f02a3 | 9452 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
cd9a469c | 9453 | $as_echo_n "(cached) " >&6 |
90e67cff | 9454 | else |
542f9784 | 9455 | case $MAGIC_CMD in |
9456 | [\\/*] | ?:[\\/]*) | |
9457 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9458 | ;; | |
9459 | *) | |
9460 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9461 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9462 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9463 | for ac_dir in $ac_dummy; do | |
9464 | IFS="$lt_save_ifs" | |
9465 | test -z "$ac_dir" && ac_dir=. | |
9466 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9467 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9468 | if test -n "$file_magic_test_file"; then | |
9469 | case $deplibs_check_method in | |
9470 | "file_magic "*) | |
9471 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9472 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9473 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9474 | $EGREP "$file_magic_regex" > /dev/null; then | |
9475 | : | |
9476 | else | |
9477 | cat <<_LT_EOF 1>&2 | |
90e67cff | 9478 | |
542f9784 | 9479 | *** Warning: the command libtool uses to detect shared libraries, |
9480 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9481 | *** The result is that libtool may fail to recognize shared libraries | |
9482 | *** as such. This will affect the creation of libtool libraries that | |
9483 | *** depend on shared libraries, but programs linked with such libtool | |
9484 | *** libraries will work regardless of this problem. Nevertheless, you | |
9485 | *** may want to report the problem to your system manager and/or to | |
9486 | *** bug-libtool@gnu.org | |
9487 | ||
9488 | _LT_EOF | |
9489 | fi ;; | |
9490 | esac | |
9491 | fi | |
9492 | break | |
9493 | fi | |
9494 | done | |
9495 | IFS="$lt_save_ifs" | |
9496 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9497 | ;; | |
9498 | esac | |
9499 | fi | |
9500 | ||
9501 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9502 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9504 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 9505 | else |
cd9a469c | 9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9507 | $as_echo "no" >&6; } | |
542f9784 | 9508 | fi |
9509 | ||
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9515 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
9517 | $as_echo_n "checking for file... " >&6; } | |
f00f02a3 | 9518 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
cd9a469c | 9519 | $as_echo_n "(cached) " >&6 |
542f9784 | 9520 | else |
9521 | case $MAGIC_CMD in | |
9522 | [\\/*] | ?:[\\/]*) | |
9523 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9524 | ;; | |
9525 | *) | |
9526 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9527 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9528 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9529 | for ac_dir in $ac_dummy; do | |
9530 | IFS="$lt_save_ifs" | |
9531 | test -z "$ac_dir" && ac_dir=. | |
9532 | if test -f $ac_dir/file; then | |
9533 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9534 | if test -n "$file_magic_test_file"; then | |
9535 | case $deplibs_check_method in | |
9536 | "file_magic "*) | |
9537 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9538 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9539 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9540 | $EGREP "$file_magic_regex" > /dev/null; then | |
9541 | : | |
9542 | else | |
9543 | cat <<_LT_EOF 1>&2 | |
9544 | ||
9545 | *** Warning: the command libtool uses to detect shared libraries, | |
9546 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9547 | *** The result is that libtool may fail to recognize shared libraries | |
9548 | *** as such. This will affect the creation of libtool libraries that | |
9549 | *** depend on shared libraries, but programs linked with such libtool | |
9550 | *** libraries will work regardless of this problem. Nevertheless, you | |
9551 | *** may want to report the problem to your system manager and/or to | |
9552 | *** bug-libtool@gnu.org | |
9553 | ||
9554 | _LT_EOF | |
9555 | fi ;; | |
9556 | esac | |
9557 | fi | |
9558 | break | |
9559 | fi | |
9560 | done | |
9561 | IFS="$lt_save_ifs" | |
9562 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9563 | ;; | |
9564 | esac | |
9565 | fi | |
9566 | ||
9567 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9568 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
9570 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 9571 | else |
cd9a469c | 9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9573 | $as_echo "no" >&6; } | |
542f9784 | 9574 | fi |
9575 | ||
9576 | ||
9577 | else | |
9578 | MAGIC_CMD=: | |
9579 | fi | |
9580 | fi | |
9581 | ||
9582 | fi | |
9583 | ;; | |
9584 | esac | |
9585 | ||
9586 | # Use C for the default configuration in the libtool script | |
9587 | ||
9588 | lt_save_CC="$CC" | |
9589 | ac_ext=c | |
9590 | ac_cpp='$CPP $CPPFLAGS' | |
9591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9594 | ||
9595 | ||
9596 | # Source file extension for C test sources. | |
9597 | ac_ext=c | |
9598 | ||
9599 | # Object file extension for compiled C test sources. | |
9600 | objext=o | |
9601 | objext=$objext | |
9602 | ||
9603 | # Code to be used in simple compile tests | |
9604 | lt_simple_compile_test_code="int some_variable = 0;" | |
9605 | ||
9606 | # Code to be used in simple link tests | |
9607 | lt_simple_link_test_code='int main(){return(0);}' | |
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | # If no C compiler was specified, use CC. | |
9616 | LTCC=${LTCC-"$CC"} | |
9617 | ||
9618 | # If no C compiler flags were specified, use CFLAGS. | |
9619 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9620 | ||
9621 | # Allow CC to be a program name with arguments. | |
9622 | compiler=$CC | |
9623 | ||
9624 | # Save the default compiler, since it gets overwritten when the other | |
9625 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9626 | compiler_DEFAULT=$CC | |
9627 | ||
9628 | # save warnings/boilerplate of simple test code | |
9629 | ac_outfile=conftest.$ac_objext | |
9630 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9631 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9632 | _lt_compiler_boilerplate=`cat conftest.err` | |
9633 | $RM conftest* | |
9634 | ||
9635 | ac_outfile=conftest.$ac_objext | |
9636 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9637 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9638 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 9639 | $RM -r conftest* |
542f9784 | 9640 | |
9641 | ||
9642 | ## CAVEAT EMPTOR: | |
9643 | ## There is no encapsulation within the following macros, do not change | |
9644 | ## the running order or otherwise move them around unless you know exactly | |
9645 | ## what you are doing... | |
9646 | if test -n "$compiler"; then | |
9647 | ||
9648 | lt_prog_compiler_no_builtin_flag= | |
9649 | ||
9650 | if test "$GCC" = yes; then | |
e6408286 | 9651 | case $cc_basename in |
9652 | nvcc*) | |
9653 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9654 | *) | |
9655 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9656 | esac | |
542f9784 | 9657 | |
cd9a469c | 9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9659 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
f00f02a3 | 9660 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
cd9a469c | 9661 | $as_echo_n "(cached) " >&6 |
542f9784 | 9662 | else |
9663 | lt_cv_prog_compiler_rtti_exceptions=no | |
9664 | ac_outfile=conftest.$ac_objext | |
9665 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9666 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9667 | # Insert the option either (1) after the last *FLAGS variable, or | |
9668 | # (2) before a word containing "conftest.", or (3) at the end. | |
9669 | # Note that $ac_compile itself does not contain backslashes and begins | |
9670 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9671 | # The option is referenced via a variable to avoid confusing sed. | |
9672 | lt_compile=`echo "$ac_compile" | $SED \ | |
9673 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9674 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9675 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9676 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9677 | (eval "$lt_compile" 2>conftest.err) |
9678 | ac_status=$? | |
9679 | cat conftest.err >&5 | |
e6408286 | 9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9681 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9682 | # The compiler can only warn and ignore the option if not recognized | |
9683 | # So say no if there are warnings other than the usual output. | |
e6408286 | 9684 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 9685 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9686 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9687 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9688 | fi | |
9689 | fi | |
9690 | $RM conftest* | |
9691 | ||
9692 | fi | |
cd9a469c | 9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9694 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
542f9784 | 9695 | |
9696 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9697 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9698 | else | |
9699 | : | |
9700 | fi | |
9701 | ||
9702 | fi | |
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | lt_prog_compiler_wl= | |
9710 | lt_prog_compiler_pic= | |
9711 | lt_prog_compiler_static= | |
9712 | ||
cd9a469c | 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9714 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 9715 | |
9716 | if test "$GCC" = yes; then | |
9717 | lt_prog_compiler_wl='-Wl,' | |
9718 | lt_prog_compiler_static='-static' | |
9719 | ||
9720 | case $host_os in | |
9721 | aix*) | |
9722 | # All AIX code is PIC. | |
9723 | if test "$host_cpu" = ia64; then | |
9724 | # AIX 5 now supports IA64 processor | |
9725 | lt_prog_compiler_static='-Bstatic' | |
9726 | fi | |
ccc0b0f9 | 9727 | lt_prog_compiler_pic='-fPIC' |
542f9784 | 9728 | ;; |
9729 | ||
9730 | amigaos*) | |
00aafda4 | 9731 | case $host_cpu in |
9732 | powerpc) | |
9733 | # see comment about AmigaOS4 .so support | |
9734 | lt_prog_compiler_pic='-fPIC' | |
9735 | ;; | |
9736 | m68k) | |
9737 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9738 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9739 | # like `-m68040'. | |
9740 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9741 | ;; | |
9742 | esac | |
542f9784 | 9743 | ;; |
9744 | ||
9745 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9746 | # PIC is the default for these OSes. | |
9747 | ;; | |
9748 | ||
00aafda4 | 9749 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9750 | # This hack is so that the source file can tell whether it is being |
9751 | # built for inclusion in a dll (and should export symbols for example). | |
9752 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9753 | # (--disable-auto-import) libraries | |
9754 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9755 | ;; | |
9756 | ||
9757 | darwin* | rhapsody*) | |
9758 | # PIC is the default on this platform | |
9759 | # Common symbols not allowed in MH_DYLIB files | |
9760 | lt_prog_compiler_pic='-fno-common' | |
9761 | ;; | |
9762 | ||
e6408286 | 9763 | haiku*) |
9764 | # PIC is the default for Haiku. | |
9765 | # The "-static" flag exists, but is broken. | |
9766 | lt_prog_compiler_static= | |
9767 | ;; | |
9768 | ||
542f9784 | 9769 | hpux*) |
00aafda4 | 9770 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9771 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9772 | # sets the default TLS model and affects inlining. | |
542f9784 | 9773 | case $host_cpu in |
00aafda4 | 9774 | hppa*64*) |
542f9784 | 9775 | # +Z the default |
9776 | ;; | |
9777 | *) | |
9778 | lt_prog_compiler_pic='-fPIC' | |
9779 | ;; | |
9780 | esac | |
9781 | ;; | |
9782 | ||
9783 | interix[3-9]*) | |
9784 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9785 | # Instead, we relocate shared libraries at runtime. | |
9786 | ;; | |
9787 | ||
9788 | msdosdjgpp*) | |
9789 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9790 | # on systems that don't support them. | |
9791 | lt_prog_compiler_can_build_shared=no | |
9792 | enable_shared=no | |
9793 | ;; | |
9794 | ||
9795 | *nto* | *qnx*) | |
9796 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9797 | # it will coredump. | |
9798 | lt_prog_compiler_pic='-fPIC -shared' | |
9799 | ;; | |
9800 | ||
9801 | sysv4*MP*) | |
9802 | if test -d /usr/nec; then | |
9803 | lt_prog_compiler_pic=-Kconform_pic | |
9804 | fi | |
9805 | ;; | |
9806 | ||
9807 | *) | |
9808 | lt_prog_compiler_pic='-fPIC' | |
9809 | ;; | |
9810 | esac | |
e6408286 | 9811 | |
9812 | case $cc_basename in | |
9813 | nvcc*) # Cuda Compiler Driver 2.2 | |
9814 | lt_prog_compiler_wl='-Xlinker ' | |
9815 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9816 | ;; | |
9817 | esac | |
542f9784 | 9818 | else |
9819 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9820 | case $host_os in | |
9821 | aix*) | |
9822 | lt_prog_compiler_wl='-Wl,' | |
9823 | if test "$host_cpu" = ia64; then | |
9824 | # AIX 5 now supports IA64 processor | |
9825 | lt_prog_compiler_static='-Bstatic' | |
9826 | else | |
9827 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9828 | fi | |
9829 | ;; | |
542f9784 | 9830 | |
00aafda4 | 9831 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9832 | # This hack is so that the source file can tell whether it is being |
9833 | # built for inclusion in a dll (and should export symbols for example). | |
9834 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9835 | ;; | |
9836 | ||
9837 | hpux9* | hpux10* | hpux11*) | |
9838 | lt_prog_compiler_wl='-Wl,' | |
9839 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9840 | # not for PA HP-UX. | |
9841 | case $host_cpu in | |
9842 | hppa*64*|ia64*) | |
9843 | # +Z the default | |
9844 | ;; | |
9845 | *) | |
9846 | lt_prog_compiler_pic='+Z' | |
9847 | ;; | |
9848 | esac | |
9849 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9850 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9851 | ;; | |
9852 | ||
9853 | irix5* | irix6* | nonstopux*) | |
9854 | lt_prog_compiler_wl='-Wl,' | |
9855 | # PIC (with -KPIC) is the default. | |
9856 | lt_prog_compiler_static='-non_shared' | |
9857 | ;; | |
9858 | ||
9af964d4 | 9859 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 9860 | case $cc_basename in |
00aafda4 | 9861 | # old Intel for x86_64 which still supported -KPIC. |
9862 | ecc*) | |
542f9784 | 9863 | lt_prog_compiler_wl='-Wl,' |
9864 | lt_prog_compiler_pic='-KPIC' | |
9865 | lt_prog_compiler_static='-static' | |
9866 | ;; | |
00aafda4 | 9867 | # icc used to be incompatible with GCC. |
9868 | # ICC 10 doesn't accept -KPIC any more. | |
9869 | icc* | ifort*) | |
9870 | lt_prog_compiler_wl='-Wl,' | |
9871 | lt_prog_compiler_pic='-fPIC' | |
9872 | lt_prog_compiler_static='-static' | |
9873 | ;; | |
9874 | # Lahey Fortran 8.1. | |
9875 | lf95*) | |
9876 | lt_prog_compiler_wl='-Wl,' | |
9877 | lt_prog_compiler_pic='--shared' | |
9878 | lt_prog_compiler_static='--static' | |
9879 | ;; | |
e6408286 | 9880 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 9881 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9882 | # which looks to be a dead project) | |
9883 | lt_prog_compiler_wl='-Wl,' | |
9884 | lt_prog_compiler_pic='-fpic' | |
9885 | lt_prog_compiler_static='-Bstatic' | |
9886 | ;; | |
9887 | ccc*) | |
9888 | lt_prog_compiler_wl='-Wl,' | |
9889 | # All Alpha code is PIC. | |
9890 | lt_prog_compiler_static='-non_shared' | |
9891 | ;; | |
e6408286 | 9892 | xl* | bgxl* | bgf* | mpixl*) |
9893 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 9894 | lt_prog_compiler_wl='-Wl,' |
9895 | lt_prog_compiler_pic='-qpic' | |
9896 | lt_prog_compiler_static='-qstaticlink' | |
9897 | ;; | |
542f9784 | 9898 | *) |
9899 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 9900 | *Sun\ F* | *Sun*Fortran*) |
9901 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 9902 | lt_prog_compiler_pic='-KPIC' |
9903 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9904 | lt_prog_compiler_wl='' |
542f9784 | 9905 | ;; |
e6408286 | 9906 | *Sun\ C*) |
9907 | # Sun C 5.9 | |
542f9784 | 9908 | lt_prog_compiler_pic='-KPIC' |
9909 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9910 | lt_prog_compiler_wl='-Wl,' |
542f9784 | 9911 | ;; |
9912 | esac | |
9913 | ;; | |
9914 | esac | |
9915 | ;; | |
9916 | ||
9917 | newsos6) | |
9918 | lt_prog_compiler_pic='-KPIC' | |
9919 | lt_prog_compiler_static='-Bstatic' | |
9920 | ;; | |
9921 | ||
9922 | *nto* | *qnx*) | |
9923 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9924 | # it will coredump. | |
9925 | lt_prog_compiler_pic='-fPIC -shared' | |
9926 | ;; | |
9927 | ||
9928 | osf3* | osf4* | osf5*) | |
9929 | lt_prog_compiler_wl='-Wl,' | |
9930 | # All OSF/1 code is PIC. | |
9931 | lt_prog_compiler_static='-non_shared' | |
9932 | ;; | |
9933 | ||
9934 | rdos*) | |
9935 | lt_prog_compiler_static='-non_shared' | |
9936 | ;; | |
9937 | ||
9938 | solaris*) | |
9939 | lt_prog_compiler_pic='-KPIC' | |
9940 | lt_prog_compiler_static='-Bstatic' | |
9941 | case $cc_basename in | |
9942 | f77* | f90* | f95*) | |
9943 | lt_prog_compiler_wl='-Qoption ld ';; | |
9944 | *) | |
9945 | lt_prog_compiler_wl='-Wl,';; | |
9946 | esac | |
9947 | ;; | |
9948 | ||
9949 | sunos4*) | |
9950 | lt_prog_compiler_wl='-Qoption ld ' | |
9951 | lt_prog_compiler_pic='-PIC' | |
9952 | lt_prog_compiler_static='-Bstatic' | |
9953 | ;; | |
9954 | ||
9955 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9956 | lt_prog_compiler_wl='-Wl,' | |
9957 | lt_prog_compiler_pic='-KPIC' | |
9958 | lt_prog_compiler_static='-Bstatic' | |
9959 | ;; | |
9960 | ||
9961 | sysv4*MP*) | |
9962 | if test -d /usr/nec ;then | |
9963 | lt_prog_compiler_pic='-Kconform_pic' | |
9964 | lt_prog_compiler_static='-Bstatic' | |
9965 | fi | |
9966 | ;; | |
9967 | ||
9968 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9969 | lt_prog_compiler_wl='-Wl,' | |
9970 | lt_prog_compiler_pic='-KPIC' | |
9971 | lt_prog_compiler_static='-Bstatic' | |
9972 | ;; | |
9973 | ||
9974 | unicos*) | |
9975 | lt_prog_compiler_wl='-Wl,' | |
9976 | lt_prog_compiler_can_build_shared=no | |
9977 | ;; | |
9978 | ||
9979 | uts4*) | |
9980 | lt_prog_compiler_pic='-pic' | |
9981 | lt_prog_compiler_static='-Bstatic' | |
9982 | ;; | |
9983 | ||
9984 | *) | |
9985 | lt_prog_compiler_can_build_shared=no | |
9986 | ;; | |
9987 | esac | |
9988 | fi | |
9989 | ||
9990 | case $host_os in | |
9991 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9992 | *djgpp*) | |
9993 | lt_prog_compiler_pic= | |
9994 | ;; | |
9995 | *) | |
9996 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9997 | ;; | |
9998 | esac | |
cd9a469c | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10000 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
542f9784 | 10001 | |
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | # | |
10008 | # Check to make sure the PIC flag actually works. | |
10009 | # | |
10010 | if test -n "$lt_prog_compiler_pic"; then | |
cd9a469c | 10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10012 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
f00f02a3 | 10013 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
cd9a469c | 10014 | $as_echo_n "(cached) " >&6 |
542f9784 | 10015 | else |
00aafda4 | 10016 | lt_cv_prog_compiler_pic_works=no |
542f9784 | 10017 | ac_outfile=conftest.$ac_objext |
10018 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10019 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10020 | # Insert the option either (1) after the last *FLAGS variable, or | |
10021 | # (2) before a word containing "conftest.", or (3) at the end. | |
10022 | # Note that $ac_compile itself does not contain backslashes and begins | |
10023 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10024 | # The option is referenced via a variable to avoid confusing sed. | |
10025 | lt_compile=`echo "$ac_compile" | $SED \ | |
10026 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10027 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10028 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 10029 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 10030 | (eval "$lt_compile" 2>conftest.err) |
10031 | ac_status=$? | |
10032 | cat conftest.err >&5 | |
e6408286 | 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 10034 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10035 | # The compiler can only warn and ignore the option if not recognized | |
10036 | # So say no if there are warnings other than the usual output. | |
e6408286 | 10037 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 10038 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10039 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 10040 | lt_cv_prog_compiler_pic_works=yes |
542f9784 | 10041 | fi |
10042 | fi | |
10043 | $RM conftest* | |
10044 | ||
10045 | fi | |
cd9a469c | 10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10047 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
542f9784 | 10048 | |
00aafda4 | 10049 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
542f9784 | 10050 | case $lt_prog_compiler_pic in |
10051 | "" | " "*) ;; | |
10052 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10053 | esac | |
10054 | else | |
10055 | lt_prog_compiler_pic= | |
10056 | lt_prog_compiler_can_build_shared=no | |
10057 | fi | |
10058 | ||
10059 | fi | |
10060 | ||
10061 | ||
10062 | ||
10063 | ||
10064 | ||
10065 | ||
10066 | # | |
10067 | # Check to make sure the static flag actually works. | |
10068 | # | |
10069 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
cd9a469c | 10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10071 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 10072 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
cd9a469c | 10073 | $as_echo_n "(cached) " >&6 |
542f9784 | 10074 | else |
00aafda4 | 10075 | lt_cv_prog_compiler_static_works=no |
542f9784 | 10076 | save_LDFLAGS="$LDFLAGS" |
10077 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10078 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10079 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10080 | # The linker can only warn and ignore the option if not recognized | |
10081 | # So say no if there are warnings | |
10082 | if test -s conftest.err; then | |
10083 | # Append any errors to the config.log. | |
10084 | cat conftest.err 1>&5 | |
e6408286 | 10085 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 10086 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10087 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 10088 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 10089 | fi |
10090 | else | |
00aafda4 | 10091 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 10092 | fi |
10093 | fi | |
00aafda4 | 10094 | $RM -r conftest* |
542f9784 | 10095 | LDFLAGS="$save_LDFLAGS" |
10096 | ||
10097 | fi | |
cd9a469c | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10099 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
542f9784 | 10100 | |
00aafda4 | 10101 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
542f9784 | 10102 | : |
10103 | else | |
10104 | lt_prog_compiler_static= | |
10105 | fi | |
10106 | ||
10107 | ||
10108 | ||
10109 | ||
10110 | ||
10111 | ||
10112 | ||
cd9a469c | 10113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10114 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 10115 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
cd9a469c | 10116 | $as_echo_n "(cached) " >&6 |
542f9784 | 10117 | else |
10118 | lt_cv_prog_compiler_c_o=no | |
10119 | $RM -r conftest 2>/dev/null | |
10120 | mkdir conftest | |
10121 | cd conftest | |
10122 | mkdir out | |
10123 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10124 | ||
10125 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10126 | # Insert the option either (1) after the last *FLAGS variable, or | |
10127 | # (2) before a word containing "conftest.", or (3) at the end. | |
10128 | # Note that $ac_compile itself does not contain backslashes and begins | |
10129 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10130 | lt_compile=`echo "$ac_compile" | $SED \ | |
10131 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10132 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10133 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 10134 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 10135 | (eval "$lt_compile" 2>out/conftest.err) |
10136 | ac_status=$? | |
10137 | cat out/conftest.err >&5 | |
e6408286 | 10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 10139 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10140 | then | |
10141 | # The compiler can only warn and ignore the option if not recognized | |
10142 | # So say no if there are warnings | |
e6408286 | 10143 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 10144 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10145 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10146 | lt_cv_prog_compiler_c_o=yes | |
10147 | fi | |
10148 | fi | |
10149 | chmod u+w . 2>&5 | |
10150 | $RM conftest* | |
10151 | # SGI C++ compiler will create directory out/ii_files/ for | |
10152 | # template instantiation | |
10153 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10154 | $RM out/* && rmdir out | |
10155 | cd .. | |
10156 | $RM -r conftest | |
10157 | $RM conftest* | |
10158 | ||
10159 | fi | |
cd9a469c | 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10161 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 10162 | |
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
cd9a469c | 10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10169 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 10170 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
cd9a469c | 10171 | $as_echo_n "(cached) " >&6 |
542f9784 | 10172 | else |
10173 | lt_cv_prog_compiler_c_o=no | |
10174 | $RM -r conftest 2>/dev/null | |
10175 | mkdir conftest | |
10176 | cd conftest | |
10177 | mkdir out | |
10178 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10179 | ||
10180 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10181 | # Insert the option either (1) after the last *FLAGS variable, or | |
10182 | # (2) before a word containing "conftest.", or (3) at the end. | |
10183 | # Note that $ac_compile itself does not contain backslashes and begins | |
10184 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10185 | lt_compile=`echo "$ac_compile" | $SED \ | |
10186 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10187 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10188 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 10189 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 10190 | (eval "$lt_compile" 2>out/conftest.err) |
10191 | ac_status=$? | |
10192 | cat out/conftest.err >&5 | |
e6408286 | 10193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 10194 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10195 | then | |
10196 | # The compiler can only warn and ignore the option if not recognized | |
10197 | # So say no if there are warnings | |
e6408286 | 10198 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 10199 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10200 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10201 | lt_cv_prog_compiler_c_o=yes | |
10202 | fi | |
10203 | fi | |
10204 | chmod u+w . 2>&5 | |
10205 | $RM conftest* | |
10206 | # SGI C++ compiler will create directory out/ii_files/ for | |
10207 | # template instantiation | |
10208 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10209 | $RM out/* && rmdir out | |
10210 | cd .. | |
10211 | $RM -r conftest | |
10212 | $RM conftest* | |
10213 | ||
10214 | fi | |
cd9a469c | 10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10216 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 10217 | |
10218 | ||
10219 | ||
10220 | ||
10221 | hard_links="nottested" | |
10222 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10223 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10225 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 10226 | hard_links=yes |
10227 | $RM conftest* | |
10228 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10229 | touch conftest.a | |
10230 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10231 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10233 | $as_echo "$hard_links" >&6; } | |
542f9784 | 10234 | if test "$hard_links" = no; then |
cd9a469c | 10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10236 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 10237 | need_locks=warn |
10238 | fi | |
10239 | else | |
10240 | need_locks=no | |
10241 | fi | |
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
cd9a469c | 10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10249 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 10250 | |
10251 | runpath_var= | |
10252 | allow_undefined_flag= | |
10253 | always_export_symbols=no | |
10254 | archive_cmds= | |
10255 | archive_expsym_cmds= | |
10256 | compiler_needs_object=no | |
10257 | enable_shared_with_static_runtimes=no | |
10258 | export_dynamic_flag_spec= | |
10259 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10260 | hardcode_automatic=no | |
10261 | hardcode_direct=no | |
10262 | hardcode_direct_absolute=no | |
10263 | hardcode_libdir_flag_spec= | |
10264 | hardcode_libdir_flag_spec_ld= | |
10265 | hardcode_libdir_separator= | |
10266 | hardcode_minus_L=no | |
10267 | hardcode_shlibpath_var=unsupported | |
10268 | inherit_rpath=no | |
10269 | link_all_deplibs=unknown | |
10270 | module_cmds= | |
10271 | module_expsym_cmds= | |
10272 | old_archive_from_new_cmds= | |
10273 | old_archive_from_expsyms_cmds= | |
10274 | thread_safe_flag_spec= | |
10275 | whole_archive_flag_spec= | |
10276 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10277 | # included in the symbol list | |
10278 | include_expsyms= | |
10279 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10280 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10281 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10282 | # as well as any symbol that contains `d'. | |
00aafda4 | 10283 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 10284 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10285 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10286 | # the symbol is explicitly referenced. Since portable code cannot | |
10287 | # rely on this symbol name, it's probably fine to never include it in | |
10288 | # preloaded symbol tables. | |
00aafda4 | 10289 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 10290 | extract_expsyms_cmds= |
10291 | ||
10292 | case $host_os in | |
00aafda4 | 10293 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10294 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10295 | # When not using gcc, we currently assume that we are using | |
10296 | # Microsoft Visual C++. | |
10297 | if test "$GCC" != yes; then | |
10298 | with_gnu_ld=no | |
10299 | fi | |
10300 | ;; | |
10301 | interix*) | |
10302 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10303 | with_gnu_ld=yes | |
10304 | ;; | |
10305 | openbsd*) | |
10306 | with_gnu_ld=no | |
10307 | ;; | |
10308 | esac | |
10309 | ||
10310 | ld_shlibs=yes | |
e6408286 | 10311 | |
10312 | # On some targets, GNU ld is compatible enough with the native linker | |
10313 | # that we're better off using the native interface for both. | |
10314 | lt_use_gnu_ld_interface=no | |
542f9784 | 10315 | if test "$with_gnu_ld" = yes; then |
e6408286 | 10316 | case $host_os in |
10317 | aix*) | |
10318 | # The AIX port of GNU ld has always aspired to compatibility | |
10319 | # with the native linker. However, as the warning in the GNU ld | |
10320 | # block says, versions before 2.19.5* couldn't really create working | |
10321 | # shared libraries, regardless of the interface used. | |
10322 | case `$LD -v 2>&1` in | |
10323 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10324 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10325 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10326 | *) | |
10327 | lt_use_gnu_ld_interface=yes | |
10328 | ;; | |
10329 | esac | |
10330 | ;; | |
10331 | *) | |
10332 | lt_use_gnu_ld_interface=yes | |
10333 | ;; | |
10334 | esac | |
10335 | fi | |
10336 | ||
10337 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 10338 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10339 | wlarc='${wl}' | |
10340 | ||
10341 | # Set some defaults for GNU ld with shared library support. These | |
10342 | # are reset later if shared libraries are not supported. Putting them | |
10343 | # here allows them to be overridden if necessary. | |
10344 | runpath_var=LD_RUN_PATH | |
10345 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10346 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10347 | # ancient GNU ld didn't support --whole-archive et. al. | |
10348 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10349 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10350 | else | |
10351 | whole_archive_flag_spec= | |
10352 | fi | |
10353 | supports_anon_versioning=no | |
10354 | case `$LD -v 2>&1` in | |
e6408286 | 10355 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 10356 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10357 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10358 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10359 | *\ 2.11.*) ;; # other 2.11 versions | |
10360 | *) supports_anon_versioning=yes ;; | |
10361 | esac | |
10362 | ||
10363 | # See if GNU ld supports shared libraries. | |
10364 | case $host_os in | |
21e07d2f | 10365 | aix[3-9]*) |
542f9784 | 10366 | # On AIX/PPC, the GNU linker is very broken |
10367 | if test "$host_cpu" != ia64; then | |
10368 | ld_shlibs=no | |
10369 | cat <<_LT_EOF 1>&2 | |
10370 | ||
e6408286 | 10371 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 10372 | *** to be unable to reliably create shared libraries on AIX. |
10373 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 10374 | *** really care for shared libraries, you may want to install binutils |
10375 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10376 | *** You will then need to restart the configuration process. | |
542f9784 | 10377 | |
10378 | _LT_EOF | |
10379 | fi | |
10380 | ;; | |
10381 | ||
10382 | amigaos*) | |
00aafda4 | 10383 | case $host_cpu in |
10384 | powerpc) | |
10385 | # see comment about AmigaOS4 .so support | |
10386 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10387 | archive_expsym_cmds='' | |
10388 | ;; | |
10389 | m68k) | |
10390 | 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)' | |
10391 | hardcode_libdir_flag_spec='-L$libdir' | |
10392 | hardcode_minus_L=yes | |
10393 | ;; | |
10394 | esac | |
542f9784 | 10395 | ;; |
10396 | ||
10397 | beos*) | |
10398 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10399 | allow_undefined_flag=unsupported | |
10400 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10401 | # support --undefined. This deserves some investigation. FIXME | |
10402 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10403 | else | |
10404 | ld_shlibs=no | |
10405 | fi | |
10406 | ;; | |
10407 | ||
00aafda4 | 10408 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10409 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10410 | # as there is no search path for DLLs. | |
10411 | hardcode_libdir_flag_spec='-L$libdir' | |
e6408286 | 10412 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
542f9784 | 10413 | allow_undefined_flag=unsupported |
10414 | always_export_symbols=no | |
10415 | enable_shared_with_static_runtimes=yes | |
10416 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10417 | ||
10418 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10419 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10420 | # If the export-symbols file already is a .def file (1st line | |
10421 | # is EXPORTS), use it as is; otherwise, prepend... | |
10422 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10423 | cp $export_symbols $output_objdir/$soname.def; | |
10424 | else | |
10425 | echo EXPORTS > $output_objdir/$soname.def; | |
10426 | cat $export_symbols >> $output_objdir/$soname.def; | |
10427 | fi~ | |
10428 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10429 | else | |
10430 | ld_shlibs=no | |
10431 | fi | |
10432 | ;; | |
10433 | ||
e6408286 | 10434 | haiku*) |
10435 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10436 | link_all_deplibs=yes | |
10437 | ;; | |
10438 | ||
542f9784 | 10439 | interix[3-9]*) |
10440 | hardcode_direct=no | |
10441 | hardcode_shlibpath_var=no | |
10442 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10443 | export_dynamic_flag_spec='${wl}-E' | |
10444 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10445 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10446 | # default) and relocated if they conflict, which is a slow very memory | |
10447 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10448 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10449 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10450 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10451 | 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' | |
10452 | ;; | |
10453 | ||
9af964d4 | 10454 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 10455 | tmp_diet=no |
10456 | if test "$host_os" = linux-dietlibc; then | |
10457 | case $cc_basename in | |
10458 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10459 | esac | |
10460 | fi | |
10461 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10462 | && test "$tmp_diet" = no | |
10463 | then | |
4e8a08d4 | 10464 | tmp_addflag=' $pic_flag' |
00aafda4 | 10465 | tmp_sharedflag='-shared' |
542f9784 | 10466 | case $cc_basename,$host_cpu in |
10467 | pgcc*) # Portland Group C compiler | |
e6408286 | 10468 | 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' |
542f9784 | 10469 | tmp_addflag=' $pic_flag' |
10470 | ;; | |
e6408286 | 10471 | pgf77* | pgf90* | pgf95* | pgfortran*) |
10472 | # Portland Group f77 and f90 compilers | |
10473 | 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' | |
542f9784 | 10474 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10475 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10476 | tmp_addflag=' -i_dynamic' ;; | |
10477 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10478 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10479 | ifc* | ifort*) # Intel Fortran compiler | |
10480 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 10481 | lf95*) # Lahey Fortran 8.1 |
10482 | whole_archive_flag_spec= | |
10483 | tmp_sharedflag='--shared' ;; | |
e6408286 | 10484 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 10485 | tmp_sharedflag='-qmkshrobj' |
10486 | tmp_addflag= ;; | |
e6408286 | 10487 | nvcc*) # Cuda Compiler Driver 2.2 |
10488 | 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' | |
10489 | compiler_needs_object=yes | |
10490 | ;; | |
542f9784 | 10491 | esac |
10492 | case `$CC -V 2>&1 | sed 5q` in | |
10493 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 10494 | 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' |
542f9784 | 10495 | compiler_needs_object=yes |
10496 | tmp_sharedflag='-G' ;; | |
10497 | *Sun\ F*) # Sun Fortran 8.3 | |
10498 | tmp_sharedflag='-G' ;; | |
542f9784 | 10499 | esac |
10500 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10501 | ||
10502 | if test "x$supports_anon_versioning" = xyes; then | |
10503 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10504 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10505 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10506 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10507 | fi | |
00aafda4 | 10508 | |
10509 | case $cc_basename in | |
e6408286 | 10510 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 10511 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10512 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10513 | hardcode_libdir_flag_spec= | |
10514 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10515 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10516 | if test "x$supports_anon_versioning" = xyes; then | |
10517 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10518 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10519 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10520 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10521 | fi | |
10522 | ;; | |
10523 | esac | |
542f9784 | 10524 | else |
10525 | ld_shlibs=no | |
10526 | fi | |
10527 | ;; | |
10528 | ||
10529 | netbsd*) | |
10530 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10531 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10532 | wlarc= | |
10533 | else | |
10534 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10535 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10536 | fi | |
10537 | ;; | |
10538 | ||
10539 | solaris*) | |
10540 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10541 | ld_shlibs=no | |
10542 | cat <<_LT_EOF 1>&2 | |
10543 | ||
10544 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10545 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10546 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10547 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10548 | *** your PATH or compiler configuration so that the native linker is | |
10549 | *** used, and then restart. | |
10550 | ||
10551 | _LT_EOF | |
10552 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10553 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10554 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10555 | else | |
10556 | ld_shlibs=no | |
10557 | fi | |
10558 | ;; | |
10559 | ||
10560 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10561 | case `$LD -v 2>&1` in | |
10562 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10563 | ld_shlibs=no | |
10564 | cat <<_LT_EOF 1>&2 | |
10565 | ||
10566 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10567 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10568 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10569 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10570 | *** your PATH or compiler configuration so that the native linker is | |
10571 | *** used, and then restart. | |
10572 | ||
10573 | _LT_EOF | |
10574 | ;; | |
10575 | *) | |
10576 | # For security reasons, it is highly recommended that you always | |
10577 | # use absolute paths for naming shared libraries, and exclude the | |
10578 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10579 | # requires that you compile everything twice, which is a pain. | |
10580 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10581 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10582 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10583 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10584 | else | |
10585 | ld_shlibs=no | |
10586 | fi | |
10587 | ;; | |
10588 | esac | |
10589 | ;; | |
10590 | ||
10591 | sunos4*) | |
10592 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10593 | wlarc= | |
10594 | hardcode_direct=yes | |
10595 | hardcode_shlibpath_var=no | |
10596 | ;; | |
10597 | ||
10598 | *) | |
10599 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10600 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10601 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10602 | else | |
10603 | ld_shlibs=no | |
10604 | fi | |
10605 | ;; | |
10606 | esac | |
10607 | ||
10608 | if test "$ld_shlibs" = no; then | |
10609 | runpath_var= | |
10610 | hardcode_libdir_flag_spec= | |
10611 | export_dynamic_flag_spec= | |
10612 | whole_archive_flag_spec= | |
10613 | fi | |
10614 | else | |
10615 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10616 | case $host_os in | |
10617 | aix3*) | |
10618 | allow_undefined_flag=unsupported | |
10619 | always_export_symbols=yes | |
10620 | 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' | |
10621 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10622 | # are no directories specified by -L. | |
10623 | hardcode_minus_L=yes | |
10624 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10625 | # Neither direct hardcoding nor static linking is supported with a | |
10626 | # broken collect2. | |
10627 | hardcode_direct=unsupported | |
10628 | fi | |
10629 | ;; | |
10630 | ||
21e07d2f | 10631 | aix[4-9]*) |
542f9784 | 10632 | if test "$host_cpu" = ia64; then |
10633 | # On IA64, the linker does run time linking by default, so we don't | |
10634 | # have to do anything special. | |
10635 | aix_use_runtimelinking=no | |
10636 | exp_sym_flag='-Bexport' | |
10637 | no_entry_flag="" | |
10638 | else | |
10639 | # If we're using GNU nm, then we don't want the "-C" option. | |
10640 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 10641 | # Also, AIX nm treats weak defined symbols like other global |
10642 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 10643 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 10644 | 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' |
542f9784 | 10645 | else |
8c596dcc | 10646 | 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' |
542f9784 | 10647 | fi |
10648 | aix_use_runtimelinking=no | |
10649 | ||
10650 | # Test if we are trying to use run time linking or normal | |
10651 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10652 | # need to do runtime linking. | |
21e07d2f | 10653 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 10654 | for ld_flag in $LDFLAGS; do |
10655 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10656 | aix_use_runtimelinking=yes | |
10657 | break | |
10658 | fi | |
10659 | done | |
10660 | ;; | |
10661 | esac | |
10662 | ||
10663 | exp_sym_flag='-bexport' | |
10664 | no_entry_flag='-bnoentry' | |
10665 | fi | |
10666 | ||
10667 | # When large executables or shared objects are built, AIX ld can | |
10668 | # have problems creating the table of contents. If linking a library | |
10669 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10670 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10671 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10672 | ||
10673 | archive_cmds='' | |
10674 | hardcode_direct=yes | |
10675 | hardcode_direct_absolute=yes | |
10676 | hardcode_libdir_separator=':' | |
10677 | link_all_deplibs=yes | |
10678 | file_list_spec='${wl}-f,' | |
10679 | ||
10680 | if test "$GCC" = yes; then | |
10681 | case $host_os in aix4.[012]|aix4.[012].*) | |
10682 | # We only want to do this on AIX 4.2 and lower, the check | |
10683 | # below for broken collect2 doesn't work under 4.3+ | |
10684 | collect2name=`${CC} -print-prog-name=collect2` | |
10685 | if test -f "$collect2name" && | |
10686 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10687 | then | |
10688 | # We have reworked collect2 | |
10689 | : | |
10690 | else | |
10691 | # We have old collect2 | |
10692 | hardcode_direct=unsupported | |
10693 | # It fails to find uninstalled libraries when the uninstalled | |
10694 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10695 | # to unsupported forces relinking | |
10696 | hardcode_minus_L=yes | |
10697 | hardcode_libdir_flag_spec='-L$libdir' | |
10698 | hardcode_libdir_separator= | |
10699 | fi | |
10700 | ;; | |
10701 | esac | |
10702 | shared_flag='-shared' | |
10703 | if test "$aix_use_runtimelinking" = yes; then | |
10704 | shared_flag="$shared_flag "'${wl}-G' | |
10705 | fi | |
10706 | else | |
10707 | # not using gcc | |
10708 | if test "$host_cpu" = ia64; then | |
10709 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10710 | # chokes on -Wl,-G. The following line is correct: | |
10711 | shared_flag='-G' | |
10712 | else | |
10713 | if test "$aix_use_runtimelinking" = yes; then | |
10714 | shared_flag='${wl}-G' | |
10715 | else | |
10716 | shared_flag='${wl}-bM:SRE' | |
10717 | fi | |
10718 | fi | |
10719 | fi | |
10720 | ||
00aafda4 | 10721 | export_dynamic_flag_spec='${wl}-bexpall' |
542f9784 | 10722 | # It seems that -bexpall does not export symbols beginning with |
10723 | # underscore (_), so it is better to generate a list of symbols to export. | |
10724 | always_export_symbols=yes | |
10725 | if test "$aix_use_runtimelinking" = yes; then | |
10726 | # Warning - without using the other runtime loading flags (-brtl), | |
10727 | # -berok will link without error, but may produce a broken library. | |
10728 | allow_undefined_flag='-berok' | |
10729 | # Determine the default libpath from the value encoded in an | |
10730 | # empty executable. | |
10731 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 10732 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10733 | fi |
cd9a469c | 10734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10735 | /* end confdefs.h. */ |
10736 | ||
10737 | int | |
10738 | main () | |
10739 | { | |
10740 | ||
10741 | ; | |
10742 | return 0; | |
10743 | } | |
10744 | _ACEOF | |
cd9a469c | 10745 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10746 | |
10747 | lt_aix_libpath_sed=' | |
10748 | /Import File Strings/,/^$/ { | |
10749 | /^0/ { | |
10750 | s/^0 *\(.*\)$/\1/ | |
10751 | p | |
10752 | } | |
10753 | }' | |
10754 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10755 | # Check for a 64-bit object if we didn't find anything. | |
10756 | if test -z "$aix_libpath"; then | |
10757 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10758 | fi | |
542f9784 | 10759 | fi |
cd9a469c | 10760 | rm -f core conftest.err conftest.$ac_objext \ |
10761 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10762 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10763 | ||
10764 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 10765 | 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" |
542f9784 | 10766 | else |
10767 | if test "$host_cpu" = ia64; then | |
10768 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10769 | allow_undefined_flag="-z nodefs" | |
10770 | 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" | |
10771 | else | |
10772 | # Determine the default libpath from the value encoded in an | |
10773 | # empty executable. | |
10774 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 10775 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10776 | fi |
cd9a469c | 10777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10778 | /* end confdefs.h. */ |
10779 | ||
10780 | int | |
10781 | main () | |
10782 | { | |
10783 | ||
10784 | ; | |
10785 | return 0; | |
10786 | } | |
10787 | _ACEOF | |
cd9a469c | 10788 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10789 | |
10790 | lt_aix_libpath_sed=' | |
10791 | /Import File Strings/,/^$/ { | |
10792 | /^0/ { | |
10793 | s/^0 *\(.*\)$/\1/ | |
10794 | p | |
10795 | } | |
10796 | }' | |
10797 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10798 | # Check for a 64-bit object if we didn't find anything. | |
10799 | if test -z "$aix_libpath"; then | |
10800 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10801 | fi | |
542f9784 | 10802 | fi |
cd9a469c | 10803 | rm -f core conftest.err conftest.$ac_objext \ |
10804 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10805 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10806 | ||
10807 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10808 | # Warning - without using the other run time loading flags, | |
10809 | # -berok will link without error, but may produce a broken library. | |
10810 | no_undefined_flag=' ${wl}-bernotok' | |
10811 | allow_undefined_flag=' ${wl}-berok' | |
e6408286 | 10812 | if test "$with_gnu_ld" = yes; then |
10813 | # We only use this code for GNU lds that support --whole-archive. | |
10814 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10815 | else | |
10816 | # Exported symbols can be pulled into shared objects from archives | |
10817 | whole_archive_flag_spec='$convenience' | |
10818 | fi | |
542f9784 | 10819 | archive_cmds_need_lc=yes |
10820 | # This is similar to how AIX traditionally builds its shared libraries. | |
10821 | 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' | |
10822 | fi | |
10823 | fi | |
10824 | ;; | |
10825 | ||
10826 | amigaos*) | |
00aafda4 | 10827 | case $host_cpu in |
10828 | powerpc) | |
10829 | # see comment about AmigaOS4 .so support | |
10830 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10831 | archive_expsym_cmds='' | |
10832 | ;; | |
10833 | m68k) | |
10834 | 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)' | |
10835 | hardcode_libdir_flag_spec='-L$libdir' | |
10836 | hardcode_minus_L=yes | |
10837 | ;; | |
10838 | esac | |
542f9784 | 10839 | ;; |
10840 | ||
10841 | bsdi[45]*) | |
10842 | export_dynamic_flag_spec=-rdynamic | |
10843 | ;; | |
10844 | ||
00aafda4 | 10845 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10846 | # When not using gcc, we currently assume that we are using |
10847 | # Microsoft Visual C++. | |
10848 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10849 | # no search path for DLLs. | |
10850 | hardcode_libdir_flag_spec=' ' | |
10851 | allow_undefined_flag=unsupported | |
10852 | # Tell ltmain to make .lib files, not .a files. | |
10853 | libext=lib | |
10854 | # Tell ltmain to make .dll files, not .so files. | |
10855 | shrext_cmds=".dll" | |
10856 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 10857 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 10858 | # The linker will automatically build a .lib file if we build a DLL. |
10859 | old_archive_from_new_cmds='true' | |
10860 | # FIXME: Should let the user specify the lib program. | |
10861 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10862 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10863 | enable_shared_with_static_runtimes=yes | |
10864 | ;; | |
10865 | ||
10866 | darwin* | rhapsody*) | |
542f9784 | 10867 | |
00aafda4 | 10868 | |
10869 | archive_cmds_need_lc=no | |
10870 | hardcode_direct=no | |
10871 | hardcode_automatic=yes | |
10872 | hardcode_shlibpath_var=unsupported | |
e6408286 | 10873 | if test "$lt_cv_ld_force_load" = "yes"; then |
10874 | 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\"`' | |
10875 | else | |
10876 | whole_archive_flag_spec='' | |
10877 | fi | |
00aafda4 | 10878 | link_all_deplibs=yes |
10879 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10880 | case $cc_basename in | |
10881 | ifort*) _lt_dar_can_shared=yes ;; | |
10882 | *) _lt_dar_can_shared=$GCC ;; | |
10883 | esac | |
10884 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 10885 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 10886 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10887 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10888 | 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}" | |
10889 | 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}" | |
10890 | ||
10891 | else | |
10892 | ld_shlibs=no | |
10893 | fi | |
10894 | ||
542f9784 | 10895 | ;; |
10896 | ||
10897 | dgux*) | |
10898 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10899 | hardcode_libdir_flag_spec='-L$libdir' | |
10900 | hardcode_shlibpath_var=no | |
10901 | ;; | |
10902 | ||
542f9784 | 10903 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10904 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10905 | # does not break anything, and helps significantly (at the cost of a little | |
10906 | # extra space). | |
10907 | freebsd2.2*) | |
10908 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10909 | hardcode_libdir_flag_spec='-R$libdir' | |
10910 | hardcode_direct=yes | |
10911 | hardcode_shlibpath_var=no | |
10912 | ;; | |
10913 | ||
10914 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 10915 | freebsd2.*) |
542f9784 | 10916 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10917 | hardcode_direct=yes | |
10918 | hardcode_minus_L=yes | |
10919 | hardcode_shlibpath_var=no | |
10920 | ;; | |
10921 | ||
10922 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10923 | freebsd* | dragonfly*) | |
10924 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10925 | hardcode_libdir_flag_spec='-R$libdir' | |
10926 | hardcode_direct=yes | |
10927 | hardcode_shlibpath_var=no | |
10928 | ;; | |
10929 | ||
10930 | hpux9*) | |
10931 | if test "$GCC" = yes; then | |
10932 | 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' | |
10933 | else | |
10934 | 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' | |
10935 | fi | |
10936 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10937 | hardcode_libdir_separator=: | |
10938 | hardcode_direct=yes | |
10939 | ||
10940 | # hardcode_minus_L: Not really in the search PATH, | |
10941 | # but as the default location of the library. | |
10942 | hardcode_minus_L=yes | |
10943 | export_dynamic_flag_spec='${wl}-E' | |
10944 | ;; | |
10945 | ||
10946 | hpux10*) | |
e6408286 | 10947 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10948 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10949 | else | |
10950 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10951 | fi | |
10952 | if test "$with_gnu_ld" = no; then | |
10953 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10954 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10955 | hardcode_libdir_separator=: | |
10956 | hardcode_direct=yes | |
10957 | hardcode_direct_absolute=yes | |
10958 | export_dynamic_flag_spec='${wl}-E' | |
10959 | # hardcode_minus_L: Not really in the search PATH, | |
10960 | # but as the default location of the library. | |
10961 | hardcode_minus_L=yes | |
10962 | fi | |
10963 | ;; | |
10964 | ||
10965 | hpux11*) | |
e6408286 | 10966 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10967 | case $host_cpu in |
10968 | hppa*64*) | |
10969 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10970 | ;; | |
10971 | ia64*) | |
00aafda4 | 10972 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 10973 | ;; |
10974 | *) | |
10975 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10976 | ;; | |
10977 | esac | |
10978 | else | |
10979 | case $host_cpu in | |
10980 | hppa*64*) | |
10981 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10982 | ;; | |
10983 | ia64*) | |
10984 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10985 | ;; | |
10986 | *) | |
e6408286 | 10987 | |
10988 | # Older versions of the 11.00 compiler do not understand -b yet | |
10989 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10991 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
f00f02a3 | 10992 | if ${lt_cv_prog_compiler__b+:} false; then : |
e6408286 | 10993 | $as_echo_n "(cached) " >&6 |
10994 | else | |
10995 | lt_cv_prog_compiler__b=no | |
10996 | save_LDFLAGS="$LDFLAGS" | |
10997 | LDFLAGS="$LDFLAGS -b" | |
10998 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10999 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11000 | # The linker can only warn and ignore the option if not recognized | |
11001 | # So say no if there are warnings | |
11002 | if test -s conftest.err; then | |
11003 | # Append any errors to the config.log. | |
11004 | cat conftest.err 1>&5 | |
11005 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11006 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11007 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11008 | lt_cv_prog_compiler__b=yes | |
11009 | fi | |
11010 | else | |
11011 | lt_cv_prog_compiler__b=yes | |
11012 | fi | |
11013 | fi | |
11014 | $RM -r conftest* | |
11015 | LDFLAGS="$save_LDFLAGS" | |
11016 | ||
11017 | fi | |
11018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11019 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11020 | ||
11021 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11022 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11023 | else | |
11024 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11025 | fi | |
11026 | ||
542f9784 | 11027 | ;; |
11028 | esac | |
11029 | fi | |
11030 | if test "$with_gnu_ld" = no; then | |
11031 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11032 | hardcode_libdir_separator=: | |
11033 | ||
11034 | case $host_cpu in | |
11035 | hppa*64*|ia64*) | |
11036 | hardcode_direct=no | |
11037 | hardcode_shlibpath_var=no | |
11038 | ;; | |
11039 | *) | |
11040 | hardcode_direct=yes | |
11041 | hardcode_direct_absolute=yes | |
11042 | export_dynamic_flag_spec='${wl}-E' | |
11043 | ||
11044 | # hardcode_minus_L: Not really in the search PATH, | |
11045 | # but as the default location of the library. | |
11046 | hardcode_minus_L=yes | |
11047 | ;; | |
11048 | esac | |
11049 | fi | |
11050 | ;; | |
11051 | ||
11052 | irix5* | irix6* | nonstopux*) | |
11053 | if test "$GCC" = yes; then | |
e6408286 | 11054 | 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' |
542f9784 | 11055 | # Try to use the -exported_symbol ld option, if it does not |
11056 | # work, assume that -exports_file does not work either and | |
11057 | # implicitly export all symbols. | |
11058 | save_LDFLAGS="$LDFLAGS" | |
11059 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11060 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 11061 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11062 | fi |
cd9a469c | 11063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11064 | /* end confdefs.h. */ | |
542f9784 | 11065 | int foo(void) {} |
11066 | _ACEOF | |
cd9a469c | 11067 | if ac_fn_c_try_link "$LINENO"; then : |
e6408286 | 11068 | 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' |
542f9784 | 11069 | |
542f9784 | 11070 | fi |
cd9a469c | 11071 | rm -f core conftest.err conftest.$ac_objext \ |
11072 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11073 | LDFLAGS="$save_LDFLAGS" |
11074 | else | |
e6408286 | 11075 | 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' |
11076 | 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' | |
542f9784 | 11077 | fi |
11078 | archive_cmds_need_lc='no' | |
11079 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11080 | hardcode_libdir_separator=: | |
11081 | inherit_rpath=yes | |
11082 | link_all_deplibs=yes | |
11083 | ;; | |
11084 | ||
11085 | netbsd*) | |
11086 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11087 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11088 | else | |
11089 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11090 | fi | |
11091 | hardcode_libdir_flag_spec='-R$libdir' | |
11092 | hardcode_direct=yes | |
11093 | hardcode_shlibpath_var=no | |
11094 | ;; | |
11095 | ||
11096 | newsos6) | |
11097 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11098 | hardcode_direct=yes | |
11099 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11100 | hardcode_libdir_separator=: | |
11101 | hardcode_shlibpath_var=no | |
11102 | ;; | |
11103 | ||
11104 | *nto* | *qnx*) | |
11105 | ;; | |
11106 | ||
11107 | openbsd*) | |
00aafda4 | 11108 | if test -f /usr/libexec/ld.so; then |
11109 | hardcode_direct=yes | |
11110 | hardcode_shlibpath_var=no | |
11111 | hardcode_direct_absolute=yes | |
11112 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 11113 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 11114 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 11115 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
00aafda4 | 11116 | export_dynamic_flag_spec='${wl}-E' |
11117 | else | |
11118 | case $host_os in | |
11119 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11120 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11121 | hardcode_libdir_flag_spec='-R$libdir' | |
11122 | ;; | |
11123 | *) | |
11124 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11125 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11126 | ;; | |
11127 | esac | |
11128 | fi | |
11129 | else | |
11130 | ld_shlibs=no | |
542f9784 | 11131 | fi |
11132 | ;; | |
11133 | ||
11134 | os2*) | |
11135 | hardcode_libdir_flag_spec='-L$libdir' | |
11136 | hardcode_minus_L=yes | |
11137 | allow_undefined_flag=unsupported | |
e6408286 | 11138 | 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' |
542f9784 | 11139 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11140 | ;; | |
11141 | ||
11142 | osf3*) | |
11143 | if test "$GCC" = yes; then | |
11144 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 11145 | 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' |
542f9784 | 11146 | else |
11147 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 11148 | 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' |
542f9784 | 11149 | fi |
11150 | archive_cmds_need_lc='no' | |
11151 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11152 | hardcode_libdir_separator=: | |
11153 | ;; | |
11154 | ||
11155 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11156 | if test "$GCC" = yes; then | |
11157 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 11158 | 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' |
542f9784 | 11159 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11160 | else | |
11161 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 11162 | 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' |
542f9784 | 11163 | 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~ |
e6408286 | 11164 | $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' |
542f9784 | 11165 | |
11166 | # Both c and cxx compiler support -rpath directly | |
11167 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11168 | fi | |
11169 | archive_cmds_need_lc='no' | |
11170 | hardcode_libdir_separator=: | |
11171 | ;; | |
11172 | ||
11173 | solaris*) | |
11174 | no_undefined_flag=' -z defs' | |
11175 | if test "$GCC" = yes; then | |
11176 | wlarc='${wl}' | |
11177 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11178 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11179 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11180 | else | |
11181 | case `$CC -V 2>&1` in | |
11182 | *"Compilers 5.0"*) | |
11183 | wlarc='' | |
11184 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11185 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11186 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11187 | ;; | |
11188 | *) | |
11189 | wlarc='${wl}' | |
11190 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11191 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11192 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11193 | ;; | |
11194 | esac | |
11195 | fi | |
11196 | hardcode_libdir_flag_spec='-R$libdir' | |
11197 | hardcode_shlibpath_var=no | |
11198 | case $host_os in | |
11199 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11200 | *) | |
11201 | # The compiler driver will combine and reorder linker options, | |
11202 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11203 | # but is careful enough not to reorder. | |
11204 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11205 | if test "$GCC" = yes; then | |
11206 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11207 | else | |
11208 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11209 | fi | |
11210 | ;; | |
11211 | esac | |
11212 | link_all_deplibs=yes | |
11213 | ;; | |
11214 | ||
11215 | sunos4*) | |
11216 | if test "x$host_vendor" = xsequent; then | |
11217 | # Use $CC to link under sequent, because it throws in some extra .o | |
11218 | # files that make .init and .fini sections work. | |
11219 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11220 | else | |
11221 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11222 | fi | |
11223 | hardcode_libdir_flag_spec='-L$libdir' | |
11224 | hardcode_direct=yes | |
11225 | hardcode_minus_L=yes | |
11226 | hardcode_shlibpath_var=no | |
11227 | ;; | |
11228 | ||
11229 | sysv4) | |
11230 | case $host_vendor in | |
11231 | sni) | |
11232 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11233 | hardcode_direct=yes # is this really true??? | |
11234 | ;; | |
11235 | siemens) | |
11236 | ## LD is ld it makes a PLAMLIB | |
11237 | ## CC just makes a GrossModule. | |
11238 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11239 | reload_cmds='$CC -r -o $output$reload_objs' | |
11240 | hardcode_direct=no | |
11241 | ;; | |
11242 | motorola) | |
11243 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11244 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11245 | ;; | |
11246 | esac | |
11247 | runpath_var='LD_RUN_PATH' | |
11248 | hardcode_shlibpath_var=no | |
11249 | ;; | |
11250 | ||
11251 | sysv4.3*) | |
11252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11253 | hardcode_shlibpath_var=no | |
11254 | export_dynamic_flag_spec='-Bexport' | |
11255 | ;; | |
11256 | ||
11257 | sysv4*MP*) | |
11258 | if test -d /usr/nec; then | |
11259 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11260 | hardcode_shlibpath_var=no | |
11261 | runpath_var=LD_RUN_PATH | |
11262 | hardcode_runpath_var=yes | |
11263 | ld_shlibs=yes | |
11264 | fi | |
11265 | ;; | |
11266 | ||
11267 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11268 | no_undefined_flag='${wl}-z,text' | |
11269 | archive_cmds_need_lc=no | |
11270 | hardcode_shlibpath_var=no | |
11271 | runpath_var='LD_RUN_PATH' | |
11272 | ||
11273 | if test "$GCC" = yes; then | |
11274 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11275 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11276 | else | |
11277 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11278 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11279 | fi | |
11280 | ;; | |
11281 | ||
11282 | sysv5* | sco3.2v5* | sco5v6*) | |
11283 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11284 | # link with -lc, and that would cause any symbols used from libc to | |
11285 | # always be unresolved, which means just about no library would | |
11286 | # ever link correctly. If we're not using GNU ld we use -z text | |
11287 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11288 | # as -z defs. | |
11289 | no_undefined_flag='${wl}-z,text' | |
11290 | allow_undefined_flag='${wl}-z,nodefs' | |
11291 | archive_cmds_need_lc=no | |
11292 | hardcode_shlibpath_var=no | |
11293 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11294 | hardcode_libdir_separator=':' | |
11295 | link_all_deplibs=yes | |
11296 | export_dynamic_flag_spec='${wl}-Bexport' | |
11297 | runpath_var='LD_RUN_PATH' | |
11298 | ||
11299 | if test "$GCC" = yes; then | |
11300 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11301 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11302 | else | |
11303 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11304 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11305 | fi | |
11306 | ;; | |
11307 | ||
11308 | uts4*) | |
11309 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11310 | hardcode_libdir_flag_spec='-L$libdir' | |
11311 | hardcode_shlibpath_var=no | |
11312 | ;; | |
11313 | ||
11314 | *) | |
11315 | ld_shlibs=no | |
11316 | ;; | |
11317 | esac | |
11318 | ||
11319 | if test x$host_vendor = xsni; then | |
11320 | case $host in | |
11321 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11322 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11323 | ;; | |
11324 | esac | |
11325 | fi | |
11326 | fi | |
11327 | ||
cd9a469c | 11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11329 | $as_echo "$ld_shlibs" >&6; } | |
542f9784 | 11330 | test "$ld_shlibs" = no && can_build_shared=no |
11331 | ||
11332 | with_gnu_ld=$with_gnu_ld | |
11333 | ||
11334 | ||
11335 | ||
11336 | ||
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | # | |
11349 | # Do we need to explicitly link libc? | |
11350 | # | |
11351 | case "x$archive_cmds_need_lc" in | |
11352 | x|xyes) | |
11353 | # Assume -lc should be added | |
11354 | archive_cmds_need_lc=yes | |
11355 | ||
11356 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11357 | case $archive_cmds in | |
11358 | *'~'*) | |
11359 | # FIXME: we may have to deal with multi-command sequences. | |
11360 | ;; | |
11361 | '$CC '*) | |
11362 | # Test whether the compiler implicitly links with -lc since on some | |
11363 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11364 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11366 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 11367 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
cd9a469c | 11368 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 11369 | else |
11370 | $RM conftest* | |
11371 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 11372 | |
cd9a469c | 11373 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 11374 | (eval $ac_compile) 2>&5 |
11375 | ac_status=$? | |
cd9a469c | 11376 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11377 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 11378 | soname=conftest |
11379 | lib=conftest | |
11380 | libobjs=conftest.$ac_objext | |
11381 | deplibs= | |
11382 | wl=$lt_prog_compiler_wl | |
11383 | pic_flag=$lt_prog_compiler_pic | |
11384 | compiler_flags=-v | |
11385 | linker_flags=-v | |
11386 | verstring= | |
11387 | output_objdir=. | |
11388 | libname=conftest | |
11389 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11390 | allow_undefined_flag= | |
cd9a469c | 11391 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 11392 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11393 | ac_status=$? | |
cd9a469c | 11394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11395 | test $ac_status = 0; } | |
9e6fd619 | 11396 | then |
11397 | lt_cv_archive_cmds_need_lc=no | |
11398 | else | |
11399 | lt_cv_archive_cmds_need_lc=yes | |
11400 | fi | |
11401 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11402 | else | |
11403 | cat conftest.err 1>&5 | |
11404 | fi | |
11405 | $RM conftest* | |
11406 | ||
11407 | fi | |
cd9a469c | 11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
11409 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9e6fd619 | 11410 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
542f9784 | 11411 | ;; |
11412 | esac | |
11413 | fi | |
11414 | ;; | |
11415 | esac | |
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | ||
11547 | ||
11548 | ||
11549 | ||
11550 | ||
11551 | ||
11552 | ||
11553 | ||
11554 | ||
11555 | ||
11556 | ||
11557 | ||
11558 | ||
11559 | ||
11560 | ||
11561 | ||
11562 | ||
11563 | ||
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | ||
11571 | ||
11572 | ||
cd9a469c | 11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11574 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 11575 | |
11576 | if test "$GCC" = yes; then | |
542f9784 | 11577 | case $host_os in |
11578 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11579 | *) lt_awk_arg="/^libraries:/" ;; | |
11580 | esac | |
e6408286 | 11581 | case $host_os in |
11582 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11583 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11584 | esac | |
11585 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11586 | case $lt_search_path_spec in | |
11587 | *\;*) | |
542f9784 | 11588 | # if the path contains ";" then we assume it to be the separator |
11589 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11590 | # assumed that no part of a normal pathname contains ";" but that should | |
11591 | # okay in the real world where ";" in dirpaths is itself problematic. | |
e6408286 | 11592 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11593 | ;; | |
11594 | *) | |
11595 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11596 | ;; | |
11597 | esac | |
542f9784 | 11598 | # Ok, now we have the path, separated by spaces, we can step through it |
11599 | # and add multilib dir if necessary. | |
11600 | lt_tmp_lt_search_path_spec= | |
11601 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11602 | for lt_sys_path in $lt_search_path_spec; do | |
11603 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11604 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11605 | else | |
11606 | test -d "$lt_sys_path" && \ | |
11607 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11608 | fi | |
11609 | done | |
e6408286 | 11610 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
542f9784 | 11611 | BEGIN {RS=" "; FS="/|\n";} { |
11612 | lt_foo=""; | |
11613 | lt_count=0; | |
11614 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11615 | if ($lt_i != "" && $lt_i != ".") { | |
11616 | if ($lt_i == "..") { | |
11617 | lt_count++; | |
11618 | } else { | |
11619 | if (lt_count == 0) { | |
11620 | lt_foo="/" $lt_i lt_foo; | |
11621 | } else { | |
11622 | lt_count--; | |
11623 | } | |
11624 | } | |
11625 | } | |
11626 | } | |
11627 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11628 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11629 | }'` | |
e6408286 | 11630 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11631 | # for these hosts. | |
11632 | case $host_os in | |
11633 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11634 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11635 | esac | |
11636 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
542f9784 | 11637 | else |
11638 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11639 | fi | |
11640 | library_names_spec= | |
11641 | libname_spec='lib$name' | |
11642 | soname_spec= | |
11643 | shrext_cmds=".so" | |
11644 | postinstall_cmds= | |
11645 | postuninstall_cmds= | |
11646 | finish_cmds= | |
11647 | finish_eval= | |
11648 | shlibpath_var= | |
11649 | shlibpath_overrides_runpath=unknown | |
11650 | version_type=none | |
11651 | dynamic_linker="$host_os ld.so" | |
11652 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11653 | need_lib_prefix=unknown | |
11654 | hardcode_into_libs=no | |
11655 | ||
11656 | # when you set need_version to no, make sure it does not cause -set_version | |
11657 | # flags to be left without arguments | |
11658 | need_version=unknown | |
11659 | ||
11660 | case $host_os in | |
11661 | aix3*) | |
11662 | version_type=linux | |
11663 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11664 | shlibpath_var=LIBPATH | |
11665 | ||
11666 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11667 | soname_spec='${libname}${release}${shared_ext}$major' | |
11668 | ;; | |
11669 | ||
21e07d2f | 11670 | aix[4-9]*) |
542f9784 | 11671 | version_type=linux |
11672 | need_lib_prefix=no | |
11673 | need_version=no | |
11674 | hardcode_into_libs=yes | |
11675 | if test "$host_cpu" = ia64; then | |
11676 | # AIX 5 supports IA64 | |
11677 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11678 | shlibpath_var=LD_LIBRARY_PATH | |
11679 | else | |
11680 | # With GCC up to 2.95.x, collect2 would create an import file | |
11681 | # for dependence libraries. The import file would start with | |
11682 | # the line `#! .'. This would cause the generated library to | |
11683 | # depend on `.', always an invalid library. This was fixed in | |
11684 | # development snapshots of GCC prior to 3.0. | |
11685 | case $host_os in | |
11686 | aix4 | aix4.[01] | aix4.[01].*) | |
11687 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11688 | echo ' yes ' | |
11689 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11690 | : | |
11691 | else | |
11692 | can_build_shared=no | |
11693 | fi | |
11694 | ;; | |
11695 | esac | |
11696 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11697 | # soname into executable. Probably we can add versioning support to | |
11698 | # collect2, so additional links can be useful in future. | |
11699 | if test "$aix_use_runtimelinking" = yes; then | |
11700 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11701 | # instead of lib<name>.a to let people know that these are not | |
11702 | # typical AIX shared libraries. | |
11703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11704 | else | |
11705 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11706 | # and later when we are not doing run time linking. | |
11707 | library_names_spec='${libname}${release}.a $libname.a' | |
11708 | soname_spec='${libname}${release}${shared_ext}$major' | |
11709 | fi | |
11710 | shlibpath_var=LIBPATH | |
11711 | fi | |
11712 | ;; | |
11713 | ||
11714 | amigaos*) | |
00aafda4 | 11715 | case $host_cpu in |
11716 | powerpc) | |
11717 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11718 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11720 | ;; | |
11721 | m68k) | |
542f9784 | 11722 | library_names_spec='$libname.ixlibrary $libname.a' |
11723 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 11724 | 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' |
00aafda4 | 11725 | ;; |
11726 | esac | |
542f9784 | 11727 | ;; |
11728 | ||
11729 | beos*) | |
11730 | library_names_spec='${libname}${shared_ext}' | |
11731 | dynamic_linker="$host_os ld.so" | |
11732 | shlibpath_var=LIBRARY_PATH | |
11733 | ;; | |
11734 | ||
11735 | bsdi[45]*) | |
11736 | version_type=linux | |
11737 | need_version=no | |
11738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11739 | soname_spec='${libname}${release}${shared_ext}$major' | |
11740 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11741 | shlibpath_var=LD_LIBRARY_PATH | |
11742 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11743 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11744 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11745 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11746 | # libtool to hard-code these into programs | |
11747 | ;; | |
11748 | ||
00aafda4 | 11749 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 11750 | version_type=windows |
11751 | shrext_cmds=".dll" | |
11752 | need_version=no | |
11753 | need_lib_prefix=no | |
11754 | ||
00aafda4 | 11755 | case $GCC,$host_os in |
11756 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 11757 | library_names_spec='$libname.dll.a' |
11758 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11759 | postinstall_cmds='base_file=`basename \${file}`~ | |
11760 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11761 | dldir=$destdir/`dirname \$dlpath`~ | |
11762 | test -d \$dldir || mkdir -p \$dldir~ | |
11763 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11764 | chmod a+x \$dldir/$dlname~ | |
11765 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11766 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11767 | fi' | |
11768 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11769 | dlpath=$dir/\$dldll~ | |
11770 | $RM \$dlpath' | |
11771 | shlibpath_overrides_runpath=yes | |
11772 | ||
11773 | case $host_os in | |
11774 | cygwin*) | |
11775 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11776 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 11777 | |
11778 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
542f9784 | 11779 | ;; |
00aafda4 | 11780 | mingw* | cegcc*) |
542f9784 | 11781 | # MinGW DLLs use traditional 'lib' prefix |
11782 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 11783 | ;; |
11784 | pw32*) | |
11785 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11786 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11787 | ;; | |
11788 | esac | |
11789 | ;; | |
11790 | ||
11791 | *) | |
11792 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11793 | ;; | |
11794 | esac | |
11795 | dynamic_linker='Win32 ld.exe' | |
11796 | # FIXME: first we should search . and the directory the executable is in | |
11797 | shlibpath_var=PATH | |
11798 | ;; | |
11799 | ||
11800 | darwin* | rhapsody*) | |
11801 | dynamic_linker="$host_os dyld" | |
11802 | version_type=darwin | |
11803 | need_lib_prefix=no | |
11804 | need_version=no | |
11805 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11806 | soname_spec='${libname}${release}${major}$shared_ext' | |
11807 | shlibpath_overrides_runpath=yes | |
11808 | shlibpath_var=DYLD_LIBRARY_PATH | |
11809 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11810 | ||
11811 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11812 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11813 | ;; | |
11814 | ||
11815 | dgux*) | |
11816 | version_type=linux | |
11817 | need_lib_prefix=no | |
11818 | need_version=no | |
11819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11820 | soname_spec='${libname}${release}${shared_ext}$major' | |
11821 | shlibpath_var=LD_LIBRARY_PATH | |
11822 | ;; | |
11823 | ||
542f9784 | 11824 | freebsd* | dragonfly*) |
11825 | # DragonFly does not have aout. When/if they implement a new | |
11826 | # versioning mechanism, adjust this. | |
11827 | if test -x /usr/bin/objformat; then | |
11828 | objformat=`/usr/bin/objformat` | |
11829 | else | |
11830 | case $host_os in | |
30369aff | 11831 | freebsd[23].*) objformat=aout ;; |
542f9784 | 11832 | *) objformat=elf ;; |
11833 | esac | |
11834 | fi | |
11835 | version_type=freebsd-$objformat | |
11836 | case $version_type in | |
11837 | freebsd-elf*) | |
11838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11839 | need_version=no | |
11840 | need_lib_prefix=no | |
11841 | ;; | |
11842 | freebsd-*) | |
11843 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11844 | need_version=yes | |
11845 | ;; | |
11846 | esac | |
11847 | shlibpath_var=LD_LIBRARY_PATH | |
11848 | case $host_os in | |
30369aff | 11849 | freebsd2.*) |
542f9784 | 11850 | shlibpath_overrides_runpath=yes |
11851 | ;; | |
11852 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11853 | shlibpath_overrides_runpath=yes | |
11854 | hardcode_into_libs=yes | |
11855 | ;; | |
11856 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11857 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11858 | shlibpath_overrides_runpath=no | |
11859 | hardcode_into_libs=yes | |
11860 | ;; | |
11861 | *) # from 4.6 on, and DragonFly | |
11862 | shlibpath_overrides_runpath=yes | |
11863 | hardcode_into_libs=yes | |
11864 | ;; | |
11865 | esac | |
11866 | ;; | |
11867 | ||
11868 | gnu*) | |
11869 | version_type=linux | |
11870 | need_lib_prefix=no | |
11871 | need_version=no | |
11872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11873 | soname_spec='${libname}${release}${shared_ext}$major' | |
11874 | shlibpath_var=LD_LIBRARY_PATH | |
11875 | hardcode_into_libs=yes | |
11876 | ;; | |
11877 | ||
e6408286 | 11878 | haiku*) |
11879 | version_type=linux | |
11880 | need_lib_prefix=no | |
11881 | need_version=no | |
11882 | dynamic_linker="$host_os runtime_loader" | |
11883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11884 | soname_spec='${libname}${release}${shared_ext}$major' | |
11885 | shlibpath_var=LIBRARY_PATH | |
11886 | shlibpath_overrides_runpath=yes | |
11887 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11888 | hardcode_into_libs=yes | |
11889 | ;; | |
11890 | ||
542f9784 | 11891 | hpux9* | hpux10* | hpux11*) |
11892 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11893 | # link against other versions. | |
11894 | version_type=sunos | |
11895 | need_lib_prefix=no | |
11896 | need_version=no | |
11897 | case $host_cpu in | |
11898 | ia64*) | |
11899 | shrext_cmds='.so' | |
11900 | hardcode_into_libs=yes | |
11901 | dynamic_linker="$host_os dld.so" | |
11902 | shlibpath_var=LD_LIBRARY_PATH | |
11903 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11905 | soname_spec='${libname}${release}${shared_ext}$major' | |
11906 | if test "X$HPUX_IA64_MODE" = X32; then | |
11907 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11908 | else | |
11909 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11910 | fi | |
11911 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11912 | ;; | |
11913 | hppa*64*) | |
11914 | shrext_cmds='.sl' | |
11915 | hardcode_into_libs=yes | |
11916 | dynamic_linker="$host_os dld.sl" | |
11917 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11918 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11920 | soname_spec='${libname}${release}${shared_ext}$major' | |
11921 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11922 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11923 | ;; | |
11924 | *) | |
11925 | shrext_cmds='.sl' | |
11926 | dynamic_linker="$host_os dld.sl" | |
11927 | shlibpath_var=SHLIB_PATH | |
11928 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
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 | ;; | |
11932 | esac | |
e6408286 | 11933 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 11934 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 11935 | # or fails outright, so override atomically: |
11936 | install_override_mode=555 | |
542f9784 | 11937 | ;; |
11938 | ||
11939 | interix[3-9]*) | |
11940 | version_type=linux | |
11941 | need_lib_prefix=no | |
11942 | need_version=no | |
11943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11944 | soname_spec='${libname}${release}${shared_ext}$major' | |
11945 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11946 | shlibpath_var=LD_LIBRARY_PATH | |
11947 | shlibpath_overrides_runpath=no | |
11948 | hardcode_into_libs=yes | |
11949 | ;; | |
11950 | ||
11951 | irix5* | irix6* | nonstopux*) | |
11952 | case $host_os in | |
11953 | nonstopux*) version_type=nonstopux ;; | |
11954 | *) | |
11955 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11956 | version_type=linux | |
11957 | else | |
11958 | version_type=irix | |
11959 | fi ;; | |
11960 | esac | |
11961 | need_lib_prefix=no | |
11962 | need_version=no | |
11963 | soname_spec='${libname}${release}${shared_ext}$major' | |
11964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11965 | case $host_os in | |
11966 | irix5* | nonstopux*) | |
11967 | libsuff= shlibsuff= | |
11968 | ;; | |
11969 | *) | |
11970 | case $LD in # libtool.m4 will add one of these switches to LD | |
11971 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11972 | libsuff= shlibsuff= libmagic=32-bit;; | |
11973 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11974 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11975 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11976 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11977 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11978 | esac | |
11979 | ;; | |
11980 | esac | |
11981 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11982 | shlibpath_overrides_runpath=no | |
11983 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11984 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11985 | hardcode_into_libs=yes | |
11986 | ;; | |
11987 | ||
11988 | # No shared lib support for Linux oldld, aout, or coff. | |
11989 | linux*oldld* | linux*aout* | linux*coff*) | |
11990 | dynamic_linker=no | |
11991 | ;; | |
11992 | ||
11993 | # This must be Linux ELF. | |
9af964d4 | 11994 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 11995 | version_type=linux |
11996 | need_lib_prefix=no | |
11997 | need_version=no | |
11998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11999 | soname_spec='${libname}${release}${shared_ext}$major' | |
12000 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12001 | shlibpath_var=LD_LIBRARY_PATH | |
12002 | shlibpath_overrides_runpath=no | |
9e6fd619 | 12003 | |
542f9784 | 12004 | # Some binutils ld are patched to set DT_RUNPATH |
f00f02a3 | 12005 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
cd9a469c | 12006 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 12007 | else |
12008 | lt_cv_shlibpath_overrides_runpath=no | |
12009 | save_LDFLAGS=$LDFLAGS | |
12010 | save_libdir=$libdir | |
12011 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12012 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12013 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12014 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12015 | fi |
cd9a469c | 12016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12017 | /* end confdefs.h. */ |
12018 | ||
12019 | int | |
12020 | main () | |
12021 | { | |
12022 | ||
12023 | ; | |
12024 | return 0; | |
12025 | } | |
12026 | _ACEOF | |
cd9a469c | 12027 | if ac_fn_c_try_link "$LINENO"; then : |
12028 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 12029 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 12030 | fi |
542f9784 | 12031 | fi |
cd9a469c | 12032 | rm -f core conftest.err conftest.$ac_objext \ |
12033 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 12034 | LDFLAGS=$save_LDFLAGS |
12035 | libdir=$save_libdir | |
12036 | ||
12037 | fi | |
12038 | ||
12039 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 12040 | |
12041 | # This implies no fast_install, which is unacceptable. | |
12042 | # Some rework will be needed to allow for fast_install | |
12043 | # before this can be enabled. | |
12044 | hardcode_into_libs=yes | |
12045 | ||
12046 | # Append ld.so.conf contents to the search path | |
12047 | if test -f /etc/ld.so.conf; then | |
e6408286 | 12048 | 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' ' '` |
542f9784 | 12049 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12050 | fi | |
12051 | ||
12052 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12053 | # powerpc, because MkLinux only supported shared libraries with the | |
12054 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12055 | # most powerpc-linux boxes support dynamic linking these days and | |
12056 | # people can always --disable-shared, the test was removed, and we | |
12057 | # assume the GNU/Linux dynamic linker is in use. | |
12058 | dynamic_linker='GNU/Linux ld.so' | |
12059 | ;; | |
12060 | ||
12061 | netbsd*) | |
12062 | version_type=sunos | |
12063 | need_lib_prefix=no | |
12064 | need_version=no | |
12065 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12067 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12068 | dynamic_linker='NetBSD (a.out) ld.so' | |
12069 | else | |
12070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12071 | soname_spec='${libname}${release}${shared_ext}$major' | |
12072 | dynamic_linker='NetBSD ld.elf_so' | |
12073 | fi | |
12074 | shlibpath_var=LD_LIBRARY_PATH | |
12075 | shlibpath_overrides_runpath=yes | |
12076 | hardcode_into_libs=yes | |
12077 | ;; | |
12078 | ||
12079 | newsos6) | |
12080 | version_type=linux | |
12081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12082 | shlibpath_var=LD_LIBRARY_PATH | |
12083 | shlibpath_overrides_runpath=yes | |
12084 | ;; | |
12085 | ||
12086 | *nto* | *qnx*) | |
12087 | version_type=qnx | |
12088 | need_lib_prefix=no | |
12089 | need_version=no | |
12090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12091 | soname_spec='${libname}${release}${shared_ext}$major' | |
12092 | shlibpath_var=LD_LIBRARY_PATH | |
12093 | shlibpath_overrides_runpath=no | |
12094 | hardcode_into_libs=yes | |
12095 | dynamic_linker='ldqnx.so' | |
12096 | ;; | |
12097 | ||
12098 | openbsd*) | |
12099 | version_type=sunos | |
12100 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12101 | need_lib_prefix=no | |
12102 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12103 | case $host_os in | |
12104 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12105 | *) need_version=no ;; | |
12106 | esac | |
12107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12108 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12109 | shlibpath_var=LD_LIBRARY_PATH | |
12110 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12111 | case $host_os in | |
12112 | openbsd2.[89] | openbsd2.[89].*) | |
12113 | shlibpath_overrides_runpath=no | |
12114 | ;; | |
12115 | *) | |
12116 | shlibpath_overrides_runpath=yes | |
12117 | ;; | |
12118 | esac | |
12119 | else | |
12120 | shlibpath_overrides_runpath=yes | |
12121 | fi | |
12122 | ;; | |
12123 | ||
12124 | os2*) | |
12125 | libname_spec='$name' | |
12126 | shrext_cmds=".dll" | |
12127 | need_lib_prefix=no | |
12128 | library_names_spec='$libname${shared_ext} $libname.a' | |
12129 | dynamic_linker='OS/2 ld.exe' | |
12130 | shlibpath_var=LIBPATH | |
12131 | ;; | |
12132 | ||
12133 | osf3* | osf4* | osf5*) | |
12134 | version_type=osf | |
12135 | need_lib_prefix=no | |
12136 | need_version=no | |
12137 | soname_spec='${libname}${release}${shared_ext}$major' | |
12138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12139 | shlibpath_var=LD_LIBRARY_PATH | |
12140 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12141 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12142 | ;; | |
12143 | ||
12144 | rdos*) | |
12145 | dynamic_linker=no | |
12146 | ;; | |
12147 | ||
12148 | solaris*) | |
12149 | version_type=linux | |
12150 | need_lib_prefix=no | |
12151 | need_version=no | |
12152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12153 | soname_spec='${libname}${release}${shared_ext}$major' | |
12154 | shlibpath_var=LD_LIBRARY_PATH | |
12155 | shlibpath_overrides_runpath=yes | |
12156 | hardcode_into_libs=yes | |
12157 | # ldd complains unless libraries are executable | |
12158 | postinstall_cmds='chmod +x $lib' | |
12159 | ;; | |
12160 | ||
12161 | sunos4*) | |
12162 | version_type=sunos | |
12163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12164 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12165 | shlibpath_var=LD_LIBRARY_PATH | |
12166 | shlibpath_overrides_runpath=yes | |
12167 | if test "$with_gnu_ld" = yes; then | |
12168 | need_lib_prefix=no | |
12169 | fi | |
12170 | need_version=yes | |
12171 | ;; | |
12172 | ||
12173 | sysv4 | sysv4.3*) | |
12174 | version_type=linux | |
12175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12176 | soname_spec='${libname}${release}${shared_ext}$major' | |
12177 | shlibpath_var=LD_LIBRARY_PATH | |
12178 | case $host_vendor in | |
12179 | sni) | |
12180 | shlibpath_overrides_runpath=no | |
12181 | need_lib_prefix=no | |
12182 | runpath_var=LD_RUN_PATH | |
12183 | ;; | |
12184 | siemens) | |
12185 | need_lib_prefix=no | |
12186 | ;; | |
12187 | motorola) | |
12188 | need_lib_prefix=no | |
12189 | need_version=no | |
12190 | shlibpath_overrides_runpath=no | |
12191 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12192 | ;; | |
12193 | esac | |
12194 | ;; | |
12195 | ||
12196 | sysv4*MP*) | |
12197 | if test -d /usr/nec ;then | |
12198 | version_type=linux | |
12199 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12200 | soname_spec='$libname${shared_ext}.$major' | |
12201 | shlibpath_var=LD_LIBRARY_PATH | |
12202 | fi | |
12203 | ;; | |
12204 | ||
12205 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12206 | version_type=freebsd-elf | |
12207 | need_lib_prefix=no | |
12208 | need_version=no | |
12209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12210 | soname_spec='${libname}${release}${shared_ext}$major' | |
12211 | shlibpath_var=LD_LIBRARY_PATH | |
12212 | shlibpath_overrides_runpath=yes | |
12213 | hardcode_into_libs=yes | |
12214 | if test "$with_gnu_ld" = yes; then | |
12215 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12216 | else | |
12217 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12218 | case $host_os in | |
12219 | sco3.2v5*) | |
12220 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12221 | ;; | |
12222 | esac | |
12223 | fi | |
12224 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12225 | ;; | |
12226 | ||
12227 | tpf*) | |
12228 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12229 | version_type=linux | |
12230 | need_lib_prefix=no | |
12231 | need_version=no | |
00aafda4 | 12232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 12233 | shlibpath_var=LD_LIBRARY_PATH |
12234 | shlibpath_overrides_runpath=no | |
12235 | hardcode_into_libs=yes | |
12236 | ;; | |
12237 | ||
12238 | uts4*) | |
12239 | version_type=linux | |
12240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12241 | soname_spec='${libname}${release}${shared_ext}$major' | |
12242 | shlibpath_var=LD_LIBRARY_PATH | |
12243 | ;; | |
12244 | ||
12245 | *) | |
12246 | dynamic_linker=no | |
12247 | ;; | |
12248 | esac | |
cd9a469c | 12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12250 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 12251 | test "$dynamic_linker" = no && can_build_shared=no |
12252 | ||
12253 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12254 | if test "$GCC" = yes; then | |
12255 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12256 | fi | |
12257 | ||
00aafda4 | 12258 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12259 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12260 | fi | |
12261 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12262 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12263 | fi | |
12264 | ||
542f9784 | 12265 | |
12266 | ||
12267 | ||
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | ||
12273 | ||
12274 | ||
12275 | ||
12276 | ||
12277 | ||
12278 | ||
12279 | ||
12280 | ||
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | ||
12309 | ||
12310 | ||
12311 | ||
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | ||
12322 | ||
12323 | ||
12324 | ||
12325 | ||
12326 | ||
12327 | ||
12328 | ||
12329 | ||
12330 | ||
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | ||
12343 | ||
12344 | ||
e6408286 | 12345 | |
12346 | ||
12347 | ||
12348 | ||
12349 | ||
542f9784 | 12350 | |
12351 | ||
12352 | ||
12353 | ||
12354 | ||
12355 | ||
cd9a469c | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
12357 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 12358 | hardcode_action= |
12359 | if test -n "$hardcode_libdir_flag_spec" || | |
12360 | test -n "$runpath_var" || | |
12361 | test "X$hardcode_automatic" = "Xyes" ; then | |
12362 | ||
12363 | # We can hardcode non-existent directories. | |
12364 | if test "$hardcode_direct" != no && | |
12365 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12366 | # have to relink, otherwise we might link with an installed library | |
12367 | # when we should be linking with a yet-to-be-installed one | |
12368 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12369 | test "$hardcode_minus_L" != no; then | |
12370 | # Linking always hardcodes the temporary library directory. | |
12371 | hardcode_action=relink | |
12372 | else | |
12373 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12374 | hardcode_action=immediate | |
12375 | fi | |
12376 | else | |
12377 | # We cannot hardcode anything, or else we can only hardcode existing | |
12378 | # directories. | |
12379 | hardcode_action=unsupported | |
12380 | fi | |
cd9a469c | 12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
12382 | $as_echo "$hardcode_action" >&6; } | |
542f9784 | 12383 | |
12384 | if test "$hardcode_action" = relink || | |
12385 | test "$inherit_rpath" = yes; then | |
12386 | # Fast installation is not supported | |
12387 | enable_fast_install=no | |
12388 | elif test "$shlibpath_overrides_runpath" = yes || | |
12389 | test "$enable_shared" = no; then | |
12390 | # Fast installation is not necessary | |
12391 | enable_fast_install=needless | |
12392 | fi | |
12393 | ||
12394 | ||
12395 | ||
12396 | ||
12397 | ||
12398 | ||
12399 | if test "x$enable_dlopen" != xyes; then | |
12400 | enable_dlopen=unknown | |
12401 | enable_dlopen_self=unknown | |
12402 | enable_dlopen_self_static=unknown | |
12403 | else | |
12404 | lt_cv_dlopen=no | |
12405 | lt_cv_dlopen_libs= | |
12406 | ||
12407 | case $host_os in | |
12408 | beos*) | |
12409 | lt_cv_dlopen="load_add_on" | |
12410 | lt_cv_dlopen_libs= | |
12411 | lt_cv_dlopen_self=yes | |
12412 | ;; | |
12413 | ||
00aafda4 | 12414 | mingw* | pw32* | cegcc*) |
542f9784 | 12415 | lt_cv_dlopen="LoadLibrary" |
12416 | lt_cv_dlopen_libs= | |
12417 | ;; | |
12418 | ||
12419 | cygwin*) | |
12420 | lt_cv_dlopen="dlopen" | |
12421 | lt_cv_dlopen_libs= | |
12422 | ;; | |
12423 | ||
12424 | darwin*) | |
12425 | # if libdl is installed we need to link against it | |
cd9a469c | 12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12427 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 12428 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
cd9a469c | 12429 | $as_echo_n "(cached) " >&6 |
542f9784 | 12430 | else |
12431 | ac_check_lib_save_LIBS=$LIBS | |
12432 | LIBS="-ldl $LIBS" | |
12433 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12434 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12435 | fi |
cd9a469c | 12436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12437 | /* end confdefs.h. */ |
12438 | ||
cd9a469c | 12439 | /* Override any GCC internal prototype to avoid an error. |
12440 | Use char because int might match the return type of a GCC | |
12441 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12442 | #ifdef __cplusplus |
12443 | extern "C" | |
12444 | #endif | |
542f9784 | 12445 | char dlopen (); |
12446 | int | |
12447 | main () | |
12448 | { | |
cd9a469c | 12449 | return dlopen (); |
542f9784 | 12450 | ; |
12451 | return 0; | |
12452 | } | |
12453 | _ACEOF | |
cd9a469c | 12454 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12455 | ac_cv_lib_dl_dlopen=yes |
12456 | else | |
cd9a469c | 12457 | ac_cv_lib_dl_dlopen=no |
542f9784 | 12458 | fi |
cd9a469c | 12459 | rm -f core conftest.err conftest.$ac_objext \ |
12460 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12461 | LIBS=$ac_check_lib_save_LIBS |
12462 | fi | |
cd9a469c | 12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12464 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 12465 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
542f9784 | 12466 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12467 | else | |
12468 | ||
12469 | lt_cv_dlopen="dyld" | |
12470 | lt_cv_dlopen_libs= | |
12471 | lt_cv_dlopen_self=yes | |
12472 | ||
12473 | fi | |
12474 | ||
12475 | ;; | |
12476 | ||
12477 | *) | |
cd9a469c | 12478 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
f00f02a3 | 12479 | if test "x$ac_cv_func_shl_load" = xyes; then : |
542f9784 | 12480 | lt_cv_dlopen="shl_load" |
12481 | else | |
cd9a469c | 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12483 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
f00f02a3 | 12484 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
cd9a469c | 12485 | $as_echo_n "(cached) " >&6 |
542f9784 | 12486 | else |
12487 | ac_check_lib_save_LIBS=$LIBS | |
12488 | LIBS="-ldld $LIBS" | |
12489 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12490 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12491 | fi |
cd9a469c | 12492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12493 | /* end confdefs.h. */ |
12494 | ||
cd9a469c | 12495 | /* Override any GCC internal prototype to avoid an error. |
12496 | Use char because int might match the return type of a GCC | |
12497 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12498 | #ifdef __cplusplus |
12499 | extern "C" | |
12500 | #endif | |
542f9784 | 12501 | char shl_load (); |
12502 | int | |
12503 | main () | |
12504 | { | |
cd9a469c | 12505 | return shl_load (); |
542f9784 | 12506 | ; |
12507 | return 0; | |
12508 | } | |
12509 | _ACEOF | |
cd9a469c | 12510 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12511 | ac_cv_lib_dld_shl_load=yes |
12512 | else | |
cd9a469c | 12513 | ac_cv_lib_dld_shl_load=no |
542f9784 | 12514 | fi |
cd9a469c | 12515 | rm -f core conftest.err conftest.$ac_objext \ |
12516 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12517 | LIBS=$ac_check_lib_save_LIBS |
12518 | fi | |
cd9a469c | 12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12520 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
f00f02a3 | 12521 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
00aafda4 | 12522 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12523 | else |
cd9a469c | 12524 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
f00f02a3 | 12525 | if test "x$ac_cv_func_dlopen" = xyes; then : |
542f9784 | 12526 | lt_cv_dlopen="dlopen" |
12527 | else | |
cd9a469c | 12528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
12529 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
f00f02a3 | 12530 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
cd9a469c | 12531 | $as_echo_n "(cached) " >&6 |
542f9784 | 12532 | else |
12533 | ac_check_lib_save_LIBS=$LIBS | |
12534 | LIBS="-ldl $LIBS" | |
12535 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12536 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12537 | fi |
cd9a469c | 12538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12539 | /* end confdefs.h. */ |
12540 | ||
cd9a469c | 12541 | /* Override any GCC internal prototype to avoid an error. |
12542 | Use char because int might match the return type of a GCC | |
12543 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12544 | #ifdef __cplusplus |
12545 | extern "C" | |
12546 | #endif | |
542f9784 | 12547 | char dlopen (); |
12548 | int | |
12549 | main () | |
12550 | { | |
cd9a469c | 12551 | return dlopen (); |
542f9784 | 12552 | ; |
12553 | return 0; | |
12554 | } | |
12555 | _ACEOF | |
cd9a469c | 12556 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12557 | ac_cv_lib_dl_dlopen=yes |
12558 | else | |
cd9a469c | 12559 | ac_cv_lib_dl_dlopen=no |
542f9784 | 12560 | fi |
cd9a469c | 12561 | rm -f core conftest.err conftest.$ac_objext \ |
12562 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12563 | LIBS=$ac_check_lib_save_LIBS |
12564 | fi | |
cd9a469c | 12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
12566 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
f00f02a3 | 12567 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
542f9784 | 12568 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12569 | else | |
cd9a469c | 12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
12571 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
f00f02a3 | 12572 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
cd9a469c | 12573 | $as_echo_n "(cached) " >&6 |
542f9784 | 12574 | else |
12575 | ac_check_lib_save_LIBS=$LIBS | |
12576 | LIBS="-lsvld $LIBS" | |
12577 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12578 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12579 | fi |
cd9a469c | 12580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12581 | /* end confdefs.h. */ |
12582 | ||
cd9a469c | 12583 | /* Override any GCC internal prototype to avoid an error. |
12584 | Use char because int might match the return type of a GCC | |
12585 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12586 | #ifdef __cplusplus |
12587 | extern "C" | |
12588 | #endif | |
542f9784 | 12589 | char dlopen (); |
12590 | int | |
12591 | main () | |
12592 | { | |
cd9a469c | 12593 | return dlopen (); |
542f9784 | 12594 | ; |
12595 | return 0; | |
12596 | } | |
12597 | _ACEOF | |
cd9a469c | 12598 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12599 | ac_cv_lib_svld_dlopen=yes |
12600 | else | |
cd9a469c | 12601 | ac_cv_lib_svld_dlopen=no |
542f9784 | 12602 | fi |
cd9a469c | 12603 | rm -f core conftest.err conftest.$ac_objext \ |
12604 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12605 | LIBS=$ac_check_lib_save_LIBS |
12606 | fi | |
cd9a469c | 12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12608 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
f00f02a3 | 12609 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
542f9784 | 12610 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12611 | else | |
cd9a469c | 12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12613 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
f00f02a3 | 12614 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
cd9a469c | 12615 | $as_echo_n "(cached) " >&6 |
542f9784 | 12616 | else |
12617 | ac_check_lib_save_LIBS=$LIBS | |
12618 | LIBS="-ldld $LIBS" | |
12619 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 12620 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12621 | fi |
cd9a469c | 12622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12623 | /* end confdefs.h. */ |
12624 | ||
cd9a469c | 12625 | /* Override any GCC internal prototype to avoid an error. |
12626 | Use char because int might match the return type of a GCC | |
12627 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12628 | #ifdef __cplusplus |
12629 | extern "C" | |
12630 | #endif | |
542f9784 | 12631 | char dld_link (); |
12632 | int | |
12633 | main () | |
12634 | { | |
cd9a469c | 12635 | return dld_link (); |
542f9784 | 12636 | ; |
12637 | return 0; | |
12638 | } | |
12639 | _ACEOF | |
cd9a469c | 12640 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12641 | ac_cv_lib_dld_dld_link=yes |
12642 | else | |
cd9a469c | 12643 | ac_cv_lib_dld_dld_link=no |
542f9784 | 12644 | fi |
cd9a469c | 12645 | rm -f core conftest.err conftest.$ac_objext \ |
12646 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12647 | LIBS=$ac_check_lib_save_LIBS |
12648 | fi | |
cd9a469c | 12649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12650 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
f00f02a3 | 12651 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
00aafda4 | 12652 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12653 | fi |
12654 | ||
12655 | ||
12656 | fi | |
12657 | ||
12658 | ||
12659 | fi | |
12660 | ||
12661 | ||
12662 | fi | |
12663 | ||
12664 | ||
12665 | fi | |
12666 | ||
12667 | ||
12668 | fi | |
12669 | ||
12670 | ;; | |
12671 | esac | |
12672 | ||
12673 | if test "x$lt_cv_dlopen" != xno; then | |
12674 | enable_dlopen=yes | |
12675 | else | |
12676 | enable_dlopen=no | |
12677 | fi | |
12678 | ||
12679 | case $lt_cv_dlopen in | |
12680 | dlopen) | |
12681 | save_CPPFLAGS="$CPPFLAGS" | |
12682 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12683 | ||
12684 | save_LDFLAGS="$LDFLAGS" | |
12685 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12686 | ||
12687 | save_LIBS="$LIBS" | |
12688 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12689 | ||
cd9a469c | 12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12691 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
f00f02a3 | 12692 | if ${lt_cv_dlopen_self+:} false; then : |
cd9a469c | 12693 | $as_echo_n "(cached) " >&6 |
542f9784 | 12694 | else |
12695 | if test "$cross_compiling" = yes; then : | |
12696 | lt_cv_dlopen_self=cross | |
12697 | else | |
12698 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12699 | lt_status=$lt_dlunknown | |
12700 | cat > conftest.$ac_ext <<_LT_EOF | |
e38e222d | 12701 | #line 12701 "configure" |
542f9784 | 12702 | #include "confdefs.h" |
12703 | ||
12704 | #if HAVE_DLFCN_H | |
12705 | #include <dlfcn.h> | |
12706 | #endif | |
12707 | ||
12708 | #include <stdio.h> | |
12709 | ||
12710 | #ifdef RTLD_GLOBAL | |
12711 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12712 | #else | |
12713 | # ifdef DL_GLOBAL | |
12714 | # define LT_DLGLOBAL DL_GLOBAL | |
12715 | # else | |
12716 | # define LT_DLGLOBAL 0 | |
12717 | # endif | |
12718 | #endif | |
12719 | ||
12720 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12721 | find out it does not work in some platform. */ | |
12722 | #ifndef LT_DLLAZY_OR_NOW | |
12723 | # ifdef RTLD_LAZY | |
12724 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12725 | # else | |
12726 | # ifdef DL_LAZY | |
12727 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12728 | # else | |
12729 | # ifdef RTLD_NOW | |
12730 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12731 | # else | |
12732 | # ifdef DL_NOW | |
12733 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12734 | # else | |
12735 | # define LT_DLLAZY_OR_NOW 0 | |
12736 | # endif | |
12737 | # endif | |
12738 | # endif | |
12739 | # endif | |
12740 | #endif | |
12741 | ||
e6408286 | 12742 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12743 | correspondingly for the symbols needed. */ | |
12744 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12745 | void fnord () __attribute__((visibility("default"))); | |
12746 | #endif | |
12747 | ||
12748 | void fnord () { int i=42; } | |
542f9784 | 12749 | int main () |
12750 | { | |
12751 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12752 | int status = $lt_dlunknown; | |
12753 | ||
12754 | if (self) | |
12755 | { | |
12756 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12757 | else |
12758 | { | |
12759 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12760 | else puts (dlerror ()); | |
12761 | } | |
542f9784 | 12762 | /* dlclose (self); */ |
12763 | } | |
12764 | else | |
12765 | puts (dlerror ()); | |
12766 | ||
00aafda4 | 12767 | return status; |
542f9784 | 12768 | } |
12769 | _LT_EOF | |
cd9a469c | 12770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12771 | (eval $ac_link) 2>&5 |
12772 | ac_status=$? | |
cd9a469c | 12773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12774 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12775 | (./conftest; exit; ) >&5 2>/dev/null |
12776 | lt_status=$? | |
12777 | case x$lt_status in | |
12778 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12779 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12780 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12781 | esac | |
12782 | else : | |
12783 | # compilation failed | |
12784 | lt_cv_dlopen_self=no | |
12785 | fi | |
12786 | fi | |
12787 | rm -fr conftest* | |
12788 | ||
12789 | ||
12790 | fi | |
cd9a469c | 12791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12792 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
542f9784 | 12793 | |
12794 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12795 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
cd9a469c | 12796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12797 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
f00f02a3 | 12798 | if ${lt_cv_dlopen_self_static+:} false; then : |
cd9a469c | 12799 | $as_echo_n "(cached) " >&6 |
542f9784 | 12800 | else |
12801 | if test "$cross_compiling" = yes; then : | |
12802 | lt_cv_dlopen_self_static=cross | |
12803 | else | |
12804 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12805 | lt_status=$lt_dlunknown | |
12806 | cat > conftest.$ac_ext <<_LT_EOF | |
e38e222d | 12807 | #line 12807 "configure" |
542f9784 | 12808 | #include "confdefs.h" |
12809 | ||
12810 | #if HAVE_DLFCN_H | |
12811 | #include <dlfcn.h> | |
12812 | #endif | |
12813 | ||
12814 | #include <stdio.h> | |
12815 | ||
12816 | #ifdef RTLD_GLOBAL | |
12817 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12818 | #else | |
12819 | # ifdef DL_GLOBAL | |
12820 | # define LT_DLGLOBAL DL_GLOBAL | |
12821 | # else | |
12822 | # define LT_DLGLOBAL 0 | |
12823 | # endif | |
12824 | #endif | |
12825 | ||
12826 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12827 | find out it does not work in some platform. */ | |
12828 | #ifndef LT_DLLAZY_OR_NOW | |
12829 | # ifdef RTLD_LAZY | |
12830 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12831 | # else | |
12832 | # ifdef DL_LAZY | |
12833 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12834 | # else | |
12835 | # ifdef RTLD_NOW | |
12836 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12837 | # else | |
12838 | # ifdef DL_NOW | |
12839 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12840 | # else | |
12841 | # define LT_DLLAZY_OR_NOW 0 | |
12842 | # endif | |
12843 | # endif | |
12844 | # endif | |
12845 | # endif | |
12846 | #endif | |
12847 | ||
e6408286 | 12848 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12849 | correspondingly for the symbols needed. */ | |
12850 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12851 | void fnord () __attribute__((visibility("default"))); | |
12852 | #endif | |
12853 | ||
12854 | void fnord () { int i=42; } | |
542f9784 | 12855 | int main () |
12856 | { | |
12857 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12858 | int status = $lt_dlunknown; | |
12859 | ||
12860 | if (self) | |
12861 | { | |
12862 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12863 | else |
12864 | { | |
12865 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12866 | else puts (dlerror ()); | |
12867 | } | |
542f9784 | 12868 | /* dlclose (self); */ |
12869 | } | |
12870 | else | |
12871 | puts (dlerror ()); | |
12872 | ||
00aafda4 | 12873 | return status; |
542f9784 | 12874 | } |
12875 | _LT_EOF | |
cd9a469c | 12876 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12877 | (eval $ac_link) 2>&5 |
12878 | ac_status=$? | |
cd9a469c | 12879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12880 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12881 | (./conftest; exit; ) >&5 2>/dev/null |
12882 | lt_status=$? | |
12883 | case x$lt_status in | |
12884 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12885 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12886 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12887 | esac | |
12888 | else : | |
12889 | # compilation failed | |
12890 | lt_cv_dlopen_self_static=no | |
12891 | fi | |
12892 | fi | |
12893 | rm -fr conftest* | |
12894 | ||
12895 | ||
12896 | fi | |
cd9a469c | 12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12898 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
542f9784 | 12899 | fi |
12900 | ||
12901 | CPPFLAGS="$save_CPPFLAGS" | |
12902 | LDFLAGS="$save_LDFLAGS" | |
12903 | LIBS="$save_LIBS" | |
12904 | ;; | |
12905 | esac | |
12906 | ||
12907 | case $lt_cv_dlopen_self in | |
12908 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12909 | *) enable_dlopen_self=unknown ;; | |
12910 | esac | |
12911 | ||
12912 | case $lt_cv_dlopen_self_static in | |
12913 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12914 | *) enable_dlopen_self_static=unknown ;; | |
12915 | esac | |
12916 | fi | |
12917 | ||
12918 | ||
12919 | ||
12920 | ||
12921 | ||
12922 | ||
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | ||
12929 | ||
12930 | ||
12931 | ||
12932 | ||
12933 | ||
12934 | striplib= | |
12935 | old_striplib= | |
cd9a469c | 12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12937 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
542f9784 | 12938 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12939 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12940 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
cd9a469c | 12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12942 | $as_echo "yes" >&6; } | |
542f9784 | 12943 | else |
12944 | # FIXME - insert some real tests, host_os isn't really good enough | |
12945 | case $host_os in | |
12946 | darwin*) | |
12947 | if test -n "$STRIP" ; then | |
12948 | striplib="$STRIP -x" | |
12949 | old_striplib="$STRIP -S" | |
cd9a469c | 12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12951 | $as_echo "yes" >&6; } | |
542f9784 | 12952 | else |
cd9a469c | 12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12954 | $as_echo "no" >&6; } | |
542f9784 | 12955 | fi |
12956 | ;; | |
12957 | *) | |
cd9a469c | 12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12959 | $as_echo "no" >&6; } | |
542f9784 | 12960 | ;; |
12961 | esac | |
12962 | fi | |
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | ||
12974 | ||
e6408286 | 12975 | # Report which library types will actually be built |
12976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12977 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12979 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 12980 | |
e6408286 | 12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12982 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12983 | test "$can_build_shared" = "no" && enable_shared=no | |
542f9784 | 12984 | |
e6408286 | 12985 | # On AIX, shared libraries and static libraries use the same namespace, and |
12986 | # are all built from PIC. | |
12987 | case $host_os in | |
12988 | aix3*) | |
12989 | test "$enable_shared" = yes && enable_static=no | |
12990 | if test -n "$RANLIB"; then | |
12991 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12992 | postinstall_cmds='$RANLIB $lib' | |
12993 | fi | |
12994 | ;; | |
542f9784 | 12995 | |
e6408286 | 12996 | aix[4-9]*) |
12997 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12998 | test "$enable_shared" = yes && enable_static=no | |
12999 | fi | |
13000 | ;; | |
13001 | esac | |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13003 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 13004 | |
e6408286 | 13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13006 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13007 | # Make sure either enable_shared or enable_static is yes. | |
13008 | test "$enable_shared" = yes || enable_static=yes | |
13009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13010 | $as_echo "$enable_static" >&6; } | |
542f9784 | 13011 | |
542f9784 | 13012 | |
542f9784 | 13013 | |
542f9784 | 13014 | |
13015 | fi | |
542f9784 | 13016 | ac_ext=c |
13017 | ac_cpp='$CPP $CPPFLAGS' | |
13018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13021 | ||
e6408286 | 13022 | CC="$lt_save_CC" |
13023 | ||
13024 | ||
13025 | ||
13026 | ||
13027 | ||
13028 | ||
13029 | ||
13030 | ||
13031 | ||
13032 | ||
13033 | ||
13034 | ||
13035 | ||
13036 | ac_config_commands="$ac_config_commands libtool" | |
13037 | ||
13038 | ||
13039 | ||
13040 | ||
13041 | # Only expand once: | |
13042 | ||
13043 | ||
13044 | ||
13045 | ||
8c35d268 | 13046 | |
13047 | case $host in | |
13048 | *-cygwin* | *-mingw*) | |
13049 | # 'host' will be top-level target in the case of a target lib, | |
13050 | # we must compare to with_cross_host to decide if this is a native | |
13051 | # or cross-compiler and select where to install dlls appropriately. | |
13052 | if test -n "$with_cross_host" && | |
13053 | test x"$with_cross_host" != x"no"; then | |
13054 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
13055 | else | |
13056 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
13057 | fi | |
13058 | ;; | |
13059 | *) | |
13060 | lt_host_flags= | |
13061 | ;; | |
13062 | esac | |
13063 | ||
13064 | ||
13065 | ||
13066 | ||
13067 | ||
e6408286 | 13068 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
542f9784 | 13069 | |
e6408286 | 13070 | # We need gfortran to compile parts of the library |
13071 | #AC_PROG_FC(gfortran) | |
13072 | FC="$GFORTRAN" | |
cd9a469c | 13073 | ac_ext=${ac_fc_srcext-f} |
13074 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13075 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 13076 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13077 | if test -n "$ac_tool_prefix"; then | |
e6408286 | 13078 | for ac_prog in gfortran |
542f9784 | 13079 | do |
13080 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13081 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13083 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13084 | if ${ac_cv_prog_FC+:} false; then : |
cd9a469c | 13085 | $as_echo_n "(cached) " >&6 |
542f9784 | 13086 | else |
13087 | if test -n "$FC"; then | |
13088 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
13089 | else | |
13090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13091 | for as_dir in $PATH | |
13092 | do | |
13093 | IFS=$as_save_IFS | |
13094 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13095 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 13097 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
cd9a469c | 13098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 13099 | break 2 |
13100 | fi | |
13101 | done | |
cd9a469c | 13102 | done |
13103 | IFS=$as_save_IFS | |
542f9784 | 13104 | |
13105 | fi | |
13106 | fi | |
13107 | FC=$ac_cv_prog_FC | |
13108 | if test -n "$FC"; then | |
cd9a469c | 13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
13110 | $as_echo "$FC" >&6; } | |
542f9784 | 13111 | else |
cd9a469c | 13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13113 | $as_echo "no" >&6; } | |
542f9784 | 13114 | fi |
13115 | ||
cd9a469c | 13116 | |
542f9784 | 13117 | test -n "$FC" && break |
13118 | done | |
13119 | fi | |
13120 | if test -z "$FC"; then | |
13121 | ac_ct_FC=$FC | |
e6408286 | 13122 | for ac_prog in gfortran |
542f9784 | 13123 | do |
13124 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13125 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13127 | $as_echo_n "checking for $ac_word... " >&6; } | |
f00f02a3 | 13128 | if ${ac_cv_prog_ac_ct_FC+:} false; then : |
cd9a469c | 13129 | $as_echo_n "(cached) " >&6 |
542f9784 | 13130 | else |
13131 | if test -n "$ac_ct_FC"; then | |
13132 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
13133 | else | |
13134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13135 | for as_dir in $PATH | |
13136 | do | |
13137 | IFS=$as_save_IFS | |
13138 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 13139 | for ac_exec_ext in '' $ac_executable_extensions; do |
f00f02a3 | 13140 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
542f9784 | 13141 | ac_cv_prog_ac_ct_FC="$ac_prog" |
cd9a469c | 13142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 13143 | break 2 |
13144 | fi | |
13145 | done | |
cd9a469c | 13146 | done |
13147 | IFS=$as_save_IFS | |
542f9784 | 13148 | |
13149 | fi | |
13150 | fi | |
13151 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
13152 | if test -n "$ac_ct_FC"; then | |
cd9a469c | 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
13154 | $as_echo "$ac_ct_FC" >&6; } | |
542f9784 | 13155 | else |
cd9a469c | 13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13157 | $as_echo "no" >&6; } | |
542f9784 | 13158 | fi |
13159 | ||
cd9a469c | 13160 | |
542f9784 | 13161 | test -n "$ac_ct_FC" && break |
82eaf560 | 13162 | done |
13163 | ||
cd9a469c | 13164 | if test "x$ac_ct_FC" = x; then |
13165 | FC="" | |
13166 | else | |
13167 | case $cross_compiling:$ac_tool_warned in | |
13168 | yes:) | |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13171 | ac_tool_warned=yes ;; | |
13172 | esac | |
13173 | FC=$ac_ct_FC | |
13174 | fi | |
542f9784 | 13175 | fi |
13176 | ||
13177 | ||
13178 | # Provide some information about the compiler. | |
cd9a469c | 13179 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
13180 | set X $ac_compile | |
13181 | ac_compiler=$2 | |
13182 | for ac_option in --version -v -V -qversion; do | |
13183 | { { ac_try="$ac_compiler $ac_option >&5" | |
13184 | case "(($ac_try" in | |
13185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13186 | *) ac_try_echo=$ac_try;; | |
13187 | esac | |
13188 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13189 | $as_echo "$ac_try_echo"; } >&5 | |
13190 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
542f9784 | 13191 | ac_status=$? |
cd9a469c | 13192 | if test -s conftest.err; then |
13193 | sed '10a\ | |
13194 | ... rest of stderr output deleted ... | |
13195 | 10q' conftest.err >conftest.er1 | |
13196 | cat conftest.er1 >&5 | |
cd9a469c | 13197 | fi |
f00f02a3 | 13198 | rm -f conftest.er1 conftest.err |
cd9a469c | 13199 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13200 | test $ac_status = 0; } | |
13201 | done | |
542f9784 | 13202 | rm -f a.out |
13203 | ||
13204 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
13205 | # input file. (Note that this only needs to work for GNU compilers.) | |
13206 | ac_save_ext=$ac_ext | |
13207 | ac_ext=F | |
cd9a469c | 13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
13209 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
f00f02a3 | 13210 | if ${ac_cv_fc_compiler_gnu+:} false; then : |
cd9a469c | 13211 | $as_echo_n "(cached) " >&6 |
542f9784 | 13212 | else |
cd9a469c | 13213 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13214 | program main |
13215 | #ifndef __GNUC__ | |
13216 | choke me | |
13217 | #endif | |
13218 | ||
13219 | end | |
13220 | _ACEOF | |
cd9a469c | 13221 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 13222 | ac_compiler_gnu=yes |
13223 | else | |
cd9a469c | 13224 | ac_compiler_gnu=no |
542f9784 | 13225 | fi |
cd9a469c | 13226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 13227 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
13228 | ||
13229 | fi | |
cd9a469c | 13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
13231 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
542f9784 | 13232 | ac_ext=$ac_save_ext |
cd9a469c | 13233 | ac_test_FCFLAGS=${FCFLAGS+set} |
13234 | ac_save_FCFLAGS=$FCFLAGS | |
542f9784 | 13235 | FCFLAGS= |
cd9a469c | 13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
13237 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
f00f02a3 | 13238 | if ${ac_cv_prog_fc_g+:} false; then : |
cd9a469c | 13239 | $as_echo_n "(cached) " >&6 |
542f9784 | 13240 | else |
13241 | FCFLAGS=-g | |
cd9a469c | 13242 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13243 | program main |
13244 | ||
13245 | end | |
13246 | _ACEOF | |
cd9a469c | 13247 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 13248 | ac_cv_prog_fc_g=yes |
13249 | else | |
cd9a469c | 13250 | ac_cv_prog_fc_g=no |
542f9784 | 13251 | fi |
cd9a469c | 13252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 13253 | |
13254 | fi | |
cd9a469c | 13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
13256 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
13257 | if test "$ac_test_FCFLAGS" = set; then | |
13258 | FCFLAGS=$ac_save_FCFLAGS | |
542f9784 | 13259 | elif test $ac_cv_prog_fc_g = yes; then |
13260 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13261 | FCFLAGS="-g -O2" | |
13262 | else | |
13263 | FCFLAGS="-g" | |
13264 | fi | |
13265 | else | |
13266 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
13267 | FCFLAGS="-O2" | |
13268 | else | |
13269 | FCFLAGS= | |
13270 | fi | |
13271 | fi | |
13272 | ||
f00f02a3 | 13273 | if test $ac_compiler_gnu = yes; then |
13274 | GFC=yes | |
13275 | else | |
13276 | GFC= | |
13277 | fi | |
542f9784 | 13278 | ac_ext=c |
13279 | ac_cpp='$CPP $CPPFLAGS' | |
13280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13283 | ||
cd9a469c | 13284 | ac_ext=${ac_fc_srcext-f} |
13285 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
13286 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 13287 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
13288 | ||
13289 | ||
e6408286 | 13290 | if test -z "$FC" || test "X$FC" = "Xno"; then |
13291 | _lt_disable_FC=yes | |
13292 | fi | |
13293 | ||
542f9784 | 13294 | archive_cmds_need_lc_FC=no |
13295 | allow_undefined_flag_FC= | |
13296 | always_export_symbols_FC=no | |
13297 | archive_expsym_cmds_FC= | |
13298 | export_dynamic_flag_spec_FC= | |
13299 | hardcode_direct_FC=no | |
13300 | hardcode_direct_absolute_FC=no | |
13301 | hardcode_libdir_flag_spec_FC= | |
13302 | hardcode_libdir_flag_spec_ld_FC= | |
13303 | hardcode_libdir_separator_FC= | |
13304 | hardcode_minus_L_FC=no | |
13305 | hardcode_automatic_FC=no | |
13306 | inherit_rpath_FC=no | |
13307 | module_cmds_FC= | |
13308 | module_expsym_cmds_FC= | |
13309 | link_all_deplibs_FC=unknown | |
13310 | old_archive_cmds_FC=$old_archive_cmds | |
e6408286 | 13311 | reload_flag_FC=$reload_flag |
13312 | reload_cmds_FC=$reload_cmds | |
542f9784 | 13313 | no_undefined_flag_FC= |
13314 | whole_archive_flag_spec_FC= | |
13315 | enable_shared_with_static_runtimes_FC=no | |
13316 | ||
13317 | # Source file extension for fc test sources. | |
13318 | ac_ext=${ac_fc_srcext-f} | |
13319 | ||
13320 | # Object file extension for compiled fc test sources. | |
13321 | objext=o | |
13322 | objext_FC=$objext | |
13323 | ||
13324 | # No sense in running all these tests if we already determined that | |
13325 | # the FC compiler isn't working. Some variables (like enable_shared) | |
13326 | # are currently assumed to apply to all compilers on this platform, | |
13327 | # and will be corrupted by setting them based on a non-working compiler. | |
13328 | if test "$_lt_disable_FC" != yes; then | |
13329 | # Code to be used in simple compile tests | |
13330 | lt_simple_compile_test_code="\ | |
13331 | subroutine t | |
13332 | return | |
13333 | end | |
13334 | " | |
13335 | ||
13336 | # Code to be used in simple link tests | |
13337 | lt_simple_link_test_code="\ | |
13338 | program t | |
13339 | end | |
13340 | " | |
13341 | ||
13342 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13343 | ||
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | ||
13349 | # If no C compiler was specified, use CC. | |
13350 | LTCC=${LTCC-"$CC"} | |
13351 | ||
13352 | # If no C compiler flags were specified, use CFLAGS. | |
13353 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13354 | ||
13355 | # Allow CC to be a program name with arguments. | |
13356 | compiler=$CC | |
13357 | ||
13358 | ||
13359 | # save warnings/boilerplate of simple test code | |
13360 | ac_outfile=conftest.$ac_objext | |
13361 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13362 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13363 | _lt_compiler_boilerplate=`cat conftest.err` | |
13364 | $RM conftest* | |
13365 | ||
13366 | ac_outfile=conftest.$ac_objext | |
13367 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13368 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13369 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 13370 | $RM -r conftest* |
542f9784 | 13371 | |
13372 | ||
13373 | # Allow CC to be a program name with arguments. | |
13374 | lt_save_CC="$CC" | |
00aafda4 | 13375 | lt_save_GCC=$GCC |
542f9784 | 13376 | CC=${FC-"f95"} |
13377 | compiler=$CC | |
00aafda4 | 13378 | GCC=$ac_cv_fc_compiler_gnu |
13379 | ||
542f9784 | 13380 | compiler_FC=$CC |
13381 | for cc_temp in $compiler""; do | |
13382 | case $cc_temp in | |
13383 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13384 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13385 | \-*) ;; | |
13386 | *) break;; | |
13387 | esac | |
13388 | done | |
e6408286 | 13389 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 13390 | |
13391 | ||
13392 | if test -n "$compiler"; then | |
cd9a469c | 13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13394 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13396 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 13397 | |
cd9a469c | 13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13399 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
542f9784 | 13400 | test "$can_build_shared" = "no" && enable_shared=no |
13401 | ||
13402 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13403 | # are all built from PIC. | |
13404 | case $host_os in | |
13405 | aix3*) | |
13406 | test "$enable_shared" = yes && enable_static=no | |
13407 | if test -n "$RANLIB"; then | |
13408 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13409 | postinstall_cmds='$RANLIB $lib' | |
13410 | fi | |
13411 | ;; | |
21e07d2f | 13412 | aix[4-9]*) |
542f9784 | 13413 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13414 | test "$enable_shared" = yes && enable_static=no | |
13415 | fi | |
13416 | ;; | |
13417 | esac | |
cd9a469c | 13418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13419 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 13420 | |
cd9a469c | 13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13422 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
542f9784 | 13423 | # Make sure either enable_shared or enable_static is yes. |
13424 | test "$enable_shared" = yes || enable_static=yes | |
cd9a469c | 13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13426 | $as_echo "$enable_static" >&6; } | |
542f9784 | 13427 | |
13428 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
13429 | LD_FC="$LD" | |
13430 | ||
13431 | ## CAVEAT EMPTOR: | |
13432 | ## There is no encapsulation within the following macros, do not change | |
13433 | ## the running order or otherwise move them around unless you know exactly | |
13434 | ## what you are doing... | |
13435 | # Dependencies to place before and after the object being linked: | |
13436 | predep_objects_FC= | |
13437 | postdep_objects_FC= | |
13438 | predeps_FC= | |
13439 | postdeps_FC= | |
13440 | compiler_lib_search_path_FC= | |
13441 | ||
13442 | cat > conftest.$ac_ext <<_LT_EOF | |
13443 | subroutine foo | |
13444 | implicit none | |
13445 | integer a | |
13446 | a=0 | |
13447 | return | |
13448 | end | |
13449 | _LT_EOF | |
13450 | ||
cd9a469c | 13451 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 13452 | (eval $ac_compile) 2>&5 |
13453 | ac_status=$? | |
cd9a469c | 13454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13455 | test $ac_status = 0; }; then | |
542f9784 | 13456 | # Parse the compiler output and extract the necessary |
13457 | # objects, libraries and library flags. | |
13458 | ||
13459 | # Sentinel used to keep track of whether or not we are before | |
13460 | # the conftest object file. | |
13461 | pre_test_object_deps_done=no | |
13462 | ||
00aafda4 | 13463 | for p in `eval "$output_verbose_link_cmd"`; do |
542f9784 | 13464 | case $p in |
13465 | ||
13466 | -L* | -R* | -l*) | |
13467 | # Some compilers place space between "-{L,R}" and the path. | |
13468 | # Remove the space. | |
13469 | if test $p = "-L" || | |
13470 | test $p = "-R"; then | |
13471 | prev=$p | |
13472 | continue | |
13473 | else | |
13474 | prev= | |
13475 | fi | |
13476 | ||
13477 | if test "$pre_test_object_deps_done" = no; then | |
13478 | case $p in | |
13479 | -L* | -R*) | |
13480 | # Internal compiler library paths should come after those | |
13481 | # provided the user. The postdeps already come after the | |
13482 | # user supplied libs so there is no need to process them. | |
13483 | if test -z "$compiler_lib_search_path_FC"; then | |
13484 | compiler_lib_search_path_FC="${prev}${p}" | |
13485 | else | |
13486 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
13487 | fi | |
13488 | ;; | |
13489 | # The "-l" case would never come before the object being | |
13490 | # linked, so don't bother handling this case. | |
13491 | esac | |
13492 | else | |
13493 | if test -z "$postdeps_FC"; then | |
13494 | postdeps_FC="${prev}${p}" | |
13495 | else | |
13496 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
13497 | fi | |
13498 | fi | |
13499 | ;; | |
13500 | ||
13501 | *.$objext) | |
13502 | # This assumes that the test object file only shows up | |
13503 | # once in the compiler output. | |
13504 | if test "$p" = "conftest.$objext"; then | |
13505 | pre_test_object_deps_done=yes | |
13506 | continue | |
13507 | fi | |
13508 | ||
13509 | if test "$pre_test_object_deps_done" = no; then | |
13510 | if test -z "$predep_objects_FC"; then | |
13511 | predep_objects_FC="$p" | |
13512 | else | |
13513 | predep_objects_FC="$predep_objects_FC $p" | |
13514 | fi | |
13515 | else | |
13516 | if test -z "$postdep_objects_FC"; then | |
13517 | postdep_objects_FC="$p" | |
13518 | else | |
13519 | postdep_objects_FC="$postdep_objects_FC $p" | |
13520 | fi | |
13521 | fi | |
13522 | ;; | |
13523 | ||
13524 | *) ;; # Ignore the rest. | |
13525 | ||
13526 | esac | |
13527 | done | |
13528 | ||
13529 | # Clean up. | |
13530 | rm -f a.out a.exe | |
13531 | else | |
13532 | echo "libtool.m4: error: problem compiling FC test program" | |
13533 | fi | |
13534 | ||
13535 | $RM -f confest.$objext | |
13536 | ||
13537 | # PORTME: override above test on systems where it is broken | |
13538 | ||
13539 | ||
13540 | case " $postdeps_FC " in | |
13541 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
13542 | esac | |
00aafda4 | 13543 | compiler_lib_search_dirs_FC= |
13544 | if test -n "${compiler_lib_search_path_FC}"; then | |
13545 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13546 | fi | |
13547 | ||
13548 | ||
13549 | ||
13550 | ||
13551 | ||
542f9784 | 13552 | |
13553 | ||
13554 | ||
13555 | ||
13556 | ||
13557 | ||
13558 | ||
13559 | ||
13560 | ||
13561 | ||
13562 | ||
13563 | ||
13564 | ||
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | ||
13573 | ||
13574 | ||
13575 | ||
13576 | ||
13577 | ||
13578 | lt_prog_compiler_wl_FC= | |
13579 | lt_prog_compiler_pic_FC= | |
13580 | lt_prog_compiler_static_FC= | |
13581 | ||
cd9a469c | 13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
13583 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 13584 | |
13585 | if test "$GCC" = yes; then | |
13586 | lt_prog_compiler_wl_FC='-Wl,' | |
13587 | lt_prog_compiler_static_FC='-static' | |
13588 | ||
13589 | case $host_os in | |
13590 | aix*) | |
13591 | # All AIX code is PIC. | |
13592 | if test "$host_cpu" = ia64; then | |
13593 | # AIX 5 now supports IA64 processor | |
13594 | lt_prog_compiler_static_FC='-Bstatic' | |
13595 | fi | |
ccc0b0f9 | 13596 | lt_prog_compiler_pic_FC='-fPIC' |
542f9784 | 13597 | ;; |
13598 | ||
13599 | amigaos*) | |
00aafda4 | 13600 | case $host_cpu in |
13601 | powerpc) | |
13602 | # see comment about AmigaOS4 .so support | |
13603 | lt_prog_compiler_pic_FC='-fPIC' | |
13604 | ;; | |
13605 | m68k) | |
13606 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13607 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13608 | # like `-m68040'. | |
13609 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13610 | ;; | |
13611 | esac | |
542f9784 | 13612 | ;; |
13613 | ||
13614 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13615 | # PIC is the default for these OSes. | |
13616 | ;; | |
13617 | ||
00aafda4 | 13618 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13619 | # This hack is so that the source file can tell whether it is being |
13620 | # built for inclusion in a dll (and should export symbols for example). | |
13621 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13622 | # (--disable-auto-import) libraries | |
13623 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13624 | ;; | |
13625 | ||
13626 | darwin* | rhapsody*) | |
13627 | # PIC is the default on this platform | |
13628 | # Common symbols not allowed in MH_DYLIB files | |
13629 | lt_prog_compiler_pic_FC='-fno-common' | |
13630 | ;; | |
13631 | ||
e6408286 | 13632 | haiku*) |
13633 | # PIC is the default for Haiku. | |
13634 | # The "-static" flag exists, but is broken. | |
13635 | lt_prog_compiler_static_FC= | |
13636 | ;; | |
13637 | ||
542f9784 | 13638 | hpux*) |
00aafda4 | 13639 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13640 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13641 | # sets the default TLS model and affects inlining. | |
542f9784 | 13642 | case $host_cpu in |
00aafda4 | 13643 | hppa*64*) |
542f9784 | 13644 | # +Z the default |
13645 | ;; | |
13646 | *) | |
13647 | lt_prog_compiler_pic_FC='-fPIC' | |
13648 | ;; | |
13649 | esac | |
13650 | ;; | |
13651 | ||
13652 | interix[3-9]*) | |
13653 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13654 | # Instead, we relocate shared libraries at runtime. | |
13655 | ;; | |
13656 | ||
13657 | msdosdjgpp*) | |
13658 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13659 | # on systems that don't support them. | |
13660 | lt_prog_compiler_can_build_shared_FC=no | |
13661 | enable_shared=no | |
13662 | ;; | |
13663 | ||
13664 | *nto* | *qnx*) | |
13665 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13666 | # it will coredump. | |
13667 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13668 | ;; | |
13669 | ||
13670 | sysv4*MP*) | |
13671 | if test -d /usr/nec; then | |
13672 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13673 | fi | |
13674 | ;; | |
13675 | ||
13676 | *) | |
13677 | lt_prog_compiler_pic_FC='-fPIC' | |
13678 | ;; | |
13679 | esac | |
e6408286 | 13680 | |
13681 | case $cc_basename in | |
13682 | nvcc*) # Cuda Compiler Driver 2.2 | |
13683 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13684 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13685 | ;; | |
13686 | esac | |
542f9784 | 13687 | else |
13688 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13689 | case $host_os in | |
13690 | aix*) | |
13691 | lt_prog_compiler_wl_FC='-Wl,' | |
13692 | if test "$host_cpu" = ia64; then | |
13693 | # AIX 5 now supports IA64 processor | |
13694 | lt_prog_compiler_static_FC='-Bstatic' | |
13695 | else | |
13696 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13697 | fi | |
13698 | ;; | |
542f9784 | 13699 | |
00aafda4 | 13700 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13701 | # This hack is so that the source file can tell whether it is being |
13702 | # built for inclusion in a dll (and should export symbols for example). | |
13703 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13704 | ;; | |
13705 | ||
13706 | hpux9* | hpux10* | hpux11*) | |
13707 | lt_prog_compiler_wl_FC='-Wl,' | |
13708 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13709 | # not for PA HP-UX. | |
13710 | case $host_cpu in | |
13711 | hppa*64*|ia64*) | |
13712 | # +Z the default | |
13713 | ;; | |
13714 | *) | |
13715 | lt_prog_compiler_pic_FC='+Z' | |
13716 | ;; | |
13717 | esac | |
13718 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13719 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13720 | ;; | |
13721 | ||
13722 | irix5* | irix6* | nonstopux*) | |
13723 | lt_prog_compiler_wl_FC='-Wl,' | |
13724 | # PIC (with -KPIC) is the default. | |
13725 | lt_prog_compiler_static_FC='-non_shared' | |
13726 | ;; | |
13727 | ||
9af964d4 | 13728 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 13729 | case $cc_basename in |
00aafda4 | 13730 | # old Intel for x86_64 which still supported -KPIC. |
13731 | ecc*) | |
542f9784 | 13732 | lt_prog_compiler_wl_FC='-Wl,' |
13733 | lt_prog_compiler_pic_FC='-KPIC' | |
13734 | lt_prog_compiler_static_FC='-static' | |
13735 | ;; | |
00aafda4 | 13736 | # icc used to be incompatible with GCC. |
13737 | # ICC 10 doesn't accept -KPIC any more. | |
13738 | icc* | ifort*) | |
13739 | lt_prog_compiler_wl_FC='-Wl,' | |
13740 | lt_prog_compiler_pic_FC='-fPIC' | |
13741 | lt_prog_compiler_static_FC='-static' | |
13742 | ;; | |
13743 | # Lahey Fortran 8.1. | |
13744 | lf95*) | |
13745 | lt_prog_compiler_wl_FC='-Wl,' | |
13746 | lt_prog_compiler_pic_FC='--shared' | |
13747 | lt_prog_compiler_static_FC='--static' | |
13748 | ;; | |
e6408286 | 13749 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 13750 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13751 | # which looks to be a dead project) | |
13752 | lt_prog_compiler_wl_FC='-Wl,' | |
13753 | lt_prog_compiler_pic_FC='-fpic' | |
13754 | lt_prog_compiler_static_FC='-Bstatic' | |
13755 | ;; | |
13756 | ccc*) | |
13757 | lt_prog_compiler_wl_FC='-Wl,' | |
13758 | # All Alpha code is PIC. | |
13759 | lt_prog_compiler_static_FC='-non_shared' | |
13760 | ;; | |
e6408286 | 13761 | xl* | bgxl* | bgf* | mpixl*) |
13762 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 13763 | lt_prog_compiler_wl_FC='-Wl,' |
13764 | lt_prog_compiler_pic_FC='-qpic' | |
13765 | lt_prog_compiler_static_FC='-qstaticlink' | |
13766 | ;; | |
542f9784 | 13767 | *) |
13768 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 13769 | *Sun\ F* | *Sun*Fortran*) |
13770 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 13771 | lt_prog_compiler_pic_FC='-KPIC' |
13772 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13773 | lt_prog_compiler_wl_FC='' |
542f9784 | 13774 | ;; |
e6408286 | 13775 | *Sun\ C*) |
13776 | # Sun C 5.9 | |
542f9784 | 13777 | lt_prog_compiler_pic_FC='-KPIC' |
13778 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13779 | lt_prog_compiler_wl_FC='-Wl,' |
542f9784 | 13780 | ;; |
13781 | esac | |
13782 | ;; | |
13783 | esac | |
13784 | ;; | |
13785 | ||
13786 | newsos6) | |
13787 | lt_prog_compiler_pic_FC='-KPIC' | |
13788 | lt_prog_compiler_static_FC='-Bstatic' | |
13789 | ;; | |
13790 | ||
13791 | *nto* | *qnx*) | |
13792 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13793 | # it will coredump. | |
13794 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13795 | ;; | |
13796 | ||
13797 | osf3* | osf4* | osf5*) | |
13798 | lt_prog_compiler_wl_FC='-Wl,' | |
13799 | # All OSF/1 code is PIC. | |
13800 | lt_prog_compiler_static_FC='-non_shared' | |
13801 | ;; | |
13802 | ||
13803 | rdos*) | |
13804 | lt_prog_compiler_static_FC='-non_shared' | |
13805 | ;; | |
13806 | ||
13807 | solaris*) | |
13808 | lt_prog_compiler_pic_FC='-KPIC' | |
13809 | lt_prog_compiler_static_FC='-Bstatic' | |
13810 | case $cc_basename in | |
13811 | f77* | f90* | f95*) | |
13812 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13813 | *) | |
13814 | lt_prog_compiler_wl_FC='-Wl,';; | |
13815 | esac | |
13816 | ;; | |
13817 | ||
13818 | sunos4*) | |
13819 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13820 | lt_prog_compiler_pic_FC='-PIC' | |
13821 | lt_prog_compiler_static_FC='-Bstatic' | |
13822 | ;; | |
13823 | ||
13824 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13825 | lt_prog_compiler_wl_FC='-Wl,' | |
13826 | lt_prog_compiler_pic_FC='-KPIC' | |
13827 | lt_prog_compiler_static_FC='-Bstatic' | |
13828 | ;; | |
13829 | ||
13830 | sysv4*MP*) | |
13831 | if test -d /usr/nec ;then | |
13832 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
13833 | lt_prog_compiler_static_FC='-Bstatic' | |
13834 | fi | |
13835 | ;; | |
13836 | ||
13837 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13838 | lt_prog_compiler_wl_FC='-Wl,' | |
13839 | lt_prog_compiler_pic_FC='-KPIC' | |
13840 | lt_prog_compiler_static_FC='-Bstatic' | |
13841 | ;; | |
13842 | ||
13843 | unicos*) | |
13844 | lt_prog_compiler_wl_FC='-Wl,' | |
13845 | lt_prog_compiler_can_build_shared_FC=no | |
13846 | ;; | |
13847 | ||
13848 | uts4*) | |
13849 | lt_prog_compiler_pic_FC='-pic' | |
13850 | lt_prog_compiler_static_FC='-Bstatic' | |
13851 | ;; | |
13852 | ||
13853 | *) | |
13854 | lt_prog_compiler_can_build_shared_FC=no | |
13855 | ;; | |
13856 | esac | |
13857 | fi | |
13858 | ||
13859 | case $host_os in | |
13860 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13861 | *djgpp*) | |
13862 | lt_prog_compiler_pic_FC= | |
13863 | ;; | |
13864 | *) | |
13865 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
13866 | ;; | |
13867 | esac | |
cd9a469c | 13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
13869 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
542f9784 | 13870 | |
13871 | ||
13872 | ||
13873 | # | |
13874 | # Check to make sure the PIC flag actually works. | |
13875 | # | |
13876 | if test -n "$lt_prog_compiler_pic_FC"; then | |
cd9a469c | 13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
13878 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
f00f02a3 | 13879 | if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : |
cd9a469c | 13880 | $as_echo_n "(cached) " >&6 |
542f9784 | 13881 | else |
00aafda4 | 13882 | lt_cv_prog_compiler_pic_works_FC=no |
542f9784 | 13883 | ac_outfile=conftest.$ac_objext |
13884 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13885 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
13886 | # Insert the option either (1) after the last *FLAGS variable, or | |
13887 | # (2) before a word containing "conftest.", or (3) at the end. | |
13888 | # Note that $ac_compile itself does not contain backslashes and begins | |
13889 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13890 | # The option is referenced via a variable to avoid confusing sed. | |
13891 | lt_compile=`echo "$ac_compile" | $SED \ | |
13892 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13893 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13894 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13895 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13896 | (eval "$lt_compile" 2>conftest.err) |
13897 | ac_status=$? | |
13898 | cat conftest.err >&5 | |
e6408286 | 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13900 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13901 | # The compiler can only warn and ignore the option if not recognized | |
13902 | # So say no if there are warnings other than the usual output. | |
e6408286 | 13903 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 13904 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13905 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13906 | lt_cv_prog_compiler_pic_works_FC=yes |
542f9784 | 13907 | fi |
13908 | fi | |
13909 | $RM conftest* | |
13910 | ||
13911 | fi | |
cd9a469c | 13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
13913 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
542f9784 | 13914 | |
00aafda4 | 13915 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
542f9784 | 13916 | case $lt_prog_compiler_pic_FC in |
13917 | "" | " "*) ;; | |
13918 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
13919 | esac | |
13920 | else | |
13921 | lt_prog_compiler_pic_FC= | |
13922 | lt_prog_compiler_can_build_shared_FC=no | |
13923 | fi | |
13924 | ||
13925 | fi | |
13926 | ||
13927 | ||
13928 | ||
13929 | # | |
13930 | # Check to make sure the static flag actually works. | |
13931 | # | |
13932 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
cd9a469c | 13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13934 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
f00f02a3 | 13935 | if ${lt_cv_prog_compiler_static_works_FC+:} false; then : |
cd9a469c | 13936 | $as_echo_n "(cached) " >&6 |
542f9784 | 13937 | else |
00aafda4 | 13938 | lt_cv_prog_compiler_static_works_FC=no |
542f9784 | 13939 | save_LDFLAGS="$LDFLAGS" |
13940 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13941 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13942 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13943 | # The linker can only warn and ignore the option if not recognized | |
13944 | # So say no if there are warnings | |
13945 | if test -s conftest.err; then | |
13946 | # Append any errors to the config.log. | |
13947 | cat conftest.err 1>&5 | |
e6408286 | 13948 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 13949 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13950 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13951 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13952 | fi |
13953 | else | |
00aafda4 | 13954 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13955 | fi |
13956 | fi | |
00aafda4 | 13957 | $RM -r conftest* |
542f9784 | 13958 | LDFLAGS="$save_LDFLAGS" |
13959 | ||
13960 | fi | |
cd9a469c | 13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
13962 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
542f9784 | 13963 | |
00aafda4 | 13964 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
542f9784 | 13965 | : |
13966 | else | |
13967 | lt_prog_compiler_static_FC= | |
13968 | fi | |
13969 | ||
13970 | ||
13971 | ||
13972 | ||
cd9a469c | 13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13974 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 13975 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
cd9a469c | 13976 | $as_echo_n "(cached) " >&6 |
542f9784 | 13977 | else |
13978 | lt_cv_prog_compiler_c_o_FC=no | |
13979 | $RM -r conftest 2>/dev/null | |
13980 | mkdir conftest | |
13981 | cd conftest | |
13982 | mkdir out | |
13983 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13984 | ||
13985 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13986 | # Insert the option either (1) after the last *FLAGS variable, or | |
13987 | # (2) before a word containing "conftest.", or (3) at the end. | |
13988 | # Note that $ac_compile itself does not contain backslashes and begins | |
13989 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13990 | lt_compile=`echo "$ac_compile" | $SED \ | |
13991 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13992 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13993 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13994 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13995 | (eval "$lt_compile" 2>out/conftest.err) |
13996 | ac_status=$? | |
13997 | cat out/conftest.err >&5 | |
e6408286 | 13998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13999 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14000 | then | |
14001 | # The compiler can only warn and ignore the option if not recognized | |
14002 | # So say no if there are warnings | |
e6408286 | 14003 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 14004 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14005 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14006 | lt_cv_prog_compiler_c_o_FC=yes | |
14007 | fi | |
14008 | fi | |
14009 | chmod u+w . 2>&5 | |
14010 | $RM conftest* | |
14011 | # SGI C++ compiler will create directory out/ii_files/ for | |
14012 | # template instantiation | |
14013 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14014 | $RM out/* && rmdir out | |
14015 | cd .. | |
14016 | $RM -r conftest | |
14017 | $RM conftest* | |
14018 | ||
14019 | fi | |
cd9a469c | 14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14021 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 14022 | |
14023 | ||
14024 | ||
cd9a469c | 14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14026 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
f00f02a3 | 14027 | if ${lt_cv_prog_compiler_c_o_FC+:} false; then : |
cd9a469c | 14028 | $as_echo_n "(cached) " >&6 |
542f9784 | 14029 | else |
14030 | lt_cv_prog_compiler_c_o_FC=no | |
14031 | $RM -r conftest 2>/dev/null | |
14032 | mkdir conftest | |
14033 | cd conftest | |
14034 | mkdir out | |
14035 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14036 | ||
14037 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14038 | # Insert the option either (1) after the last *FLAGS variable, or | |
14039 | # (2) before a word containing "conftest.", or (3) at the end. | |
14040 | # Note that $ac_compile itself does not contain backslashes and begins | |
14041 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14042 | lt_compile=`echo "$ac_compile" | $SED \ | |
14043 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14044 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14045 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 14046 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 14047 | (eval "$lt_compile" 2>out/conftest.err) |
14048 | ac_status=$? | |
14049 | cat out/conftest.err >&5 | |
e6408286 | 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 14051 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14052 | then | |
14053 | # The compiler can only warn and ignore the option if not recognized | |
14054 | # So say no if there are warnings | |
e6408286 | 14055 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 14056 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14057 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14058 | lt_cv_prog_compiler_c_o_FC=yes | |
14059 | fi | |
14060 | fi | |
14061 | chmod u+w . 2>&5 | |
14062 | $RM conftest* | |
14063 | # SGI C++ compiler will create directory out/ii_files/ for | |
14064 | # template instantiation | |
14065 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14066 | $RM out/* && rmdir out | |
14067 | cd .. | |
14068 | $RM -r conftest | |
14069 | $RM conftest* | |
14070 | ||
14071 | fi | |
cd9a469c | 14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
14073 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 14074 | |
14075 | ||
14076 | ||
14077 | ||
14078 | hard_links="nottested" | |
14079 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
14080 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
14082 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 14083 | hard_links=yes |
14084 | $RM conftest* | |
14085 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14086 | touch conftest.a | |
14087 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14088 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
14090 | $as_echo "$hard_links" >&6; } | |
542f9784 | 14091 | if test "$hard_links" = no; then |
cd9a469c | 14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14093 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 14094 | need_locks=warn |
14095 | fi | |
14096 | else | |
14097 | need_locks=no | |
14098 | fi | |
14099 | ||
14100 | ||
14101 | ||
cd9a469c | 14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14103 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 14104 | |
14105 | runpath_var= | |
14106 | allow_undefined_flag_FC= | |
14107 | always_export_symbols_FC=no | |
14108 | archive_cmds_FC= | |
14109 | archive_expsym_cmds_FC= | |
14110 | compiler_needs_object_FC=no | |
14111 | enable_shared_with_static_runtimes_FC=no | |
14112 | export_dynamic_flag_spec_FC= | |
14113 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14114 | hardcode_automatic_FC=no | |
14115 | hardcode_direct_FC=no | |
14116 | hardcode_direct_absolute_FC=no | |
14117 | hardcode_libdir_flag_spec_FC= | |
14118 | hardcode_libdir_flag_spec_ld_FC= | |
14119 | hardcode_libdir_separator_FC= | |
14120 | hardcode_minus_L_FC=no | |
14121 | hardcode_shlibpath_var_FC=unsupported | |
14122 | inherit_rpath_FC=no | |
14123 | link_all_deplibs_FC=unknown | |
14124 | module_cmds_FC= | |
14125 | module_expsym_cmds_FC= | |
14126 | old_archive_from_new_cmds_FC= | |
14127 | old_archive_from_expsyms_cmds_FC= | |
14128 | thread_safe_flag_spec_FC= | |
14129 | whole_archive_flag_spec_FC= | |
14130 | # include_expsyms should be a list of space-separated symbols to be *always* | |
14131 | # included in the symbol list | |
14132 | include_expsyms_FC= | |
14133 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
14134 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14135 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14136 | # as well as any symbol that contains `d'. | |
00aafda4 | 14137 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 14138 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14139 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
14140 | # the symbol is explicitly referenced. Since portable code cannot | |
14141 | # rely on this symbol name, it's probably fine to never include it in | |
14142 | # preloaded symbol tables. | |
00aafda4 | 14143 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 14144 | extract_expsyms_cmds= |
14145 | ||
14146 | case $host_os in | |
00aafda4 | 14147 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14148 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14149 | # When not using gcc, we currently assume that we are using | |
14150 | # Microsoft Visual C++. | |
14151 | if test "$GCC" != yes; then | |
14152 | with_gnu_ld=no | |
14153 | fi | |
14154 | ;; | |
14155 | interix*) | |
14156 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14157 | with_gnu_ld=yes | |
14158 | ;; | |
14159 | openbsd*) | |
14160 | with_gnu_ld=no | |
14161 | ;; | |
14162 | esac | |
14163 | ||
14164 | ld_shlibs_FC=yes | |
e6408286 | 14165 | |
14166 | # On some targets, GNU ld is compatible enough with the native linker | |
14167 | # that we're better off using the native interface for both. | |
14168 | lt_use_gnu_ld_interface=no | |
542f9784 | 14169 | if test "$with_gnu_ld" = yes; then |
e6408286 | 14170 | case $host_os in |
14171 | aix*) | |
14172 | # The AIX port of GNU ld has always aspired to compatibility | |
14173 | # with the native linker. However, as the warning in the GNU ld | |
14174 | # block says, versions before 2.19.5* couldn't really create working | |
14175 | # shared libraries, regardless of the interface used. | |
14176 | case `$LD -v 2>&1` in | |
14177 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
14178 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
14179 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
14180 | *) | |
14181 | lt_use_gnu_ld_interface=yes | |
14182 | ;; | |
14183 | esac | |
14184 | ;; | |
14185 | *) | |
14186 | lt_use_gnu_ld_interface=yes | |
14187 | ;; | |
14188 | esac | |
14189 | fi | |
14190 | ||
14191 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 14192 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14193 | wlarc='${wl}' | |
14194 | ||
14195 | # Set some defaults for GNU ld with shared library support. These | |
14196 | # are reset later if shared libraries are not supported. Putting them | |
14197 | # here allows them to be overridden if necessary. | |
14198 | runpath_var=LD_RUN_PATH | |
14199 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14200 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
14201 | # ancient GNU ld didn't support --whole-archive et. al. | |
14202 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
14203 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14204 | else | |
14205 | whole_archive_flag_spec_FC= | |
14206 | fi | |
14207 | supports_anon_versioning=no | |
14208 | case `$LD -v 2>&1` in | |
e6408286 | 14209 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 14210 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14211 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14212 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14213 | *\ 2.11.*) ;; # other 2.11 versions | |
14214 | *) supports_anon_versioning=yes ;; | |
14215 | esac | |
14216 | ||
14217 | # See if GNU ld supports shared libraries. | |
14218 | case $host_os in | |
21e07d2f | 14219 | aix[3-9]*) |
542f9784 | 14220 | # On AIX/PPC, the GNU linker is very broken |
14221 | if test "$host_cpu" != ia64; then | |
14222 | ld_shlibs_FC=no | |
14223 | cat <<_LT_EOF 1>&2 | |
14224 | ||
e6408286 | 14225 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 14226 | *** to be unable to reliably create shared libraries on AIX. |
14227 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 14228 | *** really care for shared libraries, you may want to install binutils |
14229 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
14230 | *** You will then need to restart the configuration process. | |
542f9784 | 14231 | |
14232 | _LT_EOF | |
14233 | fi | |
14234 | ;; | |
14235 | ||
14236 | amigaos*) | |
00aafda4 | 14237 | case $host_cpu in |
14238 | powerpc) | |
14239 | # see comment about AmigaOS4 .so support | |
14240 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14241 | archive_expsym_cmds_FC='' | |
14242 | ;; | |
14243 | m68k) | |
14244 | 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)' | |
14245 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14246 | hardcode_minus_L_FC=yes | |
14247 | ;; | |
14248 | esac | |
542f9784 | 14249 | ;; |
14250 | ||
14251 | beos*) | |
14252 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14253 | allow_undefined_flag_FC=unsupported | |
14254 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14255 | # support --undefined. This deserves some investigation. FIXME | |
14256 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14257 | else | |
14258 | ld_shlibs_FC=no | |
14259 | fi | |
14260 | ;; | |
14261 | ||
00aafda4 | 14262 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14263 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
14264 | # as there is no search path for DLLs. | |
14265 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
e6408286 | 14266 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
542f9784 | 14267 | allow_undefined_flag_FC=unsupported |
14268 | always_export_symbols_FC=no | |
14269 | enable_shared_with_static_runtimes_FC=yes | |
14270 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
14271 | ||
14272 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14273 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14274 | # If the export-symbols file already is a .def file (1st line | |
14275 | # is EXPORTS), use it as is; otherwise, prepend... | |
14276 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14277 | cp $export_symbols $output_objdir/$soname.def; | |
14278 | else | |
14279 | echo EXPORTS > $output_objdir/$soname.def; | |
14280 | cat $export_symbols >> $output_objdir/$soname.def; | |
14281 | fi~ | |
14282 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14283 | else | |
14284 | ld_shlibs_FC=no | |
14285 | fi | |
14286 | ;; | |
14287 | ||
e6408286 | 14288 | haiku*) |
14289 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14290 | link_all_deplibs_FC=yes | |
14291 | ;; | |
14292 | ||
542f9784 | 14293 | interix[3-9]*) |
14294 | hardcode_direct_FC=no | |
14295 | hardcode_shlibpath_var_FC=no | |
14296 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14297 | export_dynamic_flag_spec_FC='${wl}-E' | |
14298 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14299 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14300 | # default) and relocated if they conflict, which is a slow very memory | |
14301 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14302 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14303 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14304 | 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' | |
14305 | 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' | |
14306 | ;; | |
14307 | ||
9af964d4 | 14308 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 14309 | tmp_diet=no |
14310 | if test "$host_os" = linux-dietlibc; then | |
14311 | case $cc_basename in | |
14312 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
14313 | esac | |
14314 | fi | |
14315 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
14316 | && test "$tmp_diet" = no | |
14317 | then | |
4e8a08d4 | 14318 | tmp_addflag=' $pic_flag' |
00aafda4 | 14319 | tmp_sharedflag='-shared' |
542f9784 | 14320 | case $cc_basename,$host_cpu in |
14321 | pgcc*) # Portland Group C compiler | |
e6408286 | 14322 | 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' |
542f9784 | 14323 | tmp_addflag=' $pic_flag' |
14324 | ;; | |
e6408286 | 14325 | pgf77* | pgf90* | pgf95* | pgfortran*) |
14326 | # Portland Group f77 and f90 compilers | |
14327 | 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' | |
542f9784 | 14328 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14329 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14330 | tmp_addflag=' -i_dynamic' ;; | |
14331 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14332 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14333 | ifc* | ifort*) # Intel Fortran compiler | |
14334 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 14335 | lf95*) # Lahey Fortran 8.1 |
14336 | whole_archive_flag_spec_FC= | |
14337 | tmp_sharedflag='--shared' ;; | |
e6408286 | 14338 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 14339 | tmp_sharedflag='-qmkshrobj' |
14340 | tmp_addflag= ;; | |
e6408286 | 14341 | nvcc*) # Cuda Compiler Driver 2.2 |
14342 | 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' | |
14343 | compiler_needs_object_FC=yes | |
14344 | ;; | |
542f9784 | 14345 | esac |
14346 | case `$CC -V 2>&1 | sed 5q` in | |
14347 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 14348 | 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' |
542f9784 | 14349 | compiler_needs_object_FC=yes |
14350 | tmp_sharedflag='-G' ;; | |
14351 | *Sun\ F*) # Sun Fortran 8.3 | |
14352 | tmp_sharedflag='-G' ;; | |
542f9784 | 14353 | esac |
14354 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14355 | ||
14356 | if test "x$supports_anon_versioning" = xyes; then | |
14357 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14358 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14359 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14360 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14361 | fi | |
00aafda4 | 14362 | |
14363 | case $cc_basename in | |
e6408286 | 14364 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 14365 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
14366 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
14367 | hardcode_libdir_flag_spec_FC= | |
14368 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
14369 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
14370 | if test "x$supports_anon_versioning" = xyes; then | |
14371 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
14372 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14373 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14374 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
14375 | fi | |
14376 | ;; | |
14377 | esac | |
542f9784 | 14378 | else |
14379 | ld_shlibs_FC=no | |
14380 | fi | |
14381 | ;; | |
14382 | ||
14383 | netbsd*) | |
14384 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14385 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14386 | wlarc= | |
14387 | else | |
14388 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14389 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14390 | fi | |
14391 | ;; | |
14392 | ||
14393 | solaris*) | |
14394 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
14395 | ld_shlibs_FC=no | |
14396 | cat <<_LT_EOF 1>&2 | |
14397 | ||
14398 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14399 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14400 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14401 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14402 | *** your PATH or compiler configuration so that the native linker is | |
14403 | *** used, and then restart. | |
14404 | ||
14405 | _LT_EOF | |
14406 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14407 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14408 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14409 | else | |
14410 | ld_shlibs_FC=no | |
14411 | fi | |
14412 | ;; | |
14413 | ||
14414 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14415 | case `$LD -v 2>&1` in | |
14416 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14417 | ld_shlibs_FC=no | |
14418 | cat <<_LT_EOF 1>&2 | |
14419 | ||
14420 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14421 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14422 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14423 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14424 | *** your PATH or compiler configuration so that the native linker is | |
14425 | *** used, and then restart. | |
14426 | ||
14427 | _LT_EOF | |
14428 | ;; | |
14429 | *) | |
14430 | # For security reasons, it is highly recommended that you always | |
14431 | # use absolute paths for naming shared libraries, and exclude the | |
14432 | # DT_RUNPATH tag from executables and libraries. But doing so | |
14433 | # requires that you compile everything twice, which is a pain. | |
14434 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14435 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14436 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14437 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14438 | else | |
14439 | ld_shlibs_FC=no | |
14440 | fi | |
14441 | ;; | |
14442 | esac | |
14443 | ;; | |
14444 | ||
14445 | sunos4*) | |
14446 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14447 | wlarc= | |
14448 | hardcode_direct_FC=yes | |
14449 | hardcode_shlibpath_var_FC=no | |
14450 | ;; | |
14451 | ||
14452 | *) | |
14453 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14454 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14455 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14456 | else | |
14457 | ld_shlibs_FC=no | |
14458 | fi | |
14459 | ;; | |
14460 | esac | |
14461 | ||
14462 | if test "$ld_shlibs_FC" = no; then | |
14463 | runpath_var= | |
14464 | hardcode_libdir_flag_spec_FC= | |
14465 | export_dynamic_flag_spec_FC= | |
14466 | whole_archive_flag_spec_FC= | |
14467 | fi | |
14468 | else | |
14469 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14470 | case $host_os in | |
14471 | aix3*) | |
14472 | allow_undefined_flag_FC=unsupported | |
14473 | always_export_symbols_FC=yes | |
14474 | 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' | |
14475 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14476 | # are no directories specified by -L. | |
14477 | hardcode_minus_L_FC=yes | |
14478 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14479 | # Neither direct hardcoding nor static linking is supported with a | |
14480 | # broken collect2. | |
14481 | hardcode_direct_FC=unsupported | |
14482 | fi | |
14483 | ;; | |
14484 | ||
21e07d2f | 14485 | aix[4-9]*) |
542f9784 | 14486 | if test "$host_cpu" = ia64; then |
14487 | # On IA64, the linker does run time linking by default, so we don't | |
14488 | # have to do anything special. | |
14489 | aix_use_runtimelinking=no | |
14490 | exp_sym_flag='-Bexport' | |
14491 | no_entry_flag="" | |
14492 | else | |
14493 | # If we're using GNU nm, then we don't want the "-C" option. | |
14494 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 14495 | # Also, AIX nm treats weak defined symbols like other global |
14496 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 14497 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 14498 | 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' |
542f9784 | 14499 | else |
8c596dcc | 14500 | 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' |
542f9784 | 14501 | fi |
14502 | aix_use_runtimelinking=no | |
14503 | ||
14504 | # Test if we are trying to use run time linking or normal | |
14505 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14506 | # need to do runtime linking. | |
21e07d2f | 14507 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 14508 | for ld_flag in $LDFLAGS; do |
14509 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14510 | aix_use_runtimelinking=yes | |
14511 | break | |
14512 | fi | |
14513 | done | |
14514 | ;; | |
14515 | esac | |
14516 | ||
14517 | exp_sym_flag='-bexport' | |
14518 | no_entry_flag='-bnoentry' | |
14519 | fi | |
14520 | ||
14521 | # When large executables or shared objects are built, AIX ld can | |
14522 | # have problems creating the table of contents. If linking a library | |
14523 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14524 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14525 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14526 | ||
14527 | archive_cmds_FC='' | |
14528 | hardcode_direct_FC=yes | |
14529 | hardcode_direct_absolute_FC=yes | |
14530 | hardcode_libdir_separator_FC=':' | |
14531 | link_all_deplibs_FC=yes | |
14532 | file_list_spec_FC='${wl}-f,' | |
14533 | ||
14534 | if test "$GCC" = yes; then | |
14535 | case $host_os in aix4.[012]|aix4.[012].*) | |
14536 | # We only want to do this on AIX 4.2 and lower, the check | |
14537 | # below for broken collect2 doesn't work under 4.3+ | |
14538 | collect2name=`${CC} -print-prog-name=collect2` | |
14539 | if test -f "$collect2name" && | |
14540 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14541 | then | |
14542 | # We have reworked collect2 | |
14543 | : | |
14544 | else | |
14545 | # We have old collect2 | |
14546 | hardcode_direct_FC=unsupported | |
14547 | # It fails to find uninstalled libraries when the uninstalled | |
14548 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14549 | # to unsupported forces relinking | |
14550 | hardcode_minus_L_FC=yes | |
14551 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14552 | hardcode_libdir_separator_FC= | |
14553 | fi | |
14554 | ;; | |
14555 | esac | |
14556 | shared_flag='-shared' | |
14557 | if test "$aix_use_runtimelinking" = yes; then | |
14558 | shared_flag="$shared_flag "'${wl}-G' | |
14559 | fi | |
14560 | else | |
14561 | # not using gcc | |
14562 | if test "$host_cpu" = ia64; then | |
14563 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14564 | # chokes on -Wl,-G. The following line is correct: | |
14565 | shared_flag='-G' | |
14566 | else | |
14567 | if test "$aix_use_runtimelinking" = yes; then | |
14568 | shared_flag='${wl}-G' | |
14569 | else | |
14570 | shared_flag='${wl}-bM:SRE' | |
14571 | fi | |
14572 | fi | |
14573 | fi | |
14574 | ||
00aafda4 | 14575 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
542f9784 | 14576 | # It seems that -bexpall does not export symbols beginning with |
14577 | # underscore (_), so it is better to generate a list of symbols to export. | |
14578 | always_export_symbols_FC=yes | |
14579 | if test "$aix_use_runtimelinking" = yes; then | |
14580 | # Warning - without using the other runtime loading flags (-brtl), | |
14581 | # -berok will link without error, but may produce a broken library. | |
14582 | allow_undefined_flag_FC='-berok' | |
14583 | # Determine the default libpath from the value encoded in an | |
14584 | # empty executable. | |
14585 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 14586 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14587 | fi |
cd9a469c | 14588 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14589 | program main |
14590 | ||
14591 | end | |
14592 | _ACEOF | |
cd9a469c | 14593 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14594 | |
14595 | lt_aix_libpath_sed=' | |
14596 | /Import File Strings/,/^$/ { | |
14597 | /^0/ { | |
14598 | s/^0 *\(.*\)$/\1/ | |
14599 | p | |
14600 | } | |
14601 | }' | |
14602 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14603 | # Check for a 64-bit object if we didn't find anything. | |
14604 | if test -z "$aix_libpath"; then | |
14605 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14606 | fi | |
542f9784 | 14607 | fi |
cd9a469c | 14608 | rm -f core conftest.err conftest.$ac_objext \ |
14609 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14610 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14611 | ||
14612 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 14613 | 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" |
542f9784 | 14614 | else |
14615 | if test "$host_cpu" = ia64; then | |
14616 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14617 | allow_undefined_flag_FC="-z nodefs" | |
14618 | 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" | |
14619 | else | |
14620 | # Determine the default libpath from the value encoded in an | |
14621 | # empty executable. | |
14622 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 14623 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14624 | fi |
cd9a469c | 14625 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14626 | program main |
14627 | ||
14628 | end | |
14629 | _ACEOF | |
cd9a469c | 14630 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14631 | |
14632 | lt_aix_libpath_sed=' | |
14633 | /Import File Strings/,/^$/ { | |
14634 | /^0/ { | |
14635 | s/^0 *\(.*\)$/\1/ | |
14636 | p | |
14637 | } | |
14638 | }' | |
14639 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14640 | # Check for a 64-bit object if we didn't find anything. | |
14641 | if test -z "$aix_libpath"; then | |
14642 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14643 | fi | |
542f9784 | 14644 | fi |
cd9a469c | 14645 | rm -f core conftest.err conftest.$ac_objext \ |
14646 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14647 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14648 | ||
14649 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14650 | # Warning - without using the other run time loading flags, | |
14651 | # -berok will link without error, but may produce a broken library. | |
14652 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14653 | allow_undefined_flag_FC=' ${wl}-berok' | |
e6408286 | 14654 | if test "$with_gnu_ld" = yes; then |
14655 | # We only use this code for GNU lds that support --whole-archive. | |
14656 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14657 | else | |
14658 | # Exported symbols can be pulled into shared objects from archives | |
14659 | whole_archive_flag_spec_FC='$convenience' | |
14660 | fi | |
542f9784 | 14661 | archive_cmds_need_lc_FC=yes |
14662 | # This is similar to how AIX traditionally builds its shared libraries. | |
14663 | 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' | |
14664 | fi | |
14665 | fi | |
14666 | ;; | |
14667 | ||
14668 | amigaos*) | |
00aafda4 | 14669 | case $host_cpu in |
14670 | powerpc) | |
14671 | # see comment about AmigaOS4 .so support | |
14672 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14673 | archive_expsym_cmds_FC='' | |
14674 | ;; | |
14675 | m68k) | |
14676 | 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)' | |
14677 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14678 | hardcode_minus_L_FC=yes | |
14679 | ;; | |
14680 | esac | |
542f9784 | 14681 | ;; |
14682 | ||
14683 | bsdi[45]*) | |
14684 | export_dynamic_flag_spec_FC=-rdynamic | |
14685 | ;; | |
14686 | ||
00aafda4 | 14687 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14688 | # When not using gcc, we currently assume that we are using |
14689 | # Microsoft Visual C++. | |
14690 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14691 | # no search path for DLLs. | |
14692 | hardcode_libdir_flag_spec_FC=' ' | |
14693 | allow_undefined_flag_FC=unsupported | |
14694 | # Tell ltmain to make .lib files, not .a files. | |
14695 | libext=lib | |
14696 | # Tell ltmain to make .dll files, not .so files. | |
14697 | shrext_cmds=".dll" | |
14698 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 14699 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 14700 | # The linker will automatically build a .lib file if we build a DLL. |
14701 | old_archive_from_new_cmds_FC='true' | |
14702 | # FIXME: Should let the user specify the lib program. | |
14703 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14704 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14705 | enable_shared_with_static_runtimes_FC=yes | |
14706 | ;; | |
14707 | ||
14708 | darwin* | rhapsody*) | |
542f9784 | 14709 | |
00aafda4 | 14710 | |
14711 | archive_cmds_need_lc_FC=no | |
14712 | hardcode_direct_FC=no | |
14713 | hardcode_automatic_FC=yes | |
14714 | hardcode_shlibpath_var_FC=unsupported | |
e6408286 | 14715 | if test "$lt_cv_ld_force_load" = "yes"; then |
14716 | 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\"`' | |
14717 | else | |
14718 | whole_archive_flag_spec_FC='' | |
14719 | fi | |
00aafda4 | 14720 | link_all_deplibs_FC=yes |
14721 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14722 | case $cc_basename in | |
14723 | ifort*) _lt_dar_can_shared=yes ;; | |
14724 | *) _lt_dar_can_shared=$GCC ;; | |
14725 | esac | |
14726 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 14727 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 14728 | 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}" |
14729 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14730 | 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}" | |
14731 | 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}" | |
14732 | ||
14733 | else | |
14734 | ld_shlibs_FC=no | |
14735 | fi | |
14736 | ||
542f9784 | 14737 | ;; |
14738 | ||
14739 | dgux*) | |
14740 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14741 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14742 | hardcode_shlibpath_var_FC=no | |
14743 | ;; | |
14744 | ||
542f9784 | 14745 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14746 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14747 | # does not break anything, and helps significantly (at the cost of a little | |
14748 | # extra space). | |
14749 | freebsd2.2*) | |
14750 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14751 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14752 | hardcode_direct_FC=yes | |
14753 | hardcode_shlibpath_var_FC=no | |
14754 | ;; | |
14755 | ||
14756 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
30369aff | 14757 | freebsd2.*) |
542f9784 | 14758 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14759 | hardcode_direct_FC=yes | |
14760 | hardcode_minus_L_FC=yes | |
14761 | hardcode_shlibpath_var_FC=no | |
14762 | ;; | |
14763 | ||
14764 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14765 | freebsd* | dragonfly*) | |
14766 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14767 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14768 | hardcode_direct_FC=yes | |
14769 | hardcode_shlibpath_var_FC=no | |
14770 | ;; | |
14771 | ||
14772 | hpux9*) | |
14773 | if test "$GCC" = yes; then | |
14774 | 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' | |
14775 | else | |
14776 | 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' | |
14777 | fi | |
14778 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14779 | hardcode_libdir_separator_FC=: | |
14780 | hardcode_direct_FC=yes | |
14781 | ||
14782 | # hardcode_minus_L: Not really in the search PATH, | |
14783 | # but as the default location of the library. | |
14784 | hardcode_minus_L_FC=yes | |
14785 | export_dynamic_flag_spec_FC='${wl}-E' | |
14786 | ;; | |
14787 | ||
14788 | hpux10*) | |
e6408286 | 14789 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14790 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14791 | else | |
14792 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14793 | fi | |
14794 | if test "$with_gnu_ld" = no; then | |
14795 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14796 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14797 | hardcode_libdir_separator_FC=: | |
14798 | hardcode_direct_FC=yes | |
14799 | hardcode_direct_absolute_FC=yes | |
14800 | export_dynamic_flag_spec_FC='${wl}-E' | |
14801 | # hardcode_minus_L: Not really in the search PATH, | |
14802 | # but as the default location of the library. | |
14803 | hardcode_minus_L_FC=yes | |
14804 | fi | |
14805 | ;; | |
14806 | ||
14807 | hpux11*) | |
e6408286 | 14808 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14809 | case $host_cpu in |
14810 | hppa*64*) | |
14811 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14812 | ;; | |
14813 | ia64*) | |
00aafda4 | 14814 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14815 | ;; |
14816 | *) | |
14817 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14818 | ;; | |
14819 | esac | |
14820 | else | |
14821 | case $host_cpu in | |
14822 | hppa*64*) | |
14823 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14824 | ;; | |
14825 | ia64*) | |
14826 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14827 | ;; | |
14828 | *) | |
e6408286 | 14829 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14830 | ;; |
14831 | esac | |
14832 | fi | |
14833 | if test "$with_gnu_ld" = no; then | |
14834 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14835 | hardcode_libdir_separator_FC=: | |
14836 | ||
14837 | case $host_cpu in | |
14838 | hppa*64*|ia64*) | |
14839 | hardcode_direct_FC=no | |
14840 | hardcode_shlibpath_var_FC=no | |
14841 | ;; | |
14842 | *) | |
14843 | hardcode_direct_FC=yes | |
14844 | hardcode_direct_absolute_FC=yes | |
14845 | export_dynamic_flag_spec_FC='${wl}-E' | |
14846 | ||
14847 | # hardcode_minus_L: Not really in the search PATH, | |
14848 | # but as the default location of the library. | |
14849 | hardcode_minus_L_FC=yes | |
14850 | ;; | |
14851 | esac | |
14852 | fi | |
14853 | ;; | |
14854 | ||
14855 | irix5* | irix6* | nonstopux*) | |
14856 | if test "$GCC" = yes; then | |
e6408286 | 14857 | 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' |
542f9784 | 14858 | # Try to use the -exported_symbol ld option, if it does not |
14859 | # work, assume that -exports_file does not work either and | |
14860 | # implicitly export all symbols. | |
14861 | save_LDFLAGS="$LDFLAGS" | |
14862 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
14863 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 14864 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14865 | fi |
cd9a469c | 14866 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14867 | int foo(void) {} |
14868 | _ACEOF | |
cd9a469c | 14869 | if ac_fn_fc_try_link "$LINENO"; then : |
e6408286 | 14870 | 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' |
542f9784 | 14871 | |
542f9784 | 14872 | fi |
cd9a469c | 14873 | rm -f core conftest.err conftest.$ac_objext \ |
14874 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14875 | LDFLAGS="$save_LDFLAGS" |
14876 | else | |
e6408286 | 14877 | 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' |
14878 | 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' | |
542f9784 | 14879 | fi |
14880 | archive_cmds_need_lc_FC='no' | |
14881 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14882 | hardcode_libdir_separator_FC=: | |
14883 | inherit_rpath_FC=yes | |
14884 | link_all_deplibs_FC=yes | |
14885 | ;; | |
14886 | ||
14887 | netbsd*) | |
14888 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14889 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14890 | else | |
14891 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14892 | fi | |
14893 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14894 | hardcode_direct_FC=yes | |
14895 | hardcode_shlibpath_var_FC=no | |
14896 | ;; | |
14897 | ||
14898 | newsos6) | |
14899 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14900 | hardcode_direct_FC=yes | |
14901 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14902 | hardcode_libdir_separator_FC=: | |
14903 | hardcode_shlibpath_var_FC=no | |
14904 | ;; | |
14905 | ||
14906 | *nto* | *qnx*) | |
14907 | ;; | |
14908 | ||
14909 | openbsd*) | |
00aafda4 | 14910 | if test -f /usr/libexec/ld.so; then |
14911 | hardcode_direct_FC=yes | |
14912 | hardcode_shlibpath_var_FC=no | |
14913 | hardcode_direct_absolute_FC=yes | |
14914 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 14915 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 14916 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 14917 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
00aafda4 | 14918 | export_dynamic_flag_spec_FC='${wl}-E' |
14919 | else | |
14920 | case $host_os in | |
14921 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14922 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14923 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14924 | ;; | |
14925 | *) | |
14926 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14927 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14928 | ;; | |
14929 | esac | |
14930 | fi | |
14931 | else | |
14932 | ld_shlibs_FC=no | |
542f9784 | 14933 | fi |
14934 | ;; | |
14935 | ||
14936 | os2*) | |
14937 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14938 | hardcode_minus_L_FC=yes | |
14939 | allow_undefined_flag_FC=unsupported | |
e6408286 | 14940 | 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' |
542f9784 | 14941 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14942 | ;; | |
14943 | ||
14944 | osf3*) | |
14945 | if test "$GCC" = yes; then | |
14946 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14947 | 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' |
542f9784 | 14948 | else |
14949 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14950 | 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' |
542f9784 | 14951 | fi |
14952 | archive_cmds_need_lc_FC='no' | |
14953 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14954 | hardcode_libdir_separator_FC=: | |
14955 | ;; | |
14956 | ||
14957 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14958 | if test "$GCC" = yes; then | |
14959 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14960 | 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' |
542f9784 | 14961 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
14962 | else | |
14963 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14964 | 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' |
542f9784 | 14965 | 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~ |
e6408286 | 14966 | $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' |
542f9784 | 14967 | |
14968 | # Both c and cxx compiler support -rpath directly | |
14969 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
14970 | fi | |
14971 | archive_cmds_need_lc_FC='no' | |
14972 | hardcode_libdir_separator_FC=: | |
14973 | ;; | |
14974 | ||
14975 | solaris*) | |
14976 | no_undefined_flag_FC=' -z defs' | |
14977 | if test "$GCC" = yes; then | |
14978 | wlarc='${wl}' | |
14979 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14980 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14981 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14982 | else | |
14983 | case `$CC -V 2>&1` in | |
14984 | *"Compilers 5.0"*) | |
14985 | wlarc='' | |
14986 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14987 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14988 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
14989 | ;; | |
14990 | *) | |
14991 | wlarc='${wl}' | |
14992 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14993 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14994 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14995 | ;; | |
14996 | esac | |
14997 | fi | |
14998 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14999 | hardcode_shlibpath_var_FC=no | |
15000 | case $host_os in | |
15001 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15002 | *) | |
15003 | # The compiler driver will combine and reorder linker options, | |
15004 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
15005 | # but is careful enough not to reorder. | |
15006 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15007 | if test "$GCC" = yes; then | |
15008 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
15009 | else | |
15010 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
15011 | fi | |
15012 | ;; | |
15013 | esac | |
15014 | link_all_deplibs_FC=yes | |
15015 | ;; | |
15016 | ||
15017 | sunos4*) | |
15018 | if test "x$host_vendor" = xsequent; then | |
15019 | # Use $CC to link under sequent, because it throws in some extra .o | |
15020 | # files that make .init and .fini sections work. | |
15021 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15022 | else | |
15023 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15024 | fi | |
15025 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15026 | hardcode_direct_FC=yes | |
15027 | hardcode_minus_L_FC=yes | |
15028 | hardcode_shlibpath_var_FC=no | |
15029 | ;; | |
15030 | ||
15031 | sysv4) | |
15032 | case $host_vendor in | |
15033 | sni) | |
15034 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15035 | hardcode_direct_FC=yes # is this really true??? | |
15036 | ;; | |
15037 | siemens) | |
15038 | ## LD is ld it makes a PLAMLIB | |
15039 | ## CC just makes a GrossModule. | |
15040 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15041 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
15042 | hardcode_direct_FC=no | |
15043 | ;; | |
15044 | motorola) | |
15045 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15046 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
15047 | ;; | |
15048 | esac | |
15049 | runpath_var='LD_RUN_PATH' | |
15050 | hardcode_shlibpath_var_FC=no | |
15051 | ;; | |
15052 | ||
15053 | sysv4.3*) | |
15054 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15055 | hardcode_shlibpath_var_FC=no | |
15056 | export_dynamic_flag_spec_FC='-Bexport' | |
15057 | ;; | |
15058 | ||
15059 | sysv4*MP*) | |
15060 | if test -d /usr/nec; then | |
15061 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15062 | hardcode_shlibpath_var_FC=no | |
15063 | runpath_var=LD_RUN_PATH | |
15064 | hardcode_runpath_var=yes | |
15065 | ld_shlibs_FC=yes | |
15066 | fi | |
15067 | ;; | |
15068 | ||
15069 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
15070 | no_undefined_flag_FC='${wl}-z,text' | |
15071 | archive_cmds_need_lc_FC=no | |
15072 | hardcode_shlibpath_var_FC=no | |
15073 | runpath_var='LD_RUN_PATH' | |
15074 | ||
15075 | if test "$GCC" = yes; then | |
15076 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15077 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15078 | else | |
15079 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15080 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15081 | fi | |
15082 | ;; | |
15083 | ||
15084 | sysv5* | sco3.2v5* | sco5v6*) | |
15085 | # Note: We can NOT use -z defs as we might desire, because we do not | |
15086 | # link with -lc, and that would cause any symbols used from libc to | |
15087 | # always be unresolved, which means just about no library would | |
15088 | # ever link correctly. If we're not using GNU ld we use -z text | |
15089 | # though, which does catch some bad symbols but isn't as heavy-handed | |
15090 | # as -z defs. | |
15091 | no_undefined_flag_FC='${wl}-z,text' | |
15092 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
15093 | archive_cmds_need_lc_FC=no | |
15094 | hardcode_shlibpath_var_FC=no | |
15095 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
15096 | hardcode_libdir_separator_FC=':' | |
15097 | link_all_deplibs_FC=yes | |
15098 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
15099 | runpath_var='LD_RUN_PATH' | |
15100 | ||
15101 | if test "$GCC" = yes; then | |
15102 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15103 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15104 | else | |
15105 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15106 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15107 | fi | |
15108 | ;; | |
15109 | ||
15110 | uts4*) | |
15111 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15112 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
15113 | hardcode_shlibpath_var_FC=no | |
15114 | ;; | |
15115 | ||
15116 | *) | |
15117 | ld_shlibs_FC=no | |
15118 | ;; | |
15119 | esac | |
15120 | ||
15121 | if test x$host_vendor = xsni; then | |
15122 | case $host in | |
15123 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
15124 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
15125 | ;; | |
15126 | esac | |
15127 | fi | |
15128 | fi | |
15129 | ||
cd9a469c | 15130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
15131 | $as_echo "$ld_shlibs_FC" >&6; } | |
542f9784 | 15132 | test "$ld_shlibs_FC" = no && can_build_shared=no |
15133 | ||
15134 | with_gnu_ld_FC=$with_gnu_ld | |
15135 | ||
15136 | ||
15137 | ||
15138 | ||
15139 | ||
15140 | ||
15141 | # | |
15142 | # Do we need to explicitly link libc? | |
15143 | # | |
15144 | case "x$archive_cmds_need_lc_FC" in | |
15145 | x|xyes) | |
15146 | # Assume -lc should be added | |
15147 | archive_cmds_need_lc_FC=yes | |
15148 | ||
15149 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15150 | case $archive_cmds_FC in | |
15151 | *'~'*) | |
15152 | # FIXME: we may have to deal with multi-command sequences. | |
15153 | ;; | |
15154 | '$CC '*) | |
15155 | # Test whether the compiler implicitly links with -lc since on some | |
15156 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15157 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 15158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15159 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
f00f02a3 | 15160 | if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : |
cd9a469c | 15161 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 15162 | else |
15163 | $RM conftest* | |
15164 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 15165 | |
cd9a469c | 15166 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 15167 | (eval $ac_compile) 2>&5 |
15168 | ac_status=$? | |
cd9a469c | 15169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15170 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 15171 | soname=conftest |
15172 | lib=conftest | |
15173 | libobjs=conftest.$ac_objext | |
15174 | deplibs= | |
15175 | wl=$lt_prog_compiler_wl_FC | |
15176 | pic_flag=$lt_prog_compiler_pic_FC | |
15177 | compiler_flags=-v | |
15178 | linker_flags=-v | |
15179 | verstring= | |
15180 | output_objdir=. | |
15181 | libname=conftest | |
15182 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
15183 | allow_undefined_flag_FC= | |
cd9a469c | 15184 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 15185 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
90e67cff | 15186 | ac_status=$? |
cd9a469c | 15187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15188 | test $ac_status = 0; } | |
9e6fd619 | 15189 | then |
15190 | lt_cv_archive_cmds_need_lc_FC=no | |
15191 | else | |
15192 | lt_cv_archive_cmds_need_lc_FC=yes | |
15193 | fi | |
15194 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
15195 | else | |
15196 | cat conftest.err 1>&5 | |
15197 | fi | |
15198 | $RM conftest* | |
15199 | ||
15200 | fi | |
cd9a469c | 15201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
15202 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
9e6fd619 | 15203 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
542f9784 | 15204 | ;; |
15205 | esac | |
15206 | fi | |
15207 | ;; | |
15208 | esac | |
90e67cff | 15209 | |
90e67cff | 15210 | |
542f9784 | 15211 | |
15212 | ||
15213 | ||
15214 | ||
15215 | ||
15216 | ||
15217 | ||
15218 | ||
15219 | ||
15220 | ||
15221 | ||
15222 | ||
15223 | ||
15224 | ||
15225 | ||
15226 | ||
15227 | ||
15228 | ||
15229 | ||
15230 | ||
15231 | ||
15232 | ||
15233 | ||
15234 | ||
15235 | ||
15236 | ||
15237 | ||
15238 | ||
15239 | ||
15240 | ||
15241 | ||
15242 | ||
15243 | ||
15244 | ||
15245 | ||
15246 | ||
15247 | ||
15248 | ||
15249 | ||
15250 | ||
15251 | ||
15252 | ||
15253 | ||
15254 | ||
15255 | ||
15256 | ||
15257 | ||
15258 | ||
15259 | ||
15260 | ||
15261 | ||
15262 | ||
15263 | ||
15264 | ||
15265 | ||
15266 | ||
15267 | ||
15268 | ||
15269 | ||
15270 | ||
15271 | ||
15272 | ||
cd9a469c | 15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15274 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 15275 | |
542f9784 | 15276 | library_names_spec= |
15277 | libname_spec='lib$name' | |
15278 | soname_spec= | |
15279 | shrext_cmds=".so" | |
15280 | postinstall_cmds= | |
15281 | postuninstall_cmds= | |
15282 | finish_cmds= | |
15283 | finish_eval= | |
15284 | shlibpath_var= | |
15285 | shlibpath_overrides_runpath=unknown | |
15286 | version_type=none | |
15287 | dynamic_linker="$host_os ld.so" | |
15288 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15289 | need_lib_prefix=unknown | |
15290 | hardcode_into_libs=no | |
15291 | ||
15292 | # when you set need_version to no, make sure it does not cause -set_version | |
15293 | # flags to be left without arguments | |
15294 | need_version=unknown | |
15295 | ||
15296 | case $host_os in | |
15297 | aix3*) | |
15298 | version_type=linux | |
15299 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15300 | shlibpath_var=LIBPATH | |
15301 | ||
15302 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15303 | soname_spec='${libname}${release}${shared_ext}$major' | |
15304 | ;; | |
15305 | ||
21e07d2f | 15306 | aix[4-9]*) |
542f9784 | 15307 | version_type=linux |
15308 | need_lib_prefix=no | |
15309 | need_version=no | |
15310 | hardcode_into_libs=yes | |
15311 | if test "$host_cpu" = ia64; then | |
15312 | # AIX 5 supports IA64 | |
15313 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15314 | shlibpath_var=LD_LIBRARY_PATH | |
15315 | else | |
15316 | # With GCC up to 2.95.x, collect2 would create an import file | |
15317 | # for dependence libraries. The import file would start with | |
15318 | # the line `#! .'. This would cause the generated library to | |
15319 | # depend on `.', always an invalid library. This was fixed in | |
15320 | # development snapshots of GCC prior to 3.0. | |
15321 | case $host_os in | |
15322 | aix4 | aix4.[01] | aix4.[01].*) | |
15323 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15324 | echo ' yes ' | |
15325 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15326 | : | |
15327 | else | |
15328 | can_build_shared=no | |
15329 | fi | |
15330 | ;; | |
15331 | esac | |
15332 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15333 | # soname into executable. Probably we can add versioning support to | |
15334 | # collect2, so additional links can be useful in future. | |
15335 | if test "$aix_use_runtimelinking" = yes; then | |
15336 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15337 | # instead of lib<name>.a to let people know that these are not | |
15338 | # typical AIX shared libraries. | |
15339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15340 | else | |
15341 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15342 | # and later when we are not doing run time linking. | |
15343 | library_names_spec='${libname}${release}.a $libname.a' | |
15344 | soname_spec='${libname}${release}${shared_ext}$major' | |
15345 | fi | |
15346 | shlibpath_var=LIBPATH | |
15347 | fi | |
15348 | ;; | |
15349 | ||
15350 | amigaos*) | |
00aafda4 | 15351 | case $host_cpu in |
15352 | powerpc) | |
15353 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15354 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15356 | ;; | |
15357 | m68k) | |
542f9784 | 15358 | library_names_spec='$libname.ixlibrary $libname.a' |
15359 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 15360 | 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' |
00aafda4 | 15361 | ;; |
15362 | esac | |
542f9784 | 15363 | ;; |
15364 | ||
15365 | beos*) | |
15366 | library_names_spec='${libname}${shared_ext}' | |
15367 | dynamic_linker="$host_os ld.so" | |
15368 | shlibpath_var=LIBRARY_PATH | |
15369 | ;; | |
15370 | ||
15371 | bsdi[45]*) | |
15372 | version_type=linux | |
15373 | need_version=no | |
15374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15375 | soname_spec='${libname}${release}${shared_ext}$major' | |
15376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15377 | shlibpath_var=LD_LIBRARY_PATH | |
15378 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15379 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15380 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15381 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15382 | # libtool to hard-code these into programs | |
15383 | ;; | |
15384 | ||
00aafda4 | 15385 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 15386 | version_type=windows |
15387 | shrext_cmds=".dll" | |
15388 | need_version=no | |
15389 | need_lib_prefix=no | |
15390 | ||
00aafda4 | 15391 | case $GCC,$host_os in |
15392 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 15393 | library_names_spec='$libname.dll.a' |
15394 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15395 | postinstall_cmds='base_file=`basename \${file}`~ | |
15396 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15397 | dldir=$destdir/`dirname \$dlpath`~ | |
15398 | test -d \$dldir || mkdir -p \$dldir~ | |
15399 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15400 | chmod a+x \$dldir/$dlname~ | |
15401 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15402 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15403 | fi' | |
15404 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15405 | dlpath=$dir/\$dldll~ | |
15406 | $RM \$dlpath' | |
15407 | shlibpath_overrides_runpath=yes | |
15408 | ||
15409 | case $host_os in | |
15410 | cygwin*) | |
15411 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15412 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 15413 | |
542f9784 | 15414 | ;; |
00aafda4 | 15415 | mingw* | cegcc*) |
542f9784 | 15416 | # MinGW DLLs use traditional 'lib' prefix |
15417 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 15418 | ;; |
15419 | pw32*) | |
15420 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15421 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15422 | ;; | |
15423 | esac | |
15424 | ;; | |
15425 | ||
15426 | *) | |
15427 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15428 | ;; | |
15429 | esac | |
15430 | dynamic_linker='Win32 ld.exe' | |
15431 | # FIXME: first we should search . and the directory the executable is in | |
15432 | shlibpath_var=PATH | |
15433 | ;; | |
15434 | ||
15435 | darwin* | rhapsody*) | |
15436 | dynamic_linker="$host_os dyld" | |
15437 | version_type=darwin | |
15438 | need_lib_prefix=no | |
15439 | need_version=no | |
15440 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15441 | soname_spec='${libname}${release}${major}$shared_ext' | |
15442 | shlibpath_overrides_runpath=yes | |
15443 | shlibpath_var=DYLD_LIBRARY_PATH | |
15444 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15445 | ||
15446 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15447 | ;; | |
15448 | ||
15449 | dgux*) | |
15450 | version_type=linux | |
15451 | need_lib_prefix=no | |
15452 | need_version=no | |
15453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15454 | soname_spec='${libname}${release}${shared_ext}$major' | |
15455 | shlibpath_var=LD_LIBRARY_PATH | |
15456 | ;; | |
15457 | ||
542f9784 | 15458 | freebsd* | dragonfly*) |
15459 | # DragonFly does not have aout. When/if they implement a new | |
15460 | # versioning mechanism, adjust this. | |
15461 | if test -x /usr/bin/objformat; then | |
15462 | objformat=`/usr/bin/objformat` | |
15463 | else | |
15464 | case $host_os in | |
30369aff | 15465 | freebsd[23].*) objformat=aout ;; |
542f9784 | 15466 | *) objformat=elf ;; |
15467 | esac | |
15468 | fi | |
15469 | version_type=freebsd-$objformat | |
15470 | case $version_type in | |
15471 | freebsd-elf*) | |
15472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15473 | need_version=no | |
15474 | need_lib_prefix=no | |
15475 | ;; | |
15476 | freebsd-*) | |
15477 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15478 | need_version=yes | |
15479 | ;; | |
15480 | esac | |
15481 | shlibpath_var=LD_LIBRARY_PATH | |
15482 | case $host_os in | |
30369aff | 15483 | freebsd2.*) |
542f9784 | 15484 | shlibpath_overrides_runpath=yes |
15485 | ;; | |
15486 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15487 | shlibpath_overrides_runpath=yes | |
15488 | hardcode_into_libs=yes | |
15489 | ;; | |
15490 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15491 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15492 | shlibpath_overrides_runpath=no | |
15493 | hardcode_into_libs=yes | |
15494 | ;; | |
15495 | *) # from 4.6 on, and DragonFly | |
15496 | shlibpath_overrides_runpath=yes | |
15497 | hardcode_into_libs=yes | |
15498 | ;; | |
15499 | esac | |
15500 | ;; | |
15501 | ||
15502 | gnu*) | |
15503 | version_type=linux | |
15504 | need_lib_prefix=no | |
15505 | need_version=no | |
15506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15507 | soname_spec='${libname}${release}${shared_ext}$major' | |
15508 | shlibpath_var=LD_LIBRARY_PATH | |
15509 | hardcode_into_libs=yes | |
15510 | ;; | |
15511 | ||
e6408286 | 15512 | haiku*) |
15513 | version_type=linux | |
15514 | need_lib_prefix=no | |
15515 | need_version=no | |
15516 | dynamic_linker="$host_os runtime_loader" | |
15517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15518 | soname_spec='${libname}${release}${shared_ext}$major' | |
15519 | shlibpath_var=LIBRARY_PATH | |
15520 | shlibpath_overrides_runpath=yes | |
15521 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
15522 | hardcode_into_libs=yes | |
15523 | ;; | |
15524 | ||
542f9784 | 15525 | hpux9* | hpux10* | hpux11*) |
15526 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15527 | # link against other versions. | |
15528 | version_type=sunos | |
15529 | need_lib_prefix=no | |
15530 | need_version=no | |
15531 | case $host_cpu in | |
15532 | ia64*) | |
15533 | shrext_cmds='.so' | |
15534 | hardcode_into_libs=yes | |
15535 | dynamic_linker="$host_os dld.so" | |
15536 | shlibpath_var=LD_LIBRARY_PATH | |
15537 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15539 | soname_spec='${libname}${release}${shared_ext}$major' | |
15540 | if test "X$HPUX_IA64_MODE" = X32; then | |
15541 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15542 | else | |
15543 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15544 | fi | |
15545 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15546 | ;; | |
15547 | hppa*64*) | |
15548 | shrext_cmds='.sl' | |
15549 | hardcode_into_libs=yes | |
15550 | dynamic_linker="$host_os dld.sl" | |
15551 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15552 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15554 | soname_spec='${libname}${release}${shared_ext}$major' | |
15555 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15556 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15557 | ;; | |
15558 | *) | |
15559 | shrext_cmds='.sl' | |
15560 | dynamic_linker="$host_os dld.sl" | |
15561 | shlibpath_var=SHLIB_PATH | |
15562 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15564 | soname_spec='${libname}${release}${shared_ext}$major' | |
15565 | ;; | |
15566 | esac | |
e6408286 | 15567 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 15568 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 15569 | # or fails outright, so override atomically: |
15570 | install_override_mode=555 | |
542f9784 | 15571 | ;; |
15572 | ||
15573 | interix[3-9]*) | |
15574 | version_type=linux | |
15575 | need_lib_prefix=no | |
15576 | need_version=no | |
15577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15578 | soname_spec='${libname}${release}${shared_ext}$major' | |
15579 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15580 | shlibpath_var=LD_LIBRARY_PATH | |
15581 | shlibpath_overrides_runpath=no | |
15582 | hardcode_into_libs=yes | |
15583 | ;; | |
15584 | ||
15585 | irix5* | irix6* | nonstopux*) | |
15586 | case $host_os in | |
15587 | nonstopux*) version_type=nonstopux ;; | |
15588 | *) | |
15589 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15590 | version_type=linux | |
15591 | else | |
15592 | version_type=irix | |
15593 | fi ;; | |
15594 | esac | |
15595 | need_lib_prefix=no | |
15596 | need_version=no | |
15597 | soname_spec='${libname}${release}${shared_ext}$major' | |
15598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15599 | case $host_os in | |
15600 | irix5* | nonstopux*) | |
15601 | libsuff= shlibsuff= | |
15602 | ;; | |
15603 | *) | |
15604 | case $LD in # libtool.m4 will add one of these switches to LD | |
15605 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15606 | libsuff= shlibsuff= libmagic=32-bit;; | |
15607 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15608 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15609 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15610 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15611 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15612 | esac | |
15613 | ;; | |
15614 | esac | |
15615 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15616 | shlibpath_overrides_runpath=no | |
15617 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15618 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15619 | hardcode_into_libs=yes | |
15620 | ;; | |
15621 | ||
15622 | # No shared lib support for Linux oldld, aout, or coff. | |
15623 | linux*oldld* | linux*aout* | linux*coff*) | |
15624 | dynamic_linker=no | |
15625 | ;; | |
15626 | ||
15627 | # This must be Linux ELF. | |
9af964d4 | 15628 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 15629 | version_type=linux |
15630 | need_lib_prefix=no | |
15631 | need_version=no | |
15632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15633 | soname_spec='${libname}${release}${shared_ext}$major' | |
15634 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15635 | shlibpath_var=LD_LIBRARY_PATH | |
15636 | shlibpath_overrides_runpath=no | |
9e6fd619 | 15637 | |
542f9784 | 15638 | # Some binutils ld are patched to set DT_RUNPATH |
f00f02a3 | 15639 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
cd9a469c | 15640 | $as_echo_n "(cached) " >&6 |
9e6fd619 | 15641 | else |
15642 | lt_cv_shlibpath_overrides_runpath=no | |
15643 | save_LDFLAGS=$LDFLAGS | |
15644 | save_libdir=$libdir | |
15645 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15646 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15647 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 15648 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 15649 | fi |
cd9a469c | 15650 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 15651 | program main |
15652 | ||
15653 | end | |
90e67cff | 15654 | _ACEOF |
cd9a469c | 15655 | if ac_fn_fc_try_link "$LINENO"; then : |
15656 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 15657 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 15658 | fi |
90e67cff | 15659 | fi |
cd9a469c | 15660 | rm -f core conftest.err conftest.$ac_objext \ |
15661 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 15662 | LDFLAGS=$save_LDFLAGS |
15663 | libdir=$save_libdir | |
15664 | ||
15665 | fi | |
15666 | ||
15667 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 15668 | |
15669 | # This implies no fast_install, which is unacceptable. | |
15670 | # Some rework will be needed to allow for fast_install | |
15671 | # before this can be enabled. | |
15672 | hardcode_into_libs=yes | |
15673 | ||
15674 | # Append ld.so.conf contents to the search path | |
15675 | if test -f /etc/ld.so.conf; then | |
e6408286 | 15676 | 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' ' '` |
542f9784 | 15677 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15678 | fi | |
15679 | ||
15680 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15681 | # powerpc, because MkLinux only supported shared libraries with the | |
15682 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15683 | # most powerpc-linux boxes support dynamic linking these days and | |
15684 | # people can always --disable-shared, the test was removed, and we | |
15685 | # assume the GNU/Linux dynamic linker is in use. | |
15686 | dynamic_linker='GNU/Linux ld.so' | |
15687 | ;; | |
15688 | ||
15689 | netbsd*) | |
15690 | version_type=sunos | |
15691 | need_lib_prefix=no | |
15692 | need_version=no | |
15693 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15695 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15696 | dynamic_linker='NetBSD (a.out) ld.so' | |
15697 | else | |
15698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15699 | soname_spec='${libname}${release}${shared_ext}$major' | |
15700 | dynamic_linker='NetBSD ld.elf_so' | |
15701 | fi | |
15702 | shlibpath_var=LD_LIBRARY_PATH | |
15703 | shlibpath_overrides_runpath=yes | |
15704 | hardcode_into_libs=yes | |
15705 | ;; | |
15706 | ||
15707 | newsos6) | |
15708 | version_type=linux | |
15709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15710 | shlibpath_var=LD_LIBRARY_PATH | |
15711 | shlibpath_overrides_runpath=yes | |
15712 | ;; | |
15713 | ||
15714 | *nto* | *qnx*) | |
15715 | version_type=qnx | |
15716 | need_lib_prefix=no | |
15717 | need_version=no | |
15718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15719 | soname_spec='${libname}${release}${shared_ext}$major' | |
15720 | shlibpath_var=LD_LIBRARY_PATH | |
15721 | shlibpath_overrides_runpath=no | |
15722 | hardcode_into_libs=yes | |
15723 | dynamic_linker='ldqnx.so' | |
15724 | ;; | |
15725 | ||
15726 | openbsd*) | |
15727 | version_type=sunos | |
15728 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15729 | need_lib_prefix=no | |
15730 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15731 | case $host_os in | |
15732 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15733 | *) need_version=no ;; | |
15734 | esac | |
15735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15736 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15737 | shlibpath_var=LD_LIBRARY_PATH | |
15738 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15739 | case $host_os in | |
15740 | openbsd2.[89] | openbsd2.[89].*) | |
15741 | shlibpath_overrides_runpath=no | |
15742 | ;; | |
15743 | *) | |
15744 | shlibpath_overrides_runpath=yes | |
15745 | ;; | |
15746 | esac | |
15747 | else | |
15748 | shlibpath_overrides_runpath=yes | |
15749 | fi | |
15750 | ;; | |
15751 | ||
15752 | os2*) | |
15753 | libname_spec='$name' | |
15754 | shrext_cmds=".dll" | |
15755 | need_lib_prefix=no | |
15756 | library_names_spec='$libname${shared_ext} $libname.a' | |
15757 | dynamic_linker='OS/2 ld.exe' | |
15758 | shlibpath_var=LIBPATH | |
15759 | ;; | |
15760 | ||
15761 | osf3* | osf4* | osf5*) | |
15762 | version_type=osf | |
15763 | need_lib_prefix=no | |
15764 | need_version=no | |
15765 | soname_spec='${libname}${release}${shared_ext}$major' | |
15766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15767 | shlibpath_var=LD_LIBRARY_PATH | |
15768 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15769 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15770 | ;; | |
15771 | ||
15772 | rdos*) | |
15773 | dynamic_linker=no | |
15774 | ;; | |
15775 | ||
15776 | solaris*) | |
15777 | version_type=linux | |
15778 | need_lib_prefix=no | |
15779 | need_version=no | |
15780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15781 | soname_spec='${libname}${release}${shared_ext}$major' | |
15782 | shlibpath_var=LD_LIBRARY_PATH | |
15783 | shlibpath_overrides_runpath=yes | |
15784 | hardcode_into_libs=yes | |
15785 | # ldd complains unless libraries are executable | |
15786 | postinstall_cmds='chmod +x $lib' | |
15787 | ;; | |
15788 | ||
15789 | sunos4*) | |
15790 | version_type=sunos | |
15791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15792 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15793 | shlibpath_var=LD_LIBRARY_PATH | |
15794 | shlibpath_overrides_runpath=yes | |
15795 | if test "$with_gnu_ld" = yes; then | |
15796 | need_lib_prefix=no | |
15797 | fi | |
15798 | need_version=yes | |
15799 | ;; | |
15800 | ||
15801 | sysv4 | sysv4.3*) | |
15802 | version_type=linux | |
15803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15804 | soname_spec='${libname}${release}${shared_ext}$major' | |
15805 | shlibpath_var=LD_LIBRARY_PATH | |
15806 | case $host_vendor in | |
15807 | sni) | |
15808 | shlibpath_overrides_runpath=no | |
15809 | need_lib_prefix=no | |
15810 | runpath_var=LD_RUN_PATH | |
15811 | ;; | |
15812 | siemens) | |
15813 | need_lib_prefix=no | |
15814 | ;; | |
15815 | motorola) | |
15816 | need_lib_prefix=no | |
15817 | need_version=no | |
15818 | shlibpath_overrides_runpath=no | |
15819 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15820 | ;; | |
15821 | esac | |
15822 | ;; | |
15823 | ||
15824 | sysv4*MP*) | |
15825 | if test -d /usr/nec ;then | |
15826 | version_type=linux | |
15827 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15828 | soname_spec='$libname${shared_ext}.$major' | |
15829 | shlibpath_var=LD_LIBRARY_PATH | |
15830 | fi | |
15831 | ;; | |
15832 | ||
15833 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15834 | version_type=freebsd-elf | |
15835 | need_lib_prefix=no | |
15836 | need_version=no | |
15837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15838 | soname_spec='${libname}${release}${shared_ext}$major' | |
15839 | shlibpath_var=LD_LIBRARY_PATH | |
15840 | shlibpath_overrides_runpath=yes | |
15841 | hardcode_into_libs=yes | |
15842 | if test "$with_gnu_ld" = yes; then | |
15843 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15844 | else | |
15845 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15846 | case $host_os in | |
15847 | sco3.2v5*) | |
15848 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15849 | ;; | |
15850 | esac | |
15851 | fi | |
15852 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15853 | ;; | |
15854 | ||
15855 | tpf*) | |
15856 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15857 | version_type=linux | |
15858 | need_lib_prefix=no | |
15859 | need_version=no | |
00aafda4 | 15860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 15861 | shlibpath_var=LD_LIBRARY_PATH |
15862 | shlibpath_overrides_runpath=no | |
15863 | hardcode_into_libs=yes | |
15864 | ;; | |
15865 | ||
15866 | uts4*) | |
15867 | version_type=linux | |
15868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15869 | soname_spec='${libname}${release}${shared_ext}$major' | |
15870 | shlibpath_var=LD_LIBRARY_PATH | |
15871 | ;; | |
15872 | ||
15873 | *) | |
15874 | dynamic_linker=no | |
15875 | ;; | |
15876 | esac | |
cd9a469c | 15877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
15878 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 15879 | test "$dynamic_linker" = no && can_build_shared=no |
15880 | ||
15881 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15882 | if test "$GCC" = yes; then | |
15883 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
90e67cff | 15884 | fi |
90e67cff | 15885 | |
00aafda4 | 15886 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15887 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15888 | fi | |
15889 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15890 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15891 | fi | |
15892 | ||
90e67cff | 15893 | |
542f9784 | 15894 | |
15895 | ||
15896 | ||
15897 | ||
15898 | ||
15899 | ||
15900 | ||
15901 | ||
15902 | ||
15903 | ||
15904 | ||
15905 | ||
15906 | ||
15907 | ||
15908 | ||
15909 | ||
15910 | ||
15911 | ||
15912 | ||
15913 | ||
15914 | ||
15915 | ||
15916 | ||
15917 | ||
15918 | ||
15919 | ||
15920 | ||
15921 | ||
15922 | ||
15923 | ||
15924 | ||
e6408286 | 15925 | |
15926 | ||
542f9784 | 15927 | |
15928 | ||
15929 | ||
cd9a469c | 15930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15931 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 15932 | hardcode_action_FC= |
15933 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
15934 | test -n "$runpath_var_FC" || | |
15935 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
15936 | ||
15937 | # We can hardcode non-existent directories. | |
15938 | if test "$hardcode_direct_FC" != no && | |
15939 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15940 | # have to relink, otherwise we might link with an installed library | |
15941 | # when we should be linking with a yet-to-be-installed one | |
15942 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
15943 | test "$hardcode_minus_L_FC" != no; then | |
15944 | # Linking always hardcodes the temporary library directory. | |
15945 | hardcode_action_FC=relink | |
15946 | else | |
15947 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15948 | hardcode_action_FC=immediate | |
15949 | fi | |
15950 | else | |
15951 | # We cannot hardcode anything, or else we can only hardcode existing | |
15952 | # directories. | |
15953 | hardcode_action_FC=unsupported | |
90e67cff | 15954 | fi |
cd9a469c | 15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
15956 | $as_echo "$hardcode_action_FC" >&6; } | |
542f9784 | 15957 | |
15958 | if test "$hardcode_action_FC" = relink || | |
15959 | test "$inherit_rpath_FC" = yes; then | |
15960 | # Fast installation is not supported | |
15961 | enable_fast_install=no | |
15962 | elif test "$shlibpath_overrides_runpath" = yes || | |
15963 | test "$enable_shared" = no; then | |
15964 | # Fast installation is not necessary | |
15965 | enable_fast_install=needless | |
90e67cff | 15966 | fi |
15967 | ||
542f9784 | 15968 | |
15969 | ||
15970 | ||
15971 | ||
15972 | ||
15973 | ||
15974 | fi # test -n "$compiler" | |
15975 | ||
00aafda4 | 15976 | GCC=$lt_save_GCC |
542f9784 | 15977 | CC="$lt_save_CC" |
15978 | fi # test "$_lt_disable_FC" != yes | |
15979 | ||
5c88bcbb | 15980 | ac_ext=c |
90973b19 | 15981 | ac_cpp='$CPP $CPPFLAGS' |
15982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
542f9784 | 15985 | |
15986 | ||
15987 | ||
15988 | # extra LD Flags which are required for targets | |
15989 | case "${host}" in | |
15990 | *-darwin*) | |
15991 | # Darwin needs -single_module when linking libgfortran | |
15992 | extra_ldflags_libgfortran=-Wl,-single_module | |
15993 | ;; | |
15994 | esac | |
15995 | ||
15996 | ||
15997 | # We need a working compiler at that point, otherwise give a clear | |
15998 | # error message and bail out. | |
15999 | ||
cd9a469c | 16000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
16001 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
16002 | ac_ext=${ac_fc_srcext-f} | |
16003 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
16004 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 16005 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
16006 | ||
cd9a469c | 16007 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 16008 | |
16009 | program foo | |
16010 | real, parameter :: bar = sin (12.34 / 2.5) | |
16011 | end program foo | |
4ee9c684 | 16012 | _ACEOF |
cd9a469c | 16013 | if ac_fn_fc_try_compile "$LINENO"; then : |
16014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16015 | $as_echo "yes" >&6; } | |
4ee9c684 | 16016 | else |
cd9a469c | 16017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16018 | $as_echo "no" >&6; } | |
f00f02a3 | 16019 | as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 |
4ee9c684 | 16020 | |
90973b19 | 16021 | fi |
cd9a469c | 16022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 16023 | ac_ext=c |
16024 | ac_cpp='$CPP $CPPFLAGS' | |
16025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
90973b19 | 16028 | |
90973b19 | 16029 | |
542f9784 | 16030 | |
cd9a469c | 16031 | # Check whether --enable-largefile was given. |
16032 | if test "${enable_largefile+set}" = set; then : | |
16033 | enableval=$enable_largefile; | |
16034 | fi | |
542f9784 | 16035 | |
542f9784 | 16036 | if test "$enable_largefile" != no; then |
16037 | ||
cd9a469c | 16038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
16039 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
f00f02a3 | 16040 | if ${ac_cv_sys_largefile_CC+:} false; then : |
cd9a469c | 16041 | $as_echo_n "(cached) " >&6 |
90973b19 | 16042 | else |
542f9784 | 16043 | ac_cv_sys_largefile_CC=no |
16044 | if test "$GCC" != yes; then | |
16045 | ac_save_CC=$CC | |
16046 | while :; do | |
cd9a469c | 16047 | # IRIX 6.2 and later do not support large files by default, |
16048 | # so use the C compiler's -n32 option if that helps. | |
16049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90973b19 | 16050 | /* end confdefs.h. */ |
542f9784 | 16051 | #include <sys/types.h> |
16052 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16053 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16054 | since some C++ compilers masquerading as C compilers | |
16055 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16056 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16057 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16058 | && LARGE_OFF_T % 2147483647 == 1) | |
16059 | ? 1 : -1]; | |
56c15991 | 16060 | int |
16061 | main () | |
16062 | { | |
56c15991 | 16063 | |
16064 | ; | |
16065 | return 0; | |
16066 | } | |
16067 | _ACEOF | |
cd9a469c | 16068 | if ac_fn_c_try_compile "$LINENO"; then : |
16069 | break | |
56c15991 | 16070 | fi |
cd9a469c | 16071 | rm -f core conftest.err conftest.$ac_objext |
16072 | CC="$CC -n32" | |
16073 | if ac_fn_c_try_compile "$LINENO"; then : | |
16074 | ac_cv_sys_largefile_CC=' -n32'; break | |
16075 | fi | |
16076 | rm -f core conftest.err conftest.$ac_objext | |
16077 | break | |
16078 | done | |
16079 | CC=$ac_save_CC | |
16080 | rm -f conftest.$ac_ext | |
16081 | fi | |
16082 | fi | |
16083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
16084 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
16085 | if test "$ac_cv_sys_largefile_CC" != no; then | |
16086 | CC=$CC$ac_cv_sys_largefile_CC | |
16087 | fi | |
56c15991 | 16088 | |
cd9a469c | 16089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
16090 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
f00f02a3 | 16091 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
cd9a469c | 16092 | $as_echo_n "(cached) " >&6 |
16093 | else | |
16094 | while :; do | |
16095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16096 | /* end confdefs.h. */ |
cd9a469c | 16097 | #include <sys/types.h> |
16098 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16099 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16100 | since some C++ compilers masquerading as C compilers | |
16101 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16102 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16103 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16104 | && LARGE_OFF_T % 2147483647 == 1) | |
16105 | ? 1 : -1]; | |
56c15991 | 16106 | int |
16107 | main () | |
16108 | { | |
56c15991 | 16109 | |
16110 | ; | |
16111 | return 0; | |
16112 | } | |
16113 | _ACEOF | |
cd9a469c | 16114 | if ac_fn_c_try_compile "$LINENO"; then : |
16115 | ac_cv_sys_file_offset_bits=no; break | |
16116 | fi | |
16117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16119 | /* end confdefs.h. */ |
cd9a469c | 16120 | #define _FILE_OFFSET_BITS 64 |
16121 | #include <sys/types.h> | |
16122 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16123 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16124 | since some C++ compilers masquerading as C compilers | |
16125 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16126 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16127 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16128 | && LARGE_OFF_T % 2147483647 == 1) | |
16129 | ? 1 : -1]; | |
56c15991 | 16130 | int |
16131 | main () | |
16132 | { | |
56c15991 | 16133 | |
16134 | ; | |
16135 | return 0; | |
16136 | } | |
16137 | _ACEOF | |
cd9a469c | 16138 | if ac_fn_c_try_compile "$LINENO"; then : |
16139 | ac_cv_sys_file_offset_bits=64; break | |
56c15991 | 16140 | fi |
cd9a469c | 16141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16142 | ac_cv_sys_file_offset_bits=unknown | |
16143 | break | |
16144 | done | |
56c15991 | 16145 | fi |
cd9a469c | 16146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
16147 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
16148 | case $ac_cv_sys_file_offset_bits in #( | |
16149 | no | unknown) ;; | |
16150 | *) | |
16151 | cat >>confdefs.h <<_ACEOF | |
16152 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
56c15991 | 16153 | _ACEOF |
cd9a469c | 16154 | ;; |
16155 | esac | |
16156 | rm -rf conftest* | |
16157 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
16159 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
f00f02a3 | 16160 | if ${ac_cv_sys_large_files+:} false; then : |
cd9a469c | 16161 | $as_echo_n "(cached) " >&6 |
16162 | else | |
16163 | while :; do | |
16164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16165 | /* end confdefs.h. */ |
cd9a469c | 16166 | #include <sys/types.h> |
16167 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16168 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16169 | since some C++ compilers masquerading as C compilers | |
16170 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16171 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16172 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16173 | && LARGE_OFF_T % 2147483647 == 1) | |
16174 | ? 1 : -1]; | |
56c15991 | 16175 | int |
16176 | main () | |
16177 | { | |
56c15991 | 16178 | |
16179 | ; | |
16180 | return 0; | |
16181 | } | |
16182 | _ACEOF | |
cd9a469c | 16183 | if ac_fn_c_try_compile "$LINENO"; then : |
16184 | ac_cv_sys_large_files=no; break | |
56c15991 | 16185 | fi |
cd9a469c | 16186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 16188 | /* end confdefs.h. */ |
cd9a469c | 16189 | #define _LARGE_FILES 1 |
16190 | #include <sys/types.h> | |
16191 | /* Check that off_t can represent 2**63 - 1 correctly. | |
16192 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
16193 | since some C++ compilers masquerading as C compilers | |
16194 | incorrectly reject 9223372036854775807. */ | |
e38e222d | 16195 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
cd9a469c | 16196 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
16197 | && LARGE_OFF_T % 2147483647 == 1) | |
16198 | ? 1 : -1]; | |
56c15991 | 16199 | int |
16200 | main () | |
16201 | { | |
16202 | ||
56c15991 | 16203 | ; |
16204 | return 0; | |
16205 | } | |
16206 | _ACEOF | |
cd9a469c | 16207 | if ac_fn_c_try_compile "$LINENO"; then : |
16208 | ac_cv_sys_large_files=1; break | |
56c15991 | 16209 | fi |
cd9a469c | 16210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16211 | ac_cv_sys_large_files=unknown | |
16212 | break | |
16213 | done | |
82eaf560 | 16214 | fi |
cd9a469c | 16215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
16216 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
16217 | case $ac_cv_sys_large_files in #( | |
16218 | no | unknown) ;; | |
16219 | *) | |
56c15991 | 16220 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 16221 | #define _LARGE_FILES $ac_cv_sys_large_files |
56c15991 | 16222 | _ACEOF |
cd9a469c | 16223 | ;; |
16224 | esac | |
16225 | rm -rf conftest* | |
16226 | fi | |
f00f02a3 | 16227 | |
16228 | ||
56c15991 | 16229 | fi |
16230 | ||
c75dca49 | 16231 | |
16232 | # Types | |
cd9a469c | 16233 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
f00f02a3 | 16234 | if test "x$ac_cv_type_off_t" = xyes; then : |
56c15991 | 16235 | |
cd9a469c | 16236 | else |
56c15991 | 16237 | |
cd9a469c | 16238 | cat >>confdefs.h <<_ACEOF |
16239 | #define off_t long int | |
16240 | _ACEOF | |
56c15991 | 16241 | |
c75dca49 | 16242 | fi |
16243 | ||
16244 | ||
16245 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
f00f02a3 | 16246 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
c75dca49 | 16247 | |
16248 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
16249 | ||
16250 | else | |
16251 | for ac_type in 'int' 'long int' 'long long int'; do | |
16252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16253 | /* end confdefs.h. */ | |
16254 | $ac_includes_default | |
16255 | int | |
16256 | main () | |
16257 | { | |
16258 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
f00f02a3 | 16259 | test_array [0] = 0; |
16260 | return test_array [0]; | |
c75dca49 | 16261 | |
16262 | ; | |
16263 | return 0; | |
16264 | } | |
16265 | _ACEOF | |
16266 | if ac_fn_c_try_compile "$LINENO"; then : | |
16267 | ||
16268 | cat >>confdefs.h <<_ACEOF | |
16269 | #define intptr_t $ac_type | |
16270 | _ACEOF | |
16271 | ||
16272 | ac_type= | |
16273 | fi | |
16274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16275 | test -z "$ac_type" && break | |
16276 | done | |
16277 | fi | |
16278 | ||
16279 | ||
16280 | ||
16281 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
f00f02a3 | 16282 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
c75dca49 | 16283 | |
16284 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
16285 | ||
16286 | else | |
16287 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
16288 | 'unsigned long long int'; do | |
16289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16290 | /* end confdefs.h. */ | |
16291 | $ac_includes_default | |
16292 | int | |
16293 | main () | |
16294 | { | |
16295 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
f00f02a3 | 16296 | test_array [0] = 0; |
16297 | return test_array [0]; | |
c75dca49 | 16298 | |
16299 | ; | |
16300 | return 0; | |
16301 | } | |
16302 | _ACEOF | |
16303 | if ac_fn_c_try_compile "$LINENO"; then : | |
16304 | ||
16305 | cat >>confdefs.h <<_ACEOF | |
16306 | #define uintptr_t $ac_type | |
16307 | _ACEOF | |
16308 | ||
16309 | ac_type= | |
16310 | fi | |
16311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16312 | test -z "$ac_type" && break | |
16313 | done | |
16314 | fi | |
16315 | ||
16316 | ||
16317 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
f00f02a3 | 16318 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
c75dca49 | 16319 | |
16320 | cat >>confdefs.h <<_ACEOF | |
16321 | #define HAVE_PTRDIFF_T 1 | |
16322 | _ACEOF | |
16323 | ||
16324 | ||
56c15991 | 16325 | fi |
16326 | ||
56c15991 | 16327 | |
a1aa1d30 | 16328 | # check header files (we assume C89 is available, so don't check for that) |
771c1b50 | 16329 | |
cd9a469c | 16330 | |
771c1b50 | 16331 | |
a1aa1d30 | 16332 | for ac_header in $ac_header_list |
16333 | do : | |
16334 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16335 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
16336 | " | |
f00f02a3 | 16337 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
a1aa1d30 | 16338 | cat >>confdefs.h <<_ACEOF |
16339 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
771c1b50 | 16340 | _ACEOF |
16341 | ||
cd9a469c | 16342 | fi |
771c1b50 | 16343 | |
a1aa1d30 | 16344 | done |
1c383045 | 16345 | |
16346 | ||
771c1b50 | 16347 | |
cd9a469c | 16348 | |
cd9a469c | 16349 | |
771c1b50 | 16350 | |
cd9a469c | 16351 | |
cd9a469c | 16352 | |
771c1b50 | 16353 | |
771c1b50 | 16354 | |
771c1b50 | 16355 | |
16356 | ||
771c1b50 | 16357 | |
771c1b50 | 16358 | |
771c1b50 | 16359 | |
16360 | ||
771c1b50 | 16361 | |
16362 | ||
7dfba97b | 16363 | |
5e7b82bb | 16364 | |
c436f700 | 16365 | |
a54b1ce7 | 16366 | |
16367 | ||
14c3c235 | 16368 | |
4dd3972f | 16369 | |
4dd3972f | 16370 | |
4dd3972f | 16371 | |
4dd3972f | 16372 | |
4dd3972f | 16373 | |
4dd3972f | 16374 | |
553e7cef | 16375 | |
16376 | ||
b8a8c7bc | 16377 | |
16378 | ||
9680a5f4 | 16379 | |
16380 | ||
4dd3972f | 16381 | |
4dd3972f | 16382 | |
4ee9c684 | 16383 | |
2069752c | 16384 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
4ee9c684 | 16385 | |
2069752c | 16386 | acx_cv_header_stdint=stddef.h |
16387 | acx_cv_header_stdint_kind="(already complete)" | |
16388 | for i in stdint.h $inttype_headers; do | |
16389 | unset ac_cv_type_uintptr_t | |
16390 | unset ac_cv_type_uintmax_t | |
16391 | unset ac_cv_type_int_least32_t | |
16392 | unset ac_cv_type_int_fast32_t | |
16393 | unset ac_cv_type_uint64_t | |
16394 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16395 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16396 | #include <$i> | |
16397 | " | |
f00f02a3 | 16398 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
2069752c | 16399 | acx_cv_header_stdint=$i |
cd9a469c | 16400 | else |
2069752c | 16401 | continue |
cd9a469c | 16402 | fi |
4ee9c684 | 16403 | |
2069752c | 16404 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16405 | #include <$i> | |
16406 | " | |
f00f02a3 | 16407 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
90973b19 | 16408 | |
cd9a469c | 16409 | else |
2069752c | 16410 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 16411 | fi |
90973b19 | 16412 | |
2069752c | 16413 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16414 | #include <$i> | |
16415 | " | |
f00f02a3 | 16416 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
2069752c | 16417 | |
4dd3972f | 16418 | else |
2069752c | 16419 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 16420 | fi |
cd9a469c | 16421 | |
2069752c | 16422 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16423 | #include <$i> | |
16424 | " | |
f00f02a3 | 16425 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
4dd3972f | 16426 | |
2069752c | 16427 | else |
16428 | acx_cv_header_stdint_kind="(mostly complete)" | |
16429 | fi | |
ea6b3890 | 16430 | |
2069752c | 16431 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16432 | #include <$i> | |
16433 | " | |
f00f02a3 | 16434 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
ea6b3890 | 16435 | |
cd9a469c | 16436 | else |
2069752c | 16437 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16438 | fi | |
4dd3972f | 16439 | |
2069752c | 16440 | break |
16441 | done | |
16442 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16443 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16444 | for i in stdint.h $inttype_headers; do | |
16445 | unset ac_cv_type_uintptr_t | |
16446 | unset ac_cv_type_uint32_t | |
16447 | unset ac_cv_type_uint64_t | |
16448 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16449 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16450 | #include <$i> | |
16451 | " | |
f00f02a3 | 16452 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
2069752c | 16453 | acx_cv_header_stdint=$i |
16454 | else | |
16455 | continue | |
cd9a469c | 16456 | fi |
4dd3972f | 16457 | |
2069752c | 16458 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16459 | #include <$i> | |
16460 | " | |
f00f02a3 | 16461 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
f2c0a16d | 16462 | |
2069752c | 16463 | fi |
247981ce | 16464 | |
2069752c | 16465 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16466 | #include <$i> | |
16467 | " | |
f00f02a3 | 16468 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
247981ce | 16469 | |
2069752c | 16470 | fi |
b902b078 | 16471 | |
2069752c | 16472 | break |
16473 | done | |
16474 | fi | |
16475 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16476 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16477 | for i in sys/types.h $inttype_headers; do | |
16478 | unset ac_cv_type_u_int32_t | |
16479 | unset ac_cv_type_u_int64_t | |
16480 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16481 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16482 | #include <$i> | |
16483 | " | |
f00f02a3 | 16484 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
2069752c | 16485 | acx_cv_header_stdint=$i |
ea6b3890 | 16486 | else |
2069752c | 16487 | continue |
16488 | fi | |
d2fc5bb1 | 16489 | |
2069752c | 16490 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16491 | #include <$i> | |
16492 | " | |
f00f02a3 | 16493 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
d2fc5bb1 | 16494 | |
2069752c | 16495 | fi |
d2fc5bb1 | 16496 | |
2069752c | 16497 | break |
16498 | done | |
d2fc5bb1 | 16499 | fi |
2069752c | 16500 | if test "$acx_cv_header_stdint" = stddef.h; then |
16501 | acx_cv_header_stdint_kind="(using manual detection)" | |
cd9a469c | 16502 | fi |
d2fc5bb1 | 16503 | |
2069752c | 16504 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16505 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16506 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16507 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16508 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
d2fc5bb1 | 16509 | |
2069752c | 16510 | # ----------------- Summarize what we found so far |
cd9a469c | 16511 | |
2069752c | 16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16513 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
d2fc5bb1 | 16514 | |
2069752c | 16515 | case `$as_basename -- gstdint.h || |
16516 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16517 | Xgstdint.h : 'X\(//\)$' \| \ | |
16518 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16519 | $as_echo X/gstdint.h | | |
16520 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16521 | s//\1/ | |
16522 | q | |
16523 | } | |
16524 | /^X\/\(\/\/\)$/{ | |
16525 | s//\1/ | |
16526 | q | |
16527 | } | |
16528 | /^X\/\(\/\).*/{ | |
16529 | s//\1/ | |
16530 | q | |
16531 | } | |
16532 | s/.*/./; q'` in | |
16533 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16534 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16535 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16536 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16537 | *) ;; | |
16538 | esac | |
d2fc5bb1 | 16539 | |
2069752c | 16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16541 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
e93cd318 | 16542 | |
2069752c | 16543 | # ----------------- done included file, check C basic types -------- |
99798ba4 | 16544 | |
2069752c | 16545 | # Lacking an uintptr_t? Test size of void * |
16546 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16547 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16550 | # This bug is HP SR number 8606223364. | |
16551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16552 | $as_echo_n "checking size of void *... " >&6; } | |
f00f02a3 | 16553 | if ${ac_cv_sizeof_void_p+:} false; then : |
2069752c | 16554 | $as_echo_n "(cached) " >&6 |
16555 | else | |
16556 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
99798ba4 | 16557 | |
2069752c | 16558 | else |
16559 | if test "$ac_cv_type_void_p" = yes; then | |
16560 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16561 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16562 | as_fn_error 77 "cannot compute sizeof (void *) |
16563 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16564 | else |
16565 | ac_cv_sizeof_void_p=0 | |
16566 | fi | |
16567 | fi | |
ea6b3890 | 16568 | |
2069752c | 16569 | fi |
16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16571 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
ea6b3890 | 16572 | |
99798ba4 | 16573 | |
16574 | ||
ea6b3890 | 16575 | cat >>confdefs.h <<_ACEOF |
2069752c | 16576 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
ea6b3890 | 16577 | _ACEOF |
ea6b3890 | 16578 | |
2069752c | 16579 | ;; |
16580 | esac | |
ea6b3890 | 16581 | |
2069752c | 16582 | # Lacking an uint64_t? Test size of long |
16583 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16584 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16585 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16586 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16587 | # This bug is HP SR number 8606223364. | |
16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16589 | $as_echo_n "checking size of long... " >&6; } | |
f00f02a3 | 16590 | if ${ac_cv_sizeof_long+:} false; then : |
cd9a469c | 16591 | $as_echo_n "(cached) " >&6 |
16592 | else | |
2069752c | 16593 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
ea6b3890 | 16594 | |
c634bedf | 16595 | else |
2069752c | 16596 | if test "$ac_cv_type_long" = yes; then |
16597 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16599 | as_fn_error 77 "cannot compute sizeof (long) |
16600 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16601 | else |
16602 | ac_cv_sizeof_long=0 | |
16603 | fi | |
cd9a469c | 16604 | fi |
c634bedf | 16605 | |
2069752c | 16606 | fi |
16607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16608 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
ea6b3890 | 16609 | |
c634bedf | 16610 | |
ea6b3890 | 16611 | |
16612 | cat >>confdefs.h <<_ACEOF | |
2069752c | 16613 | #define SIZEOF_LONG $ac_cv_sizeof_long |
ea6b3890 | 16614 | _ACEOF |
c634bedf | 16615 | |
2069752c | 16616 | ;; |
16617 | esac | |
74b918e9 | 16618 | |
2069752c | 16619 | if test $acx_cv_header_stdint = stddef.h; then |
16620 | # Lacking a good header? Test size of everything and deduce all types. | |
16621 | # The cast to long int works around a bug in the HP C Compiler | |
16622 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16623 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16624 | # This bug is HP SR number 8606223364. | |
16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16626 | $as_echo_n "checking size of int... " >&6; } | |
f00f02a3 | 16627 | if ${ac_cv_sizeof_int+:} false; then : |
2069752c | 16628 | $as_echo_n "(cached) " >&6 |
16629 | else | |
16630 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
c0e8efbe | 16631 | |
2069752c | 16632 | else |
16633 | if test "$ac_cv_type_int" = yes; then | |
16634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16636 | as_fn_error 77 "cannot compute sizeof (int) |
16637 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16638 | else |
16639 | ac_cv_sizeof_int=0 | |
16640 | fi | |
16641 | fi | |
5a037dbd | 16642 | |
2069752c | 16643 | fi |
16644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16645 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e0582811 | 16646 | |
16647 | ||
99798ba4 | 16648 | |
ea6b3890 | 16649 | cat >>confdefs.h <<_ACEOF |
2069752c | 16650 | #define SIZEOF_INT $ac_cv_sizeof_int |
ea6b3890 | 16651 | _ACEOF |
16652 | ||
ea6b3890 | 16653 | |
2069752c | 16654 | # The cast to long int works around a bug in the HP C Compiler |
16655 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16656 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16657 | # This bug is HP SR number 8606223364. | |
16658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16659 | $as_echo_n "checking size of short... " >&6; } | |
f00f02a3 | 16660 | if ${ac_cv_sizeof_short+:} false; then : |
2069752c | 16661 | $as_echo_n "(cached) " >&6 |
16662 | else | |
16663 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
ea6b3890 | 16664 | |
2069752c | 16665 | else |
16666 | if test "$ac_cv_type_short" = yes; then | |
16667 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16669 | as_fn_error 77 "cannot compute sizeof (short) |
16670 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16671 | else |
16672 | ac_cv_sizeof_short=0 | |
16673 | fi | |
16674 | fi | |
ea6b3890 | 16675 | |
2069752c | 16676 | fi |
16677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16678 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
ea6b3890 | 16679 | |
16680 | ||
16681 | ||
2069752c | 16682 | cat >>confdefs.h <<_ACEOF |
16683 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16684 | _ACEOF | |
ea6b3890 | 16685 | |
16686 | ||
2069752c | 16687 | # The cast to long int works around a bug in the HP C Compiler |
16688 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16689 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16690 | # This bug is HP SR number 8606223364. | |
16691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16692 | $as_echo_n "checking size of char... " >&6; } | |
f00f02a3 | 16693 | if ${ac_cv_sizeof_char+:} false; then : |
2069752c | 16694 | $as_echo_n "(cached) " >&6 |
16695 | else | |
16696 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
ea6b3890 | 16697 | |
2069752c | 16698 | else |
16699 | if test "$ac_cv_type_char" = yes; then | |
16700 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16701 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f00f02a3 | 16702 | as_fn_error 77 "cannot compute sizeof (char) |
16703 | See \`config.log' for more details" "$LINENO" 5; } | |
2069752c | 16704 | else |
16705 | ac_cv_sizeof_char=0 | |
16706 | fi | |
16707 | fi | |
ea6b3890 | 16708 | |
2069752c | 16709 | fi |
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16711 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
ea6b3890 | 16712 | |
16713 | ||
ea6b3890 | 16714 | |
cd9a469c | 16715 | cat >>confdefs.h <<_ACEOF |
2069752c | 16716 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
99798ba4 | 16717 | _ACEOF |
99798ba4 | 16718 | |
99798ba4 | 16719 | |
eaae6999 | 16720 | |
2069752c | 16721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16722 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16723 | case "$ac_cv_sizeof_char" in | |
16724 | 1) acx_cv_type_int8_t=char ;; | |
f00f02a3 | 16725 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16726 | esac |
16727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16728 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16729 | ||
16730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16731 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16732 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16733 | 2:*) acx_cv_type_int16_t=int ;; | |
16734 | *:2) acx_cv_type_int16_t=short ;; | |
f00f02a3 | 16735 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16736 | esac |
16737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16738 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16739 | ||
16740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16741 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16742 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16743 | 4:*) acx_cv_type_int32_t=int ;; | |
16744 | *:4) acx_cv_type_int32_t=long ;; | |
f00f02a3 | 16745 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16746 | esac |
16747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16748 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
cd9a469c | 16749 | fi |
16750 | ||
2069752c | 16751 | # These tests are here to make the output prettier |
ea6b3890 | 16752 | |
2069752c | 16753 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16754 | case "$ac_cv_sizeof_long" in | |
16755 | 8) acx_cv_type_int64_t=long ;; | |
16756 | esac | |
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16758 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16760 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16761 | fi | |
16762 | ||
16763 | # Now we can use the above types | |
16764 | ||
16765 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16767 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16768 | case $ac_cv_sizeof_void_p in | |
16769 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16770 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16771 | 8) acx_cv_type_intptr_t=int64_t ;; | |
f00f02a3 | 16772 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
2069752c | 16773 | esac |
16774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16775 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16776 | fi | |
ea6b3890 | 16777 | |
2069752c | 16778 | # ----------------- done all checks, emit header ------------- |
cd9a469c | 16779 | ac_config_commands="$ac_config_commands gstdint.h" |
eaae6999 | 16780 | |
eaae6999 | 16781 | |
cd9a469c | 16782 | |
16783 | ||
16784 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
f00f02a3 | 16785 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
cd9a469c | 16786 | |
16787 | cat >>confdefs.h <<_ACEOF | |
16788 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
eaae6999 | 16789 | _ACEOF |
eaae6999 | 16790 | |
cd9a469c | 16791 | |
eaae6999 | 16792 | fi |
cd9a469c | 16793 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
f00f02a3 | 16794 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
cd9a469c | 16795 | |
16796 | cat >>confdefs.h <<_ACEOF | |
16797 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
eaae6999 | 16798 | _ACEOF |
16799 | ||
cd9a469c | 16800 | |
eaae6999 | 16801 | fi |
cd9a469c | 16802 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
f00f02a3 | 16803 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
eaae6999 | 16804 | |
cd9a469c | 16805 | cat >>confdefs.h <<_ACEOF |
16806 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16807 | _ACEOF | |
99798ba4 | 16808 | |
16809 | ||
b52ee437 | 16810 | fi |
cd9a469c | 16811 | |
16812 | ||
0d9d2088 | 16813 | case "${host}--x${with_newlib}" in |
16814 | mips*--xyes) | |
16815 | hardwire_newlib=1;; | |
8c596dcc | 16816 | nvptx*--xyes) |
16817 | hardwire_newlib=1;; | |
0d9d2088 | 16818 | esac |
16819 | ||
cd9a469c | 16820 | # Check for library functions. |
0d9d2088 | 16821 | if test "${hardwire_newlib:-0}" -eq 1; then |
e4812daa | 16822 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS |
16823 | # may not work correctly, because the compiler may not be able to | |
16824 | # link executables. | |
16825 | ||
16826 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | |
16827 | ||
16828 | ||
16829 | $as_echo "#define HAVE_STRTOF 1" >>confdefs.h | |
16830 | ||
16831 | ||
e4812daa | 16832 | $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h |
16833 | ||
16834 | ||
e4812daa | 16835 | $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h |
16836 | ||
16837 | ||
16838 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h | |
16839 | ||
16840 | ||
16841 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h | |
16842 | ||
cec5cd66 | 16843 | |
4531a456 | 16844 | $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h |
16845 | ||
16846 | ||
16847 | $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h | |
16848 | ||
16849 | ||
cec5cd66 | 16850 | # At some point, we should differentiate between architectures |
16851 | # like x86, which have long double versions, and alpha/powerpc/etc., | |
16852 | # which don't. For the time being, punt. | |
16853 | if test x"long_double_math_on_this_cpu" = x"yes"; then | |
16854 | ||
16855 | $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h | |
16856 | ||
16857 | fi | |
e4812daa | 16858 | else |
4dd3972f | 16859 | |
4dd3972f | 16860 | |
a1aa1d30 | 16861 | |
16862 | for ac_func in $ac_func_list | |
cd9a469c | 16863 | do : |
16864 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16865 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
f00f02a3 | 16866 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
cd9a469c | 16867 | cat >>confdefs.h <<_ACEOF |
16868 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16869 | _ACEOF | |
4dd3972f | 16870 | |
cd9a469c | 16871 | fi |
16872 | done | |
4dd3972f | 16873 | |
4dd3972f | 16874 | |
cd9a469c | 16875 | |
90973b19 | 16876 | |
cd9a469c | 16877 | |
cd9a469c | 16878 | |
cd9a469c | 16879 | |
4ee9c684 | 16880 | |
4ee9c684 | 16881 | |
a2c0dc0f | 16882 | |
a2c0dc0f | 16883 | |
4ee9c684 | 16884 | |
adad6c74 | 16885 | |
adad6c74 | 16886 | |
adad6c74 | 16887 | |
adad6c74 | 16888 | |
adad6c74 | 16889 | |
adad6c74 | 16890 | |
adad6c74 | 16891 | |
adad6c74 | 16892 | |
99798ba4 | 16893 | |
99798ba4 | 16894 | |
99798ba4 | 16895 | |
99798ba4 | 16896 | |
adad6c74 | 16897 | |
adad6c74 | 16898 | |
adad6c74 | 16899 | |
adad6c74 | 16900 | |
c0e8efbe | 16901 | |
c0e8efbe | 16902 | |
c0e8efbe | 16903 | |
a1aa1d30 | 16904 | |
16905 | ||
16906 | ||
16907 | ||
16908 | ||
16909 | ||
16910 | ||
16911 | ||
16912 | ||
16913 | ||
16914 | ||
16915 | ||
16916 | ||
16917 | ||
16918 | ||
16919 | ||
16920 | ||
16921 | ||
16922 | ||
16923 | ||
16924 | ||
16925 | ||
16926 | ||
16927 | ||
16928 | ||
16929 | ||
16930 | ||
16931 | ||
16932 | ||
16933 | ||
16934 | ||
16935 | ||
16936 | ||
16937 | ||
16938 | ||
16939 | ||
16940 | ||
16941 | ||
16942 | ||
16943 | ||
16944 | ||
16945 | ||
16946 | ||
16947 | ||
16948 | ||
16949 | ||
16950 | ||
16951 | ||
16952 | ||
16953 | ||
16954 | ||
16955 | ||
16956 | ||
16957 | ||
16958 | ||
16959 | ||
a291e3b6 | 16960 | |
5935a97b | 16961 | |
b8a8c7bc | 16962 | |
16963 | ||
fc3d374a | 16964 | |
16965 | ||
7520a494 | 16966 | |
16967 | ||
7f0d992b | 16968 | |
16969 | ||
75535607 | 16970 | |
16971 | ||
9680a5f4 | 16972 | |
16973 | ||
e38e222d | 16974 | |
16975 | ||
5935a97b | 16976 | |
ffb6d1fd | 16977 | |
16978 | ||
e4812daa | 16979 | fi |
a1aa1d30 | 16980 | |
a8d8f723 | 16981 | # Check strerror_r, cannot be above as versions with two and three arguments exist |
16982 | ||
16983 | ac_save_CFLAGS="$CFLAGS" | |
16984 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
16985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16986 | /* end confdefs.h. */ | |
16987 | #define _GNU_SOURCE 1 | |
16988 | #include <string.h> | |
16989 | #include <locale.h> | |
16990 | int | |
16991 | main () | |
16992 | { | |
16993 | char s[128]; strerror_r(5, s, 128); | |
16994 | ; | |
16995 | return 0; | |
16996 | } | |
16997 | _ACEOF | |
16998 | if ac_fn_c_try_compile "$LINENO"; then : | |
16999 | ||
17000 | $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h | |
17001 | ||
17002 | fi | |
17003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17004 | CFLAGS="$ac_save_CFLAGS" | |
17005 | ||
17006 | ac_save_CFLAGS="$CFLAGS" | |
17007 | CFLAGS="-Wimplicit-function-declaration -Werror" | |
17008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17009 | /* end confdefs.h. */ | |
17010 | #define _GNU_SOURCE 1 | |
17011 | #include <string.h> | |
17012 | #include <locale.h> | |
17013 | int | |
17014 | main () | |
17015 | { | |
17016 | char s[128]; strerror_r(5, s); | |
17017 | ; | |
17018 | return 0; | |
17019 | } | |
17020 | _ACEOF | |
17021 | if ac_fn_c_try_compile "$LINENO"; then : | |
17022 | ||
17023 | $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h | |
17024 | ||
17025 | fi | |
17026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17027 | CFLAGS="$ac_save_CFLAGS" | |
c0e8efbe | 17028 | |
adad6c74 | 17029 | |
8f838781 | 17030 | # Check for C99 (and other IEEE) math functions |
7d9455ce | 17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
17032 | $as_echo_n "checking for sin in -lm... " >&6; } | |
f00f02a3 | 17033 | if ${ac_cv_lib_m_sin+:} false; then : |
cd9a469c | 17034 | $as_echo_n "(cached) " >&6 |
8f838781 | 17035 | else |
17036 | ac_check_lib_save_LIBS=$LIBS | |
17037 | LIBS="-lm $LIBS" | |
b52ee437 | 17038 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17039 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17040 | fi |
cd9a469c | 17041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17042 | /* end confdefs.h. */ |
17043 | ||
cd9a469c | 17044 | /* Override any GCC internal prototype to avoid an error. |
17045 | Use char because int might match the return type of a GCC | |
17046 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17047 | #ifdef __cplusplus |
17048 | extern "C" | |
17049 | #endif | |
7d9455ce | 17050 | char sin (); |
8f838781 | 17051 | int |
17052 | main () | |
17053 | { | |
7d9455ce | 17054 | return sin (); |
8f838781 | 17055 | ; |
17056 | return 0; | |
17057 | } | |
17058 | _ACEOF | |
cd9a469c | 17059 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17060 | ac_cv_lib_m_sin=yes |
8f838781 | 17061 | else |
7d9455ce | 17062 | ac_cv_lib_m_sin=no |
8f838781 | 17063 | fi |
cd9a469c | 17064 | rm -f core conftest.err conftest.$ac_objext \ |
17065 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17066 | LIBS=$ac_check_lib_save_LIBS |
17067 | fi | |
7d9455ce | 17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
17069 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
f00f02a3 | 17070 | if test "x$ac_cv_lib_m_sin" = xyes; then : |
7d9455ce | 17071 | cat >>confdefs.h <<_ACEOF |
17072 | #define HAVE_LIBM 1 | |
17073 | _ACEOF | |
8f838781 | 17074 | |
7d9455ce | 17075 | LIBS="-lm $LIBS" |
8f838781 | 17076 | |
17077 | fi | |
17078 | ||
7d9455ce | 17079 | |
17080 | ||
17081 | ||
17082 | ||
17083 | ||
17084 | ||
17085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 | |
17086 | $as_echo_n "checking for acosf... " >&6; } | |
f00f02a3 | 17087 | if ${gcc_cv_math_func_acosf+:} false; then : |
cd9a469c | 17088 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17089 | else |
7d9455ce | 17090 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17091 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17092 | fi |
cd9a469c | 17093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17094 | /* end confdefs.h. */ |
17095 | ||
7d9455ce | 17096 | #ifdef HAVE_COMPLEX_H |
17097 | #include <complex.h> | |
17098 | #endif | |
17099 | #ifdef HAVE_MATH_H | |
17100 | #include <math.h> | |
b52ee437 | 17101 | #endif |
7d9455ce | 17102 | |
17103 | int (*ptr)() = (int (*)())acosf; | |
17104 | ||
b52ee437 | 17105 | int |
17106 | main () | |
17107 | { | |
b52ee437 | 17108 | return 0; |
17109 | } | |
7d9455ce | 17110 | |
b52ee437 | 17111 | _ACEOF |
cd9a469c | 17112 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17113 | gcc_cv_math_func_acosf=yes |
b52ee437 | 17114 | else |
7d9455ce | 17115 | gcc_cv_math_func_acosf=no |
b52ee437 | 17116 | fi |
cd9a469c | 17117 | rm -f core conftest.err conftest.$ac_objext \ |
17118 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17119 | fi |
7d9455ce | 17120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 |
17121 | $as_echo "$gcc_cv_math_func_acosf" >&6; } | |
17122 | if test $gcc_cv_math_func_acosf = yes; then | |
bd647a17 | 17123 | |
6affa8e1 | 17124 | cat >>confdefs.h <<_ACEOF |
17125 | #define HAVE_ACOSF 1 | |
17126 | _ACEOF | |
7d9455ce | 17127 | |
17128 | fi | |
b52ee437 | 17129 | |
b52ee437 | 17130 | |
b52ee437 | 17131 | |
7d9455ce | 17132 | |
17133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 | |
17134 | $as_echo_n "checking for acos... " >&6; } | |
f00f02a3 | 17135 | if ${gcc_cv_math_func_acos+:} false; then : |
cd9a469c | 17136 | $as_echo_n "(cached) " >&6 |
8f838781 | 17137 | else |
7d9455ce | 17138 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17139 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17140 | fi |
cd9a469c | 17141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17142 | /* end confdefs.h. */ |
17143 | ||
7d9455ce | 17144 | #ifdef HAVE_COMPLEX_H |
17145 | #include <complex.h> | |
8f838781 | 17146 | #endif |
7d9455ce | 17147 | #ifdef HAVE_MATH_H |
17148 | #include <math.h> | |
17149 | #endif | |
17150 | ||
17151 | int (*ptr)() = (int (*)())acos; | |
17152 | ||
8f838781 | 17153 | int |
17154 | main () | |
17155 | { | |
8f838781 | 17156 | return 0; |
17157 | } | |
7d9455ce | 17158 | |
8f838781 | 17159 | _ACEOF |
cd9a469c | 17160 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17161 | gcc_cv_math_func_acos=yes |
8f838781 | 17162 | else |
7d9455ce | 17163 | gcc_cv_math_func_acos=no |
8f838781 | 17164 | fi |
cd9a469c | 17165 | rm -f core conftest.err conftest.$ac_objext \ |
17166 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17167 | fi |
7d9455ce | 17168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 |
17169 | $as_echo "$gcc_cv_math_func_acos" >&6; } | |
17170 | if test $gcc_cv_math_func_acos = yes; then | |
bd647a17 | 17171 | |
6affa8e1 | 17172 | cat >>confdefs.h <<_ACEOF |
17173 | #define HAVE_ACOS 1 | |
17174 | _ACEOF | |
7d9455ce | 17175 | |
17176 | fi | |
17177 | ||
8f838781 | 17178 | |
8f838781 | 17179 | |
8f838781 | 17180 | |
7d9455ce | 17181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 |
17182 | $as_echo_n "checking for acosl... " >&6; } | |
f00f02a3 | 17183 | if ${gcc_cv_math_func_acosl+:} false; then : |
cd9a469c | 17184 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17185 | else |
7d9455ce | 17186 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17187 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17188 | fi |
cd9a469c | 17189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17190 | /* end confdefs.h. */ |
17191 | ||
7d9455ce | 17192 | #ifdef HAVE_COMPLEX_H |
17193 | #include <complex.h> | |
17194 | #endif | |
17195 | #ifdef HAVE_MATH_H | |
17196 | #include <math.h> | |
b52ee437 | 17197 | #endif |
7d9455ce | 17198 | |
17199 | int (*ptr)() = (int (*)())acosl; | |
17200 | ||
b52ee437 | 17201 | int |
17202 | main () | |
17203 | { | |
b52ee437 | 17204 | return 0; |
17205 | } | |
7d9455ce | 17206 | |
b52ee437 | 17207 | _ACEOF |
cd9a469c | 17208 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17209 | gcc_cv_math_func_acosl=yes |
b52ee437 | 17210 | else |
7d9455ce | 17211 | gcc_cv_math_func_acosl=no |
b52ee437 | 17212 | fi |
cd9a469c | 17213 | rm -f core conftest.err conftest.$ac_objext \ |
17214 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17215 | fi |
7d9455ce | 17216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 |
17217 | $as_echo "$gcc_cv_math_func_acosl" >&6; } | |
17218 | if test $gcc_cv_math_func_acosl = yes; then | |
bd647a17 | 17219 | |
6affa8e1 | 17220 | cat >>confdefs.h <<_ACEOF |
17221 | #define HAVE_ACOSL 1 | |
17222 | _ACEOF | |
7d9455ce | 17223 | |
17224 | fi | |
b52ee437 | 17225 | |
b52ee437 | 17226 | |
b52ee437 | 17227 | |
7d9455ce | 17228 | |
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 | |
17230 | $as_echo_n "checking for acoshf... " >&6; } | |
f00f02a3 | 17231 | if ${gcc_cv_math_func_acoshf+:} false; then : |
cd9a469c | 17232 | $as_echo_n "(cached) " >&6 |
8f838781 | 17233 | else |
7d9455ce | 17234 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17235 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17236 | fi |
cd9a469c | 17237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17238 | /* end confdefs.h. */ |
17239 | ||
7d9455ce | 17240 | #ifdef HAVE_COMPLEX_H |
17241 | #include <complex.h> | |
8f838781 | 17242 | #endif |
7d9455ce | 17243 | #ifdef HAVE_MATH_H |
17244 | #include <math.h> | |
17245 | #endif | |
17246 | ||
17247 | int (*ptr)() = (int (*)())acoshf; | |
17248 | ||
8f838781 | 17249 | int |
17250 | main () | |
17251 | { | |
8f838781 | 17252 | return 0; |
17253 | } | |
7d9455ce | 17254 | |
8f838781 | 17255 | _ACEOF |
cd9a469c | 17256 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17257 | gcc_cv_math_func_acoshf=yes |
8f838781 | 17258 | else |
7d9455ce | 17259 | gcc_cv_math_func_acoshf=no |
8f838781 | 17260 | fi |
cd9a469c | 17261 | rm -f core conftest.err conftest.$ac_objext \ |
17262 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17263 | fi |
7d9455ce | 17264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 |
17265 | $as_echo "$gcc_cv_math_func_acoshf" >&6; } | |
17266 | if test $gcc_cv_math_func_acoshf = yes; then | |
bd647a17 | 17267 | |
6affa8e1 | 17268 | cat >>confdefs.h <<_ACEOF |
17269 | #define HAVE_ACOSHF 1 | |
17270 | _ACEOF | |
8f838781 | 17271 | |
7d9455ce | 17272 | fi |
8f838781 | 17273 | |
8f838781 | 17274 | |
7d9455ce | 17275 | |
17276 | ||
17277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 | |
17278 | $as_echo_n "checking for acosh... " >&6; } | |
f00f02a3 | 17279 | if ${gcc_cv_math_func_acosh+:} false; then : |
cd9a469c | 17280 | $as_echo_n "(cached) " >&6 |
8f838781 | 17281 | else |
7d9455ce | 17282 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17283 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17284 | fi |
cd9a469c | 17285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17286 | /* end confdefs.h. */ |
17287 | ||
7d9455ce | 17288 | #ifdef HAVE_COMPLEX_H |
17289 | #include <complex.h> | |
17290 | #endif | |
17291 | #ifdef HAVE_MATH_H | |
17292 | #include <math.h> | |
8f838781 | 17293 | #endif |
7d9455ce | 17294 | |
17295 | int (*ptr)() = (int (*)())acosh; | |
17296 | ||
8f838781 | 17297 | int |
17298 | main () | |
17299 | { | |
cd9a469c | 17300 | return 0; |
17301 | } | |
7d9455ce | 17302 | |
cd9a469c | 17303 | _ACEOF |
17304 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 17305 | gcc_cv_math_func_acosh=yes |
8f838781 | 17306 | else |
7d9455ce | 17307 | gcc_cv_math_func_acosh=no |
8f838781 | 17308 | fi |
cd9a469c | 17309 | rm -f core conftest.err conftest.$ac_objext \ |
17310 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17311 | fi |
7d9455ce | 17312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 |
17313 | $as_echo "$gcc_cv_math_func_acosh" >&6; } | |
17314 | if test $gcc_cv_math_func_acosh = yes; then | |
bd647a17 | 17315 | |
6affa8e1 | 17316 | cat >>confdefs.h <<_ACEOF |
17317 | #define HAVE_ACOSH 1 | |
17318 | _ACEOF | |
7d9455ce | 17319 | |
17320 | fi | |
8f838781 | 17321 | |
8f838781 | 17322 | |
8f838781 | 17323 | |
7d9455ce | 17324 | |
17325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 | |
17326 | $as_echo_n "checking for acoshl... " >&6; } | |
f00f02a3 | 17327 | if ${gcc_cv_math_func_acoshl+:} false; then : |
cd9a469c | 17328 | $as_echo_n "(cached) " >&6 |
b52ee437 | 17329 | else |
7d9455ce | 17330 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17331 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17332 | fi |
cd9a469c | 17333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 17334 | /* end confdefs.h. */ |
17335 | ||
7d9455ce | 17336 | #ifdef HAVE_COMPLEX_H |
17337 | #include <complex.h> | |
b52ee437 | 17338 | #endif |
7d9455ce | 17339 | #ifdef HAVE_MATH_H |
17340 | #include <math.h> | |
17341 | #endif | |
17342 | ||
17343 | int (*ptr)() = (int (*)())acoshl; | |
17344 | ||
b52ee437 | 17345 | int |
17346 | main () | |
17347 | { | |
b52ee437 | 17348 | return 0; |
17349 | } | |
7d9455ce | 17350 | |
b52ee437 | 17351 | _ACEOF |
cd9a469c | 17352 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17353 | gcc_cv_math_func_acoshl=yes |
b52ee437 | 17354 | else |
7d9455ce | 17355 | gcc_cv_math_func_acoshl=no |
b52ee437 | 17356 | fi |
cd9a469c | 17357 | rm -f core conftest.err conftest.$ac_objext \ |
17358 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17359 | fi |
7d9455ce | 17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 |
17361 | $as_echo "$gcc_cv_math_func_acoshl" >&6; } | |
17362 | if test $gcc_cv_math_func_acoshl = yes; then | |
bd647a17 | 17363 | |
6affa8e1 | 17364 | cat >>confdefs.h <<_ACEOF |
17365 | #define HAVE_ACOSHL 1 | |
17366 | _ACEOF | |
7d9455ce | 17367 | |
17368 | fi | |
17369 | ||
b52ee437 | 17370 | |
b52ee437 | 17371 | |
b52ee437 | 17372 | |
7d9455ce | 17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 |
17374 | $as_echo_n "checking for asinf... " >&6; } | |
f00f02a3 | 17375 | if ${gcc_cv_math_func_asinf+:} false; then : |
cd9a469c | 17376 | $as_echo_n "(cached) " >&6 |
8f838781 | 17377 | else |
7d9455ce | 17378 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17379 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17380 | fi |
cd9a469c | 17381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17382 | /* end confdefs.h. */ |
17383 | ||
7d9455ce | 17384 | #ifdef HAVE_COMPLEX_H |
17385 | #include <complex.h> | |
17386 | #endif | |
17387 | #ifdef HAVE_MATH_H | |
17388 | #include <math.h> | |
8f838781 | 17389 | #endif |
7d9455ce | 17390 | |
17391 | int (*ptr)() = (int (*)())asinf; | |
17392 | ||
8f838781 | 17393 | int |
17394 | main () | |
17395 | { | |
8f838781 | 17396 | return 0; |
17397 | } | |
7d9455ce | 17398 | |
8f838781 | 17399 | _ACEOF |
cd9a469c | 17400 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17401 | gcc_cv_math_func_asinf=yes |
8f838781 | 17402 | else |
7d9455ce | 17403 | gcc_cv_math_func_asinf=no |
8f838781 | 17404 | fi |
cd9a469c | 17405 | rm -f core conftest.err conftest.$ac_objext \ |
17406 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17407 | fi |
7d9455ce | 17408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 |
17409 | $as_echo "$gcc_cv_math_func_asinf" >&6; } | |
17410 | if test $gcc_cv_math_func_asinf = yes; then | |
bd647a17 | 17411 | |
6affa8e1 | 17412 | cat >>confdefs.h <<_ACEOF |
17413 | #define HAVE_ASINF 1 | |
17414 | _ACEOF | |
7d9455ce | 17415 | |
17416 | fi | |
8f838781 | 17417 | |
8f838781 | 17418 | |
8f838781 | 17419 | |
7d9455ce | 17420 | |
17421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 | |
17422 | $as_echo_n "checking for asin... " >&6; } | |
f00f02a3 | 17423 | if ${gcc_cv_math_func_asin+:} false; then : |
cd9a469c | 17424 | $as_echo_n "(cached) " >&6 |
8f838781 | 17425 | else |
7d9455ce | 17426 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17427 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17428 | fi |
cd9a469c | 17429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17430 | /* end confdefs.h. */ |
17431 | ||
7d9455ce | 17432 | #ifdef HAVE_COMPLEX_H |
17433 | #include <complex.h> | |
8f838781 | 17434 | #endif |
7d9455ce | 17435 | #ifdef HAVE_MATH_H |
17436 | #include <math.h> | |
17437 | #endif | |
17438 | ||
17439 | int (*ptr)() = (int (*)())asin; | |
17440 | ||
8f838781 | 17441 | int |
17442 | main () | |
17443 | { | |
8f838781 | 17444 | return 0; |
17445 | } | |
7d9455ce | 17446 | |
8f838781 | 17447 | _ACEOF |
cd9a469c | 17448 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17449 | gcc_cv_math_func_asin=yes |
8f838781 | 17450 | else |
7d9455ce | 17451 | gcc_cv_math_func_asin=no |
8f838781 | 17452 | fi |
cd9a469c | 17453 | rm -f core conftest.err conftest.$ac_objext \ |
17454 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17455 | fi |
7d9455ce | 17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 |
17457 | $as_echo "$gcc_cv_math_func_asin" >&6; } | |
17458 | if test $gcc_cv_math_func_asin = yes; then | |
bd647a17 | 17459 | |
6affa8e1 | 17460 | cat >>confdefs.h <<_ACEOF |
17461 | #define HAVE_ASIN 1 | |
17462 | _ACEOF | |
8f838781 | 17463 | |
7d9455ce | 17464 | fi |
8f838781 | 17465 | |
8f838781 | 17466 | |
7d9455ce | 17467 | |
17468 | ||
17469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 | |
17470 | $as_echo_n "checking for asinl... " >&6; } | |
f00f02a3 | 17471 | if ${gcc_cv_math_func_asinl+:} false; then : |
cd9a469c | 17472 | $as_echo_n "(cached) " >&6 |
8f838781 | 17473 | else |
7d9455ce | 17474 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17475 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17476 | fi |
cd9a469c | 17477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17478 | /* end confdefs.h. */ |
17479 | ||
7d9455ce | 17480 | #ifdef HAVE_COMPLEX_H |
17481 | #include <complex.h> | |
17482 | #endif | |
17483 | #ifdef HAVE_MATH_H | |
17484 | #include <math.h> | |
8f838781 | 17485 | #endif |
7d9455ce | 17486 | |
17487 | int (*ptr)() = (int (*)())asinl; | |
17488 | ||
8f838781 | 17489 | int |
17490 | main () | |
17491 | { | |
8f838781 | 17492 | return 0; |
17493 | } | |
7d9455ce | 17494 | |
8f838781 | 17495 | _ACEOF |
cd9a469c | 17496 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17497 | gcc_cv_math_func_asinl=yes |
8f838781 | 17498 | else |
7d9455ce | 17499 | gcc_cv_math_func_asinl=no |
8f838781 | 17500 | fi |
cd9a469c | 17501 | rm -f core conftest.err conftest.$ac_objext \ |
17502 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17503 | fi |
7d9455ce | 17504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 |
17505 | $as_echo "$gcc_cv_math_func_asinl" >&6; } | |
17506 | if test $gcc_cv_math_func_asinl = yes; then | |
bd647a17 | 17507 | |
6affa8e1 | 17508 | cat >>confdefs.h <<_ACEOF |
17509 | #define HAVE_ASINL 1 | |
17510 | _ACEOF | |
7d9455ce | 17511 | |
17512 | fi | |
8f838781 | 17513 | |
8f838781 | 17514 | |
8f838781 | 17515 | |
7d9455ce | 17516 | |
17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 | |
17518 | $as_echo_n "checking for asinhf... " >&6; } | |
f00f02a3 | 17519 | if ${gcc_cv_math_func_asinhf+:} false; then : |
cd9a469c | 17520 | $as_echo_n "(cached) " >&6 |
8f838781 | 17521 | else |
7d9455ce | 17522 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17523 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17524 | fi |
cd9a469c | 17525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17526 | /* end confdefs.h. */ |
17527 | ||
7d9455ce | 17528 | #ifdef HAVE_COMPLEX_H |
17529 | #include <complex.h> | |
8f838781 | 17530 | #endif |
7d9455ce | 17531 | #ifdef HAVE_MATH_H |
17532 | #include <math.h> | |
17533 | #endif | |
17534 | ||
17535 | int (*ptr)() = (int (*)())asinhf; | |
17536 | ||
8f838781 | 17537 | int |
17538 | main () | |
17539 | { | |
8f838781 | 17540 | return 0; |
17541 | } | |
7d9455ce | 17542 | |
8f838781 | 17543 | _ACEOF |
cd9a469c | 17544 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17545 | gcc_cv_math_func_asinhf=yes |
8f838781 | 17546 | else |
7d9455ce | 17547 | gcc_cv_math_func_asinhf=no |
8f838781 | 17548 | fi |
cd9a469c | 17549 | rm -f core conftest.err conftest.$ac_objext \ |
17550 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17551 | fi |
7d9455ce | 17552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 |
17553 | $as_echo "$gcc_cv_math_func_asinhf" >&6; } | |
17554 | if test $gcc_cv_math_func_asinhf = yes; then | |
bd647a17 | 17555 | |
6affa8e1 | 17556 | cat >>confdefs.h <<_ACEOF |
17557 | #define HAVE_ASINHF 1 | |
17558 | _ACEOF | |
7d9455ce | 17559 | |
17560 | fi | |
17561 | ||
8f838781 | 17562 | |
8f838781 | 17563 | |
8f838781 | 17564 | |
7d9455ce | 17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 |
17566 | $as_echo_n "checking for asinh... " >&6; } | |
f00f02a3 | 17567 | if ${gcc_cv_math_func_asinh+:} false; then : |
cd9a469c | 17568 | $as_echo_n "(cached) " >&6 |
8f838781 | 17569 | else |
7d9455ce | 17570 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17571 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17572 | fi |
cd9a469c | 17573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17574 | /* end confdefs.h. */ |
17575 | ||
7d9455ce | 17576 | #ifdef HAVE_COMPLEX_H |
17577 | #include <complex.h> | |
17578 | #endif | |
17579 | #ifdef HAVE_MATH_H | |
17580 | #include <math.h> | |
8f838781 | 17581 | #endif |
7d9455ce | 17582 | |
17583 | int (*ptr)() = (int (*)())asinh; | |
17584 | ||
8f838781 | 17585 | int |
17586 | main () | |
17587 | { | |
8f838781 | 17588 | return 0; |
17589 | } | |
7d9455ce | 17590 | |
8f838781 | 17591 | _ACEOF |
cd9a469c | 17592 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17593 | gcc_cv_math_func_asinh=yes |
8f838781 | 17594 | else |
7d9455ce | 17595 | gcc_cv_math_func_asinh=no |
8f838781 | 17596 | fi |
cd9a469c | 17597 | rm -f core conftest.err conftest.$ac_objext \ |
17598 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17599 | fi |
7d9455ce | 17600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 |
17601 | $as_echo "$gcc_cv_math_func_asinh" >&6; } | |
17602 | if test $gcc_cv_math_func_asinh = yes; then | |
bd647a17 | 17603 | |
6affa8e1 | 17604 | cat >>confdefs.h <<_ACEOF |
17605 | #define HAVE_ASINH 1 | |
17606 | _ACEOF | |
7d9455ce | 17607 | |
17608 | fi | |
8f838781 | 17609 | |
8f838781 | 17610 | |
8f838781 | 17611 | |
7d9455ce | 17612 | |
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 | |
17614 | $as_echo_n "checking for asinhl... " >&6; } | |
f00f02a3 | 17615 | if ${gcc_cv_math_func_asinhl+:} false; then : |
cd9a469c | 17616 | $as_echo_n "(cached) " >&6 |
334f03a1 | 17617 | else |
7d9455ce | 17618 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17619 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17620 | fi |
cd9a469c | 17621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
334f03a1 | 17622 | /* end confdefs.h. */ |
17623 | ||
7d9455ce | 17624 | #ifdef HAVE_COMPLEX_H |
17625 | #include <complex.h> | |
334f03a1 | 17626 | #endif |
7d9455ce | 17627 | #ifdef HAVE_MATH_H |
17628 | #include <math.h> | |
17629 | #endif | |
17630 | ||
17631 | int (*ptr)() = (int (*)())asinhl; | |
17632 | ||
334f03a1 | 17633 | int |
17634 | main () | |
17635 | { | |
334f03a1 | 17636 | return 0; |
17637 | } | |
7d9455ce | 17638 | |
334f03a1 | 17639 | _ACEOF |
cd9a469c | 17640 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17641 | gcc_cv_math_func_asinhl=yes |
334f03a1 | 17642 | else |
7d9455ce | 17643 | gcc_cv_math_func_asinhl=no |
334f03a1 | 17644 | fi |
cd9a469c | 17645 | rm -f core conftest.err conftest.$ac_objext \ |
17646 | conftest$ac_exeext conftest.$ac_ext | |
334f03a1 | 17647 | fi |
7d9455ce | 17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 |
17649 | $as_echo "$gcc_cv_math_func_asinhl" >&6; } | |
17650 | if test $gcc_cv_math_func_asinhl = yes; then | |
bd647a17 | 17651 | |
6affa8e1 | 17652 | cat >>confdefs.h <<_ACEOF |
17653 | #define HAVE_ASINHL 1 | |
17654 | _ACEOF | |
334f03a1 | 17655 | |
7d9455ce | 17656 | fi |
334f03a1 | 17657 | |
334f03a1 | 17658 | |
7d9455ce | 17659 | |
17660 | ||
17661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 | |
17662 | $as_echo_n "checking for atan2f... " >&6; } | |
f00f02a3 | 17663 | if ${gcc_cv_math_func_atan2f+:} false; then : |
cd9a469c | 17664 | $as_echo_n "(cached) " >&6 |
8f838781 | 17665 | else |
7d9455ce | 17666 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17667 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17668 | fi |
cd9a469c | 17669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17670 | /* end confdefs.h. */ |
17671 | ||
7d9455ce | 17672 | #ifdef HAVE_COMPLEX_H |
17673 | #include <complex.h> | |
8f838781 | 17674 | #endif |
7d9455ce | 17675 | #ifdef HAVE_MATH_H |
17676 | #include <math.h> | |
17677 | #endif | |
17678 | ||
17679 | int (*ptr)() = (int (*)())atan2f; | |
17680 | ||
17681 | int | |
8f838781 | 17682 | main () |
17683 | { | |
8f838781 | 17684 | return 0; |
17685 | } | |
7d9455ce | 17686 | |
8f838781 | 17687 | _ACEOF |
cd9a469c | 17688 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17689 | gcc_cv_math_func_atan2f=yes |
8f838781 | 17690 | else |
7d9455ce | 17691 | gcc_cv_math_func_atan2f=no |
8f838781 | 17692 | fi |
cd9a469c | 17693 | rm -f core conftest.err conftest.$ac_objext \ |
17694 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17695 | fi |
7d9455ce | 17696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 |
17697 | $as_echo "$gcc_cv_math_func_atan2f" >&6; } | |
17698 | if test $gcc_cv_math_func_atan2f = yes; then | |
bd647a17 | 17699 | |
6affa8e1 | 17700 | cat >>confdefs.h <<_ACEOF |
17701 | #define HAVE_ATAN2F 1 | |
17702 | _ACEOF | |
7d9455ce | 17703 | |
17704 | fi | |
8f838781 | 17705 | |
8f838781 | 17706 | |
8f838781 | 17707 | |
7d9455ce | 17708 | |
17709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 | |
17710 | $as_echo_n "checking for atan2... " >&6; } | |
f00f02a3 | 17711 | if ${gcc_cv_math_func_atan2+:} false; then : |
cd9a469c | 17712 | $as_echo_n "(cached) " >&6 |
8f838781 | 17713 | else |
7d9455ce | 17714 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17715 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17716 | fi |
cd9a469c | 17717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17718 | /* end confdefs.h. */ |
17719 | ||
7d9455ce | 17720 | #ifdef HAVE_COMPLEX_H |
17721 | #include <complex.h> | |
8f838781 | 17722 | #endif |
7d9455ce | 17723 | #ifdef HAVE_MATH_H |
17724 | #include <math.h> | |
17725 | #endif | |
17726 | ||
17727 | int (*ptr)() = (int (*)())atan2; | |
17728 | ||
8f838781 | 17729 | int |
17730 | main () | |
17731 | { | |
8f838781 | 17732 | return 0; |
17733 | } | |
7d9455ce | 17734 | |
8f838781 | 17735 | _ACEOF |
cd9a469c | 17736 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17737 | gcc_cv_math_func_atan2=yes |
8f838781 | 17738 | else |
7d9455ce | 17739 | gcc_cv_math_func_atan2=no |
8f838781 | 17740 | fi |
cd9a469c | 17741 | rm -f core conftest.err conftest.$ac_objext \ |
17742 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17743 | fi |
7d9455ce | 17744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 |
17745 | $as_echo "$gcc_cv_math_func_atan2" >&6; } | |
17746 | if test $gcc_cv_math_func_atan2 = yes; then | |
bd647a17 | 17747 | |
6affa8e1 | 17748 | cat >>confdefs.h <<_ACEOF |
17749 | #define HAVE_ATAN2 1 | |
17750 | _ACEOF | |
8f838781 | 17751 | |
7d9455ce | 17752 | fi |
8f838781 | 17753 | |
8f838781 | 17754 | |
7d9455ce | 17755 | |
17756 | ||
17757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 | |
17758 | $as_echo_n "checking for atan2l... " >&6; } | |
f00f02a3 | 17759 | if ${gcc_cv_math_func_atan2l+:} false; then : |
cd9a469c | 17760 | $as_echo_n "(cached) " >&6 |
8f838781 | 17761 | else |
7d9455ce | 17762 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17763 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17764 | fi |
cd9a469c | 17765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17766 | /* end confdefs.h. */ |
17767 | ||
7d9455ce | 17768 | #ifdef HAVE_COMPLEX_H |
17769 | #include <complex.h> | |
17770 | #endif | |
17771 | #ifdef HAVE_MATH_H | |
17772 | #include <math.h> | |
8f838781 | 17773 | #endif |
7d9455ce | 17774 | |
17775 | int (*ptr)() = (int (*)())atan2l; | |
17776 | ||
8f838781 | 17777 | int |
17778 | main () | |
17779 | { | |
8f838781 | 17780 | return 0; |
17781 | } | |
7d9455ce | 17782 | |
8f838781 | 17783 | _ACEOF |
cd9a469c | 17784 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17785 | gcc_cv_math_func_atan2l=yes |
8f838781 | 17786 | else |
7d9455ce | 17787 | gcc_cv_math_func_atan2l=no |
8f838781 | 17788 | fi |
cd9a469c | 17789 | rm -f core conftest.err conftest.$ac_objext \ |
17790 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17791 | fi |
7d9455ce | 17792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 |
17793 | $as_echo "$gcc_cv_math_func_atan2l" >&6; } | |
17794 | if test $gcc_cv_math_func_atan2l = yes; then | |
bd647a17 | 17795 | |
6affa8e1 | 17796 | cat >>confdefs.h <<_ACEOF |
17797 | #define HAVE_ATAN2L 1 | |
17798 | _ACEOF | |
7d9455ce | 17799 | |
17800 | fi | |
8f838781 | 17801 | |
8f838781 | 17802 | |
8f838781 | 17803 | |
7d9455ce | 17804 | |
17805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 | |
17806 | $as_echo_n "checking for atanf... " >&6; } | |
f00f02a3 | 17807 | if ${gcc_cv_math_func_atanf+:} false; then : |
cd9a469c | 17808 | $as_echo_n "(cached) " >&6 |
8f838781 | 17809 | else |
7d9455ce | 17810 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17811 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17812 | fi |
cd9a469c | 17813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17814 | /* end confdefs.h. */ |
17815 | ||
7d9455ce | 17816 | #ifdef HAVE_COMPLEX_H |
17817 | #include <complex.h> | |
8f838781 | 17818 | #endif |
7d9455ce | 17819 | #ifdef HAVE_MATH_H |
17820 | #include <math.h> | |
17821 | #endif | |
17822 | ||
17823 | int (*ptr)() = (int (*)())atanf; | |
17824 | ||
8f838781 | 17825 | int |
17826 | main () | |
17827 | { | |
8f838781 | 17828 | return 0; |
17829 | } | |
7d9455ce | 17830 | |
8f838781 | 17831 | _ACEOF |
cd9a469c | 17832 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17833 | gcc_cv_math_func_atanf=yes |
8f838781 | 17834 | else |
7d9455ce | 17835 | gcc_cv_math_func_atanf=no |
8f838781 | 17836 | fi |
cd9a469c | 17837 | rm -f core conftest.err conftest.$ac_objext \ |
17838 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17839 | fi |
7d9455ce | 17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 |
17841 | $as_echo "$gcc_cv_math_func_atanf" >&6; } | |
17842 | if test $gcc_cv_math_func_atanf = yes; then | |
bd647a17 | 17843 | |
6affa8e1 | 17844 | cat >>confdefs.h <<_ACEOF |
17845 | #define HAVE_ATANF 1 | |
17846 | _ACEOF | |
7d9455ce | 17847 | |
17848 | fi | |
17849 | ||
8f838781 | 17850 | |
8f838781 | 17851 | |
8f838781 | 17852 | |
7d9455ce | 17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 |
17854 | $as_echo_n "checking for atan... " >&6; } | |
f00f02a3 | 17855 | if ${gcc_cv_math_func_atan+:} false; then : |
cd9a469c | 17856 | $as_echo_n "(cached) " >&6 |
8f838781 | 17857 | else |
7d9455ce | 17858 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17859 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17860 | fi |
cd9a469c | 17861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17862 | /* end confdefs.h. */ |
17863 | ||
7d9455ce | 17864 | #ifdef HAVE_COMPLEX_H |
17865 | #include <complex.h> | |
17866 | #endif | |
17867 | #ifdef HAVE_MATH_H | |
17868 | #include <math.h> | |
8f838781 | 17869 | #endif |
7d9455ce | 17870 | |
17871 | int (*ptr)() = (int (*)())atan; | |
17872 | ||
8f838781 | 17873 | int |
17874 | main () | |
17875 | { | |
8f838781 | 17876 | return 0; |
17877 | } | |
7d9455ce | 17878 | |
8f838781 | 17879 | _ACEOF |
cd9a469c | 17880 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17881 | gcc_cv_math_func_atan=yes |
8f838781 | 17882 | else |
7d9455ce | 17883 | gcc_cv_math_func_atan=no |
8f838781 | 17884 | fi |
cd9a469c | 17885 | rm -f core conftest.err conftest.$ac_objext \ |
17886 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17887 | fi |
7d9455ce | 17888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 |
17889 | $as_echo "$gcc_cv_math_func_atan" >&6; } | |
17890 | if test $gcc_cv_math_func_atan = yes; then | |
bd647a17 | 17891 | |
6affa8e1 | 17892 | cat >>confdefs.h <<_ACEOF |
17893 | #define HAVE_ATAN 1 | |
17894 | _ACEOF | |
7d9455ce | 17895 | |
17896 | fi | |
8f838781 | 17897 | |
8f838781 | 17898 | |
8f838781 | 17899 | |
7d9455ce | 17900 | |
17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 | |
17902 | $as_echo_n "checking for atanl... " >&6; } | |
f00f02a3 | 17903 | if ${gcc_cv_math_func_atanl+:} false; then : |
cd9a469c | 17904 | $as_echo_n "(cached) " >&6 |
14c3c235 | 17905 | else |
7d9455ce | 17906 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17907 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17908 | fi |
cd9a469c | 17909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14c3c235 | 17910 | /* end confdefs.h. */ |
17911 | ||
7d9455ce | 17912 | #ifdef HAVE_COMPLEX_H |
17913 | #include <complex.h> | |
14c3c235 | 17914 | #endif |
7d9455ce | 17915 | #ifdef HAVE_MATH_H |
17916 | #include <math.h> | |
17917 | #endif | |
17918 | ||
17919 | int (*ptr)() = (int (*)())atanl; | |
17920 | ||
14c3c235 | 17921 | int |
17922 | main () | |
17923 | { | |
14c3c235 | 17924 | return 0; |
17925 | } | |
7d9455ce | 17926 | |
14c3c235 | 17927 | _ACEOF |
cd9a469c | 17928 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17929 | gcc_cv_math_func_atanl=yes |
14c3c235 | 17930 | else |
7d9455ce | 17931 | gcc_cv_math_func_atanl=no |
14c3c235 | 17932 | fi |
cd9a469c | 17933 | rm -f core conftest.err conftest.$ac_objext \ |
17934 | conftest$ac_exeext conftest.$ac_ext | |
14c3c235 | 17935 | fi |
7d9455ce | 17936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 |
17937 | $as_echo "$gcc_cv_math_func_atanl" >&6; } | |
17938 | if test $gcc_cv_math_func_atanl = yes; then | |
bd647a17 | 17939 | |
6affa8e1 | 17940 | cat >>confdefs.h <<_ACEOF |
17941 | #define HAVE_ATANL 1 | |
17942 | _ACEOF | |
14c3c235 | 17943 | |
7d9455ce | 17944 | fi |
14c3c235 | 17945 | |
14c3c235 | 17946 | |
7d9455ce | 17947 | |
17948 | ||
17949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 | |
17950 | $as_echo_n "checking for atanhf... " >&6; } | |
f00f02a3 | 17951 | if ${gcc_cv_math_func_atanhf+:} false; then : |
cd9a469c | 17952 | $as_echo_n "(cached) " >&6 |
8f838781 | 17953 | else |
7d9455ce | 17954 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 17955 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17956 | fi |
cd9a469c | 17957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17958 | /* end confdefs.h. */ |
17959 | ||
7d9455ce | 17960 | #ifdef HAVE_COMPLEX_H |
17961 | #include <complex.h> | |
17962 | #endif | |
17963 | #ifdef HAVE_MATH_H | |
17964 | #include <math.h> | |
8f838781 | 17965 | #endif |
7d9455ce | 17966 | |
17967 | int (*ptr)() = (int (*)())atanhf; | |
17968 | ||
8f838781 | 17969 | int |
17970 | main () | |
17971 | { | |
8f838781 | 17972 | return 0; |
17973 | } | |
7d9455ce | 17974 | |
8f838781 | 17975 | _ACEOF |
cd9a469c | 17976 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 17977 | gcc_cv_math_func_atanhf=yes |
8f838781 | 17978 | else |
7d9455ce | 17979 | gcc_cv_math_func_atanhf=no |
8f838781 | 17980 | fi |
cd9a469c | 17981 | rm -f core conftest.err conftest.$ac_objext \ |
17982 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17983 | fi |
7d9455ce | 17984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 |
17985 | $as_echo "$gcc_cv_math_func_atanhf" >&6; } | |
17986 | if test $gcc_cv_math_func_atanhf = yes; then | |
bd647a17 | 17987 | |
6affa8e1 | 17988 | cat >>confdefs.h <<_ACEOF |
17989 | #define HAVE_ATANHF 1 | |
17990 | _ACEOF | |
7d9455ce | 17991 | |
17992 | fi | |
8f838781 | 17993 | |
8f838781 | 17994 | |
8f838781 | 17995 | |
7d9455ce | 17996 | |
17997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 | |
17998 | $as_echo_n "checking for atanh... " >&6; } | |
f00f02a3 | 17999 | if ${gcc_cv_math_func_atanh+:} false; then : |
cd9a469c | 18000 | $as_echo_n "(cached) " >&6 |
8f838781 | 18001 | else |
7d9455ce | 18002 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18003 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18004 | fi |
cd9a469c | 18005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18006 | /* end confdefs.h. */ |
18007 | ||
7d9455ce | 18008 | #ifdef HAVE_COMPLEX_H |
18009 | #include <complex.h> | |
8f838781 | 18010 | #endif |
7d9455ce | 18011 | #ifdef HAVE_MATH_H |
18012 | #include <math.h> | |
18013 | #endif | |
18014 | ||
18015 | int (*ptr)() = (int (*)())atanh; | |
18016 | ||
8f838781 | 18017 | int |
18018 | main () | |
18019 | { | |
8f838781 | 18020 | return 0; |
18021 | } | |
7d9455ce | 18022 | |
8f838781 | 18023 | _ACEOF |
cd9a469c | 18024 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18025 | gcc_cv_math_func_atanh=yes |
8f838781 | 18026 | else |
7d9455ce | 18027 | gcc_cv_math_func_atanh=no |
8f838781 | 18028 | fi |
cd9a469c | 18029 | rm -f core conftest.err conftest.$ac_objext \ |
18030 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18031 | fi |
7d9455ce | 18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 |
18033 | $as_echo "$gcc_cv_math_func_atanh" >&6; } | |
18034 | if test $gcc_cv_math_func_atanh = yes; then | |
bd647a17 | 18035 | |
6affa8e1 | 18036 | cat >>confdefs.h <<_ACEOF |
18037 | #define HAVE_ATANH 1 | |
18038 | _ACEOF | |
7d9455ce | 18039 | |
18040 | fi | |
18041 | ||
8f838781 | 18042 | |
8f838781 | 18043 | |
8f838781 | 18044 | |
7d9455ce | 18045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 |
18046 | $as_echo_n "checking for atanhl... " >&6; } | |
f00f02a3 | 18047 | if ${gcc_cv_math_func_atanhl+:} false; then : |
cd9a469c | 18048 | $as_echo_n "(cached) " >&6 |
a2d7a3ff | 18049 | else |
7d9455ce | 18050 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18051 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18052 | fi |
cd9a469c | 18053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2d7a3ff | 18054 | /* end confdefs.h. */ |
18055 | ||
7d9455ce | 18056 | #ifdef HAVE_COMPLEX_H |
18057 | #include <complex.h> | |
18058 | #endif | |
18059 | #ifdef HAVE_MATH_H | |
18060 | #include <math.h> | |
a2d7a3ff | 18061 | #endif |
7d9455ce | 18062 | |
18063 | int (*ptr)() = (int (*)())atanhl; | |
18064 | ||
a2d7a3ff | 18065 | int |
18066 | main () | |
18067 | { | |
a2d7a3ff | 18068 | return 0; |
18069 | } | |
7d9455ce | 18070 | |
a2d7a3ff | 18071 | _ACEOF |
cd9a469c | 18072 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18073 | gcc_cv_math_func_atanhl=yes |
a2d7a3ff | 18074 | else |
7d9455ce | 18075 | gcc_cv_math_func_atanhl=no |
a2d7a3ff | 18076 | fi |
cd9a469c | 18077 | rm -f core conftest.err conftest.$ac_objext \ |
18078 | conftest$ac_exeext conftest.$ac_ext | |
a2d7a3ff | 18079 | fi |
7d9455ce | 18080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 |
18081 | $as_echo "$gcc_cv_math_func_atanhl" >&6; } | |
18082 | if test $gcc_cv_math_func_atanhl = yes; then | |
bd647a17 | 18083 | |
6affa8e1 | 18084 | cat >>confdefs.h <<_ACEOF |
18085 | #define HAVE_ATANHL 1 | |
18086 | _ACEOF | |
7d9455ce | 18087 | |
18088 | fi | |
a2d7a3ff | 18089 | |
a2d7a3ff | 18090 | |
a2d7a3ff | 18091 | |
7d9455ce | 18092 | |
18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 | |
18094 | $as_echo_n "checking for cargf... " >&6; } | |
f00f02a3 | 18095 | if ${gcc_cv_math_func_cargf+:} false; then : |
cd9a469c | 18096 | $as_echo_n "(cached) " >&6 |
a31bd8a4 | 18097 | else |
7d9455ce | 18098 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18099 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18100 | fi |
cd9a469c | 18101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 18102 | /* end confdefs.h. */ |
18103 | ||
7d9455ce | 18104 | #ifdef HAVE_COMPLEX_H |
18105 | #include <complex.h> | |
a31bd8a4 | 18106 | #endif |
7d9455ce | 18107 | #ifdef HAVE_MATH_H |
18108 | #include <math.h> | |
18109 | #endif | |
18110 | ||
18111 | int (*ptr)() = (int (*)())cargf; | |
18112 | ||
8f838781 | 18113 | int |
18114 | main () | |
18115 | { | |
8f838781 | 18116 | return 0; |
18117 | } | |
7d9455ce | 18118 | |
8f838781 | 18119 | _ACEOF |
cd9a469c | 18120 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18121 | gcc_cv_math_func_cargf=yes |
8f838781 | 18122 | else |
7d9455ce | 18123 | gcc_cv_math_func_cargf=no |
8f838781 | 18124 | fi |
cd9a469c | 18125 | rm -f core conftest.err conftest.$ac_objext \ |
18126 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18127 | fi |
7d9455ce | 18128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 |
18129 | $as_echo "$gcc_cv_math_func_cargf" >&6; } | |
18130 | if test $gcc_cv_math_func_cargf = yes; then | |
bd647a17 | 18131 | |
6affa8e1 | 18132 | cat >>confdefs.h <<_ACEOF |
18133 | #define HAVE_CARGF 1 | |
18134 | _ACEOF | |
8f838781 | 18135 | |
7d9455ce | 18136 | fi |
8f838781 | 18137 | |
8f838781 | 18138 | |
7d9455ce | 18139 | |
18140 | ||
18141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 | |
18142 | $as_echo_n "checking for carg... " >&6; } | |
f00f02a3 | 18143 | if ${gcc_cv_math_func_carg+:} false; then : |
cd9a469c | 18144 | $as_echo_n "(cached) " >&6 |
8f838781 | 18145 | else |
7d9455ce | 18146 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18147 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18148 | fi |
cd9a469c | 18149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18150 | /* end confdefs.h. */ |
18151 | ||
7d9455ce | 18152 | #ifdef HAVE_COMPLEX_H |
18153 | #include <complex.h> | |
18154 | #endif | |
18155 | #ifdef HAVE_MATH_H | |
18156 | #include <math.h> | |
8f838781 | 18157 | #endif |
7d9455ce | 18158 | |
18159 | int (*ptr)() = (int (*)())carg; | |
18160 | ||
a31bd8a4 | 18161 | int |
18162 | main () | |
18163 | { | |
a31bd8a4 | 18164 | return 0; |
18165 | } | |
7d9455ce | 18166 | |
a31bd8a4 | 18167 | _ACEOF |
cd9a469c | 18168 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18169 | gcc_cv_math_func_carg=yes |
a31bd8a4 | 18170 | else |
7d9455ce | 18171 | gcc_cv_math_func_carg=no |
a31bd8a4 | 18172 | fi |
cd9a469c | 18173 | rm -f core conftest.err conftest.$ac_objext \ |
18174 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 18175 | fi |
7d9455ce | 18176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 |
18177 | $as_echo "$gcc_cv_math_func_carg" >&6; } | |
18178 | if test $gcc_cv_math_func_carg = yes; then | |
bd647a17 | 18179 | |
6affa8e1 | 18180 | cat >>confdefs.h <<_ACEOF |
18181 | #define HAVE_CARG 1 | |
18182 | _ACEOF | |
7d9455ce | 18183 | |
18184 | fi | |
a31bd8a4 | 18185 | |
a31bd8a4 | 18186 | |
a31bd8a4 | 18187 | |
7d9455ce | 18188 | |
18189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 | |
18190 | $as_echo_n "checking for cargl... " >&6; } | |
f00f02a3 | 18191 | if ${gcc_cv_math_func_cargl+:} false; then : |
cd9a469c | 18192 | $as_echo_n "(cached) " >&6 |
a31bd8a4 | 18193 | else |
7d9455ce | 18194 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18195 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18196 | fi |
cd9a469c | 18197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 18198 | /* end confdefs.h. */ |
18199 | ||
7d9455ce | 18200 | #ifdef HAVE_COMPLEX_H |
18201 | #include <complex.h> | |
a31bd8a4 | 18202 | #endif |
7d9455ce | 18203 | #ifdef HAVE_MATH_H |
18204 | #include <math.h> | |
18205 | #endif | |
18206 | ||
18207 | int (*ptr)() = (int (*)())cargl; | |
18208 | ||
a31bd8a4 | 18209 | int |
18210 | main () | |
18211 | { | |
a31bd8a4 | 18212 | return 0; |
18213 | } | |
7d9455ce | 18214 | |
a31bd8a4 | 18215 | _ACEOF |
cd9a469c | 18216 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18217 | gcc_cv_math_func_cargl=yes |
a31bd8a4 | 18218 | else |
7d9455ce | 18219 | gcc_cv_math_func_cargl=no |
a31bd8a4 | 18220 | fi |
cd9a469c | 18221 | rm -f core conftest.err conftest.$ac_objext \ |
18222 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 18223 | fi |
7d9455ce | 18224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 |
18225 | $as_echo "$gcc_cv_math_func_cargl" >&6; } | |
18226 | if test $gcc_cv_math_func_cargl = yes; then | |
bd647a17 | 18227 | |
6affa8e1 | 18228 | cat >>confdefs.h <<_ACEOF |
18229 | #define HAVE_CARGL 1 | |
18230 | _ACEOF | |
7d9455ce | 18231 | |
18232 | fi | |
18233 | ||
a31bd8a4 | 18234 | |
a31bd8a4 | 18235 | |
a31bd8a4 | 18236 | |
7d9455ce | 18237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 |
18238 | $as_echo_n "checking for ceilf... " >&6; } | |
f00f02a3 | 18239 | if ${gcc_cv_math_func_ceilf+:} false; then : |
cd9a469c | 18240 | $as_echo_n "(cached) " >&6 |
97844b15 | 18241 | else |
7d9455ce | 18242 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18243 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18244 | fi |
cd9a469c | 18245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
97844b15 | 18246 | /* end confdefs.h. */ |
18247 | ||
7d9455ce | 18248 | #ifdef HAVE_COMPLEX_H |
18249 | #include <complex.h> | |
18250 | #endif | |
18251 | #ifdef HAVE_MATH_H | |
18252 | #include <math.h> | |
97844b15 | 18253 | #endif |
7d9455ce | 18254 | |
18255 | int (*ptr)() = (int (*)())ceilf; | |
18256 | ||
97844b15 | 18257 | int |
18258 | main () | |
18259 | { | |
97844b15 | 18260 | return 0; |
18261 | } | |
7d9455ce | 18262 | |
97844b15 | 18263 | _ACEOF |
cd9a469c | 18264 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18265 | gcc_cv_math_func_ceilf=yes |
97844b15 | 18266 | else |
7d9455ce | 18267 | gcc_cv_math_func_ceilf=no |
97844b15 | 18268 | fi |
cd9a469c | 18269 | rm -f core conftest.err conftest.$ac_objext \ |
18270 | conftest$ac_exeext conftest.$ac_ext | |
97844b15 | 18271 | fi |
7d9455ce | 18272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 |
18273 | $as_echo "$gcc_cv_math_func_ceilf" >&6; } | |
18274 | if test $gcc_cv_math_func_ceilf = yes; then | |
bd647a17 | 18275 | |
6affa8e1 | 18276 | cat >>confdefs.h <<_ACEOF |
18277 | #define HAVE_CEILF 1 | |
18278 | _ACEOF | |
7d9455ce | 18279 | |
18280 | fi | |
97844b15 | 18281 | |
97844b15 | 18282 | |
97844b15 | 18283 | |
7d9455ce | 18284 | |
18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 | |
18286 | $as_echo_n "checking for ceil... " >&6; } | |
f00f02a3 | 18287 | if ${gcc_cv_math_func_ceil+:} false; then : |
cd9a469c | 18288 | $as_echo_n "(cached) " >&6 |
4db2deda | 18289 | else |
7d9455ce | 18290 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18291 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18292 | fi |
cd9a469c | 18293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 18294 | /* end confdefs.h. */ |
18295 | ||
7d9455ce | 18296 | #ifdef HAVE_COMPLEX_H |
18297 | #include <complex.h> | |
4db2deda | 18298 | #endif |
7d9455ce | 18299 | #ifdef HAVE_MATH_H |
18300 | #include <math.h> | |
18301 | #endif | |
18302 | ||
18303 | int (*ptr)() = (int (*)())ceil; | |
18304 | ||
4db2deda | 18305 | int |
18306 | main () | |
18307 | { | |
4db2deda | 18308 | return 0; |
18309 | } | |
7d9455ce | 18310 | |
4db2deda | 18311 | _ACEOF |
cd9a469c | 18312 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18313 | gcc_cv_math_func_ceil=yes |
4db2deda | 18314 | else |
7d9455ce | 18315 | gcc_cv_math_func_ceil=no |
4db2deda | 18316 | fi |
cd9a469c | 18317 | rm -f core conftest.err conftest.$ac_objext \ |
18318 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 18319 | fi |
7d9455ce | 18320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 |
18321 | $as_echo "$gcc_cv_math_func_ceil" >&6; } | |
18322 | if test $gcc_cv_math_func_ceil = yes; then | |
bd647a17 | 18323 | |
6affa8e1 | 18324 | cat >>confdefs.h <<_ACEOF |
18325 | #define HAVE_CEIL 1 | |
18326 | _ACEOF | |
4db2deda | 18327 | |
7d9455ce | 18328 | fi |
4db2deda | 18329 | |
4db2deda | 18330 | |
7d9455ce | 18331 | |
18332 | ||
18333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 | |
18334 | $as_echo_n "checking for ceill... " >&6; } | |
f00f02a3 | 18335 | if ${gcc_cv_math_func_ceill+:} false; then : |
cd9a469c | 18336 | $as_echo_n "(cached) " >&6 |
4db2deda | 18337 | else |
7d9455ce | 18338 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18339 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18340 | fi |
cd9a469c | 18341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 18342 | /* end confdefs.h. */ |
18343 | ||
7d9455ce | 18344 | #ifdef HAVE_COMPLEX_H |
18345 | #include <complex.h> | |
18346 | #endif | |
18347 | #ifdef HAVE_MATH_H | |
18348 | #include <math.h> | |
4db2deda | 18349 | #endif |
7d9455ce | 18350 | |
18351 | int (*ptr)() = (int (*)())ceill; | |
18352 | ||
4db2deda | 18353 | int |
18354 | main () | |
18355 | { | |
4db2deda | 18356 | return 0; |
18357 | } | |
7d9455ce | 18358 | |
4db2deda | 18359 | _ACEOF |
cd9a469c | 18360 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18361 | gcc_cv_math_func_ceill=yes |
4db2deda | 18362 | else |
7d9455ce | 18363 | gcc_cv_math_func_ceill=no |
4db2deda | 18364 | fi |
cd9a469c | 18365 | rm -f core conftest.err conftest.$ac_objext \ |
18366 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 18367 | fi |
7d9455ce | 18368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 |
18369 | $as_echo "$gcc_cv_math_func_ceill" >&6; } | |
18370 | if test $gcc_cv_math_func_ceill = yes; then | |
bd647a17 | 18371 | |
6affa8e1 | 18372 | cat >>confdefs.h <<_ACEOF |
18373 | #define HAVE_CEILL 1 | |
18374 | _ACEOF | |
7d9455ce | 18375 | |
18376 | fi | |
4db2deda | 18377 | |
8f838781 | 18378 | |
8f838781 | 18379 | |
7d9455ce | 18380 | |
18381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 | |
18382 | $as_echo_n "checking for copysignf... " >&6; } | |
f00f02a3 | 18383 | if ${gcc_cv_math_func_copysignf+:} false; then : |
cd9a469c | 18384 | $as_echo_n "(cached) " >&6 |
8f838781 | 18385 | else |
7d9455ce | 18386 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18387 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18388 | fi |
cd9a469c | 18389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18390 | /* end confdefs.h. */ |
18391 | ||
7d9455ce | 18392 | #ifdef HAVE_COMPLEX_H |
18393 | #include <complex.h> | |
8f838781 | 18394 | #endif |
7d9455ce | 18395 | #ifdef HAVE_MATH_H |
18396 | #include <math.h> | |
18397 | #endif | |
18398 | ||
18399 | int (*ptr)() = (int (*)())copysignf; | |
18400 | ||
8f838781 | 18401 | int |
18402 | main () | |
18403 | { | |
8f838781 | 18404 | return 0; |
18405 | } | |
7d9455ce | 18406 | |
8f838781 | 18407 | _ACEOF |
cd9a469c | 18408 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18409 | gcc_cv_math_func_copysignf=yes |
8f838781 | 18410 | else |
7d9455ce | 18411 | gcc_cv_math_func_copysignf=no |
8f838781 | 18412 | fi |
cd9a469c | 18413 | rm -f core conftest.err conftest.$ac_objext \ |
18414 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18415 | fi |
7d9455ce | 18416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 |
18417 | $as_echo "$gcc_cv_math_func_copysignf" >&6; } | |
18418 | if test $gcc_cv_math_func_copysignf = yes; then | |
bd647a17 | 18419 | |
6affa8e1 | 18420 | cat >>confdefs.h <<_ACEOF |
18421 | #define HAVE_COPYSIGNF 1 | |
18422 | _ACEOF | |
7d9455ce | 18423 | |
18424 | fi | |
18425 | ||
8f838781 | 18426 | |
8f838781 | 18427 | |
8f838781 | 18428 | |
7d9455ce | 18429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 |
18430 | $as_echo_n "checking for copysign... " >&6; } | |
f00f02a3 | 18431 | if ${gcc_cv_math_func_copysign+:} false; then : |
cd9a469c | 18432 | $as_echo_n "(cached) " >&6 |
8f838781 | 18433 | else |
7d9455ce | 18434 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18435 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18436 | fi |
cd9a469c | 18437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18438 | /* end confdefs.h. */ |
18439 | ||
7d9455ce | 18440 | #ifdef HAVE_COMPLEX_H |
18441 | #include <complex.h> | |
18442 | #endif | |
18443 | #ifdef HAVE_MATH_H | |
18444 | #include <math.h> | |
8f838781 | 18445 | #endif |
7d9455ce | 18446 | |
18447 | int (*ptr)() = (int (*)())copysign; | |
18448 | ||
8f838781 | 18449 | int |
18450 | main () | |
18451 | { | |
8f838781 | 18452 | return 0; |
18453 | } | |
7d9455ce | 18454 | |
8f838781 | 18455 | _ACEOF |
cd9a469c | 18456 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18457 | gcc_cv_math_func_copysign=yes |
8f838781 | 18458 | else |
7d9455ce | 18459 | gcc_cv_math_func_copysign=no |
8f838781 | 18460 | fi |
cd9a469c | 18461 | rm -f core conftest.err conftest.$ac_objext \ |
18462 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18463 | fi |
7d9455ce | 18464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 |
18465 | $as_echo "$gcc_cv_math_func_copysign" >&6; } | |
18466 | if test $gcc_cv_math_func_copysign = yes; then | |
bd647a17 | 18467 | |
6affa8e1 | 18468 | cat >>confdefs.h <<_ACEOF |
18469 | #define HAVE_COPYSIGN 1 | |
18470 | _ACEOF | |
7d9455ce | 18471 | |
18472 | fi | |
8f838781 | 18473 | |
8f838781 | 18474 | |
8f838781 | 18475 | |
7d9455ce | 18476 | |
18477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 | |
18478 | $as_echo_n "checking for copysignl... " >&6; } | |
f00f02a3 | 18479 | if ${gcc_cv_math_func_copysignl+:} false; then : |
cd9a469c | 18480 | $as_echo_n "(cached) " >&6 |
8f838781 | 18481 | else |
7d9455ce | 18482 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18483 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18484 | fi |
cd9a469c | 18485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18486 | /* end confdefs.h. */ |
18487 | ||
7d9455ce | 18488 | #ifdef HAVE_COMPLEX_H |
18489 | #include <complex.h> | |
8f838781 | 18490 | #endif |
7d9455ce | 18491 | #ifdef HAVE_MATH_H |
18492 | #include <math.h> | |
18493 | #endif | |
18494 | ||
18495 | int (*ptr)() = (int (*)())copysignl; | |
18496 | ||
8f838781 | 18497 | int |
18498 | main () | |
18499 | { | |
cd9a469c | 18500 | return 0; |
18501 | } | |
7d9455ce | 18502 | |
cd9a469c | 18503 | _ACEOF |
18504 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 18505 | gcc_cv_math_func_copysignl=yes |
8f838781 | 18506 | else |
7d9455ce | 18507 | gcc_cv_math_func_copysignl=no |
8f838781 | 18508 | fi |
cd9a469c | 18509 | rm -f core conftest.err conftest.$ac_objext \ |
18510 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18511 | fi |
7d9455ce | 18512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 |
18513 | $as_echo "$gcc_cv_math_func_copysignl" >&6; } | |
18514 | if test $gcc_cv_math_func_copysignl = yes; then | |
bd647a17 | 18515 | |
6affa8e1 | 18516 | cat >>confdefs.h <<_ACEOF |
18517 | #define HAVE_COPYSIGNL 1 | |
18518 | _ACEOF | |
8f838781 | 18519 | |
7d9455ce | 18520 | fi |
4db2deda | 18521 | |
4db2deda | 18522 | |
7d9455ce | 18523 | |
18524 | ||
18525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 | |
18526 | $as_echo_n "checking for cosf... " >&6; } | |
f00f02a3 | 18527 | if ${gcc_cv_math_func_cosf+:} false; then : |
cd9a469c | 18528 | $as_echo_n "(cached) " >&6 |
50f0ca0a | 18529 | else |
7d9455ce | 18530 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18531 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18532 | fi |
cd9a469c | 18533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 18534 | /* end confdefs.h. */ |
18535 | ||
7d9455ce | 18536 | #ifdef HAVE_COMPLEX_H |
18537 | #include <complex.h> | |
18538 | #endif | |
18539 | #ifdef HAVE_MATH_H | |
18540 | #include <math.h> | |
50f0ca0a | 18541 | #endif |
7d9455ce | 18542 | |
18543 | int (*ptr)() = (int (*)())cosf; | |
18544 | ||
50f0ca0a | 18545 | int |
18546 | main () | |
18547 | { | |
50f0ca0a | 18548 | return 0; |
18549 | } | |
7d9455ce | 18550 | |
50f0ca0a | 18551 | _ACEOF |
cd9a469c | 18552 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18553 | gcc_cv_math_func_cosf=yes |
50f0ca0a | 18554 | else |
7d9455ce | 18555 | gcc_cv_math_func_cosf=no |
50f0ca0a | 18556 | fi |
cd9a469c | 18557 | rm -f core conftest.err conftest.$ac_objext \ |
18558 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 18559 | fi |
7d9455ce | 18560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 |
18561 | $as_echo "$gcc_cv_math_func_cosf" >&6; } | |
18562 | if test $gcc_cv_math_func_cosf = yes; then | |
bd647a17 | 18563 | |
6affa8e1 | 18564 | cat >>confdefs.h <<_ACEOF |
18565 | #define HAVE_COSF 1 | |
18566 | _ACEOF | |
7d9455ce | 18567 | |
18568 | fi | |
50f0ca0a | 18569 | |
d213114b | 18570 | |
d213114b | 18571 | |
7d9455ce | 18572 | |
18573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 | |
18574 | $as_echo_n "checking for cos... " >&6; } | |
f00f02a3 | 18575 | if ${gcc_cv_math_func_cos+:} false; then : |
cd9a469c | 18576 | $as_echo_n "(cached) " >&6 |
d213114b | 18577 | else |
7d9455ce | 18578 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18579 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18580 | fi |
cd9a469c | 18581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18582 | /* end confdefs.h. */ |
18583 | ||
7d9455ce | 18584 | #ifdef HAVE_COMPLEX_H |
18585 | #include <complex.h> | |
d213114b | 18586 | #endif |
7d9455ce | 18587 | #ifdef HAVE_MATH_H |
18588 | #include <math.h> | |
18589 | #endif | |
18590 | ||
18591 | int (*ptr)() = (int (*)())cos; | |
18592 | ||
d213114b | 18593 | int |
18594 | main () | |
18595 | { | |
d213114b | 18596 | return 0; |
18597 | } | |
7d9455ce | 18598 | |
d213114b | 18599 | _ACEOF |
cd9a469c | 18600 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18601 | gcc_cv_math_func_cos=yes |
d213114b | 18602 | else |
7d9455ce | 18603 | gcc_cv_math_func_cos=no |
d213114b | 18604 | fi |
cd9a469c | 18605 | rm -f core conftest.err conftest.$ac_objext \ |
18606 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18607 | fi |
7d9455ce | 18608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 |
18609 | $as_echo "$gcc_cv_math_func_cos" >&6; } | |
18610 | if test $gcc_cv_math_func_cos = yes; then | |
bd647a17 | 18611 | |
6affa8e1 | 18612 | cat >>confdefs.h <<_ACEOF |
18613 | #define HAVE_COS 1 | |
18614 | _ACEOF | |
7d9455ce | 18615 | |
18616 | fi | |
18617 | ||
d213114b | 18618 | |
d213114b | 18619 | |
d213114b | 18620 | |
7d9455ce | 18621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 |
18622 | $as_echo_n "checking for cosl... " >&6; } | |
f00f02a3 | 18623 | if ${gcc_cv_math_func_cosl+:} false; then : |
cd9a469c | 18624 | $as_echo_n "(cached) " >&6 |
d213114b | 18625 | else |
7d9455ce | 18626 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18627 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18628 | fi |
cd9a469c | 18629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18630 | /* end confdefs.h. */ |
18631 | ||
7d9455ce | 18632 | #ifdef HAVE_COMPLEX_H |
18633 | #include <complex.h> | |
18634 | #endif | |
18635 | #ifdef HAVE_MATH_H | |
18636 | #include <math.h> | |
d213114b | 18637 | #endif |
7d9455ce | 18638 | |
18639 | int (*ptr)() = (int (*)())cosl; | |
18640 | ||
d213114b | 18641 | int |
18642 | main () | |
18643 | { | |
d213114b | 18644 | return 0; |
18645 | } | |
7d9455ce | 18646 | |
d213114b | 18647 | _ACEOF |
cd9a469c | 18648 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18649 | gcc_cv_math_func_cosl=yes |
d213114b | 18650 | else |
7d9455ce | 18651 | gcc_cv_math_func_cosl=no |
d213114b | 18652 | fi |
cd9a469c | 18653 | rm -f core conftest.err conftest.$ac_objext \ |
18654 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18655 | fi |
7d9455ce | 18656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 |
18657 | $as_echo "$gcc_cv_math_func_cosl" >&6; } | |
18658 | if test $gcc_cv_math_func_cosl = yes; then | |
bd647a17 | 18659 | |
6affa8e1 | 18660 | cat >>confdefs.h <<_ACEOF |
18661 | #define HAVE_COSL 1 | |
18662 | _ACEOF | |
7d9455ce | 18663 | |
18664 | fi | |
d213114b | 18665 | |
d213114b | 18666 | |
d213114b | 18667 | |
7d9455ce | 18668 | |
18669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 | |
18670 | $as_echo_n "checking for ccosf... " >&6; } | |
f00f02a3 | 18671 | if ${gcc_cv_math_func_ccosf+:} false; then : |
cd9a469c | 18672 | $as_echo_n "(cached) " >&6 |
d213114b | 18673 | else |
7d9455ce | 18674 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18675 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18676 | fi |
cd9a469c | 18677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18678 | /* end confdefs.h. */ |
18679 | ||
7d9455ce | 18680 | #ifdef HAVE_COMPLEX_H |
18681 | #include <complex.h> | |
d213114b | 18682 | #endif |
7d9455ce | 18683 | #ifdef HAVE_MATH_H |
18684 | #include <math.h> | |
18685 | #endif | |
18686 | ||
18687 | int (*ptr)() = (int (*)())ccosf; | |
18688 | ||
d213114b | 18689 | int |
18690 | main () | |
18691 | { | |
d213114b | 18692 | return 0; |
18693 | } | |
7d9455ce | 18694 | |
d213114b | 18695 | _ACEOF |
cd9a469c | 18696 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18697 | gcc_cv_math_func_ccosf=yes |
d213114b | 18698 | else |
7d9455ce | 18699 | gcc_cv_math_func_ccosf=no |
d213114b | 18700 | fi |
cd9a469c | 18701 | rm -f core conftest.err conftest.$ac_objext \ |
18702 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18703 | fi |
7d9455ce | 18704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 |
18705 | $as_echo "$gcc_cv_math_func_ccosf" >&6; } | |
18706 | if test $gcc_cv_math_func_ccosf = yes; then | |
bd647a17 | 18707 | |
6affa8e1 | 18708 | cat >>confdefs.h <<_ACEOF |
18709 | #define HAVE_CCOSF 1 | |
18710 | _ACEOF | |
d213114b | 18711 | |
7d9455ce | 18712 | fi |
d213114b | 18713 | |
d213114b | 18714 | |
7d9455ce | 18715 | |
18716 | ||
18717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 | |
18718 | $as_echo_n "checking for ccos... " >&6; } | |
f00f02a3 | 18719 | if ${gcc_cv_math_func_ccos+:} false; then : |
cd9a469c | 18720 | $as_echo_n "(cached) " >&6 |
d213114b | 18721 | else |
7d9455ce | 18722 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18723 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18724 | fi |
cd9a469c | 18725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18726 | /* end confdefs.h. */ |
18727 | ||
7d9455ce | 18728 | #ifdef HAVE_COMPLEX_H |
18729 | #include <complex.h> | |
18730 | #endif | |
18731 | #ifdef HAVE_MATH_H | |
18732 | #include <math.h> | |
d213114b | 18733 | #endif |
7d9455ce | 18734 | |
18735 | int (*ptr)() = (int (*)())ccos; | |
18736 | ||
d213114b | 18737 | int |
18738 | main () | |
18739 | { | |
d213114b | 18740 | return 0; |
18741 | } | |
7d9455ce | 18742 | |
d213114b | 18743 | _ACEOF |
cd9a469c | 18744 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18745 | gcc_cv_math_func_ccos=yes |
d213114b | 18746 | else |
7d9455ce | 18747 | gcc_cv_math_func_ccos=no |
d213114b | 18748 | fi |
cd9a469c | 18749 | rm -f core conftest.err conftest.$ac_objext \ |
18750 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18751 | fi |
7d9455ce | 18752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 |
18753 | $as_echo "$gcc_cv_math_func_ccos" >&6; } | |
18754 | if test $gcc_cv_math_func_ccos = yes; then | |
bd647a17 | 18755 | |
6affa8e1 | 18756 | cat >>confdefs.h <<_ACEOF |
18757 | #define HAVE_CCOS 1 | |
18758 | _ACEOF | |
7d9455ce | 18759 | |
18760 | fi | |
d213114b | 18761 | |
d213114b | 18762 | |
d213114b | 18763 | |
7d9455ce | 18764 | |
18765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 | |
18766 | $as_echo_n "checking for ccosl... " >&6; } | |
f00f02a3 | 18767 | if ${gcc_cv_math_func_ccosl+:} false; then : |
cd9a469c | 18768 | $as_echo_n "(cached) " >&6 |
d213114b | 18769 | else |
7d9455ce | 18770 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18771 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18772 | fi |
cd9a469c | 18773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18774 | /* end confdefs.h. */ |
18775 | ||
7d9455ce | 18776 | #ifdef HAVE_COMPLEX_H |
18777 | #include <complex.h> | |
d213114b | 18778 | #endif |
7d9455ce | 18779 | #ifdef HAVE_MATH_H |
18780 | #include <math.h> | |
18781 | #endif | |
18782 | ||
18783 | int (*ptr)() = (int (*)())ccosl; | |
18784 | ||
d213114b | 18785 | int |
18786 | main () | |
18787 | { | |
d213114b | 18788 | return 0; |
18789 | } | |
7d9455ce | 18790 | |
d213114b | 18791 | _ACEOF |
cd9a469c | 18792 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18793 | gcc_cv_math_func_ccosl=yes |
d213114b | 18794 | else |
7d9455ce | 18795 | gcc_cv_math_func_ccosl=no |
d213114b | 18796 | fi |
cd9a469c | 18797 | rm -f core conftest.err conftest.$ac_objext \ |
18798 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18799 | fi |
7d9455ce | 18800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 |
18801 | $as_echo "$gcc_cv_math_func_ccosl" >&6; } | |
18802 | if test $gcc_cv_math_func_ccosl = yes; then | |
bd647a17 | 18803 | |
6affa8e1 | 18804 | cat >>confdefs.h <<_ACEOF |
18805 | #define HAVE_CCOSL 1 | |
18806 | _ACEOF | |
7d9455ce | 18807 | |
18808 | fi | |
18809 | ||
d213114b | 18810 | |
d213114b | 18811 | |
d213114b | 18812 | |
7d9455ce | 18813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 |
18814 | $as_echo_n "checking for coshf... " >&6; } | |
f00f02a3 | 18815 | if ${gcc_cv_math_func_coshf+:} false; then : |
cd9a469c | 18816 | $as_echo_n "(cached) " >&6 |
d213114b | 18817 | else |
7d9455ce | 18818 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18819 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18820 | fi |
cd9a469c | 18821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18822 | /* end confdefs.h. */ |
18823 | ||
7d9455ce | 18824 | #ifdef HAVE_COMPLEX_H |
18825 | #include <complex.h> | |
18826 | #endif | |
18827 | #ifdef HAVE_MATH_H | |
18828 | #include <math.h> | |
d213114b | 18829 | #endif |
7d9455ce | 18830 | |
18831 | int (*ptr)() = (int (*)())coshf; | |
18832 | ||
d213114b | 18833 | int |
18834 | main () | |
18835 | { | |
d213114b | 18836 | return 0; |
18837 | } | |
7d9455ce | 18838 | |
d213114b | 18839 | _ACEOF |
cd9a469c | 18840 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18841 | gcc_cv_math_func_coshf=yes |
d213114b | 18842 | else |
7d9455ce | 18843 | gcc_cv_math_func_coshf=no |
d213114b | 18844 | fi |
cd9a469c | 18845 | rm -f core conftest.err conftest.$ac_objext \ |
18846 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18847 | fi |
7d9455ce | 18848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 |
18849 | $as_echo "$gcc_cv_math_func_coshf" >&6; } | |
18850 | if test $gcc_cv_math_func_coshf = yes; then | |
bd647a17 | 18851 | |
6affa8e1 | 18852 | cat >>confdefs.h <<_ACEOF |
18853 | #define HAVE_COSHF 1 | |
18854 | _ACEOF | |
7d9455ce | 18855 | |
18856 | fi | |
d213114b | 18857 | |
d213114b | 18858 | |
d213114b | 18859 | |
7d9455ce | 18860 | |
18861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 | |
18862 | $as_echo_n "checking for cosh... " >&6; } | |
f00f02a3 | 18863 | if ${gcc_cv_math_func_cosh+:} false; then : |
cd9a469c | 18864 | $as_echo_n "(cached) " >&6 |
d213114b | 18865 | else |
7d9455ce | 18866 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18867 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18868 | fi |
cd9a469c | 18869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18870 | /* end confdefs.h. */ |
18871 | ||
7d9455ce | 18872 | #ifdef HAVE_COMPLEX_H |
18873 | #include <complex.h> | |
d213114b | 18874 | #endif |
7d9455ce | 18875 | #ifdef HAVE_MATH_H |
18876 | #include <math.h> | |
18877 | #endif | |
18878 | ||
18879 | int (*ptr)() = (int (*)())cosh; | |
18880 | ||
d213114b | 18881 | int |
18882 | main () | |
18883 | { | |
d213114b | 18884 | return 0; |
18885 | } | |
7d9455ce | 18886 | |
d213114b | 18887 | _ACEOF |
cd9a469c | 18888 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18889 | gcc_cv_math_func_cosh=yes |
d213114b | 18890 | else |
7d9455ce | 18891 | gcc_cv_math_func_cosh=no |
d213114b | 18892 | fi |
cd9a469c | 18893 | rm -f core conftest.err conftest.$ac_objext \ |
18894 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18895 | fi |
7d9455ce | 18896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 |
18897 | $as_echo "$gcc_cv_math_func_cosh" >&6; } | |
18898 | if test $gcc_cv_math_func_cosh = yes; then | |
bd647a17 | 18899 | |
6affa8e1 | 18900 | cat >>confdefs.h <<_ACEOF |
18901 | #define HAVE_COSH 1 | |
18902 | _ACEOF | |
d213114b | 18903 | |
7d9455ce | 18904 | fi |
d213114b | 18905 | |
d213114b | 18906 | |
7d9455ce | 18907 | |
18908 | ||
18909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 | |
18910 | $as_echo_n "checking for coshl... " >&6; } | |
f00f02a3 | 18911 | if ${gcc_cv_math_func_coshl+:} false; then : |
cd9a469c | 18912 | $as_echo_n "(cached) " >&6 |
d213114b | 18913 | else |
7d9455ce | 18914 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18915 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18916 | fi |
cd9a469c | 18917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18918 | /* end confdefs.h. */ |
18919 | ||
7d9455ce | 18920 | #ifdef HAVE_COMPLEX_H |
18921 | #include <complex.h> | |
18922 | #endif | |
18923 | #ifdef HAVE_MATH_H | |
18924 | #include <math.h> | |
d213114b | 18925 | #endif |
7d9455ce | 18926 | |
18927 | int (*ptr)() = (int (*)())coshl; | |
18928 | ||
d213114b | 18929 | int |
18930 | main () | |
18931 | { | |
d213114b | 18932 | return 0; |
18933 | } | |
7d9455ce | 18934 | |
d213114b | 18935 | _ACEOF |
cd9a469c | 18936 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18937 | gcc_cv_math_func_coshl=yes |
d213114b | 18938 | else |
7d9455ce | 18939 | gcc_cv_math_func_coshl=no |
d213114b | 18940 | fi |
cd9a469c | 18941 | rm -f core conftest.err conftest.$ac_objext \ |
18942 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18943 | fi |
7d9455ce | 18944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 |
18945 | $as_echo "$gcc_cv_math_func_coshl" >&6; } | |
18946 | if test $gcc_cv_math_func_coshl = yes; then | |
bd647a17 | 18947 | |
6affa8e1 | 18948 | cat >>confdefs.h <<_ACEOF |
18949 | #define HAVE_COSHL 1 | |
18950 | _ACEOF | |
7d9455ce | 18951 | |
18952 | fi | |
d213114b | 18953 | |
d213114b | 18954 | |
d213114b | 18955 | |
7d9455ce | 18956 | |
18957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 | |
18958 | $as_echo_n "checking for ccoshf... " >&6; } | |
f00f02a3 | 18959 | if ${gcc_cv_math_func_ccoshf+:} false; then : |
cd9a469c | 18960 | $as_echo_n "(cached) " >&6 |
d213114b | 18961 | else |
7d9455ce | 18962 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 18963 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18964 | fi |
cd9a469c | 18965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18966 | /* end confdefs.h. */ |
18967 | ||
7d9455ce | 18968 | #ifdef HAVE_COMPLEX_H |
18969 | #include <complex.h> | |
d213114b | 18970 | #endif |
7d9455ce | 18971 | #ifdef HAVE_MATH_H |
18972 | #include <math.h> | |
18973 | #endif | |
18974 | ||
18975 | int (*ptr)() = (int (*)())ccoshf; | |
18976 | ||
d213114b | 18977 | int |
18978 | main () | |
18979 | { | |
d213114b | 18980 | return 0; |
18981 | } | |
7d9455ce | 18982 | |
d213114b | 18983 | _ACEOF |
cd9a469c | 18984 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 18985 | gcc_cv_math_func_ccoshf=yes |
d213114b | 18986 | else |
7d9455ce | 18987 | gcc_cv_math_func_ccoshf=no |
d213114b | 18988 | fi |
cd9a469c | 18989 | rm -f core conftest.err conftest.$ac_objext \ |
18990 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18991 | fi |
7d9455ce | 18992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 |
18993 | $as_echo "$gcc_cv_math_func_ccoshf" >&6; } | |
18994 | if test $gcc_cv_math_func_ccoshf = yes; then | |
bd647a17 | 18995 | |
6affa8e1 | 18996 | cat >>confdefs.h <<_ACEOF |
18997 | #define HAVE_CCOSHF 1 | |
18998 | _ACEOF | |
7d9455ce | 18999 | |
19000 | fi | |
19001 | ||
d213114b | 19002 | |
d213114b | 19003 | |
d213114b | 19004 | |
7d9455ce | 19005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 |
19006 | $as_echo_n "checking for ccosh... " >&6; } | |
f00f02a3 | 19007 | if ${gcc_cv_math_func_ccosh+:} false; then : |
cd9a469c | 19008 | $as_echo_n "(cached) " >&6 |
d213114b | 19009 | else |
7d9455ce | 19010 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19011 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19012 | fi |
cd9a469c | 19013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19014 | /* end confdefs.h. */ |
19015 | ||
7d9455ce | 19016 | #ifdef HAVE_COMPLEX_H |
19017 | #include <complex.h> | |
19018 | #endif | |
19019 | #ifdef HAVE_MATH_H | |
19020 | #include <math.h> | |
d213114b | 19021 | #endif |
7d9455ce | 19022 | |
19023 | int (*ptr)() = (int (*)())ccosh; | |
19024 | ||
d213114b | 19025 | int |
19026 | main () | |
19027 | { | |
d213114b | 19028 | return 0; |
19029 | } | |
7d9455ce | 19030 | |
d213114b | 19031 | _ACEOF |
cd9a469c | 19032 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19033 | gcc_cv_math_func_ccosh=yes |
d213114b | 19034 | else |
7d9455ce | 19035 | gcc_cv_math_func_ccosh=no |
d213114b | 19036 | fi |
cd9a469c | 19037 | rm -f core conftest.err conftest.$ac_objext \ |
19038 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19039 | fi |
7d9455ce | 19040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 |
19041 | $as_echo "$gcc_cv_math_func_ccosh" >&6; } | |
19042 | if test $gcc_cv_math_func_ccosh = yes; then | |
bd647a17 | 19043 | |
6affa8e1 | 19044 | cat >>confdefs.h <<_ACEOF |
19045 | #define HAVE_CCOSH 1 | |
19046 | _ACEOF | |
7d9455ce | 19047 | |
19048 | fi | |
d213114b | 19049 | |
d213114b | 19050 | |
d213114b | 19051 | |
7d9455ce | 19052 | |
19053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 | |
19054 | $as_echo_n "checking for ccoshl... " >&6; } | |
f00f02a3 | 19055 | if ${gcc_cv_math_func_ccoshl+:} false; then : |
cd9a469c | 19056 | $as_echo_n "(cached) " >&6 |
d213114b | 19057 | else |
7d9455ce | 19058 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19059 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19060 | fi |
cd9a469c | 19061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19062 | /* end confdefs.h. */ |
19063 | ||
7d9455ce | 19064 | #ifdef HAVE_COMPLEX_H |
19065 | #include <complex.h> | |
d213114b | 19066 | #endif |
7d9455ce | 19067 | #ifdef HAVE_MATH_H |
19068 | #include <math.h> | |
19069 | #endif | |
19070 | ||
19071 | int (*ptr)() = (int (*)())ccoshl; | |
19072 | ||
d213114b | 19073 | int |
19074 | main () | |
19075 | { | |
d213114b | 19076 | return 0; |
19077 | } | |
7d9455ce | 19078 | |
d213114b | 19079 | _ACEOF |
cd9a469c | 19080 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19081 | gcc_cv_math_func_ccoshl=yes |
d213114b | 19082 | else |
7d9455ce | 19083 | gcc_cv_math_func_ccoshl=no |
d213114b | 19084 | fi |
cd9a469c | 19085 | rm -f core conftest.err conftest.$ac_objext \ |
19086 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19087 | fi |
7d9455ce | 19088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 |
19089 | $as_echo "$gcc_cv_math_func_ccoshl" >&6; } | |
19090 | if test $gcc_cv_math_func_ccoshl = yes; then | |
bd647a17 | 19091 | |
6affa8e1 | 19092 | cat >>confdefs.h <<_ACEOF |
19093 | #define HAVE_CCOSHL 1 | |
19094 | _ACEOF | |
d213114b | 19095 | |
7d9455ce | 19096 | fi |
d213114b | 19097 | |
d213114b | 19098 | |
7d9455ce | 19099 | |
19100 | ||
19101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 | |
19102 | $as_echo_n "checking for expf... " >&6; } | |
f00f02a3 | 19103 | if ${gcc_cv_math_func_expf+:} false; then : |
cd9a469c | 19104 | $as_echo_n "(cached) " >&6 |
d213114b | 19105 | else |
7d9455ce | 19106 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19107 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19108 | fi |
cd9a469c | 19109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19110 | /* end confdefs.h. */ |
19111 | ||
7d9455ce | 19112 | #ifdef HAVE_COMPLEX_H |
19113 | #include <complex.h> | |
19114 | #endif | |
19115 | #ifdef HAVE_MATH_H | |
19116 | #include <math.h> | |
d213114b | 19117 | #endif |
7d9455ce | 19118 | |
19119 | int (*ptr)() = (int (*)())expf; | |
19120 | ||
d213114b | 19121 | int |
19122 | main () | |
19123 | { | |
d213114b | 19124 | return 0; |
19125 | } | |
7d9455ce | 19126 | |
d213114b | 19127 | _ACEOF |
cd9a469c | 19128 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19129 | gcc_cv_math_func_expf=yes |
d213114b | 19130 | else |
7d9455ce | 19131 | gcc_cv_math_func_expf=no |
d213114b | 19132 | fi |
cd9a469c | 19133 | rm -f core conftest.err conftest.$ac_objext \ |
19134 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19135 | fi |
7d9455ce | 19136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 |
19137 | $as_echo "$gcc_cv_math_func_expf" >&6; } | |
19138 | if test $gcc_cv_math_func_expf = yes; then | |
bd647a17 | 19139 | |
6affa8e1 | 19140 | cat >>confdefs.h <<_ACEOF |
19141 | #define HAVE_EXPF 1 | |
19142 | _ACEOF | |
7d9455ce | 19143 | |
19144 | fi | |
d213114b | 19145 | |
d213114b | 19146 | |
d213114b | 19147 | |
7d9455ce | 19148 | |
19149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 | |
19150 | $as_echo_n "checking for exp... " >&6; } | |
f00f02a3 | 19151 | if ${gcc_cv_math_func_exp+:} false; then : |
cd9a469c | 19152 | $as_echo_n "(cached) " >&6 |
d213114b | 19153 | else |
7d9455ce | 19154 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19155 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19156 | fi |
cd9a469c | 19157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19158 | /* end confdefs.h. */ |
19159 | ||
7d9455ce | 19160 | #ifdef HAVE_COMPLEX_H |
19161 | #include <complex.h> | |
d213114b | 19162 | #endif |
7d9455ce | 19163 | #ifdef HAVE_MATH_H |
19164 | #include <math.h> | |
19165 | #endif | |
19166 | ||
19167 | int (*ptr)() = (int (*)())exp; | |
19168 | ||
d213114b | 19169 | int |
19170 | main () | |
19171 | { | |
d213114b | 19172 | return 0; |
19173 | } | |
7d9455ce | 19174 | |
d213114b | 19175 | _ACEOF |
cd9a469c | 19176 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19177 | gcc_cv_math_func_exp=yes |
d213114b | 19178 | else |
7d9455ce | 19179 | gcc_cv_math_func_exp=no |
d213114b | 19180 | fi |
cd9a469c | 19181 | rm -f core conftest.err conftest.$ac_objext \ |
19182 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19183 | fi |
7d9455ce | 19184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 |
19185 | $as_echo "$gcc_cv_math_func_exp" >&6; } | |
19186 | if test $gcc_cv_math_func_exp = yes; then | |
bd647a17 | 19187 | |
6affa8e1 | 19188 | cat >>confdefs.h <<_ACEOF |
19189 | #define HAVE_EXP 1 | |
19190 | _ACEOF | |
7d9455ce | 19191 | |
19192 | fi | |
19193 | ||
d213114b | 19194 | |
d213114b | 19195 | |
d213114b | 19196 | |
7d9455ce | 19197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 |
19198 | $as_echo_n "checking for expl... " >&6; } | |
f00f02a3 | 19199 | if ${gcc_cv_math_func_expl+:} false; then : |
cd9a469c | 19200 | $as_echo_n "(cached) " >&6 |
d213114b | 19201 | else |
7d9455ce | 19202 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19203 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19204 | fi |
cd9a469c | 19205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19206 | /* end confdefs.h. */ |
19207 | ||
7d9455ce | 19208 | #ifdef HAVE_COMPLEX_H |
19209 | #include <complex.h> | |
19210 | #endif | |
19211 | #ifdef HAVE_MATH_H | |
19212 | #include <math.h> | |
d213114b | 19213 | #endif |
7d9455ce | 19214 | |
19215 | int (*ptr)() = (int (*)())expl; | |
19216 | ||
d213114b | 19217 | int |
19218 | main () | |
19219 | { | |
d213114b | 19220 | return 0; |
19221 | } | |
7d9455ce | 19222 | |
d213114b | 19223 | _ACEOF |
cd9a469c | 19224 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19225 | gcc_cv_math_func_expl=yes |
d213114b | 19226 | else |
7d9455ce | 19227 | gcc_cv_math_func_expl=no |
d213114b | 19228 | fi |
cd9a469c | 19229 | rm -f core conftest.err conftest.$ac_objext \ |
19230 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19231 | fi |
7d9455ce | 19232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 |
19233 | $as_echo "$gcc_cv_math_func_expl" >&6; } | |
19234 | if test $gcc_cv_math_func_expl = yes; then | |
bd647a17 | 19235 | |
6affa8e1 | 19236 | cat >>confdefs.h <<_ACEOF |
19237 | #define HAVE_EXPL 1 | |
19238 | _ACEOF | |
7d9455ce | 19239 | |
19240 | fi | |
d213114b | 19241 | |
d213114b | 19242 | |
d213114b | 19243 | |
7d9455ce | 19244 | |
19245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 | |
19246 | $as_echo_n "checking for cexpf... " >&6; } | |
f00f02a3 | 19247 | if ${gcc_cv_math_func_cexpf+:} false; then : |
cd9a469c | 19248 | $as_echo_n "(cached) " >&6 |
d213114b | 19249 | else |
7d9455ce | 19250 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19251 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19252 | fi |
cd9a469c | 19253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19254 | /* end confdefs.h. */ |
19255 | ||
7d9455ce | 19256 | #ifdef HAVE_COMPLEX_H |
19257 | #include <complex.h> | |
d213114b | 19258 | #endif |
7d9455ce | 19259 | #ifdef HAVE_MATH_H |
19260 | #include <math.h> | |
19261 | #endif | |
19262 | ||
19263 | int (*ptr)() = (int (*)())cexpf; | |
19264 | ||
d213114b | 19265 | int |
19266 | main () | |
19267 | { | |
d213114b | 19268 | return 0; |
19269 | } | |
7d9455ce | 19270 | |
d213114b | 19271 | _ACEOF |
cd9a469c | 19272 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19273 | gcc_cv_math_func_cexpf=yes |
d213114b | 19274 | else |
7d9455ce | 19275 | gcc_cv_math_func_cexpf=no |
d213114b | 19276 | fi |
cd9a469c | 19277 | rm -f core conftest.err conftest.$ac_objext \ |
19278 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19279 | fi |
7d9455ce | 19280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 |
19281 | $as_echo "$gcc_cv_math_func_cexpf" >&6; } | |
19282 | if test $gcc_cv_math_func_cexpf = yes; then | |
bd647a17 | 19283 | |
6affa8e1 | 19284 | cat >>confdefs.h <<_ACEOF |
19285 | #define HAVE_CEXPF 1 | |
19286 | _ACEOF | |
d213114b | 19287 | |
7d9455ce | 19288 | fi |
d213114b | 19289 | |
d213114b | 19290 | |
7d9455ce | 19291 | |
19292 | ||
19293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 | |
19294 | $as_echo_n "checking for cexp... " >&6; } | |
f00f02a3 | 19295 | if ${gcc_cv_math_func_cexp+:} false; then : |
cd9a469c | 19296 | $as_echo_n "(cached) " >&6 |
d213114b | 19297 | else |
7d9455ce | 19298 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19299 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19300 | fi |
cd9a469c | 19301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19302 | /* end confdefs.h. */ |
19303 | ||
7d9455ce | 19304 | #ifdef HAVE_COMPLEX_H |
19305 | #include <complex.h> | |
19306 | #endif | |
19307 | #ifdef HAVE_MATH_H | |
19308 | #include <math.h> | |
d213114b | 19309 | #endif |
7d9455ce | 19310 | |
19311 | int (*ptr)() = (int (*)())cexp; | |
19312 | ||
d213114b | 19313 | int |
19314 | main () | |
19315 | { | |
d213114b | 19316 | return 0; |
19317 | } | |
7d9455ce | 19318 | |
d213114b | 19319 | _ACEOF |
cd9a469c | 19320 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19321 | gcc_cv_math_func_cexp=yes |
d213114b | 19322 | else |
7d9455ce | 19323 | gcc_cv_math_func_cexp=no |
d213114b | 19324 | fi |
cd9a469c | 19325 | rm -f core conftest.err conftest.$ac_objext \ |
19326 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19327 | fi |
7d9455ce | 19328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 |
19329 | $as_echo "$gcc_cv_math_func_cexp" >&6; } | |
19330 | if test $gcc_cv_math_func_cexp = yes; then | |
bd647a17 | 19331 | |
6affa8e1 | 19332 | cat >>confdefs.h <<_ACEOF |
19333 | #define HAVE_CEXP 1 | |
19334 | _ACEOF | |
7d9455ce | 19335 | |
19336 | fi | |
d213114b | 19337 | |
d213114b | 19338 | |
d213114b | 19339 | |
7d9455ce | 19340 | |
19341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 | |
19342 | $as_echo_n "checking for cexpl... " >&6; } | |
f00f02a3 | 19343 | if ${gcc_cv_math_func_cexpl+:} false; then : |
cd9a469c | 19344 | $as_echo_n "(cached) " >&6 |
d213114b | 19345 | else |
7d9455ce | 19346 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19347 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19348 | fi |
cd9a469c | 19349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19350 | /* end confdefs.h. */ |
19351 | ||
7d9455ce | 19352 | #ifdef HAVE_COMPLEX_H |
19353 | #include <complex.h> | |
d213114b | 19354 | #endif |
7d9455ce | 19355 | #ifdef HAVE_MATH_H |
19356 | #include <math.h> | |
19357 | #endif | |
19358 | ||
19359 | int (*ptr)() = (int (*)())cexpl; | |
19360 | ||
d213114b | 19361 | int |
19362 | main () | |
19363 | { | |
d213114b | 19364 | return 0; |
19365 | } | |
7d9455ce | 19366 | |
d213114b | 19367 | _ACEOF |
cd9a469c | 19368 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19369 | gcc_cv_math_func_cexpl=yes |
d213114b | 19370 | else |
7d9455ce | 19371 | gcc_cv_math_func_cexpl=no |
d213114b | 19372 | fi |
cd9a469c | 19373 | rm -f core conftest.err conftest.$ac_objext \ |
19374 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19375 | fi |
7d9455ce | 19376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 |
19377 | $as_echo "$gcc_cv_math_func_cexpl" >&6; } | |
19378 | if test $gcc_cv_math_func_cexpl = yes; then | |
bd647a17 | 19379 | |
6affa8e1 | 19380 | cat >>confdefs.h <<_ACEOF |
19381 | #define HAVE_CEXPL 1 | |
19382 | _ACEOF | |
7d9455ce | 19383 | |
19384 | fi | |
19385 | ||
d213114b | 19386 | |
d213114b | 19387 | |
d213114b | 19388 | |
7d9455ce | 19389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 |
19390 | $as_echo_n "checking for fabsf... " >&6; } | |
f00f02a3 | 19391 | if ${gcc_cv_math_func_fabsf+:} false; then : |
cd9a469c | 19392 | $as_echo_n "(cached) " >&6 |
d213114b | 19393 | else |
7d9455ce | 19394 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19395 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19396 | fi |
cd9a469c | 19397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19398 | /* end confdefs.h. */ |
19399 | ||
7d9455ce | 19400 | #ifdef HAVE_COMPLEX_H |
19401 | #include <complex.h> | |
19402 | #endif | |
19403 | #ifdef HAVE_MATH_H | |
19404 | #include <math.h> | |
d213114b | 19405 | #endif |
7d9455ce | 19406 | |
19407 | int (*ptr)() = (int (*)())fabsf; | |
19408 | ||
d213114b | 19409 | int |
19410 | main () | |
19411 | { | |
d213114b | 19412 | return 0; |
19413 | } | |
7d9455ce | 19414 | |
d213114b | 19415 | _ACEOF |
cd9a469c | 19416 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19417 | gcc_cv_math_func_fabsf=yes |
d213114b | 19418 | else |
7d9455ce | 19419 | gcc_cv_math_func_fabsf=no |
d213114b | 19420 | fi |
cd9a469c | 19421 | rm -f core conftest.err conftest.$ac_objext \ |
19422 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19423 | fi |
7d9455ce | 19424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 |
19425 | $as_echo "$gcc_cv_math_func_fabsf" >&6; } | |
19426 | if test $gcc_cv_math_func_fabsf = yes; then | |
bd647a17 | 19427 | |
6affa8e1 | 19428 | cat >>confdefs.h <<_ACEOF |
19429 | #define HAVE_FABSF 1 | |
19430 | _ACEOF | |
7d9455ce | 19431 | |
19432 | fi | |
d213114b | 19433 | |
d213114b | 19434 | |
d213114b | 19435 | |
7d9455ce | 19436 | |
19437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 | |
19438 | $as_echo_n "checking for fabs... " >&6; } | |
f00f02a3 | 19439 | if ${gcc_cv_math_func_fabs+:} false; then : |
cd9a469c | 19440 | $as_echo_n "(cached) " >&6 |
d213114b | 19441 | else |
7d9455ce | 19442 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19443 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19444 | fi |
cd9a469c | 19445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19446 | /* end confdefs.h. */ |
19447 | ||
7d9455ce | 19448 | #ifdef HAVE_COMPLEX_H |
19449 | #include <complex.h> | |
d213114b | 19450 | #endif |
7d9455ce | 19451 | #ifdef HAVE_MATH_H |
19452 | #include <math.h> | |
19453 | #endif | |
19454 | ||
19455 | int (*ptr)() = (int (*)())fabs; | |
19456 | ||
d213114b | 19457 | int |
19458 | main () | |
19459 | { | |
d213114b | 19460 | return 0; |
19461 | } | |
7d9455ce | 19462 | |
d213114b | 19463 | _ACEOF |
cd9a469c | 19464 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19465 | gcc_cv_math_func_fabs=yes |
d213114b | 19466 | else |
7d9455ce | 19467 | gcc_cv_math_func_fabs=no |
d213114b | 19468 | fi |
cd9a469c | 19469 | rm -f core conftest.err conftest.$ac_objext \ |
19470 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19471 | fi |
7d9455ce | 19472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 |
19473 | $as_echo "$gcc_cv_math_func_fabs" >&6; } | |
19474 | if test $gcc_cv_math_func_fabs = yes; then | |
bd647a17 | 19475 | |
6affa8e1 | 19476 | cat >>confdefs.h <<_ACEOF |
19477 | #define HAVE_FABS 1 | |
19478 | _ACEOF | |
d213114b | 19479 | |
7d9455ce | 19480 | fi |
d213114b | 19481 | |
d213114b | 19482 | |
7d9455ce | 19483 | |
19484 | ||
19485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 | |
19486 | $as_echo_n "checking for fabsl... " >&6; } | |
f00f02a3 | 19487 | if ${gcc_cv_math_func_fabsl+:} false; then : |
cd9a469c | 19488 | $as_echo_n "(cached) " >&6 |
d213114b | 19489 | else |
7d9455ce | 19490 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19491 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19492 | fi |
cd9a469c | 19493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19494 | /* end confdefs.h. */ |
19495 | ||
7d9455ce | 19496 | #ifdef HAVE_COMPLEX_H |
19497 | #include <complex.h> | |
19498 | #endif | |
19499 | #ifdef HAVE_MATH_H | |
19500 | #include <math.h> | |
d213114b | 19501 | #endif |
7d9455ce | 19502 | |
19503 | int (*ptr)() = (int (*)())fabsl; | |
19504 | ||
d213114b | 19505 | int |
19506 | main () | |
19507 | { | |
d213114b | 19508 | return 0; |
19509 | } | |
7d9455ce | 19510 | |
d213114b | 19511 | _ACEOF |
cd9a469c | 19512 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19513 | gcc_cv_math_func_fabsl=yes |
d213114b | 19514 | else |
7d9455ce | 19515 | gcc_cv_math_func_fabsl=no |
d213114b | 19516 | fi |
cd9a469c | 19517 | rm -f core conftest.err conftest.$ac_objext \ |
19518 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19519 | fi |
7d9455ce | 19520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 |
19521 | $as_echo "$gcc_cv_math_func_fabsl" >&6; } | |
19522 | if test $gcc_cv_math_func_fabsl = yes; then | |
bd647a17 | 19523 | |
6affa8e1 | 19524 | cat >>confdefs.h <<_ACEOF |
19525 | #define HAVE_FABSL 1 | |
19526 | _ACEOF | |
7d9455ce | 19527 | |
19528 | fi | |
d213114b | 19529 | |
d213114b | 19530 | |
d213114b | 19531 | |
7d9455ce | 19532 | |
19533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 | |
19534 | $as_echo_n "checking for cabsf... " >&6; } | |
f00f02a3 | 19535 | if ${gcc_cv_math_func_cabsf+:} false; then : |
cd9a469c | 19536 | $as_echo_n "(cached) " >&6 |
d213114b | 19537 | else |
7d9455ce | 19538 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19539 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19540 | fi |
cd9a469c | 19541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19542 | /* end confdefs.h. */ |
19543 | ||
7d9455ce | 19544 | #ifdef HAVE_COMPLEX_H |
19545 | #include <complex.h> | |
d213114b | 19546 | #endif |
7d9455ce | 19547 | #ifdef HAVE_MATH_H |
19548 | #include <math.h> | |
19549 | #endif | |
19550 | ||
19551 | int (*ptr)() = (int (*)())cabsf; | |
19552 | ||
d213114b | 19553 | int |
19554 | main () | |
19555 | { | |
d213114b | 19556 | return 0; |
19557 | } | |
7d9455ce | 19558 | |
d213114b | 19559 | _ACEOF |
cd9a469c | 19560 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19561 | gcc_cv_math_func_cabsf=yes |
d213114b | 19562 | else |
7d9455ce | 19563 | gcc_cv_math_func_cabsf=no |
d213114b | 19564 | fi |
cd9a469c | 19565 | rm -f core conftest.err conftest.$ac_objext \ |
19566 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19567 | fi |
7d9455ce | 19568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 |
19569 | $as_echo "$gcc_cv_math_func_cabsf" >&6; } | |
19570 | if test $gcc_cv_math_func_cabsf = yes; then | |
bd647a17 | 19571 | |
6affa8e1 | 19572 | cat >>confdefs.h <<_ACEOF |
19573 | #define HAVE_CABSF 1 | |
19574 | _ACEOF | |
7d9455ce | 19575 | |
19576 | fi | |
19577 | ||
d213114b | 19578 | |
d213114b | 19579 | |
d213114b | 19580 | |
7d9455ce | 19581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 |
19582 | $as_echo_n "checking for cabs... " >&6; } | |
f00f02a3 | 19583 | if ${gcc_cv_math_func_cabs+:} false; then : |
cd9a469c | 19584 | $as_echo_n "(cached) " >&6 |
d213114b | 19585 | else |
7d9455ce | 19586 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19587 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19588 | fi |
cd9a469c | 19589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19590 | /* end confdefs.h. */ |
19591 | ||
7d9455ce | 19592 | #ifdef HAVE_COMPLEX_H |
19593 | #include <complex.h> | |
19594 | #endif | |
19595 | #ifdef HAVE_MATH_H | |
19596 | #include <math.h> | |
d213114b | 19597 | #endif |
7d9455ce | 19598 | |
19599 | int (*ptr)() = (int (*)())cabs; | |
19600 | ||
d213114b | 19601 | int |
19602 | main () | |
19603 | { | |
d213114b | 19604 | return 0; |
19605 | } | |
7d9455ce | 19606 | |
d213114b | 19607 | _ACEOF |
cd9a469c | 19608 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19609 | gcc_cv_math_func_cabs=yes |
d213114b | 19610 | else |
7d9455ce | 19611 | gcc_cv_math_func_cabs=no |
d213114b | 19612 | fi |
cd9a469c | 19613 | rm -f core conftest.err conftest.$ac_objext \ |
19614 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19615 | fi |
7d9455ce | 19616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 |
19617 | $as_echo "$gcc_cv_math_func_cabs" >&6; } | |
19618 | if test $gcc_cv_math_func_cabs = yes; then | |
bd647a17 | 19619 | |
6affa8e1 | 19620 | cat >>confdefs.h <<_ACEOF |
19621 | #define HAVE_CABS 1 | |
19622 | _ACEOF | |
7d9455ce | 19623 | |
19624 | fi | |
d213114b | 19625 | |
d213114b | 19626 | |
d213114b | 19627 | |
7d9455ce | 19628 | |
19629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 | |
19630 | $as_echo_n "checking for cabsl... " >&6; } | |
f00f02a3 | 19631 | if ${gcc_cv_math_func_cabsl+:} false; then : |
cd9a469c | 19632 | $as_echo_n "(cached) " >&6 |
d213114b | 19633 | else |
7d9455ce | 19634 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19635 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19636 | fi |
cd9a469c | 19637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19638 | /* end confdefs.h. */ |
19639 | ||
7d9455ce | 19640 | #ifdef HAVE_COMPLEX_H |
19641 | #include <complex.h> | |
d213114b | 19642 | #endif |
7d9455ce | 19643 | #ifdef HAVE_MATH_H |
19644 | #include <math.h> | |
19645 | #endif | |
19646 | ||
19647 | int (*ptr)() = (int (*)())cabsl; | |
19648 | ||
d213114b | 19649 | int |
19650 | main () | |
19651 | { | |
d213114b | 19652 | return 0; |
19653 | } | |
7d9455ce | 19654 | |
d213114b | 19655 | _ACEOF |
cd9a469c | 19656 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19657 | gcc_cv_math_func_cabsl=yes |
d213114b | 19658 | else |
7d9455ce | 19659 | gcc_cv_math_func_cabsl=no |
d213114b | 19660 | fi |
cd9a469c | 19661 | rm -f core conftest.err conftest.$ac_objext \ |
19662 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19663 | fi |
7d9455ce | 19664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 |
19665 | $as_echo "$gcc_cv_math_func_cabsl" >&6; } | |
19666 | if test $gcc_cv_math_func_cabsl = yes; then | |
bd647a17 | 19667 | |
6affa8e1 | 19668 | cat >>confdefs.h <<_ACEOF |
19669 | #define HAVE_CABSL 1 | |
19670 | _ACEOF | |
d213114b | 19671 | |
7d9455ce | 19672 | fi |
d213114b | 19673 | |
d213114b | 19674 | |
7d9455ce | 19675 | |
19676 | ||
19677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 | |
19678 | $as_echo_n "checking for floorf... " >&6; } | |
f00f02a3 | 19679 | if ${gcc_cv_math_func_floorf+:} false; then : |
cd9a469c | 19680 | $as_echo_n "(cached) " >&6 |
d213114b | 19681 | else |
7d9455ce | 19682 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19683 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19684 | fi |
cd9a469c | 19685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19686 | /* end confdefs.h. */ |
19687 | ||
7d9455ce | 19688 | #ifdef HAVE_COMPLEX_H |
19689 | #include <complex.h> | |
19690 | #endif | |
19691 | #ifdef HAVE_MATH_H | |
19692 | #include <math.h> | |
d213114b | 19693 | #endif |
7d9455ce | 19694 | |
19695 | int (*ptr)() = (int (*)())floorf; | |
19696 | ||
d213114b | 19697 | int |
19698 | main () | |
19699 | { | |
cd9a469c | 19700 | return 0; |
19701 | } | |
7d9455ce | 19702 | |
cd9a469c | 19703 | _ACEOF |
19704 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 19705 | gcc_cv_math_func_floorf=yes |
d213114b | 19706 | else |
7d9455ce | 19707 | gcc_cv_math_func_floorf=no |
d213114b | 19708 | fi |
cd9a469c | 19709 | rm -f core conftest.err conftest.$ac_objext \ |
19710 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19711 | fi |
7d9455ce | 19712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 |
19713 | $as_echo "$gcc_cv_math_func_floorf" >&6; } | |
19714 | if test $gcc_cv_math_func_floorf = yes; then | |
bd647a17 | 19715 | |
6affa8e1 | 19716 | cat >>confdefs.h <<_ACEOF |
19717 | #define HAVE_FLOORF 1 | |
19718 | _ACEOF | |
7d9455ce | 19719 | |
19720 | fi | |
d213114b | 19721 | |
d213114b | 19722 | |
d213114b | 19723 | |
7d9455ce | 19724 | |
19725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 | |
19726 | $as_echo_n "checking for floor... " >&6; } | |
f00f02a3 | 19727 | if ${gcc_cv_math_func_floor+:} false; then : |
cd9a469c | 19728 | $as_echo_n "(cached) " >&6 |
d213114b | 19729 | else |
7d9455ce | 19730 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19731 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19732 | fi |
cd9a469c | 19733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19734 | /* end confdefs.h. */ |
19735 | ||
7d9455ce | 19736 | #ifdef HAVE_COMPLEX_H |
19737 | #include <complex.h> | |
d213114b | 19738 | #endif |
7d9455ce | 19739 | #ifdef HAVE_MATH_H |
19740 | #include <math.h> | |
19741 | #endif | |
19742 | ||
19743 | int (*ptr)() = (int (*)())floor; | |
19744 | ||
d213114b | 19745 | int |
19746 | main () | |
19747 | { | |
d213114b | 19748 | return 0; |
19749 | } | |
7d9455ce | 19750 | |
d213114b | 19751 | _ACEOF |
cd9a469c | 19752 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19753 | gcc_cv_math_func_floor=yes |
d213114b | 19754 | else |
7d9455ce | 19755 | gcc_cv_math_func_floor=no |
d213114b | 19756 | fi |
cd9a469c | 19757 | rm -f core conftest.err conftest.$ac_objext \ |
19758 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19759 | fi |
7d9455ce | 19760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 |
19761 | $as_echo "$gcc_cv_math_func_floor" >&6; } | |
19762 | if test $gcc_cv_math_func_floor = yes; then | |
bd647a17 | 19763 | |
6affa8e1 | 19764 | cat >>confdefs.h <<_ACEOF |
19765 | #define HAVE_FLOOR 1 | |
19766 | _ACEOF | |
7d9455ce | 19767 | |
19768 | fi | |
19769 | ||
d213114b | 19770 | |
d213114b | 19771 | |
d213114b | 19772 | |
7d9455ce | 19773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 |
19774 | $as_echo_n "checking for floorl... " >&6; } | |
f00f02a3 | 19775 | if ${gcc_cv_math_func_floorl+:} false; then : |
cd9a469c | 19776 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19777 | else |
7d9455ce | 19778 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19779 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19780 | fi |
cd9a469c | 19781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19782 | /* end confdefs.h. */ |
19783 | ||
7d9455ce | 19784 | #ifdef HAVE_COMPLEX_H |
19785 | #include <complex.h> | |
19786 | #endif | |
19787 | #ifdef HAVE_MATH_H | |
19788 | #include <math.h> | |
71d5b534 | 19789 | #endif |
7d9455ce | 19790 | |
19791 | int (*ptr)() = (int (*)())floorl; | |
19792 | ||
71d5b534 | 19793 | int |
19794 | main () | |
19795 | { | |
71d5b534 | 19796 | return 0; |
19797 | } | |
7d9455ce | 19798 | |
71d5b534 | 19799 | _ACEOF |
cd9a469c | 19800 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19801 | gcc_cv_math_func_floorl=yes |
71d5b534 | 19802 | else |
7d9455ce | 19803 | gcc_cv_math_func_floorl=no |
71d5b534 | 19804 | fi |
cd9a469c | 19805 | rm -f core conftest.err conftest.$ac_objext \ |
19806 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19807 | fi |
7d9455ce | 19808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 |
19809 | $as_echo "$gcc_cv_math_func_floorl" >&6; } | |
19810 | if test $gcc_cv_math_func_floorl = yes; then | |
bd647a17 | 19811 | |
6affa8e1 | 19812 | cat >>confdefs.h <<_ACEOF |
19813 | #define HAVE_FLOORL 1 | |
19814 | _ACEOF | |
7d9455ce | 19815 | |
19816 | fi | |
71d5b534 | 19817 | |
71d5b534 | 19818 | |
71d5b534 | 19819 | |
7d9455ce | 19820 | |
19821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 | |
19822 | $as_echo_n "checking for fmodf... " >&6; } | |
f00f02a3 | 19823 | if ${gcc_cv_math_func_fmodf+:} false; then : |
cd9a469c | 19824 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19825 | else |
7d9455ce | 19826 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19827 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19828 | fi |
cd9a469c | 19829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19830 | /* end confdefs.h. */ |
19831 | ||
7d9455ce | 19832 | #ifdef HAVE_COMPLEX_H |
19833 | #include <complex.h> | |
71d5b534 | 19834 | #endif |
7d9455ce | 19835 | #ifdef HAVE_MATH_H |
19836 | #include <math.h> | |
19837 | #endif | |
19838 | ||
19839 | int (*ptr)() = (int (*)())fmodf; | |
19840 | ||
71d5b534 | 19841 | int |
19842 | main () | |
19843 | { | |
71d5b534 | 19844 | return 0; |
19845 | } | |
7d9455ce | 19846 | |
71d5b534 | 19847 | _ACEOF |
cd9a469c | 19848 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19849 | gcc_cv_math_func_fmodf=yes |
71d5b534 | 19850 | else |
7d9455ce | 19851 | gcc_cv_math_func_fmodf=no |
71d5b534 | 19852 | fi |
cd9a469c | 19853 | rm -f core conftest.err conftest.$ac_objext \ |
19854 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19855 | fi |
7d9455ce | 19856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 |
19857 | $as_echo "$gcc_cv_math_func_fmodf" >&6; } | |
19858 | if test $gcc_cv_math_func_fmodf = yes; then | |
bd647a17 | 19859 | |
6affa8e1 | 19860 | cat >>confdefs.h <<_ACEOF |
19861 | #define HAVE_FMODF 1 | |
19862 | _ACEOF | |
71d5b534 | 19863 | |
7d9455ce | 19864 | fi |
71d5b534 | 19865 | |
71d5b534 | 19866 | |
7d9455ce | 19867 | |
19868 | ||
19869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 | |
19870 | $as_echo_n "checking for fmod... " >&6; } | |
f00f02a3 | 19871 | if ${gcc_cv_math_func_fmod+:} false; then : |
cd9a469c | 19872 | $as_echo_n "(cached) " >&6 |
71d5b534 | 19873 | else |
7d9455ce | 19874 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19875 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19876 | fi |
cd9a469c | 19877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19878 | /* end confdefs.h. */ |
19879 | ||
7d9455ce | 19880 | #ifdef HAVE_COMPLEX_H |
19881 | #include <complex.h> | |
19882 | #endif | |
19883 | #ifdef HAVE_MATH_H | |
19884 | #include <math.h> | |
71d5b534 | 19885 | #endif |
7d9455ce | 19886 | |
19887 | int (*ptr)() = (int (*)())fmod; | |
19888 | ||
71d5b534 | 19889 | int |
19890 | main () | |
19891 | { | |
71d5b534 | 19892 | return 0; |
19893 | } | |
7d9455ce | 19894 | |
71d5b534 | 19895 | _ACEOF |
cd9a469c | 19896 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19897 | gcc_cv_math_func_fmod=yes |
71d5b534 | 19898 | else |
7d9455ce | 19899 | gcc_cv_math_func_fmod=no |
71d5b534 | 19900 | fi |
cd9a469c | 19901 | rm -f core conftest.err conftest.$ac_objext \ |
19902 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19903 | fi |
7d9455ce | 19904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 |
19905 | $as_echo "$gcc_cv_math_func_fmod" >&6; } | |
19906 | if test $gcc_cv_math_func_fmod = yes; then | |
bd647a17 | 19907 | |
6affa8e1 | 19908 | cat >>confdefs.h <<_ACEOF |
19909 | #define HAVE_FMOD 1 | |
19910 | _ACEOF | |
7d9455ce | 19911 | |
19912 | fi | |
71d5b534 | 19913 | |
71d5b534 | 19914 | |
71d5b534 | 19915 | |
7d9455ce | 19916 | |
19917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 | |
19918 | $as_echo_n "checking for fmodl... " >&6; } | |
f00f02a3 | 19919 | if ${gcc_cv_math_func_fmodl+:} false; then : |
cd9a469c | 19920 | $as_echo_n "(cached) " >&6 |
d213114b | 19921 | else |
7d9455ce | 19922 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19923 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19924 | fi |
cd9a469c | 19925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19926 | /* end confdefs.h. */ |
19927 | ||
7d9455ce | 19928 | #ifdef HAVE_COMPLEX_H |
19929 | #include <complex.h> | |
d213114b | 19930 | #endif |
7d9455ce | 19931 | #ifdef HAVE_MATH_H |
19932 | #include <math.h> | |
19933 | #endif | |
19934 | ||
19935 | int (*ptr)() = (int (*)())fmodl; | |
19936 | ||
d213114b | 19937 | int |
19938 | main () | |
19939 | { | |
d213114b | 19940 | return 0; |
19941 | } | |
7d9455ce | 19942 | |
d213114b | 19943 | _ACEOF |
cd9a469c | 19944 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19945 | gcc_cv_math_func_fmodl=yes |
d213114b | 19946 | else |
7d9455ce | 19947 | gcc_cv_math_func_fmodl=no |
d213114b | 19948 | fi |
cd9a469c | 19949 | rm -f core conftest.err conftest.$ac_objext \ |
19950 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19951 | fi |
7d9455ce | 19952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 |
19953 | $as_echo "$gcc_cv_math_func_fmodl" >&6; } | |
19954 | if test $gcc_cv_math_func_fmodl = yes; then | |
bd647a17 | 19955 | |
6affa8e1 | 19956 | cat >>confdefs.h <<_ACEOF |
19957 | #define HAVE_FMODL 1 | |
19958 | _ACEOF | |
7d9455ce | 19959 | |
19960 | fi | |
19961 | ||
d213114b | 19962 | |
d213114b | 19963 | |
d213114b | 19964 | |
7d9455ce | 19965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 |
19966 | $as_echo_n "checking for frexpf... " >&6; } | |
f00f02a3 | 19967 | if ${gcc_cv_math_func_frexpf+:} false; then : |
cd9a469c | 19968 | $as_echo_n "(cached) " >&6 |
d213114b | 19969 | else |
7d9455ce | 19970 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 19971 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19972 | fi |
cd9a469c | 19973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19974 | /* end confdefs.h. */ |
19975 | ||
7d9455ce | 19976 | #ifdef HAVE_COMPLEX_H |
19977 | #include <complex.h> | |
19978 | #endif | |
19979 | #ifdef HAVE_MATH_H | |
19980 | #include <math.h> | |
d213114b | 19981 | #endif |
7d9455ce | 19982 | |
19983 | int (*ptr)() = (int (*)())frexpf; | |
19984 | ||
d213114b | 19985 | int |
19986 | main () | |
19987 | { | |
d213114b | 19988 | return 0; |
19989 | } | |
7d9455ce | 19990 | |
d213114b | 19991 | _ACEOF |
cd9a469c | 19992 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 19993 | gcc_cv_math_func_frexpf=yes |
d213114b | 19994 | else |
7d9455ce | 19995 | gcc_cv_math_func_frexpf=no |
d213114b | 19996 | fi |
cd9a469c | 19997 | rm -f core conftest.err conftest.$ac_objext \ |
19998 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19999 | fi |
7d9455ce | 20000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 |
20001 | $as_echo "$gcc_cv_math_func_frexpf" >&6; } | |
20002 | if test $gcc_cv_math_func_frexpf = yes; then | |
bd647a17 | 20003 | |
6affa8e1 | 20004 | cat >>confdefs.h <<_ACEOF |
20005 | #define HAVE_FREXPF 1 | |
20006 | _ACEOF | |
7d9455ce | 20007 | |
20008 | fi | |
d213114b | 20009 | |
d213114b | 20010 | |
d213114b | 20011 | |
7d9455ce | 20012 | |
20013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 | |
20014 | $as_echo_n "checking for frexp... " >&6; } | |
f00f02a3 | 20015 | if ${gcc_cv_math_func_frexp+:} false; then : |
cd9a469c | 20016 | $as_echo_n "(cached) " >&6 |
d213114b | 20017 | else |
7d9455ce | 20018 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20019 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20020 | fi |
cd9a469c | 20021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20022 | /* end confdefs.h. */ |
20023 | ||
7d9455ce | 20024 | #ifdef HAVE_COMPLEX_H |
20025 | #include <complex.h> | |
d213114b | 20026 | #endif |
7d9455ce | 20027 | #ifdef HAVE_MATH_H |
20028 | #include <math.h> | |
20029 | #endif | |
20030 | ||
20031 | int (*ptr)() = (int (*)())frexp; | |
20032 | ||
d213114b | 20033 | int |
20034 | main () | |
20035 | { | |
d213114b | 20036 | return 0; |
20037 | } | |
7d9455ce | 20038 | |
d213114b | 20039 | _ACEOF |
cd9a469c | 20040 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20041 | gcc_cv_math_func_frexp=yes |
d213114b | 20042 | else |
7d9455ce | 20043 | gcc_cv_math_func_frexp=no |
d213114b | 20044 | fi |
cd9a469c | 20045 | rm -f core conftest.err conftest.$ac_objext \ |
20046 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20047 | fi |
7d9455ce | 20048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 |
20049 | $as_echo "$gcc_cv_math_func_frexp" >&6; } | |
20050 | if test $gcc_cv_math_func_frexp = yes; then | |
bd647a17 | 20051 | |
6affa8e1 | 20052 | cat >>confdefs.h <<_ACEOF |
20053 | #define HAVE_FREXP 1 | |
20054 | _ACEOF | |
d213114b | 20055 | |
7d9455ce | 20056 | fi |
d213114b | 20057 | |
d213114b | 20058 | |
7d9455ce | 20059 | |
20060 | ||
20061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 | |
20062 | $as_echo_n "checking for frexpl... " >&6; } | |
f00f02a3 | 20063 | if ${gcc_cv_math_func_frexpl+:} false; then : |
cd9a469c | 20064 | $as_echo_n "(cached) " >&6 |
d213114b | 20065 | else |
7d9455ce | 20066 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20067 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20068 | fi |
cd9a469c | 20069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20070 | /* end confdefs.h. */ |
20071 | ||
7d9455ce | 20072 | #ifdef HAVE_COMPLEX_H |
20073 | #include <complex.h> | |
20074 | #endif | |
20075 | #ifdef HAVE_MATH_H | |
20076 | #include <math.h> | |
d213114b | 20077 | #endif |
7d9455ce | 20078 | |
20079 | int (*ptr)() = (int (*)())frexpl; | |
20080 | ||
d213114b | 20081 | int |
20082 | main () | |
20083 | { | |
d213114b | 20084 | return 0; |
20085 | } | |
7d9455ce | 20086 | |
d213114b | 20087 | _ACEOF |
cd9a469c | 20088 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20089 | gcc_cv_math_func_frexpl=yes |
d213114b | 20090 | else |
7d9455ce | 20091 | gcc_cv_math_func_frexpl=no |
d213114b | 20092 | fi |
cd9a469c | 20093 | rm -f core conftest.err conftest.$ac_objext \ |
20094 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20095 | fi |
7d9455ce | 20096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 |
20097 | $as_echo "$gcc_cv_math_func_frexpl" >&6; } | |
20098 | if test $gcc_cv_math_func_frexpl = yes; then | |
bd647a17 | 20099 | |
6affa8e1 | 20100 | cat >>confdefs.h <<_ACEOF |
20101 | #define HAVE_FREXPL 1 | |
20102 | _ACEOF | |
7d9455ce | 20103 | |
20104 | fi | |
d213114b | 20105 | |
d213114b | 20106 | |
d213114b | 20107 | |
7d9455ce | 20108 | |
20109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 | |
20110 | $as_echo_n "checking for hypotf... " >&6; } | |
f00f02a3 | 20111 | if ${gcc_cv_math_func_hypotf+:} false; then : |
cd9a469c | 20112 | $as_echo_n "(cached) " >&6 |
d213114b | 20113 | else |
7d9455ce | 20114 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20115 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20116 | fi |
cd9a469c | 20117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20118 | /* end confdefs.h. */ |
20119 | ||
7d9455ce | 20120 | #ifdef HAVE_COMPLEX_H |
20121 | #include <complex.h> | |
d213114b | 20122 | #endif |
7d9455ce | 20123 | #ifdef HAVE_MATH_H |
20124 | #include <math.h> | |
20125 | #endif | |
20126 | ||
20127 | int (*ptr)() = (int (*)())hypotf; | |
20128 | ||
d213114b | 20129 | int |
20130 | main () | |
20131 | { | |
d213114b | 20132 | return 0; |
20133 | } | |
7d9455ce | 20134 | |
d213114b | 20135 | _ACEOF |
cd9a469c | 20136 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20137 | gcc_cv_math_func_hypotf=yes |
d213114b | 20138 | else |
7d9455ce | 20139 | gcc_cv_math_func_hypotf=no |
d213114b | 20140 | fi |
cd9a469c | 20141 | rm -f core conftest.err conftest.$ac_objext \ |
20142 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20143 | fi |
7d9455ce | 20144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 |
20145 | $as_echo "$gcc_cv_math_func_hypotf" >&6; } | |
20146 | if test $gcc_cv_math_func_hypotf = yes; then | |
bd647a17 | 20147 | |
6affa8e1 | 20148 | cat >>confdefs.h <<_ACEOF |
20149 | #define HAVE_HYPOTF 1 | |
20150 | _ACEOF | |
7d9455ce | 20151 | |
20152 | fi | |
20153 | ||
d213114b | 20154 | |
d213114b | 20155 | |
d213114b | 20156 | |
7d9455ce | 20157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 |
20158 | $as_echo_n "checking for hypot... " >&6; } | |
f00f02a3 | 20159 | if ${gcc_cv_math_func_hypot+:} false; then : |
cd9a469c | 20160 | $as_echo_n "(cached) " >&6 |
d213114b | 20161 | else |
7d9455ce | 20162 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20163 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20164 | fi |
cd9a469c | 20165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20166 | /* end confdefs.h. */ |
20167 | ||
7d9455ce | 20168 | #ifdef HAVE_COMPLEX_H |
20169 | #include <complex.h> | |
20170 | #endif | |
20171 | #ifdef HAVE_MATH_H | |
20172 | #include <math.h> | |
d213114b | 20173 | #endif |
7d9455ce | 20174 | |
20175 | int (*ptr)() = (int (*)())hypot; | |
20176 | ||
d213114b | 20177 | int |
20178 | main () | |
20179 | { | |
d213114b | 20180 | return 0; |
20181 | } | |
7d9455ce | 20182 | |
d213114b | 20183 | _ACEOF |
cd9a469c | 20184 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20185 | gcc_cv_math_func_hypot=yes |
d213114b | 20186 | else |
7d9455ce | 20187 | gcc_cv_math_func_hypot=no |
d213114b | 20188 | fi |
cd9a469c | 20189 | rm -f core conftest.err conftest.$ac_objext \ |
20190 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20191 | fi |
7d9455ce | 20192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 |
20193 | $as_echo "$gcc_cv_math_func_hypot" >&6; } | |
20194 | if test $gcc_cv_math_func_hypot = yes; then | |
bd647a17 | 20195 | |
6affa8e1 | 20196 | cat >>confdefs.h <<_ACEOF |
20197 | #define HAVE_HYPOT 1 | |
20198 | _ACEOF | |
7d9455ce | 20199 | |
20200 | fi | |
d213114b | 20201 | |
d213114b | 20202 | |
d213114b | 20203 | |
7d9455ce | 20204 | |
20205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 | |
20206 | $as_echo_n "checking for hypotl... " >&6; } | |
f00f02a3 | 20207 | if ${gcc_cv_math_func_hypotl+:} false; then : |
cd9a469c | 20208 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20209 | else |
7d9455ce | 20210 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20211 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20212 | fi |
cd9a469c | 20213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20214 | /* end confdefs.h. */ |
20215 | ||
7d9455ce | 20216 | #ifdef HAVE_COMPLEX_H |
20217 | #include <complex.h> | |
71d90ac4 | 20218 | #endif |
7d9455ce | 20219 | #ifdef HAVE_MATH_H |
20220 | #include <math.h> | |
20221 | #endif | |
20222 | ||
20223 | int (*ptr)() = (int (*)())hypotl; | |
20224 | ||
71d90ac4 | 20225 | int |
20226 | main () | |
20227 | { | |
71d90ac4 | 20228 | return 0; |
20229 | } | |
7d9455ce | 20230 | |
71d90ac4 | 20231 | _ACEOF |
cd9a469c | 20232 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20233 | gcc_cv_math_func_hypotl=yes |
71d90ac4 | 20234 | else |
7d9455ce | 20235 | gcc_cv_math_func_hypotl=no |
71d90ac4 | 20236 | fi |
cd9a469c | 20237 | rm -f core conftest.err conftest.$ac_objext \ |
20238 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20239 | fi |
7d9455ce | 20240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 |
20241 | $as_echo "$gcc_cv_math_func_hypotl" >&6; } | |
20242 | if test $gcc_cv_math_func_hypotl = yes; then | |
bd647a17 | 20243 | |
6affa8e1 | 20244 | cat >>confdefs.h <<_ACEOF |
20245 | #define HAVE_HYPOTL 1 | |
20246 | _ACEOF | |
71d90ac4 | 20247 | |
7d9455ce | 20248 | fi |
71d90ac4 | 20249 | |
71d90ac4 | 20250 | |
7d9455ce | 20251 | |
20252 | ||
20253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 | |
20254 | $as_echo_n "checking for ldexpf... " >&6; } | |
f00f02a3 | 20255 | if ${gcc_cv_math_func_ldexpf+:} false; then : |
cd9a469c | 20256 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20257 | else |
7d9455ce | 20258 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20259 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20260 | fi |
cd9a469c | 20261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20262 | /* end confdefs.h. */ |
20263 | ||
7d9455ce | 20264 | #ifdef HAVE_COMPLEX_H |
20265 | #include <complex.h> | |
20266 | #endif | |
20267 | #ifdef HAVE_MATH_H | |
20268 | #include <math.h> | |
71d90ac4 | 20269 | #endif |
7d9455ce | 20270 | |
20271 | int (*ptr)() = (int (*)())ldexpf; | |
20272 | ||
71d90ac4 | 20273 | int |
20274 | main () | |
20275 | { | |
71d90ac4 | 20276 | return 0; |
20277 | } | |
7d9455ce | 20278 | |
71d90ac4 | 20279 | _ACEOF |
cd9a469c | 20280 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20281 | gcc_cv_math_func_ldexpf=yes |
71d90ac4 | 20282 | else |
7d9455ce | 20283 | gcc_cv_math_func_ldexpf=no |
71d90ac4 | 20284 | fi |
cd9a469c | 20285 | rm -f core conftest.err conftest.$ac_objext \ |
20286 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20287 | fi |
7d9455ce | 20288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 |
20289 | $as_echo "$gcc_cv_math_func_ldexpf" >&6; } | |
20290 | if test $gcc_cv_math_func_ldexpf = yes; then | |
bd647a17 | 20291 | |
6affa8e1 | 20292 | cat >>confdefs.h <<_ACEOF |
20293 | #define HAVE_LDEXPF 1 | |
20294 | _ACEOF | |
7d9455ce | 20295 | |
20296 | fi | |
71d90ac4 | 20297 | |
71d90ac4 | 20298 | |
71d90ac4 | 20299 | |
7d9455ce | 20300 | |
20301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 | |
20302 | $as_echo_n "checking for ldexp... " >&6; } | |
f00f02a3 | 20303 | if ${gcc_cv_math_func_ldexp+:} false; then : |
cd9a469c | 20304 | $as_echo_n "(cached) " >&6 |
71d90ac4 | 20305 | else |
7d9455ce | 20306 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20307 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 20308 | fi |
cd9a469c | 20309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 20310 | /* end confdefs.h. */ |
20311 | ||
7d9455ce | 20312 | #ifdef HAVE_COMPLEX_H |
20313 | #include <complex.h> | |
71d90ac4 | 20314 | #endif |
7d9455ce | 20315 | #ifdef HAVE_MATH_H |
20316 | #include <math.h> | |
20317 | #endif | |
20318 | ||
20319 | int (*ptr)() = (int (*)())ldexp; | |
20320 | ||
71d90ac4 | 20321 | int |
20322 | main () | |
20323 | { | |
71d90ac4 | 20324 | return 0; |
20325 | } | |
7d9455ce | 20326 | |
71d90ac4 | 20327 | _ACEOF |
cd9a469c | 20328 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20329 | gcc_cv_math_func_ldexp=yes |
71d90ac4 | 20330 | else |
7d9455ce | 20331 | gcc_cv_math_func_ldexp=no |
71d90ac4 | 20332 | fi |
cd9a469c | 20333 | rm -f core conftest.err conftest.$ac_objext \ |
20334 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 20335 | fi |
7d9455ce | 20336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 |
20337 | $as_echo "$gcc_cv_math_func_ldexp" >&6; } | |
20338 | if test $gcc_cv_math_func_ldexp = yes; then | |
bd647a17 | 20339 | |
6affa8e1 | 20340 | cat >>confdefs.h <<_ACEOF |
20341 | #define HAVE_LDEXP 1 | |
20342 | _ACEOF | |
7d9455ce | 20343 | |
20344 | fi | |
20345 | ||
71d90ac4 | 20346 | |
71d90ac4 | 20347 | |
71d90ac4 | 20348 | |
7d9455ce | 20349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 |
20350 | $as_echo_n "checking for ldexpl... " >&6; } | |
f00f02a3 | 20351 | if ${gcc_cv_math_func_ldexpl+:} false; then : |
cd9a469c | 20352 | $as_echo_n "(cached) " >&6 |
d213114b | 20353 | else |
7d9455ce | 20354 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20355 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20356 | fi |
cd9a469c | 20357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20358 | /* end confdefs.h. */ |
20359 | ||
7d9455ce | 20360 | #ifdef HAVE_COMPLEX_H |
20361 | #include <complex.h> | |
20362 | #endif | |
20363 | #ifdef HAVE_MATH_H | |
20364 | #include <math.h> | |
d213114b | 20365 | #endif |
7d9455ce | 20366 | |
20367 | int (*ptr)() = (int (*)())ldexpl; | |
20368 | ||
d213114b | 20369 | int |
20370 | main () | |
20371 | { | |
d213114b | 20372 | return 0; |
20373 | } | |
7d9455ce | 20374 | |
d213114b | 20375 | _ACEOF |
cd9a469c | 20376 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20377 | gcc_cv_math_func_ldexpl=yes |
d213114b | 20378 | else |
7d9455ce | 20379 | gcc_cv_math_func_ldexpl=no |
d213114b | 20380 | fi |
cd9a469c | 20381 | rm -f core conftest.err conftest.$ac_objext \ |
20382 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20383 | fi |
7d9455ce | 20384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 |
20385 | $as_echo "$gcc_cv_math_func_ldexpl" >&6; } | |
20386 | if test $gcc_cv_math_func_ldexpl = yes; then | |
bd647a17 | 20387 | |
6affa8e1 | 20388 | cat >>confdefs.h <<_ACEOF |
20389 | #define HAVE_LDEXPL 1 | |
20390 | _ACEOF | |
7d9455ce | 20391 | |
20392 | fi | |
d213114b | 20393 | |
d213114b | 20394 | |
d213114b | 20395 | |
7d9455ce | 20396 | |
20397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 | |
20398 | $as_echo_n "checking for logf... " >&6; } | |
f00f02a3 | 20399 | if ${gcc_cv_math_func_logf+:} false; then : |
cd9a469c | 20400 | $as_echo_n "(cached) " >&6 |
d213114b | 20401 | else |
7d9455ce | 20402 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20403 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20404 | fi |
cd9a469c | 20405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20406 | /* end confdefs.h. */ |
20407 | ||
7d9455ce | 20408 | #ifdef HAVE_COMPLEX_H |
20409 | #include <complex.h> | |
d213114b | 20410 | #endif |
7d9455ce | 20411 | #ifdef HAVE_MATH_H |
20412 | #include <math.h> | |
20413 | #endif | |
20414 | ||
20415 | int (*ptr)() = (int (*)())logf; | |
20416 | ||
d213114b | 20417 | int |
20418 | main () | |
20419 | { | |
d213114b | 20420 | return 0; |
20421 | } | |
7d9455ce | 20422 | |
d213114b | 20423 | _ACEOF |
cd9a469c | 20424 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20425 | gcc_cv_math_func_logf=yes |
d213114b | 20426 | else |
7d9455ce | 20427 | gcc_cv_math_func_logf=no |
d213114b | 20428 | fi |
cd9a469c | 20429 | rm -f core conftest.err conftest.$ac_objext \ |
20430 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20431 | fi |
7d9455ce | 20432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 |
20433 | $as_echo "$gcc_cv_math_func_logf" >&6; } | |
20434 | if test $gcc_cv_math_func_logf = yes; then | |
bd647a17 | 20435 | |
6affa8e1 | 20436 | cat >>confdefs.h <<_ACEOF |
20437 | #define HAVE_LOGF 1 | |
20438 | _ACEOF | |
d213114b | 20439 | |
7d9455ce | 20440 | fi |
d213114b | 20441 | |
d213114b | 20442 | |
7d9455ce | 20443 | |
20444 | ||
20445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 | |
20446 | $as_echo_n "checking for log... " >&6; } | |
f00f02a3 | 20447 | if ${gcc_cv_math_func_log+:} false; then : |
cd9a469c | 20448 | $as_echo_n "(cached) " >&6 |
d213114b | 20449 | else |
7d9455ce | 20450 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20451 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20452 | fi |
cd9a469c | 20453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20454 | /* end confdefs.h. */ |
20455 | ||
7d9455ce | 20456 | #ifdef HAVE_COMPLEX_H |
20457 | #include <complex.h> | |
20458 | #endif | |
20459 | #ifdef HAVE_MATH_H | |
20460 | #include <math.h> | |
d213114b | 20461 | #endif |
7d9455ce | 20462 | |
20463 | int (*ptr)() = (int (*)())log; | |
20464 | ||
d213114b | 20465 | int |
20466 | main () | |
20467 | { | |
d213114b | 20468 | return 0; |
20469 | } | |
7d9455ce | 20470 | |
d213114b | 20471 | _ACEOF |
cd9a469c | 20472 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20473 | gcc_cv_math_func_log=yes |
d213114b | 20474 | else |
7d9455ce | 20475 | gcc_cv_math_func_log=no |
d213114b | 20476 | fi |
cd9a469c | 20477 | rm -f core conftest.err conftest.$ac_objext \ |
20478 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20479 | fi |
7d9455ce | 20480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 |
20481 | $as_echo "$gcc_cv_math_func_log" >&6; } | |
20482 | if test $gcc_cv_math_func_log = yes; then | |
bd647a17 | 20483 | |
6affa8e1 | 20484 | cat >>confdefs.h <<_ACEOF |
20485 | #define HAVE_LOG 1 | |
20486 | _ACEOF | |
7d9455ce | 20487 | |
20488 | fi | |
d213114b | 20489 | |
d213114b | 20490 | |
d213114b | 20491 | |
7d9455ce | 20492 | |
20493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 | |
20494 | $as_echo_n "checking for logl... " >&6; } | |
f00f02a3 | 20495 | if ${gcc_cv_math_func_logl+:} false; then : |
cd9a469c | 20496 | $as_echo_n "(cached) " >&6 |
d213114b | 20497 | else |
7d9455ce | 20498 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20499 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20500 | fi |
cd9a469c | 20501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20502 | /* end confdefs.h. */ |
20503 | ||
7d9455ce | 20504 | #ifdef HAVE_COMPLEX_H |
20505 | #include <complex.h> | |
d213114b | 20506 | #endif |
7d9455ce | 20507 | #ifdef HAVE_MATH_H |
20508 | #include <math.h> | |
20509 | #endif | |
20510 | ||
20511 | int (*ptr)() = (int (*)())logl; | |
20512 | ||
d213114b | 20513 | int |
20514 | main () | |
20515 | { | |
d213114b | 20516 | return 0; |
20517 | } | |
7d9455ce | 20518 | |
d213114b | 20519 | _ACEOF |
cd9a469c | 20520 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20521 | gcc_cv_math_func_logl=yes |
d213114b | 20522 | else |
7d9455ce | 20523 | gcc_cv_math_func_logl=no |
d213114b | 20524 | fi |
cd9a469c | 20525 | rm -f core conftest.err conftest.$ac_objext \ |
20526 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20527 | fi |
7d9455ce | 20528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 |
20529 | $as_echo "$gcc_cv_math_func_logl" >&6; } | |
20530 | if test $gcc_cv_math_func_logl = yes; then | |
bd647a17 | 20531 | |
6affa8e1 | 20532 | cat >>confdefs.h <<_ACEOF |
20533 | #define HAVE_LOGL 1 | |
20534 | _ACEOF | |
7d9455ce | 20535 | |
20536 | fi | |
20537 | ||
d213114b | 20538 | |
d213114b | 20539 | |
d213114b | 20540 | |
7d9455ce | 20541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 |
20542 | $as_echo_n "checking for clogf... " >&6; } | |
f00f02a3 | 20543 | if ${gcc_cv_math_func_clogf+:} false; then : |
cd9a469c | 20544 | $as_echo_n "(cached) " >&6 |
d213114b | 20545 | else |
7d9455ce | 20546 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20547 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20548 | fi |
cd9a469c | 20549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20550 | /* end confdefs.h. */ |
20551 | ||
7d9455ce | 20552 | #ifdef HAVE_COMPLEX_H |
20553 | #include <complex.h> | |
20554 | #endif | |
20555 | #ifdef HAVE_MATH_H | |
20556 | #include <math.h> | |
d213114b | 20557 | #endif |
7d9455ce | 20558 | |
20559 | int (*ptr)() = (int (*)())clogf; | |
20560 | ||
d213114b | 20561 | int |
20562 | main () | |
20563 | { | |
d213114b | 20564 | return 0; |
20565 | } | |
7d9455ce | 20566 | |
d213114b | 20567 | _ACEOF |
cd9a469c | 20568 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20569 | gcc_cv_math_func_clogf=yes |
d213114b | 20570 | else |
7d9455ce | 20571 | gcc_cv_math_func_clogf=no |
d213114b | 20572 | fi |
cd9a469c | 20573 | rm -f core conftest.err conftest.$ac_objext \ |
20574 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20575 | fi |
7d9455ce | 20576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 |
20577 | $as_echo "$gcc_cv_math_func_clogf" >&6; } | |
20578 | if test $gcc_cv_math_func_clogf = yes; then | |
bd647a17 | 20579 | |
6affa8e1 | 20580 | cat >>confdefs.h <<_ACEOF |
20581 | #define HAVE_CLOGF 1 | |
20582 | _ACEOF | |
7d9455ce | 20583 | |
20584 | fi | |
d213114b | 20585 | |
d213114b | 20586 | |
d213114b | 20587 | |
7d9455ce | 20588 | |
20589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 | |
20590 | $as_echo_n "checking for clog... " >&6; } | |
f00f02a3 | 20591 | if ${gcc_cv_math_func_clog+:} false; then : |
cd9a469c | 20592 | $as_echo_n "(cached) " >&6 |
d213114b | 20593 | else |
7d9455ce | 20594 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20595 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20596 | fi |
cd9a469c | 20597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20598 | /* end confdefs.h. */ |
20599 | ||
7d9455ce | 20600 | #ifdef HAVE_COMPLEX_H |
20601 | #include <complex.h> | |
d213114b | 20602 | #endif |
7d9455ce | 20603 | #ifdef HAVE_MATH_H |
20604 | #include <math.h> | |
20605 | #endif | |
20606 | ||
20607 | int (*ptr)() = (int (*)())clog; | |
20608 | ||
d213114b | 20609 | int |
20610 | main () | |
20611 | { | |
d213114b | 20612 | return 0; |
20613 | } | |
7d9455ce | 20614 | |
d213114b | 20615 | _ACEOF |
cd9a469c | 20616 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20617 | gcc_cv_math_func_clog=yes |
d213114b | 20618 | else |
7d9455ce | 20619 | gcc_cv_math_func_clog=no |
d213114b | 20620 | fi |
cd9a469c | 20621 | rm -f core conftest.err conftest.$ac_objext \ |
20622 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20623 | fi |
7d9455ce | 20624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 |
20625 | $as_echo "$gcc_cv_math_func_clog" >&6; } | |
20626 | if test $gcc_cv_math_func_clog = yes; then | |
bd647a17 | 20627 | |
6affa8e1 | 20628 | cat >>confdefs.h <<_ACEOF |
20629 | #define HAVE_CLOG 1 | |
20630 | _ACEOF | |
d213114b | 20631 | |
7d9455ce | 20632 | fi |
d213114b | 20633 | |
d213114b | 20634 | |
7d9455ce | 20635 | |
20636 | ||
20637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 | |
20638 | $as_echo_n "checking for clogl... " >&6; } | |
f00f02a3 | 20639 | if ${gcc_cv_math_func_clogl+:} false; then : |
cd9a469c | 20640 | $as_echo_n "(cached) " >&6 |
d213114b | 20641 | else |
7d9455ce | 20642 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20643 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20644 | fi |
cd9a469c | 20645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20646 | /* end confdefs.h. */ |
20647 | ||
7d9455ce | 20648 | #ifdef HAVE_COMPLEX_H |
20649 | #include <complex.h> | |
20650 | #endif | |
20651 | #ifdef HAVE_MATH_H | |
20652 | #include <math.h> | |
d213114b | 20653 | #endif |
7d9455ce | 20654 | |
20655 | int (*ptr)() = (int (*)())clogl; | |
20656 | ||
d213114b | 20657 | int |
20658 | main () | |
20659 | { | |
d213114b | 20660 | return 0; |
20661 | } | |
7d9455ce | 20662 | |
d213114b | 20663 | _ACEOF |
cd9a469c | 20664 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20665 | gcc_cv_math_func_clogl=yes |
d213114b | 20666 | else |
7d9455ce | 20667 | gcc_cv_math_func_clogl=no |
d213114b | 20668 | fi |
cd9a469c | 20669 | rm -f core conftest.err conftest.$ac_objext \ |
20670 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20671 | fi |
7d9455ce | 20672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 |
20673 | $as_echo "$gcc_cv_math_func_clogl" >&6; } | |
20674 | if test $gcc_cv_math_func_clogl = yes; then | |
bd647a17 | 20675 | |
6affa8e1 | 20676 | cat >>confdefs.h <<_ACEOF |
20677 | #define HAVE_CLOGL 1 | |
20678 | _ACEOF | |
7d9455ce | 20679 | |
20680 | fi | |
d213114b | 20681 | |
d213114b | 20682 | |
d213114b | 20683 | |
7d9455ce | 20684 | |
20685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 | |
20686 | $as_echo_n "checking for log10f... " >&6; } | |
f00f02a3 | 20687 | if ${gcc_cv_math_func_log10f+:} false; then : |
cd9a469c | 20688 | $as_echo_n "(cached) " >&6 |
d213114b | 20689 | else |
7d9455ce | 20690 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20691 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20692 | fi |
cd9a469c | 20693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20694 | /* end confdefs.h. */ |
20695 | ||
7d9455ce | 20696 | #ifdef HAVE_COMPLEX_H |
20697 | #include <complex.h> | |
d213114b | 20698 | #endif |
7d9455ce | 20699 | #ifdef HAVE_MATH_H |
20700 | #include <math.h> | |
20701 | #endif | |
20702 | ||
20703 | int (*ptr)() = (int (*)())log10f; | |
20704 | ||
d213114b | 20705 | int |
20706 | main () | |
20707 | { | |
d213114b | 20708 | return 0; |
20709 | } | |
7d9455ce | 20710 | |
d213114b | 20711 | _ACEOF |
cd9a469c | 20712 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20713 | gcc_cv_math_func_log10f=yes |
d213114b | 20714 | else |
7d9455ce | 20715 | gcc_cv_math_func_log10f=no |
d213114b | 20716 | fi |
cd9a469c | 20717 | rm -f core conftest.err conftest.$ac_objext \ |
20718 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20719 | fi |
7d9455ce | 20720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 |
20721 | $as_echo "$gcc_cv_math_func_log10f" >&6; } | |
20722 | if test $gcc_cv_math_func_log10f = yes; then | |
bd647a17 | 20723 | |
6affa8e1 | 20724 | cat >>confdefs.h <<_ACEOF |
20725 | #define HAVE_LOG10F 1 | |
20726 | _ACEOF | |
7d9455ce | 20727 | |
20728 | fi | |
20729 | ||
d213114b | 20730 | |
d213114b | 20731 | |
d213114b | 20732 | |
7d9455ce | 20733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 |
20734 | $as_echo_n "checking for log10... " >&6; } | |
f00f02a3 | 20735 | if ${gcc_cv_math_func_log10+:} false; then : |
cd9a469c | 20736 | $as_echo_n "(cached) " >&6 |
d213114b | 20737 | else |
7d9455ce | 20738 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20739 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20740 | fi |
cd9a469c | 20741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20742 | /* end confdefs.h. */ |
20743 | ||
7d9455ce | 20744 | #ifdef HAVE_COMPLEX_H |
20745 | #include <complex.h> | |
20746 | #endif | |
20747 | #ifdef HAVE_MATH_H | |
20748 | #include <math.h> | |
d213114b | 20749 | #endif |
7d9455ce | 20750 | |
20751 | int (*ptr)() = (int (*)())log10; | |
20752 | ||
d213114b | 20753 | int |
20754 | main () | |
20755 | { | |
d213114b | 20756 | return 0; |
20757 | } | |
7d9455ce | 20758 | |
d213114b | 20759 | _ACEOF |
cd9a469c | 20760 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20761 | gcc_cv_math_func_log10=yes |
d213114b | 20762 | else |
7d9455ce | 20763 | gcc_cv_math_func_log10=no |
d213114b | 20764 | fi |
cd9a469c | 20765 | rm -f core conftest.err conftest.$ac_objext \ |
20766 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20767 | fi |
7d9455ce | 20768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 |
20769 | $as_echo "$gcc_cv_math_func_log10" >&6; } | |
20770 | if test $gcc_cv_math_func_log10 = yes; then | |
bd647a17 | 20771 | |
6affa8e1 | 20772 | cat >>confdefs.h <<_ACEOF |
20773 | #define HAVE_LOG10 1 | |
20774 | _ACEOF | |
7d9455ce | 20775 | |
20776 | fi | |
d213114b | 20777 | |
d213114b | 20778 | |
d213114b | 20779 | |
7d9455ce | 20780 | |
20781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 | |
20782 | $as_echo_n "checking for log10l... " >&6; } | |
f00f02a3 | 20783 | if ${gcc_cv_math_func_log10l+:} false; then : |
cd9a469c | 20784 | $as_echo_n "(cached) " >&6 |
d213114b | 20785 | else |
7d9455ce | 20786 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20787 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20788 | fi |
cd9a469c | 20789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20790 | /* end confdefs.h. */ |
20791 | ||
7d9455ce | 20792 | #ifdef HAVE_COMPLEX_H |
20793 | #include <complex.h> | |
d213114b | 20794 | #endif |
7d9455ce | 20795 | #ifdef HAVE_MATH_H |
20796 | #include <math.h> | |
20797 | #endif | |
20798 | ||
20799 | int (*ptr)() = (int (*)())log10l; | |
20800 | ||
d213114b | 20801 | int |
20802 | main () | |
20803 | { | |
d213114b | 20804 | return 0; |
20805 | } | |
7d9455ce | 20806 | |
d213114b | 20807 | _ACEOF |
cd9a469c | 20808 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20809 | gcc_cv_math_func_log10l=yes |
d213114b | 20810 | else |
7d9455ce | 20811 | gcc_cv_math_func_log10l=no |
d213114b | 20812 | fi |
cd9a469c | 20813 | rm -f core conftest.err conftest.$ac_objext \ |
20814 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20815 | fi |
7d9455ce | 20816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 |
20817 | $as_echo "$gcc_cv_math_func_log10l" >&6; } | |
20818 | if test $gcc_cv_math_func_log10l = yes; then | |
bd647a17 | 20819 | |
6affa8e1 | 20820 | cat >>confdefs.h <<_ACEOF |
20821 | #define HAVE_LOG10L 1 | |
20822 | _ACEOF | |
d213114b | 20823 | |
7d9455ce | 20824 | fi |
d213114b | 20825 | |
d213114b | 20826 | |
7d9455ce | 20827 | |
20828 | ||
20829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 | |
20830 | $as_echo_n "checking for clog10f... " >&6; } | |
f00f02a3 | 20831 | if ${gcc_cv_math_func_clog10f+:} false; then : |
cd9a469c | 20832 | $as_echo_n "(cached) " >&6 |
d213114b | 20833 | else |
7d9455ce | 20834 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20835 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20836 | fi |
cd9a469c | 20837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20838 | /* end confdefs.h. */ |
20839 | ||
7d9455ce | 20840 | #ifdef HAVE_COMPLEX_H |
20841 | #include <complex.h> | |
20842 | #endif | |
20843 | #ifdef HAVE_MATH_H | |
20844 | #include <math.h> | |
d213114b | 20845 | #endif |
7d9455ce | 20846 | |
20847 | int (*ptr)() = (int (*)())clog10f; | |
20848 | ||
d213114b | 20849 | int |
20850 | main () | |
20851 | { | |
d213114b | 20852 | return 0; |
20853 | } | |
7d9455ce | 20854 | |
d213114b | 20855 | _ACEOF |
cd9a469c | 20856 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20857 | gcc_cv_math_func_clog10f=yes |
d213114b | 20858 | else |
7d9455ce | 20859 | gcc_cv_math_func_clog10f=no |
d213114b | 20860 | fi |
cd9a469c | 20861 | rm -f core conftest.err conftest.$ac_objext \ |
20862 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20863 | fi |
7d9455ce | 20864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 |
20865 | $as_echo "$gcc_cv_math_func_clog10f" >&6; } | |
20866 | if test $gcc_cv_math_func_clog10f = yes; then | |
bd647a17 | 20867 | |
6affa8e1 | 20868 | cat >>confdefs.h <<_ACEOF |
20869 | #define HAVE_CLOG10F 1 | |
20870 | _ACEOF | |
7d9455ce | 20871 | |
20872 | fi | |
d213114b | 20873 | |
d213114b | 20874 | |
d213114b | 20875 | |
7d9455ce | 20876 | |
20877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 | |
20878 | $as_echo_n "checking for clog10... " >&6; } | |
f00f02a3 | 20879 | if ${gcc_cv_math_func_clog10+:} false; then : |
cd9a469c | 20880 | $as_echo_n "(cached) " >&6 |
d213114b | 20881 | else |
7d9455ce | 20882 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20883 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20884 | fi |
cd9a469c | 20885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20886 | /* end confdefs.h. */ |
20887 | ||
7d9455ce | 20888 | #ifdef HAVE_COMPLEX_H |
20889 | #include <complex.h> | |
d213114b | 20890 | #endif |
7d9455ce | 20891 | #ifdef HAVE_MATH_H |
20892 | #include <math.h> | |
20893 | #endif | |
20894 | ||
20895 | int (*ptr)() = (int (*)())clog10; | |
20896 | ||
d213114b | 20897 | int |
20898 | main () | |
20899 | { | |
cd9a469c | 20900 | return 0; |
20901 | } | |
7d9455ce | 20902 | |
cd9a469c | 20903 | _ACEOF |
20904 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 20905 | gcc_cv_math_func_clog10=yes |
d213114b | 20906 | else |
7d9455ce | 20907 | gcc_cv_math_func_clog10=no |
d213114b | 20908 | fi |
cd9a469c | 20909 | rm -f core conftest.err conftest.$ac_objext \ |
20910 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20911 | fi |
7d9455ce | 20912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 |
20913 | $as_echo "$gcc_cv_math_func_clog10" >&6; } | |
20914 | if test $gcc_cv_math_func_clog10 = yes; then | |
bd647a17 | 20915 | |
6affa8e1 | 20916 | cat >>confdefs.h <<_ACEOF |
20917 | #define HAVE_CLOG10 1 | |
20918 | _ACEOF | |
7d9455ce | 20919 | |
20920 | fi | |
20921 | ||
d213114b | 20922 | |
d213114b | 20923 | |
d213114b | 20924 | |
7d9455ce | 20925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 |
20926 | $as_echo_n "checking for clog10l... " >&6; } | |
f00f02a3 | 20927 | if ${gcc_cv_math_func_clog10l+:} false; then : |
cd9a469c | 20928 | $as_echo_n "(cached) " >&6 |
d213114b | 20929 | else |
7d9455ce | 20930 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20931 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20932 | fi |
cd9a469c | 20933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20934 | /* end confdefs.h. */ |
20935 | ||
7d9455ce | 20936 | #ifdef HAVE_COMPLEX_H |
20937 | #include <complex.h> | |
20938 | #endif | |
20939 | #ifdef HAVE_MATH_H | |
20940 | #include <math.h> | |
d213114b | 20941 | #endif |
7d9455ce | 20942 | |
20943 | int (*ptr)() = (int (*)())clog10l; | |
20944 | ||
d213114b | 20945 | int |
20946 | main () | |
20947 | { | |
d213114b | 20948 | return 0; |
20949 | } | |
7d9455ce | 20950 | |
d213114b | 20951 | _ACEOF |
cd9a469c | 20952 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 20953 | gcc_cv_math_func_clog10l=yes |
d213114b | 20954 | else |
7d9455ce | 20955 | gcc_cv_math_func_clog10l=no |
d213114b | 20956 | fi |
cd9a469c | 20957 | rm -f core conftest.err conftest.$ac_objext \ |
20958 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20959 | fi |
7d9455ce | 20960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 |
20961 | $as_echo "$gcc_cv_math_func_clog10l" >&6; } | |
20962 | if test $gcc_cv_math_func_clog10l = yes; then | |
bd647a17 | 20963 | |
6affa8e1 | 20964 | cat >>confdefs.h <<_ACEOF |
20965 | #define HAVE_CLOG10L 1 | |
20966 | _ACEOF | |
7d9455ce | 20967 | |
20968 | fi | |
d213114b | 20969 | |
d213114b | 20970 | |
d213114b | 20971 | |
7d9455ce | 20972 | |
20973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 | |
20974 | $as_echo_n "checking for nextafterf... " >&6; } | |
f00f02a3 | 20975 | if ${gcc_cv_math_func_nextafterf+:} false; then : |
cd9a469c | 20976 | $as_echo_n "(cached) " >&6 |
d213114b | 20977 | else |
7d9455ce | 20978 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 20979 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20980 | fi |
cd9a469c | 20981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20982 | /* end confdefs.h. */ |
20983 | ||
7d9455ce | 20984 | #ifdef HAVE_COMPLEX_H |
20985 | #include <complex.h> | |
d213114b | 20986 | #endif |
7d9455ce | 20987 | #ifdef HAVE_MATH_H |
20988 | #include <math.h> | |
20989 | #endif | |
20990 | ||
20991 | int (*ptr)() = (int (*)())nextafterf; | |
20992 | ||
d213114b | 20993 | int |
20994 | main () | |
20995 | { | |
d213114b | 20996 | return 0; |
20997 | } | |
7d9455ce | 20998 | |
d213114b | 20999 | _ACEOF |
cd9a469c | 21000 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21001 | gcc_cv_math_func_nextafterf=yes |
d213114b | 21002 | else |
7d9455ce | 21003 | gcc_cv_math_func_nextafterf=no |
d213114b | 21004 | fi |
cd9a469c | 21005 | rm -f core conftest.err conftest.$ac_objext \ |
21006 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21007 | fi |
7d9455ce | 21008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 |
21009 | $as_echo "$gcc_cv_math_func_nextafterf" >&6; } | |
21010 | if test $gcc_cv_math_func_nextafterf = yes; then | |
bd647a17 | 21011 | |
6affa8e1 | 21012 | cat >>confdefs.h <<_ACEOF |
21013 | #define HAVE_NEXTAFTERF 1 | |
21014 | _ACEOF | |
d213114b | 21015 | |
7d9455ce | 21016 | fi |
d213114b | 21017 | |
d213114b | 21018 | |
7d9455ce | 21019 | |
21020 | ||
21021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 | |
21022 | $as_echo_n "checking for nextafter... " >&6; } | |
f00f02a3 | 21023 | if ${gcc_cv_math_func_nextafter+:} false; then : |
cd9a469c | 21024 | $as_echo_n "(cached) " >&6 |
d213114b | 21025 | else |
7d9455ce | 21026 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21027 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21028 | fi |
cd9a469c | 21029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21030 | /* end confdefs.h. */ |
21031 | ||
7d9455ce | 21032 | #ifdef HAVE_COMPLEX_H |
21033 | #include <complex.h> | |
21034 | #endif | |
21035 | #ifdef HAVE_MATH_H | |
21036 | #include <math.h> | |
d213114b | 21037 | #endif |
7d9455ce | 21038 | |
21039 | int (*ptr)() = (int (*)())nextafter; | |
21040 | ||
d213114b | 21041 | int |
21042 | main () | |
21043 | { | |
d213114b | 21044 | return 0; |
21045 | } | |
7d9455ce | 21046 | |
d213114b | 21047 | _ACEOF |
cd9a469c | 21048 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21049 | gcc_cv_math_func_nextafter=yes |
d213114b | 21050 | else |
7d9455ce | 21051 | gcc_cv_math_func_nextafter=no |
d213114b | 21052 | fi |
cd9a469c | 21053 | rm -f core conftest.err conftest.$ac_objext \ |
21054 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21055 | fi |
7d9455ce | 21056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 |
21057 | $as_echo "$gcc_cv_math_func_nextafter" >&6; } | |
21058 | if test $gcc_cv_math_func_nextafter = yes; then | |
bd647a17 | 21059 | |
6affa8e1 | 21060 | cat >>confdefs.h <<_ACEOF |
21061 | #define HAVE_NEXTAFTER 1 | |
21062 | _ACEOF | |
7d9455ce | 21063 | |
21064 | fi | |
d213114b | 21065 | |
d213114b | 21066 | |
d213114b | 21067 | |
7d9455ce | 21068 | |
21069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 | |
21070 | $as_echo_n "checking for nextafterl... " >&6; } | |
f00f02a3 | 21071 | if ${gcc_cv_math_func_nextafterl+:} false; then : |
cd9a469c | 21072 | $as_echo_n "(cached) " >&6 |
d213114b | 21073 | else |
7d9455ce | 21074 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21075 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21076 | fi |
cd9a469c | 21077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21078 | /* end confdefs.h. */ |
21079 | ||
7d9455ce | 21080 | #ifdef HAVE_COMPLEX_H |
21081 | #include <complex.h> | |
d213114b | 21082 | #endif |
7d9455ce | 21083 | #ifdef HAVE_MATH_H |
21084 | #include <math.h> | |
21085 | #endif | |
21086 | ||
21087 | int (*ptr)() = (int (*)())nextafterl; | |
21088 | ||
d213114b | 21089 | int |
21090 | main () | |
21091 | { | |
d213114b | 21092 | return 0; |
21093 | } | |
7d9455ce | 21094 | |
d213114b | 21095 | _ACEOF |
cd9a469c | 21096 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21097 | gcc_cv_math_func_nextafterl=yes |
d213114b | 21098 | else |
7d9455ce | 21099 | gcc_cv_math_func_nextafterl=no |
d213114b | 21100 | fi |
cd9a469c | 21101 | rm -f core conftest.err conftest.$ac_objext \ |
21102 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21103 | fi |
7d9455ce | 21104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 |
21105 | $as_echo "$gcc_cv_math_func_nextafterl" >&6; } | |
21106 | if test $gcc_cv_math_func_nextafterl = yes; then | |
bd647a17 | 21107 | |
6affa8e1 | 21108 | cat >>confdefs.h <<_ACEOF |
21109 | #define HAVE_NEXTAFTERL 1 | |
21110 | _ACEOF | |
7d9455ce | 21111 | |
21112 | fi | |
21113 | ||
d213114b | 21114 | |
d213114b | 21115 | |
d213114b | 21116 | |
7d9455ce | 21117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 |
21118 | $as_echo_n "checking for powf... " >&6; } | |
f00f02a3 | 21119 | if ${gcc_cv_math_func_powf+:} false; then : |
cd9a469c | 21120 | $as_echo_n "(cached) " >&6 |
d213114b | 21121 | else |
7d9455ce | 21122 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21123 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21124 | fi |
cd9a469c | 21125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21126 | /* end confdefs.h. */ |
21127 | ||
7d9455ce | 21128 | #ifdef HAVE_COMPLEX_H |
21129 | #include <complex.h> | |
21130 | #endif | |
21131 | #ifdef HAVE_MATH_H | |
21132 | #include <math.h> | |
d213114b | 21133 | #endif |
7d9455ce | 21134 | |
21135 | int (*ptr)() = (int (*)())powf; | |
21136 | ||
d213114b | 21137 | int |
21138 | main () | |
21139 | { | |
d213114b | 21140 | return 0; |
21141 | } | |
7d9455ce | 21142 | |
d213114b | 21143 | _ACEOF |
cd9a469c | 21144 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21145 | gcc_cv_math_func_powf=yes |
d213114b | 21146 | else |
7d9455ce | 21147 | gcc_cv_math_func_powf=no |
d213114b | 21148 | fi |
cd9a469c | 21149 | rm -f core conftest.err conftest.$ac_objext \ |
21150 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21151 | fi |
7d9455ce | 21152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 |
21153 | $as_echo "$gcc_cv_math_func_powf" >&6; } | |
21154 | if test $gcc_cv_math_func_powf = yes; then | |
bd647a17 | 21155 | |
6affa8e1 | 21156 | cat >>confdefs.h <<_ACEOF |
21157 | #define HAVE_POWF 1 | |
21158 | _ACEOF | |
7d9455ce | 21159 | |
21160 | fi | |
d213114b | 21161 | |
d213114b | 21162 | |
d213114b | 21163 | |
7d9455ce | 21164 | |
21165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 | |
21166 | $as_echo_n "checking for pow... " >&6; } | |
f00f02a3 | 21167 | if ${gcc_cv_math_func_pow+:} false; then : |
cd9a469c | 21168 | $as_echo_n "(cached) " >&6 |
d213114b | 21169 | else |
7d9455ce | 21170 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21171 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21172 | fi |
cd9a469c | 21173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21174 | /* end confdefs.h. */ |
21175 | ||
7d9455ce | 21176 | #ifdef HAVE_COMPLEX_H |
21177 | #include <complex.h> | |
d213114b | 21178 | #endif |
7d9455ce | 21179 | #ifdef HAVE_MATH_H |
21180 | #include <math.h> | |
21181 | #endif | |
21182 | ||
21183 | int (*ptr)() = (int (*)())pow; | |
21184 | ||
d213114b | 21185 | int |
21186 | main () | |
21187 | { | |
d213114b | 21188 | return 0; |
21189 | } | |
7d9455ce | 21190 | |
d213114b | 21191 | _ACEOF |
cd9a469c | 21192 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21193 | gcc_cv_math_func_pow=yes |
d213114b | 21194 | else |
7d9455ce | 21195 | gcc_cv_math_func_pow=no |
d213114b | 21196 | fi |
cd9a469c | 21197 | rm -f core conftest.err conftest.$ac_objext \ |
21198 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21199 | fi |
7d9455ce | 21200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 |
21201 | $as_echo "$gcc_cv_math_func_pow" >&6; } | |
21202 | if test $gcc_cv_math_func_pow = yes; then | |
bd647a17 | 21203 | |
6affa8e1 | 21204 | cat >>confdefs.h <<_ACEOF |
21205 | #define HAVE_POW 1 | |
21206 | _ACEOF | |
d213114b | 21207 | |
7d9455ce | 21208 | fi |
d213114b | 21209 | |
d213114b | 21210 | |
7d9455ce | 21211 | |
21212 | ||
7d9455ce | 21213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 |
21214 | $as_echo_n "checking for cpowf... " >&6; } | |
f00f02a3 | 21215 | if ${gcc_cv_math_func_cpowf+:} false; then : |
cd9a469c | 21216 | $as_echo_n "(cached) " >&6 |
d213114b | 21217 | else |
7d9455ce | 21218 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21219 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21220 | fi |
cd9a469c | 21221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21222 | /* end confdefs.h. */ |
21223 | ||
7d9455ce | 21224 | #ifdef HAVE_COMPLEX_H |
21225 | #include <complex.h> | |
d213114b | 21226 | #endif |
7d9455ce | 21227 | #ifdef HAVE_MATH_H |
21228 | #include <math.h> | |
21229 | #endif | |
21230 | ||
21231 | int (*ptr)() = (int (*)())cpowf; | |
21232 | ||
d213114b | 21233 | int |
21234 | main () | |
21235 | { | |
d213114b | 21236 | return 0; |
21237 | } | |
7d9455ce | 21238 | |
d213114b | 21239 | _ACEOF |
cd9a469c | 21240 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21241 | gcc_cv_math_func_cpowf=yes |
d213114b | 21242 | else |
7d9455ce | 21243 | gcc_cv_math_func_cpowf=no |
d213114b | 21244 | fi |
cd9a469c | 21245 | rm -f core conftest.err conftest.$ac_objext \ |
21246 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21247 | fi |
7d9455ce | 21248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 |
21249 | $as_echo "$gcc_cv_math_func_cpowf" >&6; } | |
21250 | if test $gcc_cv_math_func_cpowf = yes; then | |
bd647a17 | 21251 | |
6affa8e1 | 21252 | cat >>confdefs.h <<_ACEOF |
21253 | #define HAVE_CPOWF 1 | |
21254 | _ACEOF | |
7d9455ce | 21255 | |
21256 | fi | |
21257 | ||
d213114b | 21258 | |
d213114b | 21259 | |
d213114b | 21260 | |
7d9455ce | 21261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 |
21262 | $as_echo_n "checking for cpow... " >&6; } | |
f00f02a3 | 21263 | if ${gcc_cv_math_func_cpow+:} false; then : |
cd9a469c | 21264 | $as_echo_n "(cached) " >&6 |
d213114b | 21265 | else |
7d9455ce | 21266 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21267 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21268 | fi |
cd9a469c | 21269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21270 | /* end confdefs.h. */ |
21271 | ||
7d9455ce | 21272 | #ifdef HAVE_COMPLEX_H |
21273 | #include <complex.h> | |
21274 | #endif | |
21275 | #ifdef HAVE_MATH_H | |
21276 | #include <math.h> | |
d213114b | 21277 | #endif |
7d9455ce | 21278 | |
21279 | int (*ptr)() = (int (*)())cpow; | |
21280 | ||
d213114b | 21281 | int |
21282 | main () | |
21283 | { | |
d213114b | 21284 | return 0; |
21285 | } | |
7d9455ce | 21286 | |
d213114b | 21287 | _ACEOF |
cd9a469c | 21288 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21289 | gcc_cv_math_func_cpow=yes |
d213114b | 21290 | else |
7d9455ce | 21291 | gcc_cv_math_func_cpow=no |
d213114b | 21292 | fi |
cd9a469c | 21293 | rm -f core conftest.err conftest.$ac_objext \ |
21294 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21295 | fi |
7d9455ce | 21296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 |
21297 | $as_echo "$gcc_cv_math_func_cpow" >&6; } | |
21298 | if test $gcc_cv_math_func_cpow = yes; then | |
bd647a17 | 21299 | |
6affa8e1 | 21300 | cat >>confdefs.h <<_ACEOF |
21301 | #define HAVE_CPOW 1 | |
21302 | _ACEOF | |
7d9455ce | 21303 | |
21304 | fi | |
d213114b | 21305 | |
d213114b | 21306 | |
d213114b | 21307 | |
7d9455ce | 21308 | |
21309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 | |
21310 | $as_echo_n "checking for cpowl... " >&6; } | |
f00f02a3 | 21311 | if ${gcc_cv_math_func_cpowl+:} false; then : |
cd9a469c | 21312 | $as_echo_n "(cached) " >&6 |
d213114b | 21313 | else |
7d9455ce | 21314 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21315 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21316 | fi |
cd9a469c | 21317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21318 | /* end confdefs.h. */ |
21319 | ||
7d9455ce | 21320 | #ifdef HAVE_COMPLEX_H |
21321 | #include <complex.h> | |
d213114b | 21322 | #endif |
7d9455ce | 21323 | #ifdef HAVE_MATH_H |
21324 | #include <math.h> | |
21325 | #endif | |
21326 | ||
21327 | int (*ptr)() = (int (*)())cpowl; | |
21328 | ||
d213114b | 21329 | int |
21330 | main () | |
21331 | { | |
d213114b | 21332 | return 0; |
21333 | } | |
7d9455ce | 21334 | |
d213114b | 21335 | _ACEOF |
cd9a469c | 21336 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21337 | gcc_cv_math_func_cpowl=yes |
d213114b | 21338 | else |
7d9455ce | 21339 | gcc_cv_math_func_cpowl=no |
d213114b | 21340 | fi |
cd9a469c | 21341 | rm -f core conftest.err conftest.$ac_objext \ |
21342 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21343 | fi |
7d9455ce | 21344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 |
21345 | $as_echo "$gcc_cv_math_func_cpowl" >&6; } | |
21346 | if test $gcc_cv_math_func_cpowl = yes; then | |
bd647a17 | 21347 | |
6affa8e1 | 21348 | cat >>confdefs.h <<_ACEOF |
21349 | #define HAVE_CPOWL 1 | |
21350 | _ACEOF | |
d213114b | 21351 | |
7d9455ce | 21352 | fi |
d213114b | 21353 | |
d213114b | 21354 | |
7d9455ce | 21355 | |
21356 | ||
21357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 | |
21358 | $as_echo_n "checking for roundf... " >&6; } | |
f00f02a3 | 21359 | if ${gcc_cv_math_func_roundf+:} false; then : |
cd9a469c | 21360 | $as_echo_n "(cached) " >&6 |
d213114b | 21361 | else |
7d9455ce | 21362 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21363 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21364 | fi |
cd9a469c | 21365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21366 | /* end confdefs.h. */ |
21367 | ||
7d9455ce | 21368 | #ifdef HAVE_COMPLEX_H |
21369 | #include <complex.h> | |
21370 | #endif | |
21371 | #ifdef HAVE_MATH_H | |
21372 | #include <math.h> | |
d213114b | 21373 | #endif |
7d9455ce | 21374 | |
21375 | int (*ptr)() = (int (*)())roundf; | |
21376 | ||
d213114b | 21377 | int |
21378 | main () | |
21379 | { | |
d213114b | 21380 | return 0; |
21381 | } | |
7d9455ce | 21382 | |
d213114b | 21383 | _ACEOF |
cd9a469c | 21384 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21385 | gcc_cv_math_func_roundf=yes |
d213114b | 21386 | else |
7d9455ce | 21387 | gcc_cv_math_func_roundf=no |
d213114b | 21388 | fi |
cd9a469c | 21389 | rm -f core conftest.err conftest.$ac_objext \ |
21390 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21391 | fi |
7d9455ce | 21392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 |
21393 | $as_echo "$gcc_cv_math_func_roundf" >&6; } | |
21394 | if test $gcc_cv_math_func_roundf = yes; then | |
bd647a17 | 21395 | |
6affa8e1 | 21396 | cat >>confdefs.h <<_ACEOF |
21397 | #define HAVE_ROUNDF 1 | |
21398 | _ACEOF | |
7d9455ce | 21399 | |
21400 | fi | |
d213114b | 21401 | |
d213114b | 21402 | |
d213114b | 21403 | |
7d9455ce | 21404 | |
21405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 | |
21406 | $as_echo_n "checking for round... " >&6; } | |
f00f02a3 | 21407 | if ${gcc_cv_math_func_round+:} false; then : |
cd9a469c | 21408 | $as_echo_n "(cached) " >&6 |
d213114b | 21409 | else |
7d9455ce | 21410 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21411 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21412 | fi |
cd9a469c | 21413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21414 | /* end confdefs.h. */ |
21415 | ||
7d9455ce | 21416 | #ifdef HAVE_COMPLEX_H |
21417 | #include <complex.h> | |
d213114b | 21418 | #endif |
7d9455ce | 21419 | #ifdef HAVE_MATH_H |
21420 | #include <math.h> | |
21421 | #endif | |
21422 | ||
21423 | int (*ptr)() = (int (*)())round; | |
21424 | ||
d213114b | 21425 | int |
21426 | main () | |
21427 | { | |
d213114b | 21428 | return 0; |
21429 | } | |
7d9455ce | 21430 | |
d213114b | 21431 | _ACEOF |
cd9a469c | 21432 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21433 | gcc_cv_math_func_round=yes |
d213114b | 21434 | else |
7d9455ce | 21435 | gcc_cv_math_func_round=no |
d213114b | 21436 | fi |
cd9a469c | 21437 | rm -f core conftest.err conftest.$ac_objext \ |
21438 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21439 | fi |
7d9455ce | 21440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 |
21441 | $as_echo "$gcc_cv_math_func_round" >&6; } | |
21442 | if test $gcc_cv_math_func_round = yes; then | |
bd647a17 | 21443 | |
6affa8e1 | 21444 | cat >>confdefs.h <<_ACEOF |
21445 | #define HAVE_ROUND 1 | |
21446 | _ACEOF | |
7d9455ce | 21447 | |
21448 | fi | |
21449 | ||
d213114b | 21450 | |
d213114b | 21451 | |
d213114b | 21452 | |
7d9455ce | 21453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 |
21454 | $as_echo_n "checking for roundl... " >&6; } | |
f00f02a3 | 21455 | if ${gcc_cv_math_func_roundl+:} false; then : |
cd9a469c | 21456 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21457 | else |
7d9455ce | 21458 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21459 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21460 | fi |
cd9a469c | 21461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21462 | /* end confdefs.h. */ |
21463 | ||
7d9455ce | 21464 | #ifdef HAVE_COMPLEX_H |
21465 | #include <complex.h> | |
21466 | #endif | |
21467 | #ifdef HAVE_MATH_H | |
21468 | #include <math.h> | |
ef080b63 | 21469 | #endif |
7d9455ce | 21470 | |
21471 | int (*ptr)() = (int (*)())roundl; | |
21472 | ||
ef080b63 | 21473 | int |
21474 | main () | |
21475 | { | |
ef080b63 | 21476 | return 0; |
21477 | } | |
7d9455ce | 21478 | |
ef080b63 | 21479 | _ACEOF |
cd9a469c | 21480 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21481 | gcc_cv_math_func_roundl=yes |
ef080b63 | 21482 | else |
7d9455ce | 21483 | gcc_cv_math_func_roundl=no |
ef080b63 | 21484 | fi |
cd9a469c | 21485 | rm -f core conftest.err conftest.$ac_objext \ |
21486 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21487 | fi |
7d9455ce | 21488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 |
21489 | $as_echo "$gcc_cv_math_func_roundl" >&6; } | |
21490 | if test $gcc_cv_math_func_roundl = yes; then | |
bd647a17 | 21491 | |
6affa8e1 | 21492 | cat >>confdefs.h <<_ACEOF |
21493 | #define HAVE_ROUNDL 1 | |
21494 | _ACEOF | |
7d9455ce | 21495 | |
21496 | fi | |
ef080b63 | 21497 | |
ef080b63 | 21498 | |
ef080b63 | 21499 | |
7d9455ce | 21500 | |
21501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 | |
21502 | $as_echo_n "checking for lroundf... " >&6; } | |
f00f02a3 | 21503 | if ${gcc_cv_math_func_lroundf+:} false; then : |
cd9a469c | 21504 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21505 | else |
7d9455ce | 21506 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21507 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21508 | fi |
cd9a469c | 21509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21510 | /* end confdefs.h. */ |
21511 | ||
7d9455ce | 21512 | #ifdef HAVE_COMPLEX_H |
21513 | #include <complex.h> | |
ef080b63 | 21514 | #endif |
7d9455ce | 21515 | #ifdef HAVE_MATH_H |
21516 | #include <math.h> | |
21517 | #endif | |
21518 | ||
21519 | int (*ptr)() = (int (*)())lroundf; | |
21520 | ||
ef080b63 | 21521 | int |
21522 | main () | |
21523 | { | |
ef080b63 | 21524 | return 0; |
21525 | } | |
7d9455ce | 21526 | |
ef080b63 | 21527 | _ACEOF |
cd9a469c | 21528 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21529 | gcc_cv_math_func_lroundf=yes |
ef080b63 | 21530 | else |
7d9455ce | 21531 | gcc_cv_math_func_lroundf=no |
ef080b63 | 21532 | fi |
cd9a469c | 21533 | rm -f core conftest.err conftest.$ac_objext \ |
21534 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21535 | fi |
7d9455ce | 21536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 |
21537 | $as_echo "$gcc_cv_math_func_lroundf" >&6; } | |
21538 | if test $gcc_cv_math_func_lroundf = yes; then | |
bd647a17 | 21539 | |
6affa8e1 | 21540 | cat >>confdefs.h <<_ACEOF |
21541 | #define HAVE_LROUNDF 1 | |
21542 | _ACEOF | |
ef080b63 | 21543 | |
7d9455ce | 21544 | fi |
ef080b63 | 21545 | |
ef080b63 | 21546 | |
7d9455ce | 21547 | |
21548 | ||
21549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 | |
21550 | $as_echo_n "checking for lround... " >&6; } | |
f00f02a3 | 21551 | if ${gcc_cv_math_func_lround+:} false; then : |
cd9a469c | 21552 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21553 | else |
7d9455ce | 21554 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21555 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21556 | fi |
cd9a469c | 21557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21558 | /* end confdefs.h. */ |
21559 | ||
7d9455ce | 21560 | #ifdef HAVE_COMPLEX_H |
21561 | #include <complex.h> | |
21562 | #endif | |
21563 | #ifdef HAVE_MATH_H | |
21564 | #include <math.h> | |
ef080b63 | 21565 | #endif |
7d9455ce | 21566 | |
21567 | int (*ptr)() = (int (*)())lround; | |
21568 | ||
ef080b63 | 21569 | int |
21570 | main () | |
21571 | { | |
ef080b63 | 21572 | return 0; |
21573 | } | |
7d9455ce | 21574 | |
ef080b63 | 21575 | _ACEOF |
cd9a469c | 21576 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21577 | gcc_cv_math_func_lround=yes |
ef080b63 | 21578 | else |
7d9455ce | 21579 | gcc_cv_math_func_lround=no |
ef080b63 | 21580 | fi |
cd9a469c | 21581 | rm -f core conftest.err conftest.$ac_objext \ |
21582 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21583 | fi |
7d9455ce | 21584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 |
21585 | $as_echo "$gcc_cv_math_func_lround" >&6; } | |
21586 | if test $gcc_cv_math_func_lround = yes; then | |
bd647a17 | 21587 | |
6affa8e1 | 21588 | cat >>confdefs.h <<_ACEOF |
21589 | #define HAVE_LROUND 1 | |
21590 | _ACEOF | |
7d9455ce | 21591 | |
21592 | fi | |
21593 | ||
ef080b63 | 21594 | |
ef080b63 | 21595 | |
ef080b63 | 21596 | |
7d9455ce | 21597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 |
21598 | $as_echo_n "checking for lroundl... " >&6; } | |
f00f02a3 | 21599 | if ${gcc_cv_math_func_lroundl+:} false; then : |
cd9a469c | 21600 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21601 | else |
7d9455ce | 21602 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21603 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21604 | fi |
cd9a469c | 21605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21606 | /* end confdefs.h. */ |
21607 | ||
7d9455ce | 21608 | #ifdef HAVE_COMPLEX_H |
21609 | #include <complex.h> | |
21610 | #endif | |
21611 | #ifdef HAVE_MATH_H | |
21612 | #include <math.h> | |
ef080b63 | 21613 | #endif |
7d9455ce | 21614 | |
21615 | int (*ptr)() = (int (*)())lroundl; | |
21616 | ||
ef080b63 | 21617 | int |
21618 | main () | |
21619 | { | |
ef080b63 | 21620 | return 0; |
21621 | } | |
7d9455ce | 21622 | |
ef080b63 | 21623 | _ACEOF |
cd9a469c | 21624 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21625 | gcc_cv_math_func_lroundl=yes |
ef080b63 | 21626 | else |
7d9455ce | 21627 | gcc_cv_math_func_lroundl=no |
ef080b63 | 21628 | fi |
cd9a469c | 21629 | rm -f core conftest.err conftest.$ac_objext \ |
21630 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21631 | fi |
7d9455ce | 21632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 |
21633 | $as_echo "$gcc_cv_math_func_lroundl" >&6; } | |
21634 | if test $gcc_cv_math_func_lroundl = yes; then | |
bd647a17 | 21635 | |
6affa8e1 | 21636 | cat >>confdefs.h <<_ACEOF |
21637 | #define HAVE_LROUNDL 1 | |
21638 | _ACEOF | |
ef080b63 | 21639 | |
7d9455ce | 21640 | fi |
ef080b63 | 21641 | |
ef080b63 | 21642 | |
7d9455ce | 21643 | |
21644 | ||
21645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 | |
21646 | $as_echo_n "checking for llroundf... " >&6; } | |
f00f02a3 | 21647 | if ${gcc_cv_math_func_llroundf+:} false; then : |
cd9a469c | 21648 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21649 | else |
7d9455ce | 21650 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21651 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21652 | fi |
cd9a469c | 21653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21654 | /* end confdefs.h. */ |
21655 | ||
7d9455ce | 21656 | #ifdef HAVE_COMPLEX_H |
21657 | #include <complex.h> | |
ef080b63 | 21658 | #endif |
7d9455ce | 21659 | #ifdef HAVE_MATH_H |
21660 | #include <math.h> | |
21661 | #endif | |
21662 | ||
21663 | int (*ptr)() = (int (*)())llroundf; | |
21664 | ||
ef080b63 | 21665 | int |
21666 | main () | |
21667 | { | |
ef080b63 | 21668 | return 0; |
21669 | } | |
7d9455ce | 21670 | |
ef080b63 | 21671 | _ACEOF |
cd9a469c | 21672 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21673 | gcc_cv_math_func_llroundf=yes |
ef080b63 | 21674 | else |
7d9455ce | 21675 | gcc_cv_math_func_llroundf=no |
ef080b63 | 21676 | fi |
cd9a469c | 21677 | rm -f core conftest.err conftest.$ac_objext \ |
21678 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21679 | fi |
7d9455ce | 21680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 |
21681 | $as_echo "$gcc_cv_math_func_llroundf" >&6; } | |
21682 | if test $gcc_cv_math_func_llroundf = yes; then | |
bd647a17 | 21683 | |
6affa8e1 | 21684 | cat >>confdefs.h <<_ACEOF |
21685 | #define HAVE_LLROUNDF 1 | |
21686 | _ACEOF | |
ef080b63 | 21687 | |
7d9455ce | 21688 | fi |
ef080b63 | 21689 | |
ef080b63 | 21690 | |
7d9455ce | 21691 | |
21692 | ||
21693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 | |
21694 | $as_echo_n "checking for llround... " >&6; } | |
f00f02a3 | 21695 | if ${gcc_cv_math_func_llround+:} false; then : |
cd9a469c | 21696 | $as_echo_n "(cached) " >&6 |
ef080b63 | 21697 | else |
7d9455ce | 21698 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21699 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21700 | fi |
cd9a469c | 21701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21702 | /* end confdefs.h. */ |
21703 | ||
7d9455ce | 21704 | #ifdef HAVE_COMPLEX_H |
21705 | #include <complex.h> | |
21706 | #endif | |
21707 | #ifdef HAVE_MATH_H | |
21708 | #include <math.h> | |
ef080b63 | 21709 | #endif |
7d9455ce | 21710 | |
21711 | int (*ptr)() = (int (*)())llround; | |
21712 | ||
ef080b63 | 21713 | int |
21714 | main () | |
21715 | { | |
ef080b63 | 21716 | return 0; |
21717 | } | |
7d9455ce | 21718 | |
ef080b63 | 21719 | _ACEOF |
cd9a469c | 21720 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21721 | gcc_cv_math_func_llround=yes |
ef080b63 | 21722 | else |
7d9455ce | 21723 | gcc_cv_math_func_llround=no |
ef080b63 | 21724 | fi |
cd9a469c | 21725 | rm -f core conftest.err conftest.$ac_objext \ |
21726 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21727 | fi |
7d9455ce | 21728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 |
21729 | $as_echo "$gcc_cv_math_func_llround" >&6; } | |
21730 | if test $gcc_cv_math_func_llround = yes; then | |
bd647a17 | 21731 | |
6affa8e1 | 21732 | cat >>confdefs.h <<_ACEOF |
21733 | #define HAVE_LLROUND 1 | |
21734 | _ACEOF | |
7d9455ce | 21735 | |
21736 | fi | |
21737 | ||
ef080b63 | 21738 | |
ef080b63 | 21739 | |
ef080b63 | 21740 | |
7d9455ce | 21741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 |
21742 | $as_echo_n "checking for llroundl... " >&6; } | |
f00f02a3 | 21743 | if ${gcc_cv_math_func_llroundl+:} false; then : |
cd9a469c | 21744 | $as_echo_n "(cached) " >&6 |
d213114b | 21745 | else |
7d9455ce | 21746 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21747 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21748 | fi |
cd9a469c | 21749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21750 | /* end confdefs.h. */ |
21751 | ||
7d9455ce | 21752 | #ifdef HAVE_COMPLEX_H |
21753 | #include <complex.h> | |
21754 | #endif | |
21755 | #ifdef HAVE_MATH_H | |
21756 | #include <math.h> | |
d213114b | 21757 | #endif |
7d9455ce | 21758 | |
21759 | int (*ptr)() = (int (*)())llroundl; | |
21760 | ||
d213114b | 21761 | int |
21762 | main () | |
21763 | { | |
d213114b | 21764 | return 0; |
21765 | } | |
7d9455ce | 21766 | |
d213114b | 21767 | _ACEOF |
cd9a469c | 21768 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21769 | gcc_cv_math_func_llroundl=yes |
d213114b | 21770 | else |
7d9455ce | 21771 | gcc_cv_math_func_llroundl=no |
d213114b | 21772 | fi |
cd9a469c | 21773 | rm -f core conftest.err conftest.$ac_objext \ |
21774 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21775 | fi |
7d9455ce | 21776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 |
21777 | $as_echo "$gcc_cv_math_func_llroundl" >&6; } | |
21778 | if test $gcc_cv_math_func_llroundl = yes; then | |
bd647a17 | 21779 | |
6affa8e1 | 21780 | cat >>confdefs.h <<_ACEOF |
21781 | #define HAVE_LLROUNDL 1 | |
21782 | _ACEOF | |
d213114b | 21783 | |
7d9455ce | 21784 | fi |
d213114b | 21785 | |
d213114b | 21786 | |
7d9455ce | 21787 | |
21788 | ||
21789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 | |
21790 | $as_echo_n "checking for scalbnf... " >&6; } | |
f00f02a3 | 21791 | if ${gcc_cv_math_func_scalbnf+:} false; then : |
cd9a469c | 21792 | $as_echo_n "(cached) " >&6 |
d213114b | 21793 | else |
7d9455ce | 21794 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21795 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21796 | fi |
cd9a469c | 21797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21798 | /* end confdefs.h. */ |
21799 | ||
7d9455ce | 21800 | #ifdef HAVE_COMPLEX_H |
21801 | #include <complex.h> | |
d213114b | 21802 | #endif |
7d9455ce | 21803 | #ifdef HAVE_MATH_H |
21804 | #include <math.h> | |
21805 | #endif | |
21806 | ||
21807 | int (*ptr)() = (int (*)())scalbnf; | |
21808 | ||
d213114b | 21809 | int |
21810 | main () | |
21811 | { | |
d213114b | 21812 | return 0; |
21813 | } | |
7d9455ce | 21814 | |
d213114b | 21815 | _ACEOF |
cd9a469c | 21816 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21817 | gcc_cv_math_func_scalbnf=yes |
d213114b | 21818 | else |
7d9455ce | 21819 | gcc_cv_math_func_scalbnf=no |
d213114b | 21820 | fi |
cd9a469c | 21821 | rm -f core conftest.err conftest.$ac_objext \ |
21822 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21823 | fi |
7d9455ce | 21824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 |
21825 | $as_echo "$gcc_cv_math_func_scalbnf" >&6; } | |
21826 | if test $gcc_cv_math_func_scalbnf = yes; then | |
bd647a17 | 21827 | |
6affa8e1 | 21828 | cat >>confdefs.h <<_ACEOF |
21829 | #define HAVE_SCALBNF 1 | |
21830 | _ACEOF | |
d213114b | 21831 | |
7d9455ce | 21832 | fi |
d213114b | 21833 | |
d213114b | 21834 | |
7d9455ce | 21835 | |
21836 | ||
21837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 | |
21838 | $as_echo_n "checking for scalbn... " >&6; } | |
f00f02a3 | 21839 | if ${gcc_cv_math_func_scalbn+:} false; then : |
cd9a469c | 21840 | $as_echo_n "(cached) " >&6 |
d213114b | 21841 | else |
7d9455ce | 21842 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21843 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21844 | fi |
cd9a469c | 21845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21846 | /* end confdefs.h. */ |
21847 | ||
7d9455ce | 21848 | #ifdef HAVE_COMPLEX_H |
21849 | #include <complex.h> | |
21850 | #endif | |
21851 | #ifdef HAVE_MATH_H | |
21852 | #include <math.h> | |
d213114b | 21853 | #endif |
7d9455ce | 21854 | |
21855 | int (*ptr)() = (int (*)())scalbn; | |
21856 | ||
d213114b | 21857 | int |
21858 | main () | |
21859 | { | |
d213114b | 21860 | return 0; |
21861 | } | |
7d9455ce | 21862 | |
d213114b | 21863 | _ACEOF |
cd9a469c | 21864 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21865 | gcc_cv_math_func_scalbn=yes |
d213114b | 21866 | else |
7d9455ce | 21867 | gcc_cv_math_func_scalbn=no |
d213114b | 21868 | fi |
cd9a469c | 21869 | rm -f core conftest.err conftest.$ac_objext \ |
21870 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21871 | fi |
7d9455ce | 21872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 |
21873 | $as_echo "$gcc_cv_math_func_scalbn" >&6; } | |
21874 | if test $gcc_cv_math_func_scalbn = yes; then | |
bd647a17 | 21875 | |
6affa8e1 | 21876 | cat >>confdefs.h <<_ACEOF |
21877 | #define HAVE_SCALBN 1 | |
21878 | _ACEOF | |
7d9455ce | 21879 | |
21880 | fi | |
21881 | ||
d213114b | 21882 | |
d213114b | 21883 | |
d213114b | 21884 | |
7d9455ce | 21885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 |
21886 | $as_echo_n "checking for scalbnl... " >&6; } | |
f00f02a3 | 21887 | if ${gcc_cv_math_func_scalbnl+:} false; then : |
cd9a469c | 21888 | $as_echo_n "(cached) " >&6 |
d213114b | 21889 | else |
7d9455ce | 21890 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21891 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21892 | fi |
cd9a469c | 21893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21894 | /* end confdefs.h. */ |
21895 | ||
7d9455ce | 21896 | #ifdef HAVE_COMPLEX_H |
21897 | #include <complex.h> | |
21898 | #endif | |
21899 | #ifdef HAVE_MATH_H | |
21900 | #include <math.h> | |
d213114b | 21901 | #endif |
7d9455ce | 21902 | |
21903 | int (*ptr)() = (int (*)())scalbnl; | |
21904 | ||
d213114b | 21905 | int |
21906 | main () | |
21907 | { | |
d213114b | 21908 | return 0; |
21909 | } | |
7d9455ce | 21910 | |
d213114b | 21911 | _ACEOF |
cd9a469c | 21912 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21913 | gcc_cv_math_func_scalbnl=yes |
d213114b | 21914 | else |
7d9455ce | 21915 | gcc_cv_math_func_scalbnl=no |
d213114b | 21916 | fi |
cd9a469c | 21917 | rm -f core conftest.err conftest.$ac_objext \ |
21918 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21919 | fi |
7d9455ce | 21920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 |
21921 | $as_echo "$gcc_cv_math_func_scalbnl" >&6; } | |
21922 | if test $gcc_cv_math_func_scalbnl = yes; then | |
bd647a17 | 21923 | |
6affa8e1 | 21924 | cat >>confdefs.h <<_ACEOF |
21925 | #define HAVE_SCALBNL 1 | |
21926 | _ACEOF | |
d213114b | 21927 | |
7d9455ce | 21928 | fi |
d213114b | 21929 | |
d213114b | 21930 | |
7d9455ce | 21931 | |
21932 | ||
21933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 | |
21934 | $as_echo_n "checking for sinf... " >&6; } | |
f00f02a3 | 21935 | if ${gcc_cv_math_func_sinf+:} false; then : |
cd9a469c | 21936 | $as_echo_n "(cached) " >&6 |
d213114b | 21937 | else |
7d9455ce | 21938 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21939 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21940 | fi |
cd9a469c | 21941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21942 | /* end confdefs.h. */ |
21943 | ||
7d9455ce | 21944 | #ifdef HAVE_COMPLEX_H |
21945 | #include <complex.h> | |
d213114b | 21946 | #endif |
7d9455ce | 21947 | #ifdef HAVE_MATH_H |
21948 | #include <math.h> | |
21949 | #endif | |
21950 | ||
21951 | int (*ptr)() = (int (*)())sinf; | |
21952 | ||
d213114b | 21953 | int |
21954 | main () | |
21955 | { | |
d213114b | 21956 | return 0; |
21957 | } | |
7d9455ce | 21958 | |
d213114b | 21959 | _ACEOF |
cd9a469c | 21960 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 21961 | gcc_cv_math_func_sinf=yes |
d213114b | 21962 | else |
7d9455ce | 21963 | gcc_cv_math_func_sinf=no |
d213114b | 21964 | fi |
cd9a469c | 21965 | rm -f core conftest.err conftest.$ac_objext \ |
21966 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21967 | fi |
7d9455ce | 21968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 |
21969 | $as_echo "$gcc_cv_math_func_sinf" >&6; } | |
21970 | if test $gcc_cv_math_func_sinf = yes; then | |
bd647a17 | 21971 | |
6affa8e1 | 21972 | cat >>confdefs.h <<_ACEOF |
21973 | #define HAVE_SINF 1 | |
21974 | _ACEOF | |
d213114b | 21975 | |
7d9455ce | 21976 | fi |
d213114b | 21977 | |
d213114b | 21978 | |
7d9455ce | 21979 | |
21980 | ||
21981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 | |
21982 | $as_echo_n "checking for sin... " >&6; } | |
f00f02a3 | 21983 | if ${gcc_cv_math_func_sin+:} false; then : |
cd9a469c | 21984 | $as_echo_n "(cached) " >&6 |
d213114b | 21985 | else |
7d9455ce | 21986 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 21987 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21988 | fi |
cd9a469c | 21989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21990 | /* end confdefs.h. */ |
21991 | ||
7d9455ce | 21992 | #ifdef HAVE_COMPLEX_H |
21993 | #include <complex.h> | |
d213114b | 21994 | #endif |
7d9455ce | 21995 | #ifdef HAVE_MATH_H |
21996 | #include <math.h> | |
21997 | #endif | |
21998 | ||
21999 | int (*ptr)() = (int (*)())sin; | |
22000 | ||
d213114b | 22001 | int |
22002 | main () | |
22003 | { | |
d213114b | 22004 | return 0; |
22005 | } | |
7d9455ce | 22006 | |
d213114b | 22007 | _ACEOF |
cd9a469c | 22008 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22009 | gcc_cv_math_func_sin=yes |
d213114b | 22010 | else |
7d9455ce | 22011 | gcc_cv_math_func_sin=no |
d213114b | 22012 | fi |
cd9a469c | 22013 | rm -f core conftest.err conftest.$ac_objext \ |
22014 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22015 | fi |
7d9455ce | 22016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 |
22017 | $as_echo "$gcc_cv_math_func_sin" >&6; } | |
22018 | if test $gcc_cv_math_func_sin = yes; then | |
bd647a17 | 22019 | |
6affa8e1 | 22020 | cat >>confdefs.h <<_ACEOF |
22021 | #define HAVE_SIN 1 | |
22022 | _ACEOF | |
7d9455ce | 22023 | |
22024 | fi | |
22025 | ||
d213114b | 22026 | |
d213114b | 22027 | |
d213114b | 22028 | |
7d9455ce | 22029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 |
22030 | $as_echo_n "checking for sinl... " >&6; } | |
f00f02a3 | 22031 | if ${gcc_cv_math_func_sinl+:} false; then : |
cd9a469c | 22032 | $as_echo_n "(cached) " >&6 |
d213114b | 22033 | else |
7d9455ce | 22034 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22035 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22036 | fi |
cd9a469c | 22037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22038 | /* end confdefs.h. */ |
22039 | ||
7d9455ce | 22040 | #ifdef HAVE_COMPLEX_H |
22041 | #include <complex.h> | |
d213114b | 22042 | #endif |
7d9455ce | 22043 | #ifdef HAVE_MATH_H |
22044 | #include <math.h> | |
22045 | #endif | |
22046 | ||
22047 | int (*ptr)() = (int (*)())sinl; | |
22048 | ||
d213114b | 22049 | int |
22050 | main () | |
22051 | { | |
cd9a469c | 22052 | return 0; |
22053 | } | |
7d9455ce | 22054 | |
cd9a469c | 22055 | _ACEOF |
22056 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 22057 | gcc_cv_math_func_sinl=yes |
d213114b | 22058 | else |
7d9455ce | 22059 | gcc_cv_math_func_sinl=no |
d213114b | 22060 | fi |
cd9a469c | 22061 | rm -f core conftest.err conftest.$ac_objext \ |
22062 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22063 | fi |
7d9455ce | 22064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 |
22065 | $as_echo "$gcc_cv_math_func_sinl" >&6; } | |
22066 | if test $gcc_cv_math_func_sinl = yes; then | |
bd647a17 | 22067 | |
6affa8e1 | 22068 | cat >>confdefs.h <<_ACEOF |
22069 | #define HAVE_SINL 1 | |
22070 | _ACEOF | |
7d9455ce | 22071 | |
22072 | fi | |
d213114b | 22073 | |
d213114b | 22074 | |
d213114b | 22075 | |
7d9455ce | 22076 | |
22077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 | |
22078 | $as_echo_n "checking for csinf... " >&6; } | |
f00f02a3 | 22079 | if ${gcc_cv_math_func_csinf+:} false; then : |
cd9a469c | 22080 | $as_echo_n "(cached) " >&6 |
d213114b | 22081 | else |
7d9455ce | 22082 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22083 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22084 | fi |
cd9a469c | 22085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22086 | /* end confdefs.h. */ |
22087 | ||
7d9455ce | 22088 | #ifdef HAVE_COMPLEX_H |
22089 | #include <complex.h> | |
22090 | #endif | |
22091 | #ifdef HAVE_MATH_H | |
22092 | #include <math.h> | |
d213114b | 22093 | #endif |
7d9455ce | 22094 | |
22095 | int (*ptr)() = (int (*)())csinf; | |
22096 | ||
d213114b | 22097 | int |
22098 | main () | |
22099 | { | |
d213114b | 22100 | return 0; |
22101 | } | |
7d9455ce | 22102 | |
d213114b | 22103 | _ACEOF |
cd9a469c | 22104 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22105 | gcc_cv_math_func_csinf=yes |
d213114b | 22106 | else |
7d9455ce | 22107 | gcc_cv_math_func_csinf=no |
d213114b | 22108 | fi |
cd9a469c | 22109 | rm -f core conftest.err conftest.$ac_objext \ |
22110 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22111 | fi |
7d9455ce | 22112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 |
22113 | $as_echo "$gcc_cv_math_func_csinf" >&6; } | |
22114 | if test $gcc_cv_math_func_csinf = yes; then | |
bd647a17 | 22115 | |
6affa8e1 | 22116 | cat >>confdefs.h <<_ACEOF |
22117 | #define HAVE_CSINF 1 | |
22118 | _ACEOF | |
d213114b | 22119 | |
7d9455ce | 22120 | fi |
d213114b | 22121 | |
d213114b | 22122 | |
7d9455ce | 22123 | |
22124 | ||
22125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 | |
22126 | $as_echo_n "checking for csin... " >&6; } | |
f00f02a3 | 22127 | if ${gcc_cv_math_func_csin+:} false; then : |
cd9a469c | 22128 | $as_echo_n "(cached) " >&6 |
d213114b | 22129 | else |
7d9455ce | 22130 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22131 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22132 | fi |
cd9a469c | 22133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22134 | /* end confdefs.h. */ |
22135 | ||
7d9455ce | 22136 | #ifdef HAVE_COMPLEX_H |
22137 | #include <complex.h> | |
d213114b | 22138 | #endif |
7d9455ce | 22139 | #ifdef HAVE_MATH_H |
22140 | #include <math.h> | |
22141 | #endif | |
22142 | ||
22143 | int (*ptr)() = (int (*)())csin; | |
22144 | ||
d213114b | 22145 | int |
22146 | main () | |
22147 | { | |
d213114b | 22148 | return 0; |
22149 | } | |
7d9455ce | 22150 | |
d213114b | 22151 | _ACEOF |
cd9a469c | 22152 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22153 | gcc_cv_math_func_csin=yes |
d213114b | 22154 | else |
7d9455ce | 22155 | gcc_cv_math_func_csin=no |
d213114b | 22156 | fi |
cd9a469c | 22157 | rm -f core conftest.err conftest.$ac_objext \ |
22158 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22159 | fi |
7d9455ce | 22160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 |
22161 | $as_echo "$gcc_cv_math_func_csin" >&6; } | |
22162 | if test $gcc_cv_math_func_csin = yes; then | |
bd647a17 | 22163 | |
6affa8e1 | 22164 | cat >>confdefs.h <<_ACEOF |
22165 | #define HAVE_CSIN 1 | |
22166 | _ACEOF | |
7d9455ce | 22167 | |
22168 | fi | |
22169 | ||
d213114b | 22170 | |
d213114b | 22171 | |
d213114b | 22172 | |
7d9455ce | 22173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 |
22174 | $as_echo_n "checking for csinl... " >&6; } | |
f00f02a3 | 22175 | if ${gcc_cv_math_func_csinl+:} false; then : |
cd9a469c | 22176 | $as_echo_n "(cached) " >&6 |
d213114b | 22177 | else |
7d9455ce | 22178 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22179 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22180 | fi |
cd9a469c | 22181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22182 | /* end confdefs.h. */ |
22183 | ||
7d9455ce | 22184 | #ifdef HAVE_COMPLEX_H |
22185 | #include <complex.h> | |
d213114b | 22186 | #endif |
7d9455ce | 22187 | #ifdef HAVE_MATH_H |
22188 | #include <math.h> | |
22189 | #endif | |
22190 | ||
22191 | int (*ptr)() = (int (*)())csinl; | |
22192 | ||
d213114b | 22193 | int |
22194 | main () | |
22195 | { | |
d213114b | 22196 | return 0; |
22197 | } | |
7d9455ce | 22198 | |
d213114b | 22199 | _ACEOF |
cd9a469c | 22200 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22201 | gcc_cv_math_func_csinl=yes |
d213114b | 22202 | else |
7d9455ce | 22203 | gcc_cv_math_func_csinl=no |
d213114b | 22204 | fi |
cd9a469c | 22205 | rm -f core conftest.err conftest.$ac_objext \ |
22206 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22207 | fi |
7d9455ce | 22208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 |
22209 | $as_echo "$gcc_cv_math_func_csinl" >&6; } | |
22210 | if test $gcc_cv_math_func_csinl = yes; then | |
bd647a17 | 22211 | |
6affa8e1 | 22212 | cat >>confdefs.h <<_ACEOF |
22213 | #define HAVE_CSINL 1 | |
22214 | _ACEOF | |
7d9455ce | 22215 | |
22216 | fi | |
d213114b | 22217 | |
d213114b | 22218 | |
d213114b | 22219 | |
7d9455ce | 22220 | |
22221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 | |
22222 | $as_echo_n "checking for sinhf... " >&6; } | |
f00f02a3 | 22223 | if ${gcc_cv_math_func_sinhf+:} false; then : |
cd9a469c | 22224 | $as_echo_n "(cached) " >&6 |
d213114b | 22225 | else |
7d9455ce | 22226 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22227 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22228 | fi |
cd9a469c | 22229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22230 | /* end confdefs.h. */ |
22231 | ||
7d9455ce | 22232 | #ifdef HAVE_COMPLEX_H |
22233 | #include <complex.h> | |
22234 | #endif | |
22235 | #ifdef HAVE_MATH_H | |
22236 | #include <math.h> | |
d213114b | 22237 | #endif |
7d9455ce | 22238 | |
22239 | int (*ptr)() = (int (*)())sinhf; | |
22240 | ||
d213114b | 22241 | int |
22242 | main () | |
22243 | { | |
d213114b | 22244 | return 0; |
22245 | } | |
7d9455ce | 22246 | |
d213114b | 22247 | _ACEOF |
cd9a469c | 22248 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22249 | gcc_cv_math_func_sinhf=yes |
d213114b | 22250 | else |
7d9455ce | 22251 | gcc_cv_math_func_sinhf=no |
d213114b | 22252 | fi |
cd9a469c | 22253 | rm -f core conftest.err conftest.$ac_objext \ |
22254 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22255 | fi |
7d9455ce | 22256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 |
22257 | $as_echo "$gcc_cv_math_func_sinhf" >&6; } | |
22258 | if test $gcc_cv_math_func_sinhf = yes; then | |
bd647a17 | 22259 | |
6affa8e1 | 22260 | cat >>confdefs.h <<_ACEOF |
22261 | #define HAVE_SINHF 1 | |
22262 | _ACEOF | |
d213114b | 22263 | |
7d9455ce | 22264 | fi |
d213114b | 22265 | |
d213114b | 22266 | |
7d9455ce | 22267 | |
22268 | ||
22269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 | |
22270 | $as_echo_n "checking for sinh... " >&6; } | |
f00f02a3 | 22271 | if ${gcc_cv_math_func_sinh+:} false; then : |
cd9a469c | 22272 | $as_echo_n "(cached) " >&6 |
d213114b | 22273 | else |
7d9455ce | 22274 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22275 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22276 | fi |
cd9a469c | 22277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22278 | /* end confdefs.h. */ |
22279 | ||
7d9455ce | 22280 | #ifdef HAVE_COMPLEX_H |
22281 | #include <complex.h> | |
d213114b | 22282 | #endif |
7d9455ce | 22283 | #ifdef HAVE_MATH_H |
22284 | #include <math.h> | |
22285 | #endif | |
22286 | ||
22287 | int (*ptr)() = (int (*)())sinh; | |
22288 | ||
d213114b | 22289 | int |
22290 | main () | |
22291 | { | |
d213114b | 22292 | return 0; |
22293 | } | |
7d9455ce | 22294 | |
d213114b | 22295 | _ACEOF |
cd9a469c | 22296 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22297 | gcc_cv_math_func_sinh=yes |
d213114b | 22298 | else |
7d9455ce | 22299 | gcc_cv_math_func_sinh=no |
d213114b | 22300 | fi |
cd9a469c | 22301 | rm -f core conftest.err conftest.$ac_objext \ |
22302 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22303 | fi |
7d9455ce | 22304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 |
22305 | $as_echo "$gcc_cv_math_func_sinh" >&6; } | |
22306 | if test $gcc_cv_math_func_sinh = yes; then | |
bd647a17 | 22307 | |
6affa8e1 | 22308 | cat >>confdefs.h <<_ACEOF |
22309 | #define HAVE_SINH 1 | |
22310 | _ACEOF | |
7d9455ce | 22311 | |
22312 | fi | |
22313 | ||
d213114b | 22314 | |
d213114b | 22315 | |
d213114b | 22316 | |
7d9455ce | 22317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 |
22318 | $as_echo_n "checking for sinhl... " >&6; } | |
f00f02a3 | 22319 | if ${gcc_cv_math_func_sinhl+:} false; then : |
cd9a469c | 22320 | $as_echo_n "(cached) " >&6 |
d213114b | 22321 | else |
7d9455ce | 22322 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22323 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22324 | fi |
cd9a469c | 22325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22326 | /* end confdefs.h. */ |
22327 | ||
7d9455ce | 22328 | #ifdef HAVE_COMPLEX_H |
22329 | #include <complex.h> | |
d213114b | 22330 | #endif |
7d9455ce | 22331 | #ifdef HAVE_MATH_H |
22332 | #include <math.h> | |
22333 | #endif | |
22334 | ||
22335 | int (*ptr)() = (int (*)())sinhl; | |
22336 | ||
d213114b | 22337 | int |
22338 | main () | |
22339 | { | |
d213114b | 22340 | return 0; |
22341 | } | |
7d9455ce | 22342 | |
d213114b | 22343 | _ACEOF |
cd9a469c | 22344 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22345 | gcc_cv_math_func_sinhl=yes |
d213114b | 22346 | else |
7d9455ce | 22347 | gcc_cv_math_func_sinhl=no |
d213114b | 22348 | fi |
cd9a469c | 22349 | rm -f core conftest.err conftest.$ac_objext \ |
22350 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22351 | fi |
7d9455ce | 22352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 |
22353 | $as_echo "$gcc_cv_math_func_sinhl" >&6; } | |
22354 | if test $gcc_cv_math_func_sinhl = yes; then | |
bd647a17 | 22355 | |
6affa8e1 | 22356 | cat >>confdefs.h <<_ACEOF |
22357 | #define HAVE_SINHL 1 | |
22358 | _ACEOF | |
7d9455ce | 22359 | |
22360 | fi | |
d213114b | 22361 | |
d213114b | 22362 | |
d213114b | 22363 | |
7d9455ce | 22364 | |
22365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 | |
22366 | $as_echo_n "checking for csinhf... " >&6; } | |
f00f02a3 | 22367 | if ${gcc_cv_math_func_csinhf+:} false; then : |
cd9a469c | 22368 | $as_echo_n "(cached) " >&6 |
d213114b | 22369 | else |
7d9455ce | 22370 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22371 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22372 | fi |
cd9a469c | 22373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22374 | /* end confdefs.h. */ |
22375 | ||
7d9455ce | 22376 | #ifdef HAVE_COMPLEX_H |
22377 | #include <complex.h> | |
22378 | #endif | |
22379 | #ifdef HAVE_MATH_H | |
22380 | #include <math.h> | |
d213114b | 22381 | #endif |
7d9455ce | 22382 | |
22383 | int (*ptr)() = (int (*)())csinhf; | |
22384 | ||
d213114b | 22385 | int |
22386 | main () | |
22387 | { | |
d213114b | 22388 | return 0; |
22389 | } | |
7d9455ce | 22390 | |
d213114b | 22391 | _ACEOF |
cd9a469c | 22392 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22393 | gcc_cv_math_func_csinhf=yes |
d213114b | 22394 | else |
7d9455ce | 22395 | gcc_cv_math_func_csinhf=no |
d213114b | 22396 | fi |
cd9a469c | 22397 | rm -f core conftest.err conftest.$ac_objext \ |
22398 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22399 | fi |
7d9455ce | 22400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 |
22401 | $as_echo "$gcc_cv_math_func_csinhf" >&6; } | |
22402 | if test $gcc_cv_math_func_csinhf = yes; then | |
bd647a17 | 22403 | |
6affa8e1 | 22404 | cat >>confdefs.h <<_ACEOF |
22405 | #define HAVE_CSINHF 1 | |
22406 | _ACEOF | |
d213114b | 22407 | |
7d9455ce | 22408 | fi |
d213114b | 22409 | |
d213114b | 22410 | |
7d9455ce | 22411 | |
22412 | ||
22413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 | |
22414 | $as_echo_n "checking for csinh... " >&6; } | |
f00f02a3 | 22415 | if ${gcc_cv_math_func_csinh+:} false; then : |
cd9a469c | 22416 | $as_echo_n "(cached) " >&6 |
d213114b | 22417 | else |
7d9455ce | 22418 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22419 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22420 | fi |
cd9a469c | 22421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22422 | /* end confdefs.h. */ |
22423 | ||
7d9455ce | 22424 | #ifdef HAVE_COMPLEX_H |
22425 | #include <complex.h> | |
d213114b | 22426 | #endif |
7d9455ce | 22427 | #ifdef HAVE_MATH_H |
22428 | #include <math.h> | |
22429 | #endif | |
22430 | ||
22431 | int (*ptr)() = (int (*)())csinh; | |
22432 | ||
d213114b | 22433 | int |
22434 | main () | |
22435 | { | |
d213114b | 22436 | return 0; |
22437 | } | |
7d9455ce | 22438 | |
d213114b | 22439 | _ACEOF |
cd9a469c | 22440 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22441 | gcc_cv_math_func_csinh=yes |
d213114b | 22442 | else |
7d9455ce | 22443 | gcc_cv_math_func_csinh=no |
d213114b | 22444 | fi |
cd9a469c | 22445 | rm -f core conftest.err conftest.$ac_objext \ |
22446 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22447 | fi |
7d9455ce | 22448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 |
22449 | $as_echo "$gcc_cv_math_func_csinh" >&6; } | |
22450 | if test $gcc_cv_math_func_csinh = yes; then | |
bd647a17 | 22451 | |
6affa8e1 | 22452 | cat >>confdefs.h <<_ACEOF |
22453 | #define HAVE_CSINH 1 | |
22454 | _ACEOF | |
7d9455ce | 22455 | |
22456 | fi | |
22457 | ||
d213114b | 22458 | |
d213114b | 22459 | |
d213114b | 22460 | |
7d9455ce | 22461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 |
22462 | $as_echo_n "checking for csinhl... " >&6; } | |
f00f02a3 | 22463 | if ${gcc_cv_math_func_csinhl+:} false; then : |
cd9a469c | 22464 | $as_echo_n "(cached) " >&6 |
d213114b | 22465 | else |
7d9455ce | 22466 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22467 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22468 | fi |
cd9a469c | 22469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22470 | /* end confdefs.h. */ |
22471 | ||
7d9455ce | 22472 | #ifdef HAVE_COMPLEX_H |
22473 | #include <complex.h> | |
d213114b | 22474 | #endif |
7d9455ce | 22475 | #ifdef HAVE_MATH_H |
22476 | #include <math.h> | |
22477 | #endif | |
22478 | ||
22479 | int (*ptr)() = (int (*)())csinhl; | |
22480 | ||
d213114b | 22481 | int |
22482 | main () | |
22483 | { | |
d213114b | 22484 | return 0; |
22485 | } | |
7d9455ce | 22486 | |
d213114b | 22487 | _ACEOF |
cd9a469c | 22488 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22489 | gcc_cv_math_func_csinhl=yes |
d213114b | 22490 | else |
7d9455ce | 22491 | gcc_cv_math_func_csinhl=no |
d213114b | 22492 | fi |
cd9a469c | 22493 | rm -f core conftest.err conftest.$ac_objext \ |
22494 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22495 | fi |
7d9455ce | 22496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 |
22497 | $as_echo "$gcc_cv_math_func_csinhl" >&6; } | |
22498 | if test $gcc_cv_math_func_csinhl = yes; then | |
bd647a17 | 22499 | |
6affa8e1 | 22500 | cat >>confdefs.h <<_ACEOF |
22501 | #define HAVE_CSINHL 1 | |
22502 | _ACEOF | |
7d9455ce | 22503 | |
22504 | fi | |
d213114b | 22505 | |
d213114b | 22506 | |
d213114b | 22507 | |
7d9455ce | 22508 | |
22509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 | |
22510 | $as_echo_n "checking for sqrtf... " >&6; } | |
f00f02a3 | 22511 | if ${gcc_cv_math_func_sqrtf+:} false; then : |
cd9a469c | 22512 | $as_echo_n "(cached) " >&6 |
d213114b | 22513 | else |
7d9455ce | 22514 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22515 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22516 | fi |
cd9a469c | 22517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22518 | /* end confdefs.h. */ |
22519 | ||
7d9455ce | 22520 | #ifdef HAVE_COMPLEX_H |
22521 | #include <complex.h> | |
22522 | #endif | |
22523 | #ifdef HAVE_MATH_H | |
22524 | #include <math.h> | |
d213114b | 22525 | #endif |
7d9455ce | 22526 | |
22527 | int (*ptr)() = (int (*)())sqrtf; | |
22528 | ||
d213114b | 22529 | int |
22530 | main () | |
22531 | { | |
d213114b | 22532 | return 0; |
22533 | } | |
7d9455ce | 22534 | |
d213114b | 22535 | _ACEOF |
cd9a469c | 22536 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22537 | gcc_cv_math_func_sqrtf=yes |
d213114b | 22538 | else |
7d9455ce | 22539 | gcc_cv_math_func_sqrtf=no |
d213114b | 22540 | fi |
cd9a469c | 22541 | rm -f core conftest.err conftest.$ac_objext \ |
22542 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22543 | fi |
7d9455ce | 22544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 |
22545 | $as_echo "$gcc_cv_math_func_sqrtf" >&6; } | |
22546 | if test $gcc_cv_math_func_sqrtf = yes; then | |
bd647a17 | 22547 | |
6affa8e1 | 22548 | cat >>confdefs.h <<_ACEOF |
22549 | #define HAVE_SQRTF 1 | |
22550 | _ACEOF | |
7d9455ce | 22551 | |
22552 | fi | |
d213114b | 22553 | |
d213114b | 22554 | |
7d9455ce | 22555 | |
22556 | ||
22557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 | |
22558 | $as_echo_n "checking for sqrt... " >&6; } | |
f00f02a3 | 22559 | if ${gcc_cv_math_func_sqrt+:} false; then : |
7d9455ce | 22560 | $as_echo_n "(cached) " >&6 |
22561 | else | |
22562 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 22563 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22564 | fi |
7d9455ce | 22565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22566 | /* end confdefs.h. */ | |
22567 | ||
22568 | #ifdef HAVE_COMPLEX_H | |
22569 | #include <complex.h> | |
22570 | #endif | |
22571 | #ifdef HAVE_MATH_H | |
22572 | #include <math.h> | |
22573 | #endif | |
22574 | ||
22575 | int (*ptr)() = (int (*)())sqrt; | |
22576 | ||
22577 | int | |
22578 | main () | |
22579 | { | |
22580 | return 0; | |
22581 | } | |
22582 | ||
22583 | _ACEOF | |
22584 | if ac_fn_c_try_link "$LINENO"; then : | |
22585 | gcc_cv_math_func_sqrt=yes | |
22586 | else | |
22587 | gcc_cv_math_func_sqrt=no | |
22588 | fi | |
22589 | rm -f core conftest.err conftest.$ac_objext \ | |
22590 | conftest$ac_exeext conftest.$ac_ext | |
22591 | fi | |
22592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 | |
22593 | $as_echo "$gcc_cv_math_func_sqrt" >&6; } | |
22594 | if test $gcc_cv_math_func_sqrt = yes; then | |
bd647a17 | 22595 | |
6affa8e1 | 22596 | cat >>confdefs.h <<_ACEOF |
22597 | #define HAVE_SQRT 1 | |
22598 | _ACEOF | |
7d9455ce | 22599 | |
22600 | fi | |
d213114b | 22601 | |
7d9455ce | 22602 | |
22603 | ||
22604 | ||
22605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 | |
22606 | $as_echo_n "checking for sqrtl... " >&6; } | |
f00f02a3 | 22607 | if ${gcc_cv_math_func_sqrtl+:} false; then : |
cd9a469c | 22608 | $as_echo_n "(cached) " >&6 |
d213114b | 22609 | else |
7d9455ce | 22610 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22611 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22612 | fi |
cd9a469c | 22613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22614 | /* end confdefs.h. */ |
22615 | ||
7d9455ce | 22616 | #ifdef HAVE_COMPLEX_H |
22617 | #include <complex.h> | |
22618 | #endif | |
22619 | #ifdef HAVE_MATH_H | |
22620 | #include <math.h> | |
d213114b | 22621 | #endif |
7d9455ce | 22622 | |
22623 | int (*ptr)() = (int (*)())sqrtl; | |
22624 | ||
d213114b | 22625 | int |
22626 | main () | |
22627 | { | |
d213114b | 22628 | return 0; |
22629 | } | |
7d9455ce | 22630 | |
d213114b | 22631 | _ACEOF |
cd9a469c | 22632 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22633 | gcc_cv_math_func_sqrtl=yes |
d213114b | 22634 | else |
7d9455ce | 22635 | gcc_cv_math_func_sqrtl=no |
d213114b | 22636 | fi |
cd9a469c | 22637 | rm -f core conftest.err conftest.$ac_objext \ |
22638 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22639 | fi |
7d9455ce | 22640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 |
22641 | $as_echo "$gcc_cv_math_func_sqrtl" >&6; } | |
22642 | if test $gcc_cv_math_func_sqrtl = yes; then | |
bd647a17 | 22643 | |
6affa8e1 | 22644 | cat >>confdefs.h <<_ACEOF |
22645 | #define HAVE_SQRTL 1 | |
22646 | _ACEOF | |
7d9455ce | 22647 | |
22648 | fi | |
d213114b | 22649 | |
d213114b | 22650 | |
d213114b | 22651 | |
7d9455ce | 22652 | |
22653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 | |
22654 | $as_echo_n "checking for csqrtf... " >&6; } | |
f00f02a3 | 22655 | if ${gcc_cv_math_func_csqrtf+:} false; then : |
cd9a469c | 22656 | $as_echo_n "(cached) " >&6 |
d213114b | 22657 | else |
7d9455ce | 22658 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22659 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22660 | fi |
cd9a469c | 22661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22662 | /* end confdefs.h. */ |
22663 | ||
7d9455ce | 22664 | #ifdef HAVE_COMPLEX_H |
22665 | #include <complex.h> | |
d213114b | 22666 | #endif |
7d9455ce | 22667 | #ifdef HAVE_MATH_H |
22668 | #include <math.h> | |
22669 | #endif | |
22670 | ||
22671 | int (*ptr)() = (int (*)())csqrtf; | |
22672 | ||
d213114b | 22673 | int |
22674 | main () | |
22675 | { | |
d213114b | 22676 | return 0; |
22677 | } | |
7d9455ce | 22678 | |
d213114b | 22679 | _ACEOF |
cd9a469c | 22680 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22681 | gcc_cv_math_func_csqrtf=yes |
d213114b | 22682 | else |
7d9455ce | 22683 | gcc_cv_math_func_csqrtf=no |
d213114b | 22684 | fi |
cd9a469c | 22685 | rm -f core conftest.err conftest.$ac_objext \ |
22686 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22687 | fi |
7d9455ce | 22688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 |
22689 | $as_echo "$gcc_cv_math_func_csqrtf" >&6; } | |
22690 | if test $gcc_cv_math_func_csqrtf = yes; then | |
bd647a17 | 22691 | |
6affa8e1 | 22692 | cat >>confdefs.h <<_ACEOF |
22693 | #define HAVE_CSQRTF 1 | |
22694 | _ACEOF | |
d213114b | 22695 | |
7d9455ce | 22696 | fi |
d213114b | 22697 | |
d213114b | 22698 | |
7d9455ce | 22699 | |
22700 | ||
22701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 | |
22702 | $as_echo_n "checking for csqrt... " >&6; } | |
f00f02a3 | 22703 | if ${gcc_cv_math_func_csqrt+:} false; then : |
cd9a469c | 22704 | $as_echo_n "(cached) " >&6 |
d213114b | 22705 | else |
7d9455ce | 22706 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22707 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22708 | fi |
cd9a469c | 22709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22710 | /* end confdefs.h. */ |
22711 | ||
7d9455ce | 22712 | #ifdef HAVE_COMPLEX_H |
22713 | #include <complex.h> | |
22714 | #endif | |
22715 | #ifdef HAVE_MATH_H | |
22716 | #include <math.h> | |
d213114b | 22717 | #endif |
7d9455ce | 22718 | |
22719 | int (*ptr)() = (int (*)())csqrt; | |
22720 | ||
d213114b | 22721 | int |
22722 | main () | |
22723 | { | |
d213114b | 22724 | return 0; |
22725 | } | |
7d9455ce | 22726 | |
d213114b | 22727 | _ACEOF |
cd9a469c | 22728 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22729 | gcc_cv_math_func_csqrt=yes |
d213114b | 22730 | else |
7d9455ce | 22731 | gcc_cv_math_func_csqrt=no |
d213114b | 22732 | fi |
cd9a469c | 22733 | rm -f core conftest.err conftest.$ac_objext \ |
22734 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22735 | fi |
7d9455ce | 22736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 |
22737 | $as_echo "$gcc_cv_math_func_csqrt" >&6; } | |
22738 | if test $gcc_cv_math_func_csqrt = yes; then | |
bd647a17 | 22739 | |
6affa8e1 | 22740 | cat >>confdefs.h <<_ACEOF |
22741 | #define HAVE_CSQRT 1 | |
22742 | _ACEOF | |
7d9455ce | 22743 | |
22744 | fi | |
d213114b | 22745 | |
d213114b | 22746 | |
d213114b | 22747 | |
7d9455ce | 22748 | |
22749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 | |
22750 | $as_echo_n "checking for csqrtl... " >&6; } | |
f00f02a3 | 22751 | if ${gcc_cv_math_func_csqrtl+:} false; then : |
cd9a469c | 22752 | $as_echo_n "(cached) " >&6 |
d213114b | 22753 | else |
7d9455ce | 22754 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22755 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22756 | fi |
cd9a469c | 22757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22758 | /* end confdefs.h. */ |
22759 | ||
7d9455ce | 22760 | #ifdef HAVE_COMPLEX_H |
22761 | #include <complex.h> | |
d213114b | 22762 | #endif |
7d9455ce | 22763 | #ifdef HAVE_MATH_H |
22764 | #include <math.h> | |
22765 | #endif | |
22766 | ||
22767 | int (*ptr)() = (int (*)())csqrtl; | |
22768 | ||
d213114b | 22769 | int |
22770 | main () | |
22771 | { | |
d213114b | 22772 | return 0; |
22773 | } | |
7d9455ce | 22774 | |
d213114b | 22775 | _ACEOF |
cd9a469c | 22776 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22777 | gcc_cv_math_func_csqrtl=yes |
d213114b | 22778 | else |
7d9455ce | 22779 | gcc_cv_math_func_csqrtl=no |
d213114b | 22780 | fi |
cd9a469c | 22781 | rm -f core conftest.err conftest.$ac_objext \ |
22782 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22783 | fi |
7d9455ce | 22784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 |
22785 | $as_echo "$gcc_cv_math_func_csqrtl" >&6; } | |
22786 | if test $gcc_cv_math_func_csqrtl = yes; then | |
bd647a17 | 22787 | |
6affa8e1 | 22788 | cat >>confdefs.h <<_ACEOF |
22789 | #define HAVE_CSQRTL 1 | |
22790 | _ACEOF | |
7d9455ce | 22791 | |
22792 | fi | |
22793 | ||
d213114b | 22794 | |
d213114b | 22795 | |
d213114b | 22796 | |
7d9455ce | 22797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 |
22798 | $as_echo_n "checking for tanf... " >&6; } | |
f00f02a3 | 22799 | if ${gcc_cv_math_func_tanf+:} false; then : |
cd9a469c | 22800 | $as_echo_n "(cached) " >&6 |
d213114b | 22801 | else |
7d9455ce | 22802 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22803 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22804 | fi |
cd9a469c | 22805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22806 | /* end confdefs.h. */ |
22807 | ||
7d9455ce | 22808 | #ifdef HAVE_COMPLEX_H |
22809 | #include <complex.h> | |
22810 | #endif | |
22811 | #ifdef HAVE_MATH_H | |
22812 | #include <math.h> | |
d213114b | 22813 | #endif |
7d9455ce | 22814 | |
22815 | int (*ptr)() = (int (*)())tanf; | |
22816 | ||
d213114b | 22817 | int |
22818 | main () | |
22819 | { | |
d213114b | 22820 | return 0; |
22821 | } | |
7d9455ce | 22822 | |
d213114b | 22823 | _ACEOF |
cd9a469c | 22824 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22825 | gcc_cv_math_func_tanf=yes |
d213114b | 22826 | else |
7d9455ce | 22827 | gcc_cv_math_func_tanf=no |
d213114b | 22828 | fi |
cd9a469c | 22829 | rm -f core conftest.err conftest.$ac_objext \ |
22830 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22831 | fi |
7d9455ce | 22832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 |
22833 | $as_echo "$gcc_cv_math_func_tanf" >&6; } | |
22834 | if test $gcc_cv_math_func_tanf = yes; then | |
bd647a17 | 22835 | |
6affa8e1 | 22836 | cat >>confdefs.h <<_ACEOF |
22837 | #define HAVE_TANF 1 | |
22838 | _ACEOF | |
7d9455ce | 22839 | |
22840 | fi | |
d213114b | 22841 | |
d213114b | 22842 | |
d213114b | 22843 | |
7d9455ce | 22844 | |
22845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 | |
22846 | $as_echo_n "checking for tan... " >&6; } | |
f00f02a3 | 22847 | if ${gcc_cv_math_func_tan+:} false; then : |
cd9a469c | 22848 | $as_echo_n "(cached) " >&6 |
d213114b | 22849 | else |
7d9455ce | 22850 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22851 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22852 | fi |
cd9a469c | 22853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22854 | /* end confdefs.h. */ |
22855 | ||
7d9455ce | 22856 | #ifdef HAVE_COMPLEX_H |
22857 | #include <complex.h> | |
d213114b | 22858 | #endif |
7d9455ce | 22859 | #ifdef HAVE_MATH_H |
22860 | #include <math.h> | |
22861 | #endif | |
22862 | ||
22863 | int (*ptr)() = (int (*)())tan; | |
22864 | ||
d213114b | 22865 | int |
22866 | main () | |
22867 | { | |
d213114b | 22868 | return 0; |
22869 | } | |
7d9455ce | 22870 | |
d213114b | 22871 | _ACEOF |
cd9a469c | 22872 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22873 | gcc_cv_math_func_tan=yes |
d213114b | 22874 | else |
7d9455ce | 22875 | gcc_cv_math_func_tan=no |
d213114b | 22876 | fi |
cd9a469c | 22877 | rm -f core conftest.err conftest.$ac_objext \ |
22878 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22879 | fi |
7d9455ce | 22880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 |
22881 | $as_echo "$gcc_cv_math_func_tan" >&6; } | |
22882 | if test $gcc_cv_math_func_tan = yes; then | |
bd647a17 | 22883 | |
6affa8e1 | 22884 | cat >>confdefs.h <<_ACEOF |
22885 | #define HAVE_TAN 1 | |
22886 | _ACEOF | |
d213114b | 22887 | |
7d9455ce | 22888 | fi |
d213114b | 22889 | |
d213114b | 22890 | |
7d9455ce | 22891 | |
22892 | ||
22893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 | |
22894 | $as_echo_n "checking for tanl... " >&6; } | |
f00f02a3 | 22895 | if ${gcc_cv_math_func_tanl+:} false; then : |
cd9a469c | 22896 | $as_echo_n "(cached) " >&6 |
d213114b | 22897 | else |
7d9455ce | 22898 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22899 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22900 | fi |
cd9a469c | 22901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22902 | /* end confdefs.h. */ |
22903 | ||
7d9455ce | 22904 | #ifdef HAVE_COMPLEX_H |
22905 | #include <complex.h> | |
22906 | #endif | |
22907 | #ifdef HAVE_MATH_H | |
22908 | #include <math.h> | |
d213114b | 22909 | #endif |
7d9455ce | 22910 | |
22911 | int (*ptr)() = (int (*)())tanl; | |
22912 | ||
d213114b | 22913 | int |
22914 | main () | |
22915 | { | |
d213114b | 22916 | return 0; |
22917 | } | |
7d9455ce | 22918 | |
d213114b | 22919 | _ACEOF |
cd9a469c | 22920 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22921 | gcc_cv_math_func_tanl=yes |
d213114b | 22922 | else |
7d9455ce | 22923 | gcc_cv_math_func_tanl=no |
d213114b | 22924 | fi |
cd9a469c | 22925 | rm -f core conftest.err conftest.$ac_objext \ |
22926 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22927 | fi |
7d9455ce | 22928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 |
22929 | $as_echo "$gcc_cv_math_func_tanl" >&6; } | |
22930 | if test $gcc_cv_math_func_tanl = yes; then | |
bd647a17 | 22931 | |
6affa8e1 | 22932 | cat >>confdefs.h <<_ACEOF |
22933 | #define HAVE_TANL 1 | |
22934 | _ACEOF | |
7d9455ce | 22935 | |
22936 | fi | |
d213114b | 22937 | |
d213114b | 22938 | |
d213114b | 22939 | |
7d9455ce | 22940 | |
22941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 | |
22942 | $as_echo_n "checking for ctanf... " >&6; } | |
f00f02a3 | 22943 | if ${gcc_cv_math_func_ctanf+:} false; then : |
cd9a469c | 22944 | $as_echo_n "(cached) " >&6 |
d213114b | 22945 | else |
7d9455ce | 22946 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22947 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22948 | fi |
cd9a469c | 22949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22950 | /* end confdefs.h. */ |
22951 | ||
7d9455ce | 22952 | #ifdef HAVE_COMPLEX_H |
22953 | #include <complex.h> | |
d213114b | 22954 | #endif |
7d9455ce | 22955 | #ifdef HAVE_MATH_H |
22956 | #include <math.h> | |
22957 | #endif | |
22958 | ||
22959 | int (*ptr)() = (int (*)())ctanf; | |
22960 | ||
d213114b | 22961 | int |
22962 | main () | |
22963 | { | |
d213114b | 22964 | return 0; |
22965 | } | |
7d9455ce | 22966 | |
d213114b | 22967 | _ACEOF |
cd9a469c | 22968 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 22969 | gcc_cv_math_func_ctanf=yes |
d213114b | 22970 | else |
7d9455ce | 22971 | gcc_cv_math_func_ctanf=no |
d213114b | 22972 | fi |
cd9a469c | 22973 | rm -f core conftest.err conftest.$ac_objext \ |
22974 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22975 | fi |
7d9455ce | 22976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 |
22977 | $as_echo "$gcc_cv_math_func_ctanf" >&6; } | |
22978 | if test $gcc_cv_math_func_ctanf = yes; then | |
bd647a17 | 22979 | |
6affa8e1 | 22980 | cat >>confdefs.h <<_ACEOF |
22981 | #define HAVE_CTANF 1 | |
22982 | _ACEOF | |
7d9455ce | 22983 | |
22984 | fi | |
22985 | ||
d213114b | 22986 | |
d213114b | 22987 | |
d213114b | 22988 | |
7d9455ce | 22989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 |
22990 | $as_echo_n "checking for ctan... " >&6; } | |
f00f02a3 | 22991 | if ${gcc_cv_math_func_ctan+:} false; then : |
cd9a469c | 22992 | $as_echo_n "(cached) " >&6 |
d213114b | 22993 | else |
7d9455ce | 22994 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 22995 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22996 | fi |
cd9a469c | 22997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22998 | /* end confdefs.h. */ |
22999 | ||
7d9455ce | 23000 | #ifdef HAVE_COMPLEX_H |
23001 | #include <complex.h> | |
23002 | #endif | |
23003 | #ifdef HAVE_MATH_H | |
23004 | #include <math.h> | |
d213114b | 23005 | #endif |
7d9455ce | 23006 | |
23007 | int (*ptr)() = (int (*)())ctan; | |
23008 | ||
d213114b | 23009 | int |
23010 | main () | |
23011 | { | |
d213114b | 23012 | return 0; |
23013 | } | |
7d9455ce | 23014 | |
d213114b | 23015 | _ACEOF |
cd9a469c | 23016 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23017 | gcc_cv_math_func_ctan=yes |
d213114b | 23018 | else |
7d9455ce | 23019 | gcc_cv_math_func_ctan=no |
d213114b | 23020 | fi |
cd9a469c | 23021 | rm -f core conftest.err conftest.$ac_objext \ |
23022 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23023 | fi |
7d9455ce | 23024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 |
23025 | $as_echo "$gcc_cv_math_func_ctan" >&6; } | |
23026 | if test $gcc_cv_math_func_ctan = yes; then | |
bd647a17 | 23027 | |
6affa8e1 | 23028 | cat >>confdefs.h <<_ACEOF |
23029 | #define HAVE_CTAN 1 | |
23030 | _ACEOF | |
7d9455ce | 23031 | |
23032 | fi | |
d213114b | 23033 | |
d213114b | 23034 | |
d213114b | 23035 | |
7d9455ce | 23036 | |
23037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 | |
23038 | $as_echo_n "checking for ctanl... " >&6; } | |
f00f02a3 | 23039 | if ${gcc_cv_math_func_ctanl+:} false; then : |
cd9a469c | 23040 | $as_echo_n "(cached) " >&6 |
d213114b | 23041 | else |
7d9455ce | 23042 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23043 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23044 | fi |
cd9a469c | 23045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23046 | /* end confdefs.h. */ |
23047 | ||
7d9455ce | 23048 | #ifdef HAVE_COMPLEX_H |
23049 | #include <complex.h> | |
d213114b | 23050 | #endif |
7d9455ce | 23051 | #ifdef HAVE_MATH_H |
23052 | #include <math.h> | |
23053 | #endif | |
23054 | ||
23055 | int (*ptr)() = (int (*)())ctanl; | |
23056 | ||
d213114b | 23057 | int |
23058 | main () | |
23059 | { | |
d213114b | 23060 | return 0; |
23061 | } | |
7d9455ce | 23062 | |
d213114b | 23063 | _ACEOF |
cd9a469c | 23064 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23065 | gcc_cv_math_func_ctanl=yes |
d213114b | 23066 | else |
7d9455ce | 23067 | gcc_cv_math_func_ctanl=no |
d213114b | 23068 | fi |
cd9a469c | 23069 | rm -f core conftest.err conftest.$ac_objext \ |
23070 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23071 | fi |
7d9455ce | 23072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 |
23073 | $as_echo "$gcc_cv_math_func_ctanl" >&6; } | |
23074 | if test $gcc_cv_math_func_ctanl = yes; then | |
bd647a17 | 23075 | |
6affa8e1 | 23076 | cat >>confdefs.h <<_ACEOF |
23077 | #define HAVE_CTANL 1 | |
23078 | _ACEOF | |
d213114b | 23079 | |
7d9455ce | 23080 | fi |
d213114b | 23081 | |
d213114b | 23082 | |
7d9455ce | 23083 | |
23084 | ||
23085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 | |
23086 | $as_echo_n "checking for tanhf... " >&6; } | |
f00f02a3 | 23087 | if ${gcc_cv_math_func_tanhf+:} false; then : |
cd9a469c | 23088 | $as_echo_n "(cached) " >&6 |
d213114b | 23089 | else |
7d9455ce | 23090 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23091 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23092 | fi |
cd9a469c | 23093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23094 | /* end confdefs.h. */ |
23095 | ||
7d9455ce | 23096 | #ifdef HAVE_COMPLEX_H |
23097 | #include <complex.h> | |
23098 | #endif | |
23099 | #ifdef HAVE_MATH_H | |
23100 | #include <math.h> | |
d213114b | 23101 | #endif |
7d9455ce | 23102 | |
23103 | int (*ptr)() = (int (*)())tanhf; | |
23104 | ||
d213114b | 23105 | int |
23106 | main () | |
23107 | { | |
d213114b | 23108 | return 0; |
23109 | } | |
7d9455ce | 23110 | |
d213114b | 23111 | _ACEOF |
cd9a469c | 23112 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23113 | gcc_cv_math_func_tanhf=yes |
d213114b | 23114 | else |
7d9455ce | 23115 | gcc_cv_math_func_tanhf=no |
d213114b | 23116 | fi |
cd9a469c | 23117 | rm -f core conftest.err conftest.$ac_objext \ |
23118 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23119 | fi |
7d9455ce | 23120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 |
23121 | $as_echo "$gcc_cv_math_func_tanhf" >&6; } | |
23122 | if test $gcc_cv_math_func_tanhf = yes; then | |
bd647a17 | 23123 | |
6affa8e1 | 23124 | cat >>confdefs.h <<_ACEOF |
23125 | #define HAVE_TANHF 1 | |
23126 | _ACEOF | |
7d9455ce | 23127 | |
23128 | fi | |
d213114b | 23129 | |
d213114b | 23130 | |
d213114b | 23131 | |
7d9455ce | 23132 | |
23133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 | |
23134 | $as_echo_n "checking for tanh... " >&6; } | |
f00f02a3 | 23135 | if ${gcc_cv_math_func_tanh+:} false; then : |
cd9a469c | 23136 | $as_echo_n "(cached) " >&6 |
d213114b | 23137 | else |
7d9455ce | 23138 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23139 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23140 | fi |
cd9a469c | 23141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23142 | /* end confdefs.h. */ |
23143 | ||
7d9455ce | 23144 | #ifdef HAVE_COMPLEX_H |
23145 | #include <complex.h> | |
d213114b | 23146 | #endif |
7d9455ce | 23147 | #ifdef HAVE_MATH_H |
23148 | #include <math.h> | |
23149 | #endif | |
23150 | ||
23151 | int (*ptr)() = (int (*)())tanh; | |
23152 | ||
d213114b | 23153 | int |
23154 | main () | |
23155 | { | |
d213114b | 23156 | return 0; |
23157 | } | |
7d9455ce | 23158 | |
d213114b | 23159 | _ACEOF |
cd9a469c | 23160 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23161 | gcc_cv_math_func_tanh=yes |
d213114b | 23162 | else |
7d9455ce | 23163 | gcc_cv_math_func_tanh=no |
d213114b | 23164 | fi |
cd9a469c | 23165 | rm -f core conftest.err conftest.$ac_objext \ |
23166 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23167 | fi |
7d9455ce | 23168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 |
23169 | $as_echo "$gcc_cv_math_func_tanh" >&6; } | |
23170 | if test $gcc_cv_math_func_tanh = yes; then | |
bd647a17 | 23171 | |
6affa8e1 | 23172 | cat >>confdefs.h <<_ACEOF |
23173 | #define HAVE_TANH 1 | |
23174 | _ACEOF | |
7d9455ce | 23175 | |
23176 | fi | |
23177 | ||
d213114b | 23178 | |
d213114b | 23179 | |
d213114b | 23180 | |
7d9455ce | 23181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 |
23182 | $as_echo_n "checking for tanhl... " >&6; } | |
f00f02a3 | 23183 | if ${gcc_cv_math_func_tanhl+:} false; then : |
cd9a469c | 23184 | $as_echo_n "(cached) " >&6 |
d213114b | 23185 | else |
7d9455ce | 23186 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23187 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23188 | fi |
cd9a469c | 23189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23190 | /* end confdefs.h. */ |
23191 | ||
7d9455ce | 23192 | #ifdef HAVE_COMPLEX_H |
23193 | #include <complex.h> | |
23194 | #endif | |
23195 | #ifdef HAVE_MATH_H | |
23196 | #include <math.h> | |
d213114b | 23197 | #endif |
7d9455ce | 23198 | |
23199 | int (*ptr)() = (int (*)())tanhl; | |
23200 | ||
d213114b | 23201 | int |
23202 | main () | |
23203 | { | |
d213114b | 23204 | return 0; |
23205 | } | |
7d9455ce | 23206 | |
d213114b | 23207 | _ACEOF |
cd9a469c | 23208 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23209 | gcc_cv_math_func_tanhl=yes |
d213114b | 23210 | else |
7d9455ce | 23211 | gcc_cv_math_func_tanhl=no |
d213114b | 23212 | fi |
cd9a469c | 23213 | rm -f core conftest.err conftest.$ac_objext \ |
23214 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23215 | fi |
7d9455ce | 23216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 |
23217 | $as_echo "$gcc_cv_math_func_tanhl" >&6; } | |
23218 | if test $gcc_cv_math_func_tanhl = yes; then | |
bd647a17 | 23219 | |
6affa8e1 | 23220 | cat >>confdefs.h <<_ACEOF |
23221 | #define HAVE_TANHL 1 | |
23222 | _ACEOF | |
7d9455ce | 23223 | |
23224 | fi | |
d213114b | 23225 | |
d213114b | 23226 | |
d213114b | 23227 | |
7d9455ce | 23228 | |
23229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 | |
23230 | $as_echo_n "checking for ctanhf... " >&6; } | |
f00f02a3 | 23231 | if ${gcc_cv_math_func_ctanhf+:} false; then : |
cd9a469c | 23232 | $as_echo_n "(cached) " >&6 |
d213114b | 23233 | else |
7d9455ce | 23234 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23235 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
7d9455ce | 23236 | fi |
23237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23238 | /* end confdefs.h. */ | |
23239 | ||
23240 | #ifdef HAVE_COMPLEX_H | |
23241 | #include <complex.h> | |
d213114b | 23242 | #endif |
7d9455ce | 23243 | #ifdef HAVE_MATH_H |
23244 | #include <math.h> | |
23245 | #endif | |
23246 | ||
23247 | int (*ptr)() = (int (*)())ctanhf; | |
23248 | ||
d213114b | 23249 | int |
23250 | main () | |
23251 | { | |
d213114b | 23252 | return 0; |
23253 | } | |
7d9455ce | 23254 | |
d213114b | 23255 | _ACEOF |
cd9a469c | 23256 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23257 | gcc_cv_math_func_ctanhf=yes |
d213114b | 23258 | else |
7d9455ce | 23259 | gcc_cv_math_func_ctanhf=no |
d213114b | 23260 | fi |
cd9a469c | 23261 | rm -f core conftest.err conftest.$ac_objext \ |
23262 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23263 | fi |
7d9455ce | 23264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 |
23265 | $as_echo "$gcc_cv_math_func_ctanhf" >&6; } | |
23266 | if test $gcc_cv_math_func_ctanhf = yes; then | |
bd647a17 | 23267 | |
6affa8e1 | 23268 | cat >>confdefs.h <<_ACEOF |
23269 | #define HAVE_CTANHF 1 | |
23270 | _ACEOF | |
d213114b | 23271 | |
7d9455ce | 23272 | fi |
d213114b | 23273 | |
d213114b | 23274 | |
7d9455ce | 23275 | |
23276 | ||
23277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 | |
23278 | $as_echo_n "checking for ctanh... " >&6; } | |
f00f02a3 | 23279 | if ${gcc_cv_math_func_ctanh+:} false; then : |
cd9a469c | 23280 | $as_echo_n "(cached) " >&6 |
d213114b | 23281 | else |
7d9455ce | 23282 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23283 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23284 | fi |
cd9a469c | 23285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23286 | /* end confdefs.h. */ |
23287 | ||
7d9455ce | 23288 | #ifdef HAVE_COMPLEX_H |
23289 | #include <complex.h> | |
23290 | #endif | |
23291 | #ifdef HAVE_MATH_H | |
23292 | #include <math.h> | |
d213114b | 23293 | #endif |
7d9455ce | 23294 | |
23295 | int (*ptr)() = (int (*)())ctanh; | |
23296 | ||
d213114b | 23297 | int |
23298 | main () | |
23299 | { | |
cd9a469c | 23300 | return 0; |
23301 | } | |
7d9455ce | 23302 | |
cd9a469c | 23303 | _ACEOF |
23304 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 23305 | gcc_cv_math_func_ctanh=yes |
d213114b | 23306 | else |
7d9455ce | 23307 | gcc_cv_math_func_ctanh=no |
d213114b | 23308 | fi |
cd9a469c | 23309 | rm -f core conftest.err conftest.$ac_objext \ |
23310 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23311 | fi |
7d9455ce | 23312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 |
23313 | $as_echo "$gcc_cv_math_func_ctanh" >&6; } | |
23314 | if test $gcc_cv_math_func_ctanh = yes; then | |
bd647a17 | 23315 | |
6affa8e1 | 23316 | cat >>confdefs.h <<_ACEOF |
23317 | #define HAVE_CTANH 1 | |
23318 | _ACEOF | |
7d9455ce | 23319 | |
23320 | fi | |
d213114b | 23321 | |
d213114b | 23322 | |
d213114b | 23323 | |
7d9455ce | 23324 | |
23325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 | |
23326 | $as_echo_n "checking for ctanhl... " >&6; } | |
f00f02a3 | 23327 | if ${gcc_cv_math_func_ctanhl+:} false; then : |
cd9a469c | 23328 | $as_echo_n "(cached) " >&6 |
d213114b | 23329 | else |
7d9455ce | 23330 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23331 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23332 | fi |
cd9a469c | 23333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23334 | /* end confdefs.h. */ |
23335 | ||
7d9455ce | 23336 | #ifdef HAVE_COMPLEX_H |
23337 | #include <complex.h> | |
d213114b | 23338 | #endif |
7d9455ce | 23339 | #ifdef HAVE_MATH_H |
23340 | #include <math.h> | |
23341 | #endif | |
23342 | ||
23343 | int (*ptr)() = (int (*)())ctanhl; | |
23344 | ||
d213114b | 23345 | int |
23346 | main () | |
23347 | { | |
d213114b | 23348 | return 0; |
23349 | } | |
7d9455ce | 23350 | |
d213114b | 23351 | _ACEOF |
cd9a469c | 23352 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23353 | gcc_cv_math_func_ctanhl=yes |
d213114b | 23354 | else |
7d9455ce | 23355 | gcc_cv_math_func_ctanhl=no |
d213114b | 23356 | fi |
cd9a469c | 23357 | rm -f core conftest.err conftest.$ac_objext \ |
23358 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23359 | fi |
7d9455ce | 23360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 |
23361 | $as_echo "$gcc_cv_math_func_ctanhl" >&6; } | |
23362 | if test $gcc_cv_math_func_ctanhl = yes; then | |
bd647a17 | 23363 | |
6affa8e1 | 23364 | cat >>confdefs.h <<_ACEOF |
23365 | #define HAVE_CTANHL 1 | |
23366 | _ACEOF | |
7d9455ce | 23367 | |
23368 | fi | |
23369 | ||
d213114b | 23370 | |
50f0ca0a | 23371 | |
50f0ca0a | 23372 | |
7d9455ce | 23373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 |
23374 | $as_echo_n "checking for truncf... " >&6; } | |
f00f02a3 | 23375 | if ${gcc_cv_math_func_truncf+:} false; then : |
cd9a469c | 23376 | $as_echo_n "(cached) " >&6 |
50f0ca0a | 23377 | else |
7d9455ce | 23378 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23379 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23380 | fi |
cd9a469c | 23381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 23382 | /* end confdefs.h. */ |
23383 | ||
7d9455ce | 23384 | #ifdef HAVE_COMPLEX_H |
23385 | #include <complex.h> | |
23386 | #endif | |
23387 | #ifdef HAVE_MATH_H | |
23388 | #include <math.h> | |
50f0ca0a | 23389 | #endif |
7d9455ce | 23390 | |
23391 | int (*ptr)() = (int (*)())truncf; | |
23392 | ||
d213114b | 23393 | int |
23394 | main () | |
23395 | { | |
d213114b | 23396 | return 0; |
23397 | } | |
7d9455ce | 23398 | |
d213114b | 23399 | _ACEOF |
cd9a469c | 23400 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23401 | gcc_cv_math_func_truncf=yes |
d213114b | 23402 | else |
7d9455ce | 23403 | gcc_cv_math_func_truncf=no |
d213114b | 23404 | fi |
cd9a469c | 23405 | rm -f core conftest.err conftest.$ac_objext \ |
23406 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23407 | fi |
7d9455ce | 23408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 |
23409 | $as_echo "$gcc_cv_math_func_truncf" >&6; } | |
23410 | if test $gcc_cv_math_func_truncf = yes; then | |
bd647a17 | 23411 | |
6affa8e1 | 23412 | cat >>confdefs.h <<_ACEOF |
23413 | #define HAVE_TRUNCF 1 | |
23414 | _ACEOF | |
7d9455ce | 23415 | |
23416 | fi | |
d213114b | 23417 | |
d213114b | 23418 | |
d213114b | 23419 | |
7d9455ce | 23420 | |
23421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 | |
23422 | $as_echo_n "checking for trunc... " >&6; } | |
f00f02a3 | 23423 | if ${gcc_cv_math_func_trunc+:} false; then : |
cd9a469c | 23424 | $as_echo_n "(cached) " >&6 |
d213114b | 23425 | else |
7d9455ce | 23426 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23427 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23428 | fi |
cd9a469c | 23429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23430 | /* end confdefs.h. */ |
23431 | ||
7d9455ce | 23432 | #ifdef HAVE_COMPLEX_H |
23433 | #include <complex.h> | |
d213114b | 23434 | #endif |
7d9455ce | 23435 | #ifdef HAVE_MATH_H |
23436 | #include <math.h> | |
23437 | #endif | |
23438 | ||
23439 | int (*ptr)() = (int (*)())trunc; | |
23440 | ||
d213114b | 23441 | int |
23442 | main () | |
23443 | { | |
d213114b | 23444 | return 0; |
23445 | } | |
7d9455ce | 23446 | |
d213114b | 23447 | _ACEOF |
cd9a469c | 23448 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23449 | gcc_cv_math_func_trunc=yes |
d213114b | 23450 | else |
7d9455ce | 23451 | gcc_cv_math_func_trunc=no |
d213114b | 23452 | fi |
cd9a469c | 23453 | rm -f core conftest.err conftest.$ac_objext \ |
23454 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23455 | fi |
7d9455ce | 23456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 |
23457 | $as_echo "$gcc_cv_math_func_trunc" >&6; } | |
23458 | if test $gcc_cv_math_func_trunc = yes; then | |
bd647a17 | 23459 | |
6affa8e1 | 23460 | cat >>confdefs.h <<_ACEOF |
23461 | #define HAVE_TRUNC 1 | |
23462 | _ACEOF | |
d213114b | 23463 | |
7d9455ce | 23464 | fi |
d213114b | 23465 | |
d213114b | 23466 | |
7d9455ce | 23467 | |
23468 | ||
23469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 | |
23470 | $as_echo_n "checking for truncl... " >&6; } | |
f00f02a3 | 23471 | if ${gcc_cv_math_func_truncl+:} false; then : |
cd9a469c | 23472 | $as_echo_n "(cached) " >&6 |
d213114b | 23473 | else |
7d9455ce | 23474 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23475 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23476 | fi |
cd9a469c | 23477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23478 | /* end confdefs.h. */ |
23479 | ||
7d9455ce | 23480 | #ifdef HAVE_COMPLEX_H |
23481 | #include <complex.h> | |
23482 | #endif | |
23483 | #ifdef HAVE_MATH_H | |
23484 | #include <math.h> | |
d213114b | 23485 | #endif |
7d9455ce | 23486 | |
23487 | int (*ptr)() = (int (*)())truncl; | |
23488 | ||
d213114b | 23489 | int |
23490 | main () | |
23491 | { | |
d213114b | 23492 | return 0; |
23493 | } | |
7d9455ce | 23494 | |
d213114b | 23495 | _ACEOF |
cd9a469c | 23496 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23497 | gcc_cv_math_func_truncl=yes |
d213114b | 23498 | else |
7d9455ce | 23499 | gcc_cv_math_func_truncl=no |
d213114b | 23500 | fi |
cd9a469c | 23501 | rm -f core conftest.err conftest.$ac_objext \ |
23502 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23503 | fi |
7d9455ce | 23504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 |
23505 | $as_echo "$gcc_cv_math_func_truncl" >&6; } | |
23506 | if test $gcc_cv_math_func_truncl = yes; then | |
bd647a17 | 23507 | |
6affa8e1 | 23508 | cat >>confdefs.h <<_ACEOF |
23509 | #define HAVE_TRUNCL 1 | |
23510 | _ACEOF | |
7d9455ce | 23511 | |
23512 | fi | |
d213114b | 23513 | |
d213114b | 23514 | |
d213114b | 23515 | |
7d9455ce | 23516 | |
23517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 | |
23518 | $as_echo_n "checking for erff... " >&6; } | |
f00f02a3 | 23519 | if ${gcc_cv_math_func_erff+:} false; then : |
cd9a469c | 23520 | $as_echo_n "(cached) " >&6 |
d213114b | 23521 | else |
7d9455ce | 23522 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23523 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23524 | fi |
cd9a469c | 23525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23526 | /* end confdefs.h. */ |
23527 | ||
7d9455ce | 23528 | #ifdef HAVE_COMPLEX_H |
23529 | #include <complex.h> | |
d213114b | 23530 | #endif |
7d9455ce | 23531 | #ifdef HAVE_MATH_H |
23532 | #include <math.h> | |
23533 | #endif | |
23534 | ||
23535 | int (*ptr)() = (int (*)())erff; | |
23536 | ||
d213114b | 23537 | int |
23538 | main () | |
23539 | { | |
d213114b | 23540 | return 0; |
23541 | } | |
7d9455ce | 23542 | |
d213114b | 23543 | _ACEOF |
cd9a469c | 23544 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23545 | gcc_cv_math_func_erff=yes |
d213114b | 23546 | else |
7d9455ce | 23547 | gcc_cv_math_func_erff=no |
d213114b | 23548 | fi |
cd9a469c | 23549 | rm -f core conftest.err conftest.$ac_objext \ |
23550 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23551 | fi |
7d9455ce | 23552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 |
23553 | $as_echo "$gcc_cv_math_func_erff" >&6; } | |
23554 | if test $gcc_cv_math_func_erff = yes; then | |
bd647a17 | 23555 | |
6affa8e1 | 23556 | cat >>confdefs.h <<_ACEOF |
23557 | #define HAVE_ERFF 1 | |
23558 | _ACEOF | |
7d9455ce | 23559 | |
23560 | fi | |
23561 | ||
d213114b | 23562 | |
d213114b | 23563 | |
d213114b | 23564 | |
7d9455ce | 23565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 |
23566 | $as_echo_n "checking for erf... " >&6; } | |
f00f02a3 | 23567 | if ${gcc_cv_math_func_erf+:} false; then : |
cd9a469c | 23568 | $as_echo_n "(cached) " >&6 |
d213114b | 23569 | else |
7d9455ce | 23570 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23571 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23572 | fi |
cd9a469c | 23573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23574 | /* end confdefs.h. */ |
23575 | ||
7d9455ce | 23576 | #ifdef HAVE_COMPLEX_H |
23577 | #include <complex.h> | |
23578 | #endif | |
23579 | #ifdef HAVE_MATH_H | |
23580 | #include <math.h> | |
d213114b | 23581 | #endif |
7d9455ce | 23582 | |
23583 | int (*ptr)() = (int (*)())erf; | |
23584 | ||
d213114b | 23585 | int |
23586 | main () | |
23587 | { | |
d213114b | 23588 | return 0; |
23589 | } | |
7d9455ce | 23590 | |
d213114b | 23591 | _ACEOF |
cd9a469c | 23592 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23593 | gcc_cv_math_func_erf=yes |
d213114b | 23594 | else |
7d9455ce | 23595 | gcc_cv_math_func_erf=no |
d213114b | 23596 | fi |
cd9a469c | 23597 | rm -f core conftest.err conftest.$ac_objext \ |
23598 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23599 | fi |
7d9455ce | 23600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 |
23601 | $as_echo "$gcc_cv_math_func_erf" >&6; } | |
23602 | if test $gcc_cv_math_func_erf = yes; then | |
bd647a17 | 23603 | |
6affa8e1 | 23604 | cat >>confdefs.h <<_ACEOF |
23605 | #define HAVE_ERF 1 | |
23606 | _ACEOF | |
7d9455ce | 23607 | |
23608 | fi | |
d213114b | 23609 | |
d213114b | 23610 | |
d213114b | 23611 | |
7d9455ce | 23612 | |
7d9455ce | 23613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 |
23614 | $as_echo_n "checking for erfcf... " >&6; } | |
f00f02a3 | 23615 | if ${gcc_cv_math_func_erfcf+:} false; then : |
cd9a469c | 23616 | $as_echo_n "(cached) " >&6 |
d213114b | 23617 | else |
7d9455ce | 23618 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23619 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23620 | fi |
cd9a469c | 23621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23622 | /* end confdefs.h. */ |
23623 | ||
7d9455ce | 23624 | #ifdef HAVE_COMPLEX_H |
23625 | #include <complex.h> | |
23626 | #endif | |
23627 | #ifdef HAVE_MATH_H | |
23628 | #include <math.h> | |
d213114b | 23629 | #endif |
7d9455ce | 23630 | |
23631 | int (*ptr)() = (int (*)())erfcf; | |
23632 | ||
d213114b | 23633 | int |
23634 | main () | |
23635 | { | |
d213114b | 23636 | return 0; |
23637 | } | |
7d9455ce | 23638 | |
d213114b | 23639 | _ACEOF |
cd9a469c | 23640 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23641 | gcc_cv_math_func_erfcf=yes |
d213114b | 23642 | else |
7d9455ce | 23643 | gcc_cv_math_func_erfcf=no |
d213114b | 23644 | fi |
cd9a469c | 23645 | rm -f core conftest.err conftest.$ac_objext \ |
23646 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23647 | fi |
7d9455ce | 23648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 |
23649 | $as_echo "$gcc_cv_math_func_erfcf" >&6; } | |
23650 | if test $gcc_cv_math_func_erfcf = yes; then | |
bd647a17 | 23651 | |
6affa8e1 | 23652 | cat >>confdefs.h <<_ACEOF |
23653 | #define HAVE_ERFCF 1 | |
23654 | _ACEOF | |
7d9455ce | 23655 | |
23656 | fi | |
d213114b | 23657 | |
d213114b | 23658 | |
d213114b | 23659 | |
7d9455ce | 23660 | |
23661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 | |
23662 | $as_echo_n "checking for erfc... " >&6; } | |
f00f02a3 | 23663 | if ${gcc_cv_math_func_erfc+:} false; then : |
cd9a469c | 23664 | $as_echo_n "(cached) " >&6 |
d213114b | 23665 | else |
7d9455ce | 23666 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23667 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23668 | fi |
cd9a469c | 23669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23670 | /* end confdefs.h. */ |
23671 | ||
7d9455ce | 23672 | #ifdef HAVE_COMPLEX_H |
23673 | #include <complex.h> | |
d213114b | 23674 | #endif |
7d9455ce | 23675 | #ifdef HAVE_MATH_H |
23676 | #include <math.h> | |
23677 | #endif | |
23678 | ||
23679 | int (*ptr)() = (int (*)())erfc; | |
23680 | ||
50f0ca0a | 23681 | int |
23682 | main () | |
23683 | { | |
50f0ca0a | 23684 | return 0; |
23685 | } | |
7d9455ce | 23686 | |
50f0ca0a | 23687 | _ACEOF |
cd9a469c | 23688 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23689 | gcc_cv_math_func_erfc=yes |
50f0ca0a | 23690 | else |
7d9455ce | 23691 | gcc_cv_math_func_erfc=no |
50f0ca0a | 23692 | fi |
cd9a469c | 23693 | rm -f core conftest.err conftest.$ac_objext \ |
23694 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 23695 | fi |
7d9455ce | 23696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 |
23697 | $as_echo "$gcc_cv_math_func_erfc" >&6; } | |
23698 | if test $gcc_cv_math_func_erfc = yes; then | |
bd647a17 | 23699 | |
6affa8e1 | 23700 | cat >>confdefs.h <<_ACEOF |
23701 | #define HAVE_ERFC 1 | |
23702 | _ACEOF | |
7d9455ce | 23703 | |
23704 | fi | |
23705 | ||
50f0ca0a | 23706 | |
50f0ca0a | 23707 | |
50f0ca0a | 23708 | |
7d9455ce | 23709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 |
23710 | $as_echo_n "checking for erfcl... " >&6; } | |
f00f02a3 | 23711 | if ${gcc_cv_math_func_erfcl+:} false; then : |
cd9a469c | 23712 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23713 | else |
7d9455ce | 23714 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23715 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23716 | fi |
cd9a469c | 23717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23718 | /* end confdefs.h. */ |
23719 | ||
7d9455ce | 23720 | #ifdef HAVE_COMPLEX_H |
23721 | #include <complex.h> | |
23722 | #endif | |
23723 | #ifdef HAVE_MATH_H | |
23724 | #include <math.h> | |
158e0e64 | 23725 | #endif |
7d9455ce | 23726 | |
23727 | int (*ptr)() = (int (*)())erfcl; | |
23728 | ||
158e0e64 | 23729 | int |
23730 | main () | |
23731 | { | |
158e0e64 | 23732 | return 0; |
23733 | } | |
7d9455ce | 23734 | |
158e0e64 | 23735 | _ACEOF |
cd9a469c | 23736 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23737 | gcc_cv_math_func_erfcl=yes |
158e0e64 | 23738 | else |
7d9455ce | 23739 | gcc_cv_math_func_erfcl=no |
158e0e64 | 23740 | fi |
cd9a469c | 23741 | rm -f core conftest.err conftest.$ac_objext \ |
23742 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23743 | fi |
7d9455ce | 23744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 |
23745 | $as_echo "$gcc_cv_math_func_erfcl" >&6; } | |
23746 | if test $gcc_cv_math_func_erfcl = yes; then | |
bd647a17 | 23747 | |
6affa8e1 | 23748 | cat >>confdefs.h <<_ACEOF |
23749 | #define HAVE_ERFCL 1 | |
23750 | _ACEOF | |
7d9455ce | 23751 | |
23752 | fi | |
158e0e64 | 23753 | |
158e0e64 | 23754 | |
158e0e64 | 23755 | |
7d9455ce | 23756 | |
23757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 | |
23758 | $as_echo_n "checking for j0f... " >&6; } | |
f00f02a3 | 23759 | if ${gcc_cv_math_func_j0f+:} false; then : |
cd9a469c | 23760 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23761 | else |
7d9455ce | 23762 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23763 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23764 | fi |
cd9a469c | 23765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23766 | /* end confdefs.h. */ |
23767 | ||
7d9455ce | 23768 | #ifdef HAVE_COMPLEX_H |
23769 | #include <complex.h> | |
158e0e64 | 23770 | #endif |
7d9455ce | 23771 | #ifdef HAVE_MATH_H |
23772 | #include <math.h> | |
23773 | #endif | |
23774 | ||
23775 | int (*ptr)() = (int (*)())j0f; | |
23776 | ||
158e0e64 | 23777 | int |
23778 | main () | |
23779 | { | |
158e0e64 | 23780 | return 0; |
23781 | } | |
7d9455ce | 23782 | |
158e0e64 | 23783 | _ACEOF |
cd9a469c | 23784 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23785 | gcc_cv_math_func_j0f=yes |
158e0e64 | 23786 | else |
7d9455ce | 23787 | gcc_cv_math_func_j0f=no |
d213114b | 23788 | fi |
cd9a469c | 23789 | rm -f core conftest.err conftest.$ac_objext \ |
23790 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23791 | fi |
7d9455ce | 23792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 |
23793 | $as_echo "$gcc_cv_math_func_j0f" >&6; } | |
23794 | if test $gcc_cv_math_func_j0f = yes; then | |
bd647a17 | 23795 | |
6affa8e1 | 23796 | cat >>confdefs.h <<_ACEOF |
23797 | #define HAVE_J0F 1 | |
23798 | _ACEOF | |
d213114b | 23799 | |
7d9455ce | 23800 | fi |
d213114b | 23801 | |
d213114b | 23802 | |
7d9455ce | 23803 | |
23804 | ||
23805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 | |
23806 | $as_echo_n "checking for j0... " >&6; } | |
f00f02a3 | 23807 | if ${gcc_cv_math_func_j0+:} false; then : |
cd9a469c | 23808 | $as_echo_n "(cached) " >&6 |
d213114b | 23809 | else |
7d9455ce | 23810 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23811 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23812 | fi |
cd9a469c | 23813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23814 | /* end confdefs.h. */ |
23815 | ||
7d9455ce | 23816 | #ifdef HAVE_COMPLEX_H |
23817 | #include <complex.h> | |
23818 | #endif | |
23819 | #ifdef HAVE_MATH_H | |
23820 | #include <math.h> | |
d213114b | 23821 | #endif |
7d9455ce | 23822 | |
23823 | int (*ptr)() = (int (*)())j0; | |
23824 | ||
d213114b | 23825 | int |
23826 | main () | |
23827 | { | |
d213114b | 23828 | return 0; |
23829 | } | |
7d9455ce | 23830 | |
d213114b | 23831 | _ACEOF |
cd9a469c | 23832 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23833 | gcc_cv_math_func_j0=yes |
d213114b | 23834 | else |
7d9455ce | 23835 | gcc_cv_math_func_j0=no |
d213114b | 23836 | fi |
cd9a469c | 23837 | rm -f core conftest.err conftest.$ac_objext \ |
23838 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23839 | fi |
7d9455ce | 23840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 |
23841 | $as_echo "$gcc_cv_math_func_j0" >&6; } | |
23842 | if test $gcc_cv_math_func_j0 = yes; then | |
bd647a17 | 23843 | |
6affa8e1 | 23844 | cat >>confdefs.h <<_ACEOF |
23845 | #define HAVE_J0 1 | |
23846 | _ACEOF | |
7d9455ce | 23847 | |
23848 | fi | |
d213114b | 23849 | |
d213114b | 23850 | |
d213114b | 23851 | |
7d9455ce | 23852 | |
7d9455ce | 23853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 |
23854 | $as_echo_n "checking for j1f... " >&6; } | |
f00f02a3 | 23855 | if ${gcc_cv_math_func_j1f+:} false; then : |
cd9a469c | 23856 | $as_echo_n "(cached) " >&6 |
d213114b | 23857 | else |
7d9455ce | 23858 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23859 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23860 | fi |
cd9a469c | 23861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23862 | /* end confdefs.h. */ |
23863 | ||
7d9455ce | 23864 | #ifdef HAVE_COMPLEX_H |
23865 | #include <complex.h> | |
23866 | #endif | |
23867 | #ifdef HAVE_MATH_H | |
23868 | #include <math.h> | |
d213114b | 23869 | #endif |
7d9455ce | 23870 | |
23871 | int (*ptr)() = (int (*)())j1f; | |
23872 | ||
d213114b | 23873 | int |
23874 | main () | |
23875 | { | |
d213114b | 23876 | return 0; |
23877 | } | |
7d9455ce | 23878 | |
d213114b | 23879 | _ACEOF |
cd9a469c | 23880 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23881 | gcc_cv_math_func_j1f=yes |
d213114b | 23882 | else |
7d9455ce | 23883 | gcc_cv_math_func_j1f=no |
158e0e64 | 23884 | fi |
cd9a469c | 23885 | rm -f core conftest.err conftest.$ac_objext \ |
23886 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23887 | fi |
7d9455ce | 23888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 |
23889 | $as_echo "$gcc_cv_math_func_j1f" >&6; } | |
23890 | if test $gcc_cv_math_func_j1f = yes; then | |
bd647a17 | 23891 | |
6affa8e1 | 23892 | cat >>confdefs.h <<_ACEOF |
23893 | #define HAVE_J1F 1 | |
23894 | _ACEOF | |
7d9455ce | 23895 | |
23896 | fi | |
158e0e64 | 23897 | |
158e0e64 | 23898 | |
158e0e64 | 23899 | |
7d9455ce | 23900 | |
23901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 | |
23902 | $as_echo_n "checking for j1... " >&6; } | |
f00f02a3 | 23903 | if ${gcc_cv_math_func_j1+:} false; then : |
cd9a469c | 23904 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23905 | else |
7d9455ce | 23906 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23907 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23908 | fi |
cd9a469c | 23909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23910 | /* end confdefs.h. */ |
23911 | ||
7d9455ce | 23912 | #ifdef HAVE_COMPLEX_H |
23913 | #include <complex.h> | |
158e0e64 | 23914 | #endif |
7d9455ce | 23915 | #ifdef HAVE_MATH_H |
23916 | #include <math.h> | |
23917 | #endif | |
23918 | ||
23919 | int (*ptr)() = (int (*)())j1; | |
23920 | ||
158e0e64 | 23921 | int |
23922 | main () | |
23923 | { | |
158e0e64 | 23924 | return 0; |
23925 | } | |
7d9455ce | 23926 | |
158e0e64 | 23927 | _ACEOF |
cd9a469c | 23928 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23929 | gcc_cv_math_func_j1=yes |
158e0e64 | 23930 | else |
7d9455ce | 23931 | gcc_cv_math_func_j1=no |
158e0e64 | 23932 | fi |
cd9a469c | 23933 | rm -f core conftest.err conftest.$ac_objext \ |
23934 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23935 | fi |
7d9455ce | 23936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 |
23937 | $as_echo "$gcc_cv_math_func_j1" >&6; } | |
23938 | if test $gcc_cv_math_func_j1 = yes; then | |
bd647a17 | 23939 | |
6affa8e1 | 23940 | cat >>confdefs.h <<_ACEOF |
23941 | #define HAVE_J1 1 | |
23942 | _ACEOF | |
158e0e64 | 23943 | |
7d9455ce | 23944 | fi |
158e0e64 | 23945 | |
158e0e64 | 23946 | |
7d9455ce | 23947 | |
23948 | ||
7d9455ce | 23949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 |
23950 | $as_echo_n "checking for jnf... " >&6; } | |
f00f02a3 | 23951 | if ${gcc_cv_math_func_jnf+:} false; then : |
cd9a469c | 23952 | $as_echo_n "(cached) " >&6 |
158e0e64 | 23953 | else |
7d9455ce | 23954 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 23955 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23956 | fi |
cd9a469c | 23957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23958 | /* end confdefs.h. */ |
23959 | ||
7d9455ce | 23960 | #ifdef HAVE_COMPLEX_H |
23961 | #include <complex.h> | |
158e0e64 | 23962 | #endif |
7d9455ce | 23963 | #ifdef HAVE_MATH_H |
23964 | #include <math.h> | |
23965 | #endif | |
23966 | ||
23967 | int (*ptr)() = (int (*)())jnf; | |
23968 | ||
158e0e64 | 23969 | int |
23970 | main () | |
23971 | { | |
158e0e64 | 23972 | return 0; |
23973 | } | |
7d9455ce | 23974 | |
158e0e64 | 23975 | _ACEOF |
cd9a469c | 23976 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 23977 | gcc_cv_math_func_jnf=yes |
158e0e64 | 23978 | else |
7d9455ce | 23979 | gcc_cv_math_func_jnf=no |
158e0e64 | 23980 | fi |
cd9a469c | 23981 | rm -f core conftest.err conftest.$ac_objext \ |
23982 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23983 | fi |
7d9455ce | 23984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 |
23985 | $as_echo "$gcc_cv_math_func_jnf" >&6; } | |
23986 | if test $gcc_cv_math_func_jnf = yes; then | |
bd647a17 | 23987 | |
6affa8e1 | 23988 | cat >>confdefs.h <<_ACEOF |
23989 | #define HAVE_JNF 1 | |
23990 | _ACEOF | |
7d9455ce | 23991 | |
23992 | fi | |
23993 | ||
158e0e64 | 23994 | |
158e0e64 | 23995 | |
158e0e64 | 23996 | |
7d9455ce | 23997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 |
23998 | $as_echo_n "checking for jn... " >&6; } | |
f00f02a3 | 23999 | if ${gcc_cv_math_func_jn+:} false; then : |
cd9a469c | 24000 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24001 | else |
7d9455ce | 24002 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24003 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24004 | fi |
cd9a469c | 24005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24006 | /* end confdefs.h. */ |
24007 | ||
7d9455ce | 24008 | #ifdef HAVE_COMPLEX_H |
24009 | #include <complex.h> | |
24010 | #endif | |
24011 | #ifdef HAVE_MATH_H | |
24012 | #include <math.h> | |
158e0e64 | 24013 | #endif |
7d9455ce | 24014 | |
24015 | int (*ptr)() = (int (*)())jn; | |
24016 | ||
158e0e64 | 24017 | int |
24018 | main () | |
24019 | { | |
158e0e64 | 24020 | return 0; |
24021 | } | |
7d9455ce | 24022 | |
158e0e64 | 24023 | _ACEOF |
cd9a469c | 24024 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24025 | gcc_cv_math_func_jn=yes |
158e0e64 | 24026 | else |
7d9455ce | 24027 | gcc_cv_math_func_jn=no |
158e0e64 | 24028 | fi |
cd9a469c | 24029 | rm -f core conftest.err conftest.$ac_objext \ |
24030 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24031 | fi |
7d9455ce | 24032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 |
24033 | $as_echo "$gcc_cv_math_func_jn" >&6; } | |
24034 | if test $gcc_cv_math_func_jn = yes; then | |
bd647a17 | 24035 | |
6affa8e1 | 24036 | cat >>confdefs.h <<_ACEOF |
24037 | #define HAVE_JN 1 | |
24038 | _ACEOF | |
7d9455ce | 24039 | |
24040 | fi | |
158e0e64 | 24041 | |
158e0e64 | 24042 | |
158e0e64 | 24043 | |
7d9455ce | 24044 | |
24045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 | |
24046 | $as_echo_n "checking for jnl... " >&6; } | |
f00f02a3 | 24047 | if ${gcc_cv_math_func_jnl+:} false; then : |
cd9a469c | 24048 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24049 | else |
7d9455ce | 24050 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24051 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24052 | fi |
cd9a469c | 24053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24054 | /* end confdefs.h. */ |
24055 | ||
7d9455ce | 24056 | #ifdef HAVE_COMPLEX_H |
24057 | #include <complex.h> | |
158e0e64 | 24058 | #endif |
7d9455ce | 24059 | #ifdef HAVE_MATH_H |
24060 | #include <math.h> | |
24061 | #endif | |
24062 | ||
24063 | int (*ptr)() = (int (*)())jnl; | |
24064 | ||
158e0e64 | 24065 | int |
24066 | main () | |
24067 | { | |
158e0e64 | 24068 | return 0; |
24069 | } | |
7d9455ce | 24070 | |
158e0e64 | 24071 | _ACEOF |
cd9a469c | 24072 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24073 | gcc_cv_math_func_jnl=yes |
158e0e64 | 24074 | else |
7d9455ce | 24075 | gcc_cv_math_func_jnl=no |
158e0e64 | 24076 | fi |
cd9a469c | 24077 | rm -f core conftest.err conftest.$ac_objext \ |
24078 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24079 | fi |
7d9455ce | 24080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 |
24081 | $as_echo "$gcc_cv_math_func_jnl" >&6; } | |
24082 | if test $gcc_cv_math_func_jnl = yes; then | |
bd647a17 | 24083 | |
6affa8e1 | 24084 | cat >>confdefs.h <<_ACEOF |
24085 | #define HAVE_JNL 1 | |
24086 | _ACEOF | |
158e0e64 | 24087 | |
7d9455ce | 24088 | fi |
158e0e64 | 24089 | |
158e0e64 | 24090 | |
7d9455ce | 24091 | |
24092 | ||
24093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 | |
24094 | $as_echo_n "checking for y0f... " >&6; } | |
f00f02a3 | 24095 | if ${gcc_cv_math_func_y0f+:} false; then : |
cd9a469c | 24096 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24097 | else |
7d9455ce | 24098 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24099 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24100 | fi |
cd9a469c | 24101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24102 | /* end confdefs.h. */ |
24103 | ||
7d9455ce | 24104 | #ifdef HAVE_COMPLEX_H |
24105 | #include <complex.h> | |
24106 | #endif | |
24107 | #ifdef HAVE_MATH_H | |
24108 | #include <math.h> | |
158e0e64 | 24109 | #endif |
7d9455ce | 24110 | |
24111 | int (*ptr)() = (int (*)())y0f; | |
24112 | ||
158e0e64 | 24113 | int |
24114 | main () | |
24115 | { | |
158e0e64 | 24116 | return 0; |
24117 | } | |
7d9455ce | 24118 | |
158e0e64 | 24119 | _ACEOF |
cd9a469c | 24120 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24121 | gcc_cv_math_func_y0f=yes |
158e0e64 | 24122 | else |
7d9455ce | 24123 | gcc_cv_math_func_y0f=no |
158e0e64 | 24124 | fi |
cd9a469c | 24125 | rm -f core conftest.err conftest.$ac_objext \ |
24126 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24127 | fi |
7d9455ce | 24128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 |
24129 | $as_echo "$gcc_cv_math_func_y0f" >&6; } | |
24130 | if test $gcc_cv_math_func_y0f = yes; then | |
bd647a17 | 24131 | |
6affa8e1 | 24132 | cat >>confdefs.h <<_ACEOF |
24133 | #define HAVE_Y0F 1 | |
24134 | _ACEOF | |
7d9455ce | 24135 | |
24136 | fi | |
158e0e64 | 24137 | |
158e0e64 | 24138 | |
158e0e64 | 24139 | |
7d9455ce | 24140 | |
24141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 | |
24142 | $as_echo_n "checking for y0... " >&6; } | |
f00f02a3 | 24143 | if ${gcc_cv_math_func_y0+:} false; then : |
cd9a469c | 24144 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24145 | else |
7d9455ce | 24146 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24147 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24148 | fi |
cd9a469c | 24149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24150 | /* end confdefs.h. */ |
24151 | ||
7d9455ce | 24152 | #ifdef HAVE_COMPLEX_H |
24153 | #include <complex.h> | |
158e0e64 | 24154 | #endif |
7d9455ce | 24155 | #ifdef HAVE_MATH_H |
24156 | #include <math.h> | |
24157 | #endif | |
24158 | ||
24159 | int (*ptr)() = (int (*)())y0; | |
24160 | ||
158e0e64 | 24161 | int |
24162 | main () | |
24163 | { | |
158e0e64 | 24164 | return 0; |
24165 | } | |
7d9455ce | 24166 | |
158e0e64 | 24167 | _ACEOF |
cd9a469c | 24168 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24169 | gcc_cv_math_func_y0=yes |
158e0e64 | 24170 | else |
7d9455ce | 24171 | gcc_cv_math_func_y0=no |
158e0e64 | 24172 | fi |
cd9a469c | 24173 | rm -f core conftest.err conftest.$ac_objext \ |
24174 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24175 | fi |
7d9455ce | 24176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 |
24177 | $as_echo "$gcc_cv_math_func_y0" >&6; } | |
24178 | if test $gcc_cv_math_func_y0 = yes; then | |
bd647a17 | 24179 | |
6affa8e1 | 24180 | cat >>confdefs.h <<_ACEOF |
24181 | #define HAVE_Y0 1 | |
24182 | _ACEOF | |
7d9455ce | 24183 | |
24184 | fi | |
24185 | ||
158e0e64 | 24186 | |
158e0e64 | 24187 | |
158e0e64 | 24188 | |
7d9455ce | 24189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 |
24190 | $as_echo_n "checking for y1f... " >&6; } | |
f00f02a3 | 24191 | if ${gcc_cv_math_func_y1f+:} false; then : |
cd9a469c | 24192 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24193 | else |
7d9455ce | 24194 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24195 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24196 | fi |
cd9a469c | 24197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24198 | /* end confdefs.h. */ |
24199 | ||
7d9455ce | 24200 | #ifdef HAVE_COMPLEX_H |
24201 | #include <complex.h> | |
158e0e64 | 24202 | #endif |
7d9455ce | 24203 | #ifdef HAVE_MATH_H |
24204 | #include <math.h> | |
24205 | #endif | |
24206 | ||
24207 | int (*ptr)() = (int (*)())y1f; | |
24208 | ||
158e0e64 | 24209 | int |
24210 | main () | |
24211 | { | |
158e0e64 | 24212 | return 0; |
24213 | } | |
7d9455ce | 24214 | |
158e0e64 | 24215 | _ACEOF |
cd9a469c | 24216 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24217 | gcc_cv_math_func_y1f=yes |
158e0e64 | 24218 | else |
7d9455ce | 24219 | gcc_cv_math_func_y1f=no |
158e0e64 | 24220 | fi |
cd9a469c | 24221 | rm -f core conftest.err conftest.$ac_objext \ |
24222 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24223 | fi |
7d9455ce | 24224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 |
24225 | $as_echo "$gcc_cv_math_func_y1f" >&6; } | |
24226 | if test $gcc_cv_math_func_y1f = yes; then | |
bd647a17 | 24227 | |
6affa8e1 | 24228 | cat >>confdefs.h <<_ACEOF |
24229 | #define HAVE_Y1F 1 | |
24230 | _ACEOF | |
158e0e64 | 24231 | |
7d9455ce | 24232 | fi |
158e0e64 | 24233 | |
158e0e64 | 24234 | |
7d9455ce | 24235 | |
24236 | ||
24237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 | |
24238 | $as_echo_n "checking for y1... " >&6; } | |
f00f02a3 | 24239 | if ${gcc_cv_math_func_y1+:} false; then : |
cd9a469c | 24240 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24241 | else |
7d9455ce | 24242 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24243 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24244 | fi |
cd9a469c | 24245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24246 | /* end confdefs.h. */ |
24247 | ||
7d9455ce | 24248 | #ifdef HAVE_COMPLEX_H |
24249 | #include <complex.h> | |
24250 | #endif | |
24251 | #ifdef HAVE_MATH_H | |
24252 | #include <math.h> | |
158e0e64 | 24253 | #endif |
7d9455ce | 24254 | |
24255 | int (*ptr)() = (int (*)())y1; | |
24256 | ||
158e0e64 | 24257 | int |
24258 | main () | |
24259 | { | |
158e0e64 | 24260 | return 0; |
24261 | } | |
7d9455ce | 24262 | |
158e0e64 | 24263 | _ACEOF |
cd9a469c | 24264 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24265 | gcc_cv_math_func_y1=yes |
158e0e64 | 24266 | else |
7d9455ce | 24267 | gcc_cv_math_func_y1=no |
158e0e64 | 24268 | fi |
cd9a469c | 24269 | rm -f core conftest.err conftest.$ac_objext \ |
24270 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24271 | fi |
7d9455ce | 24272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 |
24273 | $as_echo "$gcc_cv_math_func_y1" >&6; } | |
24274 | if test $gcc_cv_math_func_y1 = yes; then | |
bd647a17 | 24275 | |
6affa8e1 | 24276 | cat >>confdefs.h <<_ACEOF |
24277 | #define HAVE_Y1 1 | |
24278 | _ACEOF | |
7d9455ce | 24279 | |
24280 | fi | |
158e0e64 | 24281 | |
158e0e64 | 24282 | |
158e0e64 | 24283 | |
7d9455ce | 24284 | |
7d9455ce | 24285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 |
24286 | $as_echo_n "checking for ynf... " >&6; } | |
f00f02a3 | 24287 | if ${gcc_cv_math_func_ynf+:} false; then : |
cd9a469c | 24288 | $as_echo_n "(cached) " >&6 |
7d9455ce | 24289 | else |
24290 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 24291 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24292 | fi |
cd9a469c | 24293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24294 | /* end confdefs.h. */ |
24295 | ||
7d9455ce | 24296 | #ifdef HAVE_COMPLEX_H |
24297 | #include <complex.h> | |
24298 | #endif | |
24299 | #ifdef HAVE_MATH_H | |
24300 | #include <math.h> | |
158e0e64 | 24301 | #endif |
7d9455ce | 24302 | |
24303 | int (*ptr)() = (int (*)())ynf; | |
24304 | ||
158e0e64 | 24305 | int |
24306 | main () | |
24307 | { | |
158e0e64 | 24308 | return 0; |
24309 | } | |
7d9455ce | 24310 | |
158e0e64 | 24311 | _ACEOF |
cd9a469c | 24312 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24313 | gcc_cv_math_func_ynf=yes |
158e0e64 | 24314 | else |
7d9455ce | 24315 | gcc_cv_math_func_ynf=no |
158e0e64 | 24316 | fi |
cd9a469c | 24317 | rm -f core conftest.err conftest.$ac_objext \ |
24318 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24319 | fi |
7d9455ce | 24320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 |
24321 | $as_echo "$gcc_cv_math_func_ynf" >&6; } | |
24322 | if test $gcc_cv_math_func_ynf = yes; then | |
bd647a17 | 24323 | |
6affa8e1 | 24324 | cat >>confdefs.h <<_ACEOF |
24325 | #define HAVE_YNF 1 | |
24326 | _ACEOF | |
7d9455ce | 24327 | |
24328 | fi | |
158e0e64 | 24329 | |
158e0e64 | 24330 | |
158e0e64 | 24331 | |
7d9455ce | 24332 | |
24333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 | |
24334 | $as_echo_n "checking for yn... " >&6; } | |
f00f02a3 | 24335 | if ${gcc_cv_math_func_yn+:} false; then : |
cd9a469c | 24336 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24337 | else |
7d9455ce | 24338 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24339 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24340 | fi |
cd9a469c | 24341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24342 | /* end confdefs.h. */ |
24343 | ||
7d9455ce | 24344 | #ifdef HAVE_COMPLEX_H |
24345 | #include <complex.h> | |
158e0e64 | 24346 | #endif |
7d9455ce | 24347 | #ifdef HAVE_MATH_H |
24348 | #include <math.h> | |
24349 | #endif | |
24350 | ||
24351 | int (*ptr)() = (int (*)())yn; | |
24352 | ||
158e0e64 | 24353 | int |
24354 | main () | |
24355 | { | |
158e0e64 | 24356 | return 0; |
24357 | } | |
7d9455ce | 24358 | |
158e0e64 | 24359 | _ACEOF |
cd9a469c | 24360 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24361 | gcc_cv_math_func_yn=yes |
158e0e64 | 24362 | else |
7d9455ce | 24363 | gcc_cv_math_func_yn=no |
158e0e64 | 24364 | fi |
cd9a469c | 24365 | rm -f core conftest.err conftest.$ac_objext \ |
24366 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24367 | fi |
7d9455ce | 24368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 |
24369 | $as_echo "$gcc_cv_math_func_yn" >&6; } | |
24370 | if test $gcc_cv_math_func_yn = yes; then | |
bd647a17 | 24371 | |
6affa8e1 | 24372 | cat >>confdefs.h <<_ACEOF |
24373 | #define HAVE_YN 1 | |
24374 | _ACEOF | |
7d9455ce | 24375 | |
24376 | fi | |
24377 | ||
158e0e64 | 24378 | |
158e0e64 | 24379 | |
158e0e64 | 24380 | |
7d9455ce | 24381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 |
24382 | $as_echo_n "checking for ynl... " >&6; } | |
f00f02a3 | 24383 | if ${gcc_cv_math_func_ynl+:} false; then : |
cd9a469c | 24384 | $as_echo_n "(cached) " >&6 |
158e0e64 | 24385 | else |
7d9455ce | 24386 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24387 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 24388 | fi |
cd9a469c | 24389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 24390 | /* end confdefs.h. */ |
24391 | ||
7d9455ce | 24392 | #ifdef HAVE_COMPLEX_H |
24393 | #include <complex.h> | |
24394 | #endif | |
24395 | #ifdef HAVE_MATH_H | |
24396 | #include <math.h> | |
158e0e64 | 24397 | #endif |
7d9455ce | 24398 | |
24399 | int (*ptr)() = (int (*)())ynl; | |
24400 | ||
158e0e64 | 24401 | int |
24402 | main () | |
24403 | { | |
158e0e64 | 24404 | return 0; |
24405 | } | |
7d9455ce | 24406 | |
158e0e64 | 24407 | _ACEOF |
cd9a469c | 24408 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24409 | gcc_cv_math_func_ynl=yes |
158e0e64 | 24410 | else |
7d9455ce | 24411 | gcc_cv_math_func_ynl=no |
158e0e64 | 24412 | fi |
cd9a469c | 24413 | rm -f core conftest.err conftest.$ac_objext \ |
24414 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 24415 | fi |
7d9455ce | 24416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 |
24417 | $as_echo "$gcc_cv_math_func_ynl" >&6; } | |
24418 | if test $gcc_cv_math_func_ynl = yes; then | |
bd647a17 | 24419 | |
6affa8e1 | 24420 | cat >>confdefs.h <<_ACEOF |
24421 | #define HAVE_YNL 1 | |
24422 | _ACEOF | |
7d9455ce | 24423 | |
24424 | fi | |
158e0e64 | 24425 | |
158e0e64 | 24426 | |
158e0e64 | 24427 | |
7d9455ce | 24428 | |
24429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 | |
24430 | $as_echo_n "checking for tgamma... " >&6; } | |
f00f02a3 | 24431 | if ${gcc_cv_math_func_tgamma+:} false; then : |
cd9a469c | 24432 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24433 | else |
7d9455ce | 24434 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24435 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24436 | fi |
cd9a469c | 24437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24438 | /* end confdefs.h. */ |
24439 | ||
7d9455ce | 24440 | #ifdef HAVE_COMPLEX_H |
24441 | #include <complex.h> | |
6d516d29 | 24442 | #endif |
7d9455ce | 24443 | #ifdef HAVE_MATH_H |
24444 | #include <math.h> | |
24445 | #endif | |
24446 | ||
24447 | int (*ptr)() = (int (*)())tgamma; | |
24448 | ||
6d516d29 | 24449 | int |
24450 | main () | |
24451 | { | |
6d516d29 | 24452 | return 0; |
24453 | } | |
7d9455ce | 24454 | |
6d516d29 | 24455 | _ACEOF |
cd9a469c | 24456 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24457 | gcc_cv_math_func_tgamma=yes |
6d516d29 | 24458 | else |
7d9455ce | 24459 | gcc_cv_math_func_tgamma=no |
6d516d29 | 24460 | fi |
cd9a469c | 24461 | rm -f core conftest.err conftest.$ac_objext \ |
24462 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24463 | fi |
7d9455ce | 24464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 |
24465 | $as_echo "$gcc_cv_math_func_tgamma" >&6; } | |
24466 | if test $gcc_cv_math_func_tgamma = yes; then | |
bd647a17 | 24467 | |
6affa8e1 | 24468 | cat >>confdefs.h <<_ACEOF |
24469 | #define HAVE_TGAMMA 1 | |
24470 | _ACEOF | |
6d516d29 | 24471 | |
7d9455ce | 24472 | fi |
6d516d29 | 24473 | |
6d516d29 | 24474 | |
7d9455ce | 24475 | |
24476 | ||
24477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 | |
24478 | $as_echo_n "checking for tgammaf... " >&6; } | |
f00f02a3 | 24479 | if ${gcc_cv_math_func_tgammaf+:} false; then : |
cd9a469c | 24480 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24481 | else |
7d9455ce | 24482 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24483 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24484 | fi |
cd9a469c | 24485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24486 | /* end confdefs.h. */ |
24487 | ||
7d9455ce | 24488 | #ifdef HAVE_COMPLEX_H |
24489 | #include <complex.h> | |
24490 | #endif | |
24491 | #ifdef HAVE_MATH_H | |
24492 | #include <math.h> | |
6d516d29 | 24493 | #endif |
7d9455ce | 24494 | |
24495 | int (*ptr)() = (int (*)())tgammaf; | |
24496 | ||
6d516d29 | 24497 | int |
24498 | main () | |
24499 | { | |
6d516d29 | 24500 | return 0; |
24501 | } | |
7d9455ce | 24502 | |
6d516d29 | 24503 | _ACEOF |
cd9a469c | 24504 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24505 | gcc_cv_math_func_tgammaf=yes |
6d516d29 | 24506 | else |
7d9455ce | 24507 | gcc_cv_math_func_tgammaf=no |
6d516d29 | 24508 | fi |
cd9a469c | 24509 | rm -f core conftest.err conftest.$ac_objext \ |
24510 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24511 | fi |
7d9455ce | 24512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 |
24513 | $as_echo "$gcc_cv_math_func_tgammaf" >&6; } | |
24514 | if test $gcc_cv_math_func_tgammaf = yes; then | |
bd647a17 | 24515 | |
6affa8e1 | 24516 | cat >>confdefs.h <<_ACEOF |
24517 | #define HAVE_TGAMMAF 1 | |
24518 | _ACEOF | |
7d9455ce | 24519 | |
24520 | fi | |
6d516d29 | 24521 | |
6d516d29 | 24522 | |
6d516d29 | 24523 | |
7d9455ce | 24524 | |
7d9455ce | 24525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 |
24526 | $as_echo_n "checking for lgamma... " >&6; } | |
f00f02a3 | 24527 | if ${gcc_cv_math_func_lgamma+:} false; then : |
cd9a469c | 24528 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24529 | else |
7d9455ce | 24530 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24531 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24532 | fi |
cd9a469c | 24533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24534 | /* end confdefs.h. */ |
24535 | ||
7d9455ce | 24536 | #ifdef HAVE_COMPLEX_H |
24537 | #include <complex.h> | |
24538 | #endif | |
24539 | #ifdef HAVE_MATH_H | |
24540 | #include <math.h> | |
6d516d29 | 24541 | #endif |
7d9455ce | 24542 | |
24543 | int (*ptr)() = (int (*)())lgamma; | |
24544 | ||
6d516d29 | 24545 | int |
24546 | main () | |
24547 | { | |
6d516d29 | 24548 | return 0; |
24549 | } | |
7d9455ce | 24550 | |
6d516d29 | 24551 | _ACEOF |
cd9a469c | 24552 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24553 | gcc_cv_math_func_lgamma=yes |
6d516d29 | 24554 | else |
7d9455ce | 24555 | gcc_cv_math_func_lgamma=no |
6d516d29 | 24556 | fi |
cd9a469c | 24557 | rm -f core conftest.err conftest.$ac_objext \ |
24558 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24559 | fi |
7d9455ce | 24560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 |
24561 | $as_echo "$gcc_cv_math_func_lgamma" >&6; } | |
24562 | if test $gcc_cv_math_func_lgamma = yes; then | |
bd647a17 | 24563 | |
6affa8e1 | 24564 | cat >>confdefs.h <<_ACEOF |
24565 | #define HAVE_LGAMMA 1 | |
24566 | _ACEOF | |
7d9455ce | 24567 | |
24568 | fi | |
6d516d29 | 24569 | |
6d516d29 | 24570 | |
6d516d29 | 24571 | |
7d9455ce | 24572 | |
24573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 | |
24574 | $as_echo_n "checking for lgammaf... " >&6; } | |
f00f02a3 | 24575 | if ${gcc_cv_math_func_lgammaf+:} false; then : |
cd9a469c | 24576 | $as_echo_n "(cached) " >&6 |
6d516d29 | 24577 | else |
7d9455ce | 24578 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24579 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24580 | fi |
cd9a469c | 24581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24582 | /* end confdefs.h. */ |
24583 | ||
7d9455ce | 24584 | #ifdef HAVE_COMPLEX_H |
24585 | #include <complex.h> | |
6d516d29 | 24586 | #endif |
7d9455ce | 24587 | #ifdef HAVE_MATH_H |
24588 | #include <math.h> | |
24589 | #endif | |
24590 | ||
24591 | int (*ptr)() = (int (*)())lgammaf; | |
24592 | ||
6d516d29 | 24593 | int |
24594 | main () | |
24595 | { | |
6d516d29 | 24596 | return 0; |
24597 | } | |
7d9455ce | 24598 | |
6d516d29 | 24599 | _ACEOF |
cd9a469c | 24600 | if ac_fn_c_try_link "$LINENO"; then : |
7d9455ce | 24601 | gcc_cv_math_func_lgammaf=yes |
6d516d29 | 24602 | else |
7d9455ce | 24603 | gcc_cv_math_func_lgammaf=no |
6d516d29 | 24604 | fi |
cd9a469c | 24605 | rm -f core conftest.err conftest.$ac_objext \ |
24606 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24607 | fi |
7d9455ce | 24608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 |
24609 | $as_echo "$gcc_cv_math_func_lgammaf" >&6; } | |
24610 | if test $gcc_cv_math_func_lgammaf = yes; then | |
bd647a17 | 24611 | |
6affa8e1 | 24612 | cat >>confdefs.h <<_ACEOF |
24613 | #define HAVE_LGAMMAF 1 | |
24614 | _ACEOF | |
6d516d29 | 24615 | |
7d9455ce | 24616 | fi |
6d516d29 | 24617 | |
6d516d29 | 24618 | |
89b803c8 | 24619 | # Check for GFORTRAN_C99_1.1 funcs |
7d9455ce | 24620 | |
24621 | ||
24622 | ||
24623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 | |
24624 | $as_echo_n "checking for cacos... " >&6; } | |
f00f02a3 | 24625 | if ${gcc_cv_math_func_cacos+:} false; then : |
89b803c8 | 24626 | $as_echo_n "(cached) " >&6 |
24627 | else | |
7d9455ce | 24628 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24629 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24630 | fi |
24631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24632 | /* end confdefs.h. */ | |
24633 | ||
7d9455ce | 24634 | #ifdef HAVE_COMPLEX_H |
24635 | #include <complex.h> | |
89b803c8 | 24636 | #endif |
7d9455ce | 24637 | #ifdef HAVE_MATH_H |
24638 | #include <math.h> | |
24639 | #endif | |
24640 | ||
24641 | int (*ptr)() = (int (*)())cacos; | |
24642 | ||
89b803c8 | 24643 | int |
24644 | main () | |
24645 | { | |
89b803c8 | 24646 | return 0; |
24647 | } | |
7d9455ce | 24648 | |
89b803c8 | 24649 | _ACEOF |
24650 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24651 | gcc_cv_math_func_cacos=yes |
89b803c8 | 24652 | else |
7d9455ce | 24653 | gcc_cv_math_func_cacos=no |
89b803c8 | 24654 | fi |
24655 | rm -f core conftest.err conftest.$ac_objext \ | |
24656 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24657 | fi |
7d9455ce | 24658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 |
24659 | $as_echo "$gcc_cv_math_func_cacos" >&6; } | |
24660 | if test $gcc_cv_math_func_cacos = yes; then | |
bd647a17 | 24661 | |
6affa8e1 | 24662 | cat >>confdefs.h <<_ACEOF |
24663 | #define HAVE_CACOS 1 | |
24664 | _ACEOF | |
89b803c8 | 24665 | |
7d9455ce | 24666 | fi |
89b803c8 | 24667 | |
89b803c8 | 24668 | |
7d9455ce | 24669 | |
24670 | ||
24671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 | |
24672 | $as_echo_n "checking for cacosf... " >&6; } | |
f00f02a3 | 24673 | if ${gcc_cv_math_func_cacosf+:} false; then : |
89b803c8 | 24674 | $as_echo_n "(cached) " >&6 |
24675 | else | |
7d9455ce | 24676 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24677 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24678 | fi |
24679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24680 | /* end confdefs.h. */ | |
24681 | ||
7d9455ce | 24682 | #ifdef HAVE_COMPLEX_H |
24683 | #include <complex.h> | |
24684 | #endif | |
24685 | #ifdef HAVE_MATH_H | |
24686 | #include <math.h> | |
89b803c8 | 24687 | #endif |
7d9455ce | 24688 | |
24689 | int (*ptr)() = (int (*)())cacosf; | |
24690 | ||
89b803c8 | 24691 | int |
24692 | main () | |
24693 | { | |
89b803c8 | 24694 | return 0; |
24695 | } | |
7d9455ce | 24696 | |
89b803c8 | 24697 | _ACEOF |
24698 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24699 | gcc_cv_math_func_cacosf=yes |
89b803c8 | 24700 | else |
7d9455ce | 24701 | gcc_cv_math_func_cacosf=no |
89b803c8 | 24702 | fi |
24703 | rm -f core conftest.err conftest.$ac_objext \ | |
24704 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24705 | fi |
7d9455ce | 24706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 |
24707 | $as_echo "$gcc_cv_math_func_cacosf" >&6; } | |
24708 | if test $gcc_cv_math_func_cacosf = yes; then | |
bd647a17 | 24709 | |
6affa8e1 | 24710 | cat >>confdefs.h <<_ACEOF |
24711 | #define HAVE_CACOSF 1 | |
24712 | _ACEOF | |
7d9455ce | 24713 | |
24714 | fi | |
89b803c8 | 24715 | |
89b803c8 | 24716 | |
89b803c8 | 24717 | |
7d9455ce | 24718 | |
24719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 | |
24720 | $as_echo_n "checking for cacosh... " >&6; } | |
f00f02a3 | 24721 | if ${gcc_cv_math_func_cacosh+:} false; then : |
89b803c8 | 24722 | $as_echo_n "(cached) " >&6 |
24723 | else | |
7d9455ce | 24724 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24725 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24726 | fi |
24727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24728 | /* end confdefs.h. */ | |
24729 | ||
7d9455ce | 24730 | #ifdef HAVE_COMPLEX_H |
24731 | #include <complex.h> | |
89b803c8 | 24732 | #endif |
7d9455ce | 24733 | #ifdef HAVE_MATH_H |
24734 | #include <math.h> | |
24735 | #endif | |
24736 | ||
24737 | int (*ptr)() = (int (*)())cacosh; | |
24738 | ||
89b803c8 | 24739 | int |
24740 | main () | |
24741 | { | |
89b803c8 | 24742 | return 0; |
24743 | } | |
7d9455ce | 24744 | |
89b803c8 | 24745 | _ACEOF |
24746 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24747 | gcc_cv_math_func_cacosh=yes |
89b803c8 | 24748 | else |
7d9455ce | 24749 | gcc_cv_math_func_cacosh=no |
89b803c8 | 24750 | fi |
24751 | rm -f core conftest.err conftest.$ac_objext \ | |
24752 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24753 | fi |
7d9455ce | 24754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 |
24755 | $as_echo "$gcc_cv_math_func_cacosh" >&6; } | |
24756 | if test $gcc_cv_math_func_cacosh = yes; then | |
bd647a17 | 24757 | |
6affa8e1 | 24758 | cat >>confdefs.h <<_ACEOF |
24759 | #define HAVE_CACOSH 1 | |
24760 | _ACEOF | |
7d9455ce | 24761 | |
24762 | fi | |
24763 | ||
89b803c8 | 24764 | |
89b803c8 | 24765 | |
89b803c8 | 24766 | |
7d9455ce | 24767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 |
24768 | $as_echo_n "checking for cacoshf... " >&6; } | |
f00f02a3 | 24769 | if ${gcc_cv_math_func_cacoshf+:} false; then : |
89b803c8 | 24770 | $as_echo_n "(cached) " >&6 |
24771 | else | |
7d9455ce | 24772 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24773 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24774 | fi |
24775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24776 | /* end confdefs.h. */ | |
24777 | ||
7d9455ce | 24778 | #ifdef HAVE_COMPLEX_H |
24779 | #include <complex.h> | |
24780 | #endif | |
24781 | #ifdef HAVE_MATH_H | |
24782 | #include <math.h> | |
89b803c8 | 24783 | #endif |
7d9455ce | 24784 | |
24785 | int (*ptr)() = (int (*)())cacoshf; | |
24786 | ||
89b803c8 | 24787 | int |
24788 | main () | |
24789 | { | |
89b803c8 | 24790 | return 0; |
24791 | } | |
7d9455ce | 24792 | |
89b803c8 | 24793 | _ACEOF |
24794 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24795 | gcc_cv_math_func_cacoshf=yes |
89b803c8 | 24796 | else |
7d9455ce | 24797 | gcc_cv_math_func_cacoshf=no |
89b803c8 | 24798 | fi |
24799 | rm -f core conftest.err conftest.$ac_objext \ | |
24800 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24801 | fi |
7d9455ce | 24802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 |
24803 | $as_echo "$gcc_cv_math_func_cacoshf" >&6; } | |
24804 | if test $gcc_cv_math_func_cacoshf = yes; then | |
bd647a17 | 24805 | |
6affa8e1 | 24806 | cat >>confdefs.h <<_ACEOF |
24807 | #define HAVE_CACOSHF 1 | |
24808 | _ACEOF | |
7d9455ce | 24809 | |
24810 | fi | |
89b803c8 | 24811 | |
89b803c8 | 24812 | |
89b803c8 | 24813 | |
7d9455ce | 24814 | |
24815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 | |
24816 | $as_echo_n "checking for cacoshl... " >&6; } | |
f00f02a3 | 24817 | if ${gcc_cv_math_func_cacoshl+:} false; then : |
89b803c8 | 24818 | $as_echo_n "(cached) " >&6 |
24819 | else | |
7d9455ce | 24820 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24821 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24822 | fi |
24823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24824 | /* end confdefs.h. */ | |
24825 | ||
7d9455ce | 24826 | #ifdef HAVE_COMPLEX_H |
24827 | #include <complex.h> | |
89b803c8 | 24828 | #endif |
7d9455ce | 24829 | #ifdef HAVE_MATH_H |
24830 | #include <math.h> | |
24831 | #endif | |
24832 | ||
24833 | int (*ptr)() = (int (*)())cacoshl; | |
24834 | ||
89b803c8 | 24835 | int |
24836 | main () | |
24837 | { | |
89b803c8 | 24838 | return 0; |
24839 | } | |
7d9455ce | 24840 | |
89b803c8 | 24841 | _ACEOF |
24842 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24843 | gcc_cv_math_func_cacoshl=yes |
89b803c8 | 24844 | else |
7d9455ce | 24845 | gcc_cv_math_func_cacoshl=no |
89b803c8 | 24846 | fi |
24847 | rm -f core conftest.err conftest.$ac_objext \ | |
24848 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24849 | fi |
7d9455ce | 24850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 |
24851 | $as_echo "$gcc_cv_math_func_cacoshl" >&6; } | |
24852 | if test $gcc_cv_math_func_cacoshl = yes; then | |
bd647a17 | 24853 | |
6affa8e1 | 24854 | cat >>confdefs.h <<_ACEOF |
24855 | #define HAVE_CACOSHL 1 | |
24856 | _ACEOF | |
89b803c8 | 24857 | |
7d9455ce | 24858 | fi |
89b803c8 | 24859 | |
89b803c8 | 24860 | |
7d9455ce | 24861 | |
24862 | ||
24863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 | |
24864 | $as_echo_n "checking for cacosl... " >&6; } | |
f00f02a3 | 24865 | if ${gcc_cv_math_func_cacosl+:} false; then : |
89b803c8 | 24866 | $as_echo_n "(cached) " >&6 |
24867 | else | |
7d9455ce | 24868 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24869 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24870 | fi |
24871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24872 | /* end confdefs.h. */ | |
24873 | ||
7d9455ce | 24874 | #ifdef HAVE_COMPLEX_H |
24875 | #include <complex.h> | |
24876 | #endif | |
24877 | #ifdef HAVE_MATH_H | |
24878 | #include <math.h> | |
89b803c8 | 24879 | #endif |
7d9455ce | 24880 | |
24881 | int (*ptr)() = (int (*)())cacosl; | |
24882 | ||
89b803c8 | 24883 | int |
24884 | main () | |
24885 | { | |
89b803c8 | 24886 | return 0; |
24887 | } | |
7d9455ce | 24888 | |
89b803c8 | 24889 | _ACEOF |
24890 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24891 | gcc_cv_math_func_cacosl=yes |
89b803c8 | 24892 | else |
7d9455ce | 24893 | gcc_cv_math_func_cacosl=no |
89b803c8 | 24894 | fi |
24895 | rm -f core conftest.err conftest.$ac_objext \ | |
24896 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24897 | fi |
7d9455ce | 24898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 |
24899 | $as_echo "$gcc_cv_math_func_cacosl" >&6; } | |
24900 | if test $gcc_cv_math_func_cacosl = yes; then | |
bd647a17 | 24901 | |
6affa8e1 | 24902 | cat >>confdefs.h <<_ACEOF |
24903 | #define HAVE_CACOSL 1 | |
24904 | _ACEOF | |
7d9455ce | 24905 | |
24906 | fi | |
89b803c8 | 24907 | |
89b803c8 | 24908 | |
89b803c8 | 24909 | |
7d9455ce | 24910 | |
24911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 | |
24912 | $as_echo_n "checking for casin... " >&6; } | |
f00f02a3 | 24913 | if ${gcc_cv_math_func_casin+:} false; then : |
89b803c8 | 24914 | $as_echo_n "(cached) " >&6 |
24915 | else | |
7d9455ce | 24916 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24917 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24918 | fi |
24919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24920 | /* end confdefs.h. */ | |
24921 | ||
7d9455ce | 24922 | #ifdef HAVE_COMPLEX_H |
24923 | #include <complex.h> | |
89b803c8 | 24924 | #endif |
7d9455ce | 24925 | #ifdef HAVE_MATH_H |
24926 | #include <math.h> | |
24927 | #endif | |
24928 | ||
24929 | int (*ptr)() = (int (*)())casin; | |
24930 | ||
89b803c8 | 24931 | int |
24932 | main () | |
24933 | { | |
89b803c8 | 24934 | return 0; |
24935 | } | |
7d9455ce | 24936 | |
89b803c8 | 24937 | _ACEOF |
24938 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24939 | gcc_cv_math_func_casin=yes |
89b803c8 | 24940 | else |
7d9455ce | 24941 | gcc_cv_math_func_casin=no |
89b803c8 | 24942 | fi |
24943 | rm -f core conftest.err conftest.$ac_objext \ | |
24944 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24945 | fi |
7d9455ce | 24946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 |
24947 | $as_echo "$gcc_cv_math_func_casin" >&6; } | |
24948 | if test $gcc_cv_math_func_casin = yes; then | |
bd647a17 | 24949 | |
6affa8e1 | 24950 | cat >>confdefs.h <<_ACEOF |
24951 | #define HAVE_CASIN 1 | |
24952 | _ACEOF | |
7d9455ce | 24953 | |
24954 | fi | |
24955 | ||
89b803c8 | 24956 | |
89b803c8 | 24957 | |
89b803c8 | 24958 | |
7d9455ce | 24959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 |
24960 | $as_echo_n "checking for casinf... " >&6; } | |
f00f02a3 | 24961 | if ${gcc_cv_math_func_casinf+:} false; then : |
89b803c8 | 24962 | $as_echo_n "(cached) " >&6 |
24963 | else | |
7d9455ce | 24964 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 24965 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 24966 | fi |
24967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24968 | /* end confdefs.h. */ | |
24969 | ||
7d9455ce | 24970 | #ifdef HAVE_COMPLEX_H |
24971 | #include <complex.h> | |
24972 | #endif | |
24973 | #ifdef HAVE_MATH_H | |
24974 | #include <math.h> | |
89b803c8 | 24975 | #endif |
7d9455ce | 24976 | |
24977 | int (*ptr)() = (int (*)())casinf; | |
24978 | ||
89b803c8 | 24979 | int |
24980 | main () | |
24981 | { | |
89b803c8 | 24982 | return 0; |
24983 | } | |
7d9455ce | 24984 | |
89b803c8 | 24985 | _ACEOF |
24986 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 24987 | gcc_cv_math_func_casinf=yes |
89b803c8 | 24988 | else |
7d9455ce | 24989 | gcc_cv_math_func_casinf=no |
89b803c8 | 24990 | fi |
24991 | rm -f core conftest.err conftest.$ac_objext \ | |
24992 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 24993 | fi |
7d9455ce | 24994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 |
24995 | $as_echo "$gcc_cv_math_func_casinf" >&6; } | |
24996 | if test $gcc_cv_math_func_casinf = yes; then | |
bd647a17 | 24997 | |
6affa8e1 | 24998 | cat >>confdefs.h <<_ACEOF |
24999 | #define HAVE_CASINF 1 | |
25000 | _ACEOF | |
7d9455ce | 25001 | |
25002 | fi | |
89b803c8 | 25003 | |
89b803c8 | 25004 | |
89b803c8 | 25005 | |
7d9455ce | 25006 | |
25007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 | |
25008 | $as_echo_n "checking for casinh... " >&6; } | |
f00f02a3 | 25009 | if ${gcc_cv_math_func_casinh+:} false; then : |
89b803c8 | 25010 | $as_echo_n "(cached) " >&6 |
25011 | else | |
7d9455ce | 25012 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25013 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25014 | fi |
25015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25016 | /* end confdefs.h. */ | |
25017 | ||
7d9455ce | 25018 | #ifdef HAVE_COMPLEX_H |
25019 | #include <complex.h> | |
89b803c8 | 25020 | #endif |
7d9455ce | 25021 | #ifdef HAVE_MATH_H |
25022 | #include <math.h> | |
25023 | #endif | |
25024 | ||
25025 | int (*ptr)() = (int (*)())casinh; | |
25026 | ||
89b803c8 | 25027 | int |
25028 | main () | |
25029 | { | |
89b803c8 | 25030 | return 0; |
25031 | } | |
7d9455ce | 25032 | |
89b803c8 | 25033 | _ACEOF |
25034 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25035 | gcc_cv_math_func_casinh=yes |
89b803c8 | 25036 | else |
7d9455ce | 25037 | gcc_cv_math_func_casinh=no |
89b803c8 | 25038 | fi |
25039 | rm -f core conftest.err conftest.$ac_objext \ | |
25040 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25041 | fi |
7d9455ce | 25042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 |
25043 | $as_echo "$gcc_cv_math_func_casinh" >&6; } | |
25044 | if test $gcc_cv_math_func_casinh = yes; then | |
bd647a17 | 25045 | |
6affa8e1 | 25046 | cat >>confdefs.h <<_ACEOF |
25047 | #define HAVE_CASINH 1 | |
25048 | _ACEOF | |
89b803c8 | 25049 | |
7d9455ce | 25050 | fi |
89b803c8 | 25051 | |
89b803c8 | 25052 | |
7d9455ce | 25053 | |
25054 | ||
25055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 | |
25056 | $as_echo_n "checking for casinhf... " >&6; } | |
f00f02a3 | 25057 | if ${gcc_cv_math_func_casinhf+:} false; then : |
89b803c8 | 25058 | $as_echo_n "(cached) " >&6 |
25059 | else | |
7d9455ce | 25060 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25061 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25062 | fi |
25063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25064 | /* end confdefs.h. */ | |
25065 | ||
7d9455ce | 25066 | #ifdef HAVE_COMPLEX_H |
25067 | #include <complex.h> | |
25068 | #endif | |
25069 | #ifdef HAVE_MATH_H | |
25070 | #include <math.h> | |
89b803c8 | 25071 | #endif |
7d9455ce | 25072 | |
25073 | int (*ptr)() = (int (*)())casinhf; | |
25074 | ||
89b803c8 | 25075 | int |
25076 | main () | |
25077 | { | |
89b803c8 | 25078 | return 0; |
25079 | } | |
7d9455ce | 25080 | |
89b803c8 | 25081 | _ACEOF |
25082 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25083 | gcc_cv_math_func_casinhf=yes |
89b803c8 | 25084 | else |
7d9455ce | 25085 | gcc_cv_math_func_casinhf=no |
89b803c8 | 25086 | fi |
25087 | rm -f core conftest.err conftest.$ac_objext \ | |
25088 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25089 | fi |
7d9455ce | 25090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 |
25091 | $as_echo "$gcc_cv_math_func_casinhf" >&6; } | |
25092 | if test $gcc_cv_math_func_casinhf = yes; then | |
bd647a17 | 25093 | |
6affa8e1 | 25094 | cat >>confdefs.h <<_ACEOF |
25095 | #define HAVE_CASINHF 1 | |
25096 | _ACEOF | |
7d9455ce | 25097 | |
25098 | fi | |
89b803c8 | 25099 | |
89b803c8 | 25100 | |
89b803c8 | 25101 | |
7d9455ce | 25102 | |
25103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 | |
25104 | $as_echo_n "checking for casinhl... " >&6; } | |
f00f02a3 | 25105 | if ${gcc_cv_math_func_casinhl+:} false; then : |
89b803c8 | 25106 | $as_echo_n "(cached) " >&6 |
25107 | else | |
7d9455ce | 25108 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25109 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25110 | fi |
25111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25112 | /* end confdefs.h. */ | |
25113 | ||
7d9455ce | 25114 | #ifdef HAVE_COMPLEX_H |
25115 | #include <complex.h> | |
89b803c8 | 25116 | #endif |
7d9455ce | 25117 | #ifdef HAVE_MATH_H |
25118 | #include <math.h> | |
25119 | #endif | |
25120 | ||
25121 | int (*ptr)() = (int (*)())casinhl; | |
25122 | ||
89b803c8 | 25123 | int |
25124 | main () | |
25125 | { | |
89b803c8 | 25126 | return 0; |
25127 | } | |
7d9455ce | 25128 | |
89b803c8 | 25129 | _ACEOF |
25130 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25131 | gcc_cv_math_func_casinhl=yes |
89b803c8 | 25132 | else |
7d9455ce | 25133 | gcc_cv_math_func_casinhl=no |
89b803c8 | 25134 | fi |
25135 | rm -f core conftest.err conftest.$ac_objext \ | |
25136 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25137 | fi |
7d9455ce | 25138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 |
25139 | $as_echo "$gcc_cv_math_func_casinhl" >&6; } | |
25140 | if test $gcc_cv_math_func_casinhl = yes; then | |
bd647a17 | 25141 | |
6affa8e1 | 25142 | cat >>confdefs.h <<_ACEOF |
25143 | #define HAVE_CASINHL 1 | |
25144 | _ACEOF | |
7d9455ce | 25145 | |
25146 | fi | |
25147 | ||
89b803c8 | 25148 | |
89b803c8 | 25149 | |
89b803c8 | 25150 | |
7d9455ce | 25151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 |
25152 | $as_echo_n "checking for casinl... " >&6; } | |
f00f02a3 | 25153 | if ${gcc_cv_math_func_casinl+:} false; then : |
89b803c8 | 25154 | $as_echo_n "(cached) " >&6 |
25155 | else | |
7d9455ce | 25156 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25157 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25158 | fi |
25159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25160 | /* end confdefs.h. */ | |
25161 | ||
7d9455ce | 25162 | #ifdef HAVE_COMPLEX_H |
25163 | #include <complex.h> | |
25164 | #endif | |
25165 | #ifdef HAVE_MATH_H | |
25166 | #include <math.h> | |
89b803c8 | 25167 | #endif |
7d9455ce | 25168 | |
25169 | int (*ptr)() = (int (*)())casinl; | |
25170 | ||
89b803c8 | 25171 | int |
25172 | main () | |
25173 | { | |
89b803c8 | 25174 | return 0; |
25175 | } | |
7d9455ce | 25176 | |
89b803c8 | 25177 | _ACEOF |
25178 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25179 | gcc_cv_math_func_casinl=yes |
89b803c8 | 25180 | else |
7d9455ce | 25181 | gcc_cv_math_func_casinl=no |
89b803c8 | 25182 | fi |
25183 | rm -f core conftest.err conftest.$ac_objext \ | |
25184 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25185 | fi |
7d9455ce | 25186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 |
25187 | $as_echo "$gcc_cv_math_func_casinl" >&6; } | |
25188 | if test $gcc_cv_math_func_casinl = yes; then | |
bd647a17 | 25189 | |
6affa8e1 | 25190 | cat >>confdefs.h <<_ACEOF |
25191 | #define HAVE_CASINL 1 | |
25192 | _ACEOF | |
7d9455ce | 25193 | |
25194 | fi | |
89b803c8 | 25195 | |
89b803c8 | 25196 | |
89b803c8 | 25197 | |
7d9455ce | 25198 | |
25199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 | |
25200 | $as_echo_n "checking for catan... " >&6; } | |
f00f02a3 | 25201 | if ${gcc_cv_math_func_catan+:} false; then : |
89b803c8 | 25202 | $as_echo_n "(cached) " >&6 |
25203 | else | |
7d9455ce | 25204 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25205 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25206 | fi |
25207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25208 | /* end confdefs.h. */ | |
25209 | ||
7d9455ce | 25210 | #ifdef HAVE_COMPLEX_H |
25211 | #include <complex.h> | |
89b803c8 | 25212 | #endif |
7d9455ce | 25213 | #ifdef HAVE_MATH_H |
25214 | #include <math.h> | |
25215 | #endif | |
25216 | ||
25217 | int (*ptr)() = (int (*)())catan; | |
25218 | ||
89b803c8 | 25219 | int |
25220 | main () | |
25221 | { | |
89b803c8 | 25222 | return 0; |
25223 | } | |
7d9455ce | 25224 | |
89b803c8 | 25225 | _ACEOF |
25226 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25227 | gcc_cv_math_func_catan=yes |
89b803c8 | 25228 | else |
7d9455ce | 25229 | gcc_cv_math_func_catan=no |
89b803c8 | 25230 | fi |
25231 | rm -f core conftest.err conftest.$ac_objext \ | |
25232 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25233 | fi |
7d9455ce | 25234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 |
25235 | $as_echo "$gcc_cv_math_func_catan" >&6; } | |
25236 | if test $gcc_cv_math_func_catan = yes; then | |
bd647a17 | 25237 | |
6affa8e1 | 25238 | cat >>confdefs.h <<_ACEOF |
25239 | #define HAVE_CATAN 1 | |
25240 | _ACEOF | |
89b803c8 | 25241 | |
7d9455ce | 25242 | fi |
89b803c8 | 25243 | |
89b803c8 | 25244 | |
7d9455ce | 25245 | |
25246 | ||
25247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 | |
25248 | $as_echo_n "checking for catanf... " >&6; } | |
f00f02a3 | 25249 | if ${gcc_cv_math_func_catanf+:} false; then : |
89b803c8 | 25250 | $as_echo_n "(cached) " >&6 |
25251 | else | |
7d9455ce | 25252 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25253 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25254 | fi |
25255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25256 | /* end confdefs.h. */ | |
25257 | ||
7d9455ce | 25258 | #ifdef HAVE_COMPLEX_H |
25259 | #include <complex.h> | |
25260 | #endif | |
25261 | #ifdef HAVE_MATH_H | |
25262 | #include <math.h> | |
89b803c8 | 25263 | #endif |
7d9455ce | 25264 | |
25265 | int (*ptr)() = (int (*)())catanf; | |
25266 | ||
89b803c8 | 25267 | int |
25268 | main () | |
25269 | { | |
89b803c8 | 25270 | return 0; |
25271 | } | |
7d9455ce | 25272 | |
89b803c8 | 25273 | _ACEOF |
25274 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25275 | gcc_cv_math_func_catanf=yes |
89b803c8 | 25276 | else |
7d9455ce | 25277 | gcc_cv_math_func_catanf=no |
89b803c8 | 25278 | fi |
25279 | rm -f core conftest.err conftest.$ac_objext \ | |
25280 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25281 | fi |
7d9455ce | 25282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 |
25283 | $as_echo "$gcc_cv_math_func_catanf" >&6; } | |
25284 | if test $gcc_cv_math_func_catanf = yes; then | |
bd647a17 | 25285 | |
6affa8e1 | 25286 | cat >>confdefs.h <<_ACEOF |
25287 | #define HAVE_CATANF 1 | |
25288 | _ACEOF | |
7d9455ce | 25289 | |
25290 | fi | |
89b803c8 | 25291 | |
89b803c8 | 25292 | |
89b803c8 | 25293 | |
7d9455ce | 25294 | |
25295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 | |
25296 | $as_echo_n "checking for catanh... " >&6; } | |
f00f02a3 | 25297 | if ${gcc_cv_math_func_catanh+:} false; then : |
89b803c8 | 25298 | $as_echo_n "(cached) " >&6 |
25299 | else | |
7d9455ce | 25300 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25301 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25302 | fi |
25303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25304 | /* end confdefs.h. */ | |
25305 | ||
7d9455ce | 25306 | #ifdef HAVE_COMPLEX_H |
25307 | #include <complex.h> | |
89b803c8 | 25308 | #endif |
7d9455ce | 25309 | #ifdef HAVE_MATH_H |
25310 | #include <math.h> | |
25311 | #endif | |
25312 | ||
25313 | int (*ptr)() = (int (*)())catanh; | |
25314 | ||
89b803c8 | 25315 | int |
25316 | main () | |
25317 | { | |
89b803c8 | 25318 | return 0; |
25319 | } | |
7d9455ce | 25320 | |
89b803c8 | 25321 | _ACEOF |
25322 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25323 | gcc_cv_math_func_catanh=yes |
89b803c8 | 25324 | else |
7d9455ce | 25325 | gcc_cv_math_func_catanh=no |
89b803c8 | 25326 | fi |
25327 | rm -f core conftest.err conftest.$ac_objext \ | |
25328 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25329 | fi |
7d9455ce | 25330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 |
25331 | $as_echo "$gcc_cv_math_func_catanh" >&6; } | |
25332 | if test $gcc_cv_math_func_catanh = yes; then | |
bd647a17 | 25333 | |
6affa8e1 | 25334 | cat >>confdefs.h <<_ACEOF |
25335 | #define HAVE_CATANH 1 | |
25336 | _ACEOF | |
7d9455ce | 25337 | |
25338 | fi | |
25339 | ||
89b803c8 | 25340 | |
89b803c8 | 25341 | |
89b803c8 | 25342 | |
7d9455ce | 25343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 |
25344 | $as_echo_n "checking for catanhf... " >&6; } | |
f00f02a3 | 25345 | if ${gcc_cv_math_func_catanhf+:} false; then : |
89b803c8 | 25346 | $as_echo_n "(cached) " >&6 |
25347 | else | |
7d9455ce | 25348 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25349 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25350 | fi |
25351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25352 | /* end confdefs.h. */ | |
25353 | ||
7d9455ce | 25354 | #ifdef HAVE_COMPLEX_H |
25355 | #include <complex.h> | |
25356 | #endif | |
25357 | #ifdef HAVE_MATH_H | |
25358 | #include <math.h> | |
89b803c8 | 25359 | #endif |
7d9455ce | 25360 | |
25361 | int (*ptr)() = (int (*)())catanhf; | |
25362 | ||
89b803c8 | 25363 | int |
25364 | main () | |
25365 | { | |
89b803c8 | 25366 | return 0; |
25367 | } | |
7d9455ce | 25368 | |
89b803c8 | 25369 | _ACEOF |
25370 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25371 | gcc_cv_math_func_catanhf=yes |
89b803c8 | 25372 | else |
7d9455ce | 25373 | gcc_cv_math_func_catanhf=no |
89b803c8 | 25374 | fi |
25375 | rm -f core conftest.err conftest.$ac_objext \ | |
25376 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25377 | fi |
7d9455ce | 25378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 |
25379 | $as_echo "$gcc_cv_math_func_catanhf" >&6; } | |
25380 | if test $gcc_cv_math_func_catanhf = yes; then | |
bd647a17 | 25381 | |
6affa8e1 | 25382 | cat >>confdefs.h <<_ACEOF |
25383 | #define HAVE_CATANHF 1 | |
25384 | _ACEOF | |
7d9455ce | 25385 | |
25386 | fi | |
89b803c8 | 25387 | |
89b803c8 | 25388 | |
89b803c8 | 25389 | |
7d9455ce | 25390 | |
25391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 | |
25392 | $as_echo_n "checking for catanhl... " >&6; } | |
f00f02a3 | 25393 | if ${gcc_cv_math_func_catanhl+:} false; then : |
89b803c8 | 25394 | $as_echo_n "(cached) " >&6 |
25395 | else | |
7d9455ce | 25396 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25397 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25398 | fi |
25399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25400 | /* end confdefs.h. */ | |
25401 | ||
7d9455ce | 25402 | #ifdef HAVE_COMPLEX_H |
25403 | #include <complex.h> | |
89b803c8 | 25404 | #endif |
7d9455ce | 25405 | #ifdef HAVE_MATH_H |
25406 | #include <math.h> | |
25407 | #endif | |
25408 | ||
25409 | int (*ptr)() = (int (*)())catanhl; | |
25410 | ||
89b803c8 | 25411 | int |
25412 | main () | |
25413 | { | |
89b803c8 | 25414 | return 0; |
25415 | } | |
7d9455ce | 25416 | |
89b803c8 | 25417 | _ACEOF |
25418 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25419 | gcc_cv_math_func_catanhl=yes |
89b803c8 | 25420 | else |
7d9455ce | 25421 | gcc_cv_math_func_catanhl=no |
89b803c8 | 25422 | fi |
25423 | rm -f core conftest.err conftest.$ac_objext \ | |
25424 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25425 | fi |
7d9455ce | 25426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 |
25427 | $as_echo "$gcc_cv_math_func_catanhl" >&6; } | |
25428 | if test $gcc_cv_math_func_catanhl = yes; then | |
bd647a17 | 25429 | |
6affa8e1 | 25430 | cat >>confdefs.h <<_ACEOF |
25431 | #define HAVE_CATANHL 1 | |
25432 | _ACEOF | |
89b803c8 | 25433 | |
7d9455ce | 25434 | fi |
89b803c8 | 25435 | |
89b803c8 | 25436 | |
7d9455ce | 25437 | |
25438 | ||
25439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 | |
25440 | $as_echo_n "checking for catanl... " >&6; } | |
f00f02a3 | 25441 | if ${gcc_cv_math_func_catanl+:} false; then : |
89b803c8 | 25442 | $as_echo_n "(cached) " >&6 |
25443 | else | |
7d9455ce | 25444 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25445 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
89b803c8 | 25446 | fi |
25447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25448 | /* end confdefs.h. */ | |
25449 | ||
7d9455ce | 25450 | #ifdef HAVE_COMPLEX_H |
25451 | #include <complex.h> | |
25452 | #endif | |
25453 | #ifdef HAVE_MATH_H | |
25454 | #include <math.h> | |
89b803c8 | 25455 | #endif |
7d9455ce | 25456 | |
25457 | int (*ptr)() = (int (*)())catanl; | |
25458 | ||
89b803c8 | 25459 | int |
25460 | main () | |
25461 | { | |
89b803c8 | 25462 | return 0; |
25463 | } | |
7d9455ce | 25464 | |
89b803c8 | 25465 | _ACEOF |
25466 | if ac_fn_c_try_link "$LINENO"; then : | |
7d9455ce | 25467 | gcc_cv_math_func_catanl=yes |
89b803c8 | 25468 | else |
7d9455ce | 25469 | gcc_cv_math_func_catanl=no |
89b803c8 | 25470 | fi |
25471 | rm -f core conftest.err conftest.$ac_objext \ | |
25472 | conftest$ac_exeext conftest.$ac_ext | |
89b803c8 | 25473 | fi |
7d9455ce | 25474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 |
25475 | $as_echo "$gcc_cv_math_func_catanl" >&6; } | |
25476 | if test $gcc_cv_math_func_catanl = yes; then | |
bd647a17 | 25477 | |
6affa8e1 | 25478 | cat >>confdefs.h <<_ACEOF |
25479 | #define HAVE_CATANL 1 | |
25480 | _ACEOF | |
89b803c8 | 25481 | |
7d9455ce | 25482 | fi |
89b803c8 | 25483 | |
25484 | ||
839904a0 | 25485 | # On AIX, clog is present in libm as __clog |
cd9a469c | 25486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
25487 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
f00f02a3 | 25488 | if ${ac_cv_lib_m___clog+:} false; then : |
cd9a469c | 25489 | $as_echo_n "(cached) " >&6 |
62a413d5 | 25490 | else |
25491 | ac_check_lib_save_LIBS=$LIBS | |
25492 | LIBS="-lm $LIBS" | |
25493 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25494 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
62a413d5 | 25495 | fi |
cd9a469c | 25496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
62a413d5 | 25497 | /* end confdefs.h. */ |
25498 | ||
cd9a469c | 25499 | /* Override any GCC internal prototype to avoid an error. |
25500 | Use char because int might match the return type of a GCC | |
25501 | builtin and then its argument prototype would still apply. */ | |
62a413d5 | 25502 | #ifdef __cplusplus |
25503 | extern "C" | |
25504 | #endif | |
62a413d5 | 25505 | char __clog (); |
25506 | int | |
25507 | main () | |
25508 | { | |
cd9a469c | 25509 | return __clog (); |
62a413d5 | 25510 | ; |
25511 | return 0; | |
25512 | } | |
25513 | _ACEOF | |
cd9a469c | 25514 | if ac_fn_c_try_link "$LINENO"; then : |
62a413d5 | 25515 | ac_cv_lib_m___clog=yes |
25516 | else | |
cd9a469c | 25517 | ac_cv_lib_m___clog=no |
62a413d5 | 25518 | fi |
cd9a469c | 25519 | rm -f core conftest.err conftest.$ac_objext \ |
25520 | conftest$ac_exeext conftest.$ac_ext | |
62a413d5 | 25521 | LIBS=$ac_check_lib_save_LIBS |
25522 | fi | |
cd9a469c | 25523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
25524 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
f00f02a3 | 25525 | if test "x$ac_cv_lib_m___clog" = xyes; then : |
62a413d5 | 25526 | |
cd9a469c | 25527 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
62a413d5 | 25528 | |
25529 | fi | |
25530 | ||
25531 | ||
daad4fd5 | 25532 | # Check whether the system has a working stat() |
25533 | ||
cd9a469c | 25534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
25535 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
f00f02a3 | 25536 | if ${libgfor_cv_have_working_stat+:} false; then : |
cd9a469c | 25537 | $as_echo_n "(cached) " >&6 |
daad4fd5 | 25538 | else |
25539 | ||
cd9a469c | 25540 | if test "$cross_compiling" = yes; then : |
daad4fd5 | 25541 | |
25542 | case "${target}" in | |
6992582a | 25543 | *mingw*) libgfor_cv_have_working_stat=no ;; |
25544 | *) libgfor_cv_have_working_stat=yes;; | |
daad4fd5 | 25545 | esac |
25546 | else | |
cd9a469c | 25547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
daad4fd5 | 25548 | /* end confdefs.h. */ |
25549 | ||
25550 | #include <stdio.h> | |
25551 | #include <sys/types.h> | |
25552 | #include <sys/stat.h> | |
25553 | #include <unistd.h> | |
25554 | ||
25555 | int main () | |
25556 | { | |
25557 | FILE *f, *g; | |
25558 | struct stat st1, st2; | |
25559 | ||
25560 | f = fopen ("foo", "w"); | |
25561 | g = fopen ("bar", "w"); | |
25562 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
25563 | return 1; | |
25564 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
25565 | return 1; | |
25566 | fclose(f); | |
25567 | fclose(g); | |
25568 | return 0; | |
25569 | } | |
25570 | _ACEOF | |
cd9a469c | 25571 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 25572 | libgfor_cv_have_working_stat=yes |
daad4fd5 | 25573 | else |
cd9a469c | 25574 | libgfor_cv_have_working_stat=no |
daad4fd5 | 25575 | fi |
cd9a469c | 25576 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25577 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
daad4fd5 | 25578 | fi |
cd9a469c | 25579 | |
daad4fd5 | 25580 | fi |
cd9a469c | 25581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
25582 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6992582a | 25583 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
daad4fd5 | 25584 | |
cd9a469c | 25585 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
daad4fd5 | 25586 | |
25587 | fi | |
25588 | ||
3b99ec70 | 25589 | # Check whether __mingw_snprintf() is present |
25590 | ||
cd9a469c | 25591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
25592 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
f00f02a3 | 25593 | if ${libgfor_cv_have_mingw_snprintf+:} false; then : |
cd9a469c | 25594 | $as_echo_n "(cached) " >&6 |
3b99ec70 | 25595 | else |
25596 | ||
25597 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25598 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
3b99ec70 | 25599 | fi |
cd9a469c | 25600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3b99ec70 | 25601 | /* end confdefs.h. */ |
25602 | ||
25603 | #include <stdio.h> | |
25604 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
25605 | ||
25606 | int | |
25607 | main () | |
25608 | { | |
25609 | ||
25610 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
25611 | ||
25612 | ; | |
25613 | return 0; | |
25614 | } | |
25615 | _ACEOF | |
cd9a469c | 25616 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25617 | eval "libgfor_cv_have_mingw_snprintf=yes" |
3b99ec70 | 25618 | else |
cd9a469c | 25619 | eval "libgfor_cv_have_mingw_snprintf=no" |
3b99ec70 | 25620 | fi |
cd9a469c | 25621 | rm -f core conftest.err conftest.$ac_objext \ |
25622 | conftest$ac_exeext conftest.$ac_ext | |
3b99ec70 | 25623 | |
25624 | fi | |
cd9a469c | 25625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
25626 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6992582a | 25627 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
3b99ec70 | 25628 | |
cd9a469c | 25629 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
3b99ec70 | 25630 | |
25631 | fi | |
25632 | ||
25633 | ||
d9d975ae | 25634 | # Check whether libquadmath should be used |
25635 | # Check whether --enable-libquadmath-support was given. | |
25636 | if test "${enable_libquadmath_support+set}" = set; then : | |
25637 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
25638 | else | |
25639 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
25640 | fi | |
25641 | ||
25642 | enable_libquadmath_support= | |
25643 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
25644 | enable_libquadmath_support=no | |
25645 | fi | |
25646 | ||
25647 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
87969c8c | 25648 | |
25649 | LIBQUADSPEC= | |
d9d975ae | 25650 | |
25651 | if test "x$enable_libquadmath_support" != xno; then | |
25652 | ||
87969c8c | 25653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
25654 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
f00f02a3 | 25655 | if ${libgfor_cv_have_float128+:} false; then : |
87969c8c | 25656 | $as_echo_n "(cached) " >&6 |
25657 | else | |
25658 | ||
9af9660c | 25659 | if test x$gcc_no_link = xyes; then |
25660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
87969c8c | 25661 | /* end confdefs.h. */ |
25662 | ||
9af9660c | 25663 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
25664 | ||
25665 | __float128 foo (__float128 x) | |
25666 | { | |
25667 | ||
25668 | __complex128 z1, z2; | |
25669 | ||
25670 | z1 = x; | |
25671 | z2 = x / 7.Q; | |
25672 | z2 /= z1; | |
25673 | ||
25674 | return (__float128) z2; | |
25675 | } | |
25676 | ||
25677 | __float128 bar (__float128 x) | |
25678 | { | |
25679 | return x * __builtin_huge_valq (); | |
25680 | } | |
87969c8c | 25681 | |
25682 | int | |
25683 | main () | |
25684 | { | |
25685 | ||
9af9660c | 25686 | foo (1.2Q); |
25687 | bar (1.2Q); | |
87969c8c | 25688 | |
9af9660c | 25689 | ; |
25690 | return 0; | |
25691 | } | |
25692 | _ACEOF | |
25693 | if ac_fn_c_try_compile "$LINENO"; then : | |
87969c8c | 25694 | |
9af9660c | 25695 | libgfor_cv_have_float128=yes |
87969c8c | 25696 | |
9af9660c | 25697 | else |
25698 | ||
25699 | libgfor_cv_have_float128=no | |
25700 | ||
25701 | fi | |
25702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25703 | else | |
25704 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25705 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
9af9660c | 25706 | fi |
25707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25708 | /* end confdefs.h. */ | |
25709 | ||
25710 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
25711 | ||
25712 | __float128 foo (__float128 x) | |
25713 | { | |
25714 | ||
25715 | __complex128 z1, z2; | |
25716 | ||
25717 | z1 = x; | |
25718 | z2 = x / 7.Q; | |
25719 | z2 /= z1; | |
25720 | ||
25721 | return (__float128) z2; | |
25722 | } | |
25723 | ||
25724 | __float128 bar (__float128 x) | |
25725 | { | |
25726 | return x * __builtin_huge_valq (); | |
25727 | } | |
25728 | ||
25729 | int | |
25730 | main () | |
25731 | { | |
25732 | ||
25733 | foo (1.2Q); | |
25734 | bar (1.2Q); | |
87969c8c | 25735 | |
25736 | ; | |
25737 | return 0; | |
25738 | } | |
25739 | _ACEOF | |
25740 | if ac_fn_c_try_link "$LINENO"; then : | |
9af9660c | 25741 | |
25742 | libgfor_cv_have_float128=yes | |
25743 | ||
87969c8c | 25744 | else |
9af9660c | 25745 | |
25746 | libgfor_cv_have_float128=no | |
25747 | ||
87969c8c | 25748 | fi |
25749 | rm -f core conftest.err conftest.$ac_objext \ | |
25750 | conftest$ac_exeext conftest.$ac_ext | |
9af9660c | 25751 | fi |
87969c8c | 25752 | fi |
25753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
25754 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
25755 | ||
25756 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25757 | ||
25758 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
25759 | ||
25760 | ||
25761 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
b14cf757 | 25762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 |
25763 | $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } | |
f00f02a3 | 25764 | if ${libgfor_cv_have_as_needed+:} false; then : |
87969c8c | 25765 | $as_echo_n "(cached) " >&6 |
25766 | else | |
25767 | ||
b14cf757 | 25768 | # Test for native Solaris options first. |
25769 | # No whitespace after -z to pass it through -Wl. | |
25770 | libgfor_cv_as_needed_option="-zignore" | |
25771 | libgfor_cv_no_as_needed_option="-zrecord" | |
87969c8c | 25772 | save_LDFLAGS="$LDFLAGS" |
b14cf757 | 25773 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" |
87969c8c | 25774 | libgfor_cv_have_as_needed=no |
25775 | ||
25776 | ac_c_werror_flag=yes | |
25777 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25778 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
87969c8c | 25779 | fi |
25780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25781 | /* end confdefs.h. */ | |
25782 | ||
25783 | int | |
25784 | main () | |
25785 | { | |
25786 | ||
25787 | ; | |
25788 | return 0; | |
25789 | } | |
25790 | _ACEOF | |
25791 | if ac_fn_c_try_link "$LINENO"; then : | |
25792 | libgfor_cv_have_as_needed=yes | |
25793 | else | |
25794 | libgfor_cv_have_as_needed=no | |
25795 | fi | |
25796 | rm -f core conftest.err conftest.$ac_objext \ | |
25797 | conftest$ac_exeext conftest.$ac_ext | |
25798 | LDFLAGS="$save_LDFLAGS" | |
b14cf757 | 25799 | if test "x$libgfor_cv_have_as_needed" = xno; then |
25800 | libgfor_cv_as_needed_option="--as-needed" | |
25801 | libgfor_cv_no_as_needed_option="--no-as-needed" | |
25802 | save_LDFLAGS="$LDFLAGS" | |
25803 | LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" | |
25804 | libgfor_cv_have_as_needed=no | |
25805 | ||
25806 | ac_c_werror_flag=yes | |
25807 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25808 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b14cf757 | 25809 | fi |
25810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25811 | /* end confdefs.h. */ | |
25812 | ||
25813 | int | |
25814 | main () | |
25815 | { | |
25816 | ||
25817 | ; | |
25818 | return 0; | |
25819 | } | |
25820 | _ACEOF | |
25821 | if ac_fn_c_try_link "$LINENO"; then : | |
25822 | libgfor_cv_have_as_needed=yes | |
25823 | else | |
25824 | libgfor_cv_have_as_needed=no | |
25825 | fi | |
25826 | rm -f core conftest.err conftest.$ac_objext \ | |
25827 | conftest$ac_exeext conftest.$ac_ext | |
25828 | LDFLAGS="$save_LDFLAGS" | |
25829 | fi | |
87969c8c | 25830 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
25831 | ||
25832 | fi | |
25833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
25834 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
25835 | ||
25836 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
b14cf757 | 25837 | LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" |
87969c8c | 25838 | else |
25839 | LIBQUADSPEC="-lquadmath" | |
25840 | fi | |
25841 | if test -f ../libquadmath/libquadmath.la; then | |
25842 | LIBQUADLIB=../libquadmath/libquadmath.la | |
25843 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
25844 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
25845 | else | |
25846 | LIBQUADLIB="-lquadmath" | |
25847 | LIBQUADLIB_DEP= | |
25848 | LIBQUADINCLUDE= | |
25849 | fi | |
25850 | fi | |
d9d975ae | 25851 | else |
25852 | # for --disable-quadmath | |
25853 | LIBQUADLIB= | |
25854 | LIBQUADLIB_DEP= | |
25855 | LIBQUADINCLUDE= | |
25856 | fi | |
87969c8c | 25857 | |
25858 | ||
25859 | ||
25860 | ||
25861 | ||
25862 | ||
25863 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25864 | LIBGFOR_BUILD_QUAD_TRUE= | |
25865 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
25866 | else | |
25867 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
25868 | LIBGFOR_BUILD_QUAD_FALSE= | |
25869 | fi | |
25870 | ||
25871 | ||
25872 | ||
8c84a5de | 25873 | # Check for GNU libc feenableexcept |
cd9a469c | 25874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
25875 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
f00f02a3 | 25876 | if ${ac_cv_lib_m_feenableexcept+:} false; then : |
cd9a469c | 25877 | $as_echo_n "(cached) " >&6 |
8c84a5de | 25878 | else |
25879 | ac_check_lib_save_LIBS=$LIBS | |
25880 | LIBS="-lm $LIBS" | |
25881 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25882 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
8c84a5de | 25883 | fi |
cd9a469c | 25884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8c84a5de | 25885 | /* end confdefs.h. */ |
25886 | ||
cd9a469c | 25887 | /* Override any GCC internal prototype to avoid an error. |
25888 | Use char because int might match the return type of a GCC | |
25889 | builtin and then its argument prototype would still apply. */ | |
8c84a5de | 25890 | #ifdef __cplusplus |
25891 | extern "C" | |
25892 | #endif | |
8c84a5de | 25893 | char feenableexcept (); |
25894 | int | |
25895 | main () | |
25896 | { | |
cd9a469c | 25897 | return feenableexcept (); |
8c84a5de | 25898 | ; |
25899 | return 0; | |
25900 | } | |
25901 | _ACEOF | |
cd9a469c | 25902 | if ac_fn_c_try_link "$LINENO"; then : |
8c84a5de | 25903 | ac_cv_lib_m_feenableexcept=yes |
25904 | else | |
cd9a469c | 25905 | ac_cv_lib_m_feenableexcept=no |
8c84a5de | 25906 | fi |
cd9a469c | 25907 | rm -f core conftest.err conftest.$ac_objext \ |
25908 | conftest$ac_exeext conftest.$ac_ext | |
8c84a5de | 25909 | LIBS=$ac_check_lib_save_LIBS |
25910 | fi | |
cd9a469c | 25911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
25912 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
f00f02a3 | 25913 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : |
8c84a5de | 25914 | have_feenableexcept=yes |
cd9a469c | 25915 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
aaa798ba | 25916 | |
25917 | fi | |
25918 | ||
aaa798ba | 25919 | |
126b6848 | 25920 | # At least for glibc, clock_gettime is in librt. But don't |
d90d0997 | 25921 | # pull that in if it still doesn't give us the function we want. This |
25922 | # test is copied from libgomp, and modified to not link in -lrt as | |
25923 | # libgfortran calls clock_gettime via a weak reference if it's found | |
25924 | # in librt. | |
20dc315f | 25925 | if test "$ac_cv_func_clock_gettime" = no; then |
a2c0dc0f | 25926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
25927 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
f00f02a3 | 25928 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
a2c0dc0f | 25929 | $as_echo_n "(cached) " >&6 |
25930 | else | |
25931 | ac_check_lib_save_LIBS=$LIBS | |
25932 | LIBS="-lrt $LIBS" | |
25933 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 25934 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
a2c0dc0f | 25935 | fi |
25936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25937 | /* end confdefs.h. */ | |
25938 | ||
25939 | /* Override any GCC internal prototype to avoid an error. | |
25940 | Use char because int might match the return type of a GCC | |
25941 | builtin and then its argument prototype would still apply. */ | |
25942 | #ifdef __cplusplus | |
25943 | extern "C" | |
25944 | #endif | |
25945 | char clock_gettime (); | |
25946 | int | |
25947 | main () | |
25948 | { | |
25949 | return clock_gettime (); | |
25950 | ; | |
25951 | return 0; | |
25952 | } | |
25953 | _ACEOF | |
25954 | if ac_fn_c_try_link "$LINENO"; then : | |
25955 | ac_cv_lib_rt_clock_gettime=yes | |
25956 | else | |
25957 | ac_cv_lib_rt_clock_gettime=no | |
25958 | fi | |
25959 | rm -f core conftest.err conftest.$ac_objext \ | |
25960 | conftest$ac_exeext conftest.$ac_ext | |
25961 | LIBS=$ac_check_lib_save_LIBS | |
25962 | fi | |
25963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
25964 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
f00f02a3 | 25965 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
a2c0dc0f | 25966 | |
d90d0997 | 25967 | $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h |
a2c0dc0f | 25968 | |
25969 | fi | |
25970 | ||
25971 | fi | |
25972 | ||
cd9a469c | 25973 | # Check for SysV fpsetmask |
aaa798ba | 25974 | |
cd9a469c | 25975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
25976 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
f00f02a3 | 25977 | if ${libgfor_cv_have_fpsetmask+:} false; then : |
cd9a469c | 25978 | $as_echo_n "(cached) " >&6 |
25979 | else | |
aaa798ba | 25980 | |
cd9a469c | 25981 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 25982 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
cd9a469c | 25983 | fi |
25984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25985 | /* end confdefs.h. */ | |
aaa798ba | 25986 | |
cd9a469c | 25987 | #if HAVE_FLOATINGPOINT_H |
25988 | # include <floatingpoint.h> | |
25989 | #endif /* HAVE_FLOATINGPOINT_H */ | |
25990 | #if HAVE_IEEEFP_H | |
25991 | # include <ieeefp.h> | |
25992 | #endif /* HAVE_IEEEFP_H */ | |
aaa798ba | 25993 | int |
25994 | main () | |
25995 | { | |
cd9a469c | 25996 | fpsetmask(0); |
aaa798ba | 25997 | ; |
25998 | return 0; | |
25999 | } | |
26000 | _ACEOF | |
cd9a469c | 26001 | if ac_fn_c_try_link "$LINENO"; then : |
26002 | eval "libgfor_cv_have_fpsetmask=yes" | |
aaa798ba | 26003 | else |
cd9a469c | 26004 | eval "libgfor_cv_have_fpsetmask=no" |
26005 | fi | |
26006 | rm -f core conftest.err conftest.$ac_objext \ | |
26007 | conftest$ac_exeext conftest.$ac_ext | |
aaa798ba | 26008 | |
aaa798ba | 26009 | fi |
cd9a469c | 26010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
26011 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
26012 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
b00fa2cf | 26013 | have_fpsetmask=yes |
cd9a469c | 26014 | |
26015 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
26016 | ||
26017 | fi | |
26018 | ||
dd81f5d9 | 26019 | ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " |
c4d9d1ea | 26020 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26021 | #include <ieeefp.h> |
c4d9d1ea | 26022 | #endif |
dd81f5d9 | 26023 | #include <math.h> |
26024 | ||
f1fd8f6e | 26025 | " |
f00f02a3 | 26026 | if test "x$ac_cv_type_fp_except" = xyes; then : |
f1fd8f6e | 26027 | |
26028 | cat >>confdefs.h <<_ACEOF | |
26029 | #define HAVE_FP_EXCEPT 1 | |
26030 | _ACEOF | |
26031 | ||
26032 | ||
26033 | fi | |
dd81f5d9 | 26034 | ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " |
c4d9d1ea | 26035 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26036 | #include <ieeefp.h> |
c4d9d1ea | 26037 | #endif |
dd81f5d9 | 26038 | #include <math.h> |
26039 | ||
f1fd8f6e | 26040 | " |
f00f02a3 | 26041 | if test "x$ac_cv_type_fp_except_t" = xyes; then : |
f1fd8f6e | 26042 | |
26043 | cat >>confdefs.h <<_ACEOF | |
26044 | #define HAVE_FP_EXCEPT_T 1 | |
26045 | _ACEOF | |
26046 | ||
26047 | ||
eb429e06 | 26048 | fi |
26049 | ||
dd81f5d9 | 26050 | ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " |
c4d9d1ea | 26051 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26052 | #include <ieeefp.h> |
c4d9d1ea | 26053 | #endif |
dd81f5d9 | 26054 | #include <math.h> |
26055 | ||
eb429e06 | 26056 | " |
f00f02a3 | 26057 | if test "x$ac_cv_type_fp_rnd" = xyes; then : |
eb429e06 | 26058 | |
26059 | cat >>confdefs.h <<_ACEOF | |
26060 | #define HAVE_FP_RND 1 | |
26061 | _ACEOF | |
26062 | ||
26063 | ||
26064 | fi | |
dd81f5d9 | 26065 | ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " |
c4d9d1ea | 26066 | #ifdef HAVE_IEEEFP_H |
dd81f5d9 | 26067 | #include <ieeefp.h> |
c4d9d1ea | 26068 | #endif |
dd81f5d9 | 26069 | #include <math.h> |
26070 | ||
eb429e06 | 26071 | " |
f00f02a3 | 26072 | if test "x$ac_cv_type_fp_rnd_t" = xyes; then : |
eb429e06 | 26073 | |
26074 | cat >>confdefs.h <<_ACEOF | |
26075 | #define HAVE_FP_RND_T 1 | |
26076 | _ACEOF | |
26077 | ||
26078 | ||
f1fd8f6e | 26079 | fi |
26080 | ||
cd9a469c | 26081 | |
53b9b372 | 26082 | # Check whether we have fpsetsticky or fpresetsticky |
26083 | ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" | |
f00f02a3 | 26084 | if test "x$ac_cv_func_fpsetsticky" = xyes; then : |
53b9b372 | 26085 | have_fpsetsticky=yes |
26086 | $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h | |
26087 | ||
26088 | fi | |
26089 | ||
26090 | ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" | |
f00f02a3 | 26091 | if test "x$ac_cv_func_fpresetsticky" = xyes; then : |
53b9b372 | 26092 | have_fpresetsticky=yes |
26093 | $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h | |
26094 | ||
26095 | fi | |
26096 | ||
26097 | ||
cd9a469c | 26098 | # Check for AIX fp_trap and fp_enable |
26099 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
f00f02a3 | 26100 | if test "x$ac_cv_func_fp_trap" = xyes; then : |
cd9a469c | 26101 | have_fp_trap=yes |
26102 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
26103 | ||
aaa798ba | 26104 | fi |
cd9a469c | 26105 | |
26106 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
f00f02a3 | 26107 | if test "x$ac_cv_func_fp_enable" = xyes; then : |
aaa798ba | 26108 | have_fp_enable=yes |
cd9a469c | 26109 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
aaa798ba | 26110 | |
26111 | fi | |
26112 | ||
26113 | ||
a3180a39 | 26114 | # Check if _SOFT_FLOAT is defined |
26115 | ||
26116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 | |
26117 | $as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } | |
f00f02a3 | 26118 | if ${ac_cv_defined__SOFT_FLOAT+:} false; then : |
a3180a39 | 26119 | $as_echo_n "(cached) " >&6 |
26120 | else | |
26121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26122 | /* end confdefs.h. */ | |
26123 | ||
26124 | int | |
26125 | main () | |
26126 | { | |
26127 | ||
26128 | #ifdef _SOFT_FLOAT | |
26129 | int ok; | |
26130 | #else | |
26131 | choke me | |
26132 | #endif | |
26133 | ||
26134 | ; | |
26135 | return 0; | |
26136 | } | |
26137 | _ACEOF | |
26138 | if ac_fn_c_try_compile "$LINENO"; then : | |
26139 | ac_cv_defined__SOFT_FLOAT=yes | |
26140 | else | |
26141 | ac_cv_defined__SOFT_FLOAT=no | |
26142 | fi | |
26143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26144 | fi | |
26145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 | |
26146 | $as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } | |
26147 | if test $ac_cv_defined__SOFT_FLOAT != "no"; then : | |
26148 | have_soft_float=yes | |
26149 | fi | |
26150 | ||
8c84a5de | 26151 | # Runs configure.host to set up necessary host-dependent shell variables. |
26152 | # We then display a message about it, and propagate them through the | |
26153 | # build chain. | |
26154 | . ${srcdir}/configure.host | |
cd9a469c | 26155 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
26156 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
d566c3e0 | 26157 | { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 |
26158 | $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} | |
8c84a5de | 26159 | FPU_HOST_HEADER=config/${fpu_host}.h |
26160 | ||
26161 | ||
d566c3e0 | 26162 | # Whether we will build the IEEE modules |
26163 | if test x${ieee_support} = xyes; then | |
26164 | IEEE_SUPPORT_TRUE= | |
26165 | IEEE_SUPPORT_FALSE='#' | |
26166 | else | |
26167 | IEEE_SUPPORT_TRUE='#' | |
26168 | IEEE_SUPPORT_FALSE= | |
26169 | fi | |
26170 | ||
26171 | ||
26172 | ||
72934c53 | 26173 | # Some targets require additional compiler options for IEEE compatibility. |
26174 | IEEE_FLAGS="${ieee_flags}" | |
26175 | ||
26176 | ||
d78db4a0 | 26177 | |
26178 | # Check for POSIX getpwuid_r | |
26179 | # | |
26180 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
26181 | # arguments, and another one with 4 arguments used by at least HP-UX | |
26182 | # 10.2. | |
26183 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
26184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
26185 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
f00f02a3 | 26186 | if ${libgfor_cv_posix_getpwuid_r+:} false; then : |
d78db4a0 | 26187 | $as_echo_n "(cached) " >&6 |
26188 | else | |
26189 | ||
26190 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 26191 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d78db4a0 | 26192 | fi |
26193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26194 | /* end confdefs.h. */ | |
26195 | ||
26196 | #include <stdio.h> | |
26197 | #include <sys/types.h> | |
26198 | #include <pwd.h> | |
26199 | int | |
26200 | main () | |
26201 | { | |
26202 | ||
26203 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
26204 | ||
26205 | ; | |
26206 | return 0; | |
26207 | } | |
26208 | _ACEOF | |
26209 | if ac_fn_c_try_link "$LINENO"; then : | |
26210 | libgfor_cv_posix_getpwuid_r="yes" | |
26211 | else | |
26212 | libgfor_cv_posix_getpwuid_r="no" | |
26213 | fi | |
26214 | rm -f core conftest.err conftest.$ac_objext \ | |
26215 | conftest$ac_exeext conftest.$ac_ext | |
26216 | fi | |
26217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
26218 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
26219 | fi | |
26220 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
26221 | ||
26222 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
26223 | ||
26224 | fi | |
26225 | ||
26226 | ||
7b6cb5bd | 26227 | # Check out attribute support. |
26228 | ||
cd9a469c | 26229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
26230 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
f00f02a3 | 26231 | if ${libgfor_cv_have_attribute_visibility+:} false; then : |
cd9a469c | 26232 | $as_echo_n "(cached) " >&6 |
7b6cb5bd | 26233 | else |
26234 | ||
26235 | save_CFLAGS="$CFLAGS" | |
26236 | CFLAGS="$CFLAGS -Werror" | |
cd9a469c | 26237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 26238 | /* end confdefs.h. */ |
26239 | void __attribute__((visibility("hidden"))) foo(void) { } | |
26240 | int | |
26241 | main () | |
26242 | { | |
26243 | ||
26244 | ; | |
26245 | return 0; | |
26246 | } | |
26247 | _ACEOF | |
cd9a469c | 26248 | if ac_fn_c_try_compile "$LINENO"; then : |
6992582a | 26249 | libgfor_cv_have_attribute_visibility=yes |
7b6cb5bd | 26250 | else |
cd9a469c | 26251 | libgfor_cv_have_attribute_visibility=no |
7b6cb5bd | 26252 | fi |
cd9a469c | 26253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 26254 | CFLAGS="$save_CFLAGS" |
26255 | fi | |
cd9a469c | 26256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
26257 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6992582a | 26258 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7b6cb5bd | 26259 | |
cd9a469c | 26260 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7b6cb5bd | 26261 | |
26262 | fi | |
26263 | ||
cd9a469c | 26264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
26265 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
f00f02a3 | 26266 | if ${libgfor_cv_have_attribute_alias+:} false; then : |
cd9a469c | 26267 | $as_echo_n "(cached) " >&6 |
7b6cb5bd | 26268 | else |
26269 | ||
b52ee437 | 26270 | if test x$gcc_no_link = xyes; then |
f00f02a3 | 26271 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 26272 | fi |
cd9a469c | 26273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 26274 | /* end confdefs.h. */ |
26275 | ||
7b6cb5bd | 26276 | void foo(void) { } |
5a2b0c34 | 26277 | extern void bar(void) __attribute__((alias("foo"))); |
7b6cb5bd | 26278 | int |
26279 | main () | |
26280 | { | |
26281 | bar(); | |
26282 | ; | |
26283 | return 0; | |
26284 | } | |
26285 | _ACEOF | |
cd9a469c | 26286 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 26287 | libgfor_cv_have_attribute_alias=yes |
7b6cb5bd | 26288 | else |
cd9a469c | 26289 | libgfor_cv_have_attribute_alias=no |
7b6cb5bd | 26290 | fi |
cd9a469c | 26291 | rm -f core conftest.err conftest.$ac_objext \ |
26292 | conftest$ac_exeext conftest.$ac_ext | |
7b6cb5bd | 26293 | fi |
cd9a469c | 26294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
26295 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6992582a | 26296 | if test $libgfor_cv_have_attribute_alias = yes; then |
7b6cb5bd | 26297 | |
cd9a469c | 26298 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7b6cb5bd | 26299 | |
26300 | fi | |
26301 | ||
75c0d535 | 26302 | # Check out atomic builtins support. |
60c514ba | 26303 | |
75c0d535 | 26304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 |
26305 | $as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } | |
26306 | if ${libgfor_cv_have_atomic_fetch_add+:} false; then : | |
cd9a469c | 26307 | $as_echo_n "(cached) " >&6 |
60c514ba | 26308 | else |
26309 | ||
26310 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 26311 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
60c514ba | 26312 | fi |
cd9a469c | 26313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
60c514ba | 26314 | /* end confdefs.h. */ |
26315 | int foovar = 0; | |
26316 | int | |
26317 | main () | |
26318 | { | |
26319 | ||
75c0d535 | 26320 | if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); |
26321 | if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); | |
60c514ba | 26322 | ; |
26323 | return 0; | |
26324 | } | |
26325 | _ACEOF | |
cd9a469c | 26326 | if ac_fn_c_try_link "$LINENO"; then : |
75c0d535 | 26327 | libgfor_cv_have_atomic_fetch_add=yes |
60c514ba | 26328 | else |
75c0d535 | 26329 | libgfor_cv_have_atomic_fetch_add=no |
60c514ba | 26330 | fi |
cd9a469c | 26331 | rm -f core conftest.err conftest.$ac_objext \ |
26332 | conftest$ac_exeext conftest.$ac_ext | |
60c514ba | 26333 | fi |
75c0d535 | 26334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 |
26335 | $as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } | |
26336 | if test $libgfor_cv_have_atomic_fetch_add = yes; then | |
60c514ba | 26337 | |
75c0d535 | 26338 | $as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h |
60c514ba | 26339 | |
26340 | fi | |
26341 | ||
04c14146 | 26342 | # Check out #pragma weak. |
26343 | ||
26344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 | |
26345 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
f00f02a3 | 26346 | if ${libgfor_cv_have_pragma_weak+:} false; then : |
04c14146 | 26347 | $as_echo_n "(cached) " >&6 |
26348 | else | |
26349 | ||
26350 | gfor_save_CFLAGS="$CFLAGS" | |
26351 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
26352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26353 | /* end confdefs.h. */ | |
26354 | ||
26355 | void foo (void); | |
26356 | #pragma weak foo | |
26357 | ||
26358 | int | |
26359 | main () | |
26360 | { | |
26361 | if (foo) foo (); | |
26362 | ; | |
26363 | return 0; | |
26364 | } | |
26365 | _ACEOF | |
26366 | if ac_fn_c_try_compile "$LINENO"; then : | |
26367 | libgfor_cv_have_pragma_weak=yes | |
26368 | else | |
26369 | libgfor_cv_have_pragma_weak=no | |
26370 | fi | |
26371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26372 | fi | |
26373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 | |
26374 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
26375 | if test $libgfor_cv_have_pragma_weak = yes; then | |
26376 | ||
26377 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h | |
26378 | ||
26379 | fi | |
26380 | case "$host" in | |
26381 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) | |
26382 | ||
26383 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h | |
26384 | ||
26385 | ;; | |
26386 | esac | |
26387 | ||
1d9726df | 26388 | # Check out weakref support. |
60c514ba | 26389 | |
1d9726df | 26390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 |
26391 | $as_echo_n "checking whether the target supports weakref... " >&6; } | |
f00f02a3 | 26392 | if ${libgfor_cv_have_weakref+:} false; then : |
cd9a469c | 26393 | $as_echo_n "(cached) " >&6 |
60c514ba | 26394 | else |
26395 | ||
1d9726df | 26396 | save_CFLAGS="$CFLAGS" |
26397 | CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" | |
26398 | if test x$gcc_no_link = xyes; then | |
f00f02a3 | 26399 | as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1d9726df | 26400 | fi |
26401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
60c514ba | 26402 | /* end confdefs.h. */ |
b9a8e1d9 | 26403 | |
1d9726df | 26404 | static int mytoto (int) __attribute__((__weakref__("toto"))); |
b9a8e1d9 | 26405 | |
60c514ba | 26406 | int |
26407 | main () | |
26408 | { | |
1d9726df | 26409 | return (mytoto != 0); |
60c514ba | 26410 | ; |
26411 | return 0; | |
26412 | } | |
26413 | _ACEOF | |
1d9726df | 26414 | if ac_fn_c_try_link "$LINENO"; then : |
26415 | libgfor_cv_have_weakref=yes | |
60c514ba | 26416 | else |
1d9726df | 26417 | libgfor_cv_have_weakref=no |
60c514ba | 26418 | fi |
1d9726df | 26419 | rm -f core conftest.err conftest.$ac_objext \ |
26420 | conftest$ac_exeext conftest.$ac_ext | |
26421 | CFLAGS="$save_CFLAGS" | |
60c514ba | 26422 | fi |
1d9726df | 26423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 |
26424 | $as_echo "$libgfor_cv_have_weakref" >&6; } | |
26425 | if test $libgfor_cv_have_weakref = yes; then | |
60c514ba | 26426 | |
1d9726df | 26427 | $as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h |
60c514ba | 26428 | |
26429 | fi | |
26430 | ||
1dc95e51 | 26431 | # Various other checks on target |
26432 | ||
cd9a469c | 26433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
26434 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
f00f02a3 | 26435 | if ${libgfor_cv_have_unlink_open_file+:} false; then : |
cd9a469c | 26436 | $as_echo_n "(cached) " >&6 |
1dc95e51 | 26437 | else |
26438 | ||
cd9a469c | 26439 | if test "$cross_compiling" = yes; then : |
1dc95e51 | 26440 | |
26441 | case "${target}" in | |
6992582a | 26442 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
26443 | *) libgfor_cv_have_unlink_open_file=yes;; | |
1dc95e51 | 26444 | esac |
26445 | else | |
cd9a469c | 26446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1dc95e51 | 26447 | /* end confdefs.h. */ |
26448 | ||
26449 | #include <errno.h> | |
26450 | #include <fcntl.h> | |
26451 | #include <unistd.h> | |
26452 | #include <sys/stat.h> | |
26453 | ||
26454 | int main () | |
26455 | { | |
26456 | int fd; | |
26457 | ||
ec55604a | 26458 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); |
1dc95e51 | 26459 | if (fd <= 0) |
26460 | return 0; | |
26461 | if (unlink ("testfile") == -1) | |
26462 | return 1; | |
26463 | write (fd, "This is a test\n", 15); | |
26464 | close (fd); | |
26465 | ||
ec55604a | 26466 | if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) |
1dc95e51 | 26467 | return 0; |
26468 | else | |
26469 | return 1; | |
26470 | } | |
26471 | _ACEOF | |
cd9a469c | 26472 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 26473 | libgfor_cv_have_unlink_open_file=yes |
1dc95e51 | 26474 | else |
cd9a469c | 26475 | libgfor_cv_have_unlink_open_file=no |
1dc95e51 | 26476 | fi |
cd9a469c | 26477 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26478 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1dc95e51 | 26479 | fi |
cd9a469c | 26480 | |
1dc95e51 | 26481 | fi |
cd9a469c | 26482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
26483 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6992582a | 26484 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
1dc95e51 | 26485 | |
cd9a469c | 26486 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
1dc95e51 | 26487 | |
26488 | fi | |
26489 | ||
cf55c3cf | 26490 | # Check whether line terminator is LF or CRLF |
26491 | ||
cd9a469c | 26492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
26493 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
f00f02a3 | 26494 | if ${libgfor_cv_have_crlf+:} false; then : |
cd9a469c | 26495 | $as_echo_n "(cached) " >&6 |
cf55c3cf | 26496 | else |
26497 | ||
cd9a469c | 26498 | if test "$cross_compiling" = yes; then : |
cf55c3cf | 26499 | |
26500 | case "${target}" in | |
6992582a | 26501 | *mingw*) libgfor_cv_have_crlf=yes ;; |
26502 | *) libgfor_cv_have_crlf=no;; | |
cf55c3cf | 26503 | esac |
26504 | else | |
cd9a469c | 26505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cf55c3cf | 26506 | /* end confdefs.h. */ |
26507 | ||
26508 | /* This test program should exit with status 0 if system uses a CRLF as | |
26509 | line terminator, and status 1 otherwise. | |
26510 | Since it is used to check for mingw systems, and should return 0 in any | |
26511 | other case, in case of a failure we will not use CRLF. */ | |
26512 | #include <sys/stat.h> | |
26513 | #include <stdlib.h> | |
26514 | #include <fcntl.h> | |
26515 | #include <stdio.h> | |
26516 | ||
26517 | int main () | |
26518 | { | |
26519 | #ifndef O_BINARY | |
26520 | exit(1); | |
26521 | #else | |
26522 | int fd, bytes; | |
26523 | char buff[5]; | |
26524 | ||
26525 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
26526 | if (fd < 0) | |
26527 | exit(1); | |
26528 | if (write (fd, "\n", 1) < 0) | |
26529 | perror ("write"); | |
26530 | ||
26531 | close (fd); | |
26532 | ||
26533 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
26534 | exit(1); | |
26535 | bytes = read (fd, buff, 5); | |
26536 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
26537 | exit(0); | |
26538 | else | |
26539 | exit(1); | |
26540 | #endif | |
26541 | } | |
26542 | _ACEOF | |
cd9a469c | 26543 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 26544 | libgfor_cv_have_crlf=yes |
cf55c3cf | 26545 | else |
cd9a469c | 26546 | libgfor_cv_have_crlf=no |
cf55c3cf | 26547 | fi |
cd9a469c | 26548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
26549 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
cf55c3cf | 26550 | fi |
cd9a469c | 26551 | |
cf55c3cf | 26552 | fi |
cd9a469c | 26553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
26554 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6992582a | 26555 | if test x"$libgfor_cv_have_crlf" = xyes; then |
cf55c3cf | 26556 | |
cd9a469c | 26557 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
cf55c3cf | 26558 | |
26559 | fi | |
26560 | ||
25df644f | 26561 | # Check whether we support AVX extensions |
26562 | ||
26563 | ac_save_CFLAGS="$CFLAGS" | |
26564 | CFLAGS="-O2 -mavx" | |
26565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26566 | /* end confdefs.h. */ | |
26567 | ||
26568 | void _mm256_zeroall (void) | |
26569 | { | |
26570 | __builtin_ia32_vzeroall (); | |
26571 | } | |
26572 | int | |
26573 | main () | |
26574 | { | |
26575 | ||
26576 | ; | |
26577 | return 0; | |
26578 | } | |
26579 | _ACEOF | |
26580 | if ac_fn_c_try_compile "$LINENO"; then : | |
26581 | ||
26582 | $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
26583 | ||
26584 | fi | |
26585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26586 | CFLAGS="$ac_save_CFLAGS" | |
26587 | ||
26588 | ||
26589 | # Check wether we support AVX2 extensions | |
26590 | ||
26591 | ac_save_CFLAGS="$CFLAGS" | |
26592 | CFLAGS="-O2 -mavx2" | |
26593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26594 | /* end confdefs.h. */ | |
26595 | ||
26596 | typedef long long __v4di __attribute__ ((__vector_size__ (32))); | |
26597 | __v4di | |
26598 | mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) | |
26599 | { | |
26600 | return __builtin_ia32_andnotsi256 (__X, __Y); | |
26601 | } | |
26602 | int | |
26603 | main () | |
26604 | { | |
26605 | ||
26606 | ; | |
26607 | return 0; | |
26608 | } | |
26609 | _ACEOF | |
26610 | if ac_fn_c_try_compile "$LINENO"; then : | |
26611 | ||
26612 | $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
26613 | ||
26614 | fi | |
26615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26616 | CFLAGS="$ac_save_CFLAGS" | |
26617 | ||
26618 | ||
26619 | # Check wether we support AVX512f extensions | |
26620 | ||
26621 | ac_save_CFLAGS="$CFLAGS" | |
26622 | CFLAGS="-O2 -mavx512f" | |
26623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26624 | /* end confdefs.h. */ | |
26625 | ||
26626 | typedef double __m512d __attribute__ ((__vector_size__ (64))); | |
26627 | __m512d _mm512_add (__m512d a) | |
26628 | { | |
d6c831fb | 26629 | __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); |
26630 | /* For -m64/-mx32 also verify that code will work even if | |
26631 | the target uses call saved zmm16+ and needs to emit | |
26632 | unwind info for them (e.g. on mingw). See PR79127. */ | |
26633 | #ifdef __x86_64__ | |
26634 | asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); | |
26635 | #endif | |
26636 | return b; | |
25df644f | 26637 | } |
26638 | int | |
26639 | main () | |
26640 | { | |
26641 | ||
26642 | ; | |
26643 | return 0; | |
26644 | } | |
26645 | _ACEOF | |
26646 | if ac_fn_c_try_compile "$LINENO"; then : | |
26647 | ||
26648 | $as_echo "#define HAVE_AVX512F 1" >>confdefs.h | |
26649 | ||
26650 | fi | |
26651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26652 | CFLAGS="$ac_save_CFLAGS" | |
26653 | ||
26654 | ||
b4e409cb | 26655 | # Check for FMA3 extensions |
26656 | ||
26657 | ac_save_CFLAGS="$CFLAGS" | |
26658 | CFLAGS="-O2 -mfma -mno-fma4" | |
26659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26660 | /* end confdefs.h. */ | |
26661 | ||
3803be45 | 26662 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
26663 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
26664 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
b4e409cb | 26665 | { |
3803be45 | 26666 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
26667 | (__v4sf)__B, | |
26668 | (__v4sf)__C); | |
b4e409cb | 26669 | } |
26670 | int | |
26671 | main () | |
26672 | { | |
26673 | ||
26674 | ; | |
26675 | return 0; | |
26676 | } | |
26677 | _ACEOF | |
26678 | if ac_fn_c_try_compile "$LINENO"; then : | |
26679 | ||
26680 | $as_echo "#define HAVE_FMA3 1" >>confdefs.h | |
26681 | ||
26682 | fi | |
26683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26684 | CFLAGS="$ac_save_CFLAGS" | |
26685 | ||
26686 | ||
26687 | # Check for FMA4 extensions | |
26688 | ||
26689 | ac_save_CFLAGS="$CFLAGS" | |
26690 | CFLAGS="-O2 -mfma4 -mno-fma" | |
26691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26692 | /* end confdefs.h. */ | |
26693 | ||
3803be45 | 26694 | typedef float __m128 __attribute__ ((__vector_size__ (16))); |
26695 | typedef float __v4sf __attribute__ ((__vector_size__ (16))); | |
26696 | __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) | |
b4e409cb | 26697 | { |
3803be45 | 26698 | return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, |
26699 | (__v4sf)__B, | |
26700 | (__v4sf)__C); | |
b4e409cb | 26701 | } |
26702 | int | |
26703 | main () | |
26704 | { | |
26705 | ||
26706 | ; | |
26707 | return 0; | |
26708 | } | |
26709 | _ACEOF | |
26710 | if ac_fn_c_try_compile "$LINENO"; then : | |
26711 | ||
26712 | $as_echo "#define HAVE_FMA4 1" >>confdefs.h | |
26713 | ||
26714 | fi | |
26715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26716 | CFLAGS="$ac_save_CFLAGS" | |
26717 | ||
26718 | ||
26719 | # Check if AVX128 works | |
26720 | ||
26721 | ac_save_CFLAGS="$CFLAGS" | |
26722 | CFLAGS="-O2 -mavx -mprefer-avx128" | |
26723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
26724 | /* end confdefs.h. */ | |
26725 | ||
26726 | void foo() | |
26727 | { | |
26728 | } | |
26729 | int | |
26730 | main () | |
26731 | { | |
26732 | ||
26733 | ; | |
26734 | return 0; | |
26735 | } | |
26736 | _ACEOF | |
26737 | if ac_fn_c_try_compile "$LINENO"; then : | |
26738 | ||
26739 | $as_echo "#define HAVE_AVX128 1" >>confdefs.h | |
26740 | ||
26741 | if true; then | |
26742 | HAVE_AVX128_TRUE= | |
26743 | HAVE_AVX128_FALSE='#' | |
26744 | else | |
26745 | HAVE_AVX128_TRUE='#' | |
26746 | HAVE_AVX128_FALSE= | |
26747 | fi | |
26748 | ||
a1a7ecea | 26749 | else |
26750 | if false; then | |
26751 | HAVE_AVX128_TRUE= | |
26752 | HAVE_AVX128_FALSE='#' | |
26753 | else | |
26754 | HAVE_AVX128_TRUE='#' | |
26755 | HAVE_AVX128_FALSE= | |
26756 | fi | |
26757 | ||
b4e409cb | 26758 | fi |
26759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
26760 | CFLAGS="$ac_save_CFLAGS" | |
26761 | ||
26762 | ||
0812bb06 | 26763 | # Determine what GCC version number to use in filesystem paths. |
26764 | ||
26765 | get_gcc_base_ver="cat" | |
26766 | ||
26767 | # Check whether --with-gcc-major-version-only was given. | |
26768 | if test "${with_gcc_major_version_only+set}" = set; then : | |
26769 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
124c259e | 26770 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
0812bb06 | 26771 | fi |
26772 | ||
26773 | fi | |
26774 | ||
26775 | ||
26776 | ||
26777 | ||
4ee9c684 | 26778 | cat >confcache <<\_ACEOF |
26779 | # This file is a shell script that caches the results of configure | |
26780 | # tests run on this system so they can be shared between configure | |
26781 | # scripts and configure runs, see configure's option --config-cache. | |
26782 | # It is not useful on other systems. If it contains results you don't | |
26783 | # want to keep, you may remove or edit it. | |
26784 | # | |
26785 | # config.status only pays attention to the cache file if you give it | |
26786 | # the --recheck option to rerun configure. | |
26787 | # | |
26788 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26789 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26790 | # following values. | |
26791 | ||
26792 | _ACEOF | |
26793 | ||
26794 | # The following way of writing the cache mishandles newlines in values, | |
26795 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26796 | # So, we kill variables containing newlines. |
4ee9c684 | 26797 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26798 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26799 | ( |
26800 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26801 | eval ac_val=\$$ac_var | |
26802 | case $ac_val in #( | |
26803 | *${as_nl}*) | |
26804 | case $ac_var in #( | |
26805 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26806 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26807 | esac | |
26808 | case $ac_var in #( | |
26809 | _ | IFS | as_nl) ;; #( | |
26810 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26811 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26812 | esac ;; | |
26813 | esac | |
26814 | done | |
26815 | ||
4ee9c684 | 26816 | (set) 2>&1 | |
cd9a469c | 26817 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26818 | *${as_nl}ac_space=\ *) | |
26819 | # `set' does not quote correctly, so add quotes: double-quote | |
26820 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26821 | sed -n \ |
26822 | "s/'/'\\\\''/g; | |
26823 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26824 | ;; #( |
4ee9c684 | 26825 | *) |
26826 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26827 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26828 | ;; |
cd9a469c | 26829 | esac | |
26830 | sort | |
26831 | ) | | |
4ee9c684 | 26832 | sed ' |
cd9a469c | 26833 | /^ac_cv_env_/b end |
4ee9c684 | 26834 | t clear |
cd9a469c | 26835 | :clear |
4ee9c684 | 26836 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26837 | t end | |
cd9a469c | 26838 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26839 | :end' >>confcache | |
26840 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26841 | if test -w "$cache_file"; then | |
f00f02a3 | 26842 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 26843 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26844 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 26845 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
26846 | cat confcache >"$cache_file" | |
26847 | else | |
26848 | case $cache_file in #( | |
26849 | */* | ?:*) | |
26850 | mv -f confcache "$cache_file"$$ && | |
26851 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26852 | *) | |
26853 | mv -f confcache "$cache_file" ;; | |
26854 | esac | |
26855 | fi | |
26856 | fi | |
4ee9c684 | 26857 | else |
cd9a469c | 26858 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26859 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26860 | fi |
26861 | fi | |
26862 | rm -f confcache | |
26863 | ||
90973b19 | 26864 | if test ${multilib} = yes; then |
26865 | multilib_arg="--enable-multilib" | |
4ee9c684 | 26866 | else |
90973b19 | 26867 | multilib_arg= |
4ee9c684 | 26868 | fi |
4ee9c684 | 26869 | |
87969c8c | 26870 | # Write our Makefile and spec file. |
26871 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
90973b19 | 26872 | |
4ee9c684 | 26873 | cat >confcache <<\_ACEOF |
26874 | # This file is a shell script that caches the results of configure | |
26875 | # tests run on this system so they can be shared between configure | |
26876 | # scripts and configure runs, see configure's option --config-cache. | |
26877 | # It is not useful on other systems. If it contains results you don't | |
26878 | # want to keep, you may remove or edit it. | |
26879 | # | |
26880 | # config.status only pays attention to the cache file if you give it | |
26881 | # the --recheck option to rerun configure. | |
26882 | # | |
26883 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
26884 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
26885 | # following values. | |
26886 | ||
26887 | _ACEOF | |
26888 | ||
26889 | # The following way of writing the cache mishandles newlines in values, | |
26890 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26891 | # So, we kill variables containing newlines. |
4ee9c684 | 26892 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26893 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26894 | ( |
26895 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26896 | eval ac_val=\$$ac_var | |
26897 | case $ac_val in #( | |
26898 | *${as_nl}*) | |
26899 | case $ac_var in #( | |
26900 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26901 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26902 | esac | |
26903 | case $ac_var in #( | |
26904 | _ | IFS | as_nl) ;; #( | |
26905 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26906 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26907 | esac ;; | |
26908 | esac | |
26909 | done | |
26910 | ||
4ee9c684 | 26911 | (set) 2>&1 | |
cd9a469c | 26912 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26913 | *${as_nl}ac_space=\ *) | |
26914 | # `set' does not quote correctly, so add quotes: double-quote | |
26915 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26916 | sed -n \ |
26917 | "s/'/'\\\\''/g; | |
26918 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26919 | ;; #( |
4ee9c684 | 26920 | *) |
26921 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26922 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26923 | ;; |
cd9a469c | 26924 | esac | |
26925 | sort | |
26926 | ) | | |
4ee9c684 | 26927 | sed ' |
cd9a469c | 26928 | /^ac_cv_env_/b end |
4ee9c684 | 26929 | t clear |
cd9a469c | 26930 | :clear |
4ee9c684 | 26931 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26932 | t end | |
cd9a469c | 26933 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26934 | :end' >>confcache | |
26935 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26936 | if test -w "$cache_file"; then | |
f00f02a3 | 26937 | if test "x$cache_file" != "x/dev/null"; then |
cd9a469c | 26938 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26939 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
f00f02a3 | 26940 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
26941 | cat confcache >"$cache_file" | |
26942 | else | |
26943 | case $cache_file in #( | |
26944 | */* | ?:*) | |
26945 | mv -f confcache "$cache_file"$$ && | |
26946 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
26947 | *) | |
26948 | mv -f confcache "$cache_file" ;; | |
26949 | esac | |
26950 | fi | |
26951 | fi | |
4ee9c684 | 26952 | else |
cd9a469c | 26953 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26954 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26955 | fi |
26956 | fi | |
26957 | rm -f confcache | |
26958 | ||
26959 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
26960 | # Let make expand exec_prefix. | |
26961 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26962 | ||
4ee9c684 | 26963 | DEFS=-DHAVE_CONFIG_H |
26964 | ||
26965 | ac_libobjs= | |
26966 | ac_ltlibobjs= | |
f00f02a3 | 26967 | U= |
4ee9c684 | 26968 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
26969 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 26970 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26971 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
26972 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
26973 | # will be set to the directory where LIBOBJS objects are built. | |
26974 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26975 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4ee9c684 | 26976 | done |
26977 | LIBOBJS=$ac_libobjs | |
26978 | ||
26979 | LTLIBOBJS=$ac_ltlibobjs | |
26980 | ||
26981 | ||
93773f82 | 26982 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
f00f02a3 | 26983 | as_fn_error $? "conditional \"onestep\" was never defined. |
cd9a469c | 26984 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
26985 | fi | |
f00f02a3 | 26986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
26987 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
26988 | if test -n "$am_sleep_pid"; then | |
26989 | # Hide warnings about reused PIDs. | |
26990 | wait $am_sleep_pid 2>/dev/null | |
26991 | fi | |
26992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
26993 | $as_echo "done" >&6; } | |
cd9a469c | 26994 | if test -n "$EXEEXT"; then |
26995 | am__EXEEXT_TRUE= | |
26996 | am__EXEEXT_FALSE='#' | |
26997 | else | |
26998 | am__EXEEXT_TRUE='#' | |
26999 | am__EXEEXT_FALSE= | |
93773f82 | 27000 | fi |
cd9a469c | 27001 | |
4ee9c684 | 27002 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
f00f02a3 | 27003 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
cd9a469c | 27004 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4ee9c684 | 27005 | fi |
2fd61f51 | 27006 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
f00f02a3 | 27007 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
cd9a469c | 27008 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2fd61f51 | 27009 | fi |
27010 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
f00f02a3 | 27011 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
cd9a469c | 27012 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2fd61f51 | 27013 | fi |
d5d92632 | 27014 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
f00f02a3 | 27015 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
d5d92632 | 27016 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27017 | fi | |
ce1a737c | 27018 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
f00f02a3 | 27019 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
cd9a469c | 27020 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ce1a737c | 27021 | fi |
019fb48a | 27022 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
f00f02a3 | 27023 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. |
019fb48a | 27024 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27025 | fi | |
27026 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
f00f02a3 | 27027 | as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. |
019fb48a | 27028 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27029 | fi | |
eb00e55c | 27030 | if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then |
f00f02a3 | 27031 | as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. |
eb00e55c | 27032 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27033 | fi | |
18ce903b | 27034 | if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then |
f00f02a3 | 27035 | as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. |
18ce903b | 27036 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27037 | fi | |
87969c8c | 27038 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
f00f02a3 | 27039 | as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. |
87969c8c | 27040 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27041 | fi | |
d566c3e0 | 27042 | if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then |
f00f02a3 | 27043 | as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. |
d566c3e0 | 27044 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27045 | fi | |
b4e409cb | 27046 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
f00f02a3 | 27047 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
b4e409cb | 27048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27049 | fi | |
a1a7ecea | 27050 | if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then |
f00f02a3 | 27051 | as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. |
a1a7ecea | 27052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
27053 | fi | |
4ee9c684 | 27054 | |
f00f02a3 | 27055 | : "${CONFIG_STATUS=./config.status}" |
cd9a469c | 27056 | ac_write_fail=0 |
4ee9c684 | 27057 | ac_clean_files_save=$ac_clean_files |
27058 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 27059 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
27060 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
27061 | as_write_fail=0 | |
27062 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4ee9c684 | 27063 | #! $SHELL |
27064 | # Generated by $as_me. | |
27065 | # Run this file to recreate the current configuration. | |
27066 | # Compiler output produced by configure, useful for debugging | |
27067 | # configure, is in config.log if it exists. | |
27068 | ||
27069 | debug=false | |
27070 | ac_cs_recheck=false | |
27071 | ac_cs_silent=false | |
4ee9c684 | 27072 | |
cd9a469c | 27073 | SHELL=\${CONFIG_SHELL-$SHELL} |
27074 | export SHELL | |
27075 | _ASEOF | |
27076 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
27077 | ## -------------------- ## | |
27078 | ## M4sh Initialization. ## | |
27079 | ## -------------------- ## | |
27080 | ||
27081 | # Be more Bourne compatible | |
27082 | DUALCASE=1; export DUALCASE # for MKS sh | |
27083 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4ee9c684 | 27084 | emulate sh |
27085 | NULLCMD=: | |
cd9a469c | 27086 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 27087 | # is contrary to our usage. Disable this feature. |
27088 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 27089 | setopt NO_GLOB_SUBST |
27090 | else | |
27091 | case `(set -o) 2>/dev/null` in #( | |
27092 | *posix*) : | |
27093 | set -o posix ;; #( | |
27094 | *) : | |
27095 | ;; | |
27096 | esac | |
4ee9c684 | 27097 | fi |
4ee9c684 | 27098 | |
cd9a469c | 27099 | |
27100 | as_nl=' | |
27101 | ' | |
27102 | export as_nl | |
27103 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
27104 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
27105 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
27106 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
27107 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
27108 | # but without wasting forks for bash or zsh. | |
27109 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
27110 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27111 | as_echo='print -r --' | |
27112 | as_echo_n='print -rn --' | |
27113 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
27114 | as_echo='printf %s\n' | |
27115 | as_echo_n='printf %s' | |
27116 | else | |
27117 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
27118 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
27119 | as_echo_n='/usr/ucb/echo -n' | |
27120 | else | |
27121 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
27122 | as_echo_n_body='eval | |
27123 | arg=$1; | |
27124 | case $arg in #( | |
27125 | *"$as_nl"*) | |
27126 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
27127 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
27128 | esac; | |
27129 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
27130 | ' | |
27131 | export as_echo_n_body | |
27132 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
27133 | fi | |
27134 | export as_echo_body | |
27135 | as_echo='sh -c $as_echo_body as_echo' | |
27136 | fi | |
27137 | ||
27138 | # The user is always right. | |
27139 | if test "${PATH_SEPARATOR+set}" != set; then | |
27140 | PATH_SEPARATOR=: | |
27141 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
27142 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
27143 | PATH_SEPARATOR=';' | |
27144 | } | |
4ee9c684 | 27145 | fi |
27146 | ||
27147 | ||
cd9a469c | 27148 | # IFS |
27149 | # We need space, tab and new line, in precisely that order. Quoting is | |
27150 | # there to prevent editors from complaining about space-tab. | |
27151 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
27152 | # splitting by setting IFS to empty value.) | |
27153 | IFS=" "" $as_nl" | |
27154 | ||
27155 | # Find who we are. Look in the path if we contain no directory separator. | |
f00f02a3 | 27156 | as_myself= |
cd9a469c | 27157 | case $0 in #(( |
27158 | *[\\/]* ) as_myself=$0 ;; | |
27159 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27160 | for as_dir in $PATH | |
27161 | do | |
27162 | IFS=$as_save_IFS | |
27163 | test -z "$as_dir" && as_dir=. | |
27164 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
27165 | done | |
27166 | IFS=$as_save_IFS | |
27167 | ||
27168 | ;; | |
27169 | esac | |
27170 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
27171 | # in which case we are not to be found in the path. | |
27172 | if test "x$as_myself" = x; then | |
27173 | as_myself=$0 | |
27174 | fi | |
27175 | if test ! -f "$as_myself"; then | |
27176 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
27177 | exit 1 | |
27178 | fi | |
27179 | ||
27180 | # Unset variables that we do not need and which cause bugs (e.g. in | |
27181 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
27182 | # suppresses any "Segmentation fault" message there. '((' could | |
27183 | # trigger a bug in pdksh 5.2.14. | |
27184 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
27185 | do eval test x\${$as_var+set} = xset \ | |
27186 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
27187 | done | |
4ee9c684 | 27188 | PS1='$ ' |
27189 | PS2='> ' | |
27190 | PS4='+ ' | |
27191 | ||
27192 | # NLS nuisances. | |
cd9a469c | 27193 | LC_ALL=C |
27194 | export LC_ALL | |
27195 | LANGUAGE=C | |
27196 | export LANGUAGE | |
27197 | ||
27198 | # CDPATH. | |
27199 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27200 | ||
27201 | ||
f00f02a3 | 27202 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
27203 | # ---------------------------------------- | |
cd9a469c | 27204 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
27205 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
f00f02a3 | 27206 | # script with STATUS, using 1 if that was 0. |
cd9a469c | 27207 | as_fn_error () |
27208 | { | |
f00f02a3 | 27209 | as_status=$1; test $as_status -eq 0 && as_status=1 |
27210 | if test "$4"; then | |
27211 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
27212 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4ee9c684 | 27213 | fi |
f00f02a3 | 27214 | $as_echo "$as_me: error: $2" >&2 |
cd9a469c | 27215 | as_fn_exit $as_status |
27216 | } # as_fn_error | |
27217 | ||
27218 | ||
27219 | # as_fn_set_status STATUS | |
27220 | # ----------------------- | |
27221 | # Set $? to STATUS, without forking. | |
27222 | as_fn_set_status () | |
27223 | { | |
27224 | return $1 | |
27225 | } # as_fn_set_status | |
27226 | ||
27227 | # as_fn_exit STATUS | |
27228 | # ----------------- | |
27229 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
27230 | as_fn_exit () | |
27231 | { | |
27232 | set +e | |
27233 | as_fn_set_status $1 | |
27234 | exit $1 | |
27235 | } # as_fn_exit | |
27236 | ||
27237 | # as_fn_unset VAR | |
27238 | # --------------- | |
27239 | # Portably unset VAR. | |
27240 | as_fn_unset () | |
27241 | { | |
27242 | { eval $1=; unset $1;} | |
27243 | } | |
27244 | as_unset=as_fn_unset | |
27245 | # as_fn_append VAR VALUE | |
27246 | # ---------------------- | |
27247 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
27248 | # advantage of any shell optimizations that allow amortized linear growth over | |
27249 | # repeated appends, instead of the typical quadratic growth present in naive | |
27250 | # implementations. | |
27251 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
27252 | eval 'as_fn_append () | |
27253 | { | |
27254 | eval $1+=\$2 | |
27255 | }' | |
27256 | else | |
27257 | as_fn_append () | |
27258 | { | |
27259 | eval $1=\$$1\$2 | |
27260 | } | |
27261 | fi # as_fn_append | |
27262 | ||
27263 | # as_fn_arith ARG... | |
27264 | # ------------------ | |
27265 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
27266 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
27267 | # must be portable across $(()) and expr. | |
27268 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
27269 | eval 'as_fn_arith () | |
27270 | { | |
27271 | as_val=$(( $* )) | |
27272 | }' | |
27273 | else | |
27274 | as_fn_arith () | |
27275 | { | |
27276 | as_val=`expr "$@" || test $? -eq 1` | |
27277 | } | |
27278 | fi # as_fn_arith | |
4ee9c684 | 27279 | |
cd9a469c | 27280 | |
27281 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
27282 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 27283 | as_expr=expr |
27284 | else | |
27285 | as_expr=false | |
27286 | fi | |
27287 | ||
cd9a469c | 27288 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 27289 | as_basename=basename |
27290 | else | |
27291 | as_basename=false | |
27292 | fi | |
27293 | ||
cd9a469c | 27294 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
27295 | as_dirname=dirname | |
27296 | else | |
27297 | as_dirname=false | |
27298 | fi | |
4ee9c684 | 27299 | |
cd9a469c | 27300 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 27301 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
27302 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 27303 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
27304 | $as_echo X/"$0" | | |
27305 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
27306 | s//\1/ | |
27307 | q | |
27308 | } | |
27309 | /^X\/\(\/\/\)$/{ | |
27310 | s//\1/ | |
27311 | q | |
27312 | } | |
27313 | /^X\/\(\/\).*/{ | |
27314 | s//\1/ | |
27315 | q | |
27316 | } | |
27317 | s/.*/./; q'` | |
82eaf560 | 27318 | |
82eaf560 | 27319 | # Avoid depending upon Character Ranges. |
27320 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
27321 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
27322 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
27323 | as_cr_digits='0123456789' | |
27324 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
27325 | ||
cd9a469c | 27326 | ECHO_C= ECHO_N= ECHO_T= |
27327 | case `echo -n x` in #((((( | |
27328 | -n*) | |
27329 | case `echo 'xy\c'` in | |
27330 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
27331 | xy) ECHO_C='\c';; | |
27332 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
27333 | ECHO_T=' ';; | |
27334 | esac;; | |
27335 | *) | |
27336 | ECHO_N='-n';; | |
4ee9c684 | 27337 | esac |
27338 | ||
cd9a469c | 27339 | rm -f conf$$ conf$$.exe conf$$.file |
27340 | if test -d conf$$.dir; then | |
27341 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 27342 | else |
cd9a469c | 27343 | rm -f conf$$.dir |
27344 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 27345 | fi |
cd9a469c | 27346 | if (echo >conf$$.file) 2>/dev/null; then |
27347 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 27348 | as_ln_s='ln -s' |
cd9a469c | 27349 | # ... but there are two gotchas: |
27350 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
27351 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f00f02a3 | 27352 | # In both cases, we have to default to `cp -pR'. |
cd9a469c | 27353 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f00f02a3 | 27354 | as_ln_s='cp -pR' |
cd9a469c | 27355 | elif ln conf$$.file conf$$ 2>/dev/null; then |
27356 | as_ln_s=ln | |
27357 | else | |
f00f02a3 | 27358 | as_ln_s='cp -pR' |
82eaf560 | 27359 | fi |
4ee9c684 | 27360 | else |
f00f02a3 | 27361 | as_ln_s='cp -pR' |
4ee9c684 | 27362 | fi |
cd9a469c | 27363 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
27364 | rmdir conf$$.dir 2>/dev/null | |
27365 | ||
27366 | ||
27367 | # as_fn_mkdir_p | |
27368 | # ------------- | |
27369 | # Create "$as_dir" as a directory, including parents if necessary. | |
27370 | as_fn_mkdir_p () | |
27371 | { | |
27372 | ||
27373 | case $as_dir in #( | |
27374 | -*) as_dir=./$as_dir;; | |
27375 | esac | |
27376 | test -d "$as_dir" || eval $as_mkdir_p || { | |
27377 | as_dirs= | |
27378 | while :; do | |
27379 | case $as_dir in #( | |
27380 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27381 | *) as_qdir=$as_dir;; | |
27382 | esac | |
27383 | as_dirs="'$as_qdir' $as_dirs" | |
27384 | as_dir=`$as_dirname -- "$as_dir" || | |
27385 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27386 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27387 | X"$as_dir" : 'X\(//\)$' \| \ | |
27388 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27389 | $as_echo X"$as_dir" | | |
27390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27391 | s//\1/ | |
27392 | q | |
27393 | } | |
27394 | /^X\(\/\/\)[^/].*/{ | |
27395 | s//\1/ | |
27396 | q | |
27397 | } | |
27398 | /^X\(\/\/\)$/{ | |
27399 | s//\1/ | |
27400 | q | |
27401 | } | |
27402 | /^X\(\/\).*/{ | |
27403 | s//\1/ | |
27404 | q | |
27405 | } | |
27406 | s/.*/./; q'` | |
27407 | test -d "$as_dir" && break | |
27408 | done | |
27409 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
f00f02a3 | 27410 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
cd9a469c | 27411 | |
4ee9c684 | 27412 | |
cd9a469c | 27413 | } # as_fn_mkdir_p |
4ee9c684 | 27414 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 27415 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 27416 | else |
27417 | test -d ./-p && rmdir ./-p | |
27418 | as_mkdir_p=false | |
27419 | fi | |
27420 | ||
f00f02a3 | 27421 | |
27422 | # as_fn_executable_p FILE | |
27423 | # ----------------------- | |
27424 | # Test if FILE is an executable regular file. | |
27425 | as_fn_executable_p () | |
27426 | { | |
27427 | test -f "$1" && test -x "$1" | |
27428 | } # as_fn_executable_p | |
27429 | as_test_x='test -x' | |
27430 | as_executable_p=as_fn_executable_p | |
4ee9c684 | 27431 | |
27432 | # Sed expression to map a string onto a valid CPP name. | |
27433 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
27434 | ||
27435 | # Sed expression to map a string onto a valid variable name. | |
27436 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
27437 | ||
27438 | ||
4ee9c684 | 27439 | exec 6>&1 |
cd9a469c | 27440 | ## ----------------------------------- ## |
27441 | ## Main body of $CONFIG_STATUS script. ## | |
27442 | ## ----------------------------------- ## | |
27443 | _ASEOF | |
27444 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
27445 | ||
27446 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27447 | # Save the log message, to keep $0 and so on meaningful, and to | |
4ee9c684 | 27448 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 27449 | # values after options handling. |
27450 | ac_log=" | |
76c0a846 | 27451 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
f00f02a3 | 27452 | generated by GNU Autoconf 2.69. Invocation command line was |
4ee9c684 | 27453 | |
27454 | CONFIG_FILES = $CONFIG_FILES | |
27455 | CONFIG_HEADERS = $CONFIG_HEADERS | |
27456 | CONFIG_LINKS = $CONFIG_LINKS | |
27457 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
27458 | $ $0 $@ | |
27459 | ||
cd9a469c | 27460 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
27461 | " | |
27462 | ||
4ee9c684 | 27463 | _ACEOF |
27464 | ||
cd9a469c | 27465 | case $ac_config_files in *" |
27466 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
27467 | esac | |
a106dabe | 27468 | |
cd9a469c | 27469 | case $ac_config_headers in *" |
27470 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
27471 | esac | |
82eaf560 | 27472 | |
82eaf560 | 27473 | |
cd9a469c | 27474 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27475 | # Files that config.status was made for. | |
27476 | config_files="$ac_config_files" | |
27477 | config_headers="$ac_config_headers" | |
27478 | config_commands="$ac_config_commands" | |
4ee9c684 | 27479 | |
cd9a469c | 27480 | _ACEOF |
82eaf560 | 27481 | |
cd9a469c | 27482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 27483 | ac_cs_usage="\ |
cd9a469c | 27484 | \`$as_me' instantiates files and other configuration actions |
27485 | from templates according to the current configuration. Unless the files | |
27486 | and actions are specified as TAGs, all are instantiated by default. | |
4ee9c684 | 27487 | |
cd9a469c | 27488 | Usage: $0 [OPTION]... [TAG]... |
4ee9c684 | 27489 | |
27490 | -h, --help print this help, then exit | |
cd9a469c | 27491 | -V, --version print version number and configuration settings, then exit |
f00f02a3 | 27492 | --config print configuration, then exit |
cd9a469c | 27493 | -q, --quiet, --silent |
27494 | do not print progress messages | |
4ee9c684 | 27495 | -d, --debug don't remove temporary files |
27496 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 27497 | --file=FILE[:TEMPLATE] |
27498 | instantiate the configuration file FILE | |
27499 | --header=FILE[:TEMPLATE] | |
27500 | instantiate the configuration header FILE | |
4ee9c684 | 27501 | |
27502 | Configuration files: | |
27503 | $config_files | |
27504 | ||
27505 | Configuration headers: | |
27506 | $config_headers | |
27507 | ||
27508 | Configuration commands: | |
27509 | $config_commands | |
27510 | ||
cd9a469c | 27511 | Report bugs to the package provider. |
27512 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
27513 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
82eaf560 | 27514 | |
cd9a469c | 27515 | _ACEOF |
27516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 27517 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4ee9c684 | 27518 | ac_cs_version="\\ |
76c0a846 | 27519 | GNU Fortran Runtime Library config.status 0.3 |
f00f02a3 | 27520 | configured by $0, generated by GNU Autoconf 2.69, |
27521 | with options \\"\$ac_cs_config\\" | |
4ee9c684 | 27522 | |
f00f02a3 | 27523 | Copyright (C) 2012 Free Software Foundation, Inc. |
4ee9c684 | 27524 | This config.status script is free software; the Free Software Foundation |
27525 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 27526 | |
27527 | ac_pwd='$ac_pwd' | |
27528 | srcdir='$srcdir' | |
27529 | INSTALL='$INSTALL' | |
27530 | MKDIR_P='$MKDIR_P' | |
27531 | AWK='$AWK' | |
27532 | test -n "\$AWK" || AWK=awk | |
4ee9c684 | 27533 | _ACEOF |
27534 | ||
cd9a469c | 27535 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27536 | # The default lists apply if the user does not specify any file. | |
4ee9c684 | 27537 | ac_need_defaults=: |
27538 | while test $# != 0 | |
27539 | do | |
27540 | case $1 in | |
f00f02a3 | 27541 | --*=?*) |
cd9a469c | 27542 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
27543 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4ee9c684 | 27544 | ac_shift=: |
27545 | ;; | |
f00f02a3 | 27546 | --*=) |
27547 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
27548 | ac_optarg= | |
27549 | ac_shift=: | |
27550 | ;; | |
cd9a469c | 27551 | *) |
4ee9c684 | 27552 | ac_option=$1 |
27553 | ac_optarg=$2 | |
27554 | ac_shift=shift | |
27555 | ;; | |
4ee9c684 | 27556 | esac |
27557 | ||
27558 | case $ac_option in | |
27559 | # Handling of the options. | |
4ee9c684 | 27560 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
27561 | ac_cs_recheck=: ;; | |
cd9a469c | 27562 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
27563 | $as_echo "$ac_cs_version"; exit ;; | |
f00f02a3 | 27564 | --config | --confi | --conf | --con | --co | --c ) |
27565 | $as_echo "$ac_cs_config"; exit ;; | |
cd9a469c | 27566 | --debug | --debu | --deb | --de | --d | -d ) |
4ee9c684 | 27567 | debug=: ;; |
27568 | --file | --fil | --fi | --f ) | |
27569 | $ac_shift | |
cd9a469c | 27570 | case $ac_optarg in |
27571 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f00f02a3 | 27572 | '') as_fn_error $? "missing file argument" ;; |
cd9a469c | 27573 | esac |
27574 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4ee9c684 | 27575 | ac_need_defaults=false;; |
27576 | --header | --heade | --head | --hea ) | |
27577 | $ac_shift | |
cd9a469c | 27578 | case $ac_optarg in |
27579 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
27580 | esac | |
27581 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4ee9c684 | 27582 | ac_need_defaults=false;; |
cd9a469c | 27583 | --he | --h) |
27584 | # Conflict between --help and --header | |
f00f02a3 | 27585 | as_fn_error $? "ambiguous option: \`$1' |
cd9a469c | 27586 | Try \`$0 --help' for more information.";; |
27587 | --help | --hel | -h ) | |
27588 | $as_echo "$ac_cs_usage"; exit ;; | |
4ee9c684 | 27589 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
27590 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
27591 | ac_cs_silent=: ;; | |
27592 | ||
27593 | # This is an error. | |
f00f02a3 | 27594 | -*) as_fn_error $? "unrecognized option: \`$1' |
cd9a469c | 27595 | Try \`$0 --help' for more information." ;; |
4ee9c684 | 27596 | |
cd9a469c | 27597 | *) as_fn_append ac_config_targets " $1" |
27598 | ac_need_defaults=false ;; | |
4ee9c684 | 27599 | |
27600 | esac | |
27601 | shift | |
27602 | done | |
27603 | ||
27604 | ac_configure_extra_args= | |
27605 | ||
27606 | if $ac_cs_silent; then | |
27607 | exec 6>/dev/null | |
27608 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
27609 | fi | |
27610 | ||
27611 | _ACEOF | |
cd9a469c | 27612 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4ee9c684 | 27613 | if \$ac_cs_recheck; then |
f00f02a3 | 27614 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
cd9a469c | 27615 | shift |
27616 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
27617 | CONFIG_SHELL='$SHELL' | |
27618 | export CONFIG_SHELL | |
27619 | exec "\$@" | |
4ee9c684 | 27620 | fi |
27621 | ||
542f9784 | 27622 | _ACEOF |
cd9a469c | 27623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27624 | exec 5>>config.log | |
27625 | { | |
27626 | echo | |
27627 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
27628 | ## Running $as_me. ## | |
27629 | _ASBOX | |
27630 | $as_echo "$ac_log" | |
27631 | } >&5 | |
542f9784 | 27632 | |
cd9a469c | 27633 | _ACEOF |
27634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
542f9784 | 27635 | # |
cd9a469c | 27636 | # INIT-COMMANDS |
542f9784 | 27637 | # |
27638 | ||
542f9784 | 27639 | srcdir="$srcdir" |
27640 | host="$host" | |
27641 | target="$target" | |
27642 | with_multisubdir="$with_multisubdir" | |
27643 | with_multisrctop="$with_multisrctop" | |
27644 | with_target_subdir="$with_target_subdir" | |
27645 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
27646 | multi_basedir="$multi_basedir" | |
27647 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
27648 | CC="$CC" | |
eaae6999 | 27649 | CXX="$CXX" |
27650 | GFORTRAN="$GFORTRAN" | |
f00f02a3 | 27651 | GDC="$GDC" |
542f9784 | 27652 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
27653 | ||
27654 | ||
27655 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
27656 | # if CDPATH is set. | |
27657 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
27658 | ||
27659 | sed_quote_subst='$sed_quote_subst' | |
27660 | double_quote_subst='$double_quote_subst' | |
27661 | delay_variable_subst='$delay_variable_subst' | |
18ce903b | 27662 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
27663 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
27664 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
27665 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
27666 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
27667 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
27668 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
27669 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27670 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
27671 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
27672 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
27673 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
27674 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
27675 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27676 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
27677 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
27678 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
27679 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
27680 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
27681 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
e6408286 | 27682 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
27683 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
27684 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
27685 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
27686 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
27687 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
27688 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
27689 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
27690 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
27691 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
27692 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
27693 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
27694 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
27695 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
27696 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
27697 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
27698 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
27699 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27700 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27701 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27702 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
27703 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
27704 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
27705 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
27706 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
27707 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
27708 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
27709 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
27710 | 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"`' | |
27711 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
27712 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
27713 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
27714 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
27715 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
27716 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
27717 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
27718 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
27719 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
27720 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
27721 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
27722 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
27723 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
27724 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
27725 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
27726 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27727 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
27728 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
27729 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27730 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27731 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
27732 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
27733 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
27734 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
27735 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27736 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
27737 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
27738 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
27739 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27740 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
27741 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
27742 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
27743 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
27744 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
27745 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
27746 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
27747 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27748 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
27749 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
27750 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
27751 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
27752 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
27753 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
27754 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
27755 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
27756 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
27757 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
27758 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
27759 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
27760 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
27761 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
27762 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
27763 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
27764 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
27765 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
27766 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
27767 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
27768 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
27769 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27770 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
27771 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
27772 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
27773 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
27774 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
27775 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
27776 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
27777 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
27778 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
27779 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
27780 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
27781 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
27782 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
27783 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
27784 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
27785 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
27786 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
27787 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
27788 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
27789 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27790 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27791 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27792 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
27793 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
27794 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27795 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
27796 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
27797 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
27798 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
27799 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
27800 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
27801 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27802 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27803 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
27804 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27805 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27806 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27807 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27808 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27809 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27810 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27811 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27812 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
27813 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27814 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
27815 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
27816 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
27817 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
27818 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
27819 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
27820 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
27821 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
27822 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
27823 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
27824 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
27825 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27826 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27827 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
27828 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
27829 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
27830 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
27831 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
27832 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27833 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
27834 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
27835 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
27836 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
542f9784 | 27837 | |
27838 | LTCC='$LTCC' | |
27839 | LTCFLAGS='$LTCFLAGS' | |
27840 | compiler='$compiler_DEFAULT' | |
27841 | ||
e6408286 | 27842 | # A function that is used when there is no print builtin or printf. |
27843 | func_fallback_echo () | |
27844 | { | |
27845 | eval 'cat <<_LTECHO_EOF | |
27846 | \$1 | |
27847 | _LTECHO_EOF' | |
27848 | } | |
27849 | ||
542f9784 | 27850 | # Quote evaled strings. |
18ce903b | 27851 | for var in SED \ |
542f9784 | 27852 | GREP \ |
27853 | EGREP \ | |
27854 | FGREP \ | |
18ce903b | 27855 | SHELL \ |
27856 | ECHO \ | |
542f9784 | 27857 | LD \ |
27858 | NM \ | |
27859 | LN_S \ | |
27860 | lt_SP2NL \ | |
27861 | lt_NL2SP \ | |
27862 | reload_flag \ | |
00aafda4 | 27863 | OBJDUMP \ |
542f9784 | 27864 | deplibs_check_method \ |
27865 | file_magic_cmd \ | |
27866 | AR \ | |
27867 | AR_FLAGS \ | |
27868 | STRIP \ | |
27869 | RANLIB \ | |
27870 | CC \ | |
27871 | CFLAGS \ | |
27872 | compiler \ | |
27873 | lt_cv_sys_global_symbol_pipe \ | |
27874 | lt_cv_sys_global_symbol_to_cdecl \ | |
27875 | lt_cv_sys_global_symbol_to_c_name_address \ | |
00aafda4 | 27876 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
542f9784 | 27877 | lt_prog_compiler_no_builtin_flag \ |
27878 | lt_prog_compiler_wl \ | |
27879 | lt_prog_compiler_pic \ | |
27880 | lt_prog_compiler_static \ | |
27881 | lt_cv_prog_compiler_c_o \ | |
27882 | need_locks \ | |
00aafda4 | 27883 | DSYMUTIL \ |
27884 | NMEDIT \ | |
27885 | LIPO \ | |
27886 | OTOOL \ | |
27887 | OTOOL64 \ | |
542f9784 | 27888 | shrext_cmds \ |
27889 | export_dynamic_flag_spec \ | |
27890 | whole_archive_flag_spec \ | |
27891 | compiler_needs_object \ | |
27892 | with_gnu_ld \ | |
27893 | allow_undefined_flag \ | |
27894 | no_undefined_flag \ | |
27895 | hardcode_libdir_flag_spec \ | |
27896 | hardcode_libdir_flag_spec_ld \ | |
27897 | hardcode_libdir_separator \ | |
27898 | fix_srcfile_path \ | |
27899 | exclude_expsyms \ | |
27900 | include_expsyms \ | |
27901 | file_list_spec \ | |
27902 | variables_saved_for_relink \ | |
27903 | libname_spec \ | |
27904 | library_names_spec \ | |
27905 | soname_spec \ | |
e6408286 | 27906 | install_override_mode \ |
542f9784 | 27907 | finish_eval \ |
27908 | old_striplib \ | |
27909 | striplib \ | |
00aafda4 | 27910 | compiler_lib_search_dirs \ |
542f9784 | 27911 | predep_objects \ |
27912 | postdep_objects \ | |
27913 | predeps \ | |
27914 | postdeps \ | |
27915 | compiler_lib_search_path \ | |
27916 | LD_FC \ | |
e6408286 | 27917 | reload_flag_FC \ |
542f9784 | 27918 | compiler_FC \ |
27919 | lt_prog_compiler_no_builtin_flag_FC \ | |
27920 | lt_prog_compiler_wl_FC \ | |
27921 | lt_prog_compiler_pic_FC \ | |
27922 | lt_prog_compiler_static_FC \ | |
27923 | lt_cv_prog_compiler_c_o_FC \ | |
27924 | export_dynamic_flag_spec_FC \ | |
27925 | whole_archive_flag_spec_FC \ | |
27926 | compiler_needs_object_FC \ | |
27927 | with_gnu_ld_FC \ | |
27928 | allow_undefined_flag_FC \ | |
27929 | no_undefined_flag_FC \ | |
27930 | hardcode_libdir_flag_spec_FC \ | |
27931 | hardcode_libdir_flag_spec_ld_FC \ | |
27932 | hardcode_libdir_separator_FC \ | |
27933 | fix_srcfile_path_FC \ | |
27934 | exclude_expsyms_FC \ | |
27935 | include_expsyms_FC \ | |
27936 | file_list_spec_FC \ | |
00aafda4 | 27937 | compiler_lib_search_dirs_FC \ |
542f9784 | 27938 | predep_objects_FC \ |
27939 | postdep_objects_FC \ | |
27940 | predeps_FC \ | |
27941 | postdeps_FC \ | |
27942 | compiler_lib_search_path_FC; do | |
e6408286 | 27943 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27944 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27945 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
542f9784 | 27946 | ;; |
27947 | *) | |
27948 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27949 | ;; | |
27950 | esac | |
27951 | done | |
27952 | ||
27953 | # Double-quote double-evaled strings. | |
27954 | for var in reload_cmds \ | |
27955 | old_postinstall_cmds \ | |
27956 | old_postuninstall_cmds \ | |
27957 | old_archive_cmds \ | |
27958 | extract_expsyms_cmds \ | |
27959 | old_archive_from_new_cmds \ | |
27960 | old_archive_from_expsyms_cmds \ | |
27961 | archive_cmds \ | |
27962 | archive_expsym_cmds \ | |
27963 | module_cmds \ | |
27964 | module_expsym_cmds \ | |
27965 | export_symbols_cmds \ | |
27966 | prelink_cmds \ | |
27967 | postinstall_cmds \ | |
27968 | postuninstall_cmds \ | |
27969 | finish_cmds \ | |
27970 | sys_lib_search_path_spec \ | |
27971 | sys_lib_dlsearch_path_spec \ | |
e6408286 | 27972 | reload_cmds_FC \ |
542f9784 | 27973 | old_archive_cmds_FC \ |
27974 | old_archive_from_new_cmds_FC \ | |
27975 | old_archive_from_expsyms_cmds_FC \ | |
27976 | archive_cmds_FC \ | |
27977 | archive_expsym_cmds_FC \ | |
27978 | module_cmds_FC \ | |
27979 | module_expsym_cmds_FC \ | |
27980 | export_symbols_cmds_FC \ | |
27981 | prelink_cmds_FC; do | |
e6408286 | 27982 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27983 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27984 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
542f9784 | 27985 | ;; |
27986 | *) | |
27987 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27988 | ;; | |
27989 | esac | |
27990 | done | |
27991 | ||
542f9784 | 27992 | ac_aux_dir='$ac_aux_dir' |
27993 | xsi_shell='$xsi_shell' | |
27994 | lt_shell_append='$lt_shell_append' | |
27995 | ||
27996 | # See if we are running on zsh, and set the options which allow our | |
27997 | # commands through without removal of \ escapes INIT. | |
27998 | if test -n "\${ZSH_VERSION+set}" ; then | |
27999 | setopt NO_GLOB_SUBST | |
28000 | fi | |
28001 | ||
28002 | ||
28003 | PACKAGE='$PACKAGE' | |
28004 | VERSION='$VERSION' | |
28005 | TIMESTAMP='$TIMESTAMP' | |
28006 | RM='$RM' | |
28007 | ofile='$ofile' | |
28008 | ||
28009 | ||
4ee9c684 | 28010 | |
4ee9c684 | 28011 | |
a106dabe | 28012 | |
4ee9c684 | 28013 | |
2069752c | 28014 | GCC="$GCC" |
28015 | CC="$CC" | |
28016 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
28017 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
28018 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
28019 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
28020 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
28021 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
28022 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
28023 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
28024 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
28025 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
28026 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
56c15991 | 28027 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
28028 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
2069752c | 28029 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
56c15991 | 28030 | |
28031 | ||
4ee9c684 | 28032 | _ACEOF |
28033 | ||
cd9a469c | 28034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ff4425cf | 28035 | |
cd9a469c | 28036 | # Handling of arguments. |
4ee9c684 | 28037 | for ac_config_target in $ac_config_targets |
28038 | do | |
cd9a469c | 28039 | case $ac_config_target in |
28040 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
28041 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
28042 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
28043 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
28044 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
28045 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
87969c8c | 28046 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
cd9a469c | 28047 | |
f00f02a3 | 28048 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4ee9c684 | 28049 | esac |
28050 | done | |
28051 | ||
cd9a469c | 28052 | |
4ee9c684 | 28053 | # If the user did not use the arguments to specify the items to instantiate, |
28054 | # then the envvar interface is used. Set only those that are not. | |
28055 | # We use the long form for the default assignment because of an extremely | |
28056 | # bizarre bug on SunOS 4.1.3. | |
28057 | if $ac_need_defaults; then | |
28058 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
28059 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
28060 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
28061 | fi | |
28062 | ||
28063 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 28064 | # simply because there is no reason against having it here, and in addition, |
4ee9c684 | 28065 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 28066 | # Hook for its removal unless debugging. |
28067 | # Note that there is a small window in which the directory will not be cleaned: | |
28068 | # after its creation but before its name has been assigned to `$tmp'. | |
4ee9c684 | 28069 | $debug || |
28070 | { | |
f00f02a3 | 28071 | tmp= ac_tmp= |
cd9a469c | 28072 | trap 'exit_status=$? |
f00f02a3 | 28073 | : "${ac_tmp:=$tmp}" |
28074 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
cd9a469c | 28075 | ' 0 |
28076 | trap 'as_fn_exit 1' 1 2 13 15 | |
4ee9c684 | 28077 | } |
4ee9c684 | 28078 | # Create a (secure) tmp directory for tmp files. |
28079 | ||
28080 | { | |
cd9a469c | 28081 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f00f02a3 | 28082 | test -d "$tmp" |
4ee9c684 | 28083 | } || |
28084 | { | |
cd9a469c | 28085 | tmp=./conf$$-$RANDOM |
28086 | (umask 077 && mkdir "$tmp") | |
f00f02a3 | 28087 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
28088 | ac_tmp=$tmp | |
cd9a469c | 28089 | |
28090 | # Set up the scripts for CONFIG_FILES section. | |
28091 | # No need to generate them if there are no CONFIG_FILES. | |
28092 | # This happens for instance with `./config.status config.h'. | |
28093 | if test -n "$CONFIG_FILES"; then | |
28094 | ||
28095 | ||
28096 | ac_cr=`echo X | tr X '\015'` | |
28097 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
28098 | # But we know of no other shell where ac_cr would be empty at this | |
28099 | # point, so we can use a bashism as a fallback. | |
28100 | if test "x$ac_cr" = x; then | |
28101 | eval ac_cr=\$\'\\r\' | |
28102 | fi | |
28103 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
28104 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
f00f02a3 | 28105 | ac_cs_awk_cr='\\r' |
cd9a469c | 28106 | else |
28107 | ac_cs_awk_cr=$ac_cr | |
28108 | fi | |
28109 | ||
f00f02a3 | 28110 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
cd9a469c | 28111 | _ACEOF |
28112 | ||
28113 | ||
4ee9c684 | 28114 | { |
cd9a469c | 28115 | echo "cat >conf$$subs.awk <<_ACEOF" && |
28116 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
28117 | echo "_ACEOF" | |
28118 | } >conf$$subs.sh || | |
f00f02a3 | 28119 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
28120 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
cd9a469c | 28121 | ac_delim='%!_!# ' |
28122 | for ac_last_try in false false false false false :; do | |
28123 | . ./conf$$subs.sh || | |
f00f02a3 | 28124 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 28125 | |
28126 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
28127 | if test $ac_delim_n = $ac_delim_num; then | |
28128 | break | |
28129 | elif $ac_last_try; then | |
f00f02a3 | 28130 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 28131 | else |
28132 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
28133 | fi | |
28134 | done | |
28135 | rm -f conf$$subs.sh | |
28136 | ||
28137 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f00f02a3 | 28138 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
cd9a469c | 28139 | _ACEOF |
28140 | sed -n ' | |
28141 | h | |
28142 | s/^/S["/; s/!.*/"]=/ | |
28143 | p | |
28144 | g | |
28145 | s/^[^!]*!// | |
28146 | :repl | |
28147 | t repl | |
28148 | s/'"$ac_delim"'$// | |
28149 | t delim | |
28150 | :nl | |
28151 | h | |
f00f02a3 | 28152 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 28153 | t more1 |
28154 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
28155 | p | |
28156 | n | |
28157 | b repl | |
28158 | :more1 | |
28159 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28160 | p | |
28161 | g | |
28162 | s/.\{148\}// | |
28163 | t nl | |
28164 | :delim | |
28165 | h | |
f00f02a3 | 28166 | s/\(.\{148\}\)..*/\1/ |
cd9a469c | 28167 | t more2 |
28168 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
28169 | p | |
28170 | b | |
28171 | :more2 | |
28172 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
28173 | p | |
28174 | g | |
28175 | s/.\{148\}// | |
28176 | t delim | |
28177 | ' <conf$$subs.awk | sed ' | |
28178 | /^[^""]/{ | |
28179 | N | |
28180 | s/\n// | |
28181 | } | |
28182 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
28183 | rm -f conf$$subs.awk | |
28184 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28185 | _ACAWK | |
f00f02a3 | 28186 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
cd9a469c | 28187 | for (key in S) S_is_set[key] = 1 |
28188 | FS = "\a" | |
28189 | ||
28190 | } | |
28191 | { | |
28192 | line = $ 0 | |
28193 | nfields = split(line, field, "@") | |
28194 | substed = 0 | |
28195 | len = length(field[1]) | |
28196 | for (i = 2; i < nfields; i++) { | |
28197 | key = field[i] | |
28198 | keylen = length(key) | |
28199 | if (S_is_set[key]) { | |
28200 | value = S[key] | |
28201 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
28202 | len += length(value) + length(field[++i]) | |
28203 | substed = 1 | |
28204 | } else | |
28205 | len += 1 + keylen | |
28206 | } | |
28207 | ||
28208 | print line | |
4ee9c684 | 28209 | } |
28210 | ||
cd9a469c | 28211 | _ACAWK |
28212 | _ACEOF | |
28213 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
28214 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
28215 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
28216 | else | |
28217 | cat | |
f00f02a3 | 28218 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
28219 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
82eaf560 | 28220 | _ACEOF |
28221 | ||
f00f02a3 | 28222 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
28223 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
cd9a469c | 28224 | # trailing colons and then remove the whole line if VPATH becomes empty |
28225 | # (actually we leave an empty line to preserve line numbers). | |
28226 | if test "x$srcdir" = x.; then | |
f00f02a3 | 28227 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
28228 | h | |
28229 | s/// | |
28230 | s/^/:/ | |
28231 | s/[ ]*$/:/ | |
28232 | s/:\$(srcdir):/:/g | |
28233 | s/:\${srcdir}:/:/g | |
28234 | s/:@srcdir@:/:/g | |
28235 | s/^:*// | |
cd9a469c | 28236 | s/:*$// |
f00f02a3 | 28237 | x |
28238 | s/\(=[ ]*\).*/\1/ | |
28239 | G | |
28240 | s/\n// | |
cd9a469c | 28241 | s/^[^=]*=[ ]*$// |
28242 | }' | |
28243 | fi | |
82eaf560 | 28244 | |
cd9a469c | 28245 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28246 | fi # test -n "$CONFIG_FILES" | |
4ee9c684 | 28247 | |
cd9a469c | 28248 | # Set up the scripts for CONFIG_HEADERS section. |
28249 | # No need to generate them if there are no CONFIG_HEADERS. | |
28250 | # This happens for instance with `./config.status Makefile'. | |
28251 | if test -n "$CONFIG_HEADERS"; then | |
f00f02a3 | 28252 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
cd9a469c | 28253 | BEGIN { |
28254 | _ACEOF | |
28255 | ||
28256 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
28257 | # here-document in config.status, that substitutes the proper values into | |
28258 | # config.h.in to produce config.h. | |
28259 | ||
28260 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
28261 | # handling of long lines. | |
28262 | ac_delim='%!_!# ' | |
28263 | for ac_last_try in false false :; do | |
f00f02a3 | 28264 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
28265 | if test -z "$ac_tt"; then | |
cd9a469c | 28266 | break |
28267 | elif $ac_last_try; then | |
f00f02a3 | 28268 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
cd9a469c | 28269 | else |
28270 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ff4425cf | 28271 | fi |
cd9a469c | 28272 | done |
ce1a737c | 28273 | |
cd9a469c | 28274 | # For the awk script, D is an array of macro values keyed by name, |
28275 | # likewise P contains macro parameters if any. Preserve backslash | |
28276 | # newline sequences. | |
28277 | ||
28278 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
28279 | sed -n ' | |
28280 | s/.\{148\}/&'"$ac_delim"'/g | |
28281 | t rset | |
28282 | :rset | |
28283 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
28284 | t def | |
28285 | d | |
28286 | :def | |
28287 | s/\\$// | |
28288 | t bsnl | |
28289 | s/["\\]/\\&/g | |
28290 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28291 | D["\1"]=" \3"/p | |
28292 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
28293 | d | |
28294 | :bsnl | |
28295 | s/["\\]/\\&/g | |
28296 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
28297 | D["\1"]=" \3\\\\\\n"\\/p | |
28298 | t cont | |
28299 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
28300 | t cont | |
28301 | d | |
28302 | :cont | |
28303 | n | |
28304 | s/.\{148\}/&'"$ac_delim"'/g | |
28305 | t clear | |
28306 | :clear | |
28307 | s/\\$// | |
28308 | t bsnlc | |
28309 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
28310 | d | |
28311 | :bsnlc | |
28312 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
28313 | b cont | |
28314 | ' <confdefs.h | sed ' | |
28315 | s/'"$ac_delim"'/"\\\ | |
28316 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
28317 | ||
28318 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28319 | for (key in D) D_is_set[key] = 1 | |
28320 | FS = "\a" | |
28321 | } | |
28322 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
28323 | line = \$ 0 | |
28324 | split(line, arg, " ") | |
28325 | if (arg[1] == "#") { | |
28326 | defundef = arg[2] | |
28327 | mac1 = arg[3] | |
28328 | } else { | |
28329 | defundef = substr(arg[1], 2) | |
28330 | mac1 = arg[2] | |
28331 | } | |
28332 | split(mac1, mac2, "(") #) | |
28333 | macro = mac2[1] | |
28334 | prefix = substr(line, 1, index(line, defundef) - 1) | |
28335 | if (D_is_set[macro]) { | |
28336 | # Preserve the white space surrounding the "#". | |
28337 | print prefix "define", macro P[macro] D[macro] | |
28338 | next | |
28339 | } else { | |
28340 | # Replace #undef with comments. This is necessary, for example, | |
28341 | # in the case of _POSIX_SOURCE, which is predefined and required | |
28342 | # on some systems where configure will not decide to define it. | |
28343 | if (defundef == "undef") { | |
28344 | print "/*", prefix defundef, macro, "*/" | |
28345 | next | |
28346 | } | |
28347 | } | |
28348 | } | |
28349 | { print } | |
28350 | _ACAWK | |
4ee9c684 | 28351 | _ACEOF |
cd9a469c | 28352 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
f00f02a3 | 28353 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
cd9a469c | 28354 | fi # test -n "$CONFIG_HEADERS" |
28355 | ||
28356 | ||
28357 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
28358 | shift | |
28359 | for ac_tag | |
28360 | do | |
28361 | case $ac_tag in | |
28362 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
28363 | esac | |
28364 | case $ac_mode$ac_tag in | |
28365 | :[FHL]*:*);; | |
f00f02a3 | 28366 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
cd9a469c | 28367 | :[FH]-) ac_tag=-:-;; |
28368 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
28369 | esac | |
28370 | ac_save_IFS=$IFS | |
28371 | IFS=: | |
28372 | set x $ac_tag | |
28373 | IFS=$ac_save_IFS | |
28374 | shift | |
28375 | ac_file=$1 | |
28376 | shift | |
28377 | ||
28378 | case $ac_mode in | |
28379 | :L) ac_source=$1;; | |
28380 | :[FH]) | |
28381 | ac_file_inputs= | |
28382 | for ac_f | |
28383 | do | |
28384 | case $ac_f in | |
f00f02a3 | 28385 | -) ac_f="$ac_tmp/stdin";; |
cd9a469c | 28386 | *) # Look for the file first in the build tree, then in the source tree |
28387 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
28388 | # because $ac_f cannot contain `:'. | |
28389 | test -f "$ac_f" || | |
28390 | case $ac_f in | |
28391 | [\\/$]*) false;; | |
28392 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
28393 | esac || | |
f00f02a3 | 28394 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
cd9a469c | 28395 | esac |
28396 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
28397 | as_fn_append ac_file_inputs " '$ac_f'" | |
28398 | done | |
28399 | ||
28400 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
28401 | # use $as_me), people would be surprised to read: | |
28402 | # /* config.h. Generated by config.status. */ | |
28403 | configure_input='Generated from '` | |
28404 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
28405 | `' by configure.' | |
28406 | if test x"$ac_file" != x-; then | |
28407 | configure_input="$ac_file. $configure_input" | |
28408 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
28409 | $as_echo "$as_me: creating $ac_file" >&6;} | |
28410 | fi | |
28411 | # Neutralize special characters interpreted by sed in replacement strings. | |
28412 | case $configure_input in #( | |
28413 | *\&* | *\|* | *\\* ) | |
28414 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
28415 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
28416 | *) ac_sed_conf_input=$configure_input;; | |
28417 | esac | |
28418 | ||
28419 | case $ac_tag in | |
f00f02a3 | 28420 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
28421 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
cd9a469c | 28422 | esac |
28423 | ;; | |
4ee9c684 | 28424 | esac |
28425 | ||
cd9a469c | 28426 | ac_dir=`$as_dirname -- "$ac_file" || |
4ee9c684 | 28427 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28428 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
28429 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 28430 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
28431 | $as_echo X"$ac_file" | | |
28432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28433 | s//\1/ | |
28434 | q | |
28435 | } | |
28436 | /^X\(\/\/\)[^/].*/{ | |
28437 | s//\1/ | |
28438 | q | |
28439 | } | |
28440 | /^X\(\/\/\)$/{ | |
28441 | s//\1/ | |
28442 | q | |
28443 | } | |
28444 | /^X\(\/\).*/{ | |
28445 | s//\1/ | |
28446 | q | |
28447 | } | |
28448 | s/.*/./; q'` | |
28449 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4ee9c684 | 28450 | ac_builddir=. |
28451 | ||
cd9a469c | 28452 | case "$ac_dir" in |
28453 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28454 | *) | |
28455 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
28456 | # A ".." for each directory in $ac_dir_suffix. | |
28457 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
28458 | case $ac_top_builddir_sub in | |
28459 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28460 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
28461 | esac ;; | |
28462 | esac | |
28463 | ac_abs_top_builddir=$ac_pwd | |
28464 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
28465 | # for backward compatibility: | |
28466 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 28467 | |
28468 | case $srcdir in | |
cd9a469c | 28469 | .) # We are building in place. |
4ee9c684 | 28470 | ac_srcdir=. |
cd9a469c | 28471 | ac_top_srcdir=$ac_top_builddir_sub |
28472 | ac_abs_top_srcdir=$ac_pwd ;; | |
28473 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 28474 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 28475 | ac_top_srcdir=$srcdir |
28476 | ac_abs_top_srcdir=$srcdir ;; | |
28477 | *) # Relative name. | |
28478 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
28479 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
28480 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4ee9c684 | 28481 | esac |
cd9a469c | 28482 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
4ee9c684 | 28483 | |
4ee9c684 | 28484 | |
cd9a469c | 28485 | case $ac_mode in |
28486 | :F) | |
28487 | # | |
28488 | # CONFIG_FILE | |
28489 | # | |
4ee9c684 | 28490 | |
28491 | case $INSTALL in | |
28492 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 28493 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
28494 | esac | |
28495 | ac_MKDIR_P=$MKDIR_P | |
28496 | case $MKDIR_P in | |
28497 | [\\/$]* | ?:[\\/]* ) ;; | |
28498 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
4ee9c684 | 28499 | esac |
cd9a469c | 28500 | _ACEOF |
4ee9c684 | 28501 | |
cd9a469c | 28502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
28503 | # If the template does not know about datarootdir, expand it. | |
28504 | # FIXME: This hack should be removed a few years after 2.60. | |
28505 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
28506 | ac_sed_dataroot=' | |
28507 | /datarootdir/ { | |
28508 | p | |
28509 | q | |
28510 | } | |
28511 | /@datadir@/p | |
28512 | /@docdir@/p | |
28513 | /@infodir@/p | |
28514 | /@localedir@/p | |
28515 | /@mandir@/p' | |
28516 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
28517 | *datarootdir*) ac_datarootdir_seen=yes;; | |
28518 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
28519 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
28520 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
28521 | _ACEOF | |
28522 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28523 | ac_datarootdir_hack=' | |
28524 | s&@datadir@&$datadir&g | |
28525 | s&@docdir@&$docdir&g | |
28526 | s&@infodir@&$infodir&g | |
28527 | s&@localedir@&$localedir&g | |
28528 | s&@mandir@&$mandir&g | |
28529 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
28530 | esac | |
a106dabe | 28531 | _ACEOF |
cd9a469c | 28532 | |
28533 | # Neutralize VPATH when `$srcdir' = `.'. | |
28534 | # Shell code in configure.ac might set extrasub. | |
28535 | # FIXME: do we really want to maintain this feature? | |
28536 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
28537 | ac_sed_extra="$ac_vpsub | |
4ee9c684 | 28538 | $extrasub |
28539 | _ACEOF | |
cd9a469c | 28540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 28541 | :t |
28542 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 28543 | s|@configure_input@|$ac_sed_conf_input|;t t |
28544 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
28545 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
28546 | s&@srcdir@&$ac_srcdir&;t t | |
28547 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
28548 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
28549 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
28550 | s&@builddir@&$ac_builddir&;t t | |
28551 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
28552 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
28553 | s&@INSTALL@&$ac_INSTALL&;t t | |
28554 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
28555 | $ac_datarootdir_hack | |
28556 | " | |
f00f02a3 | 28557 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
28558 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
cd9a469c | 28559 | |
28560 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f00f02a3 | 28561 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
28562 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
28563 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
cd9a469c | 28564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 28565 | which seems to be undefined. Please make sure it is defined" >&5 |
cd9a469c | 28566 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f00f02a3 | 28567 | which seems to be undefined. Please make sure it is defined" >&2;} |
cd9a469c | 28568 | |
f00f02a3 | 28569 | rm -f "$ac_tmp/stdin" |
4ee9c684 | 28570 | case $ac_file in |
f00f02a3 | 28571 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
28572 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
cd9a469c | 28573 | esac \ |
f00f02a3 | 28574 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
cd9a469c | 28575 | ;; |
28576 | :H) | |
28577 | # | |
28578 | # CONFIG_HEADER | |
28579 | # | |
4ee9c684 | 28580 | if test x"$ac_file" != x-; then |
cd9a469c | 28581 | { |
28582 | $as_echo "/* $configure_input */" \ | |
f00f02a3 | 28583 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
28584 | } >"$ac_tmp/config.h" \ | |
28585 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
28586 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
cd9a469c | 28587 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
28588 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4ee9c684 | 28589 | else |
cd9a469c | 28590 | rm -f "$ac_file" |
f00f02a3 | 28591 | mv "$ac_tmp/config.h" "$ac_file" \ |
28592 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
4ee9c684 | 28593 | fi |
28594 | else | |
cd9a469c | 28595 | $as_echo "/* $configure_input */" \ |
f00f02a3 | 28596 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
28597 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
4ee9c684 | 28598 | fi |
cd9a469c | 28599 | # Compute "$ac_file"'s index in $config_headers. |
28600 | _am_arg="$ac_file" | |
4ee9c684 | 28601 | _am_stamp_count=1 |
28602 | for _am_header in $config_headers :; do | |
28603 | case $_am_header in | |
cd9a469c | 28604 | $_am_arg | $_am_arg:* ) |
4ee9c684 | 28605 | break ;; |
28606 | * ) | |
28607 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
28608 | esac | |
28609 | done | |
cd9a469c | 28610 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
28611 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
28612 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
28613 | X"$_am_arg" : 'X\(//\)$' \| \ | |
28614 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
28615 | $as_echo X"$_am_arg" | | |
28616 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28617 | s//\1/ | |
28618 | q | |
28619 | } | |
28620 | /^X\(\/\/\)[^/].*/{ | |
28621 | s//\1/ | |
28622 | q | |
28623 | } | |
28624 | /^X\(\/\/\)$/{ | |
28625 | s//\1/ | |
28626 | q | |
28627 | } | |
28628 | /^X\(\/\).*/{ | |
28629 | s//\1/ | |
28630 | q | |
28631 | } | |
28632 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
28633 | ;; | |
82eaf560 | 28634 | |
cd9a469c | 28635 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
28636 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
28637 | ;; | |
28638 | esac | |
4ee9c684 | 28639 | |
28640 | ||
cd9a469c | 28641 | case $ac_file$ac_mode in |
28642 | "default-1":C) | |
90973b19 | 28643 | # Only add multilib support code if we just rebuilt the top-level |
28644 | # Makefile. | |
28645 | case " $CONFIG_FILES " in | |
28646 | *" Makefile "*) | |
28647 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
28648 | ;; | |
28649 | esac ;; | |
cd9a469c | 28650 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
f00f02a3 | 28651 | # Older Autoconf quotes --file arguments for eval, but not when files |
cd9a469c | 28652 | # are listed without --file. Let's play safe and only enable the eval |
28653 | # if we detect the quoting. | |
28654 | case $CONFIG_FILES in | |
28655 | *\'*) eval set x "$CONFIG_FILES" ;; | |
28656 | *) set x $CONFIG_FILES ;; | |
28657 | esac | |
28658 | shift | |
28659 | for mf | |
28660 | do | |
28661 | # Strip MF so we end up with the name of the file. | |
28662 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
28663 | # Check whether this is an Automake generated Makefile or not. | |
f00f02a3 | 28664 | # We used to match only the files named 'Makefile.in', but |
cd9a469c | 28665 | # some people rename them; so instead we look at the file content. |
28666 | # Grep'ing the first line is not enough: some people post-process | |
28667 | # each Makefile.in and add a new line on top of each file to say so. | |
28668 | # Grep'ing the whole file is not good either: AIX grep has a line | |
28669 | # limit of 2048, but all sed's we know have understand at least 4000. | |
28670 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
28671 | dirpart=`$as_dirname -- "$mf" || | |
2fd61f51 | 28672 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28673 | X"$mf" : 'X\(//\)[^/]' \| \ | |
28674 | X"$mf" : 'X\(//\)$' \| \ | |
cd9a469c | 28675 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
28676 | $as_echo X"$mf" | | |
28677 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28678 | s//\1/ | |
28679 | q | |
28680 | } | |
28681 | /^X\(\/\/\)[^/].*/{ | |
28682 | s//\1/ | |
28683 | q | |
28684 | } | |
28685 | /^X\(\/\/\)$/{ | |
28686 | s//\1/ | |
28687 | q | |
28688 | } | |
28689 | /^X\(\/\).*/{ | |
28690 | s//\1/ | |
28691 | q | |
28692 | } | |
28693 | s/.*/./; q'` | |
28694 | else | |
28695 | continue | |
28696 | fi | |
28697 | # Extract the definition of DEPDIR, am__include, and am__quote | |
f00f02a3 | 28698 | # from the Makefile without running 'make'. |
cd9a469c | 28699 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
28700 | test -z "$DEPDIR" && continue | |
28701 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
f00f02a3 | 28702 | test -z "$am__include" && continue |
cd9a469c | 28703 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
cd9a469c | 28704 | # Find all dependency output files, they are included files with |
28705 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
28706 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
28707 | # expansion. | |
28708 | for file in `sed -n " | |
28709 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
f00f02a3 | 28710 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
cd9a469c | 28711 | # Make sure the directory exists. |
28712 | test -f "$dirpart/$file" && continue | |
28713 | fdir=`$as_dirname -- "$file" || | |
2fd61f51 | 28714 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
28715 | X"$file" : 'X\(//\)[^/]' \| \ | |
28716 | X"$file" : 'X\(//\)$' \| \ | |
cd9a469c | 28717 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
28718 | $as_echo X"$file" | | |
28719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
28720 | s//\1/ | |
28721 | q | |
28722 | } | |
28723 | /^X\(\/\/\)[^/].*/{ | |
28724 | s//\1/ | |
28725 | q | |
28726 | } | |
28727 | /^X\(\/\/\)$/{ | |
28728 | s//\1/ | |
28729 | q | |
28730 | } | |
28731 | /^X\(\/\).*/{ | |
28732 | s//\1/ | |
28733 | q | |
28734 | } | |
28735 | s/.*/./; q'` | |
28736 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
28737 | # echo "creating $dirpart/$file" | |
28738 | echo '# dummy' > "$dirpart/$file" | |
2fd61f51 | 28739 | done |
2fd61f51 | 28740 | done |
cd9a469c | 28741 | } |
542f9784 | 28742 | ;; |
cd9a469c | 28743 | "libtool":C) |
542f9784 | 28744 | |
28745 | # See if we are running on zsh, and set the options which allow our | |
28746 | # commands through without removal of \ escapes. | |
28747 | if test -n "${ZSH_VERSION+set}" ; then | |
28748 | setopt NO_GLOB_SUBST | |
28749 | fi | |
28750 | ||
28751 | cfgfile="${ofile}T" | |
28752 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
28753 | $RM "$cfgfile" | |
28754 | ||
28755 | cat <<_LT_EOF >> "$cfgfile" | |
28756 | #! $SHELL | |
28757 | ||
28758 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
00aafda4 | 28759 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
542f9784 | 28760 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
28761 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
28762 | # | |
00aafda4 | 28763 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
e6408286 | 28764 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
00aafda4 | 28765 | # Written by Gordon Matzigkeit, 1996 |
542f9784 | 28766 | # |
00aafda4 | 28767 | # This file is part of GNU Libtool. |
542f9784 | 28768 | # |
00aafda4 | 28769 | # GNU Libtool is free software; you can redistribute it and/or |
28770 | # modify it under the terms of the GNU General Public License as | |
28771 | # published by the Free Software Foundation; either version 2 of | |
28772 | # the License, or (at your option) any later version. | |
542f9784 | 28773 | # |
00aafda4 | 28774 | # As a special exception to the GNU General Public License, |
28775 | # if you distribute this file as part of a program or library that | |
28776 | # is built using GNU Libtool, you may include this file under the | |
28777 | # same distribution terms that you use for the rest of that program. | |
542f9784 | 28778 | # |
00aafda4 | 28779 | # GNU Libtool is distributed in the hope that it will be useful, |
28780 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
28781 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
28782 | # GNU General Public License for more details. | |
542f9784 | 28783 | # |
00aafda4 | 28784 | # You should have received a copy of the GNU General Public License |
28785 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
28786 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
28787 | # obtained by writing to the Free Software Foundation, Inc., | |
28788 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
542f9784 | 28789 | |
28790 | ||
28791 | # The names of the tagged configurations supported by this script. | |
28792 | available_tags="FC " | |
28793 | ||
28794 | # ### BEGIN LIBTOOL CONFIG | |
28795 | ||
18ce903b | 28796 | # A sed program that does not truncate output. |
28797 | SED=$lt_SED | |
28798 | ||
28799 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
28800 | Xsed="\$SED -e 1s/^X//" | |
28801 | ||
28802 | # A grep program that handles long lines. | |
28803 | GREP=$lt_GREP | |
28804 | ||
28805 | # An ERE matcher. | |
28806 | EGREP=$lt_EGREP | |
28807 | ||
28808 | # A literal string matcher. | |
28809 | FGREP=$lt_FGREP | |
28810 | ||
28811 | # Shell to use when invoking shell scripts. | |
28812 | SHELL=$lt_SHELL | |
28813 | ||
28814 | # An echo program that protects backslashes. | |
28815 | ECHO=$lt_ECHO | |
28816 | ||
542f9784 | 28817 | # Which release of libtool.m4 was used? |
28818 | macro_version=$macro_version | |
28819 | macro_revision=$macro_revision | |
28820 | ||
28821 | # Whether or not to build shared libraries. | |
28822 | build_libtool_libs=$enable_shared | |
28823 | ||
28824 | # Whether or not to build static libraries. | |
28825 | build_old_libs=$enable_static | |
28826 | ||
28827 | # What type of objects to build. | |
28828 | pic_mode=$pic_mode | |
28829 | ||
28830 | # Whether or not to optimize for fast installation. | |
28831 | fast_install=$enable_fast_install | |
28832 | ||
28833 | # The host system. | |
28834 | host_alias=$host_alias | |
28835 | host=$host | |
28836 | host_os=$host_os | |
28837 | ||
28838 | # The build system. | |
28839 | build_alias=$build_alias | |
28840 | build=$build | |
28841 | build_os=$build_os | |
28842 | ||
542f9784 | 28843 | # A BSD- or MS-compatible name lister. |
28844 | NM=$lt_NM | |
28845 | ||
28846 | # Whether we need soft or hard links. | |
28847 | LN_S=$lt_LN_S | |
28848 | ||
28849 | # What is the maximum length of a command? | |
28850 | max_cmd_len=$max_cmd_len | |
28851 | ||
28852 | # Object file suffix (normally "o"). | |
28853 | objext=$ac_objext | |
28854 | ||
28855 | # Executable file suffix (normally ""). | |
28856 | exeext=$exeext | |
28857 | ||
28858 | # whether the shell understands "unset". | |
28859 | lt_unset=$lt_unset | |
28860 | ||
28861 | # turn spaces into newlines. | |
28862 | SP2NL=$lt_lt_SP2NL | |
28863 | ||
28864 | # turn newlines into spaces. | |
28865 | NL2SP=$lt_lt_NL2SP | |
28866 | ||
00aafda4 | 28867 | # An object symbol dumper. |
28868 | OBJDUMP=$lt_OBJDUMP | |
28869 | ||
542f9784 | 28870 | # Method to check whether dependent libraries are shared objects. |
28871 | deplibs_check_method=$lt_deplibs_check_method | |
28872 | ||
28873 | # Command to use when deplibs_check_method == "file_magic". | |
28874 | file_magic_cmd=$lt_file_magic_cmd | |
28875 | ||
28876 | # The archiver. | |
28877 | AR=$lt_AR | |
28878 | AR_FLAGS=$lt_AR_FLAGS | |
28879 | ||
28880 | # A symbol stripping program. | |
28881 | STRIP=$lt_STRIP | |
28882 | ||
28883 | # Commands used to install an old-style archive. | |
28884 | RANLIB=$lt_RANLIB | |
28885 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
28886 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
28887 | ||
e6408286 | 28888 | # Whether to use a lock for old archive extraction. |
28889 | lock_old_archive_extraction=$lock_old_archive_extraction | |
28890 | ||
542f9784 | 28891 | # A C compiler. |
28892 | LTCC=$lt_CC | |
28893 | ||
28894 | # LTCC compiler flags. | |
28895 | LTCFLAGS=$lt_CFLAGS | |
28896 | ||
28897 | # Take the output of nm and produce a listing of raw symbols and C names. | |
28898 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
28899 | ||
28900 | # Transform the output of nm in a proper C declaration. | |
28901 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
28902 | ||
28903 | # Transform the output of nm in a C name address pair. | |
28904 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
28905 | ||
00aafda4 | 28906 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
28907 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
28908 | ||
542f9784 | 28909 | # The name of the directory that contains temporary libtool files. |
28910 | objdir=$objdir | |
28911 | ||
542f9784 | 28912 | # Used to examine libraries when file_magic_cmd begins with "file". |
28913 | MAGIC_CMD=$MAGIC_CMD | |
28914 | ||
28915 | # Must we lock files when doing compilation? | |
28916 | need_locks=$lt_need_locks | |
28917 | ||
00aafda4 | 28918 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
28919 | DSYMUTIL=$lt_DSYMUTIL | |
28920 | ||
28921 | # Tool to change global to local symbols on Mac OS X. | |
28922 | NMEDIT=$lt_NMEDIT | |
28923 | ||
28924 | # Tool to manipulate fat objects and archives on Mac OS X. | |
28925 | LIPO=$lt_LIPO | |
28926 | ||
28927 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
28928 | OTOOL=$lt_OTOOL | |
28929 | ||
28930 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
28931 | OTOOL64=$lt_OTOOL64 | |
28932 | ||
542f9784 | 28933 | # Old archive suffix (normally "a"). |
28934 | libext=$libext | |
28935 | ||
28936 | # Shared library suffix (normally ".so"). | |
28937 | shrext_cmds=$lt_shrext_cmds | |
28938 | ||
28939 | # The commands to extract the exported symbol list from a shared archive. | |
28940 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
28941 | ||
28942 | # Variables whose values should be saved in libtool wrapper scripts and | |
28943 | # restored at link time. | |
28944 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
28945 | ||
28946 | # Do we need the "lib" prefix for modules? | |
28947 | need_lib_prefix=$need_lib_prefix | |
28948 | ||
28949 | # Do we need a version for libraries? | |
28950 | need_version=$need_version | |
28951 | ||
28952 | # Library versioning type. | |
28953 | version_type=$version_type | |
28954 | ||
28955 | # Shared library runtime path variable. | |
28956 | runpath_var=$runpath_var | |
28957 | ||
28958 | # Shared library path variable. | |
28959 | shlibpath_var=$shlibpath_var | |
28960 | ||
28961 | # Is shlibpath searched before the hard-coded library search path? | |
28962 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
28963 | ||
28964 | # Format of library name prefix. | |
28965 | libname_spec=$lt_libname_spec | |
28966 | ||
28967 | # List of archive names. First name is the real one, the rest are links. | |
28968 | # The last name is the one that the linker finds with -lNAME | |
28969 | library_names_spec=$lt_library_names_spec | |
28970 | ||
28971 | # The coded name of the library, if different from the real name. | |
28972 | soname_spec=$lt_soname_spec | |
28973 | ||
e6408286 | 28974 | # Permission mode override for installation of shared libraries. |
28975 | install_override_mode=$lt_install_override_mode | |
28976 | ||
542f9784 | 28977 | # Command to use after installation of a shared archive. |
28978 | postinstall_cmds=$lt_postinstall_cmds | |
28979 | ||
28980 | # Command to use after uninstallation of a shared archive. | |
28981 | postuninstall_cmds=$lt_postuninstall_cmds | |
28982 | ||
28983 | # Commands used to finish a libtool library installation in a directory. | |
28984 | finish_cmds=$lt_finish_cmds | |
28985 | ||
28986 | # As "finish_cmds", except a single script fragment to be evaled but | |
28987 | # not shown. | |
28988 | finish_eval=$lt_finish_eval | |
28989 | ||
28990 | # Whether we should hardcode library paths into libraries. | |
28991 | hardcode_into_libs=$hardcode_into_libs | |
28992 | ||
28993 | # Compile-time system search path for libraries. | |
28994 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
28995 | ||
28996 | # Run-time system search path for libraries. | |
28997 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
28998 | ||
28999 | # Whether dlopen is supported. | |
29000 | dlopen_support=$enable_dlopen | |
29001 | ||
29002 | # Whether dlopen of programs is supported. | |
29003 | dlopen_self=$enable_dlopen_self | |
29004 | ||
29005 | # Whether dlopen of statically linked programs is supported. | |
29006 | dlopen_self_static=$enable_dlopen_self_static | |
29007 | ||
29008 | # Commands to strip libraries. | |
29009 | old_striplib=$lt_old_striplib | |
29010 | striplib=$lt_striplib | |
29011 | ||
29012 | ||
29013 | # The linker used to build libraries. | |
29014 | LD=$lt_LD | |
29015 | ||
e6408286 | 29016 | # How to create reloadable object files. |
29017 | reload_flag=$lt_reload_flag | |
29018 | reload_cmds=$lt_reload_cmds | |
29019 | ||
542f9784 | 29020 | # Commands used to build an old-style archive. |
29021 | old_archive_cmds=$lt_old_archive_cmds | |
29022 | ||
29023 | # A language specific compiler. | |
29024 | CC=$lt_compiler | |
29025 | ||
29026 | # Is the compiler the GNU compiler? | |
29027 | with_gcc=$GCC | |
29028 | ||
29029 | # Compiler flag to turn off builtin functions. | |
29030 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
29031 | ||
29032 | # How to pass a linker flag through the compiler. | |
29033 | wl=$lt_lt_prog_compiler_wl | |
29034 | ||
29035 | # Additional compiler flags for building library objects. | |
29036 | pic_flag=$lt_lt_prog_compiler_pic | |
29037 | ||
29038 | # Compiler flag to prevent dynamic linking. | |
29039 | link_static_flag=$lt_lt_prog_compiler_static | |
29040 | ||
29041 | # Does compiler simultaneously support -c and -o options? | |
29042 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
29043 | ||
29044 | # Whether or not to add -lc for building shared libraries. | |
29045 | build_libtool_need_lc=$archive_cmds_need_lc | |
29046 | ||
29047 | # Whether or not to disallow shared libs when runtime libs are static. | |
29048 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
29049 | ||
29050 | # Compiler flag to allow reflexive dlopens. | |
29051 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
29052 | ||
29053 | # Compiler flag to generate shared objects directly from archives. | |
29054 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
29055 | ||
29056 | # Whether the compiler copes with passing no objects directly. | |
29057 | compiler_needs_object=$lt_compiler_needs_object | |
29058 | ||
29059 | # Create an old-style archive from a shared archive. | |
29060 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
29061 | ||
29062 | # Create a temporary old-style archive to link instead of a shared archive. | |
29063 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
29064 | ||
29065 | # Commands used to build a shared archive. | |
29066 | archive_cmds=$lt_archive_cmds | |
29067 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
29068 | ||
29069 | # Commands used to build a loadable module if different from building | |
29070 | # a shared archive. | |
29071 | module_cmds=$lt_module_cmds | |
29072 | module_expsym_cmds=$lt_module_expsym_cmds | |
29073 | ||
29074 | # Whether we are building with GNU ld or not. | |
29075 | with_gnu_ld=$lt_with_gnu_ld | |
29076 | ||
29077 | # Flag that allows shared libraries with undefined symbols to be built. | |
29078 | allow_undefined_flag=$lt_allow_undefined_flag | |
29079 | ||
29080 | # Flag that enforces no undefined symbols. | |
29081 | no_undefined_flag=$lt_no_undefined_flag | |
29082 | ||
29083 | # Flag to hardcode \$libdir into a binary during linking. | |
29084 | # This must work even if \$libdir does not exist | |
29085 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
29086 | ||
29087 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29088 | # during linking. This must work even if \$libdir does not exist. | |
29089 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
29090 | ||
29091 | # Whether we need a single "-rpath" flag with a separated argument. | |
29092 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
29093 | ||
29094 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29095 | # DIR into the resulting binary. | |
29096 | hardcode_direct=$hardcode_direct | |
29097 | ||
29098 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29099 | # DIR into the resulting binary and the resulting library dependency is | |
29100 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29101 | # library is relocated. | |
29102 | hardcode_direct_absolute=$hardcode_direct_absolute | |
29103 | ||
29104 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29105 | # into the resulting binary. | |
29106 | hardcode_minus_L=$hardcode_minus_L | |
29107 | ||
29108 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29109 | # into the resulting binary. | |
29110 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
29111 | ||
29112 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29113 | # into the library and all subsequent libraries and executables linked | |
29114 | # against it. | |
29115 | hardcode_automatic=$hardcode_automatic | |
29116 | ||
29117 | # Set to yes if linker adds runtime paths of dependent libraries | |
29118 | # to runtime path list. | |
29119 | inherit_rpath=$inherit_rpath | |
29120 | ||
29121 | # Whether libtool must link a program against all its dependency libraries. | |
29122 | link_all_deplibs=$link_all_deplibs | |
29123 | ||
29124 | # Fix the shell variable \$srcfile for the compiler. | |
29125 | fix_srcfile_path=$lt_fix_srcfile_path | |
29126 | ||
29127 | # Set to "yes" if exported symbols are required. | |
29128 | always_export_symbols=$always_export_symbols | |
29129 | ||
29130 | # The commands to list exported symbols. | |
29131 | export_symbols_cmds=$lt_export_symbols_cmds | |
29132 | ||
29133 | # Symbols that should not be listed in the preloaded symbols. | |
29134 | exclude_expsyms=$lt_exclude_expsyms | |
29135 | ||
29136 | # Symbols that must always be exported. | |
29137 | include_expsyms=$lt_include_expsyms | |
29138 | ||
29139 | # Commands necessary for linking programs (against libraries) with templates. | |
29140 | prelink_cmds=$lt_prelink_cmds | |
29141 | ||
29142 | # Specify filename containing input files. | |
29143 | file_list_spec=$lt_file_list_spec | |
29144 | ||
29145 | # How to hardcode a shared library path into an executable. | |
29146 | hardcode_action=$hardcode_action | |
29147 | ||
00aafda4 | 29148 | # The directories searched by this compiler when creating a shared library. |
29149 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
29150 | ||
542f9784 | 29151 | # Dependencies to place before and after the objects being linked to |
29152 | # create a shared library. | |
29153 | predep_objects=$lt_predep_objects | |
29154 | postdep_objects=$lt_postdep_objects | |
29155 | predeps=$lt_predeps | |
29156 | postdeps=$lt_postdeps | |
29157 | ||
29158 | # The library search path used internally by the compiler when linking | |
29159 | # a shared library. | |
29160 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
29161 | ||
29162 | # ### END LIBTOOL CONFIG | |
29163 | ||
29164 | _LT_EOF | |
29165 | ||
29166 | case $host_os in | |
29167 | aix3*) | |
29168 | cat <<\_LT_EOF >> "$cfgfile" | |
29169 | # AIX sometimes has problems with the GCC collect2 program. For some | |
29170 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
29171 | # vanish in a puff of smoke. | |
29172 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
29173 | COLLECT_NAMES= | |
29174 | export COLLECT_NAMES | |
29175 | fi | |
29176 | _LT_EOF | |
29177 | ;; | |
29178 | esac | |
29179 | ||
29180 | ||
29181 | ltmain="$ac_aux_dir/ltmain.sh" | |
29182 | ||
29183 | ||
29184 | # We use sed instead of cat because bash on DJGPP gets confused if | |
29185 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
29186 | # text mode, it properly converts lines to CR/LF. This bash problem | |
29187 | # is reportedly fixed, but why not run on old versions too? | |
29188 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
29189 | || (rm -f "$cfgfile"; exit 1) | |
29190 | ||
29191 | case $xsi_shell in | |
29192 | yes) | |
29193 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 29194 | |
542f9784 | 29195 | # func_dirname file append nondir_replacement |
29196 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29197 | # otherwise set result to NONDIR_REPLACEMENT. | |
29198 | func_dirname () | |
29199 | { | |
29200 | case ${1} in | |
29201 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29202 | * ) func_dirname_result="${3}" ;; | |
29203 | esac | |
29204 | } | |
29205 | ||
29206 | # func_basename file | |
29207 | func_basename () | |
29208 | { | |
29209 | func_basename_result="${1##*/}" | |
29210 | } | |
29211 | ||
00aafda4 | 29212 | # func_dirname_and_basename file append nondir_replacement |
29213 | # perform func_basename and func_dirname in a single function | |
29214 | # call: | |
29215 | # dirname: Compute the dirname of FILE. If nonempty, | |
29216 | # add APPEND to the result, otherwise set result | |
29217 | # to NONDIR_REPLACEMENT. | |
29218 | # value returned in "$func_dirname_result" | |
29219 | # basename: Compute filename of FILE. | |
29220 | # value retuned in "$func_basename_result" | |
29221 | # Implementation must be kept synchronized with func_dirname | |
29222 | # and func_basename. For efficiency, we do not delegate to | |
29223 | # those functions but instead duplicate the functionality here. | |
29224 | func_dirname_and_basename () | |
29225 | { | |
29226 | case ${1} in | |
29227 | */*) func_dirname_result="${1%/*}${2}" ;; | |
29228 | * ) func_dirname_result="${3}" ;; | |
29229 | esac | |
29230 | func_basename_result="${1##*/}" | |
29231 | } | |
29232 | ||
542f9784 | 29233 | # func_stripname prefix suffix name |
29234 | # strip PREFIX and SUFFIX off of NAME. | |
29235 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29236 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29237 | # dot (in which case that matches only a dot). | |
29238 | func_stripname () | |
29239 | { | |
29240 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
29241 | # positional parameters, so assign one to ordinary parameter first. | |
29242 | func_stripname_result=${3} | |
29243 | func_stripname_result=${func_stripname_result#"${1}"} | |
29244 | func_stripname_result=${func_stripname_result%"${2}"} | |
29245 | } | |
29246 | ||
29247 | # func_opt_split | |
29248 | func_opt_split () | |
29249 | { | |
29250 | func_opt_split_opt=${1%%=*} | |
29251 | func_opt_split_arg=${1#*=} | |
29252 | } | |
29253 | ||
29254 | # func_lo2o object | |
29255 | func_lo2o () | |
29256 | { | |
29257 | case ${1} in | |
29258 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
29259 | *) func_lo2o_result=${1} ;; | |
29260 | esac | |
29261 | } | |
00aafda4 | 29262 | |
29263 | # func_xform libobj-or-source | |
29264 | func_xform () | |
29265 | { | |
29266 | func_xform_result=${1%.*}.lo | |
29267 | } | |
29268 | ||
29269 | # func_arith arithmetic-term... | |
29270 | func_arith () | |
29271 | { | |
29272 | func_arith_result=$(( $* )) | |
29273 | } | |
29274 | ||
29275 | # func_len string | |
29276 | # STRING may not start with a hyphen. | |
29277 | func_len () | |
29278 | { | |
29279 | func_len_result=${#1} | |
29280 | } | |
29281 | ||
542f9784 | 29282 | _LT_EOF |
29283 | ;; | |
29284 | *) # Bourne compatible functions. | |
29285 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 29286 | |
542f9784 | 29287 | # func_dirname file append nondir_replacement |
29288 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
29289 | # otherwise set result to NONDIR_REPLACEMENT. | |
29290 | func_dirname () | |
29291 | { | |
29292 | # Extract subdirectory from the argument. | |
e6408286 | 29293 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
542f9784 | 29294 | if test "X$func_dirname_result" = "X${1}"; then |
29295 | func_dirname_result="${3}" | |
29296 | else | |
29297 | func_dirname_result="$func_dirname_result${2}" | |
29298 | fi | |
29299 | } | |
29300 | ||
29301 | # func_basename file | |
29302 | func_basename () | |
29303 | { | |
e6408286 | 29304 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
542f9784 | 29305 | } |
29306 | ||
00aafda4 | 29307 | |
542f9784 | 29308 | # func_stripname prefix suffix name |
29309 | # strip PREFIX and SUFFIX off of NAME. | |
29310 | # PREFIX and SUFFIX must not contain globbing or regex special | |
29311 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
29312 | # dot (in which case that matches only a dot). | |
29313 | # func_strip_suffix prefix name | |
29314 | func_stripname () | |
29315 | { | |
29316 | case ${2} in | |
e6408286 | 29317 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
29318 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
542f9784 | 29319 | esac |
29320 | } | |
29321 | ||
29322 | # sed scripts: | |
29323 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
29324 | my_sed_long_arg='1s/^-[^=]*=//' | |
29325 | ||
29326 | # func_opt_split | |
29327 | func_opt_split () | |
29328 | { | |
e6408286 | 29329 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
29330 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
542f9784 | 29331 | } |
29332 | ||
29333 | # func_lo2o object | |
29334 | func_lo2o () | |
29335 | { | |
e6408286 | 29336 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
542f9784 | 29337 | } |
00aafda4 | 29338 | |
29339 | # func_xform libobj-or-source | |
29340 | func_xform () | |
29341 | { | |
e6408286 | 29342 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
00aafda4 | 29343 | } |
29344 | ||
29345 | # func_arith arithmetic-term... | |
29346 | func_arith () | |
29347 | { | |
29348 | func_arith_result=`expr "$@"` | |
29349 | } | |
29350 | ||
29351 | # func_len string | |
29352 | # STRING may not start with a hyphen. | |
29353 | func_len () | |
29354 | { | |
29355 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
29356 | } | |
29357 | ||
542f9784 | 29358 | _LT_EOF |
29359 | esac | |
29360 | ||
29361 | case $lt_shell_append in | |
29362 | yes) | |
29363 | cat << \_LT_EOF >> "$cfgfile" | |
29364 | ||
29365 | # func_append var value | |
29366 | # Append VALUE to the end of shell variable VAR. | |
29367 | func_append () | |
29368 | { | |
29369 | eval "$1+=\$2" | |
29370 | } | |
29371 | _LT_EOF | |
29372 | ;; | |
29373 | *) | |
29374 | cat << \_LT_EOF >> "$cfgfile" | |
29375 | ||
29376 | # func_append var value | |
29377 | # Append VALUE to the end of shell variable VAR. | |
29378 | func_append () | |
29379 | { | |
29380 | eval "$1=\$$1\$2" | |
29381 | } | |
00aafda4 | 29382 | |
542f9784 | 29383 | _LT_EOF |
29384 | ;; | |
29385 | esac | |
29386 | ||
29387 | ||
29388 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
29389 | || (rm -f "$cfgfile"; exit 1) | |
29390 | ||
29391 | mv -f "$cfgfile" "$ofile" || | |
29392 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
29393 | chmod +x "$ofile" | |
29394 | ||
29395 | ||
29396 | cat <<_LT_EOF >> "$ofile" | |
29397 | ||
29398 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
29399 | ||
29400 | # The linker used to build libraries. | |
29401 | LD=$lt_LD_FC | |
29402 | ||
e6408286 | 29403 | # How to create reloadable object files. |
29404 | reload_flag=$lt_reload_flag_FC | |
29405 | reload_cmds=$lt_reload_cmds_FC | |
29406 | ||
542f9784 | 29407 | # Commands used to build an old-style archive. |
29408 | old_archive_cmds=$lt_old_archive_cmds_FC | |
29409 | ||
29410 | # A language specific compiler. | |
29411 | CC=$lt_compiler_FC | |
29412 | ||
29413 | # Is the compiler the GNU compiler? | |
29414 | with_gcc=$GCC_FC | |
29415 | ||
29416 | # Compiler flag to turn off builtin functions. | |
29417 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
29418 | ||
29419 | # How to pass a linker flag through the compiler. | |
29420 | wl=$lt_lt_prog_compiler_wl_FC | |
29421 | ||
29422 | # Additional compiler flags for building library objects. | |
29423 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
29424 | ||
29425 | # Compiler flag to prevent dynamic linking. | |
29426 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
29427 | ||
29428 | # Does compiler simultaneously support -c and -o options? | |
29429 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
29430 | ||
29431 | # Whether or not to add -lc for building shared libraries. | |
29432 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
29433 | ||
29434 | # Whether or not to disallow shared libs when runtime libs are static. | |
29435 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
29436 | ||
29437 | # Compiler flag to allow reflexive dlopens. | |
29438 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
29439 | ||
29440 | # Compiler flag to generate shared objects directly from archives. | |
29441 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
29442 | ||
29443 | # Whether the compiler copes with passing no objects directly. | |
29444 | compiler_needs_object=$lt_compiler_needs_object_FC | |
29445 | ||
29446 | # Create an old-style archive from a shared archive. | |
29447 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
29448 | ||
29449 | # Create a temporary old-style archive to link instead of a shared archive. | |
29450 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
29451 | ||
29452 | # Commands used to build a shared archive. | |
29453 | archive_cmds=$lt_archive_cmds_FC | |
29454 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
29455 | ||
29456 | # Commands used to build a loadable module if different from building | |
29457 | # a shared archive. | |
29458 | module_cmds=$lt_module_cmds_FC | |
29459 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
29460 | ||
29461 | # Whether we are building with GNU ld or not. | |
29462 | with_gnu_ld=$lt_with_gnu_ld_FC | |
29463 | ||
29464 | # Flag that allows shared libraries with undefined symbols to be built. | |
29465 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
29466 | ||
29467 | # Flag that enforces no undefined symbols. | |
29468 | no_undefined_flag=$lt_no_undefined_flag_FC | |
29469 | ||
29470 | # Flag to hardcode \$libdir into a binary during linking. | |
29471 | # This must work even if \$libdir does not exist | |
29472 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
29473 | ||
29474 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
29475 | # during linking. This must work even if \$libdir does not exist. | |
29476 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
29477 | ||
29478 | # Whether we need a single "-rpath" flag with a separated argument. | |
29479 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
29480 | ||
29481 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29482 | # DIR into the resulting binary. | |
29483 | hardcode_direct=$hardcode_direct_FC | |
29484 | ||
29485 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
29486 | # DIR into the resulting binary and the resulting library dependency is | |
29487 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
29488 | # library is relocated. | |
29489 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
29490 | ||
29491 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
29492 | # into the resulting binary. | |
29493 | hardcode_minus_L=$hardcode_minus_L_FC | |
29494 | ||
29495 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
29496 | # into the resulting binary. | |
29497 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
29498 | ||
29499 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
29500 | # into the library and all subsequent libraries and executables linked | |
29501 | # against it. | |
29502 | hardcode_automatic=$hardcode_automatic_FC | |
29503 | ||
29504 | # Set to yes if linker adds runtime paths of dependent libraries | |
29505 | # to runtime path list. | |
29506 | inherit_rpath=$inherit_rpath_FC | |
29507 | ||
29508 | # Whether libtool must link a program against all its dependency libraries. | |
29509 | link_all_deplibs=$link_all_deplibs_FC | |
29510 | ||
29511 | # Fix the shell variable \$srcfile for the compiler. | |
29512 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
29513 | ||
29514 | # Set to "yes" if exported symbols are required. | |
29515 | always_export_symbols=$always_export_symbols_FC | |
29516 | ||
29517 | # The commands to list exported symbols. | |
29518 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
29519 | ||
29520 | # Symbols that should not be listed in the preloaded symbols. | |
29521 | exclude_expsyms=$lt_exclude_expsyms_FC | |
29522 | ||
29523 | # Symbols that must always be exported. | |
29524 | include_expsyms=$lt_include_expsyms_FC | |
29525 | ||
29526 | # Commands necessary for linking programs (against libraries) with templates. | |
29527 | prelink_cmds=$lt_prelink_cmds_FC | |
29528 | ||
29529 | # Specify filename containing input files. | |
29530 | file_list_spec=$lt_file_list_spec_FC | |
29531 | ||
29532 | # How to hardcode a shared library path into an executable. | |
29533 | hardcode_action=$hardcode_action_FC | |
29534 | ||
00aafda4 | 29535 | # The directories searched by this compiler when creating a shared library. |
29536 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
29537 | ||
542f9784 | 29538 | # Dependencies to place before and after the objects being linked to |
29539 | # create a shared library. | |
29540 | predep_objects=$lt_predep_objects_FC | |
29541 | postdep_objects=$lt_postdep_objects_FC | |
29542 | predeps=$lt_predeps_FC | |
29543 | postdeps=$lt_postdeps_FC | |
29544 | ||
29545 | # The library search path used internally by the compiler when linking | |
29546 | # a shared library. | |
29547 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
29548 | ||
29549 | # ### END LIBTOOL TAG CONFIG: FC | |
29550 | _LT_EOF | |
29551 | ||
2fd61f51 | 29552 | ;; |
cd9a469c | 29553 | "gstdint.h":C) |
2069752c | 29554 | if test "$GCC" = yes; then |
29555 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
29556 | else | |
29557 | echo "/* generated for $CC */" > tmp-stdint.h | |
29558 | fi | |
56c15991 | 29559 | |
2069752c | 29560 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29561 | ||
29562 | #ifndef GCC_GENERATED_STDINT_H | |
29563 | #define GCC_GENERATED_STDINT_H 1 | |
29564 | ||
29565 | #include <sys/types.h> | |
56c15991 | 29566 | EOF |
56c15991 | 29567 | |
2069752c | 29568 | if test "$acx_cv_header_stdint" != stdint.h; then |
29569 | echo "#include <stddef.h>" >> tmp-stdint.h | |
29570 | fi | |
29571 | if test "$acx_cv_header_stdint" != stddef.h; then | |
29572 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
29573 | fi | |
29574 | ||
29575 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29576 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
29577 | #ifdef __int8_t_defined | |
29578 | #define _INT8_T | |
29579 | #define _INT16_T | |
29580 | #define _INT32_T | |
29581 | #endif | |
29582 | #ifdef __uint32_t_defined | |
29583 | #define _UINT32_T | |
29584 | #endif | |
29585 | ||
29586 | EOF | |
29587 | ||
29588 | # ----------------- done header, emit basic int types ------------- | |
29589 | if test "$acx_cv_header_stdint" = stddef.h; then | |
29590 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29591 | ||
29592 | #ifndef _UINT8_T | |
29593 | #define _UINT8_T | |
29594 | #ifndef __uint8_t_defined | |
29595 | #define __uint8_t_defined | |
9ad2e3f3 | 29596 | #ifndef uint8_t |
2069752c | 29597 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
29598 | #endif | |
29599 | #endif | |
9ad2e3f3 | 29600 | #endif |
2069752c | 29601 | |
29602 | #ifndef _UINT16_T | |
29603 | #define _UINT16_T | |
29604 | #ifndef __uint16_t_defined | |
29605 | #define __uint16_t_defined | |
9ad2e3f3 | 29606 | #ifndef uint16_t |
2069752c | 29607 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
29608 | #endif | |
29609 | #endif | |
9ad2e3f3 | 29610 | #endif |
2069752c | 29611 | |
29612 | #ifndef _UINT32_T | |
29613 | #define _UINT32_T | |
29614 | #ifndef __uint32_t_defined | |
29615 | #define __uint32_t_defined | |
9ad2e3f3 | 29616 | #ifndef uint32_t |
2069752c | 29617 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
29618 | #endif | |
29619 | #endif | |
9ad2e3f3 | 29620 | #endif |
2069752c | 29621 | |
29622 | #ifndef _INT8_T | |
29623 | #define _INT8_T | |
29624 | #ifndef __int8_t_defined | |
29625 | #define __int8_t_defined | |
9ad2e3f3 | 29626 | #ifndef int8_t |
2069752c | 29627 | typedef $acx_cv_type_int8_t int8_t; |
29628 | #endif | |
29629 | #endif | |
9ad2e3f3 | 29630 | #endif |
2069752c | 29631 | |
29632 | #ifndef _INT16_T | |
29633 | #define _INT16_T | |
29634 | #ifndef __int16_t_defined | |
29635 | #define __int16_t_defined | |
9ad2e3f3 | 29636 | #ifndef int16_t |
2069752c | 29637 | typedef $acx_cv_type_int16_t int16_t; |
29638 | #endif | |
29639 | #endif | |
9ad2e3f3 | 29640 | #endif |
2069752c | 29641 | |
29642 | #ifndef _INT32_T | |
29643 | #define _INT32_T | |
29644 | #ifndef __int32_t_defined | |
29645 | #define __int32_t_defined | |
9ad2e3f3 | 29646 | #ifndef int32_t |
2069752c | 29647 | typedef $acx_cv_type_int32_t int32_t; |
29648 | #endif | |
29649 | #endif | |
9ad2e3f3 | 29650 | #endif |
2069752c | 29651 | EOF |
29652 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
29653 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29654 | ||
29655 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
29656 | #ifndef _INT8_T | |
29657 | #define _INT8_T | |
29658 | #endif | |
29659 | #ifndef _INT16_T | |
29660 | #define _INT16_T | |
29661 | #endif | |
29662 | #ifndef _INT32_T | |
29663 | #define _INT32_T | |
29664 | #endif | |
29665 | ||
29666 | #ifndef _UINT8_T | |
29667 | #define _UINT8_T | |
29668 | #ifndef __uint8_t_defined | |
29669 | #define __uint8_t_defined | |
9ad2e3f3 | 29670 | #ifndef uint8_t |
2069752c | 29671 | typedef u_int8_t uint8_t; |
29672 | #endif | |
29673 | #endif | |
9ad2e3f3 | 29674 | #endif |
2069752c | 29675 | |
29676 | #ifndef _UINT16_T | |
29677 | #define _UINT16_T | |
29678 | #ifndef __uint16_t_defined | |
29679 | #define __uint16_t_defined | |
9ad2e3f3 | 29680 | #ifndef uint16_t |
2069752c | 29681 | typedef u_int16_t uint16_t; |
29682 | #endif | |
29683 | #endif | |
9ad2e3f3 | 29684 | #endif |
2069752c | 29685 | |
29686 | #ifndef _UINT32_T | |
29687 | #define _UINT32_T | |
29688 | #ifndef __uint32_t_defined | |
29689 | #define __uint32_t_defined | |
9ad2e3f3 | 29690 | #ifndef uint32_t |
2069752c | 29691 | typedef u_int32_t uint32_t; |
29692 | #endif | |
29693 | #endif | |
9ad2e3f3 | 29694 | #endif |
2069752c | 29695 | EOF |
29696 | else | |
29697 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29698 | ||
29699 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
29700 | #ifndef _INT8_T | |
29701 | #define _INT8_T | |
29702 | #endif | |
29703 | #ifndef _INT16_T | |
29704 | #define _INT16_T | |
29705 | #endif | |
29706 | #ifndef _INT32_T | |
29707 | #define _INT32_T | |
29708 | #endif | |
29709 | #ifndef _UINT8_T | |
29710 | #define _UINT8_T | |
29711 | #endif | |
29712 | #ifndef _UINT16_T | |
29713 | #define _UINT16_T | |
29714 | #endif | |
29715 | #ifndef _UINT32_T | |
29716 | #define _UINT32_T | |
29717 | #endif | |
29718 | EOF | |
29719 | fi | |
29720 | ||
29721 | # ------------- done basic int types, emit int64_t types ------------ | |
29722 | if test "$ac_cv_type_uint64_t" = yes; then | |
29723 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29724 | ||
29725 | /* system headers have good uint64_t and int64_t */ | |
29726 | #ifndef _INT64_T | |
29727 | #define _INT64_T | |
29728 | #endif | |
29729 | #ifndef _UINT64_T | |
29730 | #define _UINT64_T | |
29731 | #endif | |
29732 | EOF | |
29733 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
29734 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29735 | ||
29736 | /* system headers have an u_int64_t (and int64_t) */ | |
29737 | #ifndef _INT64_T | |
29738 | #define _INT64_T | |
29739 | #endif | |
29740 | #ifndef _UINT64_T | |
29741 | #define _UINT64_T | |
29742 | #ifndef __uint64_t_defined | |
29743 | #define __uint64_t_defined | |
9ad2e3f3 | 29744 | #ifndef uint64_t |
2069752c | 29745 | typedef u_int64_t uint64_t; |
29746 | #endif | |
29747 | #endif | |
9ad2e3f3 | 29748 | #endif |
2069752c | 29749 | EOF |
29750 | elif test -n "$acx_cv_type_int64_t"; then | |
29751 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29752 | ||
29753 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
29754 | #ifndef _INT64_T | |
29755 | #define _INT64_T | |
9ad2e3f3 | 29756 | #ifndef int64_t |
2069752c | 29757 | typedef $acx_cv_type_int64_t int64_t; |
29758 | #endif | |
9ad2e3f3 | 29759 | #endif |
2069752c | 29760 | #ifndef _UINT64_T |
29761 | #define _UINT64_T | |
29762 | #ifndef __uint64_t_defined | |
29763 | #define __uint64_t_defined | |
9ad2e3f3 | 29764 | #ifndef uint64_t |
2069752c | 29765 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
29766 | #endif | |
29767 | #endif | |
9ad2e3f3 | 29768 | #endif |
2069752c | 29769 | EOF |
29770 | else | |
29771 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29772 | ||
29773 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
29774 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
29775 | #ifndef _INT64_T | |
29776 | #define _INT64_T | |
29777 | #ifndef __int64_t_defined | |
9ad2e3f3 | 29778 | #ifndef int64_t |
2069752c | 29779 | typedef long long int64_t; |
29780 | #endif | |
29781 | #endif | |
9ad2e3f3 | 29782 | #endif |
2069752c | 29783 | #ifndef _UINT64_T |
29784 | #define _UINT64_T | |
9ad2e3f3 | 29785 | #ifndef uint64_t |
2069752c | 29786 | typedef unsigned long long uint64_t; |
29787 | #endif | |
9ad2e3f3 | 29788 | #endif |
2069752c | 29789 | |
29790 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
29791 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
29792 | does not implement __extension__. But that compiler doesn't define | |
29793 | __GNUC_MINOR__. */ | |
29794 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
29795 | # define __extension__ | |
29796 | # endif | |
29797 | ||
29798 | # ifndef _INT64_T | |
29799 | # define _INT64_T | |
9ad2e3f3 | 29800 | # ifndef int64_t |
2069752c | 29801 | __extension__ typedef long long int64_t; |
29802 | # endif | |
9ad2e3f3 | 29803 | # endif |
2069752c | 29804 | # ifndef _UINT64_T |
29805 | # define _UINT64_T | |
9ad2e3f3 | 29806 | # ifndef uint64_t |
2069752c | 29807 | __extension__ typedef unsigned long long uint64_t; |
29808 | # endif | |
9ad2e3f3 | 29809 | # endif |
2069752c | 29810 | |
29811 | #elif !defined __STRICT_ANSI__ | |
29812 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
29813 | ||
29814 | # ifndef _INT64_T | |
29815 | # define _INT64_T | |
9ad2e3f3 | 29816 | # ifndef int64_t |
2069752c | 29817 | typedef __int64 int64_t; |
29818 | # endif | |
9ad2e3f3 | 29819 | # endif |
2069752c | 29820 | # ifndef _UINT64_T |
29821 | # define _UINT64_T | |
9ad2e3f3 | 29822 | # ifndef uint64_t |
2069752c | 29823 | typedef unsigned __int64 uint64_t; |
29824 | # endif | |
9ad2e3f3 | 29825 | # endif |
2069752c | 29826 | # endif /* compiler */ |
29827 | ||
29828 | #endif /* ANSI version */ | |
29829 | EOF | |
29830 | fi | |
29831 | ||
29832 | # ------------- done int64_t types, emit intptr types ------------ | |
29833 | if test "$ac_cv_type_uintptr_t" != yes; then | |
29834 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29835 | ||
29836 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
29837 | #ifndef __uintptr_t_defined | |
9ad2e3f3 | 29838 | #ifndef uintptr_t |
2069752c | 29839 | typedef u$acx_cv_type_intptr_t uintptr_t; |
29840 | #endif | |
9ad2e3f3 | 29841 | #endif |
2069752c | 29842 | #ifndef __intptr_t_defined |
9ad2e3f3 | 29843 | #ifndef intptr_t |
2069752c | 29844 | typedef $acx_cv_type_intptr_t intptr_t; |
29845 | #endif | |
9ad2e3f3 | 29846 | #endif |
2069752c | 29847 | EOF |
29848 | fi | |
29849 | ||
29850 | # ------------- done intptr types, emit int_least types ------------ | |
56c15991 | 29851 | if test "$ac_cv_type_int_least32_t" != yes; then |
2069752c | 29852 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 29853 | |
29854 | /* Define int_least types */ | |
29855 | typedef int8_t int_least8_t; | |
29856 | typedef int16_t int_least16_t; | |
29857 | typedef int32_t int_least32_t; | |
2069752c | 29858 | #ifdef _INT64_T |
56c15991 | 29859 | typedef int64_t int_least64_t; |
2069752c | 29860 | #endif |
56c15991 | 29861 | |
29862 | typedef uint8_t uint_least8_t; | |
29863 | typedef uint16_t uint_least16_t; | |
29864 | typedef uint32_t uint_least32_t; | |
2069752c | 29865 | #ifdef _UINT64_T |
56c15991 | 29866 | typedef uint64_t uint_least64_t; |
2069752c | 29867 | #endif |
56c15991 | 29868 | EOF |
29869 | fi | |
29870 | ||
2069752c | 29871 | # ------------- done intptr types, emit int_fast types ------------ |
56c15991 | 29872 | if test "$ac_cv_type_int_fast32_t" != yes; then |
2069752c | 29873 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 29874 | |
29875 | /* Define int_fast types. short is often slow */ | |
29876 | typedef int8_t int_fast8_t; | |
29877 | typedef int int_fast16_t; | |
29878 | typedef int32_t int_fast32_t; | |
2069752c | 29879 | #ifdef _INT64_T |
56c15991 | 29880 | typedef int64_t int_fast64_t; |
2069752c | 29881 | #endif |
56c15991 | 29882 | |
29883 | typedef uint8_t uint_fast8_t; | |
29884 | typedef unsigned int uint_fast16_t; | |
29885 | typedef uint32_t uint_fast32_t; | |
2069752c | 29886 | #ifdef _UINT64_T |
56c15991 | 29887 | typedef uint64_t uint_fast64_t; |
2069752c | 29888 | #endif |
29889 | EOF | |
29890 | fi | |
29891 | ||
29892 | if test "$ac_cv_type_uintmax_t" != yes; then | |
29893 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
29894 | ||
29895 | /* Define intmax based on what we found */ | |
9ad2e3f3 | 29896 | #ifndef intmax_t |
2069752c | 29897 | #ifdef _INT64_T |
29898 | typedef int64_t intmax_t; | |
29899 | #else | |
29900 | typedef long intmax_t; | |
29901 | #endif | |
9ad2e3f3 | 29902 | #endif |
29903 | #ifndef uintmax_t | |
2069752c | 29904 | #ifdef _UINT64_T |
29905 | typedef uint64_t uintmax_t; | |
29906 | #else | |
29907 | typedef unsigned long uintmax_t; | |
29908 | #endif | |
9ad2e3f3 | 29909 | #endif |
56c15991 | 29910 | EOF |
29911 | fi | |
29912 | ||
2069752c | 29913 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
29914 | ||
29915 | #endif /* GCC_GENERATED_STDINT_H */ | |
29916 | EOF | |
56c15991 | 29917 | |
2069752c | 29918 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
29919 | rm -f tmp-stdint.h | |
56c15991 | 29920 | else |
2069752c | 29921 | mv -f tmp-stdint.h gstdint.h |
56c15991 | 29922 | fi |
29923 | ||
29924 | ;; | |
cd9a469c | 29925 | |
4ee9c684 | 29926 | esac |
cd9a469c | 29927 | done # for ac_tag |
4ee9c684 | 29928 | |
4ee9c684 | 29929 | |
cd9a469c | 29930 | as_fn_exit 0 |
4ee9c684 | 29931 | _ACEOF |
4ee9c684 | 29932 | ac_clean_files=$ac_clean_files_save |
29933 | ||
cd9a469c | 29934 | test $ac_write_fail = 0 || |
f00f02a3 | 29935 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
cd9a469c | 29936 | |
4ee9c684 | 29937 | |
29938 | # configure is writing to config.log, and then calls config.status. | |
29939 | # config.status does its own redirection, appending to config.log. | |
29940 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
29941 | # by configure, so config.status won't be able to write to it; its | |
29942 | # output is simply discarded. So we exec the FD to /dev/null, | |
29943 | # effectively closing config.log, so it can be properly (re)opened and | |
29944 | # appended to by config.status. When coming back to configure, we | |
29945 | # need to make the FD available again. | |
29946 | if test "$no_create" != yes; then | |
29947 | ac_cs_success=: | |
29948 | ac_config_status_args= | |
29949 | test "$silent" = yes && | |
29950 | ac_config_status_args="$ac_config_status_args --quiet" | |
29951 | exec 5>/dev/null | |
29952 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
29953 | exec 5>>config.log | |
29954 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
29955 | # would make configure fail if this is the last instruction. | |
f00f02a3 | 29956 | $ac_cs_success || as_fn_exit 1 |
cd9a469c | 29957 | fi |
29958 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
29959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
29960 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4ee9c684 | 29961 | fi |
29962 |