]>
Commit | Line | Data |
---|---|---|
4ee9c684 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
cd9a469c | 3 | # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
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. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
4ee9c684 | 121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
cd9a469c | 126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
d5d92632 | 172 | test \$(( 1 + 1 )) = 2 || exit 1 |
e6408286 | 173 | |
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
d5d92632 | 180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
cd9a469c | 181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
4ee9c684 | 192 | do |
cd9a469c | 193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
4ee9c684 | 236 | else |
cd9a469c | 237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
4ee9c684 | 241 | fi |
cd9a469c | 242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
4ee9c684 | 380 | |
cd9a469c | 381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
cd9a469c | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
cd9a469c | 394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
4ee9c684 | 399 | |
cd9a469c | 400 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
ce1a737c | 418 | |
82eaf560 | 419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ff4425cf | 425 | |
4ee9c684 | 426 | |
cd9a469c | 427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
4ee9c684 | 436 | sed ' |
cd9a469c | 437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
4ee9c684 | 441 | N |
cd9a469c | 442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
4ee9c684 | 444 | t loop |
cd9a469c | 445 | s/-\n.*// |
4ee9c684 | 446 | ' >$as_me.lineno && |
cd9a469c | 447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
4ee9c684 | 449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
cd9a469c | 452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
4ee9c684 | 454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
cd9a469c | 458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
4ee9c684 | 469 | esac |
470 | ||
cd9a469c | 471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 474 | else |
cd9a469c | 475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 477 | fi |
cd9a469c | 478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 480 | as_ln_s='ln -s' |
cd9a469c | 481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
82eaf560 | 491 | fi |
4ee9c684 | 492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
cd9a469c | 495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
4ee9c684 | 497 | |
498 | if mkdir -p . 2>/dev/null; then | |
cd9a469c | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
cd9a469c | 505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
4ee9c684 | 527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
542f9784 | 534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
542f9784 | 536 | |
cd9a469c | 537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
4ee9c684 | 539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
4ee9c684 | 544 | # |
545 | # Initializations. | |
546 | # | |
547 | ac_default_prefix=/usr/local | |
cd9a469c | 548 | ac_clean_files= |
4ee9c684 | 549 | ac_config_libobj_dir=. |
cd9a469c | 550 | LIBOBJS= |
4ee9c684 | 551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
82eaf560 | 555 | |
4ee9c684 | 556 | # Identity of this package. |
557 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
558 | PACKAGE_TARNAME='libgfortran' | |
76c0a846 | 559 | PACKAGE_VERSION='0.3' |
560 | PACKAGE_STRING='GNU Fortran Runtime Library 0.3' | |
4ee9c684 | 561 | PACKAGE_BUGREPORT='' |
cd9a469c | 562 | PACKAGE_URL='http://www.gnu.org/software/libgfortran/' |
4ee9c684 | 563 | |
564 | # Factoring default headers for most tests. | |
565 | ac_includes_default="\ | |
566 | #include <stdio.h> | |
cd9a469c | 567 | #ifdef HAVE_SYS_TYPES_H |
4ee9c684 | 568 | # include <sys/types.h> |
569 | #endif | |
cd9a469c | 570 | #ifdef HAVE_SYS_STAT_H |
4ee9c684 | 571 | # include <sys/stat.h> |
572 | #endif | |
cd9a469c | 573 | #ifdef STDC_HEADERS |
4ee9c684 | 574 | # include <stdlib.h> |
575 | # include <stddef.h> | |
576 | #else | |
cd9a469c | 577 | # ifdef HAVE_STDLIB_H |
4ee9c684 | 578 | # include <stdlib.h> |
579 | # endif | |
580 | #endif | |
cd9a469c | 581 | #ifdef HAVE_STRING_H |
582 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
4ee9c684 | 583 | # include <memory.h> |
584 | # endif | |
585 | # include <string.h> | |
586 | #endif | |
cd9a469c | 587 | #ifdef HAVE_STRINGS_H |
4ee9c684 | 588 | # include <strings.h> |
589 | #endif | |
cd9a469c | 590 | #ifdef HAVE_INTTYPES_H |
4ee9c684 | 591 | # include <inttypes.h> |
4ee9c684 | 592 | #endif |
cd9a469c | 593 | #ifdef HAVE_STDINT_H |
594 | # include <stdint.h> | |
595 | #endif | |
596 | #ifdef HAVE_UNISTD_H | |
4ee9c684 | 597 | # include <unistd.h> |
598 | #endif" | |
599 | ||
87969c8c | 600 | ac_c_werror_flag= |
cd9a469c | 601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | IEEE_FLAGS | |
606 | FPU_HOST_HEADER | |
87969c8c | 607 | LIBGFOR_BUILD_QUAD_FALSE |
608 | LIBGFOR_BUILD_QUAD_TRUE | |
609 | LIBQUADINCLUDE | |
610 | LIBQUADLIB_DEP | |
611 | LIBQUADLIB | |
612 | LIBQUADSPEC | |
cd9a469c | 613 | extra_ldflags_libgfortran |
614 | ac_ct_FC | |
615 | FCFLAGS | |
616 | FC | |
617 | enable_static | |
618 | enable_shared | |
8c35d268 | 619 | lt_host_flags |
cd9a469c | 620 | OTOOL64 |
621 | OTOOL | |
622 | LIPO | |
623 | NMEDIT | |
624 | DSYMUTIL | |
cd9a469c | 625 | OBJDUMP |
626 | LN_S | |
627 | NM | |
628 | ac_ct_DUMPBIN | |
629 | DUMPBIN | |
630 | LD | |
631 | FGREP | |
cd9a469c | 632 | SED |
633 | LIBTOOL | |
634 | RANLIB | |
635 | AR | |
636 | AS | |
637 | SECTION_FLAGS | |
019fb48a | 638 | LIBGFOR_USE_SYMVER_SUN_FALSE |
639 | LIBGFOR_USE_SYMVER_SUN_TRUE | |
640 | LIBGFOR_USE_SYMVER_GNU_FALSE | |
641 | LIBGFOR_USE_SYMVER_GNU_TRUE | |
cd9a469c | 642 | LIBGFOR_USE_SYMVER_FALSE |
643 | LIBGFOR_USE_SYMVER_TRUE | |
644 | AM_CFLAGS | |
645 | AM_FCFLAGS | |
d5d92632 | 646 | toolexeclibdir |
647 | toolexecdir | |
648 | EGREP | |
649 | GREP | |
650 | CPP | |
cd9a469c | 651 | am__fastdepCC_FALSE |
652 | am__fastdepCC_TRUE | |
653 | CCDEPMODE | |
654 | AMDEPBACKSLASH | |
655 | AMDEP_FALSE | |
656 | AMDEP_TRUE | |
657 | am__quote | |
658 | am__include | |
659 | DEPDIR | |
660 | OBJEXT | |
661 | EXEEXT | |
662 | ac_ct_CC | |
663 | CPPFLAGS | |
664 | LDFLAGS | |
665 | CFLAGS | |
666 | CC | |
cd9a469c | 667 | multi_basedir |
668 | MAINT | |
669 | MAINTAINER_MODE_FALSE | |
670 | MAINTAINER_MODE_TRUE | |
671 | am__untar | |
672 | am__tar | |
673 | AMTAR | |
674 | am__leading_dot | |
675 | SET_MAKE | |
676 | AWK | |
677 | mkdir_p | |
678 | MKDIR_P | |
679 | INSTALL_STRIP_PROGRAM | |
680 | STRIP | |
681 | install_sh | |
682 | MAKEINFO | |
683 | AUTOHEADER | |
684 | AUTOMAKE | |
685 | AUTOCONF | |
686 | ACLOCAL | |
687 | VERSION | |
688 | PACKAGE | |
689 | CYGPATH_W | |
690 | am__isrc | |
691 | INSTALL_DATA | |
692 | INSTALL_SCRIPT | |
693 | INSTALL_PROGRAM | |
694 | target_os | |
695 | target_vendor | |
696 | target_cpu | |
697 | target | |
698 | host_os | |
699 | host_vendor | |
700 | host_cpu | |
701 | host | |
702 | onestep | |
703 | onestep_FALSE | |
704 | onestep_TRUE | |
705 | target_subdir | |
706 | host_subdir | |
707 | build_subdir | |
708 | build_libsubdir | |
709 | build_os | |
710 | build_vendor | |
711 | build_cpu | |
712 | build | |
713 | target_alias | |
714 | host_alias | |
715 | build_alias | |
716 | LIBS | |
717 | ECHO_T | |
718 | ECHO_N | |
719 | ECHO_C | |
720 | DEFS | |
721 | mandir | |
722 | localedir | |
723 | libdir | |
724 | psdir | |
725 | pdfdir | |
726 | dvidir | |
727 | htmldir | |
728 | infodir | |
729 | docdir | |
730 | oldincludedir | |
731 | includedir | |
732 | localstatedir | |
733 | sharedstatedir | |
734 | sysconfdir | |
735 | datadir | |
736 | datarootdir | |
737 | libexecdir | |
738 | sbindir | |
739 | bindir | |
740 | program_transform_name | |
741 | prefix | |
742 | exec_prefix | |
743 | PACKAGE_URL | |
744 | PACKAGE_BUGREPORT | |
745 | PACKAGE_STRING | |
746 | PACKAGE_VERSION | |
747 | PACKAGE_TARNAME | |
748 | PACKAGE_NAME | |
749 | PATH_SEPARATOR | |
750 | SHELL' | |
4ee9c684 | 751 | ac_subst_files='' |
cd9a469c | 752 | ac_user_opts=' |
753 | enable_option_checking | |
754 | with_build_libsubdir | |
755 | enable_version_specific_runtime_libs | |
756 | enable_intermodule | |
757 | enable_maintainer_mode | |
758 | enable_multilib | |
759 | enable_dependency_tracking | |
bbb514dc | 760 | enable_symvers |
cd9a469c | 761 | enable_shared |
762 | enable_static | |
763 | with_pic | |
764 | enable_fast_install | |
765 | with_gnu_ld | |
766 | enable_libtool_lock | |
767 | enable_largefile | |
d9d975ae | 768 | enable_libquadmath_support |
cd9a469c | 769 | ' |
770 | ac_precious_vars='build_alias | |
771 | host_alias | |
772 | target_alias | |
d5d92632 | 773 | CC |
774 | CFLAGS | |
775 | LDFLAGS | |
776 | LIBS | |
cd9a469c | 777 | CPPFLAGS |
d5d92632 | 778 | CPP |
cd9a469c | 779 | FC |
d5d92632 | 780 | FCFLAGS' |
cd9a469c | 781 | |
4ee9c684 | 782 | |
783 | # Initialize some variables set by options. | |
784 | ac_init_help= | |
785 | ac_init_version=false | |
cd9a469c | 786 | ac_unrecognized_opts= |
787 | ac_unrecognized_sep= | |
4ee9c684 | 788 | # The variables have the same names as the options, with |
789 | # dashes changed to underlines. | |
790 | cache_file=/dev/null | |
791 | exec_prefix=NONE | |
792 | no_create= | |
793 | no_recursion= | |
794 | prefix=NONE | |
795 | program_prefix=NONE | |
796 | program_suffix=NONE | |
797 | program_transform_name=s,x,x, | |
798 | silent= | |
799 | site= | |
800 | srcdir= | |
801 | verbose= | |
802 | x_includes=NONE | |
803 | x_libraries=NONE | |
804 | ||
805 | # Installation directory options. | |
806 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
807 | # and all the variables that are supposed to be based on exec_prefix | |
808 | # by default will actually change. | |
809 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd9a469c | 810 | # (The list follows the same order as the GNU Coding Standards.) |
4ee9c684 | 811 | bindir='${exec_prefix}/bin' |
812 | sbindir='${exec_prefix}/sbin' | |
813 | libexecdir='${exec_prefix}/libexec' | |
cd9a469c | 814 | datarootdir='${prefix}/share' |
815 | datadir='${datarootdir}' | |
4ee9c684 | 816 | sysconfdir='${prefix}/etc' |
817 | sharedstatedir='${prefix}/com' | |
818 | localstatedir='${prefix}/var' | |
4ee9c684 | 819 | includedir='${prefix}/include' |
820 | oldincludedir='/usr/include' | |
cd9a469c | 821 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
822 | infodir='${datarootdir}/info' | |
823 | htmldir='${docdir}' | |
824 | dvidir='${docdir}' | |
825 | pdfdir='${docdir}' | |
826 | psdir='${docdir}' | |
827 | libdir='${exec_prefix}/lib' | |
828 | localedir='${datarootdir}/locale' | |
829 | mandir='${datarootdir}/man' | |
4ee9c684 | 830 | |
831 | ac_prev= | |
cd9a469c | 832 | ac_dashdash= |
4ee9c684 | 833 | for ac_option |
834 | do | |
835 | # If the previous option needs an argument, assign it. | |
836 | if test -n "$ac_prev"; then | |
cd9a469c | 837 | eval $ac_prev=\$ac_option |
4ee9c684 | 838 | ac_prev= |
839 | continue | |
840 | fi | |
841 | ||
cd9a469c | 842 | case $ac_option in |
843 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
844 | *) ac_optarg=yes ;; | |
845 | esac | |
4ee9c684 | 846 | |
847 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
848 | ||
cd9a469c | 849 | case $ac_dashdash$ac_option in |
850 | --) | |
851 | ac_dashdash=yes ;; | |
4ee9c684 | 852 | |
853 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
854 | ac_prev=bindir ;; | |
855 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
856 | bindir=$ac_optarg ;; | |
857 | ||
858 | -build | --build | --buil | --bui | --bu) | |
859 | ac_prev=build_alias ;; | |
860 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
861 | build_alias=$ac_optarg ;; | |
862 | ||
863 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
864 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
865 | ac_prev=cache_file ;; | |
866 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
867 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
868 | cache_file=$ac_optarg ;; | |
869 | ||
870 | --config-cache | -C) | |
871 | cache_file=config.cache ;; | |
872 | ||
cd9a469c | 873 | -datadir | --datadir | --datadi | --datad) |
4ee9c684 | 874 | ac_prev=datadir ;; |
cd9a469c | 875 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4ee9c684 | 876 | datadir=$ac_optarg ;; |
877 | ||
cd9a469c | 878 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
879 | | --dataroo | --dataro | --datar) | |
880 | ac_prev=datarootdir ;; | |
881 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
882 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
883 | datarootdir=$ac_optarg ;; | |
884 | ||
4ee9c684 | 885 | -disable-* | --disable-*) |
cd9a469c | 886 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4ee9c684 | 887 | # Reject names that are not valid shell variable names. |
cd9a469c | 888 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
889 | as_fn_error "invalid feature name: $ac_useropt" | |
890 | ac_useropt_orig=$ac_useropt | |
891 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
892 | case $ac_user_opts in | |
893 | *" | |
894 | "enable_$ac_useropt" | |
895 | "*) ;; | |
896 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
897 | ac_unrecognized_sep=', ';; | |
898 | esac | |
899 | eval enable_$ac_useropt=no ;; | |
900 | ||
901 | -docdir | --docdir | --docdi | --doc | --do) | |
902 | ac_prev=docdir ;; | |
903 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
904 | docdir=$ac_optarg ;; | |
905 | ||
906 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
907 | ac_prev=dvidir ;; | |
908 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
909 | dvidir=$ac_optarg ;; | |
4ee9c684 | 910 | |
911 | -enable-* | --enable-*) | |
cd9a469c | 912 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4ee9c684 | 913 | # Reject names that are not valid shell variable names. |
cd9a469c | 914 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
915 | as_fn_error "invalid feature name: $ac_useropt" | |
916 | ac_useropt_orig=$ac_useropt | |
917 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
918 | case $ac_user_opts in | |
919 | *" | |
920 | "enable_$ac_useropt" | |
921 | "*) ;; | |
922 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
923 | ac_unrecognized_sep=', ';; | |
82eaf560 | 924 | esac |
cd9a469c | 925 | eval enable_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 926 | |
927 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
928 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
929 | | --exec | --exe | --ex) | |
930 | ac_prev=exec_prefix ;; | |
931 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
932 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
933 | | --exec=* | --exe=* | --ex=*) | |
934 | exec_prefix=$ac_optarg ;; | |
935 | ||
936 | -gas | --gas | --ga | --g) | |
937 | # Obsolete; use --with-gas. | |
938 | with_gas=yes ;; | |
939 | ||
940 | -help | --help | --hel | --he | -h) | |
941 | ac_init_help=long ;; | |
942 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
943 | ac_init_help=recursive ;; | |
944 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
945 | ac_init_help=short ;; | |
946 | ||
947 | -host | --host | --hos | --ho) | |
948 | ac_prev=host_alias ;; | |
949 | -host=* | --host=* | --hos=* | --ho=*) | |
950 | host_alias=$ac_optarg ;; | |
951 | ||
cd9a469c | 952 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
953 | ac_prev=htmldir ;; | |
954 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
955 | | --ht=*) | |
956 | htmldir=$ac_optarg ;; | |
957 | ||
4ee9c684 | 958 | -includedir | --includedir | --includedi | --included | --include \ |
959 | | --includ | --inclu | --incl | --inc) | |
960 | ac_prev=includedir ;; | |
961 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
962 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
963 | includedir=$ac_optarg ;; | |
964 | ||
965 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
966 | ac_prev=infodir ;; | |
967 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
968 | infodir=$ac_optarg ;; | |
969 | ||
970 | -libdir | --libdir | --libdi | --libd) | |
971 | ac_prev=libdir ;; | |
972 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
973 | libdir=$ac_optarg ;; | |
974 | ||
975 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
976 | | --libexe | --libex | --libe) | |
977 | ac_prev=libexecdir ;; | |
978 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
979 | | --libexe=* | --libex=* | --libe=*) | |
980 | libexecdir=$ac_optarg ;; | |
981 | ||
cd9a469c | 982 | -localedir | --localedir | --localedi | --localed | --locale) |
983 | ac_prev=localedir ;; | |
984 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
985 | localedir=$ac_optarg ;; | |
986 | ||
4ee9c684 | 987 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
cd9a469c | 988 | | --localstate | --localstat | --localsta | --localst | --locals) |
4ee9c684 | 989 | ac_prev=localstatedir ;; |
990 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
cd9a469c | 991 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4ee9c684 | 992 | localstatedir=$ac_optarg ;; |
993 | ||
994 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
995 | ac_prev=mandir ;; | |
996 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
997 | mandir=$ac_optarg ;; | |
998 | ||
999 | -nfp | --nfp | --nf) | |
1000 | # Obsolete; use --without-fp. | |
1001 | with_fp=no ;; | |
1002 | ||
1003 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1004 | | --no-cr | --no-c | -n) | |
1005 | no_create=yes ;; | |
1006 | ||
1007 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1008 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1009 | no_recursion=yes ;; | |
1010 | ||
1011 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1012 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1013 | | --oldin | --oldi | --old | --ol | --o) | |
1014 | ac_prev=oldincludedir ;; | |
1015 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1016 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1017 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1018 | oldincludedir=$ac_optarg ;; | |
1019 | ||
1020 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1021 | ac_prev=prefix ;; | |
1022 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1023 | prefix=$ac_optarg ;; | |
1024 | ||
1025 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1026 | | --program-pre | --program-pr | --program-p) | |
1027 | ac_prev=program_prefix ;; | |
1028 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1029 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1030 | program_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1033 | | --program-suf | --program-su | --program-s) | |
1034 | ac_prev=program_suffix ;; | |
1035 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1036 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1037 | program_suffix=$ac_optarg ;; | |
1038 | ||
1039 | -program-transform-name | --program-transform-name \ | |
1040 | | --program-transform-nam | --program-transform-na \ | |
1041 | | --program-transform-n | --program-transform- \ | |
1042 | | --program-transform | --program-transfor \ | |
1043 | | --program-transfo | --program-transf \ | |
1044 | | --program-trans | --program-tran \ | |
1045 | | --progr-tra | --program-tr | --program-t) | |
1046 | ac_prev=program_transform_name ;; | |
1047 | -program-transform-name=* | --program-transform-name=* \ | |
1048 | | --program-transform-nam=* | --program-transform-na=* \ | |
1049 | | --program-transform-n=* | --program-transform-=* \ | |
1050 | | --program-transform=* | --program-transfor=* \ | |
1051 | | --program-transfo=* | --program-transf=* \ | |
1052 | | --program-trans=* | --program-tran=* \ | |
1053 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1054 | program_transform_name=$ac_optarg ;; | |
1055 | ||
cd9a469c | 1056 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1057 | ac_prev=pdfdir ;; | |
1058 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1059 | pdfdir=$ac_optarg ;; | |
1060 | ||
1061 | -psdir | --psdir | --psdi | --psd | --ps) | |
1062 | ac_prev=psdir ;; | |
1063 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1064 | psdir=$ac_optarg ;; | |
1065 | ||
4ee9c684 | 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1067 | | -silent | --silent | --silen | --sile | --sil) | |
1068 | silent=yes ;; | |
1069 | ||
1070 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1071 | ac_prev=sbindir ;; | |
1072 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1073 | | --sbi=* | --sb=*) | |
1074 | sbindir=$ac_optarg ;; | |
1075 | ||
1076 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1077 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1078 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1079 | | --sha | --sh) | |
1080 | ac_prev=sharedstatedir ;; | |
1081 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1082 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1083 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1084 | | --sha=* | --sh=*) | |
1085 | sharedstatedir=$ac_optarg ;; | |
1086 | ||
1087 | -site | --site | --sit) | |
1088 | ac_prev=site ;; | |
1089 | -site=* | --site=* | --sit=*) | |
1090 | site=$ac_optarg ;; | |
1091 | ||
1092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1093 | ac_prev=srcdir ;; | |
1094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1095 | srcdir=$ac_optarg ;; | |
1096 | ||
1097 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1098 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1099 | ac_prev=sysconfdir ;; | |
1100 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1101 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1102 | sysconfdir=$ac_optarg ;; | |
1103 | ||
1104 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1105 | ac_prev=target_alias ;; | |
1106 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1107 | target_alias=$ac_optarg ;; | |
1108 | ||
1109 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1110 | verbose=yes ;; | |
1111 | ||
1112 | -version | --version | --versio | --versi | --vers | -V) | |
1113 | ac_init_version=: ;; | |
1114 | ||
1115 | -with-* | --with-*) | |
cd9a469c | 1116 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4ee9c684 | 1117 | # Reject names that are not valid shell variable names. |
cd9a469c | 1118 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1119 | as_fn_error "invalid package name: $ac_useropt" | |
1120 | ac_useropt_orig=$ac_useropt | |
1121 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1122 | case $ac_user_opts in | |
1123 | *" | |
1124 | "with_$ac_useropt" | |
1125 | "*) ;; | |
1126 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1127 | ac_unrecognized_sep=', ';; | |
82eaf560 | 1128 | esac |
cd9a469c | 1129 | eval with_$ac_useropt=\$ac_optarg ;; |
4ee9c684 | 1130 | |
1131 | -without-* | --without-*) | |
cd9a469c | 1132 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4ee9c684 | 1133 | # Reject names that are not valid shell variable names. |
cd9a469c | 1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1135 | as_fn_error "invalid package name: $ac_useropt" | |
1136 | ac_useropt_orig=$ac_useropt | |
1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
1144 | esac | |
1145 | eval with_$ac_useropt=no ;; | |
4ee9c684 | 1146 | |
1147 | --x) | |
1148 | # Obsolete; use --with-x. | |
1149 | with_x=yes ;; | |
1150 | ||
1151 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1152 | | --x-incl | --x-inc | --x-in | --x-i) | |
1153 | ac_prev=x_includes ;; | |
1154 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1155 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1156 | x_includes=$ac_optarg ;; | |
1157 | ||
1158 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1159 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1160 | ac_prev=x_libraries ;; | |
1161 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1162 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1163 | x_libraries=$ac_optarg ;; | |
1164 | ||
cd9a469c | 1165 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1166 | Try \`$0 --help' for more information." | |
4ee9c684 | 1167 | ;; |
1168 | ||
1169 | *=*) | |
1170 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1171 | # Reject names that are not valid shell variable names. | |
cd9a469c | 1172 | case $ac_envvar in #( |
1173 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1174 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1175 | esac | |
1176 | eval $ac_envvar=\$ac_optarg | |
4ee9c684 | 1177 | export $ac_envvar ;; |
1178 | ||
1179 | *) | |
1180 | # FIXME: should be removed in autoconf 3.0. | |
cd9a469c | 1181 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4ee9c684 | 1182 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
cd9a469c | 1183 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
4ee9c684 | 1184 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1185 | ;; | |
1186 | ||
1187 | esac | |
1188 | done | |
1189 | ||
1190 | if test -n "$ac_prev"; then | |
1191 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
cd9a469c | 1192 | as_fn_error "missing argument to $ac_option" |
4ee9c684 | 1193 | fi |
1194 | ||
cd9a469c | 1195 | if test -n "$ac_unrecognized_opts"; then |
1196 | case $enable_option_checking in | |
1197 | no) ;; | |
1198 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1199 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
82eaf560 | 1200 | esac |
cd9a469c | 1201 | fi |
82eaf560 | 1202 | |
cd9a469c | 1203 | # Check all directory arguments for consistency. |
1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1205 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1206 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1207 | libdir localedir mandir | |
82eaf560 | 1208 | do |
cd9a469c | 1209 | eval ac_val=\$$ac_var |
1210 | # Remove trailing slashes. | |
1211 | case $ac_val in | |
1212 | */ ) | |
1213 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1214 | eval $ac_var=\$ac_val;; | |
1215 | esac | |
1216 | # Be sure to have absolute directory names. | |
82eaf560 | 1217 | case $ac_val in |
cd9a469c | 1218 | [\\/$]* | ?:[\\/]* ) continue;; |
1219 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
4ee9c684 | 1220 | esac |
cd9a469c | 1221 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
4ee9c684 | 1222 | done |
1223 | ||
1224 | # There might be people who depend on the old broken behavior: `$host' | |
1225 | # used to hold the argument of --host etc. | |
1226 | # FIXME: To remove some day. | |
1227 | build=$build_alias | |
1228 | host=$host_alias | |
1229 | target=$target_alias | |
1230 | ||
1231 | # FIXME: To remove some day. | |
1232 | if test "x$host_alias" != x; then | |
1233 | if test "x$build_alias" = x; then | |
1234 | cross_compiling=maybe | |
cd9a469c | 1235 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
4ee9c684 | 1236 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1237 | elif test "x$build_alias" != "x$host_alias"; then | |
1238 | cross_compiling=yes | |
1239 | fi | |
1240 | fi | |
1241 | ||
1242 | ac_tool_prefix= | |
1243 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1244 | ||
1245 | test "$silent" = yes && exec 6>/dev/null | |
1246 | ||
1247 | ||
cd9a469c | 1248 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1249 | ac_ls_di=`ls -di .` && | |
1250 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1251 | as_fn_error "working directory cannot be determined" | |
1252 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1253 | as_fn_error "pwd does not report name of working directory" | |
1254 | ||
1255 | ||
4ee9c684 | 1256 | # Find the source files, if location was not specified. |
1257 | if test -z "$srcdir"; then | |
1258 | ac_srcdir_defaulted=yes | |
cd9a469c | 1259 | # Try the directory containing this script, then the parent directory. |
1260 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1261 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1262 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1263 | X"$as_myself" : 'X\(//\)$' \| \ | |
1264 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1265 | $as_echo X"$as_myself" | | |
1266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1267 | s//\1/ | |
1268 | q | |
1269 | } | |
1270 | /^X\(\/\/\)[^/].*/{ | |
1271 | s//\1/ | |
1272 | q | |
1273 | } | |
1274 | /^X\(\/\/\)$/{ | |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | /^X\(\/\).*/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | s/.*/./; q'` | |
4ee9c684 | 1283 | srcdir=$ac_confdir |
cd9a469c | 1284 | if test ! -r "$srcdir/$ac_unique_file"; then |
4ee9c684 | 1285 | srcdir=.. |
1286 | fi | |
1287 | else | |
1288 | ac_srcdir_defaulted=no | |
1289 | fi | |
cd9a469c | 1290 | if test ! -r "$srcdir/$ac_unique_file"; then |
1291 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1292 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1293 | fi | |
1294 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1295 | ac_abs_confdir=`( | |
1296 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1297 | pwd)` | |
1298 | # When building in place, set srcdir=. | |
1299 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1300 | srcdir=. | |
1301 | fi | |
1302 | # Remove unnecessary trailing slashes from srcdir. | |
1303 | # Double slashes in file names in object file debugging info | |
1304 | # mess up M-x gdb in Emacs. | |
1305 | case $srcdir in | |
1306 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1307 | esac | |
1308 | for ac_var in $ac_precious_vars; do | |
1309 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1310 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1311 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1312 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1313 | done | |
4ee9c684 | 1314 | |
1315 | # | |
1316 | # Report the --help message. | |
1317 | # | |
1318 | if test "$ac_init_help" = "long"; then | |
1319 | # Omit some internal or obsolete options to make the list less imposing. | |
1320 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1321 | cat <<_ACEOF | |
76c0a846 | 1322 | \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. |
4ee9c684 | 1323 | |
1324 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1325 | ||
1326 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1327 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1328 | ||
1329 | Defaults for the options are specified in brackets. | |
1330 | ||
1331 | Configuration: | |
1332 | -h, --help display this help and exit | |
1333 | --help=short display options specific to this package | |
1334 | --help=recursive display the short help of all the included packages | |
1335 | -V, --version display version information and exit | |
1336 | -q, --quiet, --silent do not print \`checking...' messages | |
1337 | --cache-file=FILE cache test results in FILE [disabled] | |
1338 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1339 | -n, --no-create do not create output files | |
1340 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1341 | ||
4ee9c684 | 1342 | Installation directories: |
1343 | --prefix=PREFIX install architecture-independent files in PREFIX | |
cd9a469c | 1344 | [$ac_default_prefix] |
4ee9c684 | 1345 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
cd9a469c | 1346 | [PREFIX] |
4ee9c684 | 1347 | |
1348 | By default, \`make install' will install all the files in | |
1349 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1350 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1351 | for instance \`--prefix=\$HOME'. | |
1352 | ||
1353 | For better control, use the options below. | |
1354 | ||
1355 | Fine tuning of the installation directories: | |
cd9a469c | 1356 | --bindir=DIR user executables [EPREFIX/bin] |
1357 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1358 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1359 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1360 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1361 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1362 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1363 | --includedir=DIR C header files [PREFIX/include] | |
1364 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1365 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1366 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1367 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1368 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1369 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1370 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] | |
1371 | --htmldir=DIR html documentation [DOCDIR] | |
1372 | --dvidir=DIR dvi documentation [DOCDIR] | |
1373 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1374 | --psdir=DIR ps documentation [DOCDIR] | |
4ee9c684 | 1375 | _ACEOF |
1376 | ||
1377 | cat <<\_ACEOF | |
1378 | ||
1379 | Program names: | |
1380 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1381 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1382 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1383 | ||
1384 | System types: | |
1385 | --build=BUILD configure for building on BUILD [guessed] | |
1386 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
90973b19 | 1387 | --target=TARGET configure for building compilers for TARGET [HOST] |
4ee9c684 | 1388 | _ACEOF |
1389 | fi | |
1390 | ||
1391 | if test -n "$ac_init_help"; then | |
1392 | case $ac_init_help in | |
76c0a846 | 1393 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; |
4ee9c684 | 1394 | esac |
1395 | cat <<\_ACEOF | |
1396 | ||
1397 | Optional Features: | |
cd9a469c | 1398 | --disable-option-checking ignore unrecognized --enable/--with options |
4ee9c684 | 1399 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1400 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9d975ae | 1401 | --enable-version-specific-runtime-libs |
1402 | specify that runtime libraries should be installed | |
1403 | in a compiler-specific directory | |
93773f82 | 1404 | --enable-intermodule build the library in one step |
4ee9c684 | 1405 | --enable-maintainer-mode enable make rules and dependencies not useful |
1406 | (and sometimes confusing) to the casual installer | |
90973b19 | 1407 | --enable-multilib build many library versions (default) |
2fd61f51 | 1408 | --disable-dependency-tracking speeds up one-time build |
1409 | --enable-dependency-tracking do not reject slow dependency extractors | |
bbb514dc | 1410 | --disable-symvers disable symbol versioning for libgfortran |
cd9a469c | 1411 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1412 | --enable-static[=PKGS] build static libraries [default=yes] | |
542f9784 | 1413 | --enable-fast-install[=PKGS] |
1414 | optimize for fast installation [default=yes] | |
4ee9c684 | 1415 | --disable-libtool-lock avoid locking (might break parallel builds) |
90e67cff | 1416 | --disable-largefile omit support for large files |
d9d975ae | 1417 | --disable-libquadmath-support |
1418 | disable libquadmath support for Fortran | |
4ee9c684 | 1419 | |
1420 | Optional Packages: | |
1421 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1422 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3e427a9c | 1423 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
542f9784 | 1424 | --with-pic try to use only PIC/non-PIC objects [default=use |
1425 | both] | |
1426 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
4ee9c684 | 1427 | |
1428 | Some influential environment variables: | |
1429 | CC C compiler command | |
1430 | CFLAGS C compiler flags | |
1431 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1432 | nonstandard directory <lib dir> | |
cd9a469c | 1433 | LIBS libraries to pass to the linker, e.g. -l<library> |
1434 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1435 | you have headers in a nonstandard directory <include dir> | |
542f9784 | 1436 | CPP C preprocessor |
6d73cceb | 1437 | FC Fortran compiler command |
1438 | FCFLAGS Fortran compiler flags | |
4ee9c684 | 1439 | |
1440 | Use these variables to override the choices made by `configure' or to help | |
1441 | it to find libraries and programs with nonstandard names/locations. | |
1442 | ||
cd9a469c | 1443 | Report bugs to the package provider. |
1444 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
1445 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
4ee9c684 | 1446 | _ACEOF |
cd9a469c | 1447 | ac_status=$? |
4ee9c684 | 1448 | fi |
1449 | ||
1450 | if test "$ac_init_help" = "recursive"; then | |
1451 | # If there are subdirs, report their specific --help. | |
4ee9c684 | 1452 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
cd9a469c | 1453 | test -d "$ac_dir" || |
1454 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1455 | continue | |
4ee9c684 | 1456 | ac_builddir=. |
1457 | ||
cd9a469c | 1458 | case "$ac_dir" in |
1459 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1460 | *) | |
1461 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1462 | # A ".." for each directory in $ac_dir_suffix. | |
1463 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1464 | case $ac_top_builddir_sub in | |
1465 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1466 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1467 | esac ;; | |
1468 | esac | |
1469 | ac_abs_top_builddir=$ac_pwd | |
1470 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1471 | # for backward compatibility: | |
1472 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 1473 | |
1474 | case $srcdir in | |
cd9a469c | 1475 | .) # We are building in place. |
4ee9c684 | 1476 | ac_srcdir=. |
cd9a469c | 1477 | ac_top_srcdir=$ac_top_builddir_sub |
1478 | ac_abs_top_srcdir=$ac_pwd ;; | |
1479 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 1480 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 1481 | ac_top_srcdir=$srcdir |
1482 | ac_abs_top_srcdir=$srcdir ;; | |
1483 | *) # Relative name. | |
1484 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1485 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1486 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a106dabe | 1487 | esac |
cd9a469c | 1488 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1489 | ||
1490 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1491 | # Check for guested configure. | |
1492 | if test -f "$ac_srcdir/configure.gnu"; then | |
1493 | echo && | |
1494 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1495 | elif test -f "$ac_srcdir/configure"; then | |
1496 | echo && | |
1497 | $SHELL "$ac_srcdir/configure" --help=recursive | |
4ee9c684 | 1498 | else |
cd9a469c | 1499 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1500 | fi || ac_status=$? | |
1501 | cd "$ac_pwd" || { ac_status=$?; break; } | |
4ee9c684 | 1502 | done |
1503 | fi | |
1504 | ||
cd9a469c | 1505 | test -n "$ac_init_help" && exit $ac_status |
4ee9c684 | 1506 | if $ac_init_version; then |
1507 | cat <<\_ACEOF | |
76c0a846 | 1508 | GNU Fortran Runtime Library configure 0.3 |
cd9a469c | 1509 | generated by GNU Autoconf 2.64 |
4ee9c684 | 1510 | |
cd9a469c | 1511 | Copyright (C) 2009 Free Software Foundation, Inc. |
4ee9c684 | 1512 | This configure script is free software; the Free Software Foundation |
1513 | gives unlimited permission to copy, distribute and modify it. | |
1514 | _ACEOF | |
cd9a469c | 1515 | exit |
4ee9c684 | 1516 | fi |
4ee9c684 | 1517 | |
cd9a469c | 1518 | ## ------------------------ ## |
1519 | ## Autoconf initialization. ## | |
1520 | ## ------------------------ ## | |
4ee9c684 | 1521 | |
cd9a469c | 1522 | # ac_fn_c_try_compile LINENO |
1523 | # -------------------------- | |
1524 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1525 | ac_fn_c_try_compile () | |
1526 | { | |
1527 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1528 | rm -f conftest.$ac_objext | |
1529 | if { { ac_try="$ac_compile" | |
1530 | case "(($ac_try" in | |
1531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1532 | *) ac_try_echo=$ac_try;; | |
1533 | esac | |
1534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1535 | $as_echo "$ac_try_echo"; } >&5 | |
1536 | (eval "$ac_compile") 2>conftest.err | |
1537 | ac_status=$? | |
1538 | if test -s conftest.err; then | |
1539 | grep -v '^ *+' conftest.err >conftest.er1 | |
1540 | cat conftest.er1 >&5 | |
1541 | mv -f conftest.er1 conftest.err | |
1542 | fi | |
1543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1544 | test $ac_status = 0; } && { | |
1545 | test -z "$ac_c_werror_flag" || | |
1546 | test ! -s conftest.err | |
1547 | } && test -s conftest.$ac_objext; then : | |
1548 | ac_retval=0 | |
1549 | else | |
1550 | $as_echo "$as_me: failed program was:" >&5 | |
1551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1552 | |
cd9a469c | 1553 | ac_retval=1 |
1554 | fi | |
1555 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1556 | return $ac_retval | |
1557 | ||
1558 | } # ac_fn_c_try_compile | |
1559 | ||
d5d92632 | 1560 | # ac_fn_c_try_cpp LINENO |
1561 | # ---------------------- | |
1562 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1563 | ac_fn_c_try_cpp () | |
4ee9c684 | 1564 | { |
cd9a469c | 1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
d5d92632 | 1566 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
cd9a469c | 1567 | case "(($ac_try" in |
1568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1569 | *) ac_try_echo=$ac_try;; | |
1570 | esac | |
1571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1572 | $as_echo "$ac_try_echo"; } >&5 | |
d5d92632 | 1573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
cd9a469c | 1574 | ac_status=$? |
1575 | if test -s conftest.err; then | |
1576 | grep -v '^ *+' conftest.err >conftest.er1 | |
1577 | cat conftest.er1 >&5 | |
1578 | mv -f conftest.er1 conftest.err | |
1579 | fi | |
1580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d5d92632 | 1581 | test $ac_status = 0; } >/dev/null && { |
1582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
cd9a469c | 1583 | test ! -s conftest.err |
cd9a469c | 1584 | }; then : |
1585 | ac_retval=0 | |
1586 | else | |
1587 | $as_echo "$as_me: failed program was:" >&5 | |
1588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1589 | |
d5d92632 | 1590 | ac_retval=1 |
cd9a469c | 1591 | fi |
cd9a469c | 1592 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1593 | return $ac_retval | |
4ee9c684 | 1594 | |
d5d92632 | 1595 | } # ac_fn_c_try_cpp |
4ee9c684 | 1596 | |
d5d92632 | 1597 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
cd9a469c | 1598 | # ------------------------------------------------------- |
d5d92632 | 1599 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1600 | # the include files in INCLUDES and setting the cache variable VAR | |
1601 | # accordingly. | |
1602 | ac_fn_c_check_header_mongrel () | |
cd9a469c | 1603 | { |
1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d5d92632 | 1605 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cd9a469c | 1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1607 | $as_echo_n "checking for $2... " >&6; } | |
1608 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1609 | $as_echo_n "(cached) " >&6 | |
d5d92632 | 1610 | fi |
1611 | eval ac_res=\$$3 | |
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1613 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1614 | else |
d5d92632 | 1615 | # Is the header compilable? |
1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1617 | $as_echo_n "checking $2 usability... " >&6; } | |
1618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 1619 | /* end confdefs.h. */ |
1620 | $4 | |
1621 | #include <$2> | |
1622 | _ACEOF | |
1623 | if ac_fn_c_try_compile "$LINENO"; then : | |
d5d92632 | 1624 | ac_header_compiler=yes |
cd9a469c | 1625 | else |
d5d92632 | 1626 | ac_header_compiler=no |
cd9a469c | 1627 | fi |
1628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d5d92632 | 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1630 | $as_echo "$ac_header_compiler" >&6; } | |
4ee9c684 | 1631 | |
d5d92632 | 1632 | # Is the header present? |
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1634 | $as_echo_n "checking $2 presence... " >&6; } | |
1635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1636 | /* end confdefs.h. */ | |
1637 | #include <$2> | |
1638 | _ACEOF | |
1639 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1640 | ac_header_preproc=yes | |
1641 | else | |
1642 | ac_header_preproc=no | |
1643 | fi | |
1644 | rm -f conftest.err conftest.$ac_ext | |
1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1646 | $as_echo "$ac_header_preproc" >&6; } | |
4ee9c684 | 1647 | |
d5d92632 | 1648 | # So? What about this header? |
1649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1650 | yes:no: ) | |
1651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1652 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1654 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1655 | ;; | |
1656 | no:yes:* ) | |
1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1658 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1660 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1662 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1664 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1666 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1667 | ;; | |
cd9a469c | 1668 | esac |
d5d92632 | 1669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1670 | $as_echo_n "checking for $2... " >&6; } | |
1671 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1672 | $as_echo_n "(cached) " >&6 | |
cd9a469c | 1673 | else |
d5d92632 | 1674 | eval "$3=\$ac_header_compiler" |
1675 | fi | |
1676 | eval ac_res=\$$3 | |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1678 | $as_echo "$ac_res" >&6; } | |
cd9a469c | 1679 | fi |
1680 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 1681 | |
d5d92632 | 1682 | } # ac_fn_c_check_header_mongrel |
4ee9c684 | 1683 | |
cd9a469c | 1684 | # ac_fn_c_try_run LINENO |
1685 | # ---------------------- | |
1686 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1687 | # that executables *can* be run. | |
1688 | ac_fn_c_try_run () | |
1689 | { | |
1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1691 | if { { ac_try="$ac_link" | |
1692 | case "(($ac_try" in | |
1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1694 | *) ac_try_echo=$ac_try;; | |
1695 | esac | |
1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1697 | $as_echo "$ac_try_echo"; } >&5 | |
1698 | (eval "$ac_link") 2>&5 | |
1699 | ac_status=$? | |
1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1701 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1702 | { { case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_try") 2>&5 | |
1709 | ac_status=$? | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; }; }; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1715 | $as_echo "$as_me: failed program was:" >&5 | |
1716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1717 | |
cd9a469c | 1718 | ac_retval=$ac_status |
1719 | fi | |
1720 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1721 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1722 | return $ac_retval | |
4ee9c684 | 1723 | |
cd9a469c | 1724 | } # ac_fn_c_try_run |
4ee9c684 | 1725 | |
d5d92632 | 1726 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1727 | # ------------------------------------------------------- | |
1728 | # Tests whether HEADER exists and can be compiled using the include files in | |
1729 | # INCLUDES, setting the cache variable VAR accordingly. | |
1730 | ac_fn_c_check_header_compile () | |
1731 | { | |
1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1734 | $as_echo_n "checking for $2... " >&6; } | |
1735 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1736 | $as_echo_n "(cached) " >&6 | |
1737 | else | |
1738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1739 | /* end confdefs.h. */ | |
1740 | $4 | |
1741 | #include <$2> | |
1742 | _ACEOF | |
1743 | if ac_fn_c_try_compile "$LINENO"; then : | |
1744 | eval "$3=yes" | |
1745 | else | |
1746 | eval "$3=no" | |
1747 | fi | |
1748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1749 | fi | |
1750 | eval ac_res=\$$3 | |
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1752 | $as_echo "$ac_res" >&6; } | |
1753 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1754 | ||
1755 | } # ac_fn_c_check_header_compile | |
1756 | ||
1757 | # ac_fn_c_try_link LINENO | |
1758 | # ----------------------- | |
1759 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1760 | ac_fn_c_try_link () | |
1761 | { | |
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
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>conftest.err | |
1772 | ac_status=$? | |
1773 | if test -s conftest.err; then | |
1774 | grep -v '^ *+' conftest.err >conftest.er1 | |
1775 | cat conftest.er1 >&5 | |
1776 | mv -f conftest.er1 conftest.err | |
1777 | fi | |
1778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1779 | test $ac_status = 0; } && { | |
1780 | test -z "$ac_c_werror_flag" || | |
1781 | test ! -s conftest.err | |
1782 | } && test -s conftest$ac_exeext && { | |
1783 | test "$cross_compiling" = yes || | |
1784 | $as_test_x conftest$ac_exeext | |
1785 | }; then : | |
1786 | ac_retval=0 | |
1787 | else | |
1788 | $as_echo "$as_me: failed program was:" >&5 | |
1789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1790 | ||
1791 | ac_retval=1 | |
1792 | fi | |
1793 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1794 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1795 | # interfere with the next link command; also delete a directory that is | |
1796 | # left behind by Apple's compiler. We do this before executing the actions. | |
1797 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1798 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1799 | return $ac_retval | |
1800 | ||
1801 | } # ac_fn_c_try_link | |
1802 | ||
cd9a469c | 1803 | # ac_fn_c_check_func LINENO FUNC VAR |
1804 | # ---------------------------------- | |
1805 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1806 | ac_fn_c_check_func () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1810 | $as_echo_n "checking for $2... " >&6; } | |
1811 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1812 | $as_echo_n "(cached) " >&6 | |
1813 | else | |
1814 | if test x$gcc_no_link = xyes; then | |
1815 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
1816 | fi | |
1817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1818 | /* end confdefs.h. */ | |
1819 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1820 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1821 | #define $2 innocuous_$2 | |
4ee9c684 | 1822 | |
cd9a469c | 1823 | /* System header to define __stub macros and hopefully few prototypes, |
1824 | which can conflict with char $2 (); below. | |
1825 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1826 | <limits.h> exists even on freestanding compilers. */ | |
4ee9c684 | 1827 | |
cd9a469c | 1828 | #ifdef __STDC__ |
1829 | # include <limits.h> | |
1830 | #else | |
1831 | # include <assert.h> | |
1832 | #endif | |
4ee9c684 | 1833 | |
cd9a469c | 1834 | #undef $2 |
1835 | ||
1836 | /* Override any GCC internal prototype to avoid an error. | |
1837 | Use char because int might match the return type of a GCC | |
1838 | builtin and then its argument prototype would still apply. */ | |
1839 | #ifdef __cplusplus | |
1840 | extern "C" | |
1841 | #endif | |
1842 | char $2 (); | |
1843 | /* The GNU C library defines this for functions which it implements | |
1844 | to always fail with ENOSYS. Some functions are actually named | |
1845 | something starting with __ and the normal name is an alias. */ | |
1846 | #if defined __stub_$2 || defined __stub___$2 | |
1847 | choke me | |
1848 | #endif | |
1849 | ||
1850 | int | |
1851 | main () | |
82eaf560 | 1852 | { |
cd9a469c | 1853 | return $2 (); |
1854 | ; | |
1855 | return 0; | |
82eaf560 | 1856 | } |
cd9a469c | 1857 | _ACEOF |
1858 | if ac_fn_c_try_link "$LINENO"; then : | |
1859 | eval "$3=yes" | |
1860 | else | |
1861 | eval "$3=no" | |
1862 | fi | |
1863 | rm -f core conftest.err conftest.$ac_objext \ | |
1864 | conftest$ac_exeext conftest.$ac_ext | |
1865 | fi | |
1866 | eval ac_res=\$$3 | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1868 | $as_echo "$ac_res" >&6; } | |
1869 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 1870 | |
cd9a469c | 1871 | } # ac_fn_c_check_func |
4ee9c684 | 1872 | |
cd9a469c | 1873 | # ac_fn_fc_try_compile LINENO |
1874 | # --------------------------- | |
1875 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1876 | ac_fn_fc_try_compile () | |
1877 | { | |
1878 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1879 | rm -f conftest.$ac_objext | |
1880 | if { { ac_try="$ac_compile" | |
1881 | case "(($ac_try" in | |
1882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1883 | *) ac_try_echo=$ac_try;; | |
1884 | esac | |
1885 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1886 | $as_echo "$ac_try_echo"; } >&5 | |
1887 | (eval "$ac_compile") 2>conftest.err | |
1888 | ac_status=$? | |
1889 | if test -s conftest.err; then | |
1890 | grep -v '^ *+' conftest.err >conftest.er1 | |
1891 | cat conftest.er1 >&5 | |
1892 | mv -f conftest.er1 conftest.err | |
1893 | fi | |
1894 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1895 | test $ac_status = 0; } && { | |
1896 | test -z "$ac_fc_werror_flag" || | |
1897 | test ! -s conftest.err | |
1898 | } && test -s conftest.$ac_objext; then : | |
1899 | ac_retval=0 | |
1900 | else | |
1901 | $as_echo "$as_me: failed program was:" >&5 | |
1902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1903 | |
cd9a469c | 1904 | ac_retval=1 |
1905 | fi | |
1906 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1907 | return $ac_retval | |
4ee9c684 | 1908 | |
cd9a469c | 1909 | } # ac_fn_fc_try_compile |
4ee9c684 | 1910 | |
cd9a469c | 1911 | # ac_fn_fc_try_link LINENO |
1912 | # ------------------------ | |
1913 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1914 | ac_fn_fc_try_link () | |
1915 | { | |
1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1918 | if { { ac_try="$ac_link" | |
1919 | case "(($ac_try" in | |
1920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1921 | *) ac_try_echo=$ac_try;; | |
1922 | esac | |
1923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1924 | $as_echo "$ac_try_echo"; } >&5 | |
1925 | (eval "$ac_link") 2>conftest.err | |
1926 | ac_status=$? | |
1927 | if test -s conftest.err; then | |
1928 | grep -v '^ *+' conftest.err >conftest.er1 | |
1929 | cat conftest.er1 >&5 | |
1930 | mv -f conftest.er1 conftest.err | |
1931 | fi | |
1932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1933 | test $ac_status = 0; } && { | |
1934 | test -z "$ac_fc_werror_flag" || | |
1935 | test ! -s conftest.err | |
1936 | } && test -s conftest$ac_exeext && { | |
1937 | test "$cross_compiling" = yes || | |
1938 | $as_test_x conftest$ac_exeext | |
1939 | }; then : | |
1940 | ac_retval=0 | |
1941 | else | |
1942 | $as_echo "$as_me: failed program was:" >&5 | |
1943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4ee9c684 | 1944 | |
cd9a469c | 1945 | ac_retval=1 |
1946 | fi | |
1947 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1948 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1949 | # interfere with the next link command; also delete a directory that is | |
1950 | # left behind by Apple's compiler. We do this before executing the actions. | |
1951 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1952 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1953 | return $ac_retval | |
4ee9c684 | 1954 | |
cd9a469c | 1955 | } # ac_fn_fc_try_link |
4ee9c684 | 1956 | |
cd9a469c | 1957 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1958 | # ------------------------------------------- | |
1959 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1960 | # variable VAR accordingly. | |
1961 | ac_fn_c_check_type () | |
1962 | { | |
1963 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1965 | $as_echo_n "checking for $2... " >&6; } | |
1966 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1967 | $as_echo_n "(cached) " >&6 | |
1968 | else | |
1969 | eval "$3=no" | |
1970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1971 | /* end confdefs.h. */ | |
1972 | $4 | |
1973 | int | |
1974 | main () | |
1975 | { | |
1976 | if (sizeof ($2)) | |
1977 | return 0; | |
1978 | ; | |
1979 | return 0; | |
1980 | } | |
4ee9c684 | 1981 | _ACEOF |
cd9a469c | 1982 | if ac_fn_c_try_compile "$LINENO"; then : |
1983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1984 | /* end confdefs.h. */ | |
1985 | $4 | |
1986 | int | |
1987 | main () | |
1988 | { | |
1989 | if (sizeof (($2))) | |
1990 | return 0; | |
1991 | ; | |
1992 | return 0; | |
1993 | } | |
4ee9c684 | 1994 | _ACEOF |
cd9a469c | 1995 | if ac_fn_c_try_compile "$LINENO"; then : |
4ee9c684 | 1996 | |
cd9a469c | 1997 | else |
1998 | eval "$3=yes" | |
1999 | fi | |
2000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2001 | fi | |
2002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2003 | fi | |
2004 | eval ac_res=\$$3 | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2006 | $as_echo "$ac_res" >&6; } | |
2007 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 2008 | |
cd9a469c | 2009 | } # ac_fn_c_check_type |
4ee9c684 | 2010 | |
d5d92632 | 2011 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2012 | # -------------------------------------------- | |
2013 | # Tries to find the compile-time value of EXPR in a program that includes | |
2014 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2015 | # computed | |
2016 | ac_fn_c_compute_int () | |
cd9a469c | 2017 | { |
2018 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2069752c | 2019 | if test "$cross_compiling" = yes; then |
2020 | # Depending upon the size, compute the lo and hi bounds. | |
2021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2022 | /* end confdefs.h. */ |
2069752c | 2023 | $4 |
cd9a469c | 2024 | int |
2025 | main () | |
2026 | { | |
2069752c | 2027 | static int test_array [1 - 2 * !(($2) >= 0)]; |
cd9a469c | 2028 | test_array [0] = 0 |
4ee9c684 | 2029 | |
cd9a469c | 2030 | ; |
2031 | return 0; | |
2032 | } | |
2033 | _ACEOF | |
2034 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2035 | ac_lo=0 ac_mid=0 |
2036 | while :; do | |
2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2038 | /* end confdefs.h. */ |
2069752c | 2039 | $4 |
cd9a469c | 2040 | int |
2041 | main () | |
2042 | { | |
2069752c | 2043 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
cd9a469c | 2044 | test_array [0] = 0 |
4ee9c684 | 2045 | |
cd9a469c | 2046 | ; |
2047 | return 0; | |
2048 | } | |
2049 | _ACEOF | |
2050 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2051 | ac_hi=$ac_mid; break |
cd9a469c | 2052 | else |
2069752c | 2053 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2054 | if test $ac_lo -le $ac_mid; then | |
2055 | ac_lo= ac_hi= | |
2056 | break | |
2057 | fi | |
2058 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
cd9a469c | 2059 | fi |
2060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2061 | done |
2062 | else | |
2063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2064 | /* end confdefs.h. */ | |
2065 | $4 | |
2066 | int | |
2067 | main () | |
2068 | { | |
2069 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2070 | test_array [0] = 0 | |
2071 | ||
2072 | ; | |
2073 | return 0; | |
2074 | } | |
2075 | _ACEOF | |
2076 | if ac_fn_c_try_compile "$LINENO"; then : | |
2077 | ac_hi=-1 ac_mid=-1 | |
2078 | while :; do | |
2079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2080 | /* end confdefs.h. */ | |
2081 | $4 | |
2082 | int | |
2083 | main () | |
2084 | { | |
2085 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2086 | test_array [0] = 0 | |
2087 | ||
2088 | ; | |
2089 | return 0; | |
2090 | } | |
2091 | _ACEOF | |
2092 | if ac_fn_c_try_compile "$LINENO"; then : | |
2093 | ac_lo=$ac_mid; break | |
2094 | else | |
2095 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2096 | if test $ac_mid -le $ac_hi; then | |
2097 | ac_lo= ac_hi= | |
2098 | break | |
2099 | fi | |
2100 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
cd9a469c | 2101 | fi |
2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2103 | done |
ea6b3890 | 2104 | else |
2069752c | 2105 | ac_lo= ac_hi= |
cd9a469c | 2106 | fi |
2069752c | 2107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea6b3890 | 2108 | fi |
2069752c | 2109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2110 | # Binary search between lo and hi bounds. | |
2111 | while test "x$ac_lo" != "x$ac_hi"; do | |
2112 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cd9a469c | 2114 | /* end confdefs.h. */ |
2069752c | 2115 | $4 |
cd9a469c | 2116 | int |
2117 | main () | |
2118 | { | |
2069752c | 2119 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
cd9a469c | 2120 | test_array [0] = 0 |
4ee9c684 | 2121 | |
cd9a469c | 2122 | ; |
2123 | return 0; | |
2124 | } | |
2125 | _ACEOF | |
2126 | if ac_fn_c_try_compile "$LINENO"; then : | |
2069752c | 2127 | ac_hi=$ac_mid |
2128 | else | |
2129 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
cd9a469c | 2130 | fi |
2131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2069752c | 2132 | done |
2133 | case $ac_lo in #(( | |
2134 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2135 | '') ac_retval=1 ;; | |
2136 | esac | |
2137 | else | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | $4 | |
2141 | static long int longval () { return $2; } | |
2142 | static unsigned long int ulongval () { return $2; } | |
2143 | #include <stdio.h> | |
2144 | #include <stdlib.h> | |
2145 | int | |
2146 | main () | |
2147 | { | |
4ee9c684 | 2148 | |
2069752c | 2149 | FILE *f = fopen ("conftest.val", "w"); |
2150 | if (! f) | |
2151 | return 1; | |
2152 | if (($2) < 0) | |
2153 | { | |
2154 | long int i = longval (); | |
2155 | if (i != ($2)) | |
2156 | return 1; | |
2157 | fprintf (f, "%ld", i); | |
2158 | } | |
2159 | else | |
2160 | { | |
2161 | unsigned long int i = ulongval (); | |
2162 | if (i != ($2)) | |
2163 | return 1; | |
2164 | fprintf (f, "%lu", i); | |
2165 | } | |
2166 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2167 | on some platforms. */ | |
2168 | return ferror (f) || fclose (f) != 0; | |
2169 | ||
2170 | ; | |
2171 | return 0; | |
2172 | } | |
2173 | _ACEOF | |
2174 | if ac_fn_c_try_run "$LINENO"; then : | |
2175 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
cd9a469c | 2176 | else |
2069752c | 2177 | ac_retval=1 |
ea6b3890 | 2178 | fi |
2069752c | 2179 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2180 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2181 | rm -f conftest.val | |
2182 | ||
2183 | fi | |
cd9a469c | 2184 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2069752c | 2185 | return $ac_retval |
4ee9c684 | 2186 | |
2069752c | 2187 | } # ac_fn_c_compute_int |
4ee9c684 | 2188 | |
cd9a469c | 2189 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2190 | # ---------------------------------------------------- | |
2191 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2192 | # INCLUDES, setting cache variable VAR accordingly. | |
2193 | ac_fn_c_check_member () | |
2194 | { | |
2195 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2197 | $as_echo_n "checking for $2.$3... " >&6; } | |
2198 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2199 | $as_echo_n "(cached) " >&6 | |
2200 | else | |
2201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2202 | /* end confdefs.h. */ | |
2203 | $5 | |
2204 | int | |
2205 | main () | |
2206 | { | |
2207 | static $2 ac_aggr; | |
2208 | if (ac_aggr.$3) | |
2209 | return 0; | |
2210 | ; | |
2211 | return 0; | |
2212 | } | |
2213 | _ACEOF | |
2214 | if ac_fn_c_try_compile "$LINENO"; then : | |
2215 | eval "$4=yes" | |
2216 | else | |
2217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2218 | /* end confdefs.h. */ | |
2219 | $5 | |
2220 | int | |
2221 | main () | |
2222 | { | |
2223 | static $2 ac_aggr; | |
2224 | if (sizeof ac_aggr.$3) | |
2225 | return 0; | |
2226 | ; | |
2227 | return 0; | |
2228 | } | |
2229 | _ACEOF | |
2230 | if ac_fn_c_try_compile "$LINENO"; then : | |
2231 | eval "$4=yes" | |
2232 | else | |
2233 | eval "$4=no" | |
2234 | fi | |
2235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2236 | fi | |
2237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2238 | fi | |
2239 | eval ac_res=\$$4 | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2241 | $as_echo "$ac_res" >&6; } | |
2242 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
4ee9c684 | 2243 | |
cd9a469c | 2244 | } # ac_fn_c_check_member |
2245 | cat >config.log <<_ACEOF | |
2246 | This file contains any messages produced by compilers while | |
2247 | running configure, to aid debugging if configure makes a mistake. | |
4ee9c684 | 2248 | |
cd9a469c | 2249 | It was created by GNU Fortran Runtime Library $as_me 0.3, which was |
2250 | generated by GNU Autoconf 2.64. Invocation command line was | |
4ee9c684 | 2251 | |
cd9a469c | 2252 | $ $0 $@ |
4ee9c684 | 2253 | |
cd9a469c | 2254 | _ACEOF |
2255 | exec 5>>config.log | |
2256 | { | |
2257 | cat <<_ASUNAME | |
2258 | ## --------- ## | |
2259 | ## Platform. ## | |
2260 | ## --------- ## | |
4ee9c684 | 2261 | |
cd9a469c | 2262 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2263 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2264 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2265 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2266 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
4ee9c684 | 2267 | |
cd9a469c | 2268 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2269 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
4ee9c684 | 2270 | |
cd9a469c | 2271 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2272 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2273 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2274 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2275 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2276 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2277 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
4ee9c684 | 2278 | |
cd9a469c | 2279 | _ASUNAME |
5b2c7553 | 2280 | |
cd9a469c | 2281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2282 | for as_dir in $PATH | |
2283 | do | |
2284 | IFS=$as_save_IFS | |
2285 | test -z "$as_dir" && as_dir=. | |
2286 | $as_echo "PATH: $as_dir" | |
2287 | done | |
2288 | IFS=$as_save_IFS | |
5b2c7553 | 2289 | |
cd9a469c | 2290 | } >&5 |
5b2c7553 | 2291 | |
cd9a469c | 2292 | cat >&5 <<_ACEOF |
4ee9c684 | 2293 | |
2294 | ||
cd9a469c | 2295 | ## ----------- ## |
2296 | ## Core tests. ## | |
2297 | ## ----------- ## | |
a106dabe | 2298 | |
cd9a469c | 2299 | _ACEOF |
82eaf560 | 2300 | |
90973b19 | 2301 | |
cd9a469c | 2302 | # Keep a trace of the command line. |
2303 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2304 | # Strip out --silent because we don't want to record it for future runs. | |
2305 | # Also quote any args containing shell meta-characters. | |
2306 | # Make two passes to allow for proper duplicate-argument suppression. | |
2307 | ac_configure_args= | |
2308 | ac_configure_args0= | |
2309 | ac_configure_args1= | |
2310 | ac_must_keep_next=false | |
2311 | for ac_pass in 1 2 | |
2312 | do | |
2313 | for ac_arg | |
2314 | do | |
2315 | case $ac_arg in | |
2316 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2317 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2318 | | -silent | --silent | --silen | --sile | --sil) | |
2319 | continue ;; | |
2320 | *\'*) | |
2321 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2322 | esac | |
2323 | case $ac_pass in | |
2324 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2325 | 2) | |
2326 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2327 | if test $ac_must_keep_next = true; then | |
2328 | ac_must_keep_next=false # Got value, back to normal. | |
2329 | else | |
2330 | case $ac_arg in | |
2331 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2332 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2333 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2334 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2335 | case "$ac_configure_args0 " in | |
2336 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2337 | esac | |
2338 | ;; | |
2339 | -* ) ac_must_keep_next=true ;; | |
2340 | esac | |
2341 | fi | |
2342 | as_fn_append ac_configure_args " '$ac_arg'" | |
2343 | ;; | |
2344 | esac | |
2345 | done | |
4ee9c684 | 2346 | done |
cd9a469c | 2347 | { ac_configure_args0=; unset ac_configure_args0;} |
2348 | { ac_configure_args1=; unset ac_configure_args1;} | |
90973b19 | 2349 | |
cd9a469c | 2350 | # When interrupted or exit'd, cleanup temporary files, and complete |
2351 | # config.log. We remove comments because anyway the quotes in there | |
2352 | # would cause problems or look ugly. | |
2353 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2354 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2355 | trap 'exit_status=$? | |
2356 | # Save into config.log some information that might help in debugging. | |
2357 | { | |
2358 | echo | |
90973b19 | 2359 | |
cd9a469c | 2360 | cat <<\_ASBOX |
2361 | ## ---------------- ## | |
2362 | ## Cache variables. ## | |
2363 | ## ---------------- ## | |
2364 | _ASBOX | |
2365 | echo | |
2366 | # The following way of writing the cache mishandles newlines in values, | |
2367 | ( | |
2368 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2369 | eval ac_val=\$$ac_var | |
2370 | case $ac_val in #( | |
2371 | *${as_nl}*) | |
2372 | case $ac_var in #( | |
2373 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2374 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2375 | esac | |
2376 | case $ac_var in #( | |
2377 | _ | IFS | as_nl) ;; #( | |
2378 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2379 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2380 | esac ;; | |
2381 | esac | |
2382 | done | |
2383 | (set) 2>&1 | | |
2384 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2385 | *${as_nl}ac_space=\ *) | |
2386 | sed -n \ | |
2387 | "s/'\''/'\''\\\\'\'''\''/g; | |
2388 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2389 | ;; #( | |
2390 | *) | |
2391 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2392 | ;; | |
2393 | esac | | |
2394 | sort | |
2395 | ) | |
2396 | echo | |
2397 | ||
2398 | cat <<\_ASBOX | |
2399 | ## ----------------- ## | |
2400 | ## Output variables. ## | |
2401 | ## ----------------- ## | |
2402 | _ASBOX | |
2403 | echo | |
2404 | for ac_var in $ac_subst_vars | |
2405 | do | |
2406 | eval ac_val=\$$ac_var | |
2407 | case $ac_val in | |
2408 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2409 | esac | |
2410 | $as_echo "$ac_var='\''$ac_val'\''" | |
2411 | done | sort | |
2412 | echo | |
2413 | ||
2414 | if test -n "$ac_subst_files"; then | |
2415 | cat <<\_ASBOX | |
2416 | ## ------------------- ## | |
2417 | ## File substitutions. ## | |
2418 | ## ------------------- ## | |
2419 | _ASBOX | |
2420 | echo | |
2421 | for ac_var in $ac_subst_files | |
2422 | do | |
2423 | eval ac_val=\$$ac_var | |
2424 | case $ac_val in | |
2425 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2426 | esac | |
2427 | $as_echo "$ac_var='\''$ac_val'\''" | |
2428 | done | sort | |
2429 | echo | |
2430 | fi | |
2431 | ||
2432 | if test -s confdefs.h; then | |
2433 | cat <<\_ASBOX | |
2434 | ## ----------- ## | |
2435 | ## confdefs.h. ## | |
2436 | ## ----------- ## | |
2437 | _ASBOX | |
2438 | echo | |
2439 | cat confdefs.h | |
2440 | echo | |
2441 | fi | |
2442 | test "$ac_signal" != 0 && | |
2443 | $as_echo "$as_me: caught signal $ac_signal" | |
2444 | $as_echo "$as_me: exit $exit_status" | |
2445 | } >&5 | |
2446 | rm -f core *.core core.conftest.* && | |
2447 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2448 | exit $exit_status | |
2449 | ' 0 | |
2450 | for ac_signal in 1 2 13 15; do | |
2451 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2452 | done | |
2453 | ac_signal=0 | |
2454 | ||
2455 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2456 | rm -f -r conftest* confdefs.h | |
2457 | ||
2458 | $as_echo "/* confdefs.h */" > confdefs.h | |
2459 | ||
2460 | # Predefined preprocessor variables. | |
2461 | ||
2462 | cat >>confdefs.h <<_ACEOF | |
2463 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2464 | _ACEOF | |
2465 | ||
2466 | cat >>confdefs.h <<_ACEOF | |
2467 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2468 | _ACEOF | |
2469 | ||
2470 | cat >>confdefs.h <<_ACEOF | |
2471 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2472 | _ACEOF | |
2473 | ||
2474 | cat >>confdefs.h <<_ACEOF | |
2475 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2476 | _ACEOF | |
2477 | ||
2478 | cat >>confdefs.h <<_ACEOF | |
2479 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2480 | _ACEOF | |
2481 | ||
2482 | cat >>confdefs.h <<_ACEOF | |
2483 | #define PACKAGE_URL "$PACKAGE_URL" | |
2484 | _ACEOF | |
2485 | ||
2486 | ||
2487 | # Let the site file select an alternate cache file if it wants to. | |
2488 | # Prefer an explicitly selected file to automatically selected ones. | |
2489 | ac_site_file1=NONE | |
2490 | ac_site_file2=NONE | |
2491 | if test -n "$CONFIG_SITE"; then | |
2492 | ac_site_file1=$CONFIG_SITE | |
2493 | elif test "x$prefix" != xNONE; then | |
2494 | ac_site_file1=$prefix/share/config.site | |
2495 | ac_site_file2=$prefix/etc/config.site | |
2496 | else | |
2497 | ac_site_file1=$ac_default_prefix/share/config.site | |
2498 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2499 | fi | |
2500 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2501 | do | |
2502 | test "x$ac_site_file" = xNONE && continue | |
2503 | if test -r "$ac_site_file"; then | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2505 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2506 | sed 's/^/| /' "$ac_site_file" >&5 | |
2507 | . "$ac_site_file" | |
2508 | fi | |
2509 | done | |
2510 | ||
2511 | if test -r "$cache_file"; then | |
2512 | # Some versions of bash will fail to source /dev/null (special | |
2513 | # files actually), so we avoid doing that. | |
2514 | if test -f "$cache_file"; then | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2516 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2517 | case $cache_file in | |
2518 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2519 | *) . "./$cache_file";; | |
2520 | esac | |
2521 | fi | |
2522 | else | |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2524 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2525 | >$cache_file | |
2526 | fi | |
2527 | ||
2528 | # Check that the precious variables saved in the cache have kept the same | |
2529 | # value. | |
2530 | ac_cache_corrupted=false | |
2531 | for ac_var in $ac_precious_vars; do | |
2532 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2533 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2534 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2535 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2536 | case $ac_old_set,$ac_new_set in | |
2537 | set,) | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2539 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2540 | ac_cache_corrupted=: ;; | |
2541 | ,set) | |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2543 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2544 | ac_cache_corrupted=: ;; | |
2545 | ,);; | |
2546 | *) | |
2547 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2548 | # differences in whitespace do not lead to failure. | |
2549 | ac_old_val_w=`echo x $ac_old_val` | |
2550 | ac_new_val_w=`echo x $ac_new_val` | |
2551 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2553 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2554 | ac_cache_corrupted=: | |
2555 | else | |
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2557 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2558 | eval $ac_var=\$ac_old_val | |
2559 | fi | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2561 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2563 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2564 | fi;; | |
2565 | esac | |
2566 | # Pass precious variables to config.status. | |
2567 | if test "$ac_new_set" = set; then | |
2568 | case $ac_new_val in | |
2569 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2570 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2571 | esac | |
2572 | case " $ac_configure_args " in | |
2573 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2574 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2575 | esac | |
2576 | fi | |
2577 | done | |
2578 | if $ac_cache_corrupted; then | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2580 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2582 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2583 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2584 | fi | |
2585 | ## -------------------- ## | |
2586 | ## Main body of script. ## | |
2587 | ## -------------------- ## | |
2588 | ||
2589 | ac_ext=c | |
2590 | ac_cpp='$CPP $CPPFLAGS' | |
2591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ac_config_headers="$ac_config_headers config.h" | |
2600 | ||
2601 | ac_aux_dir= | |
2602 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2603 | for ac_t in install-sh install.sh shtool; do | |
2604 | if test -f "$ac_dir/$ac_t"; then | |
2605 | ac_aux_dir=$ac_dir | |
2606 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2607 | break 2 | |
2608 | fi | |
2609 | done | |
2610 | done | |
2611 | if test -z "$ac_aux_dir"; then | |
2612 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2613 | fi | |
2614 | ||
2615 | # These three variables are undocumented and unsupported, | |
2616 | # and are intended to be withdrawn in a future Autoconf release. | |
2617 | # They can cause serious problems if a builder's source tree is in a directory | |
2618 | # whose full name contains unusual characters. | |
2619 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2620 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2621 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2622 | ||
2623 | ||
2624 | # Make sure we can run config.sub. | |
2625 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2626 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2627 | ||
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2629 | $as_echo_n "checking build system type... " >&6; } | |
2630 | if test "${ac_cv_build+set}" = set; then : | |
2631 | $as_echo_n "(cached) " >&6 | |
2632 | else | |
2633 | ac_build_alias=$build_alias | |
2634 | test "x$ac_build_alias" = x && | |
2635 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2636 | test "x$ac_build_alias" = x && | |
2637 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2638 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2639 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2640 | ||
2641 | fi | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2643 | $as_echo "$ac_cv_build" >&6; } | |
2644 | case $ac_cv_build in | |
2645 | *-*-*) ;; | |
2646 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2647 | esac | |
2648 | build=$ac_cv_build | |
2649 | ac_save_IFS=$IFS; IFS='-' | |
2650 | set x $ac_cv_build | |
2651 | shift | |
2652 | build_cpu=$1 | |
2653 | build_vendor=$2 | |
2654 | shift; shift | |
2655 | # Remember, the first character of IFS is used to create $*, | |
2656 | # except with old shells: | |
2657 | build_os=$* | |
2658 | IFS=$ac_save_IFS | |
2659 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2660 | ||
2661 | ||
2662 | case ${build_alias} in | |
2663 | "") build_noncanonical=${build} ;; | |
2664 | *) build_noncanonical=${build_alias} ;; | |
2665 | esac | |
4c82c0dd | 2666 | |
2667 | case ${host_alias} in | |
2668 | "") host_noncanonical=${build_noncanonical} ;; | |
2669 | *) host_noncanonical=${host_alias} ;; | |
2670 | esac | |
2671 | ||
2672 | case ${target_alias} in | |
2673 | "") target_noncanonical=${host_noncanonical} ;; | |
2674 | *) target_noncanonical=${target_alias} ;; | |
2675 | esac | |
2676 | ||
3e427a9c | 2677 | |
2678 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2679 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2680 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2681 | # However, they still use the build modules, because the corresponding | |
2682 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2683 | # finishes. So: | |
2684 | # - build_subdir is where we find build modules, and never changes. | |
2685 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2686 | ||
2687 | # Prefix 'build-' so this never conflicts with target_subdir. | |
4c82c0dd | 2688 | build_subdir="build-${build_noncanonical}" |
3e427a9c | 2689 | |
cd9a469c | 2690 | # Check whether --with-build-libsubdir was given. |
2691 | if test "${with_build_libsubdir+set}" = set; then : | |
2692 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
3e427a9c | 2693 | else |
2694 | build_libsubdir="$build_subdir" | |
cd9a469c | 2695 | fi |
2696 | ||
4c82c0dd | 2697 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2698 | if ( test $srcdir = . && test -d gcc ) \ | |
2699 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2700 | host_subdir="host-${host_noncanonical}" | |
2701 | else | |
2702 | host_subdir=. | |
2703 | fi | |
2704 | # No prefix. | |
2705 | target_subdir=${target_noncanonical} | |
2706 | ||
2707 | ||
2708 | # ------- | |
2709 | # Options | |
2710 | # ------- | |
2711 | ||
cd9a469c | 2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2713 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2714 | # Check whether --enable-version-specific-runtime-libs was given. | |
2715 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2716 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
4c82c0dd | 2717 | yes) version_specific_libs=yes ;; |
2718 | no) version_specific_libs=no ;; | |
cd9a469c | 2719 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
4c82c0dd | 2720 | esac |
2721 | else | |
2722 | version_specific_libs=no | |
cd9a469c | 2723 | fi |
2724 | ||
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2726 | $as_echo "$version_specific_libs" >&6; } | |
4c82c0dd | 2727 | |
93773f82 | 2728 | # Build with intermodule optimisations |
cd9a469c | 2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 |
2730 | $as_echo_n "checking for --enable-intermodule... " >&6; } | |
2731 | # Check whether --enable-intermodule was given. | |
2732 | if test "${enable_intermodule+set}" = set; then : | |
2733 | enableval=$enable_intermodule; case "$enable_intermodule" in | |
93773f82 | 2734 | yes) onestep="-onestep";; |
2735 | *) onestep="";; | |
2736 | esac | |
2737 | else | |
2738 | onestep="" | |
cd9a469c | 2739 | fi |
93773f82 | 2740 | |
cd9a469c | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 |
2742 | $as_echo "$enable_intermodule" >&6; } | |
2743 | if test x$onestep = x-onestep; then | |
93773f82 | 2744 | onestep_TRUE= |
2745 | onestep_FALSE='#' | |
2746 | else | |
2747 | onestep_TRUE='#' | |
2748 | onestep_FALSE= | |
2749 | fi | |
2750 | ||
2751 | ||
4c82c0dd | 2752 | |
2753 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2754 | # | |
2755 | # You will slowly go insane if you do not grok the following fact: when | |
2756 | # building this library, the top-level /target/ becomes the library's /host/. | |
2757 | # | |
2758 | # configure then causes --target to default to --host, exactly like any | |
2759 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2760 | # always be the same. This makes sense both for native and cross compilers | |
2761 | # just think about it for a little while. :-) | |
2762 | # | |
2763 | # Also, if this library is being configured as part of a cross compiler, the | |
2764 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2765 | # | |
2766 | # Do not delete or change the following two lines. For why, see | |
2767 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
cd9a469c | 2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2769 | $as_echo_n "checking host system type... " >&6; } | |
2770 | if test "${ac_cv_host+set}" = set; then : | |
2771 | $as_echo_n "(cached) " >&6 | |
2772 | else | |
2773 | if test "x$host_alias" = x; then | |
2774 | ac_cv_host=$ac_cv_build | |
2775 | else | |
2776 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2777 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2778 | fi | |
2779 | ||
2780 | fi | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2782 | $as_echo "$ac_cv_host" >&6; } | |
2783 | case $ac_cv_host in | |
2784 | *-*-*) ;; | |
2785 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2786 | esac | |
90973b19 | 2787 | host=$ac_cv_host |
cd9a469c | 2788 | ac_save_IFS=$IFS; IFS='-' |
2789 | set x $ac_cv_host | |
2790 | shift | |
2791 | host_cpu=$1 | |
2792 | host_vendor=$2 | |
2793 | shift; shift | |
2794 | # Remember, the first character of IFS is used to create $*, | |
2795 | # except with old shells: | |
2796 | host_os=$* | |
2797 | IFS=$ac_save_IFS | |
2798 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
82eaf560 | 2799 | |
2800 | ||
cd9a469c | 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2802 | $as_echo_n "checking target system type... " >&6; } | |
2803 | if test "${ac_cv_target+set}" = set; then : | |
2804 | $as_echo_n "(cached) " >&6 | |
90973b19 | 2805 | else |
cd9a469c | 2806 | if test "x$target_alias" = x; then |
2807 | ac_cv_target=$ac_cv_host | |
2808 | else | |
2809 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2810 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2811 | fi | |
90973b19 | 2812 | |
2813 | fi | |
cd9a469c | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2815 | $as_echo "$ac_cv_target" >&6; } | |
2816 | case $ac_cv_target in | |
2817 | *-*-*) ;; | |
2818 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2819 | esac | |
90973b19 | 2820 | target=$ac_cv_target |
cd9a469c | 2821 | ac_save_IFS=$IFS; IFS='-' |
2822 | set x $ac_cv_target | |
2823 | shift | |
2824 | target_cpu=$1 | |
2825 | target_vendor=$2 | |
2826 | shift; shift | |
2827 | # Remember, the first character of IFS is used to create $*, | |
2828 | # except with old shells: | |
2829 | target_os=$* | |
2830 | IFS=$ac_save_IFS | |
2831 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
90973b19 | 2832 | |
2833 | ||
2834 | # The aliases save the names the user supplied, while $host etc. | |
2835 | # will get canonicalized. | |
2836 | test -n "$target_alias" && | |
2837 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2838 | NONENONEs,x,x, && | |
2839 | program_prefix=${target_alias}- | |
cd9a469c | 2840 | |
90973b19 | 2841 | target_alias=${target_alias-$host_alias} |
2842 | ||
2843 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2844 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2fd61f51 | 2845 | # 1.9.6: minimum required version |
90973b19 | 2846 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch |
2847 | # of other PACKAGE_* variables will, however, and there's nothing | |
2848 | # we can do about that; they come from AC_INIT). | |
2849 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
2850 | # file in the top srcdir, etc, etc), so stop complaining. | |
5dbeae57 | 2851 | # no-dist: we don't want 'dist' and related rules. |
90973b19 | 2852 | # -Wall: turns on all automake warnings... |
2853 | # -Wno-portability: ...except this one, since GNU make is required. | |
cd9a469c | 2854 | am__api_version='1.11' |
2855 | ||
4ee9c684 | 2856 | # Find a good install program. We prefer a C program (faster), |
2857 | # so one script is as good as another. But avoid the broken or | |
2858 | # incompatible versions: | |
2859 | # SysV /etc/install, /usr/sbin/install | |
2860 | # SunOS /usr/etc/install | |
2861 | # IRIX /sbin/install | |
2862 | # AIX /bin/install | |
2863 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2864 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2865 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2866 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2867 | # OS/2's system install, which has a completely different semantic | |
2868 | # ./install, which can be erroneously created by make from ./install.sh. | |
82eaf560 | 2869 | # Reject install programs that cannot install multiple files. |
cd9a469c | 2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2871 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4ee9c684 | 2872 | if test -z "$INSTALL"; then |
cd9a469c | 2873 | if test "${ac_cv_path_install+set}" = set; then : |
2874 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 2875 | else |
2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2877 | for as_dir in $PATH | |
2878 | do | |
2879 | IFS=$as_save_IFS | |
2880 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 2881 | # Account for people who put trailing slashes in PATH elements. |
2882 | case $as_dir/ in #(( | |
2883 | ./ | .// | /[cC]/* | \ | |
4ee9c684 | 2884 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
cd9a469c | 2885 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4ee9c684 | 2886 | /usr/ucb/* ) ;; |
2887 | *) | |
2888 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2889 | # Don't use installbsd from OSF since it installs stuff as root | |
2890 | # by default. | |
2891 | for ac_prog in ginstall scoinst install; do | |
2892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
cd9a469c | 2893 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
4ee9c684 | 2894 | if test $ac_prog = install && |
2895 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2896 | # AIX install. It has an incompatible calling convention. | |
2897 | : | |
2898 | elif test $ac_prog = install && | |
2899 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2900 | # program-specific install script used by HP pwplus--don't use. | |
2901 | : | |
2902 | else | |
82eaf560 | 2903 | rm -rf conftest.one conftest.two conftest.dir |
2904 | echo one > conftest.one | |
2905 | echo two > conftest.two | |
2906 | mkdir conftest.dir | |
2907 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2908 | test -s conftest.one && test -s conftest.two && | |
2909 | test -s conftest.dir/conftest.one && | |
2910 | test -s conftest.dir/conftest.two | |
2911 | then | |
2912 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2913 | break 3 | |
2914 | fi | |
4ee9c684 | 2915 | fi |
2916 | fi | |
2917 | done | |
2918 | done | |
2919 | ;; | |
2920 | esac | |
cd9a469c | 2921 | |
2922 | done | |
2923 | IFS=$as_save_IFS | |
4ee9c684 | 2924 | |
82eaf560 | 2925 | rm -rf conftest.one conftest.two conftest.dir |
4ee9c684 | 2926 | |
2927 | fi | |
2928 | if test "${ac_cv_path_install+set}" = set; then | |
2929 | INSTALL=$ac_cv_path_install | |
2930 | else | |
ff4425cf | 2931 | # As a last resort, use the slow shell script. Don't cache a |
2932 | # value for INSTALL within a source directory, because that will | |
4ee9c684 | 2933 | # break other packages using the cache if that directory is |
ff4425cf | 2934 | # removed, or if the value is a relative name. |
4ee9c684 | 2935 | INSTALL=$ac_install_sh |
2936 | fi | |
2937 | fi | |
cd9a469c | 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2939 | $as_echo "$INSTALL" >&6; } | |
4ee9c684 | 2940 | |
2941 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2942 | # It thinks the first close brace ends the variable substitution. | |
2943 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2944 | ||
2945 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2946 | ||
2947 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2948 | ||
cd9a469c | 2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2950 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4ee9c684 | 2951 | # Just in case |
2952 | sleep 1 | |
2953 | echo timestamp > conftest.file | |
cd9a469c | 2954 | # Reject unsafe characters in $srcdir or the absolute working directory |
2955 | # name. Accept space and tab only in the latter. | |
2956 | am_lf=' | |
2957 | ' | |
2958 | case `pwd` in | |
2959 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2960 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2961 | esac | |
2962 | case $srcdir in | |
2963 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2964 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2965 | esac | |
2966 | ||
4ee9c684 | 2967 | # Do `set' in a subshell so we don't clobber the current shell's |
2968 | # arguments. Must try -L first in case configure is actually a | |
2969 | # symlink; some systems play weird games with the mod time of symlinks | |
2970 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2971 | # directory). | |
2972 | if ( | |
cd9a469c | 2973 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
4ee9c684 | 2974 | if test "$*" = "X"; then |
2975 | # -L didn't work. | |
cd9a469c | 2976 | set X `ls -t "$srcdir/configure" conftest.file` |
4ee9c684 | 2977 | fi |
2978 | rm -f conftest.file | |
2979 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2980 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2981 | ||
2982 | # If neither matched, then we have a broken ls. This can happen | |
2983 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2984 | # broken ls alias from the environment. This has actually | |
2985 | # happened. Such a system could not be considered "sane". | |
cd9a469c | 2986 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
2987 | alias in your environment" "$LINENO" 5 | |
4ee9c684 | 2988 | fi |
2989 | ||
2990 | test "$2" = conftest.file | |
2991 | ) | |
2992 | then | |
2993 | # Ok. | |
2994 | : | |
2995 | else | |
cd9a469c | 2996 | as_fn_error "newly created file is older than distributed files! |
2997 | Check your system clock" "$LINENO" 5 | |
4ee9c684 | 2998 | fi |
cd9a469c | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3000 | $as_echo "yes" >&6; } | |
4ee9c684 | 3001 | test "$program_prefix" != NONE && |
cd9a469c | 3002 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
4ee9c684 | 3003 | # Use a double $ so make ignores it. |
3004 | test "$program_suffix" != NONE && | |
cd9a469c | 3005 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3006 | # Double any \ or $. | |
4ee9c684 | 3007 | # By default was `s,x,x', remove it if useless. |
cd9a469c | 3008 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3009 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4ee9c684 | 3010 | |
3011 | # expand $ac_aux_dir to an absolute path | |
3012 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3013 | ||
cd9a469c | 3014 | if test x"${MISSING+set}" != xset; then |
3015 | case $am_aux_dir in | |
3016 | *\ * | *\ *) | |
3017 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3018 | *) | |
3019 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3020 | esac | |
3021 | fi | |
4ee9c684 | 3022 | # Use eval to expand $SHELL |
3023 | if eval "$MISSING --run true"; then | |
3024 | am_missing_run="$MISSING --run " | |
3025 | else | |
3026 | am_missing_run= | |
cd9a469c | 3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3028 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
4ee9c684 | 3029 | fi |
3030 | ||
cd9a469c | 3031 | if test x"${install_sh}" != xset; then |
3032 | case $am_aux_dir in | |
3033 | *\ * | *\ *) | |
3034 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3035 | *) | |
3036 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3037 | esac | |
3038 | fi | |
3039 | ||
3040 | # Installed binaries are usually stripped using `strip' when the user | |
3041 | # run `make install-strip'. However `strip' might not be the right | |
3042 | # tool to use in cross-compilation environments, therefore Automake | |
3043 | # will honor the `STRIP' environment variable to overrule this program. | |
3044 | if test "$cross_compiling" != no; then | |
3045 | if test -n "$ac_tool_prefix"; then | |
3046 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3047 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3049 | $as_echo_n "checking for $ac_word... " >&6; } | |
3050 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3051 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3052 | else |
cd9a469c | 3053 | if test -n "$STRIP"; then |
3054 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4ee9c684 | 3055 | else |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3061 | for ac_exec_ext in '' $ac_executable_extensions; do |
3062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3063 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4ee9c684 | 3065 | break 2 |
3066 | fi | |
3067 | done | |
cd9a469c | 3068 | done |
3069 | IFS=$as_save_IFS | |
4ee9c684 | 3070 | |
3071 | fi | |
3072 | fi | |
cd9a469c | 3073 | STRIP=$ac_cv_prog_STRIP |
3074 | if test -n "$STRIP"; then | |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3076 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 3077 | else |
cd9a469c | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3079 | $as_echo "no" >&6; } | |
4ee9c684 | 3080 | fi |
3081 | ||
4ee9c684 | 3082 | |
cd9a469c | 3083 | fi |
3084 | if test -z "$ac_cv_prog_STRIP"; then | |
3085 | ac_ct_STRIP=$STRIP | |
3086 | # Extract the first word of "strip", so it can be a program name with args. | |
3087 | set dummy strip; ac_word=$2 | |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3089 | $as_echo_n "checking for $ac_word... " >&6; } | |
3090 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3091 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3092 | else |
cd9a469c | 3093 | if test -n "$ac_ct_STRIP"; then |
3094 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
82eaf560 | 3095 | else |
cd9a469c | 3096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3097 | for as_dir in $PATH | |
3098 | do | |
3099 | IFS=$as_save_IFS | |
3100 | test -z "$as_dir" && as_dir=. | |
3101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3103 | ac_cv_prog_ac_ct_STRIP="strip" | |
3104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3105 | break 2 | |
3106 | fi | |
3107 | done | |
3108 | done | |
3109 | IFS=$as_save_IFS | |
3110 | ||
82eaf560 | 3111 | fi |
4ee9c684 | 3112 | fi |
cd9a469c | 3113 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3114 | if test -n "$ac_ct_STRIP"; then | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3116 | $as_echo "$ac_ct_STRIP" >&6; } | |
3117 | else | |
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3119 | $as_echo "no" >&6; } | |
3120 | fi | |
3121 | ||
3122 | if test "x$ac_ct_STRIP" = x; then | |
3123 | STRIP=":" | |
3124 | else | |
3125 | case $cross_compiling:$ac_tool_warned in | |
3126 | yes:) | |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3129 | ac_tool_warned=yes ;; | |
3130 | esac | |
3131 | STRIP=$ac_ct_STRIP | |
3132 | fi | |
3133 | else | |
3134 | STRIP="$ac_cv_prog_STRIP" | |
3135 | fi | |
3136 | ||
3137 | fi | |
3138 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3139 | ||
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3141 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3142 | if test -z "$MKDIR_P"; then | |
3143 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3144 | $as_echo_n "(cached) " >&6 | |
3145 | else | |
3146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3147 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3148 | do | |
3149 | IFS=$as_save_IFS | |
3150 | test -z "$as_dir" && as_dir=. | |
3151 | for ac_prog in mkdir gmkdir; do | |
3152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3153 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3154 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3155 | 'mkdir (GNU coreutils) '* | \ | |
3156 | 'mkdir (coreutils) '* | \ | |
3157 | 'mkdir (fileutils) '4.1*) | |
3158 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3159 | break 3;; | |
3160 | esac | |
3161 | done | |
3162 | done | |
3163 | done | |
3164 | IFS=$as_save_IFS | |
3165 | ||
3166 | fi | |
3167 | ||
3168 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3169 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3170 | else | |
3171 | # As a last resort, use the slow shell script. Don't cache a | |
3172 | # value for MKDIR_P within a source directory, because that will | |
3173 | # break other packages using the cache if that directory is | |
3174 | # removed, or if the value is a relative name. | |
3175 | test -d ./--version && rmdir ./--version | |
3176 | MKDIR_P="$ac_install_sh -d" | |
3177 | fi | |
3178 | fi | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3180 | $as_echo "$MKDIR_P" >&6; } | |
3181 | ||
3182 | mkdir_p="$MKDIR_P" | |
3183 | case $mkdir_p in | |
3184 | [\\/$]* | ?:[\\/]*) ;; | |
3185 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3186 | esac | |
3187 | ||
3188 | for ac_prog in gawk mawk nawk awk | |
3189 | do | |
3190 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3191 | set dummy $ac_prog; ac_word=$2 | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3193 | $as_echo_n "checking for $ac_word... " >&6; } | |
3194 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3195 | $as_echo_n "(cached) " >&6 | |
3196 | else | |
3197 | if test -n "$AWK"; then | |
3198 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3199 | else | |
3200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3201 | for as_dir in $PATH | |
3202 | do | |
3203 | IFS=$as_save_IFS | |
3204 | test -z "$as_dir" && as_dir=. | |
3205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3207 | ac_cv_prog_AWK="$ac_prog" | |
3208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3209 | break 2 | |
3210 | fi | |
3211 | done | |
3212 | done | |
3213 | IFS=$as_save_IFS | |
3214 | ||
3215 | fi | |
3216 | fi | |
3217 | AWK=$ac_cv_prog_AWK | |
3218 | if test -n "$AWK"; then | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3220 | $as_echo "$AWK" >&6; } | |
3221 | else | |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3223 | $as_echo "no" >&6; } | |
3224 | fi | |
3225 | ||
3226 | ||
3227 | test -n "$AWK" && break | |
3228 | done | |
3229 | ||
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3231 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3232 | set x ${MAKE-make} | |
3233 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3234 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3235 | $as_echo_n "(cached) " >&6 | |
3236 | else | |
3237 | cat >conftest.make <<\_ACEOF | |
3238 | SHELL = /bin/sh | |
3239 | all: | |
3240 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3241 | _ACEOF | |
3242 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3243 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3244 | *@@@%%%=?*=@@@%%%*) | |
3245 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3246 | *) | |
3247 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3248 | esac | |
3249 | rm -f conftest.make | |
3250 | fi | |
3251 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3253 | $as_echo "yes" >&6; } | |
4ee9c684 | 3254 | SET_MAKE= |
3255 | else | |
cd9a469c | 3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3257 | $as_echo "no" >&6; } | |
4ee9c684 | 3258 | SET_MAKE="MAKE=${MAKE-make}" |
3259 | fi | |
3260 | ||
3261 | rm -rf .tst 2>/dev/null | |
3262 | mkdir .tst 2>/dev/null | |
3263 | if test -d .tst; then | |
3264 | am__leading_dot=. | |
3265 | else | |
3266 | am__leading_dot=_ | |
3267 | fi | |
3268 | rmdir .tst 2>/dev/null | |
3269 | ||
cd9a469c | 3270 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3271 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3272 | # is not polluted with repeated "-I." | |
3273 | am__isrc=' -I$(srcdir)' | |
3274 | # test to see if srcdir already configured | |
3275 | if test -f $srcdir/config.status; then | |
3276 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3277 | fi | |
4ee9c684 | 3278 | fi |
3279 | ||
3280 | # test whether we have cygpath | |
3281 | if test -z "$CYGPATH_W"; then | |
3282 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3283 | CYGPATH_W='cygpath -w' | |
3284 | else | |
3285 | CYGPATH_W=echo | |
3286 | fi | |
3287 | fi | |
3288 | ||
3289 | ||
3290 | # Define the identity of the package. | |
3291 | PACKAGE='libgfortran' | |
76c0a846 | 3292 | VERSION='0.3' |
4ee9c684 | 3293 | |
3294 | ||
4ee9c684 | 3295 | # Some tools Automake needs. |
3296 | ||
3297 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3298 | ||
3299 | ||
3300 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3301 | ||
3302 | ||
3303 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3304 | ||
3305 | ||
3306 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3307 | ||
3308 | ||
3309 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3310 | ||
4ee9c684 | 3311 | # We need awk for the "check" target. The system "awk" is bad on |
3312 | # some platforms. | |
6745c9de | 3313 | # Always define AMTAR for backward compatibility. |
3314 | ||
3315 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3316 | ||
3317 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3318 | ||
3319 | ||
4ee9c684 | 3320 | |
3321 | ||
3322 | ||
4ee9c684 | 3323 | |
cd9a469c | 3324 | |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3326 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3327 | # Check whether --enable-maintainer-mode was given. | |
3328 | if test "${enable_maintainer_mode+set}" = set; then : | |
3329 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4ee9c684 | 3330 | else |
3331 | USE_MAINTAINER_MODE=no | |
cd9a469c | 3332 | fi |
4ee9c684 | 3333 | |
cd9a469c | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3335 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3336 | if test $USE_MAINTAINER_MODE = yes; then | |
4ee9c684 | 3337 | MAINTAINER_MODE_TRUE= |
3338 | MAINTAINER_MODE_FALSE='#' | |
3339 | else | |
3340 | MAINTAINER_MODE_TRUE='#' | |
3341 | MAINTAINER_MODE_FALSE= | |
3342 | fi | |
3343 | ||
3344 | MAINT=$MAINTAINER_MODE_TRUE | |
3345 | ||
3346 | ||
90973b19 | 3347 | # Default to --enable-multilib |
cd9a469c | 3348 | # Check whether --enable-multilib was given. |
3349 | if test "${enable_multilib+set}" = set; then : | |
3350 | enableval=$enable_multilib; case "$enableval" in | |
90973b19 | 3351 | yes) multilib=yes ;; |
3352 | no) multilib=no ;; | |
cd9a469c | 3353 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; |
90973b19 | 3354 | esac |
3355 | else | |
3356 | multilib=yes | |
cd9a469c | 3357 | fi |
3358 | ||
90973b19 | 3359 | |
3360 | # We may get other options which we leave undocumented: | |
3361 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3362 | # See config-ml.in if you want the gory details. | |
3363 | ||
3364 | if test "$srcdir" = "."; then | |
3365 | if test "$with_target_subdir" != "."; then | |
3366 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3367 | else | |
3368 | multi_basedir="$srcdir/$with_multisrctop.." | |
3369 | fi | |
3370 | else | |
3371 | multi_basedir="$srcdir/.." | |
3372 | fi | |
3373 | ||
3374 | ||
04c8b51e | 3375 | # Even if the default multilib is not a cross compilation, |
3376 | # it may be that some of the other multilibs are. | |
3377 | if test $cross_compiling = no && test $multilib = yes \ | |
3378 | && test "x${with_multisubdir}" != x ; then | |
3379 | cross_compiling=maybe | |
3380 | fi | |
3381 | ||
cd9a469c | 3382 | ac_config_commands="$ac_config_commands default-1" |
90973b19 | 3383 | |
3384 | ||
3385 | # Handy for debugging: | |
3386 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
3387 | ||
3388 | # Are we being configured with some form of cross compiler? | |
3389 | # NB: We don't actually need to know this just now, but when, say, a test | |
3390 | # suite is included, we'll have to know. | |
3391 | if test "$build" != "$host"; then | |
3392 | LIBGFOR_IS_NATIVE=false | |
b52ee437 | 3393 | |
90973b19 | 3394 | else |
3395 | LIBGFOR_IS_NATIVE=true | |
3396 | fi | |
3397 | ||
d5d92632 | 3398 | DEPDIR="${am__leading_dot}deps" |
90973b19 | 3399 | |
d5d92632 | 3400 | ac_config_commands="$ac_config_commands depfiles" |
90973b19 | 3401 | |
4ee9c684 | 3402 | |
d5d92632 | 3403 | am_make=${MAKE-make} |
3404 | cat > confinc << 'END' | |
3405 | am__doit: | |
3406 | @echo this is the am__doit target | |
3407 | .PHONY: am__doit | |
3408 | END | |
3409 | # If we don't find an include directive, just comment out the code. | |
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3411 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3412 | am__include="#" | |
3413 | am__quote= | |
3414 | _am_result=none | |
3415 | # First try GNU make style include. | |
3416 | echo "include confinc" > confmf | |
3417 | # Ignore all kinds of additional output from `make'. | |
3418 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3419 | *the\ am__doit\ target*) | |
3420 | am__include=include | |
3421 | am__quote= | |
3422 | _am_result=GNU | |
3423 | ;; | |
3424 | esac | |
3425 | # Now try BSD make style include. | |
3426 | if test "$am__include" = "#"; then | |
3427 | echo '.include "confinc"' > confmf | |
3428 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3429 | *the\ am__doit\ target*) | |
3430 | am__include=.include | |
3431 | am__quote="\"" | |
3432 | _am_result=BSD | |
3433 | ;; | |
3434 | esac | |
3435 | fi | |
87969c8c | 3436 | |
4ee9c684 | 3437 | |
d5d92632 | 3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3439 | $as_echo "$_am_result" >&6; } | |
3440 | rm -f confinc confmf | |
3441 | ||
3442 | # Check whether --enable-dependency-tracking was given. | |
3443 | if test "${enable_dependency_tracking+set}" = set; then : | |
3444 | enableval=$enable_dependency_tracking; | |
3445 | fi | |
3446 | ||
3447 | if test "x$enable_dependency_tracking" != xno; then | |
3448 | am_depcomp="$ac_aux_dir/depcomp" | |
3449 | AMDEPBACKSLASH='\' | |
3450 | fi | |
3451 | if test "x$enable_dependency_tracking" != xno; then | |
3452 | AMDEP_TRUE= | |
3453 | AMDEP_FALSE='#' | |
3454 | else | |
3455 | AMDEP_TRUE='#' | |
3456 | AMDEP_FALSE= | |
3457 | fi | |
4ee9c684 | 3458 | |
3459 | ||
4ee9c684 | 3460 | ac_ext=c |
3461 | ac_cpp='$CPP $CPPFLAGS' | |
3462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3465 | if test -n "$ac_tool_prefix"; then | |
3466 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3467 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3469 | $as_echo_n "checking for $ac_word... " >&6; } | |
3470 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3471 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3472 | else |
3473 | if test -n "$CC"; then | |
3474 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3475 | else | |
3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3477 | for as_dir in $PATH | |
3478 | do | |
3479 | IFS=$as_save_IFS | |
3480 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3481 | for ac_exec_ext in '' $ac_executable_extensions; do |
3482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3483 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 3484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3485 | break 2 |
3486 | fi | |
3487 | done | |
cd9a469c | 3488 | done |
3489 | IFS=$as_save_IFS | |
4ee9c684 | 3490 | |
3491 | fi | |
3492 | fi | |
3493 | CC=$ac_cv_prog_CC | |
3494 | if test -n "$CC"; then | |
cd9a469c | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3496 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3497 | else |
cd9a469c | 3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3499 | $as_echo "no" >&6; } | |
4ee9c684 | 3500 | fi |
3501 | ||
cd9a469c | 3502 | |
4ee9c684 | 3503 | fi |
3504 | if test -z "$ac_cv_prog_CC"; then | |
3505 | ac_ct_CC=$CC | |
3506 | # Extract the first word of "gcc", so it can be a program name with args. | |
3507 | set dummy gcc; ac_word=$2 | |
cd9a469c | 3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3509 | $as_echo_n "checking for $ac_word... " >&6; } | |
3510 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3511 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3512 | else |
3513 | if test -n "$ac_ct_CC"; then | |
3514 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3515 | else | |
3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3517 | for as_dir in $PATH | |
3518 | do | |
3519 | IFS=$as_save_IFS | |
3520 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3521 | for ac_exec_ext in '' $ac_executable_extensions; do |
3522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3523 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 3524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3525 | break 2 |
3526 | fi | |
3527 | done | |
cd9a469c | 3528 | done |
3529 | IFS=$as_save_IFS | |
4ee9c684 | 3530 | |
3531 | fi | |
3532 | fi | |
3533 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3534 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3536 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3537 | else |
cd9a469c | 3538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3539 | $as_echo "no" >&6; } | |
4ee9c684 | 3540 | fi |
3541 | ||
cd9a469c | 3542 | if test "x$ac_ct_CC" = x; then |
3543 | CC="" | |
3544 | else | |
3545 | case $cross_compiling:$ac_tool_warned in | |
3546 | yes:) | |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3548 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3549 | ac_tool_warned=yes ;; | |
3550 | esac | |
3551 | CC=$ac_ct_CC | |
3552 | fi | |
4ee9c684 | 3553 | else |
3554 | CC="$ac_cv_prog_CC" | |
3555 | fi | |
3556 | ||
3557 | if test -z "$CC"; then | |
cd9a469c | 3558 | if test -n "$ac_tool_prefix"; then |
3559 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4ee9c684 | 3560 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cd9a469c | 3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3562 | $as_echo_n "checking for $ac_word... " >&6; } | |
3563 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3564 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3565 | else |
3566 | if test -n "$CC"; then | |
3567 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3568 | else | |
3569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3570 | for as_dir in $PATH | |
3571 | do | |
3572 | IFS=$as_save_IFS | |
3573 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3574 | for ac_exec_ext in '' $ac_executable_extensions; do |
3575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3576 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cd9a469c | 3577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3578 | break 2 |
3579 | fi | |
3580 | done | |
cd9a469c | 3581 | done |
3582 | IFS=$as_save_IFS | |
4ee9c684 | 3583 | |
3584 | fi | |
3585 | fi | |
3586 | CC=$ac_cv_prog_CC | |
3587 | if test -n "$CC"; then | |
cd9a469c | 3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3589 | $as_echo "$CC" >&6; } | |
82eaf560 | 3590 | else |
cd9a469c | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3592 | $as_echo "no" >&6; } | |
82eaf560 | 3593 | fi |
3594 | ||
82eaf560 | 3595 | |
cd9a469c | 3596 | fi |
4ee9c684 | 3597 | fi |
3598 | if test -z "$CC"; then | |
3599 | # Extract the first word of "cc", so it can be a program name with args. | |
3600 | set dummy cc; ac_word=$2 | |
cd9a469c | 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3602 | $as_echo_n "checking for $ac_word... " >&6; } | |
3603 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3604 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3605 | else |
3606 | if test -n "$CC"; then | |
3607 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3608 | else | |
3609 | ac_prog_rejected=no | |
3610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3611 | for as_dir in $PATH | |
3612 | do | |
3613 | IFS=$as_save_IFS | |
3614 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3615 | for ac_exec_ext in '' $ac_executable_extensions; do |
3616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3617 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3618 | ac_prog_rejected=yes | |
3619 | continue | |
3620 | fi | |
3621 | ac_cv_prog_CC="cc" | |
cd9a469c | 3622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3623 | break 2 |
3624 | fi | |
3625 | done | |
cd9a469c | 3626 | done |
3627 | IFS=$as_save_IFS | |
4ee9c684 | 3628 | |
3629 | if test $ac_prog_rejected = yes; then | |
3630 | # We found a bogon in the path, so make sure we never use it. | |
3631 | set dummy $ac_cv_prog_CC | |
3632 | shift | |
3633 | if test $# != 0; then | |
3634 | # We chose a different compiler from the bogus one. | |
3635 | # However, it has the same basename, so the bogon will be chosen | |
3636 | # first if we set CC to just the basename; use the full file name. | |
3637 | shift | |
3638 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3639 | fi | |
3640 | fi | |
3641 | fi | |
3642 | fi | |
3643 | CC=$ac_cv_prog_CC | |
3644 | if test -n "$CC"; then | |
cd9a469c | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3646 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3647 | else |
cd9a469c | 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3649 | $as_echo "no" >&6; } | |
4ee9c684 | 3650 | fi |
3651 | ||
cd9a469c | 3652 | |
4ee9c684 | 3653 | fi |
3654 | if test -z "$CC"; then | |
3655 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 3656 | for ac_prog in cl.exe |
4ee9c684 | 3657 | do |
3658 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3659 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3661 | $as_echo_n "checking for $ac_word... " >&6; } | |
3662 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3663 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3664 | else |
3665 | if test -n "$CC"; then | |
3666 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3667 | else | |
3668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3669 | for as_dir in $PATH | |
3670 | do | |
3671 | IFS=$as_save_IFS | |
3672 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3673 | for ac_exec_ext in '' $ac_executable_extensions; do |
3674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3675 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cd9a469c | 3676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3677 | break 2 |
3678 | fi | |
3679 | done | |
cd9a469c | 3680 | done |
3681 | IFS=$as_save_IFS | |
4ee9c684 | 3682 | |
3683 | fi | |
3684 | fi | |
3685 | CC=$ac_cv_prog_CC | |
3686 | if test -n "$CC"; then | |
cd9a469c | 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3688 | $as_echo "$CC" >&6; } | |
4ee9c684 | 3689 | else |
cd9a469c | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3691 | $as_echo "no" >&6; } | |
4ee9c684 | 3692 | fi |
3693 | ||
cd9a469c | 3694 | |
4ee9c684 | 3695 | test -n "$CC" && break |
3696 | done | |
3697 | fi | |
3698 | if test -z "$CC"; then | |
3699 | ac_ct_CC=$CC | |
cd9a469c | 3700 | for ac_prog in cl.exe |
4ee9c684 | 3701 | do |
3702 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3703 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 3704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3705 | $as_echo_n "checking for $ac_word... " >&6; } | |
3706 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3707 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3708 | else |
3709 | if test -n "$ac_ct_CC"; then | |
3710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3711 | else | |
3712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3713 | for as_dir in $PATH | |
3714 | do | |
3715 | IFS=$as_save_IFS | |
3716 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 3717 | for ac_exec_ext in '' $ac_executable_extensions; do |
3718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4ee9c684 | 3719 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cd9a469c | 3720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4ee9c684 | 3721 | break 2 |
3722 | fi | |
3723 | done | |
cd9a469c | 3724 | done |
3725 | IFS=$as_save_IFS | |
4ee9c684 | 3726 | |
3727 | fi | |
3728 | fi | |
3729 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3730 | if test -n "$ac_ct_CC"; then | |
cd9a469c | 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3732 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 3733 | else |
cd9a469c | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3735 | $as_echo "no" >&6; } | |
4ee9c684 | 3736 | fi |
3737 | ||
cd9a469c | 3738 | |
4ee9c684 | 3739 | test -n "$ac_ct_CC" && break |
3740 | done | |
3741 | ||
cd9a469c | 3742 | if test "x$ac_ct_CC" = x; then |
3743 | CC="" | |
3744 | else | |
3745 | case $cross_compiling:$ac_tool_warned in | |
3746 | yes:) | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3748 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3749 | ac_tool_warned=yes ;; | |
3750 | esac | |
3751 | CC=$ac_ct_CC | |
3752 | fi | |
4ee9c684 | 3753 | fi |
3754 | ||
3755 | fi | |
3756 | ||
3757 | ||
cd9a469c | 3758 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3760 | as_fn_error "no acceptable C compiler found in \$PATH | |
3761 | See \`config.log' for more details." "$LINENO" 5; } | |
4ee9c684 | 3762 | |
3763 | # Provide some information about the compiler. | |
cd9a469c | 3764 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3765 | set X $ac_compile | |
3766 | ac_compiler=$2 | |
3767 | for ac_option in --version -v -V -qversion; do | |
3768 | { { ac_try="$ac_compiler $ac_option >&5" | |
3769 | case "(($ac_try" in | |
3770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3771 | *) ac_try_echo=$ac_try;; | |
3772 | esac | |
3773 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3774 | $as_echo "$ac_try_echo"; } >&5 | |
3775 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4ee9c684 | 3776 | ac_status=$? |
cd9a469c | 3777 | if test -s conftest.err; then |
3778 | sed '10a\ | |
3779 | ... rest of stderr output deleted ... | |
3780 | 10q' conftest.err >conftest.er1 | |
3781 | cat conftest.er1 >&5 | |
3782 | rm -f conftest.er1 conftest.err | |
3783 | fi | |
3784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3785 | test $ac_status = 0; } | |
3786 | done | |
4ee9c684 | 3787 | |
cd9a469c | 3788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 3789 | /* end confdefs.h. */ |
3790 | ||
b52ee437 | 3791 | int |
3792 | main () | |
3793 | { | |
3794 | ||
3795 | ; | |
3796 | return 0; | |
3797 | } | |
3798 | _ACEOF | |
3799 | # FIXME: Cleanup? | |
cd9a469c | 3800 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
b52ee437 | 3801 | (eval $ac_link) 2>&5 |
3802 | ac_status=$? | |
cd9a469c | 3803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3804 | test $ac_status = 0; }; then : | |
b52ee437 | 3805 | gcc_no_link=no |
3806 | else | |
3807 | gcc_no_link=yes | |
3808 | fi | |
b52ee437 | 3809 | if test x$gcc_no_link = xyes; then |
3810 | # Setting cross_compile will disable run tests; it will | |
3811 | # also disable AC_CHECK_FILE but that's generally | |
3812 | # correct if we can't link. | |
3813 | cross_compiling=yes | |
3814 | EXEEXT= | |
3815 | else | |
cd9a469c | 3816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 3817 | /* end confdefs.h. */ |
3818 | ||
4ee9c684 | 3819 | int |
3820 | main () | |
3821 | { | |
3822 | ||
3823 | ; | |
3824 | return 0; | |
3825 | } | |
3826 | _ACEOF | |
3827 | ac_clean_files_save=$ac_clean_files | |
cd9a469c | 3828 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
4ee9c684 | 3829 | # Try to create an executable without -o first, disregard a.out. |
3830 | # It will help us diagnose broken compilers, and finding out an intuition | |
3831 | # of exeext. | |
cd9a469c | 3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3833 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3834 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3835 | ||
3836 | # The possible output files: | |
3837 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3838 | ||
3839 | ac_rmfiles= | |
3840 | for ac_file in $ac_files | |
3841 | do | |
3842 | case $ac_file in | |
3843 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3844 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3845 | esac | |
3846 | done | |
3847 | rm -f $ac_rmfiles | |
3848 | ||
3849 | if { { ac_try="$ac_link_default" | |
3850 | case "(($ac_try" in | |
3851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3852 | *) ac_try_echo=$ac_try;; | |
3853 | esac | |
3854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3855 | $as_echo "$ac_try_echo"; } >&5 | |
3856 | (eval "$ac_link_default") 2>&5 | |
3857 | ac_status=$? | |
3858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3859 | test $ac_status = 0; }; then : | |
3860 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3861 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3862 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3863 | # so that the user can short-circuit this test for compilers unknown to | |
3864 | # Autoconf. | |
3865 | for ac_file in $ac_files '' | |
4ee9c684 | 3866 | do |
3867 | test -f "$ac_file" || continue | |
3868 | case $ac_file in | |
cd9a469c | 3869 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
4ee9c684 | 3870 | ;; |
3871 | [ab].out ) | |
3872 | # We found the default executable, but exeext='' is most | |
3873 | # certainly right. | |
3874 | break;; | |
3875 | *.* ) | |
cd9a469c | 3876 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3877 | then :; else | |
3878 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3879 | fi | |
3880 | # We set ac_cv_exeext here because the later test for it is not | |
3881 | # safe: cross compilers may not add the suffix if given an `-o' | |
3882 | # argument, so we may need to know it at that point already. | |
3883 | # Even if this section looks crufty: it has the advantage of | |
3884 | # actually working. | |
4ee9c684 | 3885 | break;; |
3886 | * ) | |
3887 | break;; | |
3888 | esac | |
3889 | done | |
cd9a469c | 3890 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3891 | ||
4ee9c684 | 3892 | else |
cd9a469c | 3893 | ac_file='' |
3894 | fi | |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3896 | $as_echo "$ac_file" >&6; } | |
3897 | if test -z "$ac_file"; then : | |
3898 | $as_echo "$as_me: failed program was:" >&5 | |
4ee9c684 | 3899 | sed 's/^/| /' conftest.$ac_ext >&5 |
3900 | ||
cd9a469c | 3901 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3902 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3903 | { as_fn_set_status 77 | |
3904 | as_fn_error "C compiler cannot create executables | |
3905 | See \`config.log' for more details." "$LINENO" 5; }; } | |
4ee9c684 | 3906 | fi |
4ee9c684 | 3907 | ac_exeext=$ac_cv_exeext |
4ee9c684 | 3908 | |
cd9a469c | 3909 | # Check that the compiler produces executables we can run. If not, either |
4ee9c684 | 3910 | # the compiler is broken, or we cross compile. |
cd9a469c | 3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3912 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4ee9c684 | 3913 | # If not cross compiling, check that we can run a simple program. |
3914 | if test "$cross_compiling" != yes; then | |
3915 | if { ac_try='./$ac_file' | |
cd9a469c | 3916 | { { case "(($ac_try" in |
3917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3918 | *) ac_try_echo=$ac_try;; | |
3919 | esac | |
3920 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3921 | $as_echo "$ac_try_echo"; } >&5 | |
3922 | (eval "$ac_try") 2>&5 | |
4ee9c684 | 3923 | ac_status=$? |
cd9a469c | 3924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3925 | test $ac_status = 0; }; }; then | |
4ee9c684 | 3926 | cross_compiling=no |
3927 | else | |
3928 | if test "$cross_compiling" = maybe; then | |
3929 | cross_compiling=yes | |
3930 | else | |
cd9a469c | 3931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3933 | as_fn_error "cannot run C compiled programs. | |
4ee9c684 | 3934 | If you meant to cross compile, use \`--host'. |
cd9a469c | 3935 | See \`config.log' for more details." "$LINENO" 5; } |
4ee9c684 | 3936 | fi |
3937 | fi | |
3938 | fi | |
cd9a469c | 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3940 | $as_echo "yes" >&6; } | |
4ee9c684 | 3941 | |
cd9a469c | 3942 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4ee9c684 | 3943 | ac_clean_files=$ac_clean_files_save |
cd9a469c | 3944 | # Check that the compiler produces executables we can run. If not, either |
4ee9c684 | 3945 | # the compiler is broken, or we cross compile. |
cd9a469c | 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3947 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3949 | $as_echo "$cross_compiling" >&6; } | |
3950 | ||
3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3952 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3953 | if { { ac_try="$ac_link" | |
3954 | case "(($ac_try" in | |
3955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3956 | *) ac_try_echo=$ac_try;; | |
3957 | esac | |
3958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3959 | $as_echo "$ac_try_echo"; } >&5 | |
3960 | (eval "$ac_link") 2>&5 | |
4ee9c684 | 3961 | ac_status=$? |
cd9a469c | 3962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3963 | test $ac_status = 0; }; then : | |
4ee9c684 | 3964 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3965 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3966 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3967 | # `rm'. | |
3968 | for ac_file in conftest.exe conftest conftest.*; do | |
3969 | test -f "$ac_file" || continue | |
3970 | case $ac_file in | |
cd9a469c | 3971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4ee9c684 | 3972 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4ee9c684 | 3973 | break;; |
3974 | * ) break;; | |
3975 | esac | |
3976 | done | |
3977 | else | |
cd9a469c | 3978 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3979 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3980 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3981 | See \`config.log' for more details." "$LINENO" 5; } | |
4ee9c684 | 3982 | fi |
4ee9c684 | 3983 | rm -f conftest$ac_cv_exeext |
cd9a469c | 3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3985 | $as_echo "$ac_cv_exeext" >&6; } | |
4ee9c684 | 3986 | |
3987 | rm -f conftest.$ac_ext | |
3988 | EXEEXT=$ac_cv_exeext | |
3989 | ac_exeext=$EXEEXT | |
b52ee437 | 3990 | fi |
cd9a469c | 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3992 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3993 | if test "${ac_cv_objext+set}" = set; then : | |
3994 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 3995 | else |
cd9a469c | 3996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 3997 | /* end confdefs.h. */ |
3998 | ||
3999 | int | |
4000 | main () | |
4001 | { | |
4002 | ||
4003 | ; | |
4004 | return 0; | |
4005 | } | |
4006 | _ACEOF | |
4007 | rm -f conftest.o conftest.obj | |
cd9a469c | 4008 | if { { ac_try="$ac_compile" |
4009 | case "(($ac_try" in | |
4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4011 | *) ac_try_echo=$ac_try;; | |
4012 | esac | |
4013 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4014 | $as_echo "$ac_try_echo"; } >&5 | |
4015 | (eval "$ac_compile") 2>&5 | |
4016 | ac_status=$? | |
4017 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4018 | test $ac_status = 0; }; then : | |
4019 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4020 | test -f "$ac_file" || continue; | |
4ee9c684 | 4021 | case $ac_file in |
cd9a469c | 4022 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
4ee9c684 | 4023 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4024 | break;; | |
4025 | esac | |
4026 | done | |
4027 | else | |
cd9a469c | 4028 | $as_echo "$as_me: failed program was:" >&5 |
4ee9c684 | 4029 | sed 's/^/| /' conftest.$ac_ext >&5 |
4030 | ||
cd9a469c | 4031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4033 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4034 | See \`config.log' for more details." "$LINENO" 5; } | |
a106dabe | 4035 | fi |
a106dabe | 4036 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4037 | fi | |
cd9a469c | 4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4039 | $as_echo "$ac_cv_objext" >&6; } | |
a106dabe | 4040 | OBJEXT=$ac_cv_objext |
4041 | ac_objext=$OBJEXT | |
cd9a469c | 4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4043 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4044 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4045 | $as_echo_n "(cached) " >&6 | |
a106dabe | 4046 | else |
cd9a469c | 4047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 4048 | /* end confdefs.h. */ |
4ee9c684 | 4049 | |
4ee9c684 | 4050 | int |
4051 | main () | |
4052 | { | |
a106dabe | 4053 | #ifndef __GNUC__ |
4054 | choke me | |
4055 | #endif | |
ce1a737c | 4056 | |
4ee9c684 | 4057 | ; |
4058 | return 0; | |
4059 | } | |
4060 | _ACEOF | |
cd9a469c | 4061 | if ac_fn_c_try_compile "$LINENO"; then : |
a106dabe | 4062 | ac_compiler_gnu=yes |
4ee9c684 | 4063 | else |
cd9a469c | 4064 | ac_compiler_gnu=no |
a106dabe | 4065 | fi |
cd9a469c | 4066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a106dabe | 4067 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4068 | ||
4069 | fi | |
cd9a469c | 4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4071 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4072 | if test $ac_compiler_gnu = yes; then | |
4073 | GCC=yes | |
4074 | else | |
4075 | GCC= | |
4076 | fi | |
a106dabe | 4077 | ac_test_CFLAGS=${CFLAGS+set} |
4078 | ac_save_CFLAGS=$CFLAGS | |
cd9a469c | 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4080 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4081 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4082 | $as_echo_n "(cached) " >&6 | |
a106dabe | 4083 | else |
cd9a469c | 4084 | ac_save_c_werror_flag=$ac_c_werror_flag |
4085 | ac_c_werror_flag=yes | |
4086 | ac_cv_prog_cc_g=no | |
4087 | CFLAGS="-g" | |
4088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4ee9c684 | 4089 | /* end confdefs.h. */ |
ce1a737c | 4090 | |
4ee9c684 | 4091 | int |
4092 | main () | |
4093 | { | |
ce1a737c | 4094 | |
4ee9c684 | 4095 | ; |
4096 | return 0; | |
4097 | } | |
4098 | _ACEOF | |
cd9a469c | 4099 | if ac_fn_c_try_compile "$LINENO"; then : |
ff4425cf | 4100 | ac_cv_prog_cc_g=yes |
4101 | else | |
cd9a469c | 4102 | CFLAGS="" |
4103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4104 | /* end confdefs.h. */ | |
4105 | ||
4106 | int | |
4107 | main () | |
4108 | { | |
4109 | ||
4110 | ; | |
4111 | return 0; | |
4112 | } | |
4113 | _ACEOF | |
4114 | if ac_fn_c_try_compile "$LINENO"; then : | |
4115 | ||
4116 | else | |
4117 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4118 | CFLAGS="-g" | |
4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4120 | /* end confdefs.h. */ | |
ff4425cf | 4121 | |
cd9a469c | 4122 | int |
4123 | main () | |
4124 | { | |
4125 | ||
4126 | ; | |
4127 | return 0; | |
4128 | } | |
4129 | _ACEOF | |
4130 | if ac_fn_c_try_compile "$LINENO"; then : | |
4131 | ac_cv_prog_cc_g=yes | |
4132 | fi | |
4133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
82eaf560 | 4134 | fi |
cd9a469c | 4135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
82eaf560 | 4136 | fi |
cd9a469c | 4137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4138 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4139 | fi | |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4141 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
82eaf560 | 4142 | if test "$ac_test_CFLAGS" = set; then |
4143 | CFLAGS=$ac_save_CFLAGS | |
4144 | elif test $ac_cv_prog_cc_g = yes; then | |
4145 | if test "$GCC" = yes; then | |
4146 | CFLAGS="-g -O2" | |
4147 | else | |
4148 | CFLAGS="-g" | |
4149 | fi | |
4150 | else | |
4151 | if test "$GCC" = yes; then | |
4152 | CFLAGS="-O2" | |
4153 | else | |
4154 | CFLAGS= | |
4155 | fi | |
4156 | fi | |
cd9a469c | 4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4158 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4159 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4160 | $as_echo_n "(cached) " >&6 | |
82eaf560 | 4161 | else |
cd9a469c | 4162 | ac_cv_prog_cc_c89=no |
82eaf560 | 4163 | ac_save_CC=$CC |
cd9a469c | 4164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff4425cf | 4165 | /* end confdefs.h. */ |
82eaf560 | 4166 | #include <stdarg.h> |
4167 | #include <stdio.h> | |
4168 | #include <sys/types.h> | |
4169 | #include <sys/stat.h> | |
4170 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4171 | struct buf { int x; }; | |
4172 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4173 | static char *e (p, i) | |
4174 | char **p; | |
4175 | int i; | |
4176 | { | |
4177 | return p[i]; | |
4178 | } | |
4179 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4180 | { | |
4181 | char *s; | |
4182 | va_list v; | |
4183 | va_start (v,p); | |
4184 | s = g (p, va_arg (v,int)); | |
4185 | va_end (v); | |
4186 | return s; | |
4187 | } | |
ff4425cf | 4188 | |
82eaf560 | 4189 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4190 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4191 | These don't provoke an error unfortunately, instead are silently treated | |
cd9a469c | 4192 | as 'x'. The following induces an error, until -std is added to get |
82eaf560 | 4193 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4194 | array size at least. It's necessary to write '\x00'==0 to get something | |
cd9a469c | 4195 | that's true only with -std. */ |
82eaf560 | 4196 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4197 | ||
cd9a469c | 4198 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4199 | inside strings and character constants. */ | |
4200 | #define FOO(x) 'x' | |
4201 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4202 | ||
82eaf560 | 4203 | int test (int i, double x); |
4204 | struct s1 {int (*f) (int a);}; | |
4205 | struct s2 {int (*f) (double a);}; | |
4206 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4207 | int argc; | |
4208 | char **argv; | |
ff4425cf | 4209 | int |
4210 | main () | |
4211 | { | |
82eaf560 | 4212 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
ff4425cf | 4213 | ; |
4214 | return 0; | |
4215 | } | |
4216 | _ACEOF | |
cd9a469c | 4217 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4218 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
82eaf560 | 4219 | do |
4220 | CC="$ac_save_CC $ac_arg" | |
cd9a469c | 4221 | if ac_fn_c_try_compile "$LINENO"; then : |
4222 | ac_cv_prog_cc_c89=$ac_arg | |
82eaf560 | 4223 | fi |
cd9a469c | 4224 | rm -f core conftest.err conftest.$ac_objext |
4225 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
82eaf560 | 4226 | done |
cd9a469c | 4227 | rm -f conftest.$ac_ext |
82eaf560 | 4228 | CC=$ac_save_CC |
4229 | ||
4230 | fi | |
cd9a469c | 4231 | # AC_CACHE_VAL |
4232 | case "x$ac_cv_prog_cc_c89" in | |
4233 | x) | |
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4235 | $as_echo "none needed" >&6; } ;; | |
4236 | xno) | |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4238 | $as_echo "unsupported" >&6; } ;; | |
82eaf560 | 4239 | *) |
cd9a469c | 4240 | CC="$CC $ac_cv_prog_cc_c89" |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4242 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
82eaf560 | 4243 | esac |
cd9a469c | 4244 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4ee9c684 | 4245 | |
4246 | fi | |
4ee9c684 | 4247 | |
4ee9c684 | 4248 | ac_ext=c |
4249 | ac_cpp='$CPP $CPPFLAGS' | |
4250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2fd61f51 | 4253 | |
2fd61f51 | 4254 | depcc="$CC" am_compiler_list= |
4255 | ||
cd9a469c | 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4257 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4258 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4259 | $as_echo_n "(cached) " >&6 | |
2fd61f51 | 4260 | else |
4261 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4262 | # We make a subdir and do the tests there. Otherwise we can end up | |
4263 | # making bogus files that we don't know about and never remove. For | |
4264 | # instance it was reported that on HP-UX the gcc test will end up | |
4265 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4266 | # in D'. | |
4267 | mkdir conftest.dir | |
4268 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4269 | # using a relative directory. | |
4270 | cp "$am_depcomp" conftest.dir | |
4271 | cd conftest.dir | |
4272 | # We will build objects and dependencies in a subdirectory because | |
4273 | # it helps to detect inapplicable dependency modes. For instance | |
4274 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4275 | # side effect of compilation, but ICC will put the dependencies in | |
4276 | # the current directory while Tru64 will put them in the object | |
4277 | # directory. | |
4278 | mkdir sub | |
4279 | ||
4280 | am_cv_CC_dependencies_compiler_type=none | |
4281 | if test "$am_compiler_list" = ""; then | |
4282 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4283 | fi | |
cd9a469c | 4284 | am__universal=false |
4285 | case " $depcc " in #( | |
4286 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4287 | esac | |
4288 | ||
2fd61f51 | 4289 | for depmode in $am_compiler_list; do |
4290 | # Setup a source with many dependencies, because some compilers | |
4291 | # like to wrap large dependency lists on column 80 (with \), and | |
4292 | # we should not choose a depcomp mode which is confused by this. | |
4293 | # | |
4294 | # We need to recreate these files for each test, as the compiler may | |
4295 | # overwrite some of them when testing with obscure command lines. | |
4296 | # This happens at least with the AIX C compiler. | |
4297 | : > sub/conftest.c | |
4298 | for i in 1 2 3 4 5 6; do | |
4299 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4300 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4301 | # Solaris 8's {/usr,}/bin/sh. | |
4302 | touch sub/conftst$i.h | |
4303 | done | |
4304 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4305 | ||
cd9a469c | 4306 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4307 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4308 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4309 | # versions had trouble with output in subdirs | |
4310 | am__obj=sub/conftest.${OBJEXT-o} | |
4311 | am__minus_obj="-o $am__obj" | |
2fd61f51 | 4312 | case $depmode in |
cd9a469c | 4313 | gcc) |
4314 | # This depmode causes a compiler race in universal mode. | |
4315 | test "$am__universal" = false || continue | |
4316 | ;; | |
2fd61f51 | 4317 | nosideeffect) |
4318 | # after this tag, mechanisms are not by side-effect, so they'll | |
4319 | # only be used when explicitly requested | |
4320 | if test "x$enable_dependency_tracking" = xyes; then | |
4321 | continue | |
4322 | else | |
4323 | break | |
4324 | fi | |
4325 | ;; | |
cd9a469c | 4326 | msvisualcpp | msvcmsys) |
4327 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4328 | # not run yet. These depmodes are late enough in the game, and | |
4329 | # so weak that their functioning should not be impacted. | |
4330 | am__obj=conftest.${OBJEXT-o} | |
4331 | am__minus_obj= | |
4332 | ;; | |
2fd61f51 | 4333 | none) break ;; |
4334 | esac | |
2fd61f51 | 4335 | if depmode=$depmode \ |
cd9a469c | 4336 | source=sub/conftest.c object=$am__obj \ |
2fd61f51 | 4337 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
cd9a469c | 4338 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2fd61f51 | 4339 | >/dev/null 2>conftest.err && |
cd9a469c | 4340 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4341 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
cd9a469c | 4342 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2fd61f51 | 4343 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4344 | # icc doesn't choke on unknown options, it will just issue warnings | |
4345 | # or remarks (even with -Werror). So we grep stderr for any message | |
4346 | # that says an option was ignored or not supported. | |
4347 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4348 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4349 | # The diagnosis changed in icc 8.0: | |
4350 | # icc: Command line remark: option '-MP' not supported | |
4351 | if (grep 'ignoring option' conftest.err || | |
4352 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4353 | am_cv_CC_dependencies_compiler_type=$depmode | |
4354 | break | |
4355 | fi | |
4356 | fi | |
4357 | done | |
4358 | ||
4359 | cd .. | |
4360 | rm -rf conftest.dir | |
4361 | else | |
4362 | am_cv_CC_dependencies_compiler_type=none | |
4363 | fi | |
4364 | ||
4365 | fi | |
cd9a469c | 4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4367 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
2fd61f51 | 4368 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4369 | ||
cd9a469c | 4370 | if |
2fd61f51 | 4371 | test "x$enable_dependency_tracking" != xno \ |
4372 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4373 | am__fastdepCC_TRUE= | |
4374 | am__fastdepCC_FALSE='#' | |
4375 | else | |
4376 | am__fastdepCC_TRUE='#' | |
4377 | am__fastdepCC_FALSE= | |
4378 | fi | |
4379 | ||
4ee9c684 | 4380 | |
4ee9c684 | 4381 | |
d5d92632 | 4382 | ac_ext=c |
4383 | ac_cpp='$CPP $CPPFLAGS' | |
4384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4388 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4389 | # On Suns, sometimes $CPP names a directory. | |
4390 | if test -n "$CPP" && test -d "$CPP"; then | |
4391 | CPP= | |
4ee9c684 | 4392 | fi |
d5d92632 | 4393 | if test -z "$CPP"; then |
4394 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
4395 | $as_echo_n "(cached) " >&6 | |
4396 | else | |
4397 | # Double quotes because CPP needs to be expanded | |
4398 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4399 | do | |
4400 | ac_preproc_ok=false | |
4401 | for ac_c_preproc_warn_flag in '' yes | |
4402 | do | |
4403 | # Use a header file that comes with gcc, so configuring glibc | |
4404 | # with a fresh cross-compiler works. | |
4405 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4406 | # <limits.h> exists even on freestanding compilers. | |
4407 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4408 | # not just through cpp. "Syntax error" is here to catch this case. | |
4409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce1a737c | 4410 | /* end confdefs.h. */ |
d5d92632 | 4411 | #ifdef __STDC__ |
4412 | # include <limits.h> | |
4413 | #else | |
4414 | # include <assert.h> | |
4415 | #endif | |
4416 | Syntax error | |
ce1a737c | 4417 | _ACEOF |
d5d92632 | 4418 | if ac_fn_c_try_cpp "$LINENO"; then : |
4419 | ||
019fb48a | 4420 | else |
d5d92632 | 4421 | # Broken: fails on valid input. |
4422 | continue | |
019fb48a | 4423 | fi |
d5d92632 | 4424 | rm -f conftest.err conftest.$ac_ext |
019fb48a | 4425 | |
d5d92632 | 4426 | # OK, works on sane cases. Now check whether nonexistent headers |
4427 | # can be detected and how. | |
4428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4429 | /* end confdefs.h. */ | |
4430 | #include <ac_nonexistent.h> | |
019fb48a | 4431 | _ACEOF |
d5d92632 | 4432 | if ac_fn_c_try_cpp "$LINENO"; then : |
4433 | # Broken: success on invalid input. | |
4434 | continue | |
ce1a737c | 4435 | else |
d5d92632 | 4436 | # Passes both tests. |
4437 | ac_preproc_ok=: | |
4438 | break | |
019fb48a | 4439 | fi |
d5d92632 | 4440 | rm -f conftest.err conftest.$ac_ext |
4441 | ||
4442 | done | |
4443 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4444 | rm -f conftest.err conftest.$ac_ext | |
4445 | if $ac_preproc_ok; then : | |
4446 | break | |
ce1a737c | 4447 | fi |
4448 | ||
d5d92632 | 4449 | done |
4450 | ac_cv_prog_CPP=$CPP | |
4451 | ||
4452 | fi | |
4453 | CPP=$ac_cv_prog_CPP | |
019fb48a | 4454 | else |
d5d92632 | 4455 | ac_cv_prog_CPP=$CPP |
019fb48a | 4456 | fi |
d5d92632 | 4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4458 | $as_echo "$CPP" >&6; } | |
4459 | ac_preproc_ok=false | |
4460 | for ac_c_preproc_warn_flag in '' yes | |
4461 | do | |
4462 | # Use a header file that comes with gcc, so configuring glibc | |
4463 | # with a fresh cross-compiler works. | |
4464 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4465 | # <limits.h> exists even on freestanding compilers. | |
4466 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4467 | # not just through cpp. "Syntax error" is here to catch this case. | |
4468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4469 | /* end confdefs.h. */ | |
4470 | #ifdef __STDC__ | |
4471 | # include <limits.h> | |
4472 | #else | |
4473 | # include <assert.h> | |
4474 | #endif | |
4475 | Syntax error | |
4476 | _ACEOF | |
4477 | if ac_fn_c_try_cpp "$LINENO"; then : | |
019fb48a | 4478 | |
019fb48a | 4479 | else |
d5d92632 | 4480 | # Broken: fails on valid input. |
4481 | continue | |
019fb48a | 4482 | fi |
d5d92632 | 4483 | rm -f conftest.err conftest.$ac_ext |
019fb48a | 4484 | |
d5d92632 | 4485 | # OK, works on sane cases. Now check whether nonexistent headers |
4486 | # can be detected and how. | |
4487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3443eac1 | 4488 | /* end confdefs.h. */ |
d5d92632 | 4489 | #include <ac_nonexistent.h> |
3443eac1 | 4490 | _ACEOF |
d5d92632 | 4491 | if ac_fn_c_try_cpp "$LINENO"; then : |
4492 | # Broken: success on invalid input. | |
4493 | continue | |
3443eac1 | 4494 | else |
d5d92632 | 4495 | # Passes both tests. |
4496 | ac_preproc_ok=: | |
4497 | break | |
3443eac1 | 4498 | fi |
d5d92632 | 4499 | rm -f conftest.err conftest.$ac_ext |
4500 | ||
4501 | done | |
4502 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4503 | rm -f conftest.err conftest.$ac_ext | |
4504 | if $ac_preproc_ok; then : | |
4505 | ||
3443eac1 | 4506 | else |
d5d92632 | 4507 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4509 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4510 | See \`config.log' for more details." "$LINENO" 5; } | |
3443eac1 | 4511 | fi |
3443eac1 | 4512 | |
d5d92632 | 4513 | ac_ext=c |
4514 | ac_cpp='$CPP $CPPFLAGS' | |
4515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3443eac1 | 4518 | |
d5d92632 | 4519 | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4521 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4522 | if test "${ac_cv_path_GREP+set}" = set; then : | |
cd9a469c | 4523 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4524 | else |
d5d92632 | 4525 | if test -z "$GREP"; then |
4526 | ac_path_GREP_found=false | |
4527 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4529 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
90973b19 | 4530 | do |
4531 | IFS=$as_save_IFS | |
4532 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4533 | for ac_prog in grep ggrep; do |
cd9a469c | 4534 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4535 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4536 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4537 | # Check for GNU ac_path_GREP and select it if it is found. | |
4538 | # Check for GNU $ac_path_GREP | |
4539 | case `"$ac_path_GREP" --version 2>&1` in | |
4540 | *GNU*) | |
4541 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4542 | *) | |
4543 | ac_count=0 | |
4544 | $as_echo_n 0123456789 >"conftest.in" | |
4545 | while : | |
4546 | do | |
4547 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4548 | mv "conftest.tmp" "conftest.in" | |
4549 | cp "conftest.in" "conftest.nl" | |
4550 | $as_echo 'GREP' >> "conftest.nl" | |
4551 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4552 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4553 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4554 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4555 | # Best one so far, save it but keep looking for a better one | |
4556 | ac_cv_path_GREP="$ac_path_GREP" | |
4557 | ac_path_GREP_max=$ac_count | |
4558 | fi | |
4559 | # 10*(2^10) chars as input seems more than enough | |
4560 | test $ac_count -gt 10 && break | |
cd9a469c | 4561 | done |
d5d92632 | 4562 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4563 | esac | |
4ee9c684 | 4564 | |
d5d92632 | 4565 | $ac_path_GREP_found && break 3 |
4566 | done | |
4567 | done | |
4568 | done | |
4569 | IFS=$as_save_IFS | |
4570 | if test -z "$ac_cv_path_GREP"; then | |
4571 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4572 | fi | |
4ee9c684 | 4573 | else |
d5d92632 | 4574 | ac_cv_path_GREP=$GREP |
4ee9c684 | 4575 | fi |
4576 | ||
4ee9c684 | 4577 | fi |
d5d92632 | 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4579 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4580 | GREP="$ac_cv_path_GREP" | |
4ee9c684 | 4581 | |
d5d92632 | 4582 | |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4584 | $as_echo_n "checking for egrep... " >&6; } | |
4585 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
cd9a469c | 4586 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4587 | else |
d5d92632 | 4588 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4589 | then ac_cv_path_EGREP="$GREP -E" | |
4590 | else | |
4591 | if test -z "$EGREP"; then | |
4592 | ac_path_EGREP_found=false | |
4593 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4595 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4ee9c684 | 4596 | do |
4597 | IFS=$as_save_IFS | |
4598 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 4599 | for ac_prog in egrep; do |
cd9a469c | 4600 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 4601 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4602 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4603 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4604 | # Check for GNU $ac_path_EGREP | |
4605 | case `"$ac_path_EGREP" --version 2>&1` in | |
4606 | *GNU*) | |
4607 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4608 | *) | |
4609 | ac_count=0 | |
4610 | $as_echo_n 0123456789 >"conftest.in" | |
4611 | while : | |
4612 | do | |
4613 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4614 | mv "conftest.tmp" "conftest.in" | |
4615 | cp "conftest.in" "conftest.nl" | |
4616 | $as_echo 'EGREP' >> "conftest.nl" | |
4617 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4618 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4619 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4620 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4621 | # Best one so far, save it but keep looking for a better one | |
4622 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4623 | ac_path_EGREP_max=$ac_count | |
4624 | fi | |
4625 | # 10*(2^10) chars as input seems more than enough | |
4626 | test $ac_count -gt 10 && break | |
cd9a469c | 4627 | done |
d5d92632 | 4628 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4629 | esac | |
4ee9c684 | 4630 | |
d5d92632 | 4631 | $ac_path_EGREP_found && break 3 |
4632 | done | |
4633 | done | |
4634 | done | |
4635 | IFS=$as_save_IFS | |
4636 | if test -z "$ac_cv_path_EGREP"; then | |
4637 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4638 | fi | |
4ee9c684 | 4639 | else |
d5d92632 | 4640 | ac_cv_path_EGREP=$EGREP |
4ee9c684 | 4641 | fi |
4642 | ||
d5d92632 | 4643 | fi |
4ee9c684 | 4644 | fi |
d5d92632 | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4646 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4647 | EGREP="$ac_cv_path_EGREP" | |
4648 | ||
4649 | ||
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4651 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4652 | if test "${ac_cv_header_stdc+set}" = set; then : | |
cd9a469c | 4653 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4654 | else |
d5d92632 | 4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4656 | /* end confdefs.h. */ | |
4657 | #include <stdlib.h> | |
4658 | #include <stdarg.h> | |
4659 | #include <string.h> | |
4660 | #include <float.h> | |
4661 | ||
4662 | int | |
4663 | main () | |
4664 | { | |
4665 | ||
4666 | ; | |
4667 | return 0; | |
4668 | } | |
4669 | _ACEOF | |
4670 | if ac_fn_c_try_compile "$LINENO"; then : | |
4671 | ac_cv_header_stdc=yes | |
4ee9c684 | 4672 | else |
d5d92632 | 4673 | ac_cv_header_stdc=no |
4674 | fi | |
4675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4ee9c684 | 4676 | |
d5d92632 | 4677 | if test $ac_cv_header_stdc = yes; then |
4678 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4680 | /* end confdefs.h. */ | |
4681 | #include <string.h> | |
4682 | ||
4683 | _ACEOF | |
4684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4685 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4686 | ||
4687 | else | |
4688 | ac_cv_header_stdc=no | |
4ee9c684 | 4689 | fi |
d5d92632 | 4690 | rm -f conftest* |
4691 | ||
4ee9c684 | 4692 | fi |
d5d92632 | 4693 | |
4694 | if test $ac_cv_header_stdc = yes; then | |
4695 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4697 | /* end confdefs.h. */ | |
4698 | #include <stdlib.h> | |
4699 | ||
4700 | _ACEOF | |
4701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4702 | $EGREP "free" >/dev/null 2>&1; then : | |
4703 | ||
4ee9c684 | 4704 | else |
d5d92632 | 4705 | ac_cv_header_stdc=no |
4ee9c684 | 4706 | fi |
d5d92632 | 4707 | rm -f conftest* |
4ee9c684 | 4708 | |
4ee9c684 | 4709 | fi |
4710 | ||
d5d92632 | 4711 | if test $ac_cv_header_stdc = yes; then |
4712 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4713 | if test "$cross_compiling" = yes; then : | |
4714 | : | |
4715 | else | |
4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4717 | /* end confdefs.h. */ | |
4718 | #include <ctype.h> | |
4719 | #include <stdlib.h> | |
4720 | #if ((' ' & 0x0FF) == 0x020) | |
4721 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4722 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4723 | #else | |
4724 | # define ISLOWER(c) \ | |
4725 | (('a' <= (c) && (c) <= 'i') \ | |
4726 | || ('j' <= (c) && (c) <= 'r') \ | |
4727 | || ('s' <= (c) && (c) <= 'z')) | |
4728 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4729 | #endif | |
4730 | ||
4731 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4732 | int | |
4733 | main () | |
4734 | { | |
4735 | int i; | |
4736 | for (i = 0; i < 256; i++) | |
4737 | if (XOR (islower (i), ISLOWER (i)) | |
4738 | || toupper (i) != TOUPPER (i)) | |
4739 | return 2; | |
4740 | return 0; | |
4741 | } | |
4742 | _ACEOF | |
4743 | if ac_fn_c_try_run "$LINENO"; then : | |
4744 | ||
4745 | else | |
4746 | ac_cv_header_stdc=no | |
4747 | fi | |
4748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4749 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4750 | fi | |
4751 | ||
4752 | fi | |
4753 | fi | |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4755 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4756 | if test $ac_cv_header_stdc = yes; then | |
4757 | ||
4758 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4759 | ||
4760 | fi | |
4761 | ||
4762 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4763 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4764 | inttypes.h stdint.h unistd.h | |
4765 | do : | |
4766 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4767 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4768 | " | |
4769 | eval as_val=\$$as_ac_Header | |
4770 | if test "x$as_val" = x""yes; then : | |
4771 | cat >>confdefs.h <<_ACEOF | |
4772 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4773 | _ACEOF | |
4774 | ||
4775 | fi | |
4776 | ||
4777 | done | |
4778 | ||
4779 | ||
4780 | ||
4781 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4782 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
4783 | MINIX=yes | |
4784 | else | |
4785 | MINIX= | |
4786 | fi | |
4787 | ||
4788 | ||
4789 | if test "$MINIX" = yes; then | |
4790 | ||
4791 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4792 | ||
4793 | ||
4794 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4795 | ||
4796 | ||
4797 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4798 | ||
4799 | fi | |
4800 | ||
4801 | ||
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4803 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4804 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4805 | $as_echo_n "(cached) " >&6 | |
4806 | else | |
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4808 | /* end confdefs.h. */ | |
4809 | ||
4810 | # define __EXTENSIONS__ 1 | |
4811 | $ac_includes_default | |
4812 | int | |
4813 | main () | |
4814 | { | |
4815 | ||
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | if ac_fn_c_try_compile "$LINENO"; then : | |
4821 | ac_cv_safe_to_define___extensions__=yes | |
4822 | else | |
4823 | ac_cv_safe_to_define___extensions__=no | |
4824 | fi | |
4825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4826 | fi | |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4828 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4829 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4830 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4831 | ||
4832 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4833 | ||
4834 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4835 | ||
4836 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4837 | ||
4838 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4839 | ||
4840 | ||
4841 | ||
4842 | # Calculate toolexeclibdir | |
4843 | # Also toolexecdir, though it's only used in toolexeclibdir | |
4844 | case ${version_specific_libs} in | |
4845 | yes) | |
4846 | # Need the gcc compiler version to know where to install libraries | |
4847 | # and header files if --enable-version-specific-runtime-libs option | |
4848 | # is selected. | |
4849 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
4850 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
4851 | ;; | |
4852 | no) | |
4853 | if test -n "$with_cross_host" && | |
4854 | test x"$with_cross_host" != x"no"; then | |
4855 | # Install a library built with a cross compiler in tooldir, not libdir. | |
4856 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
4857 | toolexeclibdir='$(toolexecdir)/lib' | |
4858 | else | |
4859 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
4860 | toolexeclibdir='$(libdir)' | |
4861 | fi | |
4862 | multi_os_directory=`$CC -print-multi-os-directory` | |
4863 | case $multi_os_directory in | |
4864 | .) ;; # Avoid trailing /. | |
4865 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
4866 | esac | |
4867 | ;; | |
4868 | esac | |
4869 | ||
4870 | ||
4871 | ||
4872 | # Create a spec file, so that compile/link tests don't fail | |
4873 | test -f libgfortran.spec || touch libgfortran.spec | |
4874 | ||
4875 | # Check the compiler. | |
4876 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
4877 | # We must force CC to /not/ be precious variables; otherwise | |
4878 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
4879 | # As a side effect, we have to subst CFLAGS ourselves. | |
4880 | ||
4881 | ||
4882 | ||
4883 | ac_ext=c | |
4884 | ac_cpp='$CPP $CPPFLAGS' | |
4885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4888 | if test -n "$ac_tool_prefix"; then | |
4889 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4890 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
cd9a469c | 4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4892 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 4893 | if test "${ac_cv_prog_CC+set}" = set; then : |
cd9a469c | 4894 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4895 | else |
d5d92632 | 4896 | if test -n "$CC"; then |
4897 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 4898 | else |
90973b19 | 4899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4900 | for as_dir in $PATH | |
4901 | do | |
4902 | IFS=$as_save_IFS | |
4903 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4904 | for ac_exec_ext in '' $ac_executable_extensions; do |
4905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 4906 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cd9a469c | 4907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 4908 | break 2 |
4909 | fi | |
4910 | done | |
cd9a469c | 4911 | done |
4912 | IFS=$as_save_IFS | |
4ee9c684 | 4913 | |
4ee9c684 | 4914 | fi |
90973b19 | 4915 | fi |
d5d92632 | 4916 | CC=$ac_cv_prog_CC |
4917 | if test -n "$CC"; then | |
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4919 | $as_echo "$CC" >&6; } | |
90973b19 | 4920 | else |
cd9a469c | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4922 | $as_echo "no" >&6; } | |
90973b19 | 4923 | fi |
4ee9c684 | 4924 | |
cd9a469c | 4925 | |
4ee9c684 | 4926 | fi |
d5d92632 | 4927 | if test -z "$ac_cv_prog_CC"; then |
4928 | ac_ct_CC=$CC | |
4929 | # Extract the first word of "gcc", so it can be a program name with args. | |
4930 | set dummy gcc; ac_word=$2 | |
cd9a469c | 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4932 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 4933 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
cd9a469c | 4934 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4935 | else |
d5d92632 | 4936 | if test -n "$ac_ct_CC"; then |
4937 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4ee9c684 | 4938 | else |
90973b19 | 4939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4940 | for as_dir in $PATH | |
4941 | do | |
4942 | IFS=$as_save_IFS | |
4943 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 4944 | for ac_exec_ext in '' $ac_executable_extensions; do |
4945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 4946 | ac_cv_prog_ac_ct_CC="gcc" |
cd9a469c | 4947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 4948 | break 2 |
4949 | fi | |
4950 | done | |
cd9a469c | 4951 | done |
4952 | IFS=$as_save_IFS | |
4ee9c684 | 4953 | |
4ee9c684 | 4954 | fi |
4ee9c684 | 4955 | fi |
d5d92632 | 4956 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4957 | if test -n "$ac_ct_CC"; then | |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4959 | $as_echo "$ac_ct_CC" >&6; } | |
4ee9c684 | 4960 | else |
cd9a469c | 4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4962 | $as_echo "no" >&6; } | |
4ee9c684 | 4963 | fi |
4964 | ||
d5d92632 | 4965 | if test "x$ac_ct_CC" = x; then |
4966 | CC="" | |
cd9a469c | 4967 | else |
4968 | case $cross_compiling:$ac_tool_warned in | |
4969 | yes:) | |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4972 | ac_tool_warned=yes ;; | |
4973 | esac | |
d5d92632 | 4974 | CC=$ac_ct_CC |
cd9a469c | 4975 | fi |
90973b19 | 4976 | else |
d5d92632 | 4977 | CC="$ac_cv_prog_CC" |
4ee9c684 | 4978 | fi |
90973b19 | 4979 | |
d5d92632 | 4980 | if test -z "$CC"; then |
4981 | if test -n "$ac_tool_prefix"; then | |
4982 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4983 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4985 | $as_echo_n "checking for $ac_word... " >&6; } | |
4986 | if test "${ac_cv_prog_CC+set}" = set; then : | |
cd9a469c | 4987 | $as_echo_n "(cached) " >&6 |
4ee9c684 | 4988 | else |
d5d92632 | 4989 | if test -n "$CC"; then |
4990 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4ee9c684 | 4991 | else |
d5d92632 | 4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4993 | for as_dir in $PATH | |
4994 | do | |
4995 | IFS=$as_save_IFS | |
4996 | test -z "$as_dir" && as_dir=. | |
4997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4999 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
5000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5001 | break 2 | |
5002 | fi | |
5003 | done | |
5004 | done | |
5005 | IFS=$as_save_IFS | |
5006 | ||
5007 | fi | |
5008 | fi | |
5009 | CC=$ac_cv_prog_CC | |
5010 | if test -n "$CC"; then | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5012 | $as_echo "$CC" >&6; } | |
5013 | else | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5015 | $as_echo "no" >&6; } | |
5016 | fi | |
5017 | ||
5018 | ||
5019 | fi | |
5020 | fi | |
5021 | if test -z "$CC"; then | |
5022 | # Extract the first word of "cc", so it can be a program name with args. | |
5023 | set dummy cc; ac_word=$2 | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5025 | $as_echo_n "checking for $ac_word... " >&6; } | |
5026 | if test "${ac_cv_prog_CC+set}" = set; then : | |
5027 | $as_echo_n "(cached) " >&6 | |
5028 | else | |
5029 | if test -n "$CC"; then | |
5030 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5031 | else | |
5032 | ac_prog_rejected=no | |
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5034 | for as_dir in $PATH | |
5035 | do | |
5036 | IFS=$as_save_IFS | |
5037 | test -z "$as_dir" && as_dir=. | |
5038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5040 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
5041 | ac_prog_rejected=yes | |
5042 | continue | |
5043 | fi | |
5044 | ac_cv_prog_CC="cc" | |
5045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5046 | break 2 | |
5047 | fi | |
5048 | done | |
5049 | done | |
5050 | IFS=$as_save_IFS | |
5051 | ||
5052 | if test $ac_prog_rejected = yes; then | |
5053 | # We found a bogon in the path, so make sure we never use it. | |
5054 | set dummy $ac_cv_prog_CC | |
5055 | shift | |
5056 | if test $# != 0; then | |
5057 | # We chose a different compiler from the bogus one. | |
5058 | # However, it has the same basename, so the bogon will be chosen | |
5059 | # first if we set CC to just the basename; use the full file name. | |
5060 | shift | |
5061 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5062 | fi | |
5063 | fi | |
5064 | fi | |
5065 | fi | |
5066 | CC=$ac_cv_prog_CC | |
5067 | if test -n "$CC"; then | |
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5069 | $as_echo "$CC" >&6; } | |
5070 | else | |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5072 | $as_echo "no" >&6; } | |
5073 | fi | |
5074 | ||
5075 | ||
5076 | fi | |
5077 | if test -z "$CC"; then | |
5078 | if test -n "$ac_tool_prefix"; then | |
5079 | for ac_prog in cl.exe | |
5080 | do | |
5081 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5082 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5084 | $as_echo_n "checking for $ac_word... " >&6; } | |
5085 | if test "${ac_cv_prog_CC+set}" = set; then : | |
5086 | $as_echo_n "(cached) " >&6 | |
5087 | else | |
5088 | if test -n "$CC"; then | |
5089 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5090 | else | |
5091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5092 | for as_dir in $PATH | |
5093 | do | |
5094 | IFS=$as_save_IFS | |
5095 | test -z "$as_dir" && as_dir=. | |
5096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5098 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
5099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5100 | break 2 | |
5101 | fi | |
5102 | done | |
5103 | done | |
5104 | IFS=$as_save_IFS | |
5105 | ||
5106 | fi | |
5107 | fi | |
5108 | CC=$ac_cv_prog_CC | |
5109 | if test -n "$CC"; then | |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5111 | $as_echo "$CC" >&6; } | |
5112 | else | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5114 | $as_echo "no" >&6; } | |
5115 | fi | |
5116 | ||
5117 | ||
5118 | test -n "$CC" && break | |
5119 | done | |
5120 | fi | |
5121 | if test -z "$CC"; then | |
5122 | ac_ct_CC=$CC | |
5123 | for ac_prog in cl.exe | |
5124 | do | |
5125 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5126 | set dummy $ac_prog; ac_word=$2 | |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5128 | $as_echo_n "checking for $ac_word... " >&6; } | |
5129 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
5130 | $as_echo_n "(cached) " >&6 | |
5131 | else | |
5132 | if test -n "$ac_ct_CC"; then | |
5133 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5134 | else | |
5135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5136 | for as_dir in $PATH | |
5137 | do | |
5138 | IFS=$as_save_IFS | |
5139 | test -z "$as_dir" && as_dir=. | |
5140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5142 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5144 | break 2 | |
5145 | fi | |
5146 | done | |
5147 | done | |
5148 | IFS=$as_save_IFS | |
5149 | ||
5150 | fi | |
5151 | fi | |
5152 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5153 | if test -n "$ac_ct_CC"; then | |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5155 | $as_echo "$ac_ct_CC" >&6; } | |
5156 | else | |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5158 | $as_echo "no" >&6; } | |
5159 | fi | |
5160 | ||
5161 | ||
5162 | test -n "$ac_ct_CC" && break | |
5163 | done | |
5164 | ||
5165 | if test "x$ac_ct_CC" = x; then | |
5166 | CC="" | |
5167 | else | |
5168 | case $cross_compiling:$ac_tool_warned in | |
5169 | yes:) | |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5171 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5172 | ac_tool_warned=yes ;; | |
5173 | esac | |
5174 | CC=$ac_ct_CC | |
5175 | fi | |
5176 | fi | |
5177 | ||
5178 | fi | |
5179 | ||
5180 | ||
5181 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5182 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5183 | as_fn_error "no acceptable C compiler found in \$PATH | |
5184 | See \`config.log' for more details." "$LINENO" 5; } | |
5185 | ||
5186 | # Provide some information about the compiler. | |
5187 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5188 | set X $ac_compile | |
5189 | ac_compiler=$2 | |
5190 | for ac_option in --version -v -V -qversion; do | |
5191 | { { ac_try="$ac_compiler $ac_option >&5" | |
5192 | case "(($ac_try" in | |
5193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5194 | *) ac_try_echo=$ac_try;; | |
5195 | esac | |
5196 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5197 | $as_echo "$ac_try_echo"; } >&5 | |
5198 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5199 | ac_status=$? | |
5200 | if test -s conftest.err; then | |
5201 | sed '10a\ | |
5202 | ... rest of stderr output deleted ... | |
5203 | 10q' conftest.err >conftest.er1 | |
5204 | cat conftest.er1 >&5 | |
5205 | rm -f conftest.er1 conftest.err | |
5206 | fi | |
5207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5208 | test $ac_status = 0; } | |
5209 | done | |
5210 | ||
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5212 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5213 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
5214 | $as_echo_n "(cached) " >&6 | |
5215 | else | |
5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5217 | /* end confdefs.h. */ | |
5218 | ||
5219 | int | |
5220 | main () | |
5221 | { | |
5222 | #ifndef __GNUC__ | |
5223 | choke me | |
5224 | #endif | |
5225 | ||
5226 | ; | |
5227 | return 0; | |
5228 | } | |
5229 | _ACEOF | |
5230 | if ac_fn_c_try_compile "$LINENO"; then : | |
5231 | ac_compiler_gnu=yes | |
5232 | else | |
5233 | ac_compiler_gnu=no | |
5234 | fi | |
5235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5236 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5237 | ||
5238 | fi | |
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5240 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5241 | if test $ac_compiler_gnu = yes; then | |
5242 | GCC=yes | |
5243 | else | |
5244 | GCC= | |
5245 | fi | |
5246 | ac_test_CFLAGS=${CFLAGS+set} | |
5247 | ac_save_CFLAGS=$CFLAGS | |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5249 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
5250 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5252 | else | |
5253 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5254 | ac_c_werror_flag=yes | |
5255 | ac_cv_prog_cc_g=no | |
5256 | CFLAGS="-g" | |
5257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5258 | /* end confdefs.h. */ | |
5259 | ||
5260 | int | |
5261 | main () | |
5262 | { | |
5263 | ||
5264 | ; | |
5265 | return 0; | |
5266 | } | |
5267 | _ACEOF | |
5268 | if ac_fn_c_try_compile "$LINENO"; then : | |
5269 | ac_cv_prog_cc_g=yes | |
5270 | else | |
5271 | CFLAGS="" | |
5272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5273 | /* end confdefs.h. */ | |
5274 | ||
5275 | int | |
5276 | main () | |
5277 | { | |
5278 | ||
5279 | ; | |
5280 | return 0; | |
5281 | } | |
5282 | _ACEOF | |
5283 | if ac_fn_c_try_compile "$LINENO"; then : | |
5284 | ||
5285 | else | |
5286 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5287 | CFLAGS="-g" | |
5288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5289 | /* end confdefs.h. */ | |
5290 | ||
5291 | int | |
5292 | main () | |
5293 | { | |
5294 | ||
5295 | ; | |
5296 | return 0; | |
5297 | } | |
5298 | _ACEOF | |
5299 | if ac_fn_c_try_compile "$LINENO"; then : | |
5300 | ac_cv_prog_cc_g=yes | |
5301 | fi | |
5302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5303 | fi | |
5304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5305 | fi | |
5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5307 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5308 | fi | |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5310 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5311 | if test "$ac_test_CFLAGS" = set; then | |
5312 | CFLAGS=$ac_save_CFLAGS | |
5313 | elif test $ac_cv_prog_cc_g = yes; then | |
5314 | if test "$GCC" = yes; then | |
5315 | CFLAGS="-g -O2" | |
5316 | else | |
5317 | CFLAGS="-g" | |
5318 | fi | |
5319 | else | |
5320 | if test "$GCC" = yes; then | |
5321 | CFLAGS="-O2" | |
5322 | else | |
5323 | CFLAGS= | |
5324 | fi | |
5325 | fi | |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5327 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5328 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
5329 | $as_echo_n "(cached) " >&6 | |
5330 | else | |
5331 | ac_cv_prog_cc_c89=no | |
5332 | ac_save_CC=$CC | |
5333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5334 | /* end confdefs.h. */ | |
5335 | #include <stdarg.h> | |
5336 | #include <stdio.h> | |
5337 | #include <sys/types.h> | |
5338 | #include <sys/stat.h> | |
5339 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5340 | struct buf { int x; }; | |
5341 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5342 | static char *e (p, i) | |
5343 | char **p; | |
5344 | int i; | |
5345 | { | |
5346 | return p[i]; | |
5347 | } | |
5348 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5349 | { | |
5350 | char *s; | |
5351 | va_list v; | |
5352 | va_start (v,p); | |
5353 | s = g (p, va_arg (v,int)); | |
5354 | va_end (v); | |
5355 | return s; | |
5356 | } | |
5357 | ||
5358 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5359 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5360 | These don't provoke an error unfortunately, instead are silently treated | |
5361 | as 'x'. The following induces an error, until -std is added to get | |
5362 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5363 | array size at least. It's necessary to write '\x00'==0 to get something | |
5364 | that's true only with -std. */ | |
5365 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5366 | ||
5367 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5368 | inside strings and character constants. */ | |
5369 | #define FOO(x) 'x' | |
5370 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5371 | ||
5372 | int test (int i, double x); | |
5373 | struct s1 {int (*f) (int a);}; | |
5374 | struct s2 {int (*f) (double a);}; | |
5375 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5376 | int argc; | |
5377 | char **argv; | |
5378 | int | |
5379 | main () | |
5380 | { | |
5381 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5382 | ; | |
5383 | return 0; | |
5384 | } | |
5385 | _ACEOF | |
5386 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5387 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5388 | do | |
5389 | CC="$ac_save_CC $ac_arg" | |
5390 | if ac_fn_c_try_compile "$LINENO"; then : | |
5391 | ac_cv_prog_cc_c89=$ac_arg | |
5392 | fi | |
5393 | rm -f core conftest.err conftest.$ac_objext | |
5394 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5395 | done | |
5396 | rm -f conftest.$ac_ext | |
5397 | CC=$ac_save_CC | |
5398 | ||
5399 | fi | |
5400 | # AC_CACHE_VAL | |
5401 | case "x$ac_cv_prog_cc_c89" in | |
5402 | x) | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5404 | $as_echo "none needed" >&6; } ;; | |
5405 | xno) | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5407 | $as_echo "unsupported" >&6; } ;; | |
5408 | *) | |
5409 | CC="$CC $ac_cv_prog_cc_c89" | |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5411 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5412 | esac | |
5413 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5414 | ||
5415 | fi | |
5416 | ||
5417 | ac_ext=c | |
5418 | ac_cpp='$CPP $CPPFLAGS' | |
5419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5422 | ||
5423 | depcc="$CC" am_compiler_list= | |
5424 | ||
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5426 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5427 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
5428 | $as_echo_n "(cached) " >&6 | |
5429 | else | |
5430 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5431 | # We make a subdir and do the tests there. Otherwise we can end up | |
5432 | # making bogus files that we don't know about and never remove. For | |
5433 | # instance it was reported that on HP-UX the gcc test will end up | |
5434 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5435 | # in D'. | |
5436 | mkdir conftest.dir | |
5437 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5438 | # using a relative directory. | |
5439 | cp "$am_depcomp" conftest.dir | |
5440 | cd conftest.dir | |
5441 | # We will build objects and dependencies in a subdirectory because | |
5442 | # it helps to detect inapplicable dependency modes. For instance | |
5443 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5444 | # side effect of compilation, but ICC will put the dependencies in | |
5445 | # the current directory while Tru64 will put them in the object | |
5446 | # directory. | |
5447 | mkdir sub | |
5448 | ||
5449 | am_cv_CC_dependencies_compiler_type=none | |
5450 | if test "$am_compiler_list" = ""; then | |
5451 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5452 | fi | |
5453 | am__universal=false | |
5454 | case " $depcc " in #( | |
5455 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5456 | esac | |
5457 | ||
5458 | for depmode in $am_compiler_list; do | |
5459 | # Setup a source with many dependencies, because some compilers | |
5460 | # like to wrap large dependency lists on column 80 (with \), and | |
5461 | # we should not choose a depcomp mode which is confused by this. | |
5462 | # | |
5463 | # We need to recreate these files for each test, as the compiler may | |
5464 | # overwrite some of them when testing with obscure command lines. | |
5465 | # This happens at least with the AIX C compiler. | |
5466 | : > sub/conftest.c | |
5467 | for i in 1 2 3 4 5 6; do | |
5468 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5469 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5470 | # Solaris 8's {/usr,}/bin/sh. | |
5471 | touch sub/conftst$i.h | |
5472 | done | |
5473 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5474 | ||
5475 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5476 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5477 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5478 | # versions had trouble with output in subdirs | |
5479 | am__obj=sub/conftest.${OBJEXT-o} | |
5480 | am__minus_obj="-o $am__obj" | |
5481 | case $depmode in | |
5482 | gcc) | |
5483 | # This depmode causes a compiler race in universal mode. | |
5484 | test "$am__universal" = false || continue | |
5485 | ;; | |
5486 | nosideeffect) | |
5487 | # after this tag, mechanisms are not by side-effect, so they'll | |
5488 | # only be used when explicitly requested | |
5489 | if test "x$enable_dependency_tracking" = xyes; then | |
5490 | continue | |
5491 | else | |
5492 | break | |
5493 | fi | |
5494 | ;; | |
5495 | msvisualcpp | msvcmsys) | |
5496 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5497 | # not run yet. These depmodes are late enough in the game, and | |
5498 | # so weak that their functioning should not be impacted. | |
5499 | am__obj=conftest.${OBJEXT-o} | |
5500 | am__minus_obj= | |
5501 | ;; | |
5502 | none) break ;; | |
5503 | esac | |
5504 | if depmode=$depmode \ | |
5505 | source=sub/conftest.c object=$am__obj \ | |
5506 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5507 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5508 | >/dev/null 2>conftest.err && | |
5509 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5510 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5511 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5512 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5513 | # icc doesn't choke on unknown options, it will just issue warnings | |
5514 | # or remarks (even with -Werror). So we grep stderr for any message | |
5515 | # that says an option was ignored or not supported. | |
5516 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5517 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5518 | # The diagnosis changed in icc 8.0: | |
5519 | # icc: Command line remark: option '-MP' not supported | |
5520 | if (grep 'ignoring option' conftest.err || | |
5521 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5522 | am_cv_CC_dependencies_compiler_type=$depmode | |
5523 | break | |
5524 | fi | |
5525 | fi | |
5526 | done | |
5527 | ||
5528 | cd .. | |
5529 | rm -rf conftest.dir | |
5530 | else | |
5531 | am_cv_CC_dependencies_compiler_type=none | |
5532 | fi | |
5533 | ||
5534 | fi | |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5536 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5537 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5538 | ||
5539 | if | |
5540 | test "x$enable_dependency_tracking" != xno \ | |
5541 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5542 | am__fastdepCC_TRUE= | |
5543 | am__fastdepCC_FALSE='#' | |
5544 | else | |
5545 | am__fastdepCC_TRUE='#' | |
5546 | am__fastdepCC_FALSE= | |
5547 | fi | |
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. | |
5553 | if test "x$GCC" = "xyes"; then | |
5554 | AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" | |
5555 | ## We like to use C99 routines when available. This makes sure that | |
5556 | ## __STDC_VERSION__ is set such that libc includes make them available. | |
5557 | AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" | |
5558 | ## Compile the following tests with the same system header contents | |
5559 | ## that we'll encounter when compiling our own source files. | |
5560 | CFLAGS="-std=gnu99 $CFLAGS" | |
5561 | fi | |
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | # Check for symbol versioning (copied from libssp). | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 | |
5568 | $as_echo_n "checking whether symbol versioning is supported... " >&6; } | |
bbb514dc | 5569 | # Check whether --enable-symvers was given. |
5570 | if test "${enable_symvers+set}" = set; then : | |
5571 | enableval=$enable_symvers; gfortran_use_symver=$enableval | |
5572 | else | |
5573 | gfortran_use_symver=yes | |
5574 | fi | |
5575 | ||
5576 | if test "x$gfortran_use_symver" = xyes; then | |
5577 | save_LDFLAGS="$LDFLAGS" | |
5578 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" | |
5579 | cat > conftest.map <<EOF | |
d5d92632 | 5580 | FOO_1.0 { |
5581 | global: *foo*; bar; local: *; | |
5582 | }; | |
5583 | EOF | |
bbb514dc | 5584 | if test x$gcc_no_link = xyes; then |
d5d92632 | 5585 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5586 | fi | |
5587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5588 | /* end confdefs.h. */ | |
5589 | int foo; | |
5590 | int | |
5591 | main () | |
5592 | { | |
5593 | ||
5594 | ; | |
5595 | return 0; | |
5596 | } | |
5597 | _ACEOF | |
5598 | if ac_fn_c_try_link "$LINENO"; then : | |
5599 | gfortran_use_symver=gnu | |
5600 | else | |
5601 | gfortran_use_symver=no | |
5602 | fi | |
5603 | rm -f core conftest.err conftest.$ac_objext \ | |
5604 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 5605 | if test x$gfortran_use_symver = xno; then |
5606 | case "$target_os" in | |
5607 | solaris2*) | |
5608 | LDFLAGS="$save_LDFLAGS" | |
5609 | LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" | |
5610 | # Sun ld cannot handle wildcards and treats all entries as undefined. | |
5611 | cat > conftest.map <<EOF | |
d5d92632 | 5612 | FOO_1.0 { |
5613 | global: foo; local: *; | |
5614 | }; | |
5615 | EOF | |
bbb514dc | 5616 | if test x$gcc_no_link = xyes; then |
d5d92632 | 5617 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5618 | fi | |
5619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5620 | /* end confdefs.h. */ | |
5621 | int foo; | |
5622 | int | |
5623 | main () | |
5624 | { | |
5625 | ||
5626 | ; | |
5627 | return 0; | |
5628 | } | |
5629 | _ACEOF | |
5630 | if ac_fn_c_try_link "$LINENO"; then : | |
5631 | gfortran_use_symver=sun | |
5632 | else | |
5633 | gfortran_use_symver=no | |
5634 | fi | |
5635 | rm -f core conftest.err conftest.$ac_objext \ | |
5636 | conftest$ac_exeext conftest.$ac_ext | |
bbb514dc | 5637 | ;; |
5638 | esac | |
5639 | fi | |
5640 | LDFLAGS="$save_LDFLAGS" | |
d5d92632 | 5641 | fi |
d5d92632 | 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 |
5643 | $as_echo "$gfortran_use_symver" >&6; } | |
5644 | if test "x$gfortran_use_symver" != xno; then | |
5645 | LIBGFOR_USE_SYMVER_TRUE= | |
5646 | LIBGFOR_USE_SYMVER_FALSE='#' | |
5647 | else | |
5648 | LIBGFOR_USE_SYMVER_TRUE='#' | |
5649 | LIBGFOR_USE_SYMVER_FALSE= | |
5650 | fi | |
5651 | ||
5652 | if test "x$gfortran_use_symver" = xgnu; then | |
5653 | LIBGFOR_USE_SYMVER_GNU_TRUE= | |
5654 | LIBGFOR_USE_SYMVER_GNU_FALSE='#' | |
5655 | else | |
5656 | LIBGFOR_USE_SYMVER_GNU_TRUE='#' | |
5657 | LIBGFOR_USE_SYMVER_GNU_FALSE= | |
5658 | fi | |
5659 | ||
5660 | if test "x$gfortran_use_symver" = xsun; then | |
5661 | LIBGFOR_USE_SYMVER_SUN_TRUE= | |
5662 | LIBGFOR_USE_SYMVER_SUN_FALSE='#' | |
5663 | else | |
5664 | LIBGFOR_USE_SYMVER_SUN_TRUE='#' | |
5665 | LIBGFOR_USE_SYMVER_SUN_FALSE= | |
5666 | fi | |
5667 | ||
5668 | ||
5669 | # Figure out whether the compiler supports "-ffunction-sections -fdata-sections", | |
5670 | # similarly to how libstdc++ does it | |
5671 | ac_test_CFLAGS="${CFLAGS+set}" | |
5672 | ac_save_CFLAGS="$CFLAGS" | |
5673 | ||
5674 | # Check for -ffunction-sections -fdata-sections | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 | |
5676 | $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } | |
5677 | CFLAGS='-Werror -ffunction-sections -fdata-sections' | |
5678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5679 | /* end confdefs.h. */ | |
5680 | ||
5681 | int | |
5682 | main () | |
5683 | { | |
5684 | int foo; | |
5685 | ; | |
5686 | return 0; | |
5687 | } | |
5688 | _ACEOF | |
5689 | if ac_fn_c_try_compile "$LINENO"; then : | |
5690 | ac_fdsections=yes | |
5691 | else | |
5692 | ac_fdsections=no | |
5693 | fi | |
5694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5695 | if test "$ac_test_CFLAGS" = set; then | |
5696 | CFLAGS="$ac_save_CFLAGS" | |
5697 | else | |
5698 | # this is the suspicious part | |
5699 | CFLAGS="" | |
5700 | fi | |
5701 | if test x"$ac_fdsections" = x"yes"; then | |
5702 | SECTION_FLAGS='-ffunction-sections -fdata-sections' | |
5703 | fi | |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 | |
5705 | $as_echo "$ac_fdsections" >&6; } | |
5706 | ||
5707 | ||
5708 | # Find other programs we need. | |
5709 | if test -n "$ac_tool_prefix"; then | |
5710 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
5711 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5713 | $as_echo_n "checking for $ac_word... " >&6; } | |
5714 | if test "${ac_cv_prog_AS+set}" = set; then : | |
5715 | $as_echo_n "(cached) " >&6 | |
5716 | else | |
5717 | if test -n "$AS"; then | |
5718 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
5719 | else | |
5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5721 | for as_dir in $PATH | |
5722 | do | |
5723 | IFS=$as_save_IFS | |
5724 | test -z "$as_dir" && as_dir=. | |
5725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5727 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
5728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5729 | break 2 | |
5730 | fi | |
5731 | done | |
5732 | done | |
5733 | IFS=$as_save_IFS | |
5734 | ||
5735 | fi | |
5736 | fi | |
5737 | AS=$ac_cv_prog_AS | |
5738 | if test -n "$AS"; then | |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
5740 | $as_echo "$AS" >&6; } | |
5741 | else | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5743 | $as_echo "no" >&6; } | |
5744 | fi | |
5745 | ||
5746 | ||
5747 | fi | |
5748 | if test -z "$ac_cv_prog_AS"; then | |
5749 | ac_ct_AS=$AS | |
5750 | # Extract the first word of "as", so it can be a program name with args. | |
5751 | set dummy as; ac_word=$2 | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5753 | $as_echo_n "checking for $ac_word... " >&6; } | |
5754 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | |
5755 | $as_echo_n "(cached) " >&6 | |
5756 | else | |
5757 | if test -n "$ac_ct_AS"; then | |
5758 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
5759 | else | |
5760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5761 | for as_dir in $PATH | |
5762 | do | |
5763 | IFS=$as_save_IFS | |
5764 | test -z "$as_dir" && as_dir=. | |
5765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5767 | ac_cv_prog_ac_ct_AS="as" | |
5768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5769 | break 2 | |
5770 | fi | |
5771 | done | |
5772 | done | |
5773 | IFS=$as_save_IFS | |
5774 | ||
5775 | fi | |
5776 | fi | |
5777 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
5778 | if test -n "$ac_ct_AS"; then | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
5780 | $as_echo "$ac_ct_AS" >&6; } | |
5781 | else | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5783 | $as_echo "no" >&6; } | |
5784 | fi | |
5785 | ||
5786 | if test "x$ac_ct_AS" = x; then | |
5787 | AS="" | |
5788 | else | |
5789 | case $cross_compiling:$ac_tool_warned in | |
5790 | yes:) | |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5792 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5793 | ac_tool_warned=yes ;; | |
5794 | esac | |
5795 | AS=$ac_ct_AS | |
5796 | fi | |
5797 | else | |
5798 | AS="$ac_cv_prog_AS" | |
5799 | fi | |
5800 | ||
5801 | if test -n "$ac_tool_prefix"; then | |
5802 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5803 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5805 | $as_echo_n "checking for $ac_word... " >&6; } | |
5806 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
5808 | else | |
5809 | if test -n "$AR"; then | |
5810 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5811 | else | |
5812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5813 | for as_dir in $PATH | |
5814 | do | |
5815 | IFS=$as_save_IFS | |
5816 | test -z "$as_dir" && as_dir=. | |
5817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5819 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5821 | break 2 | |
5822 | fi | |
5823 | done | |
5824 | done | |
5825 | IFS=$as_save_IFS | |
5826 | ||
5827 | fi | |
5828 | fi | |
5829 | AR=$ac_cv_prog_AR | |
5830 | if test -n "$AR"; then | |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5832 | $as_echo "$AR" >&6; } | |
5833 | else | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5835 | $as_echo "no" >&6; } | |
5836 | fi | |
5837 | ||
5838 | ||
5839 | fi | |
5840 | if test -z "$ac_cv_prog_AR"; then | |
5841 | ac_ct_AR=$AR | |
5842 | # Extract the first word of "ar", so it can be a program name with args. | |
5843 | set dummy ar; ac_word=$2 | |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5845 | $as_echo_n "checking for $ac_word... " >&6; } | |
5846 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5847 | $as_echo_n "(cached) " >&6 | |
5848 | else | |
5849 | if test -n "$ac_ct_AR"; then | |
5850 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5851 | else | |
5852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5853 | for as_dir in $PATH | |
5854 | do | |
5855 | IFS=$as_save_IFS | |
5856 | test -z "$as_dir" && as_dir=. | |
5857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5859 | ac_cv_prog_ac_ct_AR="ar" | |
5860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5861 | break 2 | |
5862 | fi | |
5863 | done | |
5864 | done | |
5865 | IFS=$as_save_IFS | |
5866 | ||
5867 | fi | |
5868 | fi | |
5869 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5870 | if test -n "$ac_ct_AR"; then | |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5872 | $as_echo "$ac_ct_AR" >&6; } | |
5873 | else | |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5875 | $as_echo "no" >&6; } | |
5876 | fi | |
5877 | ||
5878 | if test "x$ac_ct_AR" = x; then | |
5879 | AR="" | |
5880 | else | |
5881 | case $cross_compiling:$ac_tool_warned in | |
5882 | yes:) | |
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5885 | ac_tool_warned=yes ;; | |
5886 | esac | |
5887 | AR=$ac_ct_AR | |
5888 | fi | |
5889 | else | |
5890 | AR="$ac_cv_prog_AR" | |
5891 | fi | |
5892 | ||
5893 | if test -n "$ac_tool_prefix"; then | |
5894 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5895 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5897 | $as_echo_n "checking for $ac_word... " >&6; } | |
5898 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5899 | $as_echo_n "(cached) " >&6 | |
5900 | else | |
5901 | if test -n "$RANLIB"; then | |
5902 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5903 | else | |
5904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5905 | for as_dir in $PATH | |
5906 | do | |
5907 | IFS=$as_save_IFS | |
5908 | test -z "$as_dir" && as_dir=. | |
5909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5911 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5913 | break 2 | |
5914 | fi | |
5915 | done | |
5916 | done | |
5917 | IFS=$as_save_IFS | |
5918 | ||
5919 | fi | |
5920 | fi | |
5921 | RANLIB=$ac_cv_prog_RANLIB | |
5922 | if test -n "$RANLIB"; then | |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5924 | $as_echo "$RANLIB" >&6; } | |
5925 | else | |
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5927 | $as_echo "no" >&6; } | |
5928 | fi | |
5929 | ||
5930 | ||
5931 | fi | |
5932 | if test -z "$ac_cv_prog_RANLIB"; then | |
5933 | ac_ct_RANLIB=$RANLIB | |
5934 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5935 | set dummy ranlib; ac_word=$2 | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5937 | $as_echo_n "checking for $ac_word... " >&6; } | |
5938 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5939 | $as_echo_n "(cached) " >&6 | |
5940 | else | |
5941 | if test -n "$ac_ct_RANLIB"; then | |
5942 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5943 | else | |
5944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5945 | for as_dir in $PATH | |
5946 | do | |
5947 | IFS=$as_save_IFS | |
5948 | test -z "$as_dir" && as_dir=. | |
5949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5951 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5953 | break 2 | |
5954 | fi | |
5955 | done | |
5956 | done | |
5957 | IFS=$as_save_IFS | |
5958 | ||
5959 | fi | |
5960 | fi | |
5961 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5962 | if test -n "$ac_ct_RANLIB"; then | |
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5964 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5965 | else | |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5967 | $as_echo "no" >&6; } | |
5968 | fi | |
5969 | ||
5970 | if test "x$ac_ct_RANLIB" = x; then | |
5971 | RANLIB="ranlib-not-found-in-path-error" | |
5972 | else | |
5973 | case $cross_compiling:$ac_tool_warned in | |
5974 | yes:) | |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5976 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5977 | ac_tool_warned=yes ;; | |
5978 | esac | |
5979 | RANLIB=$ac_ct_RANLIB | |
5980 | fi | |
5981 | else | |
5982 | RANLIB="$ac_cv_prog_RANLIB" | |
5983 | fi | |
5984 | ||
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5986 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5987 | set x ${MAKE-make} | |
5988 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5989 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
5990 | $as_echo_n "(cached) " >&6 | |
5991 | else | |
5992 | cat >conftest.make <<\_ACEOF | |
5993 | SHELL = /bin/sh | |
5994 | all: | |
5995 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5996 | _ACEOF | |
5997 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5998 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5999 | *@@@%%%=?*=@@@%%%*) | |
6000 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6001 | *) | |
6002 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
6003 | esac | |
6004 | rm -f conftest.make | |
6005 | fi | |
6006 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6008 | $as_echo "yes" >&6; } | |
6009 | SET_MAKE= | |
6010 | else | |
6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6012 | $as_echo "no" >&6; } | |
6013 | SET_MAKE="MAKE=${MAKE-make}" | |
6014 | fi | |
4ee9c684 | 6015 | |
4ee9c684 | 6016 | |
4ee9c684 | 6017 | |
90973b19 | 6018 | # Configure libtool |
6019 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
542f9784 | 6020 | enable_dlopen=yes |
6021 | ||
6022 | ||
6023 | ||
00aafda4 | 6024 | case `pwd` in |
6025 | *\ * | *\ *) | |
cd9a469c | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
6027 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
00aafda4 | 6028 | esac |
542f9784 | 6029 | |
6030 | ||
542f9784 | 6031 | |
e6408286 | 6032 | macro_version='2.2.7a' |
6033 | macro_revision='1.3134' | |
542f9784 | 6034 | |
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
4ee9c684 | 6040 | |
542f9784 | 6041 | |
6042 | ||
6043 | ||
6044 | ||
6045 | ||
6046 | ||
00aafda4 | 6047 | ltmain="$ac_aux_dir/ltmain.sh" |
542f9784 | 6048 | |
e6408286 | 6049 | # Backslashify metacharacters that are still active within |
6050 | # double-quoted strings. | |
6051 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6052 | ||
6053 | # Same as above, but do not quote variable references. | |
6054 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6055 | ||
6056 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6057 | # double_quote_subst'ed string. | |
6058 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6059 | ||
6060 | # Sed substitution to delay expansion of an escaped single quote. | |
6061 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6062 | ||
6063 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6064 | no_glob_subst='s/\*/\\\*/g' | |
6065 | ||
6066 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6067 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6068 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6069 | ||
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6071 | $as_echo_n "checking how to print strings... " >&6; } | |
6072 | # Test print first, because it will be a builtin if present. | |
6073 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6074 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6075 | ECHO='print -r --' | |
6076 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6077 | ECHO='printf %s\n' | |
6078 | else | |
6079 | # Use this function as a fallback that always works. | |
6080 | func_fallback_echo () | |
6081 | { | |
6082 | eval 'cat <<_LTECHO_EOF | |
6083 | $1 | |
6084 | _LTECHO_EOF' | |
6085 | } | |
6086 | ECHO='func_fallback_echo' | |
6087 | fi | |
6088 | ||
6089 | # func_echo_all arg... | |
6090 | # Invoke $ECHO with all args, space-separated. | |
6091 | func_echo_all () | |
6092 | { | |
6093 | $ECHO "" | |
6094 | } | |
6095 | ||
6096 | case "$ECHO" in | |
6097 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6098 | $as_echo "printf" >&6; } ;; | |
6099 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6100 | $as_echo "print -r" >&6; } ;; | |
6101 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6102 | $as_echo "cat" >&6; } ;; | |
6103 | esac | |
6104 | ||
6105 | ||
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
d5d92632 | 6116 | |
6117 | ||
6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6119 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6120 | if test "${ac_cv_path_SED+set}" = set; then : | |
cd9a469c | 6121 | $as_echo_n "(cached) " >&6 |
542f9784 | 6122 | else |
d5d92632 | 6123 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6124 | for ac_i in 1 2 3 4 5 6 7; do | |
6125 | ac_script="$ac_script$as_nl$ac_script" | |
6126 | done | |
6127 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6128 | { ac_script=; unset ac_script;} | |
6129 | if test -z "$SED"; then | |
6130 | ac_path_SED_found=false | |
cd9a469c | 6131 | # Loop through the user's path and test for each of PROGNAME-LIST |
6132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d5d92632 | 6133 | for as_dir in $PATH |
cd9a469c | 6134 | do |
6135 | IFS=$as_save_IFS | |
6136 | test -z "$as_dir" && as_dir=. | |
d5d92632 | 6137 | for ac_prog in sed gsed; do |
cd9a469c | 6138 | for ac_exec_ext in '' $ac_executable_extensions; do |
d5d92632 | 6139 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
6140 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
6141 | # Check for GNU ac_path_SED and select it if it is found. | |
6142 | # Check for GNU $ac_path_SED | |
6143 | case `"$ac_path_SED" --version 2>&1` in | |
cd9a469c | 6144 | *GNU*) |
d5d92632 | 6145 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
cd9a469c | 6146 | *) |
6147 | ac_count=0 | |
6148 | $as_echo_n 0123456789 >"conftest.in" | |
6149 | while : | |
6150 | do | |
6151 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6152 | mv "conftest.tmp" "conftest.in" | |
6153 | cp "conftest.in" "conftest.nl" | |
d5d92632 | 6154 | $as_echo '' >> "conftest.nl" |
6155 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
cd9a469c | 6156 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
6157 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
d5d92632 | 6158 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
cd9a469c | 6159 | # Best one so far, save it but keep looking for a better one |
d5d92632 | 6160 | ac_cv_path_SED="$ac_path_SED" |
6161 | ac_path_SED_max=$ac_count | |
82eaf560 | 6162 | fi |
cd9a469c | 6163 | # 10*(2^10) chars as input seems more than enough |
6164 | test $ac_count -gt 10 && break | |
6165 | done | |
6166 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6167 | esac | |
6168 | ||
d5d92632 | 6169 | $ac_path_SED_found && break 3 |
cd9a469c | 6170 | done |
6171 | done | |
6172 | done | |
6173 | IFS=$as_save_IFS | |
d5d92632 | 6174 | if test -z "$ac_cv_path_SED"; then |
6175 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
cd9a469c | 6176 | fi |
6177 | else | |
d5d92632 | 6178 | ac_cv_path_SED=$SED |
cd9a469c | 6179 | fi |
6180 | ||
542f9784 | 6181 | fi |
d5d92632 | 6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6183 | $as_echo "$ac_cv_path_SED" >&6; } | |
6184 | SED="$ac_cv_path_SED" | |
6185 | rm -f conftest.sed | |
6186 | ||
6187 | test -z "$SED" && SED=sed | |
6188 | Xsed="$SED -e 1s/^X//" | |
6189 | ||
6190 | ||
6191 | ||
6192 | ||
6193 | ||
6194 | ||
6195 | ||
6196 | ||
6197 | ||
542f9784 | 6198 | |
6199 | ||
cd9a469c | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
6201 | $as_echo_n "checking for fgrep... " >&6; } | |
6202 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
6203 | $as_echo_n "(cached) " >&6 | |
82eaf560 | 6204 | else |
cd9a469c | 6205 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6206 | then ac_cv_path_FGREP="$GREP -F" | |
6207 | else | |
6208 | if test -z "$FGREP"; then | |
6209 | ac_path_FGREP_found=false | |
6210 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6212 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6213 | do | |
6214 | IFS=$as_save_IFS | |
6215 | test -z "$as_dir" && as_dir=. | |
6216 | for ac_prog in fgrep; do | |
6217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6218 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6219 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
6220 | # Check for GNU ac_path_FGREP and select it if it is found. | |
6221 | # Check for GNU $ac_path_FGREP | |
6222 | case `"$ac_path_FGREP" --version 2>&1` in | |
6223 | *GNU*) | |
6224 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6225 | *) | |
6226 | ac_count=0 | |
6227 | $as_echo_n 0123456789 >"conftest.in" | |
6228 | while : | |
6229 | do | |
6230 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6231 | mv "conftest.tmp" "conftest.in" | |
6232 | cp "conftest.in" "conftest.nl" | |
6233 | $as_echo 'FGREP' >> "conftest.nl" | |
6234 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6235 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6236 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6237 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6238 | # Best one so far, save it but keep looking for a better one | |
6239 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6240 | ac_path_FGREP_max=$ac_count | |
82eaf560 | 6241 | fi |
cd9a469c | 6242 | # 10*(2^10) chars as input seems more than enough |
6243 | test $ac_count -gt 10 && break | |
6244 | done | |
6245 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6246 | esac | |
6247 | ||
6248 | $ac_path_FGREP_found && break 3 | |
6249 | done | |
6250 | done | |
6251 | done | |
6252 | IFS=$as_save_IFS | |
6253 | if test -z "$ac_cv_path_FGREP"; then | |
6254 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6255 | fi | |
6256 | else | |
6257 | ac_cv_path_FGREP=$FGREP | |
542f9784 | 6258 | fi |
cd9a469c | 6259 | |
6260 | fi | |
6261 | fi | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
6263 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6264 | FGREP="$ac_cv_path_FGREP" | |
542f9784 | 6265 | |
6266 | ||
6267 | test -z "$GREP" && GREP=grep | |
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | ||
6286 | ||
cd9a469c | 6287 | # Check whether --with-gnu-ld was given. |
6288 | if test "${with_gnu_ld+set}" = set; then : | |
6289 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
90973b19 | 6290 | else |
6291 | with_gnu_ld=no | |
cd9a469c | 6292 | fi |
6293 | ||
90973b19 | 6294 | ac_prog=ld |
6295 | if test "$GCC" = yes; then | |
6296 | # Check if gcc -print-prog-name=ld gives a path. | |
cd9a469c | 6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
6298 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
90973b19 | 6299 | case $host in |
6300 | *-*-mingw*) | |
6301 | # gcc leaves a trailing carriage return which upsets mingw | |
6302 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6303 | *) | |
6304 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6305 | esac | |
6306 | case $ac_prog in | |
6307 | # Accept absolute paths. | |
542f9784 | 6308 | [\\/]* | ?:[\\/]*) |
90973b19 | 6309 | re_direlt='/[^/][^/]*/\.\./' |
542f9784 | 6310 | # Canonicalize the pathname of ld |
6311 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6312 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6313 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
90973b19 | 6314 | done |
6315 | test -z "$LD" && LD="$ac_prog" | |
6316 | ;; | |
6317 | "") | |
6318 | # If it fails, then pretend we aren't using GCC. | |
6319 | ac_prog=ld | |
6320 | ;; | |
6321 | *) | |
6322 | # If it is relative, then search for the first ld in PATH. | |
6323 | with_gnu_ld=unknown | |
6324 | ;; | |
6325 | esac | |
6326 | elif test "$with_gnu_ld" = yes; then | |
cd9a469c | 6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
6328 | $as_echo_n "checking for GNU ld... " >&6; } | |
90973b19 | 6329 | else |
cd9a469c | 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
6331 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
90973b19 | 6332 | fi |
cd9a469c | 6333 | if test "${lt_cv_path_LD+set}" = set; then : |
6334 | $as_echo_n "(cached) " >&6 | |
90973b19 | 6335 | else |
6336 | if test -z "$LD"; then | |
542f9784 | 6337 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
90973b19 | 6338 | for ac_dir in $PATH; do |
542f9784 | 6339 | IFS="$lt_save_ifs" |
90973b19 | 6340 | test -z "$ac_dir" && ac_dir=. |
6341 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6342 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6343 | # Check to see if the program is GNU ld. I'd rather use --version, | |
542f9784 | 6344 | # but apparently some variants of GNU ld only accept -v. |
90973b19 | 6345 | # Break only if it was the GNU/non-GNU ld that we prefer. |
542f9784 | 6346 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
6347 | *GNU* | *'with BFD'*) | |
90973b19 | 6348 | test "$with_gnu_ld" != no && break |
542f9784 | 6349 | ;; |
6350 | *) | |
90973b19 | 6351 | test "$with_gnu_ld" != yes && break |
542f9784 | 6352 | ;; |
6353 | esac | |
90973b19 | 6354 | fi |
6355 | done | |
542f9784 | 6356 | IFS="$lt_save_ifs" |
90973b19 | 6357 | else |
6358 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6359 | fi | |
6360 | fi | |
6361 | ||
6362 | LD="$lt_cv_path_LD" | |
6363 | if test -n "$LD"; then | |
cd9a469c | 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
6365 | $as_echo "$LD" >&6; } | |
90973b19 | 6366 | else |
cd9a469c | 6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6368 | $as_echo "no" >&6; } | |
90973b19 | 6369 | fi |
cd9a469c | 6370 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
6371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6372 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6373 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
6374 | $as_echo_n "(cached) " >&6 | |
90973b19 | 6375 | else |
542f9784 | 6376 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
6377 | case `$LD -v 2>&1 </dev/null` in | |
6378 | *GNU* | *'with BFD'*) | |
90973b19 | 6379 | lt_cv_prog_gnu_ld=yes |
542f9784 | 6380 | ;; |
6381 | *) | |
90973b19 | 6382 | lt_cv_prog_gnu_ld=no |
542f9784 | 6383 | ;; |
6384 | esac | |
90973b19 | 6385 | fi |
cd9a469c | 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
6387 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
90973b19 | 6388 | with_gnu_ld=$lt_cv_prog_gnu_ld |
6389 | ||
6390 | ||
90973b19 | 6391 | |
542f9784 | 6392 | |
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
cd9a469c | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
6399 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6400 | if test "${lt_cv_path_NM+set}" = set; then : | |
6401 | $as_echo_n "(cached) " >&6 | |
90973b19 | 6402 | else |
6403 | if test -n "$NM"; then | |
6404 | # Let the user override the test. | |
6405 | lt_cv_path_NM="$NM" | |
6406 | else | |
542f9784 | 6407 | lt_nm_to_check="${ac_tool_prefix}nm" |
6408 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6409 | lt_nm_to_check="$lt_nm_to_check nm" | |
6410 | fi | |
6411 | for lt_tmp_nm in $lt_nm_to_check; do | |
6412 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6413 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6414 | IFS="$lt_save_ifs" | |
6415 | test -z "$ac_dir" && ac_dir=. | |
6416 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6417 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6418 | # Check to see if the nm accepts a BSD-compat flag. | |
6419 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6420 | # nm: unknown option "B" ignored | |
6421 | # Tru64's nm complains that /dev/null is an invalid object file | |
6422 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6423 | */dev/null* | *'Invalid file or object type'*) | |
6424 | lt_cv_path_NM="$tmp_nm -B" | |
6425 | break | |
6426 | ;; | |
6427 | *) | |
6428 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6429 | */dev/null*) | |
6430 | lt_cv_path_NM="$tmp_nm -p" | |
6431 | break | |
6432 | ;; | |
6433 | *) | |
6434 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6435 | continue # so that we can try to find one that supports BSD flags | |
6436 | ;; | |
6437 | esac | |
6438 | ;; | |
6439 | esac | |
6440 | fi | |
6441 | done | |
6442 | IFS="$lt_save_ifs" | |
6443 | done | |
6444 | : ${lt_cv_path_NM=no} | |
6445 | fi | |
6446 | fi | |
cd9a469c | 6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
6448 | $as_echo "$lt_cv_path_NM" >&6; } | |
542f9784 | 6449 | if test "$lt_cv_path_NM" != "no"; then |
6450 | NM="$lt_cv_path_NM" | |
6451 | else | |
6452 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
e6408286 | 6453 | if test -n "$DUMPBIN"; then : |
6454 | # Let the user override the test. | |
6455 | else | |
6456 | if test -n "$ac_tool_prefix"; then | |
6457 | for ac_prog in dumpbin "link -dump" | |
542f9784 | 6458 | do |
6459 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6460 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6462 | $as_echo_n "checking for $ac_word... " >&6; } | |
6463 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
6464 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6465 | else |
6466 | if test -n "$DUMPBIN"; then | |
6467 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6468 | else | |
6469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6470 | for as_dir in $PATH | |
6471 | do | |
6472 | IFS=$as_save_IFS | |
6473 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6474 | for ac_exec_ext in '' $ac_executable_extensions; do |
6475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 6476 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
cd9a469c | 6477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 6478 | break 2 |
6479 | fi | |
6480 | done | |
cd9a469c | 6481 | done |
6482 | IFS=$as_save_IFS | |
542f9784 | 6483 | |
6484 | fi | |
6485 | fi | |
6486 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6487 | if test -n "$DUMPBIN"; then | |
cd9a469c | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6489 | $as_echo "$DUMPBIN" >&6; } | |
542f9784 | 6490 | else |
cd9a469c | 6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6492 | $as_echo "no" >&6; } | |
542f9784 | 6493 | fi |
6494 | ||
cd9a469c | 6495 | |
542f9784 | 6496 | test -n "$DUMPBIN" && break |
6497 | done | |
6498 | fi | |
6499 | if test -z "$DUMPBIN"; then | |
6500 | ac_ct_DUMPBIN=$DUMPBIN | |
e6408286 | 6501 | for ac_prog in dumpbin "link -dump" |
542f9784 | 6502 | do |
6503 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6504 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6506 | $as_echo_n "checking for $ac_word... " >&6; } | |
6507 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6508 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6509 | else |
6510 | if test -n "$ac_ct_DUMPBIN"; then | |
6511 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6512 | else | |
6513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6514 | for as_dir in $PATH | |
6515 | do | |
6516 | IFS=$as_save_IFS | |
6517 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6518 | for ac_exec_ext in '' $ac_executable_extensions; do |
6519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 6520 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
cd9a469c | 6521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 6522 | break 2 |
6523 | fi | |
6524 | done | |
cd9a469c | 6525 | done |
6526 | IFS=$as_save_IFS | |
542f9784 | 6527 | |
6528 | fi | |
6529 | fi | |
6530 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6531 | if test -n "$ac_ct_DUMPBIN"; then | |
cd9a469c | 6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6533 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
542f9784 | 6534 | else |
cd9a469c | 6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6536 | $as_echo "no" >&6; } | |
542f9784 | 6537 | fi |
6538 | ||
cd9a469c | 6539 | |
542f9784 | 6540 | test -n "$ac_ct_DUMPBIN" && break |
6541 | done | |
542f9784 | 6542 | |
cd9a469c | 6543 | if test "x$ac_ct_DUMPBIN" = x; then |
6544 | DUMPBIN=":" | |
6545 | else | |
6546 | case $cross_compiling:$ac_tool_warned in | |
6547 | yes:) | |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6550 | ac_tool_warned=yes ;; | |
6551 | esac | |
6552 | DUMPBIN=$ac_ct_DUMPBIN | |
6553 | fi | |
90973b19 | 6554 | fi |
542f9784 | 6555 | |
e6408286 | 6556 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6557 | *COFF*) | |
6558 | DUMPBIN="$DUMPBIN -symbols" | |
6559 | ;; | |
6560 | *) | |
6561 | DUMPBIN=: | |
6562 | ;; | |
6563 | esac | |
6564 | fi | |
542f9784 | 6565 | |
6566 | if test "$DUMPBIN" != ":"; then | |
6567 | NM="$DUMPBIN" | |
6568 | fi | |
90973b19 | 6569 | fi |
542f9784 | 6570 | test -z "$NM" && NM=nm |
6571 | ||
6572 | ||
90973b19 | 6573 | |
542f9784 | 6574 | |
6575 | ||
6576 | ||
cd9a469c | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6578 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6579 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6580 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6581 | else |
6582 | lt_cv_nm_interface="BSD nm" | |
6583 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e6408286 | 6584 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
542f9784 | 6585 | (eval "$ac_compile" 2>conftest.err) |
6586 | cat conftest.err >&5 | |
e6408286 | 6587 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
542f9784 | 6588 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6589 | cat conftest.err >&5 | |
e6408286 | 6590 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
542f9784 | 6591 | cat conftest.out >&5 |
6592 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6593 | lt_cv_nm_interface="MS dumpbin" | |
6594 | fi | |
6595 | rm -f conftest* | |
6596 | fi | |
cd9a469c | 6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6598 | $as_echo "$lt_cv_nm_interface" >&6; } | |
90973b19 | 6599 | |
cd9a469c | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6601 | $as_echo_n "checking whether ln -s works... " >&6; } | |
90973b19 | 6602 | LN_S=$as_ln_s |
6603 | if test "$LN_S" = "ln -s"; then | |
cd9a469c | 6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6605 | $as_echo "yes" >&6; } | |
90973b19 | 6606 | else |
cd9a469c | 6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6608 | $as_echo "no, using $LN_S" >&6; } | |
90973b19 | 6609 | fi |
6610 | ||
542f9784 | 6611 | # find the maximum length of command line arguments |
cd9a469c | 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6613 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6614 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6615 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6616 | else |
6617 | i=0 | |
6618 | teststring="ABCD" | |
6619 | ||
6620 | case $build_os in | |
6621 | msdosdjgpp*) | |
6622 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6623 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6624 | # during glob expansion). Even if it were fixed, the result of this | |
6625 | # check would be larger than it should be. | |
6626 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6627 | ;; | |
6628 | ||
6629 | gnu*) | |
6630 | # Under GNU Hurd, this test is not required because there is | |
6631 | # no limit to the length of command line arguments. | |
6632 | # Libtool will interpret -1 as no limit whatsoever | |
6633 | lt_cv_sys_max_cmd_len=-1; | |
6634 | ;; | |
6635 | ||
00aafda4 | 6636 | cygwin* | mingw* | cegcc*) |
542f9784 | 6637 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6638 | # about 5 minutes as the teststring grows exponentially. | |
6639 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6640 | # you end up with a "frozen" computer, even though with patience | |
6641 | # the test eventually succeeds (with a max line length of 256k). | |
6642 | # Instead, let's just punt: use the minimum linelength reported by | |
6643 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6644 | lt_cv_sys_max_cmd_len=8192; | |
6645 | ;; | |
6646 | ||
e6408286 | 6647 | mint*) |
6648 | # On MiNT this can take a long time and run out of memory. | |
6649 | lt_cv_sys_max_cmd_len=8192; | |
6650 | ;; | |
6651 | ||
542f9784 | 6652 | amigaos*) |
6653 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6654 | # So we just punt and use a minimum line length of 8192. | |
6655 | lt_cv_sys_max_cmd_len=8192; | |
6656 | ;; | |
6657 | ||
6658 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6659 | # This has been around since 386BSD, at least. Likely further. | |
6660 | if test -x /sbin/sysctl; then | |
6661 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6662 | elif test -x /usr/sbin/sysctl; then | |
6663 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6664 | else | |
6665 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6666 | fi | |
6667 | # And add a safety zone | |
6668 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6669 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6670 | ;; | |
6671 | ||
6672 | interix*) | |
6673 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6674 | lt_cv_sys_max_cmd_len=196608 | |
6675 | ;; | |
6676 | ||
6677 | osf*) | |
6678 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6679 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6680 | # nice to cause kernel panics so lets avoid the loop below. | |
6681 | # First set a reasonable default. | |
6682 | lt_cv_sys_max_cmd_len=16384 | |
6683 | # | |
6684 | if test -x /sbin/sysconfig; then | |
6685 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6686 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6687 | esac | |
6688 | fi | |
6689 | ;; | |
6690 | sco3.2v5*) | |
6691 | lt_cv_sys_max_cmd_len=102400 | |
6692 | ;; | |
6693 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6694 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6695 | if test -n "$kargmax"; then | |
6696 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6697 | else | |
6698 | lt_cv_sys_max_cmd_len=32768 | |
6699 | fi | |
6700 | ;; | |
6701 | *) | |
00aafda4 | 6702 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6703 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
07c46636 | 6704 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6705 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6706 | else | |
6707 | # Make teststring a little bigger before we do anything with it. | |
6708 | # a 1K string should be a reasonable start. | |
6709 | for i in 1 2 3 4 5 6 7 8 ; do | |
6710 | teststring=$teststring$teststring | |
6711 | done | |
6712 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6713 | # If test is not a shell built-in, we'll probably end up computing a | |
6714 | # maximum length that is only half of the actual maximum length, but | |
6715 | # we can't tell. | |
e6408286 | 6716 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
6717 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
07c46636 | 6718 | test $i != 17 # 1/2 MB should be enough |
6719 | do | |
6720 | i=`expr $i + 1` | |
6721 | teststring=$teststring$teststring | |
6722 | done | |
6723 | # Only check the string length outside the loop. | |
6724 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6725 | teststring= | |
6726 | # Add a significant safety factor because C++ compilers can tack on | |
6727 | # massive amounts of additional arguments before passing them to the | |
6728 | # linker. It appears as though 1/2 is a usable value. | |
6729 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6730 | fi | |
542f9784 | 6731 | ;; |
6732 | esac | |
6733 | ||
6734 | fi | |
6735 | ||
6736 | if test -n $lt_cv_sys_max_cmd_len ; then | |
cd9a469c | 6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6738 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
542f9784 | 6739 | else |
cd9a469c | 6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6741 | $as_echo "none" >&6; } | |
542f9784 | 6742 | fi |
6743 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6744 | ||
6745 | ||
6746 | ||
6747 | ||
6748 | ||
6749 | ||
542f9784 | 6750 | : ${CP="cp -f"} |
6751 | : ${MV="mv -f"} | |
6752 | : ${RM="rm -f"} | |
6753 | ||
cd9a469c | 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6755 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
542f9784 | 6756 | # Try some XSI features |
6757 | xsi_shell=no | |
6758 | ( _lt_dummy="a/b/c" | |
6759 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
00aafda4 | 6760 | = c,a/b,, \ |
6761 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6762 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
542f9784 | 6763 | && xsi_shell=yes |
cd9a469c | 6764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6765 | $as_echo "$xsi_shell" >&6; } | |
542f9784 | 6766 | |
6767 | ||
cd9a469c | 6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6769 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
542f9784 | 6770 | lt_shell_append=no |
6771 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6772 | >/dev/null 2>&1 \ | |
6773 | && lt_shell_append=yes | |
cd9a469c | 6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6775 | $as_echo "$lt_shell_append" >&6; } | |
542f9784 | 6776 | |
6777 | ||
6778 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6779 | lt_unset=unset | |
6780 | else | |
6781 | lt_unset=false | |
6782 | fi | |
6783 | ||
6784 | ||
6785 | ||
6786 | ||
6787 | ||
6788 | # test EBCDIC or ASCII | |
6789 | case `echo X|tr X '\101'` in | |
6790 | A) # ASCII based system | |
6791 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6792 | lt_SP2NL='tr \040 \012' | |
6793 | lt_NL2SP='tr \015\012 \040\040' | |
6794 | ;; | |
6795 | *) # EBCDIC based system | |
6796 | lt_SP2NL='tr \100 \n' | |
6797 | lt_NL2SP='tr \r\n \100\100' | |
6798 | ;; | |
6799 | esac | |
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
cd9a469c | 6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6810 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6811 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6812 | $as_echo_n "(cached) " >&6 | |
542f9784 | 6813 | else |
6814 | lt_cv_ld_reload_flag='-r' | |
6815 | fi | |
cd9a469c | 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6817 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
542f9784 | 6818 | reload_flag=$lt_cv_ld_reload_flag |
6819 | case $reload_flag in | |
6820 | "" | " "*) ;; | |
6821 | *) reload_flag=" $reload_flag" ;; | |
6822 | esac | |
6823 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6824 | case $host_os in | |
6825 | darwin*) | |
6826 | if test "$GCC" = yes; then | |
6827 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6828 | else | |
6829 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6830 | fi | |
6831 | ;; | |
6832 | esac | |
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | ||
00aafda4 | 6842 | if test -n "$ac_tool_prefix"; then |
6843 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6844 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
cd9a469c | 6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6846 | $as_echo_n "checking for $ac_word... " >&6; } | |
6847 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6848 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 6849 | else |
6850 | if test -n "$OBJDUMP"; then | |
6851 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6852 | else | |
6853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6854 | for as_dir in $PATH | |
6855 | do | |
6856 | IFS=$as_save_IFS | |
6857 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6858 | for ac_exec_ext in '' $ac_executable_extensions; do |
6859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
00aafda4 | 6860 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
cd9a469c | 6861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 6862 | break 2 |
6863 | fi | |
6864 | done | |
cd9a469c | 6865 | done |
6866 | IFS=$as_save_IFS | |
00aafda4 | 6867 | |
6868 | fi | |
6869 | fi | |
6870 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6871 | if test -n "$OBJDUMP"; then | |
cd9a469c | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6873 | $as_echo "$OBJDUMP" >&6; } | |
00aafda4 | 6874 | else |
cd9a469c | 6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6876 | $as_echo "no" >&6; } | |
00aafda4 | 6877 | fi |
6878 | ||
cd9a469c | 6879 | |
00aafda4 | 6880 | fi |
6881 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6882 | ac_ct_OBJDUMP=$OBJDUMP | |
6883 | # Extract the first word of "objdump", so it can be a program name with args. | |
6884 | set dummy objdump; ac_word=$2 | |
cd9a469c | 6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6886 | $as_echo_n "checking for $ac_word... " >&6; } | |
6887 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6888 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 6889 | else |
6890 | if test -n "$ac_ct_OBJDUMP"; then | |
6891 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6892 | else | |
6893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6894 | for as_dir in $PATH | |
6895 | do | |
6896 | IFS=$as_save_IFS | |
6897 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 6898 | for ac_exec_ext in '' $ac_executable_extensions; do |
6899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
00aafda4 | 6900 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
cd9a469c | 6901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 6902 | break 2 |
6903 | fi | |
6904 | done | |
cd9a469c | 6905 | done |
6906 | IFS=$as_save_IFS | |
00aafda4 | 6907 | |
00aafda4 | 6908 | fi |
6909 | fi | |
6910 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6911 | if test -n "$ac_ct_OBJDUMP"; then | |
cd9a469c | 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6913 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
00aafda4 | 6914 | else |
cd9a469c | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6916 | $as_echo "no" >&6; } | |
00aafda4 | 6917 | fi |
6918 | ||
cd9a469c | 6919 | if test "x$ac_ct_OBJDUMP" = x; then |
6920 | OBJDUMP="false" | |
6921 | else | |
6922 | case $cross_compiling:$ac_tool_warned in | |
6923 | yes:) | |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6925 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6926 | ac_tool_warned=yes ;; | |
6927 | esac | |
6928 | OBJDUMP=$ac_ct_OBJDUMP | |
6929 | fi | |
00aafda4 | 6930 | else |
6931 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6932 | fi | |
6933 | ||
6934 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6935 | ||
6936 | ||
6937 | ||
6938 | ||
6939 | ||
6940 | ||
6941 | ||
6942 | ||
542f9784 | 6943 | |
cd9a469c | 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6945 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6946 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6947 | $as_echo_n "(cached) " >&6 | |
90973b19 | 6948 | else |
6949 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6950 | lt_cv_file_magic_test_file= | |
6951 | lt_cv_deplibs_check_method='unknown' | |
6952 | # Need to set the preceding variable on all platforms that support | |
6953 | # interlibrary dependencies. | |
6954 | # 'none' -- dependencies not supported. | |
6955 | # `unknown' -- same as none, but documents that we really don't know. | |
6956 | # 'pass_all' -- all dependencies passed with no checks. | |
6957 | # 'test_compile' -- check by making test program. | |
542f9784 | 6958 | # 'file_magic [[regex]]' -- check by looking for files in library path |
6959 | # which responds to the $file_magic_cmd with a given extended regex. | |
90973b19 | 6960 | # If you have `file' or equivalent on your system and you're not sure |
6961 | # whether `pass_all' will *always* work, you probably want this one. | |
6962 | ||
6963 | case $host_os in | |
21e07d2f | 6964 | aix[4-9]*) |
90973b19 | 6965 | lt_cv_deplibs_check_method=pass_all |
6966 | ;; | |
6967 | ||
6968 | beos*) | |
6969 | lt_cv_deplibs_check_method=pass_all | |
6970 | ;; | |
6971 | ||
542f9784 | 6972 | bsdi[45]*) |
90973b19 | 6973 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
6974 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6975 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6976 | ;; | |
6977 | ||
542f9784 | 6978 | cygwin*) |
6979 | # func_win32_libid is a shell function defined in ltmain.sh | |
6980 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6981 | lt_cv_file_magic_cmd='func_win32_libid' | |
6982 | ;; | |
6983 | ||
6984 | mingw* | pw32*) | |
6985 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6986 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6987 | # unless we find 'file', for example because we are cross-compiling. | |
e6408286 | 6988 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6989 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
542f9784 | 6990 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6991 | lt_cv_file_magic_cmd='func_win32_libid' | |
6992 | else | |
6993 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6994 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6995 | fi | |
90973b19 | 6996 | ;; |
6997 | ||
e6408286 | 6998 | cegcc*) |
00aafda4 | 6999 | # use the weaker test based on 'objdump'. See mingw*. |
7000 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7001 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7002 | ;; | |
7003 | ||
90973b19 | 7004 | darwin* | rhapsody*) |
90973b19 | 7005 | lt_cv_deplibs_check_method=pass_all |
7006 | ;; | |
7007 | ||
542f9784 | 7008 | freebsd* | dragonfly*) |
7009 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
90973b19 | 7010 | case $host_cpu in |
7011 | i*86 ) | |
7012 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7013 | # Let's accept both of them until this is cleared up. | |
542f9784 | 7014 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
90973b19 | 7015 | lt_cv_file_magic_cmd=/usr/bin/file |
7016 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7017 | ;; | |
7018 | esac | |
7019 | else | |
7020 | lt_cv_deplibs_check_method=pass_all | |
7021 | fi | |
7022 | ;; | |
7023 | ||
7024 | gnu*) | |
7025 | lt_cv_deplibs_check_method=pass_all | |
7026 | ;; | |
7027 | ||
e6408286 | 7028 | haiku*) |
7029 | lt_cv_deplibs_check_method=pass_all | |
7030 | ;; | |
7031 | ||
542f9784 | 7032 | hpux10.20* | hpux11*) |
7033 | lt_cv_file_magic_cmd=/usr/bin/file | |
90973b19 | 7034 | case $host_cpu in |
90973b19 | 7035 | ia64*) |
7036 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
90973b19 | 7037 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
7038 | ;; | |
542f9784 | 7039 | hppa*64*) |
e6408286 | 7040 | 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 | 7041 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
90973b19 | 7042 | ;; |
7043 | *) | |
e6408286 | 7044 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
542f9784 | 7045 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
90973b19 | 7046 | ;; |
7047 | esac | |
542f9784 | 7048 | ;; |
7049 | ||
7050 | interix[3-9]*) | |
7051 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7052 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7053 | ;; | |
7054 | ||
7055 | irix5* | irix6* | nonstopux*) | |
7056 | case $LD in | |
7057 | *-32|*"-32 ") libmagic=32-bit;; | |
7058 | *-n32|*"-n32 ") libmagic=N32;; | |
7059 | *-64|*"-64 ") libmagic=64-bit;; | |
7060 | *) libmagic=never-match;; | |
7061 | esac | |
90973b19 | 7062 | lt_cv_deplibs_check_method=pass_all |
7063 | ;; | |
7064 | ||
7065 | # This must be Linux ELF. | |
9af964d4 | 7066 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7f93fe7a | 7067 | lt_cv_deplibs_check_method=pass_all |
90973b19 | 7068 | ;; |
7069 | ||
542f9784 | 7070 | netbsd*) |
7071 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7072 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
90973b19 | 7073 | else |
542f9784 | 7074 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
90973b19 | 7075 | fi |
7076 | ;; | |
7077 | ||
542f9784 | 7078 | newos6*) |
90973b19 | 7079 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
7080 | lt_cv_file_magic_cmd=/usr/bin/file | |
7081 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7082 | ;; | |
7083 | ||
542f9784 | 7084 | *nto* | *qnx*) |
7085 | lt_cv_deplibs_check_method=pass_all | |
7086 | ;; | |
7087 | ||
7088 | openbsd*) | |
7089 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7090 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7091 | else | |
7092 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7093 | fi | |
7094 | ;; | |
7095 | ||
90973b19 | 7096 | osf3* | osf4* | osf5*) |
90973b19 | 7097 | lt_cv_deplibs_check_method=pass_all |
7098 | ;; | |
7099 | ||
542f9784 | 7100 | rdos*) |
90973b19 | 7101 | lt_cv_deplibs_check_method=pass_all |
7102 | ;; | |
7103 | ||
7104 | solaris*) | |
7105 | lt_cv_deplibs_check_method=pass_all | |
90973b19 | 7106 | ;; |
7107 | ||
542f9784 | 7108 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
90973b19 | 7109 | lt_cv_deplibs_check_method=pass_all |
7110 | ;; | |
7111 | ||
542f9784 | 7112 | sysv4 | sysv4.3*) |
90973b19 | 7113 | case $host_vendor in |
90973b19 | 7114 | motorola) |
7115 | 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]' | |
7116 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7117 | ;; | |
542f9784 | 7118 | ncr) |
7119 | lt_cv_deplibs_check_method=pass_all | |
7120 | ;; | |
7121 | sequent) | |
7122 | lt_cv_file_magic_cmd='/bin/file' | |
7123 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7124 | ;; | |
7125 | sni) | |
7126 | lt_cv_file_magic_cmd='/bin/file' | |
7127 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7128 | lt_cv_file_magic_test_file=/lib/libc.so | |
7129 | ;; | |
7130 | siemens) | |
7131 | lt_cv_deplibs_check_method=pass_all | |
7132 | ;; | |
7133 | pc) | |
7134 | lt_cv_deplibs_check_method=pass_all | |
7135 | ;; | |
90973b19 | 7136 | esac |
7137 | ;; | |
542f9784 | 7138 | |
7139 | tpf*) | |
7140 | lt_cv_deplibs_check_method=pass_all | |
7141 | ;; | |
90973b19 | 7142 | esac |
7143 | ||
7144 | fi | |
cd9a469c | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
7146 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
90973b19 | 7147 | file_magic_cmd=$lt_cv_file_magic_cmd |
7148 | deplibs_check_method=$lt_cv_deplibs_check_method | |
542f9784 | 7149 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
90973b19 | 7150 | |
7151 | ||
7152 | ||
7153 | ||
90973b19 | 7154 | |
90973b19 | 7155 | |
90973b19 | 7156 | |
90973b19 | 7157 | |
4ee9c684 | 7158 | |
4ee9c684 | 7159 | |
4ee9c684 | 7160 | |
4ee9c684 | 7161 | |
90973b19 | 7162 | if test -n "$ac_tool_prefix"; then |
542f9784 | 7163 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7164 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
cd9a469c | 7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7166 | $as_echo_n "checking for $ac_word... " >&6; } | |
7167 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7168 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7169 | else |
542f9784 | 7170 | if test -n "$AR"; then |
7171 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
90973b19 | 7172 | else |
7173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7174 | for as_dir in $PATH | |
7175 | do | |
7176 | IFS=$as_save_IFS | |
7177 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7178 | for ac_exec_ext in '' $ac_executable_extensions; do |
7179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7180 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
cd9a469c | 7181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7182 | break 2 |
7183 | fi | |
7184 | done | |
cd9a469c | 7185 | done |
7186 | IFS=$as_save_IFS | |
4ee9c684 | 7187 | |
90973b19 | 7188 | fi |
7189 | fi | |
542f9784 | 7190 | AR=$ac_cv_prog_AR |
7191 | if test -n "$AR"; then | |
cd9a469c | 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7193 | $as_echo "$AR" >&6; } | |
90973b19 | 7194 | else |
cd9a469c | 7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7196 | $as_echo "no" >&6; } | |
4ee9c684 | 7197 | fi |
7198 | ||
cd9a469c | 7199 | |
90973b19 | 7200 | fi |
542f9784 | 7201 | if test -z "$ac_cv_prog_AR"; then |
7202 | ac_ct_AR=$AR | |
7203 | # Extract the first word of "ar", so it can be a program name with args. | |
7204 | set dummy ar; ac_word=$2 | |
cd9a469c | 7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7206 | $as_echo_n "checking for $ac_word... " >&6; } | |
7207 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
7208 | $as_echo_n "(cached) " >&6 | |
90973b19 | 7209 | else |
542f9784 | 7210 | if test -n "$ac_ct_AR"; then |
7211 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
90973b19 | 7212 | else |
7213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7214 | for as_dir in $PATH | |
7215 | do | |
7216 | IFS=$as_save_IFS | |
7217 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7218 | for ac_exec_ext in '' $ac_executable_extensions; do |
7219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7220 | ac_cv_prog_ac_ct_AR="ar" |
cd9a469c | 7221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7222 | break 2 |
7223 | fi | |
7224 | done | |
cd9a469c | 7225 | done |
7226 | IFS=$as_save_IFS | |
4ee9c684 | 7227 | |
90973b19 | 7228 | fi |
7229 | fi | |
542f9784 | 7230 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7231 | if test -n "$ac_ct_AR"; then | |
cd9a469c | 7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
7233 | $as_echo "$ac_ct_AR" >&6; } | |
4ee9c684 | 7234 | else |
cd9a469c | 7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7236 | $as_echo "no" >&6; } | |
4ee9c684 | 7237 | fi |
4ee9c684 | 7238 | |
cd9a469c | 7239 | if test "x$ac_ct_AR" = x; then |
7240 | AR="false" | |
7241 | else | |
7242 | case $cross_compiling:$ac_tool_warned in | |
7243 | yes:) | |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7245 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7246 | ac_tool_warned=yes ;; | |
7247 | esac | |
7248 | AR=$ac_ct_AR | |
7249 | fi | |
90973b19 | 7250 | else |
542f9784 | 7251 | AR="$ac_cv_prog_AR" |
4ee9c684 | 7252 | fi |
7253 | ||
542f9784 | 7254 | test -z "$AR" && AR=ar |
7255 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | ||
90973b19 | 7267 | if test -n "$ac_tool_prefix"; then |
7268 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7269 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
cd9a469c | 7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7271 | $as_echo_n "checking for $ac_word... " >&6; } | |
7272 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
7273 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7274 | else |
90973b19 | 7275 | if test -n "$STRIP"; then |
7276 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7277 | else | |
7278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7279 | for as_dir in $PATH | |
7280 | do | |
7281 | IFS=$as_save_IFS | |
7282 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7283 | for ac_exec_ext in '' $ac_executable_extensions; do |
7284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
90973b19 | 7285 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
cd9a469c | 7286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7287 | break 2 |
7288 | fi | |
7289 | done | |
cd9a469c | 7290 | done |
7291 | IFS=$as_save_IFS | |
4ee9c684 | 7292 | |
90973b19 | 7293 | fi |
7294 | fi | |
7295 | STRIP=$ac_cv_prog_STRIP | |
7296 | if test -n "$STRIP"; then | |
cd9a469c | 7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
7298 | $as_echo "$STRIP" >&6; } | |
4ee9c684 | 7299 | else |
cd9a469c | 7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7301 | $as_echo "no" >&6; } | |
90973b19 | 7302 | fi |
4ee9c684 | 7303 | |
cd9a469c | 7304 | |
4ee9c684 | 7305 | fi |
90973b19 | 7306 | if test -z "$ac_cv_prog_STRIP"; then |
7307 | ac_ct_STRIP=$STRIP | |
7308 | # Extract the first word of "strip", so it can be a program name with args. | |
7309 | set dummy strip; ac_word=$2 | |
cd9a469c | 7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7311 | $as_echo_n "checking for $ac_word... " >&6; } | |
7312 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
7313 | $as_echo_n "(cached) " >&6 | |
90973b19 | 7314 | else |
7315 | if test -n "$ac_ct_STRIP"; then | |
7316 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7317 | else | |
7318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7319 | for as_dir in $PATH | |
7320 | do | |
7321 | IFS=$as_save_IFS | |
7322 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7323 | for ac_exec_ext in '' $ac_executable_extensions; do |
7324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
90973b19 | 7325 | ac_cv_prog_ac_ct_STRIP="strip" |
cd9a469c | 7326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
90973b19 | 7327 | break 2 |
7328 | fi | |
7329 | done | |
cd9a469c | 7330 | done |
7331 | IFS=$as_save_IFS | |
90973b19 | 7332 | |
4ee9c684 | 7333 | fi |
7334 | fi | |
90973b19 | 7335 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7336 | if test -n "$ac_ct_STRIP"; then | |
cd9a469c | 7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
7338 | $as_echo "$ac_ct_STRIP" >&6; } | |
90973b19 | 7339 | else |
cd9a469c | 7340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7341 | $as_echo "no" >&6; } | |
4ee9c684 | 7342 | fi |
4ee9c684 | 7343 | |
cd9a469c | 7344 | if test "x$ac_ct_STRIP" = x; then |
7345 | STRIP=":" | |
7346 | else | |
7347 | case $cross_compiling:$ac_tool_warned in | |
7348 | yes:) | |
7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7350 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7351 | ac_tool_warned=yes ;; | |
7352 | esac | |
7353 | STRIP=$ac_ct_STRIP | |
7354 | fi | |
90973b19 | 7355 | else |
7356 | STRIP="$ac_cv_prog_STRIP" | |
4ee9c684 | 7357 | fi |
7358 | ||
542f9784 | 7359 | test -z "$STRIP" && STRIP=: |
4ee9c684 | 7360 | |
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
542f9784 | 7366 | if test -n "$ac_tool_prefix"; then |
7367 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7368 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
cd9a469c | 7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7370 | $as_echo_n "checking for $ac_word... " >&6; } | |
7371 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
7372 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7373 | else |
542f9784 | 7374 | if test -n "$RANLIB"; then |
7375 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7376 | else | |
7377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7378 | for as_dir in $PATH | |
7379 | do | |
7380 | IFS=$as_save_IFS | |
7381 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7382 | for ac_exec_ext in '' $ac_executable_extensions; do |
7383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7384 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
cd9a469c | 7385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7386 | break 2 |
7387 | fi | |
7388 | done | |
cd9a469c | 7389 | done |
7390 | IFS=$as_save_IFS | |
542f9784 | 7391 | |
7392 | fi | |
7393 | fi | |
7394 | RANLIB=$ac_cv_prog_RANLIB | |
7395 | if test -n "$RANLIB"; then | |
cd9a469c | 7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7397 | $as_echo "$RANLIB" >&6; } | |
542f9784 | 7398 | else |
cd9a469c | 7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7400 | $as_echo "no" >&6; } | |
542f9784 | 7401 | fi |
7402 | ||
cd9a469c | 7403 | |
542f9784 | 7404 | fi |
7405 | if test -z "$ac_cv_prog_RANLIB"; then | |
7406 | ac_ct_RANLIB=$RANLIB | |
7407 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7408 | set dummy ranlib; ac_word=$2 | |
cd9a469c | 7409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7410 | $as_echo_n "checking for $ac_word... " >&6; } | |
7411 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
7412 | $as_echo_n "(cached) " >&6 | |
542f9784 | 7413 | else |
7414 | if test -n "$ac_ct_RANLIB"; then | |
7415 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7416 | else | |
7417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7418 | for as_dir in $PATH | |
7419 | do | |
7420 | IFS=$as_save_IFS | |
7421 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 7422 | for ac_exec_ext in '' $ac_executable_extensions; do |
7423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 7424 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
cd9a469c | 7425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 7426 | break 2 |
7427 | fi | |
7428 | done | |
cd9a469c | 7429 | done |
7430 | IFS=$as_save_IFS | |
542f9784 | 7431 | |
542f9784 | 7432 | fi |
7433 | fi | |
7434 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7435 | if test -n "$ac_ct_RANLIB"; then | |
cd9a469c | 7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7437 | $as_echo "$ac_ct_RANLIB" >&6; } | |
542f9784 | 7438 | else |
cd9a469c | 7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7440 | $as_echo "no" >&6; } | |
542f9784 | 7441 | fi |
7442 | ||
cd9a469c | 7443 | if test "x$ac_ct_RANLIB" = x; then |
7444 | RANLIB=":" | |
7445 | else | |
7446 | case $cross_compiling:$ac_tool_warned in | |
7447 | yes:) | |
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7449 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7450 | ac_tool_warned=yes ;; | |
7451 | esac | |
7452 | RANLIB=$ac_ct_RANLIB | |
7453 | fi | |
542f9784 | 7454 | else |
7455 | RANLIB="$ac_cv_prog_RANLIB" | |
7456 | fi | |
7457 | ||
7458 | test -z "$RANLIB" && RANLIB=: | |
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | # Determine commands to create old-style static archives. | |
00aafda4 | 7466 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
542f9784 | 7467 | old_postinstall_cmds='chmod 644 $oldlib' |
7468 | old_postuninstall_cmds= | |
7469 | ||
7470 | if test -n "$RANLIB"; then | |
7471 | case $host_os in | |
7472 | openbsd*) | |
7473 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7474 | ;; | |
7475 | *) | |
7476 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7477 | ;; | |
7478 | esac | |
7479 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7480 | fi | |
7481 | ||
e6408286 | 7482 | case $host_os in |
7483 | darwin*) | |
7484 | lock_old_archive_extraction=yes ;; | |
7485 | *) | |
7486 | lock_old_archive_extraction=no ;; | |
7487 | esac | |
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
542f9784 | 7494 | |
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
7504 | ||
7505 | ||
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | ||
7519 | ||
7520 | ||
7521 | ||
7522 | ||
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | # If no C compiler was specified, use CC. | |
7528 | LTCC=${LTCC-"$CC"} | |
7529 | ||
7530 | # If no C compiler flags were specified, use CFLAGS. | |
7531 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7532 | ||
7533 | # Allow CC to be a program name with arguments. | |
7534 | compiler=$CC | |
7535 | ||
7536 | ||
7537 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
cd9a469c | 7538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7539 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7540 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7541 | $as_echo_n "(cached) " >&6 | |
542f9784 | 7542 | else |
7543 | ||
7544 | # These are sane defaults that work on at least a few old systems. | |
7545 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7546 | ||
7547 | # Character class describing NM global symbol codes. | |
7548 | symcode='[BCDEGRST]' | |
7549 | ||
7550 | # Regexp to match symbols that can be accessed directly from C. | |
7551 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7552 | ||
7553 | # Define system-specific variables. | |
7554 | case $host_os in | |
7555 | aix*) | |
7556 | symcode='[BCDT]' | |
7557 | ;; | |
00aafda4 | 7558 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 7559 | symcode='[ABCDGISTW]' |
7560 | ;; | |
7561 | hpux*) | |
7562 | if test "$host_cpu" = ia64; then | |
7563 | symcode='[ABCDEGRST]' | |
7564 | fi | |
7565 | ;; | |
7566 | irix* | nonstopux*) | |
7567 | symcode='[BCDEGRST]' | |
7568 | ;; | |
7569 | osf*) | |
7570 | symcode='[BCDEGQRST]' | |
7571 | ;; | |
7572 | solaris*) | |
7573 | symcode='[BDRT]' | |
7574 | ;; | |
7575 | sco3.2v5*) | |
7576 | symcode='[DT]' | |
7577 | ;; | |
7578 | sysv4.2uw2*) | |
7579 | symcode='[DT]' | |
7580 | ;; | |
7581 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7582 | symcode='[ABDT]' | |
7583 | ;; | |
7584 | sysv4) | |
7585 | symcode='[DFNSTU]' | |
7586 | ;; | |
7587 | esac | |
7588 | ||
7589 | # If we're using GNU nm, then use its standard symbol codes. | |
7590 | case `$NM -V 2>&1` in | |
7591 | *GNU* | *'with BFD'*) | |
7592 | symcode='[ABCDGIRSTW]' ;; | |
7593 | esac | |
7594 | ||
7595 | # Transform an extracted symbol line into a proper C declaration. | |
7596 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7597 | # so use this general approach. | |
7598 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7599 | ||
7600 | # Transform an extracted symbol line into symbol name and symbol address | |
7601 | 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 | 7602 | 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 | 7603 | |
7604 | # Handle CRLF in mingw tool chain | |
7605 | opt_cr= | |
7606 | case $build_os in | |
7607 | mingw*) | |
7608 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7609 | ;; | |
7610 | esac | |
7611 | ||
7612 | # Try without a prefix underscore, then with it. | |
7613 | for ac_symprfx in "" "_"; do | |
7614 | ||
7615 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7616 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7617 | ||
7618 | # Write the raw and C identifiers. | |
7619 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7620 | # Fake it for dumpbin and say T for any non-static function | |
7621 | # and D for any global variable. | |
7622 | # Also find C++ and __fastcall symbols from MSVC++, | |
7623 | # which start with @ or ?. | |
7624 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7625 | " {last_section=section; section=\$ 3};"\ | |
7626 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7627 | " \$ 0!~/External *\|/{next};"\ | |
7628 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7629 | " {if(hide[section]) next};"\ | |
7630 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7631 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7632 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7633 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7634 | " ' prfx=^$ac_symprfx" | |
7635 | else | |
7636 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7637 | fi | |
7638 | ||
7639 | # Check to see that the pipe works correctly. | |
7640 | pipe_works=no | |
7641 | ||
7642 | rm -f conftest* | |
7643 | cat > conftest.$ac_ext <<_LT_EOF | |
7644 | #ifdef __cplusplus | |
7645 | extern "C" { | |
7646 | #endif | |
7647 | char nm_test_var; | |
7648 | void nm_test_func(void); | |
7649 | void nm_test_func(void){} | |
7650 | #ifdef __cplusplus | |
7651 | } | |
7652 | #endif | |
7653 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7654 | _LT_EOF | |
7655 | ||
cd9a469c | 7656 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 7657 | (eval $ac_compile) 2>&5 |
7658 | ac_status=$? | |
cd9a469c | 7659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7660 | test $ac_status = 0; }; then | |
542f9784 | 7661 | # Now try to grab the symbols. |
7662 | nlist=conftest.nm | |
e6408286 | 7663 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
7664 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
542f9784 | 7665 | ac_status=$? |
cd9a469c | 7666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7667 | test $ac_status = 0; } && test -s "$nlist"; then | |
542f9784 | 7668 | # Try sorting and uniquifying the output. |
7669 | if sort "$nlist" | uniq > "$nlist"T; then | |
7670 | mv -f "$nlist"T "$nlist" | |
7671 | else | |
7672 | rm -f "$nlist"T | |
7673 | fi | |
7674 | ||
7675 | # Make sure that we snagged all the symbols we need. | |
7676 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7677 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7678 | cat <<_LT_EOF > conftest.$ac_ext | |
7679 | #ifdef __cplusplus | |
7680 | extern "C" { | |
7681 | #endif | |
7682 | ||
7683 | _LT_EOF | |
7684 | # Now generate the symbol file. | |
7685 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7686 | ||
7687 | cat <<_LT_EOF >> conftest.$ac_ext | |
7688 | ||
7689 | /* The mapping between symbol names and symbols. */ | |
7690 | const struct { | |
7691 | const char *name; | |
7692 | void *address; | |
7693 | } | |
7694 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7695 | { | |
7696 | { "@PROGRAM@", (void *) 0 }, | |
7697 | _LT_EOF | |
7698 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7699 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7700 | {0, (void *) 0} | |
7701 | }; | |
7702 | ||
7703 | /* This works around a problem in FreeBSD linker */ | |
7704 | #ifdef FREEBSD_WORKAROUND | |
7705 | static const void *lt_preloaded_setup() { | |
7706 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7707 | } | |
7708 | #endif | |
7709 | ||
7710 | #ifdef __cplusplus | |
7711 | } | |
7712 | #endif | |
7713 | _LT_EOF | |
7714 | # Now try linking the two files. | |
7715 | mv conftest.$ac_objext conftstm.$ac_objext | |
7716 | lt_save_LIBS="$LIBS" | |
7717 | lt_save_CFLAGS="$CFLAGS" | |
7718 | LIBS="conftstm.$ac_objext" | |
7719 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
cd9a469c | 7720 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 7721 | (eval $ac_link) 2>&5 |
7722 | ac_status=$? | |
cd9a469c | 7723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7724 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
542f9784 | 7725 | pipe_works=yes |
7726 | fi | |
7727 | LIBS="$lt_save_LIBS" | |
7728 | CFLAGS="$lt_save_CFLAGS" | |
7729 | else | |
7730 | echo "cannot find nm_test_func in $nlist" >&5 | |
7731 | fi | |
7732 | else | |
7733 | echo "cannot find nm_test_var in $nlist" >&5 | |
7734 | fi | |
7735 | else | |
7736 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7737 | fi | |
7738 | else | |
7739 | echo "$progname: failed program was:" >&5 | |
7740 | cat conftest.$ac_ext >&5 | |
7741 | fi | |
00aafda4 | 7742 | rm -rf conftest* conftst* |
542f9784 | 7743 | |
7744 | # Do not use the global_symbol_pipe unless it works. | |
7745 | if test "$pipe_works" = yes; then | |
7746 | break | |
7747 | else | |
7748 | lt_cv_sys_global_symbol_pipe= | |
7749 | fi | |
7750 | done | |
7751 | ||
7752 | fi | |
7753 | ||
7754 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7755 | lt_cv_sys_global_symbol_to_cdecl= | |
7756 | fi | |
7757 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
cd9a469c | 7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7759 | $as_echo "failed" >&6; } | |
542f9784 | 7760 | else |
cd9a469c | 7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7762 | $as_echo "ok" >&6; } | |
542f9784 | 7763 | fi |
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | ||
00aafda4 | 7779 | |
7780 | ||
7781 | ||
7782 | ||
7783 | ||
542f9784 | 7784 | |
7785 | ||
cd9a469c | 7786 | # Check whether --enable-libtool-lock was given. |
7787 | if test "${enable_libtool_lock+set}" = set; then : | |
7788 | enableval=$enable_libtool_lock; | |
7789 | fi | |
542f9784 | 7790 | |
542f9784 | 7791 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4ee9c684 | 7792 | |
90973b19 | 7793 | # Some flags need to be propagated to the compiler or linker for good |
7794 | # libtool support. | |
7795 | case $host in | |
542f9784 | 7796 | ia64-*-hpux*) |
90973b19 | 7797 | # Find out which ABI we are using. |
542f9784 | 7798 | echo 'int i;' > conftest.$ac_ext |
cd9a469c | 7799 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 7800 | (eval $ac_compile) 2>&5 |
4ee9c684 | 7801 | ac_status=$? |
cd9a469c | 7802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7803 | test $ac_status = 0; }; then | |
90973b19 | 7804 | case `/usr/bin/file conftest.$ac_objext` in |
542f9784 | 7805 | *ELF-32*) |
7806 | HPUX_IA64_MODE="32" | |
7807 | ;; | |
7808 | *ELF-64*) | |
7809 | HPUX_IA64_MODE="64" | |
7810 | ;; | |
90973b19 | 7811 | esac |
90973b19 | 7812 | fi |
7813 | rm -rf conftest* | |
7814 | ;; | |
542f9784 | 7815 | *-*-irix6*) |
90973b19 | 7816 | # Find out which ABI we are using. |
e6408286 | 7817 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
cd9a469c | 7818 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 7819 | (eval $ac_compile) 2>&5 |
4ee9c684 | 7820 | ac_status=$? |
cd9a469c | 7821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7822 | test $ac_status = 0; }; then | |
542f9784 | 7823 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7824 | case `/usr/bin/file conftest.$ac_objext` in | |
7825 | *32-bit*) | |
7826 | LD="${LD-ld} -melf32bsmip" | |
7827 | ;; | |
7828 | *N32*) | |
7829 | LD="${LD-ld} -melf32bmipn32" | |
7830 | ;; | |
7831 | *64-bit*) | |
7832 | LD="${LD-ld} -melf64bmip" | |
7833 | ;; | |
7834 | esac | |
7835 | else | |
7836 | case `/usr/bin/file conftest.$ac_objext` in | |
7837 | *32-bit*) | |
7838 | LD="${LD-ld} -32" | |
7839 | ;; | |
7840 | *N32*) | |
7841 | LD="${LD-ld} -n32" | |
7842 | ;; | |
7843 | *64-bit*) | |
7844 | LD="${LD-ld} -64" | |
7845 | ;; | |
7846 | esac | |
7847 | fi | |
90973b19 | 7848 | fi |
7849 | rm -rf conftest* | |
7850 | ;; | |
4ee9c684 | 7851 | |
542f9784 | 7852 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
7853 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
90973b19 | 7854 | # Find out which ABI we are using. |
7855 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 7856 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
90973b19 | 7857 | (eval $ac_compile) 2>&5 |
4ee9c684 | 7858 | ac_status=$? |
cd9a469c | 7859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7860 | test $ac_status = 0; }; then | |
542f9784 | 7861 | case `/usr/bin/file conftest.o` in |
7862 | *32-bit*) | |
7863 | case $host in | |
7864 | x86_64-*kfreebsd*-gnu) | |
7865 | LD="${LD-ld} -m elf_i386_fbsd" | |
7866 | ;; | |
7867 | x86_64-*linux*) | |
7868 | LD="${LD-ld} -m elf_i386" | |
7869 | ;; | |
7870 | ppc64-*linux*|powerpc64-*linux*) | |
7871 | LD="${LD-ld} -m elf32ppclinux" | |
7872 | ;; | |
7873 | s390x-*linux*) | |
7874 | LD="${LD-ld} -m elf_s390" | |
7875 | ;; | |
7876 | sparc64-*linux*) | |
7877 | LD="${LD-ld} -m elf32_sparc" | |
7878 | ;; | |
7879 | esac | |
7880 | ;; | |
7881 | *64-bit*) | |
7882 | case $host in | |
7883 | x86_64-*kfreebsd*-gnu) | |
7884 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7885 | ;; | |
7886 | x86_64-*linux*) | |
7887 | LD="${LD-ld} -m elf_x86_64" | |
7888 | ;; | |
7889 | ppc*-*linux*|powerpc*-*linux*) | |
7890 | LD="${LD-ld} -m elf64ppc" | |
7891 | ;; | |
7892 | s390*-*linux*|s390*-*tpf*) | |
7893 | LD="${LD-ld} -m elf64_s390" | |
7894 | ;; | |
7895 | sparc*-*linux*) | |
7896 | LD="${LD-ld} -m elf64_sparc" | |
7897 | ;; | |
7898 | esac | |
7899 | ;; | |
90973b19 | 7900 | esac |
4ee9c684 | 7901 | fi |
90973b19 | 7902 | rm -rf conftest* |
7903 | ;; | |
4ee9c684 | 7904 | |
90973b19 | 7905 | *-*-sco3.2v5*) |
7906 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7907 | SAVE_CFLAGS="$CFLAGS" | |
7908 | CFLAGS="$CFLAGS -belf" | |
cd9a469c | 7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7910 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7911 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7912 | $as_echo_n "(cached) " >&6 | |
4ee9c684 | 7913 | else |
542f9784 | 7914 | ac_ext=c |
90973b19 | 7915 | ac_cpp='$CPP $CPPFLAGS' |
7916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4ee9c684 | 7919 | |
b52ee437 | 7920 | if test x$gcc_no_link = xyes; then |
cd9a469c | 7921 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 7922 | fi |
cd9a469c | 7923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4ee9c684 | 7924 | /* end confdefs.h. */ |
4ee9c684 | 7925 | |
7926 | int | |
7927 | main () | |
7928 | { | |
90973b19 | 7929 | |
4ee9c684 | 7930 | ; |
7931 | return 0; | |
7932 | } | |
7933 | _ACEOF | |
cd9a469c | 7934 | if ac_fn_c_try_link "$LINENO"; then : |
90973b19 | 7935 | lt_cv_cc_needs_belf=yes |
4ee9c684 | 7936 | else |
cd9a469c | 7937 | lt_cv_cc_needs_belf=no |
4ee9c684 | 7938 | fi |
cd9a469c | 7939 | rm -f core conftest.err conftest.$ac_objext \ |
7940 | conftest$ac_exeext conftest.$ac_ext | |
90973b19 | 7941 | ac_ext=c |
7942 | ac_cpp='$CPP $CPPFLAGS' | |
7943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7946 | ||
4ee9c684 | 7947 | fi |
cd9a469c | 7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7949 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
90973b19 | 7950 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7951 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7952 | CFLAGS="$SAVE_CFLAGS" | |
7953 | fi | |
7954 | ;; | |
542f9784 | 7955 | sparc*-*solaris*) |
7956 | # Find out which ABI we are using. | |
7957 | echo 'int i;' > conftest.$ac_ext | |
cd9a469c | 7958 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 7959 | (eval $ac_compile) 2>&5 |
7960 | ac_status=$? | |
cd9a469c | 7961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7962 | test $ac_status = 0; }; then | |
542f9784 | 7963 | case `/usr/bin/file conftest.o` in |
7964 | *64-bit*) | |
7965 | case $lt_cv_prog_gnu_ld in | |
7966 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
00aafda4 | 7967 | *) |
7968 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7969 | LD="${LD-ld} -64" | |
7970 | fi | |
7971 | ;; | |
542f9784 | 7972 | esac |
7973 | ;; | |
7974 | esac | |
7975 | fi | |
7976 | rm -rf conftest* | |
7977 | ;; | |
90973b19 | 7978 | esac |
7979 | ||
542f9784 | 7980 | need_locks="$enable_libtool_lock" |
90973b19 | 7981 | |
00aafda4 | 7982 | |
7983 | case $host_os in | |
7984 | rhapsody* | darwin*) | |
7985 | if test -n "$ac_tool_prefix"; then | |
7986 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7987 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
cd9a469c | 7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7989 | $as_echo_n "checking for $ac_word... " >&6; } | |
7990 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7991 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 7992 | else |
7993 | if test -n "$DSYMUTIL"; then | |
7994 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7995 | else | |
7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7997 | for as_dir in $PATH | |
7998 | do | |
7999 | IFS=$as_save_IFS | |
8000 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8001 | for ac_exec_ext in '' $ac_executable_extensions; do |
8002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
00aafda4 | 8003 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
cd9a469c | 8004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8005 | break 2 |
8006 | fi | |
8007 | done | |
cd9a469c | 8008 | done |
8009 | IFS=$as_save_IFS | |
00aafda4 | 8010 | |
8011 | fi | |
8012 | fi | |
8013 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8014 | if test -n "$DSYMUTIL"; then | |
cd9a469c | 8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8016 | $as_echo "$DSYMUTIL" >&6; } | |
00aafda4 | 8017 | else |
cd9a469c | 8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8019 | $as_echo "no" >&6; } | |
00aafda4 | 8020 | fi |
8021 | ||
cd9a469c | 8022 | |
00aafda4 | 8023 | fi |
8024 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8025 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8026 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8027 | set dummy dsymutil; ac_word=$2 | |
cd9a469c | 8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8029 | $as_echo_n "checking for $ac_word... " >&6; } | |
8030 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
8031 | $as_echo_n "(cached) " >&6 | |
00aafda4 | 8032 | else |
d5d92632 | 8033 | if test -n "$ac_ct_DSYMUTIL"; then |
8034 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
00aafda4 | 8035 | else |
8036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8037 | for as_dir in $PATH | |
8038 | do | |
8039 | IFS=$as_save_IFS | |
8040 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8041 | for ac_exec_ext in '' $ac_executable_extensions; do |
8042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8043 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
cd9a469c | 8044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8045 | break 2 |
8046 | fi | |
8047 | done | |
cd9a469c | 8048 | done |
8049 | IFS=$as_save_IFS | |
00aafda4 | 8050 | |
00aafda4 | 8051 | fi |
8052 | fi | |
d5d92632 | 8053 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
8054 | if test -n "$ac_ct_DSYMUTIL"; then | |
8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8056 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
00aafda4 | 8057 | else |
cd9a469c | 8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8059 | $as_echo "no" >&6; } | |
00aafda4 | 8060 | fi |
8061 | ||
d5d92632 | 8062 | if test "x$ac_ct_DSYMUTIL" = x; then |
8063 | DSYMUTIL=":" | |
cd9a469c | 8064 | else |
8065 | case $cross_compiling:$ac_tool_warned in | |
8066 | yes:) | |
8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8069 | ac_tool_warned=yes ;; | |
8070 | esac | |
d5d92632 | 8071 | DSYMUTIL=$ac_ct_DSYMUTIL |
cd9a469c | 8072 | fi |
00aafda4 | 8073 | else |
d5d92632 | 8074 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
00aafda4 | 8075 | fi |
8076 | ||
8077 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8078 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
8079 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
cd9a469c | 8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8081 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8082 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
cd9a469c | 8083 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8084 | else |
d5d92632 | 8085 | if test -n "$NMEDIT"; then |
8086 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
00aafda4 | 8087 | else |
8088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8089 | for as_dir in $PATH | |
8090 | do | |
8091 | IFS=$as_save_IFS | |
8092 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8093 | for ac_exec_ext in '' $ac_executable_extensions; do |
8094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8095 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
cd9a469c | 8096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8097 | break 2 |
8098 | fi | |
8099 | done | |
cd9a469c | 8100 | done |
8101 | IFS=$as_save_IFS | |
00aafda4 | 8102 | |
8103 | fi | |
8104 | fi | |
d5d92632 | 8105 | NMEDIT=$ac_cv_prog_NMEDIT |
8106 | if test -n "$NMEDIT"; then | |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8108 | $as_echo "$NMEDIT" >&6; } | |
00aafda4 | 8109 | else |
cd9a469c | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8111 | $as_echo "no" >&6; } | |
00aafda4 | 8112 | fi |
8113 | ||
cd9a469c | 8114 | |
00aafda4 | 8115 | fi |
d5d92632 | 8116 | if test -z "$ac_cv_prog_NMEDIT"; then |
8117 | ac_ct_NMEDIT=$NMEDIT | |
8118 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8119 | set dummy nmedit; ac_word=$2 | |
cd9a469c | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8121 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8122 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
cd9a469c | 8123 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8124 | else |
d5d92632 | 8125 | if test -n "$ac_ct_NMEDIT"; then |
8126 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
00aafda4 | 8127 | else |
8128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8129 | for as_dir in $PATH | |
8130 | do | |
8131 | IFS=$as_save_IFS | |
8132 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8133 | for ac_exec_ext in '' $ac_executable_extensions; do |
8134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8135 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
cd9a469c | 8136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8137 | break 2 |
8138 | fi | |
8139 | done | |
cd9a469c | 8140 | done |
8141 | IFS=$as_save_IFS | |
00aafda4 | 8142 | |
00aafda4 | 8143 | fi |
8144 | fi | |
d5d92632 | 8145 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
8146 | if test -n "$ac_ct_NMEDIT"; then | |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8148 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
00aafda4 | 8149 | else |
cd9a469c | 8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8151 | $as_echo "no" >&6; } | |
00aafda4 | 8152 | fi |
8153 | ||
d5d92632 | 8154 | if test "x$ac_ct_NMEDIT" = x; then |
8155 | NMEDIT=":" | |
cd9a469c | 8156 | else |
8157 | case $cross_compiling:$ac_tool_warned in | |
8158 | yes:) | |
8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8161 | ac_tool_warned=yes ;; | |
8162 | esac | |
d5d92632 | 8163 | NMEDIT=$ac_ct_NMEDIT |
cd9a469c | 8164 | fi |
00aafda4 | 8165 | else |
d5d92632 | 8166 | NMEDIT="$ac_cv_prog_NMEDIT" |
00aafda4 | 8167 | fi |
8168 | ||
8169 | if test -n "$ac_tool_prefix"; then | |
d5d92632 | 8170 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
8171 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
cd9a469c | 8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8173 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8174 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
cd9a469c | 8175 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8176 | else |
d5d92632 | 8177 | if test -n "$LIPO"; then |
8178 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
00aafda4 | 8179 | else |
8180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8181 | for as_dir in $PATH | |
8182 | do | |
8183 | IFS=$as_save_IFS | |
8184 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8185 | for ac_exec_ext in '' $ac_executable_extensions; do |
8186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8187 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
cd9a469c | 8188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8189 | break 2 |
8190 | fi | |
8191 | done | |
cd9a469c | 8192 | done |
8193 | IFS=$as_save_IFS | |
00aafda4 | 8194 | |
8195 | fi | |
8196 | fi | |
d5d92632 | 8197 | LIPO=$ac_cv_prog_LIPO |
8198 | if test -n "$LIPO"; then | |
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8200 | $as_echo "$LIPO" >&6; } | |
00aafda4 | 8201 | else |
cd9a469c | 8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8203 | $as_echo "no" >&6; } | |
00aafda4 | 8204 | fi |
8205 | ||
cd9a469c | 8206 | |
00aafda4 | 8207 | fi |
d5d92632 | 8208 | if test -z "$ac_cv_prog_LIPO"; then |
8209 | ac_ct_LIPO=$LIPO | |
8210 | # Extract the first word of "lipo", so it can be a program name with args. | |
8211 | set dummy lipo; ac_word=$2 | |
cd9a469c | 8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8213 | $as_echo_n "checking for $ac_word... " >&6; } | |
d5d92632 | 8214 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
cd9a469c | 8215 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8216 | else |
d5d92632 | 8217 | if test -n "$ac_ct_LIPO"; then |
8218 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
00aafda4 | 8219 | else |
8220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8221 | for as_dir in $PATH | |
8222 | do | |
8223 | IFS=$as_save_IFS | |
8224 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 8225 | for ac_exec_ext in '' $ac_executable_extensions; do |
8226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d5d92632 | 8227 | ac_cv_prog_ac_ct_LIPO="lipo" |
cd9a469c | 8228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
00aafda4 | 8229 | break 2 |
8230 | fi | |
8231 | done | |
cd9a469c | 8232 | done |
8233 | IFS=$as_save_IFS | |
00aafda4 | 8234 | |
00aafda4 | 8235 | fi |
8236 | fi | |
d5d92632 | 8237 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
8238 | if test -n "$ac_ct_LIPO"; then | |
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8240 | $as_echo "$ac_ct_LIPO" >&6; } | |
00aafda4 | 8241 | else |
cd9a469c | 8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8243 | $as_echo "no" >&6; } | |
00aafda4 | 8244 | fi |
8245 | ||
d5d92632 | 8246 | if test "x$ac_ct_LIPO" = x; then |
8247 | LIPO=":" | |
cd9a469c | 8248 | else |
8249 | case $cross_compiling:$ac_tool_warned in | |
8250 | yes:) | |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8252 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8253 | ac_tool_warned=yes ;; | |
8254 | esac | |
d5d92632 | 8255 | LIPO=$ac_ct_LIPO |
cd9a469c | 8256 | fi |
00aafda4 | 8257 | else |
d5d92632 | 8258 | LIPO="$ac_cv_prog_LIPO" |
00aafda4 | 8259 | fi |
8260 | ||
d5d92632 | 8261 | if test -n "$ac_tool_prefix"; then |
8262 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8263 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8265 | $as_echo_n "checking for $ac_word... " >&6; } | |
8266 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
cd9a469c | 8267 | $as_echo_n "(cached) " >&6 |
00aafda4 | 8268 | else |
d5d92632 | 8269 | if test -n "$OTOOL"; then |
8270 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
e6408286 | 8271 | else |
d5d92632 | 8272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8273 | for as_dir in $PATH | |
8274 | do | |
8275 | IFS=$as_save_IFS | |
8276 | test -z "$as_dir" && as_dir=. | |
8277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8279 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8281 | break 2 | |
8282 | fi | |
8283 | done | |
8284 | done | |
8285 | IFS=$as_save_IFS | |
e6408286 | 8286 | |
8287 | fi | |
d5d92632 | 8288 | fi |
8289 | OTOOL=$ac_cv_prog_OTOOL | |
8290 | if test -n "$OTOOL"; then | |
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8292 | $as_echo "$OTOOL" >&6; } | |
8293 | else | |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8295 | $as_echo "no" >&6; } | |
8296 | fi | |
8297 | ||
00aafda4 | 8298 | |
542f9784 | 8299 | fi |
d5d92632 | 8300 | if test -z "$ac_cv_prog_OTOOL"; then |
8301 | ac_ct_OTOOL=$OTOOL | |
8302 | # Extract the first word of "otool", so it can be a program name with args. | |
8303 | set dummy otool; ac_word=$2 | |
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8305 | $as_echo_n "checking for $ac_word... " >&6; } | |
8306 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
cd9a469c | 8307 | $as_echo_n "(cached) " >&6 |
542f9784 | 8308 | else |
d5d92632 | 8309 | if test -n "$ac_ct_OTOOL"; then |
8310 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8311 | else | |
8312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8313 | for as_dir in $PATH | |
542f9784 | 8314 | do |
d5d92632 | 8315 | IFS=$as_save_IFS |
8316 | test -z "$as_dir" && as_dir=. | |
8317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8319 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8321 | break 2 | |
8322 | fi | |
8323 | done | |
8324 | done | |
8325 | IFS=$as_save_IFS | |
4ee9c684 | 8326 | |
d5d92632 | 8327 | fi |
8328 | fi | |
8329 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8330 | if test -n "$ac_ct_OTOOL"; then | |
8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8332 | $as_echo "$ac_ct_OTOOL" >&6; } | |
cd9a469c | 8333 | else |
d5d92632 | 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8335 | $as_echo "no" >&6; } | |
542f9784 | 8336 | fi |
90973b19 | 8337 | |
d5d92632 | 8338 | if test "x$ac_ct_OTOOL" = x; then |
8339 | OTOOL=":" | |
8340 | else | |
8341 | case $cross_compiling:$ac_tool_warned in | |
8342 | yes:) | |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8344 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8345 | ac_tool_warned=yes ;; | |
8346 | esac | |
8347 | OTOOL=$ac_ct_OTOOL | |
8348 | fi | |
542f9784 | 8349 | else |
d5d92632 | 8350 | OTOOL="$ac_cv_prog_OTOOL" |
542f9784 | 8351 | fi |
4ee9c684 | 8352 | |
d5d92632 | 8353 | if test -n "$ac_tool_prefix"; then |
8354 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8355 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8357 | $as_echo_n "checking for $ac_word... " >&6; } | |
8358 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
8359 | $as_echo_n "(cached) " >&6 | |
8360 | else | |
8361 | if test -n "$OTOOL64"; then | |
8362 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8363 | else | |
8364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8365 | for as_dir in $PATH | |
8366 | do | |
8367 | IFS=$as_save_IFS | |
8368 | test -z "$as_dir" && as_dir=. | |
8369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8371 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8373 | break 2 | |
8374 | fi | |
542f9784 | 8375 | done |
d5d92632 | 8376 | done |
8377 | IFS=$as_save_IFS | |
8378 | ||
8379 | fi | |
8380 | fi | |
8381 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8382 | if test -n "$OTOOL64"; then | |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8384 | $as_echo "$OTOOL64" >&6; } | |
8385 | else | |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8387 | $as_echo "no" >&6; } | |
542f9784 | 8388 | fi |
4ee9c684 | 8389 | |
90973b19 | 8390 | |
542f9784 | 8391 | fi |
d5d92632 | 8392 | if test -z "$ac_cv_prog_OTOOL64"; then |
8393 | ac_ct_OTOOL64=$OTOOL64 | |
8394 | # Extract the first word of "otool64", so it can be a program name with args. | |
8395 | set dummy otool64; ac_word=$2 | |
8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8397 | $as_echo_n "checking for $ac_word... " >&6; } | |
8398 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8399 | $as_echo_n "(cached) " >&6 | |
90973b19 | 8400 | else |
d5d92632 | 8401 | if test -n "$ac_ct_OTOOL64"; then |
8402 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8403 | else | |
8404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8405 | for as_dir in $PATH | |
90973b19 | 8406 | do |
d5d92632 | 8407 | IFS=$as_save_IFS |
8408 | test -z "$as_dir" && as_dir=. | |
8409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8411 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8413 | break 2 | |
8414 | fi | |
8415 | done | |
8416 | done | |
8417 | IFS=$as_save_IFS | |
90973b19 | 8418 | |
d5d92632 | 8419 | fi |
8420 | fi | |
8421 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8422 | if test -n "$ac_ct_OTOOL64"; then | |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8424 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
cd9a469c | 8425 | else |
d5d92632 | 8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8427 | $as_echo "no" >&6; } | |
90973b19 | 8428 | fi |
8429 | ||
d5d92632 | 8430 | if test "x$ac_ct_OTOOL64" = x; then |
8431 | OTOOL64=":" | |
8432 | else | |
8433 | case $cross_compiling:$ac_tool_warned in | |
8434 | yes:) | |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8436 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8437 | ac_tool_warned=yes ;; | |
8438 | esac | |
8439 | OTOOL64=$ac_ct_OTOOL64 | |
8440 | fi | |
4ee9c684 | 8441 | else |
d5d92632 | 8442 | OTOOL64="$ac_cv_prog_OTOOL64" |
4ee9c684 | 8443 | fi |
4ee9c684 | 8444 | |
cd9a469c | 8445 | |
542f9784 | 8446 | |
542f9784 | 8447 | |
8448 | ||
4ee9c684 | 8449 | |
542f9784 | 8450 | |
4ee9c684 | 8451 | |
542f9784 | 8452 | |
cd9a469c | 8453 | |
4ee9c684 | 8454 | |
9cf1c244 | 8455 | |
2e4ef4e4 | 8456 | |
cd9a469c | 8457 | |
2e4ef4e4 | 8458 | |
2e4ef4e4 | 8459 | |
d5d92632 | 8460 | |
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8472 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8473 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8474 | $as_echo_n "(cached) " >&6 | |
542f9784 | 8475 | else |
d5d92632 | 8476 | lt_cv_apple_cc_single_mod=no |
8477 | if test -z "${LT_MULTI_MODULE}"; then | |
8478 | # By default we will add the -single_module flag. You can override | |
8479 | # by either setting the environment variable LT_MULTI_MODULE | |
8480 | # non-empty at configure time, or by adding -multi_module to the | |
8481 | # link flags. | |
8482 | rm -rf libconftest.dylib* | |
8483 | echo "int foo(void){return 1;}" > conftest.c | |
8484 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8485 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8486 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8487 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8488 | _lt_result=$? | |
8489 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8490 | lt_cv_apple_cc_single_mod=yes | |
8491 | else | |
8492 | cat conftest.err >&5 | |
8493 | fi | |
8494 | rm -rf libconftest.dylib* | |
8495 | rm -f conftest.* | |
8496 | fi | |
8497 | fi | |
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8499 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8501 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8502 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8503 | $as_echo_n "(cached) " >&6 | |
8504 | else | |
8505 | lt_cv_ld_exported_symbols_list=no | |
8506 | save_LDFLAGS=$LDFLAGS | |
8507 | echo "_main" > conftest.sym | |
8508 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8509 | if test x$gcc_no_link = xyes; then | |
8510 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
8511 | fi | |
8512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
542f9784 | 8513 | /* end confdefs.h. */ |
2e4ef4e4 | 8514 | |
542f9784 | 8515 | int |
8516 | main () | |
8517 | { | |
d5d92632 | 8518 | |
8519 | ; | |
cd9a469c | 8520 | return 0; |
542f9784 | 8521 | } |
2e4ef4e4 | 8522 | _ACEOF |
d5d92632 | 8523 | if ac_fn_c_try_link "$LINENO"; then : |
8524 | lt_cv_ld_exported_symbols_list=yes | |
cd9a469c | 8525 | else |
d5d92632 | 8526 | lt_cv_ld_exported_symbols_list=no |
542f9784 | 8527 | fi |
d5d92632 | 8528 | rm -f core conftest.err conftest.$ac_objext \ |
8529 | conftest$ac_exeext conftest.$ac_ext | |
8530 | LDFLAGS="$save_LDFLAGS" | |
2e4ef4e4 | 8531 | |
8532 | fi | |
d5d92632 | 8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8534 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8536 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8537 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8538 | $as_echo_n "(cached) " >&6 | |
8539 | else | |
8540 | lt_cv_ld_force_load=no | |
8541 | cat > conftest.c << _LT_EOF | |
8542 | int forced_loaded() { return 2;} | |
8543 | _LT_EOF | |
8544 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8545 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8546 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8547 | $AR cru libconftest.a conftest.o 2>&5 | |
8548 | cat > conftest.c << _LT_EOF | |
8549 | int main() { return 0;} | |
8550 | _LT_EOF | |
8551 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8552 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8553 | _lt_result=$? | |
8554 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8555 | lt_cv_ld_force_load=yes | |
8556 | else | |
8557 | cat conftest.err >&5 | |
8558 | fi | |
8559 | rm -f conftest.err libconftest.a conftest conftest.c | |
8560 | rm -rf conftest.dSYM | |
542f9784 | 8561 | |
8562 | fi | |
d5d92632 | 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8564 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8565 | case $host_os in | |
8566 | rhapsody* | darwin1.[012]) | |
8567 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8568 | darwin1.*) | |
8569 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8570 | darwin*) # darwin 5.x on | |
8571 | # if running on 10.5 or later, the deployment target defaults | |
8572 | # to the OS version, if on x86, and 10.4, the deployment | |
8573 | # target defaults to 10.4. Don't you love it? | |
8574 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8575 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8576 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8577 | 10.[012]*) | |
8578 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8579 | 10.*) | |
8580 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8581 | esac | |
8582 | ;; | |
8583 | esac | |
8584 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8585 | _lt_dar_single_mod='$single_module' | |
8586 | fi | |
8587 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8588 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8589 | else | |
8590 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8591 | fi | |
8592 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8593 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8594 | else | |
8595 | _lt_dsymutil= | |
8596 | fi | |
8597 | ;; | |
8598 | esac | |
542f9784 | 8599 | |
542f9784 | 8600 | for ac_header in dlfcn.h |
cd9a469c | 8601 | do : |
8602 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8603 | " | |
8604 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
542f9784 | 8605 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 8606 | #define HAVE_DLFCN_H 1 |
90e67cff | 8607 | _ACEOF |
90e67cff | 8608 | |
542f9784 | 8609 | fi |
8610 | ||
8611 | done | |
8612 | ||
8613 | ||
8614 | ||
e6408286 | 8615 | |
8616 | ||
00aafda4 | 8617 | # Set options |
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | enable_win32_dll=no | |
8623 | ||
8624 | ||
cd9a469c | 8625 | # Check whether --enable-shared was given. |
8626 | if test "${enable_shared+set}" = set; then : | |
8627 | enableval=$enable_shared; p=${PACKAGE-default} | |
00aafda4 | 8628 | case $enableval in |
8629 | yes) enable_shared=yes ;; | |
8630 | no) enable_shared=no ;; | |
8631 | *) | |
8632 | enable_shared=no | |
8633 | # Look at the argument we got. We use all the common list separators. | |
8634 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8635 | for pkg in $enableval; do | |
8636 | IFS="$lt_save_ifs" | |
8637 | if test "X$pkg" = "X$p"; then | |
8638 | enable_shared=yes | |
8639 | fi | |
8640 | done | |
8641 | IFS="$lt_save_ifs" | |
8642 | ;; | |
8643 | esac | |
8644 | else | |
8645 | enable_shared=yes | |
cd9a469c | 8646 | fi |
8647 | ||
00aafda4 | 8648 | |
8649 | ||
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
cd9a469c | 8656 | # Check whether --enable-static was given. |
8657 | if test "${enable_static+set}" = set; then : | |
8658 | enableval=$enable_static; p=${PACKAGE-default} | |
00aafda4 | 8659 | case $enableval in |
8660 | yes) enable_static=yes ;; | |
8661 | no) enable_static=no ;; | |
8662 | *) | |
8663 | enable_static=no | |
8664 | # Look at the argument we got. We use all the common list separators. | |
8665 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8666 | for pkg in $enableval; do | |
8667 | IFS="$lt_save_ifs" | |
8668 | if test "X$pkg" = "X$p"; then | |
8669 | enable_static=yes | |
8670 | fi | |
8671 | done | |
8672 | IFS="$lt_save_ifs" | |
8673 | ;; | |
8674 | esac | |
8675 | else | |
8676 | enable_static=yes | |
cd9a469c | 8677 | fi |
8678 | ||
00aafda4 | 8679 | |
8680 | ||
8681 | ||
8682 | ||
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | ||
cd9a469c | 8688 | # Check whether --with-pic was given. |
8689 | if test "${with_pic+set}" = set; then : | |
8690 | withval=$with_pic; pic_mode="$withval" | |
00aafda4 | 8691 | else |
8692 | pic_mode=default | |
cd9a469c | 8693 | fi |
8694 | ||
00aafda4 | 8695 | |
8696 | test -z "$pic_mode" && pic_mode=default | |
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
cd9a469c | 8704 | # Check whether --enable-fast-install was given. |
8705 | if test "${enable_fast_install+set}" = set; then : | |
8706 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
00aafda4 | 8707 | case $enableval in |
8708 | yes) enable_fast_install=yes ;; | |
8709 | no) enable_fast_install=no ;; | |
8710 | *) | |
8711 | enable_fast_install=no | |
8712 | # Look at the argument we got. We use all the common list separators. | |
8713 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8714 | for pkg in $enableval; do | |
8715 | IFS="$lt_save_ifs" | |
8716 | if test "X$pkg" = "X$p"; then | |
8717 | enable_fast_install=yes | |
8718 | fi | |
8719 | done | |
8720 | IFS="$lt_save_ifs" | |
8721 | ;; | |
8722 | esac | |
8723 | else | |
8724 | enable_fast_install=yes | |
cd9a469c | 8725 | fi |
8726 | ||
00aafda4 | 8727 | |
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
8736 | ||
542f9784 | 8737 | # This can be used to rebuild libtool when needed |
8738 | LIBTOOL_DEPS="$ltmain" | |
8739 | ||
8740 | # Always use our own libtool. | |
8741 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
8748 | ||
8749 | ||
8750 | ||
8751 | ||
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | ||
8757 | ||
8758 | ||
8759 | ||
8760 | ||
8761 | ||
8762 | ||
8763 | ||
8764 | ||
e6408286 | 8765 | |
542f9784 | 8766 | |
8767 | ||
8768 | test -z "$LN_S" && LN_S="ln -s" | |
8769 | ||
8770 | ||
8771 | ||
8772 | ||
8773 | ||
90e67cff | 8774 | |
542f9784 | 8775 | |
8776 | ||
8777 | ||
8778 | ||
8779 | ||
8780 | ||
8781 | ||
8782 | ||
8783 | if test -n "${ZSH_VERSION+set}" ; then | |
8784 | setopt NO_GLOB_SUBST | |
90e67cff | 8785 | fi |
90e67cff | 8786 | |
cd9a469c | 8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8788 | $as_echo_n "checking for objdir... " >&6; } | |
8789 | if test "${lt_cv_objdir+set}" = set; then : | |
8790 | $as_echo_n "(cached) " >&6 | |
90e67cff | 8791 | else |
542f9784 | 8792 | rm -f .libs 2>/dev/null |
8793 | mkdir .libs 2>/dev/null | |
8794 | if test -d .libs; then | |
8795 | lt_cv_objdir=.libs | |
8796 | else | |
8797 | # MS-DOS does not allow filenames that begin with a dot. | |
8798 | lt_cv_objdir=_libs | |
90e67cff | 8799 | fi |
542f9784 | 8800 | rmdir .libs 2>/dev/null |
90e67cff | 8801 | fi |
cd9a469c | 8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8803 | $as_echo "$lt_cv_objdir" >&6; } | |
542f9784 | 8804 | objdir=$lt_cv_objdir |
8805 | ||
8806 | ||
8807 | ||
8808 | ||
90e67cff | 8809 | |
8810 | cat >>confdefs.h <<_ACEOF | |
542f9784 | 8811 | #define LT_OBJDIR "$lt_cv_objdir/" |
90e67cff | 8812 | _ACEOF |
8813 | ||
542f9784 | 8814 | |
8815 | ||
8816 | ||
542f9784 | 8817 | case $host_os in |
8818 | aix3*) | |
8819 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8820 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8821 | # vanish in a puff of smoke. | |
8822 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8823 | COLLECT_NAMES= | |
8824 | export COLLECT_NAMES | |
8825 | fi | |
8826 | ;; | |
8827 | esac | |
8828 | ||
542f9784 | 8829 | # Global variables: |
8830 | ofile=libtool | |
8831 | can_build_shared=yes | |
8832 | ||
8833 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8834 | # which needs '.lib'). | |
8835 | libext=a | |
8836 | ||
8837 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8838 | ||
8839 | old_CC="$CC" | |
8840 | old_CFLAGS="$CFLAGS" | |
8841 | ||
8842 | # Set sane defaults for various variables | |
8843 | test -z "$CC" && CC=cc | |
8844 | test -z "$LTCC" && LTCC=$CC | |
8845 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8846 | test -z "$LD" && LD=ld | |
8847 | test -z "$ac_objext" && ac_objext=o | |
8848 | ||
8849 | for cc_temp in $compiler""; do | |
8850 | case $cc_temp in | |
8851 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8852 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8853 | \-*) ;; | |
8854 | *) break;; | |
8855 | esac | |
8856 | done | |
e6408286 | 8857 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 8858 | |
8859 | ||
8860 | # Only perform the check for file, if the check method requires it | |
8861 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8862 | case $deplibs_check_method in | |
8863 | file_magic*) | |
8864 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
cd9a469c | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8866 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8867 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8868 | $as_echo_n "(cached) " >&6 | |
90e67cff | 8869 | else |
542f9784 | 8870 | case $MAGIC_CMD in |
8871 | [\\/*] | ?:[\\/]*) | |
8872 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8873 | ;; | |
8874 | *) | |
8875 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8876 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8877 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8878 | for ac_dir in $ac_dummy; do | |
8879 | IFS="$lt_save_ifs" | |
8880 | test -z "$ac_dir" && ac_dir=. | |
8881 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8882 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8883 | if test -n "$file_magic_test_file"; then | |
8884 | case $deplibs_check_method in | |
8885 | "file_magic "*) | |
8886 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8887 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8888 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8889 | $EGREP "$file_magic_regex" > /dev/null; then | |
8890 | : | |
8891 | else | |
8892 | cat <<_LT_EOF 1>&2 | |
90e67cff | 8893 | |
542f9784 | 8894 | *** Warning: the command libtool uses to detect shared libraries, |
8895 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8896 | *** The result is that libtool may fail to recognize shared libraries | |
8897 | *** as such. This will affect the creation of libtool libraries that | |
8898 | *** depend on shared libraries, but programs linked with such libtool | |
8899 | *** libraries will work regardless of this problem. Nevertheless, you | |
8900 | *** may want to report the problem to your system manager and/or to | |
8901 | *** bug-libtool@gnu.org | |
8902 | ||
8903 | _LT_EOF | |
8904 | fi ;; | |
8905 | esac | |
8906 | fi | |
8907 | break | |
8908 | fi | |
8909 | done | |
8910 | IFS="$lt_save_ifs" | |
8911 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8912 | ;; | |
8913 | esac | |
8914 | fi | |
8915 | ||
8916 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8917 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8919 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 8920 | else |
cd9a469c | 8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8922 | $as_echo "no" >&6; } | |
542f9784 | 8923 | fi |
8924 | ||
8925 | ||
8926 | ||
8927 | ||
8928 | ||
8929 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8930 | if test -n "$ac_tool_prefix"; then | |
cd9a469c | 8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8932 | $as_echo_n "checking for file... " >&6; } | |
8933 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8934 | $as_echo_n "(cached) " >&6 | |
542f9784 | 8935 | else |
8936 | case $MAGIC_CMD in | |
8937 | [\\/*] | ?:[\\/]*) | |
8938 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8939 | ;; | |
8940 | *) | |
8941 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8942 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8943 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8944 | for ac_dir in $ac_dummy; do | |
8945 | IFS="$lt_save_ifs" | |
8946 | test -z "$ac_dir" && ac_dir=. | |
8947 | if test -f $ac_dir/file; then | |
8948 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8949 | if test -n "$file_magic_test_file"; then | |
8950 | case $deplibs_check_method in | |
8951 | "file_magic "*) | |
8952 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8953 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8954 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8955 | $EGREP "$file_magic_regex" > /dev/null; then | |
8956 | : | |
8957 | else | |
8958 | cat <<_LT_EOF 1>&2 | |
8959 | ||
8960 | *** Warning: the command libtool uses to detect shared libraries, | |
8961 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8962 | *** The result is that libtool may fail to recognize shared libraries | |
8963 | *** as such. This will affect the creation of libtool libraries that | |
8964 | *** depend on shared libraries, but programs linked with such libtool | |
8965 | *** libraries will work regardless of this problem. Nevertheless, you | |
8966 | *** may want to report the problem to your system manager and/or to | |
8967 | *** bug-libtool@gnu.org | |
8968 | ||
8969 | _LT_EOF | |
8970 | fi ;; | |
8971 | esac | |
8972 | fi | |
8973 | break | |
8974 | fi | |
8975 | done | |
8976 | IFS="$lt_save_ifs" | |
8977 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8978 | ;; | |
8979 | esac | |
8980 | fi | |
8981 | ||
8982 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8983 | if test -n "$MAGIC_CMD"; then | |
cd9a469c | 8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8985 | $as_echo "$MAGIC_CMD" >&6; } | |
542f9784 | 8986 | else |
cd9a469c | 8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8988 | $as_echo "no" >&6; } | |
542f9784 | 8989 | fi |
8990 | ||
8991 | ||
8992 | else | |
8993 | MAGIC_CMD=: | |
8994 | fi | |
8995 | fi | |
8996 | ||
8997 | fi | |
8998 | ;; | |
8999 | esac | |
9000 | ||
9001 | # Use C for the default configuration in the libtool script | |
9002 | ||
9003 | lt_save_CC="$CC" | |
9004 | ac_ext=c | |
9005 | ac_cpp='$CPP $CPPFLAGS' | |
9006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9009 | ||
9010 | ||
9011 | # Source file extension for C test sources. | |
9012 | ac_ext=c | |
9013 | ||
9014 | # Object file extension for compiled C test sources. | |
9015 | objext=o | |
9016 | objext=$objext | |
9017 | ||
9018 | # Code to be used in simple compile tests | |
9019 | lt_simple_compile_test_code="int some_variable = 0;" | |
9020 | ||
9021 | # Code to be used in simple link tests | |
9022 | lt_simple_link_test_code='int main(){return(0);}' | |
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | # If no C compiler was specified, use CC. | |
9031 | LTCC=${LTCC-"$CC"} | |
9032 | ||
9033 | # If no C compiler flags were specified, use CFLAGS. | |
9034 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9035 | ||
9036 | # Allow CC to be a program name with arguments. | |
9037 | compiler=$CC | |
9038 | ||
9039 | # Save the default compiler, since it gets overwritten when the other | |
9040 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9041 | compiler_DEFAULT=$CC | |
9042 | ||
9043 | # save warnings/boilerplate of simple test code | |
9044 | ac_outfile=conftest.$ac_objext | |
9045 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9046 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9047 | _lt_compiler_boilerplate=`cat conftest.err` | |
9048 | $RM conftest* | |
9049 | ||
9050 | ac_outfile=conftest.$ac_objext | |
9051 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9052 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9053 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 9054 | $RM -r conftest* |
542f9784 | 9055 | |
9056 | ||
9057 | ## CAVEAT EMPTOR: | |
9058 | ## There is no encapsulation within the following macros, do not change | |
9059 | ## the running order or otherwise move them around unless you know exactly | |
9060 | ## what you are doing... | |
9061 | if test -n "$compiler"; then | |
9062 | ||
9063 | lt_prog_compiler_no_builtin_flag= | |
9064 | ||
9065 | if test "$GCC" = yes; then | |
e6408286 | 9066 | case $cc_basename in |
9067 | nvcc*) | |
9068 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9069 | *) | |
9070 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9071 | esac | |
542f9784 | 9072 | |
cd9a469c | 9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9074 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9075 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
9076 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9077 | else |
9078 | lt_cv_prog_compiler_rtti_exceptions=no | |
9079 | ac_outfile=conftest.$ac_objext | |
9080 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9081 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9082 | # Insert the option either (1) after the last *FLAGS variable, or | |
9083 | # (2) before a word containing "conftest.", or (3) at the end. | |
9084 | # Note that $ac_compile itself does not contain backslashes and begins | |
9085 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9086 | # The option is referenced via a variable to avoid confusing sed. | |
9087 | lt_compile=`echo "$ac_compile" | $SED \ | |
9088 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9089 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9090 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9091 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9092 | (eval "$lt_compile" 2>conftest.err) |
9093 | ac_status=$? | |
9094 | cat conftest.err >&5 | |
e6408286 | 9095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9096 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9097 | # The compiler can only warn and ignore the option if not recognized | |
9098 | # So say no if there are warnings other than the usual output. | |
e6408286 | 9099 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 9100 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9101 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9102 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9103 | fi | |
9104 | fi | |
9105 | $RM conftest* | |
9106 | ||
9107 | fi | |
cd9a469c | 9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
9109 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
542f9784 | 9110 | |
9111 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9112 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9113 | else | |
9114 | : | |
9115 | fi | |
9116 | ||
9117 | fi | |
9118 | ||
9119 | ||
9120 | ||
9121 | ||
9122 | ||
9123 | ||
9124 | lt_prog_compiler_wl= | |
9125 | lt_prog_compiler_pic= | |
9126 | lt_prog_compiler_static= | |
9127 | ||
cd9a469c | 9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9129 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 9130 | |
9131 | if test "$GCC" = yes; then | |
9132 | lt_prog_compiler_wl='-Wl,' | |
9133 | lt_prog_compiler_static='-static' | |
9134 | ||
9135 | case $host_os in | |
9136 | aix*) | |
9137 | # All AIX code is PIC. | |
9138 | if test "$host_cpu" = ia64; then | |
9139 | # AIX 5 now supports IA64 processor | |
9140 | lt_prog_compiler_static='-Bstatic' | |
9141 | fi | |
9142 | ;; | |
9143 | ||
9144 | amigaos*) | |
00aafda4 | 9145 | case $host_cpu in |
9146 | powerpc) | |
9147 | # see comment about AmigaOS4 .so support | |
9148 | lt_prog_compiler_pic='-fPIC' | |
9149 | ;; | |
9150 | m68k) | |
9151 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9152 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9153 | # like `-m68040'. | |
9154 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9155 | ;; | |
9156 | esac | |
542f9784 | 9157 | ;; |
9158 | ||
9159 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9160 | # PIC is the default for these OSes. | |
9161 | ;; | |
9162 | ||
00aafda4 | 9163 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9164 | # This hack is so that the source file can tell whether it is being |
9165 | # built for inclusion in a dll (and should export symbols for example). | |
9166 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9167 | # (--disable-auto-import) libraries | |
9168 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9169 | ;; | |
9170 | ||
9171 | darwin* | rhapsody*) | |
9172 | # PIC is the default on this platform | |
9173 | # Common symbols not allowed in MH_DYLIB files | |
9174 | lt_prog_compiler_pic='-fno-common' | |
9175 | ;; | |
9176 | ||
e6408286 | 9177 | haiku*) |
9178 | # PIC is the default for Haiku. | |
9179 | # The "-static" flag exists, but is broken. | |
9180 | lt_prog_compiler_static= | |
9181 | ;; | |
9182 | ||
542f9784 | 9183 | hpux*) |
00aafda4 | 9184 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9185 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9186 | # sets the default TLS model and affects inlining. | |
542f9784 | 9187 | case $host_cpu in |
00aafda4 | 9188 | hppa*64*) |
542f9784 | 9189 | # +Z the default |
9190 | ;; | |
9191 | *) | |
9192 | lt_prog_compiler_pic='-fPIC' | |
9193 | ;; | |
9194 | esac | |
9195 | ;; | |
9196 | ||
9197 | interix[3-9]*) | |
9198 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9199 | # Instead, we relocate shared libraries at runtime. | |
9200 | ;; | |
9201 | ||
9202 | msdosdjgpp*) | |
9203 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9204 | # on systems that don't support them. | |
9205 | lt_prog_compiler_can_build_shared=no | |
9206 | enable_shared=no | |
9207 | ;; | |
9208 | ||
9209 | *nto* | *qnx*) | |
9210 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9211 | # it will coredump. | |
9212 | lt_prog_compiler_pic='-fPIC -shared' | |
9213 | ;; | |
9214 | ||
9215 | sysv4*MP*) | |
9216 | if test -d /usr/nec; then | |
9217 | lt_prog_compiler_pic=-Kconform_pic | |
9218 | fi | |
9219 | ;; | |
9220 | ||
9221 | *) | |
9222 | lt_prog_compiler_pic='-fPIC' | |
9223 | ;; | |
9224 | esac | |
e6408286 | 9225 | |
9226 | case $cc_basename in | |
9227 | nvcc*) # Cuda Compiler Driver 2.2 | |
9228 | lt_prog_compiler_wl='-Xlinker ' | |
9229 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9230 | ;; | |
9231 | esac | |
542f9784 | 9232 | else |
9233 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9234 | case $host_os in | |
9235 | aix*) | |
9236 | lt_prog_compiler_wl='-Wl,' | |
9237 | if test "$host_cpu" = ia64; then | |
9238 | # AIX 5 now supports IA64 processor | |
9239 | lt_prog_compiler_static='-Bstatic' | |
9240 | else | |
9241 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9242 | fi | |
9243 | ;; | |
542f9784 | 9244 | |
00aafda4 | 9245 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 9246 | # This hack is so that the source file can tell whether it is being |
9247 | # built for inclusion in a dll (and should export symbols for example). | |
9248 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9249 | ;; | |
9250 | ||
9251 | hpux9* | hpux10* | hpux11*) | |
9252 | lt_prog_compiler_wl='-Wl,' | |
9253 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9254 | # not for PA HP-UX. | |
9255 | case $host_cpu in | |
9256 | hppa*64*|ia64*) | |
9257 | # +Z the default | |
9258 | ;; | |
9259 | *) | |
9260 | lt_prog_compiler_pic='+Z' | |
9261 | ;; | |
9262 | esac | |
9263 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9264 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9265 | ;; | |
9266 | ||
9267 | irix5* | irix6* | nonstopux*) | |
9268 | lt_prog_compiler_wl='-Wl,' | |
9269 | # PIC (with -KPIC) is the default. | |
9270 | lt_prog_compiler_static='-non_shared' | |
9271 | ;; | |
9272 | ||
9af964d4 | 9273 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 9274 | case $cc_basename in |
00aafda4 | 9275 | # old Intel for x86_64 which still supported -KPIC. |
9276 | ecc*) | |
542f9784 | 9277 | lt_prog_compiler_wl='-Wl,' |
9278 | lt_prog_compiler_pic='-KPIC' | |
9279 | lt_prog_compiler_static='-static' | |
9280 | ;; | |
00aafda4 | 9281 | # icc used to be incompatible with GCC. |
9282 | # ICC 10 doesn't accept -KPIC any more. | |
9283 | icc* | ifort*) | |
9284 | lt_prog_compiler_wl='-Wl,' | |
9285 | lt_prog_compiler_pic='-fPIC' | |
9286 | lt_prog_compiler_static='-static' | |
9287 | ;; | |
9288 | # Lahey Fortran 8.1. | |
9289 | lf95*) | |
9290 | lt_prog_compiler_wl='-Wl,' | |
9291 | lt_prog_compiler_pic='--shared' | |
9292 | lt_prog_compiler_static='--static' | |
9293 | ;; | |
e6408286 | 9294 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 9295 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9296 | # which looks to be a dead project) | |
9297 | lt_prog_compiler_wl='-Wl,' | |
9298 | lt_prog_compiler_pic='-fpic' | |
9299 | lt_prog_compiler_static='-Bstatic' | |
9300 | ;; | |
9301 | ccc*) | |
9302 | lt_prog_compiler_wl='-Wl,' | |
9303 | # All Alpha code is PIC. | |
9304 | lt_prog_compiler_static='-non_shared' | |
9305 | ;; | |
e6408286 | 9306 | xl* | bgxl* | bgf* | mpixl*) |
9307 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 9308 | lt_prog_compiler_wl='-Wl,' |
9309 | lt_prog_compiler_pic='-qpic' | |
9310 | lt_prog_compiler_static='-qstaticlink' | |
9311 | ;; | |
542f9784 | 9312 | *) |
9313 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 9314 | *Sun\ F* | *Sun*Fortran*) |
9315 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 9316 | lt_prog_compiler_pic='-KPIC' |
9317 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9318 | lt_prog_compiler_wl='' |
542f9784 | 9319 | ;; |
e6408286 | 9320 | *Sun\ C*) |
9321 | # Sun C 5.9 | |
542f9784 | 9322 | lt_prog_compiler_pic='-KPIC' |
9323 | lt_prog_compiler_static='-Bstatic' | |
e6408286 | 9324 | lt_prog_compiler_wl='-Wl,' |
542f9784 | 9325 | ;; |
9326 | esac | |
9327 | ;; | |
9328 | esac | |
9329 | ;; | |
9330 | ||
9331 | newsos6) | |
9332 | lt_prog_compiler_pic='-KPIC' | |
9333 | lt_prog_compiler_static='-Bstatic' | |
9334 | ;; | |
9335 | ||
9336 | *nto* | *qnx*) | |
9337 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9338 | # it will coredump. | |
9339 | lt_prog_compiler_pic='-fPIC -shared' | |
9340 | ;; | |
9341 | ||
9342 | osf3* | osf4* | osf5*) | |
9343 | lt_prog_compiler_wl='-Wl,' | |
9344 | # All OSF/1 code is PIC. | |
9345 | lt_prog_compiler_static='-non_shared' | |
9346 | ;; | |
9347 | ||
9348 | rdos*) | |
9349 | lt_prog_compiler_static='-non_shared' | |
9350 | ;; | |
9351 | ||
9352 | solaris*) | |
9353 | lt_prog_compiler_pic='-KPIC' | |
9354 | lt_prog_compiler_static='-Bstatic' | |
9355 | case $cc_basename in | |
9356 | f77* | f90* | f95*) | |
9357 | lt_prog_compiler_wl='-Qoption ld ';; | |
9358 | *) | |
9359 | lt_prog_compiler_wl='-Wl,';; | |
9360 | esac | |
9361 | ;; | |
9362 | ||
9363 | sunos4*) | |
9364 | lt_prog_compiler_wl='-Qoption ld ' | |
9365 | lt_prog_compiler_pic='-PIC' | |
9366 | lt_prog_compiler_static='-Bstatic' | |
9367 | ;; | |
9368 | ||
9369 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9370 | lt_prog_compiler_wl='-Wl,' | |
9371 | lt_prog_compiler_pic='-KPIC' | |
9372 | lt_prog_compiler_static='-Bstatic' | |
9373 | ;; | |
9374 | ||
9375 | sysv4*MP*) | |
9376 | if test -d /usr/nec ;then | |
9377 | lt_prog_compiler_pic='-Kconform_pic' | |
9378 | lt_prog_compiler_static='-Bstatic' | |
9379 | fi | |
9380 | ;; | |
9381 | ||
9382 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9383 | lt_prog_compiler_wl='-Wl,' | |
9384 | lt_prog_compiler_pic='-KPIC' | |
9385 | lt_prog_compiler_static='-Bstatic' | |
9386 | ;; | |
9387 | ||
9388 | unicos*) | |
9389 | lt_prog_compiler_wl='-Wl,' | |
9390 | lt_prog_compiler_can_build_shared=no | |
9391 | ;; | |
9392 | ||
9393 | uts4*) | |
9394 | lt_prog_compiler_pic='-pic' | |
9395 | lt_prog_compiler_static='-Bstatic' | |
9396 | ;; | |
9397 | ||
9398 | *) | |
9399 | lt_prog_compiler_can_build_shared=no | |
9400 | ;; | |
9401 | esac | |
9402 | fi | |
9403 | ||
9404 | case $host_os in | |
9405 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9406 | *djgpp*) | |
9407 | lt_prog_compiler_pic= | |
9408 | ;; | |
9409 | *) | |
9410 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9411 | ;; | |
9412 | esac | |
cd9a469c | 9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
9414 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
542f9784 | 9415 | |
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | # | |
9422 | # Check to make sure the PIC flag actually works. | |
9423 | # | |
9424 | if test -n "$lt_prog_compiler_pic"; then | |
cd9a469c | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
9426 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9427 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9428 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9429 | else |
00aafda4 | 9430 | lt_cv_prog_compiler_pic_works=no |
542f9784 | 9431 | ac_outfile=conftest.$ac_objext |
9432 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9433 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9434 | # Insert the option either (1) after the last *FLAGS variable, or | |
9435 | # (2) before a word containing "conftest.", or (3) at the end. | |
9436 | # Note that $ac_compile itself does not contain backslashes and begins | |
9437 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9438 | # The option is referenced via a variable to avoid confusing sed. | |
9439 | lt_compile=`echo "$ac_compile" | $SED \ | |
9440 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9441 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9442 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9443 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9444 | (eval "$lt_compile" 2>conftest.err) |
9445 | ac_status=$? | |
9446 | cat conftest.err >&5 | |
e6408286 | 9447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9448 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9449 | # The compiler can only warn and ignore the option if not recognized | |
9450 | # So say no if there are warnings other than the usual output. | |
e6408286 | 9451 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 9452 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9453 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 9454 | lt_cv_prog_compiler_pic_works=yes |
542f9784 | 9455 | fi |
9456 | fi | |
9457 | $RM conftest* | |
9458 | ||
9459 | fi | |
cd9a469c | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9461 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
542f9784 | 9462 | |
00aafda4 | 9463 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
542f9784 | 9464 | case $lt_prog_compiler_pic in |
9465 | "" | " "*) ;; | |
9466 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9467 | esac | |
9468 | else | |
9469 | lt_prog_compiler_pic= | |
9470 | lt_prog_compiler_can_build_shared=no | |
9471 | fi | |
9472 | ||
9473 | fi | |
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | # | |
9481 | # Check to make sure the static flag actually works. | |
9482 | # | |
9483 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
cd9a469c | 9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9485 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9486 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9487 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9488 | else |
00aafda4 | 9489 | lt_cv_prog_compiler_static_works=no |
542f9784 | 9490 | save_LDFLAGS="$LDFLAGS" |
9491 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9492 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9493 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9494 | # The linker can only warn and ignore the option if not recognized | |
9495 | # So say no if there are warnings | |
9496 | if test -s conftest.err; then | |
9497 | # Append any errors to the config.log. | |
9498 | cat conftest.err 1>&5 | |
e6408286 | 9499 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 9500 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9501 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 9502 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 9503 | fi |
9504 | else | |
00aafda4 | 9505 | lt_cv_prog_compiler_static_works=yes |
542f9784 | 9506 | fi |
9507 | fi | |
00aafda4 | 9508 | $RM -r conftest* |
542f9784 | 9509 | LDFLAGS="$save_LDFLAGS" |
9510 | ||
9511 | fi | |
cd9a469c | 9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9513 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
542f9784 | 9514 | |
00aafda4 | 9515 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
542f9784 | 9516 | : |
9517 | else | |
9518 | lt_prog_compiler_static= | |
9519 | fi | |
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | ||
9526 | ||
cd9a469c | 9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9528 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9529 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9530 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9531 | else |
9532 | lt_cv_prog_compiler_c_o=no | |
9533 | $RM -r conftest 2>/dev/null | |
9534 | mkdir conftest | |
9535 | cd conftest | |
9536 | mkdir out | |
9537 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9538 | ||
9539 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9540 | # Insert the option either (1) after the last *FLAGS variable, or | |
9541 | # (2) before a word containing "conftest.", or (3) at the end. | |
9542 | # Note that $ac_compile itself does not contain backslashes and begins | |
9543 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9544 | lt_compile=`echo "$ac_compile" | $SED \ | |
9545 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9546 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9547 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9548 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9549 | (eval "$lt_compile" 2>out/conftest.err) |
9550 | ac_status=$? | |
9551 | cat out/conftest.err >&5 | |
e6408286 | 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9553 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9554 | then | |
9555 | # The compiler can only warn and ignore the option if not recognized | |
9556 | # So say no if there are warnings | |
e6408286 | 9557 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 9558 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9559 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9560 | lt_cv_prog_compiler_c_o=yes | |
9561 | fi | |
9562 | fi | |
9563 | chmod u+w . 2>&5 | |
9564 | $RM conftest* | |
9565 | # SGI C++ compiler will create directory out/ii_files/ for | |
9566 | # template instantiation | |
9567 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9568 | $RM out/* && rmdir out | |
9569 | cd .. | |
9570 | $RM -r conftest | |
9571 | $RM conftest* | |
9572 | ||
9573 | fi | |
cd9a469c | 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9575 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 9576 | |
9577 | ||
9578 | ||
9579 | ||
9580 | ||
9581 | ||
cd9a469c | 9582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9583 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9584 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9585 | $as_echo_n "(cached) " >&6 | |
542f9784 | 9586 | else |
9587 | lt_cv_prog_compiler_c_o=no | |
9588 | $RM -r conftest 2>/dev/null | |
9589 | mkdir conftest | |
9590 | cd conftest | |
9591 | mkdir out | |
9592 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9593 | ||
9594 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9595 | # Insert the option either (1) after the last *FLAGS variable, or | |
9596 | # (2) before a word containing "conftest.", or (3) at the end. | |
9597 | # Note that $ac_compile itself does not contain backslashes and begins | |
9598 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9599 | lt_compile=`echo "$ac_compile" | $SED \ | |
9600 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9601 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9602 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 9603 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 9604 | (eval "$lt_compile" 2>out/conftest.err) |
9605 | ac_status=$? | |
9606 | cat out/conftest.err >&5 | |
e6408286 | 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 9608 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9609 | then | |
9610 | # The compiler can only warn and ignore the option if not recognized | |
9611 | # So say no if there are warnings | |
e6408286 | 9612 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 9613 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9614 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9615 | lt_cv_prog_compiler_c_o=yes | |
9616 | fi | |
9617 | fi | |
9618 | chmod u+w . 2>&5 | |
9619 | $RM conftest* | |
9620 | # SGI C++ compiler will create directory out/ii_files/ for | |
9621 | # template instantiation | |
9622 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9623 | $RM out/* && rmdir out | |
9624 | cd .. | |
9625 | $RM -r conftest | |
9626 | $RM conftest* | |
9627 | ||
9628 | fi | |
cd9a469c | 9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9630 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
542f9784 | 9631 | |
9632 | ||
9633 | ||
9634 | ||
9635 | hard_links="nottested" | |
9636 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9637 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9639 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 9640 | hard_links=yes |
9641 | $RM conftest* | |
9642 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9643 | touch conftest.a | |
9644 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9645 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9647 | $as_echo "$hard_links" >&6; } | |
542f9784 | 9648 | if test "$hard_links" = no; then |
cd9a469c | 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9650 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 9651 | need_locks=warn |
9652 | fi | |
9653 | else | |
9654 | need_locks=no | |
9655 | fi | |
9656 | ||
9657 | ||
9658 | ||
9659 | ||
9660 | ||
9661 | ||
cd9a469c | 9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9663 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 9664 | |
9665 | runpath_var= | |
9666 | allow_undefined_flag= | |
9667 | always_export_symbols=no | |
9668 | archive_cmds= | |
9669 | archive_expsym_cmds= | |
9670 | compiler_needs_object=no | |
9671 | enable_shared_with_static_runtimes=no | |
9672 | export_dynamic_flag_spec= | |
9673 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9674 | hardcode_automatic=no | |
9675 | hardcode_direct=no | |
9676 | hardcode_direct_absolute=no | |
9677 | hardcode_libdir_flag_spec= | |
9678 | hardcode_libdir_flag_spec_ld= | |
9679 | hardcode_libdir_separator= | |
9680 | hardcode_minus_L=no | |
9681 | hardcode_shlibpath_var=unsupported | |
9682 | inherit_rpath=no | |
9683 | link_all_deplibs=unknown | |
9684 | module_cmds= | |
9685 | module_expsym_cmds= | |
9686 | old_archive_from_new_cmds= | |
9687 | old_archive_from_expsyms_cmds= | |
9688 | thread_safe_flag_spec= | |
9689 | whole_archive_flag_spec= | |
9690 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9691 | # included in the symbol list | |
9692 | include_expsyms= | |
9693 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9694 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9695 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9696 | # as well as any symbol that contains `d'. | |
00aafda4 | 9697 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 9698 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9699 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9700 | # the symbol is explicitly referenced. Since portable code cannot | |
9701 | # rely on this symbol name, it's probably fine to never include it in | |
9702 | # preloaded symbol tables. | |
00aafda4 | 9703 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 9704 | extract_expsyms_cmds= |
9705 | ||
9706 | case $host_os in | |
00aafda4 | 9707 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 9708 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9709 | # When not using gcc, we currently assume that we are using | |
9710 | # Microsoft Visual C++. | |
9711 | if test "$GCC" != yes; then | |
9712 | with_gnu_ld=no | |
9713 | fi | |
9714 | ;; | |
9715 | interix*) | |
9716 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9717 | with_gnu_ld=yes | |
9718 | ;; | |
9719 | openbsd*) | |
9720 | with_gnu_ld=no | |
9721 | ;; | |
9722 | esac | |
9723 | ||
9724 | ld_shlibs=yes | |
e6408286 | 9725 | |
9726 | # On some targets, GNU ld is compatible enough with the native linker | |
9727 | # that we're better off using the native interface for both. | |
9728 | lt_use_gnu_ld_interface=no | |
542f9784 | 9729 | if test "$with_gnu_ld" = yes; then |
e6408286 | 9730 | case $host_os in |
9731 | aix*) | |
9732 | # The AIX port of GNU ld has always aspired to compatibility | |
9733 | # with the native linker. However, as the warning in the GNU ld | |
9734 | # block says, versions before 2.19.5* couldn't really create working | |
9735 | # shared libraries, regardless of the interface used. | |
9736 | case `$LD -v 2>&1` in | |
9737 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9738 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9739 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9740 | *) | |
9741 | lt_use_gnu_ld_interface=yes | |
9742 | ;; | |
9743 | esac | |
9744 | ;; | |
9745 | *) | |
9746 | lt_use_gnu_ld_interface=yes | |
9747 | ;; | |
9748 | esac | |
9749 | fi | |
9750 | ||
9751 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 9752 | # If archive_cmds runs LD, not CC, wlarc should be empty |
9753 | wlarc='${wl}' | |
9754 | ||
9755 | # Set some defaults for GNU ld with shared library support. These | |
9756 | # are reset later if shared libraries are not supported. Putting them | |
9757 | # here allows them to be overridden if necessary. | |
9758 | runpath_var=LD_RUN_PATH | |
9759 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9760 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9761 | # ancient GNU ld didn't support --whole-archive et. al. | |
9762 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9763 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9764 | else | |
9765 | whole_archive_flag_spec= | |
9766 | fi | |
9767 | supports_anon_versioning=no | |
9768 | case `$LD -v 2>&1` in | |
e6408286 | 9769 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 9770 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9771 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9772 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9773 | *\ 2.11.*) ;; # other 2.11 versions | |
9774 | *) supports_anon_versioning=yes ;; | |
9775 | esac | |
9776 | ||
9777 | # See if GNU ld supports shared libraries. | |
9778 | case $host_os in | |
21e07d2f | 9779 | aix[3-9]*) |
542f9784 | 9780 | # On AIX/PPC, the GNU linker is very broken |
9781 | if test "$host_cpu" != ia64; then | |
9782 | ld_shlibs=no | |
9783 | cat <<_LT_EOF 1>&2 | |
9784 | ||
e6408286 | 9785 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 9786 | *** to be unable to reliably create shared libraries on AIX. |
9787 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 9788 | *** really care for shared libraries, you may want to install binutils |
9789 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9790 | *** You will then need to restart the configuration process. | |
542f9784 | 9791 | |
9792 | _LT_EOF | |
9793 | fi | |
9794 | ;; | |
9795 | ||
9796 | amigaos*) | |
00aafda4 | 9797 | case $host_cpu in |
9798 | powerpc) | |
9799 | # see comment about AmigaOS4 .so support | |
9800 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9801 | archive_expsym_cmds='' | |
9802 | ;; | |
9803 | m68k) | |
9804 | 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)' | |
9805 | hardcode_libdir_flag_spec='-L$libdir' | |
9806 | hardcode_minus_L=yes | |
9807 | ;; | |
9808 | esac | |
542f9784 | 9809 | ;; |
9810 | ||
9811 | beos*) | |
9812 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9813 | allow_undefined_flag=unsupported | |
9814 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9815 | # support --undefined. This deserves some investigation. FIXME | |
9816 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9817 | else | |
9818 | ld_shlibs=no | |
9819 | fi | |
9820 | ;; | |
9821 | ||
00aafda4 | 9822 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 9823 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9824 | # as there is no search path for DLLs. | |
9825 | hardcode_libdir_flag_spec='-L$libdir' | |
e6408286 | 9826 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
542f9784 | 9827 | allow_undefined_flag=unsupported |
9828 | always_export_symbols=no | |
9829 | enable_shared_with_static_runtimes=yes | |
9830 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9831 | ||
9832 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9833 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9834 | # If the export-symbols file already is a .def file (1st line | |
9835 | # is EXPORTS), use it as is; otherwise, prepend... | |
9836 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9837 | cp $export_symbols $output_objdir/$soname.def; | |
9838 | else | |
9839 | echo EXPORTS > $output_objdir/$soname.def; | |
9840 | cat $export_symbols >> $output_objdir/$soname.def; | |
9841 | fi~ | |
9842 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9843 | else | |
9844 | ld_shlibs=no | |
9845 | fi | |
9846 | ;; | |
9847 | ||
e6408286 | 9848 | haiku*) |
9849 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9850 | link_all_deplibs=yes | |
9851 | ;; | |
9852 | ||
542f9784 | 9853 | interix[3-9]*) |
9854 | hardcode_direct=no | |
9855 | hardcode_shlibpath_var=no | |
9856 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9857 | export_dynamic_flag_spec='${wl}-E' | |
9858 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9859 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9860 | # default) and relocated if they conflict, which is a slow very memory | |
9861 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9862 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9863 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9864 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9865 | 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' | |
9866 | ;; | |
9867 | ||
9af964d4 | 9868 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 9869 | tmp_diet=no |
9870 | if test "$host_os" = linux-dietlibc; then | |
9871 | case $cc_basename in | |
9872 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9873 | esac | |
9874 | fi | |
9875 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9876 | && test "$tmp_diet" = no | |
9877 | then | |
9878 | tmp_addflag= | |
00aafda4 | 9879 | tmp_sharedflag='-shared' |
542f9784 | 9880 | case $cc_basename,$host_cpu in |
9881 | pgcc*) # Portland Group C compiler | |
e6408286 | 9882 | 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 | 9883 | tmp_addflag=' $pic_flag' |
9884 | ;; | |
e6408286 | 9885 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9886 | # Portland Group f77 and f90 compilers | |
9887 | 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 | 9888 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9889 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9890 | tmp_addflag=' -i_dynamic' ;; | |
9891 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9892 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9893 | ifc* | ifort*) # Intel Fortran compiler | |
9894 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 9895 | lf95*) # Lahey Fortran 8.1 |
9896 | whole_archive_flag_spec= | |
9897 | tmp_sharedflag='--shared' ;; | |
e6408286 | 9898 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 9899 | tmp_sharedflag='-qmkshrobj' |
9900 | tmp_addflag= ;; | |
e6408286 | 9901 | nvcc*) # Cuda Compiler Driver 2.2 |
9902 | 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' | |
9903 | compiler_needs_object=yes | |
9904 | ;; | |
542f9784 | 9905 | esac |
9906 | case `$CC -V 2>&1 | sed 5q` in | |
9907 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 9908 | 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 | 9909 | compiler_needs_object=yes |
9910 | tmp_sharedflag='-G' ;; | |
9911 | *Sun\ F*) # Sun Fortran 8.3 | |
9912 | tmp_sharedflag='-G' ;; | |
542f9784 | 9913 | esac |
9914 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9915 | ||
9916 | if test "x$supports_anon_versioning" = xyes; then | |
9917 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9918 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9919 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9920 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9921 | fi | |
00aafda4 | 9922 | |
9923 | case $cc_basename in | |
e6408286 | 9924 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 9925 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9926 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9927 | hardcode_libdir_flag_spec= | |
9928 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9929 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9930 | if test "x$supports_anon_versioning" = xyes; then | |
9931 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9932 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9933 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9934 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9935 | fi | |
9936 | ;; | |
9937 | esac | |
542f9784 | 9938 | else |
9939 | ld_shlibs=no | |
9940 | fi | |
9941 | ;; | |
9942 | ||
9943 | netbsd*) | |
9944 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9945 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9946 | wlarc= | |
9947 | else | |
9948 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9949 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9950 | fi | |
9951 | ;; | |
9952 | ||
9953 | solaris*) | |
9954 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9955 | ld_shlibs=no | |
9956 | cat <<_LT_EOF 1>&2 | |
9957 | ||
9958 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9959 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9960 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9961 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9962 | *** your PATH or compiler configuration so that the native linker is | |
9963 | *** used, and then restart. | |
9964 | ||
9965 | _LT_EOF | |
9966 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9967 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9968 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9969 | else | |
9970 | ld_shlibs=no | |
9971 | fi | |
9972 | ;; | |
9973 | ||
9974 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9975 | case `$LD -v 2>&1` in | |
9976 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9977 | ld_shlibs=no | |
9978 | cat <<_LT_EOF 1>&2 | |
9979 | ||
9980 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9981 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9982 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9983 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9984 | *** your PATH or compiler configuration so that the native linker is | |
9985 | *** used, and then restart. | |
9986 | ||
9987 | _LT_EOF | |
9988 | ;; | |
9989 | *) | |
9990 | # For security reasons, it is highly recommended that you always | |
9991 | # use absolute paths for naming shared libraries, and exclude the | |
9992 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9993 | # requires that you compile everything twice, which is a pain. | |
9994 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9995 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9996 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9997 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9998 | else | |
9999 | ld_shlibs=no | |
10000 | fi | |
10001 | ;; | |
10002 | esac | |
10003 | ;; | |
10004 | ||
10005 | sunos4*) | |
10006 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10007 | wlarc= | |
10008 | hardcode_direct=yes | |
10009 | hardcode_shlibpath_var=no | |
10010 | ;; | |
10011 | ||
10012 | *) | |
10013 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10014 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10015 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10016 | else | |
10017 | ld_shlibs=no | |
10018 | fi | |
10019 | ;; | |
10020 | esac | |
10021 | ||
10022 | if test "$ld_shlibs" = no; then | |
10023 | runpath_var= | |
10024 | hardcode_libdir_flag_spec= | |
10025 | export_dynamic_flag_spec= | |
10026 | whole_archive_flag_spec= | |
10027 | fi | |
10028 | else | |
10029 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10030 | case $host_os in | |
10031 | aix3*) | |
10032 | allow_undefined_flag=unsupported | |
10033 | always_export_symbols=yes | |
10034 | 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' | |
10035 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10036 | # are no directories specified by -L. | |
10037 | hardcode_minus_L=yes | |
10038 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10039 | # Neither direct hardcoding nor static linking is supported with a | |
10040 | # broken collect2. | |
10041 | hardcode_direct=unsupported | |
10042 | fi | |
10043 | ;; | |
10044 | ||
21e07d2f | 10045 | aix[4-9]*) |
542f9784 | 10046 | if test "$host_cpu" = ia64; then |
10047 | # On IA64, the linker does run time linking by default, so we don't | |
10048 | # have to do anything special. | |
10049 | aix_use_runtimelinking=no | |
10050 | exp_sym_flag='-Bexport' | |
10051 | no_entry_flag="" | |
10052 | else | |
10053 | # If we're using GNU nm, then we don't want the "-C" option. | |
10054 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 10055 | # Also, AIX nm treats weak defined symbols like other global |
10056 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 10057 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 10058 | 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 | 10059 | else |
10060 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10061 | fi | |
10062 | aix_use_runtimelinking=no | |
10063 | ||
10064 | # Test if we are trying to use run time linking or normal | |
10065 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10066 | # need to do runtime linking. | |
21e07d2f | 10067 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 10068 | for ld_flag in $LDFLAGS; do |
10069 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10070 | aix_use_runtimelinking=yes | |
10071 | break | |
10072 | fi | |
10073 | done | |
10074 | ;; | |
10075 | esac | |
10076 | ||
10077 | exp_sym_flag='-bexport' | |
10078 | no_entry_flag='-bnoentry' | |
10079 | fi | |
10080 | ||
10081 | # When large executables or shared objects are built, AIX ld can | |
10082 | # have problems creating the table of contents. If linking a library | |
10083 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10084 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10085 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10086 | ||
10087 | archive_cmds='' | |
10088 | hardcode_direct=yes | |
10089 | hardcode_direct_absolute=yes | |
10090 | hardcode_libdir_separator=':' | |
10091 | link_all_deplibs=yes | |
10092 | file_list_spec='${wl}-f,' | |
10093 | ||
10094 | if test "$GCC" = yes; then | |
10095 | case $host_os in aix4.[012]|aix4.[012].*) | |
10096 | # We only want to do this on AIX 4.2 and lower, the check | |
10097 | # below for broken collect2 doesn't work under 4.3+ | |
10098 | collect2name=`${CC} -print-prog-name=collect2` | |
10099 | if test -f "$collect2name" && | |
10100 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10101 | then | |
10102 | # We have reworked collect2 | |
10103 | : | |
10104 | else | |
10105 | # We have old collect2 | |
10106 | hardcode_direct=unsupported | |
10107 | # It fails to find uninstalled libraries when the uninstalled | |
10108 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10109 | # to unsupported forces relinking | |
10110 | hardcode_minus_L=yes | |
10111 | hardcode_libdir_flag_spec='-L$libdir' | |
10112 | hardcode_libdir_separator= | |
10113 | fi | |
10114 | ;; | |
10115 | esac | |
10116 | shared_flag='-shared' | |
10117 | if test "$aix_use_runtimelinking" = yes; then | |
10118 | shared_flag="$shared_flag "'${wl}-G' | |
10119 | fi | |
10120 | else | |
10121 | # not using gcc | |
10122 | if test "$host_cpu" = ia64; then | |
10123 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10124 | # chokes on -Wl,-G. The following line is correct: | |
10125 | shared_flag='-G' | |
10126 | else | |
10127 | if test "$aix_use_runtimelinking" = yes; then | |
10128 | shared_flag='${wl}-G' | |
10129 | else | |
10130 | shared_flag='${wl}-bM:SRE' | |
10131 | fi | |
10132 | fi | |
10133 | fi | |
10134 | ||
00aafda4 | 10135 | export_dynamic_flag_spec='${wl}-bexpall' |
542f9784 | 10136 | # It seems that -bexpall does not export symbols beginning with |
10137 | # underscore (_), so it is better to generate a list of symbols to export. | |
10138 | always_export_symbols=yes | |
10139 | if test "$aix_use_runtimelinking" = yes; then | |
10140 | # Warning - without using the other runtime loading flags (-brtl), | |
10141 | # -berok will link without error, but may produce a broken library. | |
10142 | allow_undefined_flag='-berok' | |
10143 | # Determine the default libpath from the value encoded in an | |
10144 | # empty executable. | |
10145 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 10146 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10147 | fi |
cd9a469c | 10148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10149 | /* end confdefs.h. */ |
10150 | ||
10151 | int | |
10152 | main () | |
10153 | { | |
10154 | ||
10155 | ; | |
10156 | return 0; | |
10157 | } | |
10158 | _ACEOF | |
cd9a469c | 10159 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10160 | |
10161 | lt_aix_libpath_sed=' | |
10162 | /Import File Strings/,/^$/ { | |
10163 | /^0/ { | |
10164 | s/^0 *\(.*\)$/\1/ | |
10165 | p | |
10166 | } | |
10167 | }' | |
10168 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10169 | # Check for a 64-bit object if we didn't find anything. | |
10170 | if test -z "$aix_libpath"; then | |
10171 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10172 | fi | |
542f9784 | 10173 | fi |
cd9a469c | 10174 | rm -f core conftest.err conftest.$ac_objext \ |
10175 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10176 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10177 | ||
10178 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 10179 | 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 | 10180 | else |
10181 | if test "$host_cpu" = ia64; then | |
10182 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10183 | allow_undefined_flag="-z nodefs" | |
10184 | 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" | |
10185 | else | |
10186 | # Determine the default libpath from the value encoded in an | |
10187 | # empty executable. | |
10188 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 10189 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10190 | fi |
cd9a469c | 10191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 10192 | /* end confdefs.h. */ |
10193 | ||
10194 | int | |
10195 | main () | |
10196 | { | |
10197 | ||
10198 | ; | |
10199 | return 0; | |
10200 | } | |
10201 | _ACEOF | |
cd9a469c | 10202 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 10203 | |
10204 | lt_aix_libpath_sed=' | |
10205 | /Import File Strings/,/^$/ { | |
10206 | /^0/ { | |
10207 | s/^0 *\(.*\)$/\1/ | |
10208 | p | |
10209 | } | |
10210 | }' | |
10211 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10212 | # Check for a 64-bit object if we didn't find anything. | |
10213 | if test -z "$aix_libpath"; then | |
10214 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10215 | fi | |
542f9784 | 10216 | fi |
cd9a469c | 10217 | rm -f core conftest.err conftest.$ac_objext \ |
10218 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10219 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10220 | ||
10221 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10222 | # Warning - without using the other run time loading flags, | |
10223 | # -berok will link without error, but may produce a broken library. | |
10224 | no_undefined_flag=' ${wl}-bernotok' | |
10225 | allow_undefined_flag=' ${wl}-berok' | |
e6408286 | 10226 | if test "$with_gnu_ld" = yes; then |
10227 | # We only use this code for GNU lds that support --whole-archive. | |
10228 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10229 | else | |
10230 | # Exported symbols can be pulled into shared objects from archives | |
10231 | whole_archive_flag_spec='$convenience' | |
10232 | fi | |
542f9784 | 10233 | archive_cmds_need_lc=yes |
10234 | # This is similar to how AIX traditionally builds its shared libraries. | |
10235 | 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' | |
10236 | fi | |
10237 | fi | |
10238 | ;; | |
10239 | ||
10240 | amigaos*) | |
00aafda4 | 10241 | case $host_cpu in |
10242 | powerpc) | |
10243 | # see comment about AmigaOS4 .so support | |
10244 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10245 | archive_expsym_cmds='' | |
10246 | ;; | |
10247 | m68k) | |
10248 | 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)' | |
10249 | hardcode_libdir_flag_spec='-L$libdir' | |
10250 | hardcode_minus_L=yes | |
10251 | ;; | |
10252 | esac | |
542f9784 | 10253 | ;; |
10254 | ||
10255 | bsdi[45]*) | |
10256 | export_dynamic_flag_spec=-rdynamic | |
10257 | ;; | |
10258 | ||
00aafda4 | 10259 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 10260 | # When not using gcc, we currently assume that we are using |
10261 | # Microsoft Visual C++. | |
10262 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10263 | # no search path for DLLs. | |
10264 | hardcode_libdir_flag_spec=' ' | |
10265 | allow_undefined_flag=unsupported | |
10266 | # Tell ltmain to make .lib files, not .a files. | |
10267 | libext=lib | |
10268 | # Tell ltmain to make .dll files, not .so files. | |
10269 | shrext_cmds=".dll" | |
10270 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 10271 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 10272 | # The linker will automatically build a .lib file if we build a DLL. |
10273 | old_archive_from_new_cmds='true' | |
10274 | # FIXME: Should let the user specify the lib program. | |
10275 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10276 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10277 | enable_shared_with_static_runtimes=yes | |
10278 | ;; | |
10279 | ||
10280 | darwin* | rhapsody*) | |
542f9784 | 10281 | |
00aafda4 | 10282 | |
10283 | archive_cmds_need_lc=no | |
10284 | hardcode_direct=no | |
10285 | hardcode_automatic=yes | |
10286 | hardcode_shlibpath_var=unsupported | |
e6408286 | 10287 | if test "$lt_cv_ld_force_load" = "yes"; then |
10288 | 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\"`' | |
10289 | else | |
10290 | whole_archive_flag_spec='' | |
10291 | fi | |
00aafda4 | 10292 | link_all_deplibs=yes |
10293 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10294 | case $cc_basename in | |
10295 | ifort*) _lt_dar_can_shared=yes ;; | |
10296 | *) _lt_dar_can_shared=$GCC ;; | |
10297 | esac | |
10298 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 10299 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 10300 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10301 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10302 | 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}" | |
10303 | 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}" | |
10304 | ||
10305 | else | |
10306 | ld_shlibs=no | |
10307 | fi | |
10308 | ||
542f9784 | 10309 | ;; |
10310 | ||
10311 | dgux*) | |
10312 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10313 | hardcode_libdir_flag_spec='-L$libdir' | |
10314 | hardcode_shlibpath_var=no | |
10315 | ;; | |
10316 | ||
542f9784 | 10317 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10318 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10319 | # does not break anything, and helps significantly (at the cost of a little | |
10320 | # extra space). | |
10321 | freebsd2.2*) | |
10322 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10323 | hardcode_libdir_flag_spec='-R$libdir' | |
10324 | hardcode_direct=yes | |
10325 | hardcode_shlibpath_var=no | |
10326 | ;; | |
10327 | ||
10328 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10329 | freebsd2*) | |
10330 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10331 | hardcode_direct=yes | |
10332 | hardcode_minus_L=yes | |
10333 | hardcode_shlibpath_var=no | |
10334 | ;; | |
10335 | ||
10336 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10337 | freebsd* | dragonfly*) | |
10338 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10339 | hardcode_libdir_flag_spec='-R$libdir' | |
10340 | hardcode_direct=yes | |
10341 | hardcode_shlibpath_var=no | |
10342 | ;; | |
10343 | ||
10344 | hpux9*) | |
10345 | if test "$GCC" = yes; then | |
10346 | 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' | |
10347 | else | |
10348 | 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' | |
10349 | fi | |
10350 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10351 | hardcode_libdir_separator=: | |
10352 | hardcode_direct=yes | |
10353 | ||
10354 | # hardcode_minus_L: Not really in the search PATH, | |
10355 | # but as the default location of the library. | |
10356 | hardcode_minus_L=yes | |
10357 | export_dynamic_flag_spec='${wl}-E' | |
10358 | ;; | |
10359 | ||
10360 | hpux10*) | |
e6408286 | 10361 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10362 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10363 | else | |
10364 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10365 | fi | |
10366 | if test "$with_gnu_ld" = no; then | |
10367 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10368 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10369 | hardcode_libdir_separator=: | |
10370 | hardcode_direct=yes | |
10371 | hardcode_direct_absolute=yes | |
10372 | export_dynamic_flag_spec='${wl}-E' | |
10373 | # hardcode_minus_L: Not really in the search PATH, | |
10374 | # but as the default location of the library. | |
10375 | hardcode_minus_L=yes | |
10376 | fi | |
10377 | ;; | |
10378 | ||
10379 | hpux11*) | |
e6408286 | 10380 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 10381 | case $host_cpu in |
10382 | hppa*64*) | |
10383 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10384 | ;; | |
10385 | ia64*) | |
00aafda4 | 10386 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 10387 | ;; |
10388 | *) | |
10389 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10390 | ;; | |
10391 | esac | |
10392 | else | |
10393 | case $host_cpu in | |
10394 | hppa*64*) | |
10395 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10396 | ;; | |
10397 | ia64*) | |
10398 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10399 | ;; | |
10400 | *) | |
e6408286 | 10401 | |
10402 | # Older versions of the 11.00 compiler do not understand -b yet | |
10403 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10405 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10406 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10407 | $as_echo_n "(cached) " >&6 | |
10408 | else | |
10409 | lt_cv_prog_compiler__b=no | |
10410 | save_LDFLAGS="$LDFLAGS" | |
10411 | LDFLAGS="$LDFLAGS -b" | |
10412 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10413 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10414 | # The linker can only warn and ignore the option if not recognized | |
10415 | # So say no if there are warnings | |
10416 | if test -s conftest.err; then | |
10417 | # Append any errors to the config.log. | |
10418 | cat conftest.err 1>&5 | |
10419 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10420 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10421 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10422 | lt_cv_prog_compiler__b=yes | |
10423 | fi | |
10424 | else | |
10425 | lt_cv_prog_compiler__b=yes | |
10426 | fi | |
10427 | fi | |
10428 | $RM -r conftest* | |
10429 | LDFLAGS="$save_LDFLAGS" | |
10430 | ||
10431 | fi | |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10433 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10434 | ||
10435 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10436 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10437 | else | |
10438 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10439 | fi | |
10440 | ||
542f9784 | 10441 | ;; |
10442 | esac | |
10443 | fi | |
10444 | if test "$with_gnu_ld" = no; then | |
10445 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10446 | hardcode_libdir_separator=: | |
10447 | ||
10448 | case $host_cpu in | |
10449 | hppa*64*|ia64*) | |
10450 | hardcode_direct=no | |
10451 | hardcode_shlibpath_var=no | |
10452 | ;; | |
10453 | *) | |
10454 | hardcode_direct=yes | |
10455 | hardcode_direct_absolute=yes | |
10456 | export_dynamic_flag_spec='${wl}-E' | |
10457 | ||
10458 | # hardcode_minus_L: Not really in the search PATH, | |
10459 | # but as the default location of the library. | |
10460 | hardcode_minus_L=yes | |
10461 | ;; | |
10462 | esac | |
10463 | fi | |
10464 | ;; | |
10465 | ||
10466 | irix5* | irix6* | nonstopux*) | |
10467 | if test "$GCC" = yes; then | |
e6408286 | 10468 | 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 | 10469 | # Try to use the -exported_symbol ld option, if it does not |
10470 | # work, assume that -exports_file does not work either and | |
10471 | # implicitly export all symbols. | |
10472 | save_LDFLAGS="$LDFLAGS" | |
10473 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10474 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 10475 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 10476 | fi |
cd9a469c | 10477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10478 | /* end confdefs.h. */ | |
542f9784 | 10479 | int foo(void) {} |
10480 | _ACEOF | |
cd9a469c | 10481 | if ac_fn_c_try_link "$LINENO"; then : |
e6408286 | 10482 | 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 | 10483 | |
542f9784 | 10484 | fi |
cd9a469c | 10485 | rm -f core conftest.err conftest.$ac_objext \ |
10486 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 10487 | LDFLAGS="$save_LDFLAGS" |
10488 | else | |
e6408286 | 10489 | 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' |
10490 | 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 | 10491 | fi |
10492 | archive_cmds_need_lc='no' | |
10493 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10494 | hardcode_libdir_separator=: | |
10495 | inherit_rpath=yes | |
10496 | link_all_deplibs=yes | |
10497 | ;; | |
10498 | ||
10499 | netbsd*) | |
10500 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10501 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10502 | else | |
10503 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10504 | fi | |
10505 | hardcode_libdir_flag_spec='-R$libdir' | |
10506 | hardcode_direct=yes | |
10507 | hardcode_shlibpath_var=no | |
10508 | ;; | |
10509 | ||
10510 | newsos6) | |
10511 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10512 | hardcode_direct=yes | |
10513 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10514 | hardcode_libdir_separator=: | |
10515 | hardcode_shlibpath_var=no | |
10516 | ;; | |
10517 | ||
10518 | *nto* | *qnx*) | |
10519 | ;; | |
10520 | ||
10521 | openbsd*) | |
00aafda4 | 10522 | if test -f /usr/libexec/ld.so; then |
10523 | hardcode_direct=yes | |
10524 | hardcode_shlibpath_var=no | |
10525 | hardcode_direct_absolute=yes | |
10526 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 10527 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 10528 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 10529 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
00aafda4 | 10530 | export_dynamic_flag_spec='${wl}-E' |
10531 | else | |
10532 | case $host_os in | |
10533 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10534 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10535 | hardcode_libdir_flag_spec='-R$libdir' | |
10536 | ;; | |
10537 | *) | |
10538 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10539 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10540 | ;; | |
10541 | esac | |
10542 | fi | |
10543 | else | |
10544 | ld_shlibs=no | |
542f9784 | 10545 | fi |
10546 | ;; | |
10547 | ||
10548 | os2*) | |
10549 | hardcode_libdir_flag_spec='-L$libdir' | |
10550 | hardcode_minus_L=yes | |
10551 | allow_undefined_flag=unsupported | |
e6408286 | 10552 | 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 | 10553 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10554 | ;; | |
10555 | ||
10556 | osf3*) | |
10557 | if test "$GCC" = yes; then | |
10558 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 10559 | 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 | 10560 | else |
10561 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 10562 | 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 | 10563 | fi |
10564 | archive_cmds_need_lc='no' | |
10565 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10566 | hardcode_libdir_separator=: | |
10567 | ;; | |
10568 | ||
10569 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10570 | if test "$GCC" = yes; then | |
10571 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 10572 | 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 | 10573 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10574 | else | |
10575 | allow_undefined_flag=' -expect_unresolved \*' | |
e6408286 | 10576 | 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 | 10577 | 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 | 10578 | $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 | 10579 | |
10580 | # Both c and cxx compiler support -rpath directly | |
10581 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10582 | fi | |
10583 | archive_cmds_need_lc='no' | |
10584 | hardcode_libdir_separator=: | |
10585 | ;; | |
10586 | ||
10587 | solaris*) | |
10588 | no_undefined_flag=' -z defs' | |
10589 | if test "$GCC" = yes; then | |
10590 | wlarc='${wl}' | |
10591 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10592 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10593 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10594 | else | |
10595 | case `$CC -V 2>&1` in | |
10596 | *"Compilers 5.0"*) | |
10597 | wlarc='' | |
10598 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10599 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10600 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10601 | ;; | |
10602 | *) | |
10603 | wlarc='${wl}' | |
10604 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10605 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10606 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10607 | ;; | |
10608 | esac | |
10609 | fi | |
10610 | hardcode_libdir_flag_spec='-R$libdir' | |
10611 | hardcode_shlibpath_var=no | |
10612 | case $host_os in | |
10613 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10614 | *) | |
10615 | # The compiler driver will combine and reorder linker options, | |
10616 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10617 | # but is careful enough not to reorder. | |
10618 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10619 | if test "$GCC" = yes; then | |
10620 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10621 | else | |
10622 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10623 | fi | |
10624 | ;; | |
10625 | esac | |
10626 | link_all_deplibs=yes | |
10627 | ;; | |
10628 | ||
10629 | sunos4*) | |
10630 | if test "x$host_vendor" = xsequent; then | |
10631 | # Use $CC to link under sequent, because it throws in some extra .o | |
10632 | # files that make .init and .fini sections work. | |
10633 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10634 | else | |
10635 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10636 | fi | |
10637 | hardcode_libdir_flag_spec='-L$libdir' | |
10638 | hardcode_direct=yes | |
10639 | hardcode_minus_L=yes | |
10640 | hardcode_shlibpath_var=no | |
10641 | ;; | |
10642 | ||
10643 | sysv4) | |
10644 | case $host_vendor in | |
10645 | sni) | |
10646 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10647 | hardcode_direct=yes # is this really true??? | |
10648 | ;; | |
10649 | siemens) | |
10650 | ## LD is ld it makes a PLAMLIB | |
10651 | ## CC just makes a GrossModule. | |
10652 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10653 | reload_cmds='$CC -r -o $output$reload_objs' | |
10654 | hardcode_direct=no | |
10655 | ;; | |
10656 | motorola) | |
10657 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10658 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10659 | ;; | |
10660 | esac | |
10661 | runpath_var='LD_RUN_PATH' | |
10662 | hardcode_shlibpath_var=no | |
10663 | ;; | |
10664 | ||
10665 | sysv4.3*) | |
10666 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10667 | hardcode_shlibpath_var=no | |
10668 | export_dynamic_flag_spec='-Bexport' | |
10669 | ;; | |
10670 | ||
10671 | sysv4*MP*) | |
10672 | if test -d /usr/nec; then | |
10673 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10674 | hardcode_shlibpath_var=no | |
10675 | runpath_var=LD_RUN_PATH | |
10676 | hardcode_runpath_var=yes | |
10677 | ld_shlibs=yes | |
10678 | fi | |
10679 | ;; | |
10680 | ||
10681 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10682 | no_undefined_flag='${wl}-z,text' | |
10683 | archive_cmds_need_lc=no | |
10684 | hardcode_shlibpath_var=no | |
10685 | runpath_var='LD_RUN_PATH' | |
10686 | ||
10687 | if test "$GCC" = yes; then | |
10688 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10689 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10690 | else | |
10691 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10692 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10693 | fi | |
10694 | ;; | |
10695 | ||
10696 | sysv5* | sco3.2v5* | sco5v6*) | |
10697 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10698 | # link with -lc, and that would cause any symbols used from libc to | |
10699 | # always be unresolved, which means just about no library would | |
10700 | # ever link correctly. If we're not using GNU ld we use -z text | |
10701 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10702 | # as -z defs. | |
10703 | no_undefined_flag='${wl}-z,text' | |
10704 | allow_undefined_flag='${wl}-z,nodefs' | |
10705 | archive_cmds_need_lc=no | |
10706 | hardcode_shlibpath_var=no | |
10707 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10708 | hardcode_libdir_separator=':' | |
10709 | link_all_deplibs=yes | |
10710 | export_dynamic_flag_spec='${wl}-Bexport' | |
10711 | runpath_var='LD_RUN_PATH' | |
10712 | ||
10713 | if test "$GCC" = yes; then | |
10714 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10715 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10716 | else | |
10717 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10718 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10719 | fi | |
10720 | ;; | |
10721 | ||
10722 | uts4*) | |
10723 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10724 | hardcode_libdir_flag_spec='-L$libdir' | |
10725 | hardcode_shlibpath_var=no | |
10726 | ;; | |
10727 | ||
10728 | *) | |
10729 | ld_shlibs=no | |
10730 | ;; | |
10731 | esac | |
10732 | ||
10733 | if test x$host_vendor = xsni; then | |
10734 | case $host in | |
10735 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10736 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10737 | ;; | |
10738 | esac | |
10739 | fi | |
10740 | fi | |
10741 | ||
cd9a469c | 10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10743 | $as_echo "$ld_shlibs" >&6; } | |
542f9784 | 10744 | test "$ld_shlibs" = no && can_build_shared=no |
10745 | ||
10746 | with_gnu_ld=$with_gnu_ld | |
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | # | |
10763 | # Do we need to explicitly link libc? | |
10764 | # | |
10765 | case "x$archive_cmds_need_lc" in | |
10766 | x|xyes) | |
10767 | # Assume -lc should be added | |
10768 | archive_cmds_need_lc=yes | |
10769 | ||
10770 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10771 | case $archive_cmds in | |
10772 | *'~'*) | |
10773 | # FIXME: we may have to deal with multi-command sequences. | |
10774 | ;; | |
10775 | '$CC '*) | |
10776 | # Test whether the compiler implicitly links with -lc since on some | |
10777 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10778 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 10779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10780 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10781 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10782 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 10783 | else |
10784 | $RM conftest* | |
10785 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 10786 | |
cd9a469c | 10787 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 10788 | (eval $ac_compile) 2>&5 |
10789 | ac_status=$? | |
cd9a469c | 10790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10791 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 10792 | soname=conftest |
10793 | lib=conftest | |
10794 | libobjs=conftest.$ac_objext | |
10795 | deplibs= | |
10796 | wl=$lt_prog_compiler_wl | |
10797 | pic_flag=$lt_prog_compiler_pic | |
10798 | compiler_flags=-v | |
10799 | linker_flags=-v | |
10800 | verstring= | |
10801 | output_objdir=. | |
10802 | libname=conftest | |
10803 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10804 | allow_undefined_flag= | |
cd9a469c | 10805 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 10806 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10807 | ac_status=$? | |
cd9a469c | 10808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10809 | test $ac_status = 0; } | |
9e6fd619 | 10810 | then |
10811 | lt_cv_archive_cmds_need_lc=no | |
10812 | else | |
10813 | lt_cv_archive_cmds_need_lc=yes | |
10814 | fi | |
10815 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10816 | else | |
10817 | cat conftest.err 1>&5 | |
10818 | fi | |
10819 | $RM conftest* | |
10820 | ||
10821 | fi | |
cd9a469c | 10822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10823 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9e6fd619 | 10824 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
542f9784 | 10825 | ;; |
10826 | esac | |
10827 | fi | |
10828 | ;; | |
10829 | esac | |
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | ||
10951 | ||
10952 | ||
10953 | ||
10954 | ||
10955 | ||
10956 | ||
10957 | ||
10958 | ||
10959 | ||
10960 | ||
10961 | ||
10962 | ||
10963 | ||
10964 | ||
10965 | ||
10966 | ||
10967 | ||
10968 | ||
10969 | ||
10970 | ||
10971 | ||
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
cd9a469c | 10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10988 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 10989 | |
10990 | if test "$GCC" = yes; then | |
542f9784 | 10991 | case $host_os in |
10992 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10993 | *) lt_awk_arg="/^libraries:/" ;; | |
10994 | esac | |
e6408286 | 10995 | case $host_os in |
10996 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10997 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10998 | esac | |
10999 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11000 | case $lt_search_path_spec in | |
11001 | *\;*) | |
542f9784 | 11002 | # if the path contains ";" then we assume it to be the separator |
11003 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11004 | # assumed that no part of a normal pathname contains ";" but that should | |
11005 | # okay in the real world where ";" in dirpaths is itself problematic. | |
e6408286 | 11006 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
11007 | ;; | |
11008 | *) | |
11009 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11010 | ;; | |
11011 | esac | |
542f9784 | 11012 | # Ok, now we have the path, separated by spaces, we can step through it |
11013 | # and add multilib dir if necessary. | |
11014 | lt_tmp_lt_search_path_spec= | |
11015 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11016 | for lt_sys_path in $lt_search_path_spec; do | |
11017 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11018 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11019 | else | |
11020 | test -d "$lt_sys_path" && \ | |
11021 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11022 | fi | |
11023 | done | |
e6408286 | 11024 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
542f9784 | 11025 | BEGIN {RS=" "; FS="/|\n";} { |
11026 | lt_foo=""; | |
11027 | lt_count=0; | |
11028 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11029 | if ($lt_i != "" && $lt_i != ".") { | |
11030 | if ($lt_i == "..") { | |
11031 | lt_count++; | |
11032 | } else { | |
11033 | if (lt_count == 0) { | |
11034 | lt_foo="/" $lt_i lt_foo; | |
11035 | } else { | |
11036 | lt_count--; | |
11037 | } | |
11038 | } | |
11039 | } | |
11040 | } | |
11041 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11042 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11043 | }'` | |
e6408286 | 11044 | # AWK program above erroneously prepends '/' to C:/dos/paths |
11045 | # for these hosts. | |
11046 | case $host_os in | |
11047 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11048 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11049 | esac | |
11050 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
542f9784 | 11051 | else |
11052 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11053 | fi | |
11054 | library_names_spec= | |
11055 | libname_spec='lib$name' | |
11056 | soname_spec= | |
11057 | shrext_cmds=".so" | |
11058 | postinstall_cmds= | |
11059 | postuninstall_cmds= | |
11060 | finish_cmds= | |
11061 | finish_eval= | |
11062 | shlibpath_var= | |
11063 | shlibpath_overrides_runpath=unknown | |
11064 | version_type=none | |
11065 | dynamic_linker="$host_os ld.so" | |
11066 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11067 | need_lib_prefix=unknown | |
11068 | hardcode_into_libs=no | |
11069 | ||
11070 | # when you set need_version to no, make sure it does not cause -set_version | |
11071 | # flags to be left without arguments | |
11072 | need_version=unknown | |
11073 | ||
11074 | case $host_os in | |
11075 | aix3*) | |
11076 | version_type=linux | |
11077 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11078 | shlibpath_var=LIBPATH | |
11079 | ||
11080 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11081 | soname_spec='${libname}${release}${shared_ext}$major' | |
11082 | ;; | |
11083 | ||
21e07d2f | 11084 | aix[4-9]*) |
542f9784 | 11085 | version_type=linux |
11086 | need_lib_prefix=no | |
11087 | need_version=no | |
11088 | hardcode_into_libs=yes | |
11089 | if test "$host_cpu" = ia64; then | |
11090 | # AIX 5 supports IA64 | |
11091 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11092 | shlibpath_var=LD_LIBRARY_PATH | |
11093 | else | |
11094 | # With GCC up to 2.95.x, collect2 would create an import file | |
11095 | # for dependence libraries. The import file would start with | |
11096 | # the line `#! .'. This would cause the generated library to | |
11097 | # depend on `.', always an invalid library. This was fixed in | |
11098 | # development snapshots of GCC prior to 3.0. | |
11099 | case $host_os in | |
11100 | aix4 | aix4.[01] | aix4.[01].*) | |
11101 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11102 | echo ' yes ' | |
11103 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11104 | : | |
11105 | else | |
11106 | can_build_shared=no | |
11107 | fi | |
11108 | ;; | |
11109 | esac | |
11110 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11111 | # soname into executable. Probably we can add versioning support to | |
11112 | # collect2, so additional links can be useful in future. | |
11113 | if test "$aix_use_runtimelinking" = yes; then | |
11114 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11115 | # instead of lib<name>.a to let people know that these are not | |
11116 | # typical AIX shared libraries. | |
11117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11118 | else | |
11119 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11120 | # and later when we are not doing run time linking. | |
11121 | library_names_spec='${libname}${release}.a $libname.a' | |
11122 | soname_spec='${libname}${release}${shared_ext}$major' | |
11123 | fi | |
11124 | shlibpath_var=LIBPATH | |
11125 | fi | |
11126 | ;; | |
11127 | ||
11128 | amigaos*) | |
00aafda4 | 11129 | case $host_cpu in |
11130 | powerpc) | |
11131 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11132 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11134 | ;; | |
11135 | m68k) | |
542f9784 | 11136 | library_names_spec='$libname.ixlibrary $libname.a' |
11137 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 11138 | 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 | 11139 | ;; |
11140 | esac | |
542f9784 | 11141 | ;; |
11142 | ||
11143 | beos*) | |
11144 | library_names_spec='${libname}${shared_ext}' | |
11145 | dynamic_linker="$host_os ld.so" | |
11146 | shlibpath_var=LIBRARY_PATH | |
11147 | ;; | |
11148 | ||
11149 | bsdi[45]*) | |
11150 | version_type=linux | |
11151 | need_version=no | |
11152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11153 | soname_spec='${libname}${release}${shared_ext}$major' | |
11154 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11155 | shlibpath_var=LD_LIBRARY_PATH | |
11156 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11157 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11158 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11159 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11160 | # libtool to hard-code these into programs | |
11161 | ;; | |
11162 | ||
00aafda4 | 11163 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 11164 | version_type=windows |
11165 | shrext_cmds=".dll" | |
11166 | need_version=no | |
11167 | need_lib_prefix=no | |
11168 | ||
00aafda4 | 11169 | case $GCC,$host_os in |
11170 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 11171 | library_names_spec='$libname.dll.a' |
11172 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11173 | postinstall_cmds='base_file=`basename \${file}`~ | |
11174 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11175 | dldir=$destdir/`dirname \$dlpath`~ | |
11176 | test -d \$dldir || mkdir -p \$dldir~ | |
11177 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11178 | chmod a+x \$dldir/$dlname~ | |
11179 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11180 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11181 | fi' | |
11182 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11183 | dlpath=$dir/\$dldll~ | |
11184 | $RM \$dlpath' | |
11185 | shlibpath_overrides_runpath=yes | |
11186 | ||
11187 | case $host_os in | |
11188 | cygwin*) | |
11189 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11190 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 11191 | |
11192 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
542f9784 | 11193 | ;; |
00aafda4 | 11194 | mingw* | cegcc*) |
542f9784 | 11195 | # MinGW DLLs use traditional 'lib' prefix |
11196 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 11197 | ;; |
11198 | pw32*) | |
11199 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11200 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11201 | ;; | |
11202 | esac | |
11203 | ;; | |
11204 | ||
11205 | *) | |
11206 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11207 | ;; | |
11208 | esac | |
11209 | dynamic_linker='Win32 ld.exe' | |
11210 | # FIXME: first we should search . and the directory the executable is in | |
11211 | shlibpath_var=PATH | |
11212 | ;; | |
11213 | ||
11214 | darwin* | rhapsody*) | |
11215 | dynamic_linker="$host_os dyld" | |
11216 | version_type=darwin | |
11217 | need_lib_prefix=no | |
11218 | need_version=no | |
11219 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11220 | soname_spec='${libname}${release}${major}$shared_ext' | |
11221 | shlibpath_overrides_runpath=yes | |
11222 | shlibpath_var=DYLD_LIBRARY_PATH | |
11223 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11224 | ||
11225 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11226 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11227 | ;; | |
11228 | ||
11229 | dgux*) | |
11230 | version_type=linux | |
11231 | need_lib_prefix=no | |
11232 | need_version=no | |
11233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11234 | soname_spec='${libname}${release}${shared_ext}$major' | |
11235 | shlibpath_var=LD_LIBRARY_PATH | |
11236 | ;; | |
11237 | ||
542f9784 | 11238 | freebsd* | dragonfly*) |
11239 | # DragonFly does not have aout. When/if they implement a new | |
11240 | # versioning mechanism, adjust this. | |
11241 | if test -x /usr/bin/objformat; then | |
11242 | objformat=`/usr/bin/objformat` | |
11243 | else | |
11244 | case $host_os in | |
11245 | freebsd[123]*) objformat=aout ;; | |
11246 | *) objformat=elf ;; | |
11247 | esac | |
11248 | fi | |
11249 | version_type=freebsd-$objformat | |
11250 | case $version_type in | |
11251 | freebsd-elf*) | |
11252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11253 | need_version=no | |
11254 | need_lib_prefix=no | |
11255 | ;; | |
11256 | freebsd-*) | |
11257 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11258 | need_version=yes | |
11259 | ;; | |
11260 | esac | |
11261 | shlibpath_var=LD_LIBRARY_PATH | |
11262 | case $host_os in | |
11263 | freebsd2*) | |
11264 | shlibpath_overrides_runpath=yes | |
11265 | ;; | |
11266 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11267 | shlibpath_overrides_runpath=yes | |
11268 | hardcode_into_libs=yes | |
11269 | ;; | |
11270 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11271 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11272 | shlibpath_overrides_runpath=no | |
11273 | hardcode_into_libs=yes | |
11274 | ;; | |
11275 | *) # from 4.6 on, and DragonFly | |
11276 | shlibpath_overrides_runpath=yes | |
11277 | hardcode_into_libs=yes | |
11278 | ;; | |
11279 | esac | |
11280 | ;; | |
11281 | ||
11282 | gnu*) | |
11283 | version_type=linux | |
11284 | need_lib_prefix=no | |
11285 | need_version=no | |
11286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11287 | soname_spec='${libname}${release}${shared_ext}$major' | |
11288 | shlibpath_var=LD_LIBRARY_PATH | |
11289 | hardcode_into_libs=yes | |
11290 | ;; | |
11291 | ||
e6408286 | 11292 | haiku*) |
11293 | version_type=linux | |
11294 | need_lib_prefix=no | |
11295 | need_version=no | |
11296 | dynamic_linker="$host_os runtime_loader" | |
11297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11298 | soname_spec='${libname}${release}${shared_ext}$major' | |
11299 | shlibpath_var=LIBRARY_PATH | |
11300 | shlibpath_overrides_runpath=yes | |
11301 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11302 | hardcode_into_libs=yes | |
11303 | ;; | |
11304 | ||
542f9784 | 11305 | hpux9* | hpux10* | hpux11*) |
11306 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11307 | # link against other versions. | |
11308 | version_type=sunos | |
11309 | need_lib_prefix=no | |
11310 | need_version=no | |
11311 | case $host_cpu in | |
11312 | ia64*) | |
11313 | shrext_cmds='.so' | |
11314 | hardcode_into_libs=yes | |
11315 | dynamic_linker="$host_os dld.so" | |
11316 | shlibpath_var=LD_LIBRARY_PATH | |
11317 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11319 | soname_spec='${libname}${release}${shared_ext}$major' | |
11320 | if test "X$HPUX_IA64_MODE" = X32; then | |
11321 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11322 | else | |
11323 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11324 | fi | |
11325 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11326 | ;; | |
11327 | hppa*64*) | |
11328 | shrext_cmds='.sl' | |
11329 | hardcode_into_libs=yes | |
11330 | dynamic_linker="$host_os dld.sl" | |
11331 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11332 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11334 | soname_spec='${libname}${release}${shared_ext}$major' | |
11335 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11336 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11337 | ;; | |
11338 | *) | |
11339 | shrext_cmds='.sl' | |
11340 | dynamic_linker="$host_os dld.sl" | |
11341 | shlibpath_var=SHLIB_PATH | |
11342 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11344 | soname_spec='${libname}${release}${shared_ext}$major' | |
11345 | ;; | |
11346 | esac | |
e6408286 | 11347 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 11348 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 11349 | # or fails outright, so override atomically: |
11350 | install_override_mode=555 | |
542f9784 | 11351 | ;; |
11352 | ||
11353 | interix[3-9]*) | |
11354 | version_type=linux | |
11355 | need_lib_prefix=no | |
11356 | need_version=no | |
11357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11358 | soname_spec='${libname}${release}${shared_ext}$major' | |
11359 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11360 | shlibpath_var=LD_LIBRARY_PATH | |
11361 | shlibpath_overrides_runpath=no | |
11362 | hardcode_into_libs=yes | |
11363 | ;; | |
11364 | ||
11365 | irix5* | irix6* | nonstopux*) | |
11366 | case $host_os in | |
11367 | nonstopux*) version_type=nonstopux ;; | |
11368 | *) | |
11369 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11370 | version_type=linux | |
11371 | else | |
11372 | version_type=irix | |
11373 | fi ;; | |
11374 | esac | |
11375 | need_lib_prefix=no | |
11376 | need_version=no | |
11377 | soname_spec='${libname}${release}${shared_ext}$major' | |
11378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11379 | case $host_os in | |
11380 | irix5* | nonstopux*) | |
11381 | libsuff= shlibsuff= | |
11382 | ;; | |
11383 | *) | |
11384 | case $LD in # libtool.m4 will add one of these switches to LD | |
11385 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11386 | libsuff= shlibsuff= libmagic=32-bit;; | |
11387 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11388 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11389 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11390 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11391 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11392 | esac | |
11393 | ;; | |
11394 | esac | |
11395 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11396 | shlibpath_overrides_runpath=no | |
11397 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11398 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11399 | hardcode_into_libs=yes | |
11400 | ;; | |
11401 | ||
11402 | # No shared lib support for Linux oldld, aout, or coff. | |
11403 | linux*oldld* | linux*aout* | linux*coff*) | |
11404 | dynamic_linker=no | |
11405 | ;; | |
11406 | ||
11407 | # This must be Linux ELF. | |
9af964d4 | 11408 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 11409 | version_type=linux |
11410 | need_lib_prefix=no | |
11411 | need_version=no | |
11412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11413 | soname_spec='${libname}${release}${shared_ext}$major' | |
11414 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11415 | shlibpath_var=LD_LIBRARY_PATH | |
11416 | shlibpath_overrides_runpath=no | |
9e6fd619 | 11417 | |
542f9784 | 11418 | # Some binutils ld are patched to set DT_RUNPATH |
cd9a469c | 11419 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
11420 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 11421 | else |
11422 | lt_cv_shlibpath_overrides_runpath=no | |
11423 | save_LDFLAGS=$LDFLAGS | |
11424 | save_libdir=$libdir | |
11425 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11426 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11427 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 11428 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11429 | fi |
cd9a469c | 11430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11431 | /* end confdefs.h. */ |
11432 | ||
11433 | int | |
11434 | main () | |
11435 | { | |
11436 | ||
11437 | ; | |
11438 | return 0; | |
11439 | } | |
11440 | _ACEOF | |
cd9a469c | 11441 | if ac_fn_c_try_link "$LINENO"; then : |
11442 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 11443 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 11444 | fi |
542f9784 | 11445 | fi |
cd9a469c | 11446 | rm -f core conftest.err conftest.$ac_objext \ |
11447 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 11448 | LDFLAGS=$save_LDFLAGS |
11449 | libdir=$save_libdir | |
11450 | ||
11451 | fi | |
11452 | ||
11453 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 11454 | |
11455 | # This implies no fast_install, which is unacceptable. | |
11456 | # Some rework will be needed to allow for fast_install | |
11457 | # before this can be enabled. | |
11458 | hardcode_into_libs=yes | |
11459 | ||
11460 | # Append ld.so.conf contents to the search path | |
11461 | if test -f /etc/ld.so.conf; then | |
e6408286 | 11462 | 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 | 11463 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11464 | fi | |
11465 | ||
11466 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11467 | # powerpc, because MkLinux only supported shared libraries with the | |
11468 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11469 | # most powerpc-linux boxes support dynamic linking these days and | |
11470 | # people can always --disable-shared, the test was removed, and we | |
11471 | # assume the GNU/Linux dynamic linker is in use. | |
11472 | dynamic_linker='GNU/Linux ld.so' | |
11473 | ;; | |
11474 | ||
11475 | netbsd*) | |
11476 | version_type=sunos | |
11477 | need_lib_prefix=no | |
11478 | need_version=no | |
11479 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11481 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11482 | dynamic_linker='NetBSD (a.out) ld.so' | |
11483 | else | |
11484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11485 | soname_spec='${libname}${release}${shared_ext}$major' | |
11486 | dynamic_linker='NetBSD ld.elf_so' | |
11487 | fi | |
11488 | shlibpath_var=LD_LIBRARY_PATH | |
11489 | shlibpath_overrides_runpath=yes | |
11490 | hardcode_into_libs=yes | |
11491 | ;; | |
11492 | ||
11493 | newsos6) | |
11494 | version_type=linux | |
11495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11496 | shlibpath_var=LD_LIBRARY_PATH | |
11497 | shlibpath_overrides_runpath=yes | |
11498 | ;; | |
11499 | ||
11500 | *nto* | *qnx*) | |
11501 | version_type=qnx | |
11502 | need_lib_prefix=no | |
11503 | need_version=no | |
11504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11505 | soname_spec='${libname}${release}${shared_ext}$major' | |
11506 | shlibpath_var=LD_LIBRARY_PATH | |
11507 | shlibpath_overrides_runpath=no | |
11508 | hardcode_into_libs=yes | |
11509 | dynamic_linker='ldqnx.so' | |
11510 | ;; | |
11511 | ||
11512 | openbsd*) | |
11513 | version_type=sunos | |
11514 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11515 | need_lib_prefix=no | |
11516 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11517 | case $host_os in | |
11518 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11519 | *) need_version=no ;; | |
11520 | esac | |
11521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11522 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11523 | shlibpath_var=LD_LIBRARY_PATH | |
11524 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11525 | case $host_os in | |
11526 | openbsd2.[89] | openbsd2.[89].*) | |
11527 | shlibpath_overrides_runpath=no | |
11528 | ;; | |
11529 | *) | |
11530 | shlibpath_overrides_runpath=yes | |
11531 | ;; | |
11532 | esac | |
11533 | else | |
11534 | shlibpath_overrides_runpath=yes | |
11535 | fi | |
11536 | ;; | |
11537 | ||
11538 | os2*) | |
11539 | libname_spec='$name' | |
11540 | shrext_cmds=".dll" | |
11541 | need_lib_prefix=no | |
11542 | library_names_spec='$libname${shared_ext} $libname.a' | |
11543 | dynamic_linker='OS/2 ld.exe' | |
11544 | shlibpath_var=LIBPATH | |
11545 | ;; | |
11546 | ||
11547 | osf3* | osf4* | osf5*) | |
11548 | version_type=osf | |
11549 | need_lib_prefix=no | |
11550 | need_version=no | |
11551 | soname_spec='${libname}${release}${shared_ext}$major' | |
11552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11553 | shlibpath_var=LD_LIBRARY_PATH | |
11554 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11555 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11556 | ;; | |
11557 | ||
11558 | rdos*) | |
11559 | dynamic_linker=no | |
11560 | ;; | |
11561 | ||
11562 | solaris*) | |
11563 | version_type=linux | |
11564 | need_lib_prefix=no | |
11565 | need_version=no | |
11566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11567 | soname_spec='${libname}${release}${shared_ext}$major' | |
11568 | shlibpath_var=LD_LIBRARY_PATH | |
11569 | shlibpath_overrides_runpath=yes | |
11570 | hardcode_into_libs=yes | |
11571 | # ldd complains unless libraries are executable | |
11572 | postinstall_cmds='chmod +x $lib' | |
11573 | ;; | |
11574 | ||
11575 | sunos4*) | |
11576 | version_type=sunos | |
11577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11578 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11579 | shlibpath_var=LD_LIBRARY_PATH | |
11580 | shlibpath_overrides_runpath=yes | |
11581 | if test "$with_gnu_ld" = yes; then | |
11582 | need_lib_prefix=no | |
11583 | fi | |
11584 | need_version=yes | |
11585 | ;; | |
11586 | ||
11587 | sysv4 | sysv4.3*) | |
11588 | version_type=linux | |
11589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11590 | soname_spec='${libname}${release}${shared_ext}$major' | |
11591 | shlibpath_var=LD_LIBRARY_PATH | |
11592 | case $host_vendor in | |
11593 | sni) | |
11594 | shlibpath_overrides_runpath=no | |
11595 | need_lib_prefix=no | |
11596 | runpath_var=LD_RUN_PATH | |
11597 | ;; | |
11598 | siemens) | |
11599 | need_lib_prefix=no | |
11600 | ;; | |
11601 | motorola) | |
11602 | need_lib_prefix=no | |
11603 | need_version=no | |
11604 | shlibpath_overrides_runpath=no | |
11605 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11606 | ;; | |
11607 | esac | |
11608 | ;; | |
11609 | ||
11610 | sysv4*MP*) | |
11611 | if test -d /usr/nec ;then | |
11612 | version_type=linux | |
11613 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11614 | soname_spec='$libname${shared_ext}.$major' | |
11615 | shlibpath_var=LD_LIBRARY_PATH | |
11616 | fi | |
11617 | ;; | |
11618 | ||
11619 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11620 | version_type=freebsd-elf | |
11621 | need_lib_prefix=no | |
11622 | need_version=no | |
11623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11624 | soname_spec='${libname}${release}${shared_ext}$major' | |
11625 | shlibpath_var=LD_LIBRARY_PATH | |
11626 | shlibpath_overrides_runpath=yes | |
11627 | hardcode_into_libs=yes | |
11628 | if test "$with_gnu_ld" = yes; then | |
11629 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11630 | else | |
11631 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11632 | case $host_os in | |
11633 | sco3.2v5*) | |
11634 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11635 | ;; | |
11636 | esac | |
11637 | fi | |
11638 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11639 | ;; | |
11640 | ||
11641 | tpf*) | |
11642 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11643 | version_type=linux | |
11644 | need_lib_prefix=no | |
11645 | need_version=no | |
00aafda4 | 11646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 11647 | shlibpath_var=LD_LIBRARY_PATH |
11648 | shlibpath_overrides_runpath=no | |
11649 | hardcode_into_libs=yes | |
11650 | ;; | |
11651 | ||
11652 | uts4*) | |
11653 | version_type=linux | |
11654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11655 | soname_spec='${libname}${release}${shared_ext}$major' | |
11656 | shlibpath_var=LD_LIBRARY_PATH | |
11657 | ;; | |
11658 | ||
11659 | *) | |
11660 | dynamic_linker=no | |
11661 | ;; | |
11662 | esac | |
cd9a469c | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11664 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 11665 | test "$dynamic_linker" = no && can_build_shared=no |
11666 | ||
11667 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11668 | if test "$GCC" = yes; then | |
11669 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11670 | fi | |
11671 | ||
00aafda4 | 11672 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11673 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11674 | fi | |
11675 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11676 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11677 | fi | |
11678 | ||
542f9784 | 11679 | |
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
11732 | ||
11733 | ||
11734 | ||
11735 | ||
11736 | ||
11737 | ||
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | ||
11743 | ||
11744 | ||
11745 | ||
11746 | ||
11747 | ||
11748 | ||
11749 | ||
11750 | ||
11751 | ||
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | ||
11757 | ||
11758 | ||
e6408286 | 11759 | |
11760 | ||
11761 | ||
11762 | ||
11763 | ||
542f9784 | 11764 | |
11765 | ||
11766 | ||
11767 | ||
11768 | ||
11769 | ||
cd9a469c | 11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11771 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 11772 | hardcode_action= |
11773 | if test -n "$hardcode_libdir_flag_spec" || | |
11774 | test -n "$runpath_var" || | |
11775 | test "X$hardcode_automatic" = "Xyes" ; then | |
11776 | ||
11777 | # We can hardcode non-existent directories. | |
11778 | if test "$hardcode_direct" != no && | |
11779 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11780 | # have to relink, otherwise we might link with an installed library | |
11781 | # when we should be linking with a yet-to-be-installed one | |
11782 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11783 | test "$hardcode_minus_L" != no; then | |
11784 | # Linking always hardcodes the temporary library directory. | |
11785 | hardcode_action=relink | |
11786 | else | |
11787 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11788 | hardcode_action=immediate | |
11789 | fi | |
11790 | else | |
11791 | # We cannot hardcode anything, or else we can only hardcode existing | |
11792 | # directories. | |
11793 | hardcode_action=unsupported | |
11794 | fi | |
cd9a469c | 11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11796 | $as_echo "$hardcode_action" >&6; } | |
542f9784 | 11797 | |
11798 | if test "$hardcode_action" = relink || | |
11799 | test "$inherit_rpath" = yes; then | |
11800 | # Fast installation is not supported | |
11801 | enable_fast_install=no | |
11802 | elif test "$shlibpath_overrides_runpath" = yes || | |
11803 | test "$enable_shared" = no; then | |
11804 | # Fast installation is not necessary | |
11805 | enable_fast_install=needless | |
11806 | fi | |
11807 | ||
11808 | ||
11809 | ||
11810 | ||
11811 | ||
11812 | ||
11813 | if test "x$enable_dlopen" != xyes; then | |
11814 | enable_dlopen=unknown | |
11815 | enable_dlopen_self=unknown | |
11816 | enable_dlopen_self_static=unknown | |
11817 | else | |
11818 | lt_cv_dlopen=no | |
11819 | lt_cv_dlopen_libs= | |
11820 | ||
11821 | case $host_os in | |
11822 | beos*) | |
11823 | lt_cv_dlopen="load_add_on" | |
11824 | lt_cv_dlopen_libs= | |
11825 | lt_cv_dlopen_self=yes | |
11826 | ;; | |
11827 | ||
00aafda4 | 11828 | mingw* | pw32* | cegcc*) |
542f9784 | 11829 | lt_cv_dlopen="LoadLibrary" |
11830 | lt_cv_dlopen_libs= | |
11831 | ;; | |
11832 | ||
11833 | cygwin*) | |
11834 | lt_cv_dlopen="dlopen" | |
11835 | lt_cv_dlopen_libs= | |
11836 | ;; | |
11837 | ||
11838 | darwin*) | |
11839 | # if libdl is installed we need to link against it | |
cd9a469c | 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11841 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11842 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11843 | $as_echo_n "(cached) " >&6 | |
542f9784 | 11844 | else |
11845 | ac_check_lib_save_LIBS=$LIBS | |
11846 | LIBS="-ldl $LIBS" | |
11847 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 11848 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11849 | fi |
cd9a469c | 11850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11851 | /* end confdefs.h. */ |
11852 | ||
cd9a469c | 11853 | /* Override any GCC internal prototype to avoid an error. |
11854 | Use char because int might match the return type of a GCC | |
11855 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11856 | #ifdef __cplusplus |
11857 | extern "C" | |
11858 | #endif | |
542f9784 | 11859 | char dlopen (); |
11860 | int | |
11861 | main () | |
11862 | { | |
cd9a469c | 11863 | return dlopen (); |
542f9784 | 11864 | ; |
11865 | return 0; | |
11866 | } | |
11867 | _ACEOF | |
cd9a469c | 11868 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11869 | ac_cv_lib_dl_dlopen=yes |
11870 | else | |
cd9a469c | 11871 | ac_cv_lib_dl_dlopen=no |
542f9784 | 11872 | fi |
cd9a469c | 11873 | rm -f core conftest.err conftest.$ac_objext \ |
11874 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11875 | LIBS=$ac_check_lib_save_LIBS |
11876 | fi | |
cd9a469c | 11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11878 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11879 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
542f9784 | 11880 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11881 | else | |
11882 | ||
11883 | lt_cv_dlopen="dyld" | |
11884 | lt_cv_dlopen_libs= | |
11885 | lt_cv_dlopen_self=yes | |
11886 | ||
11887 | fi | |
11888 | ||
11889 | ;; | |
11890 | ||
11891 | *) | |
cd9a469c | 11892 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11893 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
542f9784 | 11894 | lt_cv_dlopen="shl_load" |
11895 | else | |
cd9a469c | 11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11897 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11898 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11899 | $as_echo_n "(cached) " >&6 | |
542f9784 | 11900 | else |
11901 | ac_check_lib_save_LIBS=$LIBS | |
11902 | LIBS="-ldld $LIBS" | |
11903 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 11904 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11905 | fi |
cd9a469c | 11906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11907 | /* end confdefs.h. */ |
11908 | ||
cd9a469c | 11909 | /* Override any GCC internal prototype to avoid an error. |
11910 | Use char because int might match the return type of a GCC | |
11911 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11912 | #ifdef __cplusplus |
11913 | extern "C" | |
11914 | #endif | |
542f9784 | 11915 | char shl_load (); |
11916 | int | |
11917 | main () | |
11918 | { | |
cd9a469c | 11919 | return shl_load (); |
542f9784 | 11920 | ; |
11921 | return 0; | |
11922 | } | |
11923 | _ACEOF | |
cd9a469c | 11924 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11925 | ac_cv_lib_dld_shl_load=yes |
11926 | else | |
cd9a469c | 11927 | ac_cv_lib_dld_shl_load=no |
542f9784 | 11928 | fi |
cd9a469c | 11929 | rm -f core conftest.err conftest.$ac_objext \ |
11930 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11931 | LIBS=$ac_check_lib_save_LIBS |
11932 | fi | |
cd9a469c | 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11934 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11935 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
00aafda4 | 11936 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
542f9784 | 11937 | else |
cd9a469c | 11938 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11939 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
542f9784 | 11940 | lt_cv_dlopen="dlopen" |
11941 | else | |
cd9a469c | 11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11943 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11944 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11945 | $as_echo_n "(cached) " >&6 | |
542f9784 | 11946 | else |
11947 | ac_check_lib_save_LIBS=$LIBS | |
11948 | LIBS="-ldl $LIBS" | |
11949 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 11950 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11951 | fi |
cd9a469c | 11952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11953 | /* end confdefs.h. */ |
11954 | ||
cd9a469c | 11955 | /* Override any GCC internal prototype to avoid an error. |
11956 | Use char because int might match the return type of a GCC | |
11957 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 11958 | #ifdef __cplusplus |
11959 | extern "C" | |
11960 | #endif | |
542f9784 | 11961 | char dlopen (); |
11962 | int | |
11963 | main () | |
11964 | { | |
cd9a469c | 11965 | return dlopen (); |
542f9784 | 11966 | ; |
11967 | return 0; | |
11968 | } | |
11969 | _ACEOF | |
cd9a469c | 11970 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 11971 | ac_cv_lib_dl_dlopen=yes |
11972 | else | |
cd9a469c | 11973 | ac_cv_lib_dl_dlopen=no |
542f9784 | 11974 | fi |
cd9a469c | 11975 | rm -f core conftest.err conftest.$ac_objext \ |
11976 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 11977 | LIBS=$ac_check_lib_save_LIBS |
11978 | fi | |
cd9a469c | 11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11980 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11981 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
542f9784 | 11982 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11983 | else | |
cd9a469c | 11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11985 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11986 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11987 | $as_echo_n "(cached) " >&6 | |
542f9784 | 11988 | else |
11989 | ac_check_lib_save_LIBS=$LIBS | |
11990 | LIBS="-lsvld $LIBS" | |
11991 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 11992 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 11993 | fi |
cd9a469c | 11994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 11995 | /* end confdefs.h. */ |
11996 | ||
cd9a469c | 11997 | /* Override any GCC internal prototype to avoid an error. |
11998 | Use char because int might match the return type of a GCC | |
11999 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12000 | #ifdef __cplusplus |
12001 | extern "C" | |
12002 | #endif | |
542f9784 | 12003 | char dlopen (); |
12004 | int | |
12005 | main () | |
12006 | { | |
cd9a469c | 12007 | return dlopen (); |
542f9784 | 12008 | ; |
12009 | return 0; | |
12010 | } | |
12011 | _ACEOF | |
cd9a469c | 12012 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12013 | ac_cv_lib_svld_dlopen=yes |
12014 | else | |
cd9a469c | 12015 | ac_cv_lib_svld_dlopen=no |
542f9784 | 12016 | fi |
cd9a469c | 12017 | rm -f core conftest.err conftest.$ac_objext \ |
12018 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12019 | LIBS=$ac_check_lib_save_LIBS |
12020 | fi | |
cd9a469c | 12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12022 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12023 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
542f9784 | 12024 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12025 | else | |
cd9a469c | 12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12027 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12028 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
12029 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12030 | else |
12031 | ac_check_lib_save_LIBS=$LIBS | |
12032 | LIBS="-ldld $LIBS" | |
12033 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 12034 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 12035 | fi |
cd9a469c | 12036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
542f9784 | 12037 | /* end confdefs.h. */ |
12038 | ||
cd9a469c | 12039 | /* Override any GCC internal prototype to avoid an error. |
12040 | Use char because int might match the return type of a GCC | |
12041 | builtin and then its argument prototype would still apply. */ | |
542f9784 | 12042 | #ifdef __cplusplus |
12043 | extern "C" | |
12044 | #endif | |
542f9784 | 12045 | char dld_link (); |
12046 | int | |
12047 | main () | |
12048 | { | |
cd9a469c | 12049 | return dld_link (); |
542f9784 | 12050 | ; |
12051 | return 0; | |
12052 | } | |
12053 | _ACEOF | |
cd9a469c | 12054 | if ac_fn_c_try_link "$LINENO"; then : |
542f9784 | 12055 | ac_cv_lib_dld_dld_link=yes |
12056 | else | |
cd9a469c | 12057 | ac_cv_lib_dld_dld_link=no |
542f9784 | 12058 | fi |
cd9a469c | 12059 | rm -f core conftest.err conftest.$ac_objext \ |
12060 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 12061 | LIBS=$ac_check_lib_save_LIBS |
12062 | fi | |
cd9a469c | 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12064 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12065 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
00aafda4 | 12066 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
542f9784 | 12067 | fi |
12068 | ||
12069 | ||
12070 | fi | |
12071 | ||
12072 | ||
12073 | fi | |
12074 | ||
12075 | ||
12076 | fi | |
12077 | ||
12078 | ||
12079 | fi | |
12080 | ||
12081 | ||
12082 | fi | |
12083 | ||
12084 | ;; | |
12085 | esac | |
12086 | ||
12087 | if test "x$lt_cv_dlopen" != xno; then | |
12088 | enable_dlopen=yes | |
12089 | else | |
12090 | enable_dlopen=no | |
12091 | fi | |
12092 | ||
12093 | case $lt_cv_dlopen in | |
12094 | dlopen) | |
12095 | save_CPPFLAGS="$CPPFLAGS" | |
12096 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12097 | ||
12098 | save_LDFLAGS="$LDFLAGS" | |
12099 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12100 | ||
12101 | save_LIBS="$LIBS" | |
12102 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12103 | ||
cd9a469c | 12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12105 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12106 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
12107 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12108 | else |
12109 | if test "$cross_compiling" = yes; then : | |
12110 | lt_cv_dlopen_self=cross | |
12111 | else | |
12112 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12113 | lt_status=$lt_dlunknown | |
12114 | cat > conftest.$ac_ext <<_LT_EOF | |
bbb514dc | 12115 | #line 12115 "configure" |
542f9784 | 12116 | #include "confdefs.h" |
12117 | ||
12118 | #if HAVE_DLFCN_H | |
12119 | #include <dlfcn.h> | |
12120 | #endif | |
12121 | ||
12122 | #include <stdio.h> | |
12123 | ||
12124 | #ifdef RTLD_GLOBAL | |
12125 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12126 | #else | |
12127 | # ifdef DL_GLOBAL | |
12128 | # define LT_DLGLOBAL DL_GLOBAL | |
12129 | # else | |
12130 | # define LT_DLGLOBAL 0 | |
12131 | # endif | |
12132 | #endif | |
12133 | ||
12134 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12135 | find out it does not work in some platform. */ | |
12136 | #ifndef LT_DLLAZY_OR_NOW | |
12137 | # ifdef RTLD_LAZY | |
12138 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12139 | # else | |
12140 | # ifdef DL_LAZY | |
12141 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12142 | # else | |
12143 | # ifdef RTLD_NOW | |
12144 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12145 | # else | |
12146 | # ifdef DL_NOW | |
12147 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12148 | # else | |
12149 | # define LT_DLLAZY_OR_NOW 0 | |
12150 | # endif | |
12151 | # endif | |
12152 | # endif | |
12153 | # endif | |
12154 | #endif | |
12155 | ||
e6408286 | 12156 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12157 | correspondingly for the symbols needed. */ | |
12158 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12159 | void fnord () __attribute__((visibility("default"))); | |
12160 | #endif | |
12161 | ||
12162 | void fnord () { int i=42; } | |
542f9784 | 12163 | int main () |
12164 | { | |
12165 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12166 | int status = $lt_dlunknown; | |
12167 | ||
12168 | if (self) | |
12169 | { | |
12170 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12171 | else |
12172 | { | |
12173 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12174 | else puts (dlerror ()); | |
12175 | } | |
542f9784 | 12176 | /* dlclose (self); */ |
12177 | } | |
12178 | else | |
12179 | puts (dlerror ()); | |
12180 | ||
00aafda4 | 12181 | return status; |
542f9784 | 12182 | } |
12183 | _LT_EOF | |
cd9a469c | 12184 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12185 | (eval $ac_link) 2>&5 |
12186 | ac_status=$? | |
cd9a469c | 12187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12188 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12189 | (./conftest; exit; ) >&5 2>/dev/null |
12190 | lt_status=$? | |
12191 | case x$lt_status in | |
12192 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12193 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12194 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12195 | esac | |
12196 | else : | |
12197 | # compilation failed | |
12198 | lt_cv_dlopen_self=no | |
12199 | fi | |
12200 | fi | |
12201 | rm -fr conftest* | |
12202 | ||
12203 | ||
12204 | fi | |
cd9a469c | 12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12206 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
542f9784 | 12207 | |
12208 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12209 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
cd9a469c | 12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12211 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12212 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
12213 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12214 | else |
12215 | if test "$cross_compiling" = yes; then : | |
12216 | lt_cv_dlopen_self_static=cross | |
12217 | else | |
12218 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12219 | lt_status=$lt_dlunknown | |
12220 | cat > conftest.$ac_ext <<_LT_EOF | |
bbb514dc | 12221 | #line 12221 "configure" |
542f9784 | 12222 | #include "confdefs.h" |
12223 | ||
12224 | #if HAVE_DLFCN_H | |
12225 | #include <dlfcn.h> | |
12226 | #endif | |
12227 | ||
12228 | #include <stdio.h> | |
12229 | ||
12230 | #ifdef RTLD_GLOBAL | |
12231 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12232 | #else | |
12233 | # ifdef DL_GLOBAL | |
12234 | # define LT_DLGLOBAL DL_GLOBAL | |
12235 | # else | |
12236 | # define LT_DLGLOBAL 0 | |
12237 | # endif | |
12238 | #endif | |
12239 | ||
12240 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12241 | find out it does not work in some platform. */ | |
12242 | #ifndef LT_DLLAZY_OR_NOW | |
12243 | # ifdef RTLD_LAZY | |
12244 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12245 | # else | |
12246 | # ifdef DL_LAZY | |
12247 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12248 | # else | |
12249 | # ifdef RTLD_NOW | |
12250 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12251 | # else | |
12252 | # ifdef DL_NOW | |
12253 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12254 | # else | |
12255 | # define LT_DLLAZY_OR_NOW 0 | |
12256 | # endif | |
12257 | # endif | |
12258 | # endif | |
12259 | # endif | |
12260 | #endif | |
12261 | ||
e6408286 | 12262 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12263 | correspondingly for the symbols needed. */ | |
12264 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12265 | void fnord () __attribute__((visibility("default"))); | |
12266 | #endif | |
12267 | ||
12268 | void fnord () { int i=42; } | |
542f9784 | 12269 | int main () |
12270 | { | |
12271 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12272 | int status = $lt_dlunknown; | |
12273 | ||
12274 | if (self) | |
12275 | { | |
12276 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
e6408286 | 12277 | else |
12278 | { | |
12279 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12280 | else puts (dlerror ()); | |
12281 | } | |
542f9784 | 12282 | /* dlclose (self); */ |
12283 | } | |
12284 | else | |
12285 | puts (dlerror ()); | |
12286 | ||
00aafda4 | 12287 | return status; |
542f9784 | 12288 | } |
12289 | _LT_EOF | |
cd9a469c | 12290 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
542f9784 | 12291 | (eval $ac_link) 2>&5 |
12292 | ac_status=$? | |
cd9a469c | 12293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12294 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
542f9784 | 12295 | (./conftest; exit; ) >&5 2>/dev/null |
12296 | lt_status=$? | |
12297 | case x$lt_status in | |
12298 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12299 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12300 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12301 | esac | |
12302 | else : | |
12303 | # compilation failed | |
12304 | lt_cv_dlopen_self_static=no | |
12305 | fi | |
12306 | fi | |
12307 | rm -fr conftest* | |
12308 | ||
12309 | ||
12310 | fi | |
cd9a469c | 12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12312 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
542f9784 | 12313 | fi |
12314 | ||
12315 | CPPFLAGS="$save_CPPFLAGS" | |
12316 | LDFLAGS="$save_LDFLAGS" | |
12317 | LIBS="$save_LIBS" | |
12318 | ;; | |
12319 | esac | |
12320 | ||
12321 | case $lt_cv_dlopen_self in | |
12322 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12323 | *) enable_dlopen_self=unknown ;; | |
12324 | esac | |
12325 | ||
12326 | case $lt_cv_dlopen_self_static in | |
12327 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12328 | *) enable_dlopen_self_static=unknown ;; | |
12329 | esac | |
12330 | fi | |
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | ||
12346 | ||
12347 | ||
12348 | striplib= | |
12349 | old_striplib= | |
cd9a469c | 12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12351 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
542f9784 | 12352 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12353 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12354 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
cd9a469c | 12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12356 | $as_echo "yes" >&6; } | |
542f9784 | 12357 | else |
12358 | # FIXME - insert some real tests, host_os isn't really good enough | |
12359 | case $host_os in | |
12360 | darwin*) | |
12361 | if test -n "$STRIP" ; then | |
12362 | striplib="$STRIP -x" | |
12363 | old_striplib="$STRIP -S" | |
cd9a469c | 12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12365 | $as_echo "yes" >&6; } | |
542f9784 | 12366 | else |
cd9a469c | 12367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12368 | $as_echo "no" >&6; } | |
542f9784 | 12369 | fi |
12370 | ;; | |
12371 | *) | |
cd9a469c | 12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12373 | $as_echo "no" >&6; } | |
542f9784 | 12374 | ;; |
12375 | esac | |
12376 | fi | |
12377 | ||
12378 | ||
12379 | ||
12380 | ||
12381 | ||
12382 | ||
12383 | ||
12384 | ||
12385 | ||
12386 | ||
12387 | ||
12388 | ||
e6408286 | 12389 | # Report which library types will actually be built |
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12391 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12393 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 12394 | |
e6408286 | 12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12396 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12397 | test "$can_build_shared" = "no" && enable_shared=no | |
542f9784 | 12398 | |
e6408286 | 12399 | # On AIX, shared libraries and static libraries use the same namespace, and |
12400 | # are all built from PIC. | |
12401 | case $host_os in | |
12402 | aix3*) | |
12403 | test "$enable_shared" = yes && enable_static=no | |
12404 | if test -n "$RANLIB"; then | |
12405 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12406 | postinstall_cmds='$RANLIB $lib' | |
12407 | fi | |
12408 | ;; | |
542f9784 | 12409 | |
e6408286 | 12410 | aix[4-9]*) |
12411 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12412 | test "$enable_shared" = yes && enable_static=no | |
12413 | fi | |
12414 | ;; | |
12415 | esac | |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12417 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 12418 | |
e6408286 | 12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12420 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12421 | # Make sure either enable_shared or enable_static is yes. | |
12422 | test "$enable_shared" = yes || enable_static=yes | |
12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12424 | $as_echo "$enable_static" >&6; } | |
542f9784 | 12425 | |
542f9784 | 12426 | |
542f9784 | 12427 | |
542f9784 | 12428 | |
12429 | fi | |
542f9784 | 12430 | ac_ext=c |
12431 | ac_cpp='$CPP $CPPFLAGS' | |
12432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12435 | ||
e6408286 | 12436 | CC="$lt_save_CC" |
12437 | ||
12438 | ||
12439 | ||
12440 | ||
12441 | ||
12442 | ||
12443 | ||
12444 | ||
12445 | ||
12446 | ||
12447 | ||
12448 | ||
12449 | ||
12450 | ac_config_commands="$ac_config_commands libtool" | |
12451 | ||
12452 | ||
12453 | ||
12454 | ||
12455 | # Only expand once: | |
12456 | ||
12457 | ||
12458 | ||
12459 | ||
8c35d268 | 12460 | |
12461 | case $host in | |
12462 | *-cygwin* | *-mingw*) | |
12463 | # 'host' will be top-level target in the case of a target lib, | |
12464 | # we must compare to with_cross_host to decide if this is a native | |
12465 | # or cross-compiler and select where to install dlls appropriately. | |
12466 | if test -n "$with_cross_host" && | |
12467 | test x"$with_cross_host" != x"no"; then | |
12468 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
12469 | else | |
12470 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
12471 | fi | |
12472 | ;; | |
12473 | *) | |
12474 | lt_host_flags= | |
12475 | ;; | |
12476 | esac | |
12477 | ||
12478 | ||
12479 | ||
12480 | ||
12481 | ||
e6408286 | 12482 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
542f9784 | 12483 | |
e6408286 | 12484 | # We need gfortran to compile parts of the library |
12485 | #AC_PROG_FC(gfortran) | |
12486 | FC="$GFORTRAN" | |
cd9a469c | 12487 | ac_ext=${ac_fc_srcext-f} |
12488 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
12489 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 12490 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
12491 | if test -n "$ac_tool_prefix"; then | |
e6408286 | 12492 | for ac_prog in gfortran |
542f9784 | 12493 | do |
12494 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12495 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
cd9a469c | 12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12497 | $as_echo_n "checking for $ac_word... " >&6; } | |
12498 | if test "${ac_cv_prog_FC+set}" = set; then : | |
12499 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12500 | else |
12501 | if test -n "$FC"; then | |
12502 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
12503 | else | |
12504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12505 | for as_dir in $PATH | |
12506 | do | |
12507 | IFS=$as_save_IFS | |
12508 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12509 | for ac_exec_ext in '' $ac_executable_extensions; do |
12510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 12511 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
cd9a469c | 12512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 12513 | break 2 |
12514 | fi | |
12515 | done | |
cd9a469c | 12516 | done |
12517 | IFS=$as_save_IFS | |
542f9784 | 12518 | |
12519 | fi | |
12520 | fi | |
12521 | FC=$ac_cv_prog_FC | |
12522 | if test -n "$FC"; then | |
cd9a469c | 12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
12524 | $as_echo "$FC" >&6; } | |
542f9784 | 12525 | else |
cd9a469c | 12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12527 | $as_echo "no" >&6; } | |
542f9784 | 12528 | fi |
12529 | ||
cd9a469c | 12530 | |
542f9784 | 12531 | test -n "$FC" && break |
12532 | done | |
12533 | fi | |
12534 | if test -z "$FC"; then | |
12535 | ac_ct_FC=$FC | |
e6408286 | 12536 | for ac_prog in gfortran |
542f9784 | 12537 | do |
12538 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12539 | set dummy $ac_prog; ac_word=$2 | |
cd9a469c | 12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12541 | $as_echo_n "checking for $ac_word... " >&6; } | |
12542 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : | |
12543 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12544 | else |
12545 | if test -n "$ac_ct_FC"; then | |
12546 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
12547 | else | |
12548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12549 | for as_dir in $PATH | |
12550 | do | |
12551 | IFS=$as_save_IFS | |
12552 | test -z "$as_dir" && as_dir=. | |
cd9a469c | 12553 | for ac_exec_ext in '' $ac_executable_extensions; do |
12554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
542f9784 | 12555 | ac_cv_prog_ac_ct_FC="$ac_prog" |
cd9a469c | 12556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
542f9784 | 12557 | break 2 |
12558 | fi | |
12559 | done | |
cd9a469c | 12560 | done |
12561 | IFS=$as_save_IFS | |
542f9784 | 12562 | |
12563 | fi | |
12564 | fi | |
12565 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
12566 | if test -n "$ac_ct_FC"; then | |
cd9a469c | 12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
12568 | $as_echo "$ac_ct_FC" >&6; } | |
542f9784 | 12569 | else |
cd9a469c | 12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12571 | $as_echo "no" >&6; } | |
542f9784 | 12572 | fi |
12573 | ||
cd9a469c | 12574 | |
542f9784 | 12575 | test -n "$ac_ct_FC" && break |
82eaf560 | 12576 | done |
12577 | ||
cd9a469c | 12578 | if test "x$ac_ct_FC" = x; then |
12579 | FC="" | |
12580 | else | |
12581 | case $cross_compiling:$ac_tool_warned in | |
12582 | yes:) | |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12584 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12585 | ac_tool_warned=yes ;; | |
12586 | esac | |
12587 | FC=$ac_ct_FC | |
12588 | fi | |
542f9784 | 12589 | fi |
12590 | ||
12591 | ||
12592 | # Provide some information about the compiler. | |
cd9a469c | 12593 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
12594 | set X $ac_compile | |
12595 | ac_compiler=$2 | |
12596 | for ac_option in --version -v -V -qversion; do | |
12597 | { { ac_try="$ac_compiler $ac_option >&5" | |
12598 | case "(($ac_try" in | |
12599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12600 | *) ac_try_echo=$ac_try;; | |
12601 | esac | |
12602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12603 | $as_echo "$ac_try_echo"; } >&5 | |
12604 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
542f9784 | 12605 | ac_status=$? |
cd9a469c | 12606 | if test -s conftest.err; then |
12607 | sed '10a\ | |
12608 | ... rest of stderr output deleted ... | |
12609 | 10q' conftest.err >conftest.er1 | |
12610 | cat conftest.er1 >&5 | |
12611 | rm -f conftest.er1 conftest.err | |
12612 | fi | |
12613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12614 | test $ac_status = 0; } | |
12615 | done | |
542f9784 | 12616 | rm -f a.out |
12617 | ||
12618 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
12619 | # input file. (Note that this only needs to work for GNU compilers.) | |
12620 | ac_save_ext=$ac_ext | |
12621 | ac_ext=F | |
cd9a469c | 12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
12623 | $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } | |
12624 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then : | |
12625 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12626 | else |
cd9a469c | 12627 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 12628 | program main |
12629 | #ifndef __GNUC__ | |
12630 | choke me | |
12631 | #endif | |
12632 | ||
12633 | end | |
12634 | _ACEOF | |
cd9a469c | 12635 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 12636 | ac_compiler_gnu=yes |
12637 | else | |
cd9a469c | 12638 | ac_compiler_gnu=no |
542f9784 | 12639 | fi |
cd9a469c | 12640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 12641 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
12642 | ||
12643 | fi | |
cd9a469c | 12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
12645 | $as_echo "$ac_cv_fc_compiler_gnu" >&6; } | |
542f9784 | 12646 | ac_ext=$ac_save_ext |
cd9a469c | 12647 | ac_test_FCFLAGS=${FCFLAGS+set} |
12648 | ac_save_FCFLAGS=$FCFLAGS | |
542f9784 | 12649 | FCFLAGS= |
cd9a469c | 12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
12651 | $as_echo_n "checking whether $FC accepts -g... " >&6; } | |
12652 | if test "${ac_cv_prog_fc_g+set}" = set; then : | |
12653 | $as_echo_n "(cached) " >&6 | |
542f9784 | 12654 | else |
12655 | FCFLAGS=-g | |
cd9a469c | 12656 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 12657 | program main |
12658 | ||
12659 | end | |
12660 | _ACEOF | |
cd9a469c | 12661 | if ac_fn_fc_try_compile "$LINENO"; then : |
542f9784 | 12662 | ac_cv_prog_fc_g=yes |
12663 | else | |
cd9a469c | 12664 | ac_cv_prog_fc_g=no |
542f9784 | 12665 | fi |
cd9a469c | 12666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 12667 | |
12668 | fi | |
cd9a469c | 12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
12670 | $as_echo "$ac_cv_prog_fc_g" >&6; } | |
12671 | if test "$ac_test_FCFLAGS" = set; then | |
12672 | FCFLAGS=$ac_save_FCFLAGS | |
542f9784 | 12673 | elif test $ac_cv_prog_fc_g = yes; then |
12674 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12675 | FCFLAGS="-g -O2" | |
12676 | else | |
12677 | FCFLAGS="-g" | |
12678 | fi | |
12679 | else | |
12680 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
12681 | FCFLAGS="-O2" | |
12682 | else | |
12683 | FCFLAGS= | |
12684 | fi | |
12685 | fi | |
12686 | ||
12687 | ac_ext=c | |
12688 | ac_cpp='$CPP $CPPFLAGS' | |
12689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12692 | ||
cd9a469c | 12693 | ac_ext=${ac_fc_srcext-f} |
12694 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
12695 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 12696 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
12697 | ||
12698 | ||
e6408286 | 12699 | if test -z "$FC" || test "X$FC" = "Xno"; then |
12700 | _lt_disable_FC=yes | |
12701 | fi | |
12702 | ||
542f9784 | 12703 | archive_cmds_need_lc_FC=no |
12704 | allow_undefined_flag_FC= | |
12705 | always_export_symbols_FC=no | |
12706 | archive_expsym_cmds_FC= | |
12707 | export_dynamic_flag_spec_FC= | |
12708 | hardcode_direct_FC=no | |
12709 | hardcode_direct_absolute_FC=no | |
12710 | hardcode_libdir_flag_spec_FC= | |
12711 | hardcode_libdir_flag_spec_ld_FC= | |
12712 | hardcode_libdir_separator_FC= | |
12713 | hardcode_minus_L_FC=no | |
12714 | hardcode_automatic_FC=no | |
12715 | inherit_rpath_FC=no | |
12716 | module_cmds_FC= | |
12717 | module_expsym_cmds_FC= | |
12718 | link_all_deplibs_FC=unknown | |
12719 | old_archive_cmds_FC=$old_archive_cmds | |
e6408286 | 12720 | reload_flag_FC=$reload_flag |
12721 | reload_cmds_FC=$reload_cmds | |
542f9784 | 12722 | no_undefined_flag_FC= |
12723 | whole_archive_flag_spec_FC= | |
12724 | enable_shared_with_static_runtimes_FC=no | |
12725 | ||
12726 | # Source file extension for fc test sources. | |
12727 | ac_ext=${ac_fc_srcext-f} | |
12728 | ||
12729 | # Object file extension for compiled fc test sources. | |
12730 | objext=o | |
12731 | objext_FC=$objext | |
12732 | ||
12733 | # No sense in running all these tests if we already determined that | |
12734 | # the FC compiler isn't working. Some variables (like enable_shared) | |
12735 | # are currently assumed to apply to all compilers on this platform, | |
12736 | # and will be corrupted by setting them based on a non-working compiler. | |
12737 | if test "$_lt_disable_FC" != yes; then | |
12738 | # Code to be used in simple compile tests | |
12739 | lt_simple_compile_test_code="\ | |
12740 | subroutine t | |
12741 | return | |
12742 | end | |
12743 | " | |
12744 | ||
12745 | # Code to be used in simple link tests | |
12746 | lt_simple_link_test_code="\ | |
12747 | program t | |
12748 | end | |
12749 | " | |
12750 | ||
12751 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12752 | ||
12753 | ||
12754 | ||
12755 | ||
12756 | ||
12757 | ||
12758 | # If no C compiler was specified, use CC. | |
12759 | LTCC=${LTCC-"$CC"} | |
12760 | ||
12761 | # If no C compiler flags were specified, use CFLAGS. | |
12762 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12763 | ||
12764 | # Allow CC to be a program name with arguments. | |
12765 | compiler=$CC | |
12766 | ||
12767 | ||
12768 | # save warnings/boilerplate of simple test code | |
12769 | ac_outfile=conftest.$ac_objext | |
12770 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12771 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12772 | _lt_compiler_boilerplate=`cat conftest.err` | |
12773 | $RM conftest* | |
12774 | ||
12775 | ac_outfile=conftest.$ac_objext | |
12776 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12777 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12778 | _lt_linker_boilerplate=`cat conftest.err` | |
00aafda4 | 12779 | $RM -r conftest* |
542f9784 | 12780 | |
12781 | ||
12782 | # Allow CC to be a program name with arguments. | |
12783 | lt_save_CC="$CC" | |
00aafda4 | 12784 | lt_save_GCC=$GCC |
542f9784 | 12785 | CC=${FC-"f95"} |
12786 | compiler=$CC | |
00aafda4 | 12787 | GCC=$ac_cv_fc_compiler_gnu |
12788 | ||
542f9784 | 12789 | compiler_FC=$CC |
12790 | for cc_temp in $compiler""; do | |
12791 | case $cc_temp in | |
12792 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12793 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12794 | \-*) ;; | |
12795 | *) break;; | |
12796 | esac | |
12797 | done | |
e6408286 | 12798 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
542f9784 | 12799 | |
12800 | ||
12801 | if test -n "$compiler"; then | |
cd9a469c | 12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12803 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12805 | $as_echo "$can_build_shared" >&6; } | |
542f9784 | 12806 | |
cd9a469c | 12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12808 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
542f9784 | 12809 | test "$can_build_shared" = "no" && enable_shared=no |
12810 | ||
12811 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12812 | # are all built from PIC. | |
12813 | case $host_os in | |
12814 | aix3*) | |
12815 | test "$enable_shared" = yes && enable_static=no | |
12816 | if test -n "$RANLIB"; then | |
12817 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12818 | postinstall_cmds='$RANLIB $lib' | |
12819 | fi | |
12820 | ;; | |
21e07d2f | 12821 | aix[4-9]*) |
542f9784 | 12822 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
12823 | test "$enable_shared" = yes && enable_static=no | |
12824 | fi | |
12825 | ;; | |
12826 | esac | |
cd9a469c | 12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12828 | $as_echo "$enable_shared" >&6; } | |
542f9784 | 12829 | |
cd9a469c | 12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12831 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
542f9784 | 12832 | # Make sure either enable_shared or enable_static is yes. |
12833 | test "$enable_shared" = yes || enable_static=yes | |
cd9a469c | 12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12835 | $as_echo "$enable_static" >&6; } | |
542f9784 | 12836 | |
12837 | GCC_FC="$ac_cv_fc_compiler_gnu" | |
12838 | LD_FC="$LD" | |
12839 | ||
12840 | ## CAVEAT EMPTOR: | |
12841 | ## There is no encapsulation within the following macros, do not change | |
12842 | ## the running order or otherwise move them around unless you know exactly | |
12843 | ## what you are doing... | |
12844 | # Dependencies to place before and after the object being linked: | |
12845 | predep_objects_FC= | |
12846 | postdep_objects_FC= | |
12847 | predeps_FC= | |
12848 | postdeps_FC= | |
12849 | compiler_lib_search_path_FC= | |
12850 | ||
12851 | cat > conftest.$ac_ext <<_LT_EOF | |
12852 | subroutine foo | |
12853 | implicit none | |
12854 | integer a | |
12855 | a=0 | |
12856 | return | |
12857 | end | |
12858 | _LT_EOF | |
12859 | ||
cd9a469c | 12860 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 12861 | (eval $ac_compile) 2>&5 |
12862 | ac_status=$? | |
cd9a469c | 12863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12864 | test $ac_status = 0; }; then | |
542f9784 | 12865 | # Parse the compiler output and extract the necessary |
12866 | # objects, libraries and library flags. | |
12867 | ||
12868 | # Sentinel used to keep track of whether or not we are before | |
12869 | # the conftest object file. | |
12870 | pre_test_object_deps_done=no | |
12871 | ||
00aafda4 | 12872 | for p in `eval "$output_verbose_link_cmd"`; do |
542f9784 | 12873 | case $p in |
12874 | ||
12875 | -L* | -R* | -l*) | |
12876 | # Some compilers place space between "-{L,R}" and the path. | |
12877 | # Remove the space. | |
12878 | if test $p = "-L" || | |
12879 | test $p = "-R"; then | |
12880 | prev=$p | |
12881 | continue | |
12882 | else | |
12883 | prev= | |
12884 | fi | |
12885 | ||
12886 | if test "$pre_test_object_deps_done" = no; then | |
12887 | case $p in | |
12888 | -L* | -R*) | |
12889 | # Internal compiler library paths should come after those | |
12890 | # provided the user. The postdeps already come after the | |
12891 | # user supplied libs so there is no need to process them. | |
12892 | if test -z "$compiler_lib_search_path_FC"; then | |
12893 | compiler_lib_search_path_FC="${prev}${p}" | |
12894 | else | |
12895 | compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" | |
12896 | fi | |
12897 | ;; | |
12898 | # The "-l" case would never come before the object being | |
12899 | # linked, so don't bother handling this case. | |
12900 | esac | |
12901 | else | |
12902 | if test -z "$postdeps_FC"; then | |
12903 | postdeps_FC="${prev}${p}" | |
12904 | else | |
12905 | postdeps_FC="${postdeps_FC} ${prev}${p}" | |
12906 | fi | |
12907 | fi | |
12908 | ;; | |
12909 | ||
12910 | *.$objext) | |
12911 | # This assumes that the test object file only shows up | |
12912 | # once in the compiler output. | |
12913 | if test "$p" = "conftest.$objext"; then | |
12914 | pre_test_object_deps_done=yes | |
12915 | continue | |
12916 | fi | |
12917 | ||
12918 | if test "$pre_test_object_deps_done" = no; then | |
12919 | if test -z "$predep_objects_FC"; then | |
12920 | predep_objects_FC="$p" | |
12921 | else | |
12922 | predep_objects_FC="$predep_objects_FC $p" | |
12923 | fi | |
12924 | else | |
12925 | if test -z "$postdep_objects_FC"; then | |
12926 | postdep_objects_FC="$p" | |
12927 | else | |
12928 | postdep_objects_FC="$postdep_objects_FC $p" | |
12929 | fi | |
12930 | fi | |
12931 | ;; | |
12932 | ||
12933 | *) ;; # Ignore the rest. | |
12934 | ||
12935 | esac | |
12936 | done | |
12937 | ||
12938 | # Clean up. | |
12939 | rm -f a.out a.exe | |
12940 | else | |
12941 | echo "libtool.m4: error: problem compiling FC test program" | |
12942 | fi | |
12943 | ||
12944 | $RM -f confest.$objext | |
12945 | ||
12946 | # PORTME: override above test on systems where it is broken | |
12947 | ||
12948 | ||
12949 | case " $postdeps_FC " in | |
12950 | *" -lc "*) archive_cmds_need_lc_FC=no ;; | |
12951 | esac | |
00aafda4 | 12952 | compiler_lib_search_dirs_FC= |
12953 | if test -n "${compiler_lib_search_path_FC}"; then | |
12954 | compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12955 | fi | |
12956 | ||
12957 | ||
12958 | ||
12959 | ||
12960 | ||
542f9784 | 12961 | |
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | ||
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | ||
12979 | ||
12980 | ||
12981 | ||
12982 | ||
12983 | ||
12984 | ||
12985 | ||
12986 | ||
12987 | lt_prog_compiler_wl_FC= | |
12988 | lt_prog_compiler_pic_FC= | |
12989 | lt_prog_compiler_static_FC= | |
12990 | ||
cd9a469c | 12991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
12992 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
542f9784 | 12993 | |
12994 | if test "$GCC" = yes; then | |
12995 | lt_prog_compiler_wl_FC='-Wl,' | |
12996 | lt_prog_compiler_static_FC='-static' | |
12997 | ||
12998 | case $host_os in | |
12999 | aix*) | |
13000 | # All AIX code is PIC. | |
13001 | if test "$host_cpu" = ia64; then | |
13002 | # AIX 5 now supports IA64 processor | |
13003 | lt_prog_compiler_static_FC='-Bstatic' | |
13004 | fi | |
13005 | ;; | |
13006 | ||
13007 | amigaos*) | |
00aafda4 | 13008 | case $host_cpu in |
13009 | powerpc) | |
13010 | # see comment about AmigaOS4 .so support | |
13011 | lt_prog_compiler_pic_FC='-fPIC' | |
13012 | ;; | |
13013 | m68k) | |
13014 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13015 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13016 | # like `-m68040'. | |
13017 | lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' | |
13018 | ;; | |
13019 | esac | |
542f9784 | 13020 | ;; |
13021 | ||
13022 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13023 | # PIC is the default for these OSes. | |
13024 | ;; | |
13025 | ||
00aafda4 | 13026 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13027 | # This hack is so that the source file can tell whether it is being |
13028 | # built for inclusion in a dll (and should export symbols for example). | |
13029 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13030 | # (--disable-auto-import) libraries | |
13031 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13032 | ;; | |
13033 | ||
13034 | darwin* | rhapsody*) | |
13035 | # PIC is the default on this platform | |
13036 | # Common symbols not allowed in MH_DYLIB files | |
13037 | lt_prog_compiler_pic_FC='-fno-common' | |
13038 | ;; | |
13039 | ||
e6408286 | 13040 | haiku*) |
13041 | # PIC is the default for Haiku. | |
13042 | # The "-static" flag exists, but is broken. | |
13043 | lt_prog_compiler_static_FC= | |
13044 | ;; | |
13045 | ||
542f9784 | 13046 | hpux*) |
00aafda4 | 13047 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13048 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13049 | # sets the default TLS model and affects inlining. | |
542f9784 | 13050 | case $host_cpu in |
00aafda4 | 13051 | hppa*64*) |
542f9784 | 13052 | # +Z the default |
13053 | ;; | |
13054 | *) | |
13055 | lt_prog_compiler_pic_FC='-fPIC' | |
13056 | ;; | |
13057 | esac | |
13058 | ;; | |
13059 | ||
13060 | interix[3-9]*) | |
13061 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13062 | # Instead, we relocate shared libraries at runtime. | |
13063 | ;; | |
13064 | ||
13065 | msdosdjgpp*) | |
13066 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13067 | # on systems that don't support them. | |
13068 | lt_prog_compiler_can_build_shared_FC=no | |
13069 | enable_shared=no | |
13070 | ;; | |
13071 | ||
13072 | *nto* | *qnx*) | |
13073 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13074 | # it will coredump. | |
13075 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13076 | ;; | |
13077 | ||
13078 | sysv4*MP*) | |
13079 | if test -d /usr/nec; then | |
13080 | lt_prog_compiler_pic_FC=-Kconform_pic | |
13081 | fi | |
13082 | ;; | |
13083 | ||
13084 | *) | |
13085 | lt_prog_compiler_pic_FC='-fPIC' | |
13086 | ;; | |
13087 | esac | |
e6408286 | 13088 | |
13089 | case $cc_basename in | |
13090 | nvcc*) # Cuda Compiler Driver 2.2 | |
13091 | lt_prog_compiler_wl_FC='-Xlinker ' | |
13092 | lt_prog_compiler_pic_FC='-Xcompiler -fPIC' | |
13093 | ;; | |
13094 | esac | |
542f9784 | 13095 | else |
13096 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13097 | case $host_os in | |
13098 | aix*) | |
13099 | lt_prog_compiler_wl_FC='-Wl,' | |
13100 | if test "$host_cpu" = ia64; then | |
13101 | # AIX 5 now supports IA64 processor | |
13102 | lt_prog_compiler_static_FC='-Bstatic' | |
13103 | else | |
13104 | lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' | |
13105 | fi | |
13106 | ;; | |
542f9784 | 13107 | |
00aafda4 | 13108 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
542f9784 | 13109 | # This hack is so that the source file can tell whether it is being |
13110 | # built for inclusion in a dll (and should export symbols for example). | |
13111 | lt_prog_compiler_pic_FC='-DDLL_EXPORT' | |
13112 | ;; | |
13113 | ||
13114 | hpux9* | hpux10* | hpux11*) | |
13115 | lt_prog_compiler_wl_FC='-Wl,' | |
13116 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13117 | # not for PA HP-UX. | |
13118 | case $host_cpu in | |
13119 | hppa*64*|ia64*) | |
13120 | # +Z the default | |
13121 | ;; | |
13122 | *) | |
13123 | lt_prog_compiler_pic_FC='+Z' | |
13124 | ;; | |
13125 | esac | |
13126 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13127 | lt_prog_compiler_static_FC='${wl}-a ${wl}archive' | |
13128 | ;; | |
13129 | ||
13130 | irix5* | irix6* | nonstopux*) | |
13131 | lt_prog_compiler_wl_FC='-Wl,' | |
13132 | # PIC (with -KPIC) is the default. | |
13133 | lt_prog_compiler_static_FC='-non_shared' | |
13134 | ;; | |
13135 | ||
9af964d4 | 13136 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 13137 | case $cc_basename in |
00aafda4 | 13138 | # old Intel for x86_64 which still supported -KPIC. |
13139 | ecc*) | |
542f9784 | 13140 | lt_prog_compiler_wl_FC='-Wl,' |
13141 | lt_prog_compiler_pic_FC='-KPIC' | |
13142 | lt_prog_compiler_static_FC='-static' | |
13143 | ;; | |
00aafda4 | 13144 | # icc used to be incompatible with GCC. |
13145 | # ICC 10 doesn't accept -KPIC any more. | |
13146 | icc* | ifort*) | |
13147 | lt_prog_compiler_wl_FC='-Wl,' | |
13148 | lt_prog_compiler_pic_FC='-fPIC' | |
13149 | lt_prog_compiler_static_FC='-static' | |
13150 | ;; | |
13151 | # Lahey Fortran 8.1. | |
13152 | lf95*) | |
13153 | lt_prog_compiler_wl_FC='-Wl,' | |
13154 | lt_prog_compiler_pic_FC='--shared' | |
13155 | lt_prog_compiler_static_FC='--static' | |
13156 | ;; | |
e6408286 | 13157 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
542f9784 | 13158 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13159 | # which looks to be a dead project) | |
13160 | lt_prog_compiler_wl_FC='-Wl,' | |
13161 | lt_prog_compiler_pic_FC='-fpic' | |
13162 | lt_prog_compiler_static_FC='-Bstatic' | |
13163 | ;; | |
13164 | ccc*) | |
13165 | lt_prog_compiler_wl_FC='-Wl,' | |
13166 | # All Alpha code is PIC. | |
13167 | lt_prog_compiler_static_FC='-non_shared' | |
13168 | ;; | |
e6408286 | 13169 | xl* | bgxl* | bgf* | mpixl*) |
13170 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
00aafda4 | 13171 | lt_prog_compiler_wl_FC='-Wl,' |
13172 | lt_prog_compiler_pic_FC='-qpic' | |
13173 | lt_prog_compiler_static_FC='-qstaticlink' | |
13174 | ;; | |
542f9784 | 13175 | *) |
13176 | case `$CC -V 2>&1 | sed 5q` in | |
e6408286 | 13177 | *Sun\ F* | *Sun*Fortran*) |
13178 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
542f9784 | 13179 | lt_prog_compiler_pic_FC='-KPIC' |
13180 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13181 | lt_prog_compiler_wl_FC='' |
542f9784 | 13182 | ;; |
e6408286 | 13183 | *Sun\ C*) |
13184 | # Sun C 5.9 | |
542f9784 | 13185 | lt_prog_compiler_pic_FC='-KPIC' |
13186 | lt_prog_compiler_static_FC='-Bstatic' | |
e6408286 | 13187 | lt_prog_compiler_wl_FC='-Wl,' |
542f9784 | 13188 | ;; |
13189 | esac | |
13190 | ;; | |
13191 | esac | |
13192 | ;; | |
13193 | ||
13194 | newsos6) | |
13195 | lt_prog_compiler_pic_FC='-KPIC' | |
13196 | lt_prog_compiler_static_FC='-Bstatic' | |
13197 | ;; | |
13198 | ||
13199 | *nto* | *qnx*) | |
13200 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13201 | # it will coredump. | |
13202 | lt_prog_compiler_pic_FC='-fPIC -shared' | |
13203 | ;; | |
13204 | ||
13205 | osf3* | osf4* | osf5*) | |
13206 | lt_prog_compiler_wl_FC='-Wl,' | |
13207 | # All OSF/1 code is PIC. | |
13208 | lt_prog_compiler_static_FC='-non_shared' | |
13209 | ;; | |
13210 | ||
13211 | rdos*) | |
13212 | lt_prog_compiler_static_FC='-non_shared' | |
13213 | ;; | |
13214 | ||
13215 | solaris*) | |
13216 | lt_prog_compiler_pic_FC='-KPIC' | |
13217 | lt_prog_compiler_static_FC='-Bstatic' | |
13218 | case $cc_basename in | |
13219 | f77* | f90* | f95*) | |
13220 | lt_prog_compiler_wl_FC='-Qoption ld ';; | |
13221 | *) | |
13222 | lt_prog_compiler_wl_FC='-Wl,';; | |
13223 | esac | |
13224 | ;; | |
13225 | ||
13226 | sunos4*) | |
13227 | lt_prog_compiler_wl_FC='-Qoption ld ' | |
13228 | lt_prog_compiler_pic_FC='-PIC' | |
13229 | lt_prog_compiler_static_FC='-Bstatic' | |
13230 | ;; | |
13231 | ||
13232 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
13233 | lt_prog_compiler_wl_FC='-Wl,' | |
13234 | lt_prog_compiler_pic_FC='-KPIC' | |
13235 | lt_prog_compiler_static_FC='-Bstatic' | |
13236 | ;; | |
13237 | ||
13238 | sysv4*MP*) | |
13239 | if test -d /usr/nec ;then | |
13240 | lt_prog_compiler_pic_FC='-Kconform_pic' | |
13241 | lt_prog_compiler_static_FC='-Bstatic' | |
13242 | fi | |
13243 | ;; | |
13244 | ||
13245 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13246 | lt_prog_compiler_wl_FC='-Wl,' | |
13247 | lt_prog_compiler_pic_FC='-KPIC' | |
13248 | lt_prog_compiler_static_FC='-Bstatic' | |
13249 | ;; | |
13250 | ||
13251 | unicos*) | |
13252 | lt_prog_compiler_wl_FC='-Wl,' | |
13253 | lt_prog_compiler_can_build_shared_FC=no | |
13254 | ;; | |
13255 | ||
13256 | uts4*) | |
13257 | lt_prog_compiler_pic_FC='-pic' | |
13258 | lt_prog_compiler_static_FC='-Bstatic' | |
13259 | ;; | |
13260 | ||
13261 | *) | |
13262 | lt_prog_compiler_can_build_shared_FC=no | |
13263 | ;; | |
13264 | esac | |
13265 | fi | |
13266 | ||
13267 | case $host_os in | |
13268 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13269 | *djgpp*) | |
13270 | lt_prog_compiler_pic_FC= | |
13271 | ;; | |
13272 | *) | |
13273 | lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" | |
13274 | ;; | |
13275 | esac | |
cd9a469c | 13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 |
13277 | $as_echo "$lt_prog_compiler_pic_FC" >&6; } | |
542f9784 | 13278 | |
13279 | ||
13280 | ||
13281 | # | |
13282 | # Check to make sure the PIC flag actually works. | |
13283 | # | |
13284 | if test -n "$lt_prog_compiler_pic_FC"; then | |
cd9a469c | 13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 |
13286 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } | |
13287 | if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then : | |
13288 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13289 | else |
00aafda4 | 13290 | lt_cv_prog_compiler_pic_works_FC=no |
542f9784 | 13291 | ac_outfile=conftest.$ac_objext |
13292 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13293 | lt_compiler_flag="$lt_prog_compiler_pic_FC" | |
13294 | # Insert the option either (1) after the last *FLAGS variable, or | |
13295 | # (2) before a word containing "conftest.", or (3) at the end. | |
13296 | # Note that $ac_compile itself does not contain backslashes and begins | |
13297 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13298 | # The option is referenced via a variable to avoid confusing sed. | |
13299 | lt_compile=`echo "$ac_compile" | $SED \ | |
13300 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13301 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13302 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13303 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13304 | (eval "$lt_compile" 2>conftest.err) |
13305 | ac_status=$? | |
13306 | cat conftest.err >&5 | |
e6408286 | 13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13308 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13309 | # The compiler can only warn and ignore the option if not recognized | |
13310 | # So say no if there are warnings other than the usual output. | |
e6408286 | 13311 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
542f9784 | 13312 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13313 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13314 | lt_cv_prog_compiler_pic_works_FC=yes |
542f9784 | 13315 | fi |
13316 | fi | |
13317 | $RM conftest* | |
13318 | ||
13319 | fi | |
cd9a469c | 13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 |
13321 | $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } | |
542f9784 | 13322 | |
00aafda4 | 13323 | if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then |
542f9784 | 13324 | case $lt_prog_compiler_pic_FC in |
13325 | "" | " "*) ;; | |
13326 | *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; | |
13327 | esac | |
13328 | else | |
13329 | lt_prog_compiler_pic_FC= | |
13330 | lt_prog_compiler_can_build_shared_FC=no | |
13331 | fi | |
13332 | ||
13333 | fi | |
13334 | ||
13335 | ||
13336 | ||
13337 | # | |
13338 | # Check to make sure the static flag actually works. | |
13339 | # | |
13340 | wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" | |
cd9a469c | 13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
13342 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13343 | if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then : | |
13344 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13345 | else |
00aafda4 | 13346 | lt_cv_prog_compiler_static_works_FC=no |
542f9784 | 13347 | save_LDFLAGS="$LDFLAGS" |
13348 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13349 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13350 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13351 | # The linker can only warn and ignore the option if not recognized | |
13352 | # So say no if there are warnings | |
13353 | if test -s conftest.err; then | |
13354 | # Append any errors to the config.log. | |
13355 | cat conftest.err 1>&5 | |
e6408286 | 13356 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
542f9784 | 13357 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13358 | if diff conftest.exp conftest.er2 >/dev/null; then | |
00aafda4 | 13359 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13360 | fi |
13361 | else | |
00aafda4 | 13362 | lt_cv_prog_compiler_static_works_FC=yes |
542f9784 | 13363 | fi |
13364 | fi | |
00aafda4 | 13365 | $RM -r conftest* |
542f9784 | 13366 | LDFLAGS="$save_LDFLAGS" |
13367 | ||
13368 | fi | |
cd9a469c | 13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 |
13370 | $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } | |
542f9784 | 13371 | |
00aafda4 | 13372 | if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then |
542f9784 | 13373 | : |
13374 | else | |
13375 | lt_prog_compiler_static_FC= | |
13376 | fi | |
13377 | ||
13378 | ||
13379 | ||
13380 | ||
cd9a469c | 13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13382 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13383 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then : | |
13384 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13385 | else |
13386 | lt_cv_prog_compiler_c_o_FC=no | |
13387 | $RM -r conftest 2>/dev/null | |
13388 | mkdir conftest | |
13389 | cd conftest | |
13390 | mkdir out | |
13391 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13392 | ||
13393 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13394 | # Insert the option either (1) after the last *FLAGS variable, or | |
13395 | # (2) before a word containing "conftest.", or (3) at the end. | |
13396 | # Note that $ac_compile itself does not contain backslashes and begins | |
13397 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13398 | lt_compile=`echo "$ac_compile" | $SED \ | |
13399 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13400 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13401 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13402 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13403 | (eval "$lt_compile" 2>out/conftest.err) |
13404 | ac_status=$? | |
13405 | cat out/conftest.err >&5 | |
e6408286 | 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13407 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13408 | then | |
13409 | # The compiler can only warn and ignore the option if not recognized | |
13410 | # So say no if there are warnings | |
e6408286 | 13411 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 13412 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13413 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13414 | lt_cv_prog_compiler_c_o_FC=yes | |
13415 | fi | |
13416 | fi | |
13417 | chmod u+w . 2>&5 | |
13418 | $RM conftest* | |
13419 | # SGI C++ compiler will create directory out/ii_files/ for | |
13420 | # template instantiation | |
13421 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13422 | $RM out/* && rmdir out | |
13423 | cd .. | |
13424 | $RM -r conftest | |
13425 | $RM conftest* | |
13426 | ||
13427 | fi | |
cd9a469c | 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
13429 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 13430 | |
13431 | ||
13432 | ||
cd9a469c | 13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13434 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13435 | if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then : | |
13436 | $as_echo_n "(cached) " >&6 | |
542f9784 | 13437 | else |
13438 | lt_cv_prog_compiler_c_o_FC=no | |
13439 | $RM -r conftest 2>/dev/null | |
13440 | mkdir conftest | |
13441 | cd conftest | |
13442 | mkdir out | |
13443 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13444 | ||
13445 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13446 | # Insert the option either (1) after the last *FLAGS variable, or | |
13447 | # (2) before a word containing "conftest.", or (3) at the end. | |
13448 | # Note that $ac_compile itself does not contain backslashes and begins | |
13449 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13450 | lt_compile=`echo "$ac_compile" | $SED \ | |
13451 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13452 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13453 | -e 's:$: $lt_compiler_flag:'` | |
e6408286 | 13454 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
542f9784 | 13455 | (eval "$lt_compile" 2>out/conftest.err) |
13456 | ac_status=$? | |
13457 | cat out/conftest.err >&5 | |
e6408286 | 13458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
542f9784 | 13459 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13460 | then | |
13461 | # The compiler can only warn and ignore the option if not recognized | |
13462 | # So say no if there are warnings | |
e6408286 | 13463 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
542f9784 | 13464 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
13465 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13466 | lt_cv_prog_compiler_c_o_FC=yes | |
13467 | fi | |
13468 | fi | |
13469 | chmod u+w . 2>&5 | |
13470 | $RM conftest* | |
13471 | # SGI C++ compiler will create directory out/ii_files/ for | |
13472 | # template instantiation | |
13473 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13474 | $RM out/* && rmdir out | |
13475 | cd .. | |
13476 | $RM -r conftest | |
13477 | $RM conftest* | |
13478 | ||
13479 | fi | |
cd9a469c | 13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 |
13481 | $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } | |
542f9784 | 13482 | |
13483 | ||
13484 | ||
13485 | ||
13486 | hard_links="nottested" | |
13487 | if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then | |
13488 | # do not overwrite the value of need_locks provided by the user | |
cd9a469c | 13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
13490 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
542f9784 | 13491 | hard_links=yes |
13492 | $RM conftest* | |
13493 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13494 | touch conftest.a | |
13495 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13496 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
cd9a469c | 13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
13498 | $as_echo "$hard_links" >&6; } | |
542f9784 | 13499 | if test "$hard_links" = no; then |
cd9a469c | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13501 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
542f9784 | 13502 | need_locks=warn |
13503 | fi | |
13504 | else | |
13505 | need_locks=no | |
13506 | fi | |
13507 | ||
13508 | ||
13509 | ||
cd9a469c | 13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13511 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
542f9784 | 13512 | |
13513 | runpath_var= | |
13514 | allow_undefined_flag_FC= | |
13515 | always_export_symbols_FC=no | |
13516 | archive_cmds_FC= | |
13517 | archive_expsym_cmds_FC= | |
13518 | compiler_needs_object_FC=no | |
13519 | enable_shared_with_static_runtimes_FC=no | |
13520 | export_dynamic_flag_spec_FC= | |
13521 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13522 | hardcode_automatic_FC=no | |
13523 | hardcode_direct_FC=no | |
13524 | hardcode_direct_absolute_FC=no | |
13525 | hardcode_libdir_flag_spec_FC= | |
13526 | hardcode_libdir_flag_spec_ld_FC= | |
13527 | hardcode_libdir_separator_FC= | |
13528 | hardcode_minus_L_FC=no | |
13529 | hardcode_shlibpath_var_FC=unsupported | |
13530 | inherit_rpath_FC=no | |
13531 | link_all_deplibs_FC=unknown | |
13532 | module_cmds_FC= | |
13533 | module_expsym_cmds_FC= | |
13534 | old_archive_from_new_cmds_FC= | |
13535 | old_archive_from_expsyms_cmds_FC= | |
13536 | thread_safe_flag_spec_FC= | |
13537 | whole_archive_flag_spec_FC= | |
13538 | # include_expsyms should be a list of space-separated symbols to be *always* | |
13539 | # included in the symbol list | |
13540 | include_expsyms_FC= | |
13541 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
13542 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13543 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13544 | # as well as any symbol that contains `d'. | |
00aafda4 | 13545 | exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
542f9784 | 13546 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13547 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
13548 | # the symbol is explicitly referenced. Since portable code cannot | |
13549 | # rely on this symbol name, it's probably fine to never include it in | |
13550 | # preloaded symbol tables. | |
00aafda4 | 13551 | # Exclude shared library initialization/finalization symbols. |
542f9784 | 13552 | extract_expsyms_cmds= |
13553 | ||
13554 | case $host_os in | |
00aafda4 | 13555 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 13556 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
13557 | # When not using gcc, we currently assume that we are using | |
13558 | # Microsoft Visual C++. | |
13559 | if test "$GCC" != yes; then | |
13560 | with_gnu_ld=no | |
13561 | fi | |
13562 | ;; | |
13563 | interix*) | |
13564 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
13565 | with_gnu_ld=yes | |
13566 | ;; | |
13567 | openbsd*) | |
13568 | with_gnu_ld=no | |
13569 | ;; | |
13570 | esac | |
13571 | ||
13572 | ld_shlibs_FC=yes | |
e6408286 | 13573 | |
13574 | # On some targets, GNU ld is compatible enough with the native linker | |
13575 | # that we're better off using the native interface for both. | |
13576 | lt_use_gnu_ld_interface=no | |
542f9784 | 13577 | if test "$with_gnu_ld" = yes; then |
e6408286 | 13578 | case $host_os in |
13579 | aix*) | |
13580 | # The AIX port of GNU ld has always aspired to compatibility | |
13581 | # with the native linker. However, as the warning in the GNU ld | |
13582 | # block says, versions before 2.19.5* couldn't really create working | |
13583 | # shared libraries, regardless of the interface used. | |
13584 | case `$LD -v 2>&1` in | |
13585 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
13586 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
13587 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
13588 | *) | |
13589 | lt_use_gnu_ld_interface=yes | |
13590 | ;; | |
13591 | esac | |
13592 | ;; | |
13593 | *) | |
13594 | lt_use_gnu_ld_interface=yes | |
13595 | ;; | |
13596 | esac | |
13597 | fi | |
13598 | ||
13599 | if test "$lt_use_gnu_ld_interface" = yes; then | |
542f9784 | 13600 | # If archive_cmds runs LD, not CC, wlarc should be empty |
13601 | wlarc='${wl}' | |
13602 | ||
13603 | # Set some defaults for GNU ld with shared library support. These | |
13604 | # are reset later if shared libraries are not supported. Putting them | |
13605 | # here allows them to be overridden if necessary. | |
13606 | runpath_var=LD_RUN_PATH | |
13607 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13608 | export_dynamic_flag_spec_FC='${wl}--export-dynamic' | |
13609 | # ancient GNU ld didn't support --whole-archive et. al. | |
13610 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
13611 | whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13612 | else | |
13613 | whole_archive_flag_spec_FC= | |
13614 | fi | |
13615 | supports_anon_versioning=no | |
13616 | case `$LD -v 2>&1` in | |
e6408286 | 13617 | *GNU\ gold*) supports_anon_versioning=yes ;; |
542f9784 | 13618 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13619 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13620 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13621 | *\ 2.11.*) ;; # other 2.11 versions | |
13622 | *) supports_anon_versioning=yes ;; | |
13623 | esac | |
13624 | ||
13625 | # See if GNU ld supports shared libraries. | |
13626 | case $host_os in | |
21e07d2f | 13627 | aix[3-9]*) |
542f9784 | 13628 | # On AIX/PPC, the GNU linker is very broken |
13629 | if test "$host_cpu" != ia64; then | |
13630 | ld_shlibs_FC=no | |
13631 | cat <<_LT_EOF 1>&2 | |
13632 | ||
e6408286 | 13633 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
542f9784 | 13634 | *** to be unable to reliably create shared libraries on AIX. |
13635 | *** Therefore, libtool is disabling shared libraries support. If you | |
e6408286 | 13636 | *** really care for shared libraries, you may want to install binutils |
13637 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
13638 | *** You will then need to restart the configuration process. | |
542f9784 | 13639 | |
13640 | _LT_EOF | |
13641 | fi | |
13642 | ;; | |
13643 | ||
13644 | amigaos*) | |
00aafda4 | 13645 | case $host_cpu in |
13646 | powerpc) | |
13647 | # see comment about AmigaOS4 .so support | |
13648 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13649 | archive_expsym_cmds_FC='' | |
13650 | ;; | |
13651 | m68k) | |
13652 | 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)' | |
13653 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13654 | hardcode_minus_L_FC=yes | |
13655 | ;; | |
13656 | esac | |
542f9784 | 13657 | ;; |
13658 | ||
13659 | beos*) | |
13660 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13661 | allow_undefined_flag_FC=unsupported | |
13662 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13663 | # support --undefined. This deserves some investigation. FIXME | |
13664 | archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13665 | else | |
13666 | ld_shlibs_FC=no | |
13667 | fi | |
13668 | ;; | |
13669 | ||
00aafda4 | 13670 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 13671 | # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, |
13672 | # as there is no search path for DLLs. | |
13673 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
e6408286 | 13674 | export_dynamic_flag_spec_FC='${wl}--export-all-symbols' |
542f9784 | 13675 | allow_undefined_flag_FC=unsupported |
13676 | always_export_symbols_FC=no | |
13677 | enable_shared_with_static_runtimes_FC=yes | |
13678 | export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
13679 | ||
13680 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13681 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13682 | # If the export-symbols file already is a .def file (1st line | |
13683 | # is EXPORTS), use it as is; otherwise, prepend... | |
13684 | archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13685 | cp $export_symbols $output_objdir/$soname.def; | |
13686 | else | |
13687 | echo EXPORTS > $output_objdir/$soname.def; | |
13688 | cat $export_symbols >> $output_objdir/$soname.def; | |
13689 | fi~ | |
13690 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13691 | else | |
13692 | ld_shlibs_FC=no | |
13693 | fi | |
13694 | ;; | |
13695 | ||
e6408286 | 13696 | haiku*) |
13697 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13698 | link_all_deplibs_FC=yes | |
13699 | ;; | |
13700 | ||
542f9784 | 13701 | interix[3-9]*) |
13702 | hardcode_direct_FC=no | |
13703 | hardcode_shlibpath_var_FC=no | |
13704 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
13705 | export_dynamic_flag_spec_FC='${wl}-E' | |
13706 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13707 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13708 | # default) and relocated if they conflict, which is a slow very memory | |
13709 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13710 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13711 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13712 | 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' | |
13713 | 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' | |
13714 | ;; | |
13715 | ||
9af964d4 | 13716 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 13717 | tmp_diet=no |
13718 | if test "$host_os" = linux-dietlibc; then | |
13719 | case $cc_basename in | |
13720 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
13721 | esac | |
13722 | fi | |
13723 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
13724 | && test "$tmp_diet" = no | |
13725 | then | |
13726 | tmp_addflag= | |
00aafda4 | 13727 | tmp_sharedflag='-shared' |
542f9784 | 13728 | case $cc_basename,$host_cpu in |
13729 | pgcc*) # Portland Group C compiler | |
e6408286 | 13730 | 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 | 13731 | tmp_addflag=' $pic_flag' |
13732 | ;; | |
e6408286 | 13733 | pgf77* | pgf90* | pgf95* | pgfortran*) |
13734 | # Portland Group f77 and f90 compilers | |
13735 | 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 | 13736 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13737 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13738 | tmp_addflag=' -i_dynamic' ;; | |
13739 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13740 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13741 | ifc* | ifort*) # Intel Fortran compiler | |
13742 | tmp_addflag=' -nofor_main' ;; | |
00aafda4 | 13743 | lf95*) # Lahey Fortran 8.1 |
13744 | whole_archive_flag_spec_FC= | |
13745 | tmp_sharedflag='--shared' ;; | |
e6408286 | 13746 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
00aafda4 | 13747 | tmp_sharedflag='-qmkshrobj' |
13748 | tmp_addflag= ;; | |
e6408286 | 13749 | nvcc*) # Cuda Compiler Driver 2.2 |
13750 | 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' | |
13751 | compiler_needs_object_FC=yes | |
13752 | ;; | |
542f9784 | 13753 | esac |
13754 | case `$CC -V 2>&1 | sed 5q` in | |
13755 | *Sun\ C*) # Sun C 5.9 | |
e6408286 | 13756 | 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 | 13757 | compiler_needs_object_FC=yes |
13758 | tmp_sharedflag='-G' ;; | |
13759 | *Sun\ F*) # Sun Fortran 8.3 | |
13760 | tmp_sharedflag='-G' ;; | |
542f9784 | 13761 | esac |
13762 | archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13763 | ||
13764 | if test "x$supports_anon_versioning" = xyes; then | |
13765 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13766 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13767 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13768 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13769 | fi | |
00aafda4 | 13770 | |
13771 | case $cc_basename in | |
e6408286 | 13772 | xlf* | bgf* | bgxlf* | mpixlf*) |
00aafda4 | 13773 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
13774 | whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' | |
13775 | hardcode_libdir_flag_spec_FC= | |
13776 | hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' | |
13777 | archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
13778 | if test "x$supports_anon_versioning" = xyes; then | |
13779 | archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ | |
13780 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13781 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13782 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
13783 | fi | |
13784 | ;; | |
13785 | esac | |
542f9784 | 13786 | else |
13787 | ld_shlibs_FC=no | |
13788 | fi | |
13789 | ;; | |
13790 | ||
13791 | netbsd*) | |
13792 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13793 | archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13794 | wlarc= | |
13795 | else | |
13796 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13797 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13798 | fi | |
13799 | ;; | |
13800 | ||
13801 | solaris*) | |
13802 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
13803 | ld_shlibs_FC=no | |
13804 | cat <<_LT_EOF 1>&2 | |
13805 | ||
13806 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13807 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13808 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13809 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13810 | *** your PATH or compiler configuration so that the native linker is | |
13811 | *** used, and then restart. | |
13812 | ||
13813 | _LT_EOF | |
13814 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13815 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13816 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13817 | else | |
13818 | ld_shlibs_FC=no | |
13819 | fi | |
13820 | ;; | |
13821 | ||
13822 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13823 | case `$LD -v 2>&1` in | |
13824 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13825 | ld_shlibs_FC=no | |
13826 | cat <<_LT_EOF 1>&2 | |
13827 | ||
13828 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13829 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13830 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13831 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13832 | *** your PATH or compiler configuration so that the native linker is | |
13833 | *** used, and then restart. | |
13834 | ||
13835 | _LT_EOF | |
13836 | ;; | |
13837 | *) | |
13838 | # For security reasons, it is highly recommended that you always | |
13839 | # use absolute paths for naming shared libraries, and exclude the | |
13840 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13841 | # requires that you compile everything twice, which is a pain. | |
13842 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13843 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
13844 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13845 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13846 | else | |
13847 | ld_shlibs_FC=no | |
13848 | fi | |
13849 | ;; | |
13850 | esac | |
13851 | ;; | |
13852 | ||
13853 | sunos4*) | |
13854 | archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13855 | wlarc= | |
13856 | hardcode_direct_FC=yes | |
13857 | hardcode_shlibpath_var_FC=no | |
13858 | ;; | |
13859 | ||
13860 | *) | |
13861 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13862 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13863 | archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13864 | else | |
13865 | ld_shlibs_FC=no | |
13866 | fi | |
13867 | ;; | |
13868 | esac | |
13869 | ||
13870 | if test "$ld_shlibs_FC" = no; then | |
13871 | runpath_var= | |
13872 | hardcode_libdir_flag_spec_FC= | |
13873 | export_dynamic_flag_spec_FC= | |
13874 | whole_archive_flag_spec_FC= | |
13875 | fi | |
13876 | else | |
13877 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13878 | case $host_os in | |
13879 | aix3*) | |
13880 | allow_undefined_flag_FC=unsupported | |
13881 | always_export_symbols_FC=yes | |
13882 | 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' | |
13883 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13884 | # are no directories specified by -L. | |
13885 | hardcode_minus_L_FC=yes | |
13886 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13887 | # Neither direct hardcoding nor static linking is supported with a | |
13888 | # broken collect2. | |
13889 | hardcode_direct_FC=unsupported | |
13890 | fi | |
13891 | ;; | |
13892 | ||
21e07d2f | 13893 | aix[4-9]*) |
542f9784 | 13894 | if test "$host_cpu" = ia64; then |
13895 | # On IA64, the linker does run time linking by default, so we don't | |
13896 | # have to do anything special. | |
13897 | aix_use_runtimelinking=no | |
13898 | exp_sym_flag='-Bexport' | |
13899 | no_entry_flag="" | |
13900 | else | |
13901 | # If we're using GNU nm, then we don't want the "-C" option. | |
13902 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
e6408286 | 13903 | # Also, AIX nm treats weak defined symbols like other global |
13904 | # defined symbols, whereas GNU nm marks them as "W". | |
542f9784 | 13905 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
e6408286 | 13906 | 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 | 13907 | else |
13908 | export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13909 | fi | |
13910 | aix_use_runtimelinking=no | |
13911 | ||
13912 | # Test if we are trying to use run time linking or normal | |
13913 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13914 | # need to do runtime linking. | |
21e07d2f | 13915 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
542f9784 | 13916 | for ld_flag in $LDFLAGS; do |
13917 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13918 | aix_use_runtimelinking=yes | |
13919 | break | |
13920 | fi | |
13921 | done | |
13922 | ;; | |
13923 | esac | |
13924 | ||
13925 | exp_sym_flag='-bexport' | |
13926 | no_entry_flag='-bnoentry' | |
13927 | fi | |
13928 | ||
13929 | # When large executables or shared objects are built, AIX ld can | |
13930 | # have problems creating the table of contents. If linking a library | |
13931 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13932 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13933 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13934 | ||
13935 | archive_cmds_FC='' | |
13936 | hardcode_direct_FC=yes | |
13937 | hardcode_direct_absolute_FC=yes | |
13938 | hardcode_libdir_separator_FC=':' | |
13939 | link_all_deplibs_FC=yes | |
13940 | file_list_spec_FC='${wl}-f,' | |
13941 | ||
13942 | if test "$GCC" = yes; then | |
13943 | case $host_os in aix4.[012]|aix4.[012].*) | |
13944 | # We only want to do this on AIX 4.2 and lower, the check | |
13945 | # below for broken collect2 doesn't work under 4.3+ | |
13946 | collect2name=`${CC} -print-prog-name=collect2` | |
13947 | if test -f "$collect2name" && | |
13948 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13949 | then | |
13950 | # We have reworked collect2 | |
13951 | : | |
13952 | else | |
13953 | # We have old collect2 | |
13954 | hardcode_direct_FC=unsupported | |
13955 | # It fails to find uninstalled libraries when the uninstalled | |
13956 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13957 | # to unsupported forces relinking | |
13958 | hardcode_minus_L_FC=yes | |
13959 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
13960 | hardcode_libdir_separator_FC= | |
13961 | fi | |
13962 | ;; | |
13963 | esac | |
13964 | shared_flag='-shared' | |
13965 | if test "$aix_use_runtimelinking" = yes; then | |
13966 | shared_flag="$shared_flag "'${wl}-G' | |
13967 | fi | |
13968 | else | |
13969 | # not using gcc | |
13970 | if test "$host_cpu" = ia64; then | |
13971 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13972 | # chokes on -Wl,-G. The following line is correct: | |
13973 | shared_flag='-G' | |
13974 | else | |
13975 | if test "$aix_use_runtimelinking" = yes; then | |
13976 | shared_flag='${wl}-G' | |
13977 | else | |
13978 | shared_flag='${wl}-bM:SRE' | |
13979 | fi | |
13980 | fi | |
13981 | fi | |
13982 | ||
00aafda4 | 13983 | export_dynamic_flag_spec_FC='${wl}-bexpall' |
542f9784 | 13984 | # It seems that -bexpall does not export symbols beginning with |
13985 | # underscore (_), so it is better to generate a list of symbols to export. | |
13986 | always_export_symbols_FC=yes | |
13987 | if test "$aix_use_runtimelinking" = yes; then | |
13988 | # Warning - without using the other runtime loading flags (-brtl), | |
13989 | # -berok will link without error, but may produce a broken library. | |
13990 | allow_undefined_flag_FC='-berok' | |
13991 | # Determine the default libpath from the value encoded in an | |
13992 | # empty executable. | |
13993 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 13994 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 13995 | fi |
cd9a469c | 13996 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 13997 | program main |
13998 | ||
13999 | end | |
14000 | _ACEOF | |
cd9a469c | 14001 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14002 | |
14003 | lt_aix_libpath_sed=' | |
14004 | /Import File Strings/,/^$/ { | |
14005 | /^0/ { | |
14006 | s/^0 *\(.*\)$/\1/ | |
14007 | p | |
14008 | } | |
14009 | }' | |
14010 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14011 | # Check for a 64-bit object if we didn't find anything. | |
14012 | if test -z "$aix_libpath"; then | |
14013 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14014 | fi | |
542f9784 | 14015 | fi |
cd9a469c | 14016 | rm -f core conftest.err conftest.$ac_objext \ |
14017 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14018 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14019 | ||
14020 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
e6408286 | 14021 | 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 | 14022 | else |
14023 | if test "$host_cpu" = ia64; then | |
14024 | hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' | |
14025 | allow_undefined_flag_FC="-z nodefs" | |
14026 | 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" | |
14027 | else | |
14028 | # Determine the default libpath from the value encoded in an | |
14029 | # empty executable. | |
14030 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 14031 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14032 | fi |
cd9a469c | 14033 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14034 | program main |
14035 | ||
14036 | end | |
14037 | _ACEOF | |
cd9a469c | 14038 | if ac_fn_fc_try_link "$LINENO"; then : |
542f9784 | 14039 | |
14040 | lt_aix_libpath_sed=' | |
14041 | /Import File Strings/,/^$/ { | |
14042 | /^0/ { | |
14043 | s/^0 *\(.*\)$/\1/ | |
14044 | p | |
14045 | } | |
14046 | }' | |
14047 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14048 | # Check for a 64-bit object if we didn't find anything. | |
14049 | if test -z "$aix_libpath"; then | |
14050 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14051 | fi | |
542f9784 | 14052 | fi |
cd9a469c | 14053 | rm -f core conftest.err conftest.$ac_objext \ |
14054 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14055 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14056 | ||
14057 | hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14058 | # Warning - without using the other run time loading flags, | |
14059 | # -berok will link without error, but may produce a broken library. | |
14060 | no_undefined_flag_FC=' ${wl}-bernotok' | |
14061 | allow_undefined_flag_FC=' ${wl}-berok' | |
e6408286 | 14062 | if test "$with_gnu_ld" = yes; then |
14063 | # We only use this code for GNU lds that support --whole-archive. | |
14064 | whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14065 | else | |
14066 | # Exported symbols can be pulled into shared objects from archives | |
14067 | whole_archive_flag_spec_FC='$convenience' | |
14068 | fi | |
542f9784 | 14069 | archive_cmds_need_lc_FC=yes |
14070 | # This is similar to how AIX traditionally builds its shared libraries. | |
14071 | 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' | |
14072 | fi | |
14073 | fi | |
14074 | ;; | |
14075 | ||
14076 | amigaos*) | |
00aafda4 | 14077 | case $host_cpu in |
14078 | powerpc) | |
14079 | # see comment about AmigaOS4 .so support | |
14080 | archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14081 | archive_expsym_cmds_FC='' | |
14082 | ;; | |
14083 | m68k) | |
14084 | 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)' | |
14085 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14086 | hardcode_minus_L_FC=yes | |
14087 | ;; | |
14088 | esac | |
542f9784 | 14089 | ;; |
14090 | ||
14091 | bsdi[45]*) | |
14092 | export_dynamic_flag_spec_FC=-rdynamic | |
14093 | ;; | |
14094 | ||
00aafda4 | 14095 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14096 | # When not using gcc, we currently assume that we are using |
14097 | # Microsoft Visual C++. | |
14098 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14099 | # no search path for DLLs. | |
14100 | hardcode_libdir_flag_spec_FC=' ' | |
14101 | allow_undefined_flag_FC=unsupported | |
14102 | # Tell ltmain to make .lib files, not .a files. | |
14103 | libext=lib | |
14104 | # Tell ltmain to make .dll files, not .so files. | |
14105 | shrext_cmds=".dll" | |
14106 | # FIXME: Setting linknames here is a bad hack. | |
e6408286 | 14107 | archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
542f9784 | 14108 | # The linker will automatically build a .lib file if we build a DLL. |
14109 | old_archive_from_new_cmds_FC='true' | |
14110 | # FIXME: Should let the user specify the lib program. | |
14111 | old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
14112 | fix_srcfile_path_FC='`cygpath -w "$srcfile"`' | |
14113 | enable_shared_with_static_runtimes_FC=yes | |
14114 | ;; | |
14115 | ||
14116 | darwin* | rhapsody*) | |
542f9784 | 14117 | |
00aafda4 | 14118 | |
14119 | archive_cmds_need_lc_FC=no | |
14120 | hardcode_direct_FC=no | |
14121 | hardcode_automatic_FC=yes | |
14122 | hardcode_shlibpath_var_FC=unsupported | |
e6408286 | 14123 | if test "$lt_cv_ld_force_load" = "yes"; then |
14124 | 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\"`' | |
14125 | else | |
14126 | whole_archive_flag_spec_FC='' | |
14127 | fi | |
00aafda4 | 14128 | link_all_deplibs_FC=yes |
14129 | allow_undefined_flag_FC="$_lt_dar_allow_undefined" | |
14130 | case $cc_basename in | |
14131 | ifort*) _lt_dar_can_shared=yes ;; | |
14132 | *) _lt_dar_can_shared=$GCC ;; | |
14133 | esac | |
14134 | if test "$_lt_dar_can_shared" = "yes"; then | |
e6408286 | 14135 | output_verbose_link_cmd=func_echo_all |
00aafda4 | 14136 | 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}" |
14137 | module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14138 | 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}" | |
14139 | 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}" | |
14140 | ||
14141 | else | |
14142 | ld_shlibs_FC=no | |
14143 | fi | |
14144 | ||
542f9784 | 14145 | ;; |
14146 | ||
14147 | dgux*) | |
14148 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14149 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14150 | hardcode_shlibpath_var_FC=no | |
14151 | ;; | |
14152 | ||
542f9784 | 14153 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14154 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14155 | # does not break anything, and helps significantly (at the cost of a little | |
14156 | # extra space). | |
14157 | freebsd2.2*) | |
14158 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14159 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14160 | hardcode_direct_FC=yes | |
14161 | hardcode_shlibpath_var_FC=no | |
14162 | ;; | |
14163 | ||
14164 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14165 | freebsd2*) | |
14166 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14167 | hardcode_direct_FC=yes | |
14168 | hardcode_minus_L_FC=yes | |
14169 | hardcode_shlibpath_var_FC=no | |
14170 | ;; | |
14171 | ||
14172 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14173 | freebsd* | dragonfly*) | |
14174 | archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14175 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14176 | hardcode_direct_FC=yes | |
14177 | hardcode_shlibpath_var_FC=no | |
14178 | ;; | |
14179 | ||
14180 | hpux9*) | |
14181 | if test "$GCC" = yes; then | |
14182 | 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' | |
14183 | else | |
14184 | 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' | |
14185 | fi | |
14186 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14187 | hardcode_libdir_separator_FC=: | |
14188 | hardcode_direct_FC=yes | |
14189 | ||
14190 | # hardcode_minus_L: Not really in the search PATH, | |
14191 | # but as the default location of the library. | |
14192 | hardcode_minus_L_FC=yes | |
14193 | export_dynamic_flag_spec_FC='${wl}-E' | |
14194 | ;; | |
14195 | ||
14196 | hpux10*) | |
e6408286 | 14197 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14198 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14199 | else | |
14200 | archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14201 | fi | |
14202 | if test "$with_gnu_ld" = no; then | |
14203 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14204 | hardcode_libdir_flag_spec_ld_FC='+b $libdir' | |
14205 | hardcode_libdir_separator_FC=: | |
14206 | hardcode_direct_FC=yes | |
14207 | hardcode_direct_absolute_FC=yes | |
14208 | export_dynamic_flag_spec_FC='${wl}-E' | |
14209 | # hardcode_minus_L: Not really in the search PATH, | |
14210 | # but as the default location of the library. | |
14211 | hardcode_minus_L_FC=yes | |
14212 | fi | |
14213 | ;; | |
14214 | ||
14215 | hpux11*) | |
e6408286 | 14216 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
542f9784 | 14217 | case $host_cpu in |
14218 | hppa*64*) | |
14219 | archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14220 | ;; | |
14221 | ia64*) | |
00aafda4 | 14222 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14223 | ;; |
14224 | *) | |
14225 | archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14226 | ;; | |
14227 | esac | |
14228 | else | |
14229 | case $host_cpu in | |
14230 | hppa*64*) | |
14231 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14232 | ;; | |
14233 | ia64*) | |
14234 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14235 | ;; | |
14236 | *) | |
e6408286 | 14237 | archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
542f9784 | 14238 | ;; |
14239 | esac | |
14240 | fi | |
14241 | if test "$with_gnu_ld" = no; then | |
14242 | hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' | |
14243 | hardcode_libdir_separator_FC=: | |
14244 | ||
14245 | case $host_cpu in | |
14246 | hppa*64*|ia64*) | |
14247 | hardcode_direct_FC=no | |
14248 | hardcode_shlibpath_var_FC=no | |
14249 | ;; | |
14250 | *) | |
14251 | hardcode_direct_FC=yes | |
14252 | hardcode_direct_absolute_FC=yes | |
14253 | export_dynamic_flag_spec_FC='${wl}-E' | |
14254 | ||
14255 | # hardcode_minus_L: Not really in the search PATH, | |
14256 | # but as the default location of the library. | |
14257 | hardcode_minus_L_FC=yes | |
14258 | ;; | |
14259 | esac | |
14260 | fi | |
14261 | ;; | |
14262 | ||
14263 | irix5* | irix6* | nonstopux*) | |
14264 | if test "$GCC" = yes; then | |
e6408286 | 14265 | 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 | 14266 | # Try to use the -exported_symbol ld option, if it does not |
14267 | # work, assume that -exports_file does not work either and | |
14268 | # implicitly export all symbols. | |
14269 | save_LDFLAGS="$LDFLAGS" | |
14270 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
14271 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 14272 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 14273 | fi |
cd9a469c | 14274 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 14275 | int foo(void) {} |
14276 | _ACEOF | |
cd9a469c | 14277 | if ac_fn_fc_try_link "$LINENO"; then : |
e6408286 | 14278 | 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 | 14279 | |
542f9784 | 14280 | fi |
cd9a469c | 14281 | rm -f core conftest.err conftest.$ac_objext \ |
14282 | conftest$ac_exeext conftest.$ac_ext | |
542f9784 | 14283 | LDFLAGS="$save_LDFLAGS" |
14284 | else | |
e6408286 | 14285 | 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' |
14286 | 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 | 14287 | fi |
14288 | archive_cmds_need_lc_FC='no' | |
14289 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14290 | hardcode_libdir_separator_FC=: | |
14291 | inherit_rpath_FC=yes | |
14292 | link_all_deplibs_FC=yes | |
14293 | ;; | |
14294 | ||
14295 | netbsd*) | |
14296 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14297 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14298 | else | |
14299 | archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14300 | fi | |
14301 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14302 | hardcode_direct_FC=yes | |
14303 | hardcode_shlibpath_var_FC=no | |
14304 | ;; | |
14305 | ||
14306 | newsos6) | |
14307 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14308 | hardcode_direct_FC=yes | |
14309 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14310 | hardcode_libdir_separator_FC=: | |
14311 | hardcode_shlibpath_var_FC=no | |
14312 | ;; | |
14313 | ||
14314 | *nto* | *qnx*) | |
14315 | ;; | |
14316 | ||
14317 | openbsd*) | |
00aafda4 | 14318 | if test -f /usr/libexec/ld.so; then |
14319 | hardcode_direct_FC=yes | |
14320 | hardcode_shlibpath_var_FC=no | |
14321 | hardcode_direct_absolute_FC=yes | |
14322 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
542f9784 | 14323 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
00aafda4 | 14324 | archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
542f9784 | 14325 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' |
00aafda4 | 14326 | export_dynamic_flag_spec_FC='${wl}-E' |
14327 | else | |
14328 | case $host_os in | |
14329 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14330 | archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14331 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14332 | ;; | |
14333 | *) | |
14334 | archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14335 | hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' | |
14336 | ;; | |
14337 | esac | |
14338 | fi | |
14339 | else | |
14340 | ld_shlibs_FC=no | |
542f9784 | 14341 | fi |
14342 | ;; | |
14343 | ||
14344 | os2*) | |
14345 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14346 | hardcode_minus_L_FC=yes | |
14347 | allow_undefined_flag_FC=unsupported | |
e6408286 | 14348 | 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 | 14349 | old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14350 | ;; | |
14351 | ||
14352 | osf3*) | |
14353 | if test "$GCC" = yes; then | |
14354 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14355 | 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 | 14356 | else |
14357 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14358 | 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 | 14359 | fi |
14360 | archive_cmds_need_lc_FC='no' | |
14361 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' | |
14362 | hardcode_libdir_separator_FC=: | |
14363 | ;; | |
14364 | ||
14365 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14366 | if test "$GCC" = yes; then | |
14367 | allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' | |
e6408286 | 14368 | 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 | 14369 | hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' |
14370 | else | |
14371 | allow_undefined_flag_FC=' -expect_unresolved \*' | |
e6408286 | 14372 | 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 | 14373 | 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 | 14374 | $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 | 14375 | |
14376 | # Both c and cxx compiler support -rpath directly | |
14377 | hardcode_libdir_flag_spec_FC='-rpath $libdir' | |
14378 | fi | |
14379 | archive_cmds_need_lc_FC='no' | |
14380 | hardcode_libdir_separator_FC=: | |
14381 | ;; | |
14382 | ||
14383 | solaris*) | |
14384 | no_undefined_flag_FC=' -z defs' | |
14385 | if test "$GCC" = yes; then | |
14386 | wlarc='${wl}' | |
14387 | archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14388 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14389 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14390 | else | |
14391 | case `$CC -V 2>&1` in | |
14392 | *"Compilers 5.0"*) | |
14393 | wlarc='' | |
14394 | archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14395 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14396 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
14397 | ;; | |
14398 | *) | |
14399 | wlarc='${wl}' | |
14400 | archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14401 | archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14402 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
14403 | ;; | |
14404 | esac | |
14405 | fi | |
14406 | hardcode_libdir_flag_spec_FC='-R$libdir' | |
14407 | hardcode_shlibpath_var_FC=no | |
14408 | case $host_os in | |
14409 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14410 | *) | |
14411 | # The compiler driver will combine and reorder linker options, | |
14412 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
14413 | # but is careful enough not to reorder. | |
14414 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14415 | if test "$GCC" = yes; then | |
14416 | whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14417 | else | |
14418 | whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' | |
14419 | fi | |
14420 | ;; | |
14421 | esac | |
14422 | link_all_deplibs_FC=yes | |
14423 | ;; | |
14424 | ||
14425 | sunos4*) | |
14426 | if test "x$host_vendor" = xsequent; then | |
14427 | # Use $CC to link under sequent, because it throws in some extra .o | |
14428 | # files that make .init and .fini sections work. | |
14429 | archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14430 | else | |
14431 | archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14432 | fi | |
14433 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14434 | hardcode_direct_FC=yes | |
14435 | hardcode_minus_L_FC=yes | |
14436 | hardcode_shlibpath_var_FC=no | |
14437 | ;; | |
14438 | ||
14439 | sysv4) | |
14440 | case $host_vendor in | |
14441 | sni) | |
14442 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14443 | hardcode_direct_FC=yes # is this really true??? | |
14444 | ;; | |
14445 | siemens) | |
14446 | ## LD is ld it makes a PLAMLIB | |
14447 | ## CC just makes a GrossModule. | |
14448 | archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14449 | reload_cmds_FC='$CC -r -o $output$reload_objs' | |
14450 | hardcode_direct_FC=no | |
14451 | ;; | |
14452 | motorola) | |
14453 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14454 | hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie | |
14455 | ;; | |
14456 | esac | |
14457 | runpath_var='LD_RUN_PATH' | |
14458 | hardcode_shlibpath_var_FC=no | |
14459 | ;; | |
14460 | ||
14461 | sysv4.3*) | |
14462 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14463 | hardcode_shlibpath_var_FC=no | |
14464 | export_dynamic_flag_spec_FC='-Bexport' | |
14465 | ;; | |
14466 | ||
14467 | sysv4*MP*) | |
14468 | if test -d /usr/nec; then | |
14469 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14470 | hardcode_shlibpath_var_FC=no | |
14471 | runpath_var=LD_RUN_PATH | |
14472 | hardcode_runpath_var=yes | |
14473 | ld_shlibs_FC=yes | |
14474 | fi | |
14475 | ;; | |
14476 | ||
14477 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
14478 | no_undefined_flag_FC='${wl}-z,text' | |
14479 | archive_cmds_need_lc_FC=no | |
14480 | hardcode_shlibpath_var_FC=no | |
14481 | runpath_var='LD_RUN_PATH' | |
14482 | ||
14483 | if test "$GCC" = yes; then | |
14484 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14485 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14486 | else | |
14487 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14488 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14489 | fi | |
14490 | ;; | |
14491 | ||
14492 | sysv5* | sco3.2v5* | sco5v6*) | |
14493 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14494 | # link with -lc, and that would cause any symbols used from libc to | |
14495 | # always be unresolved, which means just about no library would | |
14496 | # ever link correctly. If we're not using GNU ld we use -z text | |
14497 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14498 | # as -z defs. | |
14499 | no_undefined_flag_FC='${wl}-z,text' | |
14500 | allow_undefined_flag_FC='${wl}-z,nodefs' | |
14501 | archive_cmds_need_lc_FC=no | |
14502 | hardcode_shlibpath_var_FC=no | |
14503 | hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' | |
14504 | hardcode_libdir_separator_FC=':' | |
14505 | link_all_deplibs_FC=yes | |
14506 | export_dynamic_flag_spec_FC='${wl}-Bexport' | |
14507 | runpath_var='LD_RUN_PATH' | |
14508 | ||
14509 | if test "$GCC" = yes; then | |
14510 | archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14511 | archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14512 | else | |
14513 | archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14514 | archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14515 | fi | |
14516 | ;; | |
14517 | ||
14518 | uts4*) | |
14519 | archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14520 | hardcode_libdir_flag_spec_FC='-L$libdir' | |
14521 | hardcode_shlibpath_var_FC=no | |
14522 | ;; | |
14523 | ||
14524 | *) | |
14525 | ld_shlibs_FC=no | |
14526 | ;; | |
14527 | esac | |
14528 | ||
14529 | if test x$host_vendor = xsni; then | |
14530 | case $host in | |
14531 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
14532 | export_dynamic_flag_spec_FC='${wl}-Blargedynsym' | |
14533 | ;; | |
14534 | esac | |
14535 | fi | |
14536 | fi | |
14537 | ||
cd9a469c | 14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 |
14539 | $as_echo "$ld_shlibs_FC" >&6; } | |
542f9784 | 14540 | test "$ld_shlibs_FC" = no && can_build_shared=no |
14541 | ||
14542 | with_gnu_ld_FC=$with_gnu_ld | |
14543 | ||
14544 | ||
14545 | ||
14546 | ||
14547 | ||
14548 | ||
14549 | # | |
14550 | # Do we need to explicitly link libc? | |
14551 | # | |
14552 | case "x$archive_cmds_need_lc_FC" in | |
14553 | x|xyes) | |
14554 | # Assume -lc should be added | |
14555 | archive_cmds_need_lc_FC=yes | |
14556 | ||
14557 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14558 | case $archive_cmds_FC in | |
14559 | *'~'*) | |
14560 | # FIXME: we may have to deal with multi-command sequences. | |
14561 | ;; | |
14562 | '$CC '*) | |
14563 | # Test whether the compiler implicitly links with -lc since on some | |
14564 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14565 | # to ld, don't add -lc before -lgcc. | |
cd9a469c | 14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
14567 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14568 | if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then : | |
14569 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 14570 | else |
14571 | $RM conftest* | |
14572 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
542f9784 | 14573 | |
cd9a469c | 14574 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
542f9784 | 14575 | (eval $ac_compile) 2>&5 |
14576 | ac_status=$? | |
cd9a469c | 14577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14578 | test $ac_status = 0; } 2>conftest.err; then | |
9e6fd619 | 14579 | soname=conftest |
14580 | lib=conftest | |
14581 | libobjs=conftest.$ac_objext | |
14582 | deplibs= | |
14583 | wl=$lt_prog_compiler_wl_FC | |
14584 | pic_flag=$lt_prog_compiler_pic_FC | |
14585 | compiler_flags=-v | |
14586 | linker_flags=-v | |
14587 | verstring= | |
14588 | output_objdir=. | |
14589 | libname=conftest | |
14590 | lt_save_allow_undefined_flag=$allow_undefined_flag_FC | |
14591 | allow_undefined_flag_FC= | |
cd9a469c | 14592 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
542f9784 | 14593 | (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
90e67cff | 14594 | ac_status=$? |
cd9a469c | 14595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14596 | test $ac_status = 0; } | |
9e6fd619 | 14597 | then |
14598 | lt_cv_archive_cmds_need_lc_FC=no | |
14599 | else | |
14600 | lt_cv_archive_cmds_need_lc_FC=yes | |
14601 | fi | |
14602 | allow_undefined_flag_FC=$lt_save_allow_undefined_flag | |
14603 | else | |
14604 | cat conftest.err 1>&5 | |
14605 | fi | |
14606 | $RM conftest* | |
14607 | ||
14608 | fi | |
cd9a469c | 14609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 |
14610 | $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } | |
9e6fd619 | 14611 | archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC |
542f9784 | 14612 | ;; |
14613 | esac | |
14614 | fi | |
14615 | ;; | |
14616 | esac | |
90e67cff | 14617 | |
90e67cff | 14618 | |
542f9784 | 14619 | |
14620 | ||
14621 | ||
14622 | ||
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | ||
14628 | ||
14629 | ||
14630 | ||
14631 | ||
14632 | ||
14633 | ||
14634 | ||
14635 | ||
14636 | ||
14637 | ||
14638 | ||
14639 | ||
14640 | ||
14641 | ||
14642 | ||
14643 | ||
14644 | ||
14645 | ||
14646 | ||
14647 | ||
14648 | ||
14649 | ||
14650 | ||
14651 | ||
14652 | ||
14653 | ||
14654 | ||
14655 | ||
14656 | ||
14657 | ||
14658 | ||
14659 | ||
14660 | ||
14661 | ||
14662 | ||
14663 | ||
14664 | ||
14665 | ||
14666 | ||
14667 | ||
14668 | ||
14669 | ||
14670 | ||
14671 | ||
14672 | ||
14673 | ||
14674 | ||
14675 | ||
14676 | ||
14677 | ||
14678 | ||
14679 | ||
14680 | ||
cd9a469c | 14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
14682 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
00aafda4 | 14683 | |
542f9784 | 14684 | library_names_spec= |
14685 | libname_spec='lib$name' | |
14686 | soname_spec= | |
14687 | shrext_cmds=".so" | |
14688 | postinstall_cmds= | |
14689 | postuninstall_cmds= | |
14690 | finish_cmds= | |
14691 | finish_eval= | |
14692 | shlibpath_var= | |
14693 | shlibpath_overrides_runpath=unknown | |
14694 | version_type=none | |
14695 | dynamic_linker="$host_os ld.so" | |
14696 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14697 | need_lib_prefix=unknown | |
14698 | hardcode_into_libs=no | |
14699 | ||
14700 | # when you set need_version to no, make sure it does not cause -set_version | |
14701 | # flags to be left without arguments | |
14702 | need_version=unknown | |
14703 | ||
14704 | case $host_os in | |
14705 | aix3*) | |
14706 | version_type=linux | |
14707 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14708 | shlibpath_var=LIBPATH | |
14709 | ||
14710 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14711 | soname_spec='${libname}${release}${shared_ext}$major' | |
14712 | ;; | |
14713 | ||
21e07d2f | 14714 | aix[4-9]*) |
542f9784 | 14715 | version_type=linux |
14716 | need_lib_prefix=no | |
14717 | need_version=no | |
14718 | hardcode_into_libs=yes | |
14719 | if test "$host_cpu" = ia64; then | |
14720 | # AIX 5 supports IA64 | |
14721 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14722 | shlibpath_var=LD_LIBRARY_PATH | |
14723 | else | |
14724 | # With GCC up to 2.95.x, collect2 would create an import file | |
14725 | # for dependence libraries. The import file would start with | |
14726 | # the line `#! .'. This would cause the generated library to | |
14727 | # depend on `.', always an invalid library. This was fixed in | |
14728 | # development snapshots of GCC prior to 3.0. | |
14729 | case $host_os in | |
14730 | aix4 | aix4.[01] | aix4.[01].*) | |
14731 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14732 | echo ' yes ' | |
14733 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14734 | : | |
14735 | else | |
14736 | can_build_shared=no | |
14737 | fi | |
14738 | ;; | |
14739 | esac | |
14740 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14741 | # soname into executable. Probably we can add versioning support to | |
14742 | # collect2, so additional links can be useful in future. | |
14743 | if test "$aix_use_runtimelinking" = yes; then | |
14744 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14745 | # instead of lib<name>.a to let people know that these are not | |
14746 | # typical AIX shared libraries. | |
14747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14748 | else | |
14749 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14750 | # and later when we are not doing run time linking. | |
14751 | library_names_spec='${libname}${release}.a $libname.a' | |
14752 | soname_spec='${libname}${release}${shared_ext}$major' | |
14753 | fi | |
14754 | shlibpath_var=LIBPATH | |
14755 | fi | |
14756 | ;; | |
14757 | ||
14758 | amigaos*) | |
00aafda4 | 14759 | case $host_cpu in |
14760 | powerpc) | |
14761 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14762 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14764 | ;; | |
14765 | m68k) | |
542f9784 | 14766 | library_names_spec='$libname.ixlibrary $libname.a' |
14767 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
e6408286 | 14768 | 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 | 14769 | ;; |
14770 | esac | |
542f9784 | 14771 | ;; |
14772 | ||
14773 | beos*) | |
14774 | library_names_spec='${libname}${shared_ext}' | |
14775 | dynamic_linker="$host_os ld.so" | |
14776 | shlibpath_var=LIBRARY_PATH | |
14777 | ;; | |
14778 | ||
14779 | bsdi[45]*) | |
14780 | version_type=linux | |
14781 | need_version=no | |
14782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14783 | soname_spec='${libname}${release}${shared_ext}$major' | |
14784 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14785 | shlibpath_var=LD_LIBRARY_PATH | |
14786 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14787 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14788 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14789 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14790 | # libtool to hard-code these into programs | |
14791 | ;; | |
14792 | ||
00aafda4 | 14793 | cygwin* | mingw* | pw32* | cegcc*) |
542f9784 | 14794 | version_type=windows |
14795 | shrext_cmds=".dll" | |
14796 | need_version=no | |
14797 | need_lib_prefix=no | |
14798 | ||
00aafda4 | 14799 | case $GCC,$host_os in |
14800 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
542f9784 | 14801 | library_names_spec='$libname.dll.a' |
14802 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14803 | postinstall_cmds='base_file=`basename \${file}`~ | |
14804 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14805 | dldir=$destdir/`dirname \$dlpath`~ | |
14806 | test -d \$dldir || mkdir -p \$dldir~ | |
14807 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14808 | chmod a+x \$dldir/$dlname~ | |
14809 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14810 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14811 | fi' | |
14812 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14813 | dlpath=$dir/\$dldll~ | |
14814 | $RM \$dlpath' | |
14815 | shlibpath_overrides_runpath=yes | |
14816 | ||
14817 | case $host_os in | |
14818 | cygwin*) | |
14819 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14820 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
e6408286 | 14821 | |
542f9784 | 14822 | ;; |
00aafda4 | 14823 | mingw* | cegcc*) |
542f9784 | 14824 | # MinGW DLLs use traditional 'lib' prefix |
14825 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
542f9784 | 14826 | ;; |
14827 | pw32*) | |
14828 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14829 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14830 | ;; | |
14831 | esac | |
14832 | ;; | |
14833 | ||
14834 | *) | |
14835 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14836 | ;; | |
14837 | esac | |
14838 | dynamic_linker='Win32 ld.exe' | |
14839 | # FIXME: first we should search . and the directory the executable is in | |
14840 | shlibpath_var=PATH | |
14841 | ;; | |
14842 | ||
14843 | darwin* | rhapsody*) | |
14844 | dynamic_linker="$host_os dyld" | |
14845 | version_type=darwin | |
14846 | need_lib_prefix=no | |
14847 | need_version=no | |
14848 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14849 | soname_spec='${libname}${release}${major}$shared_ext' | |
14850 | shlibpath_overrides_runpath=yes | |
14851 | shlibpath_var=DYLD_LIBRARY_PATH | |
14852 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14853 | ||
14854 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14855 | ;; | |
14856 | ||
14857 | dgux*) | |
14858 | version_type=linux | |
14859 | need_lib_prefix=no | |
14860 | need_version=no | |
14861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14862 | soname_spec='${libname}${release}${shared_ext}$major' | |
14863 | shlibpath_var=LD_LIBRARY_PATH | |
14864 | ;; | |
14865 | ||
542f9784 | 14866 | freebsd* | dragonfly*) |
14867 | # DragonFly does not have aout. When/if they implement a new | |
14868 | # versioning mechanism, adjust this. | |
14869 | if test -x /usr/bin/objformat; then | |
14870 | objformat=`/usr/bin/objformat` | |
14871 | else | |
14872 | case $host_os in | |
14873 | freebsd[123]*) objformat=aout ;; | |
14874 | *) objformat=elf ;; | |
14875 | esac | |
14876 | fi | |
14877 | version_type=freebsd-$objformat | |
14878 | case $version_type in | |
14879 | freebsd-elf*) | |
14880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14881 | need_version=no | |
14882 | need_lib_prefix=no | |
14883 | ;; | |
14884 | freebsd-*) | |
14885 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14886 | need_version=yes | |
14887 | ;; | |
14888 | esac | |
14889 | shlibpath_var=LD_LIBRARY_PATH | |
14890 | case $host_os in | |
14891 | freebsd2*) | |
14892 | shlibpath_overrides_runpath=yes | |
14893 | ;; | |
14894 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14895 | shlibpath_overrides_runpath=yes | |
14896 | hardcode_into_libs=yes | |
14897 | ;; | |
14898 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14899 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14900 | shlibpath_overrides_runpath=no | |
14901 | hardcode_into_libs=yes | |
14902 | ;; | |
14903 | *) # from 4.6 on, and DragonFly | |
14904 | shlibpath_overrides_runpath=yes | |
14905 | hardcode_into_libs=yes | |
14906 | ;; | |
14907 | esac | |
14908 | ;; | |
14909 | ||
14910 | gnu*) | |
14911 | version_type=linux | |
14912 | need_lib_prefix=no | |
14913 | need_version=no | |
14914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14915 | soname_spec='${libname}${release}${shared_ext}$major' | |
14916 | shlibpath_var=LD_LIBRARY_PATH | |
14917 | hardcode_into_libs=yes | |
14918 | ;; | |
14919 | ||
e6408286 | 14920 | haiku*) |
14921 | version_type=linux | |
14922 | need_lib_prefix=no | |
14923 | need_version=no | |
14924 | dynamic_linker="$host_os runtime_loader" | |
14925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14926 | soname_spec='${libname}${release}${shared_ext}$major' | |
14927 | shlibpath_var=LIBRARY_PATH | |
14928 | shlibpath_overrides_runpath=yes | |
14929 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14930 | hardcode_into_libs=yes | |
14931 | ;; | |
14932 | ||
542f9784 | 14933 | hpux9* | hpux10* | hpux11*) |
14934 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14935 | # link against other versions. | |
14936 | version_type=sunos | |
14937 | need_lib_prefix=no | |
14938 | need_version=no | |
14939 | case $host_cpu in | |
14940 | ia64*) | |
14941 | shrext_cmds='.so' | |
14942 | hardcode_into_libs=yes | |
14943 | dynamic_linker="$host_os dld.so" | |
14944 | shlibpath_var=LD_LIBRARY_PATH | |
14945 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14947 | soname_spec='${libname}${release}${shared_ext}$major' | |
14948 | if test "X$HPUX_IA64_MODE" = X32; then | |
14949 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14950 | else | |
14951 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14952 | fi | |
14953 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14954 | ;; | |
14955 | hppa*64*) | |
14956 | shrext_cmds='.sl' | |
14957 | hardcode_into_libs=yes | |
14958 | dynamic_linker="$host_os dld.sl" | |
14959 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14960 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14962 | soname_spec='${libname}${release}${shared_ext}$major' | |
14963 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14964 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14965 | ;; | |
14966 | *) | |
14967 | shrext_cmds='.sl' | |
14968 | dynamic_linker="$host_os dld.sl" | |
14969 | shlibpath_var=SHLIB_PATH | |
14970 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14972 | soname_spec='${libname}${release}${shared_ext}$major' | |
14973 | ;; | |
14974 | esac | |
e6408286 | 14975 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
542f9784 | 14976 | postinstall_cmds='chmod 555 $lib' |
e6408286 | 14977 | # or fails outright, so override atomically: |
14978 | install_override_mode=555 | |
542f9784 | 14979 | ;; |
14980 | ||
14981 | interix[3-9]*) | |
14982 | version_type=linux | |
14983 | need_lib_prefix=no | |
14984 | need_version=no | |
14985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14986 | soname_spec='${libname}${release}${shared_ext}$major' | |
14987 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14988 | shlibpath_var=LD_LIBRARY_PATH | |
14989 | shlibpath_overrides_runpath=no | |
14990 | hardcode_into_libs=yes | |
14991 | ;; | |
14992 | ||
14993 | irix5* | irix6* | nonstopux*) | |
14994 | case $host_os in | |
14995 | nonstopux*) version_type=nonstopux ;; | |
14996 | *) | |
14997 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14998 | version_type=linux | |
14999 | else | |
15000 | version_type=irix | |
15001 | fi ;; | |
15002 | esac | |
15003 | need_lib_prefix=no | |
15004 | need_version=no | |
15005 | soname_spec='${libname}${release}${shared_ext}$major' | |
15006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15007 | case $host_os in | |
15008 | irix5* | nonstopux*) | |
15009 | libsuff= shlibsuff= | |
15010 | ;; | |
15011 | *) | |
15012 | case $LD in # libtool.m4 will add one of these switches to LD | |
15013 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15014 | libsuff= shlibsuff= libmagic=32-bit;; | |
15015 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15016 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15017 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15018 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15019 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15020 | esac | |
15021 | ;; | |
15022 | esac | |
15023 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15024 | shlibpath_overrides_runpath=no | |
15025 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15026 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15027 | hardcode_into_libs=yes | |
15028 | ;; | |
15029 | ||
15030 | # No shared lib support for Linux oldld, aout, or coff. | |
15031 | linux*oldld* | linux*aout* | linux*coff*) | |
15032 | dynamic_linker=no | |
15033 | ;; | |
15034 | ||
15035 | # This must be Linux ELF. | |
9af964d4 | 15036 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
542f9784 | 15037 | version_type=linux |
15038 | need_lib_prefix=no | |
15039 | need_version=no | |
15040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15041 | soname_spec='${libname}${release}${shared_ext}$major' | |
15042 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15043 | shlibpath_var=LD_LIBRARY_PATH | |
15044 | shlibpath_overrides_runpath=no | |
9e6fd619 | 15045 | |
542f9784 | 15046 | # Some binutils ld are patched to set DT_RUNPATH |
cd9a469c | 15047 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
15048 | $as_echo_n "(cached) " >&6 | |
9e6fd619 | 15049 | else |
15050 | lt_cv_shlibpath_overrides_runpath=no | |
15051 | save_LDFLAGS=$LDFLAGS | |
15052 | save_libdir=$libdir | |
15053 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ | |
15054 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" | |
15055 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 15056 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
542f9784 | 15057 | fi |
cd9a469c | 15058 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 15059 | program main |
15060 | ||
15061 | end | |
90e67cff | 15062 | _ACEOF |
cd9a469c | 15063 | if ac_fn_fc_try_link "$LINENO"; then : |
15064 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9e6fd619 | 15065 | lt_cv_shlibpath_overrides_runpath=yes |
542f9784 | 15066 | fi |
90e67cff | 15067 | fi |
cd9a469c | 15068 | rm -f core conftest.err conftest.$ac_objext \ |
15069 | conftest$ac_exeext conftest.$ac_ext | |
9e6fd619 | 15070 | LDFLAGS=$save_LDFLAGS |
15071 | libdir=$save_libdir | |
15072 | ||
15073 | fi | |
15074 | ||
15075 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
542f9784 | 15076 | |
15077 | # This implies no fast_install, which is unacceptable. | |
15078 | # Some rework will be needed to allow for fast_install | |
15079 | # before this can be enabled. | |
15080 | hardcode_into_libs=yes | |
15081 | ||
15082 | # Append ld.so.conf contents to the search path | |
15083 | if test -f /etc/ld.so.conf; then | |
e6408286 | 15084 | 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 | 15085 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15086 | fi | |
15087 | ||
15088 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15089 | # powerpc, because MkLinux only supported shared libraries with the | |
15090 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15091 | # most powerpc-linux boxes support dynamic linking these days and | |
15092 | # people can always --disable-shared, the test was removed, and we | |
15093 | # assume the GNU/Linux dynamic linker is in use. | |
15094 | dynamic_linker='GNU/Linux ld.so' | |
15095 | ;; | |
15096 | ||
15097 | netbsd*) | |
15098 | version_type=sunos | |
15099 | need_lib_prefix=no | |
15100 | need_version=no | |
15101 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15103 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15104 | dynamic_linker='NetBSD (a.out) ld.so' | |
15105 | else | |
15106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15107 | soname_spec='${libname}${release}${shared_ext}$major' | |
15108 | dynamic_linker='NetBSD ld.elf_so' | |
15109 | fi | |
15110 | shlibpath_var=LD_LIBRARY_PATH | |
15111 | shlibpath_overrides_runpath=yes | |
15112 | hardcode_into_libs=yes | |
15113 | ;; | |
15114 | ||
15115 | newsos6) | |
15116 | version_type=linux | |
15117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15118 | shlibpath_var=LD_LIBRARY_PATH | |
15119 | shlibpath_overrides_runpath=yes | |
15120 | ;; | |
15121 | ||
15122 | *nto* | *qnx*) | |
15123 | version_type=qnx | |
15124 | need_lib_prefix=no | |
15125 | need_version=no | |
15126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15127 | soname_spec='${libname}${release}${shared_ext}$major' | |
15128 | shlibpath_var=LD_LIBRARY_PATH | |
15129 | shlibpath_overrides_runpath=no | |
15130 | hardcode_into_libs=yes | |
15131 | dynamic_linker='ldqnx.so' | |
15132 | ;; | |
15133 | ||
15134 | openbsd*) | |
15135 | version_type=sunos | |
15136 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15137 | need_lib_prefix=no | |
15138 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15139 | case $host_os in | |
15140 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15141 | *) need_version=no ;; | |
15142 | esac | |
15143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15144 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15145 | shlibpath_var=LD_LIBRARY_PATH | |
15146 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15147 | case $host_os in | |
15148 | openbsd2.[89] | openbsd2.[89].*) | |
15149 | shlibpath_overrides_runpath=no | |
15150 | ;; | |
15151 | *) | |
15152 | shlibpath_overrides_runpath=yes | |
15153 | ;; | |
15154 | esac | |
15155 | else | |
15156 | shlibpath_overrides_runpath=yes | |
15157 | fi | |
15158 | ;; | |
15159 | ||
15160 | os2*) | |
15161 | libname_spec='$name' | |
15162 | shrext_cmds=".dll" | |
15163 | need_lib_prefix=no | |
15164 | library_names_spec='$libname${shared_ext} $libname.a' | |
15165 | dynamic_linker='OS/2 ld.exe' | |
15166 | shlibpath_var=LIBPATH | |
15167 | ;; | |
15168 | ||
15169 | osf3* | osf4* | osf5*) | |
15170 | version_type=osf | |
15171 | need_lib_prefix=no | |
15172 | need_version=no | |
15173 | soname_spec='${libname}${release}${shared_ext}$major' | |
15174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15175 | shlibpath_var=LD_LIBRARY_PATH | |
15176 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15177 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15178 | ;; | |
15179 | ||
15180 | rdos*) | |
15181 | dynamic_linker=no | |
15182 | ;; | |
15183 | ||
15184 | solaris*) | |
15185 | version_type=linux | |
15186 | need_lib_prefix=no | |
15187 | need_version=no | |
15188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15189 | soname_spec='${libname}${release}${shared_ext}$major' | |
15190 | shlibpath_var=LD_LIBRARY_PATH | |
15191 | shlibpath_overrides_runpath=yes | |
15192 | hardcode_into_libs=yes | |
15193 | # ldd complains unless libraries are executable | |
15194 | postinstall_cmds='chmod +x $lib' | |
15195 | ;; | |
15196 | ||
15197 | sunos4*) | |
15198 | version_type=sunos | |
15199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15200 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15201 | shlibpath_var=LD_LIBRARY_PATH | |
15202 | shlibpath_overrides_runpath=yes | |
15203 | if test "$with_gnu_ld" = yes; then | |
15204 | need_lib_prefix=no | |
15205 | fi | |
15206 | need_version=yes | |
15207 | ;; | |
15208 | ||
15209 | sysv4 | sysv4.3*) | |
15210 | version_type=linux | |
15211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15212 | soname_spec='${libname}${release}${shared_ext}$major' | |
15213 | shlibpath_var=LD_LIBRARY_PATH | |
15214 | case $host_vendor in | |
15215 | sni) | |
15216 | shlibpath_overrides_runpath=no | |
15217 | need_lib_prefix=no | |
15218 | runpath_var=LD_RUN_PATH | |
15219 | ;; | |
15220 | siemens) | |
15221 | need_lib_prefix=no | |
15222 | ;; | |
15223 | motorola) | |
15224 | need_lib_prefix=no | |
15225 | need_version=no | |
15226 | shlibpath_overrides_runpath=no | |
15227 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15228 | ;; | |
15229 | esac | |
15230 | ;; | |
15231 | ||
15232 | sysv4*MP*) | |
15233 | if test -d /usr/nec ;then | |
15234 | version_type=linux | |
15235 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15236 | soname_spec='$libname${shared_ext}.$major' | |
15237 | shlibpath_var=LD_LIBRARY_PATH | |
15238 | fi | |
15239 | ;; | |
15240 | ||
15241 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15242 | version_type=freebsd-elf | |
15243 | need_lib_prefix=no | |
15244 | need_version=no | |
15245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15246 | soname_spec='${libname}${release}${shared_ext}$major' | |
15247 | shlibpath_var=LD_LIBRARY_PATH | |
15248 | shlibpath_overrides_runpath=yes | |
15249 | hardcode_into_libs=yes | |
15250 | if test "$with_gnu_ld" = yes; then | |
15251 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15252 | else | |
15253 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15254 | case $host_os in | |
15255 | sco3.2v5*) | |
15256 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15257 | ;; | |
15258 | esac | |
15259 | fi | |
15260 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15261 | ;; | |
15262 | ||
15263 | tpf*) | |
15264 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15265 | version_type=linux | |
15266 | need_lib_prefix=no | |
15267 | need_version=no | |
00aafda4 | 15268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
542f9784 | 15269 | shlibpath_var=LD_LIBRARY_PATH |
15270 | shlibpath_overrides_runpath=no | |
15271 | hardcode_into_libs=yes | |
15272 | ;; | |
15273 | ||
15274 | uts4*) | |
15275 | version_type=linux | |
15276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15277 | soname_spec='${libname}${release}${shared_ext}$major' | |
15278 | shlibpath_var=LD_LIBRARY_PATH | |
15279 | ;; | |
15280 | ||
15281 | *) | |
15282 | dynamic_linker=no | |
15283 | ;; | |
15284 | esac | |
cd9a469c | 15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
15286 | $as_echo "$dynamic_linker" >&6; } | |
542f9784 | 15287 | test "$dynamic_linker" = no && can_build_shared=no |
15288 | ||
15289 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15290 | if test "$GCC" = yes; then | |
15291 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
90e67cff | 15292 | fi |
90e67cff | 15293 | |
00aafda4 | 15294 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15295 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15296 | fi | |
15297 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15298 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15299 | fi | |
15300 | ||
90e67cff | 15301 | |
542f9784 | 15302 | |
15303 | ||
15304 | ||
15305 | ||
15306 | ||
15307 | ||
15308 | ||
15309 | ||
15310 | ||
15311 | ||
15312 | ||
15313 | ||
15314 | ||
15315 | ||
15316 | ||
15317 | ||
15318 | ||
15319 | ||
15320 | ||
15321 | ||
15322 | ||
15323 | ||
15324 | ||
15325 | ||
15326 | ||
15327 | ||
15328 | ||
15329 | ||
15330 | ||
15331 | ||
15332 | ||
e6408286 | 15333 | |
15334 | ||
542f9784 | 15335 | |
15336 | ||
15337 | ||
cd9a469c | 15338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15339 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
542f9784 | 15340 | hardcode_action_FC= |
15341 | if test -n "$hardcode_libdir_flag_spec_FC" || | |
15342 | test -n "$runpath_var_FC" || | |
15343 | test "X$hardcode_automatic_FC" = "Xyes" ; then | |
15344 | ||
15345 | # We can hardcode non-existent directories. | |
15346 | if test "$hardcode_direct_FC" != no && | |
15347 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15348 | # have to relink, otherwise we might link with an installed library | |
15349 | # when we should be linking with a yet-to-be-installed one | |
15350 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && | |
15351 | test "$hardcode_minus_L_FC" != no; then | |
15352 | # Linking always hardcodes the temporary library directory. | |
15353 | hardcode_action_FC=relink | |
15354 | else | |
15355 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15356 | hardcode_action_FC=immediate | |
15357 | fi | |
15358 | else | |
15359 | # We cannot hardcode anything, or else we can only hardcode existing | |
15360 | # directories. | |
15361 | hardcode_action_FC=unsupported | |
90e67cff | 15362 | fi |
cd9a469c | 15363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 |
15364 | $as_echo "$hardcode_action_FC" >&6; } | |
542f9784 | 15365 | |
15366 | if test "$hardcode_action_FC" = relink || | |
15367 | test "$inherit_rpath_FC" = yes; then | |
15368 | # Fast installation is not supported | |
15369 | enable_fast_install=no | |
15370 | elif test "$shlibpath_overrides_runpath" = yes || | |
15371 | test "$enable_shared" = no; then | |
15372 | # Fast installation is not necessary | |
15373 | enable_fast_install=needless | |
90e67cff | 15374 | fi |
15375 | ||
542f9784 | 15376 | |
15377 | ||
15378 | ||
15379 | ||
15380 | ||
15381 | ||
15382 | fi # test -n "$compiler" | |
15383 | ||
00aafda4 | 15384 | GCC=$lt_save_GCC |
542f9784 | 15385 | CC="$lt_save_CC" |
15386 | fi # test "$_lt_disable_FC" != yes | |
15387 | ||
5c88bcbb | 15388 | ac_ext=c |
90973b19 | 15389 | ac_cpp='$CPP $CPPFLAGS' |
15390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
542f9784 | 15393 | |
15394 | ||
15395 | ||
15396 | # extra LD Flags which are required for targets | |
15397 | case "${host}" in | |
15398 | *-darwin*) | |
15399 | # Darwin needs -single_module when linking libgfortran | |
15400 | extra_ldflags_libgfortran=-Wl,-single_module | |
15401 | ;; | |
15402 | esac | |
15403 | ||
15404 | ||
15405 | # We need a working compiler at that point, otherwise give a clear | |
15406 | # error message and bail out. | |
15407 | ||
cd9a469c | 15408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 |
15409 | $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } | |
15410 | ac_ext=${ac_fc_srcext-f} | |
15411 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' | |
15412 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' | |
542f9784 | 15413 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
15414 | ||
cd9a469c | 15415 | cat > conftest.$ac_ext <<_ACEOF |
542f9784 | 15416 | |
15417 | program foo | |
15418 | real, parameter :: bar = sin (12.34 / 2.5) | |
15419 | end program foo | |
4ee9c684 | 15420 | _ACEOF |
cd9a469c | 15421 | if ac_fn_fc_try_compile "$LINENO"; then : |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15423 | $as_echo "yes" >&6; } | |
4ee9c684 | 15424 | else |
cd9a469c | 15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15426 | $as_echo "no" >&6; } | |
15427 | 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 | 15428 | |
90973b19 | 15429 | fi |
cd9a469c | 15430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
542f9784 | 15431 | ac_ext=c |
15432 | ac_cpp='$CPP $CPPFLAGS' | |
15433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
90973b19 | 15436 | |
90973b19 | 15437 | |
542f9784 | 15438 | |
cd9a469c | 15439 | # Check whether --enable-largefile was given. |
15440 | if test "${enable_largefile+set}" = set; then : | |
15441 | enableval=$enable_largefile; | |
15442 | fi | |
542f9784 | 15443 | |
542f9784 | 15444 | if test "$enable_largefile" != no; then |
15445 | ||
cd9a469c | 15446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
15447 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
15448 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
15449 | $as_echo_n "(cached) " >&6 | |
90973b19 | 15450 | else |
542f9784 | 15451 | ac_cv_sys_largefile_CC=no |
15452 | if test "$GCC" != yes; then | |
15453 | ac_save_CC=$CC | |
15454 | while :; do | |
cd9a469c | 15455 | # IRIX 6.2 and later do not support large files by default, |
15456 | # so use the C compiler's -n32 option if that helps. | |
15457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90973b19 | 15458 | /* end confdefs.h. */ |
542f9784 | 15459 | #include <sys/types.h> |
15460 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15461 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15462 | since some C++ compilers masquerading as C compilers | |
15463 | incorrectly reject 9223372036854775807. */ | |
15464 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
cd9a469c | 15465 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
15466 | && LARGE_OFF_T % 2147483647 == 1) | |
15467 | ? 1 : -1]; | |
56c15991 | 15468 | int |
15469 | main () | |
15470 | { | |
56c15991 | 15471 | |
15472 | ; | |
15473 | return 0; | |
15474 | } | |
15475 | _ACEOF | |
cd9a469c | 15476 | if ac_fn_c_try_compile "$LINENO"; then : |
15477 | break | |
56c15991 | 15478 | fi |
cd9a469c | 15479 | rm -f core conftest.err conftest.$ac_objext |
15480 | CC="$CC -n32" | |
15481 | if ac_fn_c_try_compile "$LINENO"; then : | |
15482 | ac_cv_sys_largefile_CC=' -n32'; break | |
15483 | fi | |
15484 | rm -f core conftest.err conftest.$ac_objext | |
15485 | break | |
15486 | done | |
15487 | CC=$ac_save_CC | |
15488 | rm -f conftest.$ac_ext | |
15489 | fi | |
15490 | fi | |
15491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15492 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
15493 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15494 | CC=$CC$ac_cv_sys_largefile_CC | |
15495 | fi | |
56c15991 | 15496 | |
cd9a469c | 15497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
15498 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
15499 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
15500 | $as_echo_n "(cached) " >&6 | |
15501 | else | |
15502 | while :; do | |
15503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15504 | /* end confdefs.h. */ |
cd9a469c | 15505 | #include <sys/types.h> |
15506 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15507 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15508 | since some C++ compilers masquerading as C compilers | |
15509 | incorrectly reject 9223372036854775807. */ | |
15510 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15511 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15512 | && LARGE_OFF_T % 2147483647 == 1) | |
15513 | ? 1 : -1]; | |
56c15991 | 15514 | int |
15515 | main () | |
15516 | { | |
56c15991 | 15517 | |
15518 | ; | |
15519 | return 0; | |
15520 | } | |
15521 | _ACEOF | |
cd9a469c | 15522 | if ac_fn_c_try_compile "$LINENO"; then : |
15523 | ac_cv_sys_file_offset_bits=no; break | |
15524 | fi | |
15525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15527 | /* end confdefs.h. */ |
cd9a469c | 15528 | #define _FILE_OFFSET_BITS 64 |
15529 | #include <sys/types.h> | |
15530 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15531 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15532 | since some C++ compilers masquerading as C compilers | |
15533 | incorrectly reject 9223372036854775807. */ | |
15534 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15535 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15536 | && LARGE_OFF_T % 2147483647 == 1) | |
15537 | ? 1 : -1]; | |
56c15991 | 15538 | int |
15539 | main () | |
15540 | { | |
56c15991 | 15541 | |
15542 | ; | |
15543 | return 0; | |
15544 | } | |
15545 | _ACEOF | |
cd9a469c | 15546 | if ac_fn_c_try_compile "$LINENO"; then : |
15547 | ac_cv_sys_file_offset_bits=64; break | |
56c15991 | 15548 | fi |
cd9a469c | 15549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15550 | ac_cv_sys_file_offset_bits=unknown | |
15551 | break | |
15552 | done | |
56c15991 | 15553 | fi |
cd9a469c | 15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
15555 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
15556 | case $ac_cv_sys_file_offset_bits in #( | |
15557 | no | unknown) ;; | |
15558 | *) | |
15559 | cat >>confdefs.h <<_ACEOF | |
15560 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
56c15991 | 15561 | _ACEOF |
cd9a469c | 15562 | ;; |
15563 | esac | |
15564 | rm -rf conftest* | |
15565 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15567 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
15568 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
15569 | $as_echo_n "(cached) " >&6 | |
15570 | else | |
15571 | while :; do | |
15572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15573 | /* end confdefs.h. */ |
cd9a469c | 15574 | #include <sys/types.h> |
15575 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15576 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15577 | since some C++ compilers masquerading as C compilers | |
15578 | incorrectly reject 9223372036854775807. */ | |
15579 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15580 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15581 | && LARGE_OFF_T % 2147483647 == 1) | |
15582 | ? 1 : -1]; | |
56c15991 | 15583 | int |
15584 | main () | |
15585 | { | |
56c15991 | 15586 | |
15587 | ; | |
15588 | return 0; | |
15589 | } | |
15590 | _ACEOF | |
cd9a469c | 15591 | if ac_fn_c_try_compile "$LINENO"; then : |
15592 | ac_cv_sys_large_files=no; break | |
56c15991 | 15593 | fi |
cd9a469c | 15594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
56c15991 | 15596 | /* end confdefs.h. */ |
cd9a469c | 15597 | #define _LARGE_FILES 1 |
15598 | #include <sys/types.h> | |
15599 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15600 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15601 | since some C++ compilers masquerading as C compilers | |
15602 | incorrectly reject 9223372036854775807. */ | |
15603 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
15604 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15605 | && LARGE_OFF_T % 2147483647 == 1) | |
15606 | ? 1 : -1]; | |
56c15991 | 15607 | int |
15608 | main () | |
15609 | { | |
15610 | ||
56c15991 | 15611 | ; |
15612 | return 0; | |
15613 | } | |
15614 | _ACEOF | |
cd9a469c | 15615 | if ac_fn_c_try_compile "$LINENO"; then : |
15616 | ac_cv_sys_large_files=1; break | |
56c15991 | 15617 | fi |
cd9a469c | 15618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15619 | ac_cv_sys_large_files=unknown | |
15620 | break | |
15621 | done | |
82eaf560 | 15622 | fi |
cd9a469c | 15623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
15624 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
15625 | case $ac_cv_sys_large_files in #( | |
15626 | no | unknown) ;; | |
15627 | *) | |
56c15991 | 15628 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 15629 | #define _LARGE_FILES $ac_cv_sys_large_files |
56c15991 | 15630 | _ACEOF |
cd9a469c | 15631 | ;; |
15632 | esac | |
15633 | rm -rf conftest* | |
15634 | fi | |
56c15991 | 15635 | fi |
15636 | ||
c75dca49 | 15637 | |
15638 | # Types | |
cd9a469c | 15639 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
15640 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
56c15991 | 15641 | |
cd9a469c | 15642 | else |
56c15991 | 15643 | |
cd9a469c | 15644 | cat >>confdefs.h <<_ACEOF |
15645 | #define off_t long int | |
15646 | _ACEOF | |
56c15991 | 15647 | |
c75dca49 | 15648 | fi |
15649 | ||
15650 | ||
15651 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | |
15652 | if test "x$ac_cv_type_intptr_t" = x""yes; then : | |
15653 | ||
15654 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | |
15655 | ||
15656 | else | |
15657 | for ac_type in 'int' 'long int' 'long long int'; do | |
15658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15659 | /* end confdefs.h. */ | |
15660 | $ac_includes_default | |
15661 | int | |
15662 | main () | |
15663 | { | |
15664 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
15665 | test_array [0] = 0 | |
15666 | ||
15667 | ; | |
15668 | return 0; | |
15669 | } | |
15670 | _ACEOF | |
15671 | if ac_fn_c_try_compile "$LINENO"; then : | |
15672 | ||
15673 | cat >>confdefs.h <<_ACEOF | |
15674 | #define intptr_t $ac_type | |
15675 | _ACEOF | |
15676 | ||
15677 | ac_type= | |
15678 | fi | |
15679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15680 | test -z "$ac_type" && break | |
15681 | done | |
15682 | fi | |
15683 | ||
15684 | ||
15685 | ||
15686 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
15687 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
15688 | ||
15689 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | |
15690 | ||
15691 | else | |
15692 | for ac_type in 'unsigned int' 'unsigned long int' \ | |
15693 | 'unsigned long long int'; do | |
15694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15695 | /* end confdefs.h. */ | |
15696 | $ac_includes_default | |
15697 | int | |
15698 | main () | |
15699 | { | |
15700 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | |
15701 | test_array [0] = 0 | |
15702 | ||
15703 | ; | |
15704 | return 0; | |
15705 | } | |
15706 | _ACEOF | |
15707 | if ac_fn_c_try_compile "$LINENO"; then : | |
15708 | ||
15709 | cat >>confdefs.h <<_ACEOF | |
15710 | #define uintptr_t $ac_type | |
15711 | _ACEOF | |
15712 | ||
15713 | ac_type= | |
15714 | fi | |
15715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15716 | test -z "$ac_type" && break | |
15717 | done | |
15718 | fi | |
15719 | ||
15720 | ||
15721 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
15722 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : | |
15723 | ||
15724 | cat >>confdefs.h <<_ACEOF | |
15725 | #define HAVE_PTRDIFF_T 1 | |
15726 | _ACEOF | |
15727 | ||
15728 | ||
56c15991 | 15729 | fi |
15730 | ||
56c15991 | 15731 | |
cd9a469c | 15732 | # check header files |
15733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
15734 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
15735 | if test "${ac_cv_header_stdc+set}" = set; then : | |
15736 | $as_echo_n "(cached) " >&6 | |
771c1b50 | 15737 | else |
cd9a469c | 15738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
771c1b50 | 15739 | /* end confdefs.h. */ |
cd9a469c | 15740 | #include <stdlib.h> |
15741 | #include <stdarg.h> | |
15742 | #include <string.h> | |
15743 | #include <float.h> | |
771c1b50 | 15744 | |
771c1b50 | 15745 | int |
15746 | main () | |
15747 | { | |
cd9a469c | 15748 | |
771c1b50 | 15749 | ; |
15750 | return 0; | |
15751 | } | |
15752 | _ACEOF | |
cd9a469c | 15753 | if ac_fn_c_try_compile "$LINENO"; then : |
15754 | ac_cv_header_stdc=yes | |
771c1b50 | 15755 | else |
cd9a469c | 15756 | ac_cv_header_stdc=no |
771c1b50 | 15757 | fi |
cd9a469c | 15758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15759 | ||
15760 | if test $ac_cv_header_stdc = yes; then | |
15761 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15763 | /* end confdefs.h. */ | |
15764 | #include <string.h> | |
771c1b50 | 15765 | |
771c1b50 | 15766 | _ACEOF |
cd9a469c | 15767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15768 | $EGREP "memchr" >/dev/null 2>&1; then : | |
771c1b50 | 15769 | |
cd9a469c | 15770 | else |
15771 | ac_cv_header_stdc=no | |
15772 | fi | |
15773 | rm -f conftest* | |
771c1b50 | 15774 | |
15775 | fi | |
15776 | ||
cd9a469c | 15777 | if test $ac_cv_header_stdc = yes; then |
15778 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
771c1b50 | 15780 | /* end confdefs.h. */ |
cd9a469c | 15781 | #include <stdlib.h> |
15782 | ||
771c1b50 | 15783 | _ACEOF |
cd9a469c | 15784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15785 | $EGREP "free" >/dev/null 2>&1; then : | |
15786 | ||
771c1b50 | 15787 | else |
cd9a469c | 15788 | ac_cv_header_stdc=no |
15789 | fi | |
15790 | rm -f conftest* | |
771c1b50 | 15791 | |
cd9a469c | 15792 | fi |
15793 | ||
15794 | if test $ac_cv_header_stdc = yes; then | |
15795 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15796 | if test "$cross_compiling" = yes; then : | |
15797 | : | |
15798 | else | |
15799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
771c1b50 | 15800 | /* end confdefs.h. */ |
cd9a469c | 15801 | #include <ctype.h> |
15802 | #include <stdlib.h> | |
15803 | #if ((' ' & 0x0FF) == 0x020) | |
15804 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15805 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15806 | #else | |
15807 | # define ISLOWER(c) \ | |
15808 | (('a' <= (c) && (c) <= 'i') \ | |
15809 | || ('j' <= (c) && (c) <= 'r') \ | |
15810 | || ('s' <= (c) && (c) <= 'z')) | |
15811 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
15812 | #endif | |
15813 | ||
15814 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
771c1b50 | 15815 | int |
15816 | main () | |
15817 | { | |
cd9a469c | 15818 | int i; |
15819 | for (i = 0; i < 256; i++) | |
15820 | if (XOR (islower (i), ISLOWER (i)) | |
15821 | || toupper (i) != TOUPPER (i)) | |
15822 | return 2; | |
771c1b50 | 15823 | return 0; |
15824 | } | |
15825 | _ACEOF | |
cd9a469c | 15826 | if ac_fn_c_try_run "$LINENO"; then : |
771c1b50 | 15827 | |
cd9a469c | 15828 | else |
15829 | ac_cv_header_stdc=no | |
771c1b50 | 15830 | fi |
cd9a469c | 15831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15832 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
771c1b50 | 15833 | fi |
771c1b50 | 15834 | |
cd9a469c | 15835 | fi |
15836 | fi | |
15837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
15838 | $as_echo "$ac_cv_header_stdc" >&6; } | |
15839 | if test $ac_cv_header_stdc = yes; then | |
771c1b50 | 15840 | |
cd9a469c | 15841 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
771c1b50 | 15842 | |
15843 | fi | |
15844 | ||
cd9a469c | 15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
15846 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
15847 | if test "${ac_cv_header_time+set}" = set; then : | |
15848 | $as_echo_n "(cached) " >&6 | |
771c1b50 | 15849 | else |
cd9a469c | 15850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
771c1b50 | 15851 | /* end confdefs.h. */ |
cd9a469c | 15852 | #include <sys/types.h> |
15853 | #include <sys/time.h> | |
15854 | #include <time.h> | |
771c1b50 | 15855 | |
771c1b50 | 15856 | int |
15857 | main () | |
15858 | { | |
cd9a469c | 15859 | if ((struct tm *) 0) |
771c1b50 | 15860 | return 0; |
15861 | ; | |
15862 | return 0; | |
15863 | } | |
15864 | _ACEOF | |
cd9a469c | 15865 | if ac_fn_c_try_compile "$LINENO"; then : |
15866 | ac_cv_header_time=yes | |
771c1b50 | 15867 | else |
cd9a469c | 15868 | ac_cv_header_time=no |
771c1b50 | 15869 | fi |
cd9a469c | 15870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
771c1b50 | 15871 | fi |
cd9a469c | 15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
15873 | $as_echo "$ac_cv_header_time" >&6; } | |
15874 | if test $ac_cv_header_time = yes; then | |
771c1b50 | 15875 | |
cd9a469c | 15876 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
771c1b50 | 15877 | |
15878 | fi | |
15879 | ||
cd9a469c | 15880 | for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h |
15881 | do : | |
15882 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15883 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15884 | eval as_val=\$$as_ac_Header | |
15885 | if test "x$as_val" = x""yes; then : | |
15886 | cat >>confdefs.h <<_ACEOF | |
15887 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15888 | _ACEOF | |
771c1b50 | 15889 | |
cd9a469c | 15890 | fi |
7dfba97b | 15891 | |
cd9a469c | 15892 | done |
5e7b82bb | 15893 | |
cd9a469c | 15894 | for ac_header in time.h sys/time.h sys/times.h sys/resource.h |
15895 | do : | |
15896 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15897 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15898 | eval as_val=\$$as_ac_Header | |
15899 | if test "x$as_val" = x""yes; then : | |
15900 | cat >>confdefs.h <<_ACEOF | |
15901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15902 | _ACEOF | |
c436f700 | 15903 | |
cd9a469c | 15904 | fi |
a54b1ce7 | 15905 | |
cd9a469c | 15906 | done |
a54b1ce7 | 15907 | |
cd9a469c | 15908 | for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h |
15909 | do : | |
15910 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15911 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15912 | eval as_val=\$$as_ac_Header | |
15913 | if test "x$as_val" = x""yes; then : | |
15914 | cat >>confdefs.h <<_ACEOF | |
15915 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15916 | _ACEOF | |
14c3c235 | 15917 | |
b52ee437 | 15918 | fi |
4dd3972f | 15919 | |
cd9a469c | 15920 | done |
4dd3972f | 15921 | |
cd9a469c | 15922 | for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h |
15923 | do : | |
15924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15925 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15926 | eval as_val=\$$as_ac_Header | |
15927 | if test "x$as_val" = x""yes; then : | |
15928 | cat >>confdefs.h <<_ACEOF | |
15929 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15930 | _ACEOF | |
4dd3972f | 15931 | |
cd9a469c | 15932 | fi |
4dd3972f | 15933 | |
cd9a469c | 15934 | done |
4dd3972f | 15935 | |
cd9a469c | 15936 | ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default" |
15937 | if test "x$ac_cv_header_complex_h" = x""yes; then : | |
4dd3972f | 15938 | |
cd9a469c | 15939 | $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h |
4dd3972f | 15940 | |
15941 | fi | |
4dd3972f | 15942 | |
15943 | ||
4dd3972f | 15944 | |
4ee9c684 | 15945 | |
2069752c | 15946 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
4ee9c684 | 15947 | |
2069752c | 15948 | acx_cv_header_stdint=stddef.h |
15949 | acx_cv_header_stdint_kind="(already complete)" | |
15950 | for i in stdint.h $inttype_headers; do | |
15951 | unset ac_cv_type_uintptr_t | |
15952 | unset ac_cv_type_uintmax_t | |
15953 | unset ac_cv_type_int_least32_t | |
15954 | unset ac_cv_type_int_fast32_t | |
15955 | unset ac_cv_type_uint64_t | |
15956 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
15957 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
15958 | #include <$i> | |
15959 | " | |
15960 | if test "x$ac_cv_type_uintmax_t" = x""yes; then : | |
15961 | acx_cv_header_stdint=$i | |
cd9a469c | 15962 | else |
2069752c | 15963 | continue |
cd9a469c | 15964 | fi |
4ee9c684 | 15965 | |
2069752c | 15966 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
15967 | #include <$i> | |
15968 | " | |
15969 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
90973b19 | 15970 | |
cd9a469c | 15971 | else |
2069752c | 15972 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 15973 | fi |
90973b19 | 15974 | |
2069752c | 15975 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
15976 | #include <$i> | |
15977 | " | |
15978 | if test "x$ac_cv_type_int_least32_t" = x""yes; then : | |
15979 | ||
4dd3972f | 15980 | else |
2069752c | 15981 | acx_cv_header_stdint_kind="(mostly complete)" |
cd9a469c | 15982 | fi |
cd9a469c | 15983 | |
2069752c | 15984 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
15985 | #include <$i> | |
15986 | " | |
15987 | if test "x$ac_cv_type_int_fast32_t" = x""yes; then : | |
4dd3972f | 15988 | |
2069752c | 15989 | else |
15990 | acx_cv_header_stdint_kind="(mostly complete)" | |
15991 | fi | |
ea6b3890 | 15992 | |
2069752c | 15993 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
15994 | #include <$i> | |
15995 | " | |
15996 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
ea6b3890 | 15997 | |
cd9a469c | 15998 | else |
2069752c | 15999 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
16000 | fi | |
4dd3972f | 16001 | |
2069752c | 16002 | break |
16003 | done | |
16004 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16005 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16006 | for i in stdint.h $inttype_headers; do | |
16007 | unset ac_cv_type_uintptr_t | |
16008 | unset ac_cv_type_uint32_t | |
16009 | unset ac_cv_type_uint64_t | |
16010 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16011 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16012 | #include <$i> | |
16013 | " | |
16014 | if test "x$ac_cv_type_uint32_t" = x""yes; then : | |
16015 | acx_cv_header_stdint=$i | |
16016 | else | |
16017 | continue | |
cd9a469c | 16018 | fi |
4dd3972f | 16019 | |
2069752c | 16020 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16021 | #include <$i> | |
16022 | " | |
16023 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
f2c0a16d | 16024 | |
2069752c | 16025 | fi |
247981ce | 16026 | |
2069752c | 16027 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16028 | #include <$i> | |
16029 | " | |
16030 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
247981ce | 16031 | |
2069752c | 16032 | fi |
b902b078 | 16033 | |
2069752c | 16034 | break |
16035 | done | |
16036 | fi | |
16037 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16038 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16039 | for i in sys/types.h $inttype_headers; do | |
16040 | unset ac_cv_type_u_int32_t | |
16041 | unset ac_cv_type_u_int64_t | |
16042 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16043 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16044 | #include <$i> | |
16045 | " | |
16046 | if test "x$ac_cv_type_u_int32_t" = x""yes; then : | |
16047 | acx_cv_header_stdint=$i | |
ea6b3890 | 16048 | else |
2069752c | 16049 | continue |
16050 | fi | |
d2fc5bb1 | 16051 | |
2069752c | 16052 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16053 | #include <$i> | |
16054 | " | |
16055 | if test "x$ac_cv_type_u_int64_t" = x""yes; then : | |
d2fc5bb1 | 16056 | |
2069752c | 16057 | fi |
d2fc5bb1 | 16058 | |
2069752c | 16059 | break |
16060 | done | |
d2fc5bb1 | 16061 | fi |
2069752c | 16062 | if test "$acx_cv_header_stdint" = stddef.h; then |
16063 | acx_cv_header_stdint_kind="(using manual detection)" | |
cd9a469c | 16064 | fi |
d2fc5bb1 | 16065 | |
2069752c | 16066 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16067 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16068 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16069 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16070 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
d2fc5bb1 | 16071 | |
2069752c | 16072 | # ----------------- Summarize what we found so far |
cd9a469c | 16073 | |
2069752c | 16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16075 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
d2fc5bb1 | 16076 | |
2069752c | 16077 | case `$as_basename -- gstdint.h || |
16078 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16079 | Xgstdint.h : 'X\(//\)$' \| \ | |
16080 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16081 | $as_echo X/gstdint.h | | |
16082 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16083 | s//\1/ | |
16084 | q | |
16085 | } | |
16086 | /^X\/\(\/\/\)$/{ | |
16087 | s//\1/ | |
16088 | q | |
16089 | } | |
16090 | /^X\/\(\/\).*/{ | |
16091 | s//\1/ | |
16092 | q | |
16093 | } | |
16094 | s/.*/./; q'` in | |
16095 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16096 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16097 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16098 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16099 | *) ;; | |
16100 | esac | |
d2fc5bb1 | 16101 | |
2069752c | 16102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16103 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
e93cd318 | 16104 | |
2069752c | 16105 | # ----------------- done included file, check C basic types -------- |
99798ba4 | 16106 | |
2069752c | 16107 | # Lacking an uintptr_t? Test size of void * |
16108 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16109 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16110 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16111 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16112 | # This bug is HP SR number 8606223364. | |
16113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16114 | $as_echo_n "checking size of void *... " >&6; } | |
16115 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16116 | $as_echo_n "(cached) " >&6 | |
16117 | else | |
16118 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
99798ba4 | 16119 | |
2069752c | 16120 | else |
16121 | if test "$ac_cv_type_void_p" = yes; then | |
16122 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16123 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16124 | { as_fn_set_status 77 | |
16125 | as_fn_error "cannot compute sizeof (void *) | |
16126 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16127 | else | |
16128 | ac_cv_sizeof_void_p=0 | |
16129 | fi | |
16130 | fi | |
ea6b3890 | 16131 | |
2069752c | 16132 | fi |
16133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
16134 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
ea6b3890 | 16135 | |
99798ba4 | 16136 | |
16137 | ||
ea6b3890 | 16138 | cat >>confdefs.h <<_ACEOF |
2069752c | 16139 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
ea6b3890 | 16140 | _ACEOF |
ea6b3890 | 16141 | |
2069752c | 16142 | ;; |
16143 | esac | |
ea6b3890 | 16144 | |
2069752c | 16145 | # Lacking an uint64_t? Test size of long |
16146 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16147 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16148 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16149 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16150 | # This bug is HP SR number 8606223364. | |
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16152 | $as_echo_n "checking size of long... " >&6; } | |
16153 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
cd9a469c | 16154 | $as_echo_n "(cached) " >&6 |
16155 | else | |
2069752c | 16156 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
ea6b3890 | 16157 | |
c634bedf | 16158 | else |
2069752c | 16159 | if test "$ac_cv_type_long" = yes; then |
16160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16162 | { as_fn_set_status 77 | |
16163 | as_fn_error "cannot compute sizeof (long) | |
16164 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16165 | else | |
16166 | ac_cv_sizeof_long=0 | |
16167 | fi | |
cd9a469c | 16168 | fi |
c634bedf | 16169 | |
2069752c | 16170 | fi |
16171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16172 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
ea6b3890 | 16173 | |
c634bedf | 16174 | |
ea6b3890 | 16175 | |
16176 | cat >>confdefs.h <<_ACEOF | |
2069752c | 16177 | #define SIZEOF_LONG $ac_cv_sizeof_long |
ea6b3890 | 16178 | _ACEOF |
c634bedf | 16179 | |
2069752c | 16180 | ;; |
16181 | esac | |
74b918e9 | 16182 | |
2069752c | 16183 | if test $acx_cv_header_stdint = stddef.h; then |
16184 | # Lacking a good header? Test size of everything and deduce all types. | |
16185 | # The cast to long int works around a bug in the HP C Compiler | |
16186 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16187 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16188 | # This bug is HP SR number 8606223364. | |
16189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16190 | $as_echo_n "checking size of int... " >&6; } | |
16191 | if test "${ac_cv_sizeof_int+set}" = set; then : | |
16192 | $as_echo_n "(cached) " >&6 | |
16193 | else | |
16194 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
c0e8efbe | 16195 | |
2069752c | 16196 | else |
16197 | if test "$ac_cv_type_int" = yes; then | |
16198 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16199 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16200 | { as_fn_set_status 77 | |
16201 | as_fn_error "cannot compute sizeof (int) | |
16202 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16203 | else | |
16204 | ac_cv_sizeof_int=0 | |
16205 | fi | |
16206 | fi | |
5a037dbd | 16207 | |
2069752c | 16208 | fi |
16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16210 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e0582811 | 16211 | |
16212 | ||
99798ba4 | 16213 | |
ea6b3890 | 16214 | cat >>confdefs.h <<_ACEOF |
2069752c | 16215 | #define SIZEOF_INT $ac_cv_sizeof_int |
ea6b3890 | 16216 | _ACEOF |
16217 | ||
ea6b3890 | 16218 | |
2069752c | 16219 | # The cast to long int works around a bug in the HP C Compiler |
16220 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16221 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16222 | # This bug is HP SR number 8606223364. | |
16223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16224 | $as_echo_n "checking size of short... " >&6; } | |
16225 | if test "${ac_cv_sizeof_short+set}" = set; then : | |
16226 | $as_echo_n "(cached) " >&6 | |
16227 | else | |
16228 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
ea6b3890 | 16229 | |
2069752c | 16230 | else |
16231 | if test "$ac_cv_type_short" = yes; then | |
16232 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16233 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16234 | { as_fn_set_status 77 | |
16235 | as_fn_error "cannot compute sizeof (short) | |
16236 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16237 | else | |
16238 | ac_cv_sizeof_short=0 | |
16239 | fi | |
16240 | fi | |
ea6b3890 | 16241 | |
2069752c | 16242 | fi |
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16244 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
ea6b3890 | 16245 | |
16246 | ||
16247 | ||
2069752c | 16248 | cat >>confdefs.h <<_ACEOF |
16249 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16250 | _ACEOF | |
ea6b3890 | 16251 | |
16252 | ||
2069752c | 16253 | # The cast to long int works around a bug in the HP C Compiler |
16254 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16255 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16256 | # This bug is HP SR number 8606223364. | |
16257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
16258 | $as_echo_n "checking size of char... " >&6; } | |
16259 | if test "${ac_cv_sizeof_char+set}" = set; then : | |
16260 | $as_echo_n "(cached) " >&6 | |
16261 | else | |
16262 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
ea6b3890 | 16263 | |
2069752c | 16264 | else |
16265 | if test "$ac_cv_type_char" = yes; then | |
16266 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16267 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16268 | { as_fn_set_status 77 | |
16269 | as_fn_error "cannot compute sizeof (char) | |
16270 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16271 | else | |
16272 | ac_cv_sizeof_char=0 | |
16273 | fi | |
16274 | fi | |
ea6b3890 | 16275 | |
2069752c | 16276 | fi |
16277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
16278 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
ea6b3890 | 16279 | |
16280 | ||
ea6b3890 | 16281 | |
cd9a469c | 16282 | cat >>confdefs.h <<_ACEOF |
2069752c | 16283 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
99798ba4 | 16284 | _ACEOF |
99798ba4 | 16285 | |
99798ba4 | 16286 | |
eaae6999 | 16287 | |
2069752c | 16288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 |
16289 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16290 | case "$ac_cv_sizeof_char" in | |
16291 | 1) acx_cv_type_int8_t=char ;; | |
9b15a251 | 16292 | *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16293 | esac |
16294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16295 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16296 | ||
16297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16298 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16299 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16300 | 2:*) acx_cv_type_int16_t=int ;; | |
16301 | *:2) acx_cv_type_int16_t=short ;; | |
9b15a251 | 16302 | *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16303 | esac |
16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16305 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16306 | ||
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16308 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16309 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16310 | 4:*) acx_cv_type_int32_t=int ;; | |
16311 | *:4) acx_cv_type_int32_t=long ;; | |
9b15a251 | 16312 | *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 |
2069752c | 16313 | esac |
16314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16315 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
cd9a469c | 16316 | fi |
16317 | ||
2069752c | 16318 | # These tests are here to make the output prettier |
ea6b3890 | 16319 | |
2069752c | 16320 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then |
16321 | case "$ac_cv_sizeof_long" in | |
16322 | 8) acx_cv_type_int64_t=long ;; | |
16323 | esac | |
16324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16325 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16327 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16328 | fi | |
16329 | ||
16330 | # Now we can use the above types | |
16331 | ||
16332 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16334 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16335 | case $ac_cv_sizeof_void_p in | |
16336 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16337 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16338 | 8) acx_cv_type_intptr_t=int64_t ;; | |
9b15a251 | 16339 | *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
2069752c | 16340 | esac |
16341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16342 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16343 | fi | |
ea6b3890 | 16344 | |
2069752c | 16345 | # ----------------- done all checks, emit header ------------- |
cd9a469c | 16346 | ac_config_commands="$ac_config_commands gstdint.h" |
eaae6999 | 16347 | |
eaae6999 | 16348 | |
cd9a469c | 16349 | |
16350 | ||
16351 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
16352 | if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : | |
16353 | ||
16354 | cat >>confdefs.h <<_ACEOF | |
16355 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
eaae6999 | 16356 | _ACEOF |
eaae6999 | 16357 | |
cd9a469c | 16358 | |
eaae6999 | 16359 | fi |
cd9a469c | 16360 | |
16361 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
16362 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : | |
16363 | ||
16364 | cat >>confdefs.h <<_ACEOF | |
16365 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
eaae6999 | 16366 | _ACEOF |
16367 | ||
cd9a469c | 16368 | |
eaae6999 | 16369 | fi |
eaae6999 | 16370 | |
cd9a469c | 16371 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
16372 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
eaae6999 | 16373 | |
cd9a469c | 16374 | cat >>confdefs.h <<_ACEOF |
16375 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
16376 | _ACEOF | |
99798ba4 | 16377 | |
16378 | ||
b52ee437 | 16379 | fi |
cd9a469c | 16380 | |
16381 | ||
16382 | # Check for library functions. | |
16383 | for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize | |
16384 | do : | |
16385 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16386 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16387 | eval as_val=\$$as_ac_var | |
16388 | if test "x$as_val" = x""yes; then : | |
16389 | cat >>confdefs.h <<_ACEOF | |
16390 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4dd3972f | 16391 | _ACEOF |
4dd3972f | 16392 | |
cd9a469c | 16393 | fi |
16394 | done | |
4dd3972f | 16395 | |
cd9a469c | 16396 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror |
16397 | do : | |
16398 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16399 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16400 | eval as_val=\$$as_ac_var | |
16401 | if test "x$as_val" = x""yes; then : | |
16402 | cat >>confdefs.h <<_ACEOF | |
16403 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16404 | _ACEOF | |
4dd3972f | 16405 | |
cd9a469c | 16406 | fi |
16407 | done | |
4dd3972f | 16408 | |
bacb1fe3 | 16409 | for ac_func in sleep time ttyname signal alarm clock access fork execl |
cd9a469c | 16410 | do : |
16411 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16412 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16413 | eval as_val=\$$as_ac_var | |
16414 | if test "x$as_val" = x""yes; then : | |
16415 | cat >>confdefs.h <<_ACEOF | |
16416 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16417 | _ACEOF | |
4dd3972f | 16418 | |
cd9a469c | 16419 | fi |
16420 | done | |
16421 | ||
16422 | for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit | |
16423 | do : | |
16424 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16425 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16426 | eval as_val=\$$as_ac_var | |
16427 | if test "x$as_val" = x""yes; then : | |
16428 | cat >>confdefs.h <<_ACEOF | |
16429 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4dd3972f | 16430 | _ACEOF |
90973b19 | 16431 | |
90973b19 | 16432 | fi |
cd9a469c | 16433 | done |
16434 | ||
16435 | for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd | |
16436 | do : | |
16437 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16438 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16439 | eval as_val=\$$as_ac_var | |
16440 | if test "x$as_val" = x""yes; then : | |
16441 | cat >>confdefs.h <<_ACEOF | |
16442 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16443 | _ACEOF | |
16444 | ||
4ee9c684 | 16445 | fi |
cd9a469c | 16446 | done |
16447 | ||
bacb1fe3 | 16448 | for ac_func in localtime_r gmtime_r strerror_r getpwuid_r ttyname_r |
cd9a469c | 16449 | do : |
16450 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16451 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16452 | eval as_val=\$$as_ac_var | |
16453 | if test "x$as_val" = x""yes; then : | |
90973b19 | 16454 | cat >>confdefs.h <<_ACEOF |
cd9a469c | 16455 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
90973b19 | 16456 | _ACEOF |
4ee9c684 | 16457 | |
4ee9c684 | 16458 | fi |
90973b19 | 16459 | done |
4ee9c684 | 16460 | |
bacb1fe3 | 16461 | for ac_func in clock_gettime strftime |
a2c0dc0f | 16462 | do : |
bacb1fe3 | 16463 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16464 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16465 | eval as_val=\$$as_ac_var | |
16466 | if test "x$as_val" = x""yes; then : | |
a2c0dc0f | 16467 | cat >>confdefs.h <<_ACEOF |
bacb1fe3 | 16468 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a2c0dc0f | 16469 | _ACEOF |
16470 | ||
16471 | fi | |
16472 | done | |
16473 | ||
4ee9c684 | 16474 | |
cd9a469c | 16475 | # Check for glibc backtrace functions |
16476 | for ac_func in backtrace backtrace_symbols | |
16477 | do : | |
16478 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16479 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16480 | eval as_val=\$$as_ac_var | |
16481 | if test "x$as_val" = x""yes; then : | |
16482 | cat >>confdefs.h <<_ACEOF | |
16483 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16af3de2 | 16484 | _ACEOF |
16af3de2 | 16485 | |
16af3de2 | 16486 | fi |
cd9a469c | 16487 | done |
16488 | ||
16489 | ||
adad6c74 | 16490 | # Check libc for getgid, getpid, getuid |
cd9a469c | 16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5 |
16492 | $as_echo_n "checking for getgid in -lc... " >&6; } | |
16493 | if test "${ac_cv_lib_c_getgid+set}" = set; then : | |
16494 | $as_echo_n "(cached) " >&6 | |
adad6c74 | 16495 | else |
16496 | ac_check_lib_save_LIBS=$LIBS | |
16497 | LIBS="-lc $LIBS" | |
b52ee437 | 16498 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16499 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16500 | fi |
cd9a469c | 16501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
adad6c74 | 16502 | /* end confdefs.h. */ |
16503 | ||
cd9a469c | 16504 | /* Override any GCC internal prototype to avoid an error. |
16505 | Use char because int might match the return type of a GCC | |
16506 | builtin and then its argument prototype would still apply. */ | |
adad6c74 | 16507 | #ifdef __cplusplus |
16508 | extern "C" | |
16509 | #endif | |
adad6c74 | 16510 | char getgid (); |
16511 | int | |
16512 | main () | |
16513 | { | |
cd9a469c | 16514 | return getgid (); |
adad6c74 | 16515 | ; |
16516 | return 0; | |
16517 | } | |
16518 | _ACEOF | |
cd9a469c | 16519 | if ac_fn_c_try_link "$LINENO"; then : |
adad6c74 | 16520 | ac_cv_lib_c_getgid=yes |
16521 | else | |
cd9a469c | 16522 | ac_cv_lib_c_getgid=no |
adad6c74 | 16523 | fi |
cd9a469c | 16524 | rm -f core conftest.err conftest.$ac_objext \ |
16525 | conftest$ac_exeext conftest.$ac_ext | |
adad6c74 | 16526 | LIBS=$ac_check_lib_save_LIBS |
16527 | fi | |
cd9a469c | 16528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5 |
16529 | $as_echo "$ac_cv_lib_c_getgid" >&6; } | |
16530 | if test "x$ac_cv_lib_c_getgid" = x""yes; then : | |
adad6c74 | 16531 | |
cd9a469c | 16532 | $as_echo "#define HAVE_GETGID 1" >>confdefs.h |
adad6c74 | 16533 | |
16534 | fi | |
16535 | ||
cd9a469c | 16536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5 |
16537 | $as_echo_n "checking for getpid in -lc... " >&6; } | |
16538 | if test "${ac_cv_lib_c_getpid+set}" = set; then : | |
16539 | $as_echo_n "(cached) " >&6 | |
adad6c74 | 16540 | else |
16541 | ac_check_lib_save_LIBS=$LIBS | |
16542 | LIBS="-lc $LIBS" | |
b52ee437 | 16543 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16544 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16545 | fi |
cd9a469c | 16546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
adad6c74 | 16547 | /* end confdefs.h. */ |
16548 | ||
cd9a469c | 16549 | /* Override any GCC internal prototype to avoid an error. |
16550 | Use char because int might match the return type of a GCC | |
16551 | builtin and then its argument prototype would still apply. */ | |
adad6c74 | 16552 | #ifdef __cplusplus |
16553 | extern "C" | |
16554 | #endif | |
adad6c74 | 16555 | char getpid (); |
16556 | int | |
16557 | main () | |
16558 | { | |
cd9a469c | 16559 | return getpid (); |
adad6c74 | 16560 | ; |
16561 | return 0; | |
16562 | } | |
16563 | _ACEOF | |
cd9a469c | 16564 | if ac_fn_c_try_link "$LINENO"; then : |
adad6c74 | 16565 | ac_cv_lib_c_getpid=yes |
16566 | else | |
cd9a469c | 16567 | ac_cv_lib_c_getpid=no |
adad6c74 | 16568 | fi |
cd9a469c | 16569 | rm -f core conftest.err conftest.$ac_objext \ |
16570 | conftest$ac_exeext conftest.$ac_ext | |
adad6c74 | 16571 | LIBS=$ac_check_lib_save_LIBS |
16572 | fi | |
cd9a469c | 16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5 |
16574 | $as_echo "$ac_cv_lib_c_getpid" >&6; } | |
16575 | if test "x$ac_cv_lib_c_getpid" = x""yes; then : | |
adad6c74 | 16576 | |
cd9a469c | 16577 | $as_echo "#define HAVE_GETPID 1" >>confdefs.h |
adad6c74 | 16578 | |
16579 | fi | |
16580 | ||
cd9a469c | 16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getppid in -lc" >&5 |
16582 | $as_echo_n "checking for getppid in -lc... " >&6; } | |
16583 | if test "${ac_cv_lib_c_getppid+set}" = set; then : | |
16584 | $as_echo_n "(cached) " >&6 | |
99798ba4 | 16585 | else |
16586 | ac_check_lib_save_LIBS=$LIBS | |
16587 | LIBS="-lc $LIBS" | |
16588 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 16589 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
99798ba4 | 16590 | fi |
cd9a469c | 16591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
99798ba4 | 16592 | /* end confdefs.h. */ |
16593 | ||
cd9a469c | 16594 | /* Override any GCC internal prototype to avoid an error. |
16595 | Use char because int might match the return type of a GCC | |
16596 | builtin and then its argument prototype would still apply. */ | |
99798ba4 | 16597 | #ifdef __cplusplus |
16598 | extern "C" | |
16599 | #endif | |
99798ba4 | 16600 | char getppid (); |
16601 | int | |
16602 | main () | |
16603 | { | |
cd9a469c | 16604 | return getppid (); |
99798ba4 | 16605 | ; |
16606 | return 0; | |
16607 | } | |
16608 | _ACEOF | |
cd9a469c | 16609 | if ac_fn_c_try_link "$LINENO"; then : |
99798ba4 | 16610 | ac_cv_lib_c_getppid=yes |
16611 | else | |
cd9a469c | 16612 | ac_cv_lib_c_getppid=no |
99798ba4 | 16613 | fi |
cd9a469c | 16614 | rm -f core conftest.err conftest.$ac_objext \ |
16615 | conftest$ac_exeext conftest.$ac_ext | |
99798ba4 | 16616 | LIBS=$ac_check_lib_save_LIBS |
16617 | fi | |
cd9a469c | 16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getppid" >&5 |
16619 | $as_echo "$ac_cv_lib_c_getppid" >&6; } | |
16620 | if test "x$ac_cv_lib_c_getppid" = x""yes; then : | |
99798ba4 | 16621 | |
cd9a469c | 16622 | $as_echo "#define HAVE_GETPPID 1" >>confdefs.h |
99798ba4 | 16623 | |
16624 | fi | |
16625 | ||
cd9a469c | 16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5 |
16627 | $as_echo_n "checking for getuid in -lc... " >&6; } | |
16628 | if test "${ac_cv_lib_c_getuid+set}" = set; then : | |
16629 | $as_echo_n "(cached) " >&6 | |
adad6c74 | 16630 | else |
16631 | ac_check_lib_save_LIBS=$LIBS | |
16632 | LIBS="-lc $LIBS" | |
b52ee437 | 16633 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16634 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16635 | fi |
cd9a469c | 16636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
adad6c74 | 16637 | /* end confdefs.h. */ |
16638 | ||
cd9a469c | 16639 | /* Override any GCC internal prototype to avoid an error. |
16640 | Use char because int might match the return type of a GCC | |
16641 | builtin and then its argument prototype would still apply. */ | |
adad6c74 | 16642 | #ifdef __cplusplus |
16643 | extern "C" | |
16644 | #endif | |
adad6c74 | 16645 | char getuid (); |
16646 | int | |
16647 | main () | |
16648 | { | |
cd9a469c | 16649 | return getuid (); |
adad6c74 | 16650 | ; |
16651 | return 0; | |
16652 | } | |
16653 | _ACEOF | |
cd9a469c | 16654 | if ac_fn_c_try_link "$LINENO"; then : |
adad6c74 | 16655 | ac_cv_lib_c_getuid=yes |
16656 | else | |
cd9a469c | 16657 | ac_cv_lib_c_getuid=no |
adad6c74 | 16658 | fi |
cd9a469c | 16659 | rm -f core conftest.err conftest.$ac_objext \ |
16660 | conftest$ac_exeext conftest.$ac_ext | |
adad6c74 | 16661 | LIBS=$ac_check_lib_save_LIBS |
16662 | fi | |
cd9a469c | 16663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5 |
16664 | $as_echo "$ac_cv_lib_c_getuid" >&6; } | |
16665 | if test "x$ac_cv_lib_c_getuid" = x""yes; then : | |
adad6c74 | 16666 | |
cd9a469c | 16667 | $as_echo "#define HAVE_GETUID 1" >>confdefs.h |
adad6c74 | 16668 | |
16669 | fi | |
16670 | ||
cd9a469c | 16671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geteuid in -lc" >&5 |
16672 | $as_echo_n "checking for geteuid in -lc... " >&6; } | |
16673 | if test "${ac_cv_lib_c_geteuid+set}" = set; then : | |
16674 | $as_echo_n "(cached) " >&6 | |
c0e8efbe | 16675 | else |
16676 | ac_check_lib_save_LIBS=$LIBS | |
16677 | LIBS="-lc $LIBS" | |
16678 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 16679 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
c0e8efbe | 16680 | fi |
cd9a469c | 16681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c0e8efbe | 16682 | /* end confdefs.h. */ |
16683 | ||
cd9a469c | 16684 | /* Override any GCC internal prototype to avoid an error. |
16685 | Use char because int might match the return type of a GCC | |
16686 | builtin and then its argument prototype would still apply. */ | |
c0e8efbe | 16687 | #ifdef __cplusplus |
16688 | extern "C" | |
16689 | #endif | |
c0e8efbe | 16690 | char geteuid (); |
16691 | int | |
16692 | main () | |
16693 | { | |
cd9a469c | 16694 | return geteuid (); |
c0e8efbe | 16695 | ; |
16696 | return 0; | |
16697 | } | |
16698 | _ACEOF | |
cd9a469c | 16699 | if ac_fn_c_try_link "$LINENO"; then : |
c0e8efbe | 16700 | ac_cv_lib_c_geteuid=yes |
16701 | else | |
cd9a469c | 16702 | ac_cv_lib_c_geteuid=no |
c0e8efbe | 16703 | fi |
cd9a469c | 16704 | rm -f core conftest.err conftest.$ac_objext \ |
16705 | conftest$ac_exeext conftest.$ac_ext | |
c0e8efbe | 16706 | LIBS=$ac_check_lib_save_LIBS |
16707 | fi | |
cd9a469c | 16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_geteuid" >&5 |
16709 | $as_echo "$ac_cv_lib_c_geteuid" >&6; } | |
16710 | if test "x$ac_cv_lib_c_geteuid" = x""yes; then : | |
c0e8efbe | 16711 | |
cd9a469c | 16712 | $as_echo "#define HAVE_GETEUID 1" >>confdefs.h |
c0e8efbe | 16713 | |
16714 | fi | |
16715 | ||
adad6c74 | 16716 | |
8f838781 | 16717 | # Check for C99 (and other IEEE) math functions |
cd9a469c | 16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5 |
16719 | $as_echo_n "checking for acosf in -lm... " >&6; } | |
16720 | if test "${ac_cv_lib_m_acosf+set}" = set; then : | |
16721 | $as_echo_n "(cached) " >&6 | |
8f838781 | 16722 | else |
16723 | ac_check_lib_save_LIBS=$LIBS | |
16724 | LIBS="-lm $LIBS" | |
b52ee437 | 16725 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16726 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16727 | fi |
cd9a469c | 16728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16729 | /* end confdefs.h. */ |
16730 | ||
cd9a469c | 16731 | /* Override any GCC internal prototype to avoid an error. |
16732 | Use char because int might match the return type of a GCC | |
16733 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 16734 | #ifdef __cplusplus |
16735 | extern "C" | |
16736 | #endif | |
8f838781 | 16737 | char acosf (); |
16738 | int | |
16739 | main () | |
16740 | { | |
cd9a469c | 16741 | return acosf (); |
8f838781 | 16742 | ; |
16743 | return 0; | |
16744 | } | |
16745 | _ACEOF | |
cd9a469c | 16746 | if ac_fn_c_try_link "$LINENO"; then : |
8f838781 | 16747 | ac_cv_lib_m_acosf=yes |
16748 | else | |
cd9a469c | 16749 | ac_cv_lib_m_acosf=no |
8f838781 | 16750 | fi |
cd9a469c | 16751 | rm -f core conftest.err conftest.$ac_objext \ |
16752 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16753 | LIBS=$ac_check_lib_save_LIBS |
16754 | fi | |
cd9a469c | 16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosf" >&5 |
16756 | $as_echo "$ac_cv_lib_m_acosf" >&6; } | |
16757 | if test "x$ac_cv_lib_m_acosf" = x""yes; then : | |
8f838781 | 16758 | |
cd9a469c | 16759 | $as_echo "#define HAVE_ACOSF 1" >>confdefs.h |
8f838781 | 16760 | |
16761 | fi | |
16762 | ||
cd9a469c | 16763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5 |
16764 | $as_echo_n "checking for acos in -lm... " >&6; } | |
16765 | if test "${ac_cv_lib_m_acos+set}" = set; then : | |
16766 | $as_echo_n "(cached) " >&6 | |
b52ee437 | 16767 | else |
16768 | ac_check_lib_save_LIBS=$LIBS | |
16769 | LIBS="-lm $LIBS" | |
16770 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 16771 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16772 | fi |
cd9a469c | 16773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 16774 | /* end confdefs.h. */ |
16775 | ||
cd9a469c | 16776 | /* Override any GCC internal prototype to avoid an error. |
16777 | Use char because int might match the return type of a GCC | |
16778 | builtin and then its argument prototype would still apply. */ | |
b52ee437 | 16779 | #ifdef __cplusplus |
16780 | extern "C" | |
16781 | #endif | |
d213114b | 16782 | char acos (); |
b52ee437 | 16783 | int |
16784 | main () | |
16785 | { | |
cd9a469c | 16786 | return acos (); |
b52ee437 | 16787 | ; |
16788 | return 0; | |
16789 | } | |
16790 | _ACEOF | |
cd9a469c | 16791 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 16792 | ac_cv_lib_m_acos=yes |
b52ee437 | 16793 | else |
cd9a469c | 16794 | ac_cv_lib_m_acos=no |
b52ee437 | 16795 | fi |
cd9a469c | 16796 | rm -f core conftest.err conftest.$ac_objext \ |
16797 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 16798 | LIBS=$ac_check_lib_save_LIBS |
16799 | fi | |
cd9a469c | 16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5 |
16801 | $as_echo "$ac_cv_lib_m_acos" >&6; } | |
16802 | if test "x$ac_cv_lib_m_acos" = x""yes; then : | |
b52ee437 | 16803 | |
cd9a469c | 16804 | $as_echo "#define HAVE_ACOS 1" >>confdefs.h |
b52ee437 | 16805 | |
16806 | fi | |
16807 | ||
cd9a469c | 16808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5 |
16809 | $as_echo_n "checking for acosl in -lm... " >&6; } | |
16810 | if test "${ac_cv_lib_m_acosl+set}" = set; then : | |
16811 | $as_echo_n "(cached) " >&6 | |
8f838781 | 16812 | else |
16813 | ac_check_lib_save_LIBS=$LIBS | |
16814 | LIBS="-lm $LIBS" | |
b52ee437 | 16815 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16816 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16817 | fi |
cd9a469c | 16818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16819 | /* end confdefs.h. */ |
16820 | ||
cd9a469c | 16821 | /* Override any GCC internal prototype to avoid an error. |
16822 | Use char because int might match the return type of a GCC | |
16823 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 16824 | #ifdef __cplusplus |
16825 | extern "C" | |
16826 | #endif | |
d213114b | 16827 | char acosl (); |
8f838781 | 16828 | int |
16829 | main () | |
16830 | { | |
cd9a469c | 16831 | return acosl (); |
8f838781 | 16832 | ; |
16833 | return 0; | |
16834 | } | |
16835 | _ACEOF | |
cd9a469c | 16836 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 16837 | ac_cv_lib_m_acosl=yes |
8f838781 | 16838 | else |
cd9a469c | 16839 | ac_cv_lib_m_acosl=no |
8f838781 | 16840 | fi |
cd9a469c | 16841 | rm -f core conftest.err conftest.$ac_objext \ |
16842 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16843 | LIBS=$ac_check_lib_save_LIBS |
16844 | fi | |
cd9a469c | 16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosl" >&5 |
16846 | $as_echo "$ac_cv_lib_m_acosl" >&6; } | |
16847 | if test "x$ac_cv_lib_m_acosl" = x""yes; then : | |
8f838781 | 16848 | |
cd9a469c | 16849 | $as_echo "#define HAVE_ACOSL 1" >>confdefs.h |
8f838781 | 16850 | |
16851 | fi | |
16852 | ||
cd9a469c | 16853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5 |
16854 | $as_echo_n "checking for acoshf in -lm... " >&6; } | |
16855 | if test "${ac_cv_lib_m_acoshf+set}" = set; then : | |
16856 | $as_echo_n "(cached) " >&6 | |
b52ee437 | 16857 | else |
16858 | ac_check_lib_save_LIBS=$LIBS | |
16859 | LIBS="-lm $LIBS" | |
16860 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 16861 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16862 | fi |
cd9a469c | 16863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 16864 | /* end confdefs.h. */ |
16865 | ||
cd9a469c | 16866 | /* Override any GCC internal prototype to avoid an error. |
16867 | Use char because int might match the return type of a GCC | |
16868 | builtin and then its argument prototype would still apply. */ | |
b52ee437 | 16869 | #ifdef __cplusplus |
16870 | extern "C" | |
16871 | #endif | |
d213114b | 16872 | char acoshf (); |
b52ee437 | 16873 | int |
16874 | main () | |
16875 | { | |
cd9a469c | 16876 | return acoshf (); |
b52ee437 | 16877 | ; |
16878 | return 0; | |
16879 | } | |
16880 | _ACEOF | |
cd9a469c | 16881 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 16882 | ac_cv_lib_m_acoshf=yes |
b52ee437 | 16883 | else |
cd9a469c | 16884 | ac_cv_lib_m_acoshf=no |
b52ee437 | 16885 | fi |
cd9a469c | 16886 | rm -f core conftest.err conftest.$ac_objext \ |
16887 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 16888 | LIBS=$ac_check_lib_save_LIBS |
16889 | fi | |
cd9a469c | 16890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshf" >&5 |
16891 | $as_echo "$ac_cv_lib_m_acoshf" >&6; } | |
16892 | if test "x$ac_cv_lib_m_acoshf" = x""yes; then : | |
b52ee437 | 16893 | |
cd9a469c | 16894 | $as_echo "#define HAVE_ACOSHF 1" >>confdefs.h |
b52ee437 | 16895 | |
16896 | fi | |
16897 | ||
cd9a469c | 16898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5 |
16899 | $as_echo_n "checking for acosh in -lm... " >&6; } | |
16900 | if test "${ac_cv_lib_m_acosh+set}" = set; then : | |
16901 | $as_echo_n "(cached) " >&6 | |
8f838781 | 16902 | else |
16903 | ac_check_lib_save_LIBS=$LIBS | |
16904 | LIBS="-lm $LIBS" | |
b52ee437 | 16905 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16906 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16907 | fi |
cd9a469c | 16908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16909 | /* end confdefs.h. */ |
16910 | ||
cd9a469c | 16911 | /* Override any GCC internal prototype to avoid an error. |
16912 | Use char because int might match the return type of a GCC | |
16913 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 16914 | #ifdef __cplusplus |
16915 | extern "C" | |
16916 | #endif | |
d213114b | 16917 | char acosh (); |
8f838781 | 16918 | int |
16919 | main () | |
16920 | { | |
cd9a469c | 16921 | return acosh (); |
8f838781 | 16922 | ; |
16923 | return 0; | |
16924 | } | |
16925 | _ACEOF | |
cd9a469c | 16926 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 16927 | ac_cv_lib_m_acosh=yes |
8f838781 | 16928 | else |
cd9a469c | 16929 | ac_cv_lib_m_acosh=no |
8f838781 | 16930 | fi |
cd9a469c | 16931 | rm -f core conftest.err conftest.$ac_objext \ |
16932 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16933 | LIBS=$ac_check_lib_save_LIBS |
16934 | fi | |
cd9a469c | 16935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5 |
16936 | $as_echo "$ac_cv_lib_m_acosh" >&6; } | |
16937 | if test "x$ac_cv_lib_m_acosh" = x""yes; then : | |
8f838781 | 16938 | |
cd9a469c | 16939 | $as_echo "#define HAVE_ACOSH 1" >>confdefs.h |
8f838781 | 16940 | |
16941 | fi | |
16942 | ||
cd9a469c | 16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5 |
16944 | $as_echo_n "checking for acoshl in -lm... " >&6; } | |
16945 | if test "${ac_cv_lib_m_acoshl+set}" = set; then : | |
16946 | $as_echo_n "(cached) " >&6 | |
8f838781 | 16947 | else |
16948 | ac_check_lib_save_LIBS=$LIBS | |
16949 | LIBS="-lm $LIBS" | |
b52ee437 | 16950 | if test x$gcc_no_link = xyes; then |
cd9a469c | 16951 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16952 | fi |
cd9a469c | 16953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 16954 | /* end confdefs.h. */ |
16955 | ||
cd9a469c | 16956 | /* Override any GCC internal prototype to avoid an error. |
16957 | Use char because int might match the return type of a GCC | |
16958 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 16959 | #ifdef __cplusplus |
16960 | extern "C" | |
16961 | #endif | |
d213114b | 16962 | char acoshl (); |
8f838781 | 16963 | int |
16964 | main () | |
16965 | { | |
cd9a469c | 16966 | return acoshl (); |
8f838781 | 16967 | ; |
cd9a469c | 16968 | return 0; |
16969 | } | |
16970 | _ACEOF | |
16971 | if ac_fn_c_try_link "$LINENO"; then : | |
d213114b | 16972 | ac_cv_lib_m_acoshl=yes |
8f838781 | 16973 | else |
cd9a469c | 16974 | ac_cv_lib_m_acoshl=no |
8f838781 | 16975 | fi |
cd9a469c | 16976 | rm -f core conftest.err conftest.$ac_objext \ |
16977 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 16978 | LIBS=$ac_check_lib_save_LIBS |
16979 | fi | |
cd9a469c | 16980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshl" >&5 |
16981 | $as_echo "$ac_cv_lib_m_acoshl" >&6; } | |
16982 | if test "x$ac_cv_lib_m_acoshl" = x""yes; then : | |
8f838781 | 16983 | |
cd9a469c | 16984 | $as_echo "#define HAVE_ACOSHL 1" >>confdefs.h |
8f838781 | 16985 | |
16986 | fi | |
16987 | ||
cd9a469c | 16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5 |
16989 | $as_echo_n "checking for asinf in -lm... " >&6; } | |
16990 | if test "${ac_cv_lib_m_asinf+set}" = set; then : | |
16991 | $as_echo_n "(cached) " >&6 | |
b52ee437 | 16992 | else |
16993 | ac_check_lib_save_LIBS=$LIBS | |
16994 | LIBS="-lm $LIBS" | |
16995 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 16996 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 16997 | fi |
cd9a469c | 16998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b52ee437 | 16999 | /* end confdefs.h. */ |
17000 | ||
cd9a469c | 17001 | /* Override any GCC internal prototype to avoid an error. |
17002 | Use char because int might match the return type of a GCC | |
17003 | builtin and then its argument prototype would still apply. */ | |
b52ee437 | 17004 | #ifdef __cplusplus |
17005 | extern "C" | |
17006 | #endif | |
d213114b | 17007 | char asinf (); |
b52ee437 | 17008 | int |
17009 | main () | |
17010 | { | |
cd9a469c | 17011 | return asinf (); |
b52ee437 | 17012 | ; |
17013 | return 0; | |
17014 | } | |
17015 | _ACEOF | |
cd9a469c | 17016 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17017 | ac_cv_lib_m_asinf=yes |
b52ee437 | 17018 | else |
cd9a469c | 17019 | ac_cv_lib_m_asinf=no |
b52ee437 | 17020 | fi |
cd9a469c | 17021 | rm -f core conftest.err conftest.$ac_objext \ |
17022 | conftest$ac_exeext conftest.$ac_ext | |
b52ee437 | 17023 | LIBS=$ac_check_lib_save_LIBS |
17024 | fi | |
cd9a469c | 17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinf" >&5 |
17026 | $as_echo "$ac_cv_lib_m_asinf" >&6; } | |
17027 | if test "x$ac_cv_lib_m_asinf" = x""yes; then : | |
b52ee437 | 17028 | |
cd9a469c | 17029 | $as_echo "#define HAVE_ASINF 1" >>confdefs.h |
b52ee437 | 17030 | |
17031 | fi | |
17032 | ||
cd9a469c | 17033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5 |
17034 | $as_echo_n "checking for asin in -lm... " >&6; } | |
17035 | if test "${ac_cv_lib_m_asin+set}" = set; then : | |
17036 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17037 | else |
17038 | ac_check_lib_save_LIBS=$LIBS | |
17039 | LIBS="-lm $LIBS" | |
b52ee437 | 17040 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17041 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17042 | fi |
cd9a469c | 17043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17044 | /* end confdefs.h. */ |
17045 | ||
cd9a469c | 17046 | /* Override any GCC internal prototype to avoid an error. |
17047 | Use char because int might match the return type of a GCC | |
17048 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17049 | #ifdef __cplusplus |
17050 | extern "C" | |
17051 | #endif | |
d213114b | 17052 | char asin (); |
8f838781 | 17053 | int |
17054 | main () | |
17055 | { | |
cd9a469c | 17056 | return asin (); |
8f838781 | 17057 | ; |
17058 | return 0; | |
17059 | } | |
17060 | _ACEOF | |
cd9a469c | 17061 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17062 | ac_cv_lib_m_asin=yes |
8f838781 | 17063 | else |
cd9a469c | 17064 | ac_cv_lib_m_asin=no |
8f838781 | 17065 | fi |
cd9a469c | 17066 | rm -f core conftest.err conftest.$ac_objext \ |
17067 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17068 | LIBS=$ac_check_lib_save_LIBS |
17069 | fi | |
cd9a469c | 17070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5 |
17071 | $as_echo "$ac_cv_lib_m_asin" >&6; } | |
17072 | if test "x$ac_cv_lib_m_asin" = x""yes; then : | |
8f838781 | 17073 | |
cd9a469c | 17074 | $as_echo "#define HAVE_ASIN 1" >>confdefs.h |
8f838781 | 17075 | |
17076 | fi | |
17077 | ||
cd9a469c | 17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5 |
17079 | $as_echo_n "checking for asinl in -lm... " >&6; } | |
17080 | if test "${ac_cv_lib_m_asinl+set}" = set; then : | |
17081 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17082 | else |
17083 | ac_check_lib_save_LIBS=$LIBS | |
17084 | LIBS="-lm $LIBS" | |
b52ee437 | 17085 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17086 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17087 | fi |
cd9a469c | 17088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17089 | /* end confdefs.h. */ |
17090 | ||
cd9a469c | 17091 | /* Override any GCC internal prototype to avoid an error. |
17092 | Use char because int might match the return type of a GCC | |
17093 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17094 | #ifdef __cplusplus |
17095 | extern "C" | |
17096 | #endif | |
d213114b | 17097 | char asinl (); |
8f838781 | 17098 | int |
17099 | main () | |
17100 | { | |
cd9a469c | 17101 | return asinl (); |
8f838781 | 17102 | ; |
17103 | return 0; | |
17104 | } | |
17105 | _ACEOF | |
cd9a469c | 17106 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17107 | ac_cv_lib_m_asinl=yes |
8f838781 | 17108 | else |
cd9a469c | 17109 | ac_cv_lib_m_asinl=no |
8f838781 | 17110 | fi |
cd9a469c | 17111 | rm -f core conftest.err conftest.$ac_objext \ |
17112 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17113 | LIBS=$ac_check_lib_save_LIBS |
17114 | fi | |
cd9a469c | 17115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinl" >&5 |
17116 | $as_echo "$ac_cv_lib_m_asinl" >&6; } | |
17117 | if test "x$ac_cv_lib_m_asinl" = x""yes; then : | |
8f838781 | 17118 | |
cd9a469c | 17119 | $as_echo "#define HAVE_ASINL 1" >>confdefs.h |
8f838781 | 17120 | |
17121 | fi | |
17122 | ||
cd9a469c | 17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5 |
17124 | $as_echo_n "checking for asinhf in -lm... " >&6; } | |
17125 | if test "${ac_cv_lib_m_asinhf+set}" = set; then : | |
17126 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17127 | else |
17128 | ac_check_lib_save_LIBS=$LIBS | |
17129 | LIBS="-lm $LIBS" | |
b52ee437 | 17130 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17131 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17132 | fi |
cd9a469c | 17133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17134 | /* end confdefs.h. */ |
17135 | ||
cd9a469c | 17136 | /* Override any GCC internal prototype to avoid an error. |
17137 | Use char because int might match the return type of a GCC | |
17138 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17139 | #ifdef __cplusplus |
17140 | extern "C" | |
17141 | #endif | |
d213114b | 17142 | char asinhf (); |
8f838781 | 17143 | int |
17144 | main () | |
17145 | { | |
cd9a469c | 17146 | return asinhf (); |
8f838781 | 17147 | ; |
17148 | return 0; | |
17149 | } | |
17150 | _ACEOF | |
cd9a469c | 17151 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17152 | ac_cv_lib_m_asinhf=yes |
8f838781 | 17153 | else |
cd9a469c | 17154 | ac_cv_lib_m_asinhf=no |
8f838781 | 17155 | fi |
cd9a469c | 17156 | rm -f core conftest.err conftest.$ac_objext \ |
17157 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17158 | LIBS=$ac_check_lib_save_LIBS |
17159 | fi | |
cd9a469c | 17160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhf" >&5 |
17161 | $as_echo "$ac_cv_lib_m_asinhf" >&6; } | |
17162 | if test "x$ac_cv_lib_m_asinhf" = x""yes; then : | |
8f838781 | 17163 | |
cd9a469c | 17164 | $as_echo "#define HAVE_ASINHF 1" >>confdefs.h |
8f838781 | 17165 | |
17166 | fi | |
17167 | ||
cd9a469c | 17168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5 |
17169 | $as_echo_n "checking for asinh in -lm... " >&6; } | |
17170 | if test "${ac_cv_lib_m_asinh+set}" = set; then : | |
17171 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17172 | else |
17173 | ac_check_lib_save_LIBS=$LIBS | |
17174 | LIBS="-lm $LIBS" | |
b52ee437 | 17175 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17176 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17177 | fi |
cd9a469c | 17178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17179 | /* end confdefs.h. */ |
17180 | ||
cd9a469c | 17181 | /* Override any GCC internal prototype to avoid an error. |
17182 | Use char because int might match the return type of a GCC | |
17183 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17184 | #ifdef __cplusplus |
17185 | extern "C" | |
17186 | #endif | |
d213114b | 17187 | char asinh (); |
8f838781 | 17188 | int |
17189 | main () | |
17190 | { | |
cd9a469c | 17191 | return asinh (); |
8f838781 | 17192 | ; |
17193 | return 0; | |
17194 | } | |
17195 | _ACEOF | |
cd9a469c | 17196 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17197 | ac_cv_lib_m_asinh=yes |
8f838781 | 17198 | else |
cd9a469c | 17199 | ac_cv_lib_m_asinh=no |
8f838781 | 17200 | fi |
cd9a469c | 17201 | rm -f core conftest.err conftest.$ac_objext \ |
17202 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17203 | LIBS=$ac_check_lib_save_LIBS |
17204 | fi | |
cd9a469c | 17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5 |
17206 | $as_echo "$ac_cv_lib_m_asinh" >&6; } | |
17207 | if test "x$ac_cv_lib_m_asinh" = x""yes; then : | |
8f838781 | 17208 | |
cd9a469c | 17209 | $as_echo "#define HAVE_ASINH 1" >>confdefs.h |
8f838781 | 17210 | |
17211 | fi | |
17212 | ||
cd9a469c | 17213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5 |
17214 | $as_echo_n "checking for asinhl in -lm... " >&6; } | |
17215 | if test "${ac_cv_lib_m_asinhl+set}" = set; then : | |
17216 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17217 | else |
17218 | ac_check_lib_save_LIBS=$LIBS | |
17219 | LIBS="-lm $LIBS" | |
b52ee437 | 17220 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17221 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17222 | fi |
cd9a469c | 17223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17224 | /* end confdefs.h. */ |
17225 | ||
cd9a469c | 17226 | /* Override any GCC internal prototype to avoid an error. |
17227 | Use char because int might match the return type of a GCC | |
17228 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17229 | #ifdef __cplusplus |
17230 | extern "C" | |
17231 | #endif | |
d213114b | 17232 | char asinhl (); |
8f838781 | 17233 | int |
17234 | main () | |
17235 | { | |
cd9a469c | 17236 | return asinhl (); |
8f838781 | 17237 | ; |
17238 | return 0; | |
17239 | } | |
17240 | _ACEOF | |
cd9a469c | 17241 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17242 | ac_cv_lib_m_asinhl=yes |
8f838781 | 17243 | else |
cd9a469c | 17244 | ac_cv_lib_m_asinhl=no |
8f838781 | 17245 | fi |
cd9a469c | 17246 | rm -f core conftest.err conftest.$ac_objext \ |
17247 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17248 | LIBS=$ac_check_lib_save_LIBS |
17249 | fi | |
cd9a469c | 17250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhl" >&5 |
17251 | $as_echo "$ac_cv_lib_m_asinhl" >&6; } | |
17252 | if test "x$ac_cv_lib_m_asinhl" = x""yes; then : | |
8f838781 | 17253 | |
cd9a469c | 17254 | $as_echo "#define HAVE_ASINHL 1" >>confdefs.h |
8f838781 | 17255 | |
17256 | fi | |
17257 | ||
cd9a469c | 17258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5 |
17259 | $as_echo_n "checking for atan2f in -lm... " >&6; } | |
17260 | if test "${ac_cv_lib_m_atan2f+set}" = set; then : | |
17261 | $as_echo_n "(cached) " >&6 | |
334f03a1 | 17262 | else |
17263 | ac_check_lib_save_LIBS=$LIBS | |
17264 | LIBS="-lm $LIBS" | |
b52ee437 | 17265 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17266 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17267 | fi |
cd9a469c | 17268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
334f03a1 | 17269 | /* end confdefs.h. */ |
17270 | ||
cd9a469c | 17271 | /* Override any GCC internal prototype to avoid an error. |
17272 | Use char because int might match the return type of a GCC | |
17273 | builtin and then its argument prototype would still apply. */ | |
334f03a1 | 17274 | #ifdef __cplusplus |
17275 | extern "C" | |
17276 | #endif | |
d213114b | 17277 | char atan2f (); |
334f03a1 | 17278 | int |
17279 | main () | |
17280 | { | |
cd9a469c | 17281 | return atan2f (); |
334f03a1 | 17282 | ; |
17283 | return 0; | |
17284 | } | |
17285 | _ACEOF | |
cd9a469c | 17286 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17287 | ac_cv_lib_m_atan2f=yes |
334f03a1 | 17288 | else |
cd9a469c | 17289 | ac_cv_lib_m_atan2f=no |
334f03a1 | 17290 | fi |
cd9a469c | 17291 | rm -f core conftest.err conftest.$ac_objext \ |
17292 | conftest$ac_exeext conftest.$ac_ext | |
334f03a1 | 17293 | LIBS=$ac_check_lib_save_LIBS |
17294 | fi | |
cd9a469c | 17295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5 |
17296 | $as_echo "$ac_cv_lib_m_atan2f" >&6; } | |
17297 | if test "x$ac_cv_lib_m_atan2f" = x""yes; then : | |
334f03a1 | 17298 | |
cd9a469c | 17299 | $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h |
334f03a1 | 17300 | |
17301 | fi | |
17302 | ||
cd9a469c | 17303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5 |
17304 | $as_echo_n "checking for atan2 in -lm... " >&6; } | |
17305 | if test "${ac_cv_lib_m_atan2+set}" = set; then : | |
17306 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17307 | else |
17308 | ac_check_lib_save_LIBS=$LIBS | |
17309 | LIBS="-lm $LIBS" | |
b52ee437 | 17310 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17311 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17312 | fi |
cd9a469c | 17313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17314 | /* end confdefs.h. */ |
17315 | ||
cd9a469c | 17316 | /* Override any GCC internal prototype to avoid an error. |
17317 | Use char because int might match the return type of a GCC | |
17318 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17319 | #ifdef __cplusplus |
17320 | extern "C" | |
17321 | #endif | |
d213114b | 17322 | char atan2 (); |
8f838781 | 17323 | int |
17324 | main () | |
17325 | { | |
cd9a469c | 17326 | return atan2 (); |
8f838781 | 17327 | ; |
17328 | return 0; | |
17329 | } | |
17330 | _ACEOF | |
cd9a469c | 17331 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17332 | ac_cv_lib_m_atan2=yes |
8f838781 | 17333 | else |
cd9a469c | 17334 | ac_cv_lib_m_atan2=no |
8f838781 | 17335 | fi |
cd9a469c | 17336 | rm -f core conftest.err conftest.$ac_objext \ |
17337 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17338 | LIBS=$ac_check_lib_save_LIBS |
17339 | fi | |
cd9a469c | 17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5 |
17341 | $as_echo "$ac_cv_lib_m_atan2" >&6; } | |
17342 | if test "x$ac_cv_lib_m_atan2" = x""yes; then : | |
8f838781 | 17343 | |
cd9a469c | 17344 | $as_echo "#define HAVE_ATAN2 1" >>confdefs.h |
8f838781 | 17345 | |
17346 | fi | |
17347 | ||
cd9a469c | 17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5 |
17349 | $as_echo_n "checking for atan2l in -lm... " >&6; } | |
17350 | if test "${ac_cv_lib_m_atan2l+set}" = set; then : | |
17351 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17352 | else |
17353 | ac_check_lib_save_LIBS=$LIBS | |
17354 | LIBS="-lm $LIBS" | |
b52ee437 | 17355 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17356 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17357 | fi |
cd9a469c | 17358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17359 | /* end confdefs.h. */ |
17360 | ||
cd9a469c | 17361 | /* Override any GCC internal prototype to avoid an error. |
17362 | Use char because int might match the return type of a GCC | |
17363 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17364 | #ifdef __cplusplus |
17365 | extern "C" | |
17366 | #endif | |
d213114b | 17367 | char atan2l (); |
8f838781 | 17368 | int |
17369 | main () | |
17370 | { | |
cd9a469c | 17371 | return atan2l (); |
8f838781 | 17372 | ; |
17373 | return 0; | |
17374 | } | |
17375 | _ACEOF | |
cd9a469c | 17376 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17377 | ac_cv_lib_m_atan2l=yes |
8f838781 | 17378 | else |
cd9a469c | 17379 | ac_cv_lib_m_atan2l=no |
8f838781 | 17380 | fi |
cd9a469c | 17381 | rm -f core conftest.err conftest.$ac_objext \ |
17382 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17383 | LIBS=$ac_check_lib_save_LIBS |
17384 | fi | |
cd9a469c | 17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2l" >&5 |
17386 | $as_echo "$ac_cv_lib_m_atan2l" >&6; } | |
17387 | if test "x$ac_cv_lib_m_atan2l" = x""yes; then : | |
8f838781 | 17388 | |
cd9a469c | 17389 | $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h |
8f838781 | 17390 | |
17391 | fi | |
17392 | ||
cd9a469c | 17393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5 |
17394 | $as_echo_n "checking for atanf in -lm... " >&6; } | |
17395 | if test "${ac_cv_lib_m_atanf+set}" = set; then : | |
17396 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17397 | else |
17398 | ac_check_lib_save_LIBS=$LIBS | |
17399 | LIBS="-lm $LIBS" | |
b52ee437 | 17400 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17401 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17402 | fi |
cd9a469c | 17403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17404 | /* end confdefs.h. */ |
17405 | ||
cd9a469c | 17406 | /* Override any GCC internal prototype to avoid an error. |
17407 | Use char because int might match the return type of a GCC | |
17408 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17409 | #ifdef __cplusplus |
17410 | extern "C" | |
17411 | #endif | |
d213114b | 17412 | char atanf (); |
8f838781 | 17413 | int |
17414 | main () | |
17415 | { | |
cd9a469c | 17416 | return atanf (); |
8f838781 | 17417 | ; |
17418 | return 0; | |
17419 | } | |
17420 | _ACEOF | |
cd9a469c | 17421 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17422 | ac_cv_lib_m_atanf=yes |
8f838781 | 17423 | else |
cd9a469c | 17424 | ac_cv_lib_m_atanf=no |
8f838781 | 17425 | fi |
cd9a469c | 17426 | rm -f core conftest.err conftest.$ac_objext \ |
17427 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17428 | LIBS=$ac_check_lib_save_LIBS |
17429 | fi | |
cd9a469c | 17430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanf" >&5 |
17431 | $as_echo "$ac_cv_lib_m_atanf" >&6; } | |
17432 | if test "x$ac_cv_lib_m_atanf" = x""yes; then : | |
8f838781 | 17433 | |
cd9a469c | 17434 | $as_echo "#define HAVE_ATANF 1" >>confdefs.h |
8f838781 | 17435 | |
17436 | fi | |
17437 | ||
cd9a469c | 17438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5 |
17439 | $as_echo_n "checking for atan in -lm... " >&6; } | |
17440 | if test "${ac_cv_lib_m_atan+set}" = set; then : | |
17441 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17442 | else |
17443 | ac_check_lib_save_LIBS=$LIBS | |
17444 | LIBS="-lm $LIBS" | |
b52ee437 | 17445 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17446 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17447 | fi |
cd9a469c | 17448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17449 | /* end confdefs.h. */ |
17450 | ||
cd9a469c | 17451 | /* Override any GCC internal prototype to avoid an error. |
17452 | Use char because int might match the return type of a GCC | |
17453 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17454 | #ifdef __cplusplus |
17455 | extern "C" | |
17456 | #endif | |
d213114b | 17457 | char atan (); |
8f838781 | 17458 | int |
17459 | main () | |
17460 | { | |
cd9a469c | 17461 | return atan (); |
8f838781 | 17462 | ; |
17463 | return 0; | |
17464 | } | |
17465 | _ACEOF | |
cd9a469c | 17466 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17467 | ac_cv_lib_m_atan=yes |
8f838781 | 17468 | else |
cd9a469c | 17469 | ac_cv_lib_m_atan=no |
8f838781 | 17470 | fi |
cd9a469c | 17471 | rm -f core conftest.err conftest.$ac_objext \ |
17472 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17473 | LIBS=$ac_check_lib_save_LIBS |
17474 | fi | |
cd9a469c | 17475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5 |
17476 | $as_echo "$ac_cv_lib_m_atan" >&6; } | |
17477 | if test "x$ac_cv_lib_m_atan" = x""yes; then : | |
8f838781 | 17478 | |
cd9a469c | 17479 | $as_echo "#define HAVE_ATAN 1" >>confdefs.h |
8f838781 | 17480 | |
17481 | fi | |
17482 | ||
cd9a469c | 17483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5 |
17484 | $as_echo_n "checking for atanl in -lm... " >&6; } | |
17485 | if test "${ac_cv_lib_m_atanl+set}" = set; then : | |
17486 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17487 | else |
17488 | ac_check_lib_save_LIBS=$LIBS | |
17489 | LIBS="-lm $LIBS" | |
b52ee437 | 17490 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17491 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17492 | fi |
cd9a469c | 17493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17494 | /* end confdefs.h. */ |
17495 | ||
cd9a469c | 17496 | /* Override any GCC internal prototype to avoid an error. |
17497 | Use char because int might match the return type of a GCC | |
17498 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17499 | #ifdef __cplusplus |
17500 | extern "C" | |
17501 | #endif | |
d213114b | 17502 | char atanl (); |
8f838781 | 17503 | int |
17504 | main () | |
17505 | { | |
cd9a469c | 17506 | return atanl (); |
8f838781 | 17507 | ; |
17508 | return 0; | |
17509 | } | |
17510 | _ACEOF | |
cd9a469c | 17511 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17512 | ac_cv_lib_m_atanl=yes |
8f838781 | 17513 | else |
cd9a469c | 17514 | ac_cv_lib_m_atanl=no |
8f838781 | 17515 | fi |
cd9a469c | 17516 | rm -f core conftest.err conftest.$ac_objext \ |
17517 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17518 | LIBS=$ac_check_lib_save_LIBS |
17519 | fi | |
cd9a469c | 17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanl" >&5 |
17521 | $as_echo "$ac_cv_lib_m_atanl" >&6; } | |
17522 | if test "x$ac_cv_lib_m_atanl" = x""yes; then : | |
8f838781 | 17523 | |
cd9a469c | 17524 | $as_echo "#define HAVE_ATANL 1" >>confdefs.h |
8f838781 | 17525 | |
17526 | fi | |
17527 | ||
cd9a469c | 17528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5 |
17529 | $as_echo_n "checking for atanhf in -lm... " >&6; } | |
17530 | if test "${ac_cv_lib_m_atanhf+set}" = set; then : | |
17531 | $as_echo_n "(cached) " >&6 | |
14c3c235 | 17532 | else |
17533 | ac_check_lib_save_LIBS=$LIBS | |
17534 | LIBS="-lm $LIBS" | |
b52ee437 | 17535 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17536 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17537 | fi |
cd9a469c | 17538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14c3c235 | 17539 | /* end confdefs.h. */ |
17540 | ||
cd9a469c | 17541 | /* Override any GCC internal prototype to avoid an error. |
17542 | Use char because int might match the return type of a GCC | |
17543 | builtin and then its argument prototype would still apply. */ | |
14c3c235 | 17544 | #ifdef __cplusplus |
17545 | extern "C" | |
17546 | #endif | |
d213114b | 17547 | char atanhf (); |
14c3c235 | 17548 | int |
17549 | main () | |
17550 | { | |
cd9a469c | 17551 | return atanhf (); |
14c3c235 | 17552 | ; |
17553 | return 0; | |
17554 | } | |
17555 | _ACEOF | |
cd9a469c | 17556 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17557 | ac_cv_lib_m_atanhf=yes |
14c3c235 | 17558 | else |
cd9a469c | 17559 | ac_cv_lib_m_atanhf=no |
14c3c235 | 17560 | fi |
cd9a469c | 17561 | rm -f core conftest.err conftest.$ac_objext \ |
17562 | conftest$ac_exeext conftest.$ac_ext | |
14c3c235 | 17563 | LIBS=$ac_check_lib_save_LIBS |
17564 | fi | |
cd9a469c | 17565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhf" >&5 |
17566 | $as_echo "$ac_cv_lib_m_atanhf" >&6; } | |
17567 | if test "x$ac_cv_lib_m_atanhf" = x""yes; then : | |
14c3c235 | 17568 | |
cd9a469c | 17569 | $as_echo "#define HAVE_ATANHF 1" >>confdefs.h |
14c3c235 | 17570 | |
17571 | fi | |
17572 | ||
cd9a469c | 17573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5 |
17574 | $as_echo_n "checking for atanh in -lm... " >&6; } | |
17575 | if test "${ac_cv_lib_m_atanh+set}" = set; then : | |
17576 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17577 | else |
17578 | ac_check_lib_save_LIBS=$LIBS | |
17579 | LIBS="-lm $LIBS" | |
b52ee437 | 17580 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17581 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17582 | fi |
cd9a469c | 17583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17584 | /* end confdefs.h. */ |
17585 | ||
cd9a469c | 17586 | /* Override any GCC internal prototype to avoid an error. |
17587 | Use char because int might match the return type of a GCC | |
17588 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17589 | #ifdef __cplusplus |
17590 | extern "C" | |
17591 | #endif | |
d213114b | 17592 | char atanh (); |
8f838781 | 17593 | int |
17594 | main () | |
17595 | { | |
cd9a469c | 17596 | return atanh (); |
8f838781 | 17597 | ; |
17598 | return 0; | |
17599 | } | |
17600 | _ACEOF | |
cd9a469c | 17601 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17602 | ac_cv_lib_m_atanh=yes |
8f838781 | 17603 | else |
cd9a469c | 17604 | ac_cv_lib_m_atanh=no |
8f838781 | 17605 | fi |
cd9a469c | 17606 | rm -f core conftest.err conftest.$ac_objext \ |
17607 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17608 | LIBS=$ac_check_lib_save_LIBS |
17609 | fi | |
cd9a469c | 17610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanh" >&5 |
17611 | $as_echo "$ac_cv_lib_m_atanh" >&6; } | |
17612 | if test "x$ac_cv_lib_m_atanh" = x""yes; then : | |
8f838781 | 17613 | |
cd9a469c | 17614 | $as_echo "#define HAVE_ATANH 1" >>confdefs.h |
8f838781 | 17615 | |
17616 | fi | |
17617 | ||
cd9a469c | 17618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl in -lm" >&5 |
17619 | $as_echo_n "checking for atanhl in -lm... " >&6; } | |
17620 | if test "${ac_cv_lib_m_atanhl+set}" = set; then : | |
17621 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17622 | else |
17623 | ac_check_lib_save_LIBS=$LIBS | |
17624 | LIBS="-lm $LIBS" | |
b52ee437 | 17625 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17626 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17627 | fi |
cd9a469c | 17628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17629 | /* end confdefs.h. */ |
17630 | ||
cd9a469c | 17631 | /* Override any GCC internal prototype to avoid an error. |
17632 | Use char because int might match the return type of a GCC | |
17633 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17634 | #ifdef __cplusplus |
17635 | extern "C" | |
17636 | #endif | |
d213114b | 17637 | char atanhl (); |
8f838781 | 17638 | int |
17639 | main () | |
17640 | { | |
cd9a469c | 17641 | return atanhl (); |
8f838781 | 17642 | ; |
17643 | return 0; | |
17644 | } | |
17645 | _ACEOF | |
cd9a469c | 17646 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17647 | ac_cv_lib_m_atanhl=yes |
8f838781 | 17648 | else |
cd9a469c | 17649 | ac_cv_lib_m_atanhl=no |
8f838781 | 17650 | fi |
cd9a469c | 17651 | rm -f core conftest.err conftest.$ac_objext \ |
17652 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17653 | LIBS=$ac_check_lib_save_LIBS |
17654 | fi | |
cd9a469c | 17655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhl" >&5 |
17656 | $as_echo "$ac_cv_lib_m_atanhl" >&6; } | |
17657 | if test "x$ac_cv_lib_m_atanhl" = x""yes; then : | |
8f838781 | 17658 | |
cd9a469c | 17659 | $as_echo "#define HAVE_ATANHL 1" >>confdefs.h |
8f838781 | 17660 | |
17661 | fi | |
17662 | ||
cd9a469c | 17663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf in -lm" >&5 |
17664 | $as_echo_n "checking for cargf in -lm... " >&6; } | |
17665 | if test "${ac_cv_lib_m_cargf+set}" = set; then : | |
17666 | $as_echo_n "(cached) " >&6 | |
a2d7a3ff | 17667 | else |
17668 | ac_check_lib_save_LIBS=$LIBS | |
17669 | LIBS="-lm $LIBS" | |
b52ee437 | 17670 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17671 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17672 | fi |
cd9a469c | 17673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a2d7a3ff | 17674 | /* end confdefs.h. */ |
17675 | ||
cd9a469c | 17676 | /* Override any GCC internal prototype to avoid an error. |
17677 | Use char because int might match the return type of a GCC | |
17678 | builtin and then its argument prototype would still apply. */ | |
a2d7a3ff | 17679 | #ifdef __cplusplus |
17680 | extern "C" | |
17681 | #endif | |
d213114b | 17682 | char cargf (); |
a2d7a3ff | 17683 | int |
17684 | main () | |
17685 | { | |
cd9a469c | 17686 | return cargf (); |
a2d7a3ff | 17687 | ; |
17688 | return 0; | |
17689 | } | |
17690 | _ACEOF | |
cd9a469c | 17691 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17692 | ac_cv_lib_m_cargf=yes |
a2d7a3ff | 17693 | else |
cd9a469c | 17694 | ac_cv_lib_m_cargf=no |
a2d7a3ff | 17695 | fi |
cd9a469c | 17696 | rm -f core conftest.err conftest.$ac_objext \ |
17697 | conftest$ac_exeext conftest.$ac_ext | |
a2d7a3ff | 17698 | LIBS=$ac_check_lib_save_LIBS |
17699 | fi | |
cd9a469c | 17700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargf" >&5 |
17701 | $as_echo "$ac_cv_lib_m_cargf" >&6; } | |
17702 | if test "x$ac_cv_lib_m_cargf" = x""yes; then : | |
a2d7a3ff | 17703 | |
cd9a469c | 17704 | $as_echo "#define HAVE_CARGF 1" >>confdefs.h |
a2d7a3ff | 17705 | |
17706 | fi | |
17707 | ||
cd9a469c | 17708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg in -lm" >&5 |
17709 | $as_echo_n "checking for carg in -lm... " >&6; } | |
17710 | if test "${ac_cv_lib_m_carg+set}" = set; then : | |
17711 | $as_echo_n "(cached) " >&6 | |
a31bd8a4 | 17712 | else |
17713 | ac_check_lib_save_LIBS=$LIBS | |
17714 | LIBS="-lm $LIBS" | |
b52ee437 | 17715 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17716 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17717 | fi |
cd9a469c | 17718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 17719 | /* end confdefs.h. */ |
17720 | ||
cd9a469c | 17721 | /* Override any GCC internal prototype to avoid an error. |
17722 | Use char because int might match the return type of a GCC | |
17723 | builtin and then its argument prototype would still apply. */ | |
a31bd8a4 | 17724 | #ifdef __cplusplus |
17725 | extern "C" | |
17726 | #endif | |
d213114b | 17727 | char carg (); |
8f838781 | 17728 | int |
17729 | main () | |
17730 | { | |
cd9a469c | 17731 | return carg (); |
8f838781 | 17732 | ; |
17733 | return 0; | |
17734 | } | |
17735 | _ACEOF | |
cd9a469c | 17736 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17737 | ac_cv_lib_m_carg=yes |
8f838781 | 17738 | else |
cd9a469c | 17739 | ac_cv_lib_m_carg=no |
8f838781 | 17740 | fi |
cd9a469c | 17741 | rm -f core conftest.err conftest.$ac_objext \ |
17742 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 17743 | LIBS=$ac_check_lib_save_LIBS |
17744 | fi | |
cd9a469c | 17745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_carg" >&5 |
17746 | $as_echo "$ac_cv_lib_m_carg" >&6; } | |
17747 | if test "x$ac_cv_lib_m_carg" = x""yes; then : | |
8f838781 | 17748 | |
cd9a469c | 17749 | $as_echo "#define HAVE_CARG 1" >>confdefs.h |
8f838781 | 17750 | |
17751 | fi | |
17752 | ||
cd9a469c | 17753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl in -lm" >&5 |
17754 | $as_echo_n "checking for cargl in -lm... " >&6; } | |
17755 | if test "${ac_cv_lib_m_cargl+set}" = set; then : | |
17756 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17757 | else |
17758 | ac_check_lib_save_LIBS=$LIBS | |
17759 | LIBS="-lm $LIBS" | |
b52ee437 | 17760 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17761 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17762 | fi |
cd9a469c | 17763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17764 | /* end confdefs.h. */ |
17765 | ||
cd9a469c | 17766 | /* Override any GCC internal prototype to avoid an error. |
17767 | Use char because int might match the return type of a GCC | |
17768 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17769 | #ifdef __cplusplus |
17770 | extern "C" | |
17771 | #endif | |
d213114b | 17772 | char cargl (); |
a31bd8a4 | 17773 | int |
17774 | main () | |
17775 | { | |
cd9a469c | 17776 | return cargl (); |
a31bd8a4 | 17777 | ; |
17778 | return 0; | |
17779 | } | |
17780 | _ACEOF | |
cd9a469c | 17781 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17782 | ac_cv_lib_m_cargl=yes |
a31bd8a4 | 17783 | else |
cd9a469c | 17784 | ac_cv_lib_m_cargl=no |
a31bd8a4 | 17785 | fi |
cd9a469c | 17786 | rm -f core conftest.err conftest.$ac_objext \ |
17787 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 17788 | LIBS=$ac_check_lib_save_LIBS |
17789 | fi | |
cd9a469c | 17790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargl" >&5 |
17791 | $as_echo "$ac_cv_lib_m_cargl" >&6; } | |
17792 | if test "x$ac_cv_lib_m_cargl" = x""yes; then : | |
a31bd8a4 | 17793 | |
cd9a469c | 17794 | $as_echo "#define HAVE_CARGL 1" >>confdefs.h |
a31bd8a4 | 17795 | |
17796 | fi | |
17797 | ||
cd9a469c | 17798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf in -lm" >&5 |
17799 | $as_echo_n "checking for ceilf in -lm... " >&6; } | |
17800 | if test "${ac_cv_lib_m_ceilf+set}" = set; then : | |
17801 | $as_echo_n "(cached) " >&6 | |
a31bd8a4 | 17802 | else |
17803 | ac_check_lib_save_LIBS=$LIBS | |
17804 | LIBS="-lm $LIBS" | |
b52ee437 | 17805 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17806 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17807 | fi |
cd9a469c | 17808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a31bd8a4 | 17809 | /* end confdefs.h. */ |
17810 | ||
cd9a469c | 17811 | /* Override any GCC internal prototype to avoid an error. |
17812 | Use char because int might match the return type of a GCC | |
17813 | builtin and then its argument prototype would still apply. */ | |
a31bd8a4 | 17814 | #ifdef __cplusplus |
17815 | extern "C" | |
17816 | #endif | |
d213114b | 17817 | char ceilf (); |
a31bd8a4 | 17818 | int |
17819 | main () | |
17820 | { | |
cd9a469c | 17821 | return ceilf (); |
a31bd8a4 | 17822 | ; |
17823 | return 0; | |
17824 | } | |
17825 | _ACEOF | |
cd9a469c | 17826 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17827 | ac_cv_lib_m_ceilf=yes |
a31bd8a4 | 17828 | else |
cd9a469c | 17829 | ac_cv_lib_m_ceilf=no |
a31bd8a4 | 17830 | fi |
cd9a469c | 17831 | rm -f core conftest.err conftest.$ac_objext \ |
17832 | conftest$ac_exeext conftest.$ac_ext | |
a31bd8a4 | 17833 | LIBS=$ac_check_lib_save_LIBS |
17834 | fi | |
cd9a469c | 17835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceilf" >&5 |
17836 | $as_echo "$ac_cv_lib_m_ceilf" >&6; } | |
17837 | if test "x$ac_cv_lib_m_ceilf" = x""yes; then : | |
a31bd8a4 | 17838 | |
cd9a469c | 17839 | $as_echo "#define HAVE_CEILF 1" >>confdefs.h |
a31bd8a4 | 17840 | |
17841 | fi | |
17842 | ||
cd9a469c | 17843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5 |
17844 | $as_echo_n "checking for ceil in -lm... " >&6; } | |
17845 | if test "${ac_cv_lib_m_ceil+set}" = set; then : | |
17846 | $as_echo_n "(cached) " >&6 | |
97844b15 | 17847 | else |
17848 | ac_check_lib_save_LIBS=$LIBS | |
17849 | LIBS="-lm $LIBS" | |
b52ee437 | 17850 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17851 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17852 | fi |
cd9a469c | 17853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
97844b15 | 17854 | /* end confdefs.h. */ |
17855 | ||
cd9a469c | 17856 | /* Override any GCC internal prototype to avoid an error. |
17857 | Use char because int might match the return type of a GCC | |
17858 | builtin and then its argument prototype would still apply. */ | |
97844b15 | 17859 | #ifdef __cplusplus |
17860 | extern "C" | |
17861 | #endif | |
d213114b | 17862 | char ceil (); |
97844b15 | 17863 | int |
17864 | main () | |
17865 | { | |
cd9a469c | 17866 | return ceil (); |
97844b15 | 17867 | ; |
17868 | return 0; | |
17869 | } | |
17870 | _ACEOF | |
cd9a469c | 17871 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17872 | ac_cv_lib_m_ceil=yes |
97844b15 | 17873 | else |
cd9a469c | 17874 | ac_cv_lib_m_ceil=no |
97844b15 | 17875 | fi |
cd9a469c | 17876 | rm -f core conftest.err conftest.$ac_objext \ |
17877 | conftest$ac_exeext conftest.$ac_ext | |
97844b15 | 17878 | LIBS=$ac_check_lib_save_LIBS |
17879 | fi | |
cd9a469c | 17880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5 |
17881 | $as_echo "$ac_cv_lib_m_ceil" >&6; } | |
17882 | if test "x$ac_cv_lib_m_ceil" = x""yes; then : | |
97844b15 | 17883 | |
cd9a469c | 17884 | $as_echo "#define HAVE_CEIL 1" >>confdefs.h |
97844b15 | 17885 | |
17886 | fi | |
17887 | ||
cd9a469c | 17888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill in -lm" >&5 |
17889 | $as_echo_n "checking for ceill in -lm... " >&6; } | |
17890 | if test "${ac_cv_lib_m_ceill+set}" = set; then : | |
17891 | $as_echo_n "(cached) " >&6 | |
4db2deda | 17892 | else |
17893 | ac_check_lib_save_LIBS=$LIBS | |
17894 | LIBS="-lm $LIBS" | |
b52ee437 | 17895 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17896 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17897 | fi |
cd9a469c | 17898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 17899 | /* end confdefs.h. */ |
17900 | ||
cd9a469c | 17901 | /* Override any GCC internal prototype to avoid an error. |
17902 | Use char because int might match the return type of a GCC | |
17903 | builtin and then its argument prototype would still apply. */ | |
4db2deda | 17904 | #ifdef __cplusplus |
17905 | extern "C" | |
17906 | #endif | |
d213114b | 17907 | char ceill (); |
4db2deda | 17908 | int |
17909 | main () | |
17910 | { | |
cd9a469c | 17911 | return ceill (); |
4db2deda | 17912 | ; |
17913 | return 0; | |
17914 | } | |
17915 | _ACEOF | |
cd9a469c | 17916 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17917 | ac_cv_lib_m_ceill=yes |
4db2deda | 17918 | else |
cd9a469c | 17919 | ac_cv_lib_m_ceill=no |
4db2deda | 17920 | fi |
cd9a469c | 17921 | rm -f core conftest.err conftest.$ac_objext \ |
17922 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 17923 | LIBS=$ac_check_lib_save_LIBS |
17924 | fi | |
cd9a469c | 17925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceill" >&5 |
17926 | $as_echo "$ac_cv_lib_m_ceill" >&6; } | |
17927 | if test "x$ac_cv_lib_m_ceill" = x""yes; then : | |
4db2deda | 17928 | |
cd9a469c | 17929 | $as_echo "#define HAVE_CEILL 1" >>confdefs.h |
4db2deda | 17930 | |
17931 | fi | |
17932 | ||
cd9a469c | 17933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf in -lm" >&5 |
17934 | $as_echo_n "checking for copysignf in -lm... " >&6; } | |
17935 | if test "${ac_cv_lib_m_copysignf+set}" = set; then : | |
17936 | $as_echo_n "(cached) " >&6 | |
4db2deda | 17937 | else |
17938 | ac_check_lib_save_LIBS=$LIBS | |
17939 | LIBS="-lm $LIBS" | |
b52ee437 | 17940 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17941 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17942 | fi |
cd9a469c | 17943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4db2deda | 17944 | /* end confdefs.h. */ |
17945 | ||
cd9a469c | 17946 | /* Override any GCC internal prototype to avoid an error. |
17947 | Use char because int might match the return type of a GCC | |
17948 | builtin and then its argument prototype would still apply. */ | |
4db2deda | 17949 | #ifdef __cplusplus |
17950 | extern "C" | |
17951 | #endif | |
d213114b | 17952 | char copysignf (); |
4db2deda | 17953 | int |
17954 | main () | |
17955 | { | |
cd9a469c | 17956 | return copysignf (); |
4db2deda | 17957 | ; |
17958 | return 0; | |
17959 | } | |
17960 | _ACEOF | |
cd9a469c | 17961 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 17962 | ac_cv_lib_m_copysignf=yes |
4db2deda | 17963 | else |
cd9a469c | 17964 | ac_cv_lib_m_copysignf=no |
4db2deda | 17965 | fi |
cd9a469c | 17966 | rm -f core conftest.err conftest.$ac_objext \ |
17967 | conftest$ac_exeext conftest.$ac_ext | |
4db2deda | 17968 | LIBS=$ac_check_lib_save_LIBS |
17969 | fi | |
cd9a469c | 17970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignf" >&5 |
17971 | $as_echo "$ac_cv_lib_m_copysignf" >&6; } | |
17972 | if test "x$ac_cv_lib_m_copysignf" = x""yes; then : | |
4db2deda | 17973 | |
cd9a469c | 17974 | $as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h |
8f838781 | 17975 | |
17976 | fi | |
17977 | ||
cd9a469c | 17978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign in -lm" >&5 |
17979 | $as_echo_n "checking for copysign in -lm... " >&6; } | |
17980 | if test "${ac_cv_lib_m_copysign+set}" = set; then : | |
17981 | $as_echo_n "(cached) " >&6 | |
8f838781 | 17982 | else |
17983 | ac_check_lib_save_LIBS=$LIBS | |
17984 | LIBS="-lm $LIBS" | |
b52ee437 | 17985 | if test x$gcc_no_link = xyes; then |
cd9a469c | 17986 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 17987 | fi |
cd9a469c | 17988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 17989 | /* end confdefs.h. */ |
17990 | ||
cd9a469c | 17991 | /* Override any GCC internal prototype to avoid an error. |
17992 | Use char because int might match the return type of a GCC | |
17993 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 17994 | #ifdef __cplusplus |
17995 | extern "C" | |
17996 | #endif | |
d213114b | 17997 | char copysign (); |
8f838781 | 17998 | int |
17999 | main () | |
18000 | { | |
cd9a469c | 18001 | return copysign (); |
8f838781 | 18002 | ; |
18003 | return 0; | |
18004 | } | |
18005 | _ACEOF | |
cd9a469c | 18006 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18007 | ac_cv_lib_m_copysign=yes |
8f838781 | 18008 | else |
cd9a469c | 18009 | ac_cv_lib_m_copysign=no |
8f838781 | 18010 | fi |
cd9a469c | 18011 | rm -f core conftest.err conftest.$ac_objext \ |
18012 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18013 | LIBS=$ac_check_lib_save_LIBS |
18014 | fi | |
cd9a469c | 18015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysign" >&5 |
18016 | $as_echo "$ac_cv_lib_m_copysign" >&6; } | |
18017 | if test "x$ac_cv_lib_m_copysign" = x""yes; then : | |
8f838781 | 18018 | |
cd9a469c | 18019 | $as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h |
8f838781 | 18020 | |
18021 | fi | |
18022 | ||
cd9a469c | 18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl in -lm" >&5 |
18024 | $as_echo_n "checking for copysignl in -lm... " >&6; } | |
18025 | if test "${ac_cv_lib_m_copysignl+set}" = set; then : | |
18026 | $as_echo_n "(cached) " >&6 | |
8f838781 | 18027 | else |
18028 | ac_check_lib_save_LIBS=$LIBS | |
18029 | LIBS="-lm $LIBS" | |
b52ee437 | 18030 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18031 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18032 | fi |
cd9a469c | 18033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18034 | /* end confdefs.h. */ |
18035 | ||
cd9a469c | 18036 | /* Override any GCC internal prototype to avoid an error. |
18037 | Use char because int might match the return type of a GCC | |
18038 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 18039 | #ifdef __cplusplus |
18040 | extern "C" | |
18041 | #endif | |
d213114b | 18042 | char copysignl (); |
8f838781 | 18043 | int |
18044 | main () | |
18045 | { | |
cd9a469c | 18046 | return copysignl (); |
8f838781 | 18047 | ; |
18048 | return 0; | |
18049 | } | |
18050 | _ACEOF | |
cd9a469c | 18051 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18052 | ac_cv_lib_m_copysignl=yes |
8f838781 | 18053 | else |
cd9a469c | 18054 | ac_cv_lib_m_copysignl=no |
8f838781 | 18055 | fi |
cd9a469c | 18056 | rm -f core conftest.err conftest.$ac_objext \ |
18057 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18058 | LIBS=$ac_check_lib_save_LIBS |
18059 | fi | |
cd9a469c | 18060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignl" >&5 |
18061 | $as_echo "$ac_cv_lib_m_copysignl" >&6; } | |
18062 | if test "x$ac_cv_lib_m_copysignl" = x""yes; then : | |
8f838781 | 18063 | |
cd9a469c | 18064 | $as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h |
8f838781 | 18065 | |
18066 | fi | |
18067 | ||
cd9a469c | 18068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5 |
18069 | $as_echo_n "checking for cosf in -lm... " >&6; } | |
18070 | if test "${ac_cv_lib_m_cosf+set}" = set; then : | |
18071 | $as_echo_n "(cached) " >&6 | |
8f838781 | 18072 | else |
18073 | ac_check_lib_save_LIBS=$LIBS | |
18074 | LIBS="-lm $LIBS" | |
b52ee437 | 18075 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18076 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18077 | fi |
cd9a469c | 18078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8f838781 | 18079 | /* end confdefs.h. */ |
18080 | ||
cd9a469c | 18081 | /* Override any GCC internal prototype to avoid an error. |
18082 | Use char because int might match the return type of a GCC | |
18083 | builtin and then its argument prototype would still apply. */ | |
8f838781 | 18084 | #ifdef __cplusplus |
18085 | extern "C" | |
18086 | #endif | |
d213114b | 18087 | char cosf (); |
8f838781 | 18088 | int |
18089 | main () | |
18090 | { | |
cd9a469c | 18091 | return cosf (); |
8f838781 | 18092 | ; |
cd9a469c | 18093 | return 0; |
18094 | } | |
18095 | _ACEOF | |
18096 | if ac_fn_c_try_link "$LINENO"; then : | |
d213114b | 18097 | ac_cv_lib_m_cosf=yes |
8f838781 | 18098 | else |
cd9a469c | 18099 | ac_cv_lib_m_cosf=no |
8f838781 | 18100 | fi |
cd9a469c | 18101 | rm -f core conftest.err conftest.$ac_objext \ |
18102 | conftest$ac_exeext conftest.$ac_ext | |
8f838781 | 18103 | LIBS=$ac_check_lib_save_LIBS |
18104 | fi | |
cd9a469c | 18105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5 |
18106 | $as_echo "$ac_cv_lib_m_cosf" >&6; } | |
18107 | if test "x$ac_cv_lib_m_cosf" = x""yes; then : | |
8f838781 | 18108 | |
cd9a469c | 18109 | $as_echo "#define HAVE_COSF 1" >>confdefs.h |
4db2deda | 18110 | |
18111 | fi | |
18112 | ||
cd9a469c | 18113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
18114 | $as_echo_n "checking for cos in -lm... " >&6; } | |
18115 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
18116 | $as_echo_n "(cached) " >&6 | |
50f0ca0a | 18117 | else |
18118 | ac_check_lib_save_LIBS=$LIBS | |
18119 | LIBS="-lm $LIBS" | |
b52ee437 | 18120 | if test x$gcc_no_link = xyes; then |
cd9a469c | 18121 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 18122 | fi |
cd9a469c | 18123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 18124 | /* end confdefs.h. */ |
18125 | ||
cd9a469c | 18126 | /* Override any GCC internal prototype to avoid an error. |
18127 | Use char because int might match the return type of a GCC | |
18128 | builtin and then its argument prototype would still apply. */ | |
50f0ca0a | 18129 | #ifdef __cplusplus |
18130 | extern "C" | |
18131 | #endif | |
d213114b | 18132 | char cos (); |
50f0ca0a | 18133 | int |
18134 | main () | |
18135 | { | |
cd9a469c | 18136 | return cos (); |
50f0ca0a | 18137 | ; |
18138 | return 0; | |
18139 | } | |
18140 | _ACEOF | |
cd9a469c | 18141 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18142 | ac_cv_lib_m_cos=yes |
50f0ca0a | 18143 | else |
cd9a469c | 18144 | ac_cv_lib_m_cos=no |
50f0ca0a | 18145 | fi |
cd9a469c | 18146 | rm -f core conftest.err conftest.$ac_objext \ |
18147 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 18148 | LIBS=$ac_check_lib_save_LIBS |
18149 | fi | |
cd9a469c | 18150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
18151 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
18152 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
50f0ca0a | 18153 | |
cd9a469c | 18154 | $as_echo "#define HAVE_COS 1" >>confdefs.h |
d213114b | 18155 | |
18156 | fi | |
18157 | ||
cd9a469c | 18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl in -lm" >&5 |
18159 | $as_echo_n "checking for cosl in -lm... " >&6; } | |
18160 | if test "${ac_cv_lib_m_cosl+set}" = set; then : | |
18161 | $as_echo_n "(cached) " >&6 | |
d213114b | 18162 | else |
18163 | ac_check_lib_save_LIBS=$LIBS | |
18164 | LIBS="-lm $LIBS" | |
18165 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18166 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18167 | fi |
cd9a469c | 18168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18169 | /* end confdefs.h. */ |
18170 | ||
cd9a469c | 18171 | /* Override any GCC internal prototype to avoid an error. |
18172 | Use char because int might match the return type of a GCC | |
18173 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18174 | #ifdef __cplusplus |
18175 | extern "C" | |
18176 | #endif | |
d213114b | 18177 | char cosl (); |
18178 | int | |
18179 | main () | |
18180 | { | |
cd9a469c | 18181 | return cosl (); |
d213114b | 18182 | ; |
18183 | return 0; | |
18184 | } | |
18185 | _ACEOF | |
cd9a469c | 18186 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18187 | ac_cv_lib_m_cosl=yes |
18188 | else | |
cd9a469c | 18189 | ac_cv_lib_m_cosl=no |
d213114b | 18190 | fi |
cd9a469c | 18191 | rm -f core conftest.err conftest.$ac_objext \ |
18192 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18193 | LIBS=$ac_check_lib_save_LIBS |
18194 | fi | |
cd9a469c | 18195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosl" >&5 |
18196 | $as_echo "$ac_cv_lib_m_cosl" >&6; } | |
18197 | if test "x$ac_cv_lib_m_cosl" = x""yes; then : | |
d213114b | 18198 | |
cd9a469c | 18199 | $as_echo "#define HAVE_COSL 1" >>confdefs.h |
d213114b | 18200 | |
18201 | fi | |
18202 | ||
cd9a469c | 18203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf in -lm" >&5 |
18204 | $as_echo_n "checking for ccosf in -lm... " >&6; } | |
18205 | if test "${ac_cv_lib_m_ccosf+set}" = set; then : | |
18206 | $as_echo_n "(cached) " >&6 | |
d213114b | 18207 | else |
18208 | ac_check_lib_save_LIBS=$LIBS | |
18209 | LIBS="-lm $LIBS" | |
18210 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18211 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18212 | fi |
cd9a469c | 18213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18214 | /* end confdefs.h. */ |
18215 | ||
cd9a469c | 18216 | /* Override any GCC internal prototype to avoid an error. |
18217 | Use char because int might match the return type of a GCC | |
18218 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18219 | #ifdef __cplusplus |
18220 | extern "C" | |
18221 | #endif | |
d213114b | 18222 | char ccosf (); |
18223 | int | |
18224 | main () | |
18225 | { | |
cd9a469c | 18226 | return ccosf (); |
d213114b | 18227 | ; |
18228 | return 0; | |
18229 | } | |
18230 | _ACEOF | |
cd9a469c | 18231 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18232 | ac_cv_lib_m_ccosf=yes |
18233 | else | |
cd9a469c | 18234 | ac_cv_lib_m_ccosf=no |
d213114b | 18235 | fi |
cd9a469c | 18236 | rm -f core conftest.err conftest.$ac_objext \ |
18237 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18238 | LIBS=$ac_check_lib_save_LIBS |
18239 | fi | |
cd9a469c | 18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosf" >&5 |
18241 | $as_echo "$ac_cv_lib_m_ccosf" >&6; } | |
18242 | if test "x$ac_cv_lib_m_ccosf" = x""yes; then : | |
d213114b | 18243 | |
cd9a469c | 18244 | $as_echo "#define HAVE_CCOSF 1" >>confdefs.h |
d213114b | 18245 | |
18246 | fi | |
18247 | ||
cd9a469c | 18248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos in -lm" >&5 |
18249 | $as_echo_n "checking for ccos in -lm... " >&6; } | |
18250 | if test "${ac_cv_lib_m_ccos+set}" = set; then : | |
18251 | $as_echo_n "(cached) " >&6 | |
d213114b | 18252 | else |
18253 | ac_check_lib_save_LIBS=$LIBS | |
18254 | LIBS="-lm $LIBS" | |
18255 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18256 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18257 | fi |
cd9a469c | 18258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18259 | /* end confdefs.h. */ |
18260 | ||
cd9a469c | 18261 | /* Override any GCC internal prototype to avoid an error. |
18262 | Use char because int might match the return type of a GCC | |
18263 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18264 | #ifdef __cplusplus |
18265 | extern "C" | |
18266 | #endif | |
d213114b | 18267 | char ccos (); |
18268 | int | |
18269 | main () | |
18270 | { | |
cd9a469c | 18271 | return ccos (); |
d213114b | 18272 | ; |
18273 | return 0; | |
18274 | } | |
18275 | _ACEOF | |
cd9a469c | 18276 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18277 | ac_cv_lib_m_ccos=yes |
18278 | else | |
cd9a469c | 18279 | ac_cv_lib_m_ccos=no |
d213114b | 18280 | fi |
cd9a469c | 18281 | rm -f core conftest.err conftest.$ac_objext \ |
18282 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18283 | LIBS=$ac_check_lib_save_LIBS |
18284 | fi | |
cd9a469c | 18285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccos" >&5 |
18286 | $as_echo "$ac_cv_lib_m_ccos" >&6; } | |
18287 | if test "x$ac_cv_lib_m_ccos" = x""yes; then : | |
d213114b | 18288 | |
cd9a469c | 18289 | $as_echo "#define HAVE_CCOS 1" >>confdefs.h |
d213114b | 18290 | |
18291 | fi | |
18292 | ||
cd9a469c | 18293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl in -lm" >&5 |
18294 | $as_echo_n "checking for ccosl in -lm... " >&6; } | |
18295 | if test "${ac_cv_lib_m_ccosl+set}" = set; then : | |
18296 | $as_echo_n "(cached) " >&6 | |
d213114b | 18297 | else |
18298 | ac_check_lib_save_LIBS=$LIBS | |
18299 | LIBS="-lm $LIBS" | |
18300 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18301 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18302 | fi |
cd9a469c | 18303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18304 | /* end confdefs.h. */ |
18305 | ||
cd9a469c | 18306 | /* Override any GCC internal prototype to avoid an error. |
18307 | Use char because int might match the return type of a GCC | |
18308 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18309 | #ifdef __cplusplus |
18310 | extern "C" | |
18311 | #endif | |
d213114b | 18312 | char ccosl (); |
18313 | int | |
18314 | main () | |
18315 | { | |
cd9a469c | 18316 | return ccosl (); |
d213114b | 18317 | ; |
18318 | return 0; | |
18319 | } | |
18320 | _ACEOF | |
cd9a469c | 18321 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18322 | ac_cv_lib_m_ccosl=yes |
18323 | else | |
cd9a469c | 18324 | ac_cv_lib_m_ccosl=no |
d213114b | 18325 | fi |
cd9a469c | 18326 | rm -f core conftest.err conftest.$ac_objext \ |
18327 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18328 | LIBS=$ac_check_lib_save_LIBS |
18329 | fi | |
cd9a469c | 18330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosl" >&5 |
18331 | $as_echo "$ac_cv_lib_m_ccosl" >&6; } | |
18332 | if test "x$ac_cv_lib_m_ccosl" = x""yes; then : | |
d213114b | 18333 | |
cd9a469c | 18334 | $as_echo "#define HAVE_CCOSL 1" >>confdefs.h |
d213114b | 18335 | |
18336 | fi | |
18337 | ||
cd9a469c | 18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf in -lm" >&5 |
18339 | $as_echo_n "checking for coshf in -lm... " >&6; } | |
18340 | if test "${ac_cv_lib_m_coshf+set}" = set; then : | |
18341 | $as_echo_n "(cached) " >&6 | |
d213114b | 18342 | else |
18343 | ac_check_lib_save_LIBS=$LIBS | |
18344 | LIBS="-lm $LIBS" | |
18345 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18346 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18347 | fi |
cd9a469c | 18348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18349 | /* end confdefs.h. */ |
18350 | ||
cd9a469c | 18351 | /* Override any GCC internal prototype to avoid an error. |
18352 | Use char because int might match the return type of a GCC | |
18353 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18354 | #ifdef __cplusplus |
18355 | extern "C" | |
18356 | #endif | |
d213114b | 18357 | char coshf (); |
18358 | int | |
18359 | main () | |
18360 | { | |
cd9a469c | 18361 | return coshf (); |
d213114b | 18362 | ; |
18363 | return 0; | |
18364 | } | |
18365 | _ACEOF | |
cd9a469c | 18366 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18367 | ac_cv_lib_m_coshf=yes |
18368 | else | |
cd9a469c | 18369 | ac_cv_lib_m_coshf=no |
d213114b | 18370 | fi |
cd9a469c | 18371 | rm -f core conftest.err conftest.$ac_objext \ |
18372 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18373 | LIBS=$ac_check_lib_save_LIBS |
18374 | fi | |
cd9a469c | 18375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshf" >&5 |
18376 | $as_echo "$ac_cv_lib_m_coshf" >&6; } | |
18377 | if test "x$ac_cv_lib_m_coshf" = x""yes; then : | |
d213114b | 18378 | |
cd9a469c | 18379 | $as_echo "#define HAVE_COSHF 1" >>confdefs.h |
d213114b | 18380 | |
18381 | fi | |
18382 | ||
cd9a469c | 18383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh in -lm" >&5 |
18384 | $as_echo_n "checking for cosh in -lm... " >&6; } | |
18385 | if test "${ac_cv_lib_m_cosh+set}" = set; then : | |
18386 | $as_echo_n "(cached) " >&6 | |
d213114b | 18387 | else |
18388 | ac_check_lib_save_LIBS=$LIBS | |
18389 | LIBS="-lm $LIBS" | |
18390 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18391 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18392 | fi |
cd9a469c | 18393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18394 | /* end confdefs.h. */ |
18395 | ||
cd9a469c | 18396 | /* Override any GCC internal prototype to avoid an error. |
18397 | Use char because int might match the return type of a GCC | |
18398 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18399 | #ifdef __cplusplus |
18400 | extern "C" | |
18401 | #endif | |
d213114b | 18402 | char cosh (); |
18403 | int | |
18404 | main () | |
18405 | { | |
cd9a469c | 18406 | return cosh (); |
d213114b | 18407 | ; |
18408 | return 0; | |
18409 | } | |
18410 | _ACEOF | |
cd9a469c | 18411 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18412 | ac_cv_lib_m_cosh=yes |
18413 | else | |
cd9a469c | 18414 | ac_cv_lib_m_cosh=no |
d213114b | 18415 | fi |
cd9a469c | 18416 | rm -f core conftest.err conftest.$ac_objext \ |
18417 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18418 | LIBS=$ac_check_lib_save_LIBS |
18419 | fi | |
cd9a469c | 18420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosh" >&5 |
18421 | $as_echo "$ac_cv_lib_m_cosh" >&6; } | |
18422 | if test "x$ac_cv_lib_m_cosh" = x""yes; then : | |
d213114b | 18423 | |
cd9a469c | 18424 | $as_echo "#define HAVE_COSH 1" >>confdefs.h |
d213114b | 18425 | |
18426 | fi | |
18427 | ||
cd9a469c | 18428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl in -lm" >&5 |
18429 | $as_echo_n "checking for coshl in -lm... " >&6; } | |
18430 | if test "${ac_cv_lib_m_coshl+set}" = set; then : | |
18431 | $as_echo_n "(cached) " >&6 | |
d213114b | 18432 | else |
18433 | ac_check_lib_save_LIBS=$LIBS | |
18434 | LIBS="-lm $LIBS" | |
18435 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18436 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18437 | fi |
cd9a469c | 18438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18439 | /* end confdefs.h. */ |
18440 | ||
cd9a469c | 18441 | /* Override any GCC internal prototype to avoid an error. |
18442 | Use char because int might match the return type of a GCC | |
18443 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18444 | #ifdef __cplusplus |
18445 | extern "C" | |
18446 | #endif | |
d213114b | 18447 | char coshl (); |
18448 | int | |
18449 | main () | |
18450 | { | |
cd9a469c | 18451 | return coshl (); |
d213114b | 18452 | ; |
18453 | return 0; | |
18454 | } | |
18455 | _ACEOF | |
cd9a469c | 18456 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18457 | ac_cv_lib_m_coshl=yes |
18458 | else | |
cd9a469c | 18459 | ac_cv_lib_m_coshl=no |
d213114b | 18460 | fi |
cd9a469c | 18461 | rm -f core conftest.err conftest.$ac_objext \ |
18462 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18463 | LIBS=$ac_check_lib_save_LIBS |
18464 | fi | |
cd9a469c | 18465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshl" >&5 |
18466 | $as_echo "$ac_cv_lib_m_coshl" >&6; } | |
18467 | if test "x$ac_cv_lib_m_coshl" = x""yes; then : | |
d213114b | 18468 | |
cd9a469c | 18469 | $as_echo "#define HAVE_COSHL 1" >>confdefs.h |
d213114b | 18470 | |
18471 | fi | |
18472 | ||
cd9a469c | 18473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf in -lm" >&5 |
18474 | $as_echo_n "checking for ccoshf in -lm... " >&6; } | |
18475 | if test "${ac_cv_lib_m_ccoshf+set}" = set; then : | |
18476 | $as_echo_n "(cached) " >&6 | |
d213114b | 18477 | else |
18478 | ac_check_lib_save_LIBS=$LIBS | |
18479 | LIBS="-lm $LIBS" | |
18480 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18481 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18482 | fi |
cd9a469c | 18483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18484 | /* end confdefs.h. */ |
18485 | ||
cd9a469c | 18486 | /* Override any GCC internal prototype to avoid an error. |
18487 | Use char because int might match the return type of a GCC | |
18488 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18489 | #ifdef __cplusplus |
18490 | extern "C" | |
18491 | #endif | |
d213114b | 18492 | char ccoshf (); |
18493 | int | |
18494 | main () | |
18495 | { | |
cd9a469c | 18496 | return ccoshf (); |
d213114b | 18497 | ; |
18498 | return 0; | |
18499 | } | |
18500 | _ACEOF | |
cd9a469c | 18501 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18502 | ac_cv_lib_m_ccoshf=yes |
18503 | else | |
cd9a469c | 18504 | ac_cv_lib_m_ccoshf=no |
d213114b | 18505 | fi |
cd9a469c | 18506 | rm -f core conftest.err conftest.$ac_objext \ |
18507 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18508 | LIBS=$ac_check_lib_save_LIBS |
18509 | fi | |
cd9a469c | 18510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshf" >&5 |
18511 | $as_echo "$ac_cv_lib_m_ccoshf" >&6; } | |
18512 | if test "x$ac_cv_lib_m_ccoshf" = x""yes; then : | |
d213114b | 18513 | |
cd9a469c | 18514 | $as_echo "#define HAVE_CCOSHF 1" >>confdefs.h |
d213114b | 18515 | |
18516 | fi | |
18517 | ||
cd9a469c | 18518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh in -lm" >&5 |
18519 | $as_echo_n "checking for ccosh in -lm... " >&6; } | |
18520 | if test "${ac_cv_lib_m_ccosh+set}" = set; then : | |
18521 | $as_echo_n "(cached) " >&6 | |
d213114b | 18522 | else |
18523 | ac_check_lib_save_LIBS=$LIBS | |
18524 | LIBS="-lm $LIBS" | |
18525 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18526 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18527 | fi |
cd9a469c | 18528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18529 | /* end confdefs.h. */ |
18530 | ||
cd9a469c | 18531 | /* Override any GCC internal prototype to avoid an error. |
18532 | Use char because int might match the return type of a GCC | |
18533 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18534 | #ifdef __cplusplus |
18535 | extern "C" | |
18536 | #endif | |
d213114b | 18537 | char ccosh (); |
18538 | int | |
18539 | main () | |
18540 | { | |
cd9a469c | 18541 | return ccosh (); |
d213114b | 18542 | ; |
18543 | return 0; | |
18544 | } | |
18545 | _ACEOF | |
cd9a469c | 18546 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18547 | ac_cv_lib_m_ccosh=yes |
18548 | else | |
cd9a469c | 18549 | ac_cv_lib_m_ccosh=no |
d213114b | 18550 | fi |
cd9a469c | 18551 | rm -f core conftest.err conftest.$ac_objext \ |
18552 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18553 | LIBS=$ac_check_lib_save_LIBS |
18554 | fi | |
cd9a469c | 18555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosh" >&5 |
18556 | $as_echo "$ac_cv_lib_m_ccosh" >&6; } | |
18557 | if test "x$ac_cv_lib_m_ccosh" = x""yes; then : | |
d213114b | 18558 | |
cd9a469c | 18559 | $as_echo "#define HAVE_CCOSH 1" >>confdefs.h |
d213114b | 18560 | |
18561 | fi | |
18562 | ||
cd9a469c | 18563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl in -lm" >&5 |
18564 | $as_echo_n "checking for ccoshl in -lm... " >&6; } | |
18565 | if test "${ac_cv_lib_m_ccoshl+set}" = set; then : | |
18566 | $as_echo_n "(cached) " >&6 | |
d213114b | 18567 | else |
18568 | ac_check_lib_save_LIBS=$LIBS | |
18569 | LIBS="-lm $LIBS" | |
18570 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18571 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18572 | fi |
cd9a469c | 18573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18574 | /* end confdefs.h. */ |
18575 | ||
cd9a469c | 18576 | /* Override any GCC internal prototype to avoid an error. |
18577 | Use char because int might match the return type of a GCC | |
18578 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18579 | #ifdef __cplusplus |
18580 | extern "C" | |
18581 | #endif | |
d213114b | 18582 | char ccoshl (); |
18583 | int | |
18584 | main () | |
18585 | { | |
cd9a469c | 18586 | return ccoshl (); |
d213114b | 18587 | ; |
18588 | return 0; | |
18589 | } | |
18590 | _ACEOF | |
cd9a469c | 18591 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18592 | ac_cv_lib_m_ccoshl=yes |
18593 | else | |
cd9a469c | 18594 | ac_cv_lib_m_ccoshl=no |
d213114b | 18595 | fi |
cd9a469c | 18596 | rm -f core conftest.err conftest.$ac_objext \ |
18597 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18598 | LIBS=$ac_check_lib_save_LIBS |
18599 | fi | |
cd9a469c | 18600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshl" >&5 |
18601 | $as_echo "$ac_cv_lib_m_ccoshl" >&6; } | |
18602 | if test "x$ac_cv_lib_m_ccoshl" = x""yes; then : | |
d213114b | 18603 | |
cd9a469c | 18604 | $as_echo "#define HAVE_CCOSHL 1" >>confdefs.h |
d213114b | 18605 | |
18606 | fi | |
18607 | ||
cd9a469c | 18608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf in -lm" >&5 |
18609 | $as_echo_n "checking for expf in -lm... " >&6; } | |
18610 | if test "${ac_cv_lib_m_expf+set}" = set; then : | |
18611 | $as_echo_n "(cached) " >&6 | |
d213114b | 18612 | else |
18613 | ac_check_lib_save_LIBS=$LIBS | |
18614 | LIBS="-lm $LIBS" | |
18615 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18616 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18617 | fi |
cd9a469c | 18618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18619 | /* end confdefs.h. */ |
18620 | ||
cd9a469c | 18621 | /* Override any GCC internal prototype to avoid an error. |
18622 | Use char because int might match the return type of a GCC | |
18623 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18624 | #ifdef __cplusplus |
18625 | extern "C" | |
18626 | #endif | |
d213114b | 18627 | char expf (); |
18628 | int | |
18629 | main () | |
18630 | { | |
cd9a469c | 18631 | return expf (); |
d213114b | 18632 | ; |
18633 | return 0; | |
18634 | } | |
18635 | _ACEOF | |
cd9a469c | 18636 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18637 | ac_cv_lib_m_expf=yes |
18638 | else | |
cd9a469c | 18639 | ac_cv_lib_m_expf=no |
d213114b | 18640 | fi |
cd9a469c | 18641 | rm -f core conftest.err conftest.$ac_objext \ |
18642 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18643 | LIBS=$ac_check_lib_save_LIBS |
18644 | fi | |
cd9a469c | 18645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expf" >&5 |
18646 | $as_echo "$ac_cv_lib_m_expf" >&6; } | |
18647 | if test "x$ac_cv_lib_m_expf" = x""yes; then : | |
d213114b | 18648 | |
cd9a469c | 18649 | $as_echo "#define HAVE_EXPF 1" >>confdefs.h |
d213114b | 18650 | |
18651 | fi | |
18652 | ||
cd9a469c | 18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5 |
18654 | $as_echo_n "checking for exp in -lm... " >&6; } | |
18655 | if test "${ac_cv_lib_m_exp+set}" = set; then : | |
18656 | $as_echo_n "(cached) " >&6 | |
d213114b | 18657 | else |
18658 | ac_check_lib_save_LIBS=$LIBS | |
18659 | LIBS="-lm $LIBS" | |
18660 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18661 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18662 | fi |
cd9a469c | 18663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18664 | /* end confdefs.h. */ |
18665 | ||
cd9a469c | 18666 | /* Override any GCC internal prototype to avoid an error. |
18667 | Use char because int might match the return type of a GCC | |
18668 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18669 | #ifdef __cplusplus |
18670 | extern "C" | |
18671 | #endif | |
d213114b | 18672 | char exp (); |
18673 | int | |
18674 | main () | |
18675 | { | |
cd9a469c | 18676 | return exp (); |
d213114b | 18677 | ; |
18678 | return 0; | |
18679 | } | |
18680 | _ACEOF | |
cd9a469c | 18681 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18682 | ac_cv_lib_m_exp=yes |
18683 | else | |
cd9a469c | 18684 | ac_cv_lib_m_exp=no |
d213114b | 18685 | fi |
cd9a469c | 18686 | rm -f core conftest.err conftest.$ac_objext \ |
18687 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18688 | LIBS=$ac_check_lib_save_LIBS |
18689 | fi | |
cd9a469c | 18690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5 |
18691 | $as_echo "$ac_cv_lib_m_exp" >&6; } | |
18692 | if test "x$ac_cv_lib_m_exp" = x""yes; then : | |
d213114b | 18693 | |
cd9a469c | 18694 | $as_echo "#define HAVE_EXP 1" >>confdefs.h |
d213114b | 18695 | |
18696 | fi | |
18697 | ||
cd9a469c | 18698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl in -lm" >&5 |
18699 | $as_echo_n "checking for expl in -lm... " >&6; } | |
18700 | if test "${ac_cv_lib_m_expl+set}" = set; then : | |
18701 | $as_echo_n "(cached) " >&6 | |
d213114b | 18702 | else |
18703 | ac_check_lib_save_LIBS=$LIBS | |
18704 | LIBS="-lm $LIBS" | |
18705 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18706 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18707 | fi |
cd9a469c | 18708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18709 | /* end confdefs.h. */ |
18710 | ||
cd9a469c | 18711 | /* Override any GCC internal prototype to avoid an error. |
18712 | Use char because int might match the return type of a GCC | |
18713 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18714 | #ifdef __cplusplus |
18715 | extern "C" | |
18716 | #endif | |
d213114b | 18717 | char expl (); |
18718 | int | |
18719 | main () | |
18720 | { | |
cd9a469c | 18721 | return expl (); |
d213114b | 18722 | ; |
18723 | return 0; | |
18724 | } | |
18725 | _ACEOF | |
cd9a469c | 18726 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18727 | ac_cv_lib_m_expl=yes |
18728 | else | |
cd9a469c | 18729 | ac_cv_lib_m_expl=no |
d213114b | 18730 | fi |
cd9a469c | 18731 | rm -f core conftest.err conftest.$ac_objext \ |
18732 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18733 | LIBS=$ac_check_lib_save_LIBS |
18734 | fi | |
cd9a469c | 18735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expl" >&5 |
18736 | $as_echo "$ac_cv_lib_m_expl" >&6; } | |
18737 | if test "x$ac_cv_lib_m_expl" = x""yes; then : | |
d213114b | 18738 | |
cd9a469c | 18739 | $as_echo "#define HAVE_EXPL 1" >>confdefs.h |
d213114b | 18740 | |
18741 | fi | |
18742 | ||
cd9a469c | 18743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf in -lm" >&5 |
18744 | $as_echo_n "checking for cexpf in -lm... " >&6; } | |
18745 | if test "${ac_cv_lib_m_cexpf+set}" = set; then : | |
18746 | $as_echo_n "(cached) " >&6 | |
d213114b | 18747 | else |
18748 | ac_check_lib_save_LIBS=$LIBS | |
18749 | LIBS="-lm $LIBS" | |
18750 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18751 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18752 | fi |
cd9a469c | 18753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18754 | /* end confdefs.h. */ |
18755 | ||
cd9a469c | 18756 | /* Override any GCC internal prototype to avoid an error. |
18757 | Use char because int might match the return type of a GCC | |
18758 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18759 | #ifdef __cplusplus |
18760 | extern "C" | |
18761 | #endif | |
d213114b | 18762 | char cexpf (); |
18763 | int | |
18764 | main () | |
18765 | { | |
cd9a469c | 18766 | return cexpf (); |
d213114b | 18767 | ; |
18768 | return 0; | |
18769 | } | |
18770 | _ACEOF | |
cd9a469c | 18771 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18772 | ac_cv_lib_m_cexpf=yes |
18773 | else | |
cd9a469c | 18774 | ac_cv_lib_m_cexpf=no |
d213114b | 18775 | fi |
cd9a469c | 18776 | rm -f core conftest.err conftest.$ac_objext \ |
18777 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18778 | LIBS=$ac_check_lib_save_LIBS |
18779 | fi | |
cd9a469c | 18780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpf" >&5 |
18781 | $as_echo "$ac_cv_lib_m_cexpf" >&6; } | |
18782 | if test "x$ac_cv_lib_m_cexpf" = x""yes; then : | |
d213114b | 18783 | |
cd9a469c | 18784 | $as_echo "#define HAVE_CEXPF 1" >>confdefs.h |
d213114b | 18785 | |
18786 | fi | |
18787 | ||
cd9a469c | 18788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp in -lm" >&5 |
18789 | $as_echo_n "checking for cexp in -lm... " >&6; } | |
18790 | if test "${ac_cv_lib_m_cexp+set}" = set; then : | |
18791 | $as_echo_n "(cached) " >&6 | |
d213114b | 18792 | else |
18793 | ac_check_lib_save_LIBS=$LIBS | |
18794 | LIBS="-lm $LIBS" | |
18795 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18796 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18797 | fi |
cd9a469c | 18798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18799 | /* end confdefs.h. */ |
18800 | ||
cd9a469c | 18801 | /* Override any GCC internal prototype to avoid an error. |
18802 | Use char because int might match the return type of a GCC | |
18803 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18804 | #ifdef __cplusplus |
18805 | extern "C" | |
18806 | #endif | |
d213114b | 18807 | char cexp (); |
18808 | int | |
18809 | main () | |
18810 | { | |
cd9a469c | 18811 | return cexp (); |
d213114b | 18812 | ; |
18813 | return 0; | |
18814 | } | |
18815 | _ACEOF | |
cd9a469c | 18816 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18817 | ac_cv_lib_m_cexp=yes |
18818 | else | |
cd9a469c | 18819 | ac_cv_lib_m_cexp=no |
d213114b | 18820 | fi |
cd9a469c | 18821 | rm -f core conftest.err conftest.$ac_objext \ |
18822 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18823 | LIBS=$ac_check_lib_save_LIBS |
18824 | fi | |
cd9a469c | 18825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexp" >&5 |
18826 | $as_echo "$ac_cv_lib_m_cexp" >&6; } | |
18827 | if test "x$ac_cv_lib_m_cexp" = x""yes; then : | |
d213114b | 18828 | |
cd9a469c | 18829 | $as_echo "#define HAVE_CEXP 1" >>confdefs.h |
d213114b | 18830 | |
18831 | fi | |
18832 | ||
cd9a469c | 18833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl in -lm" >&5 |
18834 | $as_echo_n "checking for cexpl in -lm... " >&6; } | |
18835 | if test "${ac_cv_lib_m_cexpl+set}" = set; then : | |
18836 | $as_echo_n "(cached) " >&6 | |
d213114b | 18837 | else |
18838 | ac_check_lib_save_LIBS=$LIBS | |
18839 | LIBS="-lm $LIBS" | |
18840 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18841 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18842 | fi |
cd9a469c | 18843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18844 | /* end confdefs.h. */ |
18845 | ||
cd9a469c | 18846 | /* Override any GCC internal prototype to avoid an error. |
18847 | Use char because int might match the return type of a GCC | |
18848 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18849 | #ifdef __cplusplus |
18850 | extern "C" | |
18851 | #endif | |
d213114b | 18852 | char cexpl (); |
18853 | int | |
18854 | main () | |
18855 | { | |
cd9a469c | 18856 | return cexpl (); |
d213114b | 18857 | ; |
18858 | return 0; | |
18859 | } | |
18860 | _ACEOF | |
cd9a469c | 18861 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18862 | ac_cv_lib_m_cexpl=yes |
18863 | else | |
cd9a469c | 18864 | ac_cv_lib_m_cexpl=no |
d213114b | 18865 | fi |
cd9a469c | 18866 | rm -f core conftest.err conftest.$ac_objext \ |
18867 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18868 | LIBS=$ac_check_lib_save_LIBS |
18869 | fi | |
cd9a469c | 18870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpl" >&5 |
18871 | $as_echo "$ac_cv_lib_m_cexpl" >&6; } | |
18872 | if test "x$ac_cv_lib_m_cexpl" = x""yes; then : | |
d213114b | 18873 | |
cd9a469c | 18874 | $as_echo "#define HAVE_CEXPL 1" >>confdefs.h |
d213114b | 18875 | |
18876 | fi | |
18877 | ||
cd9a469c | 18878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5 |
18879 | $as_echo_n "checking for fabsf in -lm... " >&6; } | |
18880 | if test "${ac_cv_lib_m_fabsf+set}" = set; then : | |
18881 | $as_echo_n "(cached) " >&6 | |
d213114b | 18882 | else |
18883 | ac_check_lib_save_LIBS=$LIBS | |
18884 | LIBS="-lm $LIBS" | |
18885 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18886 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18887 | fi |
cd9a469c | 18888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18889 | /* end confdefs.h. */ |
18890 | ||
cd9a469c | 18891 | /* Override any GCC internal prototype to avoid an error. |
18892 | Use char because int might match the return type of a GCC | |
18893 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18894 | #ifdef __cplusplus |
18895 | extern "C" | |
18896 | #endif | |
d213114b | 18897 | char fabsf (); |
18898 | int | |
18899 | main () | |
18900 | { | |
cd9a469c | 18901 | return fabsf (); |
d213114b | 18902 | ; |
18903 | return 0; | |
18904 | } | |
18905 | _ACEOF | |
cd9a469c | 18906 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18907 | ac_cv_lib_m_fabsf=yes |
18908 | else | |
cd9a469c | 18909 | ac_cv_lib_m_fabsf=no |
d213114b | 18910 | fi |
cd9a469c | 18911 | rm -f core conftest.err conftest.$ac_objext \ |
18912 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18913 | LIBS=$ac_check_lib_save_LIBS |
18914 | fi | |
cd9a469c | 18915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5 |
18916 | $as_echo "$ac_cv_lib_m_fabsf" >&6; } | |
18917 | if test "x$ac_cv_lib_m_fabsf" = x""yes; then : | |
d213114b | 18918 | |
cd9a469c | 18919 | $as_echo "#define HAVE_FABSF 1" >>confdefs.h |
d213114b | 18920 | |
18921 | fi | |
18922 | ||
cd9a469c | 18923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5 |
18924 | $as_echo_n "checking for fabs in -lm... " >&6; } | |
18925 | if test "${ac_cv_lib_m_fabs+set}" = set; then : | |
18926 | $as_echo_n "(cached) " >&6 | |
d213114b | 18927 | else |
18928 | ac_check_lib_save_LIBS=$LIBS | |
18929 | LIBS="-lm $LIBS" | |
18930 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18931 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18932 | fi |
cd9a469c | 18933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18934 | /* end confdefs.h. */ |
18935 | ||
cd9a469c | 18936 | /* Override any GCC internal prototype to avoid an error. |
18937 | Use char because int might match the return type of a GCC | |
18938 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18939 | #ifdef __cplusplus |
18940 | extern "C" | |
18941 | #endif | |
d213114b | 18942 | char fabs (); |
18943 | int | |
18944 | main () | |
18945 | { | |
cd9a469c | 18946 | return fabs (); |
d213114b | 18947 | ; |
18948 | return 0; | |
18949 | } | |
18950 | _ACEOF | |
cd9a469c | 18951 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18952 | ac_cv_lib_m_fabs=yes |
18953 | else | |
cd9a469c | 18954 | ac_cv_lib_m_fabs=no |
d213114b | 18955 | fi |
cd9a469c | 18956 | rm -f core conftest.err conftest.$ac_objext \ |
18957 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 18958 | LIBS=$ac_check_lib_save_LIBS |
18959 | fi | |
cd9a469c | 18960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5 |
18961 | $as_echo "$ac_cv_lib_m_fabs" >&6; } | |
18962 | if test "x$ac_cv_lib_m_fabs" = x""yes; then : | |
d213114b | 18963 | |
cd9a469c | 18964 | $as_echo "#define HAVE_FABS 1" >>confdefs.h |
d213114b | 18965 | |
18966 | fi | |
18967 | ||
cd9a469c | 18968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl in -lm" >&5 |
18969 | $as_echo_n "checking for fabsl in -lm... " >&6; } | |
18970 | if test "${ac_cv_lib_m_fabsl+set}" = set; then : | |
18971 | $as_echo_n "(cached) " >&6 | |
d213114b | 18972 | else |
18973 | ac_check_lib_save_LIBS=$LIBS | |
18974 | LIBS="-lm $LIBS" | |
18975 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 18976 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 18977 | fi |
cd9a469c | 18978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 18979 | /* end confdefs.h. */ |
18980 | ||
cd9a469c | 18981 | /* Override any GCC internal prototype to avoid an error. |
18982 | Use char because int might match the return type of a GCC | |
18983 | builtin and then its argument prototype would still apply. */ | |
d213114b | 18984 | #ifdef __cplusplus |
18985 | extern "C" | |
18986 | #endif | |
d213114b | 18987 | char fabsl (); |
18988 | int | |
18989 | main () | |
18990 | { | |
cd9a469c | 18991 | return fabsl (); |
d213114b | 18992 | ; |
18993 | return 0; | |
18994 | } | |
18995 | _ACEOF | |
cd9a469c | 18996 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 18997 | ac_cv_lib_m_fabsl=yes |
18998 | else | |
cd9a469c | 18999 | ac_cv_lib_m_fabsl=no |
d213114b | 19000 | fi |
cd9a469c | 19001 | rm -f core conftest.err conftest.$ac_objext \ |
19002 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19003 | LIBS=$ac_check_lib_save_LIBS |
19004 | fi | |
cd9a469c | 19005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsl" >&5 |
19006 | $as_echo "$ac_cv_lib_m_fabsl" >&6; } | |
19007 | if test "x$ac_cv_lib_m_fabsl" = x""yes; then : | |
d213114b | 19008 | |
cd9a469c | 19009 | $as_echo "#define HAVE_FABSL 1" >>confdefs.h |
d213114b | 19010 | |
19011 | fi | |
19012 | ||
cd9a469c | 19013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf in -lm" >&5 |
19014 | $as_echo_n "checking for cabsf in -lm... " >&6; } | |
19015 | if test "${ac_cv_lib_m_cabsf+set}" = set; then : | |
19016 | $as_echo_n "(cached) " >&6 | |
d213114b | 19017 | else |
19018 | ac_check_lib_save_LIBS=$LIBS | |
19019 | LIBS="-lm $LIBS" | |
19020 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19021 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19022 | fi |
cd9a469c | 19023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19024 | /* end confdefs.h. */ |
19025 | ||
cd9a469c | 19026 | /* Override any GCC internal prototype to avoid an error. |
19027 | Use char because int might match the return type of a GCC | |
19028 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19029 | #ifdef __cplusplus |
19030 | extern "C" | |
19031 | #endif | |
d213114b | 19032 | char cabsf (); |
19033 | int | |
19034 | main () | |
19035 | { | |
cd9a469c | 19036 | return cabsf (); |
d213114b | 19037 | ; |
19038 | return 0; | |
19039 | } | |
19040 | _ACEOF | |
cd9a469c | 19041 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19042 | ac_cv_lib_m_cabsf=yes |
19043 | else | |
cd9a469c | 19044 | ac_cv_lib_m_cabsf=no |
d213114b | 19045 | fi |
cd9a469c | 19046 | rm -f core conftest.err conftest.$ac_objext \ |
19047 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19048 | LIBS=$ac_check_lib_save_LIBS |
19049 | fi | |
cd9a469c | 19050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsf" >&5 |
19051 | $as_echo "$ac_cv_lib_m_cabsf" >&6; } | |
19052 | if test "x$ac_cv_lib_m_cabsf" = x""yes; then : | |
d213114b | 19053 | |
cd9a469c | 19054 | $as_echo "#define HAVE_CABSF 1" >>confdefs.h |
d213114b | 19055 | |
19056 | fi | |
19057 | ||
cd9a469c | 19058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5 |
19059 | $as_echo_n "checking for cabs in -lm... " >&6; } | |
19060 | if test "${ac_cv_lib_m_cabs+set}" = set; then : | |
19061 | $as_echo_n "(cached) " >&6 | |
d213114b | 19062 | else |
19063 | ac_check_lib_save_LIBS=$LIBS | |
19064 | LIBS="-lm $LIBS" | |
19065 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19066 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19067 | fi |
cd9a469c | 19068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19069 | /* end confdefs.h. */ |
19070 | ||
cd9a469c | 19071 | /* Override any GCC internal prototype to avoid an error. |
19072 | Use char because int might match the return type of a GCC | |
19073 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19074 | #ifdef __cplusplus |
19075 | extern "C" | |
19076 | #endif | |
d213114b | 19077 | char cabs (); |
19078 | int | |
19079 | main () | |
19080 | { | |
cd9a469c | 19081 | return cabs (); |
d213114b | 19082 | ; |
19083 | return 0; | |
19084 | } | |
19085 | _ACEOF | |
cd9a469c | 19086 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19087 | ac_cv_lib_m_cabs=yes |
19088 | else | |
cd9a469c | 19089 | ac_cv_lib_m_cabs=no |
d213114b | 19090 | fi |
cd9a469c | 19091 | rm -f core conftest.err conftest.$ac_objext \ |
19092 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19093 | LIBS=$ac_check_lib_save_LIBS |
19094 | fi | |
cd9a469c | 19095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5 |
19096 | $as_echo "$ac_cv_lib_m_cabs" >&6; } | |
19097 | if test "x$ac_cv_lib_m_cabs" = x""yes; then : | |
d213114b | 19098 | |
cd9a469c | 19099 | $as_echo "#define HAVE_CABS 1" >>confdefs.h |
d213114b | 19100 | |
19101 | fi | |
19102 | ||
cd9a469c | 19103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl in -lm" >&5 |
19104 | $as_echo_n "checking for cabsl in -lm... " >&6; } | |
19105 | if test "${ac_cv_lib_m_cabsl+set}" = set; then : | |
19106 | $as_echo_n "(cached) " >&6 | |
d213114b | 19107 | else |
19108 | ac_check_lib_save_LIBS=$LIBS | |
19109 | LIBS="-lm $LIBS" | |
19110 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19111 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19112 | fi |
cd9a469c | 19113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19114 | /* end confdefs.h. */ |
19115 | ||
cd9a469c | 19116 | /* Override any GCC internal prototype to avoid an error. |
19117 | Use char because int might match the return type of a GCC | |
19118 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19119 | #ifdef __cplusplus |
19120 | extern "C" | |
19121 | #endif | |
d213114b | 19122 | char cabsl (); |
19123 | int | |
19124 | main () | |
19125 | { | |
cd9a469c | 19126 | return cabsl (); |
d213114b | 19127 | ; |
19128 | return 0; | |
19129 | } | |
19130 | _ACEOF | |
cd9a469c | 19131 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19132 | ac_cv_lib_m_cabsl=yes |
19133 | else | |
cd9a469c | 19134 | ac_cv_lib_m_cabsl=no |
d213114b | 19135 | fi |
cd9a469c | 19136 | rm -f core conftest.err conftest.$ac_objext \ |
19137 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19138 | LIBS=$ac_check_lib_save_LIBS |
19139 | fi | |
cd9a469c | 19140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsl" >&5 |
19141 | $as_echo "$ac_cv_lib_m_cabsl" >&6; } | |
19142 | if test "x$ac_cv_lib_m_cabsl" = x""yes; then : | |
d213114b | 19143 | |
cd9a469c | 19144 | $as_echo "#define HAVE_CABSL 1" >>confdefs.h |
d213114b | 19145 | |
19146 | fi | |
19147 | ||
cd9a469c | 19148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf in -lm" >&5 |
19149 | $as_echo_n "checking for floorf in -lm... " >&6; } | |
19150 | if test "${ac_cv_lib_m_floorf+set}" = set; then : | |
19151 | $as_echo_n "(cached) " >&6 | |
d213114b | 19152 | else |
19153 | ac_check_lib_save_LIBS=$LIBS | |
19154 | LIBS="-lm $LIBS" | |
19155 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19156 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19157 | fi |
cd9a469c | 19158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19159 | /* end confdefs.h. */ |
19160 | ||
cd9a469c | 19161 | /* Override any GCC internal prototype to avoid an error. |
19162 | Use char because int might match the return type of a GCC | |
19163 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19164 | #ifdef __cplusplus |
19165 | extern "C" | |
19166 | #endif | |
d213114b | 19167 | char floorf (); |
19168 | int | |
19169 | main () | |
19170 | { | |
cd9a469c | 19171 | return floorf (); |
d213114b | 19172 | ; |
19173 | return 0; | |
19174 | } | |
19175 | _ACEOF | |
cd9a469c | 19176 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19177 | ac_cv_lib_m_floorf=yes |
19178 | else | |
cd9a469c | 19179 | ac_cv_lib_m_floorf=no |
d213114b | 19180 | fi |
cd9a469c | 19181 | rm -f core conftest.err conftest.$ac_objext \ |
19182 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19183 | LIBS=$ac_check_lib_save_LIBS |
19184 | fi | |
cd9a469c | 19185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorf" >&5 |
19186 | $as_echo "$ac_cv_lib_m_floorf" >&6; } | |
19187 | if test "x$ac_cv_lib_m_floorf" = x""yes; then : | |
d213114b | 19188 | |
cd9a469c | 19189 | $as_echo "#define HAVE_FLOORF 1" >>confdefs.h |
d213114b | 19190 | |
19191 | fi | |
19192 | ||
cd9a469c | 19193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
19194 | $as_echo_n "checking for floor in -lm... " >&6; } | |
19195 | if test "${ac_cv_lib_m_floor+set}" = set; then : | |
19196 | $as_echo_n "(cached) " >&6 | |
d213114b | 19197 | else |
19198 | ac_check_lib_save_LIBS=$LIBS | |
19199 | LIBS="-lm $LIBS" | |
19200 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19201 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19202 | fi |
cd9a469c | 19203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19204 | /* end confdefs.h. */ |
19205 | ||
cd9a469c | 19206 | /* Override any GCC internal prototype to avoid an error. |
19207 | Use char because int might match the return type of a GCC | |
19208 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19209 | #ifdef __cplusplus |
19210 | extern "C" | |
19211 | #endif | |
d213114b | 19212 | char floor (); |
19213 | int | |
19214 | main () | |
19215 | { | |
cd9a469c | 19216 | return floor (); |
d213114b | 19217 | ; |
cd9a469c | 19218 | return 0; |
19219 | } | |
19220 | _ACEOF | |
19221 | if ac_fn_c_try_link "$LINENO"; then : | |
d213114b | 19222 | ac_cv_lib_m_floor=yes |
19223 | else | |
cd9a469c | 19224 | ac_cv_lib_m_floor=no |
d213114b | 19225 | fi |
cd9a469c | 19226 | rm -f core conftest.err conftest.$ac_objext \ |
19227 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19228 | LIBS=$ac_check_lib_save_LIBS |
19229 | fi | |
cd9a469c | 19230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
19231 | $as_echo "$ac_cv_lib_m_floor" >&6; } | |
19232 | if test "x$ac_cv_lib_m_floor" = x""yes; then : | |
d213114b | 19233 | |
cd9a469c | 19234 | $as_echo "#define HAVE_FLOOR 1" >>confdefs.h |
d213114b | 19235 | |
19236 | fi | |
19237 | ||
cd9a469c | 19238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl in -lm" >&5 |
19239 | $as_echo_n "checking for floorl in -lm... " >&6; } | |
19240 | if test "${ac_cv_lib_m_floorl+set}" = set; then : | |
19241 | $as_echo_n "(cached) " >&6 | |
d213114b | 19242 | else |
19243 | ac_check_lib_save_LIBS=$LIBS | |
19244 | LIBS="-lm $LIBS" | |
19245 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19246 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19247 | fi |
cd9a469c | 19248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19249 | /* end confdefs.h. */ |
19250 | ||
cd9a469c | 19251 | /* Override any GCC internal prototype to avoid an error. |
19252 | Use char because int might match the return type of a GCC | |
19253 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19254 | #ifdef __cplusplus |
19255 | extern "C" | |
19256 | #endif | |
d213114b | 19257 | char floorl (); |
19258 | int | |
19259 | main () | |
19260 | { | |
cd9a469c | 19261 | return floorl (); |
d213114b | 19262 | ; |
19263 | return 0; | |
19264 | } | |
19265 | _ACEOF | |
cd9a469c | 19266 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19267 | ac_cv_lib_m_floorl=yes |
19268 | else | |
cd9a469c | 19269 | ac_cv_lib_m_floorl=no |
d213114b | 19270 | fi |
cd9a469c | 19271 | rm -f core conftest.err conftest.$ac_objext \ |
19272 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19273 | LIBS=$ac_check_lib_save_LIBS |
19274 | fi | |
cd9a469c | 19275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorl" >&5 |
19276 | $as_echo "$ac_cv_lib_m_floorl" >&6; } | |
19277 | if test "x$ac_cv_lib_m_floorl" = x""yes; then : | |
d213114b | 19278 | |
cd9a469c | 19279 | $as_echo "#define HAVE_FLOORL 1" >>confdefs.h |
d213114b | 19280 | |
19281 | fi | |
19282 | ||
cd9a469c | 19283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf in -lm" >&5 |
19284 | $as_echo_n "checking for fmodf in -lm... " >&6; } | |
19285 | if test "${ac_cv_lib_m_fmodf+set}" = set; then : | |
19286 | $as_echo_n "(cached) " >&6 | |
71d5b534 | 19287 | else |
19288 | ac_check_lib_save_LIBS=$LIBS | |
19289 | LIBS="-lm $LIBS" | |
19290 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19291 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19292 | fi |
cd9a469c | 19293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19294 | /* end confdefs.h. */ |
19295 | ||
cd9a469c | 19296 | /* Override any GCC internal prototype to avoid an error. |
19297 | Use char because int might match the return type of a GCC | |
19298 | builtin and then its argument prototype would still apply. */ | |
71d5b534 | 19299 | #ifdef __cplusplus |
19300 | extern "C" | |
19301 | #endif | |
71d5b534 | 19302 | char fmodf (); |
19303 | int | |
19304 | main () | |
19305 | { | |
cd9a469c | 19306 | return fmodf (); |
71d5b534 | 19307 | ; |
19308 | return 0; | |
19309 | } | |
19310 | _ACEOF | |
cd9a469c | 19311 | if ac_fn_c_try_link "$LINENO"; then : |
71d5b534 | 19312 | ac_cv_lib_m_fmodf=yes |
19313 | else | |
cd9a469c | 19314 | ac_cv_lib_m_fmodf=no |
71d5b534 | 19315 | fi |
cd9a469c | 19316 | rm -f core conftest.err conftest.$ac_objext \ |
19317 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19318 | LIBS=$ac_check_lib_save_LIBS |
19319 | fi | |
cd9a469c | 19320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodf" >&5 |
19321 | $as_echo "$ac_cv_lib_m_fmodf" >&6; } | |
19322 | if test "x$ac_cv_lib_m_fmodf" = x""yes; then : | |
71d5b534 | 19323 | |
cd9a469c | 19324 | $as_echo "#define HAVE_FMODF 1" >>confdefs.h |
71d5b534 | 19325 | |
19326 | fi | |
19327 | ||
cd9a469c | 19328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5 |
19329 | $as_echo_n "checking for fmod in -lm... " >&6; } | |
19330 | if test "${ac_cv_lib_m_fmod+set}" = set; then : | |
19331 | $as_echo_n "(cached) " >&6 | |
71d5b534 | 19332 | else |
19333 | ac_check_lib_save_LIBS=$LIBS | |
19334 | LIBS="-lm $LIBS" | |
19335 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19336 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19337 | fi |
cd9a469c | 19338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19339 | /* end confdefs.h. */ |
19340 | ||
cd9a469c | 19341 | /* Override any GCC internal prototype to avoid an error. |
19342 | Use char because int might match the return type of a GCC | |
19343 | builtin and then its argument prototype would still apply. */ | |
71d5b534 | 19344 | #ifdef __cplusplus |
19345 | extern "C" | |
19346 | #endif | |
71d5b534 | 19347 | char fmod (); |
19348 | int | |
19349 | main () | |
19350 | { | |
cd9a469c | 19351 | return fmod (); |
71d5b534 | 19352 | ; |
19353 | return 0; | |
19354 | } | |
19355 | _ACEOF | |
cd9a469c | 19356 | if ac_fn_c_try_link "$LINENO"; then : |
71d5b534 | 19357 | ac_cv_lib_m_fmod=yes |
19358 | else | |
cd9a469c | 19359 | ac_cv_lib_m_fmod=no |
71d5b534 | 19360 | fi |
cd9a469c | 19361 | rm -f core conftest.err conftest.$ac_objext \ |
19362 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19363 | LIBS=$ac_check_lib_save_LIBS |
19364 | fi | |
cd9a469c | 19365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5 |
19366 | $as_echo "$ac_cv_lib_m_fmod" >&6; } | |
19367 | if test "x$ac_cv_lib_m_fmod" = x""yes; then : | |
71d5b534 | 19368 | |
cd9a469c | 19369 | $as_echo "#define HAVE_FMOD 1" >>confdefs.h |
71d5b534 | 19370 | |
19371 | fi | |
19372 | ||
cd9a469c | 19373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl in -lm" >&5 |
19374 | $as_echo_n "checking for fmodl in -lm... " >&6; } | |
19375 | if test "${ac_cv_lib_m_fmodl+set}" = set; then : | |
19376 | $as_echo_n "(cached) " >&6 | |
71d5b534 | 19377 | else |
19378 | ac_check_lib_save_LIBS=$LIBS | |
19379 | LIBS="-lm $LIBS" | |
19380 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19381 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d5b534 | 19382 | fi |
cd9a469c | 19383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d5b534 | 19384 | /* end confdefs.h. */ |
19385 | ||
cd9a469c | 19386 | /* Override any GCC internal prototype to avoid an error. |
19387 | Use char because int might match the return type of a GCC | |
19388 | builtin and then its argument prototype would still apply. */ | |
71d5b534 | 19389 | #ifdef __cplusplus |
19390 | extern "C" | |
19391 | #endif | |
71d5b534 | 19392 | char fmodl (); |
19393 | int | |
19394 | main () | |
19395 | { | |
cd9a469c | 19396 | return fmodl (); |
71d5b534 | 19397 | ; |
19398 | return 0; | |
19399 | } | |
19400 | _ACEOF | |
cd9a469c | 19401 | if ac_fn_c_try_link "$LINENO"; then : |
71d5b534 | 19402 | ac_cv_lib_m_fmodl=yes |
19403 | else | |
cd9a469c | 19404 | ac_cv_lib_m_fmodl=no |
71d5b534 | 19405 | fi |
cd9a469c | 19406 | rm -f core conftest.err conftest.$ac_objext \ |
19407 | conftest$ac_exeext conftest.$ac_ext | |
71d5b534 | 19408 | LIBS=$ac_check_lib_save_LIBS |
19409 | fi | |
cd9a469c | 19410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodl" >&5 |
19411 | $as_echo "$ac_cv_lib_m_fmodl" >&6; } | |
19412 | if test "x$ac_cv_lib_m_fmodl" = x""yes; then : | |
71d5b534 | 19413 | |
cd9a469c | 19414 | $as_echo "#define HAVE_FMODL 1" >>confdefs.h |
71d5b534 | 19415 | |
19416 | fi | |
19417 | ||
cd9a469c | 19418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5 |
19419 | $as_echo_n "checking for frexpf in -lm... " >&6; } | |
19420 | if test "${ac_cv_lib_m_frexpf+set}" = set; then : | |
19421 | $as_echo_n "(cached) " >&6 | |
d213114b | 19422 | else |
19423 | ac_check_lib_save_LIBS=$LIBS | |
19424 | LIBS="-lm $LIBS" | |
19425 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19426 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19427 | fi |
cd9a469c | 19428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19429 | /* end confdefs.h. */ |
19430 | ||
cd9a469c | 19431 | /* Override any GCC internal prototype to avoid an error. |
19432 | Use char because int might match the return type of a GCC | |
19433 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19434 | #ifdef __cplusplus |
19435 | extern "C" | |
19436 | #endif | |
d213114b | 19437 | char frexpf (); |
19438 | int | |
19439 | main () | |
19440 | { | |
cd9a469c | 19441 | return frexpf (); |
d213114b | 19442 | ; |
19443 | return 0; | |
19444 | } | |
19445 | _ACEOF | |
cd9a469c | 19446 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19447 | ac_cv_lib_m_frexpf=yes |
19448 | else | |
cd9a469c | 19449 | ac_cv_lib_m_frexpf=no |
d213114b | 19450 | fi |
cd9a469c | 19451 | rm -f core conftest.err conftest.$ac_objext \ |
19452 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19453 | LIBS=$ac_check_lib_save_LIBS |
19454 | fi | |
cd9a469c | 19455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpf" >&5 |
19456 | $as_echo "$ac_cv_lib_m_frexpf" >&6; } | |
19457 | if test "x$ac_cv_lib_m_frexpf" = x""yes; then : | |
d213114b | 19458 | |
cd9a469c | 19459 | $as_echo "#define HAVE_FREXPF 1" >>confdefs.h |
d213114b | 19460 | |
19461 | fi | |
19462 | ||
cd9a469c | 19463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5 |
19464 | $as_echo_n "checking for frexp in -lm... " >&6; } | |
19465 | if test "${ac_cv_lib_m_frexp+set}" = set; then : | |
19466 | $as_echo_n "(cached) " >&6 | |
d213114b | 19467 | else |
19468 | ac_check_lib_save_LIBS=$LIBS | |
19469 | LIBS="-lm $LIBS" | |
19470 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19471 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19472 | fi |
cd9a469c | 19473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19474 | /* end confdefs.h. */ |
19475 | ||
cd9a469c | 19476 | /* Override any GCC internal prototype to avoid an error. |
19477 | Use char because int might match the return type of a GCC | |
19478 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19479 | #ifdef __cplusplus |
19480 | extern "C" | |
19481 | #endif | |
d213114b | 19482 | char frexp (); |
19483 | int | |
19484 | main () | |
19485 | { | |
cd9a469c | 19486 | return frexp (); |
d213114b | 19487 | ; |
19488 | return 0; | |
19489 | } | |
19490 | _ACEOF | |
cd9a469c | 19491 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19492 | ac_cv_lib_m_frexp=yes |
19493 | else | |
cd9a469c | 19494 | ac_cv_lib_m_frexp=no |
d213114b | 19495 | fi |
cd9a469c | 19496 | rm -f core conftest.err conftest.$ac_objext \ |
19497 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19498 | LIBS=$ac_check_lib_save_LIBS |
19499 | fi | |
cd9a469c | 19500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5 |
19501 | $as_echo "$ac_cv_lib_m_frexp" >&6; } | |
19502 | if test "x$ac_cv_lib_m_frexp" = x""yes; then : | |
d213114b | 19503 | |
cd9a469c | 19504 | $as_echo "#define HAVE_FREXP 1" >>confdefs.h |
d213114b | 19505 | |
19506 | fi | |
19507 | ||
cd9a469c | 19508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl in -lm" >&5 |
19509 | $as_echo_n "checking for frexpl in -lm... " >&6; } | |
19510 | if test "${ac_cv_lib_m_frexpl+set}" = set; then : | |
19511 | $as_echo_n "(cached) " >&6 | |
d213114b | 19512 | else |
19513 | ac_check_lib_save_LIBS=$LIBS | |
19514 | LIBS="-lm $LIBS" | |
19515 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19516 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19517 | fi |
cd9a469c | 19518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19519 | /* end confdefs.h. */ |
19520 | ||
cd9a469c | 19521 | /* Override any GCC internal prototype to avoid an error. |
19522 | Use char because int might match the return type of a GCC | |
19523 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19524 | #ifdef __cplusplus |
19525 | extern "C" | |
19526 | #endif | |
d213114b | 19527 | char frexpl (); |
19528 | int | |
19529 | main () | |
19530 | { | |
cd9a469c | 19531 | return frexpl (); |
d213114b | 19532 | ; |
19533 | return 0; | |
19534 | } | |
19535 | _ACEOF | |
cd9a469c | 19536 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19537 | ac_cv_lib_m_frexpl=yes |
19538 | else | |
cd9a469c | 19539 | ac_cv_lib_m_frexpl=no |
d213114b | 19540 | fi |
cd9a469c | 19541 | rm -f core conftest.err conftest.$ac_objext \ |
19542 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19543 | LIBS=$ac_check_lib_save_LIBS |
19544 | fi | |
cd9a469c | 19545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpl" >&5 |
19546 | $as_echo "$ac_cv_lib_m_frexpl" >&6; } | |
19547 | if test "x$ac_cv_lib_m_frexpl" = x""yes; then : | |
d213114b | 19548 | |
cd9a469c | 19549 | $as_echo "#define HAVE_FREXPL 1" >>confdefs.h |
d213114b | 19550 | |
19551 | fi | |
19552 | ||
cd9a469c | 19553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf in -lm" >&5 |
19554 | $as_echo_n "checking for hypotf in -lm... " >&6; } | |
19555 | if test "${ac_cv_lib_m_hypotf+set}" = set; then : | |
19556 | $as_echo_n "(cached) " >&6 | |
d213114b | 19557 | else |
19558 | ac_check_lib_save_LIBS=$LIBS | |
19559 | LIBS="-lm $LIBS" | |
19560 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19561 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19562 | fi |
cd9a469c | 19563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19564 | /* end confdefs.h. */ |
19565 | ||
cd9a469c | 19566 | /* Override any GCC internal prototype to avoid an error. |
19567 | Use char because int might match the return type of a GCC | |
19568 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19569 | #ifdef __cplusplus |
19570 | extern "C" | |
19571 | #endif | |
d213114b | 19572 | char hypotf (); |
19573 | int | |
19574 | main () | |
19575 | { | |
cd9a469c | 19576 | return hypotf (); |
d213114b | 19577 | ; |
19578 | return 0; | |
19579 | } | |
19580 | _ACEOF | |
cd9a469c | 19581 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19582 | ac_cv_lib_m_hypotf=yes |
19583 | else | |
cd9a469c | 19584 | ac_cv_lib_m_hypotf=no |
d213114b | 19585 | fi |
cd9a469c | 19586 | rm -f core conftest.err conftest.$ac_objext \ |
19587 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19588 | LIBS=$ac_check_lib_save_LIBS |
19589 | fi | |
cd9a469c | 19590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotf" >&5 |
19591 | $as_echo "$ac_cv_lib_m_hypotf" >&6; } | |
19592 | if test "x$ac_cv_lib_m_hypotf" = x""yes; then : | |
d213114b | 19593 | |
cd9a469c | 19594 | $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h |
d213114b | 19595 | |
19596 | fi | |
19597 | ||
cd9a469c | 19598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5 |
19599 | $as_echo_n "checking for hypot in -lm... " >&6; } | |
19600 | if test "${ac_cv_lib_m_hypot+set}" = set; then : | |
19601 | $as_echo_n "(cached) " >&6 | |
d213114b | 19602 | else |
19603 | ac_check_lib_save_LIBS=$LIBS | |
19604 | LIBS="-lm $LIBS" | |
19605 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19606 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19607 | fi |
cd9a469c | 19608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19609 | /* end confdefs.h. */ |
19610 | ||
cd9a469c | 19611 | /* Override any GCC internal prototype to avoid an error. |
19612 | Use char because int might match the return type of a GCC | |
19613 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19614 | #ifdef __cplusplus |
19615 | extern "C" | |
19616 | #endif | |
d213114b | 19617 | char hypot (); |
19618 | int | |
19619 | main () | |
19620 | { | |
cd9a469c | 19621 | return hypot (); |
d213114b | 19622 | ; |
19623 | return 0; | |
19624 | } | |
19625 | _ACEOF | |
cd9a469c | 19626 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19627 | ac_cv_lib_m_hypot=yes |
19628 | else | |
cd9a469c | 19629 | ac_cv_lib_m_hypot=no |
d213114b | 19630 | fi |
cd9a469c | 19631 | rm -f core conftest.err conftest.$ac_objext \ |
19632 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19633 | LIBS=$ac_check_lib_save_LIBS |
19634 | fi | |
cd9a469c | 19635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5 |
19636 | $as_echo "$ac_cv_lib_m_hypot" >&6; } | |
19637 | if test "x$ac_cv_lib_m_hypot" = x""yes; then : | |
d213114b | 19638 | |
cd9a469c | 19639 | $as_echo "#define HAVE_HYPOT 1" >>confdefs.h |
d213114b | 19640 | |
19641 | fi | |
19642 | ||
cd9a469c | 19643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl in -lm" >&5 |
19644 | $as_echo_n "checking for hypotl in -lm... " >&6; } | |
19645 | if test "${ac_cv_lib_m_hypotl+set}" = set; then : | |
19646 | $as_echo_n "(cached) " >&6 | |
d213114b | 19647 | else |
19648 | ac_check_lib_save_LIBS=$LIBS | |
19649 | LIBS="-lm $LIBS" | |
19650 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19651 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19652 | fi |
cd9a469c | 19653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19654 | /* end confdefs.h. */ |
19655 | ||
cd9a469c | 19656 | /* Override any GCC internal prototype to avoid an error. |
19657 | Use char because int might match the return type of a GCC | |
19658 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19659 | #ifdef __cplusplus |
19660 | extern "C" | |
19661 | #endif | |
d213114b | 19662 | char hypotl (); |
19663 | int | |
19664 | main () | |
19665 | { | |
cd9a469c | 19666 | return hypotl (); |
d213114b | 19667 | ; |
19668 | return 0; | |
19669 | } | |
19670 | _ACEOF | |
cd9a469c | 19671 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19672 | ac_cv_lib_m_hypotl=yes |
19673 | else | |
cd9a469c | 19674 | ac_cv_lib_m_hypotl=no |
d213114b | 19675 | fi |
cd9a469c | 19676 | rm -f core conftest.err conftest.$ac_objext \ |
19677 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19678 | LIBS=$ac_check_lib_save_LIBS |
19679 | fi | |
cd9a469c | 19680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotl" >&5 |
19681 | $as_echo "$ac_cv_lib_m_hypotl" >&6; } | |
19682 | if test "x$ac_cv_lib_m_hypotl" = x""yes; then : | |
d213114b | 19683 | |
cd9a469c | 19684 | $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h |
d213114b | 19685 | |
19686 | fi | |
19687 | ||
cd9a469c | 19688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5 |
19689 | $as_echo_n "checking for ldexpf in -lm... " >&6; } | |
19690 | if test "${ac_cv_lib_m_ldexpf+set}" = set; then : | |
19691 | $as_echo_n "(cached) " >&6 | |
71d90ac4 | 19692 | else |
19693 | ac_check_lib_save_LIBS=$LIBS | |
19694 | LIBS="-lm $LIBS" | |
19695 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19696 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 19697 | fi |
cd9a469c | 19698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 19699 | /* end confdefs.h. */ |
19700 | ||
cd9a469c | 19701 | /* Override any GCC internal prototype to avoid an error. |
19702 | Use char because int might match the return type of a GCC | |
19703 | builtin and then its argument prototype would still apply. */ | |
71d90ac4 | 19704 | #ifdef __cplusplus |
19705 | extern "C" | |
19706 | #endif | |
71d90ac4 | 19707 | char ldexpf (); |
19708 | int | |
19709 | main () | |
19710 | { | |
cd9a469c | 19711 | return ldexpf (); |
71d90ac4 | 19712 | ; |
19713 | return 0; | |
19714 | } | |
19715 | _ACEOF | |
cd9a469c | 19716 | if ac_fn_c_try_link "$LINENO"; then : |
71d90ac4 | 19717 | ac_cv_lib_m_ldexpf=yes |
19718 | else | |
cd9a469c | 19719 | ac_cv_lib_m_ldexpf=no |
71d90ac4 | 19720 | fi |
cd9a469c | 19721 | rm -f core conftest.err conftest.$ac_objext \ |
19722 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 19723 | LIBS=$ac_check_lib_save_LIBS |
19724 | fi | |
cd9a469c | 19725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpf" >&5 |
19726 | $as_echo "$ac_cv_lib_m_ldexpf" >&6; } | |
19727 | if test "x$ac_cv_lib_m_ldexpf" = x""yes; then : | |
71d90ac4 | 19728 | |
cd9a469c | 19729 | $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h |
71d90ac4 | 19730 | |
19731 | fi | |
19732 | ||
cd9a469c | 19733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5 |
19734 | $as_echo_n "checking for ldexp in -lm... " >&6; } | |
19735 | if test "${ac_cv_lib_m_ldexp+set}" = set; then : | |
19736 | $as_echo_n "(cached) " >&6 | |
71d90ac4 | 19737 | else |
19738 | ac_check_lib_save_LIBS=$LIBS | |
19739 | LIBS="-lm $LIBS" | |
19740 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19741 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 19742 | fi |
cd9a469c | 19743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 19744 | /* end confdefs.h. */ |
19745 | ||
cd9a469c | 19746 | /* Override any GCC internal prototype to avoid an error. |
19747 | Use char because int might match the return type of a GCC | |
19748 | builtin and then its argument prototype would still apply. */ | |
71d90ac4 | 19749 | #ifdef __cplusplus |
19750 | extern "C" | |
19751 | #endif | |
71d90ac4 | 19752 | char ldexp (); |
19753 | int | |
19754 | main () | |
19755 | { | |
cd9a469c | 19756 | return ldexp (); |
71d90ac4 | 19757 | ; |
19758 | return 0; | |
19759 | } | |
19760 | _ACEOF | |
cd9a469c | 19761 | if ac_fn_c_try_link "$LINENO"; then : |
71d90ac4 | 19762 | ac_cv_lib_m_ldexp=yes |
19763 | else | |
cd9a469c | 19764 | ac_cv_lib_m_ldexp=no |
71d90ac4 | 19765 | fi |
cd9a469c | 19766 | rm -f core conftest.err conftest.$ac_objext \ |
19767 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 19768 | LIBS=$ac_check_lib_save_LIBS |
19769 | fi | |
cd9a469c | 19770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5 |
19771 | $as_echo "$ac_cv_lib_m_ldexp" >&6; } | |
19772 | if test "x$ac_cv_lib_m_ldexp" = x""yes; then : | |
71d90ac4 | 19773 | |
cd9a469c | 19774 | $as_echo "#define HAVE_LDEXP 1" >>confdefs.h |
71d90ac4 | 19775 | |
19776 | fi | |
19777 | ||
cd9a469c | 19778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl in -lm" >&5 |
19779 | $as_echo_n "checking for ldexpl in -lm... " >&6; } | |
19780 | if test "${ac_cv_lib_m_ldexpl+set}" = set; then : | |
19781 | $as_echo_n "(cached) " >&6 | |
71d90ac4 | 19782 | else |
19783 | ac_check_lib_save_LIBS=$LIBS | |
19784 | LIBS="-lm $LIBS" | |
19785 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19786 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
71d90ac4 | 19787 | fi |
cd9a469c | 19788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71d90ac4 | 19789 | /* end confdefs.h. */ |
19790 | ||
cd9a469c | 19791 | /* Override any GCC internal prototype to avoid an error. |
19792 | Use char because int might match the return type of a GCC | |
19793 | builtin and then its argument prototype would still apply. */ | |
71d90ac4 | 19794 | #ifdef __cplusplus |
19795 | extern "C" | |
19796 | #endif | |
71d90ac4 | 19797 | char ldexpl (); |
19798 | int | |
19799 | main () | |
19800 | { | |
cd9a469c | 19801 | return ldexpl (); |
71d90ac4 | 19802 | ; |
19803 | return 0; | |
19804 | } | |
19805 | _ACEOF | |
cd9a469c | 19806 | if ac_fn_c_try_link "$LINENO"; then : |
71d90ac4 | 19807 | ac_cv_lib_m_ldexpl=yes |
19808 | else | |
cd9a469c | 19809 | ac_cv_lib_m_ldexpl=no |
71d90ac4 | 19810 | fi |
cd9a469c | 19811 | rm -f core conftest.err conftest.$ac_objext \ |
19812 | conftest$ac_exeext conftest.$ac_ext | |
71d90ac4 | 19813 | LIBS=$ac_check_lib_save_LIBS |
19814 | fi | |
cd9a469c | 19815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpl" >&5 |
19816 | $as_echo "$ac_cv_lib_m_ldexpl" >&6; } | |
19817 | if test "x$ac_cv_lib_m_ldexpl" = x""yes; then : | |
71d90ac4 | 19818 | |
cd9a469c | 19819 | $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h |
71d90ac4 | 19820 | |
19821 | fi | |
19822 | ||
cd9a469c | 19823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf in -lm" >&5 |
19824 | $as_echo_n "checking for logf in -lm... " >&6; } | |
19825 | if test "${ac_cv_lib_m_logf+set}" = set; then : | |
19826 | $as_echo_n "(cached) " >&6 | |
d213114b | 19827 | else |
19828 | ac_check_lib_save_LIBS=$LIBS | |
19829 | LIBS="-lm $LIBS" | |
19830 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19831 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19832 | fi |
cd9a469c | 19833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19834 | /* end confdefs.h. */ |
19835 | ||
cd9a469c | 19836 | /* Override any GCC internal prototype to avoid an error. |
19837 | Use char because int might match the return type of a GCC | |
19838 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19839 | #ifdef __cplusplus |
19840 | extern "C" | |
19841 | #endif | |
d213114b | 19842 | char logf (); |
19843 | int | |
19844 | main () | |
19845 | { | |
cd9a469c | 19846 | return logf (); |
d213114b | 19847 | ; |
19848 | return 0; | |
19849 | } | |
19850 | _ACEOF | |
cd9a469c | 19851 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19852 | ac_cv_lib_m_logf=yes |
19853 | else | |
cd9a469c | 19854 | ac_cv_lib_m_logf=no |
d213114b | 19855 | fi |
cd9a469c | 19856 | rm -f core conftest.err conftest.$ac_objext \ |
19857 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19858 | LIBS=$ac_check_lib_save_LIBS |
19859 | fi | |
cd9a469c | 19860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logf" >&5 |
19861 | $as_echo "$ac_cv_lib_m_logf" >&6; } | |
19862 | if test "x$ac_cv_lib_m_logf" = x""yes; then : | |
d213114b | 19863 | |
cd9a469c | 19864 | $as_echo "#define HAVE_LOGF 1" >>confdefs.h |
d213114b | 19865 | |
19866 | fi | |
19867 | ||
cd9a469c | 19868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5 |
19869 | $as_echo_n "checking for log in -lm... " >&6; } | |
19870 | if test "${ac_cv_lib_m_log+set}" = set; then : | |
19871 | $as_echo_n "(cached) " >&6 | |
d213114b | 19872 | else |
19873 | ac_check_lib_save_LIBS=$LIBS | |
19874 | LIBS="-lm $LIBS" | |
19875 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19876 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19877 | fi |
cd9a469c | 19878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19879 | /* end confdefs.h. */ |
19880 | ||
cd9a469c | 19881 | /* Override any GCC internal prototype to avoid an error. |
19882 | Use char because int might match the return type of a GCC | |
19883 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19884 | #ifdef __cplusplus |
19885 | extern "C" | |
19886 | #endif | |
d213114b | 19887 | char log (); |
19888 | int | |
19889 | main () | |
19890 | { | |
cd9a469c | 19891 | return log (); |
d213114b | 19892 | ; |
19893 | return 0; | |
19894 | } | |
19895 | _ACEOF | |
cd9a469c | 19896 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19897 | ac_cv_lib_m_log=yes |
19898 | else | |
cd9a469c | 19899 | ac_cv_lib_m_log=no |
d213114b | 19900 | fi |
cd9a469c | 19901 | rm -f core conftest.err conftest.$ac_objext \ |
19902 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19903 | LIBS=$ac_check_lib_save_LIBS |
19904 | fi | |
cd9a469c | 19905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5 |
19906 | $as_echo "$ac_cv_lib_m_log" >&6; } | |
19907 | if test "x$ac_cv_lib_m_log" = x""yes; then : | |
d213114b | 19908 | |
cd9a469c | 19909 | $as_echo "#define HAVE_LOG 1" >>confdefs.h |
d213114b | 19910 | |
19911 | fi | |
19912 | ||
cd9a469c | 19913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl in -lm" >&5 |
19914 | $as_echo_n "checking for logl in -lm... " >&6; } | |
19915 | if test "${ac_cv_lib_m_logl+set}" = set; then : | |
19916 | $as_echo_n "(cached) " >&6 | |
d213114b | 19917 | else |
19918 | ac_check_lib_save_LIBS=$LIBS | |
19919 | LIBS="-lm $LIBS" | |
19920 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19921 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19922 | fi |
cd9a469c | 19923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19924 | /* end confdefs.h. */ |
19925 | ||
cd9a469c | 19926 | /* Override any GCC internal prototype to avoid an error. |
19927 | Use char because int might match the return type of a GCC | |
19928 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19929 | #ifdef __cplusplus |
19930 | extern "C" | |
19931 | #endif | |
d213114b | 19932 | char logl (); |
19933 | int | |
19934 | main () | |
19935 | { | |
cd9a469c | 19936 | return logl (); |
d213114b | 19937 | ; |
19938 | return 0; | |
19939 | } | |
19940 | _ACEOF | |
cd9a469c | 19941 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19942 | ac_cv_lib_m_logl=yes |
19943 | else | |
cd9a469c | 19944 | ac_cv_lib_m_logl=no |
d213114b | 19945 | fi |
cd9a469c | 19946 | rm -f core conftest.err conftest.$ac_objext \ |
19947 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19948 | LIBS=$ac_check_lib_save_LIBS |
19949 | fi | |
cd9a469c | 19950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logl" >&5 |
19951 | $as_echo "$ac_cv_lib_m_logl" >&6; } | |
19952 | if test "x$ac_cv_lib_m_logl" = x""yes; then : | |
d213114b | 19953 | |
cd9a469c | 19954 | $as_echo "#define HAVE_LOGL 1" >>confdefs.h |
d213114b | 19955 | |
19956 | fi | |
19957 | ||
cd9a469c | 19958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf in -lm" >&5 |
19959 | $as_echo_n "checking for clogf in -lm... " >&6; } | |
19960 | if test "${ac_cv_lib_m_clogf+set}" = set; then : | |
19961 | $as_echo_n "(cached) " >&6 | |
d213114b | 19962 | else |
19963 | ac_check_lib_save_LIBS=$LIBS | |
19964 | LIBS="-lm $LIBS" | |
19965 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 19966 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 19967 | fi |
cd9a469c | 19968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 19969 | /* end confdefs.h. */ |
19970 | ||
cd9a469c | 19971 | /* Override any GCC internal prototype to avoid an error. |
19972 | Use char because int might match the return type of a GCC | |
19973 | builtin and then its argument prototype would still apply. */ | |
d213114b | 19974 | #ifdef __cplusplus |
19975 | extern "C" | |
19976 | #endif | |
d213114b | 19977 | char clogf (); |
19978 | int | |
19979 | main () | |
19980 | { | |
cd9a469c | 19981 | return clogf (); |
d213114b | 19982 | ; |
19983 | return 0; | |
19984 | } | |
19985 | _ACEOF | |
cd9a469c | 19986 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 19987 | ac_cv_lib_m_clogf=yes |
19988 | else | |
cd9a469c | 19989 | ac_cv_lib_m_clogf=no |
d213114b | 19990 | fi |
cd9a469c | 19991 | rm -f core conftest.err conftest.$ac_objext \ |
19992 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 19993 | LIBS=$ac_check_lib_save_LIBS |
19994 | fi | |
cd9a469c | 19995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogf" >&5 |
19996 | $as_echo "$ac_cv_lib_m_clogf" >&6; } | |
19997 | if test "x$ac_cv_lib_m_clogf" = x""yes; then : | |
d213114b | 19998 | |
cd9a469c | 19999 | $as_echo "#define HAVE_CLOGF 1" >>confdefs.h |
d213114b | 20000 | |
20001 | fi | |
20002 | ||
cd9a469c | 20003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog in -lm" >&5 |
20004 | $as_echo_n "checking for clog in -lm... " >&6; } | |
20005 | if test "${ac_cv_lib_m_clog+set}" = set; then : | |
20006 | $as_echo_n "(cached) " >&6 | |
d213114b | 20007 | else |
20008 | ac_check_lib_save_LIBS=$LIBS | |
20009 | LIBS="-lm $LIBS" | |
20010 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20011 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20012 | fi |
cd9a469c | 20013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20014 | /* end confdefs.h. */ |
20015 | ||
cd9a469c | 20016 | /* Override any GCC internal prototype to avoid an error. |
20017 | Use char because int might match the return type of a GCC | |
20018 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20019 | #ifdef __cplusplus |
20020 | extern "C" | |
20021 | #endif | |
d213114b | 20022 | char clog (); |
20023 | int | |
20024 | main () | |
20025 | { | |
cd9a469c | 20026 | return clog (); |
d213114b | 20027 | ; |
20028 | return 0; | |
20029 | } | |
20030 | _ACEOF | |
cd9a469c | 20031 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20032 | ac_cv_lib_m_clog=yes |
20033 | else | |
cd9a469c | 20034 | ac_cv_lib_m_clog=no |
d213114b | 20035 | fi |
cd9a469c | 20036 | rm -f core conftest.err conftest.$ac_objext \ |
20037 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20038 | LIBS=$ac_check_lib_save_LIBS |
20039 | fi | |
cd9a469c | 20040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog" >&5 |
20041 | $as_echo "$ac_cv_lib_m_clog" >&6; } | |
20042 | if test "x$ac_cv_lib_m_clog" = x""yes; then : | |
d213114b | 20043 | |
cd9a469c | 20044 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
d213114b | 20045 | |
20046 | fi | |
20047 | ||
cd9a469c | 20048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl in -lm" >&5 |
20049 | $as_echo_n "checking for clogl in -lm... " >&6; } | |
20050 | if test "${ac_cv_lib_m_clogl+set}" = set; then : | |
20051 | $as_echo_n "(cached) " >&6 | |
d213114b | 20052 | else |
20053 | ac_check_lib_save_LIBS=$LIBS | |
20054 | LIBS="-lm $LIBS" | |
20055 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20056 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20057 | fi |
cd9a469c | 20058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20059 | /* end confdefs.h. */ |
20060 | ||
cd9a469c | 20061 | /* Override any GCC internal prototype to avoid an error. |
20062 | Use char because int might match the return type of a GCC | |
20063 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20064 | #ifdef __cplusplus |
20065 | extern "C" | |
20066 | #endif | |
d213114b | 20067 | char clogl (); |
20068 | int | |
20069 | main () | |
20070 | { | |
cd9a469c | 20071 | return clogl (); |
d213114b | 20072 | ; |
20073 | return 0; | |
20074 | } | |
20075 | _ACEOF | |
cd9a469c | 20076 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20077 | ac_cv_lib_m_clogl=yes |
20078 | else | |
cd9a469c | 20079 | ac_cv_lib_m_clogl=no |
d213114b | 20080 | fi |
cd9a469c | 20081 | rm -f core conftest.err conftest.$ac_objext \ |
20082 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20083 | LIBS=$ac_check_lib_save_LIBS |
20084 | fi | |
cd9a469c | 20085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogl" >&5 |
20086 | $as_echo "$ac_cv_lib_m_clogl" >&6; } | |
20087 | if test "x$ac_cv_lib_m_clogl" = x""yes; then : | |
d213114b | 20088 | |
cd9a469c | 20089 | $as_echo "#define HAVE_CLOGL 1" >>confdefs.h |
d213114b | 20090 | |
20091 | fi | |
20092 | ||
cd9a469c | 20093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f in -lm" >&5 |
20094 | $as_echo_n "checking for log10f in -lm... " >&6; } | |
20095 | if test "${ac_cv_lib_m_log10f+set}" = set; then : | |
20096 | $as_echo_n "(cached) " >&6 | |
d213114b | 20097 | else |
20098 | ac_check_lib_save_LIBS=$LIBS | |
20099 | LIBS="-lm $LIBS" | |
20100 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20101 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20102 | fi |
cd9a469c | 20103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20104 | /* end confdefs.h. */ |
20105 | ||
cd9a469c | 20106 | /* Override any GCC internal prototype to avoid an error. |
20107 | Use char because int might match the return type of a GCC | |
20108 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20109 | #ifdef __cplusplus |
20110 | extern "C" | |
20111 | #endif | |
d213114b | 20112 | char log10f (); |
20113 | int | |
20114 | main () | |
20115 | { | |
cd9a469c | 20116 | return log10f (); |
d213114b | 20117 | ; |
20118 | return 0; | |
20119 | } | |
20120 | _ACEOF | |
cd9a469c | 20121 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20122 | ac_cv_lib_m_log10f=yes |
20123 | else | |
cd9a469c | 20124 | ac_cv_lib_m_log10f=no |
d213114b | 20125 | fi |
cd9a469c | 20126 | rm -f core conftest.err conftest.$ac_objext \ |
20127 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20128 | LIBS=$ac_check_lib_save_LIBS |
20129 | fi | |
cd9a469c | 20130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10f" >&5 |
20131 | $as_echo "$ac_cv_lib_m_log10f" >&6; } | |
20132 | if test "x$ac_cv_lib_m_log10f" = x""yes; then : | |
d213114b | 20133 | |
cd9a469c | 20134 | $as_echo "#define HAVE_LOG10F 1" >>confdefs.h |
d213114b | 20135 | |
20136 | fi | |
20137 | ||
cd9a469c | 20138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 |
20139 | $as_echo_n "checking for log10 in -lm... " >&6; } | |
20140 | if test "${ac_cv_lib_m_log10+set}" = set; then : | |
20141 | $as_echo_n "(cached) " >&6 | |
d213114b | 20142 | else |
20143 | ac_check_lib_save_LIBS=$LIBS | |
20144 | LIBS="-lm $LIBS" | |
20145 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20146 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20147 | fi |
cd9a469c | 20148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20149 | /* end confdefs.h. */ |
20150 | ||
cd9a469c | 20151 | /* Override any GCC internal prototype to avoid an error. |
20152 | Use char because int might match the return type of a GCC | |
20153 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20154 | #ifdef __cplusplus |
20155 | extern "C" | |
20156 | #endif | |
d213114b | 20157 | char log10 (); |
20158 | int | |
20159 | main () | |
20160 | { | |
cd9a469c | 20161 | return log10 (); |
d213114b | 20162 | ; |
20163 | return 0; | |
20164 | } | |
20165 | _ACEOF | |
cd9a469c | 20166 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20167 | ac_cv_lib_m_log10=yes |
20168 | else | |
cd9a469c | 20169 | ac_cv_lib_m_log10=no |
d213114b | 20170 | fi |
cd9a469c | 20171 | rm -f core conftest.err conftest.$ac_objext \ |
20172 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20173 | LIBS=$ac_check_lib_save_LIBS |
20174 | fi | |
cd9a469c | 20175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 |
20176 | $as_echo "$ac_cv_lib_m_log10" >&6; } | |
20177 | if test "x$ac_cv_lib_m_log10" = x""yes; then : | |
d213114b | 20178 | |
cd9a469c | 20179 | $as_echo "#define HAVE_LOG10 1" >>confdefs.h |
d213114b | 20180 | |
20181 | fi | |
20182 | ||
cd9a469c | 20183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l in -lm" >&5 |
20184 | $as_echo_n "checking for log10l in -lm... " >&6; } | |
20185 | if test "${ac_cv_lib_m_log10l+set}" = set; then : | |
20186 | $as_echo_n "(cached) " >&6 | |
d213114b | 20187 | else |
20188 | ac_check_lib_save_LIBS=$LIBS | |
20189 | LIBS="-lm $LIBS" | |
20190 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20191 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20192 | fi |
cd9a469c | 20193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20194 | /* end confdefs.h. */ |
20195 | ||
cd9a469c | 20196 | /* Override any GCC internal prototype to avoid an error. |
20197 | Use char because int might match the return type of a GCC | |
20198 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20199 | #ifdef __cplusplus |
20200 | extern "C" | |
20201 | #endif | |
d213114b | 20202 | char log10l (); |
20203 | int | |
20204 | main () | |
20205 | { | |
cd9a469c | 20206 | return log10l (); |
d213114b | 20207 | ; |
20208 | return 0; | |
20209 | } | |
20210 | _ACEOF | |
cd9a469c | 20211 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20212 | ac_cv_lib_m_log10l=yes |
20213 | else | |
cd9a469c | 20214 | ac_cv_lib_m_log10l=no |
d213114b | 20215 | fi |
cd9a469c | 20216 | rm -f core conftest.err conftest.$ac_objext \ |
20217 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20218 | LIBS=$ac_check_lib_save_LIBS |
20219 | fi | |
cd9a469c | 20220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10l" >&5 |
20221 | $as_echo "$ac_cv_lib_m_log10l" >&6; } | |
20222 | if test "x$ac_cv_lib_m_log10l" = x""yes; then : | |
d213114b | 20223 | |
cd9a469c | 20224 | $as_echo "#define HAVE_LOG10L 1" >>confdefs.h |
d213114b | 20225 | |
20226 | fi | |
20227 | ||
cd9a469c | 20228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f in -lm" >&5 |
20229 | $as_echo_n "checking for clog10f in -lm... " >&6; } | |
20230 | if test "${ac_cv_lib_m_clog10f+set}" = set; then : | |
20231 | $as_echo_n "(cached) " >&6 | |
d213114b | 20232 | else |
20233 | ac_check_lib_save_LIBS=$LIBS | |
20234 | LIBS="-lm $LIBS" | |
20235 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20236 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20237 | fi |
cd9a469c | 20238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20239 | /* end confdefs.h. */ |
20240 | ||
cd9a469c | 20241 | /* Override any GCC internal prototype to avoid an error. |
20242 | Use char because int might match the return type of a GCC | |
20243 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20244 | #ifdef __cplusplus |
20245 | extern "C" | |
20246 | #endif | |
d213114b | 20247 | char clog10f (); |
20248 | int | |
20249 | main () | |
20250 | { | |
cd9a469c | 20251 | return clog10f (); |
d213114b | 20252 | ; |
20253 | return 0; | |
20254 | } | |
20255 | _ACEOF | |
cd9a469c | 20256 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20257 | ac_cv_lib_m_clog10f=yes |
20258 | else | |
cd9a469c | 20259 | ac_cv_lib_m_clog10f=no |
d213114b | 20260 | fi |
cd9a469c | 20261 | rm -f core conftest.err conftest.$ac_objext \ |
20262 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20263 | LIBS=$ac_check_lib_save_LIBS |
20264 | fi | |
cd9a469c | 20265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10f" >&5 |
20266 | $as_echo "$ac_cv_lib_m_clog10f" >&6; } | |
20267 | if test "x$ac_cv_lib_m_clog10f" = x""yes; then : | |
d213114b | 20268 | |
cd9a469c | 20269 | $as_echo "#define HAVE_CLOG10F 1" >>confdefs.h |
d213114b | 20270 | |
20271 | fi | |
20272 | ||
cd9a469c | 20273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10 in -lm" >&5 |
20274 | $as_echo_n "checking for clog10 in -lm... " >&6; } | |
20275 | if test "${ac_cv_lib_m_clog10+set}" = set; then : | |
20276 | $as_echo_n "(cached) " >&6 | |
d213114b | 20277 | else |
20278 | ac_check_lib_save_LIBS=$LIBS | |
20279 | LIBS="-lm $LIBS" | |
20280 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20281 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20282 | fi |
cd9a469c | 20283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20284 | /* end confdefs.h. */ |
20285 | ||
cd9a469c | 20286 | /* Override any GCC internal prototype to avoid an error. |
20287 | Use char because int might match the return type of a GCC | |
20288 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20289 | #ifdef __cplusplus |
20290 | extern "C" | |
20291 | #endif | |
d213114b | 20292 | char clog10 (); |
20293 | int | |
20294 | main () | |
20295 | { | |
cd9a469c | 20296 | return clog10 (); |
d213114b | 20297 | ; |
20298 | return 0; | |
20299 | } | |
20300 | _ACEOF | |
cd9a469c | 20301 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20302 | ac_cv_lib_m_clog10=yes |
20303 | else | |
cd9a469c | 20304 | ac_cv_lib_m_clog10=no |
d213114b | 20305 | fi |
cd9a469c | 20306 | rm -f core conftest.err conftest.$ac_objext \ |
20307 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20308 | LIBS=$ac_check_lib_save_LIBS |
20309 | fi | |
cd9a469c | 20310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10" >&5 |
20311 | $as_echo "$ac_cv_lib_m_clog10" >&6; } | |
20312 | if test "x$ac_cv_lib_m_clog10" = x""yes; then : | |
d213114b | 20313 | |
cd9a469c | 20314 | $as_echo "#define HAVE_CLOG10 1" >>confdefs.h |
d213114b | 20315 | |
20316 | fi | |
20317 | ||
cd9a469c | 20318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l in -lm" >&5 |
20319 | $as_echo_n "checking for clog10l in -lm... " >&6; } | |
20320 | if test "${ac_cv_lib_m_clog10l+set}" = set; then : | |
20321 | $as_echo_n "(cached) " >&6 | |
d213114b | 20322 | else |
20323 | ac_check_lib_save_LIBS=$LIBS | |
20324 | LIBS="-lm $LIBS" | |
20325 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20326 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20327 | fi |
cd9a469c | 20328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20329 | /* end confdefs.h. */ |
20330 | ||
cd9a469c | 20331 | /* Override any GCC internal prototype to avoid an error. |
20332 | Use char because int might match the return type of a GCC | |
20333 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20334 | #ifdef __cplusplus |
20335 | extern "C" | |
20336 | #endif | |
d213114b | 20337 | char clog10l (); |
20338 | int | |
20339 | main () | |
20340 | { | |
cd9a469c | 20341 | return clog10l (); |
d213114b | 20342 | ; |
cd9a469c | 20343 | return 0; |
20344 | } | |
20345 | _ACEOF | |
20346 | if ac_fn_c_try_link "$LINENO"; then : | |
d213114b | 20347 | ac_cv_lib_m_clog10l=yes |
20348 | else | |
cd9a469c | 20349 | ac_cv_lib_m_clog10l=no |
d213114b | 20350 | fi |
cd9a469c | 20351 | rm -f core conftest.err conftest.$ac_objext \ |
20352 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20353 | LIBS=$ac_check_lib_save_LIBS |
20354 | fi | |
cd9a469c | 20355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10l" >&5 |
20356 | $as_echo "$ac_cv_lib_m_clog10l" >&6; } | |
20357 | if test "x$ac_cv_lib_m_clog10l" = x""yes; then : | |
d213114b | 20358 | |
cd9a469c | 20359 | $as_echo "#define HAVE_CLOG10L 1" >>confdefs.h |
d213114b | 20360 | |
20361 | fi | |
20362 | ||
cd9a469c | 20363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf in -lm" >&5 |
20364 | $as_echo_n "checking for nextafterf in -lm... " >&6; } | |
20365 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then : | |
20366 | $as_echo_n "(cached) " >&6 | |
d213114b | 20367 | else |
20368 | ac_check_lib_save_LIBS=$LIBS | |
20369 | LIBS="-lm $LIBS" | |
20370 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20371 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20372 | fi |
cd9a469c | 20373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20374 | /* end confdefs.h. */ |
20375 | ||
cd9a469c | 20376 | /* Override any GCC internal prototype to avoid an error. |
20377 | Use char because int might match the return type of a GCC | |
20378 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20379 | #ifdef __cplusplus |
20380 | extern "C" | |
20381 | #endif | |
d213114b | 20382 | char nextafterf (); |
20383 | int | |
20384 | main () | |
20385 | { | |
cd9a469c | 20386 | return nextafterf (); |
d213114b | 20387 | ; |
20388 | return 0; | |
20389 | } | |
20390 | _ACEOF | |
cd9a469c | 20391 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20392 | ac_cv_lib_m_nextafterf=yes |
20393 | else | |
cd9a469c | 20394 | ac_cv_lib_m_nextafterf=no |
d213114b | 20395 | fi |
cd9a469c | 20396 | rm -f core conftest.err conftest.$ac_objext \ |
20397 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20398 | LIBS=$ac_check_lib_save_LIBS |
20399 | fi | |
cd9a469c | 20400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterf" >&5 |
20401 | $as_echo "$ac_cv_lib_m_nextafterf" >&6; } | |
20402 | if test "x$ac_cv_lib_m_nextafterf" = x""yes; then : | |
d213114b | 20403 | |
cd9a469c | 20404 | $as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h |
d213114b | 20405 | |
20406 | fi | |
20407 | ||
cd9a469c | 20408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter in -lm" >&5 |
20409 | $as_echo_n "checking for nextafter in -lm... " >&6; } | |
20410 | if test "${ac_cv_lib_m_nextafter+set}" = set; then : | |
20411 | $as_echo_n "(cached) " >&6 | |
d213114b | 20412 | else |
20413 | ac_check_lib_save_LIBS=$LIBS | |
20414 | LIBS="-lm $LIBS" | |
20415 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20416 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20417 | fi |
cd9a469c | 20418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20419 | /* end confdefs.h. */ |
20420 | ||
cd9a469c | 20421 | /* Override any GCC internal prototype to avoid an error. |
20422 | Use char because int might match the return type of a GCC | |
20423 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20424 | #ifdef __cplusplus |
20425 | extern "C" | |
20426 | #endif | |
d213114b | 20427 | char nextafter (); |
20428 | int | |
20429 | main () | |
20430 | { | |
cd9a469c | 20431 | return nextafter (); |
d213114b | 20432 | ; |
20433 | return 0; | |
20434 | } | |
20435 | _ACEOF | |
cd9a469c | 20436 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20437 | ac_cv_lib_m_nextafter=yes |
20438 | else | |
cd9a469c | 20439 | ac_cv_lib_m_nextafter=no |
d213114b | 20440 | fi |
cd9a469c | 20441 | rm -f core conftest.err conftest.$ac_objext \ |
20442 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20443 | LIBS=$ac_check_lib_save_LIBS |
20444 | fi | |
cd9a469c | 20445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafter" >&5 |
20446 | $as_echo "$ac_cv_lib_m_nextafter" >&6; } | |
20447 | if test "x$ac_cv_lib_m_nextafter" = x""yes; then : | |
d213114b | 20448 | |
cd9a469c | 20449 | $as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h |
d213114b | 20450 | |
20451 | fi | |
20452 | ||
cd9a469c | 20453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl in -lm" >&5 |
20454 | $as_echo_n "checking for nextafterl in -lm... " >&6; } | |
20455 | if test "${ac_cv_lib_m_nextafterl+set}" = set; then : | |
20456 | $as_echo_n "(cached) " >&6 | |
d213114b | 20457 | else |
20458 | ac_check_lib_save_LIBS=$LIBS | |
20459 | LIBS="-lm $LIBS" | |
20460 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20461 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20462 | fi |
cd9a469c | 20463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20464 | /* end confdefs.h. */ |
20465 | ||
cd9a469c | 20466 | /* Override any GCC internal prototype to avoid an error. |
20467 | Use char because int might match the return type of a GCC | |
20468 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20469 | #ifdef __cplusplus |
20470 | extern "C" | |
20471 | #endif | |
d213114b | 20472 | char nextafterl (); |
20473 | int | |
20474 | main () | |
20475 | { | |
cd9a469c | 20476 | return nextafterl (); |
d213114b | 20477 | ; |
20478 | return 0; | |
20479 | } | |
20480 | _ACEOF | |
cd9a469c | 20481 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20482 | ac_cv_lib_m_nextafterl=yes |
20483 | else | |
cd9a469c | 20484 | ac_cv_lib_m_nextafterl=no |
d213114b | 20485 | fi |
cd9a469c | 20486 | rm -f core conftest.err conftest.$ac_objext \ |
20487 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20488 | LIBS=$ac_check_lib_save_LIBS |
20489 | fi | |
cd9a469c | 20490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterl" >&5 |
20491 | $as_echo "$ac_cv_lib_m_nextafterl" >&6; } | |
20492 | if test "x$ac_cv_lib_m_nextafterl" = x""yes; then : | |
d213114b | 20493 | |
cd9a469c | 20494 | $as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h |
d213114b | 20495 | |
20496 | fi | |
20497 | ||
cd9a469c | 20498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lm" >&5 |
20499 | $as_echo_n "checking for powf in -lm... " >&6; } | |
20500 | if test "${ac_cv_lib_m_powf+set}" = set; then : | |
20501 | $as_echo_n "(cached) " >&6 | |
d213114b | 20502 | else |
20503 | ac_check_lib_save_LIBS=$LIBS | |
20504 | LIBS="-lm $LIBS" | |
20505 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20506 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20507 | fi |
cd9a469c | 20508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20509 | /* end confdefs.h. */ |
20510 | ||
cd9a469c | 20511 | /* Override any GCC internal prototype to avoid an error. |
20512 | Use char because int might match the return type of a GCC | |
20513 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20514 | #ifdef __cplusplus |
20515 | extern "C" | |
20516 | #endif | |
d213114b | 20517 | char powf (); |
20518 | int | |
20519 | main () | |
20520 | { | |
cd9a469c | 20521 | return powf (); |
d213114b | 20522 | ; |
20523 | return 0; | |
20524 | } | |
20525 | _ACEOF | |
cd9a469c | 20526 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20527 | ac_cv_lib_m_powf=yes |
20528 | else | |
cd9a469c | 20529 | ac_cv_lib_m_powf=no |
d213114b | 20530 | fi |
cd9a469c | 20531 | rm -f core conftest.err conftest.$ac_objext \ |
20532 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20533 | LIBS=$ac_check_lib_save_LIBS |
20534 | fi | |
cd9a469c | 20535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powf" >&5 |
20536 | $as_echo "$ac_cv_lib_m_powf" >&6; } | |
20537 | if test "x$ac_cv_lib_m_powf" = x""yes; then : | |
d213114b | 20538 | |
cd9a469c | 20539 | $as_echo "#define HAVE_POWF 1" >>confdefs.h |
d213114b | 20540 | |
20541 | fi | |
20542 | ||
cd9a469c | 20543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
20544 | $as_echo_n "checking for pow in -lm... " >&6; } | |
20545 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
20546 | $as_echo_n "(cached) " >&6 | |
d213114b | 20547 | else |
20548 | ac_check_lib_save_LIBS=$LIBS | |
20549 | LIBS="-lm $LIBS" | |
20550 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20551 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20552 | fi |
cd9a469c | 20553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20554 | /* end confdefs.h. */ |
20555 | ||
cd9a469c | 20556 | /* Override any GCC internal prototype to avoid an error. |
20557 | Use char because int might match the return type of a GCC | |
20558 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20559 | #ifdef __cplusplus |
20560 | extern "C" | |
20561 | #endif | |
d213114b | 20562 | char pow (); |
20563 | int | |
20564 | main () | |
20565 | { | |
cd9a469c | 20566 | return pow (); |
d213114b | 20567 | ; |
20568 | return 0; | |
20569 | } | |
20570 | _ACEOF | |
cd9a469c | 20571 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20572 | ac_cv_lib_m_pow=yes |
20573 | else | |
cd9a469c | 20574 | ac_cv_lib_m_pow=no |
d213114b | 20575 | fi |
cd9a469c | 20576 | rm -f core conftest.err conftest.$ac_objext \ |
20577 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20578 | LIBS=$ac_check_lib_save_LIBS |
20579 | fi | |
cd9a469c | 20580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
20581 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
20582 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
d213114b | 20583 | |
cd9a469c | 20584 | $as_echo "#define HAVE_POW 1" >>confdefs.h |
d213114b | 20585 | |
20586 | fi | |
20587 | ||
cd9a469c | 20588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl in -lm" >&5 |
20589 | $as_echo_n "checking for powl in -lm... " >&6; } | |
20590 | if test "${ac_cv_lib_m_powl+set}" = set; then : | |
20591 | $as_echo_n "(cached) " >&6 | |
d213114b | 20592 | else |
20593 | ac_check_lib_save_LIBS=$LIBS | |
20594 | LIBS="-lm $LIBS" | |
20595 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20596 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20597 | fi |
cd9a469c | 20598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20599 | /* end confdefs.h. */ |
20600 | ||
cd9a469c | 20601 | /* Override any GCC internal prototype to avoid an error. |
20602 | Use char because int might match the return type of a GCC | |
20603 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20604 | #ifdef __cplusplus |
20605 | extern "C" | |
20606 | #endif | |
d213114b | 20607 | char powl (); |
20608 | int | |
20609 | main () | |
20610 | { | |
cd9a469c | 20611 | return powl (); |
d213114b | 20612 | ; |
20613 | return 0; | |
20614 | } | |
20615 | _ACEOF | |
cd9a469c | 20616 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20617 | ac_cv_lib_m_powl=yes |
20618 | else | |
cd9a469c | 20619 | ac_cv_lib_m_powl=no |
d213114b | 20620 | fi |
cd9a469c | 20621 | rm -f core conftest.err conftest.$ac_objext \ |
20622 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20623 | LIBS=$ac_check_lib_save_LIBS |
20624 | fi | |
cd9a469c | 20625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powl" >&5 |
20626 | $as_echo "$ac_cv_lib_m_powl" >&6; } | |
20627 | if test "x$ac_cv_lib_m_powl" = x""yes; then : | |
d213114b | 20628 | |
cd9a469c | 20629 | $as_echo "#define HAVE_POWL 1" >>confdefs.h |
d213114b | 20630 | |
20631 | fi | |
20632 | ||
cd9a469c | 20633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf in -lm" >&5 |
20634 | $as_echo_n "checking for cpowf in -lm... " >&6; } | |
20635 | if test "${ac_cv_lib_m_cpowf+set}" = set; then : | |
20636 | $as_echo_n "(cached) " >&6 | |
d213114b | 20637 | else |
20638 | ac_check_lib_save_LIBS=$LIBS | |
20639 | LIBS="-lm $LIBS" | |
20640 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20641 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20642 | fi |
cd9a469c | 20643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20644 | /* end confdefs.h. */ |
20645 | ||
cd9a469c | 20646 | /* Override any GCC internal prototype to avoid an error. |
20647 | Use char because int might match the return type of a GCC | |
20648 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20649 | #ifdef __cplusplus |
20650 | extern "C" | |
20651 | #endif | |
d213114b | 20652 | char cpowf (); |
20653 | int | |
20654 | main () | |
20655 | { | |
cd9a469c | 20656 | return cpowf (); |
d213114b | 20657 | ; |
20658 | return 0; | |
20659 | } | |
20660 | _ACEOF | |
cd9a469c | 20661 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20662 | ac_cv_lib_m_cpowf=yes |
20663 | else | |
cd9a469c | 20664 | ac_cv_lib_m_cpowf=no |
d213114b | 20665 | fi |
cd9a469c | 20666 | rm -f core conftest.err conftest.$ac_objext \ |
20667 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20668 | LIBS=$ac_check_lib_save_LIBS |
20669 | fi | |
cd9a469c | 20670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowf" >&5 |
20671 | $as_echo "$ac_cv_lib_m_cpowf" >&6; } | |
20672 | if test "x$ac_cv_lib_m_cpowf" = x""yes; then : | |
d213114b | 20673 | |
cd9a469c | 20674 | $as_echo "#define HAVE_CPOWF 1" >>confdefs.h |
d213114b | 20675 | |
20676 | fi | |
20677 | ||
cd9a469c | 20678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow in -lm" >&5 |
20679 | $as_echo_n "checking for cpow in -lm... " >&6; } | |
20680 | if test "${ac_cv_lib_m_cpow+set}" = set; then : | |
20681 | $as_echo_n "(cached) " >&6 | |
d213114b | 20682 | else |
20683 | ac_check_lib_save_LIBS=$LIBS | |
20684 | LIBS="-lm $LIBS" | |
20685 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20686 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20687 | fi |
cd9a469c | 20688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20689 | /* end confdefs.h. */ |
20690 | ||
cd9a469c | 20691 | /* Override any GCC internal prototype to avoid an error. |
20692 | Use char because int might match the return type of a GCC | |
20693 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20694 | #ifdef __cplusplus |
20695 | extern "C" | |
20696 | #endif | |
d213114b | 20697 | char cpow (); |
20698 | int | |
20699 | main () | |
20700 | { | |
cd9a469c | 20701 | return cpow (); |
d213114b | 20702 | ; |
20703 | return 0; | |
20704 | } | |
20705 | _ACEOF | |
cd9a469c | 20706 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20707 | ac_cv_lib_m_cpow=yes |
20708 | else | |
cd9a469c | 20709 | ac_cv_lib_m_cpow=no |
d213114b | 20710 | fi |
cd9a469c | 20711 | rm -f core conftest.err conftest.$ac_objext \ |
20712 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20713 | LIBS=$ac_check_lib_save_LIBS |
20714 | fi | |
cd9a469c | 20715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpow" >&5 |
20716 | $as_echo "$ac_cv_lib_m_cpow" >&6; } | |
20717 | if test "x$ac_cv_lib_m_cpow" = x""yes; then : | |
d213114b | 20718 | |
cd9a469c | 20719 | $as_echo "#define HAVE_CPOW 1" >>confdefs.h |
d213114b | 20720 | |
20721 | fi | |
20722 | ||
cd9a469c | 20723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl in -lm" >&5 |
20724 | $as_echo_n "checking for cpowl in -lm... " >&6; } | |
20725 | if test "${ac_cv_lib_m_cpowl+set}" = set; then : | |
20726 | $as_echo_n "(cached) " >&6 | |
d213114b | 20727 | else |
20728 | ac_check_lib_save_LIBS=$LIBS | |
20729 | LIBS="-lm $LIBS" | |
20730 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20731 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20732 | fi |
cd9a469c | 20733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20734 | /* end confdefs.h. */ |
20735 | ||
cd9a469c | 20736 | /* Override any GCC internal prototype to avoid an error. |
20737 | Use char because int might match the return type of a GCC | |
20738 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20739 | #ifdef __cplusplus |
20740 | extern "C" | |
20741 | #endif | |
d213114b | 20742 | char cpowl (); |
20743 | int | |
20744 | main () | |
20745 | { | |
cd9a469c | 20746 | return cpowl (); |
d213114b | 20747 | ; |
20748 | return 0; | |
20749 | } | |
20750 | _ACEOF | |
cd9a469c | 20751 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20752 | ac_cv_lib_m_cpowl=yes |
20753 | else | |
cd9a469c | 20754 | ac_cv_lib_m_cpowl=no |
d213114b | 20755 | fi |
cd9a469c | 20756 | rm -f core conftest.err conftest.$ac_objext \ |
20757 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20758 | LIBS=$ac_check_lib_save_LIBS |
20759 | fi | |
cd9a469c | 20760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowl" >&5 |
20761 | $as_echo "$ac_cv_lib_m_cpowl" >&6; } | |
20762 | if test "x$ac_cv_lib_m_cpowl" = x""yes; then : | |
d213114b | 20763 | |
cd9a469c | 20764 | $as_echo "#define HAVE_CPOWL 1" >>confdefs.h |
d213114b | 20765 | |
20766 | fi | |
20767 | ||
cd9a469c | 20768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5 |
20769 | $as_echo_n "checking for roundf in -lm... " >&6; } | |
20770 | if test "${ac_cv_lib_m_roundf+set}" = set; then : | |
20771 | $as_echo_n "(cached) " >&6 | |
d213114b | 20772 | else |
20773 | ac_check_lib_save_LIBS=$LIBS | |
20774 | LIBS="-lm $LIBS" | |
20775 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20776 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20777 | fi |
cd9a469c | 20778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20779 | /* end confdefs.h. */ |
20780 | ||
cd9a469c | 20781 | /* Override any GCC internal prototype to avoid an error. |
20782 | Use char because int might match the return type of a GCC | |
20783 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20784 | #ifdef __cplusplus |
20785 | extern "C" | |
20786 | #endif | |
d213114b | 20787 | char roundf (); |
20788 | int | |
20789 | main () | |
20790 | { | |
cd9a469c | 20791 | return roundf (); |
d213114b | 20792 | ; |
20793 | return 0; | |
20794 | } | |
20795 | _ACEOF | |
cd9a469c | 20796 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20797 | ac_cv_lib_m_roundf=yes |
20798 | else | |
cd9a469c | 20799 | ac_cv_lib_m_roundf=no |
d213114b | 20800 | fi |
cd9a469c | 20801 | rm -f core conftest.err conftest.$ac_objext \ |
20802 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20803 | LIBS=$ac_check_lib_save_LIBS |
20804 | fi | |
cd9a469c | 20805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundf" >&5 |
20806 | $as_echo "$ac_cv_lib_m_roundf" >&6; } | |
20807 | if test "x$ac_cv_lib_m_roundf" = x""yes; then : | |
d213114b | 20808 | |
cd9a469c | 20809 | $as_echo "#define HAVE_ROUNDF 1" >>confdefs.h |
d213114b | 20810 | |
20811 | fi | |
20812 | ||
cd9a469c | 20813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5 |
20814 | $as_echo_n "checking for round in -lm... " >&6; } | |
20815 | if test "${ac_cv_lib_m_round+set}" = set; then : | |
20816 | $as_echo_n "(cached) " >&6 | |
d213114b | 20817 | else |
20818 | ac_check_lib_save_LIBS=$LIBS | |
20819 | LIBS="-lm $LIBS" | |
20820 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20821 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20822 | fi |
cd9a469c | 20823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20824 | /* end confdefs.h. */ |
20825 | ||
cd9a469c | 20826 | /* Override any GCC internal prototype to avoid an error. |
20827 | Use char because int might match the return type of a GCC | |
20828 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20829 | #ifdef __cplusplus |
20830 | extern "C" | |
20831 | #endif | |
d213114b | 20832 | char round (); |
20833 | int | |
20834 | main () | |
20835 | { | |
cd9a469c | 20836 | return round (); |
d213114b | 20837 | ; |
20838 | return 0; | |
20839 | } | |
20840 | _ACEOF | |
cd9a469c | 20841 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20842 | ac_cv_lib_m_round=yes |
20843 | else | |
cd9a469c | 20844 | ac_cv_lib_m_round=no |
d213114b | 20845 | fi |
cd9a469c | 20846 | rm -f core conftest.err conftest.$ac_objext \ |
20847 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20848 | LIBS=$ac_check_lib_save_LIBS |
20849 | fi | |
cd9a469c | 20850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5 |
20851 | $as_echo "$ac_cv_lib_m_round" >&6; } | |
20852 | if test "x$ac_cv_lib_m_round" = x""yes; then : | |
d213114b | 20853 | |
cd9a469c | 20854 | $as_echo "#define HAVE_ROUND 1" >>confdefs.h |
d213114b | 20855 | |
20856 | fi | |
20857 | ||
cd9a469c | 20858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5 |
20859 | $as_echo_n "checking for roundl in -lm... " >&6; } | |
20860 | if test "${ac_cv_lib_m_roundl+set}" = set; then : | |
20861 | $as_echo_n "(cached) " >&6 | |
d213114b | 20862 | else |
20863 | ac_check_lib_save_LIBS=$LIBS | |
20864 | LIBS="-lm $LIBS" | |
20865 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20866 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 20867 | fi |
cd9a469c | 20868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 20869 | /* end confdefs.h. */ |
20870 | ||
cd9a469c | 20871 | /* Override any GCC internal prototype to avoid an error. |
20872 | Use char because int might match the return type of a GCC | |
20873 | builtin and then its argument prototype would still apply. */ | |
d213114b | 20874 | #ifdef __cplusplus |
20875 | extern "C" | |
20876 | #endif | |
d213114b | 20877 | char roundl (); |
20878 | int | |
20879 | main () | |
20880 | { | |
cd9a469c | 20881 | return roundl (); |
d213114b | 20882 | ; |
20883 | return 0; | |
20884 | } | |
20885 | _ACEOF | |
cd9a469c | 20886 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 20887 | ac_cv_lib_m_roundl=yes |
20888 | else | |
cd9a469c | 20889 | ac_cv_lib_m_roundl=no |
d213114b | 20890 | fi |
cd9a469c | 20891 | rm -f core conftest.err conftest.$ac_objext \ |
20892 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 20893 | LIBS=$ac_check_lib_save_LIBS |
20894 | fi | |
cd9a469c | 20895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundl" >&5 |
20896 | $as_echo "$ac_cv_lib_m_roundl" >&6; } | |
20897 | if test "x$ac_cv_lib_m_roundl" = x""yes; then : | |
d213114b | 20898 | |
cd9a469c | 20899 | $as_echo "#define HAVE_ROUNDL 1" >>confdefs.h |
d213114b | 20900 | |
20901 | fi | |
20902 | ||
cd9a469c | 20903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5 |
20904 | $as_echo_n "checking for lroundf in -lm... " >&6; } | |
20905 | if test "${ac_cv_lib_m_lroundf+set}" = set; then : | |
20906 | $as_echo_n "(cached) " >&6 | |
ef080b63 | 20907 | else |
20908 | ac_check_lib_save_LIBS=$LIBS | |
20909 | LIBS="-lm $LIBS" | |
20910 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20911 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 20912 | fi |
cd9a469c | 20913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 20914 | /* end confdefs.h. */ |
20915 | ||
cd9a469c | 20916 | /* Override any GCC internal prototype to avoid an error. |
20917 | Use char because int might match the return type of a GCC | |
20918 | builtin and then its argument prototype would still apply. */ | |
ef080b63 | 20919 | #ifdef __cplusplus |
20920 | extern "C" | |
20921 | #endif | |
ef080b63 | 20922 | char lroundf (); |
20923 | int | |
20924 | main () | |
20925 | { | |
cd9a469c | 20926 | return lroundf (); |
ef080b63 | 20927 | ; |
20928 | return 0; | |
20929 | } | |
20930 | _ACEOF | |
cd9a469c | 20931 | if ac_fn_c_try_link "$LINENO"; then : |
ef080b63 | 20932 | ac_cv_lib_m_lroundf=yes |
20933 | else | |
cd9a469c | 20934 | ac_cv_lib_m_lroundf=no |
ef080b63 | 20935 | fi |
cd9a469c | 20936 | rm -f core conftest.err conftest.$ac_objext \ |
20937 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 20938 | LIBS=$ac_check_lib_save_LIBS |
20939 | fi | |
cd9a469c | 20940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundf" >&5 |
20941 | $as_echo "$ac_cv_lib_m_lroundf" >&6; } | |
20942 | if test "x$ac_cv_lib_m_lroundf" = x""yes; then : | |
ef080b63 | 20943 | |
cd9a469c | 20944 | $as_echo "#define HAVE_LROUNDF 1" >>confdefs.h |
ef080b63 | 20945 | |
20946 | fi | |
20947 | ||
cd9a469c | 20948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5 |
20949 | $as_echo_n "checking for lround in -lm... " >&6; } | |
20950 | if test "${ac_cv_lib_m_lround+set}" = set; then : | |
20951 | $as_echo_n "(cached) " >&6 | |
ef080b63 | 20952 | else |
20953 | ac_check_lib_save_LIBS=$LIBS | |
20954 | LIBS="-lm $LIBS" | |
20955 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 20956 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 20957 | fi |
cd9a469c | 20958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 20959 | /* end confdefs.h. */ |
20960 | ||
cd9a469c | 20961 | /* Override any GCC internal prototype to avoid an error. |
20962 | Use char because int might match the return type of a GCC | |
20963 | builtin and then its argument prototype would still apply. */ | |
ef080b63 | 20964 | #ifdef __cplusplus |
20965 | extern "C" | |
20966 | #endif | |
ef080b63 | 20967 | char lround (); |
20968 | int | |
20969 | main () | |
20970 | { | |
cd9a469c | 20971 | return lround (); |
ef080b63 | 20972 | ; |
20973 | return 0; | |
20974 | } | |
20975 | _ACEOF | |
cd9a469c | 20976 | if ac_fn_c_try_link "$LINENO"; then : |
ef080b63 | 20977 | ac_cv_lib_m_lround=yes |
20978 | else | |
cd9a469c | 20979 | ac_cv_lib_m_lround=no |
ef080b63 | 20980 | fi |
cd9a469c | 20981 | rm -f core conftest.err conftest.$ac_objext \ |
20982 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 20983 | LIBS=$ac_check_lib_save_LIBS |
20984 | fi | |
cd9a469c | 20985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5 |
20986 | $as_echo "$ac_cv_lib_m_lround" >&6; } | |
20987 | if test "x$ac_cv_lib_m_lround" = x""yes; then : | |
ef080b63 | 20988 | |
cd9a469c | 20989 | $as_echo "#define HAVE_LROUND 1" >>confdefs.h |
ef080b63 | 20990 | |
20991 | fi | |
20992 | ||
cd9a469c | 20993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl in -lm" >&5 |
20994 | $as_echo_n "checking for lroundl in -lm... " >&6; } | |
20995 | if test "${ac_cv_lib_m_lroundl+set}" = set; then : | |
20996 | $as_echo_n "(cached) " >&6 | |
ef080b63 | 20997 | else |
20998 | ac_check_lib_save_LIBS=$LIBS | |
20999 | LIBS="-lm $LIBS" | |
21000 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21001 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21002 | fi |
cd9a469c | 21003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21004 | /* end confdefs.h. */ |
21005 | ||
cd9a469c | 21006 | /* Override any GCC internal prototype to avoid an error. |
21007 | Use char because int might match the return type of a GCC | |
21008 | builtin and then its argument prototype would still apply. */ | |
ef080b63 | 21009 | #ifdef __cplusplus |
21010 | extern "C" | |
21011 | #endif | |
ef080b63 | 21012 | char lroundl (); |
21013 | int | |
21014 | main () | |
21015 | { | |
cd9a469c | 21016 | return lroundl (); |
ef080b63 | 21017 | ; |
21018 | return 0; | |
21019 | } | |
21020 | _ACEOF | |
cd9a469c | 21021 | if ac_fn_c_try_link "$LINENO"; then : |
ef080b63 | 21022 | ac_cv_lib_m_lroundl=yes |
21023 | else | |
cd9a469c | 21024 | ac_cv_lib_m_lroundl=no |
ef080b63 | 21025 | fi |
cd9a469c | 21026 | rm -f core conftest.err conftest.$ac_objext \ |
21027 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21028 | LIBS=$ac_check_lib_save_LIBS |
21029 | fi | |
cd9a469c | 21030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundl" >&5 |
21031 | $as_echo "$ac_cv_lib_m_lroundl" >&6; } | |
21032 | if test "x$ac_cv_lib_m_lroundl" = x""yes; then : | |
ef080b63 | 21033 | |
cd9a469c | 21034 | $as_echo "#define HAVE_LROUNDL 1" >>confdefs.h |
ef080b63 | 21035 | |
21036 | fi | |
21037 | ||
cd9a469c | 21038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf in -lm" >&5 |
21039 | $as_echo_n "checking for llroundf in -lm... " >&6; } | |
21040 | if test "${ac_cv_lib_m_llroundf+set}" = set; then : | |
21041 | $as_echo_n "(cached) " >&6 | |
ef080b63 | 21042 | else |
21043 | ac_check_lib_save_LIBS=$LIBS | |
21044 | LIBS="-lm $LIBS" | |
21045 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21046 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21047 | fi |
cd9a469c | 21048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21049 | /* end confdefs.h. */ |
21050 | ||
cd9a469c | 21051 | /* Override any GCC internal prototype to avoid an error. |
21052 | Use char because int might match the return type of a GCC | |
21053 | builtin and then its argument prototype would still apply. */ | |
ef080b63 | 21054 | #ifdef __cplusplus |
21055 | extern "C" | |
21056 | #endif | |
ef080b63 | 21057 | char llroundf (); |
21058 | int | |
21059 | main () | |
21060 | { | |
cd9a469c | 21061 | return llroundf (); |
ef080b63 | 21062 | ; |
21063 | return 0; | |
21064 | } | |
21065 | _ACEOF | |
cd9a469c | 21066 | if ac_fn_c_try_link "$LINENO"; then : |
ef080b63 | 21067 | ac_cv_lib_m_llroundf=yes |
21068 | else | |
cd9a469c | 21069 | ac_cv_lib_m_llroundf=no |
ef080b63 | 21070 | fi |
cd9a469c | 21071 | rm -f core conftest.err conftest.$ac_objext \ |
21072 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21073 | LIBS=$ac_check_lib_save_LIBS |
21074 | fi | |
cd9a469c | 21075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundf" >&5 |
21076 | $as_echo "$ac_cv_lib_m_llroundf" >&6; } | |
21077 | if test "x$ac_cv_lib_m_llroundf" = x""yes; then : | |
ef080b63 | 21078 | |
cd9a469c | 21079 | $as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h |
ef080b63 | 21080 | |
21081 | fi | |
21082 | ||
cd9a469c | 21083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround in -lm" >&5 |
21084 | $as_echo_n "checking for llround in -lm... " >&6; } | |
21085 | if test "${ac_cv_lib_m_llround+set}" = set; then : | |
21086 | $as_echo_n "(cached) " >&6 | |
ef080b63 | 21087 | else |
21088 | ac_check_lib_save_LIBS=$LIBS | |
21089 | LIBS="-lm $LIBS" | |
21090 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21091 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21092 | fi |
cd9a469c | 21093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21094 | /* end confdefs.h. */ |
21095 | ||
cd9a469c | 21096 | /* Override any GCC internal prototype to avoid an error. |
21097 | Use char because int might match the return type of a GCC | |
21098 | builtin and then its argument prototype would still apply. */ | |
ef080b63 | 21099 | #ifdef __cplusplus |
21100 | extern "C" | |
21101 | #endif | |
ef080b63 | 21102 | char llround (); |
21103 | int | |
21104 | main () | |
21105 | { | |
cd9a469c | 21106 | return llround (); |
ef080b63 | 21107 | ; |
21108 | return 0; | |
21109 | } | |
21110 | _ACEOF | |
cd9a469c | 21111 | if ac_fn_c_try_link "$LINENO"; then : |
ef080b63 | 21112 | ac_cv_lib_m_llround=yes |
21113 | else | |
cd9a469c | 21114 | ac_cv_lib_m_llround=no |
ef080b63 | 21115 | fi |
cd9a469c | 21116 | rm -f core conftest.err conftest.$ac_objext \ |
21117 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21118 | LIBS=$ac_check_lib_save_LIBS |
21119 | fi | |
cd9a469c | 21120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llround" >&5 |
21121 | $as_echo "$ac_cv_lib_m_llround" >&6; } | |
21122 | if test "x$ac_cv_lib_m_llround" = x""yes; then : | |
ef080b63 | 21123 | |
cd9a469c | 21124 | $as_echo "#define HAVE_LLROUND 1" >>confdefs.h |
ef080b63 | 21125 | |
21126 | fi | |
21127 | ||
cd9a469c | 21128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl in -lm" >&5 |
21129 | $as_echo_n "checking for llroundl in -lm... " >&6; } | |
21130 | if test "${ac_cv_lib_m_llroundl+set}" = set; then : | |
21131 | $as_echo_n "(cached) " >&6 | |
ef080b63 | 21132 | else |
21133 | ac_check_lib_save_LIBS=$LIBS | |
21134 | LIBS="-lm $LIBS" | |
21135 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21136 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ef080b63 | 21137 | fi |
cd9a469c | 21138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ef080b63 | 21139 | /* end confdefs.h. */ |
21140 | ||
cd9a469c | 21141 | /* Override any GCC internal prototype to avoid an error. |
21142 | Use char because int might match the return type of a GCC | |
21143 | builtin and then its argument prototype would still apply. */ | |
ef080b63 | 21144 | #ifdef __cplusplus |
21145 | extern "C" | |
21146 | #endif | |
ef080b63 | 21147 | char llroundl (); |
21148 | int | |
21149 | main () | |
21150 | { | |
cd9a469c | 21151 | return llroundl (); |
ef080b63 | 21152 | ; |
21153 | return 0; | |
21154 | } | |
21155 | _ACEOF | |
cd9a469c | 21156 | if ac_fn_c_try_link "$LINENO"; then : |
ef080b63 | 21157 | ac_cv_lib_m_llroundl=yes |
21158 | else | |
cd9a469c | 21159 | ac_cv_lib_m_llroundl=no |
ef080b63 | 21160 | fi |
cd9a469c | 21161 | rm -f core conftest.err conftest.$ac_objext \ |
21162 | conftest$ac_exeext conftest.$ac_ext | |
ef080b63 | 21163 | LIBS=$ac_check_lib_save_LIBS |
21164 | fi | |
cd9a469c | 21165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundl" >&5 |
21166 | $as_echo "$ac_cv_lib_m_llroundl" >&6; } | |
21167 | if test "x$ac_cv_lib_m_llroundl" = x""yes; then : | |
ef080b63 | 21168 | |
cd9a469c | 21169 | $as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h |
ef080b63 | 21170 | |
21171 | fi | |
21172 | ||
cd9a469c | 21173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf in -lm" >&5 |
21174 | $as_echo_n "checking for scalbnf in -lm... " >&6; } | |
21175 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then : | |
21176 | $as_echo_n "(cached) " >&6 | |
d213114b | 21177 | else |
21178 | ac_check_lib_save_LIBS=$LIBS | |
21179 | LIBS="-lm $LIBS" | |
21180 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21181 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21182 | fi |
cd9a469c | 21183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21184 | /* end confdefs.h. */ |
21185 | ||
cd9a469c | 21186 | /* Override any GCC internal prototype to avoid an error. |
21187 | Use char because int might match the return type of a GCC | |
21188 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21189 | #ifdef __cplusplus |
21190 | extern "C" | |
21191 | #endif | |
d213114b | 21192 | char scalbnf (); |
21193 | int | |
21194 | main () | |
21195 | { | |
cd9a469c | 21196 | return scalbnf (); |
d213114b | 21197 | ; |
21198 | return 0; | |
21199 | } | |
21200 | _ACEOF | |
cd9a469c | 21201 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21202 | ac_cv_lib_m_scalbnf=yes |
21203 | else | |
cd9a469c | 21204 | ac_cv_lib_m_scalbnf=no |
d213114b | 21205 | fi |
cd9a469c | 21206 | rm -f core conftest.err conftest.$ac_objext \ |
21207 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21208 | LIBS=$ac_check_lib_save_LIBS |
21209 | fi | |
cd9a469c | 21210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnf" >&5 |
21211 | $as_echo "$ac_cv_lib_m_scalbnf" >&6; } | |
21212 | if test "x$ac_cv_lib_m_scalbnf" = x""yes; then : | |
d213114b | 21213 | |
cd9a469c | 21214 | $as_echo "#define HAVE_SCALBNF 1" >>confdefs.h |
d213114b | 21215 | |
21216 | fi | |
21217 | ||
cd9a469c | 21218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn in -lm" >&5 |
21219 | $as_echo_n "checking for scalbn in -lm... " >&6; } | |
21220 | if test "${ac_cv_lib_m_scalbn+set}" = set; then : | |
21221 | $as_echo_n "(cached) " >&6 | |
d213114b | 21222 | else |
21223 | ac_check_lib_save_LIBS=$LIBS | |
21224 | LIBS="-lm $LIBS" | |
21225 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21226 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21227 | fi |
cd9a469c | 21228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21229 | /* end confdefs.h. */ |
21230 | ||
cd9a469c | 21231 | /* Override any GCC internal prototype to avoid an error. |
21232 | Use char because int might match the return type of a GCC | |
21233 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21234 | #ifdef __cplusplus |
21235 | extern "C" | |
21236 | #endif | |
d213114b | 21237 | char scalbn (); |
21238 | int | |
21239 | main () | |
21240 | { | |
cd9a469c | 21241 | return scalbn (); |
d213114b | 21242 | ; |
21243 | return 0; | |
21244 | } | |
21245 | _ACEOF | |
cd9a469c | 21246 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21247 | ac_cv_lib_m_scalbn=yes |
21248 | else | |
cd9a469c | 21249 | ac_cv_lib_m_scalbn=no |
d213114b | 21250 | fi |
cd9a469c | 21251 | rm -f core conftest.err conftest.$ac_objext \ |
21252 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21253 | LIBS=$ac_check_lib_save_LIBS |
21254 | fi | |
cd9a469c | 21255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbn" >&5 |
21256 | $as_echo "$ac_cv_lib_m_scalbn" >&6; } | |
21257 | if test "x$ac_cv_lib_m_scalbn" = x""yes; then : | |
d213114b | 21258 | |
cd9a469c | 21259 | $as_echo "#define HAVE_SCALBN 1" >>confdefs.h |
d213114b | 21260 | |
21261 | fi | |
21262 | ||
cd9a469c | 21263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl in -lm" >&5 |
21264 | $as_echo_n "checking for scalbnl in -lm... " >&6; } | |
21265 | if test "${ac_cv_lib_m_scalbnl+set}" = set; then : | |
21266 | $as_echo_n "(cached) " >&6 | |
d213114b | 21267 | else |
21268 | ac_check_lib_save_LIBS=$LIBS | |
21269 | LIBS="-lm $LIBS" | |
21270 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21271 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21272 | fi |
cd9a469c | 21273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21274 | /* end confdefs.h. */ |
21275 | ||
cd9a469c | 21276 | /* Override any GCC internal prototype to avoid an error. |
21277 | Use char because int might match the return type of a GCC | |
21278 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21279 | #ifdef __cplusplus |
21280 | extern "C" | |
21281 | #endif | |
d213114b | 21282 | char scalbnl (); |
21283 | int | |
21284 | main () | |
21285 | { | |
cd9a469c | 21286 | return scalbnl (); |
d213114b | 21287 | ; |
21288 | return 0; | |
21289 | } | |
21290 | _ACEOF | |
cd9a469c | 21291 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21292 | ac_cv_lib_m_scalbnl=yes |
21293 | else | |
cd9a469c | 21294 | ac_cv_lib_m_scalbnl=no |
d213114b | 21295 | fi |
cd9a469c | 21296 | rm -f core conftest.err conftest.$ac_objext \ |
21297 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21298 | LIBS=$ac_check_lib_save_LIBS |
21299 | fi | |
cd9a469c | 21300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnl" >&5 |
21301 | $as_echo "$ac_cv_lib_m_scalbnl" >&6; } | |
21302 | if test "x$ac_cv_lib_m_scalbnl" = x""yes; then : | |
d213114b | 21303 | |
cd9a469c | 21304 | $as_echo "#define HAVE_SCALBNL 1" >>confdefs.h |
d213114b | 21305 | |
21306 | fi | |
21307 | ||
cd9a469c | 21308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5 |
21309 | $as_echo_n "checking for sinf in -lm... " >&6; } | |
21310 | if test "${ac_cv_lib_m_sinf+set}" = set; then : | |
21311 | $as_echo_n "(cached) " >&6 | |
d213114b | 21312 | else |
21313 | ac_check_lib_save_LIBS=$LIBS | |
21314 | LIBS="-lm $LIBS" | |
21315 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21316 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21317 | fi |
cd9a469c | 21318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21319 | /* end confdefs.h. */ |
21320 | ||
cd9a469c | 21321 | /* Override any GCC internal prototype to avoid an error. |
21322 | Use char because int might match the return type of a GCC | |
21323 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21324 | #ifdef __cplusplus |
21325 | extern "C" | |
21326 | #endif | |
d213114b | 21327 | char sinf (); |
21328 | int | |
21329 | main () | |
21330 | { | |
cd9a469c | 21331 | return sinf (); |
d213114b | 21332 | ; |
21333 | return 0; | |
21334 | } | |
21335 | _ACEOF | |
cd9a469c | 21336 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21337 | ac_cv_lib_m_sinf=yes |
21338 | else | |
cd9a469c | 21339 | ac_cv_lib_m_sinf=no |
d213114b | 21340 | fi |
cd9a469c | 21341 | rm -f core conftest.err conftest.$ac_objext \ |
21342 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21343 | LIBS=$ac_check_lib_save_LIBS |
21344 | fi | |
cd9a469c | 21345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5 |
21346 | $as_echo "$ac_cv_lib_m_sinf" >&6; } | |
21347 | if test "x$ac_cv_lib_m_sinf" = x""yes; then : | |
d213114b | 21348 | |
cd9a469c | 21349 | $as_echo "#define HAVE_SINF 1" >>confdefs.h |
d213114b | 21350 | |
21351 | fi | |
21352 | ||
cd9a469c | 21353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 |
21354 | $as_echo_n "checking for sin in -lm... " >&6; } | |
21355 | if test "${ac_cv_lib_m_sin+set}" = set; then : | |
21356 | $as_echo_n "(cached) " >&6 | |
d213114b | 21357 | else |
21358 | ac_check_lib_save_LIBS=$LIBS | |
21359 | LIBS="-lm $LIBS" | |
21360 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21361 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21362 | fi |
cd9a469c | 21363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21364 | /* end confdefs.h. */ |
21365 | ||
cd9a469c | 21366 | /* Override any GCC internal prototype to avoid an error. |
21367 | Use char because int might match the return type of a GCC | |
21368 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21369 | #ifdef __cplusplus |
21370 | extern "C" | |
21371 | #endif | |
d213114b | 21372 | char sin (); |
21373 | int | |
21374 | main () | |
21375 | { | |
cd9a469c | 21376 | return sin (); |
d213114b | 21377 | ; |
21378 | return 0; | |
21379 | } | |
21380 | _ACEOF | |
cd9a469c | 21381 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21382 | ac_cv_lib_m_sin=yes |
21383 | else | |
cd9a469c | 21384 | ac_cv_lib_m_sin=no |
d213114b | 21385 | fi |
cd9a469c | 21386 | rm -f core conftest.err conftest.$ac_objext \ |
21387 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21388 | LIBS=$ac_check_lib_save_LIBS |
21389 | fi | |
cd9a469c | 21390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 |
21391 | $as_echo "$ac_cv_lib_m_sin" >&6; } | |
21392 | if test "x$ac_cv_lib_m_sin" = x""yes; then : | |
d213114b | 21393 | |
cd9a469c | 21394 | $as_echo "#define HAVE_SIN 1" >>confdefs.h |
d213114b | 21395 | |
21396 | fi | |
21397 | ||
cd9a469c | 21398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl in -lm" >&5 |
21399 | $as_echo_n "checking for sinl in -lm... " >&6; } | |
21400 | if test "${ac_cv_lib_m_sinl+set}" = set; then : | |
21401 | $as_echo_n "(cached) " >&6 | |
d213114b | 21402 | else |
21403 | ac_check_lib_save_LIBS=$LIBS | |
21404 | LIBS="-lm $LIBS" | |
21405 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21406 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21407 | fi |
cd9a469c | 21408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21409 | /* end confdefs.h. */ |
21410 | ||
cd9a469c | 21411 | /* Override any GCC internal prototype to avoid an error. |
21412 | Use char because int might match the return type of a GCC | |
21413 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21414 | #ifdef __cplusplus |
21415 | extern "C" | |
21416 | #endif | |
d213114b | 21417 | char sinl (); |
21418 | int | |
21419 | main () | |
21420 | { | |
cd9a469c | 21421 | return sinl (); |
d213114b | 21422 | ; |
21423 | return 0; | |
21424 | } | |
21425 | _ACEOF | |
cd9a469c | 21426 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21427 | ac_cv_lib_m_sinl=yes |
21428 | else | |
cd9a469c | 21429 | ac_cv_lib_m_sinl=no |
d213114b | 21430 | fi |
cd9a469c | 21431 | rm -f core conftest.err conftest.$ac_objext \ |
21432 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21433 | LIBS=$ac_check_lib_save_LIBS |
21434 | fi | |
cd9a469c | 21435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinl" >&5 |
21436 | $as_echo "$ac_cv_lib_m_sinl" >&6; } | |
21437 | if test "x$ac_cv_lib_m_sinl" = x""yes; then : | |
d213114b | 21438 | |
cd9a469c | 21439 | $as_echo "#define HAVE_SINL 1" >>confdefs.h |
d213114b | 21440 | |
21441 | fi | |
21442 | ||
cd9a469c | 21443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf in -lm" >&5 |
21444 | $as_echo_n "checking for csinf in -lm... " >&6; } | |
21445 | if test "${ac_cv_lib_m_csinf+set}" = set; then : | |
21446 | $as_echo_n "(cached) " >&6 | |
d213114b | 21447 | else |
21448 | ac_check_lib_save_LIBS=$LIBS | |
21449 | LIBS="-lm $LIBS" | |
21450 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21451 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21452 | fi |
cd9a469c | 21453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21454 | /* end confdefs.h. */ |
21455 | ||
cd9a469c | 21456 | /* Override any GCC internal prototype to avoid an error. |
21457 | Use char because int might match the return type of a GCC | |
21458 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21459 | #ifdef __cplusplus |
21460 | extern "C" | |
21461 | #endif | |
d213114b | 21462 | char csinf (); |
21463 | int | |
21464 | main () | |
21465 | { | |
cd9a469c | 21466 | return csinf (); |
d213114b | 21467 | ; |
cd9a469c | 21468 | return 0; |
21469 | } | |
21470 | _ACEOF | |
21471 | if ac_fn_c_try_link "$LINENO"; then : | |
d213114b | 21472 | ac_cv_lib_m_csinf=yes |
21473 | else | |
cd9a469c | 21474 | ac_cv_lib_m_csinf=no |
d213114b | 21475 | fi |
cd9a469c | 21476 | rm -f core conftest.err conftest.$ac_objext \ |
21477 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21478 | LIBS=$ac_check_lib_save_LIBS |
21479 | fi | |
cd9a469c | 21480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinf" >&5 |
21481 | $as_echo "$ac_cv_lib_m_csinf" >&6; } | |
21482 | if test "x$ac_cv_lib_m_csinf" = x""yes; then : | |
d213114b | 21483 | |
cd9a469c | 21484 | $as_echo "#define HAVE_CSINF 1" >>confdefs.h |
d213114b | 21485 | |
21486 | fi | |
21487 | ||
cd9a469c | 21488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5 |
21489 | $as_echo_n "checking for csin in -lm... " >&6; } | |
21490 | if test "${ac_cv_lib_m_csin+set}" = set; then : | |
21491 | $as_echo_n "(cached) " >&6 | |
d213114b | 21492 | else |
21493 | ac_check_lib_save_LIBS=$LIBS | |
21494 | LIBS="-lm $LIBS" | |
21495 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21496 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21497 | fi |
cd9a469c | 21498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21499 | /* end confdefs.h. */ |
21500 | ||
cd9a469c | 21501 | /* Override any GCC internal prototype to avoid an error. |
21502 | Use char because int might match the return type of a GCC | |
21503 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21504 | #ifdef __cplusplus |
21505 | extern "C" | |
21506 | #endif | |
d213114b | 21507 | char csin (); |
21508 | int | |
21509 | main () | |
21510 | { | |
cd9a469c | 21511 | return csin (); |
d213114b | 21512 | ; |
21513 | return 0; | |
21514 | } | |
21515 | _ACEOF | |
cd9a469c | 21516 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21517 | ac_cv_lib_m_csin=yes |
21518 | else | |
cd9a469c | 21519 | ac_cv_lib_m_csin=no |
d213114b | 21520 | fi |
cd9a469c | 21521 | rm -f core conftest.err conftest.$ac_objext \ |
21522 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21523 | LIBS=$ac_check_lib_save_LIBS |
21524 | fi | |
cd9a469c | 21525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5 |
21526 | $as_echo "$ac_cv_lib_m_csin" >&6; } | |
21527 | if test "x$ac_cv_lib_m_csin" = x""yes; then : | |
d213114b | 21528 | |
cd9a469c | 21529 | $as_echo "#define HAVE_CSIN 1" >>confdefs.h |
d213114b | 21530 | |
21531 | fi | |
21532 | ||
cd9a469c | 21533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl in -lm" >&5 |
21534 | $as_echo_n "checking for csinl in -lm... " >&6; } | |
21535 | if test "${ac_cv_lib_m_csinl+set}" = set; then : | |
21536 | $as_echo_n "(cached) " >&6 | |
d213114b | 21537 | else |
21538 | ac_check_lib_save_LIBS=$LIBS | |
21539 | LIBS="-lm $LIBS" | |
21540 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21541 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21542 | fi |
cd9a469c | 21543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21544 | /* end confdefs.h. */ |
21545 | ||
cd9a469c | 21546 | /* Override any GCC internal prototype to avoid an error. |
21547 | Use char because int might match the return type of a GCC | |
21548 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21549 | #ifdef __cplusplus |
21550 | extern "C" | |
21551 | #endif | |
d213114b | 21552 | char csinl (); |
21553 | int | |
21554 | main () | |
21555 | { | |
cd9a469c | 21556 | return csinl (); |
d213114b | 21557 | ; |
21558 | return 0; | |
21559 | } | |
21560 | _ACEOF | |
cd9a469c | 21561 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21562 | ac_cv_lib_m_csinl=yes |
21563 | else | |
cd9a469c | 21564 | ac_cv_lib_m_csinl=no |
d213114b | 21565 | fi |
cd9a469c | 21566 | rm -f core conftest.err conftest.$ac_objext \ |
21567 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21568 | LIBS=$ac_check_lib_save_LIBS |
21569 | fi | |
cd9a469c | 21570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinl" >&5 |
21571 | $as_echo "$ac_cv_lib_m_csinl" >&6; } | |
21572 | if test "x$ac_cv_lib_m_csinl" = x""yes; then : | |
d213114b | 21573 | |
cd9a469c | 21574 | $as_echo "#define HAVE_CSINL 1" >>confdefs.h |
d213114b | 21575 | |
21576 | fi | |
21577 | ||
cd9a469c | 21578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf in -lm" >&5 |
21579 | $as_echo_n "checking for sinhf in -lm... " >&6; } | |
21580 | if test "${ac_cv_lib_m_sinhf+set}" = set; then : | |
21581 | $as_echo_n "(cached) " >&6 | |
d213114b | 21582 | else |
21583 | ac_check_lib_save_LIBS=$LIBS | |
21584 | LIBS="-lm $LIBS" | |
21585 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21586 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21587 | fi |
cd9a469c | 21588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21589 | /* end confdefs.h. */ |
21590 | ||
cd9a469c | 21591 | /* Override any GCC internal prototype to avoid an error. |
21592 | Use char because int might match the return type of a GCC | |
21593 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21594 | #ifdef __cplusplus |
21595 | extern "C" | |
21596 | #endif | |
d213114b | 21597 | char sinhf (); |
21598 | int | |
21599 | main () | |
21600 | { | |
cd9a469c | 21601 | return sinhf (); |
d213114b | 21602 | ; |
21603 | return 0; | |
21604 | } | |
21605 | _ACEOF | |
cd9a469c | 21606 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21607 | ac_cv_lib_m_sinhf=yes |
21608 | else | |
cd9a469c | 21609 | ac_cv_lib_m_sinhf=no |
d213114b | 21610 | fi |
cd9a469c | 21611 | rm -f core conftest.err conftest.$ac_objext \ |
21612 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21613 | LIBS=$ac_check_lib_save_LIBS |
21614 | fi | |
cd9a469c | 21615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhf" >&5 |
21616 | $as_echo "$ac_cv_lib_m_sinhf" >&6; } | |
21617 | if test "x$ac_cv_lib_m_sinhf" = x""yes; then : | |
d213114b | 21618 | |
cd9a469c | 21619 | $as_echo "#define HAVE_SINHF 1" >>confdefs.h |
d213114b | 21620 | |
21621 | fi | |
21622 | ||
cd9a469c | 21623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5 |
21624 | $as_echo_n "checking for sinh in -lm... " >&6; } | |
21625 | if test "${ac_cv_lib_m_sinh+set}" = set; then : | |
21626 | $as_echo_n "(cached) " >&6 | |
d213114b | 21627 | else |
21628 | ac_check_lib_save_LIBS=$LIBS | |
21629 | LIBS="-lm $LIBS" | |
21630 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21631 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21632 | fi |
cd9a469c | 21633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21634 | /* end confdefs.h. */ |
21635 | ||
cd9a469c | 21636 | /* Override any GCC internal prototype to avoid an error. |
21637 | Use char because int might match the return type of a GCC | |
21638 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21639 | #ifdef __cplusplus |
21640 | extern "C" | |
21641 | #endif | |
d213114b | 21642 | char sinh (); |
21643 | int | |
21644 | main () | |
21645 | { | |
cd9a469c | 21646 | return sinh (); |
d213114b | 21647 | ; |
21648 | return 0; | |
21649 | } | |
21650 | _ACEOF | |
cd9a469c | 21651 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21652 | ac_cv_lib_m_sinh=yes |
21653 | else | |
cd9a469c | 21654 | ac_cv_lib_m_sinh=no |
d213114b | 21655 | fi |
cd9a469c | 21656 | rm -f core conftest.err conftest.$ac_objext \ |
21657 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21658 | LIBS=$ac_check_lib_save_LIBS |
21659 | fi | |
cd9a469c | 21660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinh" >&5 |
21661 | $as_echo "$ac_cv_lib_m_sinh" >&6; } | |
21662 | if test "x$ac_cv_lib_m_sinh" = x""yes; then : | |
d213114b | 21663 | |
cd9a469c | 21664 | $as_echo "#define HAVE_SINH 1" >>confdefs.h |
d213114b | 21665 | |
21666 | fi | |
21667 | ||
cd9a469c | 21668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl in -lm" >&5 |
21669 | $as_echo_n "checking for sinhl in -lm... " >&6; } | |
21670 | if test "${ac_cv_lib_m_sinhl+set}" = set; then : | |
21671 | $as_echo_n "(cached) " >&6 | |
d213114b | 21672 | else |
21673 | ac_check_lib_save_LIBS=$LIBS | |
21674 | LIBS="-lm $LIBS" | |
21675 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21676 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21677 | fi |
cd9a469c | 21678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21679 | /* end confdefs.h. */ |
21680 | ||
cd9a469c | 21681 | /* Override any GCC internal prototype to avoid an error. |
21682 | Use char because int might match the return type of a GCC | |
21683 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21684 | #ifdef __cplusplus |
21685 | extern "C" | |
21686 | #endif | |
d213114b | 21687 | char sinhl (); |
21688 | int | |
21689 | main () | |
21690 | { | |
cd9a469c | 21691 | return sinhl (); |
d213114b | 21692 | ; |
21693 | return 0; | |
21694 | } | |
21695 | _ACEOF | |
cd9a469c | 21696 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21697 | ac_cv_lib_m_sinhl=yes |
21698 | else | |
cd9a469c | 21699 | ac_cv_lib_m_sinhl=no |
d213114b | 21700 | fi |
cd9a469c | 21701 | rm -f core conftest.err conftest.$ac_objext \ |
21702 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21703 | LIBS=$ac_check_lib_save_LIBS |
21704 | fi | |
cd9a469c | 21705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhl" >&5 |
21706 | $as_echo "$ac_cv_lib_m_sinhl" >&6; } | |
21707 | if test "x$ac_cv_lib_m_sinhl" = x""yes; then : | |
d213114b | 21708 | |
cd9a469c | 21709 | $as_echo "#define HAVE_SINHL 1" >>confdefs.h |
d213114b | 21710 | |
21711 | fi | |
21712 | ||
cd9a469c | 21713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf in -lm" >&5 |
21714 | $as_echo_n "checking for csinhf in -lm... " >&6; } | |
21715 | if test "${ac_cv_lib_m_csinhf+set}" = set; then : | |
21716 | $as_echo_n "(cached) " >&6 | |
d213114b | 21717 | else |
21718 | ac_check_lib_save_LIBS=$LIBS | |
21719 | LIBS="-lm $LIBS" | |
21720 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21721 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21722 | fi |
cd9a469c | 21723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21724 | /* end confdefs.h. */ |
21725 | ||
cd9a469c | 21726 | /* Override any GCC internal prototype to avoid an error. |
21727 | Use char because int might match the return type of a GCC | |
21728 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21729 | #ifdef __cplusplus |
21730 | extern "C" | |
21731 | #endif | |
d213114b | 21732 | char csinhf (); |
21733 | int | |
21734 | main () | |
21735 | { | |
cd9a469c | 21736 | return csinhf (); |
d213114b | 21737 | ; |
21738 | return 0; | |
21739 | } | |
21740 | _ACEOF | |
cd9a469c | 21741 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21742 | ac_cv_lib_m_csinhf=yes |
21743 | else | |
cd9a469c | 21744 | ac_cv_lib_m_csinhf=no |
d213114b | 21745 | fi |
cd9a469c | 21746 | rm -f core conftest.err conftest.$ac_objext \ |
21747 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21748 | LIBS=$ac_check_lib_save_LIBS |
21749 | fi | |
cd9a469c | 21750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhf" >&5 |
21751 | $as_echo "$ac_cv_lib_m_csinhf" >&6; } | |
21752 | if test "x$ac_cv_lib_m_csinhf" = x""yes; then : | |
d213114b | 21753 | |
cd9a469c | 21754 | $as_echo "#define HAVE_CSINHF 1" >>confdefs.h |
d213114b | 21755 | |
21756 | fi | |
21757 | ||
cd9a469c | 21758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh in -lm" >&5 |
21759 | $as_echo_n "checking for csinh in -lm... " >&6; } | |
21760 | if test "${ac_cv_lib_m_csinh+set}" = set; then : | |
21761 | $as_echo_n "(cached) " >&6 | |
d213114b | 21762 | else |
21763 | ac_check_lib_save_LIBS=$LIBS | |
21764 | LIBS="-lm $LIBS" | |
21765 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21766 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21767 | fi |
cd9a469c | 21768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21769 | /* end confdefs.h. */ |
21770 | ||
cd9a469c | 21771 | /* Override any GCC internal prototype to avoid an error. |
21772 | Use char because int might match the return type of a GCC | |
21773 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21774 | #ifdef __cplusplus |
21775 | extern "C" | |
21776 | #endif | |
d213114b | 21777 | char csinh (); |
21778 | int | |
21779 | main () | |
21780 | { | |
cd9a469c | 21781 | return csinh (); |
d213114b | 21782 | ; |
21783 | return 0; | |
21784 | } | |
21785 | _ACEOF | |
cd9a469c | 21786 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21787 | ac_cv_lib_m_csinh=yes |
21788 | else | |
cd9a469c | 21789 | ac_cv_lib_m_csinh=no |
d213114b | 21790 | fi |
cd9a469c | 21791 | rm -f core conftest.err conftest.$ac_objext \ |
21792 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21793 | LIBS=$ac_check_lib_save_LIBS |
21794 | fi | |
cd9a469c | 21795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinh" >&5 |
21796 | $as_echo "$ac_cv_lib_m_csinh" >&6; } | |
21797 | if test "x$ac_cv_lib_m_csinh" = x""yes; then : | |
d213114b | 21798 | |
cd9a469c | 21799 | $as_echo "#define HAVE_CSINH 1" >>confdefs.h |
d213114b | 21800 | |
21801 | fi | |
21802 | ||
cd9a469c | 21803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl in -lm" >&5 |
21804 | $as_echo_n "checking for csinhl in -lm... " >&6; } | |
21805 | if test "${ac_cv_lib_m_csinhl+set}" = set; then : | |
21806 | $as_echo_n "(cached) " >&6 | |
d213114b | 21807 | else |
21808 | ac_check_lib_save_LIBS=$LIBS | |
21809 | LIBS="-lm $LIBS" | |
21810 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21811 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21812 | fi |
cd9a469c | 21813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21814 | /* end confdefs.h. */ |
21815 | ||
cd9a469c | 21816 | /* Override any GCC internal prototype to avoid an error. |
21817 | Use char because int might match the return type of a GCC | |
21818 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21819 | #ifdef __cplusplus |
21820 | extern "C" | |
21821 | #endif | |
d213114b | 21822 | char csinhl (); |
21823 | int | |
21824 | main () | |
21825 | { | |
cd9a469c | 21826 | return csinhl (); |
d213114b | 21827 | ; |
21828 | return 0; | |
21829 | } | |
21830 | _ACEOF | |
cd9a469c | 21831 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21832 | ac_cv_lib_m_csinhl=yes |
21833 | else | |
cd9a469c | 21834 | ac_cv_lib_m_csinhl=no |
d213114b | 21835 | fi |
cd9a469c | 21836 | rm -f core conftest.err conftest.$ac_objext \ |
21837 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21838 | LIBS=$ac_check_lib_save_LIBS |
21839 | fi | |
cd9a469c | 21840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhl" >&5 |
21841 | $as_echo "$ac_cv_lib_m_csinhl" >&6; } | |
21842 | if test "x$ac_cv_lib_m_csinhl" = x""yes; then : | |
d213114b | 21843 | |
cd9a469c | 21844 | $as_echo "#define HAVE_CSINHL 1" >>confdefs.h |
d213114b | 21845 | |
21846 | fi | |
21847 | ||
cd9a469c | 21848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5 |
21849 | $as_echo_n "checking for sqrtf in -lm... " >&6; } | |
21850 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then : | |
21851 | $as_echo_n "(cached) " >&6 | |
d213114b | 21852 | else |
21853 | ac_check_lib_save_LIBS=$LIBS | |
21854 | LIBS="-lm $LIBS" | |
21855 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21856 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21857 | fi |
cd9a469c | 21858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21859 | /* end confdefs.h. */ |
21860 | ||
cd9a469c | 21861 | /* Override any GCC internal prototype to avoid an error. |
21862 | Use char because int might match the return type of a GCC | |
21863 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21864 | #ifdef __cplusplus |
21865 | extern "C" | |
21866 | #endif | |
d213114b | 21867 | char sqrtf (); |
21868 | int | |
21869 | main () | |
21870 | { | |
cd9a469c | 21871 | return sqrtf (); |
d213114b | 21872 | ; |
21873 | return 0; | |
21874 | } | |
21875 | _ACEOF | |
cd9a469c | 21876 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21877 | ac_cv_lib_m_sqrtf=yes |
21878 | else | |
cd9a469c | 21879 | ac_cv_lib_m_sqrtf=no |
d213114b | 21880 | fi |
cd9a469c | 21881 | rm -f core conftest.err conftest.$ac_objext \ |
21882 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21883 | LIBS=$ac_check_lib_save_LIBS |
21884 | fi | |
cd9a469c | 21885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtf" >&5 |
21886 | $as_echo "$ac_cv_lib_m_sqrtf" >&6; } | |
21887 | if test "x$ac_cv_lib_m_sqrtf" = x""yes; then : | |
d213114b | 21888 | |
cd9a469c | 21889 | $as_echo "#define HAVE_SQRTF 1" >>confdefs.h |
d213114b | 21890 | |
21891 | fi | |
21892 | ||
cd9a469c | 21893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
21894 | $as_echo_n "checking for sqrt in -lm... " >&6; } | |
21895 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : | |
21896 | $as_echo_n "(cached) " >&6 | |
d213114b | 21897 | else |
21898 | ac_check_lib_save_LIBS=$LIBS | |
21899 | LIBS="-lm $LIBS" | |
21900 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21901 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21902 | fi |
cd9a469c | 21903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21904 | /* end confdefs.h. */ |
21905 | ||
cd9a469c | 21906 | /* Override any GCC internal prototype to avoid an error. |
21907 | Use char because int might match the return type of a GCC | |
21908 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21909 | #ifdef __cplusplus |
21910 | extern "C" | |
21911 | #endif | |
d213114b | 21912 | char sqrt (); |
21913 | int | |
21914 | main () | |
21915 | { | |
cd9a469c | 21916 | return sqrt (); |
d213114b | 21917 | ; |
21918 | return 0; | |
21919 | } | |
21920 | _ACEOF | |
cd9a469c | 21921 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21922 | ac_cv_lib_m_sqrt=yes |
21923 | else | |
cd9a469c | 21924 | ac_cv_lib_m_sqrt=no |
d213114b | 21925 | fi |
cd9a469c | 21926 | rm -f core conftest.err conftest.$ac_objext \ |
21927 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21928 | LIBS=$ac_check_lib_save_LIBS |
21929 | fi | |
cd9a469c | 21930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
21931 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | |
21932 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : | |
d213114b | 21933 | |
cd9a469c | 21934 | $as_echo "#define HAVE_SQRT 1" >>confdefs.h |
d213114b | 21935 | |
21936 | fi | |
21937 | ||
cd9a469c | 21938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5 |
21939 | $as_echo_n "checking for sqrtl in -lm... " >&6; } | |
21940 | if test "${ac_cv_lib_m_sqrtl+set}" = set; then : | |
21941 | $as_echo_n "(cached) " >&6 | |
d213114b | 21942 | else |
21943 | ac_check_lib_save_LIBS=$LIBS | |
21944 | LIBS="-lm $LIBS" | |
21945 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21946 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21947 | fi |
cd9a469c | 21948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21949 | /* end confdefs.h. */ |
21950 | ||
cd9a469c | 21951 | /* Override any GCC internal prototype to avoid an error. |
21952 | Use char because int might match the return type of a GCC | |
21953 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21954 | #ifdef __cplusplus |
21955 | extern "C" | |
21956 | #endif | |
d213114b | 21957 | char sqrtl (); |
21958 | int | |
21959 | main () | |
21960 | { | |
cd9a469c | 21961 | return sqrtl (); |
d213114b | 21962 | ; |
21963 | return 0; | |
21964 | } | |
21965 | _ACEOF | |
cd9a469c | 21966 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 21967 | ac_cv_lib_m_sqrtl=yes |
21968 | else | |
cd9a469c | 21969 | ac_cv_lib_m_sqrtl=no |
d213114b | 21970 | fi |
cd9a469c | 21971 | rm -f core conftest.err conftest.$ac_objext \ |
21972 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 21973 | LIBS=$ac_check_lib_save_LIBS |
21974 | fi | |
cd9a469c | 21975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5 |
21976 | $as_echo "$ac_cv_lib_m_sqrtl" >&6; } | |
21977 | if test "x$ac_cv_lib_m_sqrtl" = x""yes; then : | |
d213114b | 21978 | |
cd9a469c | 21979 | $as_echo "#define HAVE_SQRTL 1" >>confdefs.h |
d213114b | 21980 | |
21981 | fi | |
21982 | ||
cd9a469c | 21983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf in -lm" >&5 |
21984 | $as_echo_n "checking for csqrtf in -lm... " >&6; } | |
21985 | if test "${ac_cv_lib_m_csqrtf+set}" = set; then : | |
21986 | $as_echo_n "(cached) " >&6 | |
d213114b | 21987 | else |
21988 | ac_check_lib_save_LIBS=$LIBS | |
21989 | LIBS="-lm $LIBS" | |
21990 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 21991 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 21992 | fi |
cd9a469c | 21993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 21994 | /* end confdefs.h. */ |
21995 | ||
cd9a469c | 21996 | /* Override any GCC internal prototype to avoid an error. |
21997 | Use char because int might match the return type of a GCC | |
21998 | builtin and then its argument prototype would still apply. */ | |
d213114b | 21999 | #ifdef __cplusplus |
22000 | extern "C" | |
22001 | #endif | |
d213114b | 22002 | char csqrtf (); |
22003 | int | |
22004 | main () | |
22005 | { | |
cd9a469c | 22006 | return csqrtf (); |
d213114b | 22007 | ; |
22008 | return 0; | |
22009 | } | |
22010 | _ACEOF | |
cd9a469c | 22011 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22012 | ac_cv_lib_m_csqrtf=yes |
22013 | else | |
cd9a469c | 22014 | ac_cv_lib_m_csqrtf=no |
d213114b | 22015 | fi |
cd9a469c | 22016 | rm -f core conftest.err conftest.$ac_objext \ |
22017 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22018 | LIBS=$ac_check_lib_save_LIBS |
22019 | fi | |
cd9a469c | 22020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtf" >&5 |
22021 | $as_echo "$ac_cv_lib_m_csqrtf" >&6; } | |
22022 | if test "x$ac_cv_lib_m_csqrtf" = x""yes; then : | |
d213114b | 22023 | |
cd9a469c | 22024 | $as_echo "#define HAVE_CSQRTF 1" >>confdefs.h |
d213114b | 22025 | |
22026 | fi | |
22027 | ||
cd9a469c | 22028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt in -lm" >&5 |
22029 | $as_echo_n "checking for csqrt in -lm... " >&6; } | |
22030 | if test "${ac_cv_lib_m_csqrt+set}" = set; then : | |
22031 | $as_echo_n "(cached) " >&6 | |
d213114b | 22032 | else |
22033 | ac_check_lib_save_LIBS=$LIBS | |
22034 | LIBS="-lm $LIBS" | |
22035 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22036 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22037 | fi |
cd9a469c | 22038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22039 | /* end confdefs.h. */ |
22040 | ||
cd9a469c | 22041 | /* Override any GCC internal prototype to avoid an error. |
22042 | Use char because int might match the return type of a GCC | |
22043 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22044 | #ifdef __cplusplus |
22045 | extern "C" | |
22046 | #endif | |
d213114b | 22047 | char csqrt (); |
22048 | int | |
22049 | main () | |
22050 | { | |
cd9a469c | 22051 | return csqrt (); |
d213114b | 22052 | ; |
22053 | return 0; | |
22054 | } | |
22055 | _ACEOF | |
cd9a469c | 22056 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22057 | ac_cv_lib_m_csqrt=yes |
22058 | else | |
cd9a469c | 22059 | ac_cv_lib_m_csqrt=no |
d213114b | 22060 | fi |
cd9a469c | 22061 | rm -f core conftest.err conftest.$ac_objext \ |
22062 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22063 | LIBS=$ac_check_lib_save_LIBS |
22064 | fi | |
cd9a469c | 22065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrt" >&5 |
22066 | $as_echo "$ac_cv_lib_m_csqrt" >&6; } | |
22067 | if test "x$ac_cv_lib_m_csqrt" = x""yes; then : | |
d213114b | 22068 | |
cd9a469c | 22069 | $as_echo "#define HAVE_CSQRT 1" >>confdefs.h |
d213114b | 22070 | |
22071 | fi | |
22072 | ||
cd9a469c | 22073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl in -lm" >&5 |
22074 | $as_echo_n "checking for csqrtl in -lm... " >&6; } | |
22075 | if test "${ac_cv_lib_m_csqrtl+set}" = set; then : | |
22076 | $as_echo_n "(cached) " >&6 | |
d213114b | 22077 | else |
22078 | ac_check_lib_save_LIBS=$LIBS | |
22079 | LIBS="-lm $LIBS" | |
22080 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22081 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22082 | fi |
cd9a469c | 22083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22084 | /* end confdefs.h. */ |
22085 | ||
cd9a469c | 22086 | /* Override any GCC internal prototype to avoid an error. |
22087 | Use char because int might match the return type of a GCC | |
22088 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22089 | #ifdef __cplusplus |
22090 | extern "C" | |
22091 | #endif | |
d213114b | 22092 | char csqrtl (); |
22093 | int | |
22094 | main () | |
22095 | { | |
cd9a469c | 22096 | return csqrtl (); |
d213114b | 22097 | ; |
22098 | return 0; | |
22099 | } | |
22100 | _ACEOF | |
cd9a469c | 22101 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22102 | ac_cv_lib_m_csqrtl=yes |
22103 | else | |
cd9a469c | 22104 | ac_cv_lib_m_csqrtl=no |
d213114b | 22105 | fi |
cd9a469c | 22106 | rm -f core conftest.err conftest.$ac_objext \ |
22107 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22108 | LIBS=$ac_check_lib_save_LIBS |
22109 | fi | |
cd9a469c | 22110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtl" >&5 |
22111 | $as_echo "$ac_cv_lib_m_csqrtl" >&6; } | |
22112 | if test "x$ac_cv_lib_m_csqrtl" = x""yes; then : | |
d213114b | 22113 | |
cd9a469c | 22114 | $as_echo "#define HAVE_CSQRTL 1" >>confdefs.h |
d213114b | 22115 | |
22116 | fi | |
22117 | ||
cd9a469c | 22118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf in -lm" >&5 |
22119 | $as_echo_n "checking for tanf in -lm... " >&6; } | |
22120 | if test "${ac_cv_lib_m_tanf+set}" = set; then : | |
22121 | $as_echo_n "(cached) " >&6 | |
d213114b | 22122 | else |
22123 | ac_check_lib_save_LIBS=$LIBS | |
22124 | LIBS="-lm $LIBS" | |
22125 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22126 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22127 | fi |
cd9a469c | 22128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22129 | /* end confdefs.h. */ |
22130 | ||
cd9a469c | 22131 | /* Override any GCC internal prototype to avoid an error. |
22132 | Use char because int might match the return type of a GCC | |
22133 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22134 | #ifdef __cplusplus |
22135 | extern "C" | |
22136 | #endif | |
d213114b | 22137 | char tanf (); |
22138 | int | |
22139 | main () | |
22140 | { | |
cd9a469c | 22141 | return tanf (); |
d213114b | 22142 | ; |
22143 | return 0; | |
22144 | } | |
22145 | _ACEOF | |
cd9a469c | 22146 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22147 | ac_cv_lib_m_tanf=yes |
22148 | else | |
cd9a469c | 22149 | ac_cv_lib_m_tanf=no |
d213114b | 22150 | fi |
cd9a469c | 22151 | rm -f core conftest.err conftest.$ac_objext \ |
22152 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22153 | LIBS=$ac_check_lib_save_LIBS |
22154 | fi | |
cd9a469c | 22155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanf" >&5 |
22156 | $as_echo "$ac_cv_lib_m_tanf" >&6; } | |
22157 | if test "x$ac_cv_lib_m_tanf" = x""yes; then : | |
d213114b | 22158 | |
cd9a469c | 22159 | $as_echo "#define HAVE_TANF 1" >>confdefs.h |
d213114b | 22160 | |
22161 | fi | |
22162 | ||
cd9a469c | 22163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan in -lm" >&5 |
22164 | $as_echo_n "checking for tan in -lm... " >&6; } | |
22165 | if test "${ac_cv_lib_m_tan+set}" = set; then : | |
22166 | $as_echo_n "(cached) " >&6 | |
d213114b | 22167 | else |
22168 | ac_check_lib_save_LIBS=$LIBS | |
22169 | LIBS="-lm $LIBS" | |
22170 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22171 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22172 | fi |
cd9a469c | 22173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22174 | /* end confdefs.h. */ |
22175 | ||
cd9a469c | 22176 | /* Override any GCC internal prototype to avoid an error. |
22177 | Use char because int might match the return type of a GCC | |
22178 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22179 | #ifdef __cplusplus |
22180 | extern "C" | |
22181 | #endif | |
d213114b | 22182 | char tan (); |
22183 | int | |
22184 | main () | |
22185 | { | |
cd9a469c | 22186 | return tan (); |
d213114b | 22187 | ; |
22188 | return 0; | |
22189 | } | |
22190 | _ACEOF | |
cd9a469c | 22191 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22192 | ac_cv_lib_m_tan=yes |
22193 | else | |
cd9a469c | 22194 | ac_cv_lib_m_tan=no |
d213114b | 22195 | fi |
cd9a469c | 22196 | rm -f core conftest.err conftest.$ac_objext \ |
22197 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22198 | LIBS=$ac_check_lib_save_LIBS |
22199 | fi | |
cd9a469c | 22200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tan" >&5 |
22201 | $as_echo "$ac_cv_lib_m_tan" >&6; } | |
22202 | if test "x$ac_cv_lib_m_tan" = x""yes; then : | |
d213114b | 22203 | |
cd9a469c | 22204 | $as_echo "#define HAVE_TAN 1" >>confdefs.h |
d213114b | 22205 | |
22206 | fi | |
22207 | ||
cd9a469c | 22208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl in -lm" >&5 |
22209 | $as_echo_n "checking for tanl in -lm... " >&6; } | |
22210 | if test "${ac_cv_lib_m_tanl+set}" = set; then : | |
22211 | $as_echo_n "(cached) " >&6 | |
d213114b | 22212 | else |
22213 | ac_check_lib_save_LIBS=$LIBS | |
22214 | LIBS="-lm $LIBS" | |
22215 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22216 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22217 | fi |
cd9a469c | 22218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22219 | /* end confdefs.h. */ |
22220 | ||
cd9a469c | 22221 | /* Override any GCC internal prototype to avoid an error. |
22222 | Use char because int might match the return type of a GCC | |
22223 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22224 | #ifdef __cplusplus |
22225 | extern "C" | |
22226 | #endif | |
d213114b | 22227 | char tanl (); |
22228 | int | |
22229 | main () | |
22230 | { | |
cd9a469c | 22231 | return tanl (); |
d213114b | 22232 | ; |
22233 | return 0; | |
22234 | } | |
22235 | _ACEOF | |
cd9a469c | 22236 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22237 | ac_cv_lib_m_tanl=yes |
22238 | else | |
cd9a469c | 22239 | ac_cv_lib_m_tanl=no |
d213114b | 22240 | fi |
cd9a469c | 22241 | rm -f core conftest.err conftest.$ac_objext \ |
22242 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22243 | LIBS=$ac_check_lib_save_LIBS |
22244 | fi | |
cd9a469c | 22245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanl" >&5 |
22246 | $as_echo "$ac_cv_lib_m_tanl" >&6; } | |
22247 | if test "x$ac_cv_lib_m_tanl" = x""yes; then : | |
d213114b | 22248 | |
cd9a469c | 22249 | $as_echo "#define HAVE_TANL 1" >>confdefs.h |
d213114b | 22250 | |
22251 | fi | |
22252 | ||
cd9a469c | 22253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf in -lm" >&5 |
22254 | $as_echo_n "checking for ctanf in -lm... " >&6; } | |
22255 | if test "${ac_cv_lib_m_ctanf+set}" = set; then : | |
22256 | $as_echo_n "(cached) " >&6 | |
d213114b | 22257 | else |
22258 | ac_check_lib_save_LIBS=$LIBS | |
22259 | LIBS="-lm $LIBS" | |
22260 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22261 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22262 | fi |
cd9a469c | 22263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22264 | /* end confdefs.h. */ |
22265 | ||
cd9a469c | 22266 | /* Override any GCC internal prototype to avoid an error. |
22267 | Use char because int might match the return type of a GCC | |
22268 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22269 | #ifdef __cplusplus |
22270 | extern "C" | |
22271 | #endif | |
d213114b | 22272 | char ctanf (); |
22273 | int | |
22274 | main () | |
22275 | { | |
cd9a469c | 22276 | return ctanf (); |
d213114b | 22277 | ; |
22278 | return 0; | |
22279 | } | |
22280 | _ACEOF | |
cd9a469c | 22281 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22282 | ac_cv_lib_m_ctanf=yes |
22283 | else | |
cd9a469c | 22284 | ac_cv_lib_m_ctanf=no |
d213114b | 22285 | fi |
cd9a469c | 22286 | rm -f core conftest.err conftest.$ac_objext \ |
22287 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22288 | LIBS=$ac_check_lib_save_LIBS |
22289 | fi | |
cd9a469c | 22290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanf" >&5 |
22291 | $as_echo "$ac_cv_lib_m_ctanf" >&6; } | |
22292 | if test "x$ac_cv_lib_m_ctanf" = x""yes; then : | |
d213114b | 22293 | |
cd9a469c | 22294 | $as_echo "#define HAVE_CTANF 1" >>confdefs.h |
d213114b | 22295 | |
22296 | fi | |
22297 | ||
cd9a469c | 22298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan in -lm" >&5 |
22299 | $as_echo_n "checking for ctan in -lm... " >&6; } | |
22300 | if test "${ac_cv_lib_m_ctan+set}" = set; then : | |
22301 | $as_echo_n "(cached) " >&6 | |
d213114b | 22302 | else |
22303 | ac_check_lib_save_LIBS=$LIBS | |
22304 | LIBS="-lm $LIBS" | |
22305 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22306 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22307 | fi |
cd9a469c | 22308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22309 | /* end confdefs.h. */ |
22310 | ||
cd9a469c | 22311 | /* Override any GCC internal prototype to avoid an error. |
22312 | Use char because int might match the return type of a GCC | |
22313 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22314 | #ifdef __cplusplus |
22315 | extern "C" | |
22316 | #endif | |
d213114b | 22317 | char ctan (); |
22318 | int | |
22319 | main () | |
22320 | { | |
cd9a469c | 22321 | return ctan (); |
d213114b | 22322 | ; |
22323 | return 0; | |
22324 | } | |
22325 | _ACEOF | |
cd9a469c | 22326 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22327 | ac_cv_lib_m_ctan=yes |
22328 | else | |
cd9a469c | 22329 | ac_cv_lib_m_ctan=no |
d213114b | 22330 | fi |
cd9a469c | 22331 | rm -f core conftest.err conftest.$ac_objext \ |
22332 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22333 | LIBS=$ac_check_lib_save_LIBS |
22334 | fi | |
cd9a469c | 22335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctan" >&5 |
22336 | $as_echo "$ac_cv_lib_m_ctan" >&6; } | |
22337 | if test "x$ac_cv_lib_m_ctan" = x""yes; then : | |
d213114b | 22338 | |
cd9a469c | 22339 | $as_echo "#define HAVE_CTAN 1" >>confdefs.h |
d213114b | 22340 | |
22341 | fi | |
22342 | ||
cd9a469c | 22343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl in -lm" >&5 |
22344 | $as_echo_n "checking for ctanl in -lm... " >&6; } | |
22345 | if test "${ac_cv_lib_m_ctanl+set}" = set; then : | |
22346 | $as_echo_n "(cached) " >&6 | |
d213114b | 22347 | else |
22348 | ac_check_lib_save_LIBS=$LIBS | |
22349 | LIBS="-lm $LIBS" | |
22350 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22351 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22352 | fi |
cd9a469c | 22353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22354 | /* end confdefs.h. */ |
22355 | ||
cd9a469c | 22356 | /* Override any GCC internal prototype to avoid an error. |
22357 | Use char because int might match the return type of a GCC | |
22358 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22359 | #ifdef __cplusplus |
22360 | extern "C" | |
22361 | #endif | |
d213114b | 22362 | char ctanl (); |
22363 | int | |
22364 | main () | |
22365 | { | |
cd9a469c | 22366 | return ctanl (); |
d213114b | 22367 | ; |
22368 | return 0; | |
22369 | } | |
22370 | _ACEOF | |
cd9a469c | 22371 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22372 | ac_cv_lib_m_ctanl=yes |
22373 | else | |
cd9a469c | 22374 | ac_cv_lib_m_ctanl=no |
d213114b | 22375 | fi |
cd9a469c | 22376 | rm -f core conftest.err conftest.$ac_objext \ |
22377 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22378 | LIBS=$ac_check_lib_save_LIBS |
22379 | fi | |
cd9a469c | 22380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanl" >&5 |
22381 | $as_echo "$ac_cv_lib_m_ctanl" >&6; } | |
22382 | if test "x$ac_cv_lib_m_ctanl" = x""yes; then : | |
d213114b | 22383 | |
cd9a469c | 22384 | $as_echo "#define HAVE_CTANL 1" >>confdefs.h |
d213114b | 22385 | |
22386 | fi | |
22387 | ||
cd9a469c | 22388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf in -lm" >&5 |
22389 | $as_echo_n "checking for tanhf in -lm... " >&6; } | |
22390 | if test "${ac_cv_lib_m_tanhf+set}" = set; then : | |
22391 | $as_echo_n "(cached) " >&6 | |
d213114b | 22392 | else |
22393 | ac_check_lib_save_LIBS=$LIBS | |
22394 | LIBS="-lm $LIBS" | |
22395 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22396 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22397 | fi |
cd9a469c | 22398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22399 | /* end confdefs.h. */ |
22400 | ||
cd9a469c | 22401 | /* Override any GCC internal prototype to avoid an error. |
22402 | Use char because int might match the return type of a GCC | |
22403 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22404 | #ifdef __cplusplus |
22405 | extern "C" | |
22406 | #endif | |
d213114b | 22407 | char tanhf (); |
22408 | int | |
22409 | main () | |
22410 | { | |
cd9a469c | 22411 | return tanhf (); |
d213114b | 22412 | ; |
22413 | return 0; | |
22414 | } | |
22415 | _ACEOF | |
cd9a469c | 22416 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22417 | ac_cv_lib_m_tanhf=yes |
22418 | else | |
cd9a469c | 22419 | ac_cv_lib_m_tanhf=no |
d213114b | 22420 | fi |
cd9a469c | 22421 | rm -f core conftest.err conftest.$ac_objext \ |
22422 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22423 | LIBS=$ac_check_lib_save_LIBS |
22424 | fi | |
cd9a469c | 22425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhf" >&5 |
22426 | $as_echo "$ac_cv_lib_m_tanhf" >&6; } | |
22427 | if test "x$ac_cv_lib_m_tanhf" = x""yes; then : | |
d213114b | 22428 | |
cd9a469c | 22429 | $as_echo "#define HAVE_TANHF 1" >>confdefs.h |
d213114b | 22430 | |
22431 | fi | |
22432 | ||
cd9a469c | 22433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh in -lm" >&5 |
22434 | $as_echo_n "checking for tanh in -lm... " >&6; } | |
22435 | if test "${ac_cv_lib_m_tanh+set}" = set; then : | |
22436 | $as_echo_n "(cached) " >&6 | |
d213114b | 22437 | else |
22438 | ac_check_lib_save_LIBS=$LIBS | |
22439 | LIBS="-lm $LIBS" | |
22440 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22441 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22442 | fi |
cd9a469c | 22443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22444 | /* end confdefs.h. */ |
22445 | ||
cd9a469c | 22446 | /* Override any GCC internal prototype to avoid an error. |
22447 | Use char because int might match the return type of a GCC | |
22448 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22449 | #ifdef __cplusplus |
22450 | extern "C" | |
22451 | #endif | |
d213114b | 22452 | char tanh (); |
22453 | int | |
22454 | main () | |
22455 | { | |
cd9a469c | 22456 | return tanh (); |
d213114b | 22457 | ; |
22458 | return 0; | |
22459 | } | |
22460 | _ACEOF | |
cd9a469c | 22461 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22462 | ac_cv_lib_m_tanh=yes |
22463 | else | |
cd9a469c | 22464 | ac_cv_lib_m_tanh=no |
d213114b | 22465 | fi |
cd9a469c | 22466 | rm -f core conftest.err conftest.$ac_objext \ |
22467 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22468 | LIBS=$ac_check_lib_save_LIBS |
22469 | fi | |
cd9a469c | 22470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanh" >&5 |
22471 | $as_echo "$ac_cv_lib_m_tanh" >&6; } | |
22472 | if test "x$ac_cv_lib_m_tanh" = x""yes; then : | |
d213114b | 22473 | |
cd9a469c | 22474 | $as_echo "#define HAVE_TANH 1" >>confdefs.h |
d213114b | 22475 | |
22476 | fi | |
22477 | ||
cd9a469c | 22478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl in -lm" >&5 |
22479 | $as_echo_n "checking for tanhl in -lm... " >&6; } | |
22480 | if test "${ac_cv_lib_m_tanhl+set}" = set; then : | |
22481 | $as_echo_n "(cached) " >&6 | |
d213114b | 22482 | else |
22483 | ac_check_lib_save_LIBS=$LIBS | |
22484 | LIBS="-lm $LIBS" | |
22485 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22486 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22487 | fi |
cd9a469c | 22488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22489 | /* end confdefs.h. */ |
22490 | ||
cd9a469c | 22491 | /* Override any GCC internal prototype to avoid an error. |
22492 | Use char because int might match the return type of a GCC | |
22493 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22494 | #ifdef __cplusplus |
22495 | extern "C" | |
22496 | #endif | |
d213114b | 22497 | char tanhl (); |
22498 | int | |
22499 | main () | |
22500 | { | |
cd9a469c | 22501 | return tanhl (); |
d213114b | 22502 | ; |
22503 | return 0; | |
22504 | } | |
22505 | _ACEOF | |
cd9a469c | 22506 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22507 | ac_cv_lib_m_tanhl=yes |
22508 | else | |
cd9a469c | 22509 | ac_cv_lib_m_tanhl=no |
d213114b | 22510 | fi |
cd9a469c | 22511 | rm -f core conftest.err conftest.$ac_objext \ |
22512 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22513 | LIBS=$ac_check_lib_save_LIBS |
22514 | fi | |
cd9a469c | 22515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhl" >&5 |
22516 | $as_echo "$ac_cv_lib_m_tanhl" >&6; } | |
22517 | if test "x$ac_cv_lib_m_tanhl" = x""yes; then : | |
d213114b | 22518 | |
cd9a469c | 22519 | $as_echo "#define HAVE_TANHL 1" >>confdefs.h |
d213114b | 22520 | |
22521 | fi | |
22522 | ||
cd9a469c | 22523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf in -lm" >&5 |
22524 | $as_echo_n "checking for ctanhf in -lm... " >&6; } | |
22525 | if test "${ac_cv_lib_m_ctanhf+set}" = set; then : | |
22526 | $as_echo_n "(cached) " >&6 | |
d213114b | 22527 | else |
22528 | ac_check_lib_save_LIBS=$LIBS | |
22529 | LIBS="-lm $LIBS" | |
22530 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22531 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22532 | fi |
cd9a469c | 22533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22534 | /* end confdefs.h. */ |
22535 | ||
cd9a469c | 22536 | /* Override any GCC internal prototype to avoid an error. |
22537 | Use char because int might match the return type of a GCC | |
22538 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22539 | #ifdef __cplusplus |
22540 | extern "C" | |
22541 | #endif | |
d213114b | 22542 | char ctanhf (); |
22543 | int | |
22544 | main () | |
22545 | { | |
cd9a469c | 22546 | return ctanhf (); |
d213114b | 22547 | ; |
22548 | return 0; | |
22549 | } | |
22550 | _ACEOF | |
cd9a469c | 22551 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22552 | ac_cv_lib_m_ctanhf=yes |
22553 | else | |
cd9a469c | 22554 | ac_cv_lib_m_ctanhf=no |
d213114b | 22555 | fi |
cd9a469c | 22556 | rm -f core conftest.err conftest.$ac_objext \ |
22557 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22558 | LIBS=$ac_check_lib_save_LIBS |
22559 | fi | |
cd9a469c | 22560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhf" >&5 |
22561 | $as_echo "$ac_cv_lib_m_ctanhf" >&6; } | |
22562 | if test "x$ac_cv_lib_m_ctanhf" = x""yes; then : | |
d213114b | 22563 | |
cd9a469c | 22564 | $as_echo "#define HAVE_CTANHF 1" >>confdefs.h |
d213114b | 22565 | |
22566 | fi | |
22567 | ||
cd9a469c | 22568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh in -lm" >&5 |
22569 | $as_echo_n "checking for ctanh in -lm... " >&6; } | |
22570 | if test "${ac_cv_lib_m_ctanh+set}" = set; then : | |
22571 | $as_echo_n "(cached) " >&6 | |
d213114b | 22572 | else |
22573 | ac_check_lib_save_LIBS=$LIBS | |
22574 | LIBS="-lm $LIBS" | |
22575 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22576 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22577 | fi |
cd9a469c | 22578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22579 | /* end confdefs.h. */ |
22580 | ||
cd9a469c | 22581 | /* Override any GCC internal prototype to avoid an error. |
22582 | Use char because int might match the return type of a GCC | |
22583 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22584 | #ifdef __cplusplus |
22585 | extern "C" | |
22586 | #endif | |
d213114b | 22587 | char ctanh (); |
22588 | int | |
22589 | main () | |
22590 | { | |
cd9a469c | 22591 | return ctanh (); |
d213114b | 22592 | ; |
cd9a469c | 22593 | return 0; |
22594 | } | |
22595 | _ACEOF | |
22596 | if ac_fn_c_try_link "$LINENO"; then : | |
d213114b | 22597 | ac_cv_lib_m_ctanh=yes |
22598 | else | |
cd9a469c | 22599 | ac_cv_lib_m_ctanh=no |
d213114b | 22600 | fi |
cd9a469c | 22601 | rm -f core conftest.err conftest.$ac_objext \ |
22602 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22603 | LIBS=$ac_check_lib_save_LIBS |
22604 | fi | |
cd9a469c | 22605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanh" >&5 |
22606 | $as_echo "$ac_cv_lib_m_ctanh" >&6; } | |
22607 | if test "x$ac_cv_lib_m_ctanh" = x""yes; then : | |
d213114b | 22608 | |
cd9a469c | 22609 | $as_echo "#define HAVE_CTANH 1" >>confdefs.h |
d213114b | 22610 | |
22611 | fi | |
22612 | ||
cd9a469c | 22613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl in -lm" >&5 |
22614 | $as_echo_n "checking for ctanhl in -lm... " >&6; } | |
22615 | if test "${ac_cv_lib_m_ctanhl+set}" = set; then : | |
22616 | $as_echo_n "(cached) " >&6 | |
d213114b | 22617 | else |
22618 | ac_check_lib_save_LIBS=$LIBS | |
22619 | LIBS="-lm $LIBS" | |
22620 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22621 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22622 | fi |
cd9a469c | 22623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22624 | /* end confdefs.h. */ |
22625 | ||
cd9a469c | 22626 | /* Override any GCC internal prototype to avoid an error. |
22627 | Use char because int might match the return type of a GCC | |
22628 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22629 | #ifdef __cplusplus |
22630 | extern "C" | |
22631 | #endif | |
d213114b | 22632 | char ctanhl (); |
22633 | int | |
22634 | main () | |
22635 | { | |
cd9a469c | 22636 | return ctanhl (); |
d213114b | 22637 | ; |
22638 | return 0; | |
22639 | } | |
22640 | _ACEOF | |
cd9a469c | 22641 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22642 | ac_cv_lib_m_ctanhl=yes |
22643 | else | |
cd9a469c | 22644 | ac_cv_lib_m_ctanhl=no |
d213114b | 22645 | fi |
cd9a469c | 22646 | rm -f core conftest.err conftest.$ac_objext \ |
22647 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22648 | LIBS=$ac_check_lib_save_LIBS |
22649 | fi | |
cd9a469c | 22650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhl" >&5 |
22651 | $as_echo "$ac_cv_lib_m_ctanhl" >&6; } | |
22652 | if test "x$ac_cv_lib_m_ctanhl" = x""yes; then : | |
d213114b | 22653 | |
cd9a469c | 22654 | $as_echo "#define HAVE_CTANHL 1" >>confdefs.h |
50f0ca0a | 22655 | |
22656 | fi | |
22657 | ||
cd9a469c | 22658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf in -lm" >&5 |
22659 | $as_echo_n "checking for truncf in -lm... " >&6; } | |
22660 | if test "${ac_cv_lib_m_truncf+set}" = set; then : | |
22661 | $as_echo_n "(cached) " >&6 | |
50f0ca0a | 22662 | else |
22663 | ac_check_lib_save_LIBS=$LIBS | |
22664 | LIBS="-lm $LIBS" | |
b52ee437 | 22665 | if test x$gcc_no_link = xyes; then |
cd9a469c | 22666 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 22667 | fi |
cd9a469c | 22668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
50f0ca0a | 22669 | /* end confdefs.h. */ |
22670 | ||
cd9a469c | 22671 | /* Override any GCC internal prototype to avoid an error. |
22672 | Use char because int might match the return type of a GCC | |
22673 | builtin and then its argument prototype would still apply. */ | |
50f0ca0a | 22674 | #ifdef __cplusplus |
22675 | extern "C" | |
22676 | #endif | |
d213114b | 22677 | char truncf (); |
22678 | int | |
22679 | main () | |
22680 | { | |
cd9a469c | 22681 | return truncf (); |
d213114b | 22682 | ; |
22683 | return 0; | |
22684 | } | |
22685 | _ACEOF | |
cd9a469c | 22686 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22687 | ac_cv_lib_m_truncf=yes |
22688 | else | |
cd9a469c | 22689 | ac_cv_lib_m_truncf=no |
d213114b | 22690 | fi |
cd9a469c | 22691 | rm -f core conftest.err conftest.$ac_objext \ |
22692 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22693 | LIBS=$ac_check_lib_save_LIBS |
22694 | fi | |
cd9a469c | 22695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncf" >&5 |
22696 | $as_echo "$ac_cv_lib_m_truncf" >&6; } | |
22697 | if test "x$ac_cv_lib_m_truncf" = x""yes; then : | |
d213114b | 22698 | |
cd9a469c | 22699 | $as_echo "#define HAVE_TRUNCF 1" >>confdefs.h |
d213114b | 22700 | |
22701 | fi | |
22702 | ||
cd9a469c | 22703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5 |
22704 | $as_echo_n "checking for trunc in -lm... " >&6; } | |
22705 | if test "${ac_cv_lib_m_trunc+set}" = set; then : | |
22706 | $as_echo_n "(cached) " >&6 | |
d213114b | 22707 | else |
22708 | ac_check_lib_save_LIBS=$LIBS | |
22709 | LIBS="-lm $LIBS" | |
22710 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22711 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22712 | fi |
cd9a469c | 22713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22714 | /* end confdefs.h. */ |
22715 | ||
cd9a469c | 22716 | /* Override any GCC internal prototype to avoid an error. |
22717 | Use char because int might match the return type of a GCC | |
22718 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22719 | #ifdef __cplusplus |
22720 | extern "C" | |
22721 | #endif | |
d213114b | 22722 | char trunc (); |
22723 | int | |
22724 | main () | |
22725 | { | |
cd9a469c | 22726 | return trunc (); |
d213114b | 22727 | ; |
22728 | return 0; | |
22729 | } | |
22730 | _ACEOF | |
cd9a469c | 22731 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22732 | ac_cv_lib_m_trunc=yes |
22733 | else | |
cd9a469c | 22734 | ac_cv_lib_m_trunc=no |
d213114b | 22735 | fi |
cd9a469c | 22736 | rm -f core conftest.err conftest.$ac_objext \ |
22737 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22738 | LIBS=$ac_check_lib_save_LIBS |
22739 | fi | |
cd9a469c | 22740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5 |
22741 | $as_echo "$ac_cv_lib_m_trunc" >&6; } | |
22742 | if test "x$ac_cv_lib_m_trunc" = x""yes; then : | |
d213114b | 22743 | |
cd9a469c | 22744 | $as_echo "#define HAVE_TRUNC 1" >>confdefs.h |
d213114b | 22745 | |
22746 | fi | |
22747 | ||
cd9a469c | 22748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl in -lm" >&5 |
22749 | $as_echo_n "checking for truncl in -lm... " >&6; } | |
22750 | if test "${ac_cv_lib_m_truncl+set}" = set; then : | |
22751 | $as_echo_n "(cached) " >&6 | |
d213114b | 22752 | else |
22753 | ac_check_lib_save_LIBS=$LIBS | |
22754 | LIBS="-lm $LIBS" | |
22755 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22756 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22757 | fi |
cd9a469c | 22758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22759 | /* end confdefs.h. */ |
22760 | ||
cd9a469c | 22761 | /* Override any GCC internal prototype to avoid an error. |
22762 | Use char because int might match the return type of a GCC | |
22763 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22764 | #ifdef __cplusplus |
22765 | extern "C" | |
22766 | #endif | |
d213114b | 22767 | char truncl (); |
22768 | int | |
22769 | main () | |
22770 | { | |
cd9a469c | 22771 | return truncl (); |
d213114b | 22772 | ; |
22773 | return 0; | |
22774 | } | |
22775 | _ACEOF | |
cd9a469c | 22776 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22777 | ac_cv_lib_m_truncl=yes |
22778 | else | |
cd9a469c | 22779 | ac_cv_lib_m_truncl=no |
d213114b | 22780 | fi |
cd9a469c | 22781 | rm -f core conftest.err conftest.$ac_objext \ |
22782 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22783 | LIBS=$ac_check_lib_save_LIBS |
22784 | fi | |
cd9a469c | 22785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncl" >&5 |
22786 | $as_echo "$ac_cv_lib_m_truncl" >&6; } | |
22787 | if test "x$ac_cv_lib_m_truncl" = x""yes; then : | |
d213114b | 22788 | |
cd9a469c | 22789 | $as_echo "#define HAVE_TRUNCL 1" >>confdefs.h |
d213114b | 22790 | |
22791 | fi | |
22792 | ||
cd9a469c | 22793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff in -lm" >&5 |
22794 | $as_echo_n "checking for erff in -lm... " >&6; } | |
22795 | if test "${ac_cv_lib_m_erff+set}" = set; then : | |
22796 | $as_echo_n "(cached) " >&6 | |
d213114b | 22797 | else |
22798 | ac_check_lib_save_LIBS=$LIBS | |
22799 | LIBS="-lm $LIBS" | |
22800 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22801 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22802 | fi |
cd9a469c | 22803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22804 | /* end confdefs.h. */ |
22805 | ||
cd9a469c | 22806 | /* Override any GCC internal prototype to avoid an error. |
22807 | Use char because int might match the return type of a GCC | |
22808 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22809 | #ifdef __cplusplus |
22810 | extern "C" | |
22811 | #endif | |
d213114b | 22812 | char erff (); |
22813 | int | |
22814 | main () | |
22815 | { | |
cd9a469c | 22816 | return erff (); |
d213114b | 22817 | ; |
22818 | return 0; | |
22819 | } | |
22820 | _ACEOF | |
cd9a469c | 22821 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22822 | ac_cv_lib_m_erff=yes |
22823 | else | |
cd9a469c | 22824 | ac_cv_lib_m_erff=no |
d213114b | 22825 | fi |
cd9a469c | 22826 | rm -f core conftest.err conftest.$ac_objext \ |
22827 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22828 | LIBS=$ac_check_lib_save_LIBS |
22829 | fi | |
cd9a469c | 22830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erff" >&5 |
22831 | $as_echo "$ac_cv_lib_m_erff" >&6; } | |
22832 | if test "x$ac_cv_lib_m_erff" = x""yes; then : | |
d213114b | 22833 | |
cd9a469c | 22834 | $as_echo "#define HAVE_ERFF 1" >>confdefs.h |
d213114b | 22835 | |
22836 | fi | |
22837 | ||
cd9a469c | 22838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf in -lm" >&5 |
22839 | $as_echo_n "checking for erf in -lm... " >&6; } | |
22840 | if test "${ac_cv_lib_m_erf+set}" = set; then : | |
22841 | $as_echo_n "(cached) " >&6 | |
d213114b | 22842 | else |
22843 | ac_check_lib_save_LIBS=$LIBS | |
22844 | LIBS="-lm $LIBS" | |
22845 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22846 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22847 | fi |
cd9a469c | 22848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22849 | /* end confdefs.h. */ |
22850 | ||
cd9a469c | 22851 | /* Override any GCC internal prototype to avoid an error. |
22852 | Use char because int might match the return type of a GCC | |
22853 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22854 | #ifdef __cplusplus |
22855 | extern "C" | |
22856 | #endif | |
d213114b | 22857 | char erf (); |
22858 | int | |
22859 | main () | |
22860 | { | |
cd9a469c | 22861 | return erf (); |
d213114b | 22862 | ; |
22863 | return 0; | |
22864 | } | |
22865 | _ACEOF | |
cd9a469c | 22866 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22867 | ac_cv_lib_m_erf=yes |
22868 | else | |
cd9a469c | 22869 | ac_cv_lib_m_erf=no |
d213114b | 22870 | fi |
cd9a469c | 22871 | rm -f core conftest.err conftest.$ac_objext \ |
22872 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22873 | LIBS=$ac_check_lib_save_LIBS |
22874 | fi | |
cd9a469c | 22875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erf" >&5 |
22876 | $as_echo "$ac_cv_lib_m_erf" >&6; } | |
22877 | if test "x$ac_cv_lib_m_erf" = x""yes; then : | |
d213114b | 22878 | |
cd9a469c | 22879 | $as_echo "#define HAVE_ERF 1" >>confdefs.h |
d213114b | 22880 | |
22881 | fi | |
22882 | ||
cd9a469c | 22883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl in -lm" >&5 |
22884 | $as_echo_n "checking for erfl in -lm... " >&6; } | |
22885 | if test "${ac_cv_lib_m_erfl+set}" = set; then : | |
22886 | $as_echo_n "(cached) " >&6 | |
d213114b | 22887 | else |
22888 | ac_check_lib_save_LIBS=$LIBS | |
22889 | LIBS="-lm $LIBS" | |
22890 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22891 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22892 | fi |
cd9a469c | 22893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22894 | /* end confdefs.h. */ |
22895 | ||
cd9a469c | 22896 | /* Override any GCC internal prototype to avoid an error. |
22897 | Use char because int might match the return type of a GCC | |
22898 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22899 | #ifdef __cplusplus |
22900 | extern "C" | |
22901 | #endif | |
d213114b | 22902 | char erfl (); |
22903 | int | |
22904 | main () | |
22905 | { | |
cd9a469c | 22906 | return erfl (); |
d213114b | 22907 | ; |
22908 | return 0; | |
22909 | } | |
22910 | _ACEOF | |
cd9a469c | 22911 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22912 | ac_cv_lib_m_erfl=yes |
22913 | else | |
cd9a469c | 22914 | ac_cv_lib_m_erfl=no |
d213114b | 22915 | fi |
cd9a469c | 22916 | rm -f core conftest.err conftest.$ac_objext \ |
22917 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22918 | LIBS=$ac_check_lib_save_LIBS |
22919 | fi | |
cd9a469c | 22920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfl" >&5 |
22921 | $as_echo "$ac_cv_lib_m_erfl" >&6; } | |
22922 | if test "x$ac_cv_lib_m_erfl" = x""yes; then : | |
d213114b | 22923 | |
cd9a469c | 22924 | $as_echo "#define HAVE_ERFL 1" >>confdefs.h |
d213114b | 22925 | |
22926 | fi | |
22927 | ||
cd9a469c | 22928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf in -lm" >&5 |
22929 | $as_echo_n "checking for erfcf in -lm... " >&6; } | |
22930 | if test "${ac_cv_lib_m_erfcf+set}" = set; then : | |
22931 | $as_echo_n "(cached) " >&6 | |
d213114b | 22932 | else |
22933 | ac_check_lib_save_LIBS=$LIBS | |
22934 | LIBS="-lm $LIBS" | |
22935 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22936 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22937 | fi |
cd9a469c | 22938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22939 | /* end confdefs.h. */ |
22940 | ||
cd9a469c | 22941 | /* Override any GCC internal prototype to avoid an error. |
22942 | Use char because int might match the return type of a GCC | |
22943 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22944 | #ifdef __cplusplus |
22945 | extern "C" | |
22946 | #endif | |
d213114b | 22947 | char erfcf (); |
22948 | int | |
22949 | main () | |
22950 | { | |
cd9a469c | 22951 | return erfcf (); |
d213114b | 22952 | ; |
22953 | return 0; | |
22954 | } | |
22955 | _ACEOF | |
cd9a469c | 22956 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 22957 | ac_cv_lib_m_erfcf=yes |
22958 | else | |
cd9a469c | 22959 | ac_cv_lib_m_erfcf=no |
d213114b | 22960 | fi |
cd9a469c | 22961 | rm -f core conftest.err conftest.$ac_objext \ |
22962 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 22963 | LIBS=$ac_check_lib_save_LIBS |
22964 | fi | |
cd9a469c | 22965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcf" >&5 |
22966 | $as_echo "$ac_cv_lib_m_erfcf" >&6; } | |
22967 | if test "x$ac_cv_lib_m_erfcf" = x""yes; then : | |
d213114b | 22968 | |
cd9a469c | 22969 | $as_echo "#define HAVE_ERFCF 1" >>confdefs.h |
d213114b | 22970 | |
22971 | fi | |
22972 | ||
cd9a469c | 22973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc in -lm" >&5 |
22974 | $as_echo_n "checking for erfc in -lm... " >&6; } | |
22975 | if test "${ac_cv_lib_m_erfc+set}" = set; then : | |
22976 | $as_echo_n "(cached) " >&6 | |
d213114b | 22977 | else |
22978 | ac_check_lib_save_LIBS=$LIBS | |
22979 | LIBS="-lm $LIBS" | |
22980 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 22981 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 22982 | fi |
cd9a469c | 22983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 22984 | /* end confdefs.h. */ |
22985 | ||
cd9a469c | 22986 | /* Override any GCC internal prototype to avoid an error. |
22987 | Use char because int might match the return type of a GCC | |
22988 | builtin and then its argument prototype would still apply. */ | |
d213114b | 22989 | #ifdef __cplusplus |
22990 | extern "C" | |
22991 | #endif | |
d213114b | 22992 | char erfc (); |
50f0ca0a | 22993 | int |
22994 | main () | |
22995 | { | |
cd9a469c | 22996 | return erfc (); |
50f0ca0a | 22997 | ; |
22998 | return 0; | |
22999 | } | |
23000 | _ACEOF | |
cd9a469c | 23001 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23002 | ac_cv_lib_m_erfc=yes |
50f0ca0a | 23003 | else |
cd9a469c | 23004 | ac_cv_lib_m_erfc=no |
50f0ca0a | 23005 | fi |
cd9a469c | 23006 | rm -f core conftest.err conftest.$ac_objext \ |
23007 | conftest$ac_exeext conftest.$ac_ext | |
50f0ca0a | 23008 | LIBS=$ac_check_lib_save_LIBS |
23009 | fi | |
cd9a469c | 23010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfc" >&5 |
23011 | $as_echo "$ac_cv_lib_m_erfc" >&6; } | |
23012 | if test "x$ac_cv_lib_m_erfc" = x""yes; then : | |
50f0ca0a | 23013 | |
cd9a469c | 23014 | $as_echo "#define HAVE_ERFC 1" >>confdefs.h |
50f0ca0a | 23015 | |
23016 | fi | |
23017 | ||
cd9a469c | 23018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl in -lm" >&5 |
23019 | $as_echo_n "checking for erfcl in -lm... " >&6; } | |
23020 | if test "${ac_cv_lib_m_erfcl+set}" = set; then : | |
23021 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23022 | else |
23023 | ac_check_lib_save_LIBS=$LIBS | |
23024 | LIBS="-lm $LIBS" | |
b52ee437 | 23025 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23026 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23027 | fi |
cd9a469c | 23028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23029 | /* end confdefs.h. */ |
23030 | ||
cd9a469c | 23031 | /* Override any GCC internal prototype to avoid an error. |
23032 | Use char because int might match the return type of a GCC | |
23033 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23034 | #ifdef __cplusplus |
23035 | extern "C" | |
23036 | #endif | |
d213114b | 23037 | char erfcl (); |
158e0e64 | 23038 | int |
23039 | main () | |
23040 | { | |
cd9a469c | 23041 | return erfcl (); |
158e0e64 | 23042 | ; |
23043 | return 0; | |
23044 | } | |
23045 | _ACEOF | |
cd9a469c | 23046 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23047 | ac_cv_lib_m_erfcl=yes |
158e0e64 | 23048 | else |
cd9a469c | 23049 | ac_cv_lib_m_erfcl=no |
158e0e64 | 23050 | fi |
cd9a469c | 23051 | rm -f core conftest.err conftest.$ac_objext \ |
23052 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23053 | LIBS=$ac_check_lib_save_LIBS |
23054 | fi | |
cd9a469c | 23055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcl" >&5 |
23056 | $as_echo "$ac_cv_lib_m_erfcl" >&6; } | |
23057 | if test "x$ac_cv_lib_m_erfcl" = x""yes; then : | |
158e0e64 | 23058 | |
cd9a469c | 23059 | $as_echo "#define HAVE_ERFCL 1" >>confdefs.h |
158e0e64 | 23060 | |
23061 | fi | |
23062 | ||
cd9a469c | 23063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f in -lm" >&5 |
23064 | $as_echo_n "checking for j0f in -lm... " >&6; } | |
23065 | if test "${ac_cv_lib_m_j0f+set}" = set; then : | |
23066 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23067 | else |
23068 | ac_check_lib_save_LIBS=$LIBS | |
23069 | LIBS="-lm $LIBS" | |
b52ee437 | 23070 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23071 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23072 | fi |
cd9a469c | 23073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23074 | /* end confdefs.h. */ |
23075 | ||
cd9a469c | 23076 | /* Override any GCC internal prototype to avoid an error. |
23077 | Use char because int might match the return type of a GCC | |
23078 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23079 | #ifdef __cplusplus |
23080 | extern "C" | |
23081 | #endif | |
d213114b | 23082 | char j0f (); |
158e0e64 | 23083 | int |
23084 | main () | |
23085 | { | |
cd9a469c | 23086 | return j0f (); |
158e0e64 | 23087 | ; |
23088 | return 0; | |
23089 | } | |
23090 | _ACEOF | |
cd9a469c | 23091 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23092 | ac_cv_lib_m_j0f=yes |
158e0e64 | 23093 | else |
cd9a469c | 23094 | ac_cv_lib_m_j0f=no |
d213114b | 23095 | fi |
cd9a469c | 23096 | rm -f core conftest.err conftest.$ac_objext \ |
23097 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23098 | LIBS=$ac_check_lib_save_LIBS |
23099 | fi | |
cd9a469c | 23100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0f" >&5 |
23101 | $as_echo "$ac_cv_lib_m_j0f" >&6; } | |
23102 | if test "x$ac_cv_lib_m_j0f" = x""yes; then : | |
d213114b | 23103 | |
cd9a469c | 23104 | $as_echo "#define HAVE_J0F 1" >>confdefs.h |
d213114b | 23105 | |
23106 | fi | |
23107 | ||
cd9a469c | 23108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0 in -lm" >&5 |
23109 | $as_echo_n "checking for j0 in -lm... " >&6; } | |
23110 | if test "${ac_cv_lib_m_j0+set}" = set; then : | |
23111 | $as_echo_n "(cached) " >&6 | |
d213114b | 23112 | else |
23113 | ac_check_lib_save_LIBS=$LIBS | |
23114 | LIBS="-lm $LIBS" | |
23115 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 23116 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23117 | fi |
cd9a469c | 23118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23119 | /* end confdefs.h. */ |
23120 | ||
cd9a469c | 23121 | /* Override any GCC internal prototype to avoid an error. |
23122 | Use char because int might match the return type of a GCC | |
23123 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23124 | #ifdef __cplusplus |
23125 | extern "C" | |
23126 | #endif | |
d213114b | 23127 | char j0 (); |
23128 | int | |
23129 | main () | |
23130 | { | |
cd9a469c | 23131 | return j0 (); |
d213114b | 23132 | ; |
23133 | return 0; | |
23134 | } | |
23135 | _ACEOF | |
cd9a469c | 23136 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23137 | ac_cv_lib_m_j0=yes |
23138 | else | |
cd9a469c | 23139 | ac_cv_lib_m_j0=no |
d213114b | 23140 | fi |
cd9a469c | 23141 | rm -f core conftest.err conftest.$ac_objext \ |
23142 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23143 | LIBS=$ac_check_lib_save_LIBS |
23144 | fi | |
cd9a469c | 23145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0" >&5 |
23146 | $as_echo "$ac_cv_lib_m_j0" >&6; } | |
23147 | if test "x$ac_cv_lib_m_j0" = x""yes; then : | |
d213114b | 23148 | |
cd9a469c | 23149 | $as_echo "#define HAVE_J0 1" >>confdefs.h |
d213114b | 23150 | |
23151 | fi | |
23152 | ||
cd9a469c | 23153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l in -lm" >&5 |
23154 | $as_echo_n "checking for j0l in -lm... " >&6; } | |
23155 | if test "${ac_cv_lib_m_j0l+set}" = set; then : | |
23156 | $as_echo_n "(cached) " >&6 | |
d213114b | 23157 | else |
23158 | ac_check_lib_save_LIBS=$LIBS | |
23159 | LIBS="-lm $LIBS" | |
23160 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 23161 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23162 | fi |
cd9a469c | 23163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23164 | /* end confdefs.h. */ |
23165 | ||
cd9a469c | 23166 | /* Override any GCC internal prototype to avoid an error. |
23167 | Use char because int might match the return type of a GCC | |
23168 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23169 | #ifdef __cplusplus |
23170 | extern "C" | |
23171 | #endif | |
d213114b | 23172 | char j0l (); |
23173 | int | |
23174 | main () | |
23175 | { | |
cd9a469c | 23176 | return j0l (); |
d213114b | 23177 | ; |
23178 | return 0; | |
23179 | } | |
23180 | _ACEOF | |
cd9a469c | 23181 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23182 | ac_cv_lib_m_j0l=yes |
23183 | else | |
cd9a469c | 23184 | ac_cv_lib_m_j0l=no |
d213114b | 23185 | fi |
cd9a469c | 23186 | rm -f core conftest.err conftest.$ac_objext \ |
23187 | conftest$ac_exeext conftest.$ac_ext | |
d213114b | 23188 | LIBS=$ac_check_lib_save_LIBS |
23189 | fi | |
cd9a469c | 23190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0l" >&5 |
23191 | $as_echo "$ac_cv_lib_m_j0l" >&6; } | |
23192 | if test "x$ac_cv_lib_m_j0l" = x""yes; then : | |
d213114b | 23193 | |
cd9a469c | 23194 | $as_echo "#define HAVE_J0L 1" >>confdefs.h |
d213114b | 23195 | |
23196 | fi | |
23197 | ||
cd9a469c | 23198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f in -lm" >&5 |
23199 | $as_echo_n "checking for j1f in -lm... " >&6; } | |
23200 | if test "${ac_cv_lib_m_j1f+set}" = set; then : | |
23201 | $as_echo_n "(cached) " >&6 | |
d213114b | 23202 | else |
23203 | ac_check_lib_save_LIBS=$LIBS | |
23204 | LIBS="-lm $LIBS" | |
23205 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 23206 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
d213114b | 23207 | fi |
cd9a469c | 23208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d213114b | 23209 | /* end confdefs.h. */ |
23210 | ||
cd9a469c | 23211 | /* Override any GCC internal prototype to avoid an error. |
23212 | Use char because int might match the return type of a GCC | |
23213 | builtin and then its argument prototype would still apply. */ | |
d213114b | 23214 | #ifdef __cplusplus |
23215 | extern "C" | |
23216 | #endif | |
d213114b | 23217 | char j1f (); |
23218 | int | |
23219 | main () | |
23220 | { | |
cd9a469c | 23221 | return j1f (); |
d213114b | 23222 | ; |
23223 | return 0; | |
23224 | } | |
23225 | _ACEOF | |
cd9a469c | 23226 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23227 | ac_cv_lib_m_j1f=yes |
23228 | else | |
cd9a469c | 23229 | ac_cv_lib_m_j1f=no |
158e0e64 | 23230 | fi |
cd9a469c | 23231 | rm -f core conftest.err conftest.$ac_objext \ |
23232 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23233 | LIBS=$ac_check_lib_save_LIBS |
23234 | fi | |
cd9a469c | 23235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1f" >&5 |
23236 | $as_echo "$ac_cv_lib_m_j1f" >&6; } | |
23237 | if test "x$ac_cv_lib_m_j1f" = x""yes; then : | |
158e0e64 | 23238 | |
cd9a469c | 23239 | $as_echo "#define HAVE_J1F 1" >>confdefs.h |
158e0e64 | 23240 | |
23241 | fi | |
23242 | ||
cd9a469c | 23243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1 in -lm" >&5 |
23244 | $as_echo_n "checking for j1 in -lm... " >&6; } | |
23245 | if test "${ac_cv_lib_m_j1+set}" = set; then : | |
23246 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23247 | else |
23248 | ac_check_lib_save_LIBS=$LIBS | |
23249 | LIBS="-lm $LIBS" | |
b52ee437 | 23250 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23251 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23252 | fi |
cd9a469c | 23253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23254 | /* end confdefs.h. */ |
23255 | ||
cd9a469c | 23256 | /* Override any GCC internal prototype to avoid an error. |
23257 | Use char because int might match the return type of a GCC | |
23258 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23259 | #ifdef __cplusplus |
23260 | extern "C" | |
23261 | #endif | |
d213114b | 23262 | char j1 (); |
158e0e64 | 23263 | int |
23264 | main () | |
23265 | { | |
cd9a469c | 23266 | return j1 (); |
158e0e64 | 23267 | ; |
23268 | return 0; | |
23269 | } | |
23270 | _ACEOF | |
cd9a469c | 23271 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23272 | ac_cv_lib_m_j1=yes |
158e0e64 | 23273 | else |
cd9a469c | 23274 | ac_cv_lib_m_j1=no |
158e0e64 | 23275 | fi |
cd9a469c | 23276 | rm -f core conftest.err conftest.$ac_objext \ |
23277 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23278 | LIBS=$ac_check_lib_save_LIBS |
23279 | fi | |
cd9a469c | 23280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1" >&5 |
23281 | $as_echo "$ac_cv_lib_m_j1" >&6; } | |
23282 | if test "x$ac_cv_lib_m_j1" = x""yes; then : | |
158e0e64 | 23283 | |
cd9a469c | 23284 | $as_echo "#define HAVE_J1 1" >>confdefs.h |
158e0e64 | 23285 | |
23286 | fi | |
23287 | ||
cd9a469c | 23288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l in -lm" >&5 |
23289 | $as_echo_n "checking for j1l in -lm... " >&6; } | |
23290 | if test "${ac_cv_lib_m_j1l+set}" = set; then : | |
23291 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23292 | else |
23293 | ac_check_lib_save_LIBS=$LIBS | |
23294 | LIBS="-lm $LIBS" | |
b52ee437 | 23295 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23296 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23297 | fi |
cd9a469c | 23298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23299 | /* end confdefs.h. */ |
23300 | ||
cd9a469c | 23301 | /* Override any GCC internal prototype to avoid an error. |
23302 | Use char because int might match the return type of a GCC | |
23303 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23304 | #ifdef __cplusplus |
23305 | extern "C" | |
23306 | #endif | |
d213114b | 23307 | char j1l (); |
158e0e64 | 23308 | int |
23309 | main () | |
23310 | { | |
cd9a469c | 23311 | return j1l (); |
158e0e64 | 23312 | ; |
23313 | return 0; | |
23314 | } | |
23315 | _ACEOF | |
cd9a469c | 23316 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23317 | ac_cv_lib_m_j1l=yes |
158e0e64 | 23318 | else |
cd9a469c | 23319 | ac_cv_lib_m_j1l=no |
158e0e64 | 23320 | fi |
cd9a469c | 23321 | rm -f core conftest.err conftest.$ac_objext \ |
23322 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23323 | LIBS=$ac_check_lib_save_LIBS |
23324 | fi | |
cd9a469c | 23325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1l" >&5 |
23326 | $as_echo "$ac_cv_lib_m_j1l" >&6; } | |
23327 | if test "x$ac_cv_lib_m_j1l" = x""yes; then : | |
158e0e64 | 23328 | |
cd9a469c | 23329 | $as_echo "#define HAVE_J1L 1" >>confdefs.h |
158e0e64 | 23330 | |
23331 | fi | |
23332 | ||
cd9a469c | 23333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf in -lm" >&5 |
23334 | $as_echo_n "checking for jnf in -lm... " >&6; } | |
23335 | if test "${ac_cv_lib_m_jnf+set}" = set; then : | |
23336 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23337 | else |
23338 | ac_check_lib_save_LIBS=$LIBS | |
23339 | LIBS="-lm $LIBS" | |
b52ee437 | 23340 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23341 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23342 | fi |
cd9a469c | 23343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23344 | /* end confdefs.h. */ |
23345 | ||
cd9a469c | 23346 | /* Override any GCC internal prototype to avoid an error. |
23347 | Use char because int might match the return type of a GCC | |
23348 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23349 | #ifdef __cplusplus |
23350 | extern "C" | |
23351 | #endif | |
d213114b | 23352 | char jnf (); |
158e0e64 | 23353 | int |
23354 | main () | |
23355 | { | |
cd9a469c | 23356 | return jnf (); |
158e0e64 | 23357 | ; |
23358 | return 0; | |
23359 | } | |
23360 | _ACEOF | |
cd9a469c | 23361 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23362 | ac_cv_lib_m_jnf=yes |
158e0e64 | 23363 | else |
cd9a469c | 23364 | ac_cv_lib_m_jnf=no |
158e0e64 | 23365 | fi |
cd9a469c | 23366 | rm -f core conftest.err conftest.$ac_objext \ |
23367 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23368 | LIBS=$ac_check_lib_save_LIBS |
23369 | fi | |
cd9a469c | 23370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnf" >&5 |
23371 | $as_echo "$ac_cv_lib_m_jnf" >&6; } | |
23372 | if test "x$ac_cv_lib_m_jnf" = x""yes; then : | |
158e0e64 | 23373 | |
cd9a469c | 23374 | $as_echo "#define HAVE_JNF 1" >>confdefs.h |
158e0e64 | 23375 | |
23376 | fi | |
23377 | ||
cd9a469c | 23378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn in -lm" >&5 |
23379 | $as_echo_n "checking for jn in -lm... " >&6; } | |
23380 | if test "${ac_cv_lib_m_jn+set}" = set; then : | |
23381 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23382 | else |
23383 | ac_check_lib_save_LIBS=$LIBS | |
23384 | LIBS="-lm $LIBS" | |
b52ee437 | 23385 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23386 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23387 | fi |
cd9a469c | 23388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23389 | /* end confdefs.h. */ |
23390 | ||
cd9a469c | 23391 | /* Override any GCC internal prototype to avoid an error. |
23392 | Use char because int might match the return type of a GCC | |
23393 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23394 | #ifdef __cplusplus |
23395 | extern "C" | |
23396 | #endif | |
d213114b | 23397 | char jn (); |
158e0e64 | 23398 | int |
23399 | main () | |
23400 | { | |
cd9a469c | 23401 | return jn (); |
158e0e64 | 23402 | ; |
23403 | return 0; | |
23404 | } | |
23405 | _ACEOF | |
cd9a469c | 23406 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23407 | ac_cv_lib_m_jn=yes |
158e0e64 | 23408 | else |
cd9a469c | 23409 | ac_cv_lib_m_jn=no |
158e0e64 | 23410 | fi |
cd9a469c | 23411 | rm -f core conftest.err conftest.$ac_objext \ |
23412 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23413 | LIBS=$ac_check_lib_save_LIBS |
23414 | fi | |
cd9a469c | 23415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jn" >&5 |
23416 | $as_echo "$ac_cv_lib_m_jn" >&6; } | |
23417 | if test "x$ac_cv_lib_m_jn" = x""yes; then : | |
158e0e64 | 23418 | |
cd9a469c | 23419 | $as_echo "#define HAVE_JN 1" >>confdefs.h |
158e0e64 | 23420 | |
23421 | fi | |
23422 | ||
cd9a469c | 23423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl in -lm" >&5 |
23424 | $as_echo_n "checking for jnl in -lm... " >&6; } | |
23425 | if test "${ac_cv_lib_m_jnl+set}" = set; then : | |
23426 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23427 | else |
23428 | ac_check_lib_save_LIBS=$LIBS | |
23429 | LIBS="-lm $LIBS" | |
b52ee437 | 23430 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23431 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23432 | fi |
cd9a469c | 23433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23434 | /* end confdefs.h. */ |
23435 | ||
cd9a469c | 23436 | /* Override any GCC internal prototype to avoid an error. |
23437 | Use char because int might match the return type of a GCC | |
23438 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23439 | #ifdef __cplusplus |
23440 | extern "C" | |
23441 | #endif | |
d213114b | 23442 | char jnl (); |
158e0e64 | 23443 | int |
23444 | main () | |
23445 | { | |
cd9a469c | 23446 | return jnl (); |
158e0e64 | 23447 | ; |
23448 | return 0; | |
23449 | } | |
23450 | _ACEOF | |
cd9a469c | 23451 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23452 | ac_cv_lib_m_jnl=yes |
158e0e64 | 23453 | else |
cd9a469c | 23454 | ac_cv_lib_m_jnl=no |
158e0e64 | 23455 | fi |
cd9a469c | 23456 | rm -f core conftest.err conftest.$ac_objext \ |
23457 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23458 | LIBS=$ac_check_lib_save_LIBS |
23459 | fi | |
cd9a469c | 23460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnl" >&5 |
23461 | $as_echo "$ac_cv_lib_m_jnl" >&6; } | |
23462 | if test "x$ac_cv_lib_m_jnl" = x""yes; then : | |
158e0e64 | 23463 | |
cd9a469c | 23464 | $as_echo "#define HAVE_JNL 1" >>confdefs.h |
158e0e64 | 23465 | |
23466 | fi | |
23467 | ||
cd9a469c | 23468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f in -lm" >&5 |
23469 | $as_echo_n "checking for y0f in -lm... " >&6; } | |
23470 | if test "${ac_cv_lib_m_y0f+set}" = set; then : | |
23471 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23472 | else |
23473 | ac_check_lib_save_LIBS=$LIBS | |
23474 | LIBS="-lm $LIBS" | |
b52ee437 | 23475 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23476 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23477 | fi |
cd9a469c | 23478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23479 | /* end confdefs.h. */ |
23480 | ||
cd9a469c | 23481 | /* Override any GCC internal prototype to avoid an error. |
23482 | Use char because int might match the return type of a GCC | |
23483 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23484 | #ifdef __cplusplus |
23485 | extern "C" | |
23486 | #endif | |
d213114b | 23487 | char y0f (); |
158e0e64 | 23488 | int |
23489 | main () | |
23490 | { | |
cd9a469c | 23491 | return y0f (); |
158e0e64 | 23492 | ; |
23493 | return 0; | |
23494 | } | |
23495 | _ACEOF | |
cd9a469c | 23496 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23497 | ac_cv_lib_m_y0f=yes |
158e0e64 | 23498 | else |
cd9a469c | 23499 | ac_cv_lib_m_y0f=no |
158e0e64 | 23500 | fi |
cd9a469c | 23501 | rm -f core conftest.err conftest.$ac_objext \ |
23502 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23503 | LIBS=$ac_check_lib_save_LIBS |
23504 | fi | |
cd9a469c | 23505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0f" >&5 |
23506 | $as_echo "$ac_cv_lib_m_y0f" >&6; } | |
23507 | if test "x$ac_cv_lib_m_y0f" = x""yes; then : | |
158e0e64 | 23508 | |
cd9a469c | 23509 | $as_echo "#define HAVE_Y0F 1" >>confdefs.h |
158e0e64 | 23510 | |
23511 | fi | |
23512 | ||
cd9a469c | 23513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0 in -lm" >&5 |
23514 | $as_echo_n "checking for y0 in -lm... " >&6; } | |
23515 | if test "${ac_cv_lib_m_y0+set}" = set; then : | |
23516 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23517 | else |
23518 | ac_check_lib_save_LIBS=$LIBS | |
23519 | LIBS="-lm $LIBS" | |
b52ee437 | 23520 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23521 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23522 | fi |
cd9a469c | 23523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23524 | /* end confdefs.h. */ |
23525 | ||
cd9a469c | 23526 | /* Override any GCC internal prototype to avoid an error. |
23527 | Use char because int might match the return type of a GCC | |
23528 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23529 | #ifdef __cplusplus |
23530 | extern "C" | |
23531 | #endif | |
d213114b | 23532 | char y0 (); |
158e0e64 | 23533 | int |
23534 | main () | |
23535 | { | |
cd9a469c | 23536 | return y0 (); |
158e0e64 | 23537 | ; |
23538 | return 0; | |
23539 | } | |
23540 | _ACEOF | |
cd9a469c | 23541 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23542 | ac_cv_lib_m_y0=yes |
158e0e64 | 23543 | else |
cd9a469c | 23544 | ac_cv_lib_m_y0=no |
158e0e64 | 23545 | fi |
cd9a469c | 23546 | rm -f core conftest.err conftest.$ac_objext \ |
23547 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23548 | LIBS=$ac_check_lib_save_LIBS |
23549 | fi | |
cd9a469c | 23550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0" >&5 |
23551 | $as_echo "$ac_cv_lib_m_y0" >&6; } | |
23552 | if test "x$ac_cv_lib_m_y0" = x""yes; then : | |
158e0e64 | 23553 | |
cd9a469c | 23554 | $as_echo "#define HAVE_Y0 1" >>confdefs.h |
158e0e64 | 23555 | |
23556 | fi | |
23557 | ||
cd9a469c | 23558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l in -lm" >&5 |
23559 | $as_echo_n "checking for y0l in -lm... " >&6; } | |
23560 | if test "${ac_cv_lib_m_y0l+set}" = set; then : | |
23561 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23562 | else |
23563 | ac_check_lib_save_LIBS=$LIBS | |
23564 | LIBS="-lm $LIBS" | |
b52ee437 | 23565 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23566 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23567 | fi |
cd9a469c | 23568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23569 | /* end confdefs.h. */ |
23570 | ||
cd9a469c | 23571 | /* Override any GCC internal prototype to avoid an error. |
23572 | Use char because int might match the return type of a GCC | |
23573 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23574 | #ifdef __cplusplus |
23575 | extern "C" | |
23576 | #endif | |
d213114b | 23577 | char y0l (); |
158e0e64 | 23578 | int |
23579 | main () | |
23580 | { | |
cd9a469c | 23581 | return y0l (); |
158e0e64 | 23582 | ; |
23583 | return 0; | |
23584 | } | |
23585 | _ACEOF | |
cd9a469c | 23586 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23587 | ac_cv_lib_m_y0l=yes |
158e0e64 | 23588 | else |
cd9a469c | 23589 | ac_cv_lib_m_y0l=no |
158e0e64 | 23590 | fi |
cd9a469c | 23591 | rm -f core conftest.err conftest.$ac_objext \ |
23592 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23593 | LIBS=$ac_check_lib_save_LIBS |
23594 | fi | |
cd9a469c | 23595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0l" >&5 |
23596 | $as_echo "$ac_cv_lib_m_y0l" >&6; } | |
23597 | if test "x$ac_cv_lib_m_y0l" = x""yes; then : | |
158e0e64 | 23598 | |
cd9a469c | 23599 | $as_echo "#define HAVE_Y0L 1" >>confdefs.h |
158e0e64 | 23600 | |
23601 | fi | |
23602 | ||
cd9a469c | 23603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f in -lm" >&5 |
23604 | $as_echo_n "checking for y1f in -lm... " >&6; } | |
23605 | if test "${ac_cv_lib_m_y1f+set}" = set; then : | |
23606 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23607 | else |
23608 | ac_check_lib_save_LIBS=$LIBS | |
23609 | LIBS="-lm $LIBS" | |
b52ee437 | 23610 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23611 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23612 | fi |
cd9a469c | 23613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23614 | /* end confdefs.h. */ |
23615 | ||
cd9a469c | 23616 | /* Override any GCC internal prototype to avoid an error. |
23617 | Use char because int might match the return type of a GCC | |
23618 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23619 | #ifdef __cplusplus |
23620 | extern "C" | |
23621 | #endif | |
d213114b | 23622 | char y1f (); |
158e0e64 | 23623 | int |
23624 | main () | |
23625 | { | |
cd9a469c | 23626 | return y1f (); |
158e0e64 | 23627 | ; |
23628 | return 0; | |
23629 | } | |
23630 | _ACEOF | |
cd9a469c | 23631 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23632 | ac_cv_lib_m_y1f=yes |
158e0e64 | 23633 | else |
cd9a469c | 23634 | ac_cv_lib_m_y1f=no |
158e0e64 | 23635 | fi |
cd9a469c | 23636 | rm -f core conftest.err conftest.$ac_objext \ |
23637 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23638 | LIBS=$ac_check_lib_save_LIBS |
23639 | fi | |
cd9a469c | 23640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1f" >&5 |
23641 | $as_echo "$ac_cv_lib_m_y1f" >&6; } | |
23642 | if test "x$ac_cv_lib_m_y1f" = x""yes; then : | |
158e0e64 | 23643 | |
cd9a469c | 23644 | $as_echo "#define HAVE_Y1F 1" >>confdefs.h |
158e0e64 | 23645 | |
23646 | fi | |
23647 | ||
cd9a469c | 23648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1 in -lm" >&5 |
23649 | $as_echo_n "checking for y1 in -lm... " >&6; } | |
23650 | if test "${ac_cv_lib_m_y1+set}" = set; then : | |
23651 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23652 | else |
23653 | ac_check_lib_save_LIBS=$LIBS | |
23654 | LIBS="-lm $LIBS" | |
b52ee437 | 23655 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23656 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23657 | fi |
cd9a469c | 23658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23659 | /* end confdefs.h. */ |
23660 | ||
cd9a469c | 23661 | /* Override any GCC internal prototype to avoid an error. |
23662 | Use char because int might match the return type of a GCC | |
23663 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23664 | #ifdef __cplusplus |
23665 | extern "C" | |
23666 | #endif | |
d213114b | 23667 | char y1 (); |
158e0e64 | 23668 | int |
23669 | main () | |
23670 | { | |
cd9a469c | 23671 | return y1 (); |
158e0e64 | 23672 | ; |
23673 | return 0; | |
23674 | } | |
23675 | _ACEOF | |
cd9a469c | 23676 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23677 | ac_cv_lib_m_y1=yes |
158e0e64 | 23678 | else |
cd9a469c | 23679 | ac_cv_lib_m_y1=no |
158e0e64 | 23680 | fi |
cd9a469c | 23681 | rm -f core conftest.err conftest.$ac_objext \ |
23682 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23683 | LIBS=$ac_check_lib_save_LIBS |
23684 | fi | |
cd9a469c | 23685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1" >&5 |
23686 | $as_echo "$ac_cv_lib_m_y1" >&6; } | |
23687 | if test "x$ac_cv_lib_m_y1" = x""yes; then : | |
158e0e64 | 23688 | |
cd9a469c | 23689 | $as_echo "#define HAVE_Y1 1" >>confdefs.h |
158e0e64 | 23690 | |
23691 | fi | |
23692 | ||
cd9a469c | 23693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l in -lm" >&5 |
23694 | $as_echo_n "checking for y1l in -lm... " >&6; } | |
23695 | if test "${ac_cv_lib_m_y1l+set}" = set; then : | |
23696 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23697 | else |
23698 | ac_check_lib_save_LIBS=$LIBS | |
23699 | LIBS="-lm $LIBS" | |
b52ee437 | 23700 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23701 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23702 | fi |
cd9a469c | 23703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23704 | /* end confdefs.h. */ |
23705 | ||
cd9a469c | 23706 | /* Override any GCC internal prototype to avoid an error. |
23707 | Use char because int might match the return type of a GCC | |
23708 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23709 | #ifdef __cplusplus |
23710 | extern "C" | |
23711 | #endif | |
d213114b | 23712 | char y1l (); |
158e0e64 | 23713 | int |
23714 | main () | |
23715 | { | |
cd9a469c | 23716 | return y1l (); |
158e0e64 | 23717 | ; |
23718 | return 0; | |
23719 | } | |
23720 | _ACEOF | |
cd9a469c | 23721 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23722 | ac_cv_lib_m_y1l=yes |
158e0e64 | 23723 | else |
cd9a469c | 23724 | ac_cv_lib_m_y1l=no |
158e0e64 | 23725 | fi |
cd9a469c | 23726 | rm -f core conftest.err conftest.$ac_objext \ |
23727 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23728 | LIBS=$ac_check_lib_save_LIBS |
23729 | fi | |
cd9a469c | 23730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1l" >&5 |
23731 | $as_echo "$ac_cv_lib_m_y1l" >&6; } | |
23732 | if test "x$ac_cv_lib_m_y1l" = x""yes; then : | |
158e0e64 | 23733 | |
cd9a469c | 23734 | $as_echo "#define HAVE_Y1L 1" >>confdefs.h |
158e0e64 | 23735 | |
23736 | fi | |
23737 | ||
cd9a469c | 23738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf in -lm" >&5 |
23739 | $as_echo_n "checking for ynf in -lm... " >&6; } | |
23740 | if test "${ac_cv_lib_m_ynf+set}" = set; then : | |
23741 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23742 | else |
23743 | ac_check_lib_save_LIBS=$LIBS | |
23744 | LIBS="-lm $LIBS" | |
b52ee437 | 23745 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23746 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23747 | fi |
cd9a469c | 23748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23749 | /* end confdefs.h. */ |
23750 | ||
cd9a469c | 23751 | /* Override any GCC internal prototype to avoid an error. |
23752 | Use char because int might match the return type of a GCC | |
23753 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23754 | #ifdef __cplusplus |
23755 | extern "C" | |
23756 | #endif | |
d213114b | 23757 | char ynf (); |
158e0e64 | 23758 | int |
23759 | main () | |
23760 | { | |
cd9a469c | 23761 | return ynf (); |
158e0e64 | 23762 | ; |
23763 | return 0; | |
23764 | } | |
23765 | _ACEOF | |
cd9a469c | 23766 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23767 | ac_cv_lib_m_ynf=yes |
158e0e64 | 23768 | else |
cd9a469c | 23769 | ac_cv_lib_m_ynf=no |
158e0e64 | 23770 | fi |
cd9a469c | 23771 | rm -f core conftest.err conftest.$ac_objext \ |
23772 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23773 | LIBS=$ac_check_lib_save_LIBS |
23774 | fi | |
cd9a469c | 23775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynf" >&5 |
23776 | $as_echo "$ac_cv_lib_m_ynf" >&6; } | |
23777 | if test "x$ac_cv_lib_m_ynf" = x""yes; then : | |
158e0e64 | 23778 | |
cd9a469c | 23779 | $as_echo "#define HAVE_YNF 1" >>confdefs.h |
158e0e64 | 23780 | |
23781 | fi | |
23782 | ||
cd9a469c | 23783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn in -lm" >&5 |
23784 | $as_echo_n "checking for yn in -lm... " >&6; } | |
23785 | if test "${ac_cv_lib_m_yn+set}" = set; then : | |
23786 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23787 | else |
23788 | ac_check_lib_save_LIBS=$LIBS | |
23789 | LIBS="-lm $LIBS" | |
b52ee437 | 23790 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23791 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23792 | fi |
cd9a469c | 23793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23794 | /* end confdefs.h. */ |
23795 | ||
cd9a469c | 23796 | /* Override any GCC internal prototype to avoid an error. |
23797 | Use char because int might match the return type of a GCC | |
23798 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23799 | #ifdef __cplusplus |
23800 | extern "C" | |
23801 | #endif | |
158e0e64 | 23802 | char yn (); |
23803 | int | |
23804 | main () | |
23805 | { | |
cd9a469c | 23806 | return yn (); |
158e0e64 | 23807 | ; |
23808 | return 0; | |
23809 | } | |
23810 | _ACEOF | |
cd9a469c | 23811 | if ac_fn_c_try_link "$LINENO"; then : |
158e0e64 | 23812 | ac_cv_lib_m_yn=yes |
23813 | else | |
cd9a469c | 23814 | ac_cv_lib_m_yn=no |
158e0e64 | 23815 | fi |
cd9a469c | 23816 | rm -f core conftest.err conftest.$ac_objext \ |
23817 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23818 | LIBS=$ac_check_lib_save_LIBS |
23819 | fi | |
cd9a469c | 23820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_yn" >&5 |
23821 | $as_echo "$ac_cv_lib_m_yn" >&6; } | |
23822 | if test "x$ac_cv_lib_m_yn" = x""yes; then : | |
158e0e64 | 23823 | |
cd9a469c | 23824 | $as_echo "#define HAVE_YN 1" >>confdefs.h |
158e0e64 | 23825 | |
23826 | fi | |
23827 | ||
cd9a469c | 23828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl in -lm" >&5 |
23829 | $as_echo_n "checking for ynl in -lm... " >&6; } | |
23830 | if test "${ac_cv_lib_m_ynl+set}" = set; then : | |
23831 | $as_echo_n "(cached) " >&6 | |
158e0e64 | 23832 | else |
23833 | ac_check_lib_save_LIBS=$LIBS | |
23834 | LIBS="-lm $LIBS" | |
b52ee437 | 23835 | if test x$gcc_no_link = xyes; then |
cd9a469c | 23836 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 23837 | fi |
cd9a469c | 23838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
158e0e64 | 23839 | /* end confdefs.h. */ |
23840 | ||
cd9a469c | 23841 | /* Override any GCC internal prototype to avoid an error. |
23842 | Use char because int might match the return type of a GCC | |
23843 | builtin and then its argument prototype would still apply. */ | |
158e0e64 | 23844 | #ifdef __cplusplus |
23845 | extern "C" | |
23846 | #endif | |
d213114b | 23847 | char ynl (); |
158e0e64 | 23848 | int |
23849 | main () | |
23850 | { | |
cd9a469c | 23851 | return ynl (); |
158e0e64 | 23852 | ; |
23853 | return 0; | |
23854 | } | |
23855 | _ACEOF | |
cd9a469c | 23856 | if ac_fn_c_try_link "$LINENO"; then : |
d213114b | 23857 | ac_cv_lib_m_ynl=yes |
158e0e64 | 23858 | else |
cd9a469c | 23859 | ac_cv_lib_m_ynl=no |
158e0e64 | 23860 | fi |
cd9a469c | 23861 | rm -f core conftest.err conftest.$ac_objext \ |
23862 | conftest$ac_exeext conftest.$ac_ext | |
158e0e64 | 23863 | LIBS=$ac_check_lib_save_LIBS |
23864 | fi | |
cd9a469c | 23865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynl" >&5 |
23866 | $as_echo "$ac_cv_lib_m_ynl" >&6; } | |
23867 | if test "x$ac_cv_lib_m_ynl" = x""yes; then : | |
158e0e64 | 23868 | |
cd9a469c | 23869 | $as_echo "#define HAVE_YNL 1" >>confdefs.h |
158e0e64 | 23870 | |
23871 | fi | |
23872 | ||
cd9a469c | 23873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma in -lm" >&5 |
23874 | $as_echo_n "checking for tgamma in -lm... " >&6; } | |
23875 | if test "${ac_cv_lib_m_tgamma+set}" = set; then : | |
23876 | $as_echo_n "(cached) " >&6 | |
6d516d29 | 23877 | else |
23878 | ac_check_lib_save_LIBS=$LIBS | |
23879 | LIBS="-lm $LIBS" | |
23880 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 23881 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 23882 | fi |
cd9a469c | 23883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 23884 | /* end confdefs.h. */ |
23885 | ||
cd9a469c | 23886 | /* Override any GCC internal prototype to avoid an error. |
23887 | Use char because int might match the return type of a GCC | |
23888 | builtin and then its argument prototype would still apply. */ | |
6d516d29 | 23889 | #ifdef __cplusplus |
23890 | extern "C" | |
23891 | #endif | |
6d516d29 | 23892 | char tgamma (); |
23893 | int | |
23894 | main () | |
23895 | { | |
cd9a469c | 23896 | return tgamma (); |
6d516d29 | 23897 | ; |
23898 | return 0; | |
23899 | } | |
23900 | _ACEOF | |
cd9a469c | 23901 | if ac_fn_c_try_link "$LINENO"; then : |
6d516d29 | 23902 | ac_cv_lib_m_tgamma=yes |
23903 | else | |
cd9a469c | 23904 | ac_cv_lib_m_tgamma=no |
6d516d29 | 23905 | fi |
cd9a469c | 23906 | rm -f core conftest.err conftest.$ac_objext \ |
23907 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 23908 | LIBS=$ac_check_lib_save_LIBS |
23909 | fi | |
cd9a469c | 23910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgamma" >&5 |
23911 | $as_echo "$ac_cv_lib_m_tgamma" >&6; } | |
23912 | if test "x$ac_cv_lib_m_tgamma" = x""yes; then : | |
6d516d29 | 23913 | |
cd9a469c | 23914 | $as_echo "#define HAVE_TGAMMA 1" >>confdefs.h |
6d516d29 | 23915 | |
23916 | fi | |
23917 | ||
cd9a469c | 23918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf in -lm" >&5 |
23919 | $as_echo_n "checking for tgammaf in -lm... " >&6; } | |
23920 | if test "${ac_cv_lib_m_tgammaf+set}" = set; then : | |
23921 | $as_echo_n "(cached) " >&6 | |
6d516d29 | 23922 | else |
23923 | ac_check_lib_save_LIBS=$LIBS | |
23924 | LIBS="-lm $LIBS" | |
23925 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 23926 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 23927 | fi |
cd9a469c | 23928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 23929 | /* end confdefs.h. */ |
23930 | ||
cd9a469c | 23931 | /* Override any GCC internal prototype to avoid an error. |
23932 | Use char because int might match the return type of a GCC | |
23933 | builtin and then its argument prototype would still apply. */ | |
6d516d29 | 23934 | #ifdef __cplusplus |
23935 | extern "C" | |
23936 | #endif | |
6d516d29 | 23937 | char tgammaf (); |
23938 | int | |
23939 | main () | |
23940 | { | |
cd9a469c | 23941 | return tgammaf (); |
6d516d29 | 23942 | ; |
23943 | return 0; | |
23944 | } | |
23945 | _ACEOF | |
cd9a469c | 23946 | if ac_fn_c_try_link "$LINENO"; then : |
6d516d29 | 23947 | ac_cv_lib_m_tgammaf=yes |
23948 | else | |
cd9a469c | 23949 | ac_cv_lib_m_tgammaf=no |
6d516d29 | 23950 | fi |
cd9a469c | 23951 | rm -f core conftest.err conftest.$ac_objext \ |
23952 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 23953 | LIBS=$ac_check_lib_save_LIBS |
23954 | fi | |
cd9a469c | 23955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammaf" >&5 |
23956 | $as_echo "$ac_cv_lib_m_tgammaf" >&6; } | |
23957 | if test "x$ac_cv_lib_m_tgammaf" = x""yes; then : | |
6d516d29 | 23958 | |
cd9a469c | 23959 | $as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h |
6d516d29 | 23960 | |
23961 | fi | |
23962 | ||
cd9a469c | 23963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal in -lm" >&5 |
23964 | $as_echo_n "checking for tgammal in -lm... " >&6; } | |
23965 | if test "${ac_cv_lib_m_tgammal+set}" = set; then : | |
23966 | $as_echo_n "(cached) " >&6 | |
6d516d29 | 23967 | else |
23968 | ac_check_lib_save_LIBS=$LIBS | |
23969 | LIBS="-lm $LIBS" | |
23970 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 23971 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 23972 | fi |
cd9a469c | 23973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 23974 | /* end confdefs.h. */ |
23975 | ||
cd9a469c | 23976 | /* Override any GCC internal prototype to avoid an error. |
23977 | Use char because int might match the return type of a GCC | |
23978 | builtin and then its argument prototype would still apply. */ | |
6d516d29 | 23979 | #ifdef __cplusplus |
23980 | extern "C" | |
23981 | #endif | |
6d516d29 | 23982 | char tgammal (); |
23983 | int | |
23984 | main () | |
23985 | { | |
cd9a469c | 23986 | return tgammal (); |
6d516d29 | 23987 | ; |
23988 | return 0; | |
23989 | } | |
23990 | _ACEOF | |
cd9a469c | 23991 | if ac_fn_c_try_link "$LINENO"; then : |
6d516d29 | 23992 | ac_cv_lib_m_tgammal=yes |
23993 | else | |
cd9a469c | 23994 | ac_cv_lib_m_tgammal=no |
6d516d29 | 23995 | fi |
cd9a469c | 23996 | rm -f core conftest.err conftest.$ac_objext \ |
23997 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 23998 | LIBS=$ac_check_lib_save_LIBS |
23999 | fi | |
cd9a469c | 24000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammal" >&5 |
24001 | $as_echo "$ac_cv_lib_m_tgammal" >&6; } | |
24002 | if test "x$ac_cv_lib_m_tgammal" = x""yes; then : | |
6d516d29 | 24003 | |
cd9a469c | 24004 | $as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h |
6d516d29 | 24005 | |
24006 | fi | |
24007 | ||
cd9a469c | 24008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma in -lm" >&5 |
24009 | $as_echo_n "checking for lgamma in -lm... " >&6; } | |
24010 | if test "${ac_cv_lib_m_lgamma+set}" = set; then : | |
24011 | $as_echo_n "(cached) " >&6 | |
6d516d29 | 24012 | else |
24013 | ac_check_lib_save_LIBS=$LIBS | |
24014 | LIBS="-lm $LIBS" | |
24015 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 24016 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24017 | fi |
cd9a469c | 24018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24019 | /* end confdefs.h. */ |
24020 | ||
cd9a469c | 24021 | /* Override any GCC internal prototype to avoid an error. |
24022 | Use char because int might match the return type of a GCC | |
24023 | builtin and then its argument prototype would still apply. */ | |
6d516d29 | 24024 | #ifdef __cplusplus |
24025 | extern "C" | |
24026 | #endif | |
6d516d29 | 24027 | char lgamma (); |
24028 | int | |
24029 | main () | |
24030 | { | |
cd9a469c | 24031 | return lgamma (); |
6d516d29 | 24032 | ; |
24033 | return 0; | |
24034 | } | |
24035 | _ACEOF | |
cd9a469c | 24036 | if ac_fn_c_try_link "$LINENO"; then : |
6d516d29 | 24037 | ac_cv_lib_m_lgamma=yes |
24038 | else | |
cd9a469c | 24039 | ac_cv_lib_m_lgamma=no |
6d516d29 | 24040 | fi |
cd9a469c | 24041 | rm -f core conftest.err conftest.$ac_objext \ |
24042 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24043 | LIBS=$ac_check_lib_save_LIBS |
24044 | fi | |
cd9a469c | 24045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgamma" >&5 |
24046 | $as_echo "$ac_cv_lib_m_lgamma" >&6; } | |
24047 | if test "x$ac_cv_lib_m_lgamma" = x""yes; then : | |
6d516d29 | 24048 | |
cd9a469c | 24049 | $as_echo "#define HAVE_LGAMMA 1" >>confdefs.h |
6d516d29 | 24050 | |
24051 | fi | |
24052 | ||
cd9a469c | 24053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf in -lm" >&5 |
24054 | $as_echo_n "checking for lgammaf in -lm... " >&6; } | |
24055 | if test "${ac_cv_lib_m_lgammaf+set}" = set; then : | |
24056 | $as_echo_n "(cached) " >&6 | |
6d516d29 | 24057 | else |
24058 | ac_check_lib_save_LIBS=$LIBS | |
24059 | LIBS="-lm $LIBS" | |
24060 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 24061 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24062 | fi |
cd9a469c | 24063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24064 | /* end confdefs.h. */ |
24065 | ||
cd9a469c | 24066 | /* Override any GCC internal prototype to avoid an error. |
24067 | Use char because int might match the return type of a GCC | |
24068 | builtin and then its argument prototype would still apply. */ | |
6d516d29 | 24069 | #ifdef __cplusplus |
24070 | extern "C" | |
24071 | #endif | |
6d516d29 | 24072 | char lgammaf (); |
24073 | int | |
24074 | main () | |
24075 | { | |
cd9a469c | 24076 | return lgammaf (); |
6d516d29 | 24077 | ; |
24078 | return 0; | |
24079 | } | |
24080 | _ACEOF | |
cd9a469c | 24081 | if ac_fn_c_try_link "$LINENO"; then : |
6d516d29 | 24082 | ac_cv_lib_m_lgammaf=yes |
24083 | else | |
cd9a469c | 24084 | ac_cv_lib_m_lgammaf=no |
6d516d29 | 24085 | fi |
cd9a469c | 24086 | rm -f core conftest.err conftest.$ac_objext \ |
24087 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24088 | LIBS=$ac_check_lib_save_LIBS |
24089 | fi | |
cd9a469c | 24090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammaf" >&5 |
24091 | $as_echo "$ac_cv_lib_m_lgammaf" >&6; } | |
24092 | if test "x$ac_cv_lib_m_lgammaf" = x""yes; then : | |
6d516d29 | 24093 | |
cd9a469c | 24094 | $as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h |
6d516d29 | 24095 | |
24096 | fi | |
24097 | ||
cd9a469c | 24098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal in -lm" >&5 |
24099 | $as_echo_n "checking for lgammal in -lm... " >&6; } | |
24100 | if test "${ac_cv_lib_m_lgammal+set}" = set; then : | |
24101 | $as_echo_n "(cached) " >&6 | |
6d516d29 | 24102 | else |
24103 | ac_check_lib_save_LIBS=$LIBS | |
24104 | LIBS="-lm $LIBS" | |
24105 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 24106 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
6d516d29 | 24107 | fi |
cd9a469c | 24108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6d516d29 | 24109 | /* end confdefs.h. */ |
24110 | ||
cd9a469c | 24111 | /* Override any GCC internal prototype to avoid an error. |
24112 | Use char because int might match the return type of a GCC | |
24113 | builtin and then its argument prototype would still apply. */ | |
6d516d29 | 24114 | #ifdef __cplusplus |
24115 | extern "C" | |
24116 | #endif | |
6d516d29 | 24117 | char lgammal (); |
24118 | int | |
24119 | main () | |
24120 | { | |
cd9a469c | 24121 | return lgammal (); |
6d516d29 | 24122 | ; |
24123 | return 0; | |
24124 | } | |
24125 | _ACEOF | |
cd9a469c | 24126 | if ac_fn_c_try_link "$LINENO"; then : |
6d516d29 | 24127 | ac_cv_lib_m_lgammal=yes |
24128 | else | |
cd9a469c | 24129 | ac_cv_lib_m_lgammal=no |
6d516d29 | 24130 | fi |
cd9a469c | 24131 | rm -f core conftest.err conftest.$ac_objext \ |
24132 | conftest$ac_exeext conftest.$ac_ext | |
6d516d29 | 24133 | LIBS=$ac_check_lib_save_LIBS |
24134 | fi | |
cd9a469c | 24135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammal" >&5 |
24136 | $as_echo "$ac_cv_lib_m_lgammal" >&6; } | |
24137 | if test "x$ac_cv_lib_m_lgammal" = x""yes; then : | |
6d516d29 | 24138 | |
cd9a469c | 24139 | $as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h |
6d516d29 | 24140 | |
24141 | fi | |
24142 | ||
a31bd8a4 | 24143 | |
89b803c8 | 24144 | # Check for GFORTRAN_C99_1.1 funcs |
24145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos in -lm" >&5 | |
24146 | $as_echo_n "checking for cacos in -lm... " >&6; } | |
24147 | if test "${ac_cv_lib_m_cacos+set}" = set; then : | |
24148 | $as_echo_n "(cached) " >&6 | |
24149 | else | |
24150 | ac_check_lib_save_LIBS=$LIBS | |
24151 | LIBS="-lm $LIBS" | |
24152 | if test x$gcc_no_link = xyes; then | |
24153 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24154 | fi | |
24155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24156 | /* end confdefs.h. */ | |
24157 | ||
24158 | /* Override any GCC internal prototype to avoid an error. | |
24159 | Use char because int might match the return type of a GCC | |
24160 | builtin and then its argument prototype would still apply. */ | |
24161 | #ifdef __cplusplus | |
24162 | extern "C" | |
24163 | #endif | |
24164 | char cacos (); | |
24165 | int | |
24166 | main () | |
24167 | { | |
24168 | return cacos (); | |
24169 | ; | |
24170 | return 0; | |
24171 | } | |
24172 | _ACEOF | |
24173 | if ac_fn_c_try_link "$LINENO"; then : | |
24174 | ac_cv_lib_m_cacos=yes | |
24175 | else | |
24176 | ac_cv_lib_m_cacos=no | |
24177 | fi | |
24178 | rm -f core conftest.err conftest.$ac_objext \ | |
24179 | conftest$ac_exeext conftest.$ac_ext | |
24180 | LIBS=$ac_check_lib_save_LIBS | |
24181 | fi | |
24182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacos" >&5 | |
24183 | $as_echo "$ac_cv_lib_m_cacos" >&6; } | |
24184 | if test "x$ac_cv_lib_m_cacos" = x""yes; then : | |
24185 | ||
24186 | $as_echo "#define HAVE_CACOS 1" >>confdefs.h | |
24187 | ||
24188 | fi | |
24189 | ||
24190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf in -lm" >&5 | |
24191 | $as_echo_n "checking for cacosf in -lm... " >&6; } | |
24192 | if test "${ac_cv_lib_m_cacosf+set}" = set; then : | |
24193 | $as_echo_n "(cached) " >&6 | |
24194 | else | |
24195 | ac_check_lib_save_LIBS=$LIBS | |
24196 | LIBS="-lm $LIBS" | |
24197 | if test x$gcc_no_link = xyes; then | |
24198 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24199 | fi | |
24200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24201 | /* end confdefs.h. */ | |
24202 | ||
24203 | /* Override any GCC internal prototype to avoid an error. | |
24204 | Use char because int might match the return type of a GCC | |
24205 | builtin and then its argument prototype would still apply. */ | |
24206 | #ifdef __cplusplus | |
24207 | extern "C" | |
24208 | #endif | |
24209 | char cacosf (); | |
24210 | int | |
24211 | main () | |
24212 | { | |
24213 | return cacosf (); | |
24214 | ; | |
24215 | return 0; | |
24216 | } | |
24217 | _ACEOF | |
24218 | if ac_fn_c_try_link "$LINENO"; then : | |
24219 | ac_cv_lib_m_cacosf=yes | |
24220 | else | |
24221 | ac_cv_lib_m_cacosf=no | |
24222 | fi | |
24223 | rm -f core conftest.err conftest.$ac_objext \ | |
24224 | conftest$ac_exeext conftest.$ac_ext | |
24225 | LIBS=$ac_check_lib_save_LIBS | |
24226 | fi | |
24227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosf" >&5 | |
24228 | $as_echo "$ac_cv_lib_m_cacosf" >&6; } | |
24229 | if test "x$ac_cv_lib_m_cacosf" = x""yes; then : | |
24230 | ||
24231 | $as_echo "#define HAVE_CACOSF 1" >>confdefs.h | |
24232 | ||
24233 | fi | |
24234 | ||
24235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh in -lm" >&5 | |
24236 | $as_echo_n "checking for cacosh in -lm... " >&6; } | |
24237 | if test "${ac_cv_lib_m_cacosh+set}" = set; then : | |
24238 | $as_echo_n "(cached) " >&6 | |
24239 | else | |
24240 | ac_check_lib_save_LIBS=$LIBS | |
24241 | LIBS="-lm $LIBS" | |
24242 | if test x$gcc_no_link = xyes; then | |
24243 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24244 | fi | |
24245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24246 | /* end confdefs.h. */ | |
24247 | ||
24248 | /* Override any GCC internal prototype to avoid an error. | |
24249 | Use char because int might match the return type of a GCC | |
24250 | builtin and then its argument prototype would still apply. */ | |
24251 | #ifdef __cplusplus | |
24252 | extern "C" | |
24253 | #endif | |
24254 | char cacosh (); | |
24255 | int | |
24256 | main () | |
24257 | { | |
24258 | return cacosh (); | |
24259 | ; | |
24260 | return 0; | |
24261 | } | |
24262 | _ACEOF | |
24263 | if ac_fn_c_try_link "$LINENO"; then : | |
24264 | ac_cv_lib_m_cacosh=yes | |
24265 | else | |
24266 | ac_cv_lib_m_cacosh=no | |
24267 | fi | |
24268 | rm -f core conftest.err conftest.$ac_objext \ | |
24269 | conftest$ac_exeext conftest.$ac_ext | |
24270 | LIBS=$ac_check_lib_save_LIBS | |
24271 | fi | |
24272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosh" >&5 | |
24273 | $as_echo "$ac_cv_lib_m_cacosh" >&6; } | |
24274 | if test "x$ac_cv_lib_m_cacosh" = x""yes; then : | |
24275 | ||
24276 | $as_echo "#define HAVE_CACOSH 1" >>confdefs.h | |
24277 | ||
24278 | fi | |
24279 | ||
24280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf in -lm" >&5 | |
24281 | $as_echo_n "checking for cacoshf in -lm... " >&6; } | |
24282 | if test "${ac_cv_lib_m_cacoshf+set}" = set; then : | |
24283 | $as_echo_n "(cached) " >&6 | |
24284 | else | |
24285 | ac_check_lib_save_LIBS=$LIBS | |
24286 | LIBS="-lm $LIBS" | |
24287 | if test x$gcc_no_link = xyes; then | |
24288 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24289 | fi | |
24290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24291 | /* end confdefs.h. */ | |
24292 | ||
24293 | /* Override any GCC internal prototype to avoid an error. | |
24294 | Use char because int might match the return type of a GCC | |
24295 | builtin and then its argument prototype would still apply. */ | |
24296 | #ifdef __cplusplus | |
24297 | extern "C" | |
24298 | #endif | |
24299 | char cacoshf (); | |
24300 | int | |
24301 | main () | |
24302 | { | |
24303 | return cacoshf (); | |
24304 | ; | |
24305 | return 0; | |
24306 | } | |
24307 | _ACEOF | |
24308 | if ac_fn_c_try_link "$LINENO"; then : | |
24309 | ac_cv_lib_m_cacoshf=yes | |
24310 | else | |
24311 | ac_cv_lib_m_cacoshf=no | |
24312 | fi | |
24313 | rm -f core conftest.err conftest.$ac_objext \ | |
24314 | conftest$ac_exeext conftest.$ac_ext | |
24315 | LIBS=$ac_check_lib_save_LIBS | |
24316 | fi | |
24317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshf" >&5 | |
24318 | $as_echo "$ac_cv_lib_m_cacoshf" >&6; } | |
24319 | if test "x$ac_cv_lib_m_cacoshf" = x""yes; then : | |
24320 | ||
24321 | $as_echo "#define HAVE_CACOSHF 1" >>confdefs.h | |
24322 | ||
24323 | fi | |
24324 | ||
24325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl in -lm" >&5 | |
24326 | $as_echo_n "checking for cacoshl in -lm... " >&6; } | |
24327 | if test "${ac_cv_lib_m_cacoshl+set}" = set; then : | |
24328 | $as_echo_n "(cached) " >&6 | |
24329 | else | |
24330 | ac_check_lib_save_LIBS=$LIBS | |
24331 | LIBS="-lm $LIBS" | |
24332 | if test x$gcc_no_link = xyes; then | |
24333 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24334 | fi | |
24335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24336 | /* end confdefs.h. */ | |
24337 | ||
24338 | /* Override any GCC internal prototype to avoid an error. | |
24339 | Use char because int might match the return type of a GCC | |
24340 | builtin and then its argument prototype would still apply. */ | |
24341 | #ifdef __cplusplus | |
24342 | extern "C" | |
24343 | #endif | |
24344 | char cacoshl (); | |
24345 | int | |
24346 | main () | |
24347 | { | |
24348 | return cacoshl (); | |
24349 | ; | |
24350 | return 0; | |
24351 | } | |
24352 | _ACEOF | |
24353 | if ac_fn_c_try_link "$LINENO"; then : | |
24354 | ac_cv_lib_m_cacoshl=yes | |
24355 | else | |
24356 | ac_cv_lib_m_cacoshl=no | |
24357 | fi | |
24358 | rm -f core conftest.err conftest.$ac_objext \ | |
24359 | conftest$ac_exeext conftest.$ac_ext | |
24360 | LIBS=$ac_check_lib_save_LIBS | |
24361 | fi | |
24362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshl" >&5 | |
24363 | $as_echo "$ac_cv_lib_m_cacoshl" >&6; } | |
24364 | if test "x$ac_cv_lib_m_cacoshl" = x""yes; then : | |
24365 | ||
24366 | $as_echo "#define HAVE_CACOSHL 1" >>confdefs.h | |
24367 | ||
24368 | fi | |
24369 | ||
24370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl in -lm" >&5 | |
24371 | $as_echo_n "checking for cacosl in -lm... " >&6; } | |
24372 | if test "${ac_cv_lib_m_cacosl+set}" = set; then : | |
24373 | $as_echo_n "(cached) " >&6 | |
24374 | else | |
24375 | ac_check_lib_save_LIBS=$LIBS | |
24376 | LIBS="-lm $LIBS" | |
24377 | if test x$gcc_no_link = xyes; then | |
24378 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24379 | fi | |
24380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24381 | /* end confdefs.h. */ | |
24382 | ||
24383 | /* Override any GCC internal prototype to avoid an error. | |
24384 | Use char because int might match the return type of a GCC | |
24385 | builtin and then its argument prototype would still apply. */ | |
24386 | #ifdef __cplusplus | |
24387 | extern "C" | |
24388 | #endif | |
24389 | char cacosl (); | |
24390 | int | |
24391 | main () | |
24392 | { | |
24393 | return cacosl (); | |
24394 | ; | |
24395 | return 0; | |
24396 | } | |
24397 | _ACEOF | |
24398 | if ac_fn_c_try_link "$LINENO"; then : | |
24399 | ac_cv_lib_m_cacosl=yes | |
24400 | else | |
24401 | ac_cv_lib_m_cacosl=no | |
24402 | fi | |
24403 | rm -f core conftest.err conftest.$ac_objext \ | |
24404 | conftest$ac_exeext conftest.$ac_ext | |
24405 | LIBS=$ac_check_lib_save_LIBS | |
24406 | fi | |
24407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosl" >&5 | |
24408 | $as_echo "$ac_cv_lib_m_cacosl" >&6; } | |
24409 | if test "x$ac_cv_lib_m_cacosl" = x""yes; then : | |
24410 | ||
24411 | $as_echo "#define HAVE_CACOSL 1" >>confdefs.h | |
24412 | ||
24413 | fi | |
24414 | ||
24415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin in -lm" >&5 | |
24416 | $as_echo_n "checking for casin in -lm... " >&6; } | |
24417 | if test "${ac_cv_lib_m_casin+set}" = set; then : | |
24418 | $as_echo_n "(cached) " >&6 | |
24419 | else | |
24420 | ac_check_lib_save_LIBS=$LIBS | |
24421 | LIBS="-lm $LIBS" | |
24422 | if test x$gcc_no_link = xyes; then | |
24423 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24424 | fi | |
24425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24426 | /* end confdefs.h. */ | |
24427 | ||
24428 | /* Override any GCC internal prototype to avoid an error. | |
24429 | Use char because int might match the return type of a GCC | |
24430 | builtin and then its argument prototype would still apply. */ | |
24431 | #ifdef __cplusplus | |
24432 | extern "C" | |
24433 | #endif | |
24434 | char casin (); | |
24435 | int | |
24436 | main () | |
24437 | { | |
24438 | return casin (); | |
24439 | ; | |
24440 | return 0; | |
24441 | } | |
24442 | _ACEOF | |
24443 | if ac_fn_c_try_link "$LINENO"; then : | |
24444 | ac_cv_lib_m_casin=yes | |
24445 | else | |
24446 | ac_cv_lib_m_casin=no | |
24447 | fi | |
24448 | rm -f core conftest.err conftest.$ac_objext \ | |
24449 | conftest$ac_exeext conftest.$ac_ext | |
24450 | LIBS=$ac_check_lib_save_LIBS | |
24451 | fi | |
24452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casin" >&5 | |
24453 | $as_echo "$ac_cv_lib_m_casin" >&6; } | |
24454 | if test "x$ac_cv_lib_m_casin" = x""yes; then : | |
24455 | ||
24456 | $as_echo "#define HAVE_CASIN 1" >>confdefs.h | |
24457 | ||
24458 | fi | |
24459 | ||
24460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf in -lm" >&5 | |
24461 | $as_echo_n "checking for casinf in -lm... " >&6; } | |
24462 | if test "${ac_cv_lib_m_casinf+set}" = set; then : | |
24463 | $as_echo_n "(cached) " >&6 | |
24464 | else | |
24465 | ac_check_lib_save_LIBS=$LIBS | |
24466 | LIBS="-lm $LIBS" | |
24467 | if test x$gcc_no_link = xyes; then | |
24468 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24469 | fi | |
24470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24471 | /* end confdefs.h. */ | |
24472 | ||
24473 | /* Override any GCC internal prototype to avoid an error. | |
24474 | Use char because int might match the return type of a GCC | |
24475 | builtin and then its argument prototype would still apply. */ | |
24476 | #ifdef __cplusplus | |
24477 | extern "C" | |
24478 | #endif | |
24479 | char casinf (); | |
24480 | int | |
24481 | main () | |
24482 | { | |
24483 | return casinf (); | |
24484 | ; | |
24485 | return 0; | |
24486 | } | |
24487 | _ACEOF | |
24488 | if ac_fn_c_try_link "$LINENO"; then : | |
24489 | ac_cv_lib_m_casinf=yes | |
24490 | else | |
24491 | ac_cv_lib_m_casinf=no | |
24492 | fi | |
24493 | rm -f core conftest.err conftest.$ac_objext \ | |
24494 | conftest$ac_exeext conftest.$ac_ext | |
24495 | LIBS=$ac_check_lib_save_LIBS | |
24496 | fi | |
24497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinf" >&5 | |
24498 | $as_echo "$ac_cv_lib_m_casinf" >&6; } | |
24499 | if test "x$ac_cv_lib_m_casinf" = x""yes; then : | |
24500 | ||
24501 | $as_echo "#define HAVE_CASINF 1" >>confdefs.h | |
24502 | ||
24503 | fi | |
24504 | ||
24505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh in -lm" >&5 | |
24506 | $as_echo_n "checking for casinh in -lm... " >&6; } | |
24507 | if test "${ac_cv_lib_m_casinh+set}" = set; then : | |
24508 | $as_echo_n "(cached) " >&6 | |
24509 | else | |
24510 | ac_check_lib_save_LIBS=$LIBS | |
24511 | LIBS="-lm $LIBS" | |
24512 | if test x$gcc_no_link = xyes; then | |
24513 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24514 | fi | |
24515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24516 | /* end confdefs.h. */ | |
24517 | ||
24518 | /* Override any GCC internal prototype to avoid an error. | |
24519 | Use char because int might match the return type of a GCC | |
24520 | builtin and then its argument prototype would still apply. */ | |
24521 | #ifdef __cplusplus | |
24522 | extern "C" | |
24523 | #endif | |
24524 | char casinh (); | |
24525 | int | |
24526 | main () | |
24527 | { | |
24528 | return casinh (); | |
24529 | ; | |
24530 | return 0; | |
24531 | } | |
24532 | _ACEOF | |
24533 | if ac_fn_c_try_link "$LINENO"; then : | |
24534 | ac_cv_lib_m_casinh=yes | |
24535 | else | |
24536 | ac_cv_lib_m_casinh=no | |
24537 | fi | |
24538 | rm -f core conftest.err conftest.$ac_objext \ | |
24539 | conftest$ac_exeext conftest.$ac_ext | |
24540 | LIBS=$ac_check_lib_save_LIBS | |
24541 | fi | |
24542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinh" >&5 | |
24543 | $as_echo "$ac_cv_lib_m_casinh" >&6; } | |
24544 | if test "x$ac_cv_lib_m_casinh" = x""yes; then : | |
24545 | ||
24546 | $as_echo "#define HAVE_CASINH 1" >>confdefs.h | |
24547 | ||
24548 | fi | |
24549 | ||
24550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf in -lm" >&5 | |
24551 | $as_echo_n "checking for casinhf in -lm... " >&6; } | |
24552 | if test "${ac_cv_lib_m_casinhf+set}" = set; then : | |
24553 | $as_echo_n "(cached) " >&6 | |
24554 | else | |
24555 | ac_check_lib_save_LIBS=$LIBS | |
24556 | LIBS="-lm $LIBS" | |
24557 | if test x$gcc_no_link = xyes; then | |
24558 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24559 | fi | |
24560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24561 | /* end confdefs.h. */ | |
24562 | ||
24563 | /* Override any GCC internal prototype to avoid an error. | |
24564 | Use char because int might match the return type of a GCC | |
24565 | builtin and then its argument prototype would still apply. */ | |
24566 | #ifdef __cplusplus | |
24567 | extern "C" | |
24568 | #endif | |
24569 | char casinhf (); | |
24570 | int | |
24571 | main () | |
24572 | { | |
24573 | return casinhf (); | |
24574 | ; | |
24575 | return 0; | |
24576 | } | |
24577 | _ACEOF | |
24578 | if ac_fn_c_try_link "$LINENO"; then : | |
24579 | ac_cv_lib_m_casinhf=yes | |
24580 | else | |
24581 | ac_cv_lib_m_casinhf=no | |
24582 | fi | |
24583 | rm -f core conftest.err conftest.$ac_objext \ | |
24584 | conftest$ac_exeext conftest.$ac_ext | |
24585 | LIBS=$ac_check_lib_save_LIBS | |
24586 | fi | |
24587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhf" >&5 | |
24588 | $as_echo "$ac_cv_lib_m_casinhf" >&6; } | |
24589 | if test "x$ac_cv_lib_m_casinhf" = x""yes; then : | |
24590 | ||
24591 | $as_echo "#define HAVE_CASINHF 1" >>confdefs.h | |
24592 | ||
24593 | fi | |
24594 | ||
24595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl in -lm" >&5 | |
24596 | $as_echo_n "checking for casinhl in -lm... " >&6; } | |
24597 | if test "${ac_cv_lib_m_casinhl+set}" = set; then : | |
24598 | $as_echo_n "(cached) " >&6 | |
24599 | else | |
24600 | ac_check_lib_save_LIBS=$LIBS | |
24601 | LIBS="-lm $LIBS" | |
24602 | if test x$gcc_no_link = xyes; then | |
24603 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24604 | fi | |
24605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24606 | /* end confdefs.h. */ | |
24607 | ||
24608 | /* Override any GCC internal prototype to avoid an error. | |
24609 | Use char because int might match the return type of a GCC | |
24610 | builtin and then its argument prototype would still apply. */ | |
24611 | #ifdef __cplusplus | |
24612 | extern "C" | |
24613 | #endif | |
24614 | char casinhl (); | |
24615 | int | |
24616 | main () | |
24617 | { | |
24618 | return casinhl (); | |
24619 | ; | |
24620 | return 0; | |
24621 | } | |
24622 | _ACEOF | |
24623 | if ac_fn_c_try_link "$LINENO"; then : | |
24624 | ac_cv_lib_m_casinhl=yes | |
24625 | else | |
24626 | ac_cv_lib_m_casinhl=no | |
24627 | fi | |
24628 | rm -f core conftest.err conftest.$ac_objext \ | |
24629 | conftest$ac_exeext conftest.$ac_ext | |
24630 | LIBS=$ac_check_lib_save_LIBS | |
24631 | fi | |
24632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhl" >&5 | |
24633 | $as_echo "$ac_cv_lib_m_casinhl" >&6; } | |
24634 | if test "x$ac_cv_lib_m_casinhl" = x""yes; then : | |
24635 | ||
24636 | $as_echo "#define HAVE_CASINHL 1" >>confdefs.h | |
24637 | ||
24638 | fi | |
24639 | ||
24640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl in -lm" >&5 | |
24641 | $as_echo_n "checking for casinl in -lm... " >&6; } | |
24642 | if test "${ac_cv_lib_m_casinl+set}" = set; then : | |
24643 | $as_echo_n "(cached) " >&6 | |
24644 | else | |
24645 | ac_check_lib_save_LIBS=$LIBS | |
24646 | LIBS="-lm $LIBS" | |
24647 | if test x$gcc_no_link = xyes; then | |
24648 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24649 | fi | |
24650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24651 | /* end confdefs.h. */ | |
24652 | ||
24653 | /* Override any GCC internal prototype to avoid an error. | |
24654 | Use char because int might match the return type of a GCC | |
24655 | builtin and then its argument prototype would still apply. */ | |
24656 | #ifdef __cplusplus | |
24657 | extern "C" | |
24658 | #endif | |
24659 | char casinl (); | |
24660 | int | |
24661 | main () | |
24662 | { | |
24663 | return casinl (); | |
24664 | ; | |
24665 | return 0; | |
24666 | } | |
24667 | _ACEOF | |
24668 | if ac_fn_c_try_link "$LINENO"; then : | |
24669 | ac_cv_lib_m_casinl=yes | |
24670 | else | |
24671 | ac_cv_lib_m_casinl=no | |
24672 | fi | |
24673 | rm -f core conftest.err conftest.$ac_objext \ | |
24674 | conftest$ac_exeext conftest.$ac_ext | |
24675 | LIBS=$ac_check_lib_save_LIBS | |
24676 | fi | |
24677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinl" >&5 | |
24678 | $as_echo "$ac_cv_lib_m_casinl" >&6; } | |
24679 | if test "x$ac_cv_lib_m_casinl" = x""yes; then : | |
24680 | ||
24681 | $as_echo "#define HAVE_CASINL 1" >>confdefs.h | |
24682 | ||
24683 | fi | |
24684 | ||
24685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan in -lm" >&5 | |
24686 | $as_echo_n "checking for catan in -lm... " >&6; } | |
24687 | if test "${ac_cv_lib_m_catan+set}" = set; then : | |
24688 | $as_echo_n "(cached) " >&6 | |
24689 | else | |
24690 | ac_check_lib_save_LIBS=$LIBS | |
24691 | LIBS="-lm $LIBS" | |
24692 | if test x$gcc_no_link = xyes; then | |
24693 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24694 | fi | |
24695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24696 | /* end confdefs.h. */ | |
24697 | ||
24698 | /* Override any GCC internal prototype to avoid an error. | |
24699 | Use char because int might match the return type of a GCC | |
24700 | builtin and then its argument prototype would still apply. */ | |
24701 | #ifdef __cplusplus | |
24702 | extern "C" | |
24703 | #endif | |
24704 | char catan (); | |
24705 | int | |
24706 | main () | |
24707 | { | |
24708 | return catan (); | |
24709 | ; | |
24710 | return 0; | |
24711 | } | |
24712 | _ACEOF | |
24713 | if ac_fn_c_try_link "$LINENO"; then : | |
24714 | ac_cv_lib_m_catan=yes | |
24715 | else | |
24716 | ac_cv_lib_m_catan=no | |
24717 | fi | |
24718 | rm -f core conftest.err conftest.$ac_objext \ | |
24719 | conftest$ac_exeext conftest.$ac_ext | |
24720 | LIBS=$ac_check_lib_save_LIBS | |
24721 | fi | |
24722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catan" >&5 | |
24723 | $as_echo "$ac_cv_lib_m_catan" >&6; } | |
24724 | if test "x$ac_cv_lib_m_catan" = x""yes; then : | |
24725 | ||
24726 | $as_echo "#define HAVE_CATAN 1" >>confdefs.h | |
24727 | ||
24728 | fi | |
24729 | ||
24730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf in -lm" >&5 | |
24731 | $as_echo_n "checking for catanf in -lm... " >&6; } | |
24732 | if test "${ac_cv_lib_m_catanf+set}" = set; then : | |
24733 | $as_echo_n "(cached) " >&6 | |
24734 | else | |
24735 | ac_check_lib_save_LIBS=$LIBS | |
24736 | LIBS="-lm $LIBS" | |
24737 | if test x$gcc_no_link = xyes; then | |
24738 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24739 | fi | |
24740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24741 | /* end confdefs.h. */ | |
24742 | ||
24743 | /* Override any GCC internal prototype to avoid an error. | |
24744 | Use char because int might match the return type of a GCC | |
24745 | builtin and then its argument prototype would still apply. */ | |
24746 | #ifdef __cplusplus | |
24747 | extern "C" | |
24748 | #endif | |
24749 | char catanf (); | |
24750 | int | |
24751 | main () | |
24752 | { | |
24753 | return catanf (); | |
24754 | ; | |
24755 | return 0; | |
24756 | } | |
24757 | _ACEOF | |
24758 | if ac_fn_c_try_link "$LINENO"; then : | |
24759 | ac_cv_lib_m_catanf=yes | |
24760 | else | |
24761 | ac_cv_lib_m_catanf=no | |
24762 | fi | |
24763 | rm -f core conftest.err conftest.$ac_objext \ | |
24764 | conftest$ac_exeext conftest.$ac_ext | |
24765 | LIBS=$ac_check_lib_save_LIBS | |
24766 | fi | |
24767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanf" >&5 | |
24768 | $as_echo "$ac_cv_lib_m_catanf" >&6; } | |
24769 | if test "x$ac_cv_lib_m_catanf" = x""yes; then : | |
24770 | ||
24771 | $as_echo "#define HAVE_CATANF 1" >>confdefs.h | |
24772 | ||
24773 | fi | |
24774 | ||
24775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh in -lm" >&5 | |
24776 | $as_echo_n "checking for catanh in -lm... " >&6; } | |
24777 | if test "${ac_cv_lib_m_catanh+set}" = set; then : | |
24778 | $as_echo_n "(cached) " >&6 | |
24779 | else | |
24780 | ac_check_lib_save_LIBS=$LIBS | |
24781 | LIBS="-lm $LIBS" | |
24782 | if test x$gcc_no_link = xyes; then | |
24783 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24784 | fi | |
24785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24786 | /* end confdefs.h. */ | |
24787 | ||
24788 | /* Override any GCC internal prototype to avoid an error. | |
24789 | Use char because int might match the return type of a GCC | |
24790 | builtin and then its argument prototype would still apply. */ | |
24791 | #ifdef __cplusplus | |
24792 | extern "C" | |
24793 | #endif | |
24794 | char catanh (); | |
24795 | int | |
24796 | main () | |
24797 | { | |
24798 | return catanh (); | |
24799 | ; | |
24800 | return 0; | |
24801 | } | |
24802 | _ACEOF | |
24803 | if ac_fn_c_try_link "$LINENO"; then : | |
24804 | ac_cv_lib_m_catanh=yes | |
24805 | else | |
24806 | ac_cv_lib_m_catanh=no | |
24807 | fi | |
24808 | rm -f core conftest.err conftest.$ac_objext \ | |
24809 | conftest$ac_exeext conftest.$ac_ext | |
24810 | LIBS=$ac_check_lib_save_LIBS | |
24811 | fi | |
24812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanh" >&5 | |
24813 | $as_echo "$ac_cv_lib_m_catanh" >&6; } | |
24814 | if test "x$ac_cv_lib_m_catanh" = x""yes; then : | |
24815 | ||
24816 | $as_echo "#define HAVE_CATANH 1" >>confdefs.h | |
24817 | ||
24818 | fi | |
24819 | ||
24820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf in -lm" >&5 | |
24821 | $as_echo_n "checking for catanhf in -lm... " >&6; } | |
24822 | if test "${ac_cv_lib_m_catanhf+set}" = set; then : | |
24823 | $as_echo_n "(cached) " >&6 | |
24824 | else | |
24825 | ac_check_lib_save_LIBS=$LIBS | |
24826 | LIBS="-lm $LIBS" | |
24827 | if test x$gcc_no_link = xyes; then | |
24828 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24829 | fi | |
24830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24831 | /* end confdefs.h. */ | |
24832 | ||
24833 | /* Override any GCC internal prototype to avoid an error. | |
24834 | Use char because int might match the return type of a GCC | |
24835 | builtin and then its argument prototype would still apply. */ | |
24836 | #ifdef __cplusplus | |
24837 | extern "C" | |
24838 | #endif | |
24839 | char catanhf (); | |
24840 | int | |
24841 | main () | |
24842 | { | |
24843 | return catanhf (); | |
24844 | ; | |
24845 | return 0; | |
24846 | } | |
24847 | _ACEOF | |
24848 | if ac_fn_c_try_link "$LINENO"; then : | |
24849 | ac_cv_lib_m_catanhf=yes | |
24850 | else | |
24851 | ac_cv_lib_m_catanhf=no | |
24852 | fi | |
24853 | rm -f core conftest.err conftest.$ac_objext \ | |
24854 | conftest$ac_exeext conftest.$ac_ext | |
24855 | LIBS=$ac_check_lib_save_LIBS | |
24856 | fi | |
24857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhf" >&5 | |
24858 | $as_echo "$ac_cv_lib_m_catanhf" >&6; } | |
24859 | if test "x$ac_cv_lib_m_catanhf" = x""yes; then : | |
24860 | ||
24861 | $as_echo "#define HAVE_CATANHF 1" >>confdefs.h | |
24862 | ||
24863 | fi | |
24864 | ||
24865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl in -lm" >&5 | |
24866 | $as_echo_n "checking for catanhl in -lm... " >&6; } | |
24867 | if test "${ac_cv_lib_m_catanhl+set}" = set; then : | |
24868 | $as_echo_n "(cached) " >&6 | |
24869 | else | |
24870 | ac_check_lib_save_LIBS=$LIBS | |
24871 | LIBS="-lm $LIBS" | |
24872 | if test x$gcc_no_link = xyes; then | |
24873 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24874 | fi | |
24875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24876 | /* end confdefs.h. */ | |
24877 | ||
24878 | /* Override any GCC internal prototype to avoid an error. | |
24879 | Use char because int might match the return type of a GCC | |
24880 | builtin and then its argument prototype would still apply. */ | |
24881 | #ifdef __cplusplus | |
24882 | extern "C" | |
24883 | #endif | |
24884 | char catanhl (); | |
24885 | int | |
24886 | main () | |
24887 | { | |
24888 | return catanhl (); | |
24889 | ; | |
24890 | return 0; | |
24891 | } | |
24892 | _ACEOF | |
24893 | if ac_fn_c_try_link "$LINENO"; then : | |
24894 | ac_cv_lib_m_catanhl=yes | |
24895 | else | |
24896 | ac_cv_lib_m_catanhl=no | |
24897 | fi | |
24898 | rm -f core conftest.err conftest.$ac_objext \ | |
24899 | conftest$ac_exeext conftest.$ac_ext | |
24900 | LIBS=$ac_check_lib_save_LIBS | |
24901 | fi | |
24902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhl" >&5 | |
24903 | $as_echo "$ac_cv_lib_m_catanhl" >&6; } | |
24904 | if test "x$ac_cv_lib_m_catanhl" = x""yes; then : | |
24905 | ||
24906 | $as_echo "#define HAVE_CATANHL 1" >>confdefs.h | |
24907 | ||
24908 | fi | |
24909 | ||
24910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl in -lm" >&5 | |
24911 | $as_echo_n "checking for catanl in -lm... " >&6; } | |
24912 | if test "${ac_cv_lib_m_catanl+set}" = set; then : | |
24913 | $as_echo_n "(cached) " >&6 | |
24914 | else | |
24915 | ac_check_lib_save_LIBS=$LIBS | |
24916 | LIBS="-lm $LIBS" | |
24917 | if test x$gcc_no_link = xyes; then | |
24918 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24919 | fi | |
24920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24921 | /* end confdefs.h. */ | |
24922 | ||
24923 | /* Override any GCC internal prototype to avoid an error. | |
24924 | Use char because int might match the return type of a GCC | |
24925 | builtin and then its argument prototype would still apply. */ | |
24926 | #ifdef __cplusplus | |
24927 | extern "C" | |
24928 | #endif | |
24929 | char catanl (); | |
24930 | int | |
24931 | main () | |
24932 | { | |
24933 | return catanl (); | |
24934 | ; | |
24935 | return 0; | |
24936 | } | |
24937 | _ACEOF | |
24938 | if ac_fn_c_try_link "$LINENO"; then : | |
24939 | ac_cv_lib_m_catanl=yes | |
24940 | else | |
24941 | ac_cv_lib_m_catanl=no | |
24942 | fi | |
24943 | rm -f core conftest.err conftest.$ac_objext \ | |
24944 | conftest$ac_exeext conftest.$ac_ext | |
24945 | LIBS=$ac_check_lib_save_LIBS | |
24946 | fi | |
24947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanl" >&5 | |
24948 | $as_echo "$ac_cv_lib_m_catanl" >&6; } | |
24949 | if test "x$ac_cv_lib_m_catanl" = x""yes; then : | |
24950 | ||
24951 | $as_echo "#define HAVE_CATANL 1" >>confdefs.h | |
24952 | ||
24953 | fi | |
24954 | ||
24955 | ||
839904a0 | 24956 | # On AIX, clog is present in libm as __clog |
cd9a469c | 24957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 |
24958 | $as_echo_n "checking for __clog in -lm... " >&6; } | |
24959 | if test "${ac_cv_lib_m___clog+set}" = set; then : | |
24960 | $as_echo_n "(cached) " >&6 | |
62a413d5 | 24961 | else |
24962 | ac_check_lib_save_LIBS=$LIBS | |
24963 | LIBS="-lm $LIBS" | |
24964 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 24965 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
62a413d5 | 24966 | fi |
cd9a469c | 24967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
62a413d5 | 24968 | /* end confdefs.h. */ |
24969 | ||
cd9a469c | 24970 | /* Override any GCC internal prototype to avoid an error. |
24971 | Use char because int might match the return type of a GCC | |
24972 | builtin and then its argument prototype would still apply. */ | |
62a413d5 | 24973 | #ifdef __cplusplus |
24974 | extern "C" | |
24975 | #endif | |
62a413d5 | 24976 | char __clog (); |
24977 | int | |
24978 | main () | |
24979 | { | |
cd9a469c | 24980 | return __clog (); |
62a413d5 | 24981 | ; |
24982 | return 0; | |
24983 | } | |
24984 | _ACEOF | |
cd9a469c | 24985 | if ac_fn_c_try_link "$LINENO"; then : |
62a413d5 | 24986 | ac_cv_lib_m___clog=yes |
24987 | else | |
cd9a469c | 24988 | ac_cv_lib_m___clog=no |
62a413d5 | 24989 | fi |
cd9a469c | 24990 | rm -f core conftest.err conftest.$ac_objext \ |
24991 | conftest$ac_exeext conftest.$ac_ext | |
62a413d5 | 24992 | LIBS=$ac_check_lib_save_LIBS |
24993 | fi | |
cd9a469c | 24994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 |
24995 | $as_echo "$ac_cv_lib_m___clog" >&6; } | |
24996 | if test "x$ac_cv_lib_m___clog" = x""yes; then : | |
62a413d5 | 24997 | |
cd9a469c | 24998 | $as_echo "#define HAVE_CLOG 1" >>confdefs.h |
62a413d5 | 24999 | |
25000 | fi | |
25001 | ||
25002 | ||
daad4fd5 | 25003 | # Check whether the system has a working stat() |
25004 | ||
cd9a469c | 25005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 |
25006 | $as_echo_n "checking whether the target stat is reliable... " >&6; } | |
25007 | if test "${libgfor_cv_have_working_stat+set}" = set; then : | |
25008 | $as_echo_n "(cached) " >&6 | |
daad4fd5 | 25009 | else |
25010 | ||
cd9a469c | 25011 | if test "$cross_compiling" = yes; then : |
daad4fd5 | 25012 | |
25013 | case "${target}" in | |
6992582a | 25014 | *mingw*) libgfor_cv_have_working_stat=no ;; |
25015 | *) libgfor_cv_have_working_stat=yes;; | |
daad4fd5 | 25016 | esac |
25017 | else | |
cd9a469c | 25018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
daad4fd5 | 25019 | /* end confdefs.h. */ |
25020 | ||
25021 | #include <stdio.h> | |
25022 | #include <sys/types.h> | |
25023 | #include <sys/stat.h> | |
25024 | #include <unistd.h> | |
25025 | ||
25026 | int main () | |
25027 | { | |
25028 | FILE *f, *g; | |
25029 | struct stat st1, st2; | |
25030 | ||
25031 | f = fopen ("foo", "w"); | |
25032 | g = fopen ("bar", "w"); | |
25033 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
25034 | return 1; | |
25035 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
25036 | return 1; | |
25037 | fclose(f); | |
25038 | fclose(g); | |
25039 | return 0; | |
25040 | } | |
25041 | _ACEOF | |
cd9a469c | 25042 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 25043 | libgfor_cv_have_working_stat=yes |
daad4fd5 | 25044 | else |
cd9a469c | 25045 | libgfor_cv_have_working_stat=no |
daad4fd5 | 25046 | fi |
cd9a469c | 25047 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25048 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
daad4fd5 | 25049 | fi |
cd9a469c | 25050 | |
daad4fd5 | 25051 | fi |
cd9a469c | 25052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 |
25053 | $as_echo "$libgfor_cv_have_working_stat" >&6; } | |
6992582a | 25054 | if test x"$libgfor_cv_have_working_stat" = xyes; then |
daad4fd5 | 25055 | |
cd9a469c | 25056 | $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h |
daad4fd5 | 25057 | |
25058 | fi | |
25059 | ||
3b99ec70 | 25060 | # Check whether __mingw_snprintf() is present |
25061 | ||
cd9a469c | 25062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 |
25063 | $as_echo_n "checking whether __mingw_snprintf is present... " >&6; } | |
25064 | if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then : | |
25065 | $as_echo_n "(cached) " >&6 | |
3b99ec70 | 25066 | else |
25067 | ||
25068 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25069 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
3b99ec70 | 25070 | fi |
cd9a469c | 25071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3b99ec70 | 25072 | /* end confdefs.h. */ |
25073 | ||
25074 | #include <stdio.h> | |
25075 | extern int __mingw_snprintf (char *, size_t, const char *, ...); | |
25076 | ||
25077 | int | |
25078 | main () | |
25079 | { | |
25080 | ||
25081 | __mingw_snprintf (NULL, 0, "%d\n", 1); | |
25082 | ||
25083 | ; | |
25084 | return 0; | |
25085 | } | |
25086 | _ACEOF | |
cd9a469c | 25087 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25088 | eval "libgfor_cv_have_mingw_snprintf=yes" |
3b99ec70 | 25089 | else |
cd9a469c | 25090 | eval "libgfor_cv_have_mingw_snprintf=no" |
3b99ec70 | 25091 | fi |
cd9a469c | 25092 | rm -f core conftest.err conftest.$ac_objext \ |
25093 | conftest$ac_exeext conftest.$ac_ext | |
3b99ec70 | 25094 | |
25095 | fi | |
cd9a469c | 25096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 |
25097 | $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } | |
6992582a | 25098 | if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then |
3b99ec70 | 25099 | |
cd9a469c | 25100 | $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h |
3b99ec70 | 25101 | |
25102 | fi | |
25103 | ||
25104 | ||
0dc2aff5 | 25105 | # Check for a broken powf implementation |
25106 | ||
cd9a469c | 25107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5 |
25108 | $as_echo_n "checking whether powf is broken... " >&6; } | |
25109 | if test "${libgfor_cv_have_broken_powf+set}" = set; then : | |
25110 | $as_echo_n "(cached) " >&6 | |
0dc2aff5 | 25111 | else |
25112 | ||
25113 | case "${target}" in | |
25114 | hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;; | |
25115 | *) libgfor_cv_have_broken_powf=no;; | |
25116 | esac | |
25117 | fi | |
cd9a469c | 25118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5 |
25119 | $as_echo "$libgfor_cv_have_broken_powf" >&6; } | |
0dc2aff5 | 25120 | if test x"$libgfor_cv_have_broken_powf" = xyes; then |
25121 | ||
cd9a469c | 25122 | $as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h |
0dc2aff5 | 25123 | |
25124 | fi | |
25125 | ||
25126 | ||
d9d975ae | 25127 | # Check whether libquadmath should be used |
25128 | # Check whether --enable-libquadmath-support was given. | |
25129 | if test "${enable_libquadmath_support+set}" = set; then : | |
25130 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
25131 | else | |
25132 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
25133 | fi | |
25134 | ||
25135 | enable_libquadmath_support= | |
25136 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
25137 | enable_libquadmath_support=no | |
25138 | fi | |
25139 | ||
25140 | # Check whether we have a __float128 type, depends on enable_libquadmath_support | |
87969c8c | 25141 | |
25142 | LIBQUADSPEC= | |
d9d975ae | 25143 | |
25144 | if test "x$enable_libquadmath_support" != xno; then | |
25145 | ||
87969c8c | 25146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 |
25147 | $as_echo_n "checking whether we have a usable __float128 type... " >&6; } | |
25148 | if test "${libgfor_cv_have_float128+set}" = set; then : | |
25149 | $as_echo_n "(cached) " >&6 | |
25150 | else | |
25151 | ||
9af9660c | 25152 | if test x$gcc_no_link = xyes; then |
25153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
87969c8c | 25154 | /* end confdefs.h. */ |
25155 | ||
9af9660c | 25156 | typedef _Complex float __attribute__((mode(TC))) __complex128; |
25157 | ||
25158 | __float128 foo (__float128 x) | |
25159 | { | |
25160 | ||
25161 | __complex128 z1, z2; | |
25162 | ||
25163 | z1 = x; | |
25164 | z2 = x / 7.Q; | |
25165 | z2 /= z1; | |
25166 | ||
25167 | return (__float128) z2; | |
25168 | } | |
25169 | ||
25170 | __float128 bar (__float128 x) | |
25171 | { | |
25172 | return x * __builtin_huge_valq (); | |
25173 | } | |
87969c8c | 25174 | |
25175 | int | |
25176 | main () | |
25177 | { | |
25178 | ||
9af9660c | 25179 | foo (1.2Q); |
25180 | bar (1.2Q); | |
87969c8c | 25181 | |
9af9660c | 25182 | ; |
25183 | return 0; | |
25184 | } | |
25185 | _ACEOF | |
25186 | if ac_fn_c_try_compile "$LINENO"; then : | |
87969c8c | 25187 | |
9af9660c | 25188 | libgfor_cv_have_float128=yes |
87969c8c | 25189 | |
9af9660c | 25190 | else |
25191 | ||
25192 | libgfor_cv_have_float128=no | |
25193 | ||
25194 | fi | |
25195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25196 | else | |
25197 | if test x$gcc_no_link = xyes; then | |
25198 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25199 | fi | |
25200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25201 | /* end confdefs.h. */ | |
25202 | ||
25203 | typedef _Complex float __attribute__((mode(TC))) __complex128; | |
25204 | ||
25205 | __float128 foo (__float128 x) | |
25206 | { | |
25207 | ||
25208 | __complex128 z1, z2; | |
25209 | ||
25210 | z1 = x; | |
25211 | z2 = x / 7.Q; | |
25212 | z2 /= z1; | |
25213 | ||
25214 | return (__float128) z2; | |
25215 | } | |
25216 | ||
25217 | __float128 bar (__float128 x) | |
25218 | { | |
25219 | return x * __builtin_huge_valq (); | |
25220 | } | |
25221 | ||
25222 | int | |
25223 | main () | |
25224 | { | |
25225 | ||
25226 | foo (1.2Q); | |
25227 | bar (1.2Q); | |
87969c8c | 25228 | |
25229 | ; | |
25230 | return 0; | |
25231 | } | |
25232 | _ACEOF | |
25233 | if ac_fn_c_try_link "$LINENO"; then : | |
9af9660c | 25234 | |
25235 | libgfor_cv_have_float128=yes | |
25236 | ||
87969c8c | 25237 | else |
9af9660c | 25238 | |
25239 | libgfor_cv_have_float128=no | |
25240 | ||
87969c8c | 25241 | fi |
25242 | rm -f core conftest.err conftest.$ac_objext \ | |
25243 | conftest$ac_exeext conftest.$ac_ext | |
9af9660c | 25244 | fi |
87969c8c | 25245 | fi |
25246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 | |
25247 | $as_echo "$libgfor_cv_have_float128" >&6; } | |
25248 | ||
25249 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25250 | ||
25251 | $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h | |
25252 | ||
25253 | ||
25254 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
25255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5 | |
25256 | $as_echo_n "checking whether --as-needed works... " >&6; } | |
25257 | if test "${libgfor_cv_have_as_needed+set}" = set; then : | |
25258 | $as_echo_n "(cached) " >&6 | |
25259 | else | |
25260 | ||
25261 | save_LDFLAGS="$LDFLAGS" | |
25262 | LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed" | |
25263 | libgfor_cv_have_as_needed=no | |
25264 | ||
25265 | ac_c_werror_flag=yes | |
25266 | if test x$gcc_no_link = xyes; then | |
25267 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25268 | fi | |
25269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25270 | /* end confdefs.h. */ | |
25271 | ||
25272 | int | |
25273 | main () | |
25274 | { | |
25275 | ||
25276 | ; | |
25277 | return 0; | |
25278 | } | |
25279 | _ACEOF | |
25280 | if ac_fn_c_try_link "$LINENO"; then : | |
25281 | libgfor_cv_have_as_needed=yes | |
25282 | else | |
25283 | libgfor_cv_have_as_needed=no | |
25284 | fi | |
25285 | rm -f core conftest.err conftest.$ac_objext \ | |
25286 | conftest$ac_exeext conftest.$ac_ext | |
25287 | LDFLAGS="$save_LDFLAGS" | |
25288 | ac_c_werror_flag=$ac_xsave_c_werror_flag | |
25289 | ||
25290 | fi | |
25291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 | |
25292 | $as_echo "$libgfor_cv_have_as_needed" >&6; } | |
25293 | ||
25294 | if test "x$libgfor_cv_have_as_needed" = xyes; then | |
25295 | LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}" | |
25296 | else | |
25297 | LIBQUADSPEC="-lquadmath" | |
25298 | fi | |
25299 | if test -f ../libquadmath/libquadmath.la; then | |
25300 | LIBQUADLIB=../libquadmath/libquadmath.la | |
25301 | LIBQUADLIB_DEP=../libquadmath/libquadmath.la | |
25302 | LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' | |
25303 | else | |
25304 | LIBQUADLIB="-lquadmath" | |
25305 | LIBQUADLIB_DEP= | |
25306 | LIBQUADINCLUDE= | |
25307 | fi | |
25308 | fi | |
d9d975ae | 25309 | else |
25310 | # for --disable-quadmath | |
25311 | LIBQUADLIB= | |
25312 | LIBQUADLIB_DEP= | |
25313 | LIBQUADINCLUDE= | |
25314 | fi | |
87969c8c | 25315 | |
25316 | ||
25317 | ||
25318 | ||
25319 | ||
25320 | ||
25321 | if test "x$libgfor_cv_have_float128" = xyes; then | |
25322 | LIBGFOR_BUILD_QUAD_TRUE= | |
25323 | LIBGFOR_BUILD_QUAD_FALSE='#' | |
25324 | else | |
25325 | LIBGFOR_BUILD_QUAD_TRUE='#' | |
25326 | LIBGFOR_BUILD_QUAD_FALSE= | |
25327 | fi | |
25328 | ||
25329 | ||
25330 | ||
8c84a5de | 25331 | # Check for GNU libc feenableexcept |
cd9a469c | 25332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 |
25333 | $as_echo_n "checking for feenableexcept in -lm... " >&6; } | |
25334 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then : | |
25335 | $as_echo_n "(cached) " >&6 | |
8c84a5de | 25336 | else |
25337 | ac_check_lib_save_LIBS=$LIBS | |
25338 | LIBS="-lm $LIBS" | |
25339 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25340 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
8c84a5de | 25341 | fi |
cd9a469c | 25342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8c84a5de | 25343 | /* end confdefs.h. */ |
25344 | ||
cd9a469c | 25345 | /* Override any GCC internal prototype to avoid an error. |
25346 | Use char because int might match the return type of a GCC | |
25347 | builtin and then its argument prototype would still apply. */ | |
8c84a5de | 25348 | #ifdef __cplusplus |
25349 | extern "C" | |
25350 | #endif | |
8c84a5de | 25351 | char feenableexcept (); |
25352 | int | |
25353 | main () | |
25354 | { | |
cd9a469c | 25355 | return feenableexcept (); |
8c84a5de | 25356 | ; |
25357 | return 0; | |
25358 | } | |
25359 | _ACEOF | |
cd9a469c | 25360 | if ac_fn_c_try_link "$LINENO"; then : |
8c84a5de | 25361 | ac_cv_lib_m_feenableexcept=yes |
25362 | else | |
cd9a469c | 25363 | ac_cv_lib_m_feenableexcept=no |
8c84a5de | 25364 | fi |
cd9a469c | 25365 | rm -f core conftest.err conftest.$ac_objext \ |
25366 | conftest$ac_exeext conftest.$ac_ext | |
8c84a5de | 25367 | LIBS=$ac_check_lib_save_LIBS |
25368 | fi | |
cd9a469c | 25369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 |
25370 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } | |
25371 | if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then : | |
8c84a5de | 25372 | have_feenableexcept=yes |
cd9a469c | 25373 | $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h |
aaa798ba | 25374 | |
25375 | fi | |
25376 | ||
aaa798ba | 25377 | |
a2c0dc0f | 25378 | # At least for glibc, clock_gettime is in librt. But don't pull that |
25379 | # in if it still doesn't give us the function we want. | |
290423f0 | 25380 | # This test is copied from libgomp, and modified to not link in -lrt |
25381 | # as libgfortran calls clock_gettime via a weak reference. | |
a2c0dc0f | 25382 | if test $ac_cv_func_clock_gettime = no; then |
25383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
25384 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
25385 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
25386 | $as_echo_n "(cached) " >&6 | |
25387 | else | |
25388 | ac_check_lib_save_LIBS=$LIBS | |
25389 | LIBS="-lrt $LIBS" | |
25390 | if test x$gcc_no_link = xyes; then | |
25391 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25392 | fi | |
25393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25394 | /* end confdefs.h. */ | |
25395 | ||
25396 | /* Override any GCC internal prototype to avoid an error. | |
25397 | Use char because int might match the return type of a GCC | |
25398 | builtin and then its argument prototype would still apply. */ | |
25399 | #ifdef __cplusplus | |
25400 | extern "C" | |
25401 | #endif | |
25402 | char clock_gettime (); | |
25403 | int | |
25404 | main () | |
25405 | { | |
25406 | return clock_gettime (); | |
25407 | ; | |
25408 | return 0; | |
25409 | } | |
25410 | _ACEOF | |
25411 | if ac_fn_c_try_link "$LINENO"; then : | |
25412 | ac_cv_lib_rt_clock_gettime=yes | |
25413 | else | |
25414 | ac_cv_lib_rt_clock_gettime=no | |
25415 | fi | |
25416 | rm -f core conftest.err conftest.$ac_objext \ | |
25417 | conftest$ac_exeext conftest.$ac_ext | |
25418 | LIBS=$ac_check_lib_save_LIBS | |
25419 | fi | |
25420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
25421 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
25422 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
a2c0dc0f | 25423 | |
25424 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
25425 | ||
25426 | fi | |
25427 | ||
25428 | fi | |
25429 | ||
cd9a469c | 25430 | # Check for SysV fpsetmask |
aaa798ba | 25431 | |
cd9a469c | 25432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 |
25433 | $as_echo_n "checking whether fpsetmask is present... " >&6; } | |
25434 | if test "${libgfor_cv_have_fpsetmask+set}" = set; then : | |
25435 | $as_echo_n "(cached) " >&6 | |
25436 | else | |
aaa798ba | 25437 | |
cd9a469c | 25438 | if test x$gcc_no_link = xyes; then |
25439 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25440 | fi | |
25441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25442 | /* end confdefs.h. */ | |
aaa798ba | 25443 | |
cd9a469c | 25444 | #if HAVE_FLOATINGPOINT_H |
25445 | # include <floatingpoint.h> | |
25446 | #endif /* HAVE_FLOATINGPOINT_H */ | |
25447 | #if HAVE_IEEEFP_H | |
25448 | # include <ieeefp.h> | |
25449 | #endif /* HAVE_IEEEFP_H */ | |
aaa798ba | 25450 | int |
25451 | main () | |
25452 | { | |
cd9a469c | 25453 | fpsetmask(0); |
aaa798ba | 25454 | ; |
25455 | return 0; | |
25456 | } | |
25457 | _ACEOF | |
cd9a469c | 25458 | if ac_fn_c_try_link "$LINENO"; then : |
25459 | eval "libgfor_cv_have_fpsetmask=yes" | |
aaa798ba | 25460 | else |
cd9a469c | 25461 | eval "libgfor_cv_have_fpsetmask=no" |
25462 | fi | |
25463 | rm -f core conftest.err conftest.$ac_objext \ | |
25464 | conftest$ac_exeext conftest.$ac_ext | |
aaa798ba | 25465 | |
aaa798ba | 25466 | fi |
cd9a469c | 25467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 |
25468 | $as_echo "$libgfor_cv_have_fpsetmask" >&6; } | |
25469 | if test x"$libgfor_cv_have_fpsetmask" = xyes; then | |
b00fa2cf | 25470 | have_fpsetmask=yes |
cd9a469c | 25471 | |
25472 | $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h | |
25473 | ||
25474 | fi | |
25475 | ||
25476 | ||
25477 | # Check for AIX fp_trap and fp_enable | |
25478 | ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" | |
25479 | if test "x$ac_cv_func_fp_trap" = x""yes; then : | |
25480 | have_fp_trap=yes | |
25481 | $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h | |
25482 | ||
aaa798ba | 25483 | fi |
cd9a469c | 25484 | |
25485 | ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" | |
25486 | if test "x$ac_cv_func_fp_enable" = x""yes; then : | |
aaa798ba | 25487 | have_fp_enable=yes |
cd9a469c | 25488 | $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h |
aaa798ba | 25489 | |
25490 | fi | |
25491 | ||
25492 | ||
8c84a5de | 25493 | # Runs configure.host to set up necessary host-dependent shell variables. |
25494 | # We then display a message about it, and propagate them through the | |
25495 | # build chain. | |
25496 | . ${srcdir}/configure.host | |
cd9a469c | 25497 | { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 |
25498 | $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
8c84a5de | 25499 | FPU_HOST_HEADER=config/${fpu_host}.h |
25500 | ||
25501 | ||
72934c53 | 25502 | # Some targets require additional compiler options for IEEE compatibility. |
25503 | IEEE_FLAGS="${ieee_flags}" | |
25504 | ||
25505 | ||
d78db4a0 | 25506 | |
25507 | # Check for POSIX getpwuid_r | |
25508 | # | |
25509 | # There are two versions of getpwuid_r, the POSIX one with 5 | |
25510 | # arguments, and another one with 4 arguments used by at least HP-UX | |
25511 | # 10.2. | |
25512 | if test "$ac_cv_func_getpwuid_r" = "yes"; then | |
25513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 | |
25514 | $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } | |
25515 | if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then : | |
25516 | $as_echo_n "(cached) " >&6 | |
25517 | else | |
25518 | ||
25519 | if test x$gcc_no_link = xyes; then | |
25520 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
25521 | fi | |
25522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25523 | /* end confdefs.h. */ | |
25524 | ||
25525 | #include <stdio.h> | |
25526 | #include <sys/types.h> | |
25527 | #include <pwd.h> | |
25528 | int | |
25529 | main () | |
25530 | { | |
25531 | ||
25532 | getpwuid_r(0, NULL, NULL, 0, NULL); | |
25533 | ||
25534 | ; | |
25535 | return 0; | |
25536 | } | |
25537 | _ACEOF | |
25538 | if ac_fn_c_try_link "$LINENO"; then : | |
25539 | libgfor_cv_posix_getpwuid_r="yes" | |
25540 | else | |
25541 | libgfor_cv_posix_getpwuid_r="no" | |
25542 | fi | |
25543 | rm -f core conftest.err conftest.$ac_objext \ | |
25544 | conftest$ac_exeext conftest.$ac_ext | |
25545 | fi | |
25546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 | |
25547 | $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } | |
25548 | fi | |
25549 | if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then | |
25550 | ||
25551 | $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h | |
25552 | ||
25553 | fi | |
25554 | ||
25555 | ||
7b6cb5bd | 25556 | # Check out attribute support. |
25557 | ||
cd9a469c | 25558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 |
25559 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
25560 | if test "${libgfor_cv_have_attribute_visibility+set}" = set; then : | |
25561 | $as_echo_n "(cached) " >&6 | |
7b6cb5bd | 25562 | else |
25563 | ||
25564 | save_CFLAGS="$CFLAGS" | |
25565 | CFLAGS="$CFLAGS -Werror" | |
cd9a469c | 25566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 25567 | /* end confdefs.h. */ |
25568 | void __attribute__((visibility("hidden"))) foo(void) { } | |
25569 | int | |
25570 | main () | |
25571 | { | |
25572 | ||
25573 | ; | |
25574 | return 0; | |
25575 | } | |
25576 | _ACEOF | |
cd9a469c | 25577 | if ac_fn_c_try_compile "$LINENO"; then : |
6992582a | 25578 | libgfor_cv_have_attribute_visibility=yes |
7b6cb5bd | 25579 | else |
cd9a469c | 25580 | libgfor_cv_have_attribute_visibility=no |
7b6cb5bd | 25581 | fi |
cd9a469c | 25582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 25583 | CFLAGS="$save_CFLAGS" |
25584 | fi | |
cd9a469c | 25585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 |
25586 | $as_echo "$libgfor_cv_have_attribute_visibility" >&6; } | |
6992582a | 25587 | if test $libgfor_cv_have_attribute_visibility = yes; then |
7b6cb5bd | 25588 | |
cd9a469c | 25589 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h |
7b6cb5bd | 25590 | |
25591 | fi | |
25592 | ||
cd9a469c | 25593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 |
25594 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
25595 | if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then : | |
25596 | $as_echo_n "(cached) " >&6 | |
7b6cb5bd | 25597 | else |
25598 | ||
25599 | save_CFLAGS="$CFLAGS" | |
25600 | CFLAGS="$CFLAGS -Werror" | |
cd9a469c | 25601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 25602 | /* end confdefs.h. */ |
25603 | void __attribute__((dllexport)) foo(void) { } | |
25604 | int | |
25605 | main () | |
25606 | { | |
25607 | ||
25608 | ; | |
25609 | return 0; | |
25610 | } | |
25611 | _ACEOF | |
cd9a469c | 25612 | if ac_fn_c_try_compile "$LINENO"; then : |
6992582a | 25613 | libgfor_cv_have_attribute_dllexport=yes |
7b6cb5bd | 25614 | else |
cd9a469c | 25615 | libgfor_cv_have_attribute_dllexport=no |
7b6cb5bd | 25616 | fi |
cd9a469c | 25617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7b6cb5bd | 25618 | CFLAGS="$save_CFLAGS" |
25619 | fi | |
cd9a469c | 25620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5 |
25621 | $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; } | |
6992582a | 25622 | if test $libgfor_cv_have_attribute_dllexport = yes; then |
7b6cb5bd | 25623 | |
cd9a469c | 25624 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h |
7b6cb5bd | 25625 | |
25626 | fi | |
25627 | ||
cd9a469c | 25628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 |
25629 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
25630 | if test "${libgfor_cv_have_attribute_alias+set}" = set; then : | |
25631 | $as_echo_n "(cached) " >&6 | |
7b6cb5bd | 25632 | else |
25633 | ||
b52ee437 | 25634 | if test x$gcc_no_link = xyes; then |
cd9a469c | 25635 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
b52ee437 | 25636 | fi |
cd9a469c | 25637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7b6cb5bd | 25638 | /* end confdefs.h. */ |
25639 | ||
7b6cb5bd | 25640 | void foo(void) { } |
5a2b0c34 | 25641 | extern void bar(void) __attribute__((alias("foo"))); |
7b6cb5bd | 25642 | int |
25643 | main () | |
25644 | { | |
25645 | bar(); | |
25646 | ; | |
25647 | return 0; | |
25648 | } | |
25649 | _ACEOF | |
cd9a469c | 25650 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25651 | libgfor_cv_have_attribute_alias=yes |
7b6cb5bd | 25652 | else |
cd9a469c | 25653 | libgfor_cv_have_attribute_alias=no |
7b6cb5bd | 25654 | fi |
cd9a469c | 25655 | rm -f core conftest.err conftest.$ac_objext \ |
25656 | conftest$ac_exeext conftest.$ac_ext | |
7b6cb5bd | 25657 | fi |
cd9a469c | 25658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 |
25659 | $as_echo "$libgfor_cv_have_attribute_alias" >&6; } | |
6992582a | 25660 | if test $libgfor_cv_have_attribute_alias = yes; then |
7b6cb5bd | 25661 | |
cd9a469c | 25662 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h |
7b6cb5bd | 25663 | |
25664 | fi | |
25665 | ||
60c514ba | 25666 | # Check out sync builtins support. |
25667 | ||
cd9a469c | 25668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5 |
25669 | $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; } | |
25670 | if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then : | |
25671 | $as_echo_n "(cached) " >&6 | |
60c514ba | 25672 | else |
25673 | ||
25674 | if test x$gcc_no_link = xyes; then | |
cd9a469c | 25675 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
60c514ba | 25676 | fi |
cd9a469c | 25677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
60c514ba | 25678 | /* end confdefs.h. */ |
25679 | int foovar = 0; | |
25680 | int | |
25681 | main () | |
25682 | { | |
25683 | ||
25684 | if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1); | |
25685 | if (foovar > 10) return __sync_add_and_fetch (&foovar, -1); | |
25686 | ; | |
25687 | return 0; | |
25688 | } | |
25689 | _ACEOF | |
cd9a469c | 25690 | if ac_fn_c_try_link "$LINENO"; then : |
6992582a | 25691 | libgfor_cv_have_sync_fetch_and_add=yes |
60c514ba | 25692 | else |
cd9a469c | 25693 | libgfor_cv_have_sync_fetch_and_add=no |
60c514ba | 25694 | fi |
cd9a469c | 25695 | rm -f core conftest.err conftest.$ac_objext \ |
25696 | conftest$ac_exeext conftest.$ac_ext | |
60c514ba | 25697 | fi |
cd9a469c | 25698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5 |
25699 | $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; } | |
6992582a | 25700 | if test $libgfor_cv_have_sync_fetch_and_add = yes; then |
60c514ba | 25701 | |
cd9a469c | 25702 | $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h |
60c514ba | 25703 | |
25704 | fi | |
25705 | ||
25706 | # Check out thread support. | |
25707 | ||
cd9a469c | 25708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured target thread model" >&5 |
25709 | $as_echo_n "checking configured target thread model... " >&6; } | |
25710 | if test "${libgfor_cv_target_thread_file+set}" = set; then : | |
25711 | $as_echo_n "(cached) " >&6 | |
60c514ba | 25712 | else |
25713 | ||
e0771fc0 | 25714 | libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
60c514ba | 25715 | fi |
cd9a469c | 25716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_target_thread_file" >&5 |
25717 | $as_echo "$libgfor_cv_target_thread_file" >&6; } | |
60c514ba | 25718 | |
e0771fc0 | 25719 | if test $libgfor_cv_target_thread_file != single; then |
60c514ba | 25720 | |
cd9a469c | 25721 | $as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h |
60c514ba | 25722 | |
25723 | fi | |
25724 | ||
25725 | # Check out #pragma weak. | |
25726 | ||
cd9a469c | 25727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 |
25728 | $as_echo_n "checking whether pragma weak works... " >&6; } | |
25729 | if test "${libgfor_cv_have_pragma_weak+set}" = set; then : | |
25730 | $as_echo_n "(cached) " >&6 | |
60c514ba | 25731 | else |
25732 | ||
25733 | gfor_save_CFLAGS="$CFLAGS" | |
25734 | CFLAGS="$CFLAGS -Wunknown-pragmas" | |
cd9a469c | 25735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
60c514ba | 25736 | /* end confdefs.h. */ |
b9a8e1d9 | 25737 | |
60c514ba | 25738 | void foo (void); |
25739 | #pragma weak foo | |
b9a8e1d9 | 25740 | |
60c514ba | 25741 | int |
25742 | main () | |
25743 | { | |
25744 | if (foo) foo (); | |
25745 | ; | |
25746 | return 0; | |
25747 | } | |
25748 | _ACEOF | |
cd9a469c | 25749 | if ac_fn_c_try_compile "$LINENO"; then : |
6992582a | 25750 | libgfor_cv_have_pragma_weak=yes |
60c514ba | 25751 | else |
cd9a469c | 25752 | libgfor_cv_have_pragma_weak=no |
60c514ba | 25753 | fi |
cd9a469c | 25754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
60c514ba | 25755 | fi |
cd9a469c | 25756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 |
25757 | $as_echo "$libgfor_cv_have_pragma_weak" >&6; } | |
6992582a | 25758 | if test $libgfor_cv_have_pragma_weak = yes; then |
60c514ba | 25759 | |
cd9a469c | 25760 | $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h |
60c514ba | 25761 | |
25762 | fi | |
0a207fde | 25763 | case "$host" in |
7044ab00 | 25764 | *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* ) |
0a207fde | 25765 | |
cd9a469c | 25766 | $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h |
0a207fde | 25767 | |
25768 | ;; | |
25769 | esac | |
60c514ba | 25770 | |
1dc95e51 | 25771 | # Various other checks on target |
25772 | ||
cd9a469c | 25773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 |
25774 | $as_echo_n "checking whether the target can unlink an open file... " >&6; } | |
25775 | if test "${libgfor_cv_have_unlink_open_file+set}" = set; then : | |
25776 | $as_echo_n "(cached) " >&6 | |
1dc95e51 | 25777 | else |
25778 | ||
cd9a469c | 25779 | if test "$cross_compiling" = yes; then : |
1dc95e51 | 25780 | |
25781 | case "${target}" in | |
6992582a | 25782 | *mingw*) libgfor_cv_have_unlink_open_file=no ;; |
25783 | *) libgfor_cv_have_unlink_open_file=yes;; | |
1dc95e51 | 25784 | esac |
25785 | else | |
cd9a469c | 25786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1dc95e51 | 25787 | /* end confdefs.h. */ |
25788 | ||
25789 | #include <errno.h> | |
25790 | #include <fcntl.h> | |
25791 | #include <unistd.h> | |
25792 | #include <sys/stat.h> | |
25793 | ||
25794 | int main () | |
25795 | { | |
25796 | int fd; | |
25797 | ||
25798 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD); | |
25799 | if (fd <= 0) | |
25800 | return 0; | |
25801 | if (unlink ("testfile") == -1) | |
25802 | return 1; | |
25803 | write (fd, "This is a test\n", 15); | |
25804 | close (fd); | |
25805 | ||
25806 | if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT) | |
25807 | return 0; | |
25808 | else | |
25809 | return 1; | |
25810 | } | |
25811 | _ACEOF | |
cd9a469c | 25812 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 25813 | libgfor_cv_have_unlink_open_file=yes |
1dc95e51 | 25814 | else |
cd9a469c | 25815 | libgfor_cv_have_unlink_open_file=no |
1dc95e51 | 25816 | fi |
cd9a469c | 25817 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25818 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1dc95e51 | 25819 | fi |
cd9a469c | 25820 | |
1dc95e51 | 25821 | fi |
cd9a469c | 25822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 |
25823 | $as_echo "$libgfor_cv_have_unlink_open_file" >&6; } | |
6992582a | 25824 | if test x"$libgfor_cv_have_unlink_open_file" = xyes; then |
1dc95e51 | 25825 | |
cd9a469c | 25826 | $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h |
1dc95e51 | 25827 | |
25828 | fi | |
25829 | ||
cf55c3cf | 25830 | # Check whether line terminator is LF or CRLF |
25831 | ||
cd9a469c | 25832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 |
25833 | $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } | |
25834 | if test "${libgfor_cv_have_crlf+set}" = set; then : | |
25835 | $as_echo_n "(cached) " >&6 | |
cf55c3cf | 25836 | else |
25837 | ||
cd9a469c | 25838 | if test "$cross_compiling" = yes; then : |
cf55c3cf | 25839 | |
25840 | case "${target}" in | |
6992582a | 25841 | *mingw*) libgfor_cv_have_crlf=yes ;; |
25842 | *) libgfor_cv_have_crlf=no;; | |
cf55c3cf | 25843 | esac |
25844 | else | |
cd9a469c | 25845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cf55c3cf | 25846 | /* end confdefs.h. */ |
25847 | ||
25848 | /* This test program should exit with status 0 if system uses a CRLF as | |
25849 | line terminator, and status 1 otherwise. | |
25850 | Since it is used to check for mingw systems, and should return 0 in any | |
25851 | other case, in case of a failure we will not use CRLF. */ | |
25852 | #include <sys/stat.h> | |
25853 | #include <stdlib.h> | |
25854 | #include <fcntl.h> | |
25855 | #include <stdio.h> | |
25856 | ||
25857 | int main () | |
25858 | { | |
25859 | #ifndef O_BINARY | |
25860 | exit(1); | |
25861 | #else | |
25862 | int fd, bytes; | |
25863 | char buff[5]; | |
25864 | ||
25865 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
25866 | if (fd < 0) | |
25867 | exit(1); | |
25868 | if (write (fd, "\n", 1) < 0) | |
25869 | perror ("write"); | |
25870 | ||
25871 | close (fd); | |
25872 | ||
25873 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
25874 | exit(1); | |
25875 | bytes = read (fd, buff, 5); | |
25876 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
25877 | exit(0); | |
25878 | else | |
25879 | exit(1); | |
25880 | #endif | |
25881 | } | |
25882 | _ACEOF | |
cd9a469c | 25883 | if ac_fn_c_try_run "$LINENO"; then : |
6992582a | 25884 | libgfor_cv_have_crlf=yes |
cf55c3cf | 25885 | else |
cd9a469c | 25886 | libgfor_cv_have_crlf=no |
cf55c3cf | 25887 | fi |
cd9a469c | 25888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25889 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
cf55c3cf | 25890 | fi |
cd9a469c | 25891 | |
cf55c3cf | 25892 | fi |
cd9a469c | 25893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 |
25894 | $as_echo "$libgfor_cv_have_crlf" >&6; } | |
6992582a | 25895 | if test x"$libgfor_cv_have_crlf" = xyes; then |
cf55c3cf | 25896 | |
cd9a469c | 25897 | $as_echo "#define HAVE_CRLF 1" >>confdefs.h |
cf55c3cf | 25898 | |
25899 | fi | |
25900 | ||
4ee9c684 | 25901 | cat >confcache <<\_ACEOF |
25902 | # This file is a shell script that caches the results of configure | |
25903 | # tests run on this system so they can be shared between configure | |
25904 | # scripts and configure runs, see configure's option --config-cache. | |
25905 | # It is not useful on other systems. If it contains results you don't | |
25906 | # want to keep, you may remove or edit it. | |
25907 | # | |
25908 | # config.status only pays attention to the cache file if you give it | |
25909 | # the --recheck option to rerun configure. | |
25910 | # | |
25911 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25912 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25913 | # following values. | |
25914 | ||
25915 | _ACEOF | |
25916 | ||
25917 | # The following way of writing the cache mishandles newlines in values, | |
25918 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 25919 | # So, we kill variables containing newlines. |
4ee9c684 | 25920 | # Ultrix sh set writes to stderr and can't be redirected directly, |
25921 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 25922 | ( |
25923 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
25924 | eval ac_val=\$$ac_var | |
25925 | case $ac_val in #( | |
25926 | *${as_nl}*) | |
25927 | case $ac_var in #( | |
25928 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
25929 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
25930 | esac | |
25931 | case $ac_var in #( | |
25932 | _ | IFS | as_nl) ;; #( | |
25933 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
25934 | *) { eval $ac_var=; unset $ac_var;} ;; | |
25935 | esac ;; | |
25936 | esac | |
25937 | done | |
25938 | ||
4ee9c684 | 25939 | (set) 2>&1 | |
cd9a469c | 25940 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
25941 | *${as_nl}ac_space=\ *) | |
25942 | # `set' does not quote correctly, so add quotes: double-quote | |
25943 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 25944 | sed -n \ |
25945 | "s/'/'\\\\''/g; | |
25946 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 25947 | ;; #( |
4ee9c684 | 25948 | *) |
25949 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 25950 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 25951 | ;; |
cd9a469c | 25952 | esac | |
25953 | sort | |
25954 | ) | | |
4ee9c684 | 25955 | sed ' |
cd9a469c | 25956 | /^ac_cv_env_/b end |
4ee9c684 | 25957 | t clear |
cd9a469c | 25958 | :clear |
4ee9c684 | 25959 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
25960 | t end | |
cd9a469c | 25961 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
25962 | :end' >>confcache | |
25963 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
25964 | if test -w "$cache_file"; then | |
25965 | test "x$cache_file" != "x/dev/null" && | |
25966 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
25967 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4ee9c684 | 25968 | cat confcache >$cache_file |
25969 | else | |
cd9a469c | 25970 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
25971 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 25972 | fi |
25973 | fi | |
25974 | rm -f confcache | |
25975 | ||
90973b19 | 25976 | if test ${multilib} = yes; then |
25977 | multilib_arg="--enable-multilib" | |
4ee9c684 | 25978 | else |
90973b19 | 25979 | multilib_arg= |
4ee9c684 | 25980 | fi |
4ee9c684 | 25981 | |
87969c8c | 25982 | # Write our Makefile and spec file. |
25983 | ac_config_files="$ac_config_files Makefile libgfortran.spec" | |
90973b19 | 25984 | |
4ee9c684 | 25985 | cat >confcache <<\_ACEOF |
25986 | # This file is a shell script that caches the results of configure | |
25987 | # tests run on this system so they can be shared between configure | |
25988 | # scripts and configure runs, see configure's option --config-cache. | |
25989 | # It is not useful on other systems. If it contains results you don't | |
25990 | # want to keep, you may remove or edit it. | |
25991 | # | |
25992 | # config.status only pays attention to the cache file if you give it | |
25993 | # the --recheck option to rerun configure. | |
25994 | # | |
25995 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25996 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25997 | # following values. | |
25998 | ||
25999 | _ACEOF | |
26000 | ||
26001 | # The following way of writing the cache mishandles newlines in values, | |
26002 | # but we know of no workaround that is simple, portable, and efficient. | |
cd9a469c | 26003 | # So, we kill variables containing newlines. |
4ee9c684 | 26004 | # Ultrix sh set writes to stderr and can't be redirected directly, |
26005 | # and sets the high bit in the cache file unless we assign to the vars. | |
cd9a469c | 26006 | ( |
26007 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
26008 | eval ac_val=\$$ac_var | |
26009 | case $ac_val in #( | |
26010 | *${as_nl}*) | |
26011 | case $ac_var in #( | |
26012 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
26013 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26014 | esac | |
26015 | case $ac_var in #( | |
26016 | _ | IFS | as_nl) ;; #( | |
26017 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
26018 | *) { eval $ac_var=; unset $ac_var;} ;; | |
26019 | esac ;; | |
26020 | esac | |
26021 | done | |
26022 | ||
4ee9c684 | 26023 | (set) 2>&1 | |
cd9a469c | 26024 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26025 | *${as_nl}ac_space=\ *) | |
26026 | # `set' does not quote correctly, so add quotes: double-quote | |
26027 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4ee9c684 | 26028 | sed -n \ |
26029 | "s/'/'\\\\''/g; | |
26030 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
cd9a469c | 26031 | ;; #( |
4ee9c684 | 26032 | *) |
26033 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
cd9a469c | 26034 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4ee9c684 | 26035 | ;; |
cd9a469c | 26036 | esac | |
26037 | sort | |
26038 | ) | | |
4ee9c684 | 26039 | sed ' |
cd9a469c | 26040 | /^ac_cv_env_/b end |
4ee9c684 | 26041 | t clear |
cd9a469c | 26042 | :clear |
4ee9c684 | 26043 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
26044 | t end | |
cd9a469c | 26045 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26046 | :end' >>confcache | |
26047 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
26048 | if test -w "$cache_file"; then | |
26049 | test "x$cache_file" != "x/dev/null" && | |
26050 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
26051 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4ee9c684 | 26052 | cat confcache >$cache_file |
26053 | else | |
cd9a469c | 26054 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26055 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4ee9c684 | 26056 | fi |
26057 | fi | |
26058 | rm -f confcache | |
26059 | ||
26060 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
26061 | # Let make expand exec_prefix. | |
26062 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
26063 | ||
4ee9c684 | 26064 | DEFS=-DHAVE_CONFIG_H |
26065 | ||
26066 | ac_libobjs= | |
26067 | ac_ltlibobjs= | |
26068 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
26069 | # 1. Remove the extension, and $U if already installed. | |
cd9a469c | 26070 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26071 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
26072 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
26073 | # will be set to the directory where LIBOBJS objects are built. | |
26074 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
26075 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4ee9c684 | 26076 | done |
26077 | LIBOBJS=$ac_libobjs | |
26078 | ||
26079 | LTLIBOBJS=$ac_ltlibobjs | |
26080 | ||
26081 | ||
93773f82 | 26082 | if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then |
cd9a469c | 26083 | as_fn_error "conditional \"onestep\" was never defined. |
26084 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26085 | fi | |
26086 | if test -n "$EXEEXT"; then | |
26087 | am__EXEEXT_TRUE= | |
26088 | am__EXEEXT_FALSE='#' | |
26089 | else | |
26090 | am__EXEEXT_TRUE='#' | |
26091 | am__EXEEXT_FALSE= | |
93773f82 | 26092 | fi |
cd9a469c | 26093 | |
4ee9c684 | 26094 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
cd9a469c | 26095 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
26096 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
4ee9c684 | 26097 | fi |
2fd61f51 | 26098 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
cd9a469c | 26099 | as_fn_error "conditional \"AMDEP\" was never defined. |
26100 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
2fd61f51 | 26101 | fi |
26102 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
cd9a469c | 26103 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
26104 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
2fd61f51 | 26105 | fi |
d5d92632 | 26106 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
26107 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
26108 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26109 | fi | |
ce1a737c | 26110 | if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then |
cd9a469c | 26111 | as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined. |
26112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
ce1a737c | 26113 | fi |
019fb48a | 26114 | if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then |
26115 | as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. | |
26116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26117 | fi | |
26118 | if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then | |
26119 | as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. | |
26120 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26121 | fi | |
87969c8c | 26122 | if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then |
26123 | as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. | |
26124 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
26125 | fi | |
4ee9c684 | 26126 | |
26127 | : ${CONFIG_STATUS=./config.status} | |
cd9a469c | 26128 | ac_write_fail=0 |
4ee9c684 | 26129 | ac_clean_files_save=$ac_clean_files |
26130 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
cd9a469c | 26131 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
26132 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
26133 | as_write_fail=0 | |
26134 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4ee9c684 | 26135 | #! $SHELL |
26136 | # Generated by $as_me. | |
26137 | # Run this file to recreate the current configuration. | |
26138 | # Compiler output produced by configure, useful for debugging | |
26139 | # configure, is in config.log if it exists. | |
26140 | ||
26141 | debug=false | |
26142 | ac_cs_recheck=false | |
26143 | ac_cs_silent=false | |
4ee9c684 | 26144 | |
cd9a469c | 26145 | SHELL=\${CONFIG_SHELL-$SHELL} |
26146 | export SHELL | |
26147 | _ASEOF | |
26148 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
26149 | ## -------------------- ## | |
26150 | ## M4sh Initialization. ## | |
26151 | ## -------------------- ## | |
26152 | ||
26153 | # Be more Bourne compatible | |
26154 | DUALCASE=1; export DUALCASE # for MKS sh | |
26155 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4ee9c684 | 26156 | emulate sh |
26157 | NULLCMD=: | |
cd9a469c | 26158 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4ee9c684 | 26159 | # is contrary to our usage. Disable this feature. |
26160 | alias -g '${1+"$@"}'='"$@"' | |
cd9a469c | 26161 | setopt NO_GLOB_SUBST |
26162 | else | |
26163 | case `(set -o) 2>/dev/null` in #( | |
26164 | *posix*) : | |
26165 | set -o posix ;; #( | |
26166 | *) : | |
26167 | ;; | |
26168 | esac | |
4ee9c684 | 26169 | fi |
4ee9c684 | 26170 | |
cd9a469c | 26171 | |
26172 | as_nl=' | |
26173 | ' | |
26174 | export as_nl | |
26175 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
26176 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
26177 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
26178 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
26179 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
26180 | # but without wasting forks for bash or zsh. | |
26181 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
26182 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26183 | as_echo='print -r --' | |
26184 | as_echo_n='print -rn --' | |
26185 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26186 | as_echo='printf %s\n' | |
26187 | as_echo_n='printf %s' | |
26188 | else | |
26189 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
26190 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
26191 | as_echo_n='/usr/ucb/echo -n' | |
26192 | else | |
26193 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
26194 | as_echo_n_body='eval | |
26195 | arg=$1; | |
26196 | case $arg in #( | |
26197 | *"$as_nl"*) | |
26198 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
26199 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
26200 | esac; | |
26201 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
26202 | ' | |
26203 | export as_echo_n_body | |
26204 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
26205 | fi | |
26206 | export as_echo_body | |
26207 | as_echo='sh -c $as_echo_body as_echo' | |
26208 | fi | |
26209 | ||
26210 | # The user is always right. | |
26211 | if test "${PATH_SEPARATOR+set}" != set; then | |
26212 | PATH_SEPARATOR=: | |
26213 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
26214 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
26215 | PATH_SEPARATOR=';' | |
26216 | } | |
4ee9c684 | 26217 | fi |
26218 | ||
26219 | ||
cd9a469c | 26220 | # IFS |
26221 | # We need space, tab and new line, in precisely that order. Quoting is | |
26222 | # there to prevent editors from complaining about space-tab. | |
26223 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
26224 | # splitting by setting IFS to empty value.) | |
26225 | IFS=" "" $as_nl" | |
26226 | ||
26227 | # Find who we are. Look in the path if we contain no directory separator. | |
26228 | case $0 in #(( | |
26229 | *[\\/]* ) as_myself=$0 ;; | |
26230 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26231 | for as_dir in $PATH | |
26232 | do | |
26233 | IFS=$as_save_IFS | |
26234 | test -z "$as_dir" && as_dir=. | |
26235 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
26236 | done | |
26237 | IFS=$as_save_IFS | |
26238 | ||
26239 | ;; | |
26240 | esac | |
26241 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
26242 | # in which case we are not to be found in the path. | |
26243 | if test "x$as_myself" = x; then | |
26244 | as_myself=$0 | |
26245 | fi | |
26246 | if test ! -f "$as_myself"; then | |
26247 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
26248 | exit 1 | |
26249 | fi | |
26250 | ||
26251 | # Unset variables that we do not need and which cause bugs (e.g. in | |
26252 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
26253 | # suppresses any "Segmentation fault" message there. '((' could | |
26254 | # trigger a bug in pdksh 5.2.14. | |
26255 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
26256 | do eval test x\${$as_var+set} = xset \ | |
26257 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26258 | done | |
4ee9c684 | 26259 | PS1='$ ' |
26260 | PS2='> ' | |
26261 | PS4='+ ' | |
26262 | ||
26263 | # NLS nuisances. | |
cd9a469c | 26264 | LC_ALL=C |
26265 | export LC_ALL | |
26266 | LANGUAGE=C | |
26267 | export LANGUAGE | |
26268 | ||
26269 | # CDPATH. | |
26270 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
26271 | ||
26272 | ||
26273 | # as_fn_error ERROR [LINENO LOG_FD] | |
26274 | # --------------------------------- | |
26275 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
26276 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
26277 | # script with status $?, using 1 if that was 0. | |
26278 | as_fn_error () | |
26279 | { | |
26280 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
26281 | if test "$3"; then | |
26282 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
26283 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
4ee9c684 | 26284 | fi |
cd9a469c | 26285 | $as_echo "$as_me: error: $1" >&2 |
26286 | as_fn_exit $as_status | |
26287 | } # as_fn_error | |
26288 | ||
26289 | ||
26290 | # as_fn_set_status STATUS | |
26291 | # ----------------------- | |
26292 | # Set $? to STATUS, without forking. | |
26293 | as_fn_set_status () | |
26294 | { | |
26295 | return $1 | |
26296 | } # as_fn_set_status | |
26297 | ||
26298 | # as_fn_exit STATUS | |
26299 | # ----------------- | |
26300 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
26301 | as_fn_exit () | |
26302 | { | |
26303 | set +e | |
26304 | as_fn_set_status $1 | |
26305 | exit $1 | |
26306 | } # as_fn_exit | |
26307 | ||
26308 | # as_fn_unset VAR | |
26309 | # --------------- | |
26310 | # Portably unset VAR. | |
26311 | as_fn_unset () | |
26312 | { | |
26313 | { eval $1=; unset $1;} | |
26314 | } | |
26315 | as_unset=as_fn_unset | |
26316 | # as_fn_append VAR VALUE | |
26317 | # ---------------------- | |
26318 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
26319 | # advantage of any shell optimizations that allow amortized linear growth over | |
26320 | # repeated appends, instead of the typical quadratic growth present in naive | |
26321 | # implementations. | |
26322 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
26323 | eval 'as_fn_append () | |
26324 | { | |
26325 | eval $1+=\$2 | |
26326 | }' | |
26327 | else | |
26328 | as_fn_append () | |
26329 | { | |
26330 | eval $1=\$$1\$2 | |
26331 | } | |
26332 | fi # as_fn_append | |
26333 | ||
26334 | # as_fn_arith ARG... | |
26335 | # ------------------ | |
26336 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
26337 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
26338 | # must be portable across $(()) and expr. | |
26339 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
26340 | eval 'as_fn_arith () | |
26341 | { | |
26342 | as_val=$(( $* )) | |
26343 | }' | |
26344 | else | |
26345 | as_fn_arith () | |
26346 | { | |
26347 | as_val=`expr "$@" || test $? -eq 1` | |
26348 | } | |
26349 | fi # as_fn_arith | |
4ee9c684 | 26350 | |
cd9a469c | 26351 | |
26352 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
26353 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4ee9c684 | 26354 | as_expr=expr |
26355 | else | |
26356 | as_expr=false | |
26357 | fi | |
26358 | ||
cd9a469c | 26359 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
4ee9c684 | 26360 | as_basename=basename |
26361 | else | |
26362 | as_basename=false | |
26363 | fi | |
26364 | ||
cd9a469c | 26365 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
26366 | as_dirname=dirname | |
26367 | else | |
26368 | as_dirname=false | |
26369 | fi | |
4ee9c684 | 26370 | |
cd9a469c | 26371 | as_me=`$as_basename -- "$0" || |
4ee9c684 | 26372 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
26373 | X"$0" : 'X\(//\)$' \| \ | |
cd9a469c | 26374 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
26375 | $as_echo X/"$0" | | |
26376 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
26377 | s//\1/ | |
26378 | q | |
26379 | } | |
26380 | /^X\/\(\/\/\)$/{ | |
26381 | s//\1/ | |
26382 | q | |
26383 | } | |
26384 | /^X\/\(\/\).*/{ | |
26385 | s//\1/ | |
26386 | q | |
26387 | } | |
26388 | s/.*/./; q'` | |
82eaf560 | 26389 | |
82eaf560 | 26390 | # Avoid depending upon Character Ranges. |
26391 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
26392 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
26393 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
26394 | as_cr_digits='0123456789' | |
26395 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26396 | ||
cd9a469c | 26397 | ECHO_C= ECHO_N= ECHO_T= |
26398 | case `echo -n x` in #((((( | |
26399 | -n*) | |
26400 | case `echo 'xy\c'` in | |
26401 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
26402 | xy) ECHO_C='\c';; | |
26403 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
26404 | ECHO_T=' ';; | |
26405 | esac;; | |
26406 | *) | |
26407 | ECHO_N='-n';; | |
4ee9c684 | 26408 | esac |
26409 | ||
cd9a469c | 26410 | rm -f conf$$ conf$$.exe conf$$.file |
26411 | if test -d conf$$.dir; then | |
26412 | rm -f conf$$.dir/conf$$.file | |
4ee9c684 | 26413 | else |
cd9a469c | 26414 | rm -f conf$$.dir |
26415 | mkdir conf$$.dir 2>/dev/null | |
4ee9c684 | 26416 | fi |
cd9a469c | 26417 | if (echo >conf$$.file) 2>/dev/null; then |
26418 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
82eaf560 | 26419 | as_ln_s='ln -s' |
cd9a469c | 26420 | # ... but there are two gotchas: |
26421 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
26422 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
26423 | # In both cases, we have to default to `cp -p'. | |
26424 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
26425 | as_ln_s='cp -p' | |
26426 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
26427 | as_ln_s=ln | |
26428 | else | |
26429 | as_ln_s='cp -p' | |
82eaf560 | 26430 | fi |
4ee9c684 | 26431 | else |
26432 | as_ln_s='cp -p' | |
26433 | fi | |
cd9a469c | 26434 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
26435 | rmdir conf$$.dir 2>/dev/null | |
26436 | ||
26437 | ||
26438 | # as_fn_mkdir_p | |
26439 | # ------------- | |
26440 | # Create "$as_dir" as a directory, including parents if necessary. | |
26441 | as_fn_mkdir_p () | |
26442 | { | |
26443 | ||
26444 | case $as_dir in #( | |
26445 | -*) as_dir=./$as_dir;; | |
26446 | esac | |
26447 | test -d "$as_dir" || eval $as_mkdir_p || { | |
26448 | as_dirs= | |
26449 | while :; do | |
26450 | case $as_dir in #( | |
26451 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
26452 | *) as_qdir=$as_dir;; | |
26453 | esac | |
26454 | as_dirs="'$as_qdir' $as_dirs" | |
26455 | as_dir=`$as_dirname -- "$as_dir" || | |
26456 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26457 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26458 | X"$as_dir" : 'X\(//\)$' \| \ | |
26459 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
26460 | $as_echo X"$as_dir" | | |
26461 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26462 | s//\1/ | |
26463 | q | |
26464 | } | |
26465 | /^X\(\/\/\)[^/].*/{ | |
26466 | s//\1/ | |
26467 | q | |
26468 | } | |
26469 | /^X\(\/\/\)$/{ | |
26470 | s//\1/ | |
26471 | q | |
26472 | } | |
26473 | /^X\(\/\).*/{ | |
26474 | s//\1/ | |
26475 | q | |
26476 | } | |
26477 | s/.*/./; q'` | |
26478 | test -d "$as_dir" && break | |
26479 | done | |
26480 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
26481 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
26482 | ||
4ee9c684 | 26483 | |
cd9a469c | 26484 | } # as_fn_mkdir_p |
4ee9c684 | 26485 | if mkdir -p . 2>/dev/null; then |
cd9a469c | 26486 | as_mkdir_p='mkdir -p "$as_dir"' |
4ee9c684 | 26487 | else |
26488 | test -d ./-p && rmdir ./-p | |
26489 | as_mkdir_p=false | |
26490 | fi | |
26491 | ||
cd9a469c | 26492 | if test -x / >/dev/null 2>&1; then |
26493 | as_test_x='test -x' | |
26494 | else | |
26495 | if ls -dL / >/dev/null 2>&1; then | |
26496 | as_ls_L_option=L | |
26497 | else | |
26498 | as_ls_L_option= | |
26499 | fi | |
26500 | as_test_x=' | |
26501 | eval sh -c '\'' | |
26502 | if test -d "$1"; then | |
26503 | test -d "$1/."; | |
26504 | else | |
26505 | case $1 in #( | |
26506 | -*)set "./$1";; | |
26507 | esac; | |
26508 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
26509 | ???[sx]*):;;*)false;;esac;fi | |
26510 | '\'' sh | |
26511 | ' | |
26512 | fi | |
26513 | as_executable_p=$as_test_x | |
4ee9c684 | 26514 | |
26515 | # Sed expression to map a string onto a valid CPP name. | |
26516 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26517 | ||
26518 | # Sed expression to map a string onto a valid variable name. | |
26519 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26520 | ||
26521 | ||
4ee9c684 | 26522 | exec 6>&1 |
cd9a469c | 26523 | ## ----------------------------------- ## |
26524 | ## Main body of $CONFIG_STATUS script. ## | |
26525 | ## ----------------------------------- ## | |
26526 | _ASEOF | |
26527 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
26528 | ||
26529 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26530 | # Save the log message, to keep $0 and so on meaningful, and to | |
4ee9c684 | 26531 | # report actual input values of CONFIG_FILES etc. instead of their |
cd9a469c | 26532 | # values after options handling. |
26533 | ac_log=" | |
76c0a846 | 26534 | This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was |
cd9a469c | 26535 | generated by GNU Autoconf 2.64. Invocation command line was |
4ee9c684 | 26536 | |
26537 | CONFIG_FILES = $CONFIG_FILES | |
26538 | CONFIG_HEADERS = $CONFIG_HEADERS | |
26539 | CONFIG_LINKS = $CONFIG_LINKS | |
26540 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
26541 | $ $0 $@ | |
26542 | ||
cd9a469c | 26543 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
26544 | " | |
26545 | ||
4ee9c684 | 26546 | _ACEOF |
26547 | ||
cd9a469c | 26548 | case $ac_config_files in *" |
26549 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
26550 | esac | |
a106dabe | 26551 | |
cd9a469c | 26552 | case $ac_config_headers in *" |
26553 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
26554 | esac | |
82eaf560 | 26555 | |
82eaf560 | 26556 | |
cd9a469c | 26557 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26558 | # Files that config.status was made for. | |
26559 | config_files="$ac_config_files" | |
26560 | config_headers="$ac_config_headers" | |
26561 | config_commands="$ac_config_commands" | |
4ee9c684 | 26562 | |
cd9a469c | 26563 | _ACEOF |
82eaf560 | 26564 | |
cd9a469c | 26565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 26566 | ac_cs_usage="\ |
cd9a469c | 26567 | \`$as_me' instantiates files and other configuration actions |
26568 | from templates according to the current configuration. Unless the files | |
26569 | and actions are specified as TAGs, all are instantiated by default. | |
4ee9c684 | 26570 | |
cd9a469c | 26571 | Usage: $0 [OPTION]... [TAG]... |
4ee9c684 | 26572 | |
26573 | -h, --help print this help, then exit | |
cd9a469c | 26574 | -V, --version print version number and configuration settings, then exit |
26575 | -q, --quiet, --silent | |
26576 | do not print progress messages | |
4ee9c684 | 26577 | -d, --debug don't remove temporary files |
26578 | --recheck update $as_me by reconfiguring in the same conditions | |
cd9a469c | 26579 | --file=FILE[:TEMPLATE] |
26580 | instantiate the configuration file FILE | |
26581 | --header=FILE[:TEMPLATE] | |
26582 | instantiate the configuration header FILE | |
4ee9c684 | 26583 | |
26584 | Configuration files: | |
26585 | $config_files | |
26586 | ||
26587 | Configuration headers: | |
26588 | $config_headers | |
26589 | ||
26590 | Configuration commands: | |
26591 | $config_commands | |
26592 | ||
cd9a469c | 26593 | Report bugs to the package provider. |
26594 | GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. | |
26595 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
82eaf560 | 26596 | |
cd9a469c | 26597 | _ACEOF |
26598 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4ee9c684 | 26599 | ac_cs_version="\\ |
76c0a846 | 26600 | GNU Fortran Runtime Library config.status 0.3 |
cd9a469c | 26601 | configured by $0, generated by GNU Autoconf 2.64, |
26602 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
4ee9c684 | 26603 | |
cd9a469c | 26604 | Copyright (C) 2009 Free Software Foundation, Inc. |
4ee9c684 | 26605 | This config.status script is free software; the Free Software Foundation |
26606 | gives unlimited permission to copy, distribute and modify it." | |
cd9a469c | 26607 | |
26608 | ac_pwd='$ac_pwd' | |
26609 | srcdir='$srcdir' | |
26610 | INSTALL='$INSTALL' | |
26611 | MKDIR_P='$MKDIR_P' | |
26612 | AWK='$AWK' | |
26613 | test -n "\$AWK" || AWK=awk | |
4ee9c684 | 26614 | _ACEOF |
26615 | ||
cd9a469c | 26616 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26617 | # The default lists apply if the user does not specify any file. | |
4ee9c684 | 26618 | ac_need_defaults=: |
26619 | while test $# != 0 | |
26620 | do | |
26621 | case $1 in | |
26622 | --*=*) | |
cd9a469c | 26623 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
26624 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4ee9c684 | 26625 | ac_shift=: |
26626 | ;; | |
cd9a469c | 26627 | *) |
4ee9c684 | 26628 | ac_option=$1 |
26629 | ac_optarg=$2 | |
26630 | ac_shift=shift | |
26631 | ;; | |
4ee9c684 | 26632 | esac |
26633 | ||
26634 | case $ac_option in | |
26635 | # Handling of the options. | |
4ee9c684 | 26636 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
26637 | ac_cs_recheck=: ;; | |
cd9a469c | 26638 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
26639 | $as_echo "$ac_cs_version"; exit ;; | |
26640 | --debug | --debu | --deb | --de | --d | -d ) | |
4ee9c684 | 26641 | debug=: ;; |
26642 | --file | --fil | --fi | --f ) | |
26643 | $ac_shift | |
cd9a469c | 26644 | case $ac_optarg in |
26645 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26646 | esac | |
26647 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4ee9c684 | 26648 | ac_need_defaults=false;; |
26649 | --header | --heade | --head | --hea ) | |
26650 | $ac_shift | |
cd9a469c | 26651 | case $ac_optarg in |
26652 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26653 | esac | |
26654 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4ee9c684 | 26655 | ac_need_defaults=false;; |
cd9a469c | 26656 | --he | --h) |
26657 | # Conflict between --help and --header | |
26658 | as_fn_error "ambiguous option: \`$1' | |
26659 | Try \`$0 --help' for more information.";; | |
26660 | --help | --hel | -h ) | |
26661 | $as_echo "$ac_cs_usage"; exit ;; | |
4ee9c684 | 26662 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
26663 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
26664 | ac_cs_silent=: ;; | |
26665 | ||
26666 | # This is an error. | |
cd9a469c | 26667 | -*) as_fn_error "unrecognized option: \`$1' |
26668 | Try \`$0 --help' for more information." ;; | |
4ee9c684 | 26669 | |
cd9a469c | 26670 | *) as_fn_append ac_config_targets " $1" |
26671 | ac_need_defaults=false ;; | |
4ee9c684 | 26672 | |
26673 | esac | |
26674 | shift | |
26675 | done | |
26676 | ||
26677 | ac_configure_extra_args= | |
26678 | ||
26679 | if $ac_cs_silent; then | |
26680 | exec 6>/dev/null | |
26681 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
26682 | fi | |
26683 | ||
26684 | _ACEOF | |
cd9a469c | 26685 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4ee9c684 | 26686 | if \$ac_cs_recheck; then |
cd9a469c | 26687 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
26688 | shift | |
26689 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
26690 | CONFIG_SHELL='$SHELL' | |
26691 | export CONFIG_SHELL | |
26692 | exec "\$@" | |
4ee9c684 | 26693 | fi |
26694 | ||
542f9784 | 26695 | _ACEOF |
cd9a469c | 26696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26697 | exec 5>>config.log | |
26698 | { | |
26699 | echo | |
26700 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
26701 | ## Running $as_me. ## | |
26702 | _ASBOX | |
26703 | $as_echo "$ac_log" | |
26704 | } >&5 | |
542f9784 | 26705 | |
cd9a469c | 26706 | _ACEOF |
26707 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
542f9784 | 26708 | # |
cd9a469c | 26709 | # INIT-COMMANDS |
542f9784 | 26710 | # |
26711 | ||
542f9784 | 26712 | srcdir="$srcdir" |
26713 | host="$host" | |
26714 | target="$target" | |
26715 | with_multisubdir="$with_multisubdir" | |
26716 | with_multisrctop="$with_multisrctop" | |
26717 | with_target_subdir="$with_target_subdir" | |
26718 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
26719 | multi_basedir="$multi_basedir" | |
26720 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
26721 | CC="$CC" | |
eaae6999 | 26722 | CXX="$CXX" |
26723 | GFORTRAN="$GFORTRAN" | |
26724 | GCJ="$GCJ" | |
542f9784 | 26725 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
26726 | ||
26727 | ||
26728 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
26729 | # if CDPATH is set. | |
26730 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
26731 | ||
26732 | sed_quote_subst='$sed_quote_subst' | |
26733 | double_quote_subst='$double_quote_subst' | |
26734 | delay_variable_subst='$delay_variable_subst' | |
e6408286 | 26735 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
26736 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
26737 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
26738 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
26739 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
26740 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
26741 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
26742 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
26743 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
26744 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
26745 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
26746 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
26747 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
26748 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
26749 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
26750 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
26751 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
26752 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
26753 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
26754 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
26755 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
26756 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
26757 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
26758 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
26759 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
26760 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
26761 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
26762 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
26763 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
26764 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
26765 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
26766 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
26767 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
26768 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
26769 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
26770 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
26771 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
26772 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
26773 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
26774 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
26775 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
26776 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
26777 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
26778 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
26779 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
26780 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
26781 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
26782 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
26783 | 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"`' | |
26784 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
26785 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
26786 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
26787 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
26788 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
26789 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
26790 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
26791 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
26792 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
26793 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
26794 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
26795 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
26796 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
26797 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
26798 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
26799 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
26800 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
26801 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
26802 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
26803 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
26804 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
26805 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
26806 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
26807 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
26808 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
26809 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
26810 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
26811 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
26812 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
26813 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
26814 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
26815 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
26816 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
26817 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
26818 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
26819 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
26820 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
26821 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
26822 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
26823 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
26824 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
26825 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
26826 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
26827 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
26828 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
26829 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
26830 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
26831 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
26832 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
26833 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
26834 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
26835 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
26836 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
26837 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
26838 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
26839 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
26840 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
26841 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
26842 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
26843 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
26844 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
26845 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
26846 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
26847 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
26848 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
26849 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
26850 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
26851 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
26852 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
26853 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
26854 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
26855 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
26856 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
26857 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
26858 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
26859 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
26860 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
26861 | LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' | |
26862 | reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' | |
26863 | reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26864 | old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26865 | compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' | |
26866 | GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' | |
26867 | lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' | |
26868 | lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' | |
26869 | lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' | |
26870 | lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' | |
26871 | lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' | |
26872 | archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' | |
26873 | enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' | |
26874 | export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
26875 | whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
26876 | compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' | |
26877 | old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26878 | old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26879 | archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26880 | archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26881 | module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26882 | module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26883 | with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' | |
26884 | allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
26885 | no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' | |
26886 | hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' | |
26887 | hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' | |
26888 | hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' | |
26889 | hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' | |
26890 | hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' | |
26891 | hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' | |
26892 | hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' | |
26893 | hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' | |
26894 | inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' | |
26895 | link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' | |
26896 | fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' | |
26897 | always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' | |
26898 | export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26899 | exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
26900 | include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' | |
26901 | prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' | |
26902 | file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' | |
26903 | hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' | |
26904 | compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' | |
26905 | predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
26906 | postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' | |
26907 | predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' | |
26908 | postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' | |
26909 | compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' | |
542f9784 | 26910 | |
26911 | LTCC='$LTCC' | |
26912 | LTCFLAGS='$LTCFLAGS' | |
26913 | compiler='$compiler_DEFAULT' | |
26914 | ||
e6408286 | 26915 | # A function that is used when there is no print builtin or printf. |
26916 | func_fallback_echo () | |
26917 | { | |
26918 | eval 'cat <<_LTECHO_EOF | |
26919 | \$1 | |
26920 | _LTECHO_EOF' | |
26921 | } | |
26922 | ||
542f9784 | 26923 | # Quote evaled strings. |
e6408286 | 26924 | for var in SHELL \ |
26925 | ECHO \ | |
26926 | SED \ | |
542f9784 | 26927 | GREP \ |
26928 | EGREP \ | |
26929 | FGREP \ | |
26930 | LD \ | |
26931 | NM \ | |
26932 | LN_S \ | |
26933 | lt_SP2NL \ | |
26934 | lt_NL2SP \ | |
26935 | reload_flag \ | |
00aafda4 | 26936 | OBJDUMP \ |
542f9784 | 26937 | deplibs_check_method \ |
26938 | file_magic_cmd \ | |
26939 | AR \ | |
26940 | AR_FLAGS \ | |
26941 | STRIP \ | |
26942 | RANLIB \ | |
26943 | CC \ | |
26944 | CFLAGS \ | |
26945 | compiler \ | |
26946 | lt_cv_sys_global_symbol_pipe \ | |
26947 | lt_cv_sys_global_symbol_to_cdecl \ | |
26948 | lt_cv_sys_global_symbol_to_c_name_address \ | |
00aafda4 | 26949 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
542f9784 | 26950 | lt_prog_compiler_no_builtin_flag \ |
26951 | lt_prog_compiler_wl \ | |
26952 | lt_prog_compiler_pic \ | |
26953 | lt_prog_compiler_static \ | |
26954 | lt_cv_prog_compiler_c_o \ | |
26955 | need_locks \ | |
00aafda4 | 26956 | DSYMUTIL \ |
26957 | NMEDIT \ | |
26958 | LIPO \ | |
26959 | OTOOL \ | |
26960 | OTOOL64 \ | |
542f9784 | 26961 | shrext_cmds \ |
26962 | export_dynamic_flag_spec \ | |
26963 | whole_archive_flag_spec \ | |
26964 | compiler_needs_object \ | |
26965 | with_gnu_ld \ | |
26966 | allow_undefined_flag \ | |
26967 | no_undefined_flag \ | |
26968 | hardcode_libdir_flag_spec \ | |
26969 | hardcode_libdir_flag_spec_ld \ | |
26970 | hardcode_libdir_separator \ | |
26971 | fix_srcfile_path \ | |
26972 | exclude_expsyms \ | |
26973 | include_expsyms \ | |
26974 | file_list_spec \ | |
26975 | variables_saved_for_relink \ | |
26976 | libname_spec \ | |
26977 | library_names_spec \ | |
26978 | soname_spec \ | |
e6408286 | 26979 | install_override_mode \ |
542f9784 | 26980 | finish_eval \ |
26981 | old_striplib \ | |
26982 | striplib \ | |
00aafda4 | 26983 | compiler_lib_search_dirs \ |
542f9784 | 26984 | predep_objects \ |
26985 | postdep_objects \ | |
26986 | predeps \ | |
26987 | postdeps \ | |
26988 | compiler_lib_search_path \ | |
26989 | LD_FC \ | |
e6408286 | 26990 | reload_flag_FC \ |
542f9784 | 26991 | compiler_FC \ |
26992 | lt_prog_compiler_no_builtin_flag_FC \ | |
26993 | lt_prog_compiler_wl_FC \ | |
26994 | lt_prog_compiler_pic_FC \ | |
26995 | lt_prog_compiler_static_FC \ | |
26996 | lt_cv_prog_compiler_c_o_FC \ | |
26997 | export_dynamic_flag_spec_FC \ | |
26998 | whole_archive_flag_spec_FC \ | |
26999 | compiler_needs_object_FC \ | |
27000 | with_gnu_ld_FC \ | |
27001 | allow_undefined_flag_FC \ | |
27002 | no_undefined_flag_FC \ | |
27003 | hardcode_libdir_flag_spec_FC \ | |
27004 | hardcode_libdir_flag_spec_ld_FC \ | |
27005 | hardcode_libdir_separator_FC \ | |
27006 | fix_srcfile_path_FC \ | |
27007 | exclude_expsyms_FC \ | |
27008 | include_expsyms_FC \ | |
27009 | file_list_spec_FC \ | |
00aafda4 | 27010 | compiler_lib_search_dirs_FC \ |
542f9784 | 27011 | predep_objects_FC \ |
27012 | postdep_objects_FC \ | |
27013 | predeps_FC \ | |
27014 | postdeps_FC \ | |
27015 | compiler_lib_search_path_FC; do | |
e6408286 | 27016 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27017 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27018 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
542f9784 | 27019 | ;; |
27020 | *) | |
27021 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27022 | ;; | |
27023 | esac | |
27024 | done | |
27025 | ||
27026 | # Double-quote double-evaled strings. | |
27027 | for var in reload_cmds \ | |
27028 | old_postinstall_cmds \ | |
27029 | old_postuninstall_cmds \ | |
27030 | old_archive_cmds \ | |
27031 | extract_expsyms_cmds \ | |
27032 | old_archive_from_new_cmds \ | |
27033 | old_archive_from_expsyms_cmds \ | |
27034 | archive_cmds \ | |
27035 | archive_expsym_cmds \ | |
27036 | module_cmds \ | |
27037 | module_expsym_cmds \ | |
27038 | export_symbols_cmds \ | |
27039 | prelink_cmds \ | |
27040 | postinstall_cmds \ | |
27041 | postuninstall_cmds \ | |
27042 | finish_cmds \ | |
27043 | sys_lib_search_path_spec \ | |
27044 | sys_lib_dlsearch_path_spec \ | |
e6408286 | 27045 | reload_cmds_FC \ |
542f9784 | 27046 | old_archive_cmds_FC \ |
27047 | old_archive_from_new_cmds_FC \ | |
27048 | old_archive_from_expsyms_cmds_FC \ | |
27049 | archive_cmds_FC \ | |
27050 | archive_expsym_cmds_FC \ | |
27051 | module_cmds_FC \ | |
27052 | module_expsym_cmds_FC \ | |
27053 | export_symbols_cmds_FC \ | |
27054 | prelink_cmds_FC; do | |
e6408286 | 27055 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
542f9784 | 27056 | *[\\\\\\\`\\"\\\$]*) |
e6408286 | 27057 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
542f9784 | 27058 | ;; |
27059 | *) | |
27060 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
27061 | ;; | |
27062 | esac | |
27063 | done | |
27064 | ||
542f9784 | 27065 | ac_aux_dir='$ac_aux_dir' |
27066 | xsi_shell='$xsi_shell' | |
27067 | lt_shell_append='$lt_shell_append' | |
27068 | ||
27069 | # See if we are running on zsh, and set the options which allow our | |
27070 | # commands through without removal of \ escapes INIT. | |
27071 | if test -n "\${ZSH_VERSION+set}" ; then | |
27072 | setopt NO_GLOB_SUBST | |
27073 | fi | |
27074 | ||
27075 | ||
27076 | PACKAGE='$PACKAGE' | |
27077 | VERSION='$VERSION' | |
27078 | TIMESTAMP='$TIMESTAMP' | |
27079 | RM='$RM' | |
27080 | ofile='$ofile' | |
27081 | ||
27082 | ||
4ee9c684 | 27083 | |
4ee9c684 | 27084 | |
a106dabe | 27085 | |
4ee9c684 | 27086 | |
2069752c | 27087 | GCC="$GCC" |
27088 | CC="$CC" | |
27089 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
27090 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
27091 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
27092 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
27093 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
27094 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
27095 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
27096 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
27097 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
27098 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
27099 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
56c15991 | 27100 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" |
27101 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
2069752c | 27102 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" |
56c15991 | 27103 | |
27104 | ||
4ee9c684 | 27105 | _ACEOF |
27106 | ||
cd9a469c | 27107 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ff4425cf | 27108 | |
cd9a469c | 27109 | # Handling of arguments. |
4ee9c684 | 27110 | for ac_config_target in $ac_config_targets |
27111 | do | |
cd9a469c | 27112 | case $ac_config_target in |
27113 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
27114 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
27115 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
27116 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
27117 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
27118 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
87969c8c | 27119 | "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; |
cd9a469c | 27120 | |
27121 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4ee9c684 | 27122 | esac |
27123 | done | |
27124 | ||
cd9a469c | 27125 | |
4ee9c684 | 27126 | # If the user did not use the arguments to specify the items to instantiate, |
27127 | # then the envvar interface is used. Set only those that are not. | |
27128 | # We use the long form for the default assignment because of an extremely | |
27129 | # bizarre bug on SunOS 4.1.3. | |
27130 | if $ac_need_defaults; then | |
27131 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
27132 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
27133 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
27134 | fi | |
27135 | ||
27136 | # Have a temporary directory for convenience. Make it in the build tree | |
cd9a469c | 27137 | # simply because there is no reason against having it here, and in addition, |
4ee9c684 | 27138 | # creating and moving files from /tmp can sometimes cause problems. |
cd9a469c | 27139 | # Hook for its removal unless debugging. |
27140 | # Note that there is a small window in which the directory will not be cleaned: | |
27141 | # after its creation but before its name has been assigned to `$tmp'. | |
4ee9c684 | 27142 | $debug || |
27143 | { | |
cd9a469c | 27144 | tmp= |
27145 | trap 'exit_status=$? | |
27146 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
27147 | ' 0 | |
27148 | trap 'as_fn_exit 1' 1 2 13 15 | |
4ee9c684 | 27149 | } |
4ee9c684 | 27150 | # Create a (secure) tmp directory for tmp files. |
27151 | ||
27152 | { | |
cd9a469c | 27153 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4ee9c684 | 27154 | test -n "$tmp" && test -d "$tmp" |
27155 | } || | |
27156 | { | |
cd9a469c | 27157 | tmp=./conf$$-$RANDOM |
27158 | (umask 077 && mkdir "$tmp") | |
27159 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
27160 | ||
27161 | # Set up the scripts for CONFIG_FILES section. | |
27162 | # No need to generate them if there are no CONFIG_FILES. | |
27163 | # This happens for instance with `./config.status config.h'. | |
27164 | if test -n "$CONFIG_FILES"; then | |
27165 | ||
27166 | ||
27167 | ac_cr=`echo X | tr X '\015'` | |
27168 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
27169 | # But we know of no other shell where ac_cr would be empty at this | |
27170 | # point, so we can use a bashism as a fallback. | |
27171 | if test "x$ac_cr" = x; then | |
27172 | eval ac_cr=\$\'\\r\' | |
27173 | fi | |
27174 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
27175 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
27176 | ac_cs_awk_cr='\r' | |
27177 | else | |
27178 | ac_cs_awk_cr=$ac_cr | |
27179 | fi | |
27180 | ||
27181 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
27182 | _ACEOF | |
27183 | ||
27184 | ||
4ee9c684 | 27185 | { |
cd9a469c | 27186 | echo "cat >conf$$subs.awk <<_ACEOF" && |
27187 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
27188 | echo "_ACEOF" | |
27189 | } >conf$$subs.sh || | |
27190 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27191 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
27192 | ac_delim='%!_!# ' | |
27193 | for ac_last_try in false false false false false :; do | |
27194 | . ./conf$$subs.sh || | |
27195 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27196 | ||
27197 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
27198 | if test $ac_delim_n = $ac_delim_num; then | |
27199 | break | |
27200 | elif $ac_last_try; then | |
27201 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
27202 | else | |
27203 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
27204 | fi | |
27205 | done | |
27206 | rm -f conf$$subs.sh | |
27207 | ||
27208 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27209 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
27210 | _ACEOF | |
27211 | sed -n ' | |
27212 | h | |
27213 | s/^/S["/; s/!.*/"]=/ | |
27214 | p | |
27215 | g | |
27216 | s/^[^!]*!// | |
27217 | :repl | |
27218 | t repl | |
27219 | s/'"$ac_delim"'$// | |
27220 | t delim | |
27221 | :nl | |
27222 | h | |
27223 | s/\(.\{148\}\).*/\1/ | |
27224 | t more1 | |
27225 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
27226 | p | |
27227 | n | |
27228 | b repl | |
27229 | :more1 | |
27230 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
27231 | p | |
27232 | g | |
27233 | s/.\{148\}// | |
27234 | t nl | |
27235 | :delim | |
27236 | h | |
27237 | s/\(.\{148\}\).*/\1/ | |
27238 | t more2 | |
27239 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
27240 | p | |
27241 | b | |
27242 | :more2 | |
27243 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
27244 | p | |
27245 | g | |
27246 | s/.\{148\}// | |
27247 | t delim | |
27248 | ' <conf$$subs.awk | sed ' | |
27249 | /^[^""]/{ | |
27250 | N | |
27251 | s/\n// | |
27252 | } | |
27253 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
27254 | rm -f conf$$subs.awk | |
27255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27256 | _ACAWK | |
27257 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
27258 | for (key in S) S_is_set[key] = 1 | |
27259 | FS = "\a" | |
27260 | ||
27261 | } | |
27262 | { | |
27263 | line = $ 0 | |
27264 | nfields = split(line, field, "@") | |
27265 | substed = 0 | |
27266 | len = length(field[1]) | |
27267 | for (i = 2; i < nfields; i++) { | |
27268 | key = field[i] | |
27269 | keylen = length(key) | |
27270 | if (S_is_set[key]) { | |
27271 | value = S[key] | |
27272 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
27273 | len += length(value) + length(field[++i]) | |
27274 | substed = 1 | |
27275 | } else | |
27276 | len += 1 + keylen | |
27277 | } | |
27278 | ||
27279 | print line | |
4ee9c684 | 27280 | } |
27281 | ||
cd9a469c | 27282 | _ACAWK |
27283 | _ACEOF | |
27284 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
27285 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
27286 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
27287 | else | |
27288 | cat | |
27289 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
27290 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
82eaf560 | 27291 | _ACEOF |
27292 | ||
cd9a469c | 27293 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
27294 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
27295 | # trailing colons and then remove the whole line if VPATH becomes empty | |
27296 | # (actually we leave an empty line to preserve line numbers). | |
27297 | if test "x$srcdir" = x.; then | |
27298 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
27299 | s/:*\$(srcdir):*/:/ | |
27300 | s/:*\${srcdir}:*/:/ | |
27301 | s/:*@srcdir@:*/:/ | |
27302 | s/^\([^=]*=[ ]*\):*/\1/ | |
27303 | s/:*$// | |
27304 | s/^[^=]*=[ ]*$// | |
27305 | }' | |
27306 | fi | |
82eaf560 | 27307 | |
cd9a469c | 27308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27309 | fi # test -n "$CONFIG_FILES" | |
4ee9c684 | 27310 | |
cd9a469c | 27311 | # Set up the scripts for CONFIG_HEADERS section. |
27312 | # No need to generate them if there are no CONFIG_HEADERS. | |
27313 | # This happens for instance with `./config.status Makefile'. | |
27314 | if test -n "$CONFIG_HEADERS"; then | |
27315 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
27316 | BEGIN { | |
27317 | _ACEOF | |
27318 | ||
27319 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
27320 | # here-document in config.status, that substitutes the proper values into | |
27321 | # config.h.in to produce config.h. | |
27322 | ||
27323 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
27324 | # handling of long lines. | |
27325 | ac_delim='%!_!# ' | |
27326 | for ac_last_try in false false :; do | |
27327 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
27328 | if test -z "$ac_t"; then | |
27329 | break | |
27330 | elif $ac_last_try; then | |
27331 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
27332 | else | |
27333 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ff4425cf | 27334 | fi |
cd9a469c | 27335 | done |
ce1a737c | 27336 | |
cd9a469c | 27337 | # For the awk script, D is an array of macro values keyed by name, |
27338 | # likewise P contains macro parameters if any. Preserve backslash | |
27339 | # newline sequences. | |
27340 | ||
27341 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
27342 | sed -n ' | |
27343 | s/.\{148\}/&'"$ac_delim"'/g | |
27344 | t rset | |
27345 | :rset | |
27346 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
27347 | t def | |
27348 | d | |
27349 | :def | |
27350 | s/\\$// | |
27351 | t bsnl | |
27352 | s/["\\]/\\&/g | |
27353 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27354 | D["\1"]=" \3"/p | |
27355 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
27356 | d | |
27357 | :bsnl | |
27358 | s/["\\]/\\&/g | |
27359 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
27360 | D["\1"]=" \3\\\\\\n"\\/p | |
27361 | t cont | |
27362 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
27363 | t cont | |
27364 | d | |
27365 | :cont | |
27366 | n | |
27367 | s/.\{148\}/&'"$ac_delim"'/g | |
27368 | t clear | |
27369 | :clear | |
27370 | s/\\$// | |
27371 | t bsnlc | |
27372 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
27373 | d | |
27374 | :bsnlc | |
27375 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
27376 | b cont | |
27377 | ' <confdefs.h | sed ' | |
27378 | s/'"$ac_delim"'/"\\\ | |
27379 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
27380 | ||
27381 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27382 | for (key in D) D_is_set[key] = 1 | |
27383 | FS = "\a" | |
27384 | } | |
27385 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
27386 | line = \$ 0 | |
27387 | split(line, arg, " ") | |
27388 | if (arg[1] == "#") { | |
27389 | defundef = arg[2] | |
27390 | mac1 = arg[3] | |
27391 | } else { | |
27392 | defundef = substr(arg[1], 2) | |
27393 | mac1 = arg[2] | |
27394 | } | |
27395 | split(mac1, mac2, "(") #) | |
27396 | macro = mac2[1] | |
27397 | prefix = substr(line, 1, index(line, defundef) - 1) | |
27398 | if (D_is_set[macro]) { | |
27399 | # Preserve the white space surrounding the "#". | |
27400 | print prefix "define", macro P[macro] D[macro] | |
27401 | next | |
27402 | } else { | |
27403 | # Replace #undef with comments. This is necessary, for example, | |
27404 | # in the case of _POSIX_SOURCE, which is predefined and required | |
27405 | # on some systems where configure will not decide to define it. | |
27406 | if (defundef == "undef") { | |
27407 | print "/*", prefix defundef, macro, "*/" | |
27408 | next | |
27409 | } | |
27410 | } | |
27411 | } | |
27412 | { print } | |
27413 | _ACAWK | |
4ee9c684 | 27414 | _ACEOF |
cd9a469c | 27415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27416 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
27417 | fi # test -n "$CONFIG_HEADERS" | |
27418 | ||
27419 | ||
27420 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
27421 | shift | |
27422 | for ac_tag | |
27423 | do | |
27424 | case $ac_tag in | |
27425 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
27426 | esac | |
27427 | case $ac_mode$ac_tag in | |
27428 | :[FHL]*:*);; | |
27429 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
27430 | :[FH]-) ac_tag=-:-;; | |
27431 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
27432 | esac | |
27433 | ac_save_IFS=$IFS | |
27434 | IFS=: | |
27435 | set x $ac_tag | |
27436 | IFS=$ac_save_IFS | |
27437 | shift | |
27438 | ac_file=$1 | |
27439 | shift | |
27440 | ||
27441 | case $ac_mode in | |
27442 | :L) ac_source=$1;; | |
27443 | :[FH]) | |
27444 | ac_file_inputs= | |
27445 | for ac_f | |
27446 | do | |
27447 | case $ac_f in | |
27448 | -) ac_f="$tmp/stdin";; | |
27449 | *) # Look for the file first in the build tree, then in the source tree | |
27450 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
27451 | # because $ac_f cannot contain `:'. | |
27452 | test -f "$ac_f" || | |
27453 | case $ac_f in | |
27454 | [\\/$]*) false;; | |
27455 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
27456 | esac || | |
27457 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
27458 | esac | |
27459 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
27460 | as_fn_append ac_file_inputs " '$ac_f'" | |
27461 | done | |
27462 | ||
27463 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
27464 | # use $as_me), people would be surprised to read: | |
27465 | # /* config.h. Generated by config.status. */ | |
27466 | configure_input='Generated from '` | |
27467 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
27468 | `' by configure.' | |
27469 | if test x"$ac_file" != x-; then | |
27470 | configure_input="$ac_file. $configure_input" | |
27471 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
27472 | $as_echo "$as_me: creating $ac_file" >&6;} | |
27473 | fi | |
27474 | # Neutralize special characters interpreted by sed in replacement strings. | |
27475 | case $configure_input in #( | |
27476 | *\&* | *\|* | *\\* ) | |
27477 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
27478 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
27479 | *) ac_sed_conf_input=$configure_input;; | |
27480 | esac | |
27481 | ||
27482 | case $ac_tag in | |
27483 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
27484 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
27485 | esac | |
27486 | ;; | |
4ee9c684 | 27487 | esac |
27488 | ||
cd9a469c | 27489 | ac_dir=`$as_dirname -- "$ac_file" || |
4ee9c684 | 27490 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27491 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
27492 | X"$ac_file" : 'X\(//\)$' \| \ | |
cd9a469c | 27493 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
27494 | $as_echo X"$ac_file" | | |
27495 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27496 | s//\1/ | |
27497 | q | |
27498 | } | |
27499 | /^X\(\/\/\)[^/].*/{ | |
27500 | s//\1/ | |
27501 | q | |
27502 | } | |
27503 | /^X\(\/\/\)$/{ | |
27504 | s//\1/ | |
27505 | q | |
27506 | } | |
27507 | /^X\(\/\).*/{ | |
27508 | s//\1/ | |
27509 | q | |
27510 | } | |
27511 | s/.*/./; q'` | |
27512 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4ee9c684 | 27513 | ac_builddir=. |
27514 | ||
cd9a469c | 27515 | case "$ac_dir" in |
27516 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27517 | *) | |
27518 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
27519 | # A ".." for each directory in $ac_dir_suffix. | |
27520 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
27521 | case $ac_top_builddir_sub in | |
27522 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
27523 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
27524 | esac ;; | |
27525 | esac | |
27526 | ac_abs_top_builddir=$ac_pwd | |
27527 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
27528 | # for backward compatibility: | |
27529 | ac_top_builddir=$ac_top_build_prefix | |
4ee9c684 | 27530 | |
27531 | case $srcdir in | |
cd9a469c | 27532 | .) # We are building in place. |
4ee9c684 | 27533 | ac_srcdir=. |
cd9a469c | 27534 | ac_top_srcdir=$ac_top_builddir_sub |
27535 | ac_abs_top_srcdir=$ac_pwd ;; | |
27536 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4ee9c684 | 27537 | ac_srcdir=$srcdir$ac_dir_suffix; |
cd9a469c | 27538 | ac_top_srcdir=$srcdir |
27539 | ac_abs_top_srcdir=$srcdir ;; | |
27540 | *) # Relative name. | |
27541 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
27542 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
27543 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4ee9c684 | 27544 | esac |
cd9a469c | 27545 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
4ee9c684 | 27546 | |
4ee9c684 | 27547 | |
cd9a469c | 27548 | case $ac_mode in |
27549 | :F) | |
27550 | # | |
27551 | # CONFIG_FILE | |
27552 | # | |
4ee9c684 | 27553 | |
27554 | case $INSTALL in | |
27555 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
cd9a469c | 27556 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
27557 | esac | |
27558 | ac_MKDIR_P=$MKDIR_P | |
27559 | case $MKDIR_P in | |
27560 | [\\/$]* | ?:[\\/]* ) ;; | |
27561 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
4ee9c684 | 27562 | esac |
cd9a469c | 27563 | _ACEOF |
4ee9c684 | 27564 | |
cd9a469c | 27565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27566 | # If the template does not know about datarootdir, expand it. | |
27567 | # FIXME: This hack should be removed a few years after 2.60. | |
27568 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
27569 | ac_sed_dataroot=' | |
27570 | /datarootdir/ { | |
27571 | p | |
27572 | q | |
27573 | } | |
27574 | /@datadir@/p | |
27575 | /@docdir@/p | |
27576 | /@infodir@/p | |
27577 | /@localedir@/p | |
27578 | /@mandir@/p' | |
27579 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
27580 | *datarootdir*) ac_datarootdir_seen=yes;; | |
27581 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
27582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
27583 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
27584 | _ACEOF | |
27585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27586 | ac_datarootdir_hack=' | |
27587 | s&@datadir@&$datadir&g | |
27588 | s&@docdir@&$docdir&g | |
27589 | s&@infodir@&$infodir&g | |
27590 | s&@localedir@&$localedir&g | |
27591 | s&@mandir@&$mandir&g | |
27592 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
27593 | esac | |
a106dabe | 27594 | _ACEOF |
cd9a469c | 27595 | |
27596 | # Neutralize VPATH when `$srcdir' = `.'. | |
27597 | # Shell code in configure.ac might set extrasub. | |
27598 | # FIXME: do we really want to maintain this feature? | |
27599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
27600 | ac_sed_extra="$ac_vpsub | |
4ee9c684 | 27601 | $extrasub |
27602 | _ACEOF | |
cd9a469c | 27603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4ee9c684 | 27604 | :t |
27605 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
cd9a469c | 27606 | s|@configure_input@|$ac_sed_conf_input|;t t |
27607 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
27608 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
27609 | s&@srcdir@&$ac_srcdir&;t t | |
27610 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
27611 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
27612 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
27613 | s&@builddir@&$ac_builddir&;t t | |
27614 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
27615 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
27616 | s&@INSTALL@&$ac_INSTALL&;t t | |
27617 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
27618 | $ac_datarootdir_hack | |
27619 | " | |
27620 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
27621 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
27622 | ||
27623 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
27624 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
27625 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
27626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
27627 | which seems to be undefined. Please make sure it is defined." >&5 | |
27628 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
27629 | which seems to be undefined. Please make sure it is defined." >&2;} | |
27630 | ||
27631 | rm -f "$tmp/stdin" | |
4ee9c684 | 27632 | case $ac_file in |
cd9a469c | 27633 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
27634 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
27635 | esac \ | |
27636 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
27637 | ;; | |
27638 | :H) | |
27639 | # | |
27640 | # CONFIG_HEADER | |
27641 | # | |
4ee9c684 | 27642 | if test x"$ac_file" != x-; then |
cd9a469c | 27643 | { |
27644 | $as_echo "/* $configure_input */" \ | |
27645 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
27646 | } >"$tmp/config.h" \ | |
27647 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
27648 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
27649 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
27650 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4ee9c684 | 27651 | else |
cd9a469c | 27652 | rm -f "$ac_file" |
27653 | mv "$tmp/config.h" "$ac_file" \ | |
27654 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4ee9c684 | 27655 | fi |
27656 | else | |
cd9a469c | 27657 | $as_echo "/* $configure_input */" \ |
27658 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
27659 | || as_fn_error "could not create -" "$LINENO" 5 | |
4ee9c684 | 27660 | fi |
cd9a469c | 27661 | # Compute "$ac_file"'s index in $config_headers. |
27662 | _am_arg="$ac_file" | |
4ee9c684 | 27663 | _am_stamp_count=1 |
27664 | for _am_header in $config_headers :; do | |
27665 | case $_am_header in | |
cd9a469c | 27666 | $_am_arg | $_am_arg:* ) |
4ee9c684 | 27667 | break ;; |
27668 | * ) | |
27669 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
27670 | esac | |
27671 | done | |
cd9a469c | 27672 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
27673 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27674 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
27675 | X"$_am_arg" : 'X\(//\)$' \| \ | |
27676 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
27677 | $as_echo X"$_am_arg" | | |
27678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27679 | s//\1/ | |
27680 | q | |
27681 | } | |
27682 | /^X\(\/\/\)[^/].*/{ | |
27683 | s//\1/ | |
27684 | q | |
27685 | } | |
27686 | /^X\(\/\/\)$/{ | |
27687 | s//\1/ | |
27688 | q | |
27689 | } | |
27690 | /^X\(\/\).*/{ | |
27691 | s//\1/ | |
27692 | q | |
27693 | } | |
27694 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
27695 | ;; | |
82eaf560 | 27696 | |
cd9a469c | 27697 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
27698 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
27699 | ;; | |
27700 | esac | |
4ee9c684 | 27701 | |
27702 | ||
cd9a469c | 27703 | case $ac_file$ac_mode in |
27704 | "default-1":C) | |
90973b19 | 27705 | # Only add multilib support code if we just rebuilt the top-level |
27706 | # Makefile. | |
27707 | case " $CONFIG_FILES " in | |
27708 | *" Makefile "*) | |
27709 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
27710 | ;; | |
27711 | esac ;; | |
cd9a469c | 27712 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
27713 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
27714 | # are listed without --file. Let's play safe and only enable the eval | |
27715 | # if we detect the quoting. | |
27716 | case $CONFIG_FILES in | |
27717 | *\'*) eval set x "$CONFIG_FILES" ;; | |
27718 | *) set x $CONFIG_FILES ;; | |
27719 | esac | |
27720 | shift | |
27721 | for mf | |
27722 | do | |
27723 | # Strip MF so we end up with the name of the file. | |
27724 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
27725 | # Check whether this is an Automake generated Makefile or not. | |
27726 | # We used to match only the files named `Makefile.in', but | |
27727 | # some people rename them; so instead we look at the file content. | |
27728 | # Grep'ing the first line is not enough: some people post-process | |
27729 | # each Makefile.in and add a new line on top of each file to say so. | |
27730 | # Grep'ing the whole file is not good either: AIX grep has a line | |
27731 | # limit of 2048, but all sed's we know have understand at least 4000. | |
27732 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
27733 | dirpart=`$as_dirname -- "$mf" || | |
2fd61f51 | 27734 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27735 | X"$mf" : 'X\(//\)[^/]' \| \ | |
27736 | X"$mf" : 'X\(//\)$' \| \ | |
cd9a469c | 27737 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
27738 | $as_echo X"$mf" | | |
27739 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27740 | s//\1/ | |
27741 | q | |
27742 | } | |
27743 | /^X\(\/\/\)[^/].*/{ | |
27744 | s//\1/ | |
27745 | q | |
27746 | } | |
27747 | /^X\(\/\/\)$/{ | |
27748 | s//\1/ | |
27749 | q | |
27750 | } | |
27751 | /^X\(\/\).*/{ | |
27752 | s//\1/ | |
27753 | q | |
27754 | } | |
27755 | s/.*/./; q'` | |
27756 | else | |
27757 | continue | |
27758 | fi | |
27759 | # Extract the definition of DEPDIR, am__include, and am__quote | |
27760 | # from the Makefile without running `make'. | |
27761 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
27762 | test -z "$DEPDIR" && continue | |
27763 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
27764 | test -z "am__include" && continue | |
27765 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
27766 | # When using ansi2knr, U may be empty or an underscore; expand it | |
27767 | U=`sed -n 's/^U = //p' < "$mf"` | |
27768 | # Find all dependency output files, they are included files with | |
27769 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
27770 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
27771 | # expansion. | |
27772 | for file in `sed -n " | |
27773 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
27774 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
27775 | # Make sure the directory exists. | |
27776 | test -f "$dirpart/$file" && continue | |
27777 | fdir=`$as_dirname -- "$file" || | |
2fd61f51 | 27778 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
27779 | X"$file" : 'X\(//\)[^/]' \| \ | |
27780 | X"$file" : 'X\(//\)$' \| \ | |
cd9a469c | 27781 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
27782 | $as_echo X"$file" | | |
27783 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27784 | s//\1/ | |
27785 | q | |
27786 | } | |
27787 | /^X\(\/\/\)[^/].*/{ | |
27788 | s//\1/ | |
27789 | q | |
27790 | } | |
27791 | /^X\(\/\/\)$/{ | |
27792 | s//\1/ | |
27793 | q | |
27794 | } | |
27795 | /^X\(\/\).*/{ | |
27796 | s//\1/ | |
27797 | q | |
27798 | } | |
27799 | s/.*/./; q'` | |
27800 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
27801 | # echo "creating $dirpart/$file" | |
27802 | echo '# dummy' > "$dirpart/$file" | |
2fd61f51 | 27803 | done |
2fd61f51 | 27804 | done |
cd9a469c | 27805 | } |
542f9784 | 27806 | ;; |
cd9a469c | 27807 | "libtool":C) |
542f9784 | 27808 | |
27809 | # See if we are running on zsh, and set the options which allow our | |
27810 | # commands through without removal of \ escapes. | |
27811 | if test -n "${ZSH_VERSION+set}" ; then | |
27812 | setopt NO_GLOB_SUBST | |
27813 | fi | |
27814 | ||
27815 | cfgfile="${ofile}T" | |
27816 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
27817 | $RM "$cfgfile" | |
27818 | ||
27819 | cat <<_LT_EOF >> "$cfgfile" | |
27820 | #! $SHELL | |
27821 | ||
27822 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
00aafda4 | 27823 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
542f9784 | 27824 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
27825 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
27826 | # | |
00aafda4 | 27827 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
e6408286 | 27828 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
00aafda4 | 27829 | # Written by Gordon Matzigkeit, 1996 |
542f9784 | 27830 | # |
00aafda4 | 27831 | # This file is part of GNU Libtool. |
542f9784 | 27832 | # |
00aafda4 | 27833 | # GNU Libtool is free software; you can redistribute it and/or |
27834 | # modify it under the terms of the GNU General Public License as | |
27835 | # published by the Free Software Foundation; either version 2 of | |
27836 | # the License, or (at your option) any later version. | |
542f9784 | 27837 | # |
00aafda4 | 27838 | # As a special exception to the GNU General Public License, |
27839 | # if you distribute this file as part of a program or library that | |
27840 | # is built using GNU Libtool, you may include this file under the | |
27841 | # same distribution terms that you use for the rest of that program. | |
542f9784 | 27842 | # |
00aafda4 | 27843 | # GNU Libtool is distributed in the hope that it will be useful, |
27844 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
27845 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27846 | # GNU General Public License for more details. | |
542f9784 | 27847 | # |
00aafda4 | 27848 | # You should have received a copy of the GNU General Public License |
27849 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
27850 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
27851 | # obtained by writing to the Free Software Foundation, Inc., | |
27852 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
542f9784 | 27853 | |
27854 | ||
27855 | # The names of the tagged configurations supported by this script. | |
27856 | available_tags="FC " | |
27857 | ||
27858 | # ### BEGIN LIBTOOL CONFIG | |
27859 | ||
27860 | # Which release of libtool.m4 was used? | |
27861 | macro_version=$macro_version | |
27862 | macro_revision=$macro_revision | |
27863 | ||
27864 | # Whether or not to build shared libraries. | |
27865 | build_libtool_libs=$enable_shared | |
27866 | ||
27867 | # Whether or not to build static libraries. | |
27868 | build_old_libs=$enable_static | |
27869 | ||
27870 | # What type of objects to build. | |
27871 | pic_mode=$pic_mode | |
27872 | ||
27873 | # Whether or not to optimize for fast installation. | |
27874 | fast_install=$enable_fast_install | |
27875 | ||
e6408286 | 27876 | # Shell to use when invoking shell scripts. |
27877 | SHELL=$lt_SHELL | |
27878 | ||
27879 | # An echo program that protects backslashes. | |
27880 | ECHO=$lt_ECHO | |
27881 | ||
542f9784 | 27882 | # The host system. |
27883 | host_alias=$host_alias | |
27884 | host=$host | |
27885 | host_os=$host_os | |
27886 | ||
27887 | # The build system. | |
27888 | build_alias=$build_alias | |
27889 | build=$build | |
27890 | build_os=$build_os | |
27891 | ||
27892 | # A sed program that does not truncate output. | |
27893 | SED=$lt_SED | |
27894 | ||
27895 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
27896 | Xsed="\$SED -e 1s/^X//" | |
27897 | ||
27898 | # A grep program that handles long lines. | |
27899 | GREP=$lt_GREP | |
27900 | ||
27901 | # An ERE matcher. | |
27902 | EGREP=$lt_EGREP | |
27903 | ||
27904 | # A literal string matcher. | |
27905 | FGREP=$lt_FGREP | |
27906 | ||
27907 | # A BSD- or MS-compatible name lister. | |
27908 | NM=$lt_NM | |
27909 | ||
27910 | # Whether we need soft or hard links. | |
27911 | LN_S=$lt_LN_S | |
27912 | ||
27913 | # What is the maximum length of a command? | |
27914 | max_cmd_len=$max_cmd_len | |
27915 | ||
27916 | # Object file suffix (normally "o"). | |
27917 | objext=$ac_objext | |
27918 | ||
27919 | # Executable file suffix (normally ""). | |
27920 | exeext=$exeext | |
27921 | ||
27922 | # whether the shell understands "unset". | |
27923 | lt_unset=$lt_unset | |
27924 | ||
27925 | # turn spaces into newlines. | |
27926 | SP2NL=$lt_lt_SP2NL | |
27927 | ||
27928 | # turn newlines into spaces. | |
27929 | NL2SP=$lt_lt_NL2SP | |
27930 | ||
00aafda4 | 27931 | # An object symbol dumper. |
27932 | OBJDUMP=$lt_OBJDUMP | |
27933 | ||
542f9784 | 27934 | # Method to check whether dependent libraries are shared objects. |
27935 | deplibs_check_method=$lt_deplibs_check_method | |
27936 | ||
27937 | # Command to use when deplibs_check_method == "file_magic". | |
27938 | file_magic_cmd=$lt_file_magic_cmd | |
27939 | ||
27940 | # The archiver. | |
27941 | AR=$lt_AR | |
27942 | AR_FLAGS=$lt_AR_FLAGS | |
27943 | ||
27944 | # A symbol stripping program. | |
27945 | STRIP=$lt_STRIP | |
27946 | ||
27947 | # Commands used to install an old-style archive. | |
27948 | RANLIB=$lt_RANLIB | |
27949 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
27950 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
27951 | ||
e6408286 | 27952 | # Whether to use a lock for old archive extraction. |
27953 | lock_old_archive_extraction=$lock_old_archive_extraction | |
27954 | ||
542f9784 | 27955 | # A C compiler. |
27956 | LTCC=$lt_CC | |
27957 | ||
27958 | # LTCC compiler flags. | |
27959 | LTCFLAGS=$lt_CFLAGS | |
27960 | ||
27961 | # Take the output of nm and produce a listing of raw symbols and C names. | |
27962 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
27963 | ||
27964 | # Transform the output of nm in a proper C declaration. | |
27965 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
27966 | ||
27967 | # Transform the output of nm in a C name address pair. | |
27968 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
27969 | ||
00aafda4 | 27970 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
27971 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
27972 | ||
542f9784 | 27973 | # The name of the directory that contains temporary libtool files. |
27974 | objdir=$objdir | |
27975 | ||
542f9784 | 27976 | # Used to examine libraries when file_magic_cmd begins with "file". |
27977 | MAGIC_CMD=$MAGIC_CMD | |
27978 | ||
27979 | # Must we lock files when doing compilation? | |
27980 | need_locks=$lt_need_locks | |
27981 | ||
00aafda4 | 27982 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
27983 | DSYMUTIL=$lt_DSYMUTIL | |
27984 | ||
27985 | # Tool to change global to local symbols on Mac OS X. | |
27986 | NMEDIT=$lt_NMEDIT | |
27987 | ||
27988 | # Tool to manipulate fat objects and archives on Mac OS X. | |
27989 | LIPO=$lt_LIPO | |
27990 | ||
27991 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
27992 | OTOOL=$lt_OTOOL | |
27993 | ||
27994 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
27995 | OTOOL64=$lt_OTOOL64 | |
27996 | ||
542f9784 | 27997 | # Old archive suffix (normally "a"). |
27998 | libext=$libext | |
27999 | ||
28000 | # Shared library suffix (normally ".so"). | |
28001 | shrext_cmds=$lt_shrext_cmds | |
28002 | ||
28003 | # The commands to extract the exported symbol list from a shared archive. | |
28004 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
28005 | ||
28006 | # Variables whose values should be saved in libtool wrapper scripts and | |
28007 | # restored at link time. | |
28008 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
28009 | ||
28010 | # Do we need the "lib" prefix for modules? | |
28011 | need_lib_prefix=$need_lib_prefix | |
28012 | ||
28013 | # Do we need a version for libraries? | |
28014 | need_version=$need_version | |
28015 | ||
28016 | # Library versioning type. | |
28017 | version_type=$version_type | |
28018 | ||
28019 | # Shared library runtime path variable. | |
28020 | runpath_var=$runpath_var | |
28021 | ||
28022 | # Shared library path variable. | |
28023 | shlibpath_var=$shlibpath_var | |
28024 | ||
28025 | # Is shlibpath searched before the hard-coded library search path? | |
28026 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
28027 | ||
28028 | # Format of library name prefix. | |
28029 | libname_spec=$lt_libname_spec | |
28030 | ||
28031 | # List of archive names. First name is the real one, the rest are links. | |
28032 | # The last name is the one that the linker finds with -lNAME | |
28033 | library_names_spec=$lt_library_names_spec | |
28034 | ||
28035 | # The coded name of the library, if different from the real name. | |
28036 | soname_spec=$lt_soname_spec | |
28037 | ||
e6408286 | 28038 | # Permission mode override for installation of shared libraries. |
28039 | install_override_mode=$lt_install_override_mode | |
28040 | ||
542f9784 | 28041 | # Command to use after installation of a shared archive. |
28042 | postinstall_cmds=$lt_postinstall_cmds | |
28043 | ||
28044 | # Command to use after uninstallation of a shared archive. | |
28045 | postuninstall_cmds=$lt_postuninstall_cmds | |
28046 | ||
28047 | # Commands used to finish a libtool library installation in a directory. | |
28048 | finish_cmds=$lt_finish_cmds | |
28049 | ||
28050 | # As "finish_cmds", except a single script fragment to be evaled but | |
28051 | # not shown. | |
28052 | finish_eval=$lt_finish_eval | |
28053 | ||
28054 | # Whether we should hardcode library paths into libraries. | |
28055 | hardcode_into_libs=$hardcode_into_libs | |
28056 | ||
28057 | # Compile-time system search path for libraries. | |
28058 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
28059 | ||
28060 | # Run-time system search path for libraries. | |
28061 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
28062 | ||
28063 | # Whether dlopen is supported. | |
28064 | dlopen_support=$enable_dlopen | |
28065 | ||
28066 | # Whether dlopen of programs is supported. | |
28067 | dlopen_self=$enable_dlopen_self | |
28068 | ||
28069 | # Whether dlopen of statically linked programs is supported. | |
28070 | dlopen_self_static=$enable_dlopen_self_static | |
28071 | ||
28072 | # Commands to strip libraries. | |
28073 | old_striplib=$lt_old_striplib | |
28074 | striplib=$lt_striplib | |
28075 | ||
28076 | ||
28077 | # The linker used to build libraries. | |
28078 | LD=$lt_LD | |
28079 | ||
e6408286 | 28080 | # How to create reloadable object files. |
28081 | reload_flag=$lt_reload_flag | |
28082 | reload_cmds=$lt_reload_cmds | |
28083 | ||
542f9784 | 28084 | # Commands used to build an old-style archive. |
28085 | old_archive_cmds=$lt_old_archive_cmds | |
28086 | ||
28087 | # A language specific compiler. | |
28088 | CC=$lt_compiler | |
28089 | ||
28090 | # Is the compiler the GNU compiler? | |
28091 | with_gcc=$GCC | |
28092 | ||
28093 | # Compiler flag to turn off builtin functions. | |
28094 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
28095 | ||
28096 | # How to pass a linker flag through the compiler. | |
28097 | wl=$lt_lt_prog_compiler_wl | |
28098 | ||
28099 | # Additional compiler flags for building library objects. | |
28100 | pic_flag=$lt_lt_prog_compiler_pic | |
28101 | ||
28102 | # Compiler flag to prevent dynamic linking. | |
28103 | link_static_flag=$lt_lt_prog_compiler_static | |
28104 | ||
28105 | # Does compiler simultaneously support -c and -o options? | |
28106 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
28107 | ||
28108 | # Whether or not to add -lc for building shared libraries. | |
28109 | build_libtool_need_lc=$archive_cmds_need_lc | |
28110 | ||
28111 | # Whether or not to disallow shared libs when runtime libs are static. | |
28112 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
28113 | ||
28114 | # Compiler flag to allow reflexive dlopens. | |
28115 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
28116 | ||
28117 | # Compiler flag to generate shared objects directly from archives. | |
28118 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
28119 | ||
28120 | # Whether the compiler copes with passing no objects directly. | |
28121 | compiler_needs_object=$lt_compiler_needs_object | |
28122 | ||
28123 | # Create an old-style archive from a shared archive. | |
28124 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
28125 | ||
28126 | # Create a temporary old-style archive to link instead of a shared archive. | |
28127 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
28128 | ||
28129 | # Commands used to build a shared archive. | |
28130 | archive_cmds=$lt_archive_cmds | |
28131 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
28132 | ||
28133 | # Commands used to build a loadable module if different from building | |
28134 | # a shared archive. | |
28135 | module_cmds=$lt_module_cmds | |
28136 | module_expsym_cmds=$lt_module_expsym_cmds | |
28137 | ||
28138 | # Whether we are building with GNU ld or not. | |
28139 | with_gnu_ld=$lt_with_gnu_ld | |
28140 | ||
28141 | # Flag that allows shared libraries with undefined symbols to be built. | |
28142 | allow_undefined_flag=$lt_allow_undefined_flag | |
28143 | ||
28144 | # Flag that enforces no undefined symbols. | |
28145 | no_undefined_flag=$lt_no_undefined_flag | |
28146 | ||
28147 | # Flag to hardcode \$libdir into a binary during linking. | |
28148 | # This must work even if \$libdir does not exist | |
28149 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
28150 | ||
28151 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
28152 | # during linking. This must work even if \$libdir does not exist. | |
28153 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
28154 | ||
28155 | # Whether we need a single "-rpath" flag with a separated argument. | |
28156 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
28157 | ||
28158 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28159 | # DIR into the resulting binary. | |
28160 | hardcode_direct=$hardcode_direct | |
28161 | ||
28162 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28163 | # DIR into the resulting binary and the resulting library dependency is | |
28164 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
28165 | # library is relocated. | |
28166 | hardcode_direct_absolute=$hardcode_direct_absolute | |
28167 | ||
28168 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
28169 | # into the resulting binary. | |
28170 | hardcode_minus_L=$hardcode_minus_L | |
28171 | ||
28172 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
28173 | # into the resulting binary. | |
28174 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
28175 | ||
28176 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
28177 | # into the library and all subsequent libraries and executables linked | |
28178 | # against it. | |
28179 | hardcode_automatic=$hardcode_automatic | |
28180 | ||
28181 | # Set to yes if linker adds runtime paths of dependent libraries | |
28182 | # to runtime path list. | |
28183 | inherit_rpath=$inherit_rpath | |
28184 | ||
28185 | # Whether libtool must link a program against all its dependency libraries. | |
28186 | link_all_deplibs=$link_all_deplibs | |
28187 | ||
28188 | # Fix the shell variable \$srcfile for the compiler. | |
28189 | fix_srcfile_path=$lt_fix_srcfile_path | |
28190 | ||
28191 | # Set to "yes" if exported symbols are required. | |
28192 | always_export_symbols=$always_export_symbols | |
28193 | ||
28194 | # The commands to list exported symbols. | |
28195 | export_symbols_cmds=$lt_export_symbols_cmds | |
28196 | ||
28197 | # Symbols that should not be listed in the preloaded symbols. | |
28198 | exclude_expsyms=$lt_exclude_expsyms | |
28199 | ||
28200 | # Symbols that must always be exported. | |
28201 | include_expsyms=$lt_include_expsyms | |
28202 | ||
28203 | # Commands necessary for linking programs (against libraries) with templates. | |
28204 | prelink_cmds=$lt_prelink_cmds | |
28205 | ||
28206 | # Specify filename containing input files. | |
28207 | file_list_spec=$lt_file_list_spec | |
28208 | ||
28209 | # How to hardcode a shared library path into an executable. | |
28210 | hardcode_action=$hardcode_action | |
28211 | ||
00aafda4 | 28212 | # The directories searched by this compiler when creating a shared library. |
28213 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
28214 | ||
542f9784 | 28215 | # Dependencies to place before and after the objects being linked to |
28216 | # create a shared library. | |
28217 | predep_objects=$lt_predep_objects | |
28218 | postdep_objects=$lt_postdep_objects | |
28219 | predeps=$lt_predeps | |
28220 | postdeps=$lt_postdeps | |
28221 | ||
28222 | # The library search path used internally by the compiler when linking | |
28223 | # a shared library. | |
28224 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
28225 | ||
28226 | # ### END LIBTOOL CONFIG | |
28227 | ||
28228 | _LT_EOF | |
28229 | ||
28230 | case $host_os in | |
28231 | aix3*) | |
28232 | cat <<\_LT_EOF >> "$cfgfile" | |
28233 | # AIX sometimes has problems with the GCC collect2 program. For some | |
28234 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
28235 | # vanish in a puff of smoke. | |
28236 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
28237 | COLLECT_NAMES= | |
28238 | export COLLECT_NAMES | |
28239 | fi | |
28240 | _LT_EOF | |
28241 | ;; | |
28242 | esac | |
28243 | ||
28244 | ||
28245 | ltmain="$ac_aux_dir/ltmain.sh" | |
28246 | ||
28247 | ||
28248 | # We use sed instead of cat because bash on DJGPP gets confused if | |
28249 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
28250 | # text mode, it properly converts lines to CR/LF. This bash problem | |
28251 | # is reportedly fixed, but why not run on old versions too? | |
28252 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
28253 | || (rm -f "$cfgfile"; exit 1) | |
28254 | ||
28255 | case $xsi_shell in | |
28256 | yes) | |
28257 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 28258 | |
542f9784 | 28259 | # func_dirname file append nondir_replacement |
28260 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
28261 | # otherwise set result to NONDIR_REPLACEMENT. | |
28262 | func_dirname () | |
28263 | { | |
28264 | case ${1} in | |
28265 | */*) func_dirname_result="${1%/*}${2}" ;; | |
28266 | * ) func_dirname_result="${3}" ;; | |
28267 | esac | |
28268 | } | |
28269 | ||
28270 | # func_basename file | |
28271 | func_basename () | |
28272 | { | |
28273 | func_basename_result="${1##*/}" | |
28274 | } | |
28275 | ||
00aafda4 | 28276 | # func_dirname_and_basename file append nondir_replacement |
28277 | # perform func_basename and func_dirname in a single function | |
28278 | # call: | |
28279 | # dirname: Compute the dirname of FILE. If nonempty, | |
28280 | # add APPEND to the result, otherwise set result | |
28281 | # to NONDIR_REPLACEMENT. | |
28282 | # value returned in "$func_dirname_result" | |
28283 | # basename: Compute filename of FILE. | |
28284 | # value retuned in "$func_basename_result" | |
28285 | # Implementation must be kept synchronized with func_dirname | |
28286 | # and func_basename. For efficiency, we do not delegate to | |
28287 | # those functions but instead duplicate the functionality here. | |
28288 | func_dirname_and_basename () | |
28289 | { | |
28290 | case ${1} in | |
28291 | */*) func_dirname_result="${1%/*}${2}" ;; | |
28292 | * ) func_dirname_result="${3}" ;; | |
28293 | esac | |
28294 | func_basename_result="${1##*/}" | |
28295 | } | |
28296 | ||
542f9784 | 28297 | # func_stripname prefix suffix name |
28298 | # strip PREFIX and SUFFIX off of NAME. | |
28299 | # PREFIX and SUFFIX must not contain globbing or regex special | |
28300 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
28301 | # dot (in which case that matches only a dot). | |
28302 | func_stripname () | |
28303 | { | |
28304 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
28305 | # positional parameters, so assign one to ordinary parameter first. | |
28306 | func_stripname_result=${3} | |
28307 | func_stripname_result=${func_stripname_result#"${1}"} | |
28308 | func_stripname_result=${func_stripname_result%"${2}"} | |
28309 | } | |
28310 | ||
28311 | # func_opt_split | |
28312 | func_opt_split () | |
28313 | { | |
28314 | func_opt_split_opt=${1%%=*} | |
28315 | func_opt_split_arg=${1#*=} | |
28316 | } | |
28317 | ||
28318 | # func_lo2o object | |
28319 | func_lo2o () | |
28320 | { | |
28321 | case ${1} in | |
28322 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
28323 | *) func_lo2o_result=${1} ;; | |
28324 | esac | |
28325 | } | |
00aafda4 | 28326 | |
28327 | # func_xform libobj-or-source | |
28328 | func_xform () | |
28329 | { | |
28330 | func_xform_result=${1%.*}.lo | |
28331 | } | |
28332 | ||
28333 | # func_arith arithmetic-term... | |
28334 | func_arith () | |
28335 | { | |
28336 | func_arith_result=$(( $* )) | |
28337 | } | |
28338 | ||
28339 | # func_len string | |
28340 | # STRING may not start with a hyphen. | |
28341 | func_len () | |
28342 | { | |
28343 | func_len_result=${#1} | |
28344 | } | |
28345 | ||
542f9784 | 28346 | _LT_EOF |
28347 | ;; | |
28348 | *) # Bourne compatible functions. | |
28349 | cat << \_LT_EOF >> "$cfgfile" | |
00aafda4 | 28350 | |
542f9784 | 28351 | # func_dirname file append nondir_replacement |
28352 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
28353 | # otherwise set result to NONDIR_REPLACEMENT. | |
28354 | func_dirname () | |
28355 | { | |
28356 | # Extract subdirectory from the argument. | |
e6408286 | 28357 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
542f9784 | 28358 | if test "X$func_dirname_result" = "X${1}"; then |
28359 | func_dirname_result="${3}" | |
28360 | else | |
28361 | func_dirname_result="$func_dirname_result${2}" | |
28362 | fi | |
28363 | } | |
28364 | ||
28365 | # func_basename file | |
28366 | func_basename () | |
28367 | { | |
e6408286 | 28368 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
542f9784 | 28369 | } |
28370 | ||
00aafda4 | 28371 | |
542f9784 | 28372 | # func_stripname prefix suffix name |
28373 | # strip PREFIX and SUFFIX off of NAME. | |
28374 | # PREFIX and SUFFIX must not contain globbing or regex special | |
28375 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
28376 | # dot (in which case that matches only a dot). | |
28377 | # func_strip_suffix prefix name | |
28378 | func_stripname () | |
28379 | { | |
28380 | case ${2} in | |
e6408286 | 28381 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
28382 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
542f9784 | 28383 | esac |
28384 | } | |
28385 | ||
28386 | # sed scripts: | |
28387 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
28388 | my_sed_long_arg='1s/^-[^=]*=//' | |
28389 | ||
28390 | # func_opt_split | |
28391 | func_opt_split () | |
28392 | { | |
e6408286 | 28393 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
28394 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
542f9784 | 28395 | } |
28396 | ||
28397 | # func_lo2o object | |
28398 | func_lo2o () | |
28399 | { | |
e6408286 | 28400 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
542f9784 | 28401 | } |
00aafda4 | 28402 | |
28403 | # func_xform libobj-or-source | |
28404 | func_xform () | |
28405 | { | |
e6408286 | 28406 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
00aafda4 | 28407 | } |
28408 | ||
28409 | # func_arith arithmetic-term... | |
28410 | func_arith () | |
28411 | { | |
28412 | func_arith_result=`expr "$@"` | |
28413 | } | |
28414 | ||
28415 | # func_len string | |
28416 | # STRING may not start with a hyphen. | |
28417 | func_len () | |
28418 | { | |
28419 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
28420 | } | |
28421 | ||
542f9784 | 28422 | _LT_EOF |
28423 | esac | |
28424 | ||
28425 | case $lt_shell_append in | |
28426 | yes) | |
28427 | cat << \_LT_EOF >> "$cfgfile" | |
28428 | ||
28429 | # func_append var value | |
28430 | # Append VALUE to the end of shell variable VAR. | |
28431 | func_append () | |
28432 | { | |
28433 | eval "$1+=\$2" | |
28434 | } | |
28435 | _LT_EOF | |
28436 | ;; | |
28437 | *) | |
28438 | cat << \_LT_EOF >> "$cfgfile" | |
28439 | ||
28440 | # func_append var value | |
28441 | # Append VALUE to the end of shell variable VAR. | |
28442 | func_append () | |
28443 | { | |
28444 | eval "$1=\$$1\$2" | |
28445 | } | |
00aafda4 | 28446 | |
542f9784 | 28447 | _LT_EOF |
28448 | ;; | |
28449 | esac | |
28450 | ||
28451 | ||
28452 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
28453 | || (rm -f "$cfgfile"; exit 1) | |
28454 | ||
28455 | mv -f "$cfgfile" "$ofile" || | |
28456 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
28457 | chmod +x "$ofile" | |
28458 | ||
28459 | ||
28460 | cat <<_LT_EOF >> "$ofile" | |
28461 | ||
28462 | # ### BEGIN LIBTOOL TAG CONFIG: FC | |
28463 | ||
28464 | # The linker used to build libraries. | |
28465 | LD=$lt_LD_FC | |
28466 | ||
e6408286 | 28467 | # How to create reloadable object files. |
28468 | reload_flag=$lt_reload_flag_FC | |
28469 | reload_cmds=$lt_reload_cmds_FC | |
28470 | ||
542f9784 | 28471 | # Commands used to build an old-style archive. |
28472 | old_archive_cmds=$lt_old_archive_cmds_FC | |
28473 | ||
28474 | # A language specific compiler. | |
28475 | CC=$lt_compiler_FC | |
28476 | ||
28477 | # Is the compiler the GNU compiler? | |
28478 | with_gcc=$GCC_FC | |
28479 | ||
28480 | # Compiler flag to turn off builtin functions. | |
28481 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC | |
28482 | ||
28483 | # How to pass a linker flag through the compiler. | |
28484 | wl=$lt_lt_prog_compiler_wl_FC | |
28485 | ||
28486 | # Additional compiler flags for building library objects. | |
28487 | pic_flag=$lt_lt_prog_compiler_pic_FC | |
28488 | ||
28489 | # Compiler flag to prevent dynamic linking. | |
28490 | link_static_flag=$lt_lt_prog_compiler_static_FC | |
28491 | ||
28492 | # Does compiler simultaneously support -c and -o options? | |
28493 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC | |
28494 | ||
28495 | # Whether or not to add -lc for building shared libraries. | |
28496 | build_libtool_need_lc=$archive_cmds_need_lc_FC | |
28497 | ||
28498 | # Whether or not to disallow shared libs when runtime libs are static. | |
28499 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC | |
28500 | ||
28501 | # Compiler flag to allow reflexive dlopens. | |
28502 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC | |
28503 | ||
28504 | # Compiler flag to generate shared objects directly from archives. | |
28505 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC | |
28506 | ||
28507 | # Whether the compiler copes with passing no objects directly. | |
28508 | compiler_needs_object=$lt_compiler_needs_object_FC | |
28509 | ||
28510 | # Create an old-style archive from a shared archive. | |
28511 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC | |
28512 | ||
28513 | # Create a temporary old-style archive to link instead of a shared archive. | |
28514 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC | |
28515 | ||
28516 | # Commands used to build a shared archive. | |
28517 | archive_cmds=$lt_archive_cmds_FC | |
28518 | archive_expsym_cmds=$lt_archive_expsym_cmds_FC | |
28519 | ||
28520 | # Commands used to build a loadable module if different from building | |
28521 | # a shared archive. | |
28522 | module_cmds=$lt_module_cmds_FC | |
28523 | module_expsym_cmds=$lt_module_expsym_cmds_FC | |
28524 | ||
28525 | # Whether we are building with GNU ld or not. | |
28526 | with_gnu_ld=$lt_with_gnu_ld_FC | |
28527 | ||
28528 | # Flag that allows shared libraries with undefined symbols to be built. | |
28529 | allow_undefined_flag=$lt_allow_undefined_flag_FC | |
28530 | ||
28531 | # Flag that enforces no undefined symbols. | |
28532 | no_undefined_flag=$lt_no_undefined_flag_FC | |
28533 | ||
28534 | # Flag to hardcode \$libdir into a binary during linking. | |
28535 | # This must work even if \$libdir does not exist | |
28536 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC | |
28537 | ||
28538 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
28539 | # during linking. This must work even if \$libdir does not exist. | |
28540 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC | |
28541 | ||
28542 | # Whether we need a single "-rpath" flag with a separated argument. | |
28543 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC | |
28544 | ||
28545 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28546 | # DIR into the resulting binary. | |
28547 | hardcode_direct=$hardcode_direct_FC | |
28548 | ||
28549 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
28550 | # DIR into the resulting binary and the resulting library dependency is | |
28551 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
28552 | # library is relocated. | |
28553 | hardcode_direct_absolute=$hardcode_direct_absolute_FC | |
28554 | ||
28555 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
28556 | # into the resulting binary. | |
28557 | hardcode_minus_L=$hardcode_minus_L_FC | |
28558 | ||
28559 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
28560 | # into the resulting binary. | |
28561 | hardcode_shlibpath_var=$hardcode_shlibpath_var_FC | |
28562 | ||
28563 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
28564 | # into the library and all subsequent libraries and executables linked | |
28565 | # against it. | |
28566 | hardcode_automatic=$hardcode_automatic_FC | |
28567 | ||
28568 | # Set to yes if linker adds runtime paths of dependent libraries | |
28569 | # to runtime path list. | |
28570 | inherit_rpath=$inherit_rpath_FC | |
28571 | ||
28572 | # Whether libtool must link a program against all its dependency libraries. | |
28573 | link_all_deplibs=$link_all_deplibs_FC | |
28574 | ||
28575 | # Fix the shell variable \$srcfile for the compiler. | |
28576 | fix_srcfile_path=$lt_fix_srcfile_path_FC | |
28577 | ||
28578 | # Set to "yes" if exported symbols are required. | |
28579 | always_export_symbols=$always_export_symbols_FC | |
28580 | ||
28581 | # The commands to list exported symbols. | |
28582 | export_symbols_cmds=$lt_export_symbols_cmds_FC | |
28583 | ||
28584 | # Symbols that should not be listed in the preloaded symbols. | |
28585 | exclude_expsyms=$lt_exclude_expsyms_FC | |
28586 | ||
28587 | # Symbols that must always be exported. | |
28588 | include_expsyms=$lt_include_expsyms_FC | |
28589 | ||
28590 | # Commands necessary for linking programs (against libraries) with templates. | |
28591 | prelink_cmds=$lt_prelink_cmds_FC | |
28592 | ||
28593 | # Specify filename containing input files. | |
28594 | file_list_spec=$lt_file_list_spec_FC | |
28595 | ||
28596 | # How to hardcode a shared library path into an executable. | |
28597 | hardcode_action=$hardcode_action_FC | |
28598 | ||
00aafda4 | 28599 | # The directories searched by this compiler when creating a shared library. |
28600 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC | |
28601 | ||
542f9784 | 28602 | # Dependencies to place before and after the objects being linked to |
28603 | # create a shared library. | |
28604 | predep_objects=$lt_predep_objects_FC | |
28605 | postdep_objects=$lt_postdep_objects_FC | |
28606 | predeps=$lt_predeps_FC | |
28607 | postdeps=$lt_postdeps_FC | |
28608 | ||
28609 | # The library search path used internally by the compiler when linking | |
28610 | # a shared library. | |
28611 | compiler_lib_search_path=$lt_compiler_lib_search_path_FC | |
28612 | ||
28613 | # ### END LIBTOOL TAG CONFIG: FC | |
28614 | _LT_EOF | |
28615 | ||
2fd61f51 | 28616 | ;; |
cd9a469c | 28617 | "gstdint.h":C) |
2069752c | 28618 | if test "$GCC" = yes; then |
28619 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
28620 | else | |
28621 | echo "/* generated for $CC */" > tmp-stdint.h | |
28622 | fi | |
56c15991 | 28623 | |
2069752c | 28624 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
28625 | ||
28626 | #ifndef GCC_GENERATED_STDINT_H | |
28627 | #define GCC_GENERATED_STDINT_H 1 | |
28628 | ||
28629 | #include <sys/types.h> | |
56c15991 | 28630 | EOF |
56c15991 | 28631 | |
2069752c | 28632 | if test "$acx_cv_header_stdint" != stdint.h; then |
28633 | echo "#include <stddef.h>" >> tmp-stdint.h | |
28634 | fi | |
28635 | if test "$acx_cv_header_stdint" != stddef.h; then | |
28636 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
28637 | fi | |
28638 | ||
28639 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28640 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
28641 | #ifdef __int8_t_defined | |
28642 | #define _INT8_T | |
28643 | #define _INT16_T | |
28644 | #define _INT32_T | |
28645 | #endif | |
28646 | #ifdef __uint32_t_defined | |
28647 | #define _UINT32_T | |
28648 | #endif | |
28649 | ||
28650 | EOF | |
28651 | ||
28652 | # ----------------- done header, emit basic int types ------------- | |
28653 | if test "$acx_cv_header_stdint" = stddef.h; then | |
28654 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28655 | ||
28656 | #ifndef _UINT8_T | |
28657 | #define _UINT8_T | |
28658 | #ifndef __uint8_t_defined | |
28659 | #define __uint8_t_defined | |
9ad2e3f3 | 28660 | #ifndef uint8_t |
2069752c | 28661 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
28662 | #endif | |
28663 | #endif | |
9ad2e3f3 | 28664 | #endif |
2069752c | 28665 | |
28666 | #ifndef _UINT16_T | |
28667 | #define _UINT16_T | |
28668 | #ifndef __uint16_t_defined | |
28669 | #define __uint16_t_defined | |
9ad2e3f3 | 28670 | #ifndef uint16_t |
2069752c | 28671 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
28672 | #endif | |
28673 | #endif | |
9ad2e3f3 | 28674 | #endif |
2069752c | 28675 | |
28676 | #ifndef _UINT32_T | |
28677 | #define _UINT32_T | |
28678 | #ifndef __uint32_t_defined | |
28679 | #define __uint32_t_defined | |
9ad2e3f3 | 28680 | #ifndef uint32_t |
2069752c | 28681 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
28682 | #endif | |
28683 | #endif | |
9ad2e3f3 | 28684 | #endif |
2069752c | 28685 | |
28686 | #ifndef _INT8_T | |
28687 | #define _INT8_T | |
28688 | #ifndef __int8_t_defined | |
28689 | #define __int8_t_defined | |
9ad2e3f3 | 28690 | #ifndef int8_t |
2069752c | 28691 | typedef $acx_cv_type_int8_t int8_t; |
28692 | #endif | |
28693 | #endif | |
9ad2e3f3 | 28694 | #endif |
2069752c | 28695 | |
28696 | #ifndef _INT16_T | |
28697 | #define _INT16_T | |
28698 | #ifndef __int16_t_defined | |
28699 | #define __int16_t_defined | |
9ad2e3f3 | 28700 | #ifndef int16_t |
2069752c | 28701 | typedef $acx_cv_type_int16_t int16_t; |
28702 | #endif | |
28703 | #endif | |
9ad2e3f3 | 28704 | #endif |
2069752c | 28705 | |
28706 | #ifndef _INT32_T | |
28707 | #define _INT32_T | |
28708 | #ifndef __int32_t_defined | |
28709 | #define __int32_t_defined | |
9ad2e3f3 | 28710 | #ifndef int32_t |
2069752c | 28711 | typedef $acx_cv_type_int32_t int32_t; |
28712 | #endif | |
28713 | #endif | |
9ad2e3f3 | 28714 | #endif |
2069752c | 28715 | EOF |
28716 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
28717 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28718 | ||
28719 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
28720 | #ifndef _INT8_T | |
28721 | #define _INT8_T | |
28722 | #endif | |
28723 | #ifndef _INT16_T | |
28724 | #define _INT16_T | |
28725 | #endif | |
28726 | #ifndef _INT32_T | |
28727 | #define _INT32_T | |
28728 | #endif | |
28729 | ||
28730 | #ifndef _UINT8_T | |
28731 | #define _UINT8_T | |
28732 | #ifndef __uint8_t_defined | |
28733 | #define __uint8_t_defined | |
9ad2e3f3 | 28734 | #ifndef uint8_t |
2069752c | 28735 | typedef u_int8_t uint8_t; |
28736 | #endif | |
28737 | #endif | |
9ad2e3f3 | 28738 | #endif |
2069752c | 28739 | |
28740 | #ifndef _UINT16_T | |
28741 | #define _UINT16_T | |
28742 | #ifndef __uint16_t_defined | |
28743 | #define __uint16_t_defined | |
9ad2e3f3 | 28744 | #ifndef uint16_t |
2069752c | 28745 | typedef u_int16_t uint16_t; |
28746 | #endif | |
28747 | #endif | |
9ad2e3f3 | 28748 | #endif |
2069752c | 28749 | |
28750 | #ifndef _UINT32_T | |
28751 | #define _UINT32_T | |
28752 | #ifndef __uint32_t_defined | |
28753 | #define __uint32_t_defined | |
9ad2e3f3 | 28754 | #ifndef uint32_t |
2069752c | 28755 | typedef u_int32_t uint32_t; |
28756 | #endif | |
28757 | #endif | |
9ad2e3f3 | 28758 | #endif |
2069752c | 28759 | EOF |
28760 | else | |
28761 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28762 | ||
28763 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
28764 | #ifndef _INT8_T | |
28765 | #define _INT8_T | |
28766 | #endif | |
28767 | #ifndef _INT16_T | |
28768 | #define _INT16_T | |
28769 | #endif | |
28770 | #ifndef _INT32_T | |
28771 | #define _INT32_T | |
28772 | #endif | |
28773 | #ifndef _UINT8_T | |
28774 | #define _UINT8_T | |
28775 | #endif | |
28776 | #ifndef _UINT16_T | |
28777 | #define _UINT16_T | |
28778 | #endif | |
28779 | #ifndef _UINT32_T | |
28780 | #define _UINT32_T | |
28781 | #endif | |
28782 | EOF | |
28783 | fi | |
28784 | ||
28785 | # ------------- done basic int types, emit int64_t types ------------ | |
28786 | if test "$ac_cv_type_uint64_t" = yes; then | |
28787 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28788 | ||
28789 | /* system headers have good uint64_t and int64_t */ | |
28790 | #ifndef _INT64_T | |
28791 | #define _INT64_T | |
28792 | #endif | |
28793 | #ifndef _UINT64_T | |
28794 | #define _UINT64_T | |
28795 | #endif | |
28796 | EOF | |
28797 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
28798 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28799 | ||
28800 | /* system headers have an u_int64_t (and int64_t) */ | |
28801 | #ifndef _INT64_T | |
28802 | #define _INT64_T | |
28803 | #endif | |
28804 | #ifndef _UINT64_T | |
28805 | #define _UINT64_T | |
28806 | #ifndef __uint64_t_defined | |
28807 | #define __uint64_t_defined | |
9ad2e3f3 | 28808 | #ifndef uint64_t |
2069752c | 28809 | typedef u_int64_t uint64_t; |
28810 | #endif | |
28811 | #endif | |
9ad2e3f3 | 28812 | #endif |
2069752c | 28813 | EOF |
28814 | elif test -n "$acx_cv_type_int64_t"; then | |
28815 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28816 | ||
28817 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
28818 | #ifndef _INT64_T | |
28819 | #define _INT64_T | |
9ad2e3f3 | 28820 | #ifndef int64_t |
2069752c | 28821 | typedef $acx_cv_type_int64_t int64_t; |
28822 | #endif | |
9ad2e3f3 | 28823 | #endif |
2069752c | 28824 | #ifndef _UINT64_T |
28825 | #define _UINT64_T | |
28826 | #ifndef __uint64_t_defined | |
28827 | #define __uint64_t_defined | |
9ad2e3f3 | 28828 | #ifndef uint64_t |
2069752c | 28829 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
28830 | #endif | |
28831 | #endif | |
9ad2e3f3 | 28832 | #endif |
2069752c | 28833 | EOF |
28834 | else | |
28835 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28836 | ||
28837 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
28838 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
28839 | #ifndef _INT64_T | |
28840 | #define _INT64_T | |
28841 | #ifndef __int64_t_defined | |
9ad2e3f3 | 28842 | #ifndef int64_t |
2069752c | 28843 | typedef long long int64_t; |
28844 | #endif | |
28845 | #endif | |
9ad2e3f3 | 28846 | #endif |
2069752c | 28847 | #ifndef _UINT64_T |
28848 | #define _UINT64_T | |
9ad2e3f3 | 28849 | #ifndef uint64_t |
2069752c | 28850 | typedef unsigned long long uint64_t; |
28851 | #endif | |
9ad2e3f3 | 28852 | #endif |
2069752c | 28853 | |
28854 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
28855 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
28856 | does not implement __extension__. But that compiler doesn't define | |
28857 | __GNUC_MINOR__. */ | |
28858 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
28859 | # define __extension__ | |
28860 | # endif | |
28861 | ||
28862 | # ifndef _INT64_T | |
28863 | # define _INT64_T | |
9ad2e3f3 | 28864 | # ifndef int64_t |
2069752c | 28865 | __extension__ typedef long long int64_t; |
28866 | # endif | |
9ad2e3f3 | 28867 | # endif |
2069752c | 28868 | # ifndef _UINT64_T |
28869 | # define _UINT64_T | |
9ad2e3f3 | 28870 | # ifndef uint64_t |
2069752c | 28871 | __extension__ typedef unsigned long long uint64_t; |
28872 | # endif | |
9ad2e3f3 | 28873 | # endif |
2069752c | 28874 | |
28875 | #elif !defined __STRICT_ANSI__ | |
28876 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
28877 | ||
28878 | # ifndef _INT64_T | |
28879 | # define _INT64_T | |
9ad2e3f3 | 28880 | # ifndef int64_t |
2069752c | 28881 | typedef __int64 int64_t; |
28882 | # endif | |
9ad2e3f3 | 28883 | # endif |
2069752c | 28884 | # ifndef _UINT64_T |
28885 | # define _UINT64_T | |
9ad2e3f3 | 28886 | # ifndef uint64_t |
2069752c | 28887 | typedef unsigned __int64 uint64_t; |
28888 | # endif | |
9ad2e3f3 | 28889 | # endif |
2069752c | 28890 | # endif /* compiler */ |
28891 | ||
28892 | #endif /* ANSI version */ | |
28893 | EOF | |
28894 | fi | |
28895 | ||
28896 | # ------------- done int64_t types, emit intptr types ------------ | |
28897 | if test "$ac_cv_type_uintptr_t" != yes; then | |
28898 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28899 | ||
28900 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
28901 | #ifndef __uintptr_t_defined | |
9ad2e3f3 | 28902 | #ifndef uintptr_t |
2069752c | 28903 | typedef u$acx_cv_type_intptr_t uintptr_t; |
28904 | #endif | |
9ad2e3f3 | 28905 | #endif |
2069752c | 28906 | #ifndef __intptr_t_defined |
9ad2e3f3 | 28907 | #ifndef intptr_t |
2069752c | 28908 | typedef $acx_cv_type_intptr_t intptr_t; |
28909 | #endif | |
9ad2e3f3 | 28910 | #endif |
2069752c | 28911 | EOF |
28912 | fi | |
28913 | ||
28914 | # ------------- done intptr types, emit int_least types ------------ | |
56c15991 | 28915 | if test "$ac_cv_type_int_least32_t" != yes; then |
2069752c | 28916 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 28917 | |
28918 | /* Define int_least types */ | |
28919 | typedef int8_t int_least8_t; | |
28920 | typedef int16_t int_least16_t; | |
28921 | typedef int32_t int_least32_t; | |
2069752c | 28922 | #ifdef _INT64_T |
56c15991 | 28923 | typedef int64_t int_least64_t; |
2069752c | 28924 | #endif |
56c15991 | 28925 | |
28926 | typedef uint8_t uint_least8_t; | |
28927 | typedef uint16_t uint_least16_t; | |
28928 | typedef uint32_t uint_least32_t; | |
2069752c | 28929 | #ifdef _UINT64_T |
56c15991 | 28930 | typedef uint64_t uint_least64_t; |
2069752c | 28931 | #endif |
56c15991 | 28932 | EOF |
28933 | fi | |
28934 | ||
2069752c | 28935 | # ------------- done intptr types, emit int_fast types ------------ |
56c15991 | 28936 | if test "$ac_cv_type_int_fast32_t" != yes; then |
2069752c | 28937 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
56c15991 | 28938 | |
28939 | /* Define int_fast types. short is often slow */ | |
28940 | typedef int8_t int_fast8_t; | |
28941 | typedef int int_fast16_t; | |
28942 | typedef int32_t int_fast32_t; | |
2069752c | 28943 | #ifdef _INT64_T |
56c15991 | 28944 | typedef int64_t int_fast64_t; |
2069752c | 28945 | #endif |
56c15991 | 28946 | |
28947 | typedef uint8_t uint_fast8_t; | |
28948 | typedef unsigned int uint_fast16_t; | |
28949 | typedef uint32_t uint_fast32_t; | |
2069752c | 28950 | #ifdef _UINT64_T |
56c15991 | 28951 | typedef uint64_t uint_fast64_t; |
2069752c | 28952 | #endif |
28953 | EOF | |
28954 | fi | |
28955 | ||
28956 | if test "$ac_cv_type_uintmax_t" != yes; then | |
28957 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
28958 | ||
28959 | /* Define intmax based on what we found */ | |
9ad2e3f3 | 28960 | #ifndef intmax_t |
2069752c | 28961 | #ifdef _INT64_T |
28962 | typedef int64_t intmax_t; | |
28963 | #else | |
28964 | typedef long intmax_t; | |
28965 | #endif | |
9ad2e3f3 | 28966 | #endif |
28967 | #ifndef uintmax_t | |
2069752c | 28968 | #ifdef _UINT64_T |
28969 | typedef uint64_t uintmax_t; | |
28970 | #else | |
28971 | typedef unsigned long uintmax_t; | |
28972 | #endif | |
9ad2e3f3 | 28973 | #endif |
56c15991 | 28974 | EOF |
28975 | fi | |
28976 | ||
2069752c | 28977 | sed 's/^ *//' >> tmp-stdint.h <<EOF |
28978 | ||
28979 | #endif /* GCC_GENERATED_STDINT_H */ | |
28980 | EOF | |
56c15991 | 28981 | |
2069752c | 28982 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then |
28983 | rm -f tmp-stdint.h | |
56c15991 | 28984 | else |
2069752c | 28985 | mv -f tmp-stdint.h gstdint.h |
56c15991 | 28986 | fi |
28987 | ||
28988 | ;; | |
cd9a469c | 28989 | |
4ee9c684 | 28990 | esac |
cd9a469c | 28991 | done # for ac_tag |
4ee9c684 | 28992 | |
4ee9c684 | 28993 | |
cd9a469c | 28994 | as_fn_exit 0 |
4ee9c684 | 28995 | _ACEOF |
4ee9c684 | 28996 | ac_clean_files=$ac_clean_files_save |
28997 | ||
cd9a469c | 28998 | test $ac_write_fail = 0 || |
28999 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
29000 | ||
4ee9c684 | 29001 | |
29002 | # configure is writing to config.log, and then calls config.status. | |
29003 | # config.status does its own redirection, appending to config.log. | |
29004 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
29005 | # by configure, so config.status won't be able to write to it; its | |
29006 | # output is simply discarded. So we exec the FD to /dev/null, | |
29007 | # effectively closing config.log, so it can be properly (re)opened and | |
29008 | # appended to by config.status. When coming back to configure, we | |
29009 | # need to make the FD available again. | |
29010 | if test "$no_create" != yes; then | |
29011 | ac_cs_success=: | |
29012 | ac_config_status_args= | |
29013 | test "$silent" = yes && | |
29014 | ac_config_status_args="$ac_config_status_args --quiet" | |
29015 | exec 5>/dev/null | |
29016 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
29017 | exec 5>>config.log | |
29018 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
29019 | # would make configure fail if this is the last instruction. | |
cd9a469c | 29020 | $ac_cs_success || as_fn_exit $? |
29021 | fi | |
29022 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
29023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
29024 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4ee9c684 | 29025 | fi |
29026 |