Require target lra in gcc.dg/torture/pr110422.c
[official-gcc.git] / libgrust / configure
blobdcdc3142fa2e8cd3c2c4470c8ecff88ac0e481db
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgrust version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
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
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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
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
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
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."
280 exit 1
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
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
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 ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
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/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
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"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
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 ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
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 ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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 ()
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
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
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
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
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
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/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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
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 '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
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; }
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
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;;
518 ECHO_N='-n';;
519 esac
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
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'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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'"
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'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
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`
576 # Initializations.
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=
587 # Identity of this package.
588 PACKAGE_NAME='libgrust'
589 PACKAGE_TARNAME='libgrust'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='libgrust version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 toolexeclibdir
638 toolexecdir
639 target_subdir
640 host_subdir
641 build_subdir
642 build_libsubdir
643 target_noncanonical
644 host_noncanonical
645 CXXCPP
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 RANLIB
652 OBJDUMP
653 LN_S
655 ac_ct_DUMPBIN
656 DUMPBIN
658 FGREP
660 LIBTOOL
661 am__fastdepCCAS_FALSE
662 am__fastdepCCAS_TRUE
663 CCASDEPMODE
664 CCASFLAGS
665 CCAS
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
672 ac_ct_AR
674 EGREP
675 GREP
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
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 multi_basedir
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_multilib
779 enable_maintainer_mode
780 enable_silent_rules
781 with_toolexeclibdir
782 enable_dependency_tracking
783 enable_werror
784 enable_cet
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_gnu_ld
790 enable_libtool_lock
791 enable_darwin_at_rpath
792 with_build_libsubdir
793 enable_version_specific_runtime_libs
794 with_gcc_major_version_only
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
806 CXXFLAGS
808 CCAS
809 CCASFLAGS
810 CXXCPP'
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
861 ac_prev=
862 ac_dashdash=
863 for ac_option
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
872 case $ac_option in
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *=) ac_optarg= ;;
875 *) ac_optarg=yes ;;
876 esac
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
882 ac_dashdash=yes ;;
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
901 --config-cache | -C)
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 esac
1219 done
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1303 /^X\(\/\/\)$/{
1304 s//\1/
1307 /^X\(\/\).*/{
1308 s//\1/
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1316 else
1317 ac_srcdir_defaulted=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures libgrust version-unused to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libgrust]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1406 cat <<\_ACEOF
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417 _ACEOF
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libgrust version-unused:";;
1423 esac
1424 cat <<\_ACEOF
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-multilib build many library versions (default)
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful (and
1433 sometimes confusing) to the casual installer
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --disable-werror disable building with -Werror
1441 --enable-cet enable Intel CET in target libraries [default=auto]
1442 --enable-shared[=PKGS] build shared libraries [default=yes]
1443 --enable-static[=PKGS] build static libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-darwin-at-rpath
1448 install libraries with @rpath/library-name, requires
1449 rpaths to be added to executables
1450 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-toolexeclibdir=DIR
1456 install libraries built with a cross compiler within
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-build-libsubdir=DIR Directory where to find libraries for build system
1462 --with-gcc-major-version-only
1463 use only GCC major number in filesystem paths
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 CXX C++ compiler command
1475 CXXFLAGS C++ compiler flags
1476 CCAS assembler compiler command (defaults to CC)
1477 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1478 CXXCPP C++ preprocessor
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to the package provider.
1484 _ACEOF
1485 ac_status=$?
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 libgrust configure version-unused
1547 generated by GNU Autoconf 2.69
1549 Copyright (C) 2012 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_cpp ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } > conftest.i && {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 }; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=1
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_cpp
1635 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1638 # the include files in INCLUDES and setting the cache variable VAR
1639 # accordingly.
1640 ac_fn_c_check_header_mongrel ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if eval \${$3+:} false; then :
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1649 eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 else
1653 # Is the header compilable?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1655 $as_echo_n "checking $2 usability... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 ac_header_compiler=yes
1663 else
1664 ac_header_compiler=no
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1668 $as_echo "$ac_header_compiler" >&6; }
1670 # Is the header present?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1672 $as_echo_n "checking $2 presence... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_cpp "$LINENO"; then :
1678 ac_header_preproc=yes
1679 else
1680 ac_header_preproc=no
1682 rm -f conftest.err conftest.i conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1684 $as_echo "$ac_header_preproc" >&6; }
1686 # So? What about this header?
1687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1688 yes:no: )
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1690 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 no:yes:* )
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1696 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1698 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1700 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1702 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 esac
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1711 else
1712 eval "$3=\$ac_header_compiler"
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 } # ac_fn_c_check_header_mongrel
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=$ac_status
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_run
1764 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_c_check_header_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 eval "$3=yes"
1783 else
1784 eval "$3=no"
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 } # ac_fn_c_check_header_compile
1795 # ac_fn_cxx_try_compile LINENO
1796 # ----------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_cxx_try_compile
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 test -x conftest$ac_exeext
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_link
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889 else
1890 if test x$gcc_no_link = xyes; then
1891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1910 #undef $2
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1927 main ()
1929 return $2 ();
1931 return 0;
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_func
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } > conftest.i && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1979 ac_retval=1
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1984 } # ac_fn_cxx_try_cpp
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 test -x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2020 ac_retval=1
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2030 } # ac_fn_cxx_try_link
2031 cat >config.log <<_ACEOF
2032 This file contains any messages produced by compilers while
2033 running configure, to aid debugging if configure makes a mistake.
2035 It was created by libgrust $as_me version-unused, which was
2036 generated by GNU Autoconf 2.69. Invocation command line was
2038 $ $0 $@
2040 _ACEOF
2041 exec 5>>config.log
2043 cat <<_ASUNAME
2044 ## --------- ##
2045 ## Platform. ##
2046 ## --------- ##
2048 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2049 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2050 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2051 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2052 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2054 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2055 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2057 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2058 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2059 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2060 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2061 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2062 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2063 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2065 _ASUNAME
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 $as_echo "PATH: $as_dir"
2073 done
2074 IFS=$as_save_IFS
2076 } >&5
2078 cat >&5 <<_ACEOF
2081 ## ----------- ##
2082 ## Core tests. ##
2083 ## ----------- ##
2085 _ACEOF
2088 # Keep a trace of the command line.
2089 # Strip out --no-create and --no-recursion so they do not pile up.
2090 # Strip out --silent because we don't want to record it for future runs.
2091 # Also quote any args containing shell meta-characters.
2092 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_configure_args=
2094 ac_configure_args0=
2095 ac_configure_args1=
2096 ac_must_keep_next=false
2097 for ac_pass in 1 2
2099 for ac_arg
2101 case $ac_arg in
2102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2104 | -silent | --silent | --silen | --sile | --sil)
2105 continue ;;
2106 *\'*)
2107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 esac
2109 case $ac_pass in
2110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2112 as_fn_append ac_configure_args1 " '$ac_arg'"
2113 if test $ac_must_keep_next = true; then
2114 ac_must_keep_next=false # Got value, back to normal.
2115 else
2116 case $ac_arg in
2117 *=* | --config-cache | -C | -disable-* | --disable-* \
2118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2120 | -with-* | --with-* | -without-* | --without-* | --x)
2121 case "$ac_configure_args0 " in
2122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2123 esac
2125 -* ) ac_must_keep_next=true ;;
2126 esac
2128 as_fn_append ac_configure_args " '$ac_arg'"
2130 esac
2131 done
2132 done
2133 { ac_configure_args0=; unset ac_configure_args0;}
2134 { ac_configure_args1=; unset ac_configure_args1;}
2136 # When interrupted or exit'd, cleanup temporary files, and complete
2137 # config.log. We remove comments because anyway the quotes in there
2138 # would cause problems or look ugly.
2139 # WARNING: Use '\'' to represent an apostrophe within the trap.
2140 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2141 trap 'exit_status=$?
2142 # Save into config.log some information that might help in debugging.
2144 echo
2146 $as_echo "## ---------------- ##
2147 ## Cache variables. ##
2148 ## ---------------- ##"
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2164 esac ;;
2165 esac
2166 done
2167 (set) 2>&1 |
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
2170 sed -n \
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 esac |
2178 sort
2180 echo
2182 $as_echo "## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##"
2185 echo
2186 for ac_var in $ac_subst_vars
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2196 if test -n "$ac_subst_files"; then
2197 $as_echo "## ------------------- ##
2198 ## File substitutions. ##
2199 ## ------------------- ##"
2200 echo
2201 for ac_var in $ac_subst_files
2203 eval ac_val=\$$ac_var
2204 case $ac_val in
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 esac
2207 $as_echo "$ac_var='\''$ac_val'\''"
2208 done | sort
2209 echo
2212 if test -s confdefs.h; then
2213 $as_echo "## ----------- ##
2214 ## confdefs.h. ##
2215 ## ----------- ##"
2216 echo
2217 cat confdefs.h
2218 echo
2220 test "$ac_signal" != 0 &&
2221 $as_echo "$as_me: caught signal $ac_signal"
2222 $as_echo "$as_me: exit $exit_status"
2223 } >&5
2224 rm -f core *.core core.conftest.* &&
2225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226 exit $exit_status
2228 for ac_signal in 1 2 13 15; do
2229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 done
2231 ac_signal=0
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2236 $as_echo "/* confdefs.h */" > confdefs.h
2238 # Predefined preprocessor variables.
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_NAME "$PACKAGE_NAME"
2242 _ACEOF
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246 _ACEOF
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 _ACEOF
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_STRING "$PACKAGE_STRING"
2254 _ACEOF
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258 _ACEOF
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_URL "$PACKAGE_URL"
2262 _ACEOF
2265 # Let the site file select an alternate cache file if it wants to.
2266 # Prefer an explicitly selected file to automatically selected ones.
2267 ac_site_file1=NONE
2268 ac_site_file2=NONE
2269 if test -n "$CONFIG_SITE"; then
2270 # We do not want a PATH search for config.site.
2271 case $CONFIG_SITE in #((
2272 -*) ac_site_file1=./$CONFIG_SITE;;
2273 */*) ac_site_file1=$CONFIG_SITE;;
2274 *) ac_site_file1=./$CONFIG_SITE;;
2275 esac
2276 elif test "x$prefix" != xNONE; then
2277 ac_site_file1=$prefix/share/config.site
2278 ac_site_file2=$prefix/etc/config.site
2279 else
2280 ac_site_file1=$ac_default_prefix/share/config.site
2281 ac_site_file2=$ac_default_prefix/etc/config.site
2283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2285 test "x$ac_site_file" = xNONE && continue
2286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289 sed 's/^/| /' "$ac_site_file" >&5
2290 . "$ac_site_file" \
2291 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 as_fn_error $? "failed to load site script $ac_site_file
2294 See \`config.log' for more details" "$LINENO" 5; }
2296 done
2298 if test -r "$cache_file"; then
2299 # Some versions of bash will fail to source /dev/null (special files
2300 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2301 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2303 $as_echo "$as_me: loading cache $cache_file" >&6;}
2304 case $cache_file in
2305 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2306 *) . "./$cache_file";;
2307 esac
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2311 $as_echo "$as_me: creating cache $cache_file" >&6;}
2312 >$cache_file
2315 # Check that the precious variables saved in the cache have kept the same
2316 # value.
2317 ac_cache_corrupted=false
2318 for ac_var in $ac_precious_vars; do
2319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2320 eval ac_new_set=\$ac_env_${ac_var}_set
2321 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2322 eval ac_new_val=\$ac_env_${ac_var}_value
2323 case $ac_old_set,$ac_new_set in
2324 set,)
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2327 ac_cache_corrupted=: ;;
2328 ,set)
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2332 ,);;
2334 if test "x$ac_old_val" != "x$ac_new_val"; then
2335 # differences in whitespace do not lead to failure.
2336 ac_old_val_w=`echo x $ac_old_val`
2337 ac_new_val_w=`echo x $ac_new_val`
2338 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2340 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2341 ac_cache_corrupted=:
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2344 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2345 eval $ac_var=\$ac_old_val
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2348 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2350 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2351 fi;;
2352 esac
2353 # Pass precious variables to config.status.
2354 if test "$ac_new_set" = set; then
2355 case $ac_new_val in
2356 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2357 *) ac_arg=$ac_var=$ac_new_val ;;
2358 esac
2359 case " $ac_configure_args " in
2360 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2361 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362 esac
2364 done
2365 if $ac_cache_corrupted; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2369 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2370 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2372 ## -------------------- ##
2373 ## Main body of script. ##
2374 ## -------------------- ##
2376 ac_ext=c
2377 ac_cpp='$CPP $CPPFLAGS'
2378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 ac_config_files="$ac_config_files Makefile"
2390 if test -n "${with_target_subdir}"; then
2391 # Default to --enable-multilib
2392 # Check whether --enable-multilib was given.
2393 if test "${enable_multilib+set}" = set; then :
2394 enableval=$enable_multilib; case "$enableval" in
2395 yes) multilib=yes ;;
2396 no) multilib=no ;;
2397 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2398 esac
2399 else
2400 multilib=yes
2404 # We may get other options which we leave undocumented:
2405 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2406 # See config-ml.in if you want the gory details.
2408 if test "$srcdir" = "."; then
2409 if test "$with_target_subdir" != "."; then
2410 multi_basedir="$srcdir/$with_multisrctop../.."
2411 else
2412 multi_basedir="$srcdir/$with_multisrctop.."
2414 else
2415 multi_basedir="$srcdir/.."
2419 # Even if the default multilib is not a cross compilation,
2420 # it may be that some of the other multilibs are.
2421 if test $cross_compiling = no && test $multilib = yes \
2422 && test "x${with_multisubdir}" != x ; then
2423 cross_compiling=maybe
2426 ac_config_commands="$ac_config_commands default-1"
2430 # Do not delete or change the following two lines. For why, see
2431 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2432 ac_aux_dir=
2433 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434 if test -f "$ac_dir/install-sh"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/install-sh -c"
2437 break
2438 elif test -f "$ac_dir/install.sh"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/install.sh -c"
2441 break
2442 elif test -f "$ac_dir/shtool"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/shtool install -c"
2445 break
2447 done
2448 if test -z "$ac_aux_dir"; then
2449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2452 # These three variables are undocumented and unsupported,
2453 # and are intended to be withdrawn in a future Autoconf release.
2454 # They can cause serious problems if a builder's source tree is in a directory
2455 # whose full name contains unusual characters.
2456 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2457 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2458 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2461 # Make sure we can run config.sub.
2462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2466 $as_echo_n "checking build system type... " >&6; }
2467 if ${ac_cv_build+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 ac_build_alias=$build_alias
2471 test "x$ac_build_alias" = x &&
2472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2473 test "x$ac_build_alias" = x &&
2474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2480 $as_echo "$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2484 esac
2485 build=$ac_cv_build
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_build
2488 shift
2489 build_cpu=$1
2490 build_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 build_os=$*
2495 IFS=$ac_save_IFS
2496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2500 $as_echo_n "checking host system type... " >&6; }
2501 if ${ac_cv_host+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test "x$host_alias" = x; then
2505 ac_cv_host=$ac_cv_build
2506 else
2507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2513 $as_echo "$ac_cv_host" >&6; }
2514 case $ac_cv_host in
2515 *-*-*) ;;
2516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2517 esac
2518 host=$ac_cv_host
2519 ac_save_IFS=$IFS; IFS='-'
2520 set x $ac_cv_host
2521 shift
2522 host_cpu=$1
2523 host_vendor=$2
2524 shift; shift
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2527 host_os=$*
2528 IFS=$ac_save_IFS
2529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2533 $as_echo_n "checking target system type... " >&6; }
2534 if ${ac_cv_target+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test "x$target_alias" = x; then
2538 ac_cv_target=$ac_cv_host
2539 else
2540 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2546 $as_echo "$ac_cv_target" >&6; }
2547 case $ac_cv_target in
2548 *-*-*) ;;
2549 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2550 esac
2551 target=$ac_cv_target
2552 ac_save_IFS=$IFS; IFS='-'
2553 set x $ac_cv_target
2554 shift
2555 target_cpu=$1
2556 target_vendor=$2
2557 shift; shift
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2560 target_os=$*
2561 IFS=$ac_save_IFS
2562 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2565 # The aliases save the names the user supplied, while $host etc.
2566 # will get canonicalized.
2567 test -n "$target_alias" &&
2568 test "$program_prefix$program_suffix$program_transform_name" = \
2569 NONENONEs,x,x, &&
2570 program_prefix=${target_alias}-
2572 target_alias=${target_alias-$host_alias}
2575 # Automake should never attempt to rebuild configure
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2578 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2579 # Check whether --enable-maintainer-mode was given.
2580 if test "${enable_maintainer_mode+set}" = set; then :
2581 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2582 else
2583 USE_MAINTAINER_MODE=no
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2587 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2588 if test $USE_MAINTAINER_MODE = yes; then
2589 MAINTAINER_MODE_TRUE=
2590 MAINTAINER_MODE_FALSE='#'
2591 else
2592 MAINTAINER_MODE_TRUE='#'
2593 MAINTAINER_MODE_FALSE=
2596 MAINT=$MAINTAINER_MODE_TRUE
2600 am__api_version='1.15'
2602 # Find a good install program. We prefer a C program (faster),
2603 # so one script is as good as another. But avoid the broken or
2604 # incompatible versions:
2605 # SysV /etc/install, /usr/sbin/install
2606 # SunOS /usr/etc/install
2607 # IRIX /sbin/install
2608 # AIX /bin/install
2609 # AmigaOS /C/install, which installs bootblocks on floppy discs
2610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2613 # OS/2's system install, which has a completely different semantic
2614 # ./install, which can be erroneously created by make from ./install.sh.
2615 # Reject install programs that cannot install multiple files.
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2617 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2618 if test -z "$INSTALL"; then
2619 if ${ac_cv_path_install+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 # Account for people who put trailing slashes in PATH elements.
2628 case $as_dir/ in #((
2629 ./ | .// | /[cC]/* | \
2630 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2631 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2632 /usr/ucb/* ) ;;
2634 # OSF1 and SCO ODT 3.0 have their own names for install.
2635 # Don't use installbsd from OSF since it installs stuff as root
2636 # by default.
2637 for ac_prog in ginstall scoinst install; do
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2640 if test $ac_prog = install &&
2641 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2642 # AIX install. It has an incompatible calling convention.
2644 elif test $ac_prog = install &&
2645 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2646 # program-specific install script used by HP pwplus--don't use.
2648 else
2649 rm -rf conftest.one conftest.two conftest.dir
2650 echo one > conftest.one
2651 echo two > conftest.two
2652 mkdir conftest.dir
2653 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2654 test -s conftest.one && test -s conftest.two &&
2655 test -s conftest.dir/conftest.one &&
2656 test -s conftest.dir/conftest.two
2657 then
2658 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659 break 3
2663 done
2664 done
2666 esac
2668 done
2669 IFS=$as_save_IFS
2671 rm -rf conftest.one conftest.two conftest.dir
2674 if test "${ac_cv_path_install+set}" = set; then
2675 INSTALL=$ac_cv_path_install
2676 else
2677 # As a last resort, use the slow shell script. Don't cache a
2678 # value for INSTALL within a source directory, because that will
2679 # break other packages using the cache if that directory is
2680 # removed, or if the value is a relative name.
2681 INSTALL=$ac_install_sh
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2685 $as_echo "$INSTALL" >&6; }
2687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2688 # It thinks the first close brace ends the variable substitution.
2689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2691 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2693 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2696 $as_echo_n "checking whether build environment is sane... " >&6; }
2697 # Reject unsafe characters in $srcdir or the absolute working directory
2698 # name. Accept space and tab only in the latter.
2699 am_lf='
2701 case `pwd` in
2702 *[\\\"\#\$\&\'\`$am_lf]*)
2703 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2704 esac
2705 case $srcdir in
2706 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2707 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2708 esac
2710 # Do 'set' in a subshell so we don't clobber the current shell's
2711 # arguments. Must try -L first in case configure is actually a
2712 # symlink; some systems play weird games with the mod time of symlinks
2713 # (eg FreeBSD returns the mod time of the symlink's containing
2714 # directory).
2715 if (
2716 am_has_slept=no
2717 for am_try in 1 2; do
2718 echo "timestamp, slept: $am_has_slept" > conftest.file
2719 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2720 if test "$*" = "X"; then
2721 # -L didn't work.
2722 set X `ls -t "$srcdir/configure" conftest.file`
2724 if test "$*" != "X $srcdir/configure conftest.file" \
2725 && test "$*" != "X conftest.file $srcdir/configure"; then
2727 # If neither matched, then we have a broken ls. This can happen
2728 # if, for instance, CONFIG_SHELL is bash and it inherits a
2729 # broken ls alias from the environment. This has actually
2730 # happened. Such a system could not be considered "sane".
2731 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2732 alias in your environment" "$LINENO" 5
2734 if test "$2" = conftest.file || test $am_try -eq 2; then
2735 break
2737 # Just in case.
2738 sleep 1
2739 am_has_slept=yes
2740 done
2741 test "$2" = conftest.file
2743 then
2744 # Ok.
2746 else
2747 as_fn_error $? "newly created file is older than distributed files!
2748 Check your system clock" "$LINENO" 5
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2751 $as_echo "yes" >&6; }
2752 # If we didn't sleep, we still need to ensure time stamps of config.status and
2753 # generated files are strictly newer.
2754 am_sleep_pid=
2755 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2756 ( sleep 1 ) &
2757 am_sleep_pid=$!
2760 rm -f conftest.file
2762 test "$program_prefix" != NONE &&
2763 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2764 # Use a double $ so make ignores it.
2765 test "$program_suffix" != NONE &&
2766 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2767 # Double any \ or $.
2768 # By default was `s,x,x', remove it if useless.
2769 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2770 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2772 # Expand $ac_aux_dir to an absolute path.
2773 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2775 if test x"${MISSING+set}" != xset; then
2776 case $am_aux_dir in
2777 *\ * | *\ *)
2778 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2780 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2781 esac
2783 # Use eval to expand $SHELL
2784 if eval "$MISSING --is-lightweight"; then
2785 am_missing_run="$MISSING "
2786 else
2787 am_missing_run=
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2789 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2792 if test x"${install_sh+set}" != xset; then
2793 case $am_aux_dir in
2794 *\ * | *\ *)
2795 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2797 install_sh="\${SHELL} $am_aux_dir/install-sh"
2798 esac
2801 # Installed binaries are usually stripped using 'strip' when the user
2802 # run "make install-strip". However 'strip' might not be the right
2803 # tool to use in cross-compilation environments, therefore Automake
2804 # will honor the 'STRIP' environment variable to overrule this program.
2805 if test "$cross_compiling" != no; then
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2808 set dummy ${ac_tool_prefix}strip; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_STRIP+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$STRIP"; then
2815 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2830 IFS=$as_save_IFS
2834 STRIP=$ac_cv_prog_STRIP
2835 if test -n "$STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2837 $as_echo "$STRIP" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2845 if test -z "$ac_cv_prog_STRIP"; then
2846 ac_ct_STRIP=$STRIP
2847 # Extract the first word of "strip", so it can be a program name with args.
2848 set dummy strip; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$ac_ct_STRIP"; then
2855 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_ac_ct_STRIP="strip"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2870 IFS=$as_save_IFS
2874 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2875 if test -n "$ac_ct_STRIP"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2877 $as_echo "$ac_ct_STRIP" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2883 if test "x$ac_ct_STRIP" = x; then
2884 STRIP=":"
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892 STRIP=$ac_ct_STRIP
2894 else
2895 STRIP="$ac_cv_prog_STRIP"
2899 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2902 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2903 if test -z "$MKDIR_P"; then
2904 if ${ac_cv_path_mkdir+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_prog in mkdir gmkdir; do
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2915 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2916 'mkdir (GNU coreutils) '* | \
2917 'mkdir (coreutils) '* | \
2918 'mkdir (fileutils) '4.1*)
2919 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2920 break 3;;
2921 esac
2922 done
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 test -d ./--version && rmdir ./--version
2930 if test "${ac_cv_path_mkdir+set}" = set; then
2931 MKDIR_P="$ac_cv_path_mkdir -p"
2932 else
2933 # As a last resort, use the slow shell script. Don't cache a
2934 # value for MKDIR_P within a source directory, because that will
2935 # break other packages using the cache if that directory is
2936 # removed, or if the value is a relative name.
2937 MKDIR_P="$ac_install_sh -d"
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2941 $as_echo "$MKDIR_P" >&6; }
2943 for ac_prog in gawk mawk nawk awk
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_AWK+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$AWK"; then
2953 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_AWK="$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2966 done
2967 done
2968 IFS=$as_save_IFS
2972 AWK=$ac_cv_prog_AWK
2973 if test -n "$AWK"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975 $as_echo "$AWK" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2982 test -n "$AWK" && break
2983 done
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2987 set x ${MAKE-make}
2988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2989 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 cat >conftest.make <<\_ACEOF
2993 SHELL = /bin/sh
2994 all:
2995 @echo '@@@%%%=$(MAKE)=@@@%%%'
2996 _ACEOF
2997 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2999 *@@@%%%=?*=@@@%%%*)
3000 eval ac_cv_prog_make_${ac_make}_set=yes;;
3002 eval ac_cv_prog_make_${ac_make}_set=no;;
3003 esac
3004 rm -f conftest.make
3006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008 $as_echo "yes" >&6; }
3009 SET_MAKE=
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 SET_MAKE="MAKE=${MAKE-make}"
3016 rm -rf .tst 2>/dev/null
3017 mkdir .tst 2>/dev/null
3018 if test -d .tst; then
3019 am__leading_dot=.
3020 else
3021 am__leading_dot=_
3023 rmdir .tst 2>/dev/null
3025 # Check whether --enable-silent-rules was given.
3026 if test "${enable_silent_rules+set}" = set; then :
3027 enableval=$enable_silent_rules;
3030 case $enable_silent_rules in # (((
3031 yes) AM_DEFAULT_VERBOSITY=0;;
3032 no) AM_DEFAULT_VERBOSITY=1;;
3033 *) AM_DEFAULT_VERBOSITY=1;;
3034 esac
3035 am_make=${MAKE-make}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3037 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3038 if ${am_cv_make_support_nested_variables+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if $as_echo 'TRUE=$(BAR$(V))
3042 BAR0=false
3043 BAR1=true
3045 am__doit:
3046 @$(TRUE)
3047 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3048 am_cv_make_support_nested_variables=yes
3049 else
3050 am_cv_make_support_nested_variables=no
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3054 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3055 if test $am_cv_make_support_nested_variables = yes; then
3056 AM_V='$(V)'
3057 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3058 else
3059 AM_V=$AM_DEFAULT_VERBOSITY
3060 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3062 AM_BACKSLASH='\'
3064 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3065 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3066 # is not polluted with repeated "-I."
3067 am__isrc=' -I$(srcdir)'
3068 # test to see if srcdir already configured
3069 if test -f $srcdir/config.status; then
3070 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3074 # test whether we have cygpath
3075 if test -z "$CYGPATH_W"; then
3076 if (cygpath --version) >/dev/null 2>/dev/null; then
3077 CYGPATH_W='cygpath -w'
3078 else
3079 CYGPATH_W=echo
3084 # Define the identity of the package.
3085 PACKAGE='libgrust'
3086 VERSION='version-unused'
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE "$PACKAGE"
3091 _ACEOF
3094 cat >>confdefs.h <<_ACEOF
3095 #define VERSION "$VERSION"
3096 _ACEOF
3098 # Some tools Automake needs.
3100 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3103 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3106 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3109 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3112 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3114 # For better backward compatibility. To be removed once Automake 1.9.x
3115 # dies out for good. For more background, see:
3116 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3117 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3118 mkdir_p='$(MKDIR_P)'
3120 # We need awk for the "check" target (and possibly the TAP driver). The
3121 # system "awk" is bad on some platforms.
3122 # Always define AMTAR for backward compatibility. Yes, it's still used
3123 # in the wild :-( We should find a proper way to deprecate it ...
3124 AMTAR='$${TAR-tar}'
3127 # We'll loop over all known methods to create a tar archive until one works.
3128 _am_tools='gnutar pax cpio none'
3130 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3137 # POSIX will say in a future version that running "rm -f" with no argument
3138 # is OK; and we want to be able to make that assumption in our Makefile
3139 # recipes. So use an aggressive probe to check that the usage we want is
3140 # actually supported "in the wild" to an acceptable degree.
3141 # See automake bug#10828.
3142 # To make any issue more visible, cause the running configure to be aborted
3143 # by default if the 'rm' program in use doesn't match our expectations; the
3144 # user can still override this though.
3145 if rm -f && rm -fr && rm -rf; then : OK; else
3146 cat >&2 <<'END'
3147 Oops!
3149 Your 'rm' program seems unable to run without file operands specified
3150 on the command line, even when the '-f' option is present. This is contrary
3151 to the behaviour of most rm programs out there, and not conforming with
3152 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3154 Please tell bug-automake@gnu.org about your system, including the value
3155 of your $PATH and any error possibly output before this message. This
3156 can help us improve future automake versions.
3159 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3160 echo 'Configuration will proceed anyway, since you have set the' >&2
3161 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3162 echo >&2
3163 else
3164 cat >&2 <<'END'
3165 Aborting the configuration process, to ensure you take notice of the issue.
3167 You can download and install GNU coreutils to get an 'rm' implementation
3168 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3170 If you want to complete the configuration process using your problematic
3171 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3172 to "yes", and re-run configure.
3175 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3180 # Make sure we don't test executables when making cross-tools.
3184 # Add the ability to change LIBTOOL directory
3186 # Check whether --with-toolexeclibdir was given.
3187 if test "${with_toolexeclibdir+set}" = set; then :
3188 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3192 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3194 esac
3195 else
3196 with_toolexeclibdir=no
3201 # Use system specific extensions
3202 DEPDIR="${am__leading_dot}deps"
3204 ac_config_commands="$ac_config_commands depfiles"
3207 am_make=${MAKE-make}
3208 cat > confinc << 'END'
3209 am__doit:
3210 @echo this is the am__doit target
3211 .PHONY: am__doit
3213 # If we don't find an include directive, just comment out the code.
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3215 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3216 am__include="#"
3217 am__quote=
3218 _am_result=none
3219 # First try GNU make style include.
3220 echo "include confinc" > confmf
3221 # Ignore all kinds of additional output from 'make'.
3222 case `$am_make -s -f confmf 2> /dev/null` in #(
3223 *the\ am__doit\ target*)
3224 am__include=include
3225 am__quote=
3226 _am_result=GNU
3228 esac
3229 # Now try BSD make style include.
3230 if test "$am__include" = "#"; then
3231 echo '.include "confinc"' > confmf
3232 case `$am_make -s -f confmf 2> /dev/null` in #(
3233 *the\ am__doit\ target*)
3234 am__include=.include
3235 am__quote="\""
3236 _am_result=BSD
3238 esac
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3243 $as_echo "$_am_result" >&6; }
3244 rm -f confinc confmf
3246 # Check whether --enable-dependency-tracking was given.
3247 if test "${enable_dependency_tracking+set}" = set; then :
3248 enableval=$enable_dependency_tracking;
3251 if test "x$enable_dependency_tracking" != xno; then
3252 am_depcomp="$ac_aux_dir/depcomp"
3253 AMDEPBACKSLASH='\'
3254 am__nodep='_no'
3256 if test "x$enable_dependency_tracking" != xno; then
3257 AMDEP_TRUE=
3258 AMDEP_FALSE='#'
3259 else
3260 AMDEP_TRUE='#'
3261 AMDEP_FALSE=
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$ac_cv_prog_CC"; then
3310 ac_ct_CC=$CC
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3332 done
3333 done
3334 IFS=$as_save_IFS
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3347 if test "x$ac_ct_CC" = x; then
3348 CC=""
3349 else
3350 case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356 CC=$ac_ct_CC
3358 else
3359 CC="$ac_cv_prog_CC"
3362 if test -z "$CC"; then
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_CC="${ac_tool_prefix}cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3403 if test -z "$CC"; then
3404 # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 ac_prog_rejected=no
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423 ac_prog_rejected=yes
3424 continue
3426 ac_cv_prog_CC="cc"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3432 IFS=$as_save_IFS
3434 if test $ac_prog_rejected = yes; then
3435 # We found a bogon in the path, so make sure we never use it.
3436 set dummy $ac_cv_prog_CC
3437 shift
3438 if test $# != 0; then
3439 # We chose a different compiler from the bogus one.
3440 # However, it has the same basename, so the bogon will be chosen
3441 # first if we set CC to just the basename; use the full file name.
3442 shift
3443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 for ac_prog in cl.exe
3463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3484 done
3485 done
3486 IFS=$as_save_IFS
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$CC" && break
3501 done
3503 if test -z "$CC"; then
3504 ac_ct_CC=$CC
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$ac_ct_CC"; then
3515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_ac_ct_CC="$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3530 IFS=$as_save_IFS
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 $as_echo "$ac_ct_CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$ac_ct_CC" && break
3545 done
3547 if test "x$ac_ct_CC" = x; then
3548 CC=""
3549 else
3550 case $cross_compiling:$ac_tool_warned in
3551 yes:)
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3555 esac
3556 CC=$ac_ct_CC
3563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "no acceptable C compiler found in \$PATH
3566 See \`config.log' for more details" "$LINENO" 5; }
3568 # Provide some information about the compiler.
3569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570 set X $ac_compile
3571 ac_compiler=$2
3572 for ac_option in --version -v -V -qversion; do
3573 { { ac_try="$ac_compiler $ac_option >&5"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581 ac_status=$?
3582 if test -s conftest.err; then
3583 sed '10a\
3584 ... rest of stderr output deleted ...
3585 10q' conftest.err >conftest.er1
3586 cat conftest.er1 >&5
3588 rm -f conftest.er1 conftest.err
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 done
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <stdio.h>
3597 main ()
3599 printf ("hello world\n");
3601 return 0;
3603 _ACEOF
3604 # FIXME: Cleanup?
3605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3606 (eval $ac_link) 2>&5
3607 ac_status=$?
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; then :
3610 gcc_no_link=no
3611 else
3612 gcc_no_link=yes
3614 if test x$gcc_no_link = xyes; then
3615 # Setting cross_compile will disable run tests; it will
3616 # also disable AC_CHECK_FILE but that's generally
3617 # correct if we can't link.
3618 cross_compiling=yes
3619 EXEEXT=
3620 else
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3625 main ()
3629 return 0;
3631 _ACEOF
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3636 # of exeext.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3644 ac_rmfiles=
3645 for ac_file in $ac_files
3647 case $ac_file in
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 esac
3651 done
3652 rm -f $ac_rmfiles
3654 if { { ac_try="$ac_link_default"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3676 [ab].out )
3677 # We found the default executable, but exeext='' is most
3678 # certainly right.
3679 break;;
3680 *.* )
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 then :; else
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3689 # actually working.
3690 break;;
3692 break;;
3693 esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3697 else
3698 ac_file=''
3700 if test -z "$ac_file"; then :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 break;;
3745 * ) break;;
3746 esac
3747 done
3748 else
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3760 ac_exeext=$EXEEXT
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdio.h>
3765 main ()
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3771 return 0;
3773 _ACEOF
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3799 ac_status=$?
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3802 cross_compiling=no
3803 else
3804 if test "$cross_compiling" = maybe; then
3805 cross_compiling=yes
3806 else
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3822 $as_echo_n "checking for suffix of object files... " >&6; }
3823 if ${ac_cv_objext+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3830 main ()
3834 return 0;
3836 _ACEOF
3837 rm -f conftest.o conftest.obj
3838 if { { ac_try="$ac_compile"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compile") 2>&5
3846 ac_status=$?
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; then :
3849 for ac_file in conftest.o conftest.obj conftest.*; do
3850 test -f "$ac_file" || continue;
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3854 break;;
3855 esac
3856 done
3857 else
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error $? "cannot compute suffix of object files: cannot compile
3864 See \`config.log' for more details" "$LINENO" 5; }
3866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3869 $as_echo "$ac_cv_objext" >&6; }
3870 OBJEXT=$ac_cv_objext
3871 ac_objext=$OBJEXT
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3873 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3874 if ${ac_cv_c_compiler_gnu+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3881 main ()
3883 #ifndef __GNUC__
3884 choke me
3885 #endif
3888 return 0;
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_compiler_gnu=yes
3893 else
3894 ac_compiler_gnu=no
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3901 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3902 if test $ac_compiler_gnu = yes; then
3903 GCC=yes
3904 else
3905 GCC=
3907 ac_test_CFLAGS=${CFLAGS+set}
3908 ac_save_CFLAGS=$CFLAGS
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3910 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3911 if ${ac_cv_prog_cc_g+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 ac_save_c_werror_flag=$ac_c_werror_flag
3915 ac_c_werror_flag=yes
3916 ac_cv_prog_cc_g=no
3917 CFLAGS="-g"
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3922 main ()
3926 return 0;
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_g=yes
3931 else
3932 CFLAGS=""
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3937 main ()
3941 return 0;
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3946 else
3947 ac_c_werror_flag=$ac_save_c_werror_flag
3948 CFLAGS="-g"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3953 main ()
3957 return 0;
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_cv_prog_cc_g=yes
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3971 $as_echo "$ac_cv_prog_cc_g" >&6; }
3972 if test "$ac_test_CFLAGS" = set; then
3973 CFLAGS=$ac_save_CFLAGS
3974 elif test $ac_cv_prog_cc_g = yes; then
3975 if test "$GCC" = yes; then
3976 CFLAGS="-g -O2"
3977 else
3978 CFLAGS="-g"
3980 else
3981 if test "$GCC" = yes; then
3982 CFLAGS="-O2"
3983 else
3984 CFLAGS=
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3989 if ${ac_cv_prog_cc_c89+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 ac_cv_prog_cc_c89=no
3993 ac_save_CC=$CC
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <stdarg.h>
3997 #include <stdio.h>
3998 struct stat;
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4003 char **p;
4004 int i;
4006 return p[i];
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4010 char *s;
4011 va_list v;
4012 va_start (v,p);
4013 s = g (p, va_arg (v,int));
4014 va_end (v);
4015 return s;
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4029 #define FOO(x) 'x'
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 int argc;
4037 char **argv;
4039 main ()
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4043 return 0;
4045 _ACEOF
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4055 done
4056 rm -f conftest.$ac_ext
4057 CC=$ac_save_CC
4060 # AC_CACHE_VAL
4061 case "x$ac_cv_prog_cc_c89" in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4065 xno)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 esac
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4089 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4090 if ${am_cv_prog_cc_c_o+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4097 main ()
4101 return 0;
4103 _ACEOF
4104 # Make sure it works both with $CC and with simple cc.
4105 # Following AC_PROG_CC_C_O, we do the test twice because some
4106 # compilers refuse to overwrite an existing .o file with -o,
4107 # though they will create one.
4108 am_cv_prog_cc_c_o=yes
4109 for am_i in 1 2; do
4110 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4111 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } \
4115 && test -f conftest2.$ac_objext; then
4116 : OK
4117 else
4118 am_cv_prog_cc_c_o=no
4119 break
4121 done
4122 rm -f core conftest*
4123 unset am_i
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4126 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4127 if test "$am_cv_prog_cc_c_o" != yes; then
4128 # Losing compiler, so override with the script.
4129 # FIXME: It is wrong to rewrite CC.
4130 # But if we don't then we get into trouble of one sort or another.
4131 # A longer-term fix would be to have automake use am__CC in this case,
4132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4133 CC="$am_aux_dir/compile $CC"
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 depcc="$CC" am_compiler_list=
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4145 $as_echo_n "checking dependency style of $depcc... " >&6; }
4146 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4150 # We make a subdir and do the tests there. Otherwise we can end up
4151 # making bogus files that we don't know about and never remove. For
4152 # instance it was reported that on HP-UX the gcc test will end up
4153 # making a dummy file named 'D' -- because '-MD' means "put the output
4154 # in D".
4155 rm -rf conftest.dir
4156 mkdir conftest.dir
4157 # Copy depcomp to subdir because otherwise we won't find it if we're
4158 # using a relative directory.
4159 cp "$am_depcomp" conftest.dir
4160 cd conftest.dir
4161 # We will build objects and dependencies in a subdirectory because
4162 # it helps to detect inapplicable dependency modes. For instance
4163 # both Tru64's cc and ICC support -MD to output dependencies as a
4164 # side effect of compilation, but ICC will put the dependencies in
4165 # the current directory while Tru64 will put them in the object
4166 # directory.
4167 mkdir sub
4169 am_cv_CC_dependencies_compiler_type=none
4170 if test "$am_compiler_list" = ""; then
4171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4173 am__universal=false
4174 case " $depcc " in #(
4175 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4176 esac
4178 for depmode in $am_compiler_list; do
4179 # Setup a source with many dependencies, because some compilers
4180 # like to wrap large dependency lists on column 80 (with \), and
4181 # we should not choose a depcomp mode which is confused by this.
4183 # We need to recreate these files for each test, as the compiler may
4184 # overwrite some of them when testing with obscure command lines.
4185 # This happens at least with the AIX C compiler.
4186 : > sub/conftest.c
4187 for i in 1 2 3 4 5 6; do
4188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4189 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4190 # Solaris 10 /bin/sh.
4191 echo '/* dummy */' > sub/conftst$i.h
4192 done
4193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4195 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4196 # mode. It turns out that the SunPro C++ compiler does not properly
4197 # handle '-M -o', and we need to detect this. Also, some Intel
4198 # versions had trouble with output in subdirs.
4199 am__obj=sub/conftest.${OBJEXT-o}
4200 am__minus_obj="-o $am__obj"
4201 case $depmode in
4202 gcc)
4203 # This depmode causes a compiler race in universal mode.
4204 test "$am__universal" = false || continue
4206 nosideeffect)
4207 # After this tag, mechanisms are not by side-effect, so they'll
4208 # only be used when explicitly requested.
4209 if test "x$enable_dependency_tracking" = xyes; then
4210 continue
4211 else
4212 break
4215 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4216 # This compiler won't grok '-c -o', but also, the minuso test has
4217 # not run yet. These depmodes are late enough in the game, and
4218 # so weak that their functioning should not be impacted.
4219 am__obj=conftest.${OBJEXT-o}
4220 am__minus_obj=
4222 none) break ;;
4223 esac
4224 if depmode=$depmode \
4225 source=sub/conftest.c object=$am__obj \
4226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4227 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4228 >/dev/null 2>conftest.err &&
4229 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4231 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4233 # icc doesn't choke on unknown options, it will just issue warnings
4234 # or remarks (even with -Werror). So we grep stderr for any message
4235 # that says an option was ignored or not supported.
4236 # When given -MP, icc 7.0 and 7.1 complain thusly:
4237 # icc: Command line warning: ignoring option '-M'; no argument required
4238 # The diagnosis changed in icc 8.0:
4239 # icc: Command line remark: option '-MP' not supported
4240 if (grep 'ignoring option' conftest.err ||
4241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4242 am_cv_CC_dependencies_compiler_type=$depmode
4243 break
4246 done
4248 cd ..
4249 rm -rf conftest.dir
4250 else
4251 am_cv_CC_dependencies_compiler_type=none
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4256 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4260 test "x$enable_dependency_tracking" != xno \
4261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4262 am__fastdepCC_TRUE=
4263 am__fastdepCC_FALSE='#'
4264 else
4265 am__fastdepCC_TRUE='#'
4266 am__fastdepCC_FALSE=
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4277 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4278 # On Suns, sometimes $CPP names a directory.
4279 if test -n "$CPP" && test -d "$CPP"; then
4280 CPP=
4282 if test -z "$CPP"; then
4283 if ${ac_cv_prog_CPP+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 # Double quotes because CPP needs to be expanded
4287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4289 ac_preproc_ok=false
4290 for ac_c_preproc_warn_flag in '' yes
4292 # Use a header file that comes with gcc, so configuring glibc
4293 # with a fresh cross-compiler works.
4294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4295 # <limits.h> exists even on freestanding compilers.
4296 # On the NeXT, cc -E runs the code through the compiler's parser,
4297 # not just through cpp. "Syntax error" is here to catch this case.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #ifdef __STDC__
4301 # include <limits.h>
4302 #else
4303 # include <assert.h>
4304 #endif
4305 Syntax error
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4309 else
4310 # Broken: fails on valid input.
4311 continue
4313 rm -f conftest.err conftest.i conftest.$ac_ext
4315 # OK, works on sane cases. Now check whether nonexistent headers
4316 # can be detected and how.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <ac_nonexistent.h>
4320 _ACEOF
4321 if ac_fn_c_try_cpp "$LINENO"; then :
4322 # Broken: success on invalid input.
4323 continue
4324 else
4325 # Passes both tests.
4326 ac_preproc_ok=:
4327 break
4329 rm -f conftest.err conftest.i conftest.$ac_ext
4331 done
4332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333 rm -f conftest.i conftest.err conftest.$ac_ext
4334 if $ac_preproc_ok; then :
4335 break
4338 done
4339 ac_cv_prog_CPP=$CPP
4342 CPP=$ac_cv_prog_CPP
4343 else
4344 ac_cv_prog_CPP=$CPP
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4347 $as_echo "$CPP" >&6; }
4348 ac_preproc_ok=false
4349 for ac_c_preproc_warn_flag in '' yes
4351 # Use a header file that comes with gcc, so configuring glibc
4352 # with a fresh cross-compiler works.
4353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354 # <limits.h> exists even on freestanding compilers.
4355 # On the NeXT, cc -E runs the code through the compiler's parser,
4356 # not just through cpp. "Syntax error" is here to catch this case.
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 #ifdef __STDC__
4360 # include <limits.h>
4361 #else
4362 # include <assert.h>
4363 #endif
4364 Syntax error
4365 _ACEOF
4366 if ac_fn_c_try_cpp "$LINENO"; then :
4368 else
4369 # Broken: fails on valid input.
4370 continue
4372 rm -f conftest.err conftest.i conftest.$ac_ext
4374 # OK, works on sane cases. Now check whether nonexistent headers
4375 # can be detected and how.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 #include <ac_nonexistent.h>
4379 _ACEOF
4380 if ac_fn_c_try_cpp "$LINENO"; then :
4381 # Broken: success on invalid input.
4382 continue
4383 else
4384 # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4388 rm -f conftest.err conftest.i conftest.$ac_ext
4390 done
4391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4392 rm -f conftest.i conftest.err conftest.$ac_ext
4393 if $ac_preproc_ok; then :
4395 else
4396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4398 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4399 See \`config.log' for more details" "$LINENO" 5; }
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4411 if ${ac_cv_path_GREP+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -z "$GREP"; then
4415 ac_path_GREP_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in grep ggrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4425 as_fn_executable_p "$ac_path_GREP" || continue
4426 # Check for GNU ac_path_GREP and select it if it is found.
4427 # Check for GNU $ac_path_GREP
4428 case `"$ac_path_GREP" --version 2>&1` in
4429 *GNU*)
4430 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4432 ac_count=0
4433 $as_echo_n 0123456789 >"conftest.in"
4434 while :
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo 'GREP' >> "conftest.nl"
4440 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val
4443 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_GREP="$ac_path_GREP"
4446 ac_path_GREP_max=$ac_count
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4450 done
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452 esac
4454 $ac_path_GREP_found && break 3
4455 done
4456 done
4457 done
4458 IFS=$as_save_IFS
4459 if test -z "$ac_cv_path_GREP"; then
4460 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4462 else
4463 ac_cv_path_GREP=$GREP
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4468 $as_echo "$ac_cv_path_GREP" >&6; }
4469 GREP="$ac_cv_path_GREP"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4473 $as_echo_n "checking for egrep... " >&6; }
4474 if ${ac_cv_path_EGREP+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4478 then ac_cv_path_EGREP="$GREP -E"
4479 else
4480 if test -z "$EGREP"; then
4481 ac_path_EGREP_found=false
4482 # Loop through the user's path and test for each of PROGNAME-LIST
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_prog in egrep; do
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4491 as_fn_executable_p "$ac_path_EGREP" || continue
4492 # Check for GNU ac_path_EGREP and select it if it is found.
4493 # Check for GNU $ac_path_EGREP
4494 case `"$ac_path_EGREP" --version 2>&1` in
4495 *GNU*)
4496 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4498 ac_count=0
4499 $as_echo_n 0123456789 >"conftest.in"
4500 while :
4502 cat "conftest.in" "conftest.in" >"conftest.tmp"
4503 mv "conftest.tmp" "conftest.in"
4504 cp "conftest.in" "conftest.nl"
4505 $as_echo 'EGREP' >> "conftest.nl"
4506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508 as_fn_arith $ac_count + 1 && ac_count=$as_val
4509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4510 # Best one so far, save it but keep looking for a better one
4511 ac_cv_path_EGREP="$ac_path_EGREP"
4512 ac_path_EGREP_max=$ac_count
4514 # 10*(2^10) chars as input seems more than enough
4515 test $ac_count -gt 10 && break
4516 done
4517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4518 esac
4520 $ac_path_EGREP_found && break 3
4521 done
4522 done
4523 done
4524 IFS=$as_save_IFS
4525 if test -z "$ac_cv_path_EGREP"; then
4526 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4528 else
4529 ac_cv_path_EGREP=$EGREP
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4535 $as_echo "$ac_cv_path_EGREP" >&6; }
4536 EGREP="$ac_cv_path_EGREP"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4540 $as_echo_n "checking for ANSI C header files... " >&6; }
4541 if ${ac_cv_header_stdc+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <stdlib.h>
4547 #include <stdarg.h>
4548 #include <string.h>
4549 #include <float.h>
4552 main ()
4556 return 0;
4558 _ACEOF
4559 if ac_fn_c_try_compile "$LINENO"; then :
4560 ac_cv_header_stdc=yes
4561 else
4562 ac_cv_header_stdc=no
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 if test $ac_cv_header_stdc = yes; then
4567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <string.h>
4572 _ACEOF
4573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574 $EGREP "memchr" >/dev/null 2>&1; then :
4576 else
4577 ac_cv_header_stdc=no
4579 rm -f conftest*
4583 if test $ac_cv_header_stdc = yes; then
4584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <stdlib.h>
4589 _ACEOF
4590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 $EGREP "free" >/dev/null 2>&1; then :
4593 else
4594 ac_cv_header_stdc=no
4596 rm -f conftest*
4600 if test $ac_cv_header_stdc = yes; then
4601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4602 if test "$cross_compiling" = yes; then :
4604 else
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <ctype.h>
4608 #include <stdlib.h>
4609 #if ((' ' & 0x0FF) == 0x020)
4610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4612 #else
4613 # define ISLOWER(c) \
4614 (('a' <= (c) && (c) <= 'i') \
4615 || ('j' <= (c) && (c) <= 'r') \
4616 || ('s' <= (c) && (c) <= 'z'))
4617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4618 #endif
4620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4622 main ()
4624 int i;
4625 for (i = 0; i < 256; i++)
4626 if (XOR (islower (i), ISLOWER (i))
4627 || toupper (i) != TOUPPER (i))
4628 return 2;
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_run "$LINENO"; then :
4634 else
4635 ac_cv_header_stdc=no
4637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4638 conftest.$ac_objext conftest.beam conftest.$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4644 $as_echo "$ac_cv_header_stdc" >&6; }
4645 if test $ac_cv_header_stdc = yes; then
4647 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4653 inttypes.h stdint.h unistd.h
4654 do :
4655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4658 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4659 cat >>confdefs.h <<_ACEOF
4660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4661 _ACEOF
4665 done
4669 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4670 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4671 MINIX=yes
4672 else
4673 MINIX=
4677 if test "$MINIX" = yes; then
4679 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4682 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4685 $as_echo "#define _MINIX 1" >>confdefs.h
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4691 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4692 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4698 # define __EXTENSIONS__ 1
4699 $ac_includes_default
4701 main ()
4705 return 0;
4707 _ACEOF
4708 if ac_fn_c_try_compile "$LINENO"; then :
4709 ac_cv_safe_to_define___extensions__=yes
4710 else
4711 ac_cv_safe_to_define___extensions__=no
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4716 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4717 test $ac_cv_safe_to_define___extensions__ = yes &&
4718 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4720 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4722 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4724 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4726 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4731 # Checks for header files.
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4733 $as_echo_n "checking for ANSI C header files... " >&6; }
4734 if ${ac_cv_header_stdc+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 #include <stdlib.h>
4740 #include <stdarg.h>
4741 #include <string.h>
4742 #include <float.h>
4745 main ()
4749 return 0;
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_header_stdc=yes
4754 else
4755 ac_cv_header_stdc=no
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 if test $ac_cv_header_stdc = yes; then
4760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 #include <string.h>
4765 _ACEOF
4766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4767 $EGREP "memchr" >/dev/null 2>&1; then :
4769 else
4770 ac_cv_header_stdc=no
4772 rm -f conftest*
4776 if test $ac_cv_header_stdc = yes; then
4777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <stdlib.h>
4782 _ACEOF
4783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "free" >/dev/null 2>&1; then :
4786 else
4787 ac_cv_header_stdc=no
4789 rm -f conftest*
4793 if test $ac_cv_header_stdc = yes; then
4794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4795 if test "$cross_compiling" = yes; then :
4797 else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #include <ctype.h>
4801 #include <stdlib.h>
4802 #if ((' ' & 0x0FF) == 0x020)
4803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4805 #else
4806 # define ISLOWER(c) \
4807 (('a' <= (c) && (c) <= 'i') \
4808 || ('j' <= (c) && (c) <= 'r') \
4809 || ('s' <= (c) && (c) <= 'z'))
4810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4811 #endif
4813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4815 main ()
4817 int i;
4818 for (i = 0; i < 256; i++)
4819 if (XOR (islower (i), ISLOWER (i))
4820 || toupper (i) != TOUPPER (i))
4821 return 2;
4822 return 0;
4824 _ACEOF
4825 if ac_fn_c_try_run "$LINENO"; then :
4827 else
4828 ac_cv_header_stdc=no
4830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4831 conftest.$ac_objext conftest.beam conftest.$ac_ext
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4837 $as_echo "$ac_cv_header_stdc" >&6; }
4838 if test $ac_cv_header_stdc = yes; then
4840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4845 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4846 if ${ac_cv_header_sys_wait_h+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851 #include <sys/types.h>
4852 #include <sys/wait.h>
4853 #ifndef WEXITSTATUS
4854 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4855 #endif
4856 #ifndef WIFEXITED
4857 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4858 #endif
4861 main ()
4863 int s;
4864 wait (&s);
4865 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4867 return 0;
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"; then :
4871 ac_cv_header_sys_wait_h=yes
4872 else
4873 ac_cv_header_sys_wait_h=no
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4878 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4879 if test $ac_cv_header_sys_wait_h = yes; then
4881 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4885 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4886 time.h sys/stat.h wchar.h
4887 do :
4888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4891 cat >>confdefs.h <<_ACEOF
4892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893 _ACEOF
4897 done
4900 # Check whether --enable-werror was given.
4901 if test "${enable_werror+set}" = set; then :
4902 enableval=$enable_werror;
4906 # Add CET specific flags if CET is enabled
4907 # Check whether --enable-cet was given.
4908 if test "${enable_cet+set}" = set; then :
4909 enableval=$enable_cet;
4910 case "$enableval" in
4911 yes|no|auto) ;;
4912 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4913 esac
4915 else
4916 enable_cet=auto
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4921 $as_echo_n "checking for CET support... " >&6; }
4923 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4924 case "$host" in
4925 i[34567]86-*-linux* | x86_64-*-linux*)
4926 case "$enable_cet" in
4927 auto)
4928 # Check if target supports multi-byte NOPs
4929 # and if compiler and assembler support CET insn.
4930 cet_save_CFLAGS="$CFLAGS"
4931 CFLAGS="$CFLAGS -fcf-protection"
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4936 main ()
4939 #if !defined(__SSE2__)
4940 #error target does not support multi-byte NOPs
4941 #else
4942 asm ("setssbsy");
4943 #endif
4946 return 0;
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 enable_cet=yes
4951 else
4952 enable_cet=no
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 CFLAGS="$cet_save_CFLAGS"
4957 yes)
4958 # Check if assembler supports CET.
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4963 main ()
4965 asm ("setssbsy");
4967 return 0;
4969 _ACEOF
4970 if ac_fn_c_try_compile "$LINENO"; then :
4972 else
4973 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 esac
4980 enable_cet=no
4982 esac
4983 if test x$enable_cet = xyes; then
4984 CET_FLAGS="-fcf-protection -mshstk"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4986 $as_echo "yes" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4992 XCFLAGS="$XCFLAGS $CET_FLAGS"
4994 # Check for tools
4995 if test -n "$ac_tool_prefix"; then
4996 for ac_prog in ar lib "link -lib"
4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_AR+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$AR"; then
5006 ac_cv_prog_AR="$AR" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 AR=$ac_cv_prog_AR
5026 if test -n "$AR"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5028 $as_echo "$AR" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 test -n "$AR" && break
5036 done
5038 if test -z "$AR"; then
5039 ac_ct_AR=$AR
5040 for ac_prog in ar lib "link -lib"
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ac_ct_AR"; then
5050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_ac_ct_AR="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5070 if test -n "$ac_ct_AR"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5072 $as_echo "$ac_ct_AR" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$ac_ct_AR" && break
5080 done
5082 if test "x$ac_ct_AR" = x; then
5083 AR="false"
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091 AR=$ac_ct_AR
5095 : ${AR=ar}
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5098 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5099 if ${am_cv_ar_interface+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_ext=c
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108 am_cv_ar_interface=ar
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 int some_variable = 0;
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5116 (eval $am_ar_try) 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 if test "$ac_status" -eq 0; then
5121 am_cv_ar_interface=ar
5122 else
5123 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5125 (eval $am_ar_try) 2>&5
5126 ac_status=$?
5127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5128 test $ac_status = 0; }
5129 if test "$ac_status" -eq 0; then
5130 am_cv_ar_interface=lib
5131 else
5132 am_cv_ar_interface=unknown
5135 rm -f conftest.lib libconftest.a
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 ac_ext=c
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5147 $as_echo "$am_cv_ar_interface" >&6; }
5149 case $am_cv_ar_interface in
5152 lib)
5153 # Microsoft lib, so override with the ar-lib wrapper script.
5154 # FIXME: It is wrong to rewrite AR.
5155 # But if we don't then we get into trouble of one sort or another.
5156 # A longer-term fix would be to have automake use am__AR in this case,
5157 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5158 # similar.
5159 AR="$am_aux_dir/ar-lib $AR"
5161 unknown)
5162 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5164 esac
5166 ac_ext=c
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_CC+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$CC"; then
5180 ac_cv_prog_CC="$CC" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 CC=$ac_cv_prog_CC
5200 if test -n "$CC"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5202 $as_echo "$CC" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_CC"; then
5211 ac_ct_CC=$CC
5212 # Extract the first word of "gcc", so it can be a program name with args.
5213 set dummy gcc; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_CC"; then
5220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_CC="gcc"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5240 if test -n "$ac_ct_CC"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5242 $as_echo "$ac_ct_CC" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_CC" = x; then
5249 CC=""
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 CC=$ac_ct_CC
5259 else
5260 CC="$ac_cv_prog_CC"
5263 if test -z "$CC"; then
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}cc; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_CC+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$CC"; then
5273 ac_cv_prog_CC="$CC" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_CC="${ac_tool_prefix}cc"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 CC=$ac_cv_prog_CC
5293 if test -n "$CC"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5295 $as_echo "$CC" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5304 if test -z "$CC"; then
5305 # Extract the first word of "cc", so it can be a program name with args.
5306 set dummy cc; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_prog_CC+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$CC"; then
5313 ac_cv_prog_CC="$CC" # Let the user override the test.
5314 else
5315 ac_prog_rejected=no
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5324 ac_prog_rejected=yes
5325 continue
5327 ac_cv_prog_CC="cc"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5335 if test $ac_prog_rejected = yes; then
5336 # We found a bogon in the path, so make sure we never use it.
5337 set dummy $ac_cv_prog_CC
5338 shift
5339 if test $# != 0; then
5340 # We chose a different compiler from the bogus one.
5341 # However, it has the same basename, so the bogon will be chosen
5342 # first if we set CC to just the basename; use the full file name.
5343 shift
5344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5349 CC=$ac_cv_prog_CC
5350 if test -n "$CC"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5352 $as_echo "$CC" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5360 if test -z "$CC"; then
5361 if test -n "$ac_tool_prefix"; then
5362 for ac_prog in cl.exe
5364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_CC+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$CC"; then
5372 ac_cv_prog_CC="$CC" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5387 IFS=$as_save_IFS
5391 CC=$ac_cv_prog_CC
5392 if test -n "$CC"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5394 $as_echo "$CC" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5401 test -n "$CC" && break
5402 done
5404 if test -z "$CC"; then
5405 ac_ct_CC=$CC
5406 for ac_prog in cl.exe
5408 # Extract the first word of "$ac_prog", so it can be a program name with args.
5409 set dummy $ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$ac_ct_CC"; then
5416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_ac_ct_CC="$ac_prog"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5436 if test -n "$ac_ct_CC"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5438 $as_echo "$ac_ct_CC" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 test -n "$ac_ct_CC" && break
5446 done
5448 if test "x$ac_ct_CC" = x; then
5449 CC=""
5450 else
5451 case $cross_compiling:$ac_tool_warned in
5452 yes:)
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455 ac_tool_warned=yes ;;
5456 esac
5457 CC=$ac_ct_CC
5464 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5466 as_fn_error $? "no acceptable C compiler found in \$PATH
5467 See \`config.log' for more details" "$LINENO" 5; }
5469 # Provide some information about the compiler.
5470 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5471 set X $ac_compile
5472 ac_compiler=$2
5473 for ac_option in --version -v -V -qversion; do
5474 { { ac_try="$ac_compiler $ac_option >&5"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5480 $as_echo "$ac_try_echo"; } >&5
5481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5482 ac_status=$?
5483 if test -s conftest.err; then
5484 sed '10a\
5485 ... rest of stderr output deleted ...
5486 10q' conftest.err >conftest.er1
5487 cat conftest.er1 >&5
5489 rm -f conftest.er1 conftest.err
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }
5492 done
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5495 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5496 if ${ac_cv_c_compiler_gnu+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5503 main ()
5505 #ifndef __GNUC__
5506 choke me
5507 #endif
5510 return 0;
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"; then :
5514 ac_compiler_gnu=yes
5515 else
5516 ac_compiler_gnu=no
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5523 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5524 if test $ac_compiler_gnu = yes; then
5525 GCC=yes
5526 else
5527 GCC=
5529 ac_test_CFLAGS=${CFLAGS+set}
5530 ac_save_CFLAGS=$CFLAGS
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5532 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5533 if ${ac_cv_prog_cc_g+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 ac_save_c_werror_flag=$ac_c_werror_flag
5537 ac_c_werror_flag=yes
5538 ac_cv_prog_cc_g=no
5539 CFLAGS="-g"
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5544 main ()
5548 return 0;
5550 _ACEOF
5551 if ac_fn_c_try_compile "$LINENO"; then :
5552 ac_cv_prog_cc_g=yes
5553 else
5554 CFLAGS=""
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5559 main ()
5563 return 0;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5568 else
5569 ac_c_werror_flag=$ac_save_c_werror_flag
5570 CFLAGS="-g"
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5575 main ()
5579 return 0;
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_cv_prog_cc_g=yes
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 ac_c_werror_flag=$ac_save_c_werror_flag
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5593 $as_echo "$ac_cv_prog_cc_g" >&6; }
5594 if test "$ac_test_CFLAGS" = set; then
5595 CFLAGS=$ac_save_CFLAGS
5596 elif test $ac_cv_prog_cc_g = yes; then
5597 if test "$GCC" = yes; then
5598 CFLAGS="-g -O2"
5599 else
5600 CFLAGS="-g"
5602 else
5603 if test "$GCC" = yes; then
5604 CFLAGS="-O2"
5605 else
5606 CFLAGS=
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5610 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5611 if ${ac_cv_prog_cc_c89+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 ac_cv_prog_cc_c89=no
5615 ac_save_CC=$CC
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <stdarg.h>
5619 #include <stdio.h>
5620 struct stat;
5621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5622 struct buf { int x; };
5623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5624 static char *e (p, i)
5625 char **p;
5626 int i;
5628 return p[i];
5630 static char *f (char * (*g) (char **, int), char **p, ...)
5632 char *s;
5633 va_list v;
5634 va_start (v,p);
5635 s = g (p, va_arg (v,int));
5636 va_end (v);
5637 return s;
5640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5641 function prototypes and stuff, but not '\xHH' hex character constants.
5642 These don't provoke an error unfortunately, instead are silently treated
5643 as 'x'. The following induces an error, until -std is added to get
5644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5645 array size at least. It's necessary to write '\x00'==0 to get something
5646 that's true only with -std. */
5647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5650 inside strings and character constants. */
5651 #define FOO(x) 'x'
5652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5654 int test (int i, double x);
5655 struct s1 {int (*f) (int a);};
5656 struct s2 {int (*f) (double a);};
5657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5658 int argc;
5659 char **argv;
5661 main ()
5663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5665 return 0;
5667 _ACEOF
5668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5671 CC="$ac_save_CC $ac_arg"
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_prog_cc_c89=$ac_arg
5675 rm -f core conftest.err conftest.$ac_objext
5676 test "x$ac_cv_prog_cc_c89" != "xno" && break
5677 done
5678 rm -f conftest.$ac_ext
5679 CC=$ac_save_CC
5682 # AC_CACHE_VAL
5683 case "x$ac_cv_prog_cc_c89" in
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5686 $as_echo "none needed" >&6; } ;;
5687 xno)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5689 $as_echo "unsupported" >&6; } ;;
5691 CC="$CC $ac_cv_prog_cc_c89"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5694 esac
5695 if test "x$ac_cv_prog_cc_c89" != xno; then :
5699 ac_ext=c
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5711 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5712 if ${am_cv_prog_cc_c_o+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5719 main ()
5723 return 0;
5725 _ACEOF
5726 # Make sure it works both with $CC and with simple cc.
5727 # Following AC_PROG_CC_C_O, we do the test twice because some
5728 # compilers refuse to overwrite an existing .o file with -o,
5729 # though they will create one.
5730 am_cv_prog_cc_c_o=yes
5731 for am_i in 1 2; do
5732 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5733 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } \
5737 && test -f conftest2.$ac_objext; then
5738 : OK
5739 else
5740 am_cv_prog_cc_c_o=no
5741 break
5743 done
5744 rm -f core conftest*
5745 unset am_i
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5748 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5749 if test "$am_cv_prog_cc_c_o" != yes; then
5750 # Losing compiler, so override with the script.
5751 # FIXME: It is wrong to rewrite CC.
5752 # But if we don't then we get into trouble of one sort or another.
5753 # A longer-term fix would be to have automake use am__CC in this case,
5754 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5755 CC="$am_aux_dir/compile $CC"
5757 ac_ext=c
5758 ac_cpp='$CPP $CPPFLAGS'
5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5764 depcc="$CC" am_compiler_list=
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5767 $as_echo_n "checking dependency style of $depcc... " >&6; }
5768 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5772 # We make a subdir and do the tests there. Otherwise we can end up
5773 # making bogus files that we don't know about and never remove. For
5774 # instance it was reported that on HP-UX the gcc test will end up
5775 # making a dummy file named 'D' -- because '-MD' means "put the output
5776 # in D".
5777 rm -rf conftest.dir
5778 mkdir conftest.dir
5779 # Copy depcomp to subdir because otherwise we won't find it if we're
5780 # using a relative directory.
5781 cp "$am_depcomp" conftest.dir
5782 cd conftest.dir
5783 # We will build objects and dependencies in a subdirectory because
5784 # it helps to detect inapplicable dependency modes. For instance
5785 # both Tru64's cc and ICC support -MD to output dependencies as a
5786 # side effect of compilation, but ICC will put the dependencies in
5787 # the current directory while Tru64 will put them in the object
5788 # directory.
5789 mkdir sub
5791 am_cv_CC_dependencies_compiler_type=none
5792 if test "$am_compiler_list" = ""; then
5793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5795 am__universal=false
5796 case " $depcc " in #(
5797 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5798 esac
5800 for depmode in $am_compiler_list; do
5801 # Setup a source with many dependencies, because some compilers
5802 # like to wrap large dependency lists on column 80 (with \), and
5803 # we should not choose a depcomp mode which is confused by this.
5805 # We need to recreate these files for each test, as the compiler may
5806 # overwrite some of them when testing with obscure command lines.
5807 # This happens at least with the AIX C compiler.
5808 : > sub/conftest.c
5809 for i in 1 2 3 4 5 6; do
5810 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5811 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5812 # Solaris 10 /bin/sh.
5813 echo '/* dummy */' > sub/conftst$i.h
5814 done
5815 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5817 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5818 # mode. It turns out that the SunPro C++ compiler does not properly
5819 # handle '-M -o', and we need to detect this. Also, some Intel
5820 # versions had trouble with output in subdirs.
5821 am__obj=sub/conftest.${OBJEXT-o}
5822 am__minus_obj="-o $am__obj"
5823 case $depmode in
5824 gcc)
5825 # This depmode causes a compiler race in universal mode.
5826 test "$am__universal" = false || continue
5828 nosideeffect)
5829 # After this tag, mechanisms are not by side-effect, so they'll
5830 # only be used when explicitly requested.
5831 if test "x$enable_dependency_tracking" = xyes; then
5832 continue
5833 else
5834 break
5837 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5838 # This compiler won't grok '-c -o', but also, the minuso test has
5839 # not run yet. These depmodes are late enough in the game, and
5840 # so weak that their functioning should not be impacted.
5841 am__obj=conftest.${OBJEXT-o}
5842 am__minus_obj=
5844 none) break ;;
5845 esac
5846 if depmode=$depmode \
5847 source=sub/conftest.c object=$am__obj \
5848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5849 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5850 >/dev/null 2>conftest.err &&
5851 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5852 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5853 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5854 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5855 # icc doesn't choke on unknown options, it will just issue warnings
5856 # or remarks (even with -Werror). So we grep stderr for any message
5857 # that says an option was ignored or not supported.
5858 # When given -MP, icc 7.0 and 7.1 complain thusly:
5859 # icc: Command line warning: ignoring option '-M'; no argument required
5860 # The diagnosis changed in icc 8.0:
5861 # icc: Command line remark: option '-MP' not supported
5862 if (grep 'ignoring option' conftest.err ||
5863 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5864 am_cv_CC_dependencies_compiler_type=$depmode
5865 break
5868 done
5870 cd ..
5871 rm -rf conftest.dir
5872 else
5873 am_cv_CC_dependencies_compiler_type=none
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5878 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5879 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5882 test "x$enable_dependency_tracking" != xno \
5883 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5884 am__fastdepCC_TRUE=
5885 am__fastdepCC_FALSE='#'
5886 else
5887 am__fastdepCC_TRUE='#'
5888 am__fastdepCC_FALSE=
5892 ac_ext=cpp
5893 ac_cpp='$CXXCPP $CPPFLAGS'
5894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5897 if test -z "$CXX"; then
5898 if test -n "$CCC"; then
5899 CXX=$CCC
5900 else
5901 if test -n "$ac_tool_prefix"; then
5902 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_CXX+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$CXX"; then
5912 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5925 done
5926 done
5927 IFS=$as_save_IFS
5931 CXX=$ac_cv_prog_CXX
5932 if test -n "$CXX"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5934 $as_echo "$CXX" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5941 test -n "$CXX" && break
5942 done
5944 if test -z "$CXX"; then
5945 ac_ct_CXX=$CXX
5946 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5948 # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$ac_ct_CXX"; then
5956 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_CXX="$ac_prog"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5969 done
5970 done
5971 IFS=$as_save_IFS
5975 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5976 if test -n "$ac_ct_CXX"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5978 $as_echo "$ac_ct_CXX" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5985 test -n "$ac_ct_CXX" && break
5986 done
5988 if test "x$ac_ct_CXX" = x; then
5989 CXX="g++"
5990 else
5991 case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 ac_tool_warned=yes ;;
5996 esac
5997 CXX=$ac_ct_CXX
6003 # Provide some information about the compiler.
6004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6005 set X $ac_compile
6006 ac_compiler=$2
6007 for ac_option in --version -v -V -qversion; do
6008 { { ac_try="$ac_compiler $ac_option >&5"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6014 $as_echo "$ac_try_echo"; } >&5
6015 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6016 ac_status=$?
6017 if test -s conftest.err; then
6018 sed '10a\
6019 ... rest of stderr output deleted ...
6020 10q' conftest.err >conftest.er1
6021 cat conftest.er1 >&5
6023 rm -f conftest.er1 conftest.err
6024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025 test $ac_status = 0; }
6026 done
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6029 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6030 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6037 main ()
6039 #ifndef __GNUC__
6040 choke me
6041 #endif
6044 return 0;
6046 _ACEOF
6047 if ac_fn_cxx_try_compile "$LINENO"; then :
6048 ac_compiler_gnu=yes
6049 else
6050 ac_compiler_gnu=no
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6057 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6058 if test $ac_compiler_gnu = yes; then
6059 GXX=yes
6060 else
6061 GXX=
6063 ac_test_CXXFLAGS=${CXXFLAGS+set}
6064 ac_save_CXXFLAGS=$CXXFLAGS
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6066 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6067 if ${ac_cv_prog_cxx_g+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6071 ac_cxx_werror_flag=yes
6072 ac_cv_prog_cxx_g=no
6073 CXXFLAGS="-g"
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6078 main ()
6082 return 0;
6084 _ACEOF
6085 if ac_fn_cxx_try_compile "$LINENO"; then :
6086 ac_cv_prog_cxx_g=yes
6087 else
6088 CXXFLAGS=""
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6093 main ()
6097 return 0;
6099 _ACEOF
6100 if ac_fn_cxx_try_compile "$LINENO"; then :
6102 else
6103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6104 CXXFLAGS="-g"
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6109 main ()
6113 return 0;
6115 _ACEOF
6116 if ac_fn_cxx_try_compile "$LINENO"; then :
6117 ac_cv_prog_cxx_g=yes
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6127 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6128 if test "$ac_test_CXXFLAGS" = set; then
6129 CXXFLAGS=$ac_save_CXXFLAGS
6130 elif test $ac_cv_prog_cxx_g = yes; then
6131 if test "$GXX" = yes; then
6132 CXXFLAGS="-g -O2"
6133 else
6134 CXXFLAGS="-g"
6136 else
6137 if test "$GXX" = yes; then
6138 CXXFLAGS="-O2"
6139 else
6140 CXXFLAGS=
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 depcc="$CXX" am_compiler_list=
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6152 $as_echo_n "checking dependency style of $depcc... " >&6; }
6153 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6157 # We make a subdir and do the tests there. Otherwise we can end up
6158 # making bogus files that we don't know about and never remove. For
6159 # instance it was reported that on HP-UX the gcc test will end up
6160 # making a dummy file named 'D' -- because '-MD' means "put the output
6161 # in D".
6162 rm -rf conftest.dir
6163 mkdir conftest.dir
6164 # Copy depcomp to subdir because otherwise we won't find it if we're
6165 # using a relative directory.
6166 cp "$am_depcomp" conftest.dir
6167 cd conftest.dir
6168 # We will build objects and dependencies in a subdirectory because
6169 # it helps to detect inapplicable dependency modes. For instance
6170 # both Tru64's cc and ICC support -MD to output dependencies as a
6171 # side effect of compilation, but ICC will put the dependencies in
6172 # the current directory while Tru64 will put them in the object
6173 # directory.
6174 mkdir sub
6176 am_cv_CXX_dependencies_compiler_type=none
6177 if test "$am_compiler_list" = ""; then
6178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6180 am__universal=false
6181 case " $depcc " in #(
6182 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6183 esac
6185 for depmode in $am_compiler_list; do
6186 # Setup a source with many dependencies, because some compilers
6187 # like to wrap large dependency lists on column 80 (with \), and
6188 # we should not choose a depcomp mode which is confused by this.
6190 # We need to recreate these files for each test, as the compiler may
6191 # overwrite some of them when testing with obscure command lines.
6192 # This happens at least with the AIX C compiler.
6193 : > sub/conftest.c
6194 for i in 1 2 3 4 5 6; do
6195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6196 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6197 # Solaris 10 /bin/sh.
6198 echo '/* dummy */' > sub/conftst$i.h
6199 done
6200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6202 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6203 # mode. It turns out that the SunPro C++ compiler does not properly
6204 # handle '-M -o', and we need to detect this. Also, some Intel
6205 # versions had trouble with output in subdirs.
6206 am__obj=sub/conftest.${OBJEXT-o}
6207 am__minus_obj="-o $am__obj"
6208 case $depmode in
6209 gcc)
6210 # This depmode causes a compiler race in universal mode.
6211 test "$am__universal" = false || continue
6213 nosideeffect)
6214 # After this tag, mechanisms are not by side-effect, so they'll
6215 # only be used when explicitly requested.
6216 if test "x$enable_dependency_tracking" = xyes; then
6217 continue
6218 else
6219 break
6222 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6223 # This compiler won't grok '-c -o', but also, the minuso test has
6224 # not run yet. These depmodes are late enough in the game, and
6225 # so weak that their functioning should not be impacted.
6226 am__obj=conftest.${OBJEXT-o}
6227 am__minus_obj=
6229 none) break ;;
6230 esac
6231 if depmode=$depmode \
6232 source=sub/conftest.c object=$am__obj \
6233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6235 >/dev/null 2>conftest.err &&
6236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6240 # icc doesn't choke on unknown options, it will just issue warnings
6241 # or remarks (even with -Werror). So we grep stderr for any message
6242 # that says an option was ignored or not supported.
6243 # When given -MP, icc 7.0 and 7.1 complain thusly:
6244 # icc: Command line warning: ignoring option '-M'; no argument required
6245 # The diagnosis changed in icc 8.0:
6246 # icc: Command line remark: option '-MP' not supported
6247 if (grep 'ignoring option' conftest.err ||
6248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6249 am_cv_CXX_dependencies_compiler_type=$depmode
6250 break
6253 done
6255 cd ..
6256 rm -rf conftest.dir
6257 else
6258 am_cv_CXX_dependencies_compiler_type=none
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6263 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6264 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6267 test "x$enable_dependency_tracking" != xno \
6268 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6269 am__fastdepCXX_TRUE=
6270 am__fastdepCXX_FALSE='#'
6271 else
6272 am__fastdepCXX_TRUE='#'
6273 am__fastdepCXX_FALSE=
6277 # By default we simply use the C compiler to build assembly code.
6279 test "${CCAS+set}" = set || CCAS=$CC
6280 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6284 depcc="$CCAS" am_compiler_list=
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6287 $as_echo_n "checking dependency style of $depcc... " >&6; }
6288 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6292 # We make a subdir and do the tests there. Otherwise we can end up
6293 # making bogus files that we don't know about and never remove. For
6294 # instance it was reported that on HP-UX the gcc test will end up
6295 # making a dummy file named 'D' -- because '-MD' means "put the output
6296 # in D".
6297 rm -rf conftest.dir
6298 mkdir conftest.dir
6299 # Copy depcomp to subdir because otherwise we won't find it if we're
6300 # using a relative directory.
6301 cp "$am_depcomp" conftest.dir
6302 cd conftest.dir
6303 # We will build objects and dependencies in a subdirectory because
6304 # it helps to detect inapplicable dependency modes. For instance
6305 # both Tru64's cc and ICC support -MD to output dependencies as a
6306 # side effect of compilation, but ICC will put the dependencies in
6307 # the current directory while Tru64 will put them in the object
6308 # directory.
6309 mkdir sub
6311 am_cv_CCAS_dependencies_compiler_type=none
6312 if test "$am_compiler_list" = ""; then
6313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6315 am__universal=false
6318 for depmode in $am_compiler_list; do
6319 # Setup a source with many dependencies, because some compilers
6320 # like to wrap large dependency lists on column 80 (with \), and
6321 # we should not choose a depcomp mode which is confused by this.
6323 # We need to recreate these files for each test, as the compiler may
6324 # overwrite some of them when testing with obscure command lines.
6325 # This happens at least with the AIX C compiler.
6326 : > sub/conftest.c
6327 for i in 1 2 3 4 5 6; do
6328 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6329 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6330 # Solaris 10 /bin/sh.
6331 echo '/* dummy */' > sub/conftst$i.h
6332 done
6333 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6335 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6336 # mode. It turns out that the SunPro C++ compiler does not properly
6337 # handle '-M -o', and we need to detect this. Also, some Intel
6338 # versions had trouble with output in subdirs.
6339 am__obj=sub/conftest.${OBJEXT-o}
6340 am__minus_obj="-o $am__obj"
6341 case $depmode in
6342 gcc)
6343 # This depmode causes a compiler race in universal mode.
6344 test "$am__universal" = false || continue
6346 nosideeffect)
6347 # After this tag, mechanisms are not by side-effect, so they'll
6348 # only be used when explicitly requested.
6349 if test "x$enable_dependency_tracking" = xyes; then
6350 continue
6351 else
6352 break
6355 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6356 # This compiler won't grok '-c -o', but also, the minuso test has
6357 # not run yet. These depmodes are late enough in the game, and
6358 # so weak that their functioning should not be impacted.
6359 am__obj=conftest.${OBJEXT-o}
6360 am__minus_obj=
6362 none) break ;;
6363 esac
6364 if depmode=$depmode \
6365 source=sub/conftest.c object=$am__obj \
6366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6367 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6368 >/dev/null 2>conftest.err &&
6369 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6371 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6373 # icc doesn't choke on unknown options, it will just issue warnings
6374 # or remarks (even with -Werror). So we grep stderr for any message
6375 # that says an option was ignored or not supported.
6376 # When given -MP, icc 7.0 and 7.1 complain thusly:
6377 # icc: Command line warning: ignoring option '-M'; no argument required
6378 # The diagnosis changed in icc 8.0:
6379 # icc: Command line remark: option '-MP' not supported
6380 if (grep 'ignoring option' conftest.err ||
6381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6382 am_cv_CCAS_dependencies_compiler_type=$depmode
6383 break
6386 done
6388 cd ..
6389 rm -rf conftest.dir
6390 else
6391 am_cv_CCAS_dependencies_compiler_type=none
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6396 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6397 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6400 test "x$enable_dependency_tracking" != xno \
6401 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6402 am__fastdepCCAS_TRUE=
6403 am__fastdepCCAS_FALSE='#'
6404 else
6405 am__fastdepCCAS_TRUE='#'
6406 am__fastdepCCAS_FALSE=
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6412 set x ${MAKE-make}
6413 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6414 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 cat >conftest.make <<\_ACEOF
6418 SHELL = /bin/sh
6419 all:
6420 @echo '@@@%%%=$(MAKE)=@@@%%%'
6421 _ACEOF
6422 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6424 *@@@%%%=?*=@@@%%%*)
6425 eval ac_cv_prog_make_${ac_make}_set=yes;;
6427 eval ac_cv_prog_make_${ac_make}_set=no;;
6428 esac
6429 rm -f conftest.make
6431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6433 $as_echo "yes" >&6; }
6434 SET_MAKE=
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 SET_MAKE="MAKE=${MAKE-make}"
6443 # Enable libtool
6444 case `pwd` in
6445 *\ * | *\ *)
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6447 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6448 esac
6452 macro_version='2.2.7a'
6453 macro_revision='1.3134'
6467 ltmain="$ac_aux_dir/ltmain.sh"
6469 # Backslashify metacharacters that are still active within
6470 # double-quoted strings.
6471 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6473 # Same as above, but do not quote variable references.
6474 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6476 # Sed substitution to delay expansion of an escaped shell variable in a
6477 # double_quote_subst'ed string.
6478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6480 # Sed substitution to delay expansion of an escaped single quote.
6481 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6483 # Sed substitution to avoid accidental globbing in evaled expressions
6484 no_glob_subst='s/\*/\\\*/g'
6486 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6487 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6488 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6491 $as_echo_n "checking how to print strings... " >&6; }
6492 # Test print first, because it will be a builtin if present.
6493 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6494 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6495 ECHO='print -r --'
6496 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6497 ECHO='printf %s\n'
6498 else
6499 # Use this function as a fallback that always works.
6500 func_fallback_echo ()
6502 eval 'cat <<_LTECHO_EOF
6504 _LTECHO_EOF'
6506 ECHO='func_fallback_echo'
6509 # func_echo_all arg...
6510 # Invoke $ECHO with all args, space-separated.
6511 func_echo_all ()
6513 $ECHO ""
6516 case "$ECHO" in
6517 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6518 $as_echo "printf" >&6; } ;;
6519 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6520 $as_echo "print -r" >&6; } ;;
6521 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6522 $as_echo "cat" >&6; } ;;
6523 esac
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6539 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6540 if ${ac_cv_path_SED+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6544 for ac_i in 1 2 3 4 5 6 7; do
6545 ac_script="$ac_script$as_nl$ac_script"
6546 done
6547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6548 { ac_script=; unset ac_script;}
6549 if test -z "$SED"; then
6550 ac_path_SED_found=false
6551 # Loop through the user's path and test for each of PROGNAME-LIST
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_prog in sed gsed; do
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6560 as_fn_executable_p "$ac_path_SED" || continue
6561 # Check for GNU ac_path_SED and select it if it is found.
6562 # Check for GNU $ac_path_SED
6563 case `"$ac_path_SED" --version 2>&1` in
6564 *GNU*)
6565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6567 ac_count=0
6568 $as_echo_n 0123456789 >"conftest.in"
6569 while :
6571 cat "conftest.in" "conftest.in" >"conftest.tmp"
6572 mv "conftest.tmp" "conftest.in"
6573 cp "conftest.in" "conftest.nl"
6574 $as_echo '' >> "conftest.nl"
6575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6577 as_fn_arith $ac_count + 1 && ac_count=$as_val
6578 if test $ac_count -gt ${ac_path_SED_max-0}; then
6579 # Best one so far, save it but keep looking for a better one
6580 ac_cv_path_SED="$ac_path_SED"
6581 ac_path_SED_max=$ac_count
6583 # 10*(2^10) chars as input seems more than enough
6584 test $ac_count -gt 10 && break
6585 done
6586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6587 esac
6589 $ac_path_SED_found && break 3
6590 done
6591 done
6592 done
6593 IFS=$as_save_IFS
6594 if test -z "$ac_cv_path_SED"; then
6595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6597 else
6598 ac_cv_path_SED=$SED
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6603 $as_echo "$ac_cv_path_SED" >&6; }
6604 SED="$ac_cv_path_SED"
6605 rm -f conftest.sed
6607 test -z "$SED" && SED=sed
6608 Xsed="$SED -e 1s/^X//"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6621 $as_echo_n "checking for fgrep... " >&6; }
6622 if ${ac_cv_path_FGREP+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6626 then ac_cv_path_FGREP="$GREP -F"
6627 else
6628 if test -z "$FGREP"; then
6629 ac_path_FGREP_found=false
6630 # Loop through the user's path and test for each of PROGNAME-LIST
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_prog in fgrep; do
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6639 as_fn_executable_p "$ac_path_FGREP" || continue
6640 # Check for GNU ac_path_FGREP and select it if it is found.
6641 # Check for GNU $ac_path_FGREP
6642 case `"$ac_path_FGREP" --version 2>&1` in
6643 *GNU*)
6644 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6646 ac_count=0
6647 $as_echo_n 0123456789 >"conftest.in"
6648 while :
6650 cat "conftest.in" "conftest.in" >"conftest.tmp"
6651 mv "conftest.tmp" "conftest.in"
6652 cp "conftest.in" "conftest.nl"
6653 $as_echo 'FGREP' >> "conftest.nl"
6654 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6656 as_fn_arith $ac_count + 1 && ac_count=$as_val
6657 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6658 # Best one so far, save it but keep looking for a better one
6659 ac_cv_path_FGREP="$ac_path_FGREP"
6660 ac_path_FGREP_max=$ac_count
6662 # 10*(2^10) chars as input seems more than enough
6663 test $ac_count -gt 10 && break
6664 done
6665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6666 esac
6668 $ac_path_FGREP_found && break 3
6669 done
6670 done
6671 done
6672 IFS=$as_save_IFS
6673 if test -z "$ac_cv_path_FGREP"; then
6674 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6676 else
6677 ac_cv_path_FGREP=$FGREP
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6683 $as_echo "$ac_cv_path_FGREP" >&6; }
6684 FGREP="$ac_cv_path_FGREP"
6687 test -z "$GREP" && GREP=grep
6707 # Check whether --with-gnu-ld was given.
6708 if test "${with_gnu_ld+set}" = set; then :
6709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6710 else
6711 with_gnu_ld=no
6714 ac_prog=ld
6715 if test "$GCC" = yes; then
6716 # Check if gcc -print-prog-name=ld gives a path.
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6718 $as_echo_n "checking for ld used by $CC... " >&6; }
6719 case $host in
6720 *-*-mingw*)
6721 # gcc leaves a trailing carriage return which upsets mingw
6722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6725 esac
6726 case $ac_prog in
6727 # Accept absolute paths.
6728 [\\/]* | ?:[\\/]*)
6729 re_direlt='/[^/][^/]*/\.\./'
6730 # Canonicalize the pathname of ld
6731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6734 done
6735 test -z "$LD" && LD="$ac_prog"
6738 # If it fails, then pretend we aren't using GCC.
6739 ac_prog=ld
6742 # If it is relative, then search for the first ld in PATH.
6743 with_gnu_ld=unknown
6745 esac
6746 elif test "$with_gnu_ld" = yes; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6748 $as_echo_n "checking for GNU ld... " >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6751 $as_echo_n "checking for non-GNU ld... " >&6; }
6753 if ${lt_cv_path_LD+:} false; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 if test -z "$LD"; then
6757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6758 for ac_dir in $PATH; do
6759 IFS="$lt_save_ifs"
6760 test -z "$ac_dir" && ac_dir=.
6761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6762 lt_cv_path_LD="$ac_dir/$ac_prog"
6763 # Check to see if the program is GNU ld. I'd rather use --version,
6764 # but apparently some variants of GNU ld only accept -v.
6765 # Break only if it was the GNU/non-GNU ld that we prefer.
6766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6767 *GNU* | *'with BFD'*)
6768 test "$with_gnu_ld" != no && break
6771 test "$with_gnu_ld" != yes && break
6773 esac
6775 done
6776 IFS="$lt_save_ifs"
6777 else
6778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6782 LD="$lt_cv_path_LD"
6783 if test -n "$LD"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6785 $as_echo "$LD" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6790 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6792 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6793 if ${lt_cv_prog_gnu_ld+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6797 case `$LD -v 2>&1 </dev/null` in
6798 *GNU* | *'with BFD'*)
6799 lt_cv_prog_gnu_ld=yes
6802 lt_cv_prog_gnu_ld=no
6804 esac
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6807 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6808 with_gnu_ld=$lt_cv_prog_gnu_ld
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6819 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6820 if ${lt_cv_path_NM+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$NM"; then
6824 # Let the user override the nm to test.
6825 lt_nm_to_check="$NM"
6826 else
6827 lt_nm_to_check="${ac_tool_prefix}nm"
6828 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6829 lt_nm_to_check="$lt_nm_to_check nm"
6832 for lt_tmp_nm in "$lt_nm_to_check"; do
6833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6834 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6835 IFS="$lt_save_ifs"
6836 test -z "$ac_dir" && ac_dir=.
6837 # Strip out any user-provided options from the nm to test twice,
6838 # the first time to test to see if nm (rather than its options) has
6839 # an explicit path, the second time to yield a file which can be
6840 # nm'ed itself.
6841 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6842 case "$tmp_nm_path" in
6843 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6844 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6845 esac
6846 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6847 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6848 # Check to see if the nm accepts a BSD-compat flag.
6849 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6850 # nm: unknown option "B" ignored
6851 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6852 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6853 break
6856 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6857 *$tmp_nm*)
6858 lt_cv_path_NM="$tmp_nm -p"
6859 break
6862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6863 continue # so that we can try to find one that supports BSD flags
6865 esac
6867 esac
6869 done
6870 IFS="$lt_save_ifs"
6871 done
6872 : ${lt_cv_path_NM=no}
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6875 $as_echo "$lt_cv_path_NM" >&6; }
6876 if test "$lt_cv_path_NM" != "no"; then
6877 NM="$lt_cv_path_NM"
6878 else
6879 # Didn't find any BSD compatible name lister, look for dumpbin.
6880 if test -n "$DUMPBIN"; then :
6881 # Let the user override the test.
6882 else
6883 if test -n "$ac_tool_prefix"; then
6884 for ac_prog in dumpbin "link -dump"
6886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_DUMPBIN+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$DUMPBIN"; then
6894 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6907 done
6908 done
6909 IFS=$as_save_IFS
6913 DUMPBIN=$ac_cv_prog_DUMPBIN
6914 if test -n "$DUMPBIN"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6916 $as_echo "$DUMPBIN" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6923 test -n "$DUMPBIN" && break
6924 done
6926 if test -z "$DUMPBIN"; then
6927 ac_ct_DUMPBIN=$DUMPBIN
6928 for ac_prog in dumpbin "link -dump"
6930 # Extract the first word of "$ac_prog", so it can be a program name with args.
6931 set dummy $ac_prog; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_DUMPBIN"; then
6938 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6957 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6958 if test -n "$ac_ct_DUMPBIN"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6960 $as_echo "$ac_ct_DUMPBIN" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6967 test -n "$ac_ct_DUMPBIN" && break
6968 done
6970 if test "x$ac_ct_DUMPBIN" = x; then
6971 DUMPBIN=":"
6972 else
6973 case $cross_compiling:$ac_tool_warned in
6974 yes:)
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6978 esac
6979 DUMPBIN=$ac_ct_DUMPBIN
6983 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6984 *COFF*)
6985 DUMPBIN="$DUMPBIN -symbols"
6988 DUMPBIN=:
6990 esac
6993 if test "$DUMPBIN" != ":"; then
6994 NM="$DUMPBIN"
6997 test -z "$NM" && NM=nm
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7005 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7006 if ${lt_cv_nm_interface+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 lt_cv_nm_interface="BSD nm"
7010 echo "int some_variable = 0;" > conftest.$ac_ext
7011 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7012 (eval "$ac_compile" 2>conftest.err)
7013 cat conftest.err >&5
7014 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7015 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7016 cat conftest.err >&5
7017 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7018 cat conftest.out >&5
7019 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7020 lt_cv_nm_interface="MS dumpbin"
7022 rm -f conftest*
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7025 $as_echo "$lt_cv_nm_interface" >&6; }
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7028 $as_echo_n "checking whether ln -s works... " >&6; }
7029 LN_S=$as_ln_s
7030 if test "$LN_S" = "ln -s"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7032 $as_echo "yes" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7035 $as_echo "no, using $LN_S" >&6; }
7038 # find the maximum length of command line arguments
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7040 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7041 if ${lt_cv_sys_max_cmd_len+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7045 teststring="ABCD"
7047 case $build_os in
7048 msdosdjgpp*)
7049 # On DJGPP, this test can blow up pretty badly due to problems in libc
7050 # (any single argument exceeding 2000 bytes causes a buffer overrun
7051 # during glob expansion). Even if it were fixed, the result of this
7052 # check would be larger than it should be.
7053 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7056 gnu*)
7057 # Under GNU Hurd, this test is not required because there is
7058 # no limit to the length of command line arguments.
7059 # Libtool will interpret -1 as no limit whatsoever
7060 lt_cv_sys_max_cmd_len=-1;
7063 cygwin* | mingw* | cegcc*)
7064 # On Win9x/ME, this test blows up -- it succeeds, but takes
7065 # about 5 minutes as the teststring grows exponentially.
7066 # Worse, since 9x/ME are not pre-emptively multitasking,
7067 # you end up with a "frozen" computer, even though with patience
7068 # the test eventually succeeds (with a max line length of 256k).
7069 # Instead, let's just punt: use the minimum linelength reported by
7070 # all of the supported platforms: 8192 (on NT/2K/XP).
7071 lt_cv_sys_max_cmd_len=8192;
7074 mint*)
7075 # On MiNT this can take a long time and run out of memory.
7076 lt_cv_sys_max_cmd_len=8192;
7079 amigaos*)
7080 # On AmigaOS with pdksh, this test takes hours, literally.
7081 # So we just punt and use a minimum line length of 8192.
7082 lt_cv_sys_max_cmd_len=8192;
7085 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7086 # This has been around since 386BSD, at least. Likely further.
7087 if test -x /sbin/sysctl; then
7088 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7089 elif test -x /usr/sbin/sysctl; then
7090 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7091 else
7092 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7094 # And add a safety zone
7095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7099 interix*)
7100 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7101 lt_cv_sys_max_cmd_len=196608
7104 osf*)
7105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7107 # nice to cause kernel panics so lets avoid the loop below.
7108 # First set a reasonable default.
7109 lt_cv_sys_max_cmd_len=16384
7111 if test -x /sbin/sysconfig; then
7112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7113 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7114 esac
7117 sco3.2v5*)
7118 lt_cv_sys_max_cmd_len=102400
7120 sysv5* | sco5v6* | sysv4.2uw2*)
7121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7122 if test -n "$kargmax"; then
7123 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7124 else
7125 lt_cv_sys_max_cmd_len=32768
7129 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7130 if test -n "$lt_cv_sys_max_cmd_len"; then
7131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7133 else
7134 # Make teststring a little bigger before we do anything with it.
7135 # a 1K string should be a reasonable start.
7136 for i in 1 2 3 4 5 6 7 8 ; do
7137 teststring=$teststring$teststring
7138 done
7139 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7140 # If test is not a shell built-in, we'll probably end up computing a
7141 # maximum length that is only half of the actual maximum length, but
7142 # we can't tell.
7143 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7144 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7145 test $i != 17 # 1/2 MB should be enough
7147 i=`expr $i + 1`
7148 teststring=$teststring$teststring
7149 done
7150 # Only check the string length outside the loop.
7151 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7152 teststring=
7153 # Add a significant safety factor because C++ compilers can tack on
7154 # massive amounts of additional arguments before passing them to the
7155 # linker. It appears as though 1/2 is a usable value.
7156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7159 esac
7163 if test -n $lt_cv_sys_max_cmd_len ; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7165 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7168 $as_echo "none" >&6; }
7170 max_cmd_len=$lt_cv_sys_max_cmd_len
7177 : ${CP="cp -f"}
7178 : ${MV="mv -f"}
7179 : ${RM="rm -f"}
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7182 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7183 # Try some XSI features
7184 xsi_shell=no
7185 ( _lt_dummy="a/b/c"
7186 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7187 = c,a/b,, \
7188 && eval 'test $(( 1 + 1 )) -eq 2 \
7189 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7190 && xsi_shell=yes
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7192 $as_echo "$xsi_shell" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7196 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7197 lt_shell_append=no
7198 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7199 >/dev/null 2>&1 \
7200 && lt_shell_append=yes
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7202 $as_echo "$lt_shell_append" >&6; }
7205 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7206 lt_unset=unset
7207 else
7208 lt_unset=false
7215 # test EBCDIC or ASCII
7216 case `echo X|tr X '\101'` in
7217 A) # ASCII based system
7218 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7219 lt_SP2NL='tr \040 \012'
7220 lt_NL2SP='tr \015\012 \040\040'
7222 *) # EBCDIC based system
7223 lt_SP2NL='tr \100 \n'
7224 lt_NL2SP='tr \r\n \100\100'
7226 esac
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7237 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7238 if ${lt_cv_ld_reload_flag+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 lt_cv_ld_reload_flag='-r'
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7244 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7245 reload_flag=$lt_cv_ld_reload_flag
7246 case $reload_flag in
7247 "" | " "*) ;;
7248 *) reload_flag=" $reload_flag" ;;
7249 esac
7250 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7251 case $host_os in
7252 darwin*)
7253 if test "$GCC" = yes; then
7254 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7255 else
7256 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7259 esac
7269 if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_OBJDUMP+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$OBJDUMP"; then
7278 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7291 done
7292 done
7293 IFS=$as_save_IFS
7297 OBJDUMP=$ac_cv_prog_OBJDUMP
7298 if test -n "$OBJDUMP"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7300 $as_echo "$OBJDUMP" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7308 if test -z "$ac_cv_prog_OBJDUMP"; then
7309 ac_ct_OBJDUMP=$OBJDUMP
7310 # Extract the first word of "objdump", so it can be a program name with args.
7311 set dummy objdump; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$ac_ct_OBJDUMP"; then
7318 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7331 done
7332 done
7333 IFS=$as_save_IFS
7337 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7338 if test -n "$ac_ct_OBJDUMP"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7340 $as_echo "$ac_ct_OBJDUMP" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7346 if test "x$ac_ct_OBJDUMP" = x; then
7347 OBJDUMP="false"
7348 else
7349 case $cross_compiling:$ac_tool_warned in
7350 yes:)
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7353 ac_tool_warned=yes ;;
7354 esac
7355 OBJDUMP=$ac_ct_OBJDUMP
7357 else
7358 OBJDUMP="$ac_cv_prog_OBJDUMP"
7361 test -z "$OBJDUMP" && OBJDUMP=objdump
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7372 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7373 if ${lt_cv_deplibs_check_method+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 lt_cv_file_magic_cmd='$MAGIC_CMD'
7377 lt_cv_file_magic_test_file=
7378 lt_cv_deplibs_check_method='unknown'
7379 # Need to set the preceding variable on all platforms that support
7380 # interlibrary dependencies.
7381 # 'none' -- dependencies not supported.
7382 # `unknown' -- same as none, but documents that we really don't know.
7383 # 'pass_all' -- all dependencies passed with no checks.
7384 # 'test_compile' -- check by making test program.
7385 # 'file_magic [[regex]]' -- check by looking for files in library path
7386 # which responds to the $file_magic_cmd with a given extended regex.
7387 # If you have `file' or equivalent on your system and you're not sure
7388 # whether `pass_all' will *always* work, you probably want this one.
7390 case $host_os in
7391 aix[4-9]*)
7392 lt_cv_deplibs_check_method=pass_all
7395 beos*)
7396 lt_cv_deplibs_check_method=pass_all
7399 bsdi[45]*)
7400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7401 lt_cv_file_magic_cmd='/usr/bin/file -L'
7402 lt_cv_file_magic_test_file=/shlib/libc.so
7405 cygwin*)
7406 # func_win32_libid is a shell function defined in ltmain.sh
7407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7408 lt_cv_file_magic_cmd='func_win32_libid'
7411 mingw* | pw32*)
7412 # Base MSYS/MinGW do not provide the 'file' command needed by
7413 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7414 # unless we find 'file', for example because we are cross-compiling.
7415 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7416 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7417 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7418 lt_cv_file_magic_cmd='func_win32_libid'
7419 else
7420 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7421 lt_cv_file_magic_cmd='$OBJDUMP -f'
7425 cegcc*)
7426 # use the weaker test based on 'objdump'. See mingw*.
7427 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7428 lt_cv_file_magic_cmd='$OBJDUMP -f'
7431 darwin* | rhapsody*)
7432 lt_cv_deplibs_check_method=pass_all
7435 freebsd* | dragonfly*)
7436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7437 case $host_cpu in
7438 i*86 )
7439 # Not sure whether the presence of OpenBSD here was a mistake.
7440 # Let's accept both of them until this is cleared up.
7441 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7442 lt_cv_file_magic_cmd=/usr/bin/file
7443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7445 esac
7446 else
7447 lt_cv_deplibs_check_method=pass_all
7451 gnu*)
7452 lt_cv_deplibs_check_method=pass_all
7455 haiku*)
7456 lt_cv_deplibs_check_method=pass_all
7459 hpux10.20* | hpux11*)
7460 lt_cv_file_magic_cmd=/usr/bin/file
7461 case $host_cpu in
7462 ia64*)
7463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7464 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7466 hppa*64*)
7467 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]'
7468 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7472 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7474 esac
7477 interix[3-9]*)
7478 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7482 irix5* | irix6* | nonstopux*)
7483 case $LD in
7484 *-32|*"-32 ") libmagic=32-bit;;
7485 *-n32|*"-n32 ") libmagic=N32;;
7486 *-64|*"-64 ") libmagic=64-bit;;
7487 *) libmagic=never-match;;
7488 esac
7489 lt_cv_deplibs_check_method=pass_all
7492 # This must be Linux ELF.
7493 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7494 lt_cv_deplibs_check_method=pass_all
7497 netbsd*)
7498 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7500 else
7501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7505 newos6*)
7506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7507 lt_cv_file_magic_cmd=/usr/bin/file
7508 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7511 *nto* | *qnx*)
7512 lt_cv_deplibs_check_method=pass_all
7515 openbsd*)
7516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7518 else
7519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7523 osf3* | osf4* | osf5*)
7524 lt_cv_deplibs_check_method=pass_all
7527 rdos*)
7528 lt_cv_deplibs_check_method=pass_all
7531 solaris*)
7532 lt_cv_deplibs_check_method=pass_all
7535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7536 lt_cv_deplibs_check_method=pass_all
7539 sysv4 | sysv4.3*)
7540 case $host_vendor in
7541 motorola)
7542 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]'
7543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7545 ncr)
7546 lt_cv_deplibs_check_method=pass_all
7548 sequent)
7549 lt_cv_file_magic_cmd='/bin/file'
7550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7552 sni)
7553 lt_cv_file_magic_cmd='/bin/file'
7554 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7555 lt_cv_file_magic_test_file=/lib/libc.so
7557 siemens)
7558 lt_cv_deplibs_check_method=pass_all
7561 lt_cv_deplibs_check_method=pass_all
7563 esac
7566 tpf*)
7567 lt_cv_deplibs_check_method=pass_all
7569 vxworks*)
7570 # Assume VxWorks cross toolchains are built on Linux, possibly
7571 # as canadian for Windows hosts.
7572 lt_cv_deplibs_check_method=pass_all
7574 esac
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7578 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7579 file_magic_cmd=$lt_cv_file_magic_cmd
7580 deplibs_check_method=$lt_cv_deplibs_check_method
7581 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7594 plugin_option=
7595 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7596 for plugin in $plugin_names; do
7597 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7598 if test x$plugin_so = x$plugin; then
7599 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7601 if test x$plugin_so != x$plugin; then
7602 plugin_option="--plugin $plugin_so"
7603 break
7605 done
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}ar; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_AR+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$AR"; then
7616 ac_cv_prog_AR="$AR" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_AR="${ac_tool_prefix}ar"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7629 done
7630 done
7631 IFS=$as_save_IFS
7635 AR=$ac_cv_prog_AR
7636 if test -n "$AR"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7638 $as_echo "$AR" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7646 if test -z "$ac_cv_prog_AR"; then
7647 ac_ct_AR=$AR
7648 # Extract the first word of "ar", so it can be a program name with args.
7649 set dummy ar; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$ac_ct_AR"; then
7656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_AR="ar"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7669 done
7670 done
7671 IFS=$as_save_IFS
7675 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7676 if test -n "$ac_ct_AR"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7678 $as_echo "$ac_ct_AR" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7684 if test "x$ac_ct_AR" = x; then
7685 AR="false"
7686 else
7687 case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693 AR=$ac_ct_AR
7695 else
7696 AR="$ac_cv_prog_AR"
7699 test -z "$AR" && AR=ar
7700 if test -n "$plugin_option"; then
7701 if $AR --help 2>&1 | grep -q "\--plugin"; then
7702 touch conftest.c
7703 $AR $plugin_option rc conftest.a conftest.c
7704 if test "$?" != 0; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7706 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7707 else
7708 AR="$AR $plugin_option"
7710 rm -f conftest.*
7713 test -z "$AR_FLAGS" && AR_FLAGS=cru
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}strip; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_STRIP+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 if test -n "$STRIP"; then
7734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7747 done
7748 done
7749 IFS=$as_save_IFS
7753 STRIP=$ac_cv_prog_STRIP
7754 if test -n "$STRIP"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7756 $as_echo "$STRIP" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_STRIP"; then
7765 ac_ct_STRIP=$STRIP
7766 # Extract the first word of "strip", so it can be a program name with args.
7767 set dummy strip; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$ac_ct_STRIP"; then
7774 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_STRIP="strip"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7787 done
7788 done
7789 IFS=$as_save_IFS
7793 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7794 if test -n "$ac_ct_STRIP"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7796 $as_echo "$ac_ct_STRIP" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_STRIP" = x; then
7803 STRIP=":"
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811 STRIP=$ac_ct_STRIP
7813 else
7814 STRIP="$ac_cv_prog_STRIP"
7817 test -z "$STRIP" && STRIP=:
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_RANLIB+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$RANLIB"; then
7833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 RANLIB=$ac_cv_prog_RANLIB
7853 if test -n "$RANLIB"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7855 $as_echo "$RANLIB" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7863 if test -z "$ac_cv_prog_RANLIB"; then
7864 ac_ct_RANLIB=$RANLIB
7865 # Extract the first word of "ranlib", so it can be a program name with args.
7866 set dummy ranlib; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$ac_ct_RANLIB"; then
7873 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_prog_ac_ct_RANLIB="ranlib"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7886 done
7887 done
7888 IFS=$as_save_IFS
7892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7893 if test -n "$ac_ct_RANLIB"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7895 $as_echo "$ac_ct_RANLIB" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7901 if test "x$ac_ct_RANLIB" = x; then
7902 RANLIB=":"
7903 else
7904 case $cross_compiling:$ac_tool_warned in
7905 yes:)
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908 ac_tool_warned=yes ;;
7909 esac
7910 RANLIB=$ac_ct_RANLIB
7912 else
7913 RANLIB="$ac_cv_prog_RANLIB"
7916 test -z "$RANLIB" && RANLIB=:
7917 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7918 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7919 RANLIB="$RANLIB $plugin_option"
7928 # Determine commands to create old-style static archives.
7929 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7930 old_postinstall_cmds='chmod 644 $oldlib'
7931 old_postuninstall_cmds=
7933 if test -n "$RANLIB"; then
7934 case $host_os in
7935 openbsd*)
7936 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7939 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7941 esac
7942 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7945 case $host_os in
7946 darwin*)
7947 lock_old_archive_extraction=yes ;;
7949 lock_old_archive_extraction=no ;;
7950 esac
7990 # If no C compiler was specified, use CC.
7991 LTCC=${LTCC-"$CC"}
7993 # If no C compiler flags were specified, use CFLAGS.
7994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7996 # Allow CC to be a program name with arguments.
7997 compiler=$CC
8000 # Check for command to grab the raw symbol name followed by C symbol from nm.
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8002 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8003 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8007 # These are sane defaults that work on at least a few old systems.
8008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8010 # Character class describing NM global symbol codes.
8011 symcode='[BCDEGRST]'
8013 # Regexp to match symbols that can be accessed directly from C.
8014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8016 # Define system-specific variables.
8017 case $host_os in
8018 aix*)
8019 symcode='[BCDT]'
8021 cygwin* | mingw* | pw32* | cegcc*)
8022 symcode='[ABCDGISTW]'
8024 hpux*)
8025 if test "$host_cpu" = ia64; then
8026 symcode='[ABCDEGRST]'
8029 irix* | nonstopux*)
8030 symcode='[BCDEGRST]'
8032 osf*)
8033 symcode='[BCDEGQRST]'
8035 solaris*)
8036 symcode='[BCDRT]'
8038 sco3.2v5*)
8039 symcode='[DT]'
8041 sysv4.2uw2*)
8042 symcode='[DT]'
8044 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8045 symcode='[ABDT]'
8047 sysv4)
8048 symcode='[DFNSTU]'
8050 esac
8052 # If we're using GNU nm, then use its standard symbol codes.
8053 case `$NM -V 2>&1` in
8054 *GNU* | *'with BFD'*)
8055 symcode='[ABCDGIRSTW]' ;;
8056 esac
8058 # Transform an extracted symbol line into a proper C declaration.
8059 # Some systems (esp. on ia64) link data and code symbols differently,
8060 # so use this general approach.
8061 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8063 # Transform an extracted symbol line into symbol name and symbol address
8064 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8065 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'"
8067 # Handle CRLF in mingw tool chain
8068 opt_cr=
8069 case $build_os in
8070 mingw*)
8071 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8073 esac
8075 # Try without a prefix underscore, then with it.
8076 for ac_symprfx in "" "_"; do
8078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8079 symxfrm="\\1 $ac_symprfx\\2 \\2"
8081 # Write the raw and C identifiers.
8082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8083 # Fake it for dumpbin and say T for any non-static function
8084 # and D for any global variable.
8085 # Also find C++ and __fastcall symbols from MSVC++,
8086 # which start with @ or ?.
8087 lt_cv_sys_global_symbol_pipe="$AWK '"\
8088 " {last_section=section; section=\$ 3};"\
8089 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8090 " \$ 0!~/External *\|/{next};"\
8091 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8092 " {if(hide[section]) next};"\
8093 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8094 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8095 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8096 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8097 " ' prfx=^$ac_symprfx"
8098 else
8099 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8102 # Check to see that the pipe works correctly.
8103 pipe_works=no
8105 rm -f conftest*
8106 cat > conftest.$ac_ext <<_LT_EOF
8107 #ifdef __cplusplus
8108 extern "C" {
8109 #endif
8110 char nm_test_var;
8111 void nm_test_func(void);
8112 void nm_test_func(void){}
8113 #ifdef __cplusplus
8115 #endif
8116 int main(){nm_test_var='a';nm_test_func();return(0);}
8117 _LT_EOF
8119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8120 (eval $ac_compile) 2>&5
8121 ac_status=$?
8122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8123 test $ac_status = 0; }; then
8124 # Now try to grab the symbols.
8125 nlist=conftest.nm
8126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8127 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8128 ac_status=$?
8129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; } && test -s "$nlist"; then
8131 # Try sorting and uniquifying the output.
8132 if sort "$nlist" | uniq > "$nlist"T; then
8133 mv -f "$nlist"T "$nlist"
8134 else
8135 rm -f "$nlist"T
8138 # Make sure that we snagged all the symbols we need.
8139 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8140 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8141 cat <<_LT_EOF > conftest.$ac_ext
8142 #ifdef __cplusplus
8143 extern "C" {
8144 #endif
8146 _LT_EOF
8147 # Now generate the symbol file.
8148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8150 cat <<_LT_EOF >> conftest.$ac_ext
8152 /* The mapping between symbol names and symbols. */
8153 const struct {
8154 const char *name;
8155 void *address;
8157 lt__PROGRAM__LTX_preloaded_symbols[] =
8159 { "@PROGRAM@", (void *) 0 },
8160 _LT_EOF
8161 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8162 cat <<\_LT_EOF >> conftest.$ac_ext
8163 {0, (void *) 0}
8166 /* This works around a problem in FreeBSD linker */
8167 #ifdef FREEBSD_WORKAROUND
8168 static const void *lt_preloaded_setup() {
8169 return lt__PROGRAM__LTX_preloaded_symbols;
8171 #endif
8173 #ifdef __cplusplus
8175 #endif
8176 _LT_EOF
8177 # Now try linking the two files.
8178 mv conftest.$ac_objext conftstm.$ac_objext
8179 lt_save_LIBS="$LIBS"
8180 lt_save_CFLAGS="$CFLAGS"
8181 LIBS="conftstm.$ac_objext"
8182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8184 (eval $ac_link) 2>&5
8185 ac_status=$?
8186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8187 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8188 pipe_works=yes
8190 LIBS="$lt_save_LIBS"
8191 CFLAGS="$lt_save_CFLAGS"
8192 else
8193 echo "cannot find nm_test_func in $nlist" >&5
8195 else
8196 echo "cannot find nm_test_var in $nlist" >&5
8198 else
8199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8201 else
8202 echo "$progname: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8205 rm -rf conftest* conftst*
8207 # Do not use the global_symbol_pipe unless it works.
8208 if test "$pipe_works" = yes; then
8209 break
8210 else
8211 lt_cv_sys_global_symbol_pipe=
8213 done
8217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8218 lt_cv_sys_global_symbol_to_cdecl=
8220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8222 $as_echo "failed" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8225 $as_echo "ok" >&6; }
8249 # Check whether --enable-libtool-lock was given.
8250 if test "${enable_libtool_lock+set}" = set; then :
8251 enableval=$enable_libtool_lock;
8254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8256 # Some flags need to be propagated to the compiler or linker for good
8257 # libtool support.
8258 case $host in
8259 ia64-*-hpux*)
8260 # Find out which ABI we are using.
8261 echo 'int i;' > conftest.$ac_ext
8262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8263 (eval $ac_compile) 2>&5
8264 ac_status=$?
8265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266 test $ac_status = 0; }; then
8267 case `/usr/bin/file conftest.$ac_objext` in
8268 *ELF-32*)
8269 HPUX_IA64_MODE="32"
8271 *ELF-64*)
8272 HPUX_IA64_MODE="64"
8274 esac
8276 rm -rf conftest*
8278 *-*-irix6*)
8279 # Find out which ABI we are using.
8280 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8282 (eval $ac_compile) 2>&5
8283 ac_status=$?
8284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8285 test $ac_status = 0; }; then
8286 if test "$lt_cv_prog_gnu_ld" = yes; then
8287 case `/usr/bin/file conftest.$ac_objext` in
8288 *32-bit*)
8289 LD="${LD-ld} -melf32bsmip"
8291 *N32*)
8292 LD="${LD-ld} -melf32bmipn32"
8294 *64-bit*)
8295 LD="${LD-ld} -melf64bmip"
8297 esac
8298 else
8299 case `/usr/bin/file conftest.$ac_objext` in
8300 *32-bit*)
8301 LD="${LD-ld} -32"
8303 *N32*)
8304 LD="${LD-ld} -n32"
8306 *64-bit*)
8307 LD="${LD-ld} -64"
8309 esac
8312 rm -rf conftest*
8315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8317 # Find out which ABI we are using.
8318 echo 'int i;' > conftest.$ac_ext
8319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8320 (eval $ac_compile) 2>&5
8321 ac_status=$?
8322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8323 test $ac_status = 0; }; then
8324 case `/usr/bin/file conftest.o` in
8325 *32-bit*)
8326 case $host in
8327 x86_64-*kfreebsd*-gnu)
8328 LD="${LD-ld} -m elf_i386_fbsd"
8330 x86_64-*linux*)
8331 case `/usr/bin/file conftest.o` in
8332 *x86-64*)
8333 LD="${LD-ld} -m elf32_x86_64"
8336 LD="${LD-ld} -m elf_i386"
8338 esac
8340 powerpc64le-*linux*)
8341 LD="${LD-ld} -m elf32lppclinux"
8343 powerpc64-*linux*)
8344 LD="${LD-ld} -m elf32ppclinux"
8346 s390x-*linux*)
8347 LD="${LD-ld} -m elf_s390"
8349 sparc64-*linux*)
8350 LD="${LD-ld} -m elf32_sparc"
8352 esac
8354 *64-bit*)
8355 case $host in
8356 x86_64-*kfreebsd*-gnu)
8357 LD="${LD-ld} -m elf_x86_64_fbsd"
8359 x86_64-*linux*)
8360 LD="${LD-ld} -m elf_x86_64"
8362 powerpcle-*linux*)
8363 LD="${LD-ld} -m elf64lppc"
8365 powerpc-*linux*)
8366 LD="${LD-ld} -m elf64ppc"
8368 s390*-*linux*|s390*-*tpf*)
8369 LD="${LD-ld} -m elf64_s390"
8371 sparc*-*linux*)
8372 LD="${LD-ld} -m elf64_sparc"
8374 esac
8376 esac
8378 rm -rf conftest*
8381 *-*-sco3.2v5*)
8382 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8383 SAVE_CFLAGS="$CFLAGS"
8384 CFLAGS="$CFLAGS -belf"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8386 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8387 if ${lt_cv_cc_needs_belf+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 ac_ext=c
8391 ac_cpp='$CPP $CPPFLAGS'
8392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8396 if test x$gcc_no_link = xyes; then
8397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8403 main ()
8407 return 0;
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 lt_cv_cc_needs_belf=yes
8412 else
8413 lt_cv_cc_needs_belf=no
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 ac_ext=c
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8425 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8426 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8427 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8428 CFLAGS="$SAVE_CFLAGS"
8431 sparc*-*solaris*)
8432 # Find out which ABI we are using.
8433 echo 'int i;' > conftest.$ac_ext
8434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8435 (eval $ac_compile) 2>&5
8436 ac_status=$?
8437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8438 test $ac_status = 0; }; then
8439 case `/usr/bin/file conftest.o` in
8440 *64-bit*)
8441 case $lt_cv_prog_gnu_ld in
8442 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8445 LD="${LD-ld} -64"
8448 esac
8450 esac
8452 rm -rf conftest*
8454 esac
8456 need_locks="$enable_libtool_lock"
8459 case $host_os in
8460 rhapsody* | darwin*)
8461 if test -n "$ac_tool_prefix"; then
8462 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8463 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 if test -n "$DSYMUTIL"; then
8470 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8483 done
8484 done
8485 IFS=$as_save_IFS
8489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8490 if test -n "$DSYMUTIL"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8492 $as_echo "$DSYMUTIL" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8500 if test -z "$ac_cv_prog_DSYMUTIL"; then
8501 ac_ct_DSYMUTIL=$DSYMUTIL
8502 # Extract the first word of "dsymutil", so it can be a program name with args.
8503 set dummy dsymutil; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 if test -n "$ac_ct_DSYMUTIL"; then
8510 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8523 done
8524 done
8525 IFS=$as_save_IFS
8529 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8530 if test -n "$ac_ct_DSYMUTIL"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8532 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8538 if test "x$ac_ct_DSYMUTIL" = x; then
8539 DSYMUTIL=":"
8540 else
8541 case $cross_compiling:$ac_tool_warned in
8542 yes:)
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8545 ac_tool_warned=yes ;;
8546 esac
8547 DSYMUTIL=$ac_ct_DSYMUTIL
8549 else
8550 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8553 if test -n "$ac_tool_prefix"; then
8554 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8555 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_prog_NMEDIT+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 if test -n "$NMEDIT"; then
8562 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8563 else
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8571 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8575 done
8576 done
8577 IFS=$as_save_IFS
8581 NMEDIT=$ac_cv_prog_NMEDIT
8582 if test -n "$NMEDIT"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8584 $as_echo "$NMEDIT" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8592 if test -z "$ac_cv_prog_NMEDIT"; then
8593 ac_ct_NMEDIT=$NMEDIT
8594 # Extract the first word of "nmedit", so it can be a program name with args.
8595 set dummy nmedit; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$ac_ct_NMEDIT"; then
8602 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8621 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8622 if test -n "$ac_ct_NMEDIT"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8624 $as_echo "$ac_ct_NMEDIT" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8630 if test "x$ac_ct_NMEDIT" = x; then
8631 NMEDIT=":"
8632 else
8633 case $cross_compiling:$ac_tool_warned in
8634 yes:)
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8637 ac_tool_warned=yes ;;
8638 esac
8639 NMEDIT=$ac_ct_NMEDIT
8641 else
8642 NMEDIT="$ac_cv_prog_NMEDIT"
8645 if test -n "$ac_tool_prefix"; then
8646 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649 $as_echo_n "checking for $ac_word... " >&6; }
8650 if ${ac_cv_prog_LIPO+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 if test -n "$LIPO"; then
8654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8655 else
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8659 IFS=$as_save_IFS
8660 test -z "$as_dir" && as_dir=.
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 break 2
8667 done
8668 done
8669 IFS=$as_save_IFS
8673 LIPO=$ac_cv_prog_LIPO
8674 if test -n "$LIPO"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8676 $as_echo "$LIPO" >&6; }
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8684 if test -z "$ac_cv_prog_LIPO"; then
8685 ac_ct_LIPO=$LIPO
8686 # Extract the first word of "lipo", so it can be a program name with args.
8687 set dummy lipo; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test -n "$ac_ct_LIPO"; then
8694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 ac_cv_prog_ac_ct_LIPO="lipo"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8707 done
8708 done
8709 IFS=$as_save_IFS
8713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8714 if test -n "$ac_ct_LIPO"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8716 $as_echo "$ac_ct_LIPO" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8722 if test "x$ac_ct_LIPO" = x; then
8723 LIPO=":"
8724 else
8725 case $cross_compiling:$ac_tool_warned in
8726 yes:)
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8729 ac_tool_warned=yes ;;
8730 esac
8731 LIPO=$ac_ct_LIPO
8733 else
8734 LIPO="$ac_cv_prog_LIPO"
8737 if test -n "$ac_tool_prefix"; then
8738 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8739 set dummy ${ac_tool_prefix}otool; ac_word=$2
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741 $as_echo_n "checking for $ac_word... " >&6; }
8742 if ${ac_cv_prog_OTOOL+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 if test -n "$OTOOL"; then
8746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8747 else
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 break 2
8759 done
8760 done
8761 IFS=$as_save_IFS
8765 OTOOL=$ac_cv_prog_OTOOL
8766 if test -n "$OTOOL"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8768 $as_echo "$OTOOL" >&6; }
8769 else
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8776 if test -z "$ac_cv_prog_OTOOL"; then
8777 ac_ct_OTOOL=$OTOOL
8778 # Extract the first word of "otool", so it can be a program name with args.
8779 set dummy otool; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$ac_ct_OTOOL"; then
8786 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_ac_ct_OTOOL="otool"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8805 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8806 if test -n "$ac_ct_OTOOL"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8808 $as_echo "$ac_ct_OTOOL" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8814 if test "x$ac_ct_OTOOL" = x; then
8815 OTOOL=":"
8816 else
8817 case $cross_compiling:$ac_tool_warned in
8818 yes:)
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8821 ac_tool_warned=yes ;;
8822 esac
8823 OTOOL=$ac_ct_OTOOL
8825 else
8826 OTOOL="$ac_cv_prog_OTOOL"
8829 if test -n "$ac_tool_prefix"; then
8830 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8831 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if ${ac_cv_prog_OTOOL64+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 if test -n "$OTOOL64"; then
8838 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8839 else
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 for as_dir in $PATH
8843 IFS=$as_save_IFS
8844 test -z "$as_dir" && as_dir=.
8845 for ac_exec_ext in '' $ac_executable_extensions; do
8846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8847 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 break 2
8851 done
8852 done
8853 IFS=$as_save_IFS
8857 OTOOL64=$ac_cv_prog_OTOOL64
8858 if test -n "$OTOOL64"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8860 $as_echo "$OTOOL64" >&6; }
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8868 if test -z "$ac_cv_prog_OTOOL64"; then
8869 ac_ct_OTOOL64=$OTOOL64
8870 # Extract the first word of "otool64", so it can be a program name with args.
8871 set dummy otool64; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 if test -n "$ac_ct_OTOOL64"; then
8878 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8879 else
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_prog_ac_ct_OTOOL64="otool64"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8893 IFS=$as_save_IFS
8897 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8898 if test -n "$ac_ct_OTOOL64"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8900 $as_echo "$ac_ct_OTOOL64" >&6; }
8901 else
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8906 if test "x$ac_ct_OTOOL64" = x; then
8907 OTOOL64=":"
8908 else
8909 case $cross_compiling:$ac_tool_warned in
8910 yes:)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8913 ac_tool_warned=yes ;;
8914 esac
8915 OTOOL64=$ac_ct_OTOOL64
8917 else
8918 OTOOL64="$ac_cv_prog_OTOOL64"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8948 $as_echo_n "checking for -single_module linker flag... " >&6; }
8949 if ${lt_cv_apple_cc_single_mod+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 lt_cv_apple_cc_single_mod=no
8953 if test -z "${LT_MULTI_MODULE}"; then
8954 # By default we will add the -single_module flag. You can override
8955 # by either setting the environment variable LT_MULTI_MODULE
8956 # non-empty at configure time, or by adding -multi_module to the
8957 # link flags.
8958 rm -rf libconftest.dylib*
8959 echo "int foo(void){return 1;}" > conftest.c
8960 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8961 -dynamiclib -Wl,-single_module conftest.c" >&5
8962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8964 _lt_result=$?
8965 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8966 lt_cv_apple_cc_single_mod=yes
8967 else
8968 cat conftest.err >&5
8970 rm -rf libconftest.dylib*
8971 rm -f conftest.*
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8975 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8977 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8978 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 lt_cv_ld_exported_symbols_list=no
8982 save_LDFLAGS=$LDFLAGS
8983 echo "_main" > conftest.sym
8984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8985 if test x$gcc_no_link = xyes; then
8986 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8992 main ()
8996 return 0;
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"; then :
9000 lt_cv_ld_exported_symbols_list=yes
9001 else
9002 lt_cv_ld_exported_symbols_list=no
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9006 LDFLAGS="$save_LDFLAGS"
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9010 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9012 $as_echo_n "checking for -force_load linker flag... " >&6; }
9013 if ${lt_cv_ld_force_load+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 lt_cv_ld_force_load=no
9017 cat > conftest.c << _LT_EOF
9018 int forced_loaded() { return 2;}
9019 _LT_EOF
9020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9022 echo "$AR cru libconftest.a conftest.o" >&5
9023 $AR cru libconftest.a conftest.o 2>&5
9024 cat > conftest.c << _LT_EOF
9025 int main() { return 0;}
9026 _LT_EOF
9027 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9028 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9029 _lt_result=$?
9030 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9031 lt_cv_ld_force_load=yes
9032 else
9033 cat conftest.err >&5
9035 rm -f conftest.err libconftest.a conftest conftest.c
9036 rm -rf conftest.dSYM
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9040 $as_echo "$lt_cv_ld_force_load" >&6; }
9041 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9042 # build without first building modern cctools / linker.
9043 case $host_cpu-$host_os in
9044 *-rhapsody* | *-darwin1.[012])
9045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9046 *-darwin1.*)
9047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9048 *-darwin*)
9049 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9050 # deployment target is forced to an earlier version.
9051 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9052 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
9054 10.[012][,.]*)
9055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9059 esac
9061 esac
9062 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9063 _lt_dar_single_mod='$single_module'
9065 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9067 else
9068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9070 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9071 _lt_dsymutil='~$DSYMUTIL $lib || :'
9072 else
9073 _lt_dsymutil=
9076 esac
9078 for ac_header in dlfcn.h
9079 do :
9080 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9082 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9083 cat >>confdefs.h <<_ACEOF
9084 #define HAVE_DLFCN_H 1
9085 _ACEOF
9089 done
9096 # Set options
9100 enable_dlopen=no
9103 enable_win32_dll=no
9106 # Check whether --enable-shared was given.
9107 if test "${enable_shared+set}" = set; then :
9108 enableval=$enable_shared; p=${PACKAGE-default}
9109 case $enableval in
9110 yes) enable_shared=yes ;;
9111 no) enable_shared=no ;;
9113 enable_shared=no
9114 # Look at the argument we got. We use all the common list separators.
9115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9116 for pkg in $enableval; do
9117 IFS="$lt_save_ifs"
9118 if test "X$pkg" = "X$p"; then
9119 enable_shared=yes
9121 done
9122 IFS="$lt_save_ifs"
9124 esac
9125 else
9126 enable_shared=yes
9137 # Check whether --enable-static was given.
9138 if test "${enable_static+set}" = set; then :
9139 enableval=$enable_static; p=${PACKAGE-default}
9140 case $enableval in
9141 yes) enable_static=yes ;;
9142 no) enable_static=no ;;
9144 enable_static=no
9145 # Look at the argument we got. We use all the common list separators.
9146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9147 for pkg in $enableval; do
9148 IFS="$lt_save_ifs"
9149 if test "X$pkg" = "X$p"; then
9150 enable_static=yes
9152 done
9153 IFS="$lt_save_ifs"
9155 esac
9156 else
9157 enable_static=yes
9169 # Check whether --with-pic was given.
9170 if test "${with_pic+set}" = set; then :
9171 withval=$with_pic; pic_mode="$withval"
9172 else
9173 pic_mode=default
9177 test -z "$pic_mode" && pic_mode=default
9185 # Check whether --enable-fast-install was given.
9186 if test "${enable_fast_install+set}" = set; then :
9187 enableval=$enable_fast_install; p=${PACKAGE-default}
9188 case $enableval in
9189 yes) enable_fast_install=yes ;;
9190 no) enable_fast_install=no ;;
9192 enable_fast_install=no
9193 # Look at the argument we got. We use all the common list separators.
9194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9195 for pkg in $enableval; do
9196 IFS="$lt_save_ifs"
9197 if test "X$pkg" = "X$p"; then
9198 enable_fast_install=yes
9200 done
9201 IFS="$lt_save_ifs"
9203 esac
9204 else
9205 enable_fast_install=yes
9218 # This can be used to rebuild libtool when needed
9219 LIBTOOL_DEPS="$ltmain"
9221 # Always use our own libtool.
9222 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9249 test -z "$LN_S" && LN_S="ln -s"
9264 if test -n "${ZSH_VERSION+set}" ; then
9265 setopt NO_GLOB_SUBST
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9269 $as_echo_n "checking for objdir... " >&6; }
9270 if ${lt_cv_objdir+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 rm -f .libs 2>/dev/null
9274 mkdir .libs 2>/dev/null
9275 if test -d .libs; then
9276 lt_cv_objdir=.libs
9277 else
9278 # MS-DOS does not allow filenames that begin with a dot.
9279 lt_cv_objdir=_libs
9281 rmdir .libs 2>/dev/null
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9284 $as_echo "$lt_cv_objdir" >&6; }
9285 objdir=$lt_cv_objdir
9291 cat >>confdefs.h <<_ACEOF
9292 #define LT_OBJDIR "$lt_cv_objdir/"
9293 _ACEOF
9298 case $host_os in
9299 aix3*)
9300 # AIX sometimes has problems with the GCC collect2 program. For some
9301 # reason, if we set the COLLECT_NAMES environment variable, the problems
9302 # vanish in a puff of smoke.
9303 if test "X${COLLECT_NAMES+set}" != Xset; then
9304 COLLECT_NAMES=
9305 export COLLECT_NAMES
9308 esac
9310 # Global variables:
9311 ofile=libtool
9312 can_build_shared=yes
9314 # All known linkers require a `.a' archive for static linking (except MSVC,
9315 # which needs '.lib').
9316 libext=a
9318 with_gnu_ld="$lt_cv_prog_gnu_ld"
9320 old_CC="$CC"
9321 old_CFLAGS="$CFLAGS"
9323 # Set sane defaults for various variables
9324 test -z "$CC" && CC=cc
9325 test -z "$LTCC" && LTCC=$CC
9326 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9327 test -z "$LD" && LD=ld
9328 test -z "$ac_objext" && ac_objext=o
9330 for cc_temp in $compiler""; do
9331 case $cc_temp in
9332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9334 \-*) ;;
9335 *) break;;
9336 esac
9337 done
9338 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9341 # Only perform the check for file, if the check method requires it
9342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9343 case $deplibs_check_method in
9344 file_magic*)
9345 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9347 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 case $MAGIC_CMD in
9352 [\\/*] | ?:[\\/]*)
9353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9356 lt_save_MAGIC_CMD="$MAGIC_CMD"
9357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9359 for ac_dir in $ac_dummy; do
9360 IFS="$lt_save_ifs"
9361 test -z "$ac_dir" && ac_dir=.
9362 if test -f $ac_dir/${ac_tool_prefix}file; then
9363 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9364 if test -n "$file_magic_test_file"; then
9365 case $deplibs_check_method in
9366 "file_magic "*)
9367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9370 $EGREP "$file_magic_regex" > /dev/null; then
9372 else
9373 cat <<_LT_EOF 1>&2
9375 *** Warning: the command libtool uses to detect shared libraries,
9376 *** $file_magic_cmd, produces output that libtool cannot recognize.
9377 *** The result is that libtool may fail to recognize shared libraries
9378 *** as such. This will affect the creation of libtool libraries that
9379 *** depend on shared libraries, but programs linked with such libtool
9380 *** libraries will work regardless of this problem. Nevertheless, you
9381 *** may want to report the problem to your system manager and/or to
9382 *** bug-libtool@gnu.org
9384 _LT_EOF
9385 fi ;;
9386 esac
9388 break
9390 done
9391 IFS="$lt_save_ifs"
9392 MAGIC_CMD="$lt_save_MAGIC_CMD"
9394 esac
9397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9398 if test -n "$MAGIC_CMD"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9400 $as_echo "$MAGIC_CMD" >&6; }
9401 else
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9410 if test -z "$lt_cv_path_MAGIC_CMD"; then
9411 if test -n "$ac_tool_prefix"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9413 $as_echo_n "checking for file... " >&6; }
9414 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 case $MAGIC_CMD in
9418 [\\/*] | ?:[\\/]*)
9419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9422 lt_save_MAGIC_CMD="$MAGIC_CMD"
9423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9425 for ac_dir in $ac_dummy; do
9426 IFS="$lt_save_ifs"
9427 test -z "$ac_dir" && ac_dir=.
9428 if test -f $ac_dir/file; then
9429 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9430 if test -n "$file_magic_test_file"; then
9431 case $deplibs_check_method in
9432 "file_magic "*)
9433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9436 $EGREP "$file_magic_regex" > /dev/null; then
9438 else
9439 cat <<_LT_EOF 1>&2
9441 *** Warning: the command libtool uses to detect shared libraries,
9442 *** $file_magic_cmd, produces output that libtool cannot recognize.
9443 *** The result is that libtool may fail to recognize shared libraries
9444 *** as such. This will affect the creation of libtool libraries that
9445 *** depend on shared libraries, but programs linked with such libtool
9446 *** libraries will work regardless of this problem. Nevertheless, you
9447 *** may want to report the problem to your system manager and/or to
9448 *** bug-libtool@gnu.org
9450 _LT_EOF
9451 fi ;;
9452 esac
9454 break
9456 done
9457 IFS="$lt_save_ifs"
9458 MAGIC_CMD="$lt_save_MAGIC_CMD"
9460 esac
9463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9464 if test -n "$MAGIC_CMD"; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9466 $as_echo "$MAGIC_CMD" >&6; }
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9473 else
9474 MAGIC_CMD=:
9480 esac
9482 # Use C for the default configuration in the libtool script
9484 lt_save_CC="$CC"
9485 ac_ext=c
9486 ac_cpp='$CPP $CPPFLAGS'
9487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9492 # Source file extension for C test sources.
9493 ac_ext=c
9495 # Object file extension for compiled C test sources.
9496 objext=o
9497 objext=$objext
9499 # Code to be used in simple compile tests
9500 lt_simple_compile_test_code="int some_variable = 0;"
9502 # Code to be used in simple link tests
9503 lt_simple_link_test_code='int main(){return(0);}'
9511 # If no C compiler was specified, use CC.
9512 LTCC=${LTCC-"$CC"}
9514 # If no C compiler flags were specified, use CFLAGS.
9515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9517 # Allow CC to be a program name with arguments.
9518 compiler=$CC
9520 # Save the default compiler, since it gets overwritten when the other
9521 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9522 compiler_DEFAULT=$CC
9524 # save warnings/boilerplate of simple test code
9525 ac_outfile=conftest.$ac_objext
9526 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9528 _lt_compiler_boilerplate=`cat conftest.err`
9529 $RM conftest*
9531 ac_outfile=conftest.$ac_objext
9532 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9534 _lt_linker_boilerplate=`cat conftest.err`
9535 $RM -r conftest*
9538 ## CAVEAT EMPTOR:
9539 ## There is no encapsulation within the following macros, do not change
9540 ## the running order or otherwise move them around unless you know exactly
9541 ## what you are doing...
9542 if test -n "$compiler"; then
9544 lt_prog_compiler_no_builtin_flag=
9546 if test "$GCC" = yes; then
9547 case $cc_basename in
9548 nvcc*)
9549 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9551 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9552 esac
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9555 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9556 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 lt_cv_prog_compiler_rtti_exceptions=no
9560 ac_outfile=conftest.$ac_objext
9561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562 lt_compiler_flag="-fno-rtti -fno-exceptions"
9563 # Insert the option either (1) after the last *FLAGS variable, or
9564 # (2) before a word containing "conftest.", or (3) at the end.
9565 # Note that $ac_compile itself does not contain backslashes and begins
9566 # with a dollar sign (not a hyphen), so the echo should work correctly.
9567 # The option is referenced via a variable to avoid confusing sed.
9568 lt_compile=`echo "$ac_compile" | $SED \
9569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9571 -e 's:$: $lt_compiler_flag:'`
9572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9573 (eval "$lt_compile" 2>conftest.err)
9574 ac_status=$?
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 if (exit $ac_status) && test -s "$ac_outfile"; then
9578 # The compiler can only warn and ignore the option if not recognized
9579 # So say no if there are warnings other than the usual output.
9580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9583 lt_cv_prog_compiler_rtti_exceptions=yes
9586 $RM conftest*
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9590 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9592 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9593 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9594 else
9605 lt_prog_compiler_wl=
9606 lt_prog_compiler_pic=
9607 lt_prog_compiler_static=
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9610 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9612 if test "$GCC" = yes; then
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_static='-static'
9616 case $host_os in
9617 aix*)
9618 # All AIX code is PIC.
9619 if test "$host_cpu" = ia64; then
9620 # AIX 5 now supports IA64 processor
9621 lt_prog_compiler_static='-Bstatic'
9623 lt_prog_compiler_pic='-fPIC'
9626 amigaos*)
9627 case $host_cpu in
9628 powerpc)
9629 # see comment about AmigaOS4 .so support
9630 lt_prog_compiler_pic='-fPIC'
9632 m68k)
9633 # FIXME: we need at least 68020 code to build shared libraries, but
9634 # adding the `-m68020' flag to GCC prevents building anything better,
9635 # like `-m68040'.
9636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9638 esac
9641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9642 # PIC is the default for these OSes.
9645 mingw* | cygwin* | pw32* | os2* | cegcc*)
9646 # This hack is so that the source file can tell whether it is being
9647 # built for inclusion in a dll (and should export symbols for example).
9648 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9649 # (--disable-auto-import) libraries
9650 lt_prog_compiler_pic='-DDLL_EXPORT'
9653 darwin* | rhapsody*)
9654 # PIC is the default on this platform
9655 # Common symbols not allowed in MH_DYLIB files
9656 lt_prog_compiler_pic='-fno-common'
9659 haiku*)
9660 # PIC is the default for Haiku.
9661 # The "-static" flag exists, but is broken.
9662 lt_prog_compiler_static=
9665 hpux*)
9666 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9667 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9668 # sets the default TLS model and affects inlining.
9669 case $host_cpu in
9670 hppa*64*)
9671 # +Z the default
9674 lt_prog_compiler_pic='-fPIC'
9676 esac
9679 interix[3-9]*)
9680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9681 # Instead, we relocate shared libraries at runtime.
9684 msdosdjgpp*)
9685 # Just because we use GCC doesn't mean we suddenly get shared libraries
9686 # on systems that don't support them.
9687 lt_prog_compiler_can_build_shared=no
9688 enable_shared=no
9691 *nto* | *qnx*)
9692 # QNX uses GNU C++, but need to define -shared option too, otherwise
9693 # it will coredump.
9694 lt_prog_compiler_pic='-fPIC -shared'
9697 sysv4*MP*)
9698 if test -d /usr/nec; then
9699 lt_prog_compiler_pic=-Kconform_pic
9704 lt_prog_compiler_pic='-fPIC'
9706 esac
9708 case $cc_basename in
9709 nvcc*) # Cuda Compiler Driver 2.2
9710 lt_prog_compiler_wl='-Xlinker '
9711 lt_prog_compiler_pic='-Xcompiler -fPIC'
9713 esac
9714 else
9715 # PORTME Check for flag to pass linker flags through the system compiler.
9716 case $host_os in
9717 aix*)
9718 lt_prog_compiler_wl='-Wl,'
9719 if test "$host_cpu" = ia64; then
9720 # AIX 5 now supports IA64 processor
9721 lt_prog_compiler_static='-Bstatic'
9722 else
9723 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9727 mingw* | cygwin* | pw32* | os2* | cegcc*)
9728 # This hack is so that the source file can tell whether it is being
9729 # built for inclusion in a dll (and should export symbols for example).
9730 lt_prog_compiler_pic='-DDLL_EXPORT'
9733 hpux9* | hpux10* | hpux11*)
9734 lt_prog_compiler_wl='-Wl,'
9735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9736 # not for PA HP-UX.
9737 case $host_cpu in
9738 hppa*64*|ia64*)
9739 # +Z the default
9742 lt_prog_compiler_pic='+Z'
9744 esac
9745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9746 lt_prog_compiler_static='${wl}-a ${wl}archive'
9749 irix5* | irix6* | nonstopux*)
9750 lt_prog_compiler_wl='-Wl,'
9751 # PIC (with -KPIC) is the default.
9752 lt_prog_compiler_static='-non_shared'
9755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9756 case $cc_basename in
9757 # old Intel for x86_64 which still supported -KPIC.
9758 ecc*)
9759 lt_prog_compiler_wl='-Wl,'
9760 lt_prog_compiler_pic='-KPIC'
9761 lt_prog_compiler_static='-static'
9763 # icc used to be incompatible with GCC.
9764 # ICC 10 doesn't accept -KPIC any more.
9765 icc* | ifort*)
9766 lt_prog_compiler_wl='-Wl,'
9767 lt_prog_compiler_pic='-fPIC'
9768 lt_prog_compiler_static='-static'
9770 # Lahey Fortran 8.1.
9771 lf95*)
9772 lt_prog_compiler_wl='-Wl,'
9773 lt_prog_compiler_pic='--shared'
9774 lt_prog_compiler_static='--static'
9776 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9777 # Portland Group compilers (*not* the Pentium gcc compiler,
9778 # which looks to be a dead project)
9779 lt_prog_compiler_wl='-Wl,'
9780 lt_prog_compiler_pic='-fpic'
9781 lt_prog_compiler_static='-Bstatic'
9783 ccc*)
9784 lt_prog_compiler_wl='-Wl,'
9785 # All Alpha code is PIC.
9786 lt_prog_compiler_static='-non_shared'
9788 xl* | bgxl* | bgf* | mpixl*)
9789 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_pic='-qpic'
9792 lt_prog_compiler_static='-qstaticlink'
9795 case `$CC -V 2>&1 | sed 5q` in
9796 *Sun\ F* | *Sun*Fortran*)
9797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9798 lt_prog_compiler_pic='-KPIC'
9799 lt_prog_compiler_static='-Bstatic'
9800 lt_prog_compiler_wl=''
9802 *Sun\ C*)
9803 # Sun C 5.9
9804 lt_prog_compiler_pic='-KPIC'
9805 lt_prog_compiler_static='-Bstatic'
9806 lt_prog_compiler_wl='-Wl,'
9808 esac
9810 esac
9813 newsos6)
9814 lt_prog_compiler_pic='-KPIC'
9815 lt_prog_compiler_static='-Bstatic'
9818 *nto* | *qnx*)
9819 # QNX uses GNU C++, but need to define -shared option too, otherwise
9820 # it will coredump.
9821 lt_prog_compiler_pic='-fPIC -shared'
9824 osf3* | osf4* | osf5*)
9825 lt_prog_compiler_wl='-Wl,'
9826 # All OSF/1 code is PIC.
9827 lt_prog_compiler_static='-non_shared'
9830 rdos*)
9831 lt_prog_compiler_static='-non_shared'
9834 solaris*)
9835 lt_prog_compiler_pic='-KPIC'
9836 lt_prog_compiler_static='-Bstatic'
9837 case $cc_basename in
9838 f77* | f90* | f95*)
9839 lt_prog_compiler_wl='-Qoption ld ';;
9841 lt_prog_compiler_wl='-Wl,';;
9842 esac
9845 sunos4*)
9846 lt_prog_compiler_wl='-Qoption ld '
9847 lt_prog_compiler_pic='-PIC'
9848 lt_prog_compiler_static='-Bstatic'
9851 sysv4 | sysv4.2uw2* | sysv4.3*)
9852 lt_prog_compiler_wl='-Wl,'
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-Bstatic'
9857 sysv4*MP*)
9858 if test -d /usr/nec ;then
9859 lt_prog_compiler_pic='-Kconform_pic'
9860 lt_prog_compiler_static='-Bstatic'
9864 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-KPIC'
9867 lt_prog_compiler_static='-Bstatic'
9870 unicos*)
9871 lt_prog_compiler_wl='-Wl,'
9872 lt_prog_compiler_can_build_shared=no
9875 uts4*)
9876 lt_prog_compiler_pic='-pic'
9877 lt_prog_compiler_static='-Bstatic'
9881 lt_prog_compiler_can_build_shared=no
9883 esac
9886 case $host_os in
9887 # For platforms which do not support PIC, -DPIC is meaningless:
9888 *djgpp*)
9889 lt_prog_compiler_pic=
9892 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9894 esac
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9896 $as_echo "$lt_prog_compiler_pic" >&6; }
9904 # Check to make sure the PIC flag actually works.
9906 if test -n "$lt_prog_compiler_pic"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9908 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9909 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 lt_cv_prog_compiler_pic_works=no
9913 ac_outfile=conftest.$ac_objext
9914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9915 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9916 # Insert the option either (1) after the last *FLAGS variable, or
9917 # (2) before a word containing "conftest.", or (3) at the end.
9918 # Note that $ac_compile itself does not contain backslashes and begins
9919 # with a dollar sign (not a hyphen), so the echo should work correctly.
9920 # The option is referenced via a variable to avoid confusing sed.
9921 lt_compile=`echo "$ac_compile" | $SED \
9922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9924 -e 's:$: $lt_compiler_flag:'`
9925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9926 (eval "$lt_compile" 2>conftest.err)
9927 ac_status=$?
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 if (exit $ac_status) && test -s "$ac_outfile"; then
9931 # The compiler can only warn and ignore the option if not recognized
9932 # So say no if there are warnings other than the usual output.
9933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9936 lt_cv_prog_compiler_pic_works=yes
9939 $RM conftest*
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9943 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9945 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9946 case $lt_prog_compiler_pic in
9947 "" | " "*) ;;
9948 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9949 esac
9950 else
9951 lt_prog_compiler_pic=
9952 lt_prog_compiler_can_build_shared=no
9963 # Check to make sure the static flag actually works.
9965 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9967 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9968 if ${lt_cv_prog_compiler_static_works+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 lt_cv_prog_compiler_static_works=no
9972 save_LDFLAGS="$LDFLAGS"
9973 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9976 # The linker can only warn and ignore the option if not recognized
9977 # So say no if there are warnings
9978 if test -s conftest.err; then
9979 # Append any errors to the config.log.
9980 cat conftest.err 1>&5
9981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9983 if diff conftest.exp conftest.er2 >/dev/null; then
9984 lt_cv_prog_compiler_static_works=yes
9986 else
9987 lt_cv_prog_compiler_static_works=yes
9990 $RM -r conftest*
9991 LDFLAGS="$save_LDFLAGS"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9995 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9997 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9999 else
10000 lt_prog_compiler_static=
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10010 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10011 if ${lt_cv_prog_compiler_c_o+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 lt_cv_prog_compiler_c_o=no
10015 $RM -r conftest 2>/dev/null
10016 mkdir conftest
10017 cd conftest
10018 mkdir out
10019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021 lt_compiler_flag="-o out/conftest2.$ac_objext"
10022 # Insert the option either (1) after the last *FLAGS variable, or
10023 # (2) before a word containing "conftest.", or (3) at the end.
10024 # Note that $ac_compile itself does not contain backslashes and begins
10025 # with a dollar sign (not a hyphen), so the echo should work correctly.
10026 lt_compile=`echo "$ac_compile" | $SED \
10027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10029 -e 's:$: $lt_compiler_flag:'`
10030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10031 (eval "$lt_compile" 2>out/conftest.err)
10032 ac_status=$?
10033 cat out/conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10036 then
10037 # The compiler can only warn and ignore the option if not recognized
10038 # So say no if there are warnings
10039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10042 lt_cv_prog_compiler_c_o=yes
10045 chmod u+w . 2>&5
10046 $RM conftest*
10047 # SGI C++ compiler will create directory out/ii_files/ for
10048 # template instantiation
10049 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10050 $RM out/* && rmdir out
10051 cd ..
10052 $RM -r conftest
10053 $RM conftest*
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10057 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10066 if ${lt_cv_prog_compiler_c_o+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 lt_cv_prog_compiler_c_o=no
10070 $RM -r conftest 2>/dev/null
10071 mkdir conftest
10072 cd conftest
10073 mkdir out
10074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10076 lt_compiler_flag="-o out/conftest2.$ac_objext"
10077 # Insert the option either (1) after the last *FLAGS variable, or
10078 # (2) before a word containing "conftest.", or (3) at the end.
10079 # Note that $ac_compile itself does not contain backslashes and begins
10080 # with a dollar sign (not a hyphen), so the echo should work correctly.
10081 lt_compile=`echo "$ac_compile" | $SED \
10082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10084 -e 's:$: $lt_compiler_flag:'`
10085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10086 (eval "$lt_compile" 2>out/conftest.err)
10087 ac_status=$?
10088 cat out/conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10091 then
10092 # The compiler can only warn and ignore the option if not recognized
10093 # So say no if there are warnings
10094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10097 lt_cv_prog_compiler_c_o=yes
10100 chmod u+w . 2>&5
10101 $RM conftest*
10102 # SGI C++ compiler will create directory out/ii_files/ for
10103 # template instantiation
10104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10105 $RM out/* && rmdir out
10106 cd ..
10107 $RM -r conftest
10108 $RM conftest*
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10112 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10117 hard_links="nottested"
10118 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10119 # do not overwrite the value of need_locks provided by the user
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10121 $as_echo_n "checking if we can lock with hard links... " >&6; }
10122 hard_links=yes
10123 $RM conftest*
10124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10125 touch conftest.a
10126 ln conftest.a conftest.b 2>&5 || hard_links=no
10127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10129 $as_echo "$hard_links" >&6; }
10130 if test "$hard_links" = no; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10132 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10133 need_locks=warn
10135 else
10136 need_locks=no
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10147 runpath_var=
10148 allow_undefined_flag=
10149 always_export_symbols=no
10150 archive_cmds=
10151 archive_expsym_cmds=
10152 compiler_needs_object=no
10153 enable_shared_with_static_runtimes=no
10154 export_dynamic_flag_spec=
10155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10156 hardcode_automatic=no
10157 hardcode_direct=no
10158 hardcode_direct_absolute=no
10159 hardcode_libdir_flag_spec=
10160 hardcode_libdir_flag_spec_ld=
10161 hardcode_libdir_separator=
10162 hardcode_minus_L=no
10163 hardcode_shlibpath_var=unsupported
10164 inherit_rpath=no
10165 link_all_deplibs=unknown
10166 module_cmds=
10167 module_expsym_cmds=
10168 old_archive_from_new_cmds=
10169 old_archive_from_expsyms_cmds=
10170 thread_safe_flag_spec=
10171 whole_archive_flag_spec=
10172 # include_expsyms should be a list of space-separated symbols to be *always*
10173 # included in the symbol list
10174 include_expsyms=
10175 # exclude_expsyms can be an extended regexp of symbols to exclude
10176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10178 # as well as any symbol that contains `d'.
10179 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10181 # platforms (ab)use it in PIC code, but their linkers get confused if
10182 # the symbol is explicitly referenced. Since portable code cannot
10183 # rely on this symbol name, it's probably fine to never include it in
10184 # preloaded symbol tables.
10185 # Exclude shared library initialization/finalization symbols.
10186 extract_expsyms_cmds=
10188 case $host_os in
10189 cygwin* | mingw* | pw32* | cegcc*)
10190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10191 # When not using gcc, we currently assume that we are using
10192 # Microsoft Visual C++.
10193 if test "$GCC" != yes; then
10194 with_gnu_ld=no
10197 interix*)
10198 # we just hope/assume this is gcc and not c89 (= MSVC++)
10199 with_gnu_ld=yes
10201 openbsd*)
10202 with_gnu_ld=no
10204 esac
10206 ld_shlibs=yes
10208 # On some targets, GNU ld is compatible enough with the native linker
10209 # that we're better off using the native interface for both.
10210 lt_use_gnu_ld_interface=no
10211 if test "$with_gnu_ld" = yes; then
10212 case $host_os in
10213 aix*)
10214 # The AIX port of GNU ld has always aspired to compatibility
10215 # with the native linker. However, as the warning in the GNU ld
10216 # block says, versions before 2.19.5* couldn't really create working
10217 # shared libraries, regardless of the interface used.
10218 case `$LD -v 2>&1` in
10219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10221 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10223 lt_use_gnu_ld_interface=yes
10225 esac
10228 lt_use_gnu_ld_interface=yes
10230 esac
10233 if test "$lt_use_gnu_ld_interface" = yes; then
10234 # If archive_cmds runs LD, not CC, wlarc should be empty
10235 wlarc='${wl}'
10237 # Set some defaults for GNU ld with shared library support. These
10238 # are reset later if shared libraries are not supported. Putting them
10239 # here allows them to be overridden if necessary.
10240 runpath_var=LD_RUN_PATH
10241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10242 export_dynamic_flag_spec='${wl}--export-dynamic'
10243 # ancient GNU ld didn't support --whole-archive et. al.
10244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10245 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10246 else
10247 whole_archive_flag_spec=
10249 supports_anon_versioning=no
10250 case `$LD -v 2>&1` in
10251 *GNU\ gold*) supports_anon_versioning=yes ;;
10252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10255 *\ 2.11.*) ;; # other 2.11 versions
10256 *) supports_anon_versioning=yes ;;
10257 esac
10259 # See if GNU ld supports shared libraries.
10260 case $host_os in
10261 aix[3-9]*)
10262 # On AIX/PPC, the GNU linker is very broken
10263 if test "$host_cpu" != ia64; then
10264 ld_shlibs=no
10265 cat <<_LT_EOF 1>&2
10267 *** Warning: the GNU linker, at least up to release 2.19, is reported
10268 *** to be unable to reliably create shared libraries on AIX.
10269 *** Therefore, libtool is disabling shared libraries support. If you
10270 *** really care for shared libraries, you may want to install binutils
10271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10272 *** You will then need to restart the configuration process.
10274 _LT_EOF
10278 amigaos*)
10279 case $host_cpu in
10280 powerpc)
10281 # see comment about AmigaOS4 .so support
10282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10283 archive_expsym_cmds=''
10285 m68k)
10286 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)'
10287 hardcode_libdir_flag_spec='-L$libdir'
10288 hardcode_minus_L=yes
10290 esac
10293 beos*)
10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 allow_undefined_flag=unsupported
10296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10297 # support --undefined. This deserves some investigation. FIXME
10298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 else
10300 ld_shlibs=no
10304 cygwin* | mingw* | pw32* | cegcc*)
10305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10306 # as there is no search path for DLLs.
10307 hardcode_libdir_flag_spec='-L$libdir'
10308 export_dynamic_flag_spec='${wl}--export-all-symbols'
10309 allow_undefined_flag=unsupported
10310 always_export_symbols=no
10311 enable_shared_with_static_runtimes=yes
10312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10314 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10316 # If the export-symbols file already is a .def file (1st line
10317 # is EXPORTS), use it as is; otherwise, prepend...
10318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10319 cp $export_symbols $output_objdir/$soname.def;
10320 else
10321 echo EXPORTS > $output_objdir/$soname.def;
10322 cat $export_symbols >> $output_objdir/$soname.def;
10324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10325 else
10326 ld_shlibs=no
10330 haiku*)
10331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10332 link_all_deplibs=yes
10335 interix[3-9]*)
10336 hardcode_direct=no
10337 hardcode_shlibpath_var=no
10338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10339 export_dynamic_flag_spec='${wl}-E'
10340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10341 # Instead, shared libraries are loaded at an image base (0x10000000 by
10342 # default) and relocated if they conflict, which is a slow very memory
10343 # consuming and fragmenting process. To avoid this, we pick a random,
10344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10347 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'
10350 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10351 tmp_diet=no
10352 if test "$host_os" = linux-dietlibc; then
10353 case $cc_basename in
10354 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10355 esac
10357 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10358 && test "$tmp_diet" = no
10359 then
10360 tmp_addflag=' $pic_flag'
10361 tmp_sharedflag='-shared'
10362 case $cc_basename,$host_cpu in
10363 pgcc*) # Portland Group C compiler
10364 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'
10365 tmp_addflag=' $pic_flag'
10367 pgf77* | pgf90* | pgf95* | pgfortran*)
10368 # Portland Group f77 and f90 compilers
10369 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'
10370 tmp_addflag=' $pic_flag -Mnomain' ;;
10371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10372 tmp_addflag=' -i_dynamic' ;;
10373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10374 tmp_addflag=' -i_dynamic -nofor_main' ;;
10375 ifc* | ifort*) # Intel Fortran compiler
10376 tmp_addflag=' -nofor_main' ;;
10377 lf95*) # Lahey Fortran 8.1
10378 whole_archive_flag_spec=
10379 tmp_sharedflag='--shared' ;;
10380 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10381 tmp_sharedflag='-qmkshrobj'
10382 tmp_addflag= ;;
10383 nvcc*) # Cuda Compiler Driver 2.2
10384 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'
10385 compiler_needs_object=yes
10387 esac
10388 case `$CC -V 2>&1 | sed 5q` in
10389 *Sun\ C*) # Sun C 5.9
10390 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'
10391 compiler_needs_object=yes
10392 tmp_sharedflag='-G' ;;
10393 *Sun\ F*) # Sun Fortran 8.3
10394 tmp_sharedflag='-G' ;;
10395 esac
10396 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10398 if test "x$supports_anon_versioning" = xyes; then
10399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10401 echo "local: *; };" >> $output_objdir/$libname.ver~
10402 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10405 case $cc_basename in
10406 xlf* | bgf* | bgxlf* | mpixlf*)
10407 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10408 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10409 hardcode_libdir_flag_spec=
10410 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10411 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10412 if test "x$supports_anon_versioning" = xyes; then
10413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10415 echo "local: *; };" >> $output_objdir/$libname.ver~
10416 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10419 esac
10420 else
10421 ld_shlibs=no
10425 netbsd*)
10426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10428 wlarc=
10429 else
10430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10435 solaris*)
10436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10437 ld_shlibs=no
10438 cat <<_LT_EOF 1>&2
10440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10441 *** create shared libraries on Solaris systems. Therefore, libtool
10442 *** is disabling shared libraries support. We urge you to upgrade GNU
10443 *** binutils to release 2.9.1 or newer. Another option is to modify
10444 *** your PATH or compiler configuration so that the native linker is
10445 *** used, and then restart.
10447 _LT_EOF
10448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10451 else
10452 ld_shlibs=no
10456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10457 case `$LD -v 2>&1` in
10458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10459 ld_shlibs=no
10460 cat <<_LT_EOF 1>&2
10462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10463 *** reliably create shared libraries on SCO systems. Therefore, libtool
10464 *** is disabling shared libraries support. We urge you to upgrade GNU
10465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10466 *** your PATH or compiler configuration so that the native linker is
10467 *** used, and then restart.
10469 _LT_EOF
10472 # For security reasons, it is highly recommended that you always
10473 # use absolute paths for naming shared libraries, and exclude the
10474 # DT_RUNPATH tag from executables and libraries. But doing so
10475 # requires that you compile everything twice, which is a pain.
10476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10480 else
10481 ld_shlibs=no
10484 esac
10487 sunos4*)
10488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10489 wlarc=
10490 hardcode_direct=yes
10491 hardcode_shlibpath_var=no
10495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10498 else
10499 ld_shlibs=no
10502 esac
10504 if test "$ld_shlibs" = no; then
10505 runpath_var=
10506 hardcode_libdir_flag_spec=
10507 export_dynamic_flag_spec=
10508 whole_archive_flag_spec=
10510 else
10511 # PORTME fill in a description of your system's linker (not GNU ld)
10512 case $host_os in
10513 aix3*)
10514 allow_undefined_flag=unsupported
10515 always_export_symbols=yes
10516 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'
10517 # Note: this linker hardcodes the directories in LIBPATH if there
10518 # are no directories specified by -L.
10519 hardcode_minus_L=yes
10520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10521 # Neither direct hardcoding nor static linking is supported with a
10522 # broken collect2.
10523 hardcode_direct=unsupported
10527 aix[4-9]*)
10528 if test "$host_cpu" = ia64; then
10529 # On IA64, the linker does run time linking by default, so we don't
10530 # have to do anything special.
10531 aix_use_runtimelinking=no
10532 exp_sym_flag='-Bexport'
10533 no_entry_flag=""
10534 else
10535 # If we're using GNU nm, then we don't want the "-C" option.
10536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10537 # Also, AIX nm treats weak defined symbols like other global
10538 # defined symbols, whereas GNU nm marks them as "W".
10539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10540 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'
10541 else
10542 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'
10544 aix_use_runtimelinking=no
10546 # Test if we are trying to use run time linking or normal
10547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10548 # need to do runtime linking.
10549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10550 for ld_flag in $LDFLAGS; do
10551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10552 aix_use_runtimelinking=yes
10553 break
10555 done
10557 esac
10559 exp_sym_flag='-bexport'
10560 no_entry_flag='-bnoentry'
10563 # When large executables or shared objects are built, AIX ld can
10564 # have problems creating the table of contents. If linking a library
10565 # or program results in "error TOC overflow" add -mminimal-toc to
10566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10569 archive_cmds=''
10570 hardcode_direct=yes
10571 hardcode_direct_absolute=yes
10572 hardcode_libdir_separator=':'
10573 link_all_deplibs=yes
10574 file_list_spec='${wl}-f,'
10576 if test "$GCC" = yes; then
10577 case $host_os in aix4.[012]|aix4.[012].*)
10578 # We only want to do this on AIX 4.2 and lower, the check
10579 # below for broken collect2 doesn't work under 4.3+
10580 collect2name=`${CC} -print-prog-name=collect2`
10581 if test -f "$collect2name" &&
10582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10583 then
10584 # We have reworked collect2
10586 else
10587 # We have old collect2
10588 hardcode_direct=unsupported
10589 # It fails to find uninstalled libraries when the uninstalled
10590 # path is not listed in the libpath. Setting hardcode_minus_L
10591 # to unsupported forces relinking
10592 hardcode_minus_L=yes
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_libdir_separator=
10597 esac
10598 shared_flag='-shared'
10599 if test "$aix_use_runtimelinking" = yes; then
10600 shared_flag="$shared_flag "'${wl}-G'
10602 else
10603 # not using gcc
10604 if test "$host_cpu" = ia64; then
10605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10606 # chokes on -Wl,-G. The following line is correct:
10607 shared_flag='-G'
10608 else
10609 if test "$aix_use_runtimelinking" = yes; then
10610 shared_flag='${wl}-G'
10611 else
10612 shared_flag='${wl}-bM:SRE'
10617 export_dynamic_flag_spec='${wl}-bexpall'
10618 # It seems that -bexpall does not export symbols beginning with
10619 # underscore (_), so it is better to generate a list of symbols to export.
10620 always_export_symbols=yes
10621 if test "$aix_use_runtimelinking" = yes; then
10622 # Warning - without using the other runtime loading flags (-brtl),
10623 # -berok will link without error, but may produce a broken library.
10624 allow_undefined_flag='-berok'
10625 # Determine the default libpath from the value encoded in an
10626 # empty executable.
10627 if test x$gcc_no_link = xyes; then
10628 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10634 main ()
10638 return 0;
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10643 lt_aix_libpath_sed='
10644 /Import File Strings/,/^$/ {
10645 /^0/ {
10646 s/^0 *\(.*\)$/\1/
10650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10651 # Check for a 64-bit object if we didn't find anything.
10652 if test -z "$aix_libpath"; then
10653 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10661 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"
10662 else
10663 if test "$host_cpu" = ia64; then
10664 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10665 allow_undefined_flag="-z nodefs"
10666 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"
10667 else
10668 # Determine the default libpath from the value encoded in an
10669 # empty executable.
10670 if test x$gcc_no_link = xyes; then
10671 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10677 main ()
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10686 lt_aix_libpath_sed='
10687 /Import File Strings/,/^$/ {
10688 /^0/ {
10689 s/^0 *\(.*\)$/\1/
10693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10694 # Check for a 64-bit object if we didn't find anything.
10695 if test -z "$aix_libpath"; then
10696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10703 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10704 # Warning - without using the other run time loading flags,
10705 # -berok will link without error, but may produce a broken library.
10706 no_undefined_flag=' ${wl}-bernotok'
10707 allow_undefined_flag=' ${wl}-berok'
10708 if test "$with_gnu_ld" = yes; then
10709 # We only use this code for GNU lds that support --whole-archive.
10710 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10711 else
10712 # Exported symbols can be pulled into shared objects from archives
10713 whole_archive_flag_spec='$convenience'
10715 archive_cmds_need_lc=yes
10716 # This is similar to how AIX traditionally builds its shared libraries.
10717 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'
10722 amigaos*)
10723 case $host_cpu in
10724 powerpc)
10725 # see comment about AmigaOS4 .so support
10726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727 archive_expsym_cmds=''
10729 m68k)
10730 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)'
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_minus_L=yes
10734 esac
10737 bsdi[45]*)
10738 export_dynamic_flag_spec=-rdynamic
10741 cygwin* | mingw* | pw32* | cegcc*)
10742 # When not using gcc, we currently assume that we are using
10743 # Microsoft Visual C++.
10744 # hardcode_libdir_flag_spec is actually meaningless, as there is
10745 # no search path for DLLs.
10746 hardcode_libdir_flag_spec=' '
10747 allow_undefined_flag=unsupported
10748 # Tell ltmain to make .lib files, not .a files.
10749 libext=lib
10750 # Tell ltmain to make .dll files, not .so files.
10751 shrext_cmds=".dll"
10752 # FIXME: Setting linknames here is a bad hack.
10753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10754 # The linker will automatically build a .lib file if we build a DLL.
10755 old_archive_from_new_cmds='true'
10756 # FIXME: Should let the user specify the lib program.
10757 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10758 fix_srcfile_path='`cygpath -w "$srcfile"`'
10759 enable_shared_with_static_runtimes=yes
10762 darwin* | rhapsody*)
10766 # Publish an arg to allow the user to select that Darwin host (and target)
10767 # libraries should be given install-names like @rpath/libfoo.dylib. This
10768 # requires that the user of the library then adds an 'rpath' to the DSO that
10769 # needs access.
10770 # NOTE: there are defaults below, for systems that support rpaths. The person
10771 # configuring can override the defaults for any system version that supports
10772 # them - they are, however, forced off for system versions without support.
10773 # Check whether --enable-darwin-at-rpath was given.
10774 if test "${enable_darwin_at_rpath+set}" = set; then :
10775 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10776 # This is not supported before macOS 10.5 / Darwin9.
10777 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10778 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10780 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10781 enable_darwin_at_rpath=no
10783 esac
10785 else
10786 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10787 # As above, before 10.5 / Darwin9 this does not work.
10788 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10789 enable_darwin_at_rpath=no
10792 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10793 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10794 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10795 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10797 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10798 enable_darwin_at_rpath=yes
10800 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10801 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10803 esac
10808 archive_cmds_need_lc=no
10809 hardcode_direct=no
10810 hardcode_automatic=yes
10811 hardcode_shlibpath_var=unsupported
10812 if test "$lt_cv_ld_force_load" = "yes"; then
10813 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\"`'
10814 else
10815 whole_archive_flag_spec=''
10817 link_all_deplibs=yes
10818 allow_undefined_flag="$_lt_dar_allow_undefined"
10819 case $cc_basename in
10820 ifort*) _lt_dar_can_shared=yes ;;
10821 *) _lt_dar_can_shared=$GCC ;;
10822 esac
10823 if test "$_lt_dar_can_shared" = "yes"; then
10824 output_verbose_link_cmd=func_echo_all
10825 _lt_install_name='\$rpath/\$soname'
10826 if test "x$enable_darwin_at_rpath" = "xyes"; then
10827 _lt_install_name='@rpath/\$soname'
10829 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10830 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10831 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10832 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}"
10834 else
10835 ld_shlibs=no
10840 dgux*)
10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_libdir_flag_spec='-L$libdir'
10843 hardcode_shlibpath_var=no
10846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10847 # support. Future versions do this automatically, but an explicit c++rt0.o
10848 # does not break anything, and helps significantly (at the cost of a little
10849 # extra space).
10850 freebsd2.2*)
10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10852 hardcode_libdir_flag_spec='-R$libdir'
10853 hardcode_direct=yes
10854 hardcode_shlibpath_var=no
10857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10858 freebsd2.*)
10859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10860 hardcode_direct=yes
10861 hardcode_minus_L=yes
10862 hardcode_shlibpath_var=no
10865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10866 freebsd* | dragonfly*)
10867 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10868 hardcode_libdir_flag_spec='-R$libdir'
10869 hardcode_direct=yes
10870 hardcode_shlibpath_var=no
10873 hpux9*)
10874 if test "$GCC" = yes; then
10875 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'
10876 else
10877 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'
10879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10880 hardcode_libdir_separator=:
10881 hardcode_direct=yes
10883 # hardcode_minus_L: Not really in the search PATH,
10884 # but as the default location of the library.
10885 hardcode_minus_L=yes
10886 export_dynamic_flag_spec='${wl}-E'
10889 hpux10*)
10890 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10892 else
10893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10895 if test "$with_gnu_ld" = no; then
10896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10897 hardcode_libdir_flag_spec_ld='+b $libdir'
10898 hardcode_libdir_separator=:
10899 hardcode_direct=yes
10900 hardcode_direct_absolute=yes
10901 export_dynamic_flag_spec='${wl}-E'
10902 # hardcode_minus_L: Not really in the search PATH,
10903 # but as the default location of the library.
10904 hardcode_minus_L=yes
10908 hpux11*)
10909 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10910 case $host_cpu in
10911 hppa*64*)
10912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10914 ia64*)
10915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10920 esac
10921 else
10922 case $host_cpu in
10923 hppa*64*)
10924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10926 ia64*)
10927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10931 # Older versions of the 11.00 compiler do not understand -b yet
10932 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10934 $as_echo_n "checking if $CC understands -b... " >&6; }
10935 if ${lt_cv_prog_compiler__b+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 lt_cv_prog_compiler__b=no
10939 save_LDFLAGS="$LDFLAGS"
10940 LDFLAGS="$LDFLAGS -b"
10941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10943 # The linker can only warn and ignore the option if not recognized
10944 # So say no if there are warnings
10945 if test -s conftest.err; then
10946 # Append any errors to the config.log.
10947 cat conftest.err 1>&5
10948 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10950 if diff conftest.exp conftest.er2 >/dev/null; then
10951 lt_cv_prog_compiler__b=yes
10953 else
10954 lt_cv_prog_compiler__b=yes
10957 $RM -r conftest*
10958 LDFLAGS="$save_LDFLAGS"
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10962 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10964 if test x"$lt_cv_prog_compiler__b" = xyes; then
10965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10966 else
10967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10971 esac
10973 if test "$with_gnu_ld" = no; then
10974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10975 hardcode_libdir_separator=:
10977 case $host_cpu in
10978 hppa*64*|ia64*)
10979 hardcode_direct=no
10980 hardcode_shlibpath_var=no
10983 hardcode_direct=yes
10984 hardcode_direct_absolute=yes
10985 export_dynamic_flag_spec='${wl}-E'
10987 # hardcode_minus_L: Not really in the search PATH,
10988 # but as the default location of the library.
10989 hardcode_minus_L=yes
10991 esac
10995 irix5* | irix6* | nonstopux*)
10996 if test "$GCC" = yes; then
10997 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'
10998 # Try to use the -exported_symbol ld option, if it does not
10999 # work, assume that -exports_file does not work either and
11000 # implicitly export all symbols.
11001 save_LDFLAGS="$LDFLAGS"
11002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11003 if test x$gcc_no_link = xyes; then
11004 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 int foo(void) {}
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 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'
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LDFLAGS="$save_LDFLAGS"
11017 else
11018 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'
11019 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'
11021 archive_cmds_need_lc='no'
11022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11023 hardcode_libdir_separator=:
11024 inherit_rpath=yes
11025 link_all_deplibs=yes
11028 netbsd*)
11029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11031 else
11032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11034 hardcode_libdir_flag_spec='-R$libdir'
11035 hardcode_direct=yes
11036 hardcode_shlibpath_var=no
11039 newsos6)
11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_direct=yes
11042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11043 hardcode_libdir_separator=:
11044 hardcode_shlibpath_var=no
11047 *nto* | *qnx*)
11050 openbsd*)
11051 if test -f /usr/libexec/ld.so; then
11052 hardcode_direct=yes
11053 hardcode_shlibpath_var=no
11054 hardcode_direct_absolute=yes
11055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11059 export_dynamic_flag_spec='${wl}-E'
11060 else
11061 case $host_os in
11062 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11064 hardcode_libdir_flag_spec='-R$libdir'
11067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11070 esac
11072 else
11073 ld_shlibs=no
11077 os2*)
11078 hardcode_libdir_flag_spec='-L$libdir'
11079 hardcode_minus_L=yes
11080 allow_undefined_flag=unsupported
11081 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'
11082 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11085 osf3*)
11086 if test "$GCC" = yes; then
11087 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11088 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'
11089 else
11090 allow_undefined_flag=' -expect_unresolved \*'
11091 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'
11093 archive_cmds_need_lc='no'
11094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11095 hardcode_libdir_separator=:
11098 osf4* | osf5*) # as osf3* with the addition of -msym flag
11099 if test "$GCC" = yes; then
11100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11101 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'
11102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11103 else
11104 allow_undefined_flag=' -expect_unresolved \*'
11105 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'
11106 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~
11107 $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'
11109 # Both c and cxx compiler support -rpath directly
11110 hardcode_libdir_flag_spec='-rpath $libdir'
11112 archive_cmds_need_lc='no'
11113 hardcode_libdir_separator=:
11116 solaris*)
11117 no_undefined_flag=' -z defs'
11118 if test "$GCC" = yes; then
11119 wlarc='${wl}'
11120 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11122 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11123 else
11124 case `$CC -V 2>&1` in
11125 *"Compilers 5.0"*)
11126 wlarc=''
11127 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11132 wlarc='${wl}'
11133 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11135 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11137 esac
11139 hardcode_libdir_flag_spec='-R$libdir'
11140 hardcode_shlibpath_var=no
11141 case $host_os in
11142 solaris2.[0-5] | solaris2.[0-5].*) ;;
11144 # The compiler driver will combine and reorder linker options,
11145 # but understands `-z linker_flag'. GCC discards it without `$wl',
11146 # but is careful enough not to reorder.
11147 # Supported since Solaris 2.6 (maybe 2.5.1?)
11148 if test "$GCC" = yes; then
11149 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11150 else
11151 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11154 esac
11155 link_all_deplibs=yes
11158 sunos4*)
11159 if test "x$host_vendor" = xsequent; then
11160 # Use $CC to link under sequent, because it throws in some extra .o
11161 # files that make .init and .fini sections work.
11162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11163 else
11164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11166 hardcode_libdir_flag_spec='-L$libdir'
11167 hardcode_direct=yes
11168 hardcode_minus_L=yes
11169 hardcode_shlibpath_var=no
11172 sysv4)
11173 case $host_vendor in
11174 sni)
11175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11176 hardcode_direct=yes # is this really true???
11178 siemens)
11179 ## LD is ld it makes a PLAMLIB
11180 ## CC just makes a GrossModule.
11181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11182 reload_cmds='$CC -r -o $output$reload_objs'
11183 hardcode_direct=no
11185 motorola)
11186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11189 esac
11190 runpath_var='LD_RUN_PATH'
11191 hardcode_shlibpath_var=no
11194 sysv4.3*)
11195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11196 hardcode_shlibpath_var=no
11197 export_dynamic_flag_spec='-Bexport'
11200 sysv4*MP*)
11201 if test -d /usr/nec; then
11202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11203 hardcode_shlibpath_var=no
11204 runpath_var=LD_RUN_PATH
11205 hardcode_runpath_var=yes
11206 ld_shlibs=yes
11210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11211 no_undefined_flag='${wl}-z,text'
11212 archive_cmds_need_lc=no
11213 hardcode_shlibpath_var=no
11214 runpath_var='LD_RUN_PATH'
11216 if test "$GCC" = yes; then
11217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 else
11220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11225 sysv5* | sco3.2v5* | sco5v6*)
11226 # Note: We can NOT use -z defs as we might desire, because we do not
11227 # link with -lc, and that would cause any symbols used from libc to
11228 # always be unresolved, which means just about no library would
11229 # ever link correctly. If we're not using GNU ld we use -z text
11230 # though, which does catch some bad symbols but isn't as heavy-handed
11231 # as -z defs.
11232 no_undefined_flag='${wl}-z,text'
11233 allow_undefined_flag='${wl}-z,nodefs'
11234 archive_cmds_need_lc=no
11235 hardcode_shlibpath_var=no
11236 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11237 hardcode_libdir_separator=':'
11238 link_all_deplibs=yes
11239 export_dynamic_flag_spec='${wl}-Bexport'
11240 runpath_var='LD_RUN_PATH'
11242 if test "$GCC" = yes; then
11243 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11245 else
11246 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11251 uts4*)
11252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11253 hardcode_libdir_flag_spec='-L$libdir'
11254 hardcode_shlibpath_var=no
11258 ld_shlibs=no
11260 esac
11262 if test x$host_vendor = xsni; then
11263 case $host in
11264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11265 export_dynamic_flag_spec='${wl}-Blargedynsym'
11267 esac
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11272 $as_echo "$ld_shlibs" >&6; }
11273 test "$ld_shlibs" = no && can_build_shared=no
11275 with_gnu_ld=$with_gnu_ld
11292 # Do we need to explicitly link libc?
11294 case "x$archive_cmds_need_lc" in
11295 x|xyes)
11296 # Assume -lc should be added
11297 archive_cmds_need_lc=yes
11299 if test "$enable_shared" = yes && test "$GCC" = yes; then
11300 case $archive_cmds in
11301 *'~'*)
11302 # FIXME: we may have to deal with multi-command sequences.
11304 '$CC '*)
11305 # Test whether the compiler implicitly links with -lc since on some
11306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11307 # to ld, don't add -lc before -lgcc.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11309 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11310 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 $RM conftest*
11314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11317 (eval $ac_compile) 2>&5
11318 ac_status=$?
11319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11320 test $ac_status = 0; } 2>conftest.err; then
11321 soname=conftest
11322 lib=conftest
11323 libobjs=conftest.$ac_objext
11324 deplibs=
11325 wl=$lt_prog_compiler_wl
11326 pic_flag=$lt_prog_compiler_pic
11327 compiler_flags=-v
11328 linker_flags=-v
11329 verstring=
11330 output_objdir=.
11331 libname=conftest
11332 lt_save_allow_undefined_flag=$allow_undefined_flag
11333 allow_undefined_flag=
11334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11335 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11336 ac_status=$?
11337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338 test $ac_status = 0; }
11339 then
11340 lt_cv_archive_cmds_need_lc=no
11341 else
11342 lt_cv_archive_cmds_need_lc=yes
11344 allow_undefined_flag=$lt_save_allow_undefined_flag
11345 else
11346 cat conftest.err 1>&5
11348 $RM conftest*
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11352 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11353 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11355 esac
11358 esac
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11519 if test "$GCC" = yes; then
11520 case $host_os in
11521 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11522 *) lt_awk_arg="/^libraries:/" ;;
11523 esac
11524 case $host_os in
11525 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11526 *) lt_sed_strip_eq="s,=/,/,g" ;;
11527 esac
11528 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11529 case $lt_search_path_spec in
11530 *\;*)
11531 # if the path contains ";" then we assume it to be the separator
11532 # otherwise default to the standard path separator (i.e. ":") - it is
11533 # assumed that no part of a normal pathname contains ";" but that should
11534 # okay in the real world where ";" in dirpaths is itself problematic.
11535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11538 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11540 esac
11541 # Ok, now we have the path, separated by spaces, we can step through it
11542 # and add multilib dir if necessary.
11543 lt_tmp_lt_search_path_spec=
11544 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11545 for lt_sys_path in $lt_search_path_spec; do
11546 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11548 else
11549 test -d "$lt_sys_path" && \
11550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11552 done
11553 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11554 BEGIN {RS=" "; FS="/|\n";} {
11555 lt_foo="";
11556 lt_count=0;
11557 for (lt_i = NF; lt_i > 0; lt_i--) {
11558 if ($lt_i != "" && $lt_i != ".") {
11559 if ($lt_i == "..") {
11560 lt_count++;
11561 } else {
11562 if (lt_count == 0) {
11563 lt_foo="/" $lt_i lt_foo;
11564 } else {
11565 lt_count--;
11570 if (lt_foo != "") { lt_freq[lt_foo]++; }
11571 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11573 # AWK program above erroneously prepends '/' to C:/dos/paths
11574 # for these hosts.
11575 case $host_os in
11576 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11577 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11578 esac
11579 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11580 else
11581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11583 library_names_spec=
11584 libname_spec='lib$name'
11585 soname_spec=
11586 shrext_cmds=".so"
11587 postinstall_cmds=
11588 postuninstall_cmds=
11589 finish_cmds=
11590 finish_eval=
11591 shlibpath_var=
11592 shlibpath_overrides_runpath=unknown
11593 version_type=none
11594 dynamic_linker="$host_os ld.so"
11595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11596 need_lib_prefix=unknown
11597 hardcode_into_libs=no
11599 # when you set need_version to no, make sure it does not cause -set_version
11600 # flags to be left without arguments
11601 need_version=unknown
11603 case $host_os in
11604 aix3*)
11605 version_type=linux
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11607 shlibpath_var=LIBPATH
11609 # AIX 3 has no versioning support, so we append a major version to the name.
11610 soname_spec='${libname}${release}${shared_ext}$major'
11613 aix[4-9]*)
11614 version_type=linux
11615 need_lib_prefix=no
11616 need_version=no
11617 hardcode_into_libs=yes
11618 if test "$host_cpu" = ia64; then
11619 # AIX 5 supports IA64
11620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 else
11623 # With GCC up to 2.95.x, collect2 would create an import file
11624 # for dependence libraries. The import file would start with
11625 # the line `#! .'. This would cause the generated library to
11626 # depend on `.', always an invalid library. This was fixed in
11627 # development snapshots of GCC prior to 3.0.
11628 case $host_os in
11629 aix4 | aix4.[01] | aix4.[01].*)
11630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11631 echo ' yes '
11632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11634 else
11635 can_build_shared=no
11638 esac
11639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11640 # soname into executable. Probably we can add versioning support to
11641 # collect2, so additional links can be useful in future.
11642 if test "$aix_use_runtimelinking" = yes; then
11643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11644 # instead of lib<name>.a to let people know that these are not
11645 # typical AIX shared libraries.
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647 else
11648 # We preserve .a as extension for shared libraries through AIX4.2
11649 # and later when we are not doing run time linking.
11650 library_names_spec='${libname}${release}.a $libname.a'
11651 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LIBPATH
11657 amigaos*)
11658 case $host_cpu in
11659 powerpc)
11660 # Since July 2007 AmigaOS4 officially supports .so libraries.
11661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664 m68k)
11665 library_names_spec='$libname.ixlibrary $libname.a'
11666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11667 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'
11669 esac
11672 beos*)
11673 library_names_spec='${libname}${shared_ext}'
11674 dynamic_linker="$host_os ld.so"
11675 shlibpath_var=LIBRARY_PATH
11678 bsdi[45]*)
11679 version_type=linux
11680 need_version=no
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec='${libname}${release}${shared_ext}$major'
11683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11684 shlibpath_var=LD_LIBRARY_PATH
11685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11687 # the default ld.so.conf also contains /usr/contrib/lib and
11688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11689 # libtool to hard-code these into programs
11692 cygwin* | mingw* | pw32* | cegcc*)
11693 version_type=windows
11694 shrext_cmds=".dll"
11695 need_version=no
11696 need_lib_prefix=no
11698 case $GCC,$host_os in
11699 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11700 library_names_spec='$libname.dll.a'
11701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11702 postinstall_cmds='base_file=`basename \${file}`~
11703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11704 dldir=$destdir/`dirname \$dlpath`~
11705 test -d \$dldir || mkdir -p \$dldir~
11706 $install_prog $dir/$dlname \$dldir/$dlname~
11707 chmod a+x \$dldir/$dlname~
11708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11712 dlpath=$dir/\$dldll~
11713 $RM \$dlpath'
11714 shlibpath_overrides_runpath=yes
11716 case $host_os in
11717 cygwin*)
11718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11723 mingw* | cegcc*)
11724 # MinGW DLLs use traditional 'lib' prefix
11725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11727 pw32*)
11728 # pw32 DLLs use 'pw' prefix rather than 'lib'
11729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11731 esac
11735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11737 esac
11738 dynamic_linker='Win32 ld.exe'
11739 # FIXME: first we should search . and the directory the executable is in
11740 shlibpath_var=PATH
11743 darwin* | rhapsody*)
11744 dynamic_linker="$host_os dyld"
11745 version_type=darwin
11746 need_lib_prefix=no
11747 need_version=no
11748 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11749 soname_spec='${libname}${release}${major}$shared_ext'
11750 shlibpath_overrides_runpath=yes
11751 shlibpath_var=DYLD_LIBRARY_PATH
11752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11758 dgux*)
11759 version_type=linux
11760 need_lib_prefix=no
11761 need_version=no
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11767 freebsd* | dragonfly*)
11768 # DragonFly does not have aout. When/if they implement a new
11769 # versioning mechanism, adjust this.
11770 if test -x /usr/bin/objformat; then
11771 objformat=`/usr/bin/objformat`
11772 else
11773 case $host_os in
11774 freebsd[23].*) objformat=aout ;;
11775 *) objformat=elf ;;
11776 esac
11778 version_type=freebsd-$objformat
11779 case $version_type in
11780 freebsd-elf*)
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11782 need_version=no
11783 need_lib_prefix=no
11785 freebsd-*)
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11787 need_version=yes
11789 esac
11790 shlibpath_var=LD_LIBRARY_PATH
11791 case $host_os in
11792 freebsd2.*)
11793 shlibpath_overrides_runpath=yes
11795 freebsd3.[01]* | freebsdelf3.[01]*)
11796 shlibpath_overrides_runpath=yes
11797 hardcode_into_libs=yes
11799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11801 shlibpath_overrides_runpath=no
11802 hardcode_into_libs=yes
11804 *) # from 4.6 on, and DragonFly
11805 shlibpath_overrides_runpath=yes
11806 hardcode_into_libs=yes
11808 esac
11811 haiku*)
11812 version_type=linux
11813 need_lib_prefix=no
11814 need_version=no
11815 dynamic_linker="$host_os runtime_loader"
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LIBRARY_PATH
11819 shlibpath_overrides_runpath=yes
11820 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11821 hardcode_into_libs=yes
11824 hpux9* | hpux10* | hpux11*)
11825 # Give a soname corresponding to the major version so that dld.sl refuses to
11826 # link against other versions.
11827 version_type=sunos
11828 need_lib_prefix=no
11829 need_version=no
11830 case $host_cpu in
11831 ia64*)
11832 shrext_cmds='.so'
11833 hardcode_into_libs=yes
11834 dynamic_linker="$host_os dld.so"
11835 shlibpath_var=LD_LIBRARY_PATH
11836 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838 soname_spec='${libname}${release}${shared_ext}$major'
11839 if test "X$HPUX_IA64_MODE" = X32; then
11840 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11841 else
11842 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11846 hppa*64*)
11847 shrext_cmds='.sl'
11848 hardcode_into_libs=yes
11849 dynamic_linker="$host_os dld.sl"
11850 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11858 shrext_cmds='.sl'
11859 dynamic_linker="$host_os dld.sl"
11860 shlibpath_var=SHLIB_PATH
11861 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11865 esac
11866 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11867 postinstall_cmds='chmod 555 $lib'
11868 # or fails outright, so override atomically:
11869 install_override_mode=555
11872 interix[3-9]*)
11873 version_type=linux
11874 need_lib_prefix=no
11875 need_version=no
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=no
11881 hardcode_into_libs=yes
11884 irix5* | irix6* | nonstopux*)
11885 case $host_os in
11886 nonstopux*) version_type=nonstopux ;;
11888 if test "$lt_cv_prog_gnu_ld" = yes; then
11889 version_type=linux
11890 else
11891 version_type=irix
11892 fi ;;
11893 esac
11894 need_lib_prefix=no
11895 need_version=no
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11898 case $host_os in
11899 irix5* | nonstopux*)
11900 libsuff= shlibsuff=
11903 case $LD in # libtool.m4 will add one of these switches to LD
11904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11905 libsuff= shlibsuff= libmagic=32-bit;;
11906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11907 libsuff=32 shlibsuff=N32 libmagic=N32;;
11908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11909 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11910 *) libsuff= shlibsuff= libmagic=never-match;;
11911 esac
11913 esac
11914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11915 shlibpath_overrides_runpath=no
11916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11918 hardcode_into_libs=yes
11921 # No shared lib support for Linux oldld, aout, or coff.
11922 linux*oldld* | linux*aout* | linux*coff*)
11923 dynamic_linker=no
11926 # This must be Linux ELF.
11928 # uclinux* changes (here and below) have been submitted to the libtool
11929 # project, but have not yet been accepted: they are GCC-local changes
11930 # for the time being. (See
11931 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11932 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11933 version_type=linux
11934 need_lib_prefix=no
11935 need_version=no
11936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937 soname_spec='${libname}${release}${shared_ext}$major'
11938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=no
11942 # Some binutils ld are patched to set DT_RUNPATH
11943 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 lt_cv_shlibpath_overrides_runpath=no
11947 save_LDFLAGS=$LDFLAGS
11948 save_libdir=$libdir
11949 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11950 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11951 if test x$gcc_no_link = xyes; then
11952 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11958 main ()
11962 return 0;
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11967 lt_cv_shlibpath_overrides_runpath=yes
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 LDFLAGS=$save_LDFLAGS
11973 libdir=$save_libdir
11977 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11979 # This implies no fast_install, which is unacceptable.
11980 # Some rework will be needed to allow for fast_install
11981 # before this can be enabled.
11982 hardcode_into_libs=yes
11984 # Append ld.so.conf contents to the search path
11985 if test -f /etc/ld.so.conf; then
11986 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' ' '`
11987 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11990 # We used to test for /lib/ld.so.1 and disable shared libraries on
11991 # powerpc, because MkLinux only supported shared libraries with the
11992 # GNU dynamic linker. Since this was broken with cross compilers,
11993 # most powerpc-linux boxes support dynamic linking these days and
11994 # people can always --disable-shared, the test was removed, and we
11995 # assume the GNU/Linux dynamic linker is in use.
11996 dynamic_linker='GNU/Linux ld.so'
11999 netbsd*)
12000 version_type=sunos
12001 need_lib_prefix=no
12002 need_version=no
12003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12006 dynamic_linker='NetBSD (a.out) ld.so'
12007 else
12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12009 soname_spec='${libname}${release}${shared_ext}$major'
12010 dynamic_linker='NetBSD ld.elf_so'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12014 hardcode_into_libs=yes
12017 newsos6)
12018 version_type=linux
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 shlibpath_overrides_runpath=yes
12024 *nto* | *qnx*)
12025 version_type=qnx
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 shlibpath_overrides_runpath=no
12032 hardcode_into_libs=yes
12033 dynamic_linker='ldqnx.so'
12036 openbsd*)
12037 version_type=sunos
12038 sys_lib_dlsearch_path_spec="/usr/lib"
12039 need_lib_prefix=no
12040 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12041 case $host_os in
12042 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12043 *) need_version=no ;;
12044 esac
12045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12047 shlibpath_var=LD_LIBRARY_PATH
12048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12049 case $host_os in
12050 openbsd2.[89] | openbsd2.[89].*)
12051 shlibpath_overrides_runpath=no
12054 shlibpath_overrides_runpath=yes
12056 esac
12057 else
12058 shlibpath_overrides_runpath=yes
12062 os2*)
12063 libname_spec='$name'
12064 shrext_cmds=".dll"
12065 need_lib_prefix=no
12066 library_names_spec='$libname${shared_ext} $libname.a'
12067 dynamic_linker='OS/2 ld.exe'
12068 shlibpath_var=LIBPATH
12071 osf3* | osf4* | osf5*)
12072 version_type=osf
12073 need_lib_prefix=no
12074 need_version=no
12075 soname_spec='${libname}${release}${shared_ext}$major'
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077 shlibpath_var=LD_LIBRARY_PATH
12078 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12079 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12082 rdos*)
12083 dynamic_linker=no
12086 solaris*)
12087 version_type=linux
12088 need_lib_prefix=no
12089 need_version=no
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091 soname_spec='${libname}${release}${shared_ext}$major'
12092 shlibpath_var=LD_LIBRARY_PATH
12093 shlibpath_overrides_runpath=yes
12094 hardcode_into_libs=yes
12095 # ldd complains unless libraries are executable
12096 postinstall_cmds='chmod +x $lib'
12099 sunos4*)
12100 version_type=sunos
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12105 if test "$with_gnu_ld" = yes; then
12106 need_lib_prefix=no
12108 need_version=yes
12111 sysv4 | sysv4.3*)
12112 version_type=linux
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 shlibpath_var=LD_LIBRARY_PATH
12116 case $host_vendor in
12117 sni)
12118 shlibpath_overrides_runpath=no
12119 need_lib_prefix=no
12120 runpath_var=LD_RUN_PATH
12122 siemens)
12123 need_lib_prefix=no
12125 motorola)
12126 need_lib_prefix=no
12127 need_version=no
12128 shlibpath_overrides_runpath=no
12129 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12131 esac
12134 sysv4*MP*)
12135 if test -d /usr/nec ;then
12136 version_type=linux
12137 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12138 soname_spec='$libname${shared_ext}.$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12144 version_type=freebsd-elf
12145 need_lib_prefix=no
12146 need_version=no
12147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12148 soname_spec='${libname}${release}${shared_ext}$major'
12149 shlibpath_var=LD_LIBRARY_PATH
12150 shlibpath_overrides_runpath=yes
12151 hardcode_into_libs=yes
12152 if test "$with_gnu_ld" = yes; then
12153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12154 else
12155 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12156 case $host_os in
12157 sco3.2v5*)
12158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12160 esac
12162 sys_lib_dlsearch_path_spec='/usr/lib'
12165 tpf*)
12166 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12167 version_type=linux
12168 need_lib_prefix=no
12169 need_version=no
12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=no
12173 hardcode_into_libs=yes
12176 uts4*)
12177 version_type=linux
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12183 # Shared libraries for VwWorks, >= 7 only at this stage
12184 # and (fpic) still incompatible with "large" code models
12185 # in a few configurations. Only for RTP mode in any case,
12186 # and upon explicit request at configure time.
12187 vxworks7*)
12188 dynamic_linker=no
12189 case ${with_multisubdir}-${enable_shared} in
12190 *large*)
12192 *mrtp*-yes)
12193 version_type=linux
12194 need_lib_prefix=no
12195 need_version=no
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197 soname_spec='${libname}${release}${shared_ext}$major'
12198 dynamic_linker="$host_os module_loader"
12200 esac
12203 dynamic_linker=no
12205 esac
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12207 $as_echo "$dynamic_linker" >&6; }
12208 test "$dynamic_linker" = no && can_build_shared=no
12210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12211 if test "$GCC" = yes; then
12212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12215 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12216 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12218 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12219 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12314 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12315 hardcode_action=
12316 if test -n "$hardcode_libdir_flag_spec" ||
12317 test -n "$runpath_var" ||
12318 test "X$hardcode_automatic" = "Xyes" ; then
12320 # We can hardcode non-existent directories.
12321 if test "$hardcode_direct" != no &&
12322 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12323 # have to relink, otherwise we might link with an installed library
12324 # when we should be linking with a yet-to-be-installed one
12325 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12326 test "$hardcode_minus_L" != no; then
12327 # Linking always hardcodes the temporary library directory.
12328 hardcode_action=relink
12329 else
12330 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12331 hardcode_action=immediate
12333 else
12334 # We cannot hardcode anything, or else we can only hardcode existing
12335 # directories.
12336 hardcode_action=unsupported
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12339 $as_echo "$hardcode_action" >&6; }
12341 if test "$hardcode_action" = relink ||
12342 test "$inherit_rpath" = yes; then
12343 # Fast installation is not supported
12344 enable_fast_install=no
12345 elif test "$shlibpath_overrides_runpath" = yes ||
12346 test "$enable_shared" = no; then
12347 # Fast installation is not necessary
12348 enable_fast_install=needless
12356 if test "x$enable_dlopen" != xyes; then
12357 enable_dlopen=unknown
12358 enable_dlopen_self=unknown
12359 enable_dlopen_self_static=unknown
12360 else
12361 lt_cv_dlopen=no
12362 lt_cv_dlopen_libs=
12364 case $host_os in
12365 beos*)
12366 lt_cv_dlopen="load_add_on"
12367 lt_cv_dlopen_libs=
12368 lt_cv_dlopen_self=yes
12371 mingw* | pw32* | cegcc*)
12372 lt_cv_dlopen="LoadLibrary"
12373 lt_cv_dlopen_libs=
12376 cygwin*)
12377 lt_cv_dlopen="dlopen"
12378 lt_cv_dlopen_libs=
12381 darwin*)
12382 # if libdl is installed we need to link against it
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12385 if ${ac_cv_lib_dl_dlopen+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-ldl $LIBS"
12390 if test x$gcc_no_link = xyes; then
12391 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 #ifdef __cplusplus
12400 extern "C"
12401 #endif
12402 char dlopen ();
12404 main ()
12406 return dlopen ();
12408 return 0;
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_lib_dl_dlopen=yes
12413 else
12414 ac_cv_lib_dl_dlopen=no
12416 rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12422 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12424 else
12426 lt_cv_dlopen="dyld"
12427 lt_cv_dlopen_libs=
12428 lt_cv_dlopen_self=yes
12435 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12436 if test "x$ac_cv_func_shl_load" = xyes; then :
12437 lt_cv_dlopen="shl_load"
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12440 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12441 if ${ac_cv_lib_dld_shl_load+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-ldld $LIBS"
12446 if test x$gcc_no_link = xyes; then
12447 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12452 /* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
12455 #ifdef __cplusplus
12456 extern "C"
12457 #endif
12458 char shl_load ();
12460 main ()
12462 return shl_load ();
12464 return 0;
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"; then :
12468 ac_cv_lib_dld_shl_load=yes
12469 else
12470 ac_cv_lib_dld_shl_load=no
12472 rm -f core conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 LIBS=$ac_check_lib_save_LIBS
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12477 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12478 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12480 else
12481 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12482 if test "x$ac_cv_func_dlopen" = xyes; then :
12483 lt_cv_dlopen="dlopen"
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12487 if ${ac_cv_lib_dl_dlopen+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-ldl $LIBS"
12492 if test x$gcc_no_link = xyes; then
12493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 /* Override any GCC internal prototype to avoid an error.
12499 Use char because int might match the return type of a GCC
12500 builtin and then its argument prototype would still apply. */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 char dlopen ();
12506 main ()
12508 return dlopen ();
12510 return 0;
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"; then :
12514 ac_cv_lib_dl_dlopen=yes
12515 else
12516 ac_cv_lib_dl_dlopen=no
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12526 else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12528 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12529 if ${ac_cv_lib_svld_dlopen+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lsvld $LIBS"
12534 if test x$gcc_no_link = xyes; then
12535 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12543 #ifdef __cplusplus
12544 extern "C"
12545 #endif
12546 char dlopen ();
12548 main ()
12550 return dlopen ();
12552 return 0;
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_lib_svld_dlopen=yes
12557 else
12558 ac_cv_lib_svld_dlopen=no
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12565 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12566 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12570 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12571 if ${ac_cv_lib_dld_dld_link+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 ac_check_lib_save_LIBS=$LIBS
12575 LIBS="-ldld $LIBS"
12576 if test x$gcc_no_link = xyes; then
12577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12582 /* Override any GCC internal prototype to avoid an error.
12583 Use char because int might match the return type of a GCC
12584 builtin and then its argument prototype would still apply. */
12585 #ifdef __cplusplus
12586 extern "C"
12587 #endif
12588 char dld_link ();
12590 main ()
12592 return dld_link ();
12594 return 0;
12596 _ACEOF
12597 if ac_fn_c_try_link "$LINENO"; then :
12598 ac_cv_lib_dld_dld_link=yes
12599 else
12600 ac_cv_lib_dld_dld_link=no
12602 rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12604 LIBS=$ac_check_lib_save_LIBS
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12608 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12628 esac
12630 if test "x$lt_cv_dlopen" != xno; then
12631 enable_dlopen=yes
12632 else
12633 enable_dlopen=no
12636 case $lt_cv_dlopen in
12637 dlopen)
12638 save_CPPFLAGS="$CPPFLAGS"
12639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12641 save_LDFLAGS="$LDFLAGS"
12642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12644 save_LIBS="$LIBS"
12645 LIBS="$lt_cv_dlopen_libs $LIBS"
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12649 if ${lt_cv_dlopen_self+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test "$cross_compiling" = yes; then :
12653 lt_cv_dlopen_self=cross
12654 else
12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12656 lt_status=$lt_dlunknown
12657 cat > conftest.$ac_ext <<_LT_EOF
12658 #line 12658 "configure"
12659 #include "confdefs.h"
12661 #if HAVE_DLFCN_H
12662 #include <dlfcn.h>
12663 #endif
12665 #include <stdio.h>
12667 #ifdef RTLD_GLOBAL
12668 # define LT_DLGLOBAL RTLD_GLOBAL
12669 #else
12670 # ifdef DL_GLOBAL
12671 # define LT_DLGLOBAL DL_GLOBAL
12672 # else
12673 # define LT_DLGLOBAL 0
12674 # endif
12675 #endif
12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12678 find out it does not work in some platform. */
12679 #ifndef LT_DLLAZY_OR_NOW
12680 # ifdef RTLD_LAZY
12681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12682 # else
12683 # ifdef DL_LAZY
12684 # define LT_DLLAZY_OR_NOW DL_LAZY
12685 # else
12686 # ifdef RTLD_NOW
12687 # define LT_DLLAZY_OR_NOW RTLD_NOW
12688 # else
12689 # ifdef DL_NOW
12690 # define LT_DLLAZY_OR_NOW DL_NOW
12691 # else
12692 # define LT_DLLAZY_OR_NOW 0
12693 # endif
12694 # endif
12695 # endif
12696 # endif
12697 #endif
12699 /* When -fvisbility=hidden is used, assume the code has been annotated
12700 correspondingly for the symbols needed. */
12701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12702 void fnord () __attribute__((visibility("default")));
12703 #endif
12705 void fnord () { int i=42; }
12706 int main ()
12708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12709 int status = $lt_dlunknown;
12711 if (self)
12713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12714 else
12716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12717 else puts (dlerror ());
12719 /* dlclose (self); */
12721 else
12722 puts (dlerror ());
12724 return status;
12726 _LT_EOF
12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12728 (eval $ac_link) 2>&5
12729 ac_status=$?
12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12732 (./conftest; exit; ) >&5 2>/dev/null
12733 lt_status=$?
12734 case x$lt_status in
12735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12738 esac
12739 else :
12740 # compilation failed
12741 lt_cv_dlopen_self=no
12744 rm -fr conftest*
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12749 $as_echo "$lt_cv_dlopen_self" >&6; }
12751 if test "x$lt_cv_dlopen_self" = xyes; then
12752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12755 if ${lt_cv_dlopen_self_static+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 if test "$cross_compiling" = yes; then :
12759 lt_cv_dlopen_self_static=cross
12760 else
12761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12762 lt_status=$lt_dlunknown
12763 cat > conftest.$ac_ext <<_LT_EOF
12764 #line 12764 "configure"
12765 #include "confdefs.h"
12767 #if HAVE_DLFCN_H
12768 #include <dlfcn.h>
12769 #endif
12771 #include <stdio.h>
12773 #ifdef RTLD_GLOBAL
12774 # define LT_DLGLOBAL RTLD_GLOBAL
12775 #else
12776 # ifdef DL_GLOBAL
12777 # define LT_DLGLOBAL DL_GLOBAL
12778 # else
12779 # define LT_DLGLOBAL 0
12780 # endif
12781 #endif
12783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12784 find out it does not work in some platform. */
12785 #ifndef LT_DLLAZY_OR_NOW
12786 # ifdef RTLD_LAZY
12787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12788 # else
12789 # ifdef DL_LAZY
12790 # define LT_DLLAZY_OR_NOW DL_LAZY
12791 # else
12792 # ifdef RTLD_NOW
12793 # define LT_DLLAZY_OR_NOW RTLD_NOW
12794 # else
12795 # ifdef DL_NOW
12796 # define LT_DLLAZY_OR_NOW DL_NOW
12797 # else
12798 # define LT_DLLAZY_OR_NOW 0
12799 # endif
12800 # endif
12801 # endif
12802 # endif
12803 #endif
12805 /* When -fvisbility=hidden is used, assume the code has been annotated
12806 correspondingly for the symbols needed. */
12807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12808 void fnord () __attribute__((visibility("default")));
12809 #endif
12811 void fnord () { int i=42; }
12812 int main ()
12814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12815 int status = $lt_dlunknown;
12817 if (self)
12819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12820 else
12822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12823 else puts (dlerror ());
12825 /* dlclose (self); */
12827 else
12828 puts (dlerror ());
12830 return status;
12832 _LT_EOF
12833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12834 (eval $ac_link) 2>&5
12835 ac_status=$?
12836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12838 (./conftest; exit; ) >&5 2>/dev/null
12839 lt_status=$?
12840 case x$lt_status in
12841 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12842 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12843 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12844 esac
12845 else :
12846 # compilation failed
12847 lt_cv_dlopen_self_static=no
12850 rm -fr conftest*
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12858 CPPFLAGS="$save_CPPFLAGS"
12859 LDFLAGS="$save_LDFLAGS"
12860 LIBS="$save_LIBS"
12862 esac
12864 case $lt_cv_dlopen_self in
12865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12866 *) enable_dlopen_self=unknown ;;
12867 esac
12869 case $lt_cv_dlopen_self_static in
12870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12871 *) enable_dlopen_self_static=unknown ;;
12872 esac
12891 striplib=
12892 old_striplib=
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12895 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12899 $as_echo "yes" >&6; }
12900 else
12901 # FIXME - insert some real tests, host_os isn't really good enough
12902 case $host_os in
12903 darwin*)
12904 if test -n "$STRIP" ; then
12905 striplib="$STRIP -x"
12906 old_striplib="$STRIP -S"
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12918 esac
12932 # Report which library types will actually be built
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12936 $as_echo "$can_build_shared" >&6; }
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12939 $as_echo_n "checking whether to build shared libraries... " >&6; }
12940 test "$can_build_shared" = "no" && enable_shared=no
12942 # On AIX, shared libraries and static libraries use the same namespace, and
12943 # are all built from PIC.
12944 case $host_os in
12945 aix3*)
12946 test "$enable_shared" = yes && enable_static=no
12947 if test -n "$RANLIB"; then
12948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12949 postinstall_cmds='$RANLIB $lib'
12953 aix[4-9]*)
12954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12955 test "$enable_shared" = yes && enable_static=no
12958 esac
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12960 $as_echo "$enable_shared" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12963 $as_echo_n "checking whether to build static libraries... " >&6; }
12964 # Make sure either enable_shared or enable_static is yes.
12965 test "$enable_shared" = yes || enable_static=yes
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12967 $as_echo "$enable_static" >&6; }
12973 ac_ext=c
12974 ac_cpp='$CPP $CPPFLAGS'
12975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12979 CC="$lt_save_CC"
12981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12983 (test "X$CXX" != "Xg++"))) ; then
12984 ac_ext=cpp
12985 ac_cpp='$CXXCPP $CPPFLAGS'
12986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12990 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12991 if test -z "$CXXCPP"; then
12992 if ${ac_cv_prog_CXXCPP+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 # Double quotes because CXXCPP needs to be expanded
12996 for CXXCPP in "$CXX -E" "/lib/cpp"
12998 ac_preproc_ok=false
12999 for ac_cxx_preproc_warn_flag in '' yes
13001 # Use a header file that comes with gcc, so configuring glibc
13002 # with a fresh cross-compiler works.
13003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13004 # <limits.h> exists even on freestanding compilers.
13005 # On the NeXT, cc -E runs the code through the compiler's parser,
13006 # not just through cpp. "Syntax error" is here to catch this case.
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 #ifdef __STDC__
13010 # include <limits.h>
13011 #else
13012 # include <assert.h>
13013 #endif
13014 Syntax error
13015 _ACEOF
13016 if ac_fn_cxx_try_cpp "$LINENO"; then :
13018 else
13019 # Broken: fails on valid input.
13020 continue
13022 rm -f conftest.err conftest.i conftest.$ac_ext
13024 # OK, works on sane cases. Now check whether nonexistent headers
13025 # can be detected and how.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 #include <ac_nonexistent.h>
13029 _ACEOF
13030 if ac_fn_cxx_try_cpp "$LINENO"; then :
13031 # Broken: success on invalid input.
13032 continue
13033 else
13034 # Passes both tests.
13035 ac_preproc_ok=:
13036 break
13038 rm -f conftest.err conftest.i conftest.$ac_ext
13040 done
13041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042 rm -f conftest.i conftest.err conftest.$ac_ext
13043 if $ac_preproc_ok; then :
13044 break
13047 done
13048 ac_cv_prog_CXXCPP=$CXXCPP
13051 CXXCPP=$ac_cv_prog_CXXCPP
13052 else
13053 ac_cv_prog_CXXCPP=$CXXCPP
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13056 $as_echo "$CXXCPP" >&6; }
13057 ac_preproc_ok=false
13058 for ac_cxx_preproc_warn_flag in '' yes
13060 # Use a header file that comes with gcc, so configuring glibc
13061 # with a fresh cross-compiler works.
13062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13063 # <limits.h> exists even on freestanding compilers.
13064 # On the NeXT, cc -E runs the code through the compiler's parser,
13065 # not just through cpp. "Syntax error" is here to catch this case.
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 #ifdef __STDC__
13069 # include <limits.h>
13070 #else
13071 # include <assert.h>
13072 #endif
13073 Syntax error
13074 _ACEOF
13075 if ac_fn_cxx_try_cpp "$LINENO"; then :
13077 else
13078 # Broken: fails on valid input.
13079 continue
13081 rm -f conftest.err conftest.i conftest.$ac_ext
13083 # OK, works on sane cases. Now check whether nonexistent headers
13084 # can be detected and how.
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 #include <ac_nonexistent.h>
13088 _ACEOF
13089 if ac_fn_cxx_try_cpp "$LINENO"; then :
13090 # Broken: success on invalid input.
13091 continue
13092 else
13093 # Passes both tests.
13094 ac_preproc_ok=:
13095 break
13097 rm -f conftest.err conftest.i conftest.$ac_ext
13099 done
13100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13101 rm -f conftest.i conftest.err conftest.$ac_ext
13102 if $ac_preproc_ok; then :
13104 else
13105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13107 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13108 See \`config.log' for more details" "$LINENO" 5; }
13111 ac_ext=c
13112 ac_cpp='$CPP $CPPFLAGS'
13113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13117 else
13118 _lt_caught_CXX_error=yes
13121 ac_ext=cpp
13122 ac_cpp='$CXXCPP $CPPFLAGS'
13123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13127 archive_cmds_need_lc_CXX=no
13128 allow_undefined_flag_CXX=
13129 always_export_symbols_CXX=no
13130 archive_expsym_cmds_CXX=
13131 compiler_needs_object_CXX=no
13132 export_dynamic_flag_spec_CXX=
13133 hardcode_direct_CXX=no
13134 hardcode_direct_absolute_CXX=no
13135 hardcode_libdir_flag_spec_CXX=
13136 hardcode_libdir_flag_spec_ld_CXX=
13137 hardcode_libdir_separator_CXX=
13138 hardcode_minus_L_CXX=no
13139 hardcode_shlibpath_var_CXX=unsupported
13140 hardcode_automatic_CXX=no
13141 inherit_rpath_CXX=no
13142 module_cmds_CXX=
13143 module_expsym_cmds_CXX=
13144 link_all_deplibs_CXX=unknown
13145 old_archive_cmds_CXX=$old_archive_cmds
13146 reload_flag_CXX=$reload_flag
13147 reload_cmds_CXX=$reload_cmds
13148 no_undefined_flag_CXX=
13149 whole_archive_flag_spec_CXX=
13150 enable_shared_with_static_runtimes_CXX=no
13152 # Source file extension for C++ test sources.
13153 ac_ext=cpp
13155 # Object file extension for compiled C++ test sources.
13156 objext=o
13157 objext_CXX=$objext
13159 # No sense in running all these tests if we already determined that
13160 # the CXX compiler isn't working. Some variables (like enable_shared)
13161 # are currently assumed to apply to all compilers on this platform,
13162 # and will be corrupted by setting them based on a non-working compiler.
13163 if test "$_lt_caught_CXX_error" != yes; then
13164 # Code to be used in simple compile tests
13165 lt_simple_compile_test_code="int some_variable = 0;"
13167 # Code to be used in simple link tests
13168 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13170 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13177 # If no C compiler was specified, use CC.
13178 LTCC=${LTCC-"$CC"}
13180 # If no C compiler flags were specified, use CFLAGS.
13181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13183 # Allow CC to be a program name with arguments.
13184 compiler=$CC
13187 # save warnings/boilerplate of simple test code
13188 ac_outfile=conftest.$ac_objext
13189 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13190 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13191 _lt_compiler_boilerplate=`cat conftest.err`
13192 $RM conftest*
13194 ac_outfile=conftest.$ac_objext
13195 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13196 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13197 _lt_linker_boilerplate=`cat conftest.err`
13198 $RM -r conftest*
13201 # Allow CC to be a program name with arguments.
13202 lt_save_CC=$CC
13203 lt_save_LD=$LD
13204 lt_save_GCC=$GCC
13205 GCC=$GXX
13206 lt_save_with_gnu_ld=$with_gnu_ld
13207 lt_save_path_LD=$lt_cv_path_LD
13208 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13210 else
13211 $as_unset lt_cv_prog_gnu_ld
13213 if test -n "${lt_cv_path_LDCXX+set}"; then
13214 lt_cv_path_LD=$lt_cv_path_LDCXX
13215 else
13216 $as_unset lt_cv_path_LD
13218 test -z "${LDCXX+set}" || LD=$LDCXX
13219 CC=${CXX-"c++"}
13220 compiler=$CC
13221 compiler_CXX=$CC
13222 for cc_temp in $compiler""; do
13223 case $cc_temp in
13224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13226 \-*) ;;
13227 *) break;;
13228 esac
13229 done
13230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13233 if test -n "$compiler"; then
13234 # We don't want -fno-exception when compiling C++ code, so set the
13235 # no_builtin_flag separately
13236 if test "$GXX" = yes; then
13237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13238 else
13239 lt_prog_compiler_no_builtin_flag_CXX=
13242 if test "$GXX" = yes; then
13243 # Set up default GNU C++ configuration
13247 # Check whether --with-gnu-ld was given.
13248 if test "${with_gnu_ld+set}" = set; then :
13249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13250 else
13251 with_gnu_ld=no
13254 ac_prog=ld
13255 if test "$GCC" = yes; then
13256 # Check if gcc -print-prog-name=ld gives a path.
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13258 $as_echo_n "checking for ld used by $CC... " >&6; }
13259 case $host in
13260 *-*-mingw*)
13261 # gcc leaves a trailing carriage return which upsets mingw
13262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13265 esac
13266 case $ac_prog in
13267 # Accept absolute paths.
13268 [\\/]* | ?:[\\/]*)
13269 re_direlt='/[^/][^/]*/\.\./'
13270 # Canonicalize the pathname of ld
13271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13274 done
13275 test -z "$LD" && LD="$ac_prog"
13278 # If it fails, then pretend we aren't using GCC.
13279 ac_prog=ld
13282 # If it is relative, then search for the first ld in PATH.
13283 with_gnu_ld=unknown
13285 esac
13286 elif test "$with_gnu_ld" = yes; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13288 $as_echo_n "checking for GNU ld... " >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13291 $as_echo_n "checking for non-GNU ld... " >&6; }
13293 if ${lt_cv_path_LD+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 if test -z "$LD"; then
13297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13298 for ac_dir in $PATH; do
13299 IFS="$lt_save_ifs"
13300 test -z "$ac_dir" && ac_dir=.
13301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13302 lt_cv_path_LD="$ac_dir/$ac_prog"
13303 # Check to see if the program is GNU ld. I'd rather use --version,
13304 # but apparently some variants of GNU ld only accept -v.
13305 # Break only if it was the GNU/non-GNU ld that we prefer.
13306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13307 *GNU* | *'with BFD'*)
13308 test "$with_gnu_ld" != no && break
13311 test "$with_gnu_ld" != yes && break
13313 esac
13315 done
13316 IFS="$lt_save_ifs"
13317 else
13318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13322 LD="$lt_cv_path_LD"
13323 if test -n "$LD"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13325 $as_echo "$LD" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13330 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13333 if ${lt_cv_prog_gnu_ld+:} false; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13337 case `$LD -v 2>&1 </dev/null` in
13338 *GNU* | *'with BFD'*)
13339 lt_cv_prog_gnu_ld=yes
13342 lt_cv_prog_gnu_ld=no
13344 esac
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13348 with_gnu_ld=$lt_cv_prog_gnu_ld
13356 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13357 # archiving commands below assume that GNU ld is being used.
13358 if test "$with_gnu_ld" = yes; then
13359 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13365 # If archive_cmds runs LD, not CC, wlarc should be empty
13366 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13367 # investigate it a little bit more. (MM)
13368 wlarc='${wl}'
13370 # ancient GNU ld didn't support --whole-archive et. al.
13371 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13372 $GREP 'no-whole-archive' > /dev/null; then
13373 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13374 else
13375 whole_archive_flag_spec_CXX=
13377 else
13378 with_gnu_ld=no
13379 wlarc=
13381 # A generic and very simple default shared library creation
13382 # command for GNU C++ for the case where it uses the native
13383 # linker, instead of GNU ld. If possible, this setting should
13384 # overridden to take advantage of the native linker features on
13385 # the platform it is being used on.
13386 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13389 # Commands to make compiler produce verbose output that lists
13390 # what "hidden" libraries, object files and flags are used when
13391 # linking a shared library.
13392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13394 else
13395 GXX=no
13396 with_gnu_ld=no
13397 wlarc=
13400 # PORTME: fill in a description of your system's C++ link characteristics
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13402 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13403 ld_shlibs_CXX=yes
13404 case $host_os in
13405 aix3*)
13406 # FIXME: insert proper C++ library support
13407 ld_shlibs_CXX=no
13409 aix[4-9]*)
13410 if test "$host_cpu" = ia64; then
13411 # On IA64, the linker does run time linking by default, so we don't
13412 # have to do anything special.
13413 aix_use_runtimelinking=no
13414 exp_sym_flag='-Bexport'
13415 no_entry_flag=""
13416 else
13417 aix_use_runtimelinking=no
13419 # Test if we are trying to use run time linking or normal
13420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13421 # need to do runtime linking.
13422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13423 for ld_flag in $LDFLAGS; do
13424 case $ld_flag in
13425 *-brtl*)
13426 aix_use_runtimelinking=yes
13427 break
13429 esac
13430 done
13432 esac
13434 exp_sym_flag='-bexport'
13435 no_entry_flag='-bnoentry'
13438 # When large executables or shared objects are built, AIX ld can
13439 # have problems creating the table of contents. If linking a library
13440 # or program results in "error TOC overflow" add -mminimal-toc to
13441 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13442 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13444 archive_cmds_CXX=''
13445 hardcode_direct_CXX=yes
13446 hardcode_direct_absolute_CXX=yes
13447 hardcode_libdir_separator_CXX=':'
13448 link_all_deplibs_CXX=yes
13449 file_list_spec_CXX='${wl}-f,'
13451 if test "$GXX" = yes; then
13452 case $host_os in aix4.[012]|aix4.[012].*)
13453 # We only want to do this on AIX 4.2 and lower, the check
13454 # below for broken collect2 doesn't work under 4.3+
13455 collect2name=`${CC} -print-prog-name=collect2`
13456 if test -f "$collect2name" &&
13457 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13458 then
13459 # We have reworked collect2
13461 else
13462 # We have old collect2
13463 hardcode_direct_CXX=unsupported
13464 # It fails to find uninstalled libraries when the uninstalled
13465 # path is not listed in the libpath. Setting hardcode_minus_L
13466 # to unsupported forces relinking
13467 hardcode_minus_L_CXX=yes
13468 hardcode_libdir_flag_spec_CXX='-L$libdir'
13469 hardcode_libdir_separator_CXX=
13471 esac
13472 shared_flag='-shared'
13473 if test "$aix_use_runtimelinking" = yes; then
13474 shared_flag="$shared_flag "'${wl}-G'
13476 else
13477 # not using gcc
13478 if test "$host_cpu" = ia64; then
13479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13480 # chokes on -Wl,-G. The following line is correct:
13481 shared_flag='-G'
13482 else
13483 if test "$aix_use_runtimelinking" = yes; then
13484 shared_flag='${wl}-G'
13485 else
13486 shared_flag='${wl}-bM:SRE'
13491 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13492 # It seems that -bexpall does not export symbols beginning with
13493 # underscore (_), so it is better to generate a list of symbols to
13494 # export.
13495 always_export_symbols_CXX=yes
13496 if test "$aix_use_runtimelinking" = yes; then
13497 # Warning - without using the other runtime loading flags (-brtl),
13498 # -berok will link without error, but may produce a broken library.
13499 allow_undefined_flag_CXX='-berok'
13500 # Determine the default libpath from the value encoded in an empty
13501 # executable.
13502 if test x$gcc_no_link = xyes; then
13503 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13509 main ()
13513 return 0;
13515 _ACEOF
13516 if ac_fn_cxx_try_link "$LINENO"; then :
13518 lt_aix_libpath_sed='
13519 /Import File Strings/,/^$/ {
13520 /^0/ {
13521 s/^0 *\(.*\)$/\1/
13525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13526 # Check for a 64-bit object if we didn't find anything.
13527 if test -z "$aix_libpath"; then
13528 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13535 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13537 archive_expsym_cmds_CXX='$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"
13538 else
13539 if test "$host_cpu" = ia64; then
13540 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13541 allow_undefined_flag_CXX="-z nodefs"
13542 archive_expsym_cmds_CXX="\$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"
13543 else
13544 # Determine the default libpath from the value encoded in an
13545 # empty executable.
13546 if test x$gcc_no_link = xyes; then
13547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13553 main ()
13557 return 0;
13559 _ACEOF
13560 if ac_fn_cxx_try_link "$LINENO"; then :
13562 lt_aix_libpath_sed='
13563 /Import File Strings/,/^$/ {
13564 /^0/ {
13565 s/^0 *\(.*\)$/\1/
13569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13570 # Check for a 64-bit object if we didn't find anything.
13571 if test -z "$aix_libpath"; then
13572 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13575 rm -f core conftest.err conftest.$ac_objext \
13576 conftest$ac_exeext conftest.$ac_ext
13577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13580 # Warning - without using the other run time loading flags,
13581 # -berok will link without error, but may produce a broken library.
13582 no_undefined_flag_CXX=' ${wl}-bernotok'
13583 allow_undefined_flag_CXX=' ${wl}-berok'
13584 if test "$with_gnu_ld" = yes; then
13585 # We only use this code for GNU lds that support --whole-archive.
13586 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13587 else
13588 # Exported symbols can be pulled into shared objects from archives
13589 whole_archive_flag_spec_CXX='$convenience'
13591 archive_cmds_need_lc_CXX=yes
13592 # This is similar to how AIX traditionally builds its shared
13593 # libraries.
13594 archive_expsym_cmds_CXX="\$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'
13599 beos*)
13600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13601 allow_undefined_flag_CXX=unsupported
13602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13603 # support --undefined. This deserves some investigation. FIXME
13604 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605 else
13606 ld_shlibs_CXX=no
13610 chorus*)
13611 case $cc_basename in
13613 # FIXME: insert proper C++ library support
13614 ld_shlibs_CXX=no
13616 esac
13619 cygwin* | mingw* | pw32* | cegcc*)
13620 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13621 # as there is no search path for DLLs.
13622 hardcode_libdir_flag_spec_CXX='-L$libdir'
13623 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13624 allow_undefined_flag_CXX=unsupported
13625 always_export_symbols_CXX=no
13626 enable_shared_with_static_runtimes_CXX=yes
13628 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13629 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13630 # If the export-symbols file already is a .def file (1st line
13631 # is EXPORTS), use it as is; otherwise, prepend...
13632 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13633 cp $export_symbols $output_objdir/$soname.def;
13634 else
13635 echo EXPORTS > $output_objdir/$soname.def;
13636 cat $export_symbols >> $output_objdir/$soname.def;
13638 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13639 else
13640 ld_shlibs_CXX=no
13643 darwin* | rhapsody*)
13647 # Publish an arg to allow the user to select that Darwin host (and target)
13648 # libraries should be given install-names like @rpath/libfoo.dylib. This
13649 # requires that the user of the library then adds an 'rpath' to the DSO that
13650 # needs access.
13651 # NOTE: there are defaults below, for systems that support rpaths. The person
13652 # configuring can override the defaults for any system version that supports
13653 # them - they are, however, forced off for system versions without support.
13654 # Check whether --enable-darwin-at-rpath was given.
13655 if test "${enable_darwin_at_rpath+set}" = set; then :
13656 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13657 # This is not supported before macOS 10.5 / Darwin9.
13658 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13659 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13661 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13662 enable_darwin_at_rpath=no
13664 esac
13666 else
13667 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13668 # As above, before 10.5 / Darwin9 this does not work.
13669 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13670 enable_darwin_at_rpath=no
13673 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13674 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13675 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13676 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13678 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13679 enable_darwin_at_rpath=yes
13681 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13682 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13684 esac
13689 archive_cmds_need_lc_CXX=no
13690 hardcode_direct_CXX=no
13691 hardcode_automatic_CXX=yes
13692 hardcode_shlibpath_var_CXX=unsupported
13693 if test "$lt_cv_ld_force_load" = "yes"; then
13694 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13695 else
13696 whole_archive_flag_spec_CXX=''
13698 link_all_deplibs_CXX=yes
13699 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13700 case $cc_basename in
13701 ifort*) _lt_dar_can_shared=yes ;;
13702 *) _lt_dar_can_shared=$GCC ;;
13703 esac
13704 if test "$_lt_dar_can_shared" = "yes"; then
13705 output_verbose_link_cmd=func_echo_all
13706 _lt_install_name='\$rpath/\$soname'
13707 if test "x$enable_darwin_at_rpath" = "xyes"; then
13708 _lt_install_name='@rpath/\$soname'
13710 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13711 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13712 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13713 module_expsym_cmds_CXX="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}"
13714 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13715 _lt_install_name='\$rpath/\$soname'
13716 if test "x$enable_darwin_at_rpath" = "xyes"; then
13717 _lt_install_name='@rpath/\$soname'
13719 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
13720 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13723 else
13724 ld_shlibs_CXX=no
13729 dgux*)
13730 case $cc_basename in
13731 ec++*)
13732 # FIXME: insert proper C++ library support
13733 ld_shlibs_CXX=no
13735 ghcx*)
13736 # Green Hills C++ Compiler
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13741 # FIXME: insert proper C++ library support
13742 ld_shlibs_CXX=no
13744 esac
13747 freebsd2.*)
13748 # C++ shared libraries reported to be fairly broken before
13749 # switch to ELF
13750 ld_shlibs_CXX=no
13753 freebsd-elf*)
13754 archive_cmds_need_lc_CXX=no
13757 freebsd* | dragonfly*)
13758 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13759 # conventions
13760 ld_shlibs_CXX=yes
13763 gnu*)
13766 haiku*)
13767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13768 link_all_deplibs_CXX=yes
13771 hpux9*)
13772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13773 hardcode_libdir_separator_CXX=:
13774 export_dynamic_flag_spec_CXX='${wl}-E'
13775 hardcode_direct_CXX=yes
13776 hardcode_minus_L_CXX=yes # Not in the search PATH,
13777 # but as the default
13778 # location of the library.
13780 case $cc_basename in
13781 CC*)
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13785 aCC*)
13786 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13787 # Commands to make compiler produce verbose output that lists
13788 # what "hidden" libraries, object files and flags are used when
13789 # linking a shared library.
13791 # There doesn't appear to be a way to prevent this compiler from
13792 # explicitly linking system object files so we need to strip them
13793 # from the output so that they don't get included in the library
13794 # dependencies.
13795 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13798 if test "$GXX" = yes; then
13799 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13800 else
13801 # FIXME: insert proper C++ library support
13802 ld_shlibs_CXX=no
13805 esac
13808 hpux10*|hpux11*)
13809 if test $with_gnu_ld = no; then
13810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13811 hardcode_libdir_separator_CXX=:
13813 case $host_cpu in
13814 hppa*64*|ia64*)
13817 export_dynamic_flag_spec_CXX='${wl}-E'
13819 esac
13821 case $host_cpu in
13822 hppa*64*|ia64*)
13823 hardcode_direct_CXX=no
13824 hardcode_shlibpath_var_CXX=no
13827 hardcode_direct_CXX=yes
13828 hardcode_direct_absolute_CXX=yes
13829 hardcode_minus_L_CXX=yes # Not in the search PATH,
13830 # but as the default
13831 # location of the library.
13833 esac
13835 case $cc_basename in
13836 CC*)
13837 # FIXME: insert proper C++ library support
13838 ld_shlibs_CXX=no
13840 aCC*)
13841 case $host_cpu in
13842 hppa*64*)
13843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 ia64*)
13846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13851 esac
13852 # Commands to make compiler produce verbose output that lists
13853 # what "hidden" libraries, object files and flags are used when
13854 # linking a shared library.
13856 # There doesn't appear to be a way to prevent this compiler from
13857 # explicitly linking system object files so we need to strip them
13858 # from the output so that they don't get included in the library
13859 # dependencies.
13860 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13863 if test "$GXX" = yes; then
13864 if test $with_gnu_ld = no; then
13865 case $host_cpu in
13866 hppa*64*)
13867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13869 ia64*)
13870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13873 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13875 esac
13877 else
13878 # FIXME: insert proper C++ library support
13879 ld_shlibs_CXX=no
13882 esac
13885 interix[3-9]*)
13886 hardcode_direct_CXX=no
13887 hardcode_shlibpath_var_CXX=no
13888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13889 export_dynamic_flag_spec_CXX='${wl}-E'
13890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13891 # Instead, shared libraries are loaded at an image base (0x10000000 by
13892 # default) and relocated if they conflict, which is a slow very memory
13893 # consuming and fragmenting process. To avoid this, we pick a random,
13894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13896 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13897 archive_expsym_cmds_CXX='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'
13899 irix5* | irix6*)
13900 case $cc_basename in
13901 CC*)
13902 # SGI C++
13903 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13905 # Archives containing C++ object files must be created using
13906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13907 # necessary to make sure instantiated templates are included
13908 # in the archive.
13909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13912 if test "$GXX" = yes; then
13913 if test "$with_gnu_ld" = no; then
13914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13915 else
13916 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13919 link_all_deplibs_CXX=yes
13921 esac
13922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13923 hardcode_libdir_separator_CXX=:
13924 inherit_rpath_CXX=yes
13927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13928 case $cc_basename in
13929 KCC*)
13930 # Kuck and Associates, Inc. (KAI) C++ Compiler
13932 # KCC will only create a shared library if the output file
13933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934 # to its proper name (with version) after linking.
13935 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13936 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13937 # Commands to make compiler produce verbose output that lists
13938 # what "hidden" libraries, object files and flags are used when
13939 # linking a shared library.
13941 # There doesn't appear to be a way to prevent this compiler from
13942 # explicitly linking system object files so we need to strip them
13943 # from the output so that they don't get included in the library
13944 # dependencies.
13945 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13950 # Archives containing C++ object files must be created using
13951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13954 icpc* | ecpc* )
13955 # Intel C++
13956 with_gnu_ld=yes
13957 # version 8.0 and above of icpc choke on multiply defined symbols
13958 # if we add $predep_objects and $postdep_objects, however 7.1 and
13959 # earlier do not add the objects themselves.
13960 case `$CC -V 2>&1` in
13961 *"Version 7."*)
13962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13965 *) # Version 8.0 or newer
13966 tmp_idyn=
13967 case $host_cpu in
13968 ia64*) tmp_idyn=' -i_dynamic';;
13969 esac
13970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13971 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13973 esac
13974 archive_cmds_need_lc_CXX=no
13975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13979 pgCC* | pgcpp*)
13980 # Portland Group C++ compiler
13981 case `$CC -V` in
13982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13983 prelink_cmds_CXX='tpldir=Template.dir~
13984 rm -rf $tpldir~
13985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13986 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13987 old_archive_cmds_CXX='tpldir=Template.dir~
13988 rm -rf $tpldir~
13989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13991 $RANLIB $oldlib'
13992 archive_cmds_CXX='tpldir=Template.dir~
13993 rm -rf $tpldir~
13994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13996 archive_expsym_cmds_CXX='tpldir=Template.dir~
13997 rm -rf $tpldir~
13998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14001 *) # Version 6 and above use weak symbols
14002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14003 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14005 esac
14007 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14009 whole_archive_flag_spec_CXX='${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'
14011 cxx*)
14012 # Compaq C++
14013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14014 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14016 runpath_var=LD_RUN_PATH
14017 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14018 hardcode_libdir_separator_CXX=:
14020 # Commands to make compiler produce verbose output that lists
14021 # what "hidden" libraries, object files and flags are used when
14022 # linking a shared library.
14024 # There doesn't appear to be a way to prevent this compiler from
14025 # explicitly linking system object files so we need to strip them
14026 # from the output so that they don't get included in the library
14027 # dependencies.
14028 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14030 xl* | mpixl* | bgxl*)
14031 # IBM XL 8.0 on PPC, with GNU ld
14032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14035 if test "x$supports_anon_versioning" = xyes; then
14036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14038 echo "local: *; };" >> $output_objdir/$libname.ver~
14039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14043 case `$CC -V 2>&1 | sed 5q` in
14044 *Sun\ C*)
14045 # Sun C++ 5.9
14046 no_undefined_flag_CXX=' -zdefs'
14047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14049 hardcode_libdir_flag_spec_CXX='-R$libdir'
14050 whole_archive_flag_spec_CXX='${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'
14051 compiler_needs_object_CXX=yes
14053 # Not sure whether something based on
14054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14055 # would be better.
14056 output_verbose_link_cmd='func_echo_all'
14058 # Archives containing C++ object files must be created using
14059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14060 # necessary to make sure instantiated templates are included
14061 # in the archive.
14062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14064 esac
14066 esac
14069 lynxos*)
14070 # FIXME: insert proper C++ library support
14071 ld_shlibs_CXX=no
14074 m88k*)
14075 # FIXME: insert proper C++ library support
14076 ld_shlibs_CXX=no
14079 mvs*)
14080 case $cc_basename in
14081 cxx*)
14082 # FIXME: insert proper C++ library support
14083 ld_shlibs_CXX=no
14086 # FIXME: insert proper C++ library support
14087 ld_shlibs_CXX=no
14089 esac
14092 netbsd*)
14093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14095 wlarc=
14096 hardcode_libdir_flag_spec_CXX='-R$libdir'
14097 hardcode_direct_CXX=yes
14098 hardcode_shlibpath_var_CXX=no
14100 # Workaround some broken pre-1.5 toolchains
14101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14104 *nto* | *qnx*)
14105 ld_shlibs_CXX=yes
14108 openbsd2*)
14109 # C++ shared libraries are fairly broken
14110 ld_shlibs_CXX=no
14113 openbsd*)
14114 if test -f /usr/libexec/ld.so; then
14115 hardcode_direct_CXX=yes
14116 hardcode_shlibpath_var_CXX=no
14117 hardcode_direct_absolute_CXX=yes
14118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14122 export_dynamic_flag_spec_CXX='${wl}-E'
14123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14125 output_verbose_link_cmd=func_echo_all
14126 else
14127 ld_shlibs_CXX=no
14131 osf3* | osf4* | osf5*)
14132 case $cc_basename in
14133 KCC*)
14134 # Kuck and Associates, Inc. (KAI) C++ Compiler
14136 # KCC will only create a shared library if the output file
14137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14138 # to its proper name (with version) after linking.
14139 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14142 hardcode_libdir_separator_CXX=:
14144 # Archives containing C++ object files must be created using
14145 # the KAI C++ compiler.
14146 case $host in
14147 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14148 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14149 esac
14151 RCC*)
14152 # Rational C++ 2.4.1
14153 # FIXME: insert proper C++ library support
14154 ld_shlibs_CXX=no
14156 cxx*)
14157 case $host in
14158 osf3*)
14159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14160 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14164 allow_undefined_flag_CXX=' -expect_unresolved \*'
14165 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14166 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14167 echo "-hidden">> $lib.exp~
14168 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14169 $RM $lib.exp'
14170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14172 esac
14174 hardcode_libdir_separator_CXX=:
14176 # Commands to make compiler produce verbose output that lists
14177 # what "hidden" libraries, object files and flags are used when
14178 # linking a shared library.
14180 # There doesn't appear to be a way to prevent this compiler from
14181 # explicitly linking system object files so we need to strip them
14182 # from the output so that they don't get included in the library
14183 # dependencies.
14184 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14189 case $host in
14190 osf3*)
14191 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14194 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14196 esac
14198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14199 hardcode_libdir_separator_CXX=:
14201 # Commands to make compiler produce verbose output that lists
14202 # what "hidden" libraries, object files and flags are used when
14203 # linking a shared library.
14204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14206 else
14207 # FIXME: insert proper C++ library support
14208 ld_shlibs_CXX=no
14211 esac
14214 psos*)
14215 # FIXME: insert proper C++ library support
14216 ld_shlibs_CXX=no
14219 sunos4*)
14220 case $cc_basename in
14221 CC*)
14222 # Sun C++ 4.x
14223 # FIXME: insert proper C++ library support
14224 ld_shlibs_CXX=no
14226 lcc*)
14227 # Lucid
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14232 # FIXME: insert proper C++ library support
14233 ld_shlibs_CXX=no
14235 esac
14238 solaris*)
14239 case $cc_basename in
14240 CC*)
14241 # Sun C++ 4.2, 5.x and Centerline C++
14242 archive_cmds_need_lc_CXX=yes
14243 no_undefined_flag_CXX=' -zdefs'
14244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14245 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14246 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14248 hardcode_libdir_flag_spec_CXX='-R$libdir'
14249 hardcode_shlibpath_var_CXX=no
14250 case $host_os in
14251 solaris2.[0-5] | solaris2.[0-5].*) ;;
14253 # The compiler driver will combine and reorder linker options,
14254 # but understands `-z linker_flag'.
14255 # Supported since Solaris 2.6 (maybe 2.5.1?)
14256 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14258 esac
14259 link_all_deplibs_CXX=yes
14261 output_verbose_link_cmd='func_echo_all'
14263 # Archives containing C++ object files must be created using
14264 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14265 # necessary to make sure instantiated templates are included
14266 # in the archive.
14267 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14269 gcx*)
14270 # Green Hills C++ Compiler
14271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14273 # The C++ compiler must be used to create the archive.
14274 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14277 # GNU C++ compiler with Solaris linker
14278 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14279 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14280 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14281 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14282 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14283 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14285 # Commands to make compiler produce verbose output that lists
14286 # what "hidden" libraries, object files and flags are used when
14287 # linking a shared library.
14288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14289 else
14290 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14291 # platform.
14292 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14294 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14296 # Commands to make compiler produce verbose output that lists
14297 # what "hidden" libraries, object files and flags are used when
14298 # linking a shared library.
14299 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14302 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14303 case $host_os in
14304 solaris2.[0-5] | solaris2.[0-5].*) ;;
14306 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14308 esac
14311 esac
14314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14315 no_undefined_flag_CXX='${wl}-z,text'
14316 archive_cmds_need_lc_CXX=no
14317 hardcode_shlibpath_var_CXX=no
14318 runpath_var='LD_RUN_PATH'
14320 case $cc_basename in
14321 CC*)
14322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14329 esac
14332 sysv5* | sco3.2v5* | sco5v6*)
14333 # Note: We can NOT use -z defs as we might desire, because we do not
14334 # link with -lc, and that would cause any symbols used from libc to
14335 # always be unresolved, which means just about no library would
14336 # ever link correctly. If we're not using GNU ld we use -z text
14337 # though, which does catch some bad symbols but isn't as heavy-handed
14338 # as -z defs.
14339 no_undefined_flag_CXX='${wl}-z,text'
14340 allow_undefined_flag_CXX='${wl}-z,nodefs'
14341 archive_cmds_need_lc_CXX=no
14342 hardcode_shlibpath_var_CXX=no
14343 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14344 hardcode_libdir_separator_CXX=':'
14345 link_all_deplibs_CXX=yes
14346 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14347 runpath_var='LD_RUN_PATH'
14349 case $cc_basename in
14350 CC*)
14351 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14354 '"$old_archive_cmds_CXX"
14355 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14356 '"$reload_cmds_CXX"
14359 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14362 esac
14365 tandem*)
14366 case $cc_basename in
14367 NCC*)
14368 # NonStop-UX NCC 3.20
14369 # FIXME: insert proper C++ library support
14370 ld_shlibs_CXX=no
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14376 esac
14379 vxworks*)
14380 # For VxWorks ports, we assume the use of a GNU linker with
14381 # standard elf conventions.
14382 ld_shlibs_CXX=yes
14386 # FIXME: insert proper C++ library support
14387 ld_shlibs_CXX=no
14389 esac
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14392 $as_echo "$ld_shlibs_CXX" >&6; }
14393 test "$ld_shlibs_CXX" = no && can_build_shared=no
14395 GCC_CXX="$GXX"
14396 LD_CXX="$LD"
14398 ## CAVEAT EMPTOR:
14399 ## There is no encapsulation within the following macros, do not change
14400 ## the running order or otherwise move them around unless you know exactly
14401 ## what you are doing...
14402 # Dependencies to place before and after the object being linked:
14403 predep_objects_CXX=
14404 postdep_objects_CXX=
14405 predeps_CXX=
14406 postdeps_CXX=
14407 compiler_lib_search_path_CXX=
14409 cat > conftest.$ac_ext <<_LT_EOF
14410 class Foo
14412 public:
14413 Foo (void) { a = 0; }
14414 private:
14415 int a;
14417 _LT_EOF
14419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14420 (eval $ac_compile) 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; then
14424 # Parse the compiler output and extract the necessary
14425 # objects, libraries and library flags.
14427 # Sentinel used to keep track of whether or not we are before
14428 # the conftest object file.
14429 pre_test_object_deps_done=no
14431 for p in `eval "$output_verbose_link_cmd"`; do
14432 case $p in
14434 -L* | -R* | -l*)
14435 # Some compilers place space between "-{L,R}" and the path.
14436 # Remove the space.
14437 if test $p = "-L" ||
14438 test $p = "-R"; then
14439 prev=$p
14440 continue
14441 else
14442 prev=
14445 if test "$pre_test_object_deps_done" = no; then
14446 case $p in
14447 -L* | -R*)
14448 # Internal compiler library paths should come after those
14449 # provided the user. The postdeps already come after the
14450 # user supplied libs so there is no need to process them.
14451 if test -z "$compiler_lib_search_path_CXX"; then
14452 compiler_lib_search_path_CXX="${prev}${p}"
14453 else
14454 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14457 # The "-l" case would never come before the object being
14458 # linked, so don't bother handling this case.
14459 esac
14460 else
14461 if test -z "$postdeps_CXX"; then
14462 postdeps_CXX="${prev}${p}"
14463 else
14464 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14469 *.$objext)
14470 # This assumes that the test object file only shows up
14471 # once in the compiler output.
14472 if test "$p" = "conftest.$objext"; then
14473 pre_test_object_deps_done=yes
14474 continue
14477 if test "$pre_test_object_deps_done" = no; then
14478 if test -z "$predep_objects_CXX"; then
14479 predep_objects_CXX="$p"
14480 else
14481 predep_objects_CXX="$predep_objects_CXX $p"
14483 else
14484 if test -z "$postdep_objects_CXX"; then
14485 postdep_objects_CXX="$p"
14486 else
14487 postdep_objects_CXX="$postdep_objects_CXX $p"
14492 *) ;; # Ignore the rest.
14494 esac
14495 done
14497 # Clean up.
14498 rm -f a.out a.exe
14499 else
14500 echo "libtool.m4: error: problem compiling CXX test program"
14503 $RM -f confest.$objext
14505 # PORTME: override above test on systems where it is broken
14506 case $host_os in
14507 interix[3-9]*)
14508 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14509 # hack all around it, let's just trust "g++" to DTRT.
14510 predep_objects_CXX=
14511 postdep_objects_CXX=
14512 postdeps_CXX=
14515 linux*)
14516 case `$CC -V 2>&1 | sed 5q` in
14517 *Sun\ C*)
14518 # Sun C++ 5.9
14520 # The more standards-conforming stlport4 library is
14521 # incompatible with the Cstd library. Avoid specifying
14522 # it if it's in CXXFLAGS. Ignore libCrun as
14523 # -library=stlport4 depends on it.
14524 case " $CXX $CXXFLAGS " in
14525 *" -library=stlport4 "*)
14526 solaris_use_stlport4=yes
14528 esac
14530 if test "$solaris_use_stlport4" != yes; then
14531 postdeps_CXX='-library=Cstd -library=Crun'
14534 esac
14537 solaris*)
14538 case $cc_basename in
14539 CC*)
14540 # The more standards-conforming stlport4 library is
14541 # incompatible with the Cstd library. Avoid specifying
14542 # it if it's in CXXFLAGS. Ignore libCrun as
14543 # -library=stlport4 depends on it.
14544 case " $CXX $CXXFLAGS " in
14545 *" -library=stlport4 "*)
14546 solaris_use_stlport4=yes
14548 esac
14550 # Adding this requires a known-good setup of shared libraries for
14551 # Sun compiler versions before 5.6, else PIC objects from an old
14552 # archive will be linked into the output, leading to subtle bugs.
14553 if test "$solaris_use_stlport4" != yes; then
14554 postdeps_CXX='-library=Cstd -library=Crun'
14557 esac
14559 esac
14562 case " $postdeps_CXX " in
14563 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14564 esac
14565 compiler_lib_search_dirs_CXX=
14566 if test -n "${compiler_lib_search_path_CXX}"; then
14567 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14600 lt_prog_compiler_wl_CXX=
14601 lt_prog_compiler_pic_CXX=
14602 lt_prog_compiler_static_CXX=
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14607 # C++ specific cases for pic, static, wl, etc.
14608 if test "$GXX" = yes; then
14609 lt_prog_compiler_wl_CXX='-Wl,'
14610 lt_prog_compiler_static_CXX='-static'
14612 case $host_os in
14613 aix*)
14614 # All AIX code is PIC.
14615 if test "$host_cpu" = ia64; then
14616 # AIX 5 now supports IA64 processor
14617 lt_prog_compiler_static_CXX='-Bstatic'
14619 lt_prog_compiler_pic_CXX='-fPIC'
14622 amigaos*)
14623 case $host_cpu in
14624 powerpc)
14625 # see comment about AmigaOS4 .so support
14626 lt_prog_compiler_pic_CXX='-fPIC'
14628 m68k)
14629 # FIXME: we need at least 68020 code to build shared libraries, but
14630 # adding the `-m68020' flag to GCC prevents building anything better,
14631 # like `-m68040'.
14632 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14634 esac
14637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14638 # PIC is the default for these OSes.
14640 mingw* | cygwin* | os2* | pw32* | cegcc*)
14641 # This hack is so that the source file can tell whether it is being
14642 # built for inclusion in a dll (and should export symbols for example).
14643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14644 # (--disable-auto-import) libraries
14645 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14647 darwin* | rhapsody*)
14648 # PIC is the default on this platform
14649 # Common symbols not allowed in MH_DYLIB files
14650 lt_prog_compiler_pic_CXX='-fno-common'
14652 *djgpp*)
14653 # DJGPP does not support shared libraries at all
14654 lt_prog_compiler_pic_CXX=
14656 haiku*)
14657 # PIC is the default for Haiku.
14658 # The "-static" flag exists, but is broken.
14659 lt_prog_compiler_static_CXX=
14661 interix[3-9]*)
14662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14663 # Instead, we relocate shared libraries at runtime.
14665 sysv4*MP*)
14666 if test -d /usr/nec; then
14667 lt_prog_compiler_pic_CXX=-Kconform_pic
14670 hpux*)
14671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14673 # sets the default TLS model and affects inlining.
14674 case $host_cpu in
14675 hppa*64*)
14678 lt_prog_compiler_pic_CXX='-fPIC'
14680 esac
14682 *qnx* | *nto*)
14683 # QNX uses GNU C++, but need to define -shared option too, otherwise
14684 # it will coredump.
14685 lt_prog_compiler_pic_CXX='-fPIC -shared'
14688 lt_prog_compiler_pic_CXX='-fPIC'
14690 esac
14691 else
14692 case $host_os in
14693 aix[4-9]*)
14694 # All AIX code is PIC.
14695 if test "$host_cpu" = ia64; then
14696 # AIX 5 now supports IA64 processor
14697 lt_prog_compiler_static_CXX='-Bstatic'
14698 else
14699 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14702 chorus*)
14703 case $cc_basename in
14704 cxch68*)
14705 # Green Hills C++ Compiler
14706 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14708 esac
14710 dgux*)
14711 case $cc_basename in
14712 ec++*)
14713 lt_prog_compiler_pic_CXX='-KPIC'
14715 ghcx*)
14716 # Green Hills C++ Compiler
14717 lt_prog_compiler_pic_CXX='-pic'
14721 esac
14723 freebsd* | dragonfly*)
14724 # FreeBSD uses GNU C++
14726 hpux9* | hpux10* | hpux11*)
14727 case $cc_basename in
14728 CC*)
14729 lt_prog_compiler_wl_CXX='-Wl,'
14730 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14731 if test "$host_cpu" != ia64; then
14732 lt_prog_compiler_pic_CXX='+Z'
14735 aCC*)
14736 lt_prog_compiler_wl_CXX='-Wl,'
14737 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14738 case $host_cpu in
14739 hppa*64*|ia64*)
14740 # +Z the default
14743 lt_prog_compiler_pic_CXX='+Z'
14745 esac
14749 esac
14751 interix*)
14752 # This is c89, which is MS Visual C++ (no shared libs)
14753 # Anyone wants to do a port?
14755 irix5* | irix6* | nonstopux*)
14756 case $cc_basename in
14757 CC*)
14758 lt_prog_compiler_wl_CXX='-Wl,'
14759 lt_prog_compiler_static_CXX='-non_shared'
14760 # CC pic flag -KPIC is the default.
14764 esac
14766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14767 case $cc_basename in
14768 KCC*)
14769 # KAI C++ Compiler
14770 lt_prog_compiler_wl_CXX='--backend -Wl,'
14771 lt_prog_compiler_pic_CXX='-fPIC'
14773 ecpc* )
14774 # old Intel C++ for x86_64 which still supported -KPIC.
14775 lt_prog_compiler_wl_CXX='-Wl,'
14776 lt_prog_compiler_pic_CXX='-KPIC'
14777 lt_prog_compiler_static_CXX='-static'
14779 icpc* )
14780 # Intel C++, used to be incompatible with GCC.
14781 # ICC 10 doesn't accept -KPIC any more.
14782 lt_prog_compiler_wl_CXX='-Wl,'
14783 lt_prog_compiler_pic_CXX='-fPIC'
14784 lt_prog_compiler_static_CXX='-static'
14786 pgCC* | pgcpp*)
14787 # Portland Group C++ compiler
14788 lt_prog_compiler_wl_CXX='-Wl,'
14789 lt_prog_compiler_pic_CXX='-fpic'
14790 lt_prog_compiler_static_CXX='-Bstatic'
14792 cxx*)
14793 # Compaq C++
14794 # Make sure the PIC flag is empty. It appears that all Alpha
14795 # Linux and Compaq Tru64 Unix objects are PIC.
14796 lt_prog_compiler_pic_CXX=
14797 lt_prog_compiler_static_CXX='-non_shared'
14799 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14800 # IBM XL 8.0, 9.0 on PPC and BlueGene
14801 lt_prog_compiler_wl_CXX='-Wl,'
14802 lt_prog_compiler_pic_CXX='-qpic'
14803 lt_prog_compiler_static_CXX='-qstaticlink'
14806 case `$CC -V 2>&1 | sed 5q` in
14807 *Sun\ C*)
14808 # Sun C++ 5.9
14809 lt_prog_compiler_pic_CXX='-KPIC'
14810 lt_prog_compiler_static_CXX='-Bstatic'
14811 lt_prog_compiler_wl_CXX='-Qoption ld '
14813 esac
14815 esac
14817 lynxos*)
14819 m88k*)
14821 mvs*)
14822 case $cc_basename in
14823 cxx*)
14824 lt_prog_compiler_pic_CXX='-W c,exportall'
14828 esac
14830 netbsd*)
14832 *qnx* | *nto*)
14833 # QNX uses GNU C++, but need to define -shared option too, otherwise
14834 # it will coredump.
14835 lt_prog_compiler_pic_CXX='-fPIC -shared'
14837 osf3* | osf4* | osf5*)
14838 case $cc_basename in
14839 KCC*)
14840 lt_prog_compiler_wl_CXX='--backend -Wl,'
14842 RCC*)
14843 # Rational C++ 2.4.1
14844 lt_prog_compiler_pic_CXX='-pic'
14846 cxx*)
14847 # Digital/Compaq C++
14848 lt_prog_compiler_wl_CXX='-Wl,'
14849 # Make sure the PIC flag is empty. It appears that all Alpha
14850 # Linux and Compaq Tru64 Unix objects are PIC.
14851 lt_prog_compiler_pic_CXX=
14852 lt_prog_compiler_static_CXX='-non_shared'
14856 esac
14858 psos*)
14860 solaris*)
14861 case $cc_basename in
14862 CC*)
14863 # Sun C++ 4.2, 5.x and Centerline C++
14864 lt_prog_compiler_pic_CXX='-KPIC'
14865 lt_prog_compiler_static_CXX='-Bstatic'
14866 lt_prog_compiler_wl_CXX='-Qoption ld '
14868 gcx*)
14869 # Green Hills C++ Compiler
14870 lt_prog_compiler_pic_CXX='-PIC'
14874 esac
14876 sunos4*)
14877 case $cc_basename in
14878 CC*)
14879 # Sun C++ 4.x
14880 lt_prog_compiler_pic_CXX='-pic'
14881 lt_prog_compiler_static_CXX='-Bstatic'
14883 lcc*)
14884 # Lucid
14885 lt_prog_compiler_pic_CXX='-pic'
14889 esac
14891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14892 case $cc_basename in
14893 CC*)
14894 lt_prog_compiler_wl_CXX='-Wl,'
14895 lt_prog_compiler_pic_CXX='-KPIC'
14896 lt_prog_compiler_static_CXX='-Bstatic'
14898 esac
14900 tandem*)
14901 case $cc_basename in
14902 NCC*)
14903 # NonStop-UX NCC 3.20
14904 lt_prog_compiler_pic_CXX='-KPIC'
14908 esac
14910 vxworks*)
14913 lt_prog_compiler_can_build_shared_CXX=no
14915 esac
14918 case $host_os in
14919 # For platforms which do not support PIC, -DPIC is meaningless:
14920 *djgpp*)
14921 lt_prog_compiler_pic_CXX=
14924 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14926 esac
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14928 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14933 # Check to make sure the PIC flag actually works.
14935 if test -n "$lt_prog_compiler_pic_CXX"; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14938 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 lt_cv_prog_compiler_pic_works_CXX=no
14942 ac_outfile=conftest.$ac_objext
14943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14945 # Insert the option either (1) after the last *FLAGS variable, or
14946 # (2) before a word containing "conftest.", or (3) at the end.
14947 # Note that $ac_compile itself does not contain backslashes and begins
14948 # with a dollar sign (not a hyphen), so the echo should work correctly.
14949 # The option is referenced via a variable to avoid confusing sed.
14950 lt_compile=`echo "$ac_compile" | $SED \
14951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953 -e 's:$: $lt_compiler_flag:'`
14954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14955 (eval "$lt_compile" 2>conftest.err)
14956 ac_status=$?
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 if (exit $ac_status) && test -s "$ac_outfile"; then
14960 # The compiler can only warn and ignore the option if not recognized
14961 # So say no if there are warnings other than the usual output.
14962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14965 lt_cv_prog_compiler_pic_works_CXX=yes
14968 $RM conftest*
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14972 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14974 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14975 case $lt_prog_compiler_pic_CXX in
14976 "" | " "*) ;;
14977 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14978 esac
14979 else
14980 lt_prog_compiler_pic_CXX=
14981 lt_prog_compiler_can_build_shared_CXX=no
14989 # Check to make sure the static flag actually works.
14991 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14993 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14994 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 lt_cv_prog_compiler_static_works_CXX=no
14998 save_LDFLAGS="$LDFLAGS"
14999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15002 # The linker can only warn and ignore the option if not recognized
15003 # So say no if there are warnings
15004 if test -s conftest.err; then
15005 # Append any errors to the config.log.
15006 cat conftest.err 1>&5
15007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15009 if diff conftest.exp conftest.er2 >/dev/null; then
15010 lt_cv_prog_compiler_static_works_CXX=yes
15012 else
15013 lt_cv_prog_compiler_static_works_CXX=yes
15016 $RM -r conftest*
15017 LDFLAGS="$save_LDFLAGS"
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15021 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15023 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15025 else
15026 lt_prog_compiler_static_CXX=
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15034 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15035 $as_echo_n "(cached) " >&6
15036 else
15037 lt_cv_prog_compiler_c_o_CXX=no
15038 $RM -r conftest 2>/dev/null
15039 mkdir conftest
15040 cd conftest
15041 mkdir out
15042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15044 lt_compiler_flag="-o out/conftest2.$ac_objext"
15045 # Insert the option either (1) after the last *FLAGS variable, or
15046 # (2) before a word containing "conftest.", or (3) at the end.
15047 # Note that $ac_compile itself does not contain backslashes and begins
15048 # with a dollar sign (not a hyphen), so the echo should work correctly.
15049 lt_compile=`echo "$ac_compile" | $SED \
15050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052 -e 's:$: $lt_compiler_flag:'`
15053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15054 (eval "$lt_compile" 2>out/conftest.err)
15055 ac_status=$?
15056 cat out/conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15059 then
15060 # The compiler can only warn and ignore the option if not recognized
15061 # So say no if there are warnings
15062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15065 lt_cv_prog_compiler_c_o_CXX=yes
15068 chmod u+w . 2>&5
15069 $RM conftest*
15070 # SGI C++ compiler will create directory out/ii_files/ for
15071 # template instantiation
15072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15073 $RM out/* && rmdir out
15074 cd ..
15075 $RM -r conftest
15076 $RM conftest*
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15080 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15086 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 lt_cv_prog_compiler_c_o_CXX=no
15090 $RM -r conftest 2>/dev/null
15091 mkdir conftest
15092 cd conftest
15093 mkdir out
15094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15096 lt_compiler_flag="-o out/conftest2.$ac_objext"
15097 # Insert the option either (1) after the last *FLAGS variable, or
15098 # (2) before a word containing "conftest.", or (3) at the end.
15099 # Note that $ac_compile itself does not contain backslashes and begins
15100 # with a dollar sign (not a hyphen), so the echo should work correctly.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>out/conftest.err)
15107 ac_status=$?
15108 cat out/conftest.err >&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15111 then
15112 # The compiler can only warn and ignore the option if not recognized
15113 # So say no if there are warnings
15114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15117 lt_cv_prog_compiler_c_o_CXX=yes
15120 chmod u+w . 2>&5
15121 $RM conftest*
15122 # SGI C++ compiler will create directory out/ii_files/ for
15123 # template instantiation
15124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15125 $RM out/* && rmdir out
15126 cd ..
15127 $RM -r conftest
15128 $RM conftest*
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15132 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15137 hard_links="nottested"
15138 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15139 # do not overwrite the value of need_locks provided by the user
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15141 $as_echo_n "checking if we can lock with hard links... " >&6; }
15142 hard_links=yes
15143 $RM conftest*
15144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15145 touch conftest.a
15146 ln conftest.a conftest.b 2>&5 || hard_links=no
15147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15149 $as_echo "$hard_links" >&6; }
15150 if test "$hard_links" = no; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15152 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15153 need_locks=warn
15155 else
15156 need_locks=no
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15164 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15165 case $host_os in
15166 aix[4-9]*)
15167 # If we're using GNU nm, then we don't want the "-C" option.
15168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15169 # Also, AIX nm treats weak defined symbols like other global defined
15170 # symbols, whereas GNU nm marks them as "W".
15171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15172 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15173 else
15174 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15177 pw32*)
15178 export_symbols_cmds_CXX="$ltdll_cmds"
15180 cygwin* | mingw* | cegcc*)
15181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15186 esac
15187 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15190 $as_echo "$ld_shlibs_CXX" >&6; }
15191 test "$ld_shlibs_CXX" = no && can_build_shared=no
15193 with_gnu_ld_CXX=$with_gnu_ld
15201 # Do we need to explicitly link libc?
15203 case "x$archive_cmds_need_lc_CXX" in
15204 x|xyes)
15205 # Assume -lc should be added
15206 archive_cmds_need_lc_CXX=yes
15208 if test "$enable_shared" = yes && test "$GCC" = yes; then
15209 case $archive_cmds_CXX in
15210 *'~'*)
15211 # FIXME: we may have to deal with multi-command sequences.
15213 '$CC '*)
15214 # Test whether the compiler implicitly links with -lc since on some
15215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15216 # to ld, don't add -lc before -lgcc.
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15219 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 $RM conftest*
15223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15226 (eval $ac_compile) 2>&5
15227 ac_status=$?
15228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15229 test $ac_status = 0; } 2>conftest.err; then
15230 soname=conftest
15231 lib=conftest
15232 libobjs=conftest.$ac_objext
15233 deplibs=
15234 wl=$lt_prog_compiler_wl_CXX
15235 pic_flag=$lt_prog_compiler_pic_CXX
15236 compiler_flags=-v
15237 linker_flags=-v
15238 verstring=
15239 output_objdir=.
15240 libname=conftest
15241 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15242 allow_undefined_flag_CXX=
15243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15244 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15245 ac_status=$?
15246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 test $ac_status = 0; }
15248 then
15249 lt_cv_archive_cmds_need_lc_CXX=no
15250 else
15251 lt_cv_archive_cmds_need_lc_CXX=yes
15253 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15254 else
15255 cat conftest.err 1>&5
15257 $RM conftest*
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15261 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15262 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15264 esac
15267 esac
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15333 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15335 library_names_spec=
15336 libname_spec='lib$name'
15337 soname_spec=
15338 shrext_cmds=".so"
15339 postinstall_cmds=
15340 postuninstall_cmds=
15341 finish_cmds=
15342 finish_eval=
15343 shlibpath_var=
15344 shlibpath_overrides_runpath=unknown
15345 version_type=none
15346 dynamic_linker="$host_os ld.so"
15347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15348 need_lib_prefix=unknown
15349 hardcode_into_libs=no
15351 # when you set need_version to no, make sure it does not cause -set_version
15352 # flags to be left without arguments
15353 need_version=unknown
15355 case $host_os in
15356 aix3*)
15357 version_type=linux
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15359 shlibpath_var=LIBPATH
15361 # AIX 3 has no versioning support, so we append a major version to the name.
15362 soname_spec='${libname}${release}${shared_ext}$major'
15365 aix[4-9]*)
15366 version_type=linux
15367 need_lib_prefix=no
15368 need_version=no
15369 hardcode_into_libs=yes
15370 if test "$host_cpu" = ia64; then
15371 # AIX 5 supports IA64
15372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 else
15375 # With GCC up to 2.95.x, collect2 would create an import file
15376 # for dependence libraries. The import file would start with
15377 # the line `#! .'. This would cause the generated library to
15378 # depend on `.', always an invalid library. This was fixed in
15379 # development snapshots of GCC prior to 3.0.
15380 case $host_os in
15381 aix4 | aix4.[01] | aix4.[01].*)
15382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15383 echo ' yes '
15384 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15386 else
15387 can_build_shared=no
15390 esac
15391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15392 # soname into executable. Probably we can add versioning support to
15393 # collect2, so additional links can be useful in future.
15394 if test "$aix_use_runtimelinking" = yes; then
15395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15396 # instead of lib<name>.a to let people know that these are not
15397 # typical AIX shared libraries.
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399 else
15400 # We preserve .a as extension for shared libraries through AIX4.2
15401 # and later when we are not doing run time linking.
15402 library_names_spec='${libname}${release}.a $libname.a'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LIBPATH
15409 amigaos*)
15410 case $host_cpu in
15411 powerpc)
15412 # Since July 2007 AmigaOS4 officially supports .so libraries.
15413 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 m68k)
15417 library_names_spec='$libname.ixlibrary $libname.a'
15418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15419 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'
15421 esac
15424 beos*)
15425 library_names_spec='${libname}${shared_ext}'
15426 dynamic_linker="$host_os ld.so"
15427 shlibpath_var=LIBRARY_PATH
15430 bsdi[45]*)
15431 version_type=linux
15432 need_version=no
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15439 # the default ld.so.conf also contains /usr/contrib/lib and
15440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15441 # libtool to hard-code these into programs
15444 cygwin* | mingw* | pw32* | cegcc*)
15445 version_type=windows
15446 shrext_cmds=".dll"
15447 need_version=no
15448 need_lib_prefix=no
15450 case $GCC,$host_os in
15451 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15452 library_names_spec='$libname.dll.a'
15453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15454 postinstall_cmds='base_file=`basename \${file}`~
15455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15456 dldir=$destdir/`dirname \$dlpath`~
15457 test -d \$dldir || mkdir -p \$dldir~
15458 $install_prog $dir/$dlname \$dldir/$dlname~
15459 chmod a+x \$dldir/$dlname~
15460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15464 dlpath=$dir/\$dldll~
15465 $RM \$dlpath'
15466 shlibpath_overrides_runpath=yes
15468 case $host_os in
15469 cygwin*)
15470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15474 mingw* | cegcc*)
15475 # MinGW DLLs use traditional 'lib' prefix
15476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15478 pw32*)
15479 # pw32 DLLs use 'pw' prefix rather than 'lib'
15480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15482 esac
15486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15488 esac
15489 dynamic_linker='Win32 ld.exe'
15490 # FIXME: first we should search . and the directory the executable is in
15491 shlibpath_var=PATH
15494 darwin* | rhapsody*)
15495 dynamic_linker="$host_os dyld"
15496 version_type=darwin
15497 need_lib_prefix=no
15498 need_version=no
15499 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15500 soname_spec='${libname}${release}${major}$shared_ext'
15501 shlibpath_overrides_runpath=yes
15502 shlibpath_var=DYLD_LIBRARY_PATH
15503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15508 dgux*)
15509 version_type=linux
15510 need_lib_prefix=no
15511 need_version=no
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15517 freebsd* | dragonfly*)
15518 # DragonFly does not have aout. When/if they implement a new
15519 # versioning mechanism, adjust this.
15520 if test -x /usr/bin/objformat; then
15521 objformat=`/usr/bin/objformat`
15522 else
15523 case $host_os in
15524 freebsd[23].*) objformat=aout ;;
15525 *) objformat=elf ;;
15526 esac
15528 version_type=freebsd-$objformat
15529 case $version_type in
15530 freebsd-elf*)
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15532 need_version=no
15533 need_lib_prefix=no
15535 freebsd-*)
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15537 need_version=yes
15539 esac
15540 shlibpath_var=LD_LIBRARY_PATH
15541 case $host_os in
15542 freebsd2.*)
15543 shlibpath_overrides_runpath=yes
15545 freebsd3.[01]* | freebsdelf3.[01]*)
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15551 shlibpath_overrides_runpath=no
15552 hardcode_into_libs=yes
15554 *) # from 4.6 on, and DragonFly
15555 shlibpath_overrides_runpath=yes
15556 hardcode_into_libs=yes
15558 esac
15561 haiku*)
15562 version_type=linux
15563 need_lib_prefix=no
15564 need_version=no
15565 dynamic_linker="$host_os runtime_loader"
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LIBRARY_PATH
15569 shlibpath_overrides_runpath=yes
15570 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15571 hardcode_into_libs=yes
15574 hpux9* | hpux10* | hpux11*)
15575 # Give a soname corresponding to the major version so that dld.sl refuses to
15576 # link against other versions.
15577 version_type=sunos
15578 need_lib_prefix=no
15579 need_version=no
15580 case $host_cpu in
15581 ia64*)
15582 shrext_cmds='.so'
15583 hardcode_into_libs=yes
15584 dynamic_linker="$host_os dld.so"
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec='${libname}${release}${shared_ext}$major'
15589 if test "X$HPUX_IA64_MODE" = X32; then
15590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15591 else
15592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15596 hppa*64*)
15597 shrext_cmds='.sl'
15598 hardcode_into_libs=yes
15599 dynamic_linker="$host_os dld.sl"
15600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15608 shrext_cmds='.sl'
15609 dynamic_linker="$host_os dld.sl"
15610 shlibpath_var=SHLIB_PATH
15611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15615 esac
15616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15617 postinstall_cmds='chmod 555 $lib'
15618 # or fails outright, so override atomically:
15619 install_override_mode=555
15622 interix[3-9]*)
15623 version_type=linux
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=no
15631 hardcode_into_libs=yes
15634 irix5* | irix6* | nonstopux*)
15635 case $host_os in
15636 nonstopux*) version_type=nonstopux ;;
15638 if test "$lt_cv_prog_gnu_ld" = yes; then
15639 version_type=linux
15640 else
15641 version_type=irix
15642 fi ;;
15643 esac
15644 need_lib_prefix=no
15645 need_version=no
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15648 case $host_os in
15649 irix5* | nonstopux*)
15650 libsuff= shlibsuff=
15653 case $LD in # libtool.m4 will add one of these switches to LD
15654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15655 libsuff= shlibsuff= libmagic=32-bit;;
15656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15657 libsuff=32 shlibsuff=N32 libmagic=N32;;
15658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15660 *) libsuff= shlibsuff= libmagic=never-match;;
15661 esac
15663 esac
15664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15665 shlibpath_overrides_runpath=no
15666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15668 hardcode_into_libs=yes
15671 # No shared lib support for Linux oldld, aout, or coff.
15672 linux*oldld* | linux*aout* | linux*coff*)
15673 dynamic_linker=no
15676 # This must be Linux ELF.
15678 # uclinux* changes (here and below) have been submitted to the libtool
15679 # project, but have not yet been accepted: they are GCC-local changes
15680 # for the time being. (See
15681 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15683 version_type=linux
15684 need_lib_prefix=no
15685 need_version=no
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=no
15692 # Some binutils ld are patched to set DT_RUNPATH
15693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 lt_cv_shlibpath_overrides_runpath=no
15697 save_LDFLAGS=$LDFLAGS
15698 save_libdir=$libdir
15699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15701 if test x$gcc_no_link = xyes; then
15702 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15708 main ()
15712 return 0;
15714 _ACEOF
15715 if ac_fn_cxx_try_link "$LINENO"; then :
15716 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15717 lt_cv_shlibpath_overrides_runpath=yes
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15722 LDFLAGS=$save_LDFLAGS
15723 libdir=$save_libdir
15727 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15729 # This implies no fast_install, which is unacceptable.
15730 # Some rework will be needed to allow for fast_install
15731 # before this can be enabled.
15732 hardcode_into_libs=yes
15734 # Append ld.so.conf contents to the search path
15735 if test -f /etc/ld.so.conf; then
15736 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' ' '`
15737 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15740 # We used to test for /lib/ld.so.1 and disable shared libraries on
15741 # powerpc, because MkLinux only supported shared libraries with the
15742 # GNU dynamic linker. Since this was broken with cross compilers,
15743 # most powerpc-linux boxes support dynamic linking these days and
15744 # people can always --disable-shared, the test was removed, and we
15745 # assume the GNU/Linux dynamic linker is in use.
15746 dynamic_linker='GNU/Linux ld.so'
15749 netbsd*)
15750 version_type=sunos
15751 need_lib_prefix=no
15752 need_version=no
15753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15756 dynamic_linker='NetBSD (a.out) ld.so'
15757 else
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 dynamic_linker='NetBSD ld.elf_so'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15767 newsos6)
15768 version_type=linux
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 shlibpath_overrides_runpath=yes
15774 *nto* | *qnx*)
15775 version_type=qnx
15776 need_lib_prefix=no
15777 need_version=no
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=no
15782 hardcode_into_libs=yes
15783 dynamic_linker='ldqnx.so'
15786 openbsd*)
15787 version_type=sunos
15788 sys_lib_dlsearch_path_spec="/usr/lib"
15789 need_lib_prefix=no
15790 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15791 case $host_os in
15792 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15793 *) need_version=no ;;
15794 esac
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15799 case $host_os in
15800 openbsd2.[89] | openbsd2.[89].*)
15801 shlibpath_overrides_runpath=no
15804 shlibpath_overrides_runpath=yes
15806 esac
15807 else
15808 shlibpath_overrides_runpath=yes
15812 os2*)
15813 libname_spec='$name'
15814 shrext_cmds=".dll"
15815 need_lib_prefix=no
15816 library_names_spec='$libname${shared_ext} $libname.a'
15817 dynamic_linker='OS/2 ld.exe'
15818 shlibpath_var=LIBPATH
15821 osf3* | osf4* | osf5*)
15822 version_type=osf
15823 need_lib_prefix=no
15824 need_version=no
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15829 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15832 rdos*)
15833 dynamic_linker=no
15836 solaris*)
15837 version_type=linux
15838 need_lib_prefix=no
15839 need_version=no
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes
15844 hardcode_into_libs=yes
15845 # ldd complains unless libraries are executable
15846 postinstall_cmds='chmod +x $lib'
15849 sunos4*)
15850 version_type=sunos
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15852 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=yes
15855 if test "$with_gnu_ld" = yes; then
15856 need_lib_prefix=no
15858 need_version=yes
15861 sysv4 | sysv4.3*)
15862 version_type=linux
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 case $host_vendor in
15867 sni)
15868 shlibpath_overrides_runpath=no
15869 need_lib_prefix=no
15870 runpath_var=LD_RUN_PATH
15872 siemens)
15873 need_lib_prefix=no
15875 motorola)
15876 need_lib_prefix=no
15877 need_version=no
15878 shlibpath_overrides_runpath=no
15879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15881 esac
15884 sysv4*MP*)
15885 if test -d /usr/nec ;then
15886 version_type=linux
15887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15888 soname_spec='$libname${shared_ext}.$major'
15889 shlibpath_var=LD_LIBRARY_PATH
15893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15894 version_type=freebsd-elf
15895 need_lib_prefix=no
15896 need_version=no
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=yes
15901 hardcode_into_libs=yes
15902 if test "$with_gnu_ld" = yes; then
15903 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15904 else
15905 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15906 case $host_os in
15907 sco3.2v5*)
15908 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15910 esac
15912 sys_lib_dlsearch_path_spec='/usr/lib'
15915 tpf*)
15916 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15917 version_type=linux
15918 need_lib_prefix=no
15919 need_version=no
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15926 uts4*)
15927 version_type=linux
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15933 # Shared libraries for VwWorks, >= 7 only at this stage
15934 # and (fpic) still incompatible with "large" code models
15935 # in a few configurations. Only for RTP mode in any case,
15936 # and upon explicit request at configure time.
15937 vxworks7*)
15938 dynamic_linker=no
15939 case ${with_multisubdir}-${enable_shared} in
15940 *large*)
15942 *mrtp*-yes)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 dynamic_linker="$host_os module_loader"
15950 esac
15953 dynamic_linker=no
15955 esac
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15957 $as_echo "$dynamic_linker" >&6; }
15958 test "$dynamic_linker" = no && can_build_shared=no
15960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15961 if test "$GCC" = yes; then
15962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15965 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15966 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15968 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15969 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16010 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16011 hardcode_action_CXX=
16012 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16013 test -n "$runpath_var_CXX" ||
16014 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16016 # We can hardcode non-existent directories.
16017 if test "$hardcode_direct_CXX" != no &&
16018 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16019 # have to relink, otherwise we might link with an installed library
16020 # when we should be linking with a yet-to-be-installed one
16021 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16022 test "$hardcode_minus_L_CXX" != no; then
16023 # Linking always hardcodes the temporary library directory.
16024 hardcode_action_CXX=relink
16025 else
16026 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16027 hardcode_action_CXX=immediate
16029 else
16030 # We cannot hardcode anything, or else we can only hardcode existing
16031 # directories.
16032 hardcode_action_CXX=unsupported
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16035 $as_echo "$hardcode_action_CXX" >&6; }
16037 if test "$hardcode_action_CXX" = relink ||
16038 test "$inherit_rpath_CXX" = yes; then
16039 # Fast installation is not supported
16040 enable_fast_install=no
16041 elif test "$shlibpath_overrides_runpath" = yes ||
16042 test "$enable_shared" = no; then
16043 # Fast installation is not necessary
16044 enable_fast_install=needless
16053 fi # test -n "$compiler"
16055 CC=$lt_save_CC
16056 LDCXX=$LD
16057 LD=$lt_save_LD
16058 GCC=$lt_save_GCC
16059 with_gnu_ld=$lt_save_with_gnu_ld
16060 lt_cv_path_LDCXX=$lt_cv_path_LD
16061 lt_cv_path_LD=$lt_save_path_LD
16062 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16063 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16064 fi # test "$_lt_caught_CXX_error" != yes
16066 ac_ext=c
16067 ac_cpp='$CPP $CPPFLAGS'
16068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084 ac_config_commands="$ac_config_commands libtool"
16089 # Only expand once:
16093 # target_noncanonical variables...
16095 case ${build_alias} in
16096 "") build_noncanonical=${build} ;;
16097 *) build_noncanonical=${build_alias} ;;
16098 esac
16100 case ${host_alias} in
16101 "") host_noncanonical=${build_noncanonical} ;;
16102 *) host_noncanonical=${host_alias} ;;
16103 esac
16107 case ${target_alias} in
16108 "") target_noncanonical=${host_noncanonical} ;;
16109 *) target_noncanonical=${target_alias} ;;
16110 esac
16115 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
16116 # have matching libraries, they should use host libraries: Makefile.tpl
16117 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
16118 # However, they still use the build modules, because the corresponding
16119 # host modules (e.g. bison) are only built for the host when bootstrap
16120 # finishes. So:
16121 # - build_subdir is where we find build modules, and never changes.
16122 # - build_libsubdir is where we find build libraries, and can be overridden.
16124 # Prefix 'build-' so this never conflicts with target_subdir.
16125 build_subdir="build-${build_noncanonical}"
16127 # Check whether --with-build-libsubdir was given.
16128 if test "${with_build_libsubdir+set}" = set; then :
16129 withval=$with_build_libsubdir; build_libsubdir="$withval"
16130 else
16131 build_libsubdir="$build_subdir"
16134 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
16135 if ( test $srcdir = . && test -d gcc ) \
16136 || test -d $srcdir/../host-${host_noncanonical}; then
16137 host_subdir="host-${host_noncanonical}"
16138 else
16139 host_subdir=.
16141 # No prefix.
16142 target_subdir=${target_noncanonical}
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
16146 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
16147 # Check whether --enable-version-specific-runtime-libs was given.
16148 if test "${enable_version_specific_runtime_libs+set}" = set; then :
16149 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
16150 yes) version_specific_libs=yes ;;
16151 no) version_specific_libs=no ;;
16152 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
16153 esac
16154 else
16155 version_specific_libs=no
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
16159 $as_echo "$version_specific_libs" >&6; }
16161 toolexecdir=no
16162 toolexeclibdir=no
16164 # Calculate toolexeclibdir
16165 # Also toolexecdir, though it's only used in toolexeclibdir
16166 case ${version_specific_libs} in
16167 yes)
16168 # Need the gcc compiler version to know where to install libraries
16169 # and header files if --enable-version-specific-runtime-libs option
16170 # is selected.
16171 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
16172 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
16175 if test -n "$with_cross_host" &&
16176 test x"$with_cross_host" != x"no"; then
16177 # Install a library built with a cross compiler in tooldir, not libdir.
16178 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16179 toolexeclibdir='$(toolexecdir)/lib'
16180 else
16181 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16182 toolexeclibdir='$(libdir)'
16184 multi_os_directory=`$CC -print-multi-os-directory`
16185 case $multi_os_directory in
16186 .) ;; # Avoid trailing /.
16187 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16188 esac
16190 esac
16196 ac_config_files="$ac_config_files libproc_macro_internal/Makefile"
16200 get_gcc_base_ver="cat"
16202 # Check whether --with-gcc-major-version-only was given.
16203 if test "${with_gcc_major_version_only+set}" = set; then :
16204 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16205 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: libgrust has been configured." >&5
16214 $as_echo "$as_me: libgrust has been configured." >&6;}
16216 cat >confcache <<\_ACEOF
16217 # This file is a shell script that caches the results of configure
16218 # tests run on this system so they can be shared between configure
16219 # scripts and configure runs, see configure's option --config-cache.
16220 # It is not useful on other systems. If it contains results you don't
16221 # want to keep, you may remove or edit it.
16223 # config.status only pays attention to the cache file if you give it
16224 # the --recheck option to rerun configure.
16226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16228 # following values.
16230 _ACEOF
16232 # The following way of writing the cache mishandles newlines in values,
16233 # but we know of no workaround that is simple, portable, and efficient.
16234 # So, we kill variables containing newlines.
16235 # Ultrix sh set writes to stderr and can't be redirected directly,
16236 # and sets the high bit in the cache file unless we assign to the vars.
16238 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16239 eval ac_val=\$$ac_var
16240 case $ac_val in #(
16241 *${as_nl}*)
16242 case $ac_var in #(
16243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16245 esac
16246 case $ac_var in #(
16247 _ | IFS | as_nl) ;; #(
16248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16249 *) { eval $ac_var=; unset $ac_var;} ;;
16250 esac ;;
16251 esac
16252 done
16254 (set) 2>&1 |
16255 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16256 *${as_nl}ac_space=\ *)
16257 # `set' does not quote correctly, so add quotes: double-quote
16258 # substitution turns \\\\ into \\, and sed turns \\ into \.
16259 sed -n \
16260 "s/'/'\\\\''/g;
16261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16262 ;; #(
16264 # `set' quotes correctly as required by POSIX, so do not add quotes.
16265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16267 esac |
16268 sort
16270 sed '
16271 /^ac_cv_env_/b end
16272 t clear
16273 :clear
16274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16275 t end
16276 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16277 :end' >>confcache
16278 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16279 if test -w "$cache_file"; then
16280 if test "x$cache_file" != "x/dev/null"; then
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16282 $as_echo "$as_me: updating cache $cache_file" >&6;}
16283 if test ! -f "$cache_file" || test -h "$cache_file"; then
16284 cat confcache >"$cache_file"
16285 else
16286 case $cache_file in #(
16287 */* | ?:*)
16288 mv -f confcache "$cache_file"$$ &&
16289 mv -f "$cache_file"$$ "$cache_file" ;; #(
16291 mv -f confcache "$cache_file" ;;
16292 esac
16295 else
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16297 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16300 rm -f confcache
16302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16303 # Let make expand exec_prefix.
16304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16306 # Transform confdefs.h into DEFS.
16307 # Protect against shell expansion while executing Makefile rules.
16308 # Protect against Makefile macro expansion.
16310 # If the first sed substitution is executed (which looks for macros that
16311 # take arguments), then branch to the quote section. Otherwise,
16312 # look for a macro that doesn't take arguments.
16313 ac_script='
16314 :mline
16315 /\\$/{
16317 s,\\\n,,
16318 b mline
16320 t clear
16321 :clear
16322 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16323 t quote
16324 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16325 t quote
16326 b any
16327 :quote
16328 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16329 s/\[/\\&/g
16330 s/\]/\\&/g
16331 s/\$/$$/g
16333 :any
16336 s/^\n//
16337 s/\n/ /g
16341 DEFS=`sed -n "$ac_script" confdefs.h`
16344 ac_libobjs=
16345 ac_ltlibobjs=
16347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16348 # 1. Remove the extension, and $U if already installed.
16349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16350 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16352 # will be set to the directory where LIBOBJS objects are built.
16353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16355 done
16356 LIBOBJS=$ac_libobjs
16358 LTLIBOBJS=$ac_ltlibobjs
16361 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16362 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16366 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16367 if test -n "$am_sleep_pid"; then
16368 # Hide warnings about reused PIDs.
16369 wait $am_sleep_pid 2>/dev/null
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16372 $as_echo "done" >&6; }
16373 if test -n "$EXEEXT"; then
16374 am__EXEEXT_TRUE=
16375 am__EXEEXT_FALSE='#'
16376 else
16377 am__EXEEXT_TRUE='#'
16378 am__EXEEXT_FALSE=
16381 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16382 as_fn_error $? "conditional \"AMDEP\" was never defined.
16383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16385 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16386 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16389 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16390 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16393 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16394 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16397 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16398 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16402 : "${CONFIG_STATUS=./config.status}"
16403 ac_write_fail=0
16404 ac_clean_files_save=$ac_clean_files
16405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16407 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16408 as_write_fail=0
16409 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16410 #! $SHELL
16411 # Generated by $as_me.
16412 # Run this file to recreate the current configuration.
16413 # Compiler output produced by configure, useful for debugging
16414 # configure, is in config.log if it exists.
16416 debug=false
16417 ac_cs_recheck=false
16418 ac_cs_silent=false
16420 SHELL=\${CONFIG_SHELL-$SHELL}
16421 export SHELL
16422 _ASEOF
16423 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16424 ## -------------------- ##
16425 ## M4sh Initialization. ##
16426 ## -------------------- ##
16428 # Be more Bourne compatible
16429 DUALCASE=1; export DUALCASE # for MKS sh
16430 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16431 emulate sh
16432 NULLCMD=:
16433 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16434 # is contrary to our usage. Disable this feature.
16435 alias -g '${1+"$@"}'='"$@"'
16436 setopt NO_GLOB_SUBST
16437 else
16438 case `(set -o) 2>/dev/null` in #(
16439 *posix*) :
16440 set -o posix ;; #(
16441 *) :
16443 esac
16447 as_nl='
16449 export as_nl
16450 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16451 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16454 # Prefer a ksh shell builtin over an external printf program on Solaris,
16455 # but without wasting forks for bash or zsh.
16456 if test -z "$BASH_VERSION$ZSH_VERSION" \
16457 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16458 as_echo='print -r --'
16459 as_echo_n='print -rn --'
16460 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16461 as_echo='printf %s\n'
16462 as_echo_n='printf %s'
16463 else
16464 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16465 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16466 as_echo_n='/usr/ucb/echo -n'
16467 else
16468 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16469 as_echo_n_body='eval
16470 arg=$1;
16471 case $arg in #(
16472 *"$as_nl"*)
16473 expr "X$arg" : "X\\(.*\\)$as_nl";
16474 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16475 esac;
16476 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16478 export as_echo_n_body
16479 as_echo_n='sh -c $as_echo_n_body as_echo'
16481 export as_echo_body
16482 as_echo='sh -c $as_echo_body as_echo'
16485 # The user is always right.
16486 if test "${PATH_SEPARATOR+set}" != set; then
16487 PATH_SEPARATOR=:
16488 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16489 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16490 PATH_SEPARATOR=';'
16495 # IFS
16496 # We need space, tab and new line, in precisely that order. Quoting is
16497 # there to prevent editors from complaining about space-tab.
16498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16499 # splitting by setting IFS to empty value.)
16500 IFS=" "" $as_nl"
16502 # Find who we are. Look in the path if we contain no directory separator.
16503 as_myself=
16504 case $0 in #((
16505 *[\\/]* ) as_myself=$0 ;;
16506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16507 for as_dir in $PATH
16509 IFS=$as_save_IFS
16510 test -z "$as_dir" && as_dir=.
16511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16512 done
16513 IFS=$as_save_IFS
16516 esac
16517 # We did not find ourselves, most probably we were run as `sh COMMAND'
16518 # in which case we are not to be found in the path.
16519 if test "x$as_myself" = x; then
16520 as_myself=$0
16522 if test ! -f "$as_myself"; then
16523 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16524 exit 1
16527 # Unset variables that we do not need and which cause bugs (e.g. in
16528 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16529 # suppresses any "Segmentation fault" message there. '((' could
16530 # trigger a bug in pdksh 5.2.14.
16531 for as_var in BASH_ENV ENV MAIL MAILPATH
16532 do eval test x\${$as_var+set} = xset \
16533 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16534 done
16535 PS1='$ '
16536 PS2='> '
16537 PS4='+ '
16539 # NLS nuisances.
16540 LC_ALL=C
16541 export LC_ALL
16542 LANGUAGE=C
16543 export LANGUAGE
16545 # CDPATH.
16546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16549 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16550 # ----------------------------------------
16551 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16552 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16553 # script with STATUS, using 1 if that was 0.
16554 as_fn_error ()
16556 as_status=$1; test $as_status -eq 0 && as_status=1
16557 if test "$4"; then
16558 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16559 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16561 $as_echo "$as_me: error: $2" >&2
16562 as_fn_exit $as_status
16563 } # as_fn_error
16566 # as_fn_set_status STATUS
16567 # -----------------------
16568 # Set $? to STATUS, without forking.
16569 as_fn_set_status ()
16571 return $1
16572 } # as_fn_set_status
16574 # as_fn_exit STATUS
16575 # -----------------
16576 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16577 as_fn_exit ()
16579 set +e
16580 as_fn_set_status $1
16581 exit $1
16582 } # as_fn_exit
16584 # as_fn_unset VAR
16585 # ---------------
16586 # Portably unset VAR.
16587 as_fn_unset ()
16589 { eval $1=; unset $1;}
16591 as_unset=as_fn_unset
16592 # as_fn_append VAR VALUE
16593 # ----------------------
16594 # Append the text in VALUE to the end of the definition contained in VAR. Take
16595 # advantage of any shell optimizations that allow amortized linear growth over
16596 # repeated appends, instead of the typical quadratic growth present in naive
16597 # implementations.
16598 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16599 eval 'as_fn_append ()
16601 eval $1+=\$2
16603 else
16604 as_fn_append ()
16606 eval $1=\$$1\$2
16608 fi # as_fn_append
16610 # as_fn_arith ARG...
16611 # ------------------
16612 # Perform arithmetic evaluation on the ARGs, and store the result in the
16613 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16614 # must be portable across $(()) and expr.
16615 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16616 eval 'as_fn_arith ()
16618 as_val=$(( $* ))
16620 else
16621 as_fn_arith ()
16623 as_val=`expr "$@" || test $? -eq 1`
16625 fi # as_fn_arith
16628 if expr a : '\(a\)' >/dev/null 2>&1 &&
16629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16630 as_expr=expr
16631 else
16632 as_expr=false
16635 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16636 as_basename=basename
16637 else
16638 as_basename=false
16641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16642 as_dirname=dirname
16643 else
16644 as_dirname=false
16647 as_me=`$as_basename -- "$0" ||
16648 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16649 X"$0" : 'X\(//\)$' \| \
16650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16651 $as_echo X/"$0" |
16652 sed '/^.*\/\([^/][^/]*\)\/*$/{
16653 s//\1/
16656 /^X\/\(\/\/\)$/{
16657 s//\1/
16660 /^X\/\(\/\).*/{
16661 s//\1/
16664 s/.*/./; q'`
16666 # Avoid depending upon Character Ranges.
16667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16670 as_cr_digits='0123456789'
16671 as_cr_alnum=$as_cr_Letters$as_cr_digits
16673 ECHO_C= ECHO_N= ECHO_T=
16674 case `echo -n x` in #(((((
16675 -n*)
16676 case `echo 'xy\c'` in
16677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16678 xy) ECHO_C='\c';;
16679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16680 ECHO_T=' ';;
16681 esac;;
16683 ECHO_N='-n';;
16684 esac
16686 rm -f conf$$ conf$$.exe conf$$.file
16687 if test -d conf$$.dir; then
16688 rm -f conf$$.dir/conf$$.file
16689 else
16690 rm -f conf$$.dir
16691 mkdir conf$$.dir 2>/dev/null
16693 if (echo >conf$$.file) 2>/dev/null; then
16694 if ln -s conf$$.file conf$$ 2>/dev/null; then
16695 as_ln_s='ln -s'
16696 # ... but there are two gotchas:
16697 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16698 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16699 # In both cases, we have to default to `cp -pR'.
16700 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16701 as_ln_s='cp -pR'
16702 elif ln conf$$.file conf$$ 2>/dev/null; then
16703 as_ln_s=ln
16704 else
16705 as_ln_s='cp -pR'
16707 else
16708 as_ln_s='cp -pR'
16710 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16711 rmdir conf$$.dir 2>/dev/null
16714 # as_fn_mkdir_p
16715 # -------------
16716 # Create "$as_dir" as a directory, including parents if necessary.
16717 as_fn_mkdir_p ()
16720 case $as_dir in #(
16721 -*) as_dir=./$as_dir;;
16722 esac
16723 test -d "$as_dir" || eval $as_mkdir_p || {
16724 as_dirs=
16725 while :; do
16726 case $as_dir in #(
16727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16728 *) as_qdir=$as_dir;;
16729 esac
16730 as_dirs="'$as_qdir' $as_dirs"
16731 as_dir=`$as_dirname -- "$as_dir" ||
16732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733 X"$as_dir" : 'X\(//\)[^/]' \| \
16734 X"$as_dir" : 'X\(//\)$' \| \
16735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16736 $as_echo X"$as_dir" |
16737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16738 s//\1/
16741 /^X\(\/\/\)[^/].*/{
16742 s//\1/
16745 /^X\(\/\/\)$/{
16746 s//\1/
16749 /^X\(\/\).*/{
16750 s//\1/
16753 s/.*/./; q'`
16754 test -d "$as_dir" && break
16755 done
16756 test -z "$as_dirs" || eval "mkdir $as_dirs"
16757 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16760 } # as_fn_mkdir_p
16761 if mkdir -p . 2>/dev/null; then
16762 as_mkdir_p='mkdir -p "$as_dir"'
16763 else
16764 test -d ./-p && rmdir ./-p
16765 as_mkdir_p=false
16769 # as_fn_executable_p FILE
16770 # -----------------------
16771 # Test if FILE is an executable regular file.
16772 as_fn_executable_p ()
16774 test -f "$1" && test -x "$1"
16775 } # as_fn_executable_p
16776 as_test_x='test -x'
16777 as_executable_p=as_fn_executable_p
16779 # Sed expression to map a string onto a valid CPP name.
16780 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16782 # Sed expression to map a string onto a valid variable name.
16783 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16786 exec 6>&1
16787 ## ----------------------------------- ##
16788 ## Main body of $CONFIG_STATUS script. ##
16789 ## ----------------------------------- ##
16790 _ASEOF
16791 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16794 # Save the log message, to keep $0 and so on meaningful, and to
16795 # report actual input values of CONFIG_FILES etc. instead of their
16796 # values after options handling.
16797 ac_log="
16798 This file was extended by libgrust $as_me version-unused, which was
16799 generated by GNU Autoconf 2.69. Invocation command line was
16801 CONFIG_FILES = $CONFIG_FILES
16802 CONFIG_HEADERS = $CONFIG_HEADERS
16803 CONFIG_LINKS = $CONFIG_LINKS
16804 CONFIG_COMMANDS = $CONFIG_COMMANDS
16805 $ $0 $@
16807 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16810 _ACEOF
16812 case $ac_config_files in *"
16813 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16814 esac
16818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819 # Files that config.status was made for.
16820 config_files="$ac_config_files"
16821 config_commands="$ac_config_commands"
16823 _ACEOF
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826 ac_cs_usage="\
16827 \`$as_me' instantiates files and other configuration actions
16828 from templates according to the current configuration. Unless the files
16829 and actions are specified as TAGs, all are instantiated by default.
16831 Usage: $0 [OPTION]... [TAG]...
16833 -h, --help print this help, then exit
16834 -V, --version print version number and configuration settings, then exit
16835 --config print configuration, then exit
16836 -q, --quiet, --silent
16837 do not print progress messages
16838 -d, --debug don't remove temporary files
16839 --recheck update $as_me by reconfiguring in the same conditions
16840 --file=FILE[:TEMPLATE]
16841 instantiate the configuration file FILE
16843 Configuration files:
16844 $config_files
16846 Configuration commands:
16847 $config_commands
16849 Report bugs to the package provider."
16851 _ACEOF
16852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16853 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16854 ac_cs_version="\\
16855 libgrust config.status version-unused
16856 configured by $0, generated by GNU Autoconf 2.69,
16857 with options \\"\$ac_cs_config\\"
16859 Copyright (C) 2012 Free Software Foundation, Inc.
16860 This config.status script is free software; the Free Software Foundation
16861 gives unlimited permission to copy, distribute and modify it."
16863 ac_pwd='$ac_pwd'
16864 srcdir='$srcdir'
16865 INSTALL='$INSTALL'
16866 MKDIR_P='$MKDIR_P'
16867 AWK='$AWK'
16868 test -n "\$AWK" || AWK=awk
16869 _ACEOF
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 # The default lists apply if the user does not specify any file.
16873 ac_need_defaults=:
16874 while test $# != 0
16876 case $1 in
16877 --*=?*)
16878 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16879 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16880 ac_shift=:
16882 --*=)
16883 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16884 ac_optarg=
16885 ac_shift=:
16888 ac_option=$1
16889 ac_optarg=$2
16890 ac_shift=shift
16892 esac
16894 case $ac_option in
16895 # Handling of the options.
16896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16897 ac_cs_recheck=: ;;
16898 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16899 $as_echo "$ac_cs_version"; exit ;;
16900 --config | --confi | --conf | --con | --co | --c )
16901 $as_echo "$ac_cs_config"; exit ;;
16902 --debug | --debu | --deb | --de | --d | -d )
16903 debug=: ;;
16904 --file | --fil | --fi | --f )
16905 $ac_shift
16906 case $ac_optarg in
16907 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16908 '') as_fn_error $? "missing file argument" ;;
16909 esac
16910 as_fn_append CONFIG_FILES " '$ac_optarg'"
16911 ac_need_defaults=false;;
16912 --he | --h | --help | --hel | -h )
16913 $as_echo "$ac_cs_usage"; exit ;;
16914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16916 ac_cs_silent=: ;;
16918 # This is an error.
16919 -*) as_fn_error $? "unrecognized option: \`$1'
16920 Try \`$0 --help' for more information." ;;
16922 *) as_fn_append ac_config_targets " $1"
16923 ac_need_defaults=false ;;
16925 esac
16926 shift
16927 done
16929 ac_configure_extra_args=
16931 if $ac_cs_silent; then
16932 exec 6>/dev/null
16933 ac_configure_extra_args="$ac_configure_extra_args --silent"
16936 _ACEOF
16937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16938 if \$ac_cs_recheck; then
16939 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16940 shift
16941 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16942 CONFIG_SHELL='$SHELL'
16943 export CONFIG_SHELL
16944 exec "\$@"
16947 _ACEOF
16948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949 exec 5>>config.log
16951 echo
16952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16953 ## Running $as_me. ##
16954 _ASBOX
16955 $as_echo "$ac_log"
16956 } >&5
16958 _ACEOF
16959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961 # INIT-COMMANDS
16964 srcdir="$srcdir"
16965 host="$host"
16966 target="$target"
16967 with_multisubdir="$with_multisubdir"
16968 with_multisrctop="$with_multisrctop"
16969 with_target_subdir="$with_target_subdir"
16970 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16971 multi_basedir="$multi_basedir"
16972 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16973 CC="$CC"
16974 CXX="$CXX"
16975 GFORTRAN="$GFORTRAN"
16976 GDC="$GDC"
16977 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16980 # The HP-UX ksh and POSIX shell print the target directory to stdout
16981 # if CDPATH is set.
16982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16984 sed_quote_subst='$sed_quote_subst'
16985 double_quote_subst='$double_quote_subst'
16986 delay_variable_subst='$delay_variable_subst'
16987 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16988 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16989 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16990 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16991 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16992 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16993 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16994 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16995 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16996 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16997 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16998 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16999 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17000 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17001 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17002 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17003 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17004 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17005 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17006 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17007 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17008 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17009 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17010 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17011 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17012 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17013 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17014 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17015 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17016 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17017 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17018 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17019 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17020 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17021 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17022 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17023 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17024 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17025 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17026 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17027 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17028 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17029 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17030 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17031 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17032 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17033 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17034 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17035 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"`'
17036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17039 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17040 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17044 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17045 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17046 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17047 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17048 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17049 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17050 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17051 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17052 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17053 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17054 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17055 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17056 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17057 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17058 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17059 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17060 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17061 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17062 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17063 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17064 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17065 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17066 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17067 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17076 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17100 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17101 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17102 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17103 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17104 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17105 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17106 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17107 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17108 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17109 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17110 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17111 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17112 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17113 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17114 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17115 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17116 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17117 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17118 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17119 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17120 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17122 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17123 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17124 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17125 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17126 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17127 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17128 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17129 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17130 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17131 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17132 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17133 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17134 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17135 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17136 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17137 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17138 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17139 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17140 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17141 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17143 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17144 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17145 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17146 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17147 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17148 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17149 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17150 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17151 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17152 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17153 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17154 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17155 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17156 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17157 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17158 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17159 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17160 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17161 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17163 LTCC='$LTCC'
17164 LTCFLAGS='$LTCFLAGS'
17165 compiler='$compiler_DEFAULT'
17167 # A function that is used when there is no print builtin or printf.
17168 func_fallback_echo ()
17170 eval 'cat <<_LTECHO_EOF
17172 _LTECHO_EOF'
17175 # Quote evaled strings.
17176 for var in SHELL \
17177 ECHO \
17178 SED \
17179 GREP \
17180 EGREP \
17181 FGREP \
17182 LD \
17183 NM \
17184 LN_S \
17185 lt_SP2NL \
17186 lt_NL2SP \
17187 reload_flag \
17188 OBJDUMP \
17189 deplibs_check_method \
17190 file_magic_cmd \
17191 AR \
17192 AR_FLAGS \
17193 STRIP \
17194 RANLIB \
17195 CC \
17196 CFLAGS \
17197 compiler \
17198 lt_cv_sys_global_symbol_pipe \
17199 lt_cv_sys_global_symbol_to_cdecl \
17200 lt_cv_sys_global_symbol_to_c_name_address \
17201 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17202 lt_prog_compiler_no_builtin_flag \
17203 lt_prog_compiler_wl \
17204 lt_prog_compiler_pic \
17205 lt_prog_compiler_static \
17206 lt_cv_prog_compiler_c_o \
17207 need_locks \
17208 DSYMUTIL \
17209 NMEDIT \
17210 LIPO \
17211 OTOOL \
17212 OTOOL64 \
17213 shrext_cmds \
17214 export_dynamic_flag_spec \
17215 whole_archive_flag_spec \
17216 compiler_needs_object \
17217 with_gnu_ld \
17218 allow_undefined_flag \
17219 no_undefined_flag \
17220 hardcode_libdir_flag_spec \
17221 hardcode_libdir_flag_spec_ld \
17222 hardcode_libdir_separator \
17223 fix_srcfile_path \
17224 exclude_expsyms \
17225 include_expsyms \
17226 file_list_spec \
17227 variables_saved_for_relink \
17228 libname_spec \
17229 library_names_spec \
17230 soname_spec \
17231 install_override_mode \
17232 finish_eval \
17233 old_striplib \
17234 striplib \
17235 compiler_lib_search_dirs \
17236 predep_objects \
17237 postdep_objects \
17238 predeps \
17239 postdeps \
17240 compiler_lib_search_path \
17241 LD_CXX \
17242 reload_flag_CXX \
17243 compiler_CXX \
17244 lt_prog_compiler_no_builtin_flag_CXX \
17245 lt_prog_compiler_wl_CXX \
17246 lt_prog_compiler_pic_CXX \
17247 lt_prog_compiler_static_CXX \
17248 lt_cv_prog_compiler_c_o_CXX \
17249 export_dynamic_flag_spec_CXX \
17250 whole_archive_flag_spec_CXX \
17251 compiler_needs_object_CXX \
17252 with_gnu_ld_CXX \
17253 allow_undefined_flag_CXX \
17254 no_undefined_flag_CXX \
17255 hardcode_libdir_flag_spec_CXX \
17256 hardcode_libdir_flag_spec_ld_CXX \
17257 hardcode_libdir_separator_CXX \
17258 fix_srcfile_path_CXX \
17259 exclude_expsyms_CXX \
17260 include_expsyms_CXX \
17261 file_list_spec_CXX \
17262 compiler_lib_search_dirs_CXX \
17263 predep_objects_CXX \
17264 postdep_objects_CXX \
17265 predeps_CXX \
17266 postdeps_CXX \
17267 compiler_lib_search_path_CXX; do
17268 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17269 *[\\\\\\\`\\"\\\$]*)
17270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17275 esac
17276 done
17278 # Double-quote double-evaled strings.
17279 for var in reload_cmds \
17280 old_postinstall_cmds \
17281 old_postuninstall_cmds \
17282 old_archive_cmds \
17283 extract_expsyms_cmds \
17284 old_archive_from_new_cmds \
17285 old_archive_from_expsyms_cmds \
17286 archive_cmds \
17287 archive_expsym_cmds \
17288 module_cmds \
17289 module_expsym_cmds \
17290 export_symbols_cmds \
17291 prelink_cmds \
17292 postinstall_cmds \
17293 postuninstall_cmds \
17294 finish_cmds \
17295 sys_lib_search_path_spec \
17296 sys_lib_dlsearch_path_spec \
17297 reload_cmds_CXX \
17298 old_archive_cmds_CXX \
17299 old_archive_from_new_cmds_CXX \
17300 old_archive_from_expsyms_cmds_CXX \
17301 archive_cmds_CXX \
17302 archive_expsym_cmds_CXX \
17303 module_cmds_CXX \
17304 module_expsym_cmds_CXX \
17305 export_symbols_cmds_CXX \
17306 prelink_cmds_CXX; do
17307 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17308 *[\\\\\\\`\\"\\\$]*)
17309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17314 esac
17315 done
17317 ac_aux_dir='$ac_aux_dir'
17318 xsi_shell='$xsi_shell'
17319 lt_shell_append='$lt_shell_append'
17321 # See if we are running on zsh, and set the options which allow our
17322 # commands through without removal of \ escapes INIT.
17323 if test -n "\${ZSH_VERSION+set}" ; then
17324 setopt NO_GLOB_SUBST
17328 PACKAGE='$PACKAGE'
17329 VERSION='$VERSION'
17330 TIMESTAMP='$TIMESTAMP'
17331 RM='$RM'
17332 ofile='$ofile'
17339 _ACEOF
17341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17343 # Handling of arguments.
17344 for ac_config_target in $ac_config_targets
17346 case $ac_config_target in
17347 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17348 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17350 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17351 "libproc_macro_internal/Makefile") CONFIG_FILES="$CONFIG_FILES libproc_macro_internal/Makefile" ;;
17353 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17354 esac
17355 done
17358 # If the user did not use the arguments to specify the items to instantiate,
17359 # then the envvar interface is used. Set only those that are not.
17360 # We use the long form for the default assignment because of an extremely
17361 # bizarre bug on SunOS 4.1.3.
17362 if $ac_need_defaults; then
17363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17367 # Have a temporary directory for convenience. Make it in the build tree
17368 # simply because there is no reason against having it here, and in addition,
17369 # creating and moving files from /tmp can sometimes cause problems.
17370 # Hook for its removal unless debugging.
17371 # Note that there is a small window in which the directory will not be cleaned:
17372 # after its creation but before its name has been assigned to `$tmp'.
17373 $debug ||
17375 tmp= ac_tmp=
17376 trap 'exit_status=$?
17377 : "${ac_tmp:=$tmp}"
17378 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17380 trap 'as_fn_exit 1' 1 2 13 15
17382 # Create a (secure) tmp directory for tmp files.
17385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17386 test -d "$tmp"
17387 } ||
17389 tmp=./conf$$-$RANDOM
17390 (umask 077 && mkdir "$tmp")
17391 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17392 ac_tmp=$tmp
17394 # Set up the scripts for CONFIG_FILES section.
17395 # No need to generate them if there are no CONFIG_FILES.
17396 # This happens for instance with `./config.status config.h'.
17397 if test -n "$CONFIG_FILES"; then
17400 ac_cr=`echo X | tr X '\015'`
17401 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17402 # But we know of no other shell where ac_cr would be empty at this
17403 # point, so we can use a bashism as a fallback.
17404 if test "x$ac_cr" = x; then
17405 eval ac_cr=\$\'\\r\'
17407 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17409 ac_cs_awk_cr='\\r'
17410 else
17411 ac_cs_awk_cr=$ac_cr
17414 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17415 _ACEOF
17419 echo "cat >conf$$subs.awk <<_ACEOF" &&
17420 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17421 echo "_ACEOF"
17422 } >conf$$subs.sh ||
17423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17424 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17425 ac_delim='%!_!# '
17426 for ac_last_try in false false false false false :; do
17427 . ./conf$$subs.sh ||
17428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17430 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17431 if test $ac_delim_n = $ac_delim_num; then
17432 break
17433 elif $ac_last_try; then
17434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17435 else
17436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17438 done
17439 rm -f conf$$subs.sh
17441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17442 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17443 _ACEOF
17444 sed -n '
17446 s/^/S["/; s/!.*/"]=/
17449 s/^[^!]*!//
17450 :repl
17451 t repl
17452 s/'"$ac_delim"'$//
17453 t delim
17456 s/\(.\{148\}\)..*/\1/
17457 t more1
17458 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17461 b repl
17462 :more1
17463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17466 s/.\{148\}//
17467 t nl
17468 :delim
17470 s/\(.\{148\}\)..*/\1/
17471 t more2
17472 s/["\\]/\\&/g; s/^/"/; s/$/"/
17475 :more2
17476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17479 s/.\{148\}//
17480 t delim
17481 ' <conf$$subs.awk | sed '
17482 /^[^""]/{
17484 s/\n//
17486 ' >>$CONFIG_STATUS || ac_write_fail=1
17487 rm -f conf$$subs.awk
17488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17489 _ACAWK
17490 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17491 for (key in S) S_is_set[key] = 1
17492 FS = "\a"
17496 line = $ 0
17497 nfields = split(line, field, "@")
17498 substed = 0
17499 len = length(field[1])
17500 for (i = 2; i < nfields; i++) {
17501 key = field[i]
17502 keylen = length(key)
17503 if (S_is_set[key]) {
17504 value = S[key]
17505 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17506 len += length(value) + length(field[++i])
17507 substed = 1
17508 } else
17509 len += 1 + keylen
17512 print line
17515 _ACAWK
17516 _ACEOF
17517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17518 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17519 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17520 else
17522 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17523 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17524 _ACEOF
17526 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17527 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17528 # trailing colons and then remove the whole line if VPATH becomes empty
17529 # (actually we leave an empty line to preserve line numbers).
17530 if test "x$srcdir" = x.; then
17531 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17533 s///
17534 s/^/:/
17535 s/[ ]*$/:/
17536 s/:\$(srcdir):/:/g
17537 s/:\${srcdir}:/:/g
17538 s/:@srcdir@:/:/g
17539 s/^:*//
17540 s/:*$//
17542 s/\(=[ ]*\).*/\1/
17544 s/\n//
17545 s/^[^=]*=[ ]*$//
17549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17550 fi # test -n "$CONFIG_FILES"
17553 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17554 shift
17555 for ac_tag
17557 case $ac_tag in
17558 :[FHLC]) ac_mode=$ac_tag; continue;;
17559 esac
17560 case $ac_mode$ac_tag in
17561 :[FHL]*:*);;
17562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17563 :[FH]-) ac_tag=-:-;;
17564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17565 esac
17566 ac_save_IFS=$IFS
17567 IFS=:
17568 set x $ac_tag
17569 IFS=$ac_save_IFS
17570 shift
17571 ac_file=$1
17572 shift
17574 case $ac_mode in
17575 :L) ac_source=$1;;
17576 :[FH])
17577 ac_file_inputs=
17578 for ac_f
17580 case $ac_f in
17581 -) ac_f="$ac_tmp/stdin";;
17582 *) # Look for the file first in the build tree, then in the source tree
17583 # (if the path is not absolute). The absolute path cannot be DOS-style,
17584 # because $ac_f cannot contain `:'.
17585 test -f "$ac_f" ||
17586 case $ac_f in
17587 [\\/$]*) false;;
17588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17589 esac ||
17590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17591 esac
17592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17593 as_fn_append ac_file_inputs " '$ac_f'"
17594 done
17596 # Let's still pretend it is `configure' which instantiates (i.e., don't
17597 # use $as_me), people would be surprised to read:
17598 # /* config.h. Generated by config.status. */
17599 configure_input='Generated from '`
17600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17601 `' by configure.'
17602 if test x"$ac_file" != x-; then
17603 configure_input="$ac_file. $configure_input"
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17605 $as_echo "$as_me: creating $ac_file" >&6;}
17607 # Neutralize special characters interpreted by sed in replacement strings.
17608 case $configure_input in #(
17609 *\&* | *\|* | *\\* )
17610 ac_sed_conf_input=`$as_echo "$configure_input" |
17611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17612 *) ac_sed_conf_input=$configure_input;;
17613 esac
17615 case $ac_tag in
17616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17618 esac
17620 esac
17622 ac_dir=`$as_dirname -- "$ac_file" ||
17623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17624 X"$ac_file" : 'X\(//\)[^/]' \| \
17625 X"$ac_file" : 'X\(//\)$' \| \
17626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17627 $as_echo X"$ac_file" |
17628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17629 s//\1/
17632 /^X\(\/\/\)[^/].*/{
17633 s//\1/
17636 /^X\(\/\/\)$/{
17637 s//\1/
17640 /^X\(\/\).*/{
17641 s//\1/
17644 s/.*/./; q'`
17645 as_dir="$ac_dir"; as_fn_mkdir_p
17646 ac_builddir=.
17648 case "$ac_dir" in
17649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17652 # A ".." for each directory in $ac_dir_suffix.
17653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17654 case $ac_top_builddir_sub in
17655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17657 esac ;;
17658 esac
17659 ac_abs_top_builddir=$ac_pwd
17660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17661 # for backward compatibility:
17662 ac_top_builddir=$ac_top_build_prefix
17664 case $srcdir in
17665 .) # We are building in place.
17666 ac_srcdir=.
17667 ac_top_srcdir=$ac_top_builddir_sub
17668 ac_abs_top_srcdir=$ac_pwd ;;
17669 [\\/]* | ?:[\\/]* ) # Absolute name.
17670 ac_srcdir=$srcdir$ac_dir_suffix;
17671 ac_top_srcdir=$srcdir
17672 ac_abs_top_srcdir=$srcdir ;;
17673 *) # Relative name.
17674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17675 ac_top_srcdir=$ac_top_build_prefix$srcdir
17676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17677 esac
17678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17681 case $ac_mode in
17684 # CONFIG_FILE
17687 case $INSTALL in
17688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17690 esac
17691 ac_MKDIR_P=$MKDIR_P
17692 case $MKDIR_P in
17693 [\\/$]* | ?:[\\/]* ) ;;
17694 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17695 esac
17696 _ACEOF
17698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17699 # If the template does not know about datarootdir, expand it.
17700 # FIXME: This hack should be removed a few years after 2.60.
17701 ac_datarootdir_hack=; ac_datarootdir_seen=
17702 ac_sed_dataroot='
17703 /datarootdir/ {
17707 /@datadir@/p
17708 /@docdir@/p
17709 /@infodir@/p
17710 /@localedir@/p
17711 /@mandir@/p'
17712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17713 *datarootdir*) ac_datarootdir_seen=yes;;
17714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17717 _ACEOF
17718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719 ac_datarootdir_hack='
17720 s&@datadir@&$datadir&g
17721 s&@docdir@&$docdir&g
17722 s&@infodir@&$infodir&g
17723 s&@localedir@&$localedir&g
17724 s&@mandir@&$mandir&g
17725 s&\\\${datarootdir}&$datarootdir&g' ;;
17726 esac
17727 _ACEOF
17729 # Neutralize VPATH when `$srcdir' = `.'.
17730 # Shell code in configure.ac might set extrasub.
17731 # FIXME: do we really want to maintain this feature?
17732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17733 ac_sed_extra="$ac_vpsub
17734 $extrasub
17735 _ACEOF
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17739 s|@configure_input@|$ac_sed_conf_input|;t t
17740 s&@top_builddir@&$ac_top_builddir_sub&;t t
17741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17742 s&@srcdir@&$ac_srcdir&;t t
17743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17744 s&@top_srcdir@&$ac_top_srcdir&;t t
17745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17746 s&@builddir@&$ac_builddir&;t t
17747 s&@abs_builddir@&$ac_abs_builddir&;t t
17748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17749 s&@INSTALL@&$ac_INSTALL&;t t
17750 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17751 $ac_datarootdir_hack
17753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17756 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17761 which seems to be undefined. Please make sure it is defined" >&5
17762 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17763 which seems to be undefined. Please make sure it is defined" >&2;}
17765 rm -f "$ac_tmp/stdin"
17766 case $ac_file in
17767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17769 esac \
17770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17774 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17775 $as_echo "$as_me: executing $ac_file commands" >&6;}
17777 esac
17780 case $ac_file$ac_mode in
17781 "default-1":C)
17782 # Only add multilib support code if we just rebuilt the top-level
17783 # Makefile.
17784 case " $CONFIG_FILES " in
17785 *" Makefile "*)
17786 ac_file=Makefile . ${multi_basedir}/config-ml.in
17788 esac ;;
17789 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17790 # Older Autoconf quotes --file arguments for eval, but not when files
17791 # are listed without --file. Let's play safe and only enable the eval
17792 # if we detect the quoting.
17793 case $CONFIG_FILES in
17794 *\'*) eval set x "$CONFIG_FILES" ;;
17795 *) set x $CONFIG_FILES ;;
17796 esac
17797 shift
17798 for mf
17800 # Strip MF so we end up with the name of the file.
17801 mf=`echo "$mf" | sed -e 's/:.*$//'`
17802 # Check whether this is an Automake generated Makefile or not.
17803 # We used to match only the files named 'Makefile.in', but
17804 # some people rename them; so instead we look at the file content.
17805 # Grep'ing the first line is not enough: some people post-process
17806 # each Makefile.in and add a new line on top of each file to say so.
17807 # Grep'ing the whole file is not good either: AIX grep has a line
17808 # limit of 2048, but all sed's we know have understand at least 4000.
17809 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17810 dirpart=`$as_dirname -- "$mf" ||
17811 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17812 X"$mf" : 'X\(//\)[^/]' \| \
17813 X"$mf" : 'X\(//\)$' \| \
17814 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17815 $as_echo X"$mf" |
17816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17817 s//\1/
17820 /^X\(\/\/\)[^/].*/{
17821 s//\1/
17824 /^X\(\/\/\)$/{
17825 s//\1/
17828 /^X\(\/\).*/{
17829 s//\1/
17832 s/.*/./; q'`
17833 else
17834 continue
17836 # Extract the definition of DEPDIR, am__include, and am__quote
17837 # from the Makefile without running 'make'.
17838 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17839 test -z "$DEPDIR" && continue
17840 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17841 test -z "$am__include" && continue
17842 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17843 # Find all dependency output files, they are included files with
17844 # $(DEPDIR) in their names. We invoke sed twice because it is the
17845 # simplest approach to changing $(DEPDIR) to its actual value in the
17846 # expansion.
17847 for file in `sed -n "
17848 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17849 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17850 # Make sure the directory exists.
17851 test -f "$dirpart/$file" && continue
17852 fdir=`$as_dirname -- "$file" ||
17853 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17854 X"$file" : 'X\(//\)[^/]' \| \
17855 X"$file" : 'X\(//\)$' \| \
17856 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17857 $as_echo X"$file" |
17858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17859 s//\1/
17862 /^X\(\/\/\)[^/].*/{
17863 s//\1/
17866 /^X\(\/\/\)$/{
17867 s//\1/
17870 /^X\(\/\).*/{
17871 s//\1/
17874 s/.*/./; q'`
17875 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17876 # echo "creating $dirpart/$file"
17877 echo '# dummy' > "$dirpart/$file"
17878 done
17879 done
17882 "libtool":C)
17884 # See if we are running on zsh, and set the options which allow our
17885 # commands through without removal of \ escapes.
17886 if test -n "${ZSH_VERSION+set}" ; then
17887 setopt NO_GLOB_SUBST
17890 cfgfile="${ofile}T"
17891 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17892 $RM "$cfgfile"
17894 cat <<_LT_EOF >> "$cfgfile"
17895 #! $SHELL
17897 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17898 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17900 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17902 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17903 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17904 # Written by Gordon Matzigkeit, 1996
17906 # This file is part of GNU Libtool.
17908 # GNU Libtool is free software; you can redistribute it and/or
17909 # modify it under the terms of the GNU General Public License as
17910 # published by the Free Software Foundation; either version 2 of
17911 # the License, or (at your option) any later version.
17913 # As a special exception to the GNU General Public License,
17914 # if you distribute this file as part of a program or library that
17915 # is built using GNU Libtool, you may include this file under the
17916 # same distribution terms that you use for the rest of that program.
17918 # GNU Libtool is distributed in the hope that it will be useful,
17919 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17920 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17921 # GNU General Public License for more details.
17923 # You should have received a copy of the GNU General Public License
17924 # along with GNU Libtool; see the file COPYING. If not, a copy
17925 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17926 # obtained by writing to the Free Software Foundation, Inc.,
17927 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17930 # The names of the tagged configurations supported by this script.
17931 available_tags="CXX "
17933 # ### BEGIN LIBTOOL CONFIG
17935 # Which release of libtool.m4 was used?
17936 macro_version=$macro_version
17937 macro_revision=$macro_revision
17939 # Whether or not to build shared libraries.
17940 build_libtool_libs=$enable_shared
17942 # Whether or not to build static libraries.
17943 build_old_libs=$enable_static
17945 # What type of objects to build.
17946 pic_mode=$pic_mode
17948 # Whether or not to optimize for fast installation.
17949 fast_install=$enable_fast_install
17951 # Shell to use when invoking shell scripts.
17952 SHELL=$lt_SHELL
17954 # An echo program that protects backslashes.
17955 ECHO=$lt_ECHO
17957 # The host system.
17958 host_alias=$host_alias
17959 host=$host
17960 host_os=$host_os
17962 # The build system.
17963 build_alias=$build_alias
17964 build=$build
17965 build_os=$build_os
17967 # A sed program that does not truncate output.
17968 SED=$lt_SED
17970 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17971 Xsed="\$SED -e 1s/^X//"
17973 # A grep program that handles long lines.
17974 GREP=$lt_GREP
17976 # An ERE matcher.
17977 EGREP=$lt_EGREP
17979 # A literal string matcher.
17980 FGREP=$lt_FGREP
17982 # A BSD- or MS-compatible name lister.
17983 NM=$lt_NM
17985 # Whether we need soft or hard links.
17986 LN_S=$lt_LN_S
17988 # What is the maximum length of a command?
17989 max_cmd_len=$max_cmd_len
17991 # Object file suffix (normally "o").
17992 objext=$ac_objext
17994 # Executable file suffix (normally "").
17995 exeext=$exeext
17997 # whether the shell understands "unset".
17998 lt_unset=$lt_unset
18000 # turn spaces into newlines.
18001 SP2NL=$lt_lt_SP2NL
18003 # turn newlines into spaces.
18004 NL2SP=$lt_lt_NL2SP
18006 # An object symbol dumper.
18007 OBJDUMP=$lt_OBJDUMP
18009 # Method to check whether dependent libraries are shared objects.
18010 deplibs_check_method=$lt_deplibs_check_method
18012 # Command to use when deplibs_check_method == "file_magic".
18013 file_magic_cmd=$lt_file_magic_cmd
18015 # The archiver.
18016 AR=$lt_AR
18017 AR_FLAGS=$lt_AR_FLAGS
18019 # A symbol stripping program.
18020 STRIP=$lt_STRIP
18022 # Commands used to install an old-style archive.
18023 RANLIB=$lt_RANLIB
18024 old_postinstall_cmds=$lt_old_postinstall_cmds
18025 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18027 # Whether to use a lock for old archive extraction.
18028 lock_old_archive_extraction=$lock_old_archive_extraction
18030 # A C compiler.
18031 LTCC=$lt_CC
18033 # LTCC compiler flags.
18034 LTCFLAGS=$lt_CFLAGS
18036 # Take the output of nm and produce a listing of raw symbols and C names.
18037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18039 # Transform the output of nm in a proper C declaration.
18040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18042 # Transform the output of nm in a C name address pair.
18043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18045 # Transform the output of nm in a C name address pair when lib prefix is needed.
18046 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18048 # The name of the directory that contains temporary libtool files.
18049 objdir=$objdir
18051 # Used to examine libraries when file_magic_cmd begins with "file".
18052 MAGIC_CMD=$MAGIC_CMD
18054 # Must we lock files when doing compilation?
18055 need_locks=$lt_need_locks
18057 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18058 DSYMUTIL=$lt_DSYMUTIL
18060 # Tool to change global to local symbols on Mac OS X.
18061 NMEDIT=$lt_NMEDIT
18063 # Tool to manipulate fat objects and archives on Mac OS X.
18064 LIPO=$lt_LIPO
18066 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18067 OTOOL=$lt_OTOOL
18069 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18070 OTOOL64=$lt_OTOOL64
18072 # Old archive suffix (normally "a").
18073 libext=$libext
18075 # Shared library suffix (normally ".so").
18076 shrext_cmds=$lt_shrext_cmds
18078 # The commands to extract the exported symbol list from a shared archive.
18079 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18081 # Variables whose values should be saved in libtool wrapper scripts and
18082 # restored at link time.
18083 variables_saved_for_relink=$lt_variables_saved_for_relink
18085 # Do we need the "lib" prefix for modules?
18086 need_lib_prefix=$need_lib_prefix
18088 # Do we need a version for libraries?
18089 need_version=$need_version
18091 # Library versioning type.
18092 version_type=$version_type
18094 # Shared library runtime path variable.
18095 runpath_var=$runpath_var
18097 # Shared library path variable.
18098 shlibpath_var=$shlibpath_var
18100 # Is shlibpath searched before the hard-coded library search path?
18101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18103 # Format of library name prefix.
18104 libname_spec=$lt_libname_spec
18106 # List of archive names. First name is the real one, the rest are links.
18107 # The last name is the one that the linker finds with -lNAME
18108 library_names_spec=$lt_library_names_spec
18110 # The coded name of the library, if different from the real name.
18111 soname_spec=$lt_soname_spec
18113 # Permission mode override for installation of shared libraries.
18114 install_override_mode=$lt_install_override_mode
18116 # Command to use after installation of a shared archive.
18117 postinstall_cmds=$lt_postinstall_cmds
18119 # Command to use after uninstallation of a shared archive.
18120 postuninstall_cmds=$lt_postuninstall_cmds
18122 # Commands used to finish a libtool library installation in a directory.
18123 finish_cmds=$lt_finish_cmds
18125 # As "finish_cmds", except a single script fragment to be evaled but
18126 # not shown.
18127 finish_eval=$lt_finish_eval
18129 # Whether we should hardcode library paths into libraries.
18130 hardcode_into_libs=$hardcode_into_libs
18132 # Compile-time system search path for libraries.
18133 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18135 # Run-time system search path for libraries.
18136 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18138 # Whether dlopen is supported.
18139 dlopen_support=$enable_dlopen
18141 # Whether dlopen of programs is supported.
18142 dlopen_self=$enable_dlopen_self
18144 # Whether dlopen of statically linked programs is supported.
18145 dlopen_self_static=$enable_dlopen_self_static
18147 # Commands to strip libraries.
18148 old_striplib=$lt_old_striplib
18149 striplib=$lt_striplib
18152 # The linker used to build libraries.
18153 LD=$lt_LD
18155 # How to create reloadable object files.
18156 reload_flag=$lt_reload_flag
18157 reload_cmds=$lt_reload_cmds
18159 # Commands used to build an old-style archive.
18160 old_archive_cmds=$lt_old_archive_cmds
18162 # A language specific compiler.
18163 CC=$lt_compiler
18165 # Is the compiler the GNU compiler?
18166 with_gcc=$GCC
18168 # Compiler flag to turn off builtin functions.
18169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18171 # How to pass a linker flag through the compiler.
18172 wl=$lt_lt_prog_compiler_wl
18174 # Additional compiler flags for building library objects.
18175 pic_flag=$lt_lt_prog_compiler_pic
18177 # Compiler flag to prevent dynamic linking.
18178 link_static_flag=$lt_lt_prog_compiler_static
18180 # Does compiler simultaneously support -c and -o options?
18181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18183 # Whether or not to add -lc for building shared libraries.
18184 build_libtool_need_lc=$archive_cmds_need_lc
18186 # Whether or not to disallow shared libs when runtime libs are static.
18187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18189 # Compiler flag to allow reflexive dlopens.
18190 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18192 # Compiler flag to generate shared objects directly from archives.
18193 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18195 # Whether the compiler copes with passing no objects directly.
18196 compiler_needs_object=$lt_compiler_needs_object
18198 # Create an old-style archive from a shared archive.
18199 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18201 # Create a temporary old-style archive to link instead of a shared archive.
18202 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18204 # Commands used to build a shared archive.
18205 archive_cmds=$lt_archive_cmds
18206 archive_expsym_cmds=$lt_archive_expsym_cmds
18208 # Commands used to build a loadable module if different from building
18209 # a shared archive.
18210 module_cmds=$lt_module_cmds
18211 module_expsym_cmds=$lt_module_expsym_cmds
18213 # Whether we are building with GNU ld or not.
18214 with_gnu_ld=$lt_with_gnu_ld
18216 # Flag that allows shared libraries with undefined symbols to be built.
18217 allow_undefined_flag=$lt_allow_undefined_flag
18219 # Flag that enforces no undefined symbols.
18220 no_undefined_flag=$lt_no_undefined_flag
18222 # Flag to hardcode \$libdir into a binary during linking.
18223 # This must work even if \$libdir does not exist
18224 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18226 # If ld is used when linking, flag to hardcode \$libdir into a binary
18227 # during linking. This must work even if \$libdir does not exist.
18228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18230 # Whether we need a single "-rpath" flag with a separated argument.
18231 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18233 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18234 # DIR into the resulting binary.
18235 hardcode_direct=$hardcode_direct
18237 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18238 # DIR into the resulting binary and the resulting library dependency is
18239 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18240 # library is relocated.
18241 hardcode_direct_absolute=$hardcode_direct_absolute
18243 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18244 # into the resulting binary.
18245 hardcode_minus_L=$hardcode_minus_L
18247 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18248 # into the resulting binary.
18249 hardcode_shlibpath_var=$hardcode_shlibpath_var
18251 # Set to "yes" if building a shared library automatically hardcodes DIR
18252 # into the library and all subsequent libraries and executables linked
18253 # against it.
18254 hardcode_automatic=$hardcode_automatic
18256 # Set to yes if linker adds runtime paths of dependent libraries
18257 # to runtime path list.
18258 inherit_rpath=$inherit_rpath
18260 # Whether libtool must link a program against all its dependency libraries.
18261 link_all_deplibs=$link_all_deplibs
18263 # Fix the shell variable \$srcfile for the compiler.
18264 fix_srcfile_path=$lt_fix_srcfile_path
18266 # Set to "yes" if exported symbols are required.
18267 always_export_symbols=$always_export_symbols
18269 # The commands to list exported symbols.
18270 export_symbols_cmds=$lt_export_symbols_cmds
18272 # Symbols that should not be listed in the preloaded symbols.
18273 exclude_expsyms=$lt_exclude_expsyms
18275 # Symbols that must always be exported.
18276 include_expsyms=$lt_include_expsyms
18278 # Commands necessary for linking programs (against libraries) with templates.
18279 prelink_cmds=$lt_prelink_cmds
18281 # Specify filename containing input files.
18282 file_list_spec=$lt_file_list_spec
18284 # How to hardcode a shared library path into an executable.
18285 hardcode_action=$hardcode_action
18287 # The directories searched by this compiler when creating a shared library.
18288 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18290 # Dependencies to place before and after the objects being linked to
18291 # create a shared library.
18292 predep_objects=$lt_predep_objects
18293 postdep_objects=$lt_postdep_objects
18294 predeps=$lt_predeps
18295 postdeps=$lt_postdeps
18297 # The library search path used internally by the compiler when linking
18298 # a shared library.
18299 compiler_lib_search_path=$lt_compiler_lib_search_path
18301 # ### END LIBTOOL CONFIG
18303 _LT_EOF
18305 case $host_os in
18306 aix3*)
18307 cat <<\_LT_EOF >> "$cfgfile"
18308 # AIX sometimes has problems with the GCC collect2 program. For some
18309 # reason, if we set the COLLECT_NAMES environment variable, the problems
18310 # vanish in a puff of smoke.
18311 if test "X${COLLECT_NAMES+set}" != Xset; then
18312 COLLECT_NAMES=
18313 export COLLECT_NAMES
18315 _LT_EOF
18317 esac
18320 ltmain="$ac_aux_dir/ltmain.sh"
18323 # We use sed instead of cat because bash on DJGPP gets confused if
18324 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18325 # text mode, it properly converts lines to CR/LF. This bash problem
18326 # is reportedly fixed, but why not run on old versions too?
18327 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18328 || (rm -f "$cfgfile"; exit 1)
18330 case $xsi_shell in
18331 yes)
18332 cat << \_LT_EOF >> "$cfgfile"
18334 # func_dirname file append nondir_replacement
18335 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18336 # otherwise set result to NONDIR_REPLACEMENT.
18337 func_dirname ()
18339 case ${1} in
18340 */*) func_dirname_result="${1%/*}${2}" ;;
18341 * ) func_dirname_result="${3}" ;;
18342 esac
18345 # func_basename file
18346 func_basename ()
18348 func_basename_result="${1##*/}"
18351 # func_dirname_and_basename file append nondir_replacement
18352 # perform func_basename and func_dirname in a single function
18353 # call:
18354 # dirname: Compute the dirname of FILE. If nonempty,
18355 # add APPEND to the result, otherwise set result
18356 # to NONDIR_REPLACEMENT.
18357 # value returned in "$func_dirname_result"
18358 # basename: Compute filename of FILE.
18359 # value retuned in "$func_basename_result"
18360 # Implementation must be kept synchronized with func_dirname
18361 # and func_basename. For efficiency, we do not delegate to
18362 # those functions but instead duplicate the functionality here.
18363 func_dirname_and_basename ()
18365 case ${1} in
18366 */*) func_dirname_result="${1%/*}${2}" ;;
18367 * ) func_dirname_result="${3}" ;;
18368 esac
18369 func_basename_result="${1##*/}"
18372 # func_stripname prefix suffix name
18373 # strip PREFIX and SUFFIX off of NAME.
18374 # PREFIX and SUFFIX must not contain globbing or regex special
18375 # characters, hashes, percent signs, but SUFFIX may contain a leading
18376 # dot (in which case that matches only a dot).
18377 func_stripname ()
18379 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18380 # positional parameters, so assign one to ordinary parameter first.
18381 func_stripname_result=${3}
18382 func_stripname_result=${func_stripname_result#"${1}"}
18383 func_stripname_result=${func_stripname_result%"${2}"}
18386 # func_opt_split
18387 func_opt_split ()
18389 func_opt_split_opt=${1%%=*}
18390 func_opt_split_arg=${1#*=}
18393 # func_lo2o object
18394 func_lo2o ()
18396 case ${1} in
18397 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18398 *) func_lo2o_result=${1} ;;
18399 esac
18402 # func_xform libobj-or-source
18403 func_xform ()
18405 func_xform_result=${1%.*}.lo
18408 # func_arith arithmetic-term...
18409 func_arith ()
18411 func_arith_result=$(( $* ))
18414 # func_len string
18415 # STRING may not start with a hyphen.
18416 func_len ()
18418 func_len_result=${#1}
18421 _LT_EOF
18423 *) # Bourne compatible functions.
18424 cat << \_LT_EOF >> "$cfgfile"
18426 # func_dirname file append nondir_replacement
18427 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18428 # otherwise set result to NONDIR_REPLACEMENT.
18429 func_dirname ()
18431 # Extract subdirectory from the argument.
18432 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18433 if test "X$func_dirname_result" = "X${1}"; then
18434 func_dirname_result="${3}"
18435 else
18436 func_dirname_result="$func_dirname_result${2}"
18440 # func_basename file
18441 func_basename ()
18443 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18447 # func_stripname prefix suffix name
18448 # strip PREFIX and SUFFIX off of NAME.
18449 # PREFIX and SUFFIX must not contain globbing or regex special
18450 # characters, hashes, percent signs, but SUFFIX may contain a leading
18451 # dot (in which case that matches only a dot).
18452 # func_strip_suffix prefix name
18453 func_stripname ()
18455 case ${2} in
18456 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18457 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18458 esac
18461 # sed scripts:
18462 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18463 my_sed_long_arg='1s/^-[^=]*=//'
18465 # func_opt_split
18466 func_opt_split ()
18468 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18469 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18472 # func_lo2o object
18473 func_lo2o ()
18475 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18478 # func_xform libobj-or-source
18479 func_xform ()
18481 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18484 # func_arith arithmetic-term...
18485 func_arith ()
18487 func_arith_result=`expr "$@"`
18490 # func_len string
18491 # STRING may not start with a hyphen.
18492 func_len ()
18494 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18497 _LT_EOF
18498 esac
18500 case $lt_shell_append in
18501 yes)
18502 cat << \_LT_EOF >> "$cfgfile"
18504 # func_append var value
18505 # Append VALUE to the end of shell variable VAR.
18506 func_append ()
18508 eval "$1+=\$2"
18510 _LT_EOF
18513 cat << \_LT_EOF >> "$cfgfile"
18515 # func_append var value
18516 # Append VALUE to the end of shell variable VAR.
18517 func_append ()
18519 eval "$1=\$$1\$2"
18522 _LT_EOF
18524 esac
18527 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18528 || (rm -f "$cfgfile"; exit 1)
18530 mv -f "$cfgfile" "$ofile" ||
18531 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18532 chmod +x "$ofile"
18535 cat <<_LT_EOF >> "$ofile"
18537 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18539 # The linker used to build libraries.
18540 LD=$lt_LD_CXX
18542 # How to create reloadable object files.
18543 reload_flag=$lt_reload_flag_CXX
18544 reload_cmds=$lt_reload_cmds_CXX
18546 # Commands used to build an old-style archive.
18547 old_archive_cmds=$lt_old_archive_cmds_CXX
18549 # A language specific compiler.
18550 CC=$lt_compiler_CXX
18552 # Is the compiler the GNU compiler?
18553 with_gcc=$GCC_CXX
18555 # Compiler flag to turn off builtin functions.
18556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18558 # How to pass a linker flag through the compiler.
18559 wl=$lt_lt_prog_compiler_wl_CXX
18561 # Additional compiler flags for building library objects.
18562 pic_flag=$lt_lt_prog_compiler_pic_CXX
18564 # Compiler flag to prevent dynamic linking.
18565 link_static_flag=$lt_lt_prog_compiler_static_CXX
18567 # Does compiler simultaneously support -c and -o options?
18568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18570 # Whether or not to add -lc for building shared libraries.
18571 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18573 # Whether or not to disallow shared libs when runtime libs are static.
18574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18576 # Compiler flag to allow reflexive dlopens.
18577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18579 # Compiler flag to generate shared objects directly from archives.
18580 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18582 # Whether the compiler copes with passing no objects directly.
18583 compiler_needs_object=$lt_compiler_needs_object_CXX
18585 # Create an old-style archive from a shared archive.
18586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18588 # Create a temporary old-style archive to link instead of a shared archive.
18589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18591 # Commands used to build a shared archive.
18592 archive_cmds=$lt_archive_cmds_CXX
18593 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18595 # Commands used to build a loadable module if different from building
18596 # a shared archive.
18597 module_cmds=$lt_module_cmds_CXX
18598 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18600 # Whether we are building with GNU ld or not.
18601 with_gnu_ld=$lt_with_gnu_ld_CXX
18603 # Flag that allows shared libraries with undefined symbols to be built.
18604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18606 # Flag that enforces no undefined symbols.
18607 no_undefined_flag=$lt_no_undefined_flag_CXX
18609 # Flag to hardcode \$libdir into a binary during linking.
18610 # This must work even if \$libdir does not exist
18611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18613 # If ld is used when linking, flag to hardcode \$libdir into a binary
18614 # during linking. This must work even if \$libdir does not exist.
18615 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18617 # Whether we need a single "-rpath" flag with a separated argument.
18618 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18621 # DIR into the resulting binary.
18622 hardcode_direct=$hardcode_direct_CXX
18624 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18625 # DIR into the resulting binary and the resulting library dependency is
18626 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18627 # library is relocated.
18628 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18630 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18631 # into the resulting binary.
18632 hardcode_minus_L=$hardcode_minus_L_CXX
18634 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18635 # into the resulting binary.
18636 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18638 # Set to "yes" if building a shared library automatically hardcodes DIR
18639 # into the library and all subsequent libraries and executables linked
18640 # against it.
18641 hardcode_automatic=$hardcode_automatic_CXX
18643 # Set to yes if linker adds runtime paths of dependent libraries
18644 # to runtime path list.
18645 inherit_rpath=$inherit_rpath_CXX
18647 # Whether libtool must link a program against all its dependency libraries.
18648 link_all_deplibs=$link_all_deplibs_CXX
18650 # Fix the shell variable \$srcfile for the compiler.
18651 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18653 # Set to "yes" if exported symbols are required.
18654 always_export_symbols=$always_export_symbols_CXX
18656 # The commands to list exported symbols.
18657 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18659 # Symbols that should not be listed in the preloaded symbols.
18660 exclude_expsyms=$lt_exclude_expsyms_CXX
18662 # Symbols that must always be exported.
18663 include_expsyms=$lt_include_expsyms_CXX
18665 # Commands necessary for linking programs (against libraries) with templates.
18666 prelink_cmds=$lt_prelink_cmds_CXX
18668 # Specify filename containing input files.
18669 file_list_spec=$lt_file_list_spec_CXX
18671 # How to hardcode a shared library path into an executable.
18672 hardcode_action=$hardcode_action_CXX
18674 # The directories searched by this compiler when creating a shared library.
18675 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18677 # Dependencies to place before and after the objects being linked to
18678 # create a shared library.
18679 predep_objects=$lt_predep_objects_CXX
18680 postdep_objects=$lt_postdep_objects_CXX
18681 predeps=$lt_predeps_CXX
18682 postdeps=$lt_postdeps_CXX
18684 # The library search path used internally by the compiler when linking
18685 # a shared library.
18686 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18688 # ### END LIBTOOL TAG CONFIG: CXX
18689 _LT_EOF
18692 "libproc_macro_internal/Makefile":F) cat > vpsed$$ << \_EOF
18693 s!`test -f '$<' || echo '$(srcdir)/'`!!
18694 _EOF
18695 sed -f vpsed$$ $ac_file > tmp$$
18696 mv tmp$$ $ac_file
18697 rm vpsed$$
18698 echo 'MULTISUBDIR =' >> $ac_file
18699 ml_norecursion=yes
18700 { ml_norecursion=; unset ml_norecursion;}
18703 esac
18704 done # for ac_tag
18707 as_fn_exit 0
18708 _ACEOF
18709 ac_clean_files=$ac_clean_files_save
18711 test $ac_write_fail = 0 ||
18712 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18715 # configure is writing to config.log, and then calls config.status.
18716 # config.status does its own redirection, appending to config.log.
18717 # Unfortunately, on DOS this fails, as config.log is still kept open
18718 # by configure, so config.status won't be able to write to it; its
18719 # output is simply discarded. So we exec the FD to /dev/null,
18720 # effectively closing config.log, so it can be properly (re)opened and
18721 # appended to by config.status. When coming back to configure, we
18722 # need to make the FD available again.
18723 if test "$no_create" != yes; then
18724 ac_cs_success=:
18725 ac_config_status_args=
18726 test "$silent" = yes &&
18727 ac_config_status_args="$ac_config_status_args --quiet"
18728 exec 5>/dev/null
18729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18730 exec 5>>config.log
18731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18732 # would make configure fail if this is the last instruction.
18733 $ac_cs_success || as_fn_exit 1
18735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18737 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}