]> git.ipfire.org Git - thirdparty/gcc.git/blob - libquadmath/configure
Sync with binutils: GCC: Pass --plugin to AR and RANLIB
[thirdparty/gcc.git] / libquadmath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
31 fi
32
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 }
79 fi
80
81
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GCC Quad-precision Math Library'
589 PACKAGE_TARNAME='libquadmath'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 GENINSRC_FALSE
637 GENINSRC_TRUE
638 XCFLAGS
639 BUILD_LIBQUADMATH_FALSE
640 BUILD_LIBQUADMATH_TRUE
641 LIBQUAD_USE_SYMVER_SUN_FALSE
642 LIBQUAD_USE_SYMVER_SUN_TRUE
643 LIBQUAD_USE_SYMVER_GNU_FALSE
644 LIBQUAD_USE_SYMVER_GNU_TRUE
645 LIBQUAD_USE_SYMVER_FALSE
646 LIBQUAD_USE_SYMVER_TRUE
647 toolexeclibdir
648 toolexecdir
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 enable_static
653 enable_shared
654 lt_host_flags
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 RANLIB
661 AR
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 LIBTOOL
671 REPORT_BUGS_TEXI
672 REPORT_BUGS_TO
673 BUILD_INFO_FALSE
674 BUILD_INFO_TRUE
675 EGREP
676 GREP
677 CPP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 multi_basedir
723 target_noncanonical
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_silent_rules
779 enable_version_specific_runtime_libs
780 enable_dependency_tracking
781 with_bugurl
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_maintainer_mode
789 with_toolexeclibdir
790 enable_symvers
791 enable_cet
792 enable_generated_files_in_srcdir
793 with_gcc_major_version_only
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CPP'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 ;;
1210
1211 esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1232 do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309 else
1310 ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410 _ACEOF
1411 fi
1412
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-multilib build many library versions (default)
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-version-specific-runtime-libs
1427 specify that runtime libraries should be installed
1428 in a compiler-specific directory
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-maintainer-mode
1439 enable make rules and dependencies not useful (and
1440 sometimes confusing) to the casual installer
1441 --disable-symvers disable symbol versioning for libquadmath
1442 --enable-cet enable Intel CET in target libraries [default=auto]
1443 --enable-generated-files-in-srcdir
1444 put copies of generated files in source dir intended
1445 for creating source tarballs for users without
1446 texinfo bison or flex
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-bugurl=URL Direct users to URL to report a bug
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-toolexeclibdir=DIR
1456 install libraries built with a cross compiler within
1457 DIR
1458 --with-gcc-major-version-only
1459 use only GCC major number in filesystem paths
1460
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 GCC Quad-precision Math Library configure 0.1
1538 generated by GNU Autoconf 2.69
1539
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_cpp ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } > conftest.i && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 }; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_cpp
1625
1626 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629 # the include files in INCLUDES and setting the cache variable VAR
1630 # accordingly.
1631 ac_fn_c_check_header_mongrel ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if eval \${$3+:} false; then :
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 else
1644 # Is the header compilable?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646 $as_echo_n "checking $2 usability... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 ac_header_compiler=yes
1654 else
1655 ac_header_compiler=no
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659 $as_echo "$ac_header_compiler" >&6; }
1660
1661 # Is the header present?
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663 $as_echo_n "checking $2 presence... " >&6; }
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1670 else
1671 ac_header_preproc=no
1672 fi
1673 rm -f conftest.err conftest.i conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675 $as_echo "$ac_header_preproc" >&6; }
1676
1677 # So? What about this header?
1678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679 yes:no: )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685 no:yes:* )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ;;
1697 esac
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=\$ac_header_compiler"
1704 fi
1705 eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707 $as_echo "$ac_res" >&6; }
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_mongrel
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists and can be compiled using the include files in
1758 # INCLUDES, setting the cache variable VAR accordingly.
1759 ac_fn_c_check_header_compile ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_header_compile
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval \${$3+:} false; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 if test x$gcc_no_link = xyes; then
1844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1845 fi
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883 ;
1884 return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_func
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1904
1905 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1907
1908 $ $0 $@
1909
1910 _ACEOF
1911 exec 5>>config.log
1912 {
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1917
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935 _ASUNAME
1936
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1945
1946 } >&5
1947
1948 cat >&5 <<_ACEOF
1949
1950
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1954
1955 _ACEOF
1956
1957
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1968 do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2005
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021 (
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049 )
2050 echo
2051
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097 ' 0
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2102
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2105
2106 $as_echo "/* confdefs.h */" > confdefs.h
2107
2108 # Predefined preprocessor variables.
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2133
2134
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149 else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152 fi
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154 do
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2165 fi
2166 done
2167
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2178 fi
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2183 fi
2184
2185 # Check that the precious variables saved in the cache have kept the same
2186 # value.
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2233 fi
2234 done
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241 fi
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2245
2246 ac_ext=c
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253
2254
2255
2256 ac_config_headers="$ac_config_headers config.h"
2257
2258
2259 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2260 #
2261 # You will slowly go insane if you do not grok the following fact: when
2262 # building this library, the top-level /target/ becomes the library's /host/.
2263 #
2264 # configure then causes --target to default to --host, exactly like any
2265 # other package using autoconf. Therefore, 'target' and 'host' will
2266 # always be the same. This makes sense both for native and cross compilers
2267 # just think about it for a little while. :-)
2268 #
2269 # Also, if this library is being configured as part of a cross compiler, the
2270 # top-level configure script will pass the "real" host as $with_cross_host.
2271 #
2272 # Do not delete or change the following two lines. For why, see
2273 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 if test -f "$ac_dir/install-sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install-sh -c"
2279 break
2280 elif test -f "$ac_dir/install.sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install.sh -c"
2283 break
2284 elif test -f "$ac_dir/shtool"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/shtool install -c"
2287 break
2288 fi
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2292 fi
2293
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2301
2302
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2306
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308 $as_echo_n "checking build system type... " >&6; }
2309 if ${ac_cv_build+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 ac_build_alias=$build_alias
2313 test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315 test "x$ac_build_alias" = x &&
2316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2319
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322 $as_echo "$ac_cv_build" >&6; }
2323 case $ac_cv_build in
2324 *-*-*) ;;
2325 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2326 esac
2327 build=$ac_cv_build
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_build
2330 shift
2331 build_cpu=$1
2332 build_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 build_os=$*
2337 IFS=$ac_save_IFS
2338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2339
2340
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2342 $as_echo_n "checking host system type... " >&6; }
2343 if ${ac_cv_host+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 if test "x$host_alias" = x; then
2347 ac_cv_host=$ac_cv_build
2348 else
2349 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2351 fi
2352
2353 fi
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2355 $as_echo "$ac_cv_host" >&6; }
2356 case $ac_cv_host in
2357 *-*-*) ;;
2358 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2359 esac
2360 host=$ac_cv_host
2361 ac_save_IFS=$IFS; IFS='-'
2362 set x $ac_cv_host
2363 shift
2364 host_cpu=$1
2365 host_vendor=$2
2366 shift; shift
2367 # Remember, the first character of IFS is used to create $*,
2368 # except with old shells:
2369 host_os=$*
2370 IFS=$ac_save_IFS
2371 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2372
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2375 $as_echo_n "checking target system type... " >&6; }
2376 if ${ac_cv_target+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test "x$target_alias" = x; then
2380 ac_cv_target=$ac_cv_host
2381 else
2382 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2384 fi
2385
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2388 $as_echo "$ac_cv_target" >&6; }
2389 case $ac_cv_target in
2390 *-*-*) ;;
2391 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2392 esac
2393 target=$ac_cv_target
2394 ac_save_IFS=$IFS; IFS='-'
2395 set x $ac_cv_target
2396 shift
2397 target_cpu=$1
2398 target_vendor=$2
2399 shift; shift
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2402 target_os=$*
2403 IFS=$ac_save_IFS
2404 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2405
2406
2407 # The aliases save the names the user supplied, while $host etc.
2408 # will get canonicalized.
2409 test -n "$target_alias" &&
2410 test "$program_prefix$program_suffix$program_transform_name" = \
2411 NONENONEs,x,x, &&
2412 program_prefix=${target_alias}-
2413
2414 case ${build_alias} in
2415 "") build_noncanonical=${build} ;;
2416 *) build_noncanonical=${build_alias} ;;
2417 esac
2418
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422 esac
2423
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
2427 esac
2428
2429
2430
2431
2432 # Default to --enable-multilib
2433 # Check whether --enable-multilib was given.
2434 if test "${enable_multilib+set}" = set; then :
2435 enableval=$enable_multilib; case "$enableval" in
2436 yes) multilib=yes ;;
2437 no) multilib=no ;;
2438 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2439 esac
2440 else
2441 multilib=yes
2442 fi
2443
2444
2445 # We may get other options which we leave undocumented:
2446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2447 # See config-ml.in if you want the gory details.
2448
2449 if test "$srcdir" = "."; then
2450 if test "$with_target_subdir" != "."; then
2451 multi_basedir="$srcdir/$with_multisrctop../.."
2452 else
2453 multi_basedir="$srcdir/$with_multisrctop.."
2454 fi
2455 else
2456 multi_basedir="$srcdir/.."
2457 fi
2458
2459
2460 # Even if the default multilib is not a cross compilation,
2461 # it may be that some of the other multilibs are.
2462 if test $cross_compiling = no && test $multilib = yes \
2463 && test "x${with_multisubdir}" != x ; then
2464 cross_compiling=maybe
2465 fi
2466
2467 ac_config_commands="$ac_config_commands default-1"
2468
2469
2470 target_alias=${target_alias-$host_alias}
2471
2472
2473 am__api_version='1.15'
2474
2475 # Find a good install program. We prefer a C program (faster),
2476 # so one script is as good as another. But avoid the broken or
2477 # incompatible versions:
2478 # SysV /etc/install, /usr/sbin/install
2479 # SunOS /usr/etc/install
2480 # IRIX /sbin/install
2481 # AIX /bin/install
2482 # AmigaOS /C/install, which installs bootblocks on floppy discs
2483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486 # OS/2's system install, which has a completely different semantic
2487 # ./install, which can be erroneously created by make from ./install.sh.
2488 # Reject install programs that cannot install multiple files.
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2491 if test -z "$INSTALL"; then
2492 if ${ac_cv_path_install+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 # Account for people who put trailing slashes in PATH elements.
2501 case $as_dir/ in #((
2502 ./ | .// | /[cC]/* | \
2503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505 /usr/ucb/* ) ;;
2506 *)
2507 # OSF1 and SCO ODT 3.0 have their own names for install.
2508 # Don't use installbsd from OSF since it installs stuff as root
2509 # by default.
2510 for ac_prog in ginstall scoinst install; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2513 if test $ac_prog = install &&
2514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # AIX install. It has an incompatible calling convention.
2516 :
2517 elif test $ac_prog = install &&
2518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # program-specific install script used by HP pwplus--don't use.
2520 :
2521 else
2522 rm -rf conftest.one conftest.two conftest.dir
2523 echo one > conftest.one
2524 echo two > conftest.two
2525 mkdir conftest.dir
2526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527 test -s conftest.one && test -s conftest.two &&
2528 test -s conftest.dir/conftest.one &&
2529 test -s conftest.dir/conftest.two
2530 then
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
2533 fi
2534 fi
2535 fi
2536 done
2537 done
2538 ;;
2539 esac
2540
2541 done
2542 IFS=$as_save_IFS
2543
2544 rm -rf conftest.one conftest.two conftest.dir
2545
2546 fi
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 INSTALL=$ac_install_sh
2555 fi
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558 $as_echo "$INSTALL" >&6; }
2559
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569 $as_echo_n "checking whether build environment is sane... " >&6; }
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2573 '
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2581 esac
2582
2583 # Do 'set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 am_has_slept=no
2590 for am_try in 1 2; do
2591 echo "timestamp, slept: $am_has_slept" > conftest.file
2592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593 if test "$*" = "X"; then
2594 # -L didn't work.
2595 set X `ls -t "$srcdir/configure" conftest.file`
2596 fi
2597 if test "$*" != "X $srcdir/configure conftest.file" \
2598 && test "$*" != "X conftest.file $srcdir/configure"; then
2599
2600 # If neither matched, then we have a broken ls. This can happen
2601 # if, for instance, CONFIG_SHELL is bash and it inherits a
2602 # broken ls alias from the environment. This has actually
2603 # happened. Such a system could not be considered "sane".
2604 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2605 alias in your environment" "$LINENO" 5
2606 fi
2607 if test "$2" = conftest.file || test $am_try -eq 2; then
2608 break
2609 fi
2610 # Just in case.
2611 sleep 1
2612 am_has_slept=yes
2613 done
2614 test "$2" = conftest.file
2615 )
2616 then
2617 # Ok.
2618 :
2619 else
2620 as_fn_error $? "newly created file is older than distributed files!
2621 Check your system clock" "$LINENO" 5
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 # If we didn't sleep, we still need to ensure time stamps of config.status and
2626 # generated files are strictly newer.
2627 am_sleep_pid=
2628 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2629 ( sleep 1 ) &
2630 am_sleep_pid=$!
2631 fi
2632
2633 rm -f conftest.file
2634
2635 test "$program_prefix" != NONE &&
2636 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2637 # Use a double $ so make ignores it.
2638 test "$program_suffix" != NONE &&
2639 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2640 # Double any \ or $.
2641 # By default was `s,x,x', remove it if useless.
2642 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2643 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2644
2645 # Expand $ac_aux_dir to an absolute path.
2646 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2647
2648 if test x"${MISSING+set}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2652 *)
2653 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2654 esac
2655 fi
2656 # Use eval to expand $SHELL
2657 if eval "$MISSING --is-lightweight"; then
2658 am_missing_run="$MISSING "
2659 else
2660 am_missing_run=
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2662 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2663 fi
2664
2665 if test x"${install_sh+set}" != xset; then
2666 case $am_aux_dir in
2667 *\ * | *\ *)
2668 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2669 *)
2670 install_sh="\${SHELL} $am_aux_dir/install-sh"
2671 esac
2672 fi
2673
2674 # Installed binaries are usually stripped using 'strip' when the user
2675 # run "make install-strip". However 'strip' might not be the right
2676 # tool to use in cross-compilation environments, therefore Automake
2677 # will honor the 'STRIP' environment variable to overrule this program.
2678 if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}strip; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_STRIP+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 STRIP=$ac_cv_prog_STRIP
2708 if test -n "$STRIP"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2710 $as_echo "$STRIP" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716
2717 fi
2718 if test -z "$ac_cv_prog_STRIP"; then
2719 ac_ct_STRIP=$STRIP
2720 # Extract the first word of "strip", so it can be a program name with args.
2721 set dummy strip; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$ac_ct_STRIP"; then
2728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_ac_ct_STRIP="strip"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2748 if test -n "$ac_ct_STRIP"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2750 $as_echo "$ac_ct_STRIP" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756 if test "x$ac_ct_STRIP" = x; then
2757 STRIP=":"
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760 yes:)
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2764 esac
2765 STRIP=$ac_ct_STRIP
2766 fi
2767 else
2768 STRIP="$ac_cv_prog_STRIP"
2769 fi
2770
2771 fi
2772 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2775 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2776 if test -z "$MKDIR_P"; then
2777 if ${ac_cv_path_mkdir+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_prog in mkdir gmkdir; do
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2788 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2789 'mkdir (GNU coreutils) '* | \
2790 'mkdir (coreutils) '* | \
2791 'mkdir (fileutils) '4.1*)
2792 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2793 break 3;;
2794 esac
2795 done
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801
2802 test -d ./--version && rmdir ./--version
2803 if test "${ac_cv_path_mkdir+set}" = set; then
2804 MKDIR_P="$ac_cv_path_mkdir -p"
2805 else
2806 # As a last resort, use the slow shell script. Don't cache a
2807 # value for MKDIR_P within a source directory, because that will
2808 # break other packages using the cache if that directory is
2809 # removed, or if the value is a relative name.
2810 MKDIR_P="$ac_install_sh -d"
2811 fi
2812 fi
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2814 $as_echo "$MKDIR_P" >&6; }
2815
2816 for ac_prog in gawk mawk nawk awk
2817 do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_AWK+:} false; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855 test -n "$AWK" && break
2856 done
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872 *@@@%%%=?*=@@@%%%*)
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2874 *)
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2878 fi
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 SET_MAKE=
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2887 fi
2888
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892 am__leading_dot=.
2893 else
2894 am__leading_dot=_
2895 fi
2896 rmdir .tst 2>/dev/null
2897
2898 # Check whether --enable-silent-rules was given.
2899 if test "${enable_silent_rules+set}" = set; then :
2900 enableval=$enable_silent_rules;
2901 fi
2902
2903 case $enable_silent_rules in # (((
2904 yes) AM_DEFAULT_VERBOSITY=0;;
2905 no) AM_DEFAULT_VERBOSITY=1;;
2906 *) AM_DEFAULT_VERBOSITY=1;;
2907 esac
2908 am_make=${MAKE-make}
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2910 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2911 if ${am_cv_make_support_nested_variables+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if $as_echo 'TRUE=$(BAR$(V))
2915 BAR0=false
2916 BAR1=true
2917 V=1
2918 am__doit:
2919 @$(TRUE)
2920 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2921 am_cv_make_support_nested_variables=yes
2922 else
2923 am_cv_make_support_nested_variables=no
2924 fi
2925 fi
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2927 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2928 if test $am_cv_make_support_nested_variables = yes; then
2929 AM_V='$(V)'
2930 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2931 else
2932 AM_V=$AM_DEFAULT_VERBOSITY
2933 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2934 fi
2935 AM_BACKSLASH='\'
2936
2937 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
2943 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2944 fi
2945 fi
2946
2947 # test whether we have cygpath
2948 if test -z "$CYGPATH_W"; then
2949 if (cygpath --version) >/dev/null 2>/dev/null; then
2950 CYGPATH_W='cygpath -w'
2951 else
2952 CYGPATH_W=echo
2953 fi
2954 fi
2955
2956
2957 # Define the identity of the package.
2958 PACKAGE='libquadmath'
2959 VERSION='0.1'
2960
2961
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE "$PACKAGE"
2964 _ACEOF
2965
2966
2967 cat >>confdefs.h <<_ACEOF
2968 #define VERSION "$VERSION"
2969 _ACEOF
2970
2971 # Some tools Automake needs.
2972
2973 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2974
2975
2976 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2977
2978
2979 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2980
2981
2982 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2983
2984
2985 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2986
2987 # For better backward compatibility. To be removed once Automake 1.9.x
2988 # dies out for good. For more background, see:
2989 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2990 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2991 mkdir_p='$(MKDIR_P)'
2992
2993 # We need awk for the "check" target (and possibly the TAP driver). The
2994 # system "awk" is bad on some platforms.
2995 # Always define AMTAR for backward compatibility. Yes, it's still used
2996 # in the wild :-( We should find a proper way to deprecate it ...
2997 AMTAR='$${TAR-tar}'
2998
2999
3000 # We'll loop over all known methods to create a tar archive until one works.
3001 _am_tools='gnutar pax cpio none'
3002
3003 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3004
3005
3006
3007
3008
3009
3010 # POSIX will say in a future version that running "rm -f" with no argument
3011 # is OK; and we want to be able to make that assumption in our Makefile
3012 # recipes. So use an aggressive probe to check that the usage we want is
3013 # actually supported "in the wild" to an acceptable degree.
3014 # See automake bug#10828.
3015 # To make any issue more visible, cause the running configure to be aborted
3016 # by default if the 'rm' program in use doesn't match our expectations; the
3017 # user can still override this though.
3018 if rm -f && rm -fr && rm -rf; then : OK; else
3019 cat >&2 <<'END'
3020 Oops!
3021
3022 Your 'rm' program seems unable to run without file operands specified
3023 on the command line, even when the '-f' option is present. This is contrary
3024 to the behaviour of most rm programs out there, and not conforming with
3025 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3026
3027 Please tell bug-automake@gnu.org about your system, including the value
3028 of your $PATH and any error possibly output before this message. This
3029 can help us improve future automake versions.
3030
3031 END
3032 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3033 echo 'Configuration will proceed anyway, since you have set the' >&2
3034 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3035 echo >&2
3036 else
3037 cat >&2 <<'END'
3038 Aborting the configuration process, to ensure you take notice of the issue.
3039
3040 You can download and install GNU coreutils to get an 'rm' implementation
3041 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3042
3043 If you want to complete the configuration process using your problematic
3044 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3045 to "yes", and re-run configure.
3046
3047 END
3048 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3049 fi
3050 fi
3051
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3054 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3055 # Check whether --enable-version-specific-runtime-libs was given.
3056 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3057 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3058 yes) version_specific_libs=yes ;;
3059 no) version_specific_libs=no ;;
3060 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3061 esac
3062 else
3063 version_specific_libs=no
3064 fi
3065
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3067 $as_echo "$version_specific_libs" >&6; }
3068
3069
3070
3071 DEPDIR="${am__leading_dot}deps"
3072
3073 ac_config_commands="$ac_config_commands depfiles"
3074
3075
3076 am_make=${MAKE-make}
3077 cat > confinc << 'END'
3078 am__doit:
3079 @echo this is the am__doit target
3080 .PHONY: am__doit
3081 END
3082 # If we don't find an include directive, just comment out the code.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3085 am__include="#"
3086 am__quote=
3087 _am_result=none
3088 # First try GNU make style include.
3089 echo "include confinc" > confmf
3090 # Ignore all kinds of additional output from 'make'.
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3093 am__include=include
3094 am__quote=
3095 _am_result=GNU
3096 ;;
3097 esac
3098 # Now try BSD make style include.
3099 if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3104 am__quote="\""
3105 _am_result=BSD
3106 ;;
3107 esac
3108 fi
3109
3110
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112 $as_echo "$_am_result" >&6; }
3113 rm -f confinc confmf
3114
3115 # Check whether --enable-dependency-tracking was given.
3116 if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3118 fi
3119
3120 if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3122 AMDEPBACKSLASH='\'
3123 am__nodep='_no'
3124 fi
3125 if test "x$enable_dependency_tracking" != xno; then
3126 AMDEP_TRUE=
3127 AMDEP_FALSE='#'
3128 else
3129 AMDEP_TRUE='#'
3130 AMDEP_FALSE=
3131 fi
3132
3133
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 CC=$ac_ct_CC
3226 fi
3227 else
3228 CC="$ac_cv_prog_CC"
3229 fi
3230
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 fi
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3294 fi
3295 ac_cv_prog_CC="cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313 fi
3314 fi
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3331 do
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369 test -n "$CC" && break
3370 done
3371 fi
3372 if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3375 do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413 test -n "$ac_ct_CC" && break
3414 done
3415
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425 CC=$ac_ct_CC
3426 fi
3427 fi
3428
3429 fi
3430
3431
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3436
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 set X $ac_compile
3440 ac_compiler=$2
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3456 fi
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 done
3461
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdio.h>
3465 int
3466 main ()
3467 {
3468 printf ("hello world\n");
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 # FIXME: Cleanup?
3474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3475 (eval $ac_link) 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 gcc_no_link=no
3480 else
3481 gcc_no_link=yes
3482 fi
3483 if test x$gcc_no_link = xyes; then
3484 # Setting cross_compile will disable run tests; it will
3485 # also disable AC_CHECK_FILE but that's generally
3486 # correct if we can't link.
3487 cross_compiling=yes
3488 EXEEXT=
3489 else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3505 # of exeext.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3507 $as_echo_n "checking whether the C compiler works... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512
3513 ac_rmfiles=
3514 for ac_file in $ac_files
3515 do
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520 done
3521 rm -f $ac_rmfiles
3522
3523 if { { ac_try="$ac_link_default"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3538 # Autoconf.
3539 for ac_file in $ac_files ''
3540 do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 ;;
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 fi
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3560 * )
3561 break;;
3562 esac
3563 done
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3565
3566 else
3567 ac_file=''
3568 fi
3569 if test -z "$ac_file"; then :
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error 77 "C compiler cannot create executables
3578 See \`config.log' for more details" "$LINENO" 5; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3581 $as_echo "yes" >&6; }
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3584 $as_echo_n "checking for C compiler default output file name... " >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3586 $as_echo "$ac_file" >&6; }
3587 ac_exeext=$ac_cv_exeext
3588
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3590 ac_clean_files=$ac_clean_files_save
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3592 $as_echo_n "checking for suffix of executables... " >&6; }
3593 if { { ac_try="$ac_link"
3594 case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3605 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3606 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 # `rm'.
3608 for ac_file in conftest.exe conftest conftest.*; do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 break;;
3614 * ) break;;
3615 esac
3616 done
3617 else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3621 See \`config.log' for more details" "$LINENO" 5; }
3622 fi
3623 rm -f conftest conftest$ac_cv_exeext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3625 $as_echo "$ac_cv_exeext" >&6; }
3626
3627 rm -f conftest.$ac_ext
3628 EXEEXT=$ac_cv_exeext
3629 ac_exeext=$EXEEXT
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 #include <stdio.h>
3633 int
3634 main ()
3635 {
3636 FILE *f = fopen ("conftest.out", "w");
3637 return ferror (f) || fclose (f) != 0;
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 ac_clean_files="$ac_clean_files conftest.out"
3644 # Check that the compiler produces executables we can run. If not, either
3645 # the compiler is broken, or we cross compile.
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3647 $as_echo_n "checking whether we are cross compiling... " >&6; }
3648 if test "$cross_compiling" != yes; then
3649 { { ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }
3660 if { ac_try='./conftest$ac_cv_exeext'
3661 { { case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot run C compiled programs.
3679 If you meant to cross compile, use \`--host'.
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 fi
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3685 $as_echo "$cross_compiling" >&6; }
3686
3687 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3688 ac_clean_files=$ac_clean_files_save
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691 $as_echo_n "checking for suffix of object files... " >&6; }
3692 if ${ac_cv_objext+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 rm -f conftest.o conftest.obj
3707 if { { ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725 done
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "cannot compute suffix of object files: cannot compile
3733 See \`config.log' for more details" "$LINENO" 5; }
3734 fi
3735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738 $as_echo "$ac_cv_objext" >&6; }
3739 OBJEXT=$ac_cv_objext
3740 ac_objext=$OBJEXT
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743 if ${ac_cv_c_compiler_gnu+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748
3749 int
3750 main ()
3751 {
3752 #ifndef __GNUC__
3753 choke me
3754 #endif
3755
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762 else
3763 ac_compiler_gnu=no
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771 if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773 else
3774 GCC=
3775 fi
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3780 if ${ac_cv_prog_cc_g+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800 else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804
3805 int
3806 main ()
3807 {
3808
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814
3815 else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820
3821 int
3822 main ()
3823 {
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 fi
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 struct stat;
3868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869 struct buf { int x; };
3870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871 static char *e (p, i)
3872 char **p;
3873 int i;
3874 {
3875 return p[i];
3876 }
3877 static char *f (char * (*g) (char **, int), char **p, ...)
3878 {
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3885 }
3886
3887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895
3896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898 #define FOO(x) 'x'
3899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3907 int
3908 main ()
3909 {
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 do
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3927
3928 fi
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3942 if test "x$ac_cv_prog_cc_c89" != xno; then :
3943
3944 fi
3945
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959 if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3989 fi
3990 done
3991 rm -f core conftest*
3992 unset am_i
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3996 if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4003 fi
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
4011 depcc="$CC" am_compiler_list=
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
4015 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
4022 # making a dummy file named 'D' -- because '-MD' means "put the output
4023 # in D".
4024 rm -rf conftest.dir
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
4037
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041 fi
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4046
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4051 #
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4059 # Solaris 10 /bin/sh.
4060 echo '/* dummy */' > sub/conftst$i.h
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063
4064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle '-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs.
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4074 ;;
4075 nosideeffect)
4076 # After this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested.
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4082 fi
4083 ;;
4084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4085 # This compiler won't grok '-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4090 ;;
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4113 fi
4114 fi
4115 done
4116
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CC_dependencies_compiler_type=none
4121 fi
4122
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127
4128 if
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133 else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4136 fi
4137
4138
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4150 fi
4151 if test -z "$CPP"; then
4152 if ${ac_cv_prog_CPP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4157 do
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4160 do
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4177
4178 else
4179 # Broken: fails on valid input.
4180 continue
4181 fi
4182 rm -f conftest.err conftest.i conftest.$ac_ext
4183
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192 continue
4193 else
4194 # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4197 fi
4198 rm -f conftest.err conftest.i conftest.$ac_ext
4199
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.i conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4204 break
4205 fi
4206
4207 done
4208 ac_cv_prog_CPP=$CPP
4209
4210 fi
4211 CPP=$ac_cv_prog_CPP
4212 else
4213 ac_cv_prog_CPP=$CPP
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4217 ac_preproc_ok=false
4218 for ac_c_preproc_warn_flag in '' yes
4219 do
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #ifdef __STDC__
4229 # include <limits.h>
4230 #else
4231 # include <assert.h>
4232 #endif
4233 Syntax error
4234 _ACEOF
4235 if ac_fn_c_try_cpp "$LINENO"; then :
4236
4237 else
4238 # Broken: fails on valid input.
4239 continue
4240 fi
4241 rm -f conftest.err conftest.i conftest.$ac_ext
4242
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.i conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.i conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then :
4263
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details" "$LINENO" 5; }
4269 fi
4270
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if ${ac_cv_path_GREP+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_GREP" || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331 else
4332 ac_cv_path_GREP=$GREP
4333 fi
4334
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if ${ac_cv_path_EGREP+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p "$ac_path_EGREP" || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 *)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 fi
4397 else
4398 ac_cv_path_EGREP=$EGREP
4399 fi
4400
4401 fi
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409 $as_echo_n "checking for ANSI C header files... " >&6; }
4410 if ${ac_cv_header_stdc+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4419
4420 int
4421 main ()
4422 {
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
4430 else
4431 ac_cv_header_stdc=no
4432 fi
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434
4435 if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <string.h>
4440
4441 _ACEOF
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4444
4445 else
4446 ac_cv_header_stdc=no
4447 fi
4448 rm -f conftest*
4449
4450 fi
4451
4452 if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #include <stdlib.h>
4457
4458 _ACEOF
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
4461
4462 else
4463 ac_cv_header_stdc=no
4464 fi
4465 rm -f conftest*
4466
4467 fi
4468
4469 if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4472 :
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <ctype.h>
4477 #include <stdlib.h>
4478 #if ((' ' & 0x0FF) == 0x020)
4479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481 #else
4482 # define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487 #endif
4488
4489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4490 int
4491 main ()
4492 {
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_run "$LINENO"; then :
4502
4503 else
4504 ac_cv_header_stdc=no
4505 fi
4506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4508 fi
4509
4510 fi
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513 $as_echo "$ac_cv_header_stdc" >&6; }
4514 if test $ac_cv_header_stdc = yes; then
4515
4516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4517
4518 fi
4519
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523 do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4526 "
4527 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4528 cat >>confdefs.h <<_ACEOF
4529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 _ACEOF
4531
4532 fi
4533
4534 done
4535
4536
4537
4538 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4539 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4540 MINIX=yes
4541 else
4542 MINIX=
4543 fi
4544
4545
4546 if test "$MINIX" = yes; then
4547
4548 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4549
4550
4551 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4552
4553
4554 $as_echo "#define _MINIX 1" >>confdefs.h
4555
4556 fi
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4560 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4561 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 # define __EXTENSIONS__ 1
4568 $ac_includes_default
4569 int
4570 main ()
4571 {
4572
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_safe_to_define___extensions__=yes
4579 else
4580 ac_cv_safe_to_define___extensions__=no
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4585 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4586 test $ac_cv_safe_to_define___extensions__ = yes &&
4587 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4588
4589 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4590
4591 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4592
4593 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4594
4595 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4596
4597
4598
4599 # See if makeinfo has been installed and is modern enough
4600 # that we can use it.
4601
4602 # Extract the first word of "makeinfo", so it can be a program name with args.
4603 set dummy makeinfo; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_MAKEINFO+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$MAKEINFO"; then
4610 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_MAKEINFO="makeinfo"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 MAKEINFO=$ac_cv_prog_MAKEINFO
4630 if test -n "$MAKEINFO"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4632 $as_echo "$MAKEINFO" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639 if test -n "$MAKEINFO"; then
4640 # Found it, now check the version.
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4642 $as_echo_n "checking for modern makeinfo... " >&6; }
4643 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4647 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4648
4649 case $ac_prog_version in
4650 '') gcc_cv_prog_makeinfo_modern=no;;
4651 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4652 *) gcc_cv_prog_makeinfo_modern=no;;
4653 esac
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4657 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4658 else
4659 gcc_cv_prog_makeinfo_modern=no
4660 fi
4661 if test $gcc_cv_prog_makeinfo_modern = no; then
4662 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4663 fi
4664
4665 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4666 BUILD_INFO_TRUE=
4667 BUILD_INFO_FALSE='#'
4668 else
4669 BUILD_INFO_TRUE='#'
4670 BUILD_INFO_FALSE=
4671 fi
4672
4673
4674
4675
4676 # Check whether --with-bugurl was given.
4677 if test "${with_bugurl+set}" = set; then :
4678 withval=$with_bugurl; case "$withval" in
4679 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
4680 no) BUGURL=
4681 ;;
4682 *) BUGURL="$withval"
4683 ;;
4684 esac
4685 else
4686 BUGURL="https://gcc.gnu.org/bugs/"
4687
4688 fi
4689
4690 case ${BUGURL} in
4691 "")
4692 REPORT_BUGS_TO=
4693 REPORT_BUGS_TEXI=
4694 ;;
4695 *)
4696 REPORT_BUGS_TO="<$BUGURL>"
4697 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4698 ;;
4699 esac;
4700
4701
4702
4703
4704 # Configure libtool
4705 case `pwd` in
4706 *\ * | *\ *)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4709 esac
4710
4711
4712
4713 macro_version='2.2.7a'
4714 macro_revision='1.3134'
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 ltmain="$ac_aux_dir/ltmain.sh"
4729
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4733
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4736
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4740
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4743
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4746
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756 ECHO='print -r --'
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='printf %s\n'
4759 else
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4762 {
4763 eval 'cat <<_LTECHO_EOF
4764 $1
4765 _LTECHO_EOF'
4766 }
4767 ECHO='func_fallback_echo'
4768 fi
4769
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4772 func_echo_all ()
4773 {
4774 $ECHO ""
4775 }
4776
4777 case "$ECHO" in
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4784 esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4807 done
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4827 *)
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4831 do
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4843 fi
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4849
4850 $ac_path_SED_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4857 fi
4858 else
4859 ac_cv_path_SED=$SED
4860 fi
4861
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4866 rm -f conftest.sed
4867
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 $as_echo_n "checking for fgrep... " >&6; }
4883 if ${ac_cv_path_FGREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4887 then ac_cv_path_FGREP="$GREP -F"
4888 else
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4894 do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_prog in fgrep; do
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4900 as_fn_executable_p "$ac_path_FGREP" || continue
4901 # Check for GNU ac_path_FGREP and select it if it is found.
4902 # Check for GNU $ac_path_FGREP
4903 case `"$ac_path_FGREP" --version 2>&1` in
4904 *GNU*)
4905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4906 *)
4907 ac_count=0
4908 $as_echo_n 0123456789 >"conftest.in"
4909 while :
4910 do
4911 cat "conftest.in" "conftest.in" >"conftest.tmp"
4912 mv "conftest.tmp" "conftest.in"
4913 cp "conftest.in" "conftest.nl"
4914 $as_echo 'FGREP' >> "conftest.nl"
4915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917 as_fn_arith $ac_count + 1 && ac_count=$as_val
4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4919 # Best one so far, save it but keep looking for a better one
4920 ac_cv_path_FGREP="$ac_path_FGREP"
4921 ac_path_FGREP_max=$ac_count
4922 fi
4923 # 10*(2^10) chars as input seems more than enough
4924 test $ac_count -gt 10 && break
4925 done
4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 esac
4928
4929 $ac_path_FGREP_found && break 3
4930 done
4931 done
4932 done
4933 IFS=$as_save_IFS
4934 if test -z "$ac_cv_path_FGREP"; then
4935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4936 fi
4937 else
4938 ac_cv_path_FGREP=$FGREP
4939 fi
4940
4941 fi
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944 $as_echo "$ac_cv_path_FGREP" >&6; }
4945 FGREP="$ac_cv_path_FGREP"
4946
4947
4948 test -z "$GREP" && GREP=grep
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 # Check whether --with-gnu-ld was given.
4969 if test "${with_gnu_ld+set}" = set; then :
4970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4971 else
4972 with_gnu_ld=no
4973 fi
4974
4975 ac_prog=ld
4976 if test "$GCC" = yes; then
4977 # Check if gcc -print-prog-name=ld gives a path.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4979 $as_echo_n "checking for ld used by $CC... " >&6; }
4980 case $host in
4981 *-*-mingw*)
4982 # gcc leaves a trailing carriage return which upsets mingw
4983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4984 *)
4985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4986 esac
4987 case $ac_prog in
4988 # Accept absolute paths.
4989 [\\/]* | ?:[\\/]*)
4990 re_direlt='/[^/][^/]*/\.\./'
4991 # Canonicalize the pathname of ld
4992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4995 done
4996 test -z "$LD" && LD="$ac_prog"
4997 ;;
4998 "")
4999 # If it fails, then pretend we aren't using GCC.
5000 ac_prog=ld
5001 ;;
5002 *)
5003 # If it is relative, then search for the first ld in PATH.
5004 with_gnu_ld=unknown
5005 ;;
5006 esac
5007 elif test "$with_gnu_ld" = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5009 $as_echo_n "checking for GNU ld... " >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5012 $as_echo_n "checking for non-GNU ld... " >&6; }
5013 fi
5014 if ${lt_cv_path_LD+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -z "$LD"; then
5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019 for ac_dir in $PATH; do
5020 IFS="$lt_save_ifs"
5021 test -z "$ac_dir" && ac_dir=.
5022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5023 lt_cv_path_LD="$ac_dir/$ac_prog"
5024 # Check to see if the program is GNU ld. I'd rather use --version,
5025 # but apparently some variants of GNU ld only accept -v.
5026 # Break only if it was the GNU/non-GNU ld that we prefer.
5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5028 *GNU* | *'with BFD'*)
5029 test "$with_gnu_ld" != no && break
5030 ;;
5031 *)
5032 test "$with_gnu_ld" != yes && break
5033 ;;
5034 esac
5035 fi
5036 done
5037 IFS="$lt_save_ifs"
5038 else
5039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5040 fi
5041 fi
5042
5043 LD="$lt_cv_path_LD"
5044 if test -n "$LD"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5046 $as_echo "$LD" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5054 if ${lt_cv_prog_gnu_ld+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5058 case `$LD -v 2>&1 </dev/null` in
5059 *GNU* | *'with BFD'*)
5060 lt_cv_prog_gnu_ld=yes
5061 ;;
5062 *)
5063 lt_cv_prog_gnu_ld=no
5064 ;;
5065 esac
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5069 with_gnu_ld=$lt_cv_prog_gnu_ld
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5081 if ${lt_cv_path_NM+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$NM"; then
5085 # Let the user override the test.
5086 lt_cv_path_NM="$NM"
5087 else
5088 lt_nm_to_check="${ac_tool_prefix}nm"
5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5090 lt_nm_to_check="$lt_nm_to_check nm"
5091 fi
5092 for lt_tmp_nm in $lt_nm_to_check; do
5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5095 IFS="$lt_save_ifs"
5096 test -z "$ac_dir" && ac_dir=.
5097 tmp_nm="$ac_dir/$lt_tmp_nm"
5098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5099 # Check to see if the nm accepts a BSD-compat flag.
5100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5101 # nm: unknown option "B" ignored
5102 # Tru64's nm complains that /dev/null is an invalid object file
5103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5104 */dev/null* | *'Invalid file or object type'*)
5105 lt_cv_path_NM="$tmp_nm -B"
5106 break
5107 ;;
5108 *)
5109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5110 */dev/null*)
5111 lt_cv_path_NM="$tmp_nm -p"
5112 break
5113 ;;
5114 *)
5115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5116 continue # so that we can try to find one that supports BSD flags
5117 ;;
5118 esac
5119 ;;
5120 esac
5121 fi
5122 done
5123 IFS="$lt_save_ifs"
5124 done
5125 : ${lt_cv_path_NM=no}
5126 fi
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5129 $as_echo "$lt_cv_path_NM" >&6; }
5130 if test "$lt_cv_path_NM" != "no"; then
5131 NM="$lt_cv_path_NM"
5132 else
5133 # Didn't find any BSD compatible name lister, look for dumpbin.
5134 if test -n "$DUMPBIN"; then :
5135 # Let the user override the test.
5136 else
5137 if test -n "$ac_tool_prefix"; then
5138 for ac_prog in dumpbin "link -dump"
5139 do
5140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_DUMPBIN+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$DUMPBIN"; then
5148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 DUMPBIN=$ac_cv_prog_DUMPBIN
5168 if test -n "$DUMPBIN"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5170 $as_echo "$DUMPBIN" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176
5177 test -n "$DUMPBIN" && break
5178 done
5179 fi
5180 if test -z "$DUMPBIN"; then
5181 ac_ct_DUMPBIN=$DUMPBIN
5182 for ac_prog in dumpbin "link -dump"
5183 do
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy $ac_prog; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_DUMPBIN"; then
5192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5214 $as_echo "$ac_ct_DUMPBIN" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221 test -n "$ac_ct_DUMPBIN" && break
5222 done
5223
5224 if test "x$ac_ct_DUMPBIN" = x; then
5225 DUMPBIN=":"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 DUMPBIN=$ac_ct_DUMPBIN
5234 fi
5235 fi
5236
5237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5238 *COFF*)
5239 DUMPBIN="$DUMPBIN -symbols"
5240 ;;
5241 *)
5242 DUMPBIN=:
5243 ;;
5244 esac
5245 fi
5246
5247 if test "$DUMPBIN" != ":"; then
5248 NM="$DUMPBIN"
5249 fi
5250 fi
5251 test -z "$NM" && NM=nm
5252
5253
5254
5255
5256
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5260 if ${lt_cv_nm_interface+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 lt_cv_nm_interface="BSD nm"
5264 echo "int some_variable = 0;" > conftest.$ac_ext
5265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5266 (eval "$ac_compile" 2>conftest.err)
5267 cat conftest.err >&5
5268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5270 cat conftest.err >&5
5271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5272 cat conftest.out >&5
5273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5274 lt_cv_nm_interface="MS dumpbin"
5275 fi
5276 rm -f conftest*
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5279 $as_echo "$lt_cv_nm_interface" >&6; }
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5282 $as_echo_n "checking whether ln -s works... " >&6; }
5283 LN_S=$as_ln_s
5284 if test "$LN_S" = "ln -s"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286 $as_echo "yes" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5289 $as_echo "no, using $LN_S" >&6; }
5290 fi
5291
5292 # find the maximum length of command line arguments
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5295 if ${lt_cv_sys_max_cmd_len+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 i=0
5299 teststring="ABCD"
5300
5301 case $build_os in
5302 msdosdjgpp*)
5303 # On DJGPP, this test can blow up pretty badly due to problems in libc
5304 # (any single argument exceeding 2000 bytes causes a buffer overrun
5305 # during glob expansion). Even if it were fixed, the result of this
5306 # check would be larger than it should be.
5307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5308 ;;
5309
5310 gnu*)
5311 # Under GNU Hurd, this test is not required because there is
5312 # no limit to the length of command line arguments.
5313 # Libtool will interpret -1 as no limit whatsoever
5314 lt_cv_sys_max_cmd_len=-1;
5315 ;;
5316
5317 cygwin* | mingw* | cegcc*)
5318 # On Win9x/ME, this test blows up -- it succeeds, but takes
5319 # about 5 minutes as the teststring grows exponentially.
5320 # Worse, since 9x/ME are not pre-emptively multitasking,
5321 # you end up with a "frozen" computer, even though with patience
5322 # the test eventually succeeds (with a max line length of 256k).
5323 # Instead, let's just punt: use the minimum linelength reported by
5324 # all of the supported platforms: 8192 (on NT/2K/XP).
5325 lt_cv_sys_max_cmd_len=8192;
5326 ;;
5327
5328 mint*)
5329 # On MiNT this can take a long time and run out of memory.
5330 lt_cv_sys_max_cmd_len=8192;
5331 ;;
5332
5333 amigaos*)
5334 # On AmigaOS with pdksh, this test takes hours, literally.
5335 # So we just punt and use a minimum line length of 8192.
5336 lt_cv_sys_max_cmd_len=8192;
5337 ;;
5338
5339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5340 # This has been around since 386BSD, at least. Likely further.
5341 if test -x /sbin/sysctl; then
5342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5343 elif test -x /usr/sbin/sysctl; then
5344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5345 else
5346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5347 fi
5348 # And add a safety zone
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5351 ;;
5352
5353 interix*)
5354 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5355 lt_cv_sys_max_cmd_len=196608
5356 ;;
5357
5358 osf*)
5359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5361 # nice to cause kernel panics so lets avoid the loop below.
5362 # First set a reasonable default.
5363 lt_cv_sys_max_cmd_len=16384
5364 #
5365 if test -x /sbin/sysconfig; then
5366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5367 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5368 esac
5369 fi
5370 ;;
5371 sco3.2v5*)
5372 lt_cv_sys_max_cmd_len=102400
5373 ;;
5374 sysv5* | sco5v6* | sysv4.2uw2*)
5375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5376 if test -n "$kargmax"; then
5377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5378 else
5379 lt_cv_sys_max_cmd_len=32768
5380 fi
5381 ;;
5382 *)
5383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5384 if test -n "$lt_cv_sys_max_cmd_len"; then
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5387 else
5388 # Make teststring a little bigger before we do anything with it.
5389 # a 1K string should be a reasonable start.
5390 for i in 1 2 3 4 5 6 7 8 ; do
5391 teststring=$teststring$teststring
5392 done
5393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5394 # If test is not a shell built-in, we'll probably end up computing a
5395 # maximum length that is only half of the actual maximum length, but
5396 # we can't tell.
5397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5398 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5399 test $i != 17 # 1/2 MB should be enough
5400 do
5401 i=`expr $i + 1`
5402 teststring=$teststring$teststring
5403 done
5404 # Only check the string length outside the loop.
5405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5406 teststring=
5407 # Add a significant safety factor because C++ compilers can tack on
5408 # massive amounts of additional arguments before passing them to the
5409 # linker. It appears as though 1/2 is a usable value.
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5411 fi
5412 ;;
5413 esac
5414
5415 fi
5416
5417 if test -n $lt_cv_sys_max_cmd_len ; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5419 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5422 $as_echo "none" >&6; }
5423 fi
5424 max_cmd_len=$lt_cv_sys_max_cmd_len
5425
5426
5427
5428
5429
5430
5431 : ${CP="cp -f"}
5432 : ${MV="mv -f"}
5433 : ${RM="rm -f"}
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5437 # Try some XSI features
5438 xsi_shell=no
5439 ( _lt_dummy="a/b/c"
5440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5441 = c,a/b,, \
5442 && eval 'test $(( 1 + 1 )) -eq 2 \
5443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5444 && xsi_shell=yes
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5446 $as_echo "$xsi_shell" >&6; }
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5450 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5451 lt_shell_append=no
5452 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5453 >/dev/null 2>&1 \
5454 && lt_shell_append=yes
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5456 $as_echo "$lt_shell_append" >&6; }
5457
5458
5459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5460 lt_unset=unset
5461 else
5462 lt_unset=false
5463 fi
5464
5465
5466
5467
5468
5469 # test EBCDIC or ASCII
5470 case `echo X|tr X '\101'` in
5471 A) # ASCII based system
5472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5473 lt_SP2NL='tr \040 \012'
5474 lt_NL2SP='tr \015\012 \040\040'
5475 ;;
5476 *) # EBCDIC based system
5477 lt_SP2NL='tr \100 \n'
5478 lt_NL2SP='tr \r\n \100\100'
5479 ;;
5480 esac
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5491 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5492 if ${lt_cv_ld_reload_flag+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 lt_cv_ld_reload_flag='-r'
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5498 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5499 reload_flag=$lt_cv_ld_reload_flag
5500 case $reload_flag in
5501 "" | " "*) ;;
5502 *) reload_flag=" $reload_flag" ;;
5503 esac
5504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5505 case $host_os in
5506 darwin*)
5507 if test "$GCC" = yes; then
5508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5509 else
5510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5511 fi
5512 ;;
5513 esac
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_OBJDUMP+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$OBJDUMP"; then
5532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 OBJDUMP=$ac_cv_prog_OBJDUMP
5552 if test -n "$OBJDUMP"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5554 $as_echo "$OBJDUMP" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560
5561 fi
5562 if test -z "$ac_cv_prog_OBJDUMP"; then
5563 ac_ct_OBJDUMP=$OBJDUMP
5564 # Extract the first word of "objdump", so it can be a program name with args.
5565 set dummy objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$ac_ct_OBJDUMP"; then
5572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5592 if test -n "$ac_ct_OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5594 $as_echo "$ac_ct_OBJDUMP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600 if test "x$ac_ct_OBJDUMP" = x; then
5601 OBJDUMP="false"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609 OBJDUMP=$ac_ct_OBJDUMP
5610 fi
5611 else
5612 OBJDUMP="$ac_cv_prog_OBJDUMP"
5613 fi
5614
5615 test -z "$OBJDUMP" && OBJDUMP=objdump
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5626 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5627 if ${lt_cv_deplibs_check_method+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 lt_cv_file_magic_cmd='$MAGIC_CMD'
5631 lt_cv_file_magic_test_file=
5632 lt_cv_deplibs_check_method='unknown'
5633 # Need to set the preceding variable on all platforms that support
5634 # interlibrary dependencies.
5635 # 'none' -- dependencies not supported.
5636 # `unknown' -- same as none, but documents that we really don't know.
5637 # 'pass_all' -- all dependencies passed with no checks.
5638 # 'test_compile' -- check by making test program.
5639 # 'file_magic [[regex]]' -- check by looking for files in library path
5640 # which responds to the $file_magic_cmd with a given extended regex.
5641 # If you have `file' or equivalent on your system and you're not sure
5642 # whether `pass_all' will *always* work, you probably want this one.
5643
5644 case $host_os in
5645 aix[4-9]*)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648
5649 beos*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 bsdi[45]*)
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5655 lt_cv_file_magic_cmd='/usr/bin/file -L'
5656 lt_cv_file_magic_test_file=/shlib/libc.so
5657 ;;
5658
5659 cygwin*)
5660 # func_win32_libid is a shell function defined in ltmain.sh
5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662 lt_cv_file_magic_cmd='func_win32_libid'
5663 ;;
5664
5665 mingw* | pw32*)
5666 # Base MSYS/MinGW do not provide the 'file' command needed by
5667 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5668 # unless we find 'file', for example because we are cross-compiling.
5669 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5670 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5673 else
5674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5675 lt_cv_file_magic_cmd='$OBJDUMP -f'
5676 fi
5677 ;;
5678
5679 cegcc*)
5680 # use the weaker test based on 'objdump'. See mingw*.
5681 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5683 ;;
5684
5685 darwin* | rhapsody*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 freebsd* | dragonfly*)
5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5691 case $host_cpu in
5692 i*86 )
5693 # Not sure whether the presence of OpenBSD here was a mistake.
5694 # Let's accept both of them until this is cleared up.
5695 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5696 lt_cv_file_magic_cmd=/usr/bin/file
5697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5698 ;;
5699 esac
5700 else
5701 lt_cv_deplibs_check_method=pass_all
5702 fi
5703 ;;
5704
5705 gnu*)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709 haiku*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713 hpux10.20* | hpux11*)
5714 lt_cv_file_magic_cmd=/usr/bin/file
5715 case $host_cpu in
5716 ia64*)
5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5719 ;;
5720 hppa*64*)
5721 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]'
5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5723 ;;
5724 *)
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5727 ;;
5728 esac
5729 ;;
5730
5731 interix[3-9]*)
5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5734 ;;
5735
5736 irix5* | irix6* | nonstopux*)
5737 case $LD in
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5742 esac
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746 # This must be Linux ELF.
5747 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 netbsd*)
5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 else
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5756 fi
5757 ;;
5758
5759 newos6*)
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5763 ;;
5764
5765 *nto* | *qnx*)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768
5769 openbsd*)
5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 else
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5774 fi
5775 ;;
5776
5777 osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780
5781 rdos*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
5785 solaris*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793 sysv4 | sysv4.3*)
5794 case $host_vendor in
5795 motorola)
5796 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]'
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5798 ;;
5799 ncr)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802 sequent)
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5805 ;;
5806 sni)
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5809 lt_cv_file_magic_test_file=/lib/libc.so
5810 ;;
5811 siemens)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814 pc)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817 esac
5818 ;;
5819
5820 tpf*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823 vxworks*)
5824 # Assume VxWorks cross toolchains are built on Linux, possibly
5825 # as canadian for Windows hosts.
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828 esac
5829
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5832 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5833 file_magic_cmd=$lt_cv_file_magic_cmd
5834 deplibs_check_method=$lt_cv_deplibs_check_method
5835 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 plugin_option=
5849 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5850 for plugin in $plugin_names; do
5851 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5852 if test x$plugin_so = x$plugin; then
5853 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5854 fi
5855 if test x$plugin_so != x$plugin; then
5856 plugin_option="--plugin $plugin_so"
5857 break
5858 fi
5859 done
5860
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}ar; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_AR+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 if test -n "$AR"; then
5870 ac_cv_prog_AR="$AR" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_AR="${ac_tool_prefix}ar"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 AR=$ac_cv_prog_AR
5890 if test -n "$AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5892 $as_echo "$AR" >&6; }
5893 else
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 fi
5900 if test -z "$ac_cv_prog_AR"; then
5901 ac_ct_AR=$AR
5902 # Extract the first word of "ar", so it can be a program name with args.
5903 set dummy ar; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$ac_ct_AR"; then
5910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_ac_ct_AR="ar"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5930 if test -n "$ac_ct_AR"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5932 $as_echo "$ac_ct_AR" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938 if test "x$ac_ct_AR" = x; then
5939 AR="false"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947 AR=$ac_ct_AR
5948 fi
5949 else
5950 AR="$ac_cv_prog_AR"
5951 fi
5952
5953 test -z "$AR" && AR=ar
5954 if test -n "$plugin_option"; then
5955 if $AR --help 2>&1 | grep -q "\--plugin"; then
5956 AR="$AR $plugin_option"
5957 fi
5958 fi
5959 test -z "$AR_FLAGS" && AR_FLAGS=cru
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 if test -n "$ac_tool_prefix"; then
5972 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5973 set dummy ${ac_tool_prefix}strip; ac_word=$2
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975 $as_echo_n "checking for $ac_word... " >&6; }
5976 if ${ac_cv_prog_STRIP+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if test -n "$STRIP"; then
5980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985 IFS=$as_save_IFS
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 STRIP=$ac_cv_prog_STRIP
6000 if test -n "$STRIP"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6002 $as_echo "$STRIP" >&6; }
6003 else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008
6009 fi
6010 if test -z "$ac_cv_prog_STRIP"; then
6011 ac_ct_STRIP=$STRIP
6012 # Extract the first word of "strip", so it can be a program name with args.
6013 set dummy strip; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 if test -n "$ac_ct_STRIP"; then
6020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029 ac_cv_prog_ac_ct_STRIP="strip"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6040 if test -n "$ac_ct_STRIP"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6042 $as_echo "$ac_ct_STRIP" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048 if test "x$ac_ct_STRIP" = x; then
6049 STRIP=":"
6050 else
6051 case $cross_compiling:$ac_tool_warned in
6052 yes:)
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 ac_tool_warned=yes ;;
6056 esac
6057 STRIP=$ac_ct_STRIP
6058 fi
6059 else
6060 STRIP="$ac_cv_prog_STRIP"
6061 fi
6062
6063 test -z "$STRIP" && STRIP=:
6064
6065
6066
6067
6068
6069
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_RANLIB+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$RANLIB"; then
6079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092 done
6093 done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 RANLIB=$ac_cv_prog_RANLIB
6099 if test -n "$RANLIB"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6101 $as_echo "$RANLIB" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108 fi
6109 if test -z "$ac_cv_prog_RANLIB"; then
6110 ac_ct_RANLIB=$RANLIB
6111 # Extract the first word of "ranlib", so it can be a program name with args.
6112 set dummy ranlib; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$ac_ct_RANLIB"; then
6119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_ac_ct_RANLIB="ranlib"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132 done
6133 done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6139 if test -n "$ac_ct_RANLIB"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6141 $as_echo "$ac_ct_RANLIB" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147 if test "x$ac_ct_RANLIB" = x; then
6148 RANLIB=":"
6149 else
6150 case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6155 esac
6156 RANLIB=$ac_ct_RANLIB
6157 fi
6158 else
6159 RANLIB="$ac_cv_prog_RANLIB"
6160 fi
6161
6162 test -z "$RANLIB" && RANLIB=:
6163 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6164 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6165 RANLIB="$RANLIB $plugin_option"
6166 fi
6167 fi
6168
6169
6170
6171
6172
6173
6174 # Determine commands to create old-style static archives.
6175 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6176 old_postinstall_cmds='chmod 644 $oldlib'
6177 old_postuninstall_cmds=
6178
6179 if test -n "$RANLIB"; then
6180 case $host_os in
6181 openbsd*)
6182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6183 ;;
6184 *)
6185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6186 ;;
6187 esac
6188 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6189 fi
6190
6191 case $host_os in
6192 darwin*)
6193 lock_old_archive_extraction=yes ;;
6194 *)
6195 lock_old_archive_extraction=no ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 # If no C compiler was specified, use CC.
6237 LTCC=${LTCC-"$CC"}
6238
6239 # If no C compiler flags were specified, use CFLAGS.
6240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6241
6242 # Allow CC to be a program name with arguments.
6243 compiler=$CC
6244
6245
6246 # Check for command to grab the raw symbol name followed by C symbol from nm.
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6248 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6249 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252
6253 # These are sane defaults that work on at least a few old systems.
6254 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6255
6256 # Character class describing NM global symbol codes.
6257 symcode='[BCDEGRST]'
6258
6259 # Regexp to match symbols that can be accessed directly from C.
6260 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6261
6262 # Define system-specific variables.
6263 case $host_os in
6264 aix*)
6265 symcode='[BCDT]'
6266 ;;
6267 cygwin* | mingw* | pw32* | cegcc*)
6268 symcode='[ABCDGISTW]'
6269 ;;
6270 hpux*)
6271 if test "$host_cpu" = ia64; then
6272 symcode='[ABCDEGRST]'
6273 fi
6274 ;;
6275 irix* | nonstopux*)
6276 symcode='[BCDEGRST]'
6277 ;;
6278 osf*)
6279 symcode='[BCDEGQRST]'
6280 ;;
6281 solaris*)
6282 symcode='[BDRT]'
6283 ;;
6284 sco3.2v5*)
6285 symcode='[DT]'
6286 ;;
6287 sysv4.2uw2*)
6288 symcode='[DT]'
6289 ;;
6290 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6291 symcode='[ABDT]'
6292 ;;
6293 sysv4)
6294 symcode='[DFNSTU]'
6295 ;;
6296 esac
6297
6298 # If we're using GNU nm, then use its standard symbol codes.
6299 case `$NM -V 2>&1` in
6300 *GNU* | *'with BFD'*)
6301 symcode='[ABCDGIRSTW]' ;;
6302 esac
6303
6304 # Transform an extracted symbol line into a proper C declaration.
6305 # Some systems (esp. on ia64) link data and code symbols differently,
6306 # so use this general approach.
6307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6308
6309 # Transform an extracted symbol line into symbol name and symbol address
6310 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6311 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'"
6312
6313 # Handle CRLF in mingw tool chain
6314 opt_cr=
6315 case $build_os in
6316 mingw*)
6317 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6318 ;;
6319 esac
6320
6321 # Try without a prefix underscore, then with it.
6322 for ac_symprfx in "" "_"; do
6323
6324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6325 symxfrm="\\1 $ac_symprfx\\2 \\2"
6326
6327 # Write the raw and C identifiers.
6328 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6329 # Fake it for dumpbin and say T for any non-static function
6330 # and D for any global variable.
6331 # Also find C++ and __fastcall symbols from MSVC++,
6332 # which start with @ or ?.
6333 lt_cv_sys_global_symbol_pipe="$AWK '"\
6334 " {last_section=section; section=\$ 3};"\
6335 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6336 " \$ 0!~/External *\|/{next};"\
6337 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6338 " {if(hide[section]) next};"\
6339 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6340 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6341 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6342 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6343 " ' prfx=^$ac_symprfx"
6344 else
6345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6346 fi
6347
6348 # Check to see that the pipe works correctly.
6349 pipe_works=no
6350
6351 rm -f conftest*
6352 cat > conftest.$ac_ext <<_LT_EOF
6353 #ifdef __cplusplus
6354 extern "C" {
6355 #endif
6356 char nm_test_var;
6357 void nm_test_func(void);
6358 void nm_test_func(void){}
6359 #ifdef __cplusplus
6360 }
6361 #endif
6362 int main(){nm_test_var='a';nm_test_func();return(0);}
6363 _LT_EOF
6364
6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366 (eval $ac_compile) 2>&5
6367 ac_status=$?
6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369 test $ac_status = 0; }; then
6370 # Now try to grab the symbols.
6371 nlist=conftest.nm
6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6373 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6374 ac_status=$?
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; } && test -s "$nlist"; then
6377 # Try sorting and uniquifying the output.
6378 if sort "$nlist" | uniq > "$nlist"T; then
6379 mv -f "$nlist"T "$nlist"
6380 else
6381 rm -f "$nlist"T
6382 fi
6383
6384 # Make sure that we snagged all the symbols we need.
6385 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6386 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6387 cat <<_LT_EOF > conftest.$ac_ext
6388 #ifdef __cplusplus
6389 extern "C" {
6390 #endif
6391
6392 _LT_EOF
6393 # Now generate the symbol file.
6394 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6395
6396 cat <<_LT_EOF >> conftest.$ac_ext
6397
6398 /* The mapping between symbol names and symbols. */
6399 const struct {
6400 const char *name;
6401 void *address;
6402 }
6403 lt__PROGRAM__LTX_preloaded_symbols[] =
6404 {
6405 { "@PROGRAM@", (void *) 0 },
6406 _LT_EOF
6407 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6408 cat <<\_LT_EOF >> conftest.$ac_ext
6409 {0, (void *) 0}
6410 };
6411
6412 /* This works around a problem in FreeBSD linker */
6413 #ifdef FREEBSD_WORKAROUND
6414 static const void *lt_preloaded_setup() {
6415 return lt__PROGRAM__LTX_preloaded_symbols;
6416 }
6417 #endif
6418
6419 #ifdef __cplusplus
6420 }
6421 #endif
6422 _LT_EOF
6423 # Now try linking the two files.
6424 mv conftest.$ac_objext conftstm.$ac_objext
6425 lt_save_LIBS="$LIBS"
6426 lt_save_CFLAGS="$CFLAGS"
6427 LIBS="conftstm.$ac_objext"
6428 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6430 (eval $ac_link) 2>&5
6431 ac_status=$?
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6434 pipe_works=yes
6435 fi
6436 LIBS="$lt_save_LIBS"
6437 CFLAGS="$lt_save_CFLAGS"
6438 else
6439 echo "cannot find nm_test_func in $nlist" >&5
6440 fi
6441 else
6442 echo "cannot find nm_test_var in $nlist" >&5
6443 fi
6444 else
6445 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6446 fi
6447 else
6448 echo "$progname: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 fi
6451 rm -rf conftest* conftst*
6452
6453 # Do not use the global_symbol_pipe unless it works.
6454 if test "$pipe_works" = yes; then
6455 break
6456 else
6457 lt_cv_sys_global_symbol_pipe=
6458 fi
6459 done
6460
6461 fi
6462
6463 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6464 lt_cv_sys_global_symbol_to_cdecl=
6465 fi
6466 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6468 $as_echo "failed" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6471 $as_echo "ok" >&6; }
6472 fi
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495 # Check whether --enable-libtool-lock was given.
6496 if test "${enable_libtool_lock+set}" = set; then :
6497 enableval=$enable_libtool_lock;
6498 fi
6499
6500 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6501
6502 # Some flags need to be propagated to the compiler or linker for good
6503 # libtool support.
6504 case $host in
6505 ia64-*-hpux*)
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.$ac_objext` in
6514 *ELF-32*)
6515 HPUX_IA64_MODE="32"
6516 ;;
6517 *ELF-64*)
6518 HPUX_IA64_MODE="64"
6519 ;;
6520 esac
6521 fi
6522 rm -rf conftest*
6523 ;;
6524 *-*-irix6*)
6525 # Find out which ABI we are using.
6526 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6528 (eval $ac_compile) 2>&5
6529 ac_status=$?
6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6531 test $ac_status = 0; }; then
6532 if test "$lt_cv_prog_gnu_ld" = yes; then
6533 case `/usr/bin/file conftest.$ac_objext` in
6534 *32-bit*)
6535 LD="${LD-ld} -melf32bsmip"
6536 ;;
6537 *N32*)
6538 LD="${LD-ld} -melf32bmipn32"
6539 ;;
6540 *64-bit*)
6541 LD="${LD-ld} -melf64bmip"
6542 ;;
6543 esac
6544 else
6545 case `/usr/bin/file conftest.$ac_objext` in
6546 *32-bit*)
6547 LD="${LD-ld} -32"
6548 ;;
6549 *N32*)
6550 LD="${LD-ld} -n32"
6551 ;;
6552 *64-bit*)
6553 LD="${LD-ld} -64"
6554 ;;
6555 esac
6556 fi
6557 fi
6558 rm -rf conftest*
6559 ;;
6560
6561 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6562 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6563 # Find out which ABI we are using.
6564 echo 'int i;' > conftest.$ac_ext
6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6566 (eval $ac_compile) 2>&5
6567 ac_status=$?
6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6569 test $ac_status = 0; }; then
6570 case `/usr/bin/file conftest.o` in
6571 *32-bit*)
6572 case $host in
6573 x86_64-*kfreebsd*-gnu)
6574 LD="${LD-ld} -m elf_i386_fbsd"
6575 ;;
6576 x86_64-*linux*)
6577 case `/usr/bin/file conftest.o` in
6578 *x86-64*)
6579 LD="${LD-ld} -m elf32_x86_64"
6580 ;;
6581 *)
6582 LD="${LD-ld} -m elf_i386"
6583 ;;
6584 esac
6585 ;;
6586 powerpc64le-*linux*)
6587 LD="${LD-ld} -m elf32lppclinux"
6588 ;;
6589 powerpc64-*linux*)
6590 LD="${LD-ld} -m elf32ppclinux"
6591 ;;
6592 s390x-*linux*)
6593 LD="${LD-ld} -m elf_s390"
6594 ;;
6595 sparc64-*linux*)
6596 LD="${LD-ld} -m elf32_sparc"
6597 ;;
6598 esac
6599 ;;
6600 *64-bit*)
6601 case $host in
6602 x86_64-*kfreebsd*-gnu)
6603 LD="${LD-ld} -m elf_x86_64_fbsd"
6604 ;;
6605 x86_64-*linux*)
6606 LD="${LD-ld} -m elf_x86_64"
6607 ;;
6608 powerpcle-*linux*)
6609 LD="${LD-ld} -m elf64lppc"
6610 ;;
6611 powerpc-*linux*)
6612 LD="${LD-ld} -m elf64ppc"
6613 ;;
6614 s390*-*linux*|s390*-*tpf*)
6615 LD="${LD-ld} -m elf64_s390"
6616 ;;
6617 sparc*-*linux*)
6618 LD="${LD-ld} -m elf64_sparc"
6619 ;;
6620 esac
6621 ;;
6622 esac
6623 fi
6624 rm -rf conftest*
6625 ;;
6626
6627 *-*-sco3.2v5*)
6628 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6629 SAVE_CFLAGS="$CFLAGS"
6630 CFLAGS="$CFLAGS -belf"
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6632 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6633 if ${lt_cv_cc_needs_belf+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642 if test x$gcc_no_link = xyes; then
6643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6644 fi
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647
6648 int
6649 main ()
6650 {
6651
6652 ;
6653 return 0;
6654 }
6655 _ACEOF
6656 if ac_fn_c_try_link "$LINENO"; then :
6657 lt_cv_cc_needs_belf=yes
6658 else
6659 lt_cv_cc_needs_belf=no
6660 fi
6661 rm -f core conftest.err conftest.$ac_objext \
6662 conftest$ac_exeext conftest.$ac_ext
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6671 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6672 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6673 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6674 CFLAGS="$SAVE_CFLAGS"
6675 fi
6676 ;;
6677 sparc*-*solaris*)
6678 # Find out which ABI we are using.
6679 echo 'int i;' > conftest.$ac_ext
6680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681 (eval $ac_compile) 2>&5
6682 ac_status=$?
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }; then
6685 case `/usr/bin/file conftest.o` in
6686 *64-bit*)
6687 case $lt_cv_prog_gnu_ld in
6688 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6689 *)
6690 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6691 LD="${LD-ld} -64"
6692 fi
6693 ;;
6694 esac
6695 ;;
6696 esac
6697 fi
6698 rm -rf conftest*
6699 ;;
6700 esac
6701
6702 need_locks="$enable_libtool_lock"
6703
6704
6705 case $host_os in
6706 rhapsody* | darwin*)
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$DSYMUTIL"; then
6716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6736 if test -n "$DSYMUTIL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6738 $as_echo "$DSYMUTIL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_DSYMUTIL"; then
6747 ac_ct_DSYMUTIL=$DSYMUTIL
6748 # Extract the first word of "dsymutil", so it can be a program name with args.
6749 set dummy dsymutil; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test -n "$ac_ct_DSYMUTIL"; then
6756 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6776 if test -n "$ac_ct_DSYMUTIL"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6778 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$ac_ct_DSYMUTIL" = x; then
6785 DSYMUTIL=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793 DSYMUTIL=$ac_ct_DSYMUTIL
6794 fi
6795 else
6796 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6797 fi
6798
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_NMEDIT+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$NMEDIT"; then
6808 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 NMEDIT=$ac_cv_prog_NMEDIT
6828 if test -n "$NMEDIT"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6830 $as_echo "$NMEDIT" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_NMEDIT"; then
6839 ac_ct_NMEDIT=$NMEDIT
6840 # Extract the first word of "nmedit", so it can be a program name with args.
6841 set dummy nmedit; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$ac_ct_NMEDIT"; then
6848 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6868 if test -n "$ac_ct_NMEDIT"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6870 $as_echo "$ac_ct_NMEDIT" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876 if test "x$ac_ct_NMEDIT" = x; then
6877 NMEDIT=":"
6878 else
6879 case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885 NMEDIT=$ac_ct_NMEDIT
6886 fi
6887 else
6888 NMEDIT="$ac_cv_prog_NMEDIT"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_LIPO+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$LIPO"; then
6900 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 LIPO=$ac_cv_prog_LIPO
6920 if test -n "$LIPO"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6922 $as_echo "$LIPO" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_LIPO"; then
6931 ac_ct_LIPO=$LIPO
6932 # Extract the first word of "lipo", so it can be a program name with args.
6933 set dummy lipo; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_LIPO"; then
6940 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_LIPO="lipo"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6960 if test -n "$ac_ct_LIPO"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6962 $as_echo "$ac_ct_LIPO" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_LIPO" = x; then
6969 LIPO=":"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 LIPO=$ac_ct_LIPO
6978 fi
6979 else
6980 LIPO="$ac_cv_prog_LIPO"
6981 fi
6982
6983 if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_OTOOL+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$OTOOL"; then
6992 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005 done
7006 done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 OTOOL=$ac_cv_prog_OTOOL
7012 if test -n "$OTOOL"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7014 $as_echo "$OTOOL" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_OTOOL"; then
7023 ac_ct_OTOOL=$OTOOL
7024 # Extract the first word of "otool", so it can be a program name with args.
7025 set dummy otool; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 if test -n "$ac_ct_OTOOL"; then
7032 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_OTOOL="otool"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045 done
7046 done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7052 if test -n "$ac_ct_OTOOL"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7054 $as_echo "$ac_ct_OTOOL" >&6; }
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060 if test "x$ac_ct_OTOOL" = x; then
7061 OTOOL=":"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069 OTOOL=$ac_ct_OTOOL
7070 fi
7071 else
7072 OTOOL="$ac_cv_prog_OTOOL"
7073 fi
7074
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_OTOOL64+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 if test -n "$OTOOL64"; then
7084 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 OTOOL64=$ac_cv_prog_OTOOL64
7104 if test -n "$OTOOL64"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7106 $as_echo "$OTOOL64" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_OTOOL64"; then
7115 ac_ct_OTOOL64=$OTOOL64
7116 # Extract the first word of "otool64", so it can be a program name with args.
7117 set dummy otool64; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 if test -n "$ac_ct_OTOOL64"; then
7124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_OTOOL64="otool64"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7144 if test -n "$ac_ct_OTOOL64"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7146 $as_echo "$ac_ct_OTOOL64" >&6; }
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152 if test "x$ac_ct_OTOOL64" = x; then
7153 OTOOL64=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159 ac_tool_warned=yes ;;
7160 esac
7161 OTOOL64=$ac_ct_OTOOL64
7162 fi
7163 else
7164 OTOOL64="$ac_cv_prog_OTOOL64"
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7194 $as_echo_n "checking for -single_module linker flag... " >&6; }
7195 if ${lt_cv_apple_cc_single_mod+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 lt_cv_apple_cc_single_mod=no
7199 if test -z "${LT_MULTI_MODULE}"; then
7200 # By default we will add the -single_module flag. You can override
7201 # by either setting the environment variable LT_MULTI_MODULE
7202 # non-empty at configure time, or by adding -multi_module to the
7203 # link flags.
7204 rm -rf libconftest.dylib*
7205 echo "int foo(void){return 1;}" > conftest.c
7206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207 -dynamiclib -Wl,-single_module conftest.c" >&5
7208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7210 _lt_result=$?
7211 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7212 lt_cv_apple_cc_single_mod=yes
7213 else
7214 cat conftest.err >&5
7215 fi
7216 rm -rf libconftest.dylib*
7217 rm -f conftest.*
7218 fi
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7221 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 lt_cv_ld_exported_symbols_list=no
7228 save_LDFLAGS=$LDFLAGS
7229 echo "_main" > conftest.sym
7230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231 if test x$gcc_no_link = xyes; then
7232 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7233 fi
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236
7237 int
7238 main ()
7239 {
7240
7241 ;
7242 return 0;
7243 }
7244 _ACEOF
7245 if ac_fn_c_try_link "$LINENO"; then :
7246 lt_cv_ld_exported_symbols_list=yes
7247 else
7248 lt_cv_ld_exported_symbols_list=no
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext \
7251 conftest$ac_exeext conftest.$ac_ext
7252 LDFLAGS="$save_LDFLAGS"
7253
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7256 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7258 $as_echo_n "checking for -force_load linker flag... " >&6; }
7259 if ${lt_cv_ld_force_load+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 lt_cv_ld_force_load=no
7263 cat > conftest.c << _LT_EOF
7264 int forced_loaded() { return 2;}
7265 _LT_EOF
7266 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7267 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7268 echo "$AR cru libconftest.a conftest.o" >&5
7269 $AR cru libconftest.a conftest.o 2>&5
7270 cat > conftest.c << _LT_EOF
7271 int main() { return 0;}
7272 _LT_EOF
7273 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7274 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7275 _lt_result=$?
7276 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7277 lt_cv_ld_force_load=yes
7278 else
7279 cat conftest.err >&5
7280 fi
7281 rm -f conftest.err libconftest.a conftest conftest.c
7282 rm -rf conftest.dSYM
7283
7284 fi
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7286 $as_echo "$lt_cv_ld_force_load" >&6; }
7287 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7288 # build without first building modern cctools / linker.
7289 case $host_cpu-$host_os in
7290 *-rhapsody* | *-darwin1.[012])
7291 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7292 *-darwin1.*)
7293 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7294 *-darwin*)
7295 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7296 # deployment target is forced to an earlier version.
7297 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7298 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7299 ;;
7300 10.[012][,.]*)
7301 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7302 ;;
7303 *)
7304 ;;
7305 esac
7306 ;;
7307 esac
7308 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7309 _lt_dar_single_mod='$single_module'
7310 fi
7311 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7312 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7313 else
7314 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7315 fi
7316 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7317 _lt_dsymutil='~$DSYMUTIL $lib || :'
7318 else
7319 _lt_dsymutil=
7320 fi
7321 ;;
7322 esac
7323
7324 for ac_header in dlfcn.h
7325 do :
7326 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7327 "
7328 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7329 cat >>confdefs.h <<_ACEOF
7330 #define HAVE_DLFCN_H 1
7331 _ACEOF
7332
7333 fi
7334
7335 done
7336
7337
7338
7339
7340
7341 # Set options
7342
7343
7344
7345 enable_dlopen=no
7346
7347
7348 enable_win32_dll=no
7349
7350
7351 # Check whether --enable-shared was given.
7352 if test "${enable_shared+set}" = set; then :
7353 enableval=$enable_shared; p=${PACKAGE-default}
7354 case $enableval in
7355 yes) enable_shared=yes ;;
7356 no) enable_shared=no ;;
7357 *)
7358 enable_shared=no
7359 # Look at the argument we got. We use all the common list separators.
7360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361 for pkg in $enableval; do
7362 IFS="$lt_save_ifs"
7363 if test "X$pkg" = "X$p"; then
7364 enable_shared=yes
7365 fi
7366 done
7367 IFS="$lt_save_ifs"
7368 ;;
7369 esac
7370 else
7371 enable_shared=yes
7372 fi
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382 # Check whether --enable-static was given.
7383 if test "${enable_static+set}" = set; then :
7384 enableval=$enable_static; p=${PACKAGE-default}
7385 case $enableval in
7386 yes) enable_static=yes ;;
7387 no) enable_static=no ;;
7388 *)
7389 enable_static=no
7390 # Look at the argument we got. We use all the common list separators.
7391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7392 for pkg in $enableval; do
7393 IFS="$lt_save_ifs"
7394 if test "X$pkg" = "X$p"; then
7395 enable_static=yes
7396 fi
7397 done
7398 IFS="$lt_save_ifs"
7399 ;;
7400 esac
7401 else
7402 enable_static=yes
7403 fi
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 # Check whether --with-pic was given.
7415 if test "${with_pic+set}" = set; then :
7416 withval=$with_pic; pic_mode="$withval"
7417 else
7418 pic_mode=default
7419 fi
7420
7421
7422 test -z "$pic_mode" && pic_mode=default
7423
7424
7425
7426
7427
7428
7429
7430 # Check whether --enable-fast-install was given.
7431 if test "${enable_fast_install+set}" = set; then :
7432 enableval=$enable_fast_install; p=${PACKAGE-default}
7433 case $enableval in
7434 yes) enable_fast_install=yes ;;
7435 no) enable_fast_install=no ;;
7436 *)
7437 enable_fast_install=no
7438 # Look at the argument we got. We use all the common list separators.
7439 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7440 for pkg in $enableval; do
7441 IFS="$lt_save_ifs"
7442 if test "X$pkg" = "X$p"; then
7443 enable_fast_install=yes
7444 fi
7445 done
7446 IFS="$lt_save_ifs"
7447 ;;
7448 esac
7449 else
7450 enable_fast_install=yes
7451 fi
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 # This can be used to rebuild libtool when needed
7464 LIBTOOL_DEPS="$ltmain"
7465
7466 # Always use our own libtool.
7467 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494 test -z "$LN_S" && LN_S="ln -s"
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 if test -n "${ZSH_VERSION+set}" ; then
7510 setopt NO_GLOB_SUBST
7511 fi
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7514 $as_echo_n "checking for objdir... " >&6; }
7515 if ${lt_cv_objdir+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 rm -f .libs 2>/dev/null
7519 mkdir .libs 2>/dev/null
7520 if test -d .libs; then
7521 lt_cv_objdir=.libs
7522 else
7523 # MS-DOS does not allow filenames that begin with a dot.
7524 lt_cv_objdir=_libs
7525 fi
7526 rmdir .libs 2>/dev/null
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7529 $as_echo "$lt_cv_objdir" >&6; }
7530 objdir=$lt_cv_objdir
7531
7532
7533
7534
7535
7536 cat >>confdefs.h <<_ACEOF
7537 #define LT_OBJDIR "$lt_cv_objdir/"
7538 _ACEOF
7539
7540
7541
7542
7543 case $host_os in
7544 aix3*)
7545 # AIX sometimes has problems with the GCC collect2 program. For some
7546 # reason, if we set the COLLECT_NAMES environment variable, the problems
7547 # vanish in a puff of smoke.
7548 if test "X${COLLECT_NAMES+set}" != Xset; then
7549 COLLECT_NAMES=
7550 export COLLECT_NAMES
7551 fi
7552 ;;
7553 esac
7554
7555 # Global variables:
7556 ofile=libtool
7557 can_build_shared=yes
7558
7559 # All known linkers require a `.a' archive for static linking (except MSVC,
7560 # which needs '.lib').
7561 libext=a
7562
7563 with_gnu_ld="$lt_cv_prog_gnu_ld"
7564
7565 old_CC="$CC"
7566 old_CFLAGS="$CFLAGS"
7567
7568 # Set sane defaults for various variables
7569 test -z "$CC" && CC=cc
7570 test -z "$LTCC" && LTCC=$CC
7571 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7572 test -z "$LD" && LD=ld
7573 test -z "$ac_objext" && ac_objext=o
7574
7575 for cc_temp in $compiler""; do
7576 case $cc_temp in
7577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7579 \-*) ;;
7580 *) break;;
7581 esac
7582 done
7583 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7584
7585
7586 # Only perform the check for file, if the check method requires it
7587 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7588 case $deplibs_check_method in
7589 file_magic*)
7590 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7592 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7593 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 case $MAGIC_CMD in
7597 [\\/*] | ?:[\\/]*)
7598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599 ;;
7600 *)
7601 lt_save_MAGIC_CMD="$MAGIC_CMD"
7602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7604 for ac_dir in $ac_dummy; do
7605 IFS="$lt_save_ifs"
7606 test -z "$ac_dir" && ac_dir=.
7607 if test -f $ac_dir/${ac_tool_prefix}file; then
7608 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7609 if test -n "$file_magic_test_file"; then
7610 case $deplibs_check_method in
7611 "file_magic "*)
7612 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7615 $EGREP "$file_magic_regex" > /dev/null; then
7616 :
7617 else
7618 cat <<_LT_EOF 1>&2
7619
7620 *** Warning: the command libtool uses to detect shared libraries,
7621 *** $file_magic_cmd, produces output that libtool cannot recognize.
7622 *** The result is that libtool may fail to recognize shared libraries
7623 *** as such. This will affect the creation of libtool libraries that
7624 *** depend on shared libraries, but programs linked with such libtool
7625 *** libraries will work regardless of this problem. Nevertheless, you
7626 *** may want to report the problem to your system manager and/or to
7627 *** bug-libtool@gnu.org
7628
7629 _LT_EOF
7630 fi ;;
7631 esac
7632 fi
7633 break
7634 fi
7635 done
7636 IFS="$lt_save_ifs"
7637 MAGIC_CMD="$lt_save_MAGIC_CMD"
7638 ;;
7639 esac
7640 fi
7641
7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643 if test -n "$MAGIC_CMD"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7645 $as_echo "$MAGIC_CMD" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651
7652
7653
7654
7655 if test -z "$lt_cv_path_MAGIC_CMD"; then
7656 if test -n "$ac_tool_prefix"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7658 $as_echo_n "checking for file... " >&6; }
7659 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 case $MAGIC_CMD in
7663 [\\/*] | ?:[\\/]*)
7664 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7665 ;;
7666 *)
7667 lt_save_MAGIC_CMD="$MAGIC_CMD"
7668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7669 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7670 for ac_dir in $ac_dummy; do
7671 IFS="$lt_save_ifs"
7672 test -z "$ac_dir" && ac_dir=.
7673 if test -f $ac_dir/file; then
7674 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7675 if test -n "$file_magic_test_file"; then
7676 case $deplibs_check_method in
7677 "file_magic "*)
7678 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7681 $EGREP "$file_magic_regex" > /dev/null; then
7682 :
7683 else
7684 cat <<_LT_EOF 1>&2
7685
7686 *** Warning: the command libtool uses to detect shared libraries,
7687 *** $file_magic_cmd, produces output that libtool cannot recognize.
7688 *** The result is that libtool may fail to recognize shared libraries
7689 *** as such. This will affect the creation of libtool libraries that
7690 *** depend on shared libraries, but programs linked with such libtool
7691 *** libraries will work regardless of this problem. Nevertheless, you
7692 *** may want to report the problem to your system manager and/or to
7693 *** bug-libtool@gnu.org
7694
7695 _LT_EOF
7696 fi ;;
7697 esac
7698 fi
7699 break
7700 fi
7701 done
7702 IFS="$lt_save_ifs"
7703 MAGIC_CMD="$lt_save_MAGIC_CMD"
7704 ;;
7705 esac
7706 fi
7707
7708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709 if test -n "$MAGIC_CMD"; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7711 $as_echo "$MAGIC_CMD" >&6; }
7712 else
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716
7717
7718 else
7719 MAGIC_CMD=:
7720 fi
7721 fi
7722
7723 fi
7724 ;;
7725 esac
7726
7727 # Use C for the default configuration in the libtool script
7728
7729 lt_save_CC="$CC"
7730 ac_ext=c
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735
7736
7737 # Source file extension for C test sources.
7738 ac_ext=c
7739
7740 # Object file extension for compiled C test sources.
7741 objext=o
7742 objext=$objext
7743
7744 # Code to be used in simple compile tests
7745 lt_simple_compile_test_code="int some_variable = 0;"
7746
7747 # Code to be used in simple link tests
7748 lt_simple_link_test_code='int main(){return(0);}'
7749
7750
7751
7752
7753
7754
7755
7756 # If no C compiler was specified, use CC.
7757 LTCC=${LTCC-"$CC"}
7758
7759 # If no C compiler flags were specified, use CFLAGS.
7760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7761
7762 # Allow CC to be a program name with arguments.
7763 compiler=$CC
7764
7765 # Save the default compiler, since it gets overwritten when the other
7766 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7767 compiler_DEFAULT=$CC
7768
7769 # save warnings/boilerplate of simple test code
7770 ac_outfile=conftest.$ac_objext
7771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7773 _lt_compiler_boilerplate=`cat conftest.err`
7774 $RM conftest*
7775
7776 ac_outfile=conftest.$ac_objext
7777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7779 _lt_linker_boilerplate=`cat conftest.err`
7780 $RM -r conftest*
7781
7782
7783 ## CAVEAT EMPTOR:
7784 ## There is no encapsulation within the following macros, do not change
7785 ## the running order or otherwise move them around unless you know exactly
7786 ## what you are doing...
7787 if test -n "$compiler"; then
7788
7789 lt_prog_compiler_no_builtin_flag=
7790
7791 if test "$GCC" = yes; then
7792 case $cc_basename in
7793 nvcc*)
7794 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7795 *)
7796 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7797 esac
7798
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7800 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7801 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 lt_cv_prog_compiler_rtti_exceptions=no
7805 ac_outfile=conftest.$ac_objext
7806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7807 lt_compiler_flag="-fno-rtti -fno-exceptions"
7808 # Insert the option either (1) after the last *FLAGS variable, or
7809 # (2) before a word containing "conftest.", or (3) at the end.
7810 # Note that $ac_compile itself does not contain backslashes and begins
7811 # with a dollar sign (not a hyphen), so the echo should work correctly.
7812 # The option is referenced via a variable to avoid confusing sed.
7813 lt_compile=`echo "$ac_compile" | $SED \
7814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816 -e 's:$: $lt_compiler_flag:'`
7817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7818 (eval "$lt_compile" 2>conftest.err)
7819 ac_status=$?
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 if (exit $ac_status) && test -s "$ac_outfile"; then
7823 # The compiler can only warn and ignore the option if not recognized
7824 # So say no if there are warnings other than the usual output.
7825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7828 lt_cv_prog_compiler_rtti_exceptions=yes
7829 fi
7830 fi
7831 $RM conftest*
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7835 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7836
7837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7838 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7839 else
7840 :
7841 fi
7842
7843 fi
7844
7845
7846
7847
7848
7849
7850 lt_prog_compiler_wl=
7851 lt_prog_compiler_pic=
7852 lt_prog_compiler_static=
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7855 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7856
7857 if test "$GCC" = yes; then
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_static='-static'
7860
7861 case $host_os in
7862 aix*)
7863 # All AIX code is PIC.
7864 if test "$host_cpu" = ia64; then
7865 # AIX 5 now supports IA64 processor
7866 lt_prog_compiler_static='-Bstatic'
7867 fi
7868 lt_prog_compiler_pic='-fPIC'
7869 ;;
7870
7871 amigaos*)
7872 case $host_cpu in
7873 powerpc)
7874 # see comment about AmigaOS4 .so support
7875 lt_prog_compiler_pic='-fPIC'
7876 ;;
7877 m68k)
7878 # FIXME: we need at least 68020 code to build shared libraries, but
7879 # adding the `-m68020' flag to GCC prevents building anything better,
7880 # like `-m68040'.
7881 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7882 ;;
7883 esac
7884 ;;
7885
7886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7887 # PIC is the default for these OSes.
7888 ;;
7889
7890 mingw* | cygwin* | pw32* | os2* | cegcc*)
7891 # This hack is so that the source file can tell whether it is being
7892 # built for inclusion in a dll (and should export symbols for example).
7893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7894 # (--disable-auto-import) libraries
7895 lt_prog_compiler_pic='-DDLL_EXPORT'
7896 ;;
7897
7898 darwin* | rhapsody*)
7899 # PIC is the default on this platform
7900 # Common symbols not allowed in MH_DYLIB files
7901 lt_prog_compiler_pic='-fno-common'
7902 ;;
7903
7904 haiku*)
7905 # PIC is the default for Haiku.
7906 # The "-static" flag exists, but is broken.
7907 lt_prog_compiler_static=
7908 ;;
7909
7910 hpux*)
7911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7913 # sets the default TLS model and affects inlining.
7914 case $host_cpu in
7915 hppa*64*)
7916 # +Z the default
7917 ;;
7918 *)
7919 lt_prog_compiler_pic='-fPIC'
7920 ;;
7921 esac
7922 ;;
7923
7924 interix[3-9]*)
7925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7926 # Instead, we relocate shared libraries at runtime.
7927 ;;
7928
7929 msdosdjgpp*)
7930 # Just because we use GCC doesn't mean we suddenly get shared libraries
7931 # on systems that don't support them.
7932 lt_prog_compiler_can_build_shared=no
7933 enable_shared=no
7934 ;;
7935
7936 *nto* | *qnx*)
7937 # QNX uses GNU C++, but need to define -shared option too, otherwise
7938 # it will coredump.
7939 lt_prog_compiler_pic='-fPIC -shared'
7940 ;;
7941
7942 sysv4*MP*)
7943 if test -d /usr/nec; then
7944 lt_prog_compiler_pic=-Kconform_pic
7945 fi
7946 ;;
7947
7948 *)
7949 lt_prog_compiler_pic='-fPIC'
7950 ;;
7951 esac
7952
7953 case $cc_basename in
7954 nvcc*) # Cuda Compiler Driver 2.2
7955 lt_prog_compiler_wl='-Xlinker '
7956 lt_prog_compiler_pic='-Xcompiler -fPIC'
7957 ;;
7958 esac
7959 else
7960 # PORTME Check for flag to pass linker flags through the system compiler.
7961 case $host_os in
7962 aix*)
7963 lt_prog_compiler_wl='-Wl,'
7964 if test "$host_cpu" = ia64; then
7965 # AIX 5 now supports IA64 processor
7966 lt_prog_compiler_static='-Bstatic'
7967 else
7968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7969 fi
7970 ;;
7971
7972 mingw* | cygwin* | pw32* | os2* | cegcc*)
7973 # This hack is so that the source file can tell whether it is being
7974 # built for inclusion in a dll (and should export symbols for example).
7975 lt_prog_compiler_pic='-DDLL_EXPORT'
7976 ;;
7977
7978 hpux9* | hpux10* | hpux11*)
7979 lt_prog_compiler_wl='-Wl,'
7980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7981 # not for PA HP-UX.
7982 case $host_cpu in
7983 hppa*64*|ia64*)
7984 # +Z the default
7985 ;;
7986 *)
7987 lt_prog_compiler_pic='+Z'
7988 ;;
7989 esac
7990 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7991 lt_prog_compiler_static='${wl}-a ${wl}archive'
7992 ;;
7993
7994 irix5* | irix6* | nonstopux*)
7995 lt_prog_compiler_wl='-Wl,'
7996 # PIC (with -KPIC) is the default.
7997 lt_prog_compiler_static='-non_shared'
7998 ;;
7999
8000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8001 case $cc_basename in
8002 # old Intel for x86_64 which still supported -KPIC.
8003 ecc*)
8004 lt_prog_compiler_wl='-Wl,'
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-static'
8007 ;;
8008 # icc used to be incompatible with GCC.
8009 # ICC 10 doesn't accept -KPIC any more.
8010 icc* | ifort*)
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_pic='-fPIC'
8013 lt_prog_compiler_static='-static'
8014 ;;
8015 # Lahey Fortran 8.1.
8016 lf95*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='--shared'
8019 lt_prog_compiler_static='--static'
8020 ;;
8021 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8022 # Portland Group compilers (*not* the Pentium gcc compiler,
8023 # which looks to be a dead project)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-fpic'
8026 lt_prog_compiler_static='-Bstatic'
8027 ;;
8028 ccc*)
8029 lt_prog_compiler_wl='-Wl,'
8030 # All Alpha code is PIC.
8031 lt_prog_compiler_static='-non_shared'
8032 ;;
8033 xl* | bgxl* | bgf* | mpixl*)
8034 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-qpic'
8037 lt_prog_compiler_static='-qstaticlink'
8038 ;;
8039 *)
8040 case `$CC -V 2>&1 | sed 5q` in
8041 *Sun\ F* | *Sun*Fortran*)
8042 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8043 lt_prog_compiler_pic='-KPIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 lt_prog_compiler_wl=''
8046 ;;
8047 *Sun\ C*)
8048 # Sun C 5.9
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_wl='-Wl,'
8052 ;;
8053 esac
8054 ;;
8055 esac
8056 ;;
8057
8058 newsos6)
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
8063 *nto* | *qnx*)
8064 # QNX uses GNU C++, but need to define -shared option too, otherwise
8065 # it will coredump.
8066 lt_prog_compiler_pic='-fPIC -shared'
8067 ;;
8068
8069 osf3* | osf4* | osf5*)
8070 lt_prog_compiler_wl='-Wl,'
8071 # All OSF/1 code is PIC.
8072 lt_prog_compiler_static='-non_shared'
8073 ;;
8074
8075 rdos*)
8076 lt_prog_compiler_static='-non_shared'
8077 ;;
8078
8079 solaris*)
8080 lt_prog_compiler_pic='-KPIC'
8081 lt_prog_compiler_static='-Bstatic'
8082 case $cc_basename in
8083 f77* | f90* | f95*)
8084 lt_prog_compiler_wl='-Qoption ld ';;
8085 *)
8086 lt_prog_compiler_wl='-Wl,';;
8087 esac
8088 ;;
8089
8090 sunos4*)
8091 lt_prog_compiler_wl='-Qoption ld '
8092 lt_prog_compiler_pic='-PIC'
8093 lt_prog_compiler_static='-Bstatic'
8094 ;;
8095
8096 sysv4 | sysv4.2uw2* | sysv4.3*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-KPIC'
8099 lt_prog_compiler_static='-Bstatic'
8100 ;;
8101
8102 sysv4*MP*)
8103 if test -d /usr/nec ;then
8104 lt_prog_compiler_pic='-Kconform_pic'
8105 lt_prog_compiler_static='-Bstatic'
8106 fi
8107 ;;
8108
8109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 ;;
8114
8115 unicos*)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_can_build_shared=no
8118 ;;
8119
8120 uts4*)
8121 lt_prog_compiler_pic='-pic'
8122 lt_prog_compiler_static='-Bstatic'
8123 ;;
8124
8125 *)
8126 lt_prog_compiler_can_build_shared=no
8127 ;;
8128 esac
8129 fi
8130
8131 case $host_os in
8132 # For platforms which do not support PIC, -DPIC is meaningless:
8133 *djgpp*)
8134 lt_prog_compiler_pic=
8135 ;;
8136 *)
8137 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8138 ;;
8139 esac
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8141 $as_echo "$lt_prog_compiler_pic" >&6; }
8142
8143
8144
8145
8146
8147
8148 #
8149 # Check to make sure the PIC flag actually works.
8150 #
8151 if test -n "$lt_prog_compiler_pic"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8153 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8154 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_prog_compiler_pic_works=no
8158 ac_outfile=conftest.$ac_objext
8159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8160 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8161 # Insert the option either (1) after the last *FLAGS variable, or
8162 # (2) before a word containing "conftest.", or (3) at the end.
8163 # Note that $ac_compile itself does not contain backslashes and begins
8164 # with a dollar sign (not a hyphen), so the echo should work correctly.
8165 # The option is referenced via a variable to avoid confusing sed.
8166 lt_compile=`echo "$ac_compile" | $SED \
8167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8169 -e 's:$: $lt_compiler_flag:'`
8170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8171 (eval "$lt_compile" 2>conftest.err)
8172 ac_status=$?
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 if (exit $ac_status) && test -s "$ac_outfile"; then
8176 # The compiler can only warn and ignore the option if not recognized
8177 # So say no if there are warnings other than the usual output.
8178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8181 lt_cv_prog_compiler_pic_works=yes
8182 fi
8183 fi
8184 $RM conftest*
8185
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8188 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8189
8190 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8191 case $lt_prog_compiler_pic in
8192 "" | " "*) ;;
8193 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8194 esac
8195 else
8196 lt_prog_compiler_pic=
8197 lt_prog_compiler_can_build_shared=no
8198 fi
8199
8200 fi
8201
8202
8203
8204
8205
8206
8207 #
8208 # Check to make sure the static flag actually works.
8209 #
8210 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8212 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8213 if ${lt_cv_prog_compiler_static_works+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 lt_cv_prog_compiler_static_works=no
8217 save_LDFLAGS="$LDFLAGS"
8218 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8221 # The linker can only warn and ignore the option if not recognized
8222 # So say no if there are warnings
8223 if test -s conftest.err; then
8224 # Append any errors to the config.log.
8225 cat conftest.err 1>&5
8226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8228 if diff conftest.exp conftest.er2 >/dev/null; then
8229 lt_cv_prog_compiler_static_works=yes
8230 fi
8231 else
8232 lt_cv_prog_compiler_static_works=yes
8233 fi
8234 fi
8235 $RM -r conftest*
8236 LDFLAGS="$save_LDFLAGS"
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8240 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8241
8242 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8243 :
8244 else
8245 lt_prog_compiler_static=
8246 fi
8247
8248
8249
8250
8251
8252
8253
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8255 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8256 if ${lt_cv_prog_compiler_c_o+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 lt_cv_prog_compiler_c_o=no
8260 $RM -r conftest 2>/dev/null
8261 mkdir conftest
8262 cd conftest
8263 mkdir out
8264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8265
8266 lt_compiler_flag="-o out/conftest2.$ac_objext"
8267 # Insert the option either (1) after the last *FLAGS variable, or
8268 # (2) before a word containing "conftest.", or (3) at the end.
8269 # Note that $ac_compile itself does not contain backslashes and begins
8270 # with a dollar sign (not a hyphen), so the echo should work correctly.
8271 lt_compile=`echo "$ac_compile" | $SED \
8272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8274 -e 's:$: $lt_compiler_flag:'`
8275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8276 (eval "$lt_compile" 2>out/conftest.err)
8277 ac_status=$?
8278 cat out/conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8281 then
8282 # The compiler can only warn and ignore the option if not recognized
8283 # So say no if there are warnings
8284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8287 lt_cv_prog_compiler_c_o=yes
8288 fi
8289 fi
8290 chmod u+w . 2>&5
8291 $RM conftest*
8292 # SGI C++ compiler will create directory out/ii_files/ for
8293 # template instantiation
8294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8295 $RM out/* && rmdir out
8296 cd ..
8297 $RM -r conftest
8298 $RM conftest*
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8302 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8303
8304
8305
8306
8307
8308
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8310 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8311 if ${lt_cv_prog_compiler_c_o+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 lt_cv_prog_compiler_c_o=no
8315 $RM -r conftest 2>/dev/null
8316 mkdir conftest
8317 cd conftest
8318 mkdir out
8319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8320
8321 lt_compiler_flag="-o out/conftest2.$ac_objext"
8322 # Insert the option either (1) after the last *FLAGS variable, or
8323 # (2) before a word containing "conftest.", or (3) at the end.
8324 # Note that $ac_compile itself does not contain backslashes and begins
8325 # with a dollar sign (not a hyphen), so the echo should work correctly.
8326 lt_compile=`echo "$ac_compile" | $SED \
8327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8329 -e 's:$: $lt_compiler_flag:'`
8330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8331 (eval "$lt_compile" 2>out/conftest.err)
8332 ac_status=$?
8333 cat out/conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8336 then
8337 # The compiler can only warn and ignore the option if not recognized
8338 # So say no if there are warnings
8339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8342 lt_cv_prog_compiler_c_o=yes
8343 fi
8344 fi
8345 chmod u+w . 2>&5
8346 $RM conftest*
8347 # SGI C++ compiler will create directory out/ii_files/ for
8348 # template instantiation
8349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8350 $RM out/* && rmdir out
8351 cd ..
8352 $RM -r conftest
8353 $RM conftest*
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8357 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8358
8359
8360
8361
8362 hard_links="nottested"
8363 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8364 # do not overwrite the value of need_locks provided by the user
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8366 $as_echo_n "checking if we can lock with hard links... " >&6; }
8367 hard_links=yes
8368 $RM conftest*
8369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8370 touch conftest.a
8371 ln conftest.a conftest.b 2>&5 || hard_links=no
8372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8374 $as_echo "$hard_links" >&6; }
8375 if test "$hard_links" = no; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8377 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8378 need_locks=warn
8379 fi
8380 else
8381 need_locks=no
8382 fi
8383
8384
8385
8386
8387
8388
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8390 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8391
8392 runpath_var=
8393 allow_undefined_flag=
8394 always_export_symbols=no
8395 archive_cmds=
8396 archive_expsym_cmds=
8397 compiler_needs_object=no
8398 enable_shared_with_static_runtimes=no
8399 export_dynamic_flag_spec=
8400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8401 hardcode_automatic=no
8402 hardcode_direct=no
8403 hardcode_direct_absolute=no
8404 hardcode_libdir_flag_spec=
8405 hardcode_libdir_flag_spec_ld=
8406 hardcode_libdir_separator=
8407 hardcode_minus_L=no
8408 hardcode_shlibpath_var=unsupported
8409 inherit_rpath=no
8410 link_all_deplibs=unknown
8411 module_cmds=
8412 module_expsym_cmds=
8413 old_archive_from_new_cmds=
8414 old_archive_from_expsyms_cmds=
8415 thread_safe_flag_spec=
8416 whole_archive_flag_spec=
8417 # include_expsyms should be a list of space-separated symbols to be *always*
8418 # included in the symbol list
8419 include_expsyms=
8420 # exclude_expsyms can be an extended regexp of symbols to exclude
8421 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8422 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8423 # as well as any symbol that contains `d'.
8424 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8425 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8426 # platforms (ab)use it in PIC code, but their linkers get confused if
8427 # the symbol is explicitly referenced. Since portable code cannot
8428 # rely on this symbol name, it's probably fine to never include it in
8429 # preloaded symbol tables.
8430 # Exclude shared library initialization/finalization symbols.
8431 extract_expsyms_cmds=
8432
8433 case $host_os in
8434 cygwin* | mingw* | pw32* | cegcc*)
8435 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8436 # When not using gcc, we currently assume that we are using
8437 # Microsoft Visual C++.
8438 if test "$GCC" != yes; then
8439 with_gnu_ld=no
8440 fi
8441 ;;
8442 interix*)
8443 # we just hope/assume this is gcc and not c89 (= MSVC++)
8444 with_gnu_ld=yes
8445 ;;
8446 openbsd*)
8447 with_gnu_ld=no
8448 ;;
8449 esac
8450
8451 ld_shlibs=yes
8452
8453 # On some targets, GNU ld is compatible enough with the native linker
8454 # that we're better off using the native interface for both.
8455 lt_use_gnu_ld_interface=no
8456 if test "$with_gnu_ld" = yes; then
8457 case $host_os in
8458 aix*)
8459 # The AIX port of GNU ld has always aspired to compatibility
8460 # with the native linker. However, as the warning in the GNU ld
8461 # block says, versions before 2.19.5* couldn't really create working
8462 # shared libraries, regardless of the interface used.
8463 case `$LD -v 2>&1` in
8464 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8465 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8466 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8467 *)
8468 lt_use_gnu_ld_interface=yes
8469 ;;
8470 esac
8471 ;;
8472 *)
8473 lt_use_gnu_ld_interface=yes
8474 ;;
8475 esac
8476 fi
8477
8478 if test "$lt_use_gnu_ld_interface" = yes; then
8479 # If archive_cmds runs LD, not CC, wlarc should be empty
8480 wlarc='${wl}'
8481
8482 # Set some defaults for GNU ld with shared library support. These
8483 # are reset later if shared libraries are not supported. Putting them
8484 # here allows them to be overridden if necessary.
8485 runpath_var=LD_RUN_PATH
8486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8487 export_dynamic_flag_spec='${wl}--export-dynamic'
8488 # ancient GNU ld didn't support --whole-archive et. al.
8489 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8491 else
8492 whole_archive_flag_spec=
8493 fi
8494 supports_anon_versioning=no
8495 case `$LD -v 2>&1` in
8496 *GNU\ gold*) supports_anon_versioning=yes ;;
8497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8500 *\ 2.11.*) ;; # other 2.11 versions
8501 *) supports_anon_versioning=yes ;;
8502 esac
8503
8504 # See if GNU ld supports shared libraries.
8505 case $host_os in
8506 aix[3-9]*)
8507 # On AIX/PPC, the GNU linker is very broken
8508 if test "$host_cpu" != ia64; then
8509 ld_shlibs=no
8510 cat <<_LT_EOF 1>&2
8511
8512 *** Warning: the GNU linker, at least up to release 2.19, is reported
8513 *** to be unable to reliably create shared libraries on AIX.
8514 *** Therefore, libtool is disabling shared libraries support. If you
8515 *** really care for shared libraries, you may want to install binutils
8516 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8517 *** You will then need to restart the configuration process.
8518
8519 _LT_EOF
8520 fi
8521 ;;
8522
8523 amigaos*)
8524 case $host_cpu in
8525 powerpc)
8526 # see comment about AmigaOS4 .so support
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528 archive_expsym_cmds=''
8529 ;;
8530 m68k)
8531 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)'
8532 hardcode_libdir_flag_spec='-L$libdir'
8533 hardcode_minus_L=yes
8534 ;;
8535 esac
8536 ;;
8537
8538 beos*)
8539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8540 allow_undefined_flag=unsupported
8541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8542 # support --undefined. This deserves some investigation. FIXME
8543 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 else
8545 ld_shlibs=no
8546 fi
8547 ;;
8548
8549 cygwin* | mingw* | pw32* | cegcc*)
8550 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8551 # as there is no search path for DLLs.
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 export_dynamic_flag_spec='${wl}--export-all-symbols'
8554 allow_undefined_flag=unsupported
8555 always_export_symbols=no
8556 enable_shared_with_static_runtimes=yes
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8558
8559 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8561 # If the export-symbols file already is a .def file (1st line
8562 # is EXPORTS), use it as is; otherwise, prepend...
8563 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8564 cp $export_symbols $output_objdir/$soname.def;
8565 else
8566 echo EXPORTS > $output_objdir/$soname.def;
8567 cat $export_symbols >> $output_objdir/$soname.def;
8568 fi~
8569 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8570 else
8571 ld_shlibs=no
8572 fi
8573 ;;
8574
8575 haiku*)
8576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8577 link_all_deplibs=yes
8578 ;;
8579
8580 interix[3-9]*)
8581 hardcode_direct=no
8582 hardcode_shlibpath_var=no
8583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8584 export_dynamic_flag_spec='${wl}-E'
8585 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8586 # Instead, shared libraries are loaded at an image base (0x10000000 by
8587 # default) and relocated if they conflict, which is a slow very memory
8588 # consuming and fragmenting process. To avoid this, we pick a random,
8589 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8590 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8591 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8592 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'
8593 ;;
8594
8595 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8596 tmp_diet=no
8597 if test "$host_os" = linux-dietlibc; then
8598 case $cc_basename in
8599 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8600 esac
8601 fi
8602 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8603 && test "$tmp_diet" = no
8604 then
8605 tmp_addflag=' $pic_flag'
8606 tmp_sharedflag='-shared'
8607 case $cc_basename,$host_cpu in
8608 pgcc*) # Portland Group C compiler
8609 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'
8610 tmp_addflag=' $pic_flag'
8611 ;;
8612 pgf77* | pgf90* | pgf95* | pgfortran*)
8613 # Portland Group f77 and f90 compilers
8614 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'
8615 tmp_addflag=' $pic_flag -Mnomain' ;;
8616 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8617 tmp_addflag=' -i_dynamic' ;;
8618 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8619 tmp_addflag=' -i_dynamic -nofor_main' ;;
8620 ifc* | ifort*) # Intel Fortran compiler
8621 tmp_addflag=' -nofor_main' ;;
8622 lf95*) # Lahey Fortran 8.1
8623 whole_archive_flag_spec=
8624 tmp_sharedflag='--shared' ;;
8625 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8626 tmp_sharedflag='-qmkshrobj'
8627 tmp_addflag= ;;
8628 nvcc*) # Cuda Compiler Driver 2.2
8629 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'
8630 compiler_needs_object=yes
8631 ;;
8632 esac
8633 case `$CC -V 2>&1 | sed 5q` in
8634 *Sun\ C*) # Sun C 5.9
8635 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'
8636 compiler_needs_object=yes
8637 tmp_sharedflag='-G' ;;
8638 *Sun\ F*) # Sun Fortran 8.3
8639 tmp_sharedflag='-G' ;;
8640 esac
8641 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642
8643 if test "x$supports_anon_versioning" = xyes; then
8644 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8646 echo "local: *; };" >> $output_objdir/$libname.ver~
8647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8648 fi
8649
8650 case $cc_basename in
8651 xlf* | bgf* | bgxlf* | mpixlf*)
8652 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8653 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8654 hardcode_libdir_flag_spec=
8655 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8656 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8657 if test "x$supports_anon_versioning" = xyes; then
8658 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8659 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8660 echo "local: *; };" >> $output_objdir/$libname.ver~
8661 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8662 fi
8663 ;;
8664 esac
8665 else
8666 ld_shlibs=no
8667 fi
8668 ;;
8669
8670 netbsd*)
8671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8672 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8673 wlarc=
8674 else
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677 fi
8678 ;;
8679
8680 solaris*)
8681 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8682 ld_shlibs=no
8683 cat <<_LT_EOF 1>&2
8684
8685 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8686 *** create shared libraries on Solaris systems. Therefore, libtool
8687 *** is disabling shared libraries support. We urge you to upgrade GNU
8688 *** binutils to release 2.9.1 or newer. Another option is to modify
8689 *** your PATH or compiler configuration so that the native linker is
8690 *** used, and then restart.
8691
8692 _LT_EOF
8693 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696 else
8697 ld_shlibs=no
8698 fi
8699 ;;
8700
8701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8702 case `$LD -v 2>&1` in
8703 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8704 ld_shlibs=no
8705 cat <<_LT_EOF 1>&2
8706
8707 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8708 *** reliably create shared libraries on SCO systems. Therefore, libtool
8709 *** is disabling shared libraries support. We urge you to upgrade GNU
8710 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8711 *** your PATH or compiler configuration so that the native linker is
8712 *** used, and then restart.
8713
8714 _LT_EOF
8715 ;;
8716 *)
8717 # For security reasons, it is highly recommended that you always
8718 # use absolute paths for naming shared libraries, and exclude the
8719 # DT_RUNPATH tag from executables and libraries. But doing so
8720 # requires that you compile everything twice, which is a pain.
8721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8724 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8725 else
8726 ld_shlibs=no
8727 fi
8728 ;;
8729 esac
8730 ;;
8731
8732 sunos4*)
8733 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8734 wlarc=
8735 hardcode_direct=yes
8736 hardcode_shlibpath_var=no
8737 ;;
8738
8739 *)
8740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8743 else
8744 ld_shlibs=no
8745 fi
8746 ;;
8747 esac
8748
8749 if test "$ld_shlibs" = no; then
8750 runpath_var=
8751 hardcode_libdir_flag_spec=
8752 export_dynamic_flag_spec=
8753 whole_archive_flag_spec=
8754 fi
8755 else
8756 # PORTME fill in a description of your system's linker (not GNU ld)
8757 case $host_os in
8758 aix3*)
8759 allow_undefined_flag=unsupported
8760 always_export_symbols=yes
8761 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'
8762 # Note: this linker hardcodes the directories in LIBPATH if there
8763 # are no directories specified by -L.
8764 hardcode_minus_L=yes
8765 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8766 # Neither direct hardcoding nor static linking is supported with a
8767 # broken collect2.
8768 hardcode_direct=unsupported
8769 fi
8770 ;;
8771
8772 aix[4-9]*)
8773 if test "$host_cpu" = ia64; then
8774 # On IA64, the linker does run time linking by default, so we don't
8775 # have to do anything special.
8776 aix_use_runtimelinking=no
8777 exp_sym_flag='-Bexport'
8778 no_entry_flag=""
8779 else
8780 # If we're using GNU nm, then we don't want the "-C" option.
8781 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8782 # Also, AIX nm treats weak defined symbols like other global
8783 # defined symbols, whereas GNU nm marks them as "W".
8784 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8785 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'
8786 else
8787 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8788 fi
8789 aix_use_runtimelinking=no
8790
8791 # Test if we are trying to use run time linking or normal
8792 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8793 # need to do runtime linking.
8794 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8795 for ld_flag in $LDFLAGS; do
8796 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8797 aix_use_runtimelinking=yes
8798 break
8799 fi
8800 done
8801 ;;
8802 esac
8803
8804 exp_sym_flag='-bexport'
8805 no_entry_flag='-bnoentry'
8806 fi
8807
8808 # When large executables or shared objects are built, AIX ld can
8809 # have problems creating the table of contents. If linking a library
8810 # or program results in "error TOC overflow" add -mminimal-toc to
8811 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8812 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8813
8814 archive_cmds=''
8815 hardcode_direct=yes
8816 hardcode_direct_absolute=yes
8817 hardcode_libdir_separator=':'
8818 link_all_deplibs=yes
8819 file_list_spec='${wl}-f,'
8820
8821 if test "$GCC" = yes; then
8822 case $host_os in aix4.[012]|aix4.[012].*)
8823 # We only want to do this on AIX 4.2 and lower, the check
8824 # below for broken collect2 doesn't work under 4.3+
8825 collect2name=`${CC} -print-prog-name=collect2`
8826 if test -f "$collect2name" &&
8827 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8828 then
8829 # We have reworked collect2
8830 :
8831 else
8832 # We have old collect2
8833 hardcode_direct=unsupported
8834 # It fails to find uninstalled libraries when the uninstalled
8835 # path is not listed in the libpath. Setting hardcode_minus_L
8836 # to unsupported forces relinking
8837 hardcode_minus_L=yes
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_libdir_separator=
8840 fi
8841 ;;
8842 esac
8843 shared_flag='-shared'
8844 if test "$aix_use_runtimelinking" = yes; then
8845 shared_flag="$shared_flag "'${wl}-G'
8846 fi
8847 else
8848 # not using gcc
8849 if test "$host_cpu" = ia64; then
8850 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8851 # chokes on -Wl,-G. The following line is correct:
8852 shared_flag='-G'
8853 else
8854 if test "$aix_use_runtimelinking" = yes; then
8855 shared_flag='${wl}-G'
8856 else
8857 shared_flag='${wl}-bM:SRE'
8858 fi
8859 fi
8860 fi
8861
8862 export_dynamic_flag_spec='${wl}-bexpall'
8863 # It seems that -bexpall does not export symbols beginning with
8864 # underscore (_), so it is better to generate a list of symbols to export.
8865 always_export_symbols=yes
8866 if test "$aix_use_runtimelinking" = yes; then
8867 # Warning - without using the other runtime loading flags (-brtl),
8868 # -berok will link without error, but may produce a broken library.
8869 allow_undefined_flag='-berok'
8870 # Determine the default libpath from the value encoded in an
8871 # empty executable.
8872 if test x$gcc_no_link = xyes; then
8873 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8874 fi
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877
8878 int
8879 main ()
8880 {
8881
8882 ;
8883 return 0;
8884 }
8885 _ACEOF
8886 if ac_fn_c_try_link "$LINENO"; then :
8887
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\(.*\)$/\1/
8892 p
8893 }
8894 }'
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 fi
8900 fi
8901 rm -f core conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 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"
8907 else
8908 if test "$host_cpu" = ia64; then
8909 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8910 allow_undefined_flag="-z nodefs"
8911 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"
8912 else
8913 # Determine the default libpath from the value encoded in an
8914 # empty executable.
8915 if test x$gcc_no_link = xyes; then
8916 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8917 fi
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920
8921 int
8922 main ()
8923 {
8924
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_link "$LINENO"; then :
8930
8931 lt_aix_libpath_sed='
8932 /Import File Strings/,/^$/ {
8933 /^0/ {
8934 s/^0 *\(.*\)$/\1/
8935 p
8936 }
8937 }'
8938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939 # Check for a 64-bit object if we didn't find anything.
8940 if test -z "$aix_libpath"; then
8941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 fi
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8947
8948 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8949 # Warning - without using the other run time loading flags,
8950 # -berok will link without error, but may produce a broken library.
8951 no_undefined_flag=' ${wl}-bernotok'
8952 allow_undefined_flag=' ${wl}-berok'
8953 if test "$with_gnu_ld" = yes; then
8954 # We only use this code for GNU lds that support --whole-archive.
8955 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8956 else
8957 # Exported symbols can be pulled into shared objects from archives
8958 whole_archive_flag_spec='$convenience'
8959 fi
8960 archive_cmds_need_lc=yes
8961 # This is similar to how AIX traditionally builds its shared libraries.
8962 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'
8963 fi
8964 fi
8965 ;;
8966
8967 amigaos*)
8968 case $host_cpu in
8969 powerpc)
8970 # see comment about AmigaOS4 .so support
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds=''
8973 ;;
8974 m68k)
8975 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)'
8976 hardcode_libdir_flag_spec='-L$libdir'
8977 hardcode_minus_L=yes
8978 ;;
8979 esac
8980 ;;
8981
8982 bsdi[45]*)
8983 export_dynamic_flag_spec=-rdynamic
8984 ;;
8985
8986 cygwin* | mingw* | pw32* | cegcc*)
8987 # When not using gcc, we currently assume that we are using
8988 # Microsoft Visual C++.
8989 # hardcode_libdir_flag_spec is actually meaningless, as there is
8990 # no search path for DLLs.
8991 hardcode_libdir_flag_spec=' '
8992 allow_undefined_flag=unsupported
8993 # Tell ltmain to make .lib files, not .a files.
8994 libext=lib
8995 # Tell ltmain to make .dll files, not .so files.
8996 shrext_cmds=".dll"
8997 # FIXME: Setting linknames here is a bad hack.
8998 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8999 # The linker will automatically build a .lib file if we build a DLL.
9000 old_archive_from_new_cmds='true'
9001 # FIXME: Should let the user specify the lib program.
9002 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9003 fix_srcfile_path='`cygpath -w "$srcfile"`'
9004 enable_shared_with_static_runtimes=yes
9005 ;;
9006
9007 darwin* | rhapsody*)
9008
9009
9010 archive_cmds_need_lc=no
9011 hardcode_direct=no
9012 hardcode_automatic=yes
9013 hardcode_shlibpath_var=unsupported
9014 if test "$lt_cv_ld_force_load" = "yes"; then
9015 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\"`'
9016 else
9017 whole_archive_flag_spec=''
9018 fi
9019 link_all_deplibs=yes
9020 allow_undefined_flag="$_lt_dar_allow_undefined"
9021 case $cc_basename in
9022 ifort*) _lt_dar_can_shared=yes ;;
9023 *) _lt_dar_can_shared=$GCC ;;
9024 esac
9025 if test "$_lt_dar_can_shared" = "yes"; then
9026 output_verbose_link_cmd=func_echo_all
9027 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9028 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9029 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}"
9030 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}"
9031
9032 else
9033 ld_shlibs=no
9034 fi
9035
9036 ;;
9037
9038 dgux*)
9039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_shlibpath_var=no
9042 ;;
9043
9044 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9045 # support. Future versions do this automatically, but an explicit c++rt0.o
9046 # does not break anything, and helps significantly (at the cost of a little
9047 # extra space).
9048 freebsd2.2*)
9049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9050 hardcode_libdir_flag_spec='-R$libdir'
9051 hardcode_direct=yes
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9056 freebsd2.*)
9057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 hardcode_direct=yes
9059 hardcode_minus_L=yes
9060 hardcode_shlibpath_var=no
9061 ;;
9062
9063 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9064 freebsd* | dragonfly*)
9065 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_direct=yes
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 hpux9*)
9072 if test "$GCC" = yes; then
9073 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'
9074 else
9075 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'
9076 fi
9077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9078 hardcode_libdir_separator=:
9079 hardcode_direct=yes
9080
9081 # hardcode_minus_L: Not really in the search PATH,
9082 # but as the default location of the library.
9083 hardcode_minus_L=yes
9084 export_dynamic_flag_spec='${wl}-E'
9085 ;;
9086
9087 hpux10*)
9088 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9089 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9090 else
9091 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9092 fi
9093 if test "$with_gnu_ld" = no; then
9094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9095 hardcode_libdir_flag_spec_ld='+b $libdir'
9096 hardcode_libdir_separator=:
9097 hardcode_direct=yes
9098 hardcode_direct_absolute=yes
9099 export_dynamic_flag_spec='${wl}-E'
9100 # hardcode_minus_L: Not really in the search PATH,
9101 # but as the default location of the library.
9102 hardcode_minus_L=yes
9103 fi
9104 ;;
9105
9106 hpux11*)
9107 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9108 case $host_cpu in
9109 hppa*64*)
9110 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9111 ;;
9112 ia64*)
9113 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9114 ;;
9115 *)
9116 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9117 ;;
9118 esac
9119 else
9120 case $host_cpu in
9121 hppa*64*)
9122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9123 ;;
9124 ia64*)
9125 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9126 ;;
9127 *)
9128
9129 # Older versions of the 11.00 compiler do not understand -b yet
9130 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9132 $as_echo_n "checking if $CC understands -b... " >&6; }
9133 if ${lt_cv_prog_compiler__b+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 lt_cv_prog_compiler__b=no
9137 save_LDFLAGS="$LDFLAGS"
9138 LDFLAGS="$LDFLAGS -b"
9139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9141 # The linker can only warn and ignore the option if not recognized
9142 # So say no if there are warnings
9143 if test -s conftest.err; then
9144 # Append any errors to the config.log.
9145 cat conftest.err 1>&5
9146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148 if diff conftest.exp conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler__b=yes
9150 fi
9151 else
9152 lt_cv_prog_compiler__b=yes
9153 fi
9154 fi
9155 $RM -r conftest*
9156 LDFLAGS="$save_LDFLAGS"
9157
9158 fi
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9160 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9161
9162 if test x"$lt_cv_prog_compiler__b" = xyes; then
9163 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164 else
9165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9166 fi
9167
9168 ;;
9169 esac
9170 fi
9171 if test "$with_gnu_ld" = no; then
9172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9173 hardcode_libdir_separator=:
9174
9175 case $host_cpu in
9176 hppa*64*|ia64*)
9177 hardcode_direct=no
9178 hardcode_shlibpath_var=no
9179 ;;
9180 *)
9181 hardcode_direct=yes
9182 hardcode_direct_absolute=yes
9183 export_dynamic_flag_spec='${wl}-E'
9184
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L=yes
9188 ;;
9189 esac
9190 fi
9191 ;;
9192
9193 irix5* | irix6* | nonstopux*)
9194 if test "$GCC" = yes; then
9195 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'
9196 # Try to use the -exported_symbol ld option, if it does not
9197 # work, assume that -exports_file does not work either and
9198 # implicitly export all symbols.
9199 save_LDFLAGS="$LDFLAGS"
9200 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9201 if test x$gcc_no_link = xyes; then
9202 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9203 fi
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 int foo(void) {}
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 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'
9210
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 LDFLAGS="$save_LDFLAGS"
9215 else
9216 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'
9217 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'
9218 fi
9219 archive_cmds_need_lc='no'
9220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9221 hardcode_libdir_separator=:
9222 inherit_rpath=yes
9223 link_all_deplibs=yes
9224 ;;
9225
9226 netbsd*)
9227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9229 else
9230 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9231 fi
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 hardcode_direct=yes
9234 hardcode_shlibpath_var=no
9235 ;;
9236
9237 newsos6)
9238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9239 hardcode_direct=yes
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9242 hardcode_shlibpath_var=no
9243 ;;
9244
9245 *nto* | *qnx*)
9246 ;;
9247
9248 openbsd*)
9249 if test -f /usr/libexec/ld.so; then
9250 hardcode_direct=yes
9251 hardcode_shlibpath_var=no
9252 hardcode_direct_absolute=yes
9253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257 export_dynamic_flag_spec='${wl}-E'
9258 else
9259 case $host_os in
9260 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='-R$libdir'
9263 ;;
9264 *)
9265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9267 ;;
9268 esac
9269 fi
9270 else
9271 ld_shlibs=no
9272 fi
9273 ;;
9274
9275 os2*)
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 allow_undefined_flag=unsupported
9279 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'
9280 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9281 ;;
9282
9283 osf3*)
9284 if test "$GCC" = yes; then
9285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9286 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'
9287 else
9288 allow_undefined_flag=' -expect_unresolved \*'
9289 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'
9290 fi
9291 archive_cmds_need_lc='no'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 ;;
9295
9296 osf4* | osf5*) # as osf3* with the addition of -msym flag
9297 if test "$GCC" = yes; then
9298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299 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'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 else
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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'
9304 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~
9305 $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'
9306
9307 # Both c and cxx compiler support -rpath directly
9308 hardcode_libdir_flag_spec='-rpath $libdir'
9309 fi
9310 archive_cmds_need_lc='no'
9311 hardcode_libdir_separator=:
9312 ;;
9313
9314 solaris*)
9315 no_undefined_flag=' -z defs'
9316 if test "$GCC" = yes; then
9317 wlarc='${wl}'
9318 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9320 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9321 else
9322 case `$CC -V 2>&1` in
9323 *"Compilers 5.0"*)
9324 wlarc=''
9325 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9327 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9328 ;;
9329 *)
9330 wlarc='${wl}'
9331 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9334 ;;
9335 esac
9336 fi
9337 hardcode_libdir_flag_spec='-R$libdir'
9338 hardcode_shlibpath_var=no
9339 case $host_os in
9340 solaris2.[0-5] | solaris2.[0-5].*) ;;
9341 *)
9342 # The compiler driver will combine and reorder linker options,
9343 # but understands `-z linker_flag'. GCC discards it without `$wl',
9344 # but is careful enough not to reorder.
9345 # Supported since Solaris 2.6 (maybe 2.5.1?)
9346 if test "$GCC" = yes; then
9347 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9348 else
9349 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9350 fi
9351 ;;
9352 esac
9353 link_all_deplibs=yes
9354 ;;
9355
9356 sunos4*)
9357 if test "x$host_vendor" = xsequent; then
9358 # Use $CC to link under sequent, because it throws in some extra .o
9359 # files that make .init and .fini sections work.
9360 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9361 else
9362 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9363 fi
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_direct=yes
9366 hardcode_minus_L=yes
9367 hardcode_shlibpath_var=no
9368 ;;
9369
9370 sysv4)
9371 case $host_vendor in
9372 sni)
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_direct=yes # is this really true???
9375 ;;
9376 siemens)
9377 ## LD is ld it makes a PLAMLIB
9378 ## CC just makes a GrossModule.
9379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9380 reload_cmds='$CC -r -o $output$reload_objs'
9381 hardcode_direct=no
9382 ;;
9383 motorola)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9386 ;;
9387 esac
9388 runpath_var='LD_RUN_PATH'
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 sysv4.3*)
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_shlibpath_var=no
9395 export_dynamic_flag_spec='-Bexport'
9396 ;;
9397
9398 sysv4*MP*)
9399 if test -d /usr/nec; then
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_shlibpath_var=no
9402 runpath_var=LD_RUN_PATH
9403 hardcode_runpath_var=yes
9404 ld_shlibs=yes
9405 fi
9406 ;;
9407
9408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9409 no_undefined_flag='${wl}-z,text'
9410 archive_cmds_need_lc=no
9411 hardcode_shlibpath_var=no
9412 runpath_var='LD_RUN_PATH'
9413
9414 if test "$GCC" = yes; then
9415 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 else
9418 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 fi
9421 ;;
9422
9423 sysv5* | sco3.2v5* | sco5v6*)
9424 # Note: We can NOT use -z defs as we might desire, because we do not
9425 # link with -lc, and that would cause any symbols used from libc to
9426 # always be unresolved, which means just about no library would
9427 # ever link correctly. If we're not using GNU ld we use -z text
9428 # though, which does catch some bad symbols but isn't as heavy-handed
9429 # as -z defs.
9430 no_undefined_flag='${wl}-z,text'
9431 allow_undefined_flag='${wl}-z,nodefs'
9432 archive_cmds_need_lc=no
9433 hardcode_shlibpath_var=no
9434 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9435 hardcode_libdir_separator=':'
9436 link_all_deplibs=yes
9437 export_dynamic_flag_spec='${wl}-Bexport'
9438 runpath_var='LD_RUN_PATH'
9439
9440 if test "$GCC" = yes; then
9441 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443 else
9444 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 fi
9447 ;;
9448
9449 uts4*)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_libdir_flag_spec='-L$libdir'
9452 hardcode_shlibpath_var=no
9453 ;;
9454
9455 *)
9456 ld_shlibs=no
9457 ;;
9458 esac
9459
9460 if test x$host_vendor = xsni; then
9461 case $host in
9462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9463 export_dynamic_flag_spec='${wl}-Blargedynsym'
9464 ;;
9465 esac
9466 fi
9467 fi
9468
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9470 $as_echo "$ld_shlibs" >&6; }
9471 test "$ld_shlibs" = no && can_build_shared=no
9472
9473 with_gnu_ld=$with_gnu_ld
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489 #
9490 # Do we need to explicitly link libc?
9491 #
9492 case "x$archive_cmds_need_lc" in
9493 x|xyes)
9494 # Assume -lc should be added
9495 archive_cmds_need_lc=yes
9496
9497 if test "$enable_shared" = yes && test "$GCC" = yes; then
9498 case $archive_cmds in
9499 *'~'*)
9500 # FIXME: we may have to deal with multi-command sequences.
9501 ;;
9502 '$CC '*)
9503 # Test whether the compiler implicitly links with -lc since on some
9504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9505 # to ld, don't add -lc before -lgcc.
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9507 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9508 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 $RM conftest*
9512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9513
9514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9515 (eval $ac_compile) 2>&5
9516 ac_status=$?
9517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9518 test $ac_status = 0; } 2>conftest.err; then
9519 soname=conftest
9520 lib=conftest
9521 libobjs=conftest.$ac_objext
9522 deplibs=
9523 wl=$lt_prog_compiler_wl
9524 pic_flag=$lt_prog_compiler_pic
9525 compiler_flags=-v
9526 linker_flags=-v
9527 verstring=
9528 output_objdir=.
9529 libname=conftest
9530 lt_save_allow_undefined_flag=$allow_undefined_flag
9531 allow_undefined_flag=
9532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9533 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9534 ac_status=$?
9535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9536 test $ac_status = 0; }
9537 then
9538 lt_cv_archive_cmds_need_lc=no
9539 else
9540 lt_cv_archive_cmds_need_lc=yes
9541 fi
9542 allow_undefined_flag=$lt_save_allow_undefined_flag
9543 else
9544 cat conftest.err 1>&5
9545 fi
9546 $RM conftest*
9547
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9550 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9551 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9552 ;;
9553 esac
9554 fi
9555 ;;
9556 esac
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9715 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9716
9717 if test "$GCC" = yes; then
9718 case $host_os in
9719 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9720 *) lt_awk_arg="/^libraries:/" ;;
9721 esac
9722 case $host_os in
9723 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9724 *) lt_sed_strip_eq="s,=/,/,g" ;;
9725 esac
9726 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9727 case $lt_search_path_spec in
9728 *\;*)
9729 # if the path contains ";" then we assume it to be the separator
9730 # otherwise default to the standard path separator (i.e. ":") - it is
9731 # assumed that no part of a normal pathname contains ";" but that should
9732 # okay in the real world where ";" in dirpaths is itself problematic.
9733 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9734 ;;
9735 *)
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9737 ;;
9738 esac
9739 # Ok, now we have the path, separated by spaces, we can step through it
9740 # and add multilib dir if necessary.
9741 lt_tmp_lt_search_path_spec=
9742 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9743 for lt_sys_path in $lt_search_path_spec; do
9744 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9746 else
9747 test -d "$lt_sys_path" && \
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9749 fi
9750 done
9751 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9752 BEGIN {RS=" "; FS="/|\n";} {
9753 lt_foo="";
9754 lt_count=0;
9755 for (lt_i = NF; lt_i > 0; lt_i--) {
9756 if ($lt_i != "" && $lt_i != ".") {
9757 if ($lt_i == "..") {
9758 lt_count++;
9759 } else {
9760 if (lt_count == 0) {
9761 lt_foo="/" $lt_i lt_foo;
9762 } else {
9763 lt_count--;
9764 }
9765 }
9766 }
9767 }
9768 if (lt_foo != "") { lt_freq[lt_foo]++; }
9769 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9770 }'`
9771 # AWK program above erroneously prepends '/' to C:/dos/paths
9772 # for these hosts.
9773 case $host_os in
9774 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9775 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9776 esac
9777 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9778 else
9779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9780 fi
9781 library_names_spec=
9782 libname_spec='lib$name'
9783 soname_spec=
9784 shrext_cmds=".so"
9785 postinstall_cmds=
9786 postuninstall_cmds=
9787 finish_cmds=
9788 finish_eval=
9789 shlibpath_var=
9790 shlibpath_overrides_runpath=unknown
9791 version_type=none
9792 dynamic_linker="$host_os ld.so"
9793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9794 need_lib_prefix=unknown
9795 hardcode_into_libs=no
9796
9797 # when you set need_version to no, make sure it does not cause -set_version
9798 # flags to be left without arguments
9799 need_version=unknown
9800
9801 case $host_os in
9802 aix3*)
9803 version_type=linux
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9805 shlibpath_var=LIBPATH
9806
9807 # AIX 3 has no versioning support, so we append a major version to the name.
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 ;;
9810
9811 aix[4-9]*)
9812 version_type=linux
9813 need_lib_prefix=no
9814 need_version=no
9815 hardcode_into_libs=yes
9816 if test "$host_cpu" = ia64; then
9817 # AIX 5 supports IA64
9818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9819 shlibpath_var=LD_LIBRARY_PATH
9820 else
9821 # With GCC up to 2.95.x, collect2 would create an import file
9822 # for dependence libraries. The import file would start with
9823 # the line `#! .'. This would cause the generated library to
9824 # depend on `.', always an invalid library. This was fixed in
9825 # development snapshots of GCC prior to 3.0.
9826 case $host_os in
9827 aix4 | aix4.[01] | aix4.[01].*)
9828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9829 echo ' yes '
9830 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9831 :
9832 else
9833 can_build_shared=no
9834 fi
9835 ;;
9836 esac
9837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9838 # soname into executable. Probably we can add versioning support to
9839 # collect2, so additional links can be useful in future.
9840 if test "$aix_use_runtimelinking" = yes; then
9841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9842 # instead of lib<name>.a to let people know that these are not
9843 # typical AIX shared libraries.
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845 else
9846 # We preserve .a as extension for shared libraries through AIX4.2
9847 # and later when we are not doing run time linking.
9848 library_names_spec='${libname}${release}.a $libname.a'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 fi
9851 shlibpath_var=LIBPATH
9852 fi
9853 ;;
9854
9855 amigaos*)
9856 case $host_cpu in
9857 powerpc)
9858 # Since July 2007 AmigaOS4 officially supports .so libraries.
9859 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 ;;
9862 m68k)
9863 library_names_spec='$libname.ixlibrary $libname.a'
9864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9865 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'
9866 ;;
9867 esac
9868 ;;
9869
9870 beos*)
9871 library_names_spec='${libname}${shared_ext}'
9872 dynamic_linker="$host_os ld.so"
9873 shlibpath_var=LIBRARY_PATH
9874 ;;
9875
9876 bsdi[45]*)
9877 version_type=linux
9878 need_version=no
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9885 # the default ld.so.conf also contains /usr/contrib/lib and
9886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9887 # libtool to hard-code these into programs
9888 ;;
9889
9890 cygwin* | mingw* | pw32* | cegcc*)
9891 version_type=windows
9892 shrext_cmds=".dll"
9893 need_version=no
9894 need_lib_prefix=no
9895
9896 case $GCC,$host_os in
9897 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9898 library_names_spec='$libname.dll.a'
9899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9900 postinstall_cmds='base_file=`basename \${file}`~
9901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9902 dldir=$destdir/`dirname \$dlpath`~
9903 test -d \$dldir || mkdir -p \$dldir~
9904 $install_prog $dir/$dlname \$dldir/$dlname~
9905 chmod a+x \$dldir/$dlname~
9906 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9907 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9908 fi'
9909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9910 dlpath=$dir/\$dldll~
9911 $RM \$dlpath'
9912 shlibpath_overrides_runpath=yes
9913
9914 case $host_os in
9915 cygwin*)
9916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918
9919 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9920 ;;
9921 mingw* | cegcc*)
9922 # MinGW DLLs use traditional 'lib' prefix
9923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9924 ;;
9925 pw32*)
9926 # pw32 DLLs use 'pw' prefix rather than 'lib'
9927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 ;;
9929 esac
9930 ;;
9931
9932 *)
9933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9934 ;;
9935 esac
9936 dynamic_linker='Win32 ld.exe'
9937 # FIXME: first we should search . and the directory the executable is in
9938 shlibpath_var=PATH
9939 ;;
9940
9941 darwin* | rhapsody*)
9942 dynamic_linker="$host_os dyld"
9943 version_type=darwin
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9947 soname_spec='${libname}${release}${major}$shared_ext'
9948 shlibpath_overrides_runpath=yes
9949 shlibpath_var=DYLD_LIBRARY_PATH
9950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9951
9952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9954 ;;
9955
9956 dgux*)
9957 version_type=linux
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 ;;
9964
9965 freebsd* | dragonfly*)
9966 # DragonFly does not have aout. When/if they implement a new
9967 # versioning mechanism, adjust this.
9968 if test -x /usr/bin/objformat; then
9969 objformat=`/usr/bin/objformat`
9970 else
9971 case $host_os in
9972 freebsd[23].*) objformat=aout ;;
9973 *) objformat=elf ;;
9974 esac
9975 fi
9976 version_type=freebsd-$objformat
9977 case $version_type in
9978 freebsd-elf*)
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9980 need_version=no
9981 need_lib_prefix=no
9982 ;;
9983 freebsd-*)
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9985 need_version=yes
9986 ;;
9987 esac
9988 shlibpath_var=LD_LIBRARY_PATH
9989 case $host_os in
9990 freebsd2.*)
9991 shlibpath_overrides_runpath=yes
9992 ;;
9993 freebsd3.[01]* | freebsdelf3.[01]*)
9994 shlibpath_overrides_runpath=yes
9995 hardcode_into_libs=yes
9996 ;;
9997 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9998 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9999 shlibpath_overrides_runpath=no
10000 hardcode_into_libs=yes
10001 ;;
10002 *) # from 4.6 on, and DragonFly
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10005 ;;
10006 esac
10007 ;;
10008
10009 haiku*)
10010 version_type=linux
10011 need_lib_prefix=no
10012 need_version=no
10013 dynamic_linker="$host_os runtime_loader"
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes
10018 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10019 hardcode_into_libs=yes
10020 ;;
10021
10022 hpux9* | hpux10* | hpux11*)
10023 # Give a soname corresponding to the major version so that dld.sl refuses to
10024 # link against other versions.
10025 version_type=sunos
10026 need_lib_prefix=no
10027 need_version=no
10028 case $host_cpu in
10029 ia64*)
10030 shrext_cmds='.so'
10031 hardcode_into_libs=yes
10032 dynamic_linker="$host_os dld.so"
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 if test "X$HPUX_IA64_MODE" = X32; then
10038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10039 else
10040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10041 fi
10042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10043 ;;
10044 hppa*64*)
10045 shrext_cmds='.sl'
10046 hardcode_into_libs=yes
10047 dynamic_linker="$host_os dld.sl"
10048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10054 ;;
10055 *)
10056 shrext_cmds='.sl'
10057 dynamic_linker="$host_os dld.sl"
10058 shlibpath_var=SHLIB_PATH
10059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 ;;
10063 esac
10064 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10065 postinstall_cmds='chmod 555 $lib'
10066 # or fails outright, so override atomically:
10067 install_override_mode=555
10068 ;;
10069
10070 interix[3-9]*)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=no
10079 hardcode_into_libs=yes
10080 ;;
10081
10082 irix5* | irix6* | nonstopux*)
10083 case $host_os in
10084 nonstopux*) version_type=nonstopux ;;
10085 *)
10086 if test "$lt_cv_prog_gnu_ld" = yes; then
10087 version_type=linux
10088 else
10089 version_type=irix
10090 fi ;;
10091 esac
10092 need_lib_prefix=no
10093 need_version=no
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10096 case $host_os in
10097 irix5* | nonstopux*)
10098 libsuff= shlibsuff=
10099 ;;
10100 *)
10101 case $LD in # libtool.m4 will add one of these switches to LD
10102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10103 libsuff= shlibsuff= libmagic=32-bit;;
10104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10105 libsuff=32 shlibsuff=N32 libmagic=N32;;
10106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10108 *) libsuff= shlibsuff= libmagic=never-match;;
10109 esac
10110 ;;
10111 esac
10112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10113 shlibpath_overrides_runpath=no
10114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10116 hardcode_into_libs=yes
10117 ;;
10118
10119 # No shared lib support for Linux oldld, aout, or coff.
10120 linux*oldld* | linux*aout* | linux*coff*)
10121 dynamic_linker=no
10122 ;;
10123
10124 # This must be Linux ELF.
10125
10126 # uclinux* changes (here and below) have been submitted to the libtool
10127 # project, but have not yet been accepted: they are GCC-local changes
10128 # for the time being. (See
10129 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10130 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
10139
10140 # Some binutils ld are patched to set DT_RUNPATH
10141 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 lt_cv_shlibpath_overrides_runpath=no
10145 save_LDFLAGS=$LDFLAGS
10146 save_libdir=$libdir
10147 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10148 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10149 if test x$gcc_no_link = xyes; then
10150 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10151 fi
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10154
10155 int
10156 main ()
10157 {
10158
10159 ;
10160 return 0;
10161 }
10162 _ACEOF
10163 if ac_fn_c_try_link "$LINENO"; then :
10164 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10165 lt_cv_shlibpath_overrides_runpath=yes
10166 fi
10167 fi
10168 rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LDFLAGS=$save_LDFLAGS
10171 libdir=$save_libdir
10172
10173 fi
10174
10175 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10176
10177 # This implies no fast_install, which is unacceptable.
10178 # Some rework will be needed to allow for fast_install
10179 # before this can be enabled.
10180 hardcode_into_libs=yes
10181
10182 # Append ld.so.conf contents to the search path
10183 if test -f /etc/ld.so.conf; then
10184 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' ' '`
10185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10186 fi
10187
10188 # We used to test for /lib/ld.so.1 and disable shared libraries on
10189 # powerpc, because MkLinux only supported shared libraries with the
10190 # GNU dynamic linker. Since this was broken with cross compilers,
10191 # most powerpc-linux boxes support dynamic linking these days and
10192 # people can always --disable-shared, the test was removed, and we
10193 # assume the GNU/Linux dynamic linker is in use.
10194 dynamic_linker='GNU/Linux ld.so'
10195 ;;
10196
10197 netbsd*)
10198 version_type=sunos
10199 need_lib_prefix=no
10200 need_version=no
10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204 dynamic_linker='NetBSD (a.out) ld.so'
10205 else
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 dynamic_linker='NetBSD ld.elf_so'
10209 fi
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=yes
10212 hardcode_into_libs=yes
10213 ;;
10214
10215 newsos6)
10216 version_type=linux
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=yes
10220 ;;
10221
10222 *nto* | *qnx*)
10223 version_type=qnx
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=no
10230 hardcode_into_libs=yes
10231 dynamic_linker='ldqnx.so'
10232 ;;
10233
10234 openbsd*)
10235 version_type=sunos
10236 sys_lib_dlsearch_path_spec="/usr/lib"
10237 need_lib_prefix=no
10238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10239 case $host_os in
10240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10241 *) need_version=no ;;
10242 esac
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10247 case $host_os in
10248 openbsd2.[89] | openbsd2.[89].*)
10249 shlibpath_overrides_runpath=no
10250 ;;
10251 *)
10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 esac
10255 else
10256 shlibpath_overrides_runpath=yes
10257 fi
10258 ;;
10259
10260 os2*)
10261 libname_spec='$name'
10262 shrext_cmds=".dll"
10263 need_lib_prefix=no
10264 library_names_spec='$libname${shared_ext} $libname.a'
10265 dynamic_linker='OS/2 ld.exe'
10266 shlibpath_var=LIBPATH
10267 ;;
10268
10269 osf3* | osf4* | osf5*)
10270 version_type=osf
10271 need_lib_prefix=no
10272 need_version=no
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10278 ;;
10279
10280 rdos*)
10281 dynamic_linker=no
10282 ;;
10283
10284 solaris*)
10285 version_type=linux
10286 need_lib_prefix=no
10287 need_version=no
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10293 # ldd complains unless libraries are executable
10294 postinstall_cmds='chmod +x $lib'
10295 ;;
10296
10297 sunos4*)
10298 version_type=sunos
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 if test "$with_gnu_ld" = yes; then
10304 need_lib_prefix=no
10305 fi
10306 need_version=yes
10307 ;;
10308
10309 sysv4 | sysv4.3*)
10310 version_type=linux
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 case $host_vendor in
10315 sni)
10316 shlibpath_overrides_runpath=no
10317 need_lib_prefix=no
10318 runpath_var=LD_RUN_PATH
10319 ;;
10320 siemens)
10321 need_lib_prefix=no
10322 ;;
10323 motorola)
10324 need_lib_prefix=no
10325 need_version=no
10326 shlibpath_overrides_runpath=no
10327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10328 ;;
10329 esac
10330 ;;
10331
10332 sysv4*MP*)
10333 if test -d /usr/nec ;then
10334 version_type=linux
10335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10336 soname_spec='$libname${shared_ext}.$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 fi
10339 ;;
10340
10341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10342 version_type=freebsd-elf
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=yes
10349 hardcode_into_libs=yes
10350 if test "$with_gnu_ld" = yes; then
10351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10352 else
10353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10354 case $host_os in
10355 sco3.2v5*)
10356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10357 ;;
10358 esac
10359 fi
10360 sys_lib_dlsearch_path_spec='/usr/lib'
10361 ;;
10362
10363 tpf*)
10364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371 hardcode_into_libs=yes
10372 ;;
10373
10374 uts4*)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 ;;
10380
10381 # Shared libraries for VwWorks, >= 7 only at this stage
10382 # and (fpic) still incompatible with "large" code models
10383 # in a few configurations. Only for RTP mode in any case,
10384 # and upon explicit request at configure time.
10385 vxworks7*)
10386 dynamic_linker=no
10387 case ${with_multisubdir}-${enable_shared} in
10388 *large*)
10389 ;;
10390 *mrtp*-yes)
10391 version_type=linux
10392 need_lib_prefix=no
10393 need_version=no
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 dynamic_linker="$host_os module_loader"
10397 ;;
10398 esac
10399 ;;
10400 *)
10401 dynamic_linker=no
10402 ;;
10403 esac
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10405 $as_echo "$dynamic_linker" >&6; }
10406 test "$dynamic_linker" = no && can_build_shared=no
10407
10408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10409 if test "$GCC" = yes; then
10410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10411 fi
10412
10413 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10414 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10415 fi
10416 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10417 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10418 fi
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10512 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10513 hardcode_action=
10514 if test -n "$hardcode_libdir_flag_spec" ||
10515 test -n "$runpath_var" ||
10516 test "X$hardcode_automatic" = "Xyes" ; then
10517
10518 # We can hardcode non-existent directories.
10519 if test "$hardcode_direct" != no &&
10520 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10521 # have to relink, otherwise we might link with an installed library
10522 # when we should be linking with a yet-to-be-installed one
10523 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10524 test "$hardcode_minus_L" != no; then
10525 # Linking always hardcodes the temporary library directory.
10526 hardcode_action=relink
10527 else
10528 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10529 hardcode_action=immediate
10530 fi
10531 else
10532 # We cannot hardcode anything, or else we can only hardcode existing
10533 # directories.
10534 hardcode_action=unsupported
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10537 $as_echo "$hardcode_action" >&6; }
10538
10539 if test "$hardcode_action" = relink ||
10540 test "$inherit_rpath" = yes; then
10541 # Fast installation is not supported
10542 enable_fast_install=no
10543 elif test "$shlibpath_overrides_runpath" = yes ||
10544 test "$enable_shared" = no; then
10545 # Fast installation is not necessary
10546 enable_fast_install=needless
10547 fi
10548
10549
10550
10551
10552
10553
10554 if test "x$enable_dlopen" != xyes; then
10555 enable_dlopen=unknown
10556 enable_dlopen_self=unknown
10557 enable_dlopen_self_static=unknown
10558 else
10559 lt_cv_dlopen=no
10560 lt_cv_dlopen_libs=
10561
10562 case $host_os in
10563 beos*)
10564 lt_cv_dlopen="load_add_on"
10565 lt_cv_dlopen_libs=
10566 lt_cv_dlopen_self=yes
10567 ;;
10568
10569 mingw* | pw32* | cegcc*)
10570 lt_cv_dlopen="LoadLibrary"
10571 lt_cv_dlopen_libs=
10572 ;;
10573
10574 cygwin*)
10575 lt_cv_dlopen="dlopen"
10576 lt_cv_dlopen_libs=
10577 ;;
10578
10579 darwin*)
10580 # if libdl is installed we need to link against it
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10582 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10583 if ${ac_cv_lib_dl_dlopen+:} false; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 ac_check_lib_save_LIBS=$LIBS
10587 LIBS="-ldl $LIBS"
10588 if test x$gcc_no_link = xyes; then
10589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10590 fi
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char dlopen ();
10601 int
10602 main ()
10603 {
10604 return dlopen ();
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"; then :
10610 ac_cv_lib_dl_dlopen=yes
10611 else
10612 ac_cv_lib_dl_dlopen=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_lib_save_LIBS
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10620 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10622 else
10623
10624 lt_cv_dlopen="dyld"
10625 lt_cv_dlopen_libs=
10626 lt_cv_dlopen_self=yes
10627
10628 fi
10629
10630 ;;
10631
10632 *)
10633 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10634 if test "x$ac_cv_func_shl_load" = xyes; then :
10635 lt_cv_dlopen="shl_load"
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10638 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10639 if ${ac_cv_lib_dld_shl_load+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-ldld $LIBS"
10644 if test x$gcc_no_link = xyes; then
10645 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10646 fi
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649
10650 /* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10653 #ifdef __cplusplus
10654 extern "C"
10655 #endif
10656 char shl_load ();
10657 int
10658 main ()
10659 {
10660 return shl_load ();
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"; then :
10666 ac_cv_lib_dld_shl_load=yes
10667 else
10668 ac_cv_lib_dld_shl_load=no
10669 fi
10670 rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10675 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10676 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10677 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10678 else
10679 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10680 if test "x$ac_cv_func_dlopen" = xyes; then :
10681 lt_cv_dlopen="dlopen"
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10684 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10685 if ${ac_cv_lib_dl_dlopen+:} false; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-ldl $LIBS"
10690 if test x$gcc_no_link = xyes; then
10691 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10692 fi
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 return dlopen ();
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_dl_dlopen=yes
10713 else
10714 ac_cv_lib_dl_dlopen=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10722 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10727 if ${ac_cv_lib_svld_dlopen+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lsvld $LIBS"
10732 if test x$gcc_no_link = xyes; then
10733 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10734 fi
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char dlopen ();
10745 int
10746 main ()
10747 {
10748 return dlopen ();
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_svld_dlopen=yes
10755 else
10756 ac_cv_lib_svld_dlopen=no
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10761 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10763 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10764 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10768 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10769 if ${ac_cv_lib_dld_dld_link+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-ldld $LIBS"
10774 if test x$gcc_no_link = xyes; then
10775 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10776 fi
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 char dld_link ();
10787 int
10788 main ()
10789 {
10790 return dld_link ();
10791 ;
10792 return 0;
10793 }
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_lib_dld_dld_link=yes
10797 else
10798 ac_cv_lib_dld_dld_link=no
10799 fi
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10805 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10806 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10807 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10808 fi
10809
10810
10811 fi
10812
10813
10814 fi
10815
10816
10817 fi
10818
10819
10820 fi
10821
10822
10823 fi
10824
10825 ;;
10826 esac
10827
10828 if test "x$lt_cv_dlopen" != xno; then
10829 enable_dlopen=yes
10830 else
10831 enable_dlopen=no
10832 fi
10833
10834 case $lt_cv_dlopen in
10835 dlopen)
10836 save_CPPFLAGS="$CPPFLAGS"
10837 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10838
10839 save_LDFLAGS="$LDFLAGS"
10840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10841
10842 save_LIBS="$LIBS"
10843 LIBS="$lt_cv_dlopen_libs $LIBS"
10844
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10846 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10847 if ${lt_cv_dlopen_self+:} false; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 if test "$cross_compiling" = yes; then :
10851 lt_cv_dlopen_self=cross
10852 else
10853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10854 lt_status=$lt_dlunknown
10855 cat > conftest.$ac_ext <<_LT_EOF
10856 #line 10856 "configure"
10857 #include "confdefs.h"
10858
10859 #if HAVE_DLFCN_H
10860 #include <dlfcn.h>
10861 #endif
10862
10863 #include <stdio.h>
10864
10865 #ifdef RTLD_GLOBAL
10866 # define LT_DLGLOBAL RTLD_GLOBAL
10867 #else
10868 # ifdef DL_GLOBAL
10869 # define LT_DLGLOBAL DL_GLOBAL
10870 # else
10871 # define LT_DLGLOBAL 0
10872 # endif
10873 #endif
10874
10875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10876 find out it does not work in some platform. */
10877 #ifndef LT_DLLAZY_OR_NOW
10878 # ifdef RTLD_LAZY
10879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10880 # else
10881 # ifdef DL_LAZY
10882 # define LT_DLLAZY_OR_NOW DL_LAZY
10883 # else
10884 # ifdef RTLD_NOW
10885 # define LT_DLLAZY_OR_NOW RTLD_NOW
10886 # else
10887 # ifdef DL_NOW
10888 # define LT_DLLAZY_OR_NOW DL_NOW
10889 # else
10890 # define LT_DLLAZY_OR_NOW 0
10891 # endif
10892 # endif
10893 # endif
10894 # endif
10895 #endif
10896
10897 /* When -fvisbility=hidden is used, assume the code has been annotated
10898 correspondingly for the symbols needed. */
10899 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10900 void fnord () __attribute__((visibility("default")));
10901 #endif
10902
10903 void fnord () { int i=42; }
10904 int main ()
10905 {
10906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10907 int status = $lt_dlunknown;
10908
10909 if (self)
10910 {
10911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10912 else
10913 {
10914 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10915 else puts (dlerror ());
10916 }
10917 /* dlclose (self); */
10918 }
10919 else
10920 puts (dlerror ());
10921
10922 return status;
10923 }
10924 _LT_EOF
10925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10926 (eval $ac_link) 2>&5
10927 ac_status=$?
10928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10930 (./conftest; exit; ) >&5 2>/dev/null
10931 lt_status=$?
10932 case x$lt_status in
10933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10936 esac
10937 else :
10938 # compilation failed
10939 lt_cv_dlopen_self=no
10940 fi
10941 fi
10942 rm -fr conftest*
10943
10944
10945 fi
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10947 $as_echo "$lt_cv_dlopen_self" >&6; }
10948
10949 if test "x$lt_cv_dlopen_self" = xyes; then
10950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10952 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10953 if ${lt_cv_dlopen_self_static+:} false; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 if test "$cross_compiling" = yes; then :
10957 lt_cv_dlopen_self_static=cross
10958 else
10959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10960 lt_status=$lt_dlunknown
10961 cat > conftest.$ac_ext <<_LT_EOF
10962 #line 10962 "configure"
10963 #include "confdefs.h"
10964
10965 #if HAVE_DLFCN_H
10966 #include <dlfcn.h>
10967 #endif
10968
10969 #include <stdio.h>
10970
10971 #ifdef RTLD_GLOBAL
10972 # define LT_DLGLOBAL RTLD_GLOBAL
10973 #else
10974 # ifdef DL_GLOBAL
10975 # define LT_DLGLOBAL DL_GLOBAL
10976 # else
10977 # define LT_DLGLOBAL 0
10978 # endif
10979 #endif
10980
10981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10982 find out it does not work in some platform. */
10983 #ifndef LT_DLLAZY_OR_NOW
10984 # ifdef RTLD_LAZY
10985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10986 # else
10987 # ifdef DL_LAZY
10988 # define LT_DLLAZY_OR_NOW DL_LAZY
10989 # else
10990 # ifdef RTLD_NOW
10991 # define LT_DLLAZY_OR_NOW RTLD_NOW
10992 # else
10993 # ifdef DL_NOW
10994 # define LT_DLLAZY_OR_NOW DL_NOW
10995 # else
10996 # define LT_DLLAZY_OR_NOW 0
10997 # endif
10998 # endif
10999 # endif
11000 # endif
11001 #endif
11002
11003 /* When -fvisbility=hidden is used, assume the code has been annotated
11004 correspondingly for the symbols needed. */
11005 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11006 void fnord () __attribute__((visibility("default")));
11007 #endif
11008
11009 void fnord () { int i=42; }
11010 int main ()
11011 {
11012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11013 int status = $lt_dlunknown;
11014
11015 if (self)
11016 {
11017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11018 else
11019 {
11020 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11021 else puts (dlerror ());
11022 }
11023 /* dlclose (self); */
11024 }
11025 else
11026 puts (dlerror ());
11027
11028 return status;
11029 }
11030 _LT_EOF
11031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11032 (eval $ac_link) 2>&5
11033 ac_status=$?
11034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11035 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11036 (./conftest; exit; ) >&5 2>/dev/null
11037 lt_status=$?
11038 case x$lt_status in
11039 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11040 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11041 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11042 esac
11043 else :
11044 # compilation failed
11045 lt_cv_dlopen_self_static=no
11046 fi
11047 fi
11048 rm -fr conftest*
11049
11050
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11053 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11054 fi
11055
11056 CPPFLAGS="$save_CPPFLAGS"
11057 LDFLAGS="$save_LDFLAGS"
11058 LIBS="$save_LIBS"
11059 ;;
11060 esac
11061
11062 case $lt_cv_dlopen_self in
11063 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11064 *) enable_dlopen_self=unknown ;;
11065 esac
11066
11067 case $lt_cv_dlopen_self_static in
11068 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11069 *) enable_dlopen_self_static=unknown ;;
11070 esac
11071 fi
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089 striplib=
11090 old_striplib=
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11092 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11093 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11094 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11095 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11097 $as_echo "yes" >&6; }
11098 else
11099 # FIXME - insert some real tests, host_os isn't really good enough
11100 case $host_os in
11101 darwin*)
11102 if test -n "$STRIP" ; then
11103 striplib="$STRIP -x"
11104 old_striplib="$STRIP -S"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111 ;;
11112 *)
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11115 ;;
11116 esac
11117 fi
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130 # Report which library types will actually be built
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11132 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11134 $as_echo "$can_build_shared" >&6; }
11135
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11137 $as_echo_n "checking whether to build shared libraries... " >&6; }
11138 test "$can_build_shared" = "no" && enable_shared=no
11139
11140 # On AIX, shared libraries and static libraries use the same namespace, and
11141 # are all built from PIC.
11142 case $host_os in
11143 aix3*)
11144 test "$enable_shared" = yes && enable_static=no
11145 if test -n "$RANLIB"; then
11146 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11147 postinstall_cmds='$RANLIB $lib'
11148 fi
11149 ;;
11150
11151 aix[4-9]*)
11152 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11153 test "$enable_shared" = yes && enable_static=no
11154 fi
11155 ;;
11156 esac
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11158 $as_echo "$enable_shared" >&6; }
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11161 $as_echo_n "checking whether to build static libraries... " >&6; }
11162 # Make sure either enable_shared or enable_static is yes.
11163 test "$enable_shared" = yes || enable_static=yes
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11165 $as_echo "$enable_static" >&6; }
11166
11167
11168
11169
11170 fi
11171 ac_ext=c
11172 ac_cpp='$CPP $CPPFLAGS'
11173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11176
11177 CC="$lt_save_CC"
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191 ac_config_commands="$ac_config_commands libtool"
11192
11193
11194
11195
11196 # Only expand once:
11197
11198
11199
11200
11201
11202 case $host in
11203 *-cygwin* | *-mingw*)
11204 # 'host' will be top-level target in the case of a target lib,
11205 # we must compare to with_cross_host to decide if this is a native
11206 # or cross-compiler and select where to install dlls appropriately.
11207 if test -n "$with_cross_host" &&
11208 test x"$with_cross_host" != x"no"; then
11209 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11210 else
11211 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11212 fi
11213 ;;
11214 *)
11215 lt_host_flags=
11216 ;;
11217 esac
11218
11219
11220
11221
11222
11223
11224
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11226 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11227 # Check whether --enable-maintainer-mode was given.
11228 if test "${enable_maintainer_mode+set}" = set; then :
11229 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11230 else
11231 USE_MAINTAINER_MODE=no
11232 fi
11233
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11235 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11236 if test $USE_MAINTAINER_MODE = yes; then
11237 MAINTAINER_MODE_TRUE=
11238 MAINTAINER_MODE_FALSE='#'
11239 else
11240 MAINTAINER_MODE_TRUE='#'
11241 MAINTAINER_MODE_FALSE=
11242 fi
11243
11244 MAINT=$MAINTAINER_MODE_TRUE
11245
11246
11247
11248 ac_ext=c
11249 ac_cpp='$CPP $CPPFLAGS'
11250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11253
11254 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
11255 # We must force CC to /not/ be precious variables; otherwise
11256 # the wrong, non-multilib-adjusted value will be used in multilibs.
11257 # As a side effect, we have to subst CFLAGS ourselves.
11258
11259
11260
11261 ac_ext=c
11262 ac_cpp='$CPP $CPPFLAGS'
11263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11266 if test -n "$ac_tool_prefix"; then
11267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11268 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_prog_CC+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 if test -n "$CC"; then
11275 ac_cv_prog_CC="$CC" # Let the user override the test.
11276 else
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11287 fi
11288 done
11289 done
11290 IFS=$as_save_IFS
11291
11292 fi
11293 fi
11294 CC=$ac_cv_prog_CC
11295 if test -n "$CC"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11297 $as_echo "$CC" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 fi
11302
11303
11304 fi
11305 if test -z "$ac_cv_prog_CC"; then
11306 ac_ct_CC=$CC
11307 # Extract the first word of "gcc", so it can be a program name with args.
11308 set dummy gcc; ac_word=$2
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 $as_echo_n "checking for $ac_word... " >&6; }
11311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 if test -n "$ac_ct_CC"; then
11315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11316 else
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11319 do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_prog_ac_ct_CC="gcc"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11327 fi
11328 done
11329 done
11330 IFS=$as_save_IFS
11331
11332 fi
11333 fi
11334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11335 if test -n "$ac_ct_CC"; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11337 $as_echo "$ac_ct_CC" >&6; }
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11341 fi
11342
11343 if test "x$ac_ct_CC" = x; then
11344 CC=""
11345 else
11346 case $cross_compiling:$ac_tool_warned in
11347 yes:)
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11350 ac_tool_warned=yes ;;
11351 esac
11352 CC=$ac_ct_CC
11353 fi
11354 else
11355 CC="$ac_cv_prog_CC"
11356 fi
11357
11358 if test -z "$CC"; then
11359 if test -n "$ac_tool_prefix"; then
11360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11361 set dummy ${ac_tool_prefix}cc; ac_word=$2
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363 $as_echo_n "checking for $ac_word... " >&6; }
11364 if ${ac_cv_prog_CC+:} false; then :
11365 $as_echo_n "(cached) " >&6
11366 else
11367 if test -n "$CC"; then
11368 ac_cv_prog_CC="$CC" # Let the user override the test.
11369 else
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_CC="${ac_tool_prefix}cc"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381 done
11382 done
11383 IFS=$as_save_IFS
11384
11385 fi
11386 fi
11387 CC=$ac_cv_prog_CC
11388 if test -n "$CC"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11390 $as_echo "$CC" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395
11396
11397 fi
11398 fi
11399 if test -z "$CC"; then
11400 # Extract the first word of "cc", so it can be a program name with args.
11401 set dummy cc; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_prog_CC+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 if test -n "$CC"; then
11408 ac_cv_prog_CC="$CC" # Let the user override the test.
11409 else
11410 ac_prog_rejected=no
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11419 ac_prog_rejected=yes
11420 continue
11421 fi
11422 ac_cv_prog_CC="cc"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426 done
11427 done
11428 IFS=$as_save_IFS
11429
11430 if test $ac_prog_rejected = yes; then
11431 # We found a bogon in the path, so make sure we never use it.
11432 set dummy $ac_cv_prog_CC
11433 shift
11434 if test $# != 0; then
11435 # We chose a different compiler from the bogus one.
11436 # However, it has the same basename, so the bogon will be chosen
11437 # first if we set CC to just the basename; use the full file name.
11438 shift
11439 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11440 fi
11441 fi
11442 fi
11443 fi
11444 CC=$ac_cv_prog_CC
11445 if test -n "$CC"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11447 $as_echo "$CC" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 fi
11452
11453
11454 fi
11455 if test -z "$CC"; then
11456 if test -n "$ac_tool_prefix"; then
11457 for ac_prog in cl.exe
11458 do
11459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_prog_CC+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 if test -n "$CC"; then
11467 ac_cv_prog_CC="$CC" # Let the user override the test.
11468 else
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11471 do
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11479 fi
11480 done
11481 done
11482 IFS=$as_save_IFS
11483
11484 fi
11485 fi
11486 CC=$ac_cv_prog_CC
11487 if test -n "$CC"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11489 $as_echo "$CC" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 fi
11494
11495
11496 test -n "$CC" && break
11497 done
11498 fi
11499 if test -z "$CC"; then
11500 ac_ct_CC=$CC
11501 for ac_prog in cl.exe
11502 do
11503 # Extract the first word of "$ac_prog", so it can be a program name with args.
11504 set dummy $ac_prog; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 if test -n "$ac_ct_CC"; then
11511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11515 do
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_prog_ac_ct_CC="$ac_prog"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11523 fi
11524 done
11525 done
11526 IFS=$as_save_IFS
11527
11528 fi
11529 fi
11530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11531 if test -n "$ac_ct_CC"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11533 $as_echo "$ac_ct_CC" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 fi
11538
11539
11540 test -n "$ac_ct_CC" && break
11541 done
11542
11543 if test "x$ac_ct_CC" = x; then
11544 CC=""
11545 else
11546 case $cross_compiling:$ac_tool_warned in
11547 yes:)
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11550 ac_tool_warned=yes ;;
11551 esac
11552 CC=$ac_ct_CC
11553 fi
11554 fi
11555
11556 fi
11557
11558
11559 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11561 as_fn_error $? "no acceptable C compiler found in \$PATH
11562 See \`config.log' for more details" "$LINENO" 5; }
11563
11564 # Provide some information about the compiler.
11565 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11566 set X $ac_compile
11567 ac_compiler=$2
11568 for ac_option in --version -v -V -qversion; do
11569 { { ac_try="$ac_compiler $ac_option >&5"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573 esac
11574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11575 $as_echo "$ac_try_echo"; } >&5
11576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11577 ac_status=$?
11578 if test -s conftest.err; then
11579 sed '10a\
11580 ... rest of stderr output deleted ...
11581 10q' conftest.err >conftest.er1
11582 cat conftest.er1 >&5
11583 fi
11584 rm -f conftest.er1 conftest.err
11585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586 test $ac_status = 0; }
11587 done
11588
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11591 if ${ac_cv_c_compiler_gnu+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596
11597 int
11598 main ()
11599 {
11600 #ifndef __GNUC__
11601 choke me
11602 #endif
11603
11604 ;
11605 return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_compile "$LINENO"; then :
11609 ac_compiler_gnu=yes
11610 else
11611 ac_compiler_gnu=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11615
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11619 if test $ac_compiler_gnu = yes; then
11620 GCC=yes
11621 else
11622 GCC=
11623 fi
11624 ac_test_CFLAGS=${CFLAGS+set}
11625 ac_save_CFLAGS=$CFLAGS
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11628 if ${ac_cv_prog_cc_g+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 ac_save_c_werror_flag=$ac_c_werror_flag
11632 ac_c_werror_flag=yes
11633 ac_cv_prog_cc_g=no
11634 CFLAGS="-g"
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11637
11638 int
11639 main ()
11640 {
11641
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_compile "$LINENO"; then :
11647 ac_cv_prog_cc_g=yes
11648 else
11649 CFLAGS=""
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652
11653 int
11654 main ()
11655 {
11656
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_compile "$LINENO"; then :
11662
11663 else
11664 ac_c_werror_flag=$ac_save_c_werror_flag
11665 CFLAGS="-g"
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11668
11669 int
11670 main ()
11671 {
11672
11673 ;
11674 return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678 ac_cv_prog_cc_g=yes
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11685 ac_c_werror_flag=$ac_save_c_werror_flag
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11688 $as_echo "$ac_cv_prog_cc_g" >&6; }
11689 if test "$ac_test_CFLAGS" = set; then
11690 CFLAGS=$ac_save_CFLAGS
11691 elif test $ac_cv_prog_cc_g = yes; then
11692 if test "$GCC" = yes; then
11693 CFLAGS="-g -O2"
11694 else
11695 CFLAGS="-g"
11696 fi
11697 else
11698 if test "$GCC" = yes; then
11699 CFLAGS="-O2"
11700 else
11701 CFLAGS=
11702 fi
11703 fi
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11706 if ${ac_cv_prog_cc_c89+:} false; then :
11707 $as_echo_n "(cached) " >&6
11708 else
11709 ac_cv_prog_cc_c89=no
11710 ac_save_CC=$CC
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713 #include <stdarg.h>
11714 #include <stdio.h>
11715 struct stat;
11716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11717 struct buf { int x; };
11718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11719 static char *e (p, i)
11720 char **p;
11721 int i;
11722 {
11723 return p[i];
11724 }
11725 static char *f (char * (*g) (char **, int), char **p, ...)
11726 {
11727 char *s;
11728 va_list v;
11729 va_start (v,p);
11730 s = g (p, va_arg (v,int));
11731 va_end (v);
11732 return s;
11733 }
11734
11735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11736 function prototypes and stuff, but not '\xHH' hex character constants.
11737 These don't provoke an error unfortunately, instead are silently treated
11738 as 'x'. The following induces an error, until -std is added to get
11739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11740 array size at least. It's necessary to write '\x00'==0 to get something
11741 that's true only with -std. */
11742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11743
11744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11745 inside strings and character constants. */
11746 #define FOO(x) 'x'
11747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11748
11749 int test (int i, double x);
11750 struct s1 {int (*f) (int a);};
11751 struct s2 {int (*f) (double a);};
11752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11753 int argc;
11754 char **argv;
11755 int
11756 main ()
11757 {
11758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11759 ;
11760 return 0;
11761 }
11762 _ACEOF
11763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11765 do
11766 CC="$ac_save_CC $ac_arg"
11767 if ac_fn_c_try_compile "$LINENO"; then :
11768 ac_cv_prog_cc_c89=$ac_arg
11769 fi
11770 rm -f core conftest.err conftest.$ac_objext
11771 test "x$ac_cv_prog_cc_c89" != "xno" && break
11772 done
11773 rm -f conftest.$ac_ext
11774 CC=$ac_save_CC
11775
11776 fi
11777 # AC_CACHE_VAL
11778 case "x$ac_cv_prog_cc_c89" in
11779 x)
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11781 $as_echo "none needed" >&6; } ;;
11782 xno)
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11784 $as_echo "unsupported" >&6; } ;;
11785 *)
11786 CC="$CC $ac_cv_prog_cc_c89"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11789 esac
11790 if test "x$ac_cv_prog_cc_c89" != xno; then :
11791
11792 fi
11793
11794 ac_ext=c
11795 ac_cpp='$CPP $CPPFLAGS'
11796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799
11800 ac_ext=c
11801 ac_cpp='$CPP $CPPFLAGS'
11802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11806 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11807 if ${am_cv_prog_cc_c_o+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 int
11814 main ()
11815 {
11816
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 # Make sure it works both with $CC and with simple cc.
11822 # Following AC_PROG_CC_C_O, we do the test twice because some
11823 # compilers refuse to overwrite an existing .o file with -o,
11824 # though they will create one.
11825 am_cv_prog_cc_c_o=yes
11826 for am_i in 1 2; do
11827 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11828 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } \
11832 && test -f conftest2.$ac_objext; then
11833 : OK
11834 else
11835 am_cv_prog_cc_c_o=no
11836 break
11837 fi
11838 done
11839 rm -f core conftest*
11840 unset am_i
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11843 $as_echo "$am_cv_prog_cc_c_o" >&6; }
11844 if test "$am_cv_prog_cc_c_o" != yes; then
11845 # Losing compiler, so override with the script.
11846 # FIXME: It is wrong to rewrite CC.
11847 # But if we don't then we get into trouble of one sort or another.
11848 # A longer-term fix would be to have automake use am__CC in this case,
11849 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11850 CC="$am_aux_dir/compile $CC"
11851 fi
11852 ac_ext=c
11853 ac_cpp='$CPP $CPPFLAGS'
11854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11857
11858
11859 depcc="$CC" am_compiler_list=
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11862 $as_echo_n "checking dependency style of $depcc... " >&6; }
11863 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11867 # We make a subdir and do the tests there. Otherwise we can end up
11868 # making bogus files that we don't know about and never remove. For
11869 # instance it was reported that on HP-UX the gcc test will end up
11870 # making a dummy file named 'D' -- because '-MD' means "put the output
11871 # in D".
11872 rm -rf conftest.dir
11873 mkdir conftest.dir
11874 # Copy depcomp to subdir because otherwise we won't find it if we're
11875 # using a relative directory.
11876 cp "$am_depcomp" conftest.dir
11877 cd conftest.dir
11878 # We will build objects and dependencies in a subdirectory because
11879 # it helps to detect inapplicable dependency modes. For instance
11880 # both Tru64's cc and ICC support -MD to output dependencies as a
11881 # side effect of compilation, but ICC will put the dependencies in
11882 # the current directory while Tru64 will put them in the object
11883 # directory.
11884 mkdir sub
11885
11886 am_cv_CC_dependencies_compiler_type=none
11887 if test "$am_compiler_list" = ""; then
11888 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11889 fi
11890 am__universal=false
11891 case " $depcc " in #(
11892 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11893 esac
11894
11895 for depmode in $am_compiler_list; do
11896 # Setup a source with many dependencies, because some compilers
11897 # like to wrap large dependency lists on column 80 (with \), and
11898 # we should not choose a depcomp mode which is confused by this.
11899 #
11900 # We need to recreate these files for each test, as the compiler may
11901 # overwrite some of them when testing with obscure command lines.
11902 # This happens at least with the AIX C compiler.
11903 : > sub/conftest.c
11904 for i in 1 2 3 4 5 6; do
11905 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11906 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11907 # Solaris 10 /bin/sh.
11908 echo '/* dummy */' > sub/conftst$i.h
11909 done
11910 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11911
11912 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11913 # mode. It turns out that the SunPro C++ compiler does not properly
11914 # handle '-M -o', and we need to detect this. Also, some Intel
11915 # versions had trouble with output in subdirs.
11916 am__obj=sub/conftest.${OBJEXT-o}
11917 am__minus_obj="-o $am__obj"
11918 case $depmode in
11919 gcc)
11920 # This depmode causes a compiler race in universal mode.
11921 test "$am__universal" = false || continue
11922 ;;
11923 nosideeffect)
11924 # After this tag, mechanisms are not by side-effect, so they'll
11925 # only be used when explicitly requested.
11926 if test "x$enable_dependency_tracking" = xyes; then
11927 continue
11928 else
11929 break
11930 fi
11931 ;;
11932 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11933 # This compiler won't grok '-c -o', but also, the minuso test has
11934 # not run yet. These depmodes are late enough in the game, and
11935 # so weak that their functioning should not be impacted.
11936 am__obj=conftest.${OBJEXT-o}
11937 am__minus_obj=
11938 ;;
11939 none) break ;;
11940 esac
11941 if depmode=$depmode \
11942 source=sub/conftest.c object=$am__obj \
11943 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11944 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11945 >/dev/null 2>conftest.err &&
11946 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11948 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11950 # icc doesn't choke on unknown options, it will just issue warnings
11951 # or remarks (even with -Werror). So we grep stderr for any message
11952 # that says an option was ignored or not supported.
11953 # When given -MP, icc 7.0 and 7.1 complain thusly:
11954 # icc: Command line warning: ignoring option '-M'; no argument required
11955 # The diagnosis changed in icc 8.0:
11956 # icc: Command line remark: option '-MP' not supported
11957 if (grep 'ignoring option' conftest.err ||
11958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11959 am_cv_CC_dependencies_compiler_type=$depmode
11960 break
11961 fi
11962 fi
11963 done
11964
11965 cd ..
11966 rm -rf conftest.dir
11967 else
11968 am_cv_CC_dependencies_compiler_type=none
11969 fi
11970
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11973 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11975
11976 if
11977 test "x$enable_dependency_tracking" != xno \
11978 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11979 am__fastdepCC_TRUE=
11980 am__fastdepCC_FALSE='#'
11981 else
11982 am__fastdepCC_TRUE='#'
11983 am__fastdepCC_FALSE=
11984 fi
11985
11986
11987
11988
11989
11990
11991
11992
11993 if test "x$GCC" != "xyes"; then
11994 as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
11995 fi
11996 ac_ext=c
11997 ac_cpp='$CPP $CPPFLAGS'
11998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12002 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12003 # On Suns, sometimes $CPP names a directory.
12004 if test -n "$CPP" && test -d "$CPP"; then
12005 CPP=
12006 fi
12007 if test -z "$CPP"; then
12008 if ${ac_cv_prog_CPP+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 # Double quotes because CPP needs to be expanded
12012 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12013 do
12014 ac_preproc_ok=false
12015 for ac_c_preproc_warn_flag in '' yes
12016 do
12017 # Use a header file that comes with gcc, so configuring glibc
12018 # with a fresh cross-compiler works.
12019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12020 # <limits.h> exists even on freestanding compilers.
12021 # On the NeXT, cc -E runs the code through the compiler's parser,
12022 # not just through cpp. "Syntax error" is here to catch this case.
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 #ifdef __STDC__
12026 # include <limits.h>
12027 #else
12028 # include <assert.h>
12029 #endif
12030 Syntax error
12031 _ACEOF
12032 if ac_fn_c_try_cpp "$LINENO"; then :
12033
12034 else
12035 # Broken: fails on valid input.
12036 continue
12037 fi
12038 rm -f conftest.err conftest.i conftest.$ac_ext
12039
12040 # OK, works on sane cases. Now check whether nonexistent headers
12041 # can be detected and how.
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 #include <ac_nonexistent.h>
12045 _ACEOF
12046 if ac_fn_c_try_cpp "$LINENO"; then :
12047 # Broken: success on invalid input.
12048 continue
12049 else
12050 # Passes both tests.
12051 ac_preproc_ok=:
12052 break
12053 fi
12054 rm -f conftest.err conftest.i conftest.$ac_ext
12055
12056 done
12057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12058 rm -f conftest.i conftest.err conftest.$ac_ext
12059 if $ac_preproc_ok; then :
12060 break
12061 fi
12062
12063 done
12064 ac_cv_prog_CPP=$CPP
12065
12066 fi
12067 CPP=$ac_cv_prog_CPP
12068 else
12069 ac_cv_prog_CPP=$CPP
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12072 $as_echo "$CPP" >&6; }
12073 ac_preproc_ok=false
12074 for ac_c_preproc_warn_flag in '' yes
12075 do
12076 # Use a header file that comes with gcc, so configuring glibc
12077 # with a fresh cross-compiler works.
12078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 # <limits.h> exists even on freestanding compilers.
12080 # On the NeXT, cc -E runs the code through the compiler's parser,
12081 # not just through cpp. "Syntax error" is here to catch this case.
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #ifdef __STDC__
12085 # include <limits.h>
12086 #else
12087 # include <assert.h>
12088 #endif
12089 Syntax error
12090 _ACEOF
12091 if ac_fn_c_try_cpp "$LINENO"; then :
12092
12093 else
12094 # Broken: fails on valid input.
12095 continue
12096 fi
12097 rm -f conftest.err conftest.i conftest.$ac_ext
12098
12099 # OK, works on sane cases. Now check whether nonexistent headers
12100 # can be detected and how.
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12103 #include <ac_nonexistent.h>
12104 _ACEOF
12105 if ac_fn_c_try_cpp "$LINENO"; then :
12106 # Broken: success on invalid input.
12107 continue
12108 else
12109 # Passes both tests.
12110 ac_preproc_ok=:
12111 break
12112 fi
12113 rm -f conftest.err conftest.i conftest.$ac_ext
12114
12115 done
12116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12117 rm -f conftest.i conftest.err conftest.$ac_ext
12118 if $ac_preproc_ok; then :
12119
12120 else
12121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12123 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12124 See \`config.log' for more details" "$LINENO" 5; }
12125 fi
12126
12127 ac_ext=c
12128 ac_cpp='$CPP $CPPFLAGS'
12129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12132
12133
12134
12135 # Check whether --with-toolexeclibdir was given.
12136 if test "${with_toolexeclibdir+set}" = set; then :
12137 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
12138 /)
12139 ;;
12140 */)
12141 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
12142 ;;
12143 esac
12144 else
12145 with_toolexeclibdir=no
12146 fi
12147
12148
12149
12150 # Calculate toolexeclibdir
12151 # Also toolexecdir, though it's only used in toolexeclibdir
12152 case ${version_specific_libs} in
12153 yes)
12154 # Need the gcc compiler version to know where to install libraries
12155 # and header files if --enable-version-specific-runtime-libs option
12156 # is selected.
12157 toolexecdir='$(libdir)/gcc/$(target_alias)'
12158 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12159 ;;
12160 no)
12161 if test -n "$with_cross_host" &&
12162 test x"$with_cross_host" != x"no"; then
12163 # Install a library built with a cross compiler in tooldir, not libdir.
12164 toolexecdir='$(exec_prefix)/$(target_alias)'
12165 case ${with_toolexeclibdir} in
12166 no)
12167 toolexeclibdir='$(toolexecdir)/lib'
12168 ;;
12169 *)
12170 toolexeclibdir=${with_toolexeclibdir}
12171 ;;
12172 esac
12173 else
12174 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12175 toolexeclibdir='$(libdir)'
12176 fi
12177 multi_os_directory=`$CC -print-multi-os-directory`
12178 case $multi_os_directory in
12179 .) ;; # Avoid trailing /.
12180 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12181 esac
12182 ;;
12183 esac
12184
12185
12186
12187 for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
12188 do :
12189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12190 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12192 cat >>confdefs.h <<_ACEOF
12193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12194 _ACEOF
12195
12196 fi
12197
12198 done
12199
12200
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
12202 $as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
12203 if ${libgfor_cv_have_math_h_signgam+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206
12207 save_CFLAGS="$CFLAGS"
12208 CFLAGS="$CFLAGS -Werror"
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211
12212 #include <math.h>
12213 void foo(void) { signgam = 1; }
12214 int
12215 main ()
12216 {
12217
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223 libgfor_cv_have_math_h_signgam=yes
12224 else
12225 libgfor_cv_have_math_h_signgam=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 CFLAGS="$save_CFLAGS"
12229 fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
12231 $as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12232 if test $libgfor_cv_have_math_h_signgam = yes; then
12233
12234 $as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12235
12236 fi
12237
12238 # If available, sqrtl and cbrtl speed up the calculation -
12239 # but they are not required
12240 if test x$gcc_no_link != xyes; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12242 $as_echo_n "checking for sqrtl in -lm... " >&6; }
12243 if ${ac_cv_lib_m_sqrtl+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lm $LIBS"
12248 if test x$gcc_no_link = xyes; then
12249 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12250 fi
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char sqrtl ();
12261 int
12262 main ()
12263 {
12264 return sqrtl ();
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_lib_m_sqrtl=yes
12271 else
12272 ac_cv_lib_m_sqrtl=no
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12279 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12280 if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
12281
12282 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12283
12284 fi
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12287 $as_echo_n "checking for cbrtl in -lm... " >&6; }
12288 if ${ac_cv_lib_m_cbrtl+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lm $LIBS"
12293 if test x$gcc_no_link = xyes; then
12294 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12295 fi
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298
12299 /* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 char cbrtl ();
12306 int
12307 main ()
12308 {
12309 return cbrtl ();
12310 ;
12311 return 0;
12312 }
12313 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_lib_m_cbrtl=yes
12316 else
12317 ac_cv_lib_m_cbrtl=no
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12324 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12325 if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
12326
12327 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12328
12329 fi
12330
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12332 $as_echo_n "checking for feholdexcept in -lm... " >&6; }
12333 if ${ac_cv_lib_m_feholdexcept+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-lm $LIBS"
12338 if test x$gcc_no_link = xyes; then
12339 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12340 fi
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char feholdexcept ();
12351 int
12352 main ()
12353 {
12354 return feholdexcept ();
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360 ac_cv_lib_m_feholdexcept=yes
12361 else
12362 ac_cv_lib_m_feholdexcept=no
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12366 LIBS=$ac_check_lib_save_LIBS
12367 fi
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12369 $as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12370 if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
12371
12372 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12373
12374 fi
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12377 $as_echo_n "checking for fesetround in -lm... " >&6; }
12378 if ${ac_cv_lib_m_fesetround+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lm $LIBS"
12383 if test x$gcc_no_link = xyes; then
12384 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12385 fi
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char fesetround ();
12396 int
12397 main ()
12398 {
12399 return fesetround ();
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405 ac_cv_lib_m_fesetround=yes
12406 else
12407 ac_cv_lib_m_fesetround=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12414 $as_echo "$ac_cv_lib_m_fesetround" >&6; }
12415 if test "x$ac_cv_lib_m_fesetround" = xyes; then :
12416
12417 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12418
12419 fi
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12422 $as_echo_n "checking for feupdateenv in -lm... " >&6; }
12423 if ${ac_cv_lib_m_feupdateenv+:} false; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lm $LIBS"
12428 if test x$gcc_no_link = xyes; then
12429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12430 fi
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433
12434 /* Override any GCC internal prototype to avoid an error.
12435 Use char because int might match the return type of a GCC
12436 builtin and then its argument prototype would still apply. */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char feupdateenv ();
12441 int
12442 main ()
12443 {
12444 return feupdateenv ();
12445 ;
12446 return 0;
12447 }
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"; then :
12450 ac_cv_lib_m_feupdateenv=yes
12451 else
12452 ac_cv_lib_m_feupdateenv=no
12453 fi
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 LIBS=$ac_check_lib_save_LIBS
12457 fi
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12459 $as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12460 if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
12461
12462 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12463
12464 fi
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12467 $as_echo_n "checking for fesetenv in -lm... " >&6; }
12468 if ${ac_cv_lib_m_fesetenv+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-lm $LIBS"
12473 if test x$gcc_no_link = xyes; then
12474 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12475 fi
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char fesetenv ();
12486 int
12487 main ()
12488 {
12489 return fesetenv ();
12490 ;
12491 return 0;
12492 }
12493 _ACEOF
12494 if ac_fn_c_try_link "$LINENO"; then :
12495 ac_cv_lib_m_fesetenv=yes
12496 else
12497 ac_cv_lib_m_fesetenv=no
12498 fi
12499 rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12504 $as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12505 if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
12506
12507 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12508
12509 fi
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12512 $as_echo_n "checking for fetestexcept in -lm... " >&6; }
12513 if ${ac_cv_lib_m_fetestexcept+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lm $LIBS"
12518 if test x$gcc_no_link = xyes; then
12519 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12520 fi
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 char fetestexcept ();
12531 int
12532 main ()
12533 {
12534 return fetestexcept ();
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 ac_cv_lib_m_fetestexcept=yes
12541 else
12542 ac_cv_lib_m_fetestexcept=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546 LIBS=$ac_check_lib_save_LIBS
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12549 $as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12550 if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
12551
12552 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12553
12554 fi
12555
12556 for ac_func in strtoull
12557 do :
12558 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12559 if test "x$ac_cv_func_strtoull" = xyes; then :
12560 cat >>confdefs.h <<_ACEOF
12561 #define HAVE_STRTOULL 1
12562 _ACEOF
12563
12564 fi
12565 done
12566
12567 else
12568 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12569
12570 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12571
12572 fi
12573 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12574
12575 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12576
12577 fi
12578 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12579
12580 $as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12581
12582 fi
12583 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12584
12585 $as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12586
12587 fi
12588 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12589
12590 $as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12591
12592 fi
12593 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12594
12595 $as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12596
12597 fi
12598 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12599
12600 $as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12601
12602 fi
12603 fi
12604
12605 # Check for hidden visibility (copied from libssp).
12606 saved_CFLAGS="$CFLAGS"
12607 CFLAGS="$CFLAGS -Werror"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12609 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612
12613 void __attribute__((visibility ("hidden"))) bar (void) {}
12614 int
12615 main ()
12616 {
12617
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_compile "$LINENO"; then :
12623 quadmath_hidden=yes
12624 else
12625 quadmath_hidden=no
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12629 $as_echo "$quadmath_hidden" >&6; }
12630 if test x$quadmath_hidden = xyes; then
12631
12632 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12633
12634 fi
12635 CFLAGS="$saved_CFLAGS"
12636
12637 # Check for symbol versioning (copied from libssp).
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12639 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
12640 # Check whether --enable-symvers was given.
12641 if test "${enable_symvers+set}" = set; then :
12642 enableval=$enable_symvers; quadmath_use_symver=$enableval
12643 else
12644 quadmath_use_symver=yes
12645 fi
12646
12647 if test "x$quadmath_use_symver" != xno; then
12648 if test x$gcc_no_link = xyes; then
12649 # If we cannot link, we cannot build shared libraries, so do not use
12650 # symbol versioning.
12651 quadmath_use_symver=no
12652 else
12653 save_LDFLAGS="$LDFLAGS"
12654 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12655 cat > conftest.map <<EOF
12656 FOO_1.0 {
12657 global: *foo*; bar; local: *;
12658 };
12659 EOF
12660 if test x$gcc_no_link = xyes; then
12661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12662 fi
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 int foo;
12666 int
12667 main ()
12668 {
12669
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 quadmath_use_symver=gnu
12676 else
12677 quadmath_use_symver=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 if test x$quadmath_use_symver = xno; then
12682 case "$target_os" in
12683 solaris2*)
12684 LDFLAGS="$save_LDFLAGS"
12685 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12686 # Sun ld cannot handle wildcards and treats all entries as undefined.
12687 cat > conftest.map <<EOF
12688 FOO_1.0 {
12689 global: foo; local: *;
12690 };
12691 EOF
12692 if test x$gcc_no_link = xyes; then
12693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12694 fi
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 int foo;
12698 int
12699 main ()
12700 {
12701
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_link "$LINENO"; then :
12707 quadmath_use_symver=sun
12708 else
12709 quadmath_use_symver=no
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 ;;
12714 esac
12715 fi
12716 LDFLAGS="$save_LDFLAGS"
12717 fi
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12720 $as_echo "$quadmath_use_symver" >&6; }
12721 if test "x$quadmath_use_symver" != xno; then
12722 LIBQUAD_USE_SYMVER_TRUE=
12723 LIBQUAD_USE_SYMVER_FALSE='#'
12724 else
12725 LIBQUAD_USE_SYMVER_TRUE='#'
12726 LIBQUAD_USE_SYMVER_FALSE=
12727 fi
12728
12729 if test "x$quadmath_use_symver" = xgnu; then
12730 LIBQUAD_USE_SYMVER_GNU_TRUE=
12731 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12732 else
12733 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12734 LIBQUAD_USE_SYMVER_GNU_FALSE=
12735 fi
12736
12737 if test "x$quadmath_use_symver" = xsun; then
12738 LIBQUAD_USE_SYMVER_SUN_TRUE=
12739 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12740 else
12741 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12742 LIBQUAD_USE_SYMVER_SUN_FALSE=
12743 fi
12744
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12747 $as_echo_n "checking whether __float128 is supported... " >&6; }
12748 if ${libquad_cv_have_float128+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test x$gcc_no_link = xyes; then
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754
12755 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12756 typedef _Complex float __attribute__((mode(TC))) __complex128;
12757 #else
12758 typedef _Complex float __attribute__((mode(KC))) __complex128;
12759 #endif
12760
12761 __float128 foo (__float128 x)
12762 {
12763
12764 __complex128 z1, z2;
12765
12766 z1 = x;
12767 z2 = x / 7.Q;
12768 z2 /= z1;
12769
12770 return (__float128) z2;
12771 }
12772
12773 __float128 bar (__float128 x)
12774 {
12775 return x * __builtin_huge_valq ();
12776 }
12777
12778 int
12779 main ()
12780 {
12781
12782 foo (1.2Q);
12783 bar (1.2Q);
12784
12785 ;
12786 return 0;
12787 }
12788 _ACEOF
12789 if ac_fn_c_try_compile "$LINENO"; then :
12790
12791 libquad_cv_have_float128=yes
12792
12793 else
12794
12795 libquad_cv_have_float128=no
12796
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 else
12800 if test x$gcc_no_link = xyes; then
12801 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12802 fi
12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805
12806 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12807 typedef _Complex float __attribute__((mode(TC))) __complex128;
12808 #else
12809 typedef _Complex float __attribute__((mode(KC))) __complex128;
12810 #endif
12811
12812 __float128 foo (__float128 x)
12813 {
12814
12815 __complex128 z1, z2;
12816
12817 z1 = x;
12818 z2 = x / 7.Q;
12819 z2 /= z1;
12820
12821 return (__float128) z2;
12822 }
12823
12824 __float128 bar (__float128 x)
12825 {
12826 return x * __builtin_huge_valq ();
12827 }
12828
12829 int
12830 main ()
12831 {
12832
12833 foo (1.2Q);
12834 bar (1.2Q);
12835
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841
12842 libquad_cv_have_float128=yes
12843
12844 else
12845
12846 libquad_cv_have_float128=no
12847
12848 fi
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 fi
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12854 $as_echo "$libquad_cv_have_float128" >&6; }
12855 if test "x$libquad_cv_have_float128" = xyes; then
12856 BUILD_LIBQUADMATH_TRUE=
12857 BUILD_LIBQUADMATH_FALSE='#'
12858 else
12859 BUILD_LIBQUADMATH_TRUE='#'
12860 BUILD_LIBQUADMATH_FALSE=
12861 fi
12862
12863
12864 # Check for printf hook support.
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12866 $as_echo_n "checking whether printf hooks are supported... " >&6; }
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869
12870 #include <printf.h>
12871 #include <stdarg.h>
12872 #include <stdlib.h>
12873 extern void flt128_va (void *, va_list *);
12874 extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12875 extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12876
12877 int
12878 main ()
12879 {
12880
12881 int pa_flt128 = register_printf_type (flt128_va);
12882 int mod_Q = register_printf_modifier (L"Q");
12883 int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12884 struct printf_info info = { .user = -1 };
12885
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 quadmath_printf_hooks=yes
12892 else
12893 quadmath_printf_hooks=no
12894 fi
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12897 $as_echo "$quadmath_printf_hooks" >&6; }
12898 if test x$quadmath_printf_hooks = xyes; then
12899
12900 $as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12901
12902 fi
12903
12904 # Check for whether locale support for quadmath_snprintf or Q printf hooks
12905 # should be provided.
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12907 $as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 #include <langinfo.h>
12911 int
12912 main ()
12913 {
12914
12915 const char *s;
12916 s = nl_langinfo (DECIMAL_POINT);
12917 s = nl_langinfo (MON_DECIMAL_POINT);
12918 s = nl_langinfo (GROUPING);
12919 s = nl_langinfo (MON_GROUPING);
12920 s = nl_langinfo (THOUSANDS_SEP);
12921 s = nl_langinfo (MON_THOUSANDS_SEP);
12922 (void) s;
12923
12924 ;
12925 return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_compile "$LINENO"; then :
12929 quadmath_use_nl_langinfo=yes
12930 else
12931 quadmath_use_nl_langinfo=no
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12935 $as_echo "$quadmath_use_nl_langinfo" >&6; }
12936 if test x$quadmath_use_nl_langinfo = xyes; then
12937
12938 $as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12939
12940 fi
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12943 $as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 #include <langinfo.h>
12947 int
12948 main ()
12949 {
12950
12951 const char *s;
12952 s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12953 s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12954 s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12955 s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12956 (void) s;
12957
12958 ;
12959 return 0;
12960 }
12961 _ACEOF
12962 if ac_fn_c_try_compile "$LINENO"; then :
12963 quadmath_use_nl_langinfo_wc=yes
12964 else
12965 quadmath_use_nl_langinfo_wc=no
12966 fi
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12969 $as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12970 if test x$quadmath_use_nl_langinfo_wc = xyes; then
12971
12972 $as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12973
12974 fi
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12977 $as_echo_n "checking whether localeconv should be used... " >&6; }
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 #include <locale.h>
12981 int
12982 main ()
12983 {
12984
12985 const struct lconv *l = localeconv ();
12986 const char *s;
12987 s = l->decimal_point;
12988 s = l->mon_decimal_point;
12989 s = l->grouping;
12990 s = l->mon_grouping;
12991 s = l->thousands_sep;
12992 s = l->mon_thousands_sep;
12993 (void) s;
12994
12995 ;
12996 return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000 quadmath_use_localeconv=yes
13001 else
13002 quadmath_use_localeconv=no
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
13006 $as_echo "$quadmath_use_localeconv" >&6; }
13007 if test x$quadmath_use_localeconv = xyes; then
13008
13009 $as_echo "#define USE_LOCALECONV 1" >>confdefs.h
13010
13011 fi
13012
13013 # Check for whether i18n number rewriting support for quadmath_snprintf
13014 # or Q printf hooks should be provided.
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
13016 $as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 #include <langinfo.h>
13020 #include <limits.h>
13021 #include <string.h>
13022 #include <wchar.h>
13023 #include <wctype.h>
13024 int
13025 main ()
13026 {
13027
13028 const char *s;
13029 char decimal[MB_LEN_MAX];
13030 wctrans_t map = wctrans ("to_outpunct");
13031 wint_t wdecimal = towctrans (L'.', map);
13032 mbstate_t state;
13033 memset (&state, '\0', sizeof (state));
13034 wcrtomb (decimal, wdecimal, &state);
13035 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
13036 s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
13037 s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
13038 (void) s;
13039
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_c_try_compile "$LINENO"; then :
13045 quadmath_use_i18n_number_h=yes
13046 else
13047 quadmath_use_i18n_number_h=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
13051 $as_echo "$quadmath_use_i18n_number_h" >&6; }
13052 if test x$quadmath_use_i18n_number_h = xyes; then
13053
13054 $as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
13055
13056 fi
13057
13058 # Add CET specific flags if CET is enabled
13059 # Check whether --enable-cet was given.
13060 if test "${enable_cet+set}" = set; then :
13061 enableval=$enable_cet;
13062 case "$enableval" in
13063 yes|no|auto) ;;
13064 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
13065 esac
13066
13067 else
13068 enable_cet=auto
13069 fi
13070
13071
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
13073 $as_echo_n "checking for CET support... " >&6; }
13074
13075 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
13076 case "$host" in
13077 i[34567]86-*-linux* | x86_64-*-linux*)
13078 case "$enable_cet" in
13079 auto)
13080 # Check if target supports multi-byte NOPs
13081 # and if compiler and assembler support CET insn.
13082 cet_save_CFLAGS="$CFLAGS"
13083 CFLAGS="$CFLAGS -fcf-protection"
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086
13087 int
13088 main ()
13089 {
13090
13091 #if !defined(__SSE2__)
13092 #error target does not support multi-byte NOPs
13093 #else
13094 asm ("setssbsy");
13095 #endif
13096
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_compile "$LINENO"; then :
13102 enable_cet=yes
13103 else
13104 enable_cet=no
13105 fi
13106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13107 CFLAGS="$cet_save_CFLAGS"
13108 ;;
13109 yes)
13110 # Check if assembler supports CET.
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113
13114 int
13115 main ()
13116 {
13117 asm ("setssbsy");
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123
13124 else
13125 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 ;;
13129 esac
13130 ;;
13131 *)
13132 enable_cet=no
13133 ;;
13134 esac
13135 if test x$enable_cet = xyes; then
13136 CET_FLAGS="-fcf-protection -mshstk"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138 $as_echo "yes" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142 fi
13143
13144 XCFLAGS="$XCFLAGS $CET_FLAGS"
13145
13146 case x$target in
13147 xpowerpc64le*-linux*)
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 #if __SIZEOF_LONG_DOUBLE__ != 16
13151 #error long double is double
13152 #endif
13153 int
13154 main ()
13155 {
13156 (void) 0;
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_cpp "$LINENO"; then :
13162 XCFLAGS="$XCFLAGS -mno-gnu-attribute"
13163 fi
13164 rm -f conftest.err conftest.i conftest.$ac_ext
13165 ;;
13166 *)
13167 ;;
13168 esac
13169
13170
13171 cat >confcache <<\_ACEOF
13172 # This file is a shell script that caches the results of configure
13173 # tests run on this system so they can be shared between configure
13174 # scripts and configure runs, see configure's option --config-cache.
13175 # It is not useful on other systems. If it contains results you don't
13176 # want to keep, you may remove or edit it.
13177 #
13178 # config.status only pays attention to the cache file if you give it
13179 # the --recheck option to rerun configure.
13180 #
13181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13183 # following values.
13184
13185 _ACEOF
13186
13187 # The following way of writing the cache mishandles newlines in values,
13188 # but we know of no workaround that is simple, portable, and efficient.
13189 # So, we kill variables containing newlines.
13190 # Ultrix sh set writes to stderr and can't be redirected directly,
13191 # and sets the high bit in the cache file unless we assign to the vars.
13192 (
13193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13194 eval ac_val=\$$ac_var
13195 case $ac_val in #(
13196 *${as_nl}*)
13197 case $ac_var in #(
13198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13200 esac
13201 case $ac_var in #(
13202 _ | IFS | as_nl) ;; #(
13203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13204 *) { eval $ac_var=; unset $ac_var;} ;;
13205 esac ;;
13206 esac
13207 done
13208
13209 (set) 2>&1 |
13210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13211 *${as_nl}ac_space=\ *)
13212 # `set' does not quote correctly, so add quotes: double-quote
13213 # substitution turns \\\\ into \\, and sed turns \\ into \.
13214 sed -n \
13215 "s/'/'\\\\''/g;
13216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13217 ;; #(
13218 *)
13219 # `set' quotes correctly as required by POSIX, so do not add quotes.
13220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13221 ;;
13222 esac |
13223 sort
13224 ) |
13225 sed '
13226 /^ac_cv_env_/b end
13227 t clear
13228 :clear
13229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13230 t end
13231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13232 :end' >>confcache
13233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13234 if test -w "$cache_file"; then
13235 if test "x$cache_file" != "x/dev/null"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13237 $as_echo "$as_me: updating cache $cache_file" >&6;}
13238 if test ! -f "$cache_file" || test -h "$cache_file"; then
13239 cat confcache >"$cache_file"
13240 else
13241 case $cache_file in #(
13242 */* | ?:*)
13243 mv -f confcache "$cache_file"$$ &&
13244 mv -f "$cache_file"$$ "$cache_file" ;; #(
13245 *)
13246 mv -f confcache "$cache_file" ;;
13247 esac
13248 fi
13249 fi
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13252 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13253 fi
13254 fi
13255 rm -f confcache
13256
13257 if test ${multilib} = yes; then
13258 multilib_arg="--enable-multilib"
13259 else
13260 multilib_arg=
13261 fi
13262
13263
13264 # We would like our source tree to be readonly. However when releases or
13265 # pre-releases are generated, the flex/bison generated files as well as the
13266 # various formats of manuals need to be included along with the rest of the
13267 # sources. Therefore we have --enable-generated-files-in-srcdir to do
13268 # just that.
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
13270 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
13271 # Check whether --enable-generated-files-in-srcdir was given.
13272 if test "${enable_generated_files_in_srcdir+set}" = set; then :
13273 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13274 yes) enable_generated_files_in_srcdir=yes ;;
13275 no) enable_generated_files_in_srcdir=no ;;
13276 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13277 esac
13278 else
13279 enable_generated_files_in_srcdir=no
13280 fi
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13283 $as_echo "$enable_generated_files_in_srcdir" >&6; }
13284 if test "$enable_generated_files_in_srcdir" = yes; then
13285 GENINSRC_TRUE=
13286 GENINSRC_FALSE='#'
13287 else
13288 GENINSRC_TRUE='#'
13289 GENINSRC_FALSE=
13290 fi
13291
13292
13293 # Determine what GCC version number to use in filesystem paths.
13294
13295 get_gcc_base_ver="cat"
13296
13297 # Check whether --with-gcc-major-version-only was given.
13298 if test "${with_gcc_major_version_only+set}" = set; then :
13299 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13300 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13301 fi
13302
13303 fi
13304
13305
13306
13307
13308 ac_config_files="$ac_config_files Makefile"
13309
13310 cat >confcache <<\_ACEOF
13311 # This file is a shell script that caches the results of configure
13312 # tests run on this system so they can be shared between configure
13313 # scripts and configure runs, see configure's option --config-cache.
13314 # It is not useful on other systems. If it contains results you don't
13315 # want to keep, you may remove or edit it.
13316 #
13317 # config.status only pays attention to the cache file if you give it
13318 # the --recheck option to rerun configure.
13319 #
13320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13322 # following values.
13323
13324 _ACEOF
13325
13326 # The following way of writing the cache mishandles newlines in values,
13327 # but we know of no workaround that is simple, portable, and efficient.
13328 # So, we kill variables containing newlines.
13329 # Ultrix sh set writes to stderr and can't be redirected directly,
13330 # and sets the high bit in the cache file unless we assign to the vars.
13331 (
13332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13333 eval ac_val=\$$ac_var
13334 case $ac_val in #(
13335 *${as_nl}*)
13336 case $ac_var in #(
13337 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13338 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13339 esac
13340 case $ac_var in #(
13341 _ | IFS | as_nl) ;; #(
13342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13343 *) { eval $ac_var=; unset $ac_var;} ;;
13344 esac ;;
13345 esac
13346 done
13347
13348 (set) 2>&1 |
13349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13350 *${as_nl}ac_space=\ *)
13351 # `set' does not quote correctly, so add quotes: double-quote
13352 # substitution turns \\\\ into \\, and sed turns \\ into \.
13353 sed -n \
13354 "s/'/'\\\\''/g;
13355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13356 ;; #(
13357 *)
13358 # `set' quotes correctly as required by POSIX, so do not add quotes.
13359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13360 ;;
13361 esac |
13362 sort
13363 ) |
13364 sed '
13365 /^ac_cv_env_/b end
13366 t clear
13367 :clear
13368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13369 t end
13370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13371 :end' >>confcache
13372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13373 if test -w "$cache_file"; then
13374 if test "x$cache_file" != "x/dev/null"; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13376 $as_echo "$as_me: updating cache $cache_file" >&6;}
13377 if test ! -f "$cache_file" || test -h "$cache_file"; then
13378 cat confcache >"$cache_file"
13379 else
13380 case $cache_file in #(
13381 */* | ?:*)
13382 mv -f confcache "$cache_file"$$ &&
13383 mv -f "$cache_file"$$ "$cache_file" ;; #(
13384 *)
13385 mv -f confcache "$cache_file" ;;
13386 esac
13387 fi
13388 fi
13389 else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13391 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13392 fi
13393 fi
13394 rm -f confcache
13395
13396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13397 # Let make expand exec_prefix.
13398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13399
13400 DEFS=-DHAVE_CONFIG_H
13401
13402 ac_libobjs=
13403 ac_ltlibobjs=
13404 U=
13405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13406 # 1. Remove the extension, and $U if already installed.
13407 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13408 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13409 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13410 # will be set to the directory where LIBOBJS objects are built.
13411 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13412 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13413 done
13414 LIBOBJS=$ac_libobjs
13415
13416 LTLIBOBJS=$ac_ltlibobjs
13417
13418
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13420 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13421 if test -n "$am_sleep_pid"; then
13422 # Hide warnings about reused PIDs.
13423 wait $am_sleep_pid 2>/dev/null
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13426 $as_echo "done" >&6; }
13427 if test -n "$EXEEXT"; then
13428 am__EXEEXT_TRUE=
13429 am__EXEEXT_FALSE='#'
13430 else
13431 am__EXEEXT_TRUE='#'
13432 am__EXEEXT_FALSE=
13433 fi
13434
13435 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13436 as_fn_error $? "conditional \"AMDEP\" was never defined.
13437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438 fi
13439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13440 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13442 fi
13443 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13444 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
13445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13446 fi
13447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13448 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13450 fi
13451 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13452 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13454 fi
13455 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13456 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13458 fi
13459 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13460 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13462 fi
13463 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13464 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13466 fi
13467 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13468 as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
13469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13470 fi
13471 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13472 as_fn_error $? "conditional \"GENINSRC\" was never defined.
13473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13474 fi
13475
13476 : "${CONFIG_STATUS=./config.status}"
13477 ac_write_fail=0
13478 ac_clean_files_save=$ac_clean_files
13479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13481 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13482 as_write_fail=0
13483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13484 #! $SHELL
13485 # Generated by $as_me.
13486 # Run this file to recreate the current configuration.
13487 # Compiler output produced by configure, useful for debugging
13488 # configure, is in config.log if it exists.
13489
13490 debug=false
13491 ac_cs_recheck=false
13492 ac_cs_silent=false
13493
13494 SHELL=\${CONFIG_SHELL-$SHELL}
13495 export SHELL
13496 _ASEOF
13497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13498 ## -------------------- ##
13499 ## M4sh Initialization. ##
13500 ## -------------------- ##
13501
13502 # Be more Bourne compatible
13503 DUALCASE=1; export DUALCASE # for MKS sh
13504 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13505 emulate sh
13506 NULLCMD=:
13507 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13508 # is contrary to our usage. Disable this feature.
13509 alias -g '${1+"$@"}'='"$@"'
13510 setopt NO_GLOB_SUBST
13511 else
13512 case `(set -o) 2>/dev/null` in #(
13513 *posix*) :
13514 set -o posix ;; #(
13515 *) :
13516 ;;
13517 esac
13518 fi
13519
13520
13521 as_nl='
13522 '
13523 export as_nl
13524 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13525 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13528 # Prefer a ksh shell builtin over an external printf program on Solaris,
13529 # but without wasting forks for bash or zsh.
13530 if test -z "$BASH_VERSION$ZSH_VERSION" \
13531 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='print -r --'
13533 as_echo_n='print -rn --'
13534 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13535 as_echo='printf %s\n'
13536 as_echo_n='printf %s'
13537 else
13538 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13539 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13540 as_echo_n='/usr/ucb/echo -n'
13541 else
13542 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13543 as_echo_n_body='eval
13544 arg=$1;
13545 case $arg in #(
13546 *"$as_nl"*)
13547 expr "X$arg" : "X\\(.*\\)$as_nl";
13548 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13549 esac;
13550 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13551 '
13552 export as_echo_n_body
13553 as_echo_n='sh -c $as_echo_n_body as_echo'
13554 fi
13555 export as_echo_body
13556 as_echo='sh -c $as_echo_body as_echo'
13557 fi
13558
13559 # The user is always right.
13560 if test "${PATH_SEPARATOR+set}" != set; then
13561 PATH_SEPARATOR=:
13562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13564 PATH_SEPARATOR=';'
13565 }
13566 fi
13567
13568
13569 # IFS
13570 # We need space, tab and new line, in precisely that order. Quoting is
13571 # there to prevent editors from complaining about space-tab.
13572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13573 # splitting by setting IFS to empty value.)
13574 IFS=" "" $as_nl"
13575
13576 # Find who we are. Look in the path if we contain no directory separator.
13577 as_myself=
13578 case $0 in #((
13579 *[\\/]* ) as_myself=$0 ;;
13580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583 IFS=$as_save_IFS
13584 test -z "$as_dir" && as_dir=.
13585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13586 done
13587 IFS=$as_save_IFS
13588
13589 ;;
13590 esac
13591 # We did not find ourselves, most probably we were run as `sh COMMAND'
13592 # in which case we are not to be found in the path.
13593 if test "x$as_myself" = x; then
13594 as_myself=$0
13595 fi
13596 if test ! -f "$as_myself"; then
13597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13598 exit 1
13599 fi
13600
13601 # Unset variables that we do not need and which cause bugs (e.g. in
13602 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13603 # suppresses any "Segmentation fault" message there. '((' could
13604 # trigger a bug in pdksh 5.2.14.
13605 for as_var in BASH_ENV ENV MAIL MAILPATH
13606 do eval test x\${$as_var+set} = xset \
13607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13608 done
13609 PS1='$ '
13610 PS2='> '
13611 PS4='+ '
13612
13613 # NLS nuisances.
13614 LC_ALL=C
13615 export LC_ALL
13616 LANGUAGE=C
13617 export LANGUAGE
13618
13619 # CDPATH.
13620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13621
13622
13623 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13624 # ----------------------------------------
13625 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13626 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13627 # script with STATUS, using 1 if that was 0.
13628 as_fn_error ()
13629 {
13630 as_status=$1; test $as_status -eq 0 && as_status=1
13631 if test "$4"; then
13632 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13634 fi
13635 $as_echo "$as_me: error: $2" >&2
13636 as_fn_exit $as_status
13637 } # as_fn_error
13638
13639
13640 # as_fn_set_status STATUS
13641 # -----------------------
13642 # Set $? to STATUS, without forking.
13643 as_fn_set_status ()
13644 {
13645 return $1
13646 } # as_fn_set_status
13647
13648 # as_fn_exit STATUS
13649 # -----------------
13650 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13651 as_fn_exit ()
13652 {
13653 set +e
13654 as_fn_set_status $1
13655 exit $1
13656 } # as_fn_exit
13657
13658 # as_fn_unset VAR
13659 # ---------------
13660 # Portably unset VAR.
13661 as_fn_unset ()
13662 {
13663 { eval $1=; unset $1;}
13664 }
13665 as_unset=as_fn_unset
13666 # as_fn_append VAR VALUE
13667 # ----------------------
13668 # Append the text in VALUE to the end of the definition contained in VAR. Take
13669 # advantage of any shell optimizations that allow amortized linear growth over
13670 # repeated appends, instead of the typical quadratic growth present in naive
13671 # implementations.
13672 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13673 eval 'as_fn_append ()
13674 {
13675 eval $1+=\$2
13676 }'
13677 else
13678 as_fn_append ()
13679 {
13680 eval $1=\$$1\$2
13681 }
13682 fi # as_fn_append
13683
13684 # as_fn_arith ARG...
13685 # ------------------
13686 # Perform arithmetic evaluation on the ARGs, and store the result in the
13687 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13688 # must be portable across $(()) and expr.
13689 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13690 eval 'as_fn_arith ()
13691 {
13692 as_val=$(( $* ))
13693 }'
13694 else
13695 as_fn_arith ()
13696 {
13697 as_val=`expr "$@" || test $? -eq 1`
13698 }
13699 fi # as_fn_arith
13700
13701
13702 if expr a : '\(a\)' >/dev/null 2>&1 &&
13703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13704 as_expr=expr
13705 else
13706 as_expr=false
13707 fi
13708
13709 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13710 as_basename=basename
13711 else
13712 as_basename=false
13713 fi
13714
13715 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13716 as_dirname=dirname
13717 else
13718 as_dirname=false
13719 fi
13720
13721 as_me=`$as_basename -- "$0" ||
13722 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13723 X"$0" : 'X\(//\)$' \| \
13724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13725 $as_echo X/"$0" |
13726 sed '/^.*\/\([^/][^/]*\)\/*$/{
13727 s//\1/
13728 q
13729 }
13730 /^X\/\(\/\/\)$/{
13731 s//\1/
13732 q
13733 }
13734 /^X\/\(\/\).*/{
13735 s//\1/
13736 q
13737 }
13738 s/.*/./; q'`
13739
13740 # Avoid depending upon Character Ranges.
13741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13744 as_cr_digits='0123456789'
13745 as_cr_alnum=$as_cr_Letters$as_cr_digits
13746
13747 ECHO_C= ECHO_N= ECHO_T=
13748 case `echo -n x` in #(((((
13749 -n*)
13750 case `echo 'xy\c'` in
13751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13752 xy) ECHO_C='\c';;
13753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13754 ECHO_T=' ';;
13755 esac;;
13756 *)
13757 ECHO_N='-n';;
13758 esac
13759
13760 rm -f conf$$ conf$$.exe conf$$.file
13761 if test -d conf$$.dir; then
13762 rm -f conf$$.dir/conf$$.file
13763 else
13764 rm -f conf$$.dir
13765 mkdir conf$$.dir 2>/dev/null
13766 fi
13767 if (echo >conf$$.file) 2>/dev/null; then
13768 if ln -s conf$$.file conf$$ 2>/dev/null; then
13769 as_ln_s='ln -s'
13770 # ... but there are two gotchas:
13771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13773 # In both cases, we have to default to `cp -pR'.
13774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13775 as_ln_s='cp -pR'
13776 elif ln conf$$.file conf$$ 2>/dev/null; then
13777 as_ln_s=ln
13778 else
13779 as_ln_s='cp -pR'
13780 fi
13781 else
13782 as_ln_s='cp -pR'
13783 fi
13784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13785 rmdir conf$$.dir 2>/dev/null
13786
13787
13788 # as_fn_mkdir_p
13789 # -------------
13790 # Create "$as_dir" as a directory, including parents if necessary.
13791 as_fn_mkdir_p ()
13792 {
13793
13794 case $as_dir in #(
13795 -*) as_dir=./$as_dir;;
13796 esac
13797 test -d "$as_dir" || eval $as_mkdir_p || {
13798 as_dirs=
13799 while :; do
13800 case $as_dir in #(
13801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13802 *) as_qdir=$as_dir;;
13803 esac
13804 as_dirs="'$as_qdir' $as_dirs"
13805 as_dir=`$as_dirname -- "$as_dir" ||
13806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13807 X"$as_dir" : 'X\(//\)[^/]' \| \
13808 X"$as_dir" : 'X\(//\)$' \| \
13809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13810 $as_echo X"$as_dir" |
13811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\/\)[^/].*/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\/\)$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\).*/{
13824 s//\1/
13825 q
13826 }
13827 s/.*/./; q'`
13828 test -d "$as_dir" && break
13829 done
13830 test -z "$as_dirs" || eval "mkdir $as_dirs"
13831 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13832
13833
13834 } # as_fn_mkdir_p
13835 if mkdir -p . 2>/dev/null; then
13836 as_mkdir_p='mkdir -p "$as_dir"'
13837 else
13838 test -d ./-p && rmdir ./-p
13839 as_mkdir_p=false
13840 fi
13841
13842
13843 # as_fn_executable_p FILE
13844 # -----------------------
13845 # Test if FILE is an executable regular file.
13846 as_fn_executable_p ()
13847 {
13848 test -f "$1" && test -x "$1"
13849 } # as_fn_executable_p
13850 as_test_x='test -x'
13851 as_executable_p=as_fn_executable_p
13852
13853 # Sed expression to map a string onto a valid CPP name.
13854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13855
13856 # Sed expression to map a string onto a valid variable name.
13857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13858
13859
13860 exec 6>&1
13861 ## ----------------------------------- ##
13862 ## Main body of $CONFIG_STATUS script. ##
13863 ## ----------------------------------- ##
13864 _ASEOF
13865 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13866
13867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13868 # Save the log message, to keep $0 and so on meaningful, and to
13869 # report actual input values of CONFIG_FILES etc. instead of their
13870 # values after options handling.
13871 ac_log="
13872 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13873 generated by GNU Autoconf 2.69. Invocation command line was
13874
13875 CONFIG_FILES = $CONFIG_FILES
13876 CONFIG_HEADERS = $CONFIG_HEADERS
13877 CONFIG_LINKS = $CONFIG_LINKS
13878 CONFIG_COMMANDS = $CONFIG_COMMANDS
13879 $ $0 $@
13880
13881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13882 "
13883
13884 _ACEOF
13885
13886 case $ac_config_files in *"
13887 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13888 esac
13889
13890 case $ac_config_headers in *"
13891 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13892 esac
13893
13894
13895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13896 # Files that config.status was made for.
13897 config_files="$ac_config_files"
13898 config_headers="$ac_config_headers"
13899 config_commands="$ac_config_commands"
13900
13901 _ACEOF
13902
13903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13904 ac_cs_usage="\
13905 \`$as_me' instantiates files and other configuration actions
13906 from templates according to the current configuration. Unless the files
13907 and actions are specified as TAGs, all are instantiated by default.
13908
13909 Usage: $0 [OPTION]... [TAG]...
13910
13911 -h, --help print this help, then exit
13912 -V, --version print version number and configuration settings, then exit
13913 --config print configuration, then exit
13914 -q, --quiet, --silent
13915 do not print progress messages
13916 -d, --debug don't remove temporary files
13917 --recheck update $as_me by reconfiguring in the same conditions
13918 --file=FILE[:TEMPLATE]
13919 instantiate the configuration file FILE
13920 --header=FILE[:TEMPLATE]
13921 instantiate the configuration header FILE
13922
13923 Configuration files:
13924 $config_files
13925
13926 Configuration headers:
13927 $config_headers
13928
13929 Configuration commands:
13930 $config_commands
13931
13932 Report bugs to the package provider."
13933
13934 _ACEOF
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13937 ac_cs_version="\\
13938 GCC Quad-precision Math Library config.status 0.1
13939 configured by $0, generated by GNU Autoconf 2.69,
13940 with options \\"\$ac_cs_config\\"
13941
13942 Copyright (C) 2012 Free Software Foundation, Inc.
13943 This config.status script is free software; the Free Software Foundation
13944 gives unlimited permission to copy, distribute and modify it."
13945
13946 ac_pwd='$ac_pwd'
13947 srcdir='$srcdir'
13948 INSTALL='$INSTALL'
13949 MKDIR_P='$MKDIR_P'
13950 AWK='$AWK'
13951 test -n "\$AWK" || AWK=awk
13952 _ACEOF
13953
13954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13955 # The default lists apply if the user does not specify any file.
13956 ac_need_defaults=:
13957 while test $# != 0
13958 do
13959 case $1 in
13960 --*=?*)
13961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13963 ac_shift=:
13964 ;;
13965 --*=)
13966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13967 ac_optarg=
13968 ac_shift=:
13969 ;;
13970 *)
13971 ac_option=$1
13972 ac_optarg=$2
13973 ac_shift=shift
13974 ;;
13975 esac
13976
13977 case $ac_option in
13978 # Handling of the options.
13979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13980 ac_cs_recheck=: ;;
13981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13982 $as_echo "$ac_cs_version"; exit ;;
13983 --config | --confi | --conf | --con | --co | --c )
13984 $as_echo "$ac_cs_config"; exit ;;
13985 --debug | --debu | --deb | --de | --d | -d )
13986 debug=: ;;
13987 --file | --fil | --fi | --f )
13988 $ac_shift
13989 case $ac_optarg in
13990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13991 '') as_fn_error $? "missing file argument" ;;
13992 esac
13993 as_fn_append CONFIG_FILES " '$ac_optarg'"
13994 ac_need_defaults=false;;
13995 --header | --heade | --head | --hea )
13996 $ac_shift
13997 case $ac_optarg in
13998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13999 esac
14000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14001 ac_need_defaults=false;;
14002 --he | --h)
14003 # Conflict between --help and --header
14004 as_fn_error $? "ambiguous option: \`$1'
14005 Try \`$0 --help' for more information.";;
14006 --help | --hel | -h )
14007 $as_echo "$ac_cs_usage"; exit ;;
14008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14010 ac_cs_silent=: ;;
14011
14012 # This is an error.
14013 -*) as_fn_error $? "unrecognized option: \`$1'
14014 Try \`$0 --help' for more information." ;;
14015
14016 *) as_fn_append ac_config_targets " $1"
14017 ac_need_defaults=false ;;
14018
14019 esac
14020 shift
14021 done
14022
14023 ac_configure_extra_args=
14024
14025 if $ac_cs_silent; then
14026 exec 6>/dev/null
14027 ac_configure_extra_args="$ac_configure_extra_args --silent"
14028 fi
14029
14030 _ACEOF
14031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14032 if \$ac_cs_recheck; then
14033 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14034 shift
14035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14036 CONFIG_SHELL='$SHELL'
14037 export CONFIG_SHELL
14038 exec "\$@"
14039 fi
14040
14041 _ACEOF
14042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14043 exec 5>>config.log
14044 {
14045 echo
14046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14047 ## Running $as_me. ##
14048 _ASBOX
14049 $as_echo "$ac_log"
14050 } >&5
14051
14052 _ACEOF
14053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054 #
14055 # INIT-COMMANDS
14056 #
14057
14058 srcdir="$srcdir"
14059 host="$host"
14060 target="$target"
14061 with_multisubdir="$with_multisubdir"
14062 with_multisrctop="$with_multisrctop"
14063 with_target_subdir="$with_target_subdir"
14064 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14065 multi_basedir="$multi_basedir"
14066 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14067 CC="$CC"
14068 CXX="$CXX"
14069 GFORTRAN="$GFORTRAN"
14070 GDC="$GDC"
14071 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14072
14073
14074 # The HP-UX ksh and POSIX shell print the target directory to stdout
14075 # if CDPATH is set.
14076 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14077
14078 sed_quote_subst='$sed_quote_subst'
14079 double_quote_subst='$double_quote_subst'
14080 delay_variable_subst='$delay_variable_subst'
14081 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14082 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14083 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14084 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14085 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14086 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14087 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14088 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14089 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14090 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14091 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14092 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14093 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14094 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14095 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14096 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14097 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14098 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14099 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14100 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14101 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14102 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14103 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14104 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14105 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14106 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14107 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14108 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14109 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14110 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14111 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14112 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14113 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14114 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14115 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14116 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14117 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14118 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14119 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14120 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14121 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14122 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14123 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14124 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14125 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14126 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14127 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14128 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14129 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"`'
14130 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14131 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14132 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14133 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14134 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14135 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14136 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14137 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14138 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14139 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14140 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14141 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14142 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14143 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14144 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14145 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14146 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14147 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14148 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14149 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14150 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14151 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14152 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14153 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14154 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14155 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14156 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14157 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14158 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14159 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14160 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14161 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14162 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14163 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14164 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14165 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14166 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14167 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14168 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14169 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14170 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14171 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14172 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14173 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14174 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14175 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14176 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14177 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14178 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14179 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14180 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14181 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14182 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14183 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14184 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14185 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14186 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14187 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14188 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14189 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14190 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14191 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14192 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14193 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14194 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14195 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14196 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14197 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14198 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14199 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14200 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14201
14202 LTCC='$LTCC'
14203 LTCFLAGS='$LTCFLAGS'
14204 compiler='$compiler_DEFAULT'
14205
14206 # A function that is used when there is no print builtin or printf.
14207 func_fallback_echo ()
14208 {
14209 eval 'cat <<_LTECHO_EOF
14210 \$1
14211 _LTECHO_EOF'
14212 }
14213
14214 # Quote evaled strings.
14215 for var in SHELL \
14216 ECHO \
14217 SED \
14218 GREP \
14219 EGREP \
14220 FGREP \
14221 LD \
14222 NM \
14223 LN_S \
14224 lt_SP2NL \
14225 lt_NL2SP \
14226 reload_flag \
14227 OBJDUMP \
14228 deplibs_check_method \
14229 file_magic_cmd \
14230 AR \
14231 AR_FLAGS \
14232 STRIP \
14233 RANLIB \
14234 CC \
14235 CFLAGS \
14236 compiler \
14237 lt_cv_sys_global_symbol_pipe \
14238 lt_cv_sys_global_symbol_to_cdecl \
14239 lt_cv_sys_global_symbol_to_c_name_address \
14240 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14241 lt_prog_compiler_no_builtin_flag \
14242 lt_prog_compiler_wl \
14243 lt_prog_compiler_pic \
14244 lt_prog_compiler_static \
14245 lt_cv_prog_compiler_c_o \
14246 need_locks \
14247 DSYMUTIL \
14248 NMEDIT \
14249 LIPO \
14250 OTOOL \
14251 OTOOL64 \
14252 shrext_cmds \
14253 export_dynamic_flag_spec \
14254 whole_archive_flag_spec \
14255 compiler_needs_object \
14256 with_gnu_ld \
14257 allow_undefined_flag \
14258 no_undefined_flag \
14259 hardcode_libdir_flag_spec \
14260 hardcode_libdir_flag_spec_ld \
14261 hardcode_libdir_separator \
14262 fix_srcfile_path \
14263 exclude_expsyms \
14264 include_expsyms \
14265 file_list_spec \
14266 variables_saved_for_relink \
14267 libname_spec \
14268 library_names_spec \
14269 soname_spec \
14270 install_override_mode \
14271 finish_eval \
14272 old_striplib \
14273 striplib; do
14274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14275 *[\\\\\\\`\\"\\\$]*)
14276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14277 ;;
14278 *)
14279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14280 ;;
14281 esac
14282 done
14283
14284 # Double-quote double-evaled strings.
14285 for var in reload_cmds \
14286 old_postinstall_cmds \
14287 old_postuninstall_cmds \
14288 old_archive_cmds \
14289 extract_expsyms_cmds \
14290 old_archive_from_new_cmds \
14291 old_archive_from_expsyms_cmds \
14292 archive_cmds \
14293 archive_expsym_cmds \
14294 module_cmds \
14295 module_expsym_cmds \
14296 export_symbols_cmds \
14297 prelink_cmds \
14298 postinstall_cmds \
14299 postuninstall_cmds \
14300 finish_cmds \
14301 sys_lib_search_path_spec \
14302 sys_lib_dlsearch_path_spec; do
14303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14304 *[\\\\\\\`\\"\\\$]*)
14305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14306 ;;
14307 *)
14308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14309 ;;
14310 esac
14311 done
14312
14313 ac_aux_dir='$ac_aux_dir'
14314 xsi_shell='$xsi_shell'
14315 lt_shell_append='$lt_shell_append'
14316
14317 # See if we are running on zsh, and set the options which allow our
14318 # commands through without removal of \ escapes INIT.
14319 if test -n "\${ZSH_VERSION+set}" ; then
14320 setopt NO_GLOB_SUBST
14321 fi
14322
14323
14324 PACKAGE='$PACKAGE'
14325 VERSION='$VERSION'
14326 TIMESTAMP='$TIMESTAMP'
14327 RM='$RM'
14328 ofile='$ofile'
14329
14330
14331
14332
14333 _ACEOF
14334
14335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336
14337 # Handling of arguments.
14338 for ac_config_target in $ac_config_targets
14339 do
14340 case $ac_config_target in
14341 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14342 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14343 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14344 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14346
14347 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14348 esac
14349 done
14350
14351
14352 # If the user did not use the arguments to specify the items to instantiate,
14353 # then the envvar interface is used. Set only those that are not.
14354 # We use the long form for the default assignment because of an extremely
14355 # bizarre bug on SunOS 4.1.3.
14356 if $ac_need_defaults; then
14357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14358 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14359 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14360 fi
14361
14362 # Have a temporary directory for convenience. Make it in the build tree
14363 # simply because there is no reason against having it here, and in addition,
14364 # creating and moving files from /tmp can sometimes cause problems.
14365 # Hook for its removal unless debugging.
14366 # Note that there is a small window in which the directory will not be cleaned:
14367 # after its creation but before its name has been assigned to `$tmp'.
14368 $debug ||
14369 {
14370 tmp= ac_tmp=
14371 trap 'exit_status=$?
14372 : "${ac_tmp:=$tmp}"
14373 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14374 ' 0
14375 trap 'as_fn_exit 1' 1 2 13 15
14376 }
14377 # Create a (secure) tmp directory for tmp files.
14378
14379 {
14380 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14381 test -d "$tmp"
14382 } ||
14383 {
14384 tmp=./conf$$-$RANDOM
14385 (umask 077 && mkdir "$tmp")
14386 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14387 ac_tmp=$tmp
14388
14389 # Set up the scripts for CONFIG_FILES section.
14390 # No need to generate them if there are no CONFIG_FILES.
14391 # This happens for instance with `./config.status config.h'.
14392 if test -n "$CONFIG_FILES"; then
14393
14394
14395 ac_cr=`echo X | tr X '\015'`
14396 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14397 # But we know of no other shell where ac_cr would be empty at this
14398 # point, so we can use a bashism as a fallback.
14399 if test "x$ac_cr" = x; then
14400 eval ac_cr=\$\'\\r\'
14401 fi
14402 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14403 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14404 ac_cs_awk_cr='\\r'
14405 else
14406 ac_cs_awk_cr=$ac_cr
14407 fi
14408
14409 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14410 _ACEOF
14411
14412
14413 {
14414 echo "cat >conf$$subs.awk <<_ACEOF" &&
14415 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14416 echo "_ACEOF"
14417 } >conf$$subs.sh ||
14418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14419 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14420 ac_delim='%!_!# '
14421 for ac_last_try in false false false false false :; do
14422 . ./conf$$subs.sh ||
14423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14424
14425 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14426 if test $ac_delim_n = $ac_delim_num; then
14427 break
14428 elif $ac_last_try; then
14429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14430 else
14431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14432 fi
14433 done
14434 rm -f conf$$subs.sh
14435
14436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14437 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14438 _ACEOF
14439 sed -n '
14440 h
14441 s/^/S["/; s/!.*/"]=/
14442 p
14443 g
14444 s/^[^!]*!//
14445 :repl
14446 t repl
14447 s/'"$ac_delim"'$//
14448 t delim
14449 :nl
14450 h
14451 s/\(.\{148\}\)..*/\1/
14452 t more1
14453 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14454 p
14455 n
14456 b repl
14457 :more1
14458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14459 p
14460 g
14461 s/.\{148\}//
14462 t nl
14463 :delim
14464 h
14465 s/\(.\{148\}\)..*/\1/
14466 t more2
14467 s/["\\]/\\&/g; s/^/"/; s/$/"/
14468 p
14469 b
14470 :more2
14471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14472 p
14473 g
14474 s/.\{148\}//
14475 t delim
14476 ' <conf$$subs.awk | sed '
14477 /^[^""]/{
14478 N
14479 s/\n//
14480 }
14481 ' >>$CONFIG_STATUS || ac_write_fail=1
14482 rm -f conf$$subs.awk
14483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14484 _ACAWK
14485 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14486 for (key in S) S_is_set[key] = 1
14487 FS = "\a"
14488
14489 }
14490 {
14491 line = $ 0
14492 nfields = split(line, field, "@")
14493 substed = 0
14494 len = length(field[1])
14495 for (i = 2; i < nfields; i++) {
14496 key = field[i]
14497 keylen = length(key)
14498 if (S_is_set[key]) {
14499 value = S[key]
14500 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14501 len += length(value) + length(field[++i])
14502 substed = 1
14503 } else
14504 len += 1 + keylen
14505 }
14506
14507 print line
14508 }
14509
14510 _ACAWK
14511 _ACEOF
14512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14513 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14514 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14515 else
14516 cat
14517 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14518 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14519 _ACEOF
14520
14521 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14522 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14523 # trailing colons and then remove the whole line if VPATH becomes empty
14524 # (actually we leave an empty line to preserve line numbers).
14525 if test "x$srcdir" = x.; then
14526 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14527 h
14528 s///
14529 s/^/:/
14530 s/[ ]*$/:/
14531 s/:\$(srcdir):/:/g
14532 s/:\${srcdir}:/:/g
14533 s/:@srcdir@:/:/g
14534 s/^:*//
14535 s/:*$//
14536 x
14537 s/\(=[ ]*\).*/\1/
14538 G
14539 s/\n//
14540 s/^[^=]*=[ ]*$//
14541 }'
14542 fi
14543
14544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14545 fi # test -n "$CONFIG_FILES"
14546
14547 # Set up the scripts for CONFIG_HEADERS section.
14548 # No need to generate them if there are no CONFIG_HEADERS.
14549 # This happens for instance with `./config.status Makefile'.
14550 if test -n "$CONFIG_HEADERS"; then
14551 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14552 BEGIN {
14553 _ACEOF
14554
14555 # Transform confdefs.h into an awk script `defines.awk', embedded as
14556 # here-document in config.status, that substitutes the proper values into
14557 # config.h.in to produce config.h.
14558
14559 # Create a delimiter string that does not exist in confdefs.h, to ease
14560 # handling of long lines.
14561 ac_delim='%!_!# '
14562 for ac_last_try in false false :; do
14563 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14564 if test -z "$ac_tt"; then
14565 break
14566 elif $ac_last_try; then
14567 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14568 else
14569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14570 fi
14571 done
14572
14573 # For the awk script, D is an array of macro values keyed by name,
14574 # likewise P contains macro parameters if any. Preserve backslash
14575 # newline sequences.
14576
14577 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14578 sed -n '
14579 s/.\{148\}/&'"$ac_delim"'/g
14580 t rset
14581 :rset
14582 s/^[ ]*#[ ]*define[ ][ ]*/ /
14583 t def
14584 d
14585 :def
14586 s/\\$//
14587 t bsnl
14588 s/["\\]/\\&/g
14589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14590 D["\1"]=" \3"/p
14591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14592 d
14593 :bsnl
14594 s/["\\]/\\&/g
14595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14596 D["\1"]=" \3\\\\\\n"\\/p
14597 t cont
14598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14599 t cont
14600 d
14601 :cont
14602 n
14603 s/.\{148\}/&'"$ac_delim"'/g
14604 t clear
14605 :clear
14606 s/\\$//
14607 t bsnlc
14608 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14609 d
14610 :bsnlc
14611 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14612 b cont
14613 ' <confdefs.h | sed '
14614 s/'"$ac_delim"'/"\\\
14615 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14616
14617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14618 for (key in D) D_is_set[key] = 1
14619 FS = "\a"
14620 }
14621 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14622 line = \$ 0
14623 split(line, arg, " ")
14624 if (arg[1] == "#") {
14625 defundef = arg[2]
14626 mac1 = arg[3]
14627 } else {
14628 defundef = substr(arg[1], 2)
14629 mac1 = arg[2]
14630 }
14631 split(mac1, mac2, "(") #)
14632 macro = mac2[1]
14633 prefix = substr(line, 1, index(line, defundef) - 1)
14634 if (D_is_set[macro]) {
14635 # Preserve the white space surrounding the "#".
14636 print prefix "define", macro P[macro] D[macro]
14637 next
14638 } else {
14639 # Replace #undef with comments. This is necessary, for example,
14640 # in the case of _POSIX_SOURCE, which is predefined and required
14641 # on some systems where configure will not decide to define it.
14642 if (defundef == "undef") {
14643 print "/*", prefix defundef, macro, "*/"
14644 next
14645 }
14646 }
14647 }
14648 { print }
14649 _ACAWK
14650 _ACEOF
14651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14652 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14653 fi # test -n "$CONFIG_HEADERS"
14654
14655
14656 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14657 shift
14658 for ac_tag
14659 do
14660 case $ac_tag in
14661 :[FHLC]) ac_mode=$ac_tag; continue;;
14662 esac
14663 case $ac_mode$ac_tag in
14664 :[FHL]*:*);;
14665 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14666 :[FH]-) ac_tag=-:-;;
14667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14668 esac
14669 ac_save_IFS=$IFS
14670 IFS=:
14671 set x $ac_tag
14672 IFS=$ac_save_IFS
14673 shift
14674 ac_file=$1
14675 shift
14676
14677 case $ac_mode in
14678 :L) ac_source=$1;;
14679 :[FH])
14680 ac_file_inputs=
14681 for ac_f
14682 do
14683 case $ac_f in
14684 -) ac_f="$ac_tmp/stdin";;
14685 *) # Look for the file first in the build tree, then in the source tree
14686 # (if the path is not absolute). The absolute path cannot be DOS-style,
14687 # because $ac_f cannot contain `:'.
14688 test -f "$ac_f" ||
14689 case $ac_f in
14690 [\\/$]*) false;;
14691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14692 esac ||
14693 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14694 esac
14695 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14696 as_fn_append ac_file_inputs " '$ac_f'"
14697 done
14698
14699 # Let's still pretend it is `configure' which instantiates (i.e., don't
14700 # use $as_me), people would be surprised to read:
14701 # /* config.h. Generated by config.status. */
14702 configure_input='Generated from '`
14703 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14704 `' by configure.'
14705 if test x"$ac_file" != x-; then
14706 configure_input="$ac_file. $configure_input"
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14708 $as_echo "$as_me: creating $ac_file" >&6;}
14709 fi
14710 # Neutralize special characters interpreted by sed in replacement strings.
14711 case $configure_input in #(
14712 *\&* | *\|* | *\\* )
14713 ac_sed_conf_input=`$as_echo "$configure_input" |
14714 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14715 *) ac_sed_conf_input=$configure_input;;
14716 esac
14717
14718 case $ac_tag in
14719 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14721 esac
14722 ;;
14723 esac
14724
14725 ac_dir=`$as_dirname -- "$ac_file" ||
14726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14727 X"$ac_file" : 'X\(//\)[^/]' \| \
14728 X"$ac_file" : 'X\(//\)$' \| \
14729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14730 $as_echo X"$ac_file" |
14731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14732 s//\1/
14733 q
14734 }
14735 /^X\(\/\/\)[^/].*/{
14736 s//\1/
14737 q
14738 }
14739 /^X\(\/\/\)$/{
14740 s//\1/
14741 q
14742 }
14743 /^X\(\/\).*/{
14744 s//\1/
14745 q
14746 }
14747 s/.*/./; q'`
14748 as_dir="$ac_dir"; as_fn_mkdir_p
14749 ac_builddir=.
14750
14751 case "$ac_dir" in
14752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14753 *)
14754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14755 # A ".." for each directory in $ac_dir_suffix.
14756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14757 case $ac_top_builddir_sub in
14758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14760 esac ;;
14761 esac
14762 ac_abs_top_builddir=$ac_pwd
14763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14764 # for backward compatibility:
14765 ac_top_builddir=$ac_top_build_prefix
14766
14767 case $srcdir in
14768 .) # We are building in place.
14769 ac_srcdir=.
14770 ac_top_srcdir=$ac_top_builddir_sub
14771 ac_abs_top_srcdir=$ac_pwd ;;
14772 [\\/]* | ?:[\\/]* ) # Absolute name.
14773 ac_srcdir=$srcdir$ac_dir_suffix;
14774 ac_top_srcdir=$srcdir
14775 ac_abs_top_srcdir=$srcdir ;;
14776 *) # Relative name.
14777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14778 ac_top_srcdir=$ac_top_build_prefix$srcdir
14779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14780 esac
14781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14782
14783
14784 case $ac_mode in
14785 :F)
14786 #
14787 # CONFIG_FILE
14788 #
14789
14790 case $INSTALL in
14791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14792 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14793 esac
14794 ac_MKDIR_P=$MKDIR_P
14795 case $MKDIR_P in
14796 [\\/$]* | ?:[\\/]* ) ;;
14797 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14798 esac
14799 _ACEOF
14800
14801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14802 # If the template does not know about datarootdir, expand it.
14803 # FIXME: This hack should be removed a few years after 2.60.
14804 ac_datarootdir_hack=; ac_datarootdir_seen=
14805 ac_sed_dataroot='
14806 /datarootdir/ {
14807 p
14808 q
14809 }
14810 /@datadir@/p
14811 /@docdir@/p
14812 /@infodir@/p
14813 /@localedir@/p
14814 /@mandir@/p'
14815 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14816 *datarootdir*) ac_datarootdir_seen=yes;;
14817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14819 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14820 _ACEOF
14821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14822 ac_datarootdir_hack='
14823 s&@datadir@&$datadir&g
14824 s&@docdir@&$docdir&g
14825 s&@infodir@&$infodir&g
14826 s&@localedir@&$localedir&g
14827 s&@mandir@&$mandir&g
14828 s&\\\${datarootdir}&$datarootdir&g' ;;
14829 esac
14830 _ACEOF
14831
14832 # Neutralize VPATH when `$srcdir' = `.'.
14833 # Shell code in configure.ac might set extrasub.
14834 # FIXME: do we really want to maintain this feature?
14835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14836 ac_sed_extra="$ac_vpsub
14837 $extrasub
14838 _ACEOF
14839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14840 :t
14841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14842 s|@configure_input@|$ac_sed_conf_input|;t t
14843 s&@top_builddir@&$ac_top_builddir_sub&;t t
14844 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14845 s&@srcdir@&$ac_srcdir&;t t
14846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14847 s&@top_srcdir@&$ac_top_srcdir&;t t
14848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14849 s&@builddir@&$ac_builddir&;t t
14850 s&@abs_builddir@&$ac_abs_builddir&;t t
14851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14852 s&@INSTALL@&$ac_INSTALL&;t t
14853 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14854 $ac_datarootdir_hack
14855 "
14856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14857 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14858
14859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14860 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14862 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14864 which seems to be undefined. Please make sure it is defined" >&5
14865 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14866 which seems to be undefined. Please make sure it is defined" >&2;}
14867
14868 rm -f "$ac_tmp/stdin"
14869 case $ac_file in
14870 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14871 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14872 esac \
14873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14874 ;;
14875 :H)
14876 #
14877 # CONFIG_HEADER
14878 #
14879 if test x"$ac_file" != x-; then
14880 {
14881 $as_echo "/* $configure_input */" \
14882 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14883 } >"$ac_tmp/config.h" \
14884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14885 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14887 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14888 else
14889 rm -f "$ac_file"
14890 mv "$ac_tmp/config.h" "$ac_file" \
14891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14892 fi
14893 else
14894 $as_echo "/* $configure_input */" \
14895 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14896 || as_fn_error $? "could not create -" "$LINENO" 5
14897 fi
14898 # Compute "$ac_file"'s index in $config_headers.
14899 _am_arg="$ac_file"
14900 _am_stamp_count=1
14901 for _am_header in $config_headers :; do
14902 case $_am_header in
14903 $_am_arg | $_am_arg:* )
14904 break ;;
14905 * )
14906 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14907 esac
14908 done
14909 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14910 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14911 X"$_am_arg" : 'X\(//\)[^/]' \| \
14912 X"$_am_arg" : 'X\(//\)$' \| \
14913 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14914 $as_echo X"$_am_arg" |
14915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14916 s//\1/
14917 q
14918 }
14919 /^X\(\/\/\)[^/].*/{
14920 s//\1/
14921 q
14922 }
14923 /^X\(\/\/\)$/{
14924 s//\1/
14925 q
14926 }
14927 /^X\(\/\).*/{
14928 s//\1/
14929 q
14930 }
14931 s/.*/./; q'`/stamp-h$_am_stamp_count
14932 ;;
14933
14934 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14935 $as_echo "$as_me: executing $ac_file commands" >&6;}
14936 ;;
14937 esac
14938
14939
14940 case $ac_file$ac_mode in
14941 "default-1":C)
14942 # Only add multilib support code if we just rebuilt the top-level
14943 # Makefile.
14944 case " $CONFIG_FILES " in
14945 *" Makefile "*)
14946 ac_file=Makefile . ${multi_basedir}/config-ml.in
14947 ;;
14948 esac ;;
14949 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14950 # Older Autoconf quotes --file arguments for eval, but not when files
14951 # are listed without --file. Let's play safe and only enable the eval
14952 # if we detect the quoting.
14953 case $CONFIG_FILES in
14954 *\'*) eval set x "$CONFIG_FILES" ;;
14955 *) set x $CONFIG_FILES ;;
14956 esac
14957 shift
14958 for mf
14959 do
14960 # Strip MF so we end up with the name of the file.
14961 mf=`echo "$mf" | sed -e 's/:.*$//'`
14962 # Check whether this is an Automake generated Makefile or not.
14963 # We used to match only the files named 'Makefile.in', but
14964 # some people rename them; so instead we look at the file content.
14965 # Grep'ing the first line is not enough: some people post-process
14966 # each Makefile.in and add a new line on top of each file to say so.
14967 # Grep'ing the whole file is not good either: AIX grep has a line
14968 # limit of 2048, but all sed's we know have understand at least 4000.
14969 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14970 dirpart=`$as_dirname -- "$mf" ||
14971 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14972 X"$mf" : 'X\(//\)[^/]' \| \
14973 X"$mf" : 'X\(//\)$' \| \
14974 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14975 $as_echo X"$mf" |
14976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14977 s//\1/
14978 q
14979 }
14980 /^X\(\/\/\)[^/].*/{
14981 s//\1/
14982 q
14983 }
14984 /^X\(\/\/\)$/{
14985 s//\1/
14986 q
14987 }
14988 /^X\(\/\).*/{
14989 s//\1/
14990 q
14991 }
14992 s/.*/./; q'`
14993 else
14994 continue
14995 fi
14996 # Extract the definition of DEPDIR, am__include, and am__quote
14997 # from the Makefile without running 'make'.
14998 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14999 test -z "$DEPDIR" && continue
15000 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15001 test -z "$am__include" && continue
15002 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15003 # Find all dependency output files, they are included files with
15004 # $(DEPDIR) in their names. We invoke sed twice because it is the
15005 # simplest approach to changing $(DEPDIR) to its actual value in the
15006 # expansion.
15007 for file in `sed -n "
15008 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15009 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15010 # Make sure the directory exists.
15011 test -f "$dirpart/$file" && continue
15012 fdir=`$as_dirname -- "$file" ||
15013 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15014 X"$file" : 'X\(//\)[^/]' \| \
15015 X"$file" : 'X\(//\)$' \| \
15016 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15017 $as_echo X"$file" |
15018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15019 s//\1/
15020 q
15021 }
15022 /^X\(\/\/\)[^/].*/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)$/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\).*/{
15031 s//\1/
15032 q
15033 }
15034 s/.*/./; q'`
15035 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15036 # echo "creating $dirpart/$file"
15037 echo '# dummy' > "$dirpart/$file"
15038 done
15039 done
15040 }
15041 ;;
15042 "libtool":C)
15043
15044 # See if we are running on zsh, and set the options which allow our
15045 # commands through without removal of \ escapes.
15046 if test -n "${ZSH_VERSION+set}" ; then
15047 setopt NO_GLOB_SUBST
15048 fi
15049
15050 cfgfile="${ofile}T"
15051 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15052 $RM "$cfgfile"
15053
15054 cat <<_LT_EOF >> "$cfgfile"
15055 #! $SHELL
15056
15057 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15058 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15060 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15061 #
15062 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15063 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15064 # Written by Gordon Matzigkeit, 1996
15065 #
15066 # This file is part of GNU Libtool.
15067 #
15068 # GNU Libtool is free software; you can redistribute it and/or
15069 # modify it under the terms of the GNU General Public License as
15070 # published by the Free Software Foundation; either version 2 of
15071 # the License, or (at your option) any later version.
15072 #
15073 # As a special exception to the GNU General Public License,
15074 # if you distribute this file as part of a program or library that
15075 # is built using GNU Libtool, you may include this file under the
15076 # same distribution terms that you use for the rest of that program.
15077 #
15078 # GNU Libtool is distributed in the hope that it will be useful,
15079 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15081 # GNU General Public License for more details.
15082 #
15083 # You should have received a copy of the GNU General Public License
15084 # along with GNU Libtool; see the file COPYING. If not, a copy
15085 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15086 # obtained by writing to the Free Software Foundation, Inc.,
15087 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15088
15089
15090 # The names of the tagged configurations supported by this script.
15091 available_tags=""
15092
15093 # ### BEGIN LIBTOOL CONFIG
15094
15095 # Which release of libtool.m4 was used?
15096 macro_version=$macro_version
15097 macro_revision=$macro_revision
15098
15099 # Whether or not to build shared libraries.
15100 build_libtool_libs=$enable_shared
15101
15102 # Whether or not to build static libraries.
15103 build_old_libs=$enable_static
15104
15105 # What type of objects to build.
15106 pic_mode=$pic_mode
15107
15108 # Whether or not to optimize for fast installation.
15109 fast_install=$enable_fast_install
15110
15111 # Shell to use when invoking shell scripts.
15112 SHELL=$lt_SHELL
15113
15114 # An echo program that protects backslashes.
15115 ECHO=$lt_ECHO
15116
15117 # The host system.
15118 host_alias=$host_alias
15119 host=$host
15120 host_os=$host_os
15121
15122 # The build system.
15123 build_alias=$build_alias
15124 build=$build
15125 build_os=$build_os
15126
15127 # A sed program that does not truncate output.
15128 SED=$lt_SED
15129
15130 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15131 Xsed="\$SED -e 1s/^X//"
15132
15133 # A grep program that handles long lines.
15134 GREP=$lt_GREP
15135
15136 # An ERE matcher.
15137 EGREP=$lt_EGREP
15138
15139 # A literal string matcher.
15140 FGREP=$lt_FGREP
15141
15142 # A BSD- or MS-compatible name lister.
15143 NM=$lt_NM
15144
15145 # Whether we need soft or hard links.
15146 LN_S=$lt_LN_S
15147
15148 # What is the maximum length of a command?
15149 max_cmd_len=$max_cmd_len
15150
15151 # Object file suffix (normally "o").
15152 objext=$ac_objext
15153
15154 # Executable file suffix (normally "").
15155 exeext=$exeext
15156
15157 # whether the shell understands "unset".
15158 lt_unset=$lt_unset
15159
15160 # turn spaces into newlines.
15161 SP2NL=$lt_lt_SP2NL
15162
15163 # turn newlines into spaces.
15164 NL2SP=$lt_lt_NL2SP
15165
15166 # An object symbol dumper.
15167 OBJDUMP=$lt_OBJDUMP
15168
15169 # Method to check whether dependent libraries are shared objects.
15170 deplibs_check_method=$lt_deplibs_check_method
15171
15172 # Command to use when deplibs_check_method == "file_magic".
15173 file_magic_cmd=$lt_file_magic_cmd
15174
15175 # The archiver.
15176 AR=$lt_AR
15177 AR_FLAGS=$lt_AR_FLAGS
15178
15179 # A symbol stripping program.
15180 STRIP=$lt_STRIP
15181
15182 # Commands used to install an old-style archive.
15183 RANLIB=$lt_RANLIB
15184 old_postinstall_cmds=$lt_old_postinstall_cmds
15185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15186
15187 # Whether to use a lock for old archive extraction.
15188 lock_old_archive_extraction=$lock_old_archive_extraction
15189
15190 # A C compiler.
15191 LTCC=$lt_CC
15192
15193 # LTCC compiler flags.
15194 LTCFLAGS=$lt_CFLAGS
15195
15196 # Take the output of nm and produce a listing of raw symbols and C names.
15197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15198
15199 # Transform the output of nm in a proper C declaration.
15200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15201
15202 # Transform the output of nm in a C name address pair.
15203 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15204
15205 # Transform the output of nm in a C name address pair when lib prefix is needed.
15206 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15207
15208 # The name of the directory that contains temporary libtool files.
15209 objdir=$objdir
15210
15211 # Used to examine libraries when file_magic_cmd begins with "file".
15212 MAGIC_CMD=$MAGIC_CMD
15213
15214 # Must we lock files when doing compilation?
15215 need_locks=$lt_need_locks
15216
15217 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15218 DSYMUTIL=$lt_DSYMUTIL
15219
15220 # Tool to change global to local symbols on Mac OS X.
15221 NMEDIT=$lt_NMEDIT
15222
15223 # Tool to manipulate fat objects and archives on Mac OS X.
15224 LIPO=$lt_LIPO
15225
15226 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15227 OTOOL=$lt_OTOOL
15228
15229 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15230 OTOOL64=$lt_OTOOL64
15231
15232 # Old archive suffix (normally "a").
15233 libext=$libext
15234
15235 # Shared library suffix (normally ".so").
15236 shrext_cmds=$lt_shrext_cmds
15237
15238 # The commands to extract the exported symbol list from a shared archive.
15239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15240
15241 # Variables whose values should be saved in libtool wrapper scripts and
15242 # restored at link time.
15243 variables_saved_for_relink=$lt_variables_saved_for_relink
15244
15245 # Do we need the "lib" prefix for modules?
15246 need_lib_prefix=$need_lib_prefix
15247
15248 # Do we need a version for libraries?
15249 need_version=$need_version
15250
15251 # Library versioning type.
15252 version_type=$version_type
15253
15254 # Shared library runtime path variable.
15255 runpath_var=$runpath_var
15256
15257 # Shared library path variable.
15258 shlibpath_var=$shlibpath_var
15259
15260 # Is shlibpath searched before the hard-coded library search path?
15261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15262
15263 # Format of library name prefix.
15264 libname_spec=$lt_libname_spec
15265
15266 # List of archive names. First name is the real one, the rest are links.
15267 # The last name is the one that the linker finds with -lNAME
15268 library_names_spec=$lt_library_names_spec
15269
15270 # The coded name of the library, if different from the real name.
15271 soname_spec=$lt_soname_spec
15272
15273 # Permission mode override for installation of shared libraries.
15274 install_override_mode=$lt_install_override_mode
15275
15276 # Command to use after installation of a shared archive.
15277 postinstall_cmds=$lt_postinstall_cmds
15278
15279 # Command to use after uninstallation of a shared archive.
15280 postuninstall_cmds=$lt_postuninstall_cmds
15281
15282 # Commands used to finish a libtool library installation in a directory.
15283 finish_cmds=$lt_finish_cmds
15284
15285 # As "finish_cmds", except a single script fragment to be evaled but
15286 # not shown.
15287 finish_eval=$lt_finish_eval
15288
15289 # Whether we should hardcode library paths into libraries.
15290 hardcode_into_libs=$hardcode_into_libs
15291
15292 # Compile-time system search path for libraries.
15293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15294
15295 # Run-time system search path for libraries.
15296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15297
15298 # Whether dlopen is supported.
15299 dlopen_support=$enable_dlopen
15300
15301 # Whether dlopen of programs is supported.
15302 dlopen_self=$enable_dlopen_self
15303
15304 # Whether dlopen of statically linked programs is supported.
15305 dlopen_self_static=$enable_dlopen_self_static
15306
15307 # Commands to strip libraries.
15308 old_striplib=$lt_old_striplib
15309 striplib=$lt_striplib
15310
15311
15312 # The linker used to build libraries.
15313 LD=$lt_LD
15314
15315 # How to create reloadable object files.
15316 reload_flag=$lt_reload_flag
15317 reload_cmds=$lt_reload_cmds
15318
15319 # Commands used to build an old-style archive.
15320 old_archive_cmds=$lt_old_archive_cmds
15321
15322 # A language specific compiler.
15323 CC=$lt_compiler
15324
15325 # Is the compiler the GNU compiler?
15326 with_gcc=$GCC
15327
15328 # Compiler flag to turn off builtin functions.
15329 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15330
15331 # How to pass a linker flag through the compiler.
15332 wl=$lt_lt_prog_compiler_wl
15333
15334 # Additional compiler flags for building library objects.
15335 pic_flag=$lt_lt_prog_compiler_pic
15336
15337 # Compiler flag to prevent dynamic linking.
15338 link_static_flag=$lt_lt_prog_compiler_static
15339
15340 # Does compiler simultaneously support -c and -o options?
15341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15342
15343 # Whether or not to add -lc for building shared libraries.
15344 build_libtool_need_lc=$archive_cmds_need_lc
15345
15346 # Whether or not to disallow shared libs when runtime libs are static.
15347 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15348
15349 # Compiler flag to allow reflexive dlopens.
15350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15351
15352 # Compiler flag to generate shared objects directly from archives.
15353 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15354
15355 # Whether the compiler copes with passing no objects directly.
15356 compiler_needs_object=$lt_compiler_needs_object
15357
15358 # Create an old-style archive from a shared archive.
15359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15360
15361 # Create a temporary old-style archive to link instead of a shared archive.
15362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15363
15364 # Commands used to build a shared archive.
15365 archive_cmds=$lt_archive_cmds
15366 archive_expsym_cmds=$lt_archive_expsym_cmds
15367
15368 # Commands used to build a loadable module if different from building
15369 # a shared archive.
15370 module_cmds=$lt_module_cmds
15371 module_expsym_cmds=$lt_module_expsym_cmds
15372
15373 # Whether we are building with GNU ld or not.
15374 with_gnu_ld=$lt_with_gnu_ld
15375
15376 # Flag that allows shared libraries with undefined symbols to be built.
15377 allow_undefined_flag=$lt_allow_undefined_flag
15378
15379 # Flag that enforces no undefined symbols.
15380 no_undefined_flag=$lt_no_undefined_flag
15381
15382 # Flag to hardcode \$libdir into a binary during linking.
15383 # This must work even if \$libdir does not exist
15384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15385
15386 # If ld is used when linking, flag to hardcode \$libdir into a binary
15387 # during linking. This must work even if \$libdir does not exist.
15388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15389
15390 # Whether we need a single "-rpath" flag with a separated argument.
15391 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15392
15393 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15394 # DIR into the resulting binary.
15395 hardcode_direct=$hardcode_direct
15396
15397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15398 # DIR into the resulting binary and the resulting library dependency is
15399 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15400 # library is relocated.
15401 hardcode_direct_absolute=$hardcode_direct_absolute
15402
15403 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15404 # into the resulting binary.
15405 hardcode_minus_L=$hardcode_minus_L
15406
15407 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15408 # into the resulting binary.
15409 hardcode_shlibpath_var=$hardcode_shlibpath_var
15410
15411 # Set to "yes" if building a shared library automatically hardcodes DIR
15412 # into the library and all subsequent libraries and executables linked
15413 # against it.
15414 hardcode_automatic=$hardcode_automatic
15415
15416 # Set to yes if linker adds runtime paths of dependent libraries
15417 # to runtime path list.
15418 inherit_rpath=$inherit_rpath
15419
15420 # Whether libtool must link a program against all its dependency libraries.
15421 link_all_deplibs=$link_all_deplibs
15422
15423 # Fix the shell variable \$srcfile for the compiler.
15424 fix_srcfile_path=$lt_fix_srcfile_path
15425
15426 # Set to "yes" if exported symbols are required.
15427 always_export_symbols=$always_export_symbols
15428
15429 # The commands to list exported symbols.
15430 export_symbols_cmds=$lt_export_symbols_cmds
15431
15432 # Symbols that should not be listed in the preloaded symbols.
15433 exclude_expsyms=$lt_exclude_expsyms
15434
15435 # Symbols that must always be exported.
15436 include_expsyms=$lt_include_expsyms
15437
15438 # Commands necessary for linking programs (against libraries) with templates.
15439 prelink_cmds=$lt_prelink_cmds
15440
15441 # Specify filename containing input files.
15442 file_list_spec=$lt_file_list_spec
15443
15444 # How to hardcode a shared library path into an executable.
15445 hardcode_action=$hardcode_action
15446
15447 # ### END LIBTOOL CONFIG
15448
15449 _LT_EOF
15450
15451 case $host_os in
15452 aix3*)
15453 cat <<\_LT_EOF >> "$cfgfile"
15454 # AIX sometimes has problems with the GCC collect2 program. For some
15455 # reason, if we set the COLLECT_NAMES environment variable, the problems
15456 # vanish in a puff of smoke.
15457 if test "X${COLLECT_NAMES+set}" != Xset; then
15458 COLLECT_NAMES=
15459 export COLLECT_NAMES
15460 fi
15461 _LT_EOF
15462 ;;
15463 esac
15464
15465
15466 ltmain="$ac_aux_dir/ltmain.sh"
15467
15468
15469 # We use sed instead of cat because bash on DJGPP gets confused if
15470 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15471 # text mode, it properly converts lines to CR/LF. This bash problem
15472 # is reportedly fixed, but why not run on old versions too?
15473 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15474 || (rm -f "$cfgfile"; exit 1)
15475
15476 case $xsi_shell in
15477 yes)
15478 cat << \_LT_EOF >> "$cfgfile"
15479
15480 # func_dirname file append nondir_replacement
15481 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15482 # otherwise set result to NONDIR_REPLACEMENT.
15483 func_dirname ()
15484 {
15485 case ${1} in
15486 */*) func_dirname_result="${1%/*}${2}" ;;
15487 * ) func_dirname_result="${3}" ;;
15488 esac
15489 }
15490
15491 # func_basename file
15492 func_basename ()
15493 {
15494 func_basename_result="${1##*/}"
15495 }
15496
15497 # func_dirname_and_basename file append nondir_replacement
15498 # perform func_basename and func_dirname in a single function
15499 # call:
15500 # dirname: Compute the dirname of FILE. If nonempty,
15501 # add APPEND to the result, otherwise set result
15502 # to NONDIR_REPLACEMENT.
15503 # value returned in "$func_dirname_result"
15504 # basename: Compute filename of FILE.
15505 # value retuned in "$func_basename_result"
15506 # Implementation must be kept synchronized with func_dirname
15507 # and func_basename. For efficiency, we do not delegate to
15508 # those functions but instead duplicate the functionality here.
15509 func_dirname_and_basename ()
15510 {
15511 case ${1} in
15512 */*) func_dirname_result="${1%/*}${2}" ;;
15513 * ) func_dirname_result="${3}" ;;
15514 esac
15515 func_basename_result="${1##*/}"
15516 }
15517
15518 # func_stripname prefix suffix name
15519 # strip PREFIX and SUFFIX off of NAME.
15520 # PREFIX and SUFFIX must not contain globbing or regex special
15521 # characters, hashes, percent signs, but SUFFIX may contain a leading
15522 # dot (in which case that matches only a dot).
15523 func_stripname ()
15524 {
15525 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15526 # positional parameters, so assign one to ordinary parameter first.
15527 func_stripname_result=${3}
15528 func_stripname_result=${func_stripname_result#"${1}"}
15529 func_stripname_result=${func_stripname_result%"${2}"}
15530 }
15531
15532 # func_opt_split
15533 func_opt_split ()
15534 {
15535 func_opt_split_opt=${1%%=*}
15536 func_opt_split_arg=${1#*=}
15537 }
15538
15539 # func_lo2o object
15540 func_lo2o ()
15541 {
15542 case ${1} in
15543 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15544 *) func_lo2o_result=${1} ;;
15545 esac
15546 }
15547
15548 # func_xform libobj-or-source
15549 func_xform ()
15550 {
15551 func_xform_result=${1%.*}.lo
15552 }
15553
15554 # func_arith arithmetic-term...
15555 func_arith ()
15556 {
15557 func_arith_result=$(( $* ))
15558 }
15559
15560 # func_len string
15561 # STRING may not start with a hyphen.
15562 func_len ()
15563 {
15564 func_len_result=${#1}
15565 }
15566
15567 _LT_EOF
15568 ;;
15569 *) # Bourne compatible functions.
15570 cat << \_LT_EOF >> "$cfgfile"
15571
15572 # func_dirname file append nondir_replacement
15573 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15574 # otherwise set result to NONDIR_REPLACEMENT.
15575 func_dirname ()
15576 {
15577 # Extract subdirectory from the argument.
15578 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15579 if test "X$func_dirname_result" = "X${1}"; then
15580 func_dirname_result="${3}"
15581 else
15582 func_dirname_result="$func_dirname_result${2}"
15583 fi
15584 }
15585
15586 # func_basename file
15587 func_basename ()
15588 {
15589 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15590 }
15591
15592
15593 # func_stripname prefix suffix name
15594 # strip PREFIX and SUFFIX off of NAME.
15595 # PREFIX and SUFFIX must not contain globbing or regex special
15596 # characters, hashes, percent signs, but SUFFIX may contain a leading
15597 # dot (in which case that matches only a dot).
15598 # func_strip_suffix prefix name
15599 func_stripname ()
15600 {
15601 case ${2} in
15602 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15603 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15604 esac
15605 }
15606
15607 # sed scripts:
15608 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15609 my_sed_long_arg='1s/^-[^=]*=//'
15610
15611 # func_opt_split
15612 func_opt_split ()
15613 {
15614 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15615 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15616 }
15617
15618 # func_lo2o object
15619 func_lo2o ()
15620 {
15621 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15622 }
15623
15624 # func_xform libobj-or-source
15625 func_xform ()
15626 {
15627 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15628 }
15629
15630 # func_arith arithmetic-term...
15631 func_arith ()
15632 {
15633 func_arith_result=`expr "$@"`
15634 }
15635
15636 # func_len string
15637 # STRING may not start with a hyphen.
15638 func_len ()
15639 {
15640 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15641 }
15642
15643 _LT_EOF
15644 esac
15645
15646 case $lt_shell_append in
15647 yes)
15648 cat << \_LT_EOF >> "$cfgfile"
15649
15650 # func_append var value
15651 # Append VALUE to the end of shell variable VAR.
15652 func_append ()
15653 {
15654 eval "$1+=\$2"
15655 }
15656 _LT_EOF
15657 ;;
15658 *)
15659 cat << \_LT_EOF >> "$cfgfile"
15660
15661 # func_append var value
15662 # Append VALUE to the end of shell variable VAR.
15663 func_append ()
15664 {
15665 eval "$1=\$$1\$2"
15666 }
15667
15668 _LT_EOF
15669 ;;
15670 esac
15671
15672
15673 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15674 || (rm -f "$cfgfile"; exit 1)
15675
15676 mv -f "$cfgfile" "$ofile" ||
15677 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15678 chmod +x "$ofile"
15679
15680 ;;
15681
15682 esac
15683 done # for ac_tag
15684
15685
15686 as_fn_exit 0
15687 _ACEOF
15688 ac_clean_files=$ac_clean_files_save
15689
15690 test $ac_write_fail = 0 ||
15691 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15692
15693
15694 # configure is writing to config.log, and then calls config.status.
15695 # config.status does its own redirection, appending to config.log.
15696 # Unfortunately, on DOS this fails, as config.log is still kept open
15697 # by configure, so config.status won't be able to write to it; its
15698 # output is simply discarded. So we exec the FD to /dev/null,
15699 # effectively closing config.log, so it can be properly (re)opened and
15700 # appended to by config.status. When coming back to configure, we
15701 # need to make the FD available again.
15702 if test "$no_create" != yes; then
15703 ac_cs_success=:
15704 ac_config_status_args=
15705 test "$silent" = yes &&
15706 ac_config_status_args="$ac_config_status_args --quiet"
15707 exec 5>/dev/null
15708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15709 exec 5>>config.log
15710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15711 # would make configure fail if this is the last instruction.
15712 $ac_cs_success || as_fn_exit 1
15713 fi
15714 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15716 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15717 fi
15718