Fix hppa64-hpux11 build to remove source paths from embedded path.
[official-gcc.git] / libhsail-rt / configure
blob8bda2d2d96d4a244f1c4a82447efa29ad793ae44
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for phsa HSAIL runtime library 1.0.
5 # Report bugs to <pekka.jaaskelainen@parmance.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: pekka.jaaskelainen@parmance.com about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='phsa HSAIL runtime library'
592 PACKAGE_TARNAME='phsa-hsail-runtime-library'
593 PACKAGE_VERSION='1.0'
594 PACKAGE_STRING='phsa HSAIL runtime library 1.0'
595 PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com'
596 PACKAGE_URL=''
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 get_gcc_base_ver
639 toolexeclibdir
640 toolexecdir
641 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
657 EGREP
658 GREP
660 LIBTOOL
661 MAC_LINKER_SCRIPT_FALSE
662 MAC_LINKER_SCRIPT_TRUE
663 LINUX_LINKER_SCRIPT_FALSE
664 LINUX_LINKER_SCRIPT_TRUE
665 config_dir
666 am__fastdepCXX_FALSE
667 am__fastdepCXX_TRUE
668 CXXDEPMODE
669 ac_ct_CXX
670 CXXFLAGS
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_os
720 target_vendor
721 target_cpu
722 target
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_version_specific_runtime_libs
776 with_toolexeclibdir
777 enable_shared
778 enable_static
779 with_pic
780 enable_fast_install
781 with_gnu_ld
782 enable_libtool_lock
783 with_gcc_major_version_only
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
794 CXXFLAGS
797 CXXCPP'
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
848 ac_prev=
849 ac_dashdash=
850 for ac_option
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
869 ac_dashdash=yes ;;
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
888 --config-cache | -C)
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 esac
1206 done
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1290 /^X\(\/\/\)$/{
1291 s//\1/
1294 /^X\(\/\).*/{
1295 s//\1/
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1303 else
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root
1387 [DATAROOTDIR/doc/phsa-hsail-runtime-library]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1394 cat <<\_ACEOF
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405 _ACEOF
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";;
1411 esac
1412 cat <<\_ACEOF
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-maintainer-mode
1421 enable make rules and dependencies not useful (and
1422 sometimes confusing) to the casual installer
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --enable-version-specific-runtime-libs
1428 Specify that runtime libraries should be installed
1429 in a compi ler-specific directory
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-toolexeclibdir=DIR
1440 install libraries built with a cross compiler within
1442 --with-pic try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-gcc-major-version-only
1446 use only GCC major number in filesystem paths
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 CXX C++ compiler command
1457 CXXFLAGS C++ compiler flags
1458 CPP C preprocessor
1459 CXXCPP C++ preprocessor
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to <pekka.jaaskelainen@parmance.com>.
1465 _ACEOF
1466 ac_status=$?
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 phsa HSAIL runtime library configure 1.0
1528 generated by GNU Autoconf 2.69
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=1
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_cxx_try_compile LINENO
1580 # ----------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_cxx_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_cxx_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=1
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_cxx_try_compile
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_link ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 test -x conftest$ac_exeext
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655 # interfere with the next link command; also delete a directory that is
1656 # left behind by Apple's compiler. We do this before executing the actions.
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_link
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=1
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_cpp
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_c_try_run
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1801 #undef $2
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1818 main ()
1820 return $2 ();
1822 return 0;
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826 eval "$3=yes"
1827 else
1828 eval "$3=no"
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_func
1840 # ac_fn_cxx_try_cpp LINENO
1841 # ------------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_cpp ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_cxx_try_cpp
1877 # ac_fn_cxx_try_link LINENO
1878 # -------------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_link ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 test -x conftest$ac_exeext
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_cxx_try_link
1923 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1924 # --------------------------------------------
1925 # Tries to find the compile-time value of EXPR in a program that includes
1926 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1927 # computed
1928 ac_fn_c_compute_int ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if test "$cross_compiling" = yes; then
1932 # Depending upon the size, compute the lo and hi bounds.
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1937 main ()
1939 static int test_array [1 - 2 * !(($2) >= 0)];
1940 test_array [0] = 0;
1941 return test_array [0];
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 ac_lo=0 ac_mid=0
1949 while :; do
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 main ()
1956 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1957 test_array [0] = 0;
1958 return test_array [0];
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_hi=$ac_mid; break
1966 else
1967 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1968 if test $ac_lo -le $ac_mid; then
1969 ac_lo= ac_hi=
1970 break
1972 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 done
1976 else
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 main ()
1983 static int test_array [1 - 2 * !(($2) < 0)];
1984 test_array [0] = 0;
1985 return test_array [0];
1988 return 0;
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_hi=-1 ac_mid=-1
1993 while :; do
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1998 main ()
2000 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2001 test_array [0] = 0;
2002 return test_array [0];
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_lo=$ac_mid; break
2010 else
2011 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2012 if test $ac_mid -le $ac_hi; then
2013 ac_lo= ac_hi=
2014 break
2016 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 done
2020 else
2021 ac_lo= ac_hi=
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 # Binary search between lo and hi bounds.
2027 while test "x$ac_lo" != "x$ac_hi"; do
2028 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2036 test_array [0] = 0;
2037 return test_array [0];
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_hi=$ac_mid
2045 else
2046 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 done
2050 case $ac_lo in #((
2051 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2052 '') ac_retval=1 ;;
2053 esac
2054 else
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2058 static long int longval () { return $2; }
2059 static unsigned long int ulongval () { return $2; }
2060 #include <stdio.h>
2061 #include <stdlib.h>
2063 main ()
2066 FILE *f = fopen ("conftest.val", "w");
2067 if (! f)
2068 return 1;
2069 if (($2) < 0)
2071 long int i = longval ();
2072 if (i != ($2))
2073 return 1;
2074 fprintf (f, "%ld", i);
2076 else
2078 unsigned long int i = ulongval ();
2079 if (i != ($2))
2080 return 1;
2081 fprintf (f, "%lu", i);
2083 /* Do not output a trailing newline, as this causes \r\n confusion
2084 on some platforms. */
2085 return ferror (f) || fclose (f) != 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_run "$LINENO"; then :
2092 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2093 else
2094 ac_retval=1
2096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2097 conftest.$ac_objext conftest.beam conftest.$ac_ext
2098 rm -f conftest.val
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 as_fn_set_status $ac_retval
2104 } # ac_fn_c_compute_int
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2109 It was created by phsa HSAIL runtime library $as_me 1.0, which was
2110 generated by GNU Autoconf 2.69. Invocation command line was
2112 $ $0 $@
2114 _ACEOF
2115 exec 5>>config.log
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139 _ASUNAME
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 $as_echo "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2150 } >&5
2152 cat >&5 <<_ACEOF
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2159 _ACEOF
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2173 for ac_arg
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2202 as_fn_append ac_configure_args " '$ac_arg'"
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2218 echo
2220 $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 esac |
2252 sort
2254 echo
2256 $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2270 if test -n "$ac_subst_files"; then
2271 $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2286 if test -s confdefs.h; then
2287 $as_echo "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
2350 elif test "x$prefix" != xNONE; then
2351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
2353 else
2354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
2357 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 test "x$ac_site_file" = xNONE && continue
2360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363 sed 's/^/| /' "$ac_site_file" >&5
2364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "failed to load site script $ac_site_file
2368 See \`config.log' for more details" "$LINENO" 5; }
2370 done
2372 if test -r "$cache_file"; then
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378 case $cache_file in
2379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
2381 esac
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 >$cache_file
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461 # Needed to define ${target}. Needs to be very early to avoid annoying
2462 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2463 ac_aux_dir=
2464 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2465 if test -f "$ac_dir/install-sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install-sh -c"
2468 break
2469 elif test -f "$ac_dir/install.sh"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/install.sh -c"
2472 break
2473 elif test -f "$ac_dir/shtool"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/shtool install -c"
2476 break
2478 done
2479 if test -z "$ac_aux_dir"; then
2480 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492 # Make sure we can run config.sub.
2493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2494 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2497 $as_echo_n "checking build system type... " >&6; }
2498 if ${ac_cv_build+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 ac_build_alias=$build_alias
2502 test "x$ac_build_alias" = x &&
2503 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2504 test "x$ac_build_alias" = x &&
2505 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2506 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2511 $as_echo "$ac_cv_build" >&6; }
2512 case $ac_cv_build in
2513 *-*-*) ;;
2514 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2515 esac
2516 build=$ac_cv_build
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_build
2519 shift
2520 build_cpu=$1
2521 build_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 build_os=$*
2526 IFS=$ac_save_IFS
2527 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2531 $as_echo_n "checking host system type... " >&6; }
2532 if ${ac_cv_host+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test "x$host_alias" = x; then
2536 ac_cv_host=$ac_cv_build
2537 else
2538 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2544 $as_echo "$ac_cv_host" >&6; }
2545 case $ac_cv_host in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2548 esac
2549 host=$ac_cv_host
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_host
2552 shift
2553 host_cpu=$1
2554 host_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 host_os=$*
2559 IFS=$ac_save_IFS
2560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2564 $as_echo_n "checking target system type... " >&6; }
2565 if ${ac_cv_target+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test "x$target_alias" = x; then
2569 ac_cv_target=$ac_cv_host
2570 else
2571 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2577 $as_echo "$ac_cv_target" >&6; }
2578 case $ac_cv_target in
2579 *-*-*) ;;
2580 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2581 esac
2582 target=$ac_cv_target
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_target
2585 shift
2586 target_cpu=$1
2587 target_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 target_os=$*
2592 IFS=$ac_save_IFS
2593 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2596 # The aliases save the names the user supplied, while $host etc.
2597 # will get canonicalized.
2598 test -n "$target_alias" &&
2599 test "$program_prefix$program_suffix$program_transform_name" = \
2600 NONENONEs,x,x, &&
2601 program_prefix=${target_alias}-
2603 target_alias=${target_alias-$host_alias}
2605 am__api_version='1.15'
2607 # Find a good install program. We prefer a C program (faster),
2608 # so one script is as good as another. But avoid the broken or
2609 # incompatible versions:
2610 # SysV /etc/install, /usr/sbin/install
2611 # SunOS /usr/etc/install
2612 # IRIX /sbin/install
2613 # AIX /bin/install
2614 # AmigaOS /C/install, which installs bootblocks on floppy discs
2615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2618 # OS/2's system install, which has a completely different semantic
2619 # ./install, which can be erroneously created by make from ./install.sh.
2620 # Reject install programs that cannot install multiple files.
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2622 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2623 if test -z "$INSTALL"; then
2624 if ${ac_cv_path_install+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 # Account for people who put trailing slashes in PATH elements.
2633 case $as_dir/ in #((
2634 ./ | .// | /[cC]/* | \
2635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2637 /usr/ucb/* ) ;;
2639 # OSF1 and SCO ODT 3.0 have their own names for install.
2640 # Don't use installbsd from OSF since it installs stuff as root
2641 # by default.
2642 for ac_prog in ginstall scoinst install; do
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2645 if test $ac_prog = install &&
2646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2647 # AIX install. It has an incompatible calling convention.
2649 elif test $ac_prog = install &&
2650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651 # program-specific install script used by HP pwplus--don't use.
2653 else
2654 rm -rf conftest.one conftest.two conftest.dir
2655 echo one > conftest.one
2656 echo two > conftest.two
2657 mkdir conftest.dir
2658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2659 test -s conftest.one && test -s conftest.two &&
2660 test -s conftest.dir/conftest.one &&
2661 test -s conftest.dir/conftest.two
2662 then
2663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2664 break 3
2668 done
2669 done
2671 esac
2673 done
2674 IFS=$as_save_IFS
2676 rm -rf conftest.one conftest.two conftest.dir
2679 if test "${ac_cv_path_install+set}" = set; then
2680 INSTALL=$ac_cv_path_install
2681 else
2682 # As a last resort, use the slow shell script. Don't cache a
2683 # value for INSTALL within a source directory, because that will
2684 # break other packages using the cache if that directory is
2685 # removed, or if the value is a relative name.
2686 INSTALL=$ac_install_sh
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2690 $as_echo "$INSTALL" >&6; }
2692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2693 # It thinks the first close brace ends the variable substitution.
2694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2701 $as_echo_n "checking whether build environment is sane... " >&6; }
2702 # Reject unsafe characters in $srcdir or the absolute working directory
2703 # name. Accept space and tab only in the latter.
2704 am_lf='
2706 case `pwd` in
2707 *[\\\"\#\$\&\'\`$am_lf]*)
2708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2709 esac
2710 case $srcdir in
2711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2712 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2713 esac
2715 # Do 'set' in a subshell so we don't clobber the current shell's
2716 # arguments. Must try -L first in case configure is actually a
2717 # symlink; some systems play weird games with the mod time of symlinks
2718 # (eg FreeBSD returns the mod time of the symlink's containing
2719 # directory).
2720 if (
2721 am_has_slept=no
2722 for am_try in 1 2; do
2723 echo "timestamp, slept: $am_has_slept" > conftest.file
2724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2725 if test "$*" = "X"; then
2726 # -L didn't work.
2727 set X `ls -t "$srcdir/configure" conftest.file`
2729 if test "$*" != "X $srcdir/configure conftest.file" \
2730 && test "$*" != "X conftest.file $srcdir/configure"; then
2732 # If neither matched, then we have a broken ls. This can happen
2733 # if, for instance, CONFIG_SHELL is bash and it inherits a
2734 # broken ls alias from the environment. This has actually
2735 # happened. Such a system could not be considered "sane".
2736 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2737 alias in your environment" "$LINENO" 5
2739 if test "$2" = conftest.file || test $am_try -eq 2; then
2740 break
2742 # Just in case.
2743 sleep 1
2744 am_has_slept=yes
2745 done
2746 test "$2" = conftest.file
2748 then
2749 # Ok.
2751 else
2752 as_fn_error $? "newly created file is older than distributed files!
2753 Check your system clock" "$LINENO" 5
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2756 $as_echo "yes" >&6; }
2757 # If we didn't sleep, we still need to ensure time stamps of config.status and
2758 # generated files are strictly newer.
2759 am_sleep_pid=
2760 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2761 ( sleep 1 ) &
2762 am_sleep_pid=$!
2765 rm -f conftest.file
2767 test "$program_prefix" != NONE &&
2768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2769 # Use a double $ so make ignores it.
2770 test "$program_suffix" != NONE &&
2771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2772 # Double any \ or $.
2773 # By default was `s,x,x', remove it if useless.
2774 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2775 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2777 # Expand $ac_aux_dir to an absolute path.
2778 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2780 if test x"${MISSING+set}" != xset; then
2781 case $am_aux_dir in
2782 *\ * | *\ *)
2783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2785 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2786 esac
2788 # Use eval to expand $SHELL
2789 if eval "$MISSING --is-lightweight"; then
2790 am_missing_run="$MISSING "
2791 else
2792 am_missing_run=
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2794 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2797 if test x"${install_sh+set}" != xset; then
2798 case $am_aux_dir in
2799 *\ * | *\ *)
2800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2802 install_sh="\${SHELL} $am_aux_dir/install-sh"
2803 esac
2806 # Installed binaries are usually stripped using 'strip' when the user
2807 # run "make install-strip". However 'strip' might not be the right
2808 # tool to use in cross-compilation environments, therefore Automake
2809 # will honor the 'STRIP' environment variable to overrule this program.
2810 if test "$cross_compiling" != no; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}strip; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_STRIP+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$STRIP"; then
2820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2835 IFS=$as_save_IFS
2839 STRIP=$ac_cv_prog_STRIP
2840 if test -n "$STRIP"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2842 $as_echo "$STRIP" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2850 if test -z "$ac_cv_prog_STRIP"; then
2851 ac_ct_STRIP=$STRIP
2852 # Extract the first word of "strip", so it can be a program name with args.
2853 set dummy strip; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$ac_ct_STRIP"; then
2860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_ac_ct_STRIP="strip"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2880 if test -n "$ac_ct_STRIP"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2882 $as_echo "$ac_ct_STRIP" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2888 if test "x$ac_ct_STRIP" = x; then
2889 STRIP=":"
2890 else
2891 case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2896 esac
2897 STRIP=$ac_ct_STRIP
2899 else
2900 STRIP="$ac_cv_prog_STRIP"
2904 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2907 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2908 if test -z "$MKDIR_P"; then
2909 if ${ac_cv_path_mkdir+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_prog in mkdir gmkdir; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2921 'mkdir (GNU coreutils) '* | \
2922 'mkdir (coreutils) '* | \
2923 'mkdir (fileutils) '4.1*)
2924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2925 break 3;;
2926 esac
2927 done
2928 done
2929 done
2930 IFS=$as_save_IFS
2934 test -d ./--version && rmdir ./--version
2935 if test "${ac_cv_path_mkdir+set}" = set; then
2936 MKDIR_P="$ac_cv_path_mkdir -p"
2937 else
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for MKDIR_P within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 MKDIR_P="$ac_install_sh -d"
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2946 $as_echo "$MKDIR_P" >&6; }
2948 for ac_prog in gawk mawk nawk awk
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_AWK+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$AWK"; then
2958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_AWK="$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 AWK=$ac_cv_prog_AWK
2978 if test -n "$AWK"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2980 $as_echo "$AWK" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$AWK" && break
2988 done
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2991 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 set x ${MAKE-make}
2993 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2994 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 cat >conftest.make <<\_ACEOF
2998 SHELL = /bin/sh
2999 all:
3000 @echo '@@@%%%=$(MAKE)=@@@%%%'
3001 _ACEOF
3002 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004 *@@@%%%=?*=@@@%%%*)
3005 eval ac_cv_prog_make_${ac_make}_set=yes;;
3007 eval ac_cv_prog_make_${ac_make}_set=no;;
3008 esac
3009 rm -f conftest.make
3011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014 SET_MAKE=
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 SET_MAKE="MAKE=${MAKE-make}"
3021 rm -rf .tst 2>/dev/null
3022 mkdir .tst 2>/dev/null
3023 if test -d .tst; then
3024 am__leading_dot=.
3025 else
3026 am__leading_dot=_
3028 rmdir .tst 2>/dev/null
3030 # Check whether --enable-silent-rules was given.
3031 if test "${enable_silent_rules+set}" = set; then :
3032 enableval=$enable_silent_rules;
3035 case $enable_silent_rules in # (((
3036 yes) AM_DEFAULT_VERBOSITY=0;;
3037 no) AM_DEFAULT_VERBOSITY=1;;
3038 *) AM_DEFAULT_VERBOSITY=1;;
3039 esac
3040 am_make=${MAKE-make}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3042 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3043 if ${am_cv_make_support_nested_variables+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if $as_echo 'TRUE=$(BAR$(V))
3047 BAR0=false
3048 BAR1=true
3050 am__doit:
3051 @$(TRUE)
3052 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3053 am_cv_make_support_nested_variables=yes
3054 else
3055 am_cv_make_support_nested_variables=no
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3059 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3060 if test $am_cv_make_support_nested_variables = yes; then
3061 AM_V='$(V)'
3062 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3063 else
3064 AM_V=$AM_DEFAULT_VERBOSITY
3065 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3067 AM_BACKSLASH='\'
3069 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3070 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3071 # is not polluted with repeated "-I."
3072 am__isrc=' -I$(srcdir)'
3073 # test to see if srcdir already configured
3074 if test -f $srcdir/config.status; then
3075 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3079 # test whether we have cygpath
3080 if test -z "$CYGPATH_W"; then
3081 if (cygpath --version) >/dev/null 2>/dev/null; then
3082 CYGPATH_W='cygpath -w'
3083 else
3084 CYGPATH_W=echo
3089 # Define the identity of the package.
3090 PACKAGE='phsa-hsail-runtime-library'
3091 VERSION='1.0'
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE "$PACKAGE"
3096 _ACEOF
3099 cat >>confdefs.h <<_ACEOF
3100 #define VERSION "$VERSION"
3101 _ACEOF
3103 # Some tools Automake needs.
3105 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3108 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3111 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3114 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3117 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3119 # For better backward compatibility. To be removed once Automake 1.9.x
3120 # dies out for good. For more background, see:
3121 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3122 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3123 mkdir_p='$(MKDIR_P)'
3125 # We need awk for the "check" target (and possibly the TAP driver). The
3126 # system "awk" is bad on some platforms.
3127 # Always define AMTAR for backward compatibility. Yes, it's still used
3128 # in the wild :-( We should find a proper way to deprecate it ...
3129 AMTAR='$${TAR-tar}'
3132 # We'll loop over all known methods to create a tar archive until one works.
3133 _am_tools='gnutar pax cpio none'
3135 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3142 # POSIX will say in a future version that running "rm -f" with no argument
3143 # is OK; and we want to be able to make that assumption in our Makefile
3144 # recipes. So use an aggressive probe to check that the usage we want is
3145 # actually supported "in the wild" to an acceptable degree.
3146 # See automake bug#10828.
3147 # To make any issue more visible, cause the running configure to be aborted
3148 # by default if the 'rm' program in use doesn't match our expectations; the
3149 # user can still override this though.
3150 if rm -f && rm -fr && rm -rf; then : OK; else
3151 cat >&2 <<'END'
3152 Oops!
3154 Your 'rm' program seems unable to run without file operands specified
3155 on the command line, even when the '-f' option is present. This is contrary
3156 to the behaviour of most rm programs out there, and not conforming with
3157 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159 Please tell bug-automake@gnu.org about your system, including the value
3160 of your $PATH and any error possibly output before this message. This
3161 can help us improve future automake versions.
3164 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3165 echo 'Configuration will proceed anyway, since you have set the' >&2
3166 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3167 echo >&2
3168 else
3169 cat >&2 <<'END'
3170 Aborting the configuration process, to ensure you take notice of the issue.
3172 You can download and install GNU coreutils to get an 'rm' implementation
3173 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3175 If you want to complete the configuration process using your problematic
3176 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3177 to "yes", and re-run configure.
3180 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3187 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3188 # Check whether --enable-maintainer-mode was given.
3189 if test "${enable_maintainer_mode+set}" = set; then :
3190 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3191 else
3192 USE_MAINTAINER_MODE=no
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3196 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3197 if test $USE_MAINTAINER_MODE = yes; then
3198 MAINTAINER_MODE_TRUE=
3199 MAINTAINER_MODE_FALSE='#'
3200 else
3201 MAINTAINER_MODE_TRUE='#'
3202 MAINTAINER_MODE_FALSE=
3205 MAINT=$MAINTAINER_MODE_TRUE
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 else
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3236 done
3237 done
3238 IFS=$as_save_IFS
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3253 if test -z "$ac_cv_prog_CC"; then
3254 ac_ct_CC=$CC
3255 # Extract the first word of "gcc", so it can be a program name with args.
3256 set dummy gcc; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_CC="gcc"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3276 done
3277 done
3278 IFS=$as_save_IFS
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3291 if test "x$ac_ct_CC" = x; then
3292 CC=""
3293 else
3294 case $cross_compiling:$ac_tool_warned in
3295 yes:)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3298 ac_tool_warned=yes ;;
3299 esac
3300 CC=$ac_ct_CC
3302 else
3303 CC="$ac_cv_prog_CC"
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}cc; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="${ac_tool_prefix}cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3347 if test -z "$CC"; then
3348 # Extract the first word of "cc", so it can be a program name with args.
3349 set dummy cc; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_CC+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 ac_prog_rejected=no
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3367 ac_prog_rejected=yes
3368 continue
3370 ac_cv_prog_CC="cc"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3374 done
3375 done
3376 IFS=$as_save_IFS
3378 if test $ac_prog_rejected = yes; then
3379 # We found a bogon in the path, so make sure we never use it.
3380 set dummy $ac_cv_prog_CC
3381 shift
3382 if test $# != 0; then
3383 # We chose a different compiler from the bogus one.
3384 # However, it has the same basename, so the bogon will be chosen
3385 # first if we set CC to just the basename; use the full file name.
3386 shift
3387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395 $as_echo "$CC" >&6; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3403 if test -z "$CC"; then
3404 if test -n "$ac_tool_prefix"; then
3405 for ac_prog in cl.exe
3407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3430 IFS=$as_save_IFS
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3444 test -n "$CC" && break
3445 done
3447 if test -z "$CC"; then
3448 ac_ct_CC=$CC
3449 for ac_prog in cl.exe
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 if test -n "$ac_ct_CC"; then
3459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_prog_ac_ct_CC="$ac_prog"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3472 done
3473 done
3474 IFS=$as_save_IFS
3478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3479 if test -n "$ac_ct_CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3481 $as_echo "$ac_ct_CC" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3488 test -n "$ac_ct_CC" && break
3489 done
3491 if test "x$ac_ct_CC" = x; then
3492 CC=""
3493 else
3494 case $cross_compiling:$ac_tool_warned in
3495 yes:)
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 CC=$ac_ct_CC
3507 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error $? "no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details" "$LINENO" 5; }
3512 # Provide some information about the compiler.
3513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 set X $ac_compile
3515 ac_compiler=$2
3516 for ac_option in --version -v -V -qversion; do
3517 { { ac_try="$ac_compiler $ac_option >&5"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3525 ac_status=$?
3526 if test -s conftest.err; then
3527 sed '10a\
3528 ... rest of stderr output deleted ...
3529 10q' conftest.err >conftest.er1
3530 cat conftest.er1 >&5
3532 rm -f conftest.er1 conftest.err
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 done
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main ()
3545 return 0;
3547 _ACEOF
3548 ac_clean_files_save=$ac_clean_files
3549 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3550 # Try to create an executable without -o first, disregard a.out.
3551 # It will help us diagnose broken compilers, and finding out an intuition
3552 # of exeext.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3554 $as_echo_n "checking whether the C compiler works... " >&6; }
3555 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557 # The possible output files:
3558 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3560 ac_rmfiles=
3561 for ac_file in $ac_files
3563 case $ac_file in
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3566 esac
3567 done
3568 rm -f $ac_rmfiles
3570 if { { ac_try="$ac_link_default"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link_default") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3584 # so that the user can short-circuit this test for compilers unknown to
3585 # Autoconf.
3586 for ac_file in $ac_files ''
3588 test -f "$ac_file" || continue
3589 case $ac_file in
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3592 [ab].out )
3593 # We found the default executable, but exeext='' is most
3594 # certainly right.
3595 break;;
3596 *.* )
3597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3598 then :; else
3599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 # We set ac_cv_exeext here because the later test for it is not
3602 # safe: cross compilers may not add the suffix if given an `-o'
3603 # argument, so we may need to know it at that point already.
3604 # Even if this section looks crufty: it has the advantage of
3605 # actually working.
3606 break;;
3608 break;;
3609 esac
3610 done
3611 test "$ac_cv_exeext" = no && ac_cv_exeext=
3613 else
3614 ac_file=''
3616 if test -z "$ac_file"; then :
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error 77 "C compiler cannot create executables
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3628 $as_echo "yes" >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3631 $as_echo_n "checking for C compiler default output file name... " >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3633 $as_echo "$ac_file" >&6; }
3634 ac_exeext=$ac_cv_exeext
3636 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3637 ac_clean_files=$ac_clean_files_save
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3639 $as_echo_n "checking for suffix of executables... " >&6; }
3640 if { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }; then :
3651 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3652 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3653 # work properly (i.e., refer to `conftest.exe'), while it won't with
3654 # `rm'.
3655 for ac_file in conftest.exe conftest conftest.*; do
3656 test -f "$ac_file" || continue
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 break;;
3661 * ) break;;
3662 esac
3663 done
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details" "$LINENO" 5; }
3670 rm -f conftest conftest$ac_cv_exeext
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3676 ac_exeext=$EXEEXT
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdio.h>
3681 main ()
3683 FILE *f = fopen ("conftest.out", "w");
3684 return ferror (f) || fclose (f) != 0;
3687 return 0;
3689 _ACEOF
3690 ac_clean_files="$ac_clean_files conftest.out"
3691 # Check that the compiler produces executables we can run. If not, either
3692 # the compiler is broken, or we cross compile.
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3694 $as_echo_n "checking whether we are cross compiling... " >&6; }
3695 if test "$cross_compiling" != yes; then
3696 { { ac_try="$ac_link"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }
3707 if { ac_try='./conftest$ac_cv_exeext'
3708 { { case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3718 cross_compiling=no
3719 else
3720 if test "$cross_compiling" = maybe; then
3721 cross_compiling=yes
3722 else
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "cannot run C compiled programs.
3726 If you meant to cross compile, use \`--host'.
3727 See \`config.log' for more details" "$LINENO" 5; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3732 $as_echo "$cross_compiling" >&6; }
3734 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3735 ac_clean_files=$ac_clean_files_save
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3737 $as_echo_n "checking for suffix of object files... " >&6; }
3738 if ${ac_cv_objext+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 rm -f conftest.o conftest.obj
3753 if { { ac_try="$ac_compile"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 $as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_compile") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }; then :
3764 for ac_file in conftest.o conftest.obj conftest.*; do
3765 test -f "$ac_file" || continue;
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3769 break;;
3770 esac
3771 done
3772 else
3773 $as_echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "cannot compute suffix of object files: cannot compile
3779 See \`config.log' for more details" "$LINENO" 5; }
3781 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3784 $as_echo "$ac_cv_objext" >&6; }
3785 OBJEXT=$ac_cv_objext
3786 ac_objext=$OBJEXT
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3788 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3789 if ${ac_cv_c_compiler_gnu+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3796 main ()
3798 #ifndef __GNUC__
3799 choke me
3800 #endif
3803 return 0;
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_compiler_gnu=yes
3808 else
3809 ac_compiler_gnu=no
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3816 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3817 if test $ac_compiler_gnu = yes; then
3818 GCC=yes
3819 else
3820 GCC=
3822 ac_test_CFLAGS=${CFLAGS+set}
3823 ac_save_CFLAGS=$CFLAGS
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3825 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3826 if ${ac_cv_prog_cc_g+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 ac_save_c_werror_flag=$ac_c_werror_flag
3830 ac_c_werror_flag=yes
3831 ac_cv_prog_cc_g=no
3832 CFLAGS="-g"
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3837 main ()
3841 return 0;
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_g=yes
3846 else
3847 CFLAGS=""
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3852 main ()
3856 return 0;
3858 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"; then :
3861 else
3862 ac_c_werror_flag=$ac_save_c_werror_flag
3863 CFLAGS="-g"
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3868 main ()
3872 return 0;
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_prog_cc_g=yes
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3886 $as_echo "$ac_cv_prog_cc_g" >&6; }
3887 if test "$ac_test_CFLAGS" = set; then
3888 CFLAGS=$ac_save_CFLAGS
3889 elif test $ac_cv_prog_cc_g = yes; then
3890 if test "$GCC" = yes; then
3891 CFLAGS="-g -O2"
3892 else
3893 CFLAGS="-g"
3895 else
3896 if test "$GCC" = yes; then
3897 CFLAGS="-O2"
3898 else
3899 CFLAGS=
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3903 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3904 if ${ac_cv_prog_cc_c89+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 ac_cv_prog_cc_c89=no
3908 ac_save_CC=$CC
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3911 #include <stdarg.h>
3912 #include <stdio.h>
3913 struct stat;
3914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3915 struct buf { int x; };
3916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3917 static char *e (p, i)
3918 char **p;
3919 int i;
3921 return p[i];
3923 static char *f (char * (*g) (char **, int), char **p, ...)
3925 char *s;
3926 va_list v;
3927 va_start (v,p);
3928 s = g (p, va_arg (v,int));
3929 va_end (v);
3930 return s;
3933 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3934 function prototypes and stuff, but not '\xHH' hex character constants.
3935 These don't provoke an error unfortunately, instead are silently treated
3936 as 'x'. The following induces an error, until -std is added to get
3937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3938 array size at least. It's necessary to write '\x00'==0 to get something
3939 that's true only with -std. */
3940 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3942 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3943 inside strings and character constants. */
3944 #define FOO(x) 'x'
3945 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3947 int test (int i, double x);
3948 struct s1 {int (*f) (int a);};
3949 struct s2 {int (*f) (double a);};
3950 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3951 int argc;
3952 char **argv;
3954 main ()
3956 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3958 return 0;
3960 _ACEOF
3961 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3964 CC="$ac_save_CC $ac_arg"
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966 ac_cv_prog_cc_c89=$ac_arg
3968 rm -f core conftest.err conftest.$ac_objext
3969 test "x$ac_cv_prog_cc_c89" != "xno" && break
3970 done
3971 rm -f conftest.$ac_ext
3972 CC=$ac_save_CC
3975 # AC_CACHE_VAL
3976 case "x$ac_cv_prog_cc_c89" in
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3979 $as_echo "none needed" >&6; } ;;
3980 xno)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3982 $as_echo "unsupported" >&6; } ;;
3984 CC="$CC $ac_cv_prog_cc_c89"
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3986 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3987 esac
3988 if test "x$ac_cv_prog_cc_c89" != xno; then :
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4004 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4005 if ${am_cv_prog_cc_c_o+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4012 main ()
4016 return 0;
4018 _ACEOF
4019 # Make sure it works both with $CC and with simple cc.
4020 # Following AC_PROG_CC_C_O, we do the test twice because some
4021 # compilers refuse to overwrite an existing .o file with -o,
4022 # though they will create one.
4023 am_cv_prog_cc_c_o=yes
4024 for am_i in 1 2; do
4025 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4026 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } \
4030 && test -f conftest2.$ac_objext; then
4031 : OK
4032 else
4033 am_cv_prog_cc_c_o=no
4034 break
4036 done
4037 rm -f core conftest*
4038 unset am_i
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4041 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4042 if test "$am_cv_prog_cc_c_o" != yes; then
4043 # Losing compiler, so override with the script.
4044 # FIXME: It is wrong to rewrite CC.
4045 # But if we don't then we get into trouble of one sort or another.
4046 # A longer-term fix would be to have automake use am__CC in this case,
4047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4048 CC="$am_aux_dir/compile $CC"
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 DEPDIR="${am__leading_dot}deps"
4058 ac_config_commands="$ac_config_commands depfiles"
4061 am_make=${MAKE-make}
4062 cat > confinc << 'END'
4063 am__doit:
4064 @echo this is the am__doit target
4065 .PHONY: am__doit
4067 # If we don't find an include directive, just comment out the code.
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4069 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4070 am__include="#"
4071 am__quote=
4072 _am_result=none
4073 # First try GNU make style include.
4074 echo "include confinc" > confmf
4075 # Ignore all kinds of additional output from 'make'.
4076 case `$am_make -s -f confmf 2> /dev/null` in #(
4077 *the\ am__doit\ target*)
4078 am__include=include
4079 am__quote=
4080 _am_result=GNU
4082 esac
4083 # Now try BSD make style include.
4084 if test "$am__include" = "#"; then
4085 echo '.include "confinc"' > confmf
4086 case `$am_make -s -f confmf 2> /dev/null` in #(
4087 *the\ am__doit\ target*)
4088 am__include=.include
4089 am__quote="\""
4090 _am_result=BSD
4092 esac
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4097 $as_echo "$_am_result" >&6; }
4098 rm -f confinc confmf
4100 # Check whether --enable-dependency-tracking was given.
4101 if test "${enable_dependency_tracking+set}" = set; then :
4102 enableval=$enable_dependency_tracking;
4105 if test "x$enable_dependency_tracking" != xno; then
4106 am_depcomp="$ac_aux_dir/depcomp"
4107 AMDEPBACKSLASH='\'
4108 am__nodep='_no'
4110 if test "x$enable_dependency_tracking" != xno; then
4111 AMDEP_TRUE=
4112 AMDEP_FALSE='#'
4113 else
4114 AMDEP_TRUE='#'
4115 AMDEP_FALSE=
4120 depcc="$CC" am_compiler_list=
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4123 $as_echo_n "checking dependency style of $depcc... " >&6; }
4124 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4128 # We make a subdir and do the tests there. Otherwise we can end up
4129 # making bogus files that we don't know about and never remove. For
4130 # instance it was reported that on HP-UX the gcc test will end up
4131 # making a dummy file named 'D' -- because '-MD' means "put the output
4132 # in D".
4133 rm -rf conftest.dir
4134 mkdir conftest.dir
4135 # Copy depcomp to subdir because otherwise we won't find it if we're
4136 # using a relative directory.
4137 cp "$am_depcomp" conftest.dir
4138 cd conftest.dir
4139 # We will build objects and dependencies in a subdirectory because
4140 # it helps to detect inapplicable dependency modes. For instance
4141 # both Tru64's cc and ICC support -MD to output dependencies as a
4142 # side effect of compilation, but ICC will put the dependencies in
4143 # the current directory while Tru64 will put them in the object
4144 # directory.
4145 mkdir sub
4147 am_cv_CC_dependencies_compiler_type=none
4148 if test "$am_compiler_list" = ""; then
4149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4151 am__universal=false
4152 case " $depcc " in #(
4153 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4154 esac
4156 for depmode in $am_compiler_list; do
4157 # Setup a source with many dependencies, because some compilers
4158 # like to wrap large dependency lists on column 80 (with \), and
4159 # we should not choose a depcomp mode which is confused by this.
4161 # We need to recreate these files for each test, as the compiler may
4162 # overwrite some of them when testing with obscure command lines.
4163 # This happens at least with the AIX C compiler.
4164 : > sub/conftest.c
4165 for i in 1 2 3 4 5 6; do
4166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4168 # Solaris 10 /bin/sh.
4169 echo '/* dummy */' > sub/conftst$i.h
4170 done
4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4173 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4174 # mode. It turns out that the SunPro C++ compiler does not properly
4175 # handle '-M -o', and we need to detect this. Also, some Intel
4176 # versions had trouble with output in subdirs.
4177 am__obj=sub/conftest.${OBJEXT-o}
4178 am__minus_obj="-o $am__obj"
4179 case $depmode in
4180 gcc)
4181 # This depmode causes a compiler race in universal mode.
4182 test "$am__universal" = false || continue
4184 nosideeffect)
4185 # After this tag, mechanisms are not by side-effect, so they'll
4186 # only be used when explicitly requested.
4187 if test "x$enable_dependency_tracking" = xyes; then
4188 continue
4189 else
4190 break
4193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4194 # This compiler won't grok '-c -o', but also, the minuso test has
4195 # not run yet. These depmodes are late enough in the game, and
4196 # so weak that their functioning should not be impacted.
4197 am__obj=conftest.${OBJEXT-o}
4198 am__minus_obj=
4200 none) break ;;
4201 esac
4202 if depmode=$depmode \
4203 source=sub/conftest.c object=$am__obj \
4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4206 >/dev/null 2>conftest.err &&
4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4211 # icc doesn't choke on unknown options, it will just issue warnings
4212 # or remarks (even with -Werror). So we grep stderr for any message
4213 # that says an option was ignored or not supported.
4214 # When given -MP, icc 7.0 and 7.1 complain thusly:
4215 # icc: Command line warning: ignoring option '-M'; no argument required
4216 # The diagnosis changed in icc 8.0:
4217 # icc: Command line remark: option '-MP' not supported
4218 if (grep 'ignoring option' conftest.err ||
4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4220 am_cv_CC_dependencies_compiler_type=$depmode
4221 break
4224 done
4226 cd ..
4227 rm -rf conftest.dir
4228 else
4229 am_cv_CC_dependencies_compiler_type=none
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4238 test "x$enable_dependency_tracking" != xno \
4239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4240 am__fastdepCC_TRUE=
4241 am__fastdepCC_FALSE='#'
4242 else
4243 am__fastdepCC_TRUE='#'
4244 am__fastdepCC_FALSE=
4248 ac_ext=cpp
4249 ac_cpp='$CXXCPP $CPPFLAGS'
4250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4253 if test -z "$CXX"; then
4254 if test -n "$CCC"; then
4255 CXX=$CCC
4256 else
4257 if test -n "$ac_tool_prefix"; then
4258 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CXX+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -n "$CXX"; then
4268 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4269 else
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4281 done
4282 done
4283 IFS=$as_save_IFS
4287 CXX=$ac_cv_prog_CXX
4288 if test -n "$CXX"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4290 $as_echo "$CXX" >&6; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4297 test -n "$CXX" && break
4298 done
4300 if test -z "$CXX"; then
4301 ac_ct_CXX=$CXX
4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305 set dummy $ac_prog; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$ac_ct_CXX"; then
4312 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_ac_ct_CXX="$ac_prog"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4332 if test -n "$ac_ct_CXX"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4334 $as_echo "$ac_ct_CXX" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 test -n "$ac_ct_CXX" && break
4342 done
4344 if test "x$ac_ct_CXX" = x; then
4345 CXX="g++"
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348 yes:)
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4351 ac_tool_warned=yes ;;
4352 esac
4353 CXX=$ac_ct_CXX
4359 # Provide some information about the compiler.
4360 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4361 set X $ac_compile
4362 ac_compiler=$2
4363 for ac_option in --version -v -V -qversion; do
4364 { { ac_try="$ac_compiler $ac_option >&5"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4372 ac_status=$?
4373 if test -s conftest.err; then
4374 sed '10a\
4375 ... rest of stderr output deleted ...
4376 10q' conftest.err >conftest.er1
4377 cat conftest.er1 >&5
4379 rm -f conftest.er1 conftest.err
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }
4382 done
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4385 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4386 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4393 main ()
4395 #ifndef __GNUC__
4396 choke me
4397 #endif
4400 return 0;
4402 _ACEOF
4403 if ac_fn_cxx_try_compile "$LINENO"; then :
4404 ac_compiler_gnu=yes
4405 else
4406 ac_compiler_gnu=no
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4413 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4414 if test $ac_compiler_gnu = yes; then
4415 GXX=yes
4416 else
4417 GXX=
4419 ac_test_CXXFLAGS=${CXXFLAGS+set}
4420 ac_save_CXXFLAGS=$CXXFLAGS
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4422 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4423 if ${ac_cv_prog_cxx_g+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4427 ac_cxx_werror_flag=yes
4428 ac_cv_prog_cxx_g=no
4429 CXXFLAGS="-g"
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4434 main ()
4438 return 0;
4440 _ACEOF
4441 if ac_fn_cxx_try_compile "$LINENO"; then :
4442 ac_cv_prog_cxx_g=yes
4443 else
4444 CXXFLAGS=""
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4449 main ()
4453 return 0;
4455 _ACEOF
4456 if ac_fn_cxx_try_compile "$LINENO"; then :
4458 else
4459 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4460 CXXFLAGS="-g"
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4465 main ()
4469 return 0;
4471 _ACEOF
4472 if ac_fn_cxx_try_compile "$LINENO"; then :
4473 ac_cv_prog_cxx_g=yes
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4483 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4484 if test "$ac_test_CXXFLAGS" = set; then
4485 CXXFLAGS=$ac_save_CXXFLAGS
4486 elif test $ac_cv_prog_cxx_g = yes; then
4487 if test "$GXX" = yes; then
4488 CXXFLAGS="-g -O2"
4489 else
4490 CXXFLAGS="-g"
4492 else
4493 if test "$GXX" = yes; then
4494 CXXFLAGS="-O2"
4495 else
4496 CXXFLAGS=
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 depcc="$CXX" am_compiler_list=
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4508 $as_echo_n "checking dependency style of $depcc... " >&6; }
4509 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4513 # We make a subdir and do the tests there. Otherwise we can end up
4514 # making bogus files that we don't know about and never remove. For
4515 # instance it was reported that on HP-UX the gcc test will end up
4516 # making a dummy file named 'D' -- because '-MD' means "put the output
4517 # in D".
4518 rm -rf conftest.dir
4519 mkdir conftest.dir
4520 # Copy depcomp to subdir because otherwise we won't find it if we're
4521 # using a relative directory.
4522 cp "$am_depcomp" conftest.dir
4523 cd conftest.dir
4524 # We will build objects and dependencies in a subdirectory because
4525 # it helps to detect inapplicable dependency modes. For instance
4526 # both Tru64's cc and ICC support -MD to output dependencies as a
4527 # side effect of compilation, but ICC will put the dependencies in
4528 # the current directory while Tru64 will put them in the object
4529 # directory.
4530 mkdir sub
4532 am_cv_CXX_dependencies_compiler_type=none
4533 if test "$am_compiler_list" = ""; then
4534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4536 am__universal=false
4537 case " $depcc " in #(
4538 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4539 esac
4541 for depmode in $am_compiler_list; do
4542 # Setup a source with many dependencies, because some compilers
4543 # like to wrap large dependency lists on column 80 (with \), and
4544 # we should not choose a depcomp mode which is confused by this.
4546 # We need to recreate these files for each test, as the compiler may
4547 # overwrite some of them when testing with obscure command lines.
4548 # This happens at least with the AIX C compiler.
4549 : > sub/conftest.c
4550 for i in 1 2 3 4 5 6; do
4551 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4552 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4553 # Solaris 10 /bin/sh.
4554 echo '/* dummy */' > sub/conftst$i.h
4555 done
4556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4558 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4559 # mode. It turns out that the SunPro C++ compiler does not properly
4560 # handle '-M -o', and we need to detect this. Also, some Intel
4561 # versions had trouble with output in subdirs.
4562 am__obj=sub/conftest.${OBJEXT-o}
4563 am__minus_obj="-o $am__obj"
4564 case $depmode in
4565 gcc)
4566 # This depmode causes a compiler race in universal mode.
4567 test "$am__universal" = false || continue
4569 nosideeffect)
4570 # After this tag, mechanisms are not by side-effect, so they'll
4571 # only be used when explicitly requested.
4572 if test "x$enable_dependency_tracking" = xyes; then
4573 continue
4574 else
4575 break
4578 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4579 # This compiler won't grok '-c -o', but also, the minuso test has
4580 # not run yet. These depmodes are late enough in the game, and
4581 # so weak that their functioning should not be impacted.
4582 am__obj=conftest.${OBJEXT-o}
4583 am__minus_obj=
4585 none) break ;;
4586 esac
4587 if depmode=$depmode \
4588 source=sub/conftest.c object=$am__obj \
4589 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4590 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4591 >/dev/null 2>conftest.err &&
4592 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4593 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4594 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4595 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4596 # icc doesn't choke on unknown options, it will just issue warnings
4597 # or remarks (even with -Werror). So we grep stderr for any message
4598 # that says an option was ignored or not supported.
4599 # When given -MP, icc 7.0 and 7.1 complain thusly:
4600 # icc: Command line warning: ignoring option '-M'; no argument required
4601 # The diagnosis changed in icc 8.0:
4602 # icc: Command line remark: option '-MP' not supported
4603 if (grep 'ignoring option' conftest.err ||
4604 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4605 am_cv_CXX_dependencies_compiler_type=$depmode
4606 break
4609 done
4611 cd ..
4612 rm -rf conftest.dir
4613 else
4614 am_cv_CXX_dependencies_compiler_type=none
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4619 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4620 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4623 test "x$enable_dependency_tracking" != xno \
4624 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4625 am__fastdepCXX_TRUE=
4626 am__fastdepCXX_FALSE='#'
4627 else
4628 am__fastdepCXX_TRUE='#'
4629 am__fastdepCXX_FALSE=
4633 # AC_PROG_LIBTOOL
4634 ac_config_files="$ac_config_files Makefile"
4637 if test "${multilib}" = "yes"; then
4638 multilib_arg="--enable-multilib"
4639 else
4640 multilib_arg=
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4644 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4645 # Check whether --enable-version-specific-runtime-libs was given.
4646 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4647 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4648 yes) enable_version_specific_runtime_libs=yes ;;
4649 no) enable_version_specific_runtime_libs=no ;;
4650 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs
4651 " "$LINENO" 5;;
4652 esac
4653 else
4654 enable_version_specific_runtime_libs=no
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4658 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4661 # Check whether --with-toolexeclibdir was given.
4662 if test "${with_toolexeclibdir+set}" = set; then :
4663 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
4667 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
4669 esac
4670 else
4671 with_toolexeclibdir=no
4676 # Calculate toolexeclibdir
4677 # Also toolexecdir, though it's only used in toolexeclibdir
4678 case ${enable_version_specific_runtime_libs} in
4679 yes)
4680 # Need the gcc compiler version to know where to install libraries
4681 # and header files if --enable-version-specific-runtime-libs option
4682 # is selected.
4683 toolexecdir='$(libdir)/gcc/$(target_alias)'
4684 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4687 if test -n "$with_cross_host" &&
4688 test x"$with_cross_host" != x"no"; then
4689 # Install a library built with a cross compiler in tooldir, not libdir.
4690 toolexecdir='$(exec_prefix)/$(target_alias)'
4691 case ${with_toolexeclibdir} in
4693 toolexeclibdir='$(toolexecdir)/lib'
4696 toolexeclibdir=${with_toolexeclibdir}
4698 esac
4699 else
4700 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4701 toolexeclibdir='$(libdir)'
4703 multi_os_directory=`$CC -print-multi-os-directory`
4704 case $multi_os_directory in
4705 .) ;; # Avoid trailing /.
4706 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4707 esac
4709 esac
4711 # Set config_dir based on the target. config_dir specifies where to get
4712 # target-specific files. The generic implementation is incomplete, but
4713 # contains information on what's needed
4714 case "${target}" in
4716 x86_64-*-*)
4717 config_dir="x86"
4720 i?86-*-*)
4721 config_dir="x86"
4725 config_dir="generic"
4728 esac
4731 # We have linker scripts for appropriate operating systems
4732 linux_linker_script=no
4733 case "${host}" in
4734 *-*-linux*)
4735 linux_linker_script=yes
4737 esac
4738 if test "$linux_linker_script" = "yes"; then
4739 LINUX_LINKER_SCRIPT_TRUE=
4740 LINUX_LINKER_SCRIPT_FALSE='#'
4741 else
4742 LINUX_LINKER_SCRIPT_TRUE='#'
4743 LINUX_LINKER_SCRIPT_FALSE=
4747 mac_linker_script=no
4748 case "${host}" in
4749 *-*-apple*)
4750 mac_linker_script=yes
4752 esac
4753 if test "$mac_linker_script" = "yes"; then
4754 MAC_LINKER_SCRIPT_TRUE=
4755 MAC_LINKER_SCRIPT_FALSE='#'
4756 else
4757 MAC_LINKER_SCRIPT_TRUE='#'
4758 MAC_LINKER_SCRIPT_FALSE=
4762 enable_dlopen=yes
4766 case `pwd` in
4767 *\ * | *\ *)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4769 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4770 esac
4774 macro_version='2.2.7a'
4775 macro_revision='1.3134'
4789 ltmain="$ac_aux_dir/ltmain.sh"
4791 # Backslashify metacharacters that are still active within
4792 # double-quoted strings.
4793 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4795 # Same as above, but do not quote variable references.
4796 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4798 # Sed substitution to delay expansion of an escaped shell variable in a
4799 # double_quote_subst'ed string.
4800 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4802 # Sed substitution to delay expansion of an escaped single quote.
4803 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4805 # Sed substitution to avoid accidental globbing in evaled expressions
4806 no_glob_subst='s/\*/\\\*/g'
4808 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4813 $as_echo_n "checking how to print strings... " >&6; }
4814 # Test print first, because it will be a builtin if present.
4815 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4816 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4817 ECHO='print -r --'
4818 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4819 ECHO='printf %s\n'
4820 else
4821 # Use this function as a fallback that always works.
4822 func_fallback_echo ()
4824 eval 'cat <<_LTECHO_EOF
4826 _LTECHO_EOF'
4828 ECHO='func_fallback_echo'
4831 # func_echo_all arg...
4832 # Invoke $ECHO with all args, space-separated.
4833 func_echo_all ()
4835 $ECHO ""
4838 case "$ECHO" in
4839 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4840 $as_echo "printf" >&6; } ;;
4841 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4842 $as_echo "print -r" >&6; } ;;
4843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4844 $as_echo "cat" >&6; } ;;
4845 esac
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4861 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4862 if ${ac_cv_path_SED+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4866 for ac_i in 1 2 3 4 5 6 7; do
4867 ac_script="$ac_script$as_nl$ac_script"
4868 done
4869 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4870 { ac_script=; unset ac_script;}
4871 if test -z "$SED"; then
4872 ac_path_SED_found=false
4873 # Loop through the user's path and test for each of PROGNAME-LIST
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_prog in sed gsed; do
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4882 as_fn_executable_p "$ac_path_SED" || continue
4883 # Check for GNU ac_path_SED and select it if it is found.
4884 # Check for GNU $ac_path_SED
4885 case `"$ac_path_SED" --version 2>&1` in
4886 *GNU*)
4887 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4889 ac_count=0
4890 $as_echo_n 0123456789 >"conftest.in"
4891 while :
4893 cat "conftest.in" "conftest.in" >"conftest.tmp"
4894 mv "conftest.tmp" "conftest.in"
4895 cp "conftest.in" "conftest.nl"
4896 $as_echo '' >> "conftest.nl"
4897 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899 as_fn_arith $ac_count + 1 && ac_count=$as_val
4900 if test $ac_count -gt ${ac_path_SED_max-0}; then
4901 # Best one so far, save it but keep looking for a better one
4902 ac_cv_path_SED="$ac_path_SED"
4903 ac_path_SED_max=$ac_count
4905 # 10*(2^10) chars as input seems more than enough
4906 test $ac_count -gt 10 && break
4907 done
4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909 esac
4911 $ac_path_SED_found && break 3
4912 done
4913 done
4914 done
4915 IFS=$as_save_IFS
4916 if test -z "$ac_cv_path_SED"; then
4917 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4919 else
4920 ac_cv_path_SED=$SED
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4925 $as_echo "$ac_cv_path_SED" >&6; }
4926 SED="$ac_cv_path_SED"
4927 rm -f conftest.sed
4929 test -z "$SED" && SED=sed
4930 Xsed="$SED -e 1s/^X//"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4943 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4944 if ${ac_cv_path_GREP+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -z "$GREP"; then
4948 ac_path_GREP_found=false
4949 # Loop through the user's path and test for each of PROGNAME-LIST
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_prog in grep ggrep; do
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4958 as_fn_executable_p "$ac_path_GREP" || continue
4959 # Check for GNU ac_path_GREP and select it if it is found.
4960 # Check for GNU $ac_path_GREP
4961 case `"$ac_path_GREP" --version 2>&1` in
4962 *GNU*)
4963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4965 ac_count=0
4966 $as_echo_n 0123456789 >"conftest.in"
4967 while :
4969 cat "conftest.in" "conftest.in" >"conftest.tmp"
4970 mv "conftest.tmp" "conftest.in"
4971 cp "conftest.in" "conftest.nl"
4972 $as_echo 'GREP' >> "conftest.nl"
4973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4975 as_fn_arith $ac_count + 1 && ac_count=$as_val
4976 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4977 # Best one so far, save it but keep looking for a better one
4978 ac_cv_path_GREP="$ac_path_GREP"
4979 ac_path_GREP_max=$ac_count
4981 # 10*(2^10) chars as input seems more than enough
4982 test $ac_count -gt 10 && break
4983 done
4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 esac
4987 $ac_path_GREP_found && break 3
4988 done
4989 done
4990 done
4991 IFS=$as_save_IFS
4992 if test -z "$ac_cv_path_GREP"; then
4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4995 else
4996 ac_cv_path_GREP=$GREP
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5001 $as_echo "$ac_cv_path_GREP" >&6; }
5002 GREP="$ac_cv_path_GREP"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5006 $as_echo_n "checking for egrep... " >&6; }
5007 if ${ac_cv_path_EGREP+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5011 then ac_cv_path_EGREP="$GREP -E"
5012 else
5013 if test -z "$EGREP"; then
5014 ac_path_EGREP_found=false
5015 # Loop through the user's path and test for each of PROGNAME-LIST
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_prog in egrep; do
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5024 as_fn_executable_p "$ac_path_EGREP" || continue
5025 # Check for GNU ac_path_EGREP and select it if it is found.
5026 # Check for GNU $ac_path_EGREP
5027 case `"$ac_path_EGREP" --version 2>&1` in
5028 *GNU*)
5029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5031 ac_count=0
5032 $as_echo_n 0123456789 >"conftest.in"
5033 while :
5035 cat "conftest.in" "conftest.in" >"conftest.tmp"
5036 mv "conftest.tmp" "conftest.in"
5037 cp "conftest.in" "conftest.nl"
5038 $as_echo 'EGREP' >> "conftest.nl"
5039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5041 as_fn_arith $ac_count + 1 && ac_count=$as_val
5042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5043 # Best one so far, save it but keep looking for a better one
5044 ac_cv_path_EGREP="$ac_path_EGREP"
5045 ac_path_EGREP_max=$ac_count
5047 # 10*(2^10) chars as input seems more than enough
5048 test $ac_count -gt 10 && break
5049 done
5050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5051 esac
5053 $ac_path_EGREP_found && break 3
5054 done
5055 done
5056 done
5057 IFS=$as_save_IFS
5058 if test -z "$ac_cv_path_EGREP"; then
5059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061 else
5062 ac_cv_path_EGREP=$EGREP
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5068 $as_echo "$ac_cv_path_EGREP" >&6; }
5069 EGREP="$ac_cv_path_EGREP"
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5073 $as_echo_n "checking for fgrep... " >&6; }
5074 if ${ac_cv_path_FGREP+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5078 then ac_cv_path_FGREP="$GREP -F"
5079 else
5080 if test -z "$FGREP"; then
5081 ac_path_FGREP_found=false
5082 # Loop through the user's path and test for each of PROGNAME-LIST
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_prog in fgrep; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5091 as_fn_executable_p "$ac_path_FGREP" || continue
5092 # Check for GNU ac_path_FGREP and select it if it is found.
5093 # Check for GNU $ac_path_FGREP
5094 case `"$ac_path_FGREP" --version 2>&1` in
5095 *GNU*)
5096 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5098 ac_count=0
5099 $as_echo_n 0123456789 >"conftest.in"
5100 while :
5102 cat "conftest.in" "conftest.in" >"conftest.tmp"
5103 mv "conftest.tmp" "conftest.in"
5104 cp "conftest.in" "conftest.nl"
5105 $as_echo 'FGREP' >> "conftest.nl"
5106 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108 as_fn_arith $ac_count + 1 && ac_count=$as_val
5109 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5110 # Best one so far, save it but keep looking for a better one
5111 ac_cv_path_FGREP="$ac_path_FGREP"
5112 ac_path_FGREP_max=$ac_count
5114 # 10*(2^10) chars as input seems more than enough
5115 test $ac_count -gt 10 && break
5116 done
5117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118 esac
5120 $ac_path_FGREP_found && break 3
5121 done
5122 done
5123 done
5124 IFS=$as_save_IFS
5125 if test -z "$ac_cv_path_FGREP"; then
5126 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5128 else
5129 ac_cv_path_FGREP=$FGREP
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5135 $as_echo "$ac_cv_path_FGREP" >&6; }
5136 FGREP="$ac_cv_path_FGREP"
5139 test -z "$GREP" && GREP=grep
5159 # Check whether --with-gnu-ld was given.
5160 if test "${with_gnu_ld+set}" = set; then :
5161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5162 else
5163 with_gnu_ld=no
5166 ac_prog=ld
5167 if test "$GCC" = yes; then
5168 # Check if gcc -print-prog-name=ld gives a path.
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5170 $as_echo_n "checking for ld used by $CC... " >&6; }
5171 case $host in
5172 *-*-mingw*)
5173 # gcc leaves a trailing carriage return which upsets mingw
5174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5177 esac
5178 case $ac_prog in
5179 # Accept absolute paths.
5180 [\\/]* | ?:[\\/]*)
5181 re_direlt='/[^/][^/]*/\.\./'
5182 # Canonicalize the pathname of ld
5183 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5184 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5185 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5186 done
5187 test -z "$LD" && LD="$ac_prog"
5190 # If it fails, then pretend we aren't using GCC.
5191 ac_prog=ld
5194 # If it is relative, then search for the first ld in PATH.
5195 with_gnu_ld=unknown
5197 esac
5198 elif test "$with_gnu_ld" = yes; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5200 $as_echo_n "checking for GNU ld... " >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5203 $as_echo_n "checking for non-GNU ld... " >&6; }
5205 if ${lt_cv_path_LD+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -z "$LD"; then
5209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5210 for ac_dir in $PATH; do
5211 IFS="$lt_save_ifs"
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5214 lt_cv_path_LD="$ac_dir/$ac_prog"
5215 # Check to see if the program is GNU ld. I'd rather use --version,
5216 # but apparently some variants of GNU ld only accept -v.
5217 # Break only if it was the GNU/non-GNU ld that we prefer.
5218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220 test "$with_gnu_ld" != no && break
5223 test "$with_gnu_ld" != yes && break
5225 esac
5227 done
5228 IFS="$lt_save_ifs"
5229 else
5230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5234 LD="$lt_cv_path_LD"
5235 if test -n "$LD"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5237 $as_echo "$LD" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5242 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5245 if ${lt_cv_prog_gnu_ld+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5249 case `$LD -v 2>&1 </dev/null` in
5250 *GNU* | *'with BFD'*)
5251 lt_cv_prog_gnu_ld=yes
5254 lt_cv_prog_gnu_ld=no
5256 esac
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5259 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5260 with_gnu_ld=$lt_cv_prog_gnu_ld
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5271 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5272 if ${lt_cv_path_NM+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$NM"; then
5276 # Let the user override the test.
5277 lt_cv_path_NM="$NM"
5278 else
5279 lt_nm_to_check="${ac_tool_prefix}nm"
5280 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5281 lt_nm_to_check="$lt_nm_to_check nm"
5283 for lt_tmp_nm in $lt_nm_to_check; do
5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5285 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5286 IFS="$lt_save_ifs"
5287 test -z "$ac_dir" && ac_dir=.
5288 tmp_nm="$ac_dir/$lt_tmp_nm"
5289 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5290 # Check to see if the nm accepts a BSD-compat flag.
5291 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5292 # nm: unknown option "B" ignored
5293 # Tru64's nm complains that /dev/null is an invalid object file
5294 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5295 */dev/null* | *'Invalid file or object type'*)
5296 lt_cv_path_NM="$tmp_nm -B"
5297 break
5300 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5301 */dev/null*)
5302 lt_cv_path_NM="$tmp_nm -p"
5303 break
5306 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5307 continue # so that we can try to find one that supports BSD flags
5309 esac
5311 esac
5313 done
5314 IFS="$lt_save_ifs"
5315 done
5316 : ${lt_cv_path_NM=no}
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5320 $as_echo "$lt_cv_path_NM" >&6; }
5321 if test "$lt_cv_path_NM" != "no"; then
5322 NM="$lt_cv_path_NM"
5323 else
5324 # Didn't find any BSD compatible name lister, look for dumpbin.
5325 if test -n "$DUMPBIN"; then :
5326 # Let the user override the test.
5327 else
5328 if test -n "$ac_tool_prefix"; then
5329 for ac_prog in dumpbin "link -dump"
5331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_DUMPBIN+:} false; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$DUMPBIN"; then
5339 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5358 DUMPBIN=$ac_cv_prog_DUMPBIN
5359 if test -n "$DUMPBIN"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5361 $as_echo "$DUMPBIN" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 test -n "$DUMPBIN" && break
5369 done
5371 if test -z "$DUMPBIN"; then
5372 ac_ct_DUMPBIN=$DUMPBIN
5373 for ac_prog in dumpbin "link -dump"
5375 # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy $ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 if test -n "$ac_ct_DUMPBIN"; then
5383 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5396 done
5397 done
5398 IFS=$as_save_IFS
5402 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5403 if test -n "$ac_ct_DUMPBIN"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5405 $as_echo "$ac_ct_DUMPBIN" >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 test -n "$ac_ct_DUMPBIN" && break
5413 done
5415 if test "x$ac_ct_DUMPBIN" = x; then
5416 DUMPBIN=":"
5417 else
5418 case $cross_compiling:$ac_tool_warned in
5419 yes:)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5423 esac
5424 DUMPBIN=$ac_ct_DUMPBIN
5428 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5429 *COFF*)
5430 DUMPBIN="$DUMPBIN -symbols"
5433 DUMPBIN=:
5435 esac
5438 if test "$DUMPBIN" != ":"; then
5439 NM="$DUMPBIN"
5442 test -z "$NM" && NM=nm
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5450 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5451 if ${lt_cv_nm_interface+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 lt_cv_nm_interface="BSD nm"
5455 echo "int some_variable = 0;" > conftest.$ac_ext
5456 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5457 (eval "$ac_compile" 2>conftest.err)
5458 cat conftest.err >&5
5459 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5460 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5461 cat conftest.err >&5
5462 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5463 cat conftest.out >&5
5464 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5465 lt_cv_nm_interface="MS dumpbin"
5467 rm -f conftest*
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5470 $as_echo "$lt_cv_nm_interface" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5473 $as_echo_n "checking whether ln -s works... " >&6; }
5474 LN_S=$as_ln_s
5475 if test "$LN_S" = "ln -s"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5477 $as_echo "yes" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5480 $as_echo "no, using $LN_S" >&6; }
5483 # find the maximum length of command line arguments
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5485 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5486 if ${lt_cv_sys_max_cmd_len+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5490 teststring="ABCD"
5492 case $build_os in
5493 msdosdjgpp*)
5494 # On DJGPP, this test can blow up pretty badly due to problems in libc
5495 # (any single argument exceeding 2000 bytes causes a buffer overrun
5496 # during glob expansion). Even if it were fixed, the result of this
5497 # check would be larger than it should be.
5498 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5501 gnu*)
5502 # Under GNU Hurd, this test is not required because there is
5503 # no limit to the length of command line arguments.
5504 # Libtool will interpret -1 as no limit whatsoever
5505 lt_cv_sys_max_cmd_len=-1;
5508 cygwin* | mingw* | cegcc*)
5509 # On Win9x/ME, this test blows up -- it succeeds, but takes
5510 # about 5 minutes as the teststring grows exponentially.
5511 # Worse, since 9x/ME are not pre-emptively multitasking,
5512 # you end up with a "frozen" computer, even though with patience
5513 # the test eventually succeeds (with a max line length of 256k).
5514 # Instead, let's just punt: use the minimum linelength reported by
5515 # all of the supported platforms: 8192 (on NT/2K/XP).
5516 lt_cv_sys_max_cmd_len=8192;
5519 mint*)
5520 # On MiNT this can take a long time and run out of memory.
5521 lt_cv_sys_max_cmd_len=8192;
5524 amigaos*)
5525 # On AmigaOS with pdksh, this test takes hours, literally.
5526 # So we just punt and use a minimum line length of 8192.
5527 lt_cv_sys_max_cmd_len=8192;
5530 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5531 # This has been around since 386BSD, at least. Likely further.
5532 if test -x /sbin/sysctl; then
5533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5534 elif test -x /usr/sbin/sysctl; then
5535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5536 else
5537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5539 # And add a safety zone
5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5544 interix*)
5545 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5546 lt_cv_sys_max_cmd_len=196608
5549 osf*)
5550 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5551 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5552 # nice to cause kernel panics so lets avoid the loop below.
5553 # First set a reasonable default.
5554 lt_cv_sys_max_cmd_len=16384
5556 if test -x /sbin/sysconfig; then
5557 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5558 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5559 esac
5562 sco3.2v5*)
5563 lt_cv_sys_max_cmd_len=102400
5565 sysv5* | sco5v6* | sysv4.2uw2*)
5566 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5567 if test -n "$kargmax"; then
5568 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5569 else
5570 lt_cv_sys_max_cmd_len=32768
5574 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5575 if test -n "$lt_cv_sys_max_cmd_len"; then
5576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5578 else
5579 # Make teststring a little bigger before we do anything with it.
5580 # a 1K string should be a reasonable start.
5581 for i in 1 2 3 4 5 6 7 8 ; do
5582 teststring=$teststring$teststring
5583 done
5584 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5585 # If test is not a shell built-in, we'll probably end up computing a
5586 # maximum length that is only half of the actual maximum length, but
5587 # we can't tell.
5588 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5589 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5590 test $i != 17 # 1/2 MB should be enough
5592 i=`expr $i + 1`
5593 teststring=$teststring$teststring
5594 done
5595 # Only check the string length outside the loop.
5596 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5597 teststring=
5598 # Add a significant safety factor because C++ compilers can tack on
5599 # massive amounts of additional arguments before passing them to the
5600 # linker. It appears as though 1/2 is a usable value.
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5604 esac
5608 if test -n $lt_cv_sys_max_cmd_len ; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5610 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5613 $as_echo "none" >&6; }
5615 max_cmd_len=$lt_cv_sys_max_cmd_len
5622 : ${CP="cp -f"}
5623 : ${MV="mv -f"}
5624 : ${RM="rm -f"}
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5627 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5628 # Try some XSI features
5629 xsi_shell=no
5630 ( _lt_dummy="a/b/c"
5631 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5632 = c,a/b,, \
5633 && eval 'test $(( 1 + 1 )) -eq 2 \
5634 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5635 && xsi_shell=yes
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5637 $as_echo "$xsi_shell" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5641 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5642 lt_shell_append=no
5643 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5644 >/dev/null 2>&1 \
5645 && lt_shell_append=yes
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5647 $as_echo "$lt_shell_append" >&6; }
5650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5651 lt_unset=unset
5652 else
5653 lt_unset=false
5660 # test EBCDIC or ASCII
5661 case `echo X|tr X '\101'` in
5662 A) # ASCII based system
5663 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5664 lt_SP2NL='tr \040 \012'
5665 lt_NL2SP='tr \015\012 \040\040'
5667 *) # EBCDIC based system
5668 lt_SP2NL='tr \100 \n'
5669 lt_NL2SP='tr \r\n \100\100'
5671 esac
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5682 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5683 if ${lt_cv_ld_reload_flag+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 lt_cv_ld_reload_flag='-r'
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5689 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5690 reload_flag=$lt_cv_ld_reload_flag
5691 case $reload_flag in
5692 "" | " "*) ;;
5693 *) reload_flag=" $reload_flag" ;;
5694 esac
5695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5696 case $host_os in
5697 darwin*)
5698 if test "$GCC" = yes; then
5699 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5700 else
5701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704 esac
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_OBJDUMP+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$OBJDUMP"; then
5723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 OBJDUMP=$ac_cv_prog_OBJDUMP
5743 if test -n "$OBJDUMP"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5745 $as_echo "$OBJDUMP" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5753 if test -z "$ac_cv_prog_OBJDUMP"; then
5754 ac_ct_OBJDUMP=$OBJDUMP
5755 # Extract the first word of "objdump", so it can be a program name with args.
5756 set dummy objdump; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_OBJDUMP"; then
5763 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5778 IFS=$as_save_IFS
5782 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5783 if test -n "$ac_ct_OBJDUMP"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5785 $as_echo "$ac_ct_OBJDUMP" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5791 if test "x$ac_ct_OBJDUMP" = x; then
5792 OBJDUMP="false"
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800 OBJDUMP=$ac_ct_OBJDUMP
5802 else
5803 OBJDUMP="$ac_cv_prog_OBJDUMP"
5806 test -z "$OBJDUMP" && OBJDUMP=objdump
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5817 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5818 if ${lt_cv_deplibs_check_method+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 lt_cv_file_magic_cmd='$MAGIC_CMD'
5822 lt_cv_file_magic_test_file=
5823 lt_cv_deplibs_check_method='unknown'
5824 # Need to set the preceding variable on all platforms that support
5825 # interlibrary dependencies.
5826 # 'none' -- dependencies not supported.
5827 # `unknown' -- same as none, but documents that we really don't know.
5828 # 'pass_all' -- all dependencies passed with no checks.
5829 # 'test_compile' -- check by making test program.
5830 # 'file_magic [[regex]]' -- check by looking for files in library path
5831 # which responds to the $file_magic_cmd with a given extended regex.
5832 # If you have `file' or equivalent on your system and you're not sure
5833 # whether `pass_all' will *always* work, you probably want this one.
5835 case $host_os in
5836 aix[4-9]*)
5837 lt_cv_deplibs_check_method=pass_all
5840 beos*)
5841 lt_cv_deplibs_check_method=pass_all
5844 bsdi[45]*)
5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5846 lt_cv_file_magic_cmd='/usr/bin/file -L'
5847 lt_cv_file_magic_test_file=/shlib/libc.so
5850 cygwin*)
5851 # func_win32_libid is a shell function defined in ltmain.sh
5852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5853 lt_cv_file_magic_cmd='func_win32_libid'
5856 mingw* | pw32*)
5857 # Base MSYS/MinGW do not provide the 'file' command needed by
5858 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5859 # unless we find 'file', for example because we are cross-compiling.
5860 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5861 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5863 lt_cv_file_magic_cmd='func_win32_libid'
5864 else
5865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5866 lt_cv_file_magic_cmd='$OBJDUMP -f'
5870 cegcc*)
5871 # use the weaker test based on 'objdump'. See mingw*.
5872 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5873 lt_cv_file_magic_cmd='$OBJDUMP -f'
5876 darwin* | rhapsody*)
5877 lt_cv_deplibs_check_method=pass_all
5880 freebsd* | dragonfly*)
5881 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5882 case $host_cpu in
5883 i*86 )
5884 # Not sure whether the presence of OpenBSD here was a mistake.
5885 # Let's accept both of them until this is cleared up.
5886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5887 lt_cv_file_magic_cmd=/usr/bin/file
5888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5890 esac
5891 else
5892 lt_cv_deplibs_check_method=pass_all
5896 gnu*)
5897 lt_cv_deplibs_check_method=pass_all
5900 haiku*)
5901 lt_cv_deplibs_check_method=pass_all
5904 hpux10.20* | hpux11*)
5905 lt_cv_file_magic_cmd=/usr/bin/file
5906 case $host_cpu in
5907 ia64*)
5908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5909 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5911 hppa*64*)
5912 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]'
5913 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5916 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5917 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5919 esac
5922 interix[3-9]*)
5923 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5927 irix5* | irix6* | nonstopux*)
5928 case $LD in
5929 *-32|*"-32 ") libmagic=32-bit;;
5930 *-n32|*"-n32 ") libmagic=N32;;
5931 *-64|*"-64 ") libmagic=64-bit;;
5932 *) libmagic=never-match;;
5933 esac
5934 lt_cv_deplibs_check_method=pass_all
5937 # This must be Linux ELF.
5938 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5939 lt_cv_deplibs_check_method=pass_all
5942 netbsd*)
5943 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5945 else
5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5950 newos6*)
5951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5952 lt_cv_file_magic_cmd=/usr/bin/file
5953 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5956 *nto* | *qnx*)
5957 lt_cv_deplibs_check_method=pass_all
5960 openbsd*)
5961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5963 else
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5968 osf3* | osf4* | osf5*)
5969 lt_cv_deplibs_check_method=pass_all
5972 rdos*)
5973 lt_cv_deplibs_check_method=pass_all
5976 solaris*)
5977 lt_cv_deplibs_check_method=pass_all
5980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5981 lt_cv_deplibs_check_method=pass_all
5984 sysv4 | sysv4.3*)
5985 case $host_vendor in
5986 motorola)
5987 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]'
5988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5990 ncr)
5991 lt_cv_deplibs_check_method=pass_all
5993 sequent)
5994 lt_cv_file_magic_cmd='/bin/file'
5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5997 sni)
5998 lt_cv_file_magic_cmd='/bin/file'
5999 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6000 lt_cv_file_magic_test_file=/lib/libc.so
6002 siemens)
6003 lt_cv_deplibs_check_method=pass_all
6006 lt_cv_deplibs_check_method=pass_all
6008 esac
6011 tpf*)
6012 lt_cv_deplibs_check_method=pass_all
6014 esac
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6018 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6019 file_magic_cmd=$lt_cv_file_magic_cmd
6020 deplibs_check_method=$lt_cv_deplibs_check_method
6021 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}ar; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_AR+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$AR"; then
6043 ac_cv_prog_AR="$AR" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_AR="${ac_tool_prefix}ar"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 AR=$ac_cv_prog_AR
6063 if test -n "$AR"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6065 $as_echo "$AR" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_AR"; then
6074 ac_ct_AR=$AR
6075 # Extract the first word of "ar", so it can be a program name with args.
6076 set dummy ar; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_AR"; then
6083 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_AR="ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6103 if test -n "$ac_ct_AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6105 $as_echo "$ac_ct_AR" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_AR" = x; then
6112 AR="false"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 AR=$ac_ct_AR
6122 else
6123 AR="$ac_cv_prog_AR"
6126 test -z "$AR" && AR=ar
6127 test -z "$AR_FLAGS" && AR_FLAGS=cru
6139 if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6141 set dummy ${ac_tool_prefix}strip; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if ${ac_cv_prog_STRIP+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 if test -n "$STRIP"; then
6148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6161 done
6162 done
6163 IFS=$as_save_IFS
6167 STRIP=$ac_cv_prog_STRIP
6168 if test -n "$STRIP"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6170 $as_echo "$STRIP" >&6; }
6171 else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6178 if test -z "$ac_cv_prog_STRIP"; then
6179 ac_ct_STRIP=$STRIP
6180 # Extract the first word of "strip", so it can be a program name with args.
6181 set dummy strip; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$ac_ct_STRIP"; then
6188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_ac_ct_STRIP="strip"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6201 done
6202 done
6203 IFS=$as_save_IFS
6207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6208 if test -n "$ac_ct_STRIP"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6210 $as_echo "$ac_ct_STRIP" >&6; }
6211 else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6216 if test "x$ac_ct_STRIP" = x; then
6217 STRIP=":"
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223 ac_tool_warned=yes ;;
6224 esac
6225 STRIP=$ac_ct_STRIP
6227 else
6228 STRIP="$ac_cv_prog_STRIP"
6231 test -z "$STRIP" && STRIP=:
6238 if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6240 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if ${ac_cv_prog_RANLIB+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -n "$RANLIB"; then
6247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6260 done
6261 done
6262 IFS=$as_save_IFS
6266 RANLIB=$ac_cv_prog_RANLIB
6267 if test -n "$RANLIB"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6269 $as_echo "$RANLIB" >&6; }
6270 else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6277 if test -z "$ac_cv_prog_RANLIB"; then
6278 ac_ct_RANLIB=$RANLIB
6279 # Extract the first word of "ranlib", so it can be a program name with args.
6280 set dummy ranlib; ac_word=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 if test -n "$ac_ct_RANLIB"; then
6287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_ac_ct_RANLIB="ranlib"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6300 done
6301 done
6302 IFS=$as_save_IFS
6306 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6307 if test -n "$ac_ct_RANLIB"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6309 $as_echo "$ac_ct_RANLIB" >&6; }
6310 else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6315 if test "x$ac_ct_RANLIB" = x; then
6316 RANLIB=":"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319 yes:)
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324 RANLIB=$ac_ct_RANLIB
6326 else
6327 RANLIB="$ac_cv_prog_RANLIB"
6330 test -z "$RANLIB" && RANLIB=:
6337 # Determine commands to create old-style static archives.
6338 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6339 old_postinstall_cmds='chmod 644 $oldlib'
6340 old_postuninstall_cmds=
6342 if test -n "$RANLIB"; then
6343 case $host_os in
6344 openbsd*)
6345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6350 esac
6351 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6354 case $host_os in
6355 darwin*)
6356 lock_old_archive_extraction=yes ;;
6358 lock_old_archive_extraction=no ;;
6359 esac
6399 # If no C compiler was specified, use CC.
6400 LTCC=${LTCC-"$CC"}
6402 # If no C compiler flags were specified, use CFLAGS.
6403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6405 # Allow CC to be a program name with arguments.
6406 compiler=$CC
6409 # Check for command to grab the raw symbol name followed by C symbol from nm.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6411 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6412 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6416 # These are sane defaults that work on at least a few old systems.
6417 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6419 # Character class describing NM global symbol codes.
6420 symcode='[BCDEGRST]'
6422 # Regexp to match symbols that can be accessed directly from C.
6423 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6425 # Define system-specific variables.
6426 case $host_os in
6427 aix*)
6428 symcode='[BCDT]'
6430 cygwin* | mingw* | pw32* | cegcc*)
6431 symcode='[ABCDGISTW]'
6433 hpux*)
6434 if test "$host_cpu" = ia64; then
6435 symcode='[ABCDEGRST]'
6438 irix* | nonstopux*)
6439 symcode='[BCDEGRST]'
6441 osf*)
6442 symcode='[BCDEGQRST]'
6444 solaris*)
6445 symcode='[BDRT]'
6447 sco3.2v5*)
6448 symcode='[DT]'
6450 sysv4.2uw2*)
6451 symcode='[DT]'
6453 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6454 symcode='[ABDT]'
6456 sysv4)
6457 symcode='[DFNSTU]'
6459 esac
6461 # If we're using GNU nm, then use its standard symbol codes.
6462 case `$NM -V 2>&1` in
6463 *GNU* | *'with BFD'*)
6464 symcode='[ABCDGIRSTW]' ;;
6465 esac
6467 # Transform an extracted symbol line into a proper C declaration.
6468 # Some systems (esp. on ia64) link data and code symbols differently,
6469 # so use this general approach.
6470 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6472 # Transform an extracted symbol line into symbol name and symbol address
6473 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6474 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'"
6476 # Handle CRLF in mingw tool chain
6477 opt_cr=
6478 case $build_os in
6479 mingw*)
6480 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6482 esac
6484 # Try without a prefix underscore, then with it.
6485 for ac_symprfx in "" "_"; do
6487 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6488 symxfrm="\\1 $ac_symprfx\\2 \\2"
6490 # Write the raw and C identifiers.
6491 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6492 # Fake it for dumpbin and say T for any non-static function
6493 # and D for any global variable.
6494 # Also find C++ and __fastcall symbols from MSVC++,
6495 # which start with @ or ?.
6496 lt_cv_sys_global_symbol_pipe="$AWK '"\
6497 " {last_section=section; section=\$ 3};"\
6498 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6499 " \$ 0!~/External *\|/{next};"\
6500 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6501 " {if(hide[section]) next};"\
6502 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6503 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6504 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6505 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6506 " ' prfx=^$ac_symprfx"
6507 else
6508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6511 # Check to see that the pipe works correctly.
6512 pipe_works=no
6514 rm -f conftest*
6515 cat > conftest.$ac_ext <<_LT_EOF
6516 #ifdef __cplusplus
6517 extern "C" {
6518 #endif
6519 char nm_test_var;
6520 void nm_test_func(void);
6521 void nm_test_func(void){}
6522 #ifdef __cplusplus
6524 #endif
6525 int main(){nm_test_var='a';nm_test_func();return(0);}
6526 _LT_EOF
6528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529 (eval $ac_compile) 2>&5
6530 ac_status=$?
6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; }; then
6533 # Now try to grab the symbols.
6534 nlist=conftest.nm
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6536 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; } && test -s "$nlist"; then
6540 # Try sorting and uniquifying the output.
6541 if sort "$nlist" | uniq > "$nlist"T; then
6542 mv -f "$nlist"T "$nlist"
6543 else
6544 rm -f "$nlist"T
6547 # Make sure that we snagged all the symbols we need.
6548 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6549 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6550 cat <<_LT_EOF > conftest.$ac_ext
6551 #ifdef __cplusplus
6552 extern "C" {
6553 #endif
6555 _LT_EOF
6556 # Now generate the symbol file.
6557 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6559 cat <<_LT_EOF >> conftest.$ac_ext
6561 /* The mapping between symbol names and symbols. */
6562 const struct {
6563 const char *name;
6564 void *address;
6566 lt__PROGRAM__LTX_preloaded_symbols[] =
6568 { "@PROGRAM@", (void *) 0 },
6569 _LT_EOF
6570 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6571 cat <<\_LT_EOF >> conftest.$ac_ext
6572 {0, (void *) 0}
6575 /* This works around a problem in FreeBSD linker */
6576 #ifdef FREEBSD_WORKAROUND
6577 static const void *lt_preloaded_setup() {
6578 return lt__PROGRAM__LTX_preloaded_symbols;
6580 #endif
6582 #ifdef __cplusplus
6584 #endif
6585 _LT_EOF
6586 # Now try linking the two files.
6587 mv conftest.$ac_objext conftstm.$ac_objext
6588 lt_save_LIBS="$LIBS"
6589 lt_save_CFLAGS="$CFLAGS"
6590 LIBS="conftstm.$ac_objext"
6591 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6593 (eval $ac_link) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6597 pipe_works=yes
6599 LIBS="$lt_save_LIBS"
6600 CFLAGS="$lt_save_CFLAGS"
6601 else
6602 echo "cannot find nm_test_func in $nlist" >&5
6604 else
6605 echo "cannot find nm_test_var in $nlist" >&5
6607 else
6608 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6610 else
6611 echo "$progname: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 rm -rf conftest* conftst*
6616 # Do not use the global_symbol_pipe unless it works.
6617 if test "$pipe_works" = yes; then
6618 break
6619 else
6620 lt_cv_sys_global_symbol_pipe=
6622 done
6626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6627 lt_cv_sys_global_symbol_to_cdecl=
6629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6631 $as_echo "failed" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6634 $as_echo "ok" >&6; }
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then :
6661 enableval=$enable_libtool_lock;
6664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6666 # Some flags need to be propagated to the compiler or linker for good
6667 # libtool support.
6668 case $host in
6669 ia64-*-hpux*)
6670 # Find out which ABI we are using.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.$ac_objext` in
6678 *ELF-32*)
6679 HPUX_IA64_MODE="32"
6681 *ELF-64*)
6682 HPUX_IA64_MODE="64"
6684 esac
6686 rm -rf conftest*
6688 *-*-irix6*)
6689 # Find out which ABI we are using.
6690 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 if test "$lt_cv_prog_gnu_ld" = yes; then
6697 case `/usr/bin/file conftest.$ac_objext` in
6698 *32-bit*)
6699 LD="${LD-ld} -melf32bsmip"
6701 *N32*)
6702 LD="${LD-ld} -melf32bmipn32"
6704 *64-bit*)
6705 LD="${LD-ld} -melf64bmip"
6707 esac
6708 else
6709 case `/usr/bin/file conftest.$ac_objext` in
6710 *32-bit*)
6711 LD="${LD-ld} -32"
6713 *N32*)
6714 LD="${LD-ld} -n32"
6716 *64-bit*)
6717 LD="${LD-ld} -64"
6719 esac
6722 rm -rf conftest*
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6727 # Find out which ABI we are using.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.o` in
6735 *32-bit*)
6736 case $host in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_i386_fbsd"
6740 x86_64-*linux*)
6741 case `/usr/bin/file conftest.o` in
6742 *x86-64*)
6743 LD="${LD-ld} -m elf32_x86_64"
6746 LD="${LD-ld} -m elf_i386"
6748 esac
6750 powerpc64le-*linux*)
6751 LD="${LD-ld} -m elf32lppclinux"
6753 powerpc64-*linux*)
6754 LD="${LD-ld} -m elf32ppclinux"
6756 s390x-*linux*)
6757 LD="${LD-ld} -m elf_s390"
6759 sparc64-*linux*)
6760 LD="${LD-ld} -m elf32_sparc"
6762 esac
6764 *64-bit*)
6765 case $host in
6766 x86_64-*kfreebsd*-gnu)
6767 LD="${LD-ld} -m elf_x86_64_fbsd"
6769 x86_64-*linux*)
6770 LD="${LD-ld} -m elf_x86_64"
6772 powerpcle-*linux*)
6773 LD="${LD-ld} -m elf64lppc"
6775 powerpc-*linux*)
6776 LD="${LD-ld} -m elf64ppc"
6778 s390*-*linux*|s390*-*tpf*)
6779 LD="${LD-ld} -m elf64_s390"
6781 sparc*-*linux*)
6782 LD="${LD-ld} -m elf64_sparc"
6784 esac
6786 esac
6788 rm -rf conftest*
6791 *-*-sco3.2v5*)
6792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6793 SAVE_CFLAGS="$CFLAGS"
6794 CFLAGS="$CFLAGS -belf"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6797 if ${lt_cv_cc_needs_belf+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 ac_ext=c
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6810 main ()
6814 return 0;
6816 _ACEOF
6817 if ac_fn_c_try_link "$LINENO"; then :
6818 lt_cv_cc_needs_belf=yes
6819 else
6820 lt_cv_cc_needs_belf=no
6822 rm -f core conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6824 ac_ext=c
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6835 CFLAGS="$SAVE_CFLAGS"
6838 sparc*-*solaris*)
6839 # Find out which ABI we are using.
6840 echo 'int i;' > conftest.$ac_ext
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842 (eval $ac_compile) 2>&5
6843 ac_status=$?
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; }; then
6846 case `/usr/bin/file conftest.o` in
6847 *64-bit*)
6848 case $lt_cv_prog_gnu_ld in
6849 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6851 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6852 LD="${LD-ld} -64"
6855 esac
6857 esac
6859 rm -rf conftest*
6861 esac
6863 need_locks="$enable_libtool_lock"
6866 case $host_os in
6867 rhapsody* | darwin*)
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$DSYMUTIL"; then
6877 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6896 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6897 if test -n "$DSYMUTIL"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6899 $as_echo "$DSYMUTIL" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6907 if test -z "$ac_cv_prog_DSYMUTIL"; then
6908 ac_ct_DSYMUTIL=$DSYMUTIL
6909 # Extract the first word of "dsymutil", so it can be a program name with args.
6910 set dummy dsymutil; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$ac_ct_DSYMUTIL"; then
6917 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6930 done
6931 done
6932 IFS=$as_save_IFS
6936 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6937 if test -n "$ac_ct_DSYMUTIL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6939 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$ac_ct_DSYMUTIL" = x; then
6946 DSYMUTIL=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 DSYMUTIL=$ac_ct_DSYMUTIL
6956 else
6957 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_NMEDIT+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$NMEDIT"; then
6969 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 NMEDIT=$ac_cv_prog_NMEDIT
6989 if test -n "$NMEDIT"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6991 $as_echo "$NMEDIT" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6999 if test -z "$ac_cv_prog_NMEDIT"; then
7000 ac_ct_NMEDIT=$NMEDIT
7001 # Extract the first word of "nmedit", so it can be a program name with args.
7002 set dummy nmedit; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$ac_ct_NMEDIT"; then
7009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7022 done
7023 done
7024 IFS=$as_save_IFS
7028 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7029 if test -n "$ac_ct_NMEDIT"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7031 $as_echo "$ac_ct_NMEDIT" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7037 if test "x$ac_ct_NMEDIT" = x; then
7038 NMEDIT=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046 NMEDIT=$ac_ct_NMEDIT
7048 else
7049 NMEDIT="$ac_cv_prog_NMEDIT"
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_prog_LIPO+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$LIPO"; then
7061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 LIPO=$ac_cv_prog_LIPO
7081 if test -n "$LIPO"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7083 $as_echo "$LIPO" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7091 if test -z "$ac_cv_prog_LIPO"; then
7092 ac_ct_LIPO=$LIPO
7093 # Extract the first word of "lipo", so it can be a program name with args.
7094 set dummy lipo; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$ac_ct_LIPO"; then
7101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_ac_ct_LIPO="lipo"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7114 done
7115 done
7116 IFS=$as_save_IFS
7120 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7121 if test -n "$ac_ct_LIPO"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7123 $as_echo "$ac_ct_LIPO" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7129 if test "x$ac_ct_LIPO" = x; then
7130 LIPO=":"
7131 else
7132 case $cross_compiling:$ac_tool_warned in
7133 yes:)
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 ac_tool_warned=yes ;;
7137 esac
7138 LIPO=$ac_ct_LIPO
7140 else
7141 LIPO="$ac_cv_prog_LIPO"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}otool; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_OTOOL+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 if test -n "$OTOOL"; then
7153 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7168 IFS=$as_save_IFS
7172 OTOOL=$ac_cv_prog_OTOOL
7173 if test -n "$OTOOL"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7175 $as_echo "$OTOOL" >&6; }
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7183 if test -z "$ac_cv_prog_OTOOL"; then
7184 ac_ct_OTOOL=$OTOOL
7185 # Extract the first word of "otool", so it can be a program name with args.
7186 set dummy otool; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if test -n "$ac_ct_OTOOL"; then
7193 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_ac_ct_OTOOL="otool"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7206 done
7207 done
7208 IFS=$as_save_IFS
7212 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7213 if test -n "$ac_ct_OTOOL"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7215 $as_echo "$ac_ct_OTOOL" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7221 if test "x$ac_ct_OTOOL" = x; then
7222 OTOOL=":"
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225 yes:)
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228 ac_tool_warned=yes ;;
7229 esac
7230 OTOOL=$ac_ct_OTOOL
7232 else
7233 OTOOL="$ac_cv_prog_OTOOL"
7236 if test -n "$ac_tool_prefix"; then
7237 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7238 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_OTOOL64+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test -n "$OTOOL64"; then
7245 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7258 done
7259 done
7260 IFS=$as_save_IFS
7264 OTOOL64=$ac_cv_prog_OTOOL64
7265 if test -n "$OTOOL64"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7267 $as_echo "$OTOOL64" >&6; }
7268 else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7275 if test -z "$ac_cv_prog_OTOOL64"; then
7276 ac_ct_OTOOL64=$OTOOL64
7277 # Extract the first word of "otool64", so it can be a program name with args.
7278 set dummy otool64; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 if test -n "$ac_ct_OTOOL64"; then
7285 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_ac_ct_OTOOL64="otool64"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7298 done
7299 done
7300 IFS=$as_save_IFS
7304 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7305 if test -n "$ac_ct_OTOOL64"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7307 $as_echo "$ac_ct_OTOOL64" >&6; }
7308 else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7313 if test "x$ac_ct_OTOOL64" = x; then
7314 OTOOL64=":"
7315 else
7316 case $cross_compiling:$ac_tool_warned in
7317 yes:)
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320 ac_tool_warned=yes ;;
7321 esac
7322 OTOOL64=$ac_ct_OTOOL64
7324 else
7325 OTOOL64="$ac_cv_prog_OTOOL64"
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7355 $as_echo_n "checking for -single_module linker flag... " >&6; }
7356 if ${lt_cv_apple_cc_single_mod+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 lt_cv_apple_cc_single_mod=no
7360 if test -z "${LT_MULTI_MODULE}"; then
7361 # By default we will add the -single_module flag. You can override
7362 # by either setting the environment variable LT_MULTI_MODULE
7363 # non-empty at configure time, or by adding -multi_module to the
7364 # link flags.
7365 rm -rf libconftest.dylib*
7366 echo "int foo(void){return 1;}" > conftest.c
7367 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7368 -dynamiclib -Wl,-single_module conftest.c" >&5
7369 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7370 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7371 _lt_result=$?
7372 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7373 lt_cv_apple_cc_single_mod=yes
7374 else
7375 cat conftest.err >&5
7377 rm -rf libconftest.dylib*
7378 rm -f conftest.*
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7382 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7385 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 lt_cv_ld_exported_symbols_list=no
7389 save_LDFLAGS=$LDFLAGS
7390 echo "_main" > conftest.sym
7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7396 main ()
7400 return 0;
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 lt_cv_ld_exported_symbols_list=yes
7405 else
7406 lt_cv_ld_exported_symbols_list=no
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 LDFLAGS="$save_LDFLAGS"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7414 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7416 $as_echo_n "checking for -force_load linker flag... " >&6; }
7417 if ${lt_cv_ld_force_load+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 lt_cv_ld_force_load=no
7421 cat > conftest.c << _LT_EOF
7422 int forced_loaded() { return 2;}
7423 _LT_EOF
7424 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7425 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7426 echo "$AR cru libconftest.a conftest.o" >&5
7427 $AR cru libconftest.a conftest.o 2>&5
7428 cat > conftest.c << _LT_EOF
7429 int main() { return 0;}
7430 _LT_EOF
7431 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7432 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7433 _lt_result=$?
7434 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7435 lt_cv_ld_force_load=yes
7436 else
7437 cat conftest.err >&5
7439 rm -f conftest.err libconftest.a conftest conftest.c
7440 rm -rf conftest.dSYM
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7444 $as_echo "$lt_cv_ld_force_load" >&6; }
7445 case $host_os in
7446 rhapsody* | darwin1.[012])
7447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7448 darwin1.*)
7449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450 darwin*) # darwin 5.x on
7451 # if running on 10.5 or later, the deployment target defaults
7452 # to the OS version, if on x86, and 10.4, the deployment
7453 # target defaults to 10.4. Don't you love it?
7454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7455 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7457 10.[012][,.]*)
7458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7459 10.*)
7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7461 esac
7463 esac
7464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7465 _lt_dar_single_mod='$single_module'
7467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7469 else
7470 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7472 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7473 _lt_dsymutil='~$DSYMUTIL $lib || :'
7474 else
7475 _lt_dsymutil=
7478 esac
7480 ac_ext=c
7481 ac_cpp='$CPP $CPPFLAGS'
7482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7486 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7487 # On Suns, sometimes $CPP names a directory.
7488 if test -n "$CPP" && test -d "$CPP"; then
7489 CPP=
7491 if test -z "$CPP"; then
7492 if ${ac_cv_prog_CPP+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 # Double quotes because CPP needs to be expanded
7496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7498 ac_preproc_ok=false
7499 for ac_c_preproc_warn_flag in '' yes
7501 # Use a header file that comes with gcc, so configuring glibc
7502 # with a fresh cross-compiler works.
7503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7504 # <limits.h> exists even on freestanding compilers.
7505 # On the NeXT, cc -E runs the code through the compiler's parser,
7506 # not just through cpp. "Syntax error" is here to catch this case.
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #ifdef __STDC__
7510 # include <limits.h>
7511 #else
7512 # include <assert.h>
7513 #endif
7514 Syntax error
7515 _ACEOF
7516 if ac_fn_c_try_cpp "$LINENO"; then :
7518 else
7519 # Broken: fails on valid input.
7520 continue
7522 rm -f conftest.err conftest.i conftest.$ac_ext
7524 # OK, works on sane cases. Now check whether nonexistent headers
7525 # can be detected and how.
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #include <ac_nonexistent.h>
7529 _ACEOF
7530 if ac_fn_c_try_cpp "$LINENO"; then :
7531 # Broken: success on invalid input.
7532 continue
7533 else
7534 # Passes both tests.
7535 ac_preproc_ok=:
7536 break
7538 rm -f conftest.err conftest.i conftest.$ac_ext
7540 done
7541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7542 rm -f conftest.i conftest.err conftest.$ac_ext
7543 if $ac_preproc_ok; then :
7544 break
7547 done
7548 ac_cv_prog_CPP=$CPP
7551 CPP=$ac_cv_prog_CPP
7552 else
7553 ac_cv_prog_CPP=$CPP
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7556 $as_echo "$CPP" >&6; }
7557 ac_preproc_ok=false
7558 for ac_c_preproc_warn_flag in '' yes
7560 # Use a header file that comes with gcc, so configuring glibc
7561 # with a fresh cross-compiler works.
7562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7563 # <limits.h> exists even on freestanding compilers.
7564 # On the NeXT, cc -E runs the code through the compiler's parser,
7565 # not just through cpp. "Syntax error" is here to catch this case.
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #ifdef __STDC__
7569 # include <limits.h>
7570 #else
7571 # include <assert.h>
7572 #endif
7573 Syntax error
7574 _ACEOF
7575 if ac_fn_c_try_cpp "$LINENO"; then :
7577 else
7578 # Broken: fails on valid input.
7579 continue
7581 rm -f conftest.err conftest.i conftest.$ac_ext
7583 # OK, works on sane cases. Now check whether nonexistent headers
7584 # can be detected and how.
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <ac_nonexistent.h>
7588 _ACEOF
7589 if ac_fn_c_try_cpp "$LINENO"; then :
7590 # Broken: success on invalid input.
7591 continue
7592 else
7593 # Passes both tests.
7594 ac_preproc_ok=:
7595 break
7597 rm -f conftest.err conftest.i conftest.$ac_ext
7599 done
7600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7601 rm -f conftest.i conftest.err conftest.$ac_ext
7602 if $ac_preproc_ok; then :
7604 else
7605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7607 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7608 See \`config.log' for more details" "$LINENO" 5; }
7611 ac_ext=c
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7619 $as_echo_n "checking for ANSI C header files... " >&6; }
7620 if ${ac_cv_header_stdc+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 #include <stdlib.h>
7626 #include <stdarg.h>
7627 #include <string.h>
7628 #include <float.h>
7631 main ()
7635 return 0;
7637 _ACEOF
7638 if ac_fn_c_try_compile "$LINENO"; then :
7639 ac_cv_header_stdc=yes
7640 else
7641 ac_cv_header_stdc=no
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 if test $ac_cv_header_stdc = yes; then
7646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <string.h>
7651 _ACEOF
7652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7653 $EGREP "memchr" >/dev/null 2>&1; then :
7655 else
7656 ac_cv_header_stdc=no
7658 rm -f conftest*
7662 if test $ac_cv_header_stdc = yes; then
7663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <stdlib.h>
7668 _ACEOF
7669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7670 $EGREP "free" >/dev/null 2>&1; then :
7672 else
7673 ac_cv_header_stdc=no
7675 rm -f conftest*
7679 if test $ac_cv_header_stdc = yes; then
7680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7681 if test "$cross_compiling" = yes; then :
7683 else
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 #include <ctype.h>
7687 #include <stdlib.h>
7688 #if ((' ' & 0x0FF) == 0x020)
7689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7691 #else
7692 # define ISLOWER(c) \
7693 (('a' <= (c) && (c) <= 'i') \
7694 || ('j' <= (c) && (c) <= 'r') \
7695 || ('s' <= (c) && (c) <= 'z'))
7696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7697 #endif
7699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7701 main ()
7703 int i;
7704 for (i = 0; i < 256; i++)
7705 if (XOR (islower (i), ISLOWER (i))
7706 || toupper (i) != TOUPPER (i))
7707 return 2;
7708 return 0;
7710 _ACEOF
7711 if ac_fn_c_try_run "$LINENO"; then :
7713 else
7714 ac_cv_header_stdc=no
7716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7717 conftest.$ac_objext conftest.beam conftest.$ac_ext
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7723 $as_echo "$ac_cv_header_stdc" >&6; }
7724 if test $ac_cv_header_stdc = yes; then
7726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7732 inttypes.h stdint.h unistd.h
7733 do :
7734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7738 cat >>confdefs.h <<_ACEOF
7739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7740 _ACEOF
7744 done
7747 for ac_header in dlfcn.h
7748 do :
7749 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7751 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_DLFCN_H 1
7754 _ACEOF
7758 done
7765 # Set options
7770 enable_win32_dll=no
7773 # Check whether --enable-shared was given.
7774 if test "${enable_shared+set}" = set; then :
7775 enableval=$enable_shared; p=${PACKAGE-default}
7776 case $enableval in
7777 yes) enable_shared=yes ;;
7778 no) enable_shared=no ;;
7780 enable_shared=no
7781 # Look at the argument we got. We use all the common list separators.
7782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7783 for pkg in $enableval; do
7784 IFS="$lt_save_ifs"
7785 if test "X$pkg" = "X$p"; then
7786 enable_shared=yes
7788 done
7789 IFS="$lt_save_ifs"
7791 esac
7792 else
7793 enable_shared=yes
7804 # Check whether --enable-static was given.
7805 if test "${enable_static+set}" = set; then :
7806 enableval=$enable_static; p=${PACKAGE-default}
7807 case $enableval in
7808 yes) enable_static=yes ;;
7809 no) enable_static=no ;;
7811 enable_static=no
7812 # Look at the argument we got. We use all the common list separators.
7813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7814 for pkg in $enableval; do
7815 IFS="$lt_save_ifs"
7816 if test "X$pkg" = "X$p"; then
7817 enable_static=yes
7819 done
7820 IFS="$lt_save_ifs"
7822 esac
7823 else
7824 enable_static=yes
7836 # Check whether --with-pic was given.
7837 if test "${with_pic+set}" = set; then :
7838 withval=$with_pic; pic_mode="$withval"
7839 else
7840 pic_mode=default
7844 test -z "$pic_mode" && pic_mode=default
7852 # Check whether --enable-fast-install was given.
7853 if test "${enable_fast_install+set}" = set; then :
7854 enableval=$enable_fast_install; p=${PACKAGE-default}
7855 case $enableval in
7856 yes) enable_fast_install=yes ;;
7857 no) enable_fast_install=no ;;
7859 enable_fast_install=no
7860 # Look at the argument we got. We use all the common list separators.
7861 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7862 for pkg in $enableval; do
7863 IFS="$lt_save_ifs"
7864 if test "X$pkg" = "X$p"; then
7865 enable_fast_install=yes
7867 done
7868 IFS="$lt_save_ifs"
7870 esac
7871 else
7872 enable_fast_install=yes
7885 # This can be used to rebuild libtool when needed
7886 LIBTOOL_DEPS="$ltmain"
7888 # Always use our own libtool.
7889 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7916 test -z "$LN_S" && LN_S="ln -s"
7931 if test -n "${ZSH_VERSION+set}" ; then
7932 setopt NO_GLOB_SUBST
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7936 $as_echo_n "checking for objdir... " >&6; }
7937 if ${lt_cv_objdir+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 rm -f .libs 2>/dev/null
7941 mkdir .libs 2>/dev/null
7942 if test -d .libs; then
7943 lt_cv_objdir=.libs
7944 else
7945 # MS-DOS does not allow filenames that begin with a dot.
7946 lt_cv_objdir=_libs
7948 rmdir .libs 2>/dev/null
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7951 $as_echo "$lt_cv_objdir" >&6; }
7952 objdir=$lt_cv_objdir
7958 cat >>confdefs.h <<_ACEOF
7959 #define LT_OBJDIR "$lt_cv_objdir/"
7960 _ACEOF
7965 case $host_os in
7966 aix3*)
7967 # AIX sometimes has problems with the GCC collect2 program. For some
7968 # reason, if we set the COLLECT_NAMES environment variable, the problems
7969 # vanish in a puff of smoke.
7970 if test "X${COLLECT_NAMES+set}" != Xset; then
7971 COLLECT_NAMES=
7972 export COLLECT_NAMES
7975 esac
7977 # Global variables:
7978 ofile=libtool
7979 can_build_shared=yes
7981 # All known linkers require a `.a' archive for static linking (except MSVC,
7982 # which needs '.lib').
7983 libext=a
7985 with_gnu_ld="$lt_cv_prog_gnu_ld"
7987 old_CC="$CC"
7988 old_CFLAGS="$CFLAGS"
7990 # Set sane defaults for various variables
7991 test -z "$CC" && CC=cc
7992 test -z "$LTCC" && LTCC=$CC
7993 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7994 test -z "$LD" && LD=ld
7995 test -z "$ac_objext" && ac_objext=o
7997 for cc_temp in $compiler""; do
7998 case $cc_temp in
7999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8001 \-*) ;;
8002 *) break;;
8003 esac
8004 done
8005 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8008 # Only perform the check for file, if the check method requires it
8009 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8010 case $deplibs_check_method in
8011 file_magic*)
8012 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8014 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8015 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 case $MAGIC_CMD in
8019 [\\/*] | ?:[\\/]*)
8020 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8023 lt_save_MAGIC_CMD="$MAGIC_CMD"
8024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8025 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8026 for ac_dir in $ac_dummy; do
8027 IFS="$lt_save_ifs"
8028 test -z "$ac_dir" && ac_dir=.
8029 if test -f $ac_dir/${ac_tool_prefix}file; then
8030 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8031 if test -n "$file_magic_test_file"; then
8032 case $deplibs_check_method in
8033 "file_magic "*)
8034 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8037 $EGREP "$file_magic_regex" > /dev/null; then
8039 else
8040 cat <<_LT_EOF 1>&2
8042 *** Warning: the command libtool uses to detect shared libraries,
8043 *** $file_magic_cmd, produces output that libtool cannot recognize.
8044 *** The result is that libtool may fail to recognize shared libraries
8045 *** as such. This will affect the creation of libtool libraries that
8046 *** depend on shared libraries, but programs linked with such libtool
8047 *** libraries will work regardless of this problem. Nevertheless, you
8048 *** may want to report the problem to your system manager and/or to
8049 *** bug-libtool@gnu.org
8051 _LT_EOF
8052 fi ;;
8053 esac
8055 break
8057 done
8058 IFS="$lt_save_ifs"
8059 MAGIC_CMD="$lt_save_MAGIC_CMD"
8061 esac
8064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8065 if test -n "$MAGIC_CMD"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8067 $as_echo "$MAGIC_CMD" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8077 if test -z "$lt_cv_path_MAGIC_CMD"; then
8078 if test -n "$ac_tool_prefix"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8080 $as_echo_n "checking for file... " >&6; }
8081 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 case $MAGIC_CMD in
8085 [\\/*] | ?:[\\/]*)
8086 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8089 lt_save_MAGIC_CMD="$MAGIC_CMD"
8090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8091 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8092 for ac_dir in $ac_dummy; do
8093 IFS="$lt_save_ifs"
8094 test -z "$ac_dir" && ac_dir=.
8095 if test -f $ac_dir/file; then
8096 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8097 if test -n "$file_magic_test_file"; then
8098 case $deplibs_check_method in
8099 "file_magic "*)
8100 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8102 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8103 $EGREP "$file_magic_regex" > /dev/null; then
8105 else
8106 cat <<_LT_EOF 1>&2
8108 *** Warning: the command libtool uses to detect shared libraries,
8109 *** $file_magic_cmd, produces output that libtool cannot recognize.
8110 *** The result is that libtool may fail to recognize shared libraries
8111 *** as such. This will affect the creation of libtool libraries that
8112 *** depend on shared libraries, but programs linked with such libtool
8113 *** libraries will work regardless of this problem. Nevertheless, you
8114 *** may want to report the problem to your system manager and/or to
8115 *** bug-libtool@gnu.org
8117 _LT_EOF
8118 fi ;;
8119 esac
8121 break
8123 done
8124 IFS="$lt_save_ifs"
8125 MAGIC_CMD="$lt_save_MAGIC_CMD"
8127 esac
8130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8131 if test -n "$MAGIC_CMD"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8133 $as_echo "$MAGIC_CMD" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8140 else
8141 MAGIC_CMD=:
8147 esac
8149 # Use C for the default configuration in the libtool script
8151 lt_save_CC="$CC"
8152 ac_ext=c
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8159 # Source file extension for C test sources.
8160 ac_ext=c
8162 # Object file extension for compiled C test sources.
8163 objext=o
8164 objext=$objext
8166 # Code to be used in simple compile tests
8167 lt_simple_compile_test_code="int some_variable = 0;"
8169 # Code to be used in simple link tests
8170 lt_simple_link_test_code='int main(){return(0);}'
8178 # If no C compiler was specified, use CC.
8179 LTCC=${LTCC-"$CC"}
8181 # If no C compiler flags were specified, use CFLAGS.
8182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8184 # Allow CC to be a program name with arguments.
8185 compiler=$CC
8187 # Save the default compiler, since it gets overwritten when the other
8188 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8189 compiler_DEFAULT=$CC
8191 # save warnings/boilerplate of simple test code
8192 ac_outfile=conftest.$ac_objext
8193 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8194 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8195 _lt_compiler_boilerplate=`cat conftest.err`
8196 $RM conftest*
8198 ac_outfile=conftest.$ac_objext
8199 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8200 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8201 _lt_linker_boilerplate=`cat conftest.err`
8202 $RM -r conftest*
8205 ## CAVEAT EMPTOR:
8206 ## There is no encapsulation within the following macros, do not change
8207 ## the running order or otherwise move them around unless you know exactly
8208 ## what you are doing...
8209 if test -n "$compiler"; then
8211 lt_prog_compiler_no_builtin_flag=
8213 if test "$GCC" = yes; then
8214 case $cc_basename in
8215 nvcc*)
8216 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8218 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8219 esac
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8222 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8223 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 lt_cv_prog_compiler_rtti_exceptions=no
8227 ac_outfile=conftest.$ac_objext
8228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8229 lt_compiler_flag="-fno-rtti -fno-exceptions"
8230 # Insert the option either (1) after the last *FLAGS variable, or
8231 # (2) before a word containing "conftest.", or (3) at the end.
8232 # Note that $ac_compile itself does not contain backslashes and begins
8233 # with a dollar sign (not a hyphen), so the echo should work correctly.
8234 # The option is referenced via a variable to avoid confusing sed.
8235 lt_compile=`echo "$ac_compile" | $SED \
8236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8238 -e 's:$: $lt_compiler_flag:'`
8239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8240 (eval "$lt_compile" 2>conftest.err)
8241 ac_status=$?
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 if (exit $ac_status) && test -s "$ac_outfile"; then
8245 # The compiler can only warn and ignore the option if not recognized
8246 # So say no if there are warnings other than the usual output.
8247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8250 lt_cv_prog_compiler_rtti_exceptions=yes
8253 $RM conftest*
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8257 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8259 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8260 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8261 else
8272 lt_prog_compiler_wl=
8273 lt_prog_compiler_pic=
8274 lt_prog_compiler_static=
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8277 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8279 if test "$GCC" = yes; then
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_static='-static'
8283 case $host_os in
8284 aix*)
8285 # All AIX code is PIC.
8286 if test "$host_cpu" = ia64; then
8287 # AIX 5 now supports IA64 processor
8288 lt_prog_compiler_static='-Bstatic'
8290 lt_prog_compiler_pic='-fPIC'
8293 amigaos*)
8294 case $host_cpu in
8295 powerpc)
8296 # see comment about AmigaOS4 .so support
8297 lt_prog_compiler_pic='-fPIC'
8299 m68k)
8300 # FIXME: we need at least 68020 code to build shared libraries, but
8301 # adding the `-m68020' flag to GCC prevents building anything better,
8302 # like `-m68040'.
8303 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8305 esac
8308 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8309 # PIC is the default for these OSes.
8312 mingw* | cygwin* | pw32* | os2* | cegcc*)
8313 # This hack is so that the source file can tell whether it is being
8314 # built for inclusion in a dll (and should export symbols for example).
8315 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8316 # (--disable-auto-import) libraries
8317 lt_prog_compiler_pic='-DDLL_EXPORT'
8320 darwin* | rhapsody*)
8321 # PIC is the default on this platform
8322 # Common symbols not allowed in MH_DYLIB files
8323 lt_prog_compiler_pic='-fno-common'
8326 haiku*)
8327 # PIC is the default for Haiku.
8328 # The "-static" flag exists, but is broken.
8329 lt_prog_compiler_static=
8332 hpux*)
8333 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8334 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8335 # sets the default TLS model and affects inlining.
8336 case $host_cpu in
8337 hppa*64*)
8338 # +Z the default
8341 lt_prog_compiler_pic='-fPIC'
8343 esac
8346 interix[3-9]*)
8347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8348 # Instead, we relocate shared libraries at runtime.
8351 msdosdjgpp*)
8352 # Just because we use GCC doesn't mean we suddenly get shared libraries
8353 # on systems that don't support them.
8354 lt_prog_compiler_can_build_shared=no
8355 enable_shared=no
8358 *nto* | *qnx*)
8359 # QNX uses GNU C++, but need to define -shared option too, otherwise
8360 # it will coredump.
8361 lt_prog_compiler_pic='-fPIC -shared'
8364 sysv4*MP*)
8365 if test -d /usr/nec; then
8366 lt_prog_compiler_pic=-Kconform_pic
8371 lt_prog_compiler_pic='-fPIC'
8373 esac
8375 case $cc_basename in
8376 nvcc*) # Cuda Compiler Driver 2.2
8377 lt_prog_compiler_wl='-Xlinker '
8378 lt_prog_compiler_pic='-Xcompiler -fPIC'
8380 esac
8381 else
8382 # PORTME Check for flag to pass linker flags through the system compiler.
8383 case $host_os in
8384 aix*)
8385 lt_prog_compiler_wl='-Wl,'
8386 if test "$host_cpu" = ia64; then
8387 # AIX 5 now supports IA64 processor
8388 lt_prog_compiler_static='-Bstatic'
8389 else
8390 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8394 mingw* | cygwin* | pw32* | os2* | cegcc*)
8395 # This hack is so that the source file can tell whether it is being
8396 # built for inclusion in a dll (and should export symbols for example).
8397 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 hpux9* | hpux10* | hpux11*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8403 # not for PA HP-UX.
8404 case $host_cpu in
8405 hppa*64*|ia64*)
8406 # +Z the default
8409 lt_prog_compiler_pic='+Z'
8411 esac
8412 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8413 lt_prog_compiler_static='${wl}-a ${wl}archive'
8416 irix5* | irix6* | nonstopux*)
8417 lt_prog_compiler_wl='-Wl,'
8418 # PIC (with -KPIC) is the default.
8419 lt_prog_compiler_static='-non_shared'
8422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8423 case $cc_basename in
8424 # old Intel for x86_64 which still supported -KPIC.
8425 ecc*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-static'
8430 # icc used to be incompatible with GCC.
8431 # ICC 10 doesn't accept -KPIC any more.
8432 icc* | ifort*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-fPIC'
8435 lt_prog_compiler_static='-static'
8437 # Lahey Fortran 8.1.
8438 lf95*)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='--shared'
8441 lt_prog_compiler_static='--static'
8443 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8444 # Portland Group compilers (*not* the Pentium gcc compiler,
8445 # which looks to be a dead project)
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_pic='-fpic'
8448 lt_prog_compiler_static='-Bstatic'
8450 ccc*)
8451 lt_prog_compiler_wl='-Wl,'
8452 # All Alpha code is PIC.
8453 lt_prog_compiler_static='-non_shared'
8455 xl* | bgxl* | bgf* | mpixl*)
8456 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_pic='-qpic'
8459 lt_prog_compiler_static='-qstaticlink'
8462 case `$CC -V 2>&1 | sed 5q` in
8463 *Sun\ F* | *Sun*Fortran*)
8464 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 lt_prog_compiler_wl=''
8469 *Sun\ C*)
8470 # Sun C 5.9
8471 lt_prog_compiler_pic='-KPIC'
8472 lt_prog_compiler_static='-Bstatic'
8473 lt_prog_compiler_wl='-Wl,'
8475 esac
8477 esac
8480 newsos6)
8481 lt_prog_compiler_pic='-KPIC'
8482 lt_prog_compiler_static='-Bstatic'
8485 *nto* | *qnx*)
8486 # QNX uses GNU C++, but need to define -shared option too, otherwise
8487 # it will coredump.
8488 lt_prog_compiler_pic='-fPIC -shared'
8491 osf3* | osf4* | osf5*)
8492 lt_prog_compiler_wl='-Wl,'
8493 # All OSF/1 code is PIC.
8494 lt_prog_compiler_static='-non_shared'
8497 rdos*)
8498 lt_prog_compiler_static='-non_shared'
8501 solaris*)
8502 lt_prog_compiler_pic='-KPIC'
8503 lt_prog_compiler_static='-Bstatic'
8504 case $cc_basename in
8505 f77* | f90* | f95*)
8506 lt_prog_compiler_wl='-Qoption ld ';;
8508 lt_prog_compiler_wl='-Wl,';;
8509 esac
8512 sunos4*)
8513 lt_prog_compiler_wl='-Qoption ld '
8514 lt_prog_compiler_pic='-PIC'
8515 lt_prog_compiler_static='-Bstatic'
8518 sysv4 | sysv4.2uw2* | sysv4.3*)
8519 lt_prog_compiler_wl='-Wl,'
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8524 sysv4*MP*)
8525 if test -d /usr/nec ;then
8526 lt_prog_compiler_pic='-Kconform_pic'
8527 lt_prog_compiler_static='-Bstatic'
8531 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-Bstatic'
8537 unicos*)
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_can_build_shared=no
8542 uts4*)
8543 lt_prog_compiler_pic='-pic'
8544 lt_prog_compiler_static='-Bstatic'
8548 lt_prog_compiler_can_build_shared=no
8550 esac
8553 case $host_os in
8554 # For platforms which do not support PIC, -DPIC is meaningless:
8555 *djgpp*)
8556 lt_prog_compiler_pic=
8559 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8561 esac
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8563 $as_echo "$lt_prog_compiler_pic" >&6; }
8571 # Check to make sure the PIC flag actually works.
8573 if test -n "$lt_prog_compiler_pic"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8575 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8576 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 lt_cv_prog_compiler_pic_works=no
8580 ac_outfile=conftest.$ac_objext
8581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 # The option is referenced via a variable to avoid confusing sed.
8588 lt_compile=`echo "$ac_compile" | $SED \
8589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591 -e 's:$: $lt_compiler_flag:'`
8592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8593 (eval "$lt_compile" 2>conftest.err)
8594 ac_status=$?
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 if (exit $ac_status) && test -s "$ac_outfile"; then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings other than the usual output.
8600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_pic_works=yes
8606 $RM conftest*
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8610 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8612 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8613 case $lt_prog_compiler_pic in
8614 "" | " "*) ;;
8615 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8616 esac
8617 else
8618 lt_prog_compiler_pic=
8619 lt_prog_compiler_can_build_shared=no
8630 # Check to make sure the static flag actually works.
8632 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8634 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8635 if ${lt_cv_prog_compiler_static_works+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 lt_cv_prog_compiler_static_works=no
8639 save_LDFLAGS="$LDFLAGS"
8640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8643 # The linker can only warn and ignore the option if not recognized
8644 # So say no if there are warnings
8645 if test -s conftest.err; then
8646 # Append any errors to the config.log.
8647 cat conftest.err 1>&5
8648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650 if diff conftest.exp conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_static_works=yes
8653 else
8654 lt_cv_prog_compiler_static_works=yes
8657 $RM -r conftest*
8658 LDFLAGS="$save_LDFLAGS"
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8662 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8664 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8666 else
8667 lt_prog_compiler_static=
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8678 if ${lt_cv_prog_compiler_c_o+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 lt_cv_prog_compiler_c_o=no
8682 $RM -r conftest 2>/dev/null
8683 mkdir conftest
8684 cd conftest
8685 mkdir out
8686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688 lt_compiler_flag="-o out/conftest2.$ac_objext"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 lt_compile=`echo "$ac_compile" | $SED \
8694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696 -e 's:$: $lt_compiler_flag:'`
8697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8698 (eval "$lt_compile" 2>out/conftest.err)
8699 ac_status=$?
8700 cat out/conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8703 then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings
8706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8709 lt_cv_prog_compiler_c_o=yes
8712 chmod u+w . 2>&5
8713 $RM conftest*
8714 # SGI C++ compiler will create directory out/ii_files/ for
8715 # template instantiation
8716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8717 $RM out/* && rmdir out
8718 cd ..
8719 $RM -r conftest
8720 $RM conftest*
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8732 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8733 if ${lt_cv_prog_compiler_c_o+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_c_o=no
8737 $RM -r conftest 2>/dev/null
8738 mkdir conftest
8739 cd conftest
8740 mkdir out
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743 lt_compiler_flag="-o out/conftest2.$ac_objext"
8744 # Insert the option either (1) after the last *FLAGS variable, or
8745 # (2) before a word containing "conftest.", or (3) at the end.
8746 # Note that $ac_compile itself does not contain backslashes and begins
8747 # with a dollar sign (not a hyphen), so the echo should work correctly.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>out/conftest.err)
8754 ac_status=$?
8755 cat out/conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8758 then
8759 # The compiler can only warn and ignore the option if not recognized
8760 # So say no if there are warnings
8761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_c_o=yes
8767 chmod u+w . 2>&5
8768 $RM conftest*
8769 # SGI C++ compiler will create directory out/ii_files/ for
8770 # template instantiation
8771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8772 $RM out/* && rmdir out
8773 cd ..
8774 $RM -r conftest
8775 $RM conftest*
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8779 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8784 hard_links="nottested"
8785 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8786 # do not overwrite the value of need_locks provided by the user
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8788 $as_echo_n "checking if we can lock with hard links... " >&6; }
8789 hard_links=yes
8790 $RM conftest*
8791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8792 touch conftest.a
8793 ln conftest.a conftest.b 2>&5 || hard_links=no
8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8796 $as_echo "$hard_links" >&6; }
8797 if test "$hard_links" = no; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8799 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8800 need_locks=warn
8802 else
8803 need_locks=no
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8814 runpath_var=
8815 allow_undefined_flag=
8816 always_export_symbols=no
8817 archive_cmds=
8818 archive_expsym_cmds=
8819 compiler_needs_object=no
8820 enable_shared_with_static_runtimes=no
8821 export_dynamic_flag_spec=
8822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8823 hardcode_automatic=no
8824 hardcode_direct=no
8825 hardcode_direct_absolute=no
8826 hardcode_libdir_flag_spec=
8827 hardcode_libdir_flag_spec_ld=
8828 hardcode_libdir_separator=
8829 hardcode_minus_L=no
8830 hardcode_shlibpath_var=unsupported
8831 inherit_rpath=no
8832 link_all_deplibs=unknown
8833 module_cmds=
8834 module_expsym_cmds=
8835 old_archive_from_new_cmds=
8836 old_archive_from_expsyms_cmds=
8837 thread_safe_flag_spec=
8838 whole_archive_flag_spec=
8839 # include_expsyms should be a list of space-separated symbols to be *always*
8840 # included in the symbol list
8841 include_expsyms=
8842 # exclude_expsyms can be an extended regexp of symbols to exclude
8843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8845 # as well as any symbol that contains `d'.
8846 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8848 # platforms (ab)use it in PIC code, but their linkers get confused if
8849 # the symbol is explicitly referenced. Since portable code cannot
8850 # rely on this symbol name, it's probably fine to never include it in
8851 # preloaded symbol tables.
8852 # Exclude shared library initialization/finalization symbols.
8853 extract_expsyms_cmds=
8855 case $host_os in
8856 cygwin* | mingw* | pw32* | cegcc*)
8857 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8858 # When not using gcc, we currently assume that we are using
8859 # Microsoft Visual C++.
8860 if test "$GCC" != yes; then
8861 with_gnu_ld=no
8864 interix*)
8865 # we just hope/assume this is gcc and not c89 (= MSVC++)
8866 with_gnu_ld=yes
8868 openbsd*)
8869 with_gnu_ld=no
8871 esac
8873 ld_shlibs=yes
8875 # On some targets, GNU ld is compatible enough with the native linker
8876 # that we're better off using the native interface for both.
8877 lt_use_gnu_ld_interface=no
8878 if test "$with_gnu_ld" = yes; then
8879 case $host_os in
8880 aix*)
8881 # The AIX port of GNU ld has always aspired to compatibility
8882 # with the native linker. However, as the warning in the GNU ld
8883 # block says, versions before 2.19.5* couldn't really create working
8884 # shared libraries, regardless of the interface used.
8885 case `$LD -v 2>&1` in
8886 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8887 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8888 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8890 lt_use_gnu_ld_interface=yes
8892 esac
8895 lt_use_gnu_ld_interface=yes
8897 esac
8900 if test "$lt_use_gnu_ld_interface" = yes; then
8901 # If archive_cmds runs LD, not CC, wlarc should be empty
8902 wlarc='${wl}'
8904 # Set some defaults for GNU ld with shared library support. These
8905 # are reset later if shared libraries are not supported. Putting them
8906 # here allows them to be overridden if necessary.
8907 runpath_var=LD_RUN_PATH
8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909 export_dynamic_flag_spec='${wl}--export-dynamic'
8910 # ancient GNU ld didn't support --whole-archive et. al.
8911 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8913 else
8914 whole_archive_flag_spec=
8916 supports_anon_versioning=no
8917 case `$LD -v 2>&1` in
8918 *GNU\ gold*) supports_anon_versioning=yes ;;
8919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922 *\ 2.11.*) ;; # other 2.11 versions
8923 *) supports_anon_versioning=yes ;;
8924 esac
8926 # See if GNU ld supports shared libraries.
8927 case $host_os in
8928 aix[3-9]*)
8929 # On AIX/PPC, the GNU linker is very broken
8930 if test "$host_cpu" != ia64; then
8931 ld_shlibs=no
8932 cat <<_LT_EOF 1>&2
8934 *** Warning: the GNU linker, at least up to release 2.19, is reported
8935 *** to be unable to reliably create shared libraries on AIX.
8936 *** Therefore, libtool is disabling shared libraries support. If you
8937 *** really care for shared libraries, you may want to install binutils
8938 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8939 *** You will then need to restart the configuration process.
8941 _LT_EOF
8945 amigaos*)
8946 case $host_cpu in
8947 powerpc)
8948 # see comment about AmigaOS4 .so support
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds=''
8952 m68k)
8953 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)'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8957 esac
8960 beos*)
8961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962 allow_undefined_flag=unsupported
8963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8964 # support --undefined. This deserves some investigation. FIXME
8965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966 else
8967 ld_shlibs=no
8971 cygwin* | mingw* | pw32* | cegcc*)
8972 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8973 # as there is no search path for DLLs.
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 export_dynamic_flag_spec='${wl}--export-all-symbols'
8976 allow_undefined_flag=unsupported
8977 always_export_symbols=no
8978 enable_shared_with_static_runtimes=yes
8979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8981 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8983 # If the export-symbols file already is a .def file (1st line
8984 # is EXPORTS), use it as is; otherwise, prepend...
8985 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8986 cp $export_symbols $output_objdir/$soname.def;
8987 else
8988 echo EXPORTS > $output_objdir/$soname.def;
8989 cat $export_symbols >> $output_objdir/$soname.def;
8991 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8992 else
8993 ld_shlibs=no
8997 haiku*)
8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999 link_all_deplibs=yes
9002 interix[3-9]*)
9003 hardcode_direct=no
9004 hardcode_shlibpath_var=no
9005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9006 export_dynamic_flag_spec='${wl}-E'
9007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9008 # Instead, shared libraries are loaded at an image base (0x10000000 by
9009 # default) and relocated if they conflict, which is a slow very memory
9010 # consuming and fragmenting process. To avoid this, we pick a random,
9011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9012 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9014 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'
9017 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9018 tmp_diet=no
9019 if test "$host_os" = linux-dietlibc; then
9020 case $cc_basename in
9021 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9022 esac
9024 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9025 && test "$tmp_diet" = no
9026 then
9027 tmp_addflag=' $pic_flag'
9028 tmp_sharedflag='-shared'
9029 case $cc_basename,$host_cpu in
9030 pgcc*) # Portland Group C compiler
9031 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'
9032 tmp_addflag=' $pic_flag'
9034 pgf77* | pgf90* | pgf95* | pgfortran*)
9035 # Portland Group f77 and f90 compilers
9036 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'
9037 tmp_addflag=' $pic_flag -Mnomain' ;;
9038 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9039 tmp_addflag=' -i_dynamic' ;;
9040 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9041 tmp_addflag=' -i_dynamic -nofor_main' ;;
9042 ifc* | ifort*) # Intel Fortran compiler
9043 tmp_addflag=' -nofor_main' ;;
9044 lf95*) # Lahey Fortran 8.1
9045 whole_archive_flag_spec=
9046 tmp_sharedflag='--shared' ;;
9047 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9048 tmp_sharedflag='-qmkshrobj'
9049 tmp_addflag= ;;
9050 nvcc*) # Cuda Compiler Driver 2.2
9051 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'
9052 compiler_needs_object=yes
9054 esac
9055 case `$CC -V 2>&1 | sed 5q` in
9056 *Sun\ C*) # Sun C 5.9
9057 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'
9058 compiler_needs_object=yes
9059 tmp_sharedflag='-G' ;;
9060 *Sun\ F*) # Sun Fortran 8.3
9061 tmp_sharedflag='-G' ;;
9062 esac
9063 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 if test "x$supports_anon_versioning" = xyes; then
9066 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9067 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9068 echo "local: *; };" >> $output_objdir/$libname.ver~
9069 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9072 case $cc_basename in
9073 xlf* | bgf* | bgxlf* | mpixlf*)
9074 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9075 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9076 hardcode_libdir_flag_spec=
9077 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9078 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9079 if test "x$supports_anon_versioning" = xyes; then
9080 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9081 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9082 echo "local: *; };" >> $output_objdir/$libname.ver~
9083 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9086 esac
9087 else
9088 ld_shlibs=no
9092 netbsd*)
9093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9094 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9095 wlarc=
9096 else
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9102 solaris*)
9103 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9104 ld_shlibs=no
9105 cat <<_LT_EOF 1>&2
9107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9108 *** create shared libraries on Solaris systems. Therefore, libtool
9109 *** is disabling shared libraries support. We urge you to upgrade GNU
9110 *** binutils to release 2.9.1 or newer. Another option is to modify
9111 *** your PATH or compiler configuration so that the native linker is
9112 *** used, and then restart.
9114 _LT_EOF
9115 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9118 else
9119 ld_shlibs=no
9123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9124 case `$LD -v 2>&1` in
9125 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9126 ld_shlibs=no
9127 cat <<_LT_EOF 1>&2
9129 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9130 *** reliably create shared libraries on SCO systems. Therefore, libtool
9131 *** is disabling shared libraries support. We urge you to upgrade GNU
9132 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9133 *** your PATH or compiler configuration so that the native linker is
9134 *** used, and then restart.
9136 _LT_EOF
9139 # For security reasons, it is highly recommended that you always
9140 # use absolute paths for naming shared libraries, and exclude the
9141 # DT_RUNPATH tag from executables and libraries. But doing so
9142 # requires that you compile everything twice, which is a pain.
9143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9147 else
9148 ld_shlibs=no
9151 esac
9154 sunos4*)
9155 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9156 wlarc=
9157 hardcode_direct=yes
9158 hardcode_shlibpath_var=no
9162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9165 else
9166 ld_shlibs=no
9169 esac
9171 if test "$ld_shlibs" = no; then
9172 runpath_var=
9173 hardcode_libdir_flag_spec=
9174 export_dynamic_flag_spec=
9175 whole_archive_flag_spec=
9177 else
9178 # PORTME fill in a description of your system's linker (not GNU ld)
9179 case $host_os in
9180 aix3*)
9181 allow_undefined_flag=unsupported
9182 always_export_symbols=yes
9183 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'
9184 # Note: this linker hardcodes the directories in LIBPATH if there
9185 # are no directories specified by -L.
9186 hardcode_minus_L=yes
9187 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9188 # Neither direct hardcoding nor static linking is supported with a
9189 # broken collect2.
9190 hardcode_direct=unsupported
9194 aix[4-9]*)
9195 if test "$host_cpu" = ia64; then
9196 # On IA64, the linker does run time linking by default, so we don't
9197 # have to do anything special.
9198 aix_use_runtimelinking=no
9199 exp_sym_flag='-Bexport'
9200 no_entry_flag=""
9201 else
9202 # If we're using GNU nm, then we don't want the "-C" option.
9203 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9204 # Also, AIX nm treats weak defined symbols like other global
9205 # defined symbols, whereas GNU nm marks them as "W".
9206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9207 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'
9208 else
9209 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'
9211 aix_use_runtimelinking=no
9213 # Test if we are trying to use run time linking or normal
9214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9215 # need to do runtime linking.
9216 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9217 for ld_flag in $LDFLAGS; do
9218 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9219 aix_use_runtimelinking=yes
9220 break
9222 done
9224 esac
9226 exp_sym_flag='-bexport'
9227 no_entry_flag='-bnoentry'
9230 # When large executables or shared objects are built, AIX ld can
9231 # have problems creating the table of contents. If linking a library
9232 # or program results in "error TOC overflow" add -mminimal-toc to
9233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9236 archive_cmds=''
9237 hardcode_direct=yes
9238 hardcode_direct_absolute=yes
9239 hardcode_libdir_separator=':'
9240 link_all_deplibs=yes
9241 file_list_spec='${wl}-f,'
9243 if test "$GCC" = yes; then
9244 case $host_os in aix4.[012]|aix4.[012].*)
9245 # We only want to do this on AIX 4.2 and lower, the check
9246 # below for broken collect2 doesn't work under 4.3+
9247 collect2name=`${CC} -print-prog-name=collect2`
9248 if test -f "$collect2name" &&
9249 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9250 then
9251 # We have reworked collect2
9253 else
9254 # We have old collect2
9255 hardcode_direct=unsupported
9256 # It fails to find uninstalled libraries when the uninstalled
9257 # path is not listed in the libpath. Setting hardcode_minus_L
9258 # to unsupported forces relinking
9259 hardcode_minus_L=yes
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_libdir_separator=
9264 esac
9265 shared_flag='-shared'
9266 if test "$aix_use_runtimelinking" = yes; then
9267 shared_flag="$shared_flag "'${wl}-G'
9269 else
9270 # not using gcc
9271 if test "$host_cpu" = ia64; then
9272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9273 # chokes on -Wl,-G. The following line is correct:
9274 shared_flag='-G'
9275 else
9276 if test "$aix_use_runtimelinking" = yes; then
9277 shared_flag='${wl}-G'
9278 else
9279 shared_flag='${wl}-bM:SRE'
9284 export_dynamic_flag_spec='${wl}-bexpall'
9285 # It seems that -bexpall does not export symbols beginning with
9286 # underscore (_), so it is better to generate a list of symbols to export.
9287 always_export_symbols=yes
9288 if test "$aix_use_runtimelinking" = yes; then
9289 # Warning - without using the other runtime loading flags (-brtl),
9290 # -berok will link without error, but may produce a broken library.
9291 allow_undefined_flag='-berok'
9292 # Determine the default libpath from the value encoded in an
9293 # empty executable.
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9298 main ()
9302 return 0;
9304 _ACEOF
9305 if ac_fn_c_try_link "$LINENO"; then :
9307 lt_aix_libpath_sed='
9308 /Import File Strings/,/^$/ {
9309 /^0/ {
9310 s/^0 *\(.*\)$/\1/
9314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9315 # Check for a 64-bit object if we didn't find anything.
9316 if test -z "$aix_libpath"; then
9317 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9325 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"
9326 else
9327 if test "$host_cpu" = ia64; then
9328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9329 allow_undefined_flag="-z nodefs"
9330 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"
9331 else
9332 # Determine the default libpath from the value encoded in an
9333 # empty executable.
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9338 main ()
9342 return 0;
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"; then :
9347 lt_aix_libpath_sed='
9348 /Import File Strings/,/^$/ {
9349 /^0/ {
9350 s/^0 *\(.*\)$/\1/
9354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9355 # Check for a 64-bit object if we didn't find anything.
9356 if test -z "$aix_libpath"; then
9357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9365 # Warning - without using the other run time loading flags,
9366 # -berok will link without error, but may produce a broken library.
9367 no_undefined_flag=' ${wl}-bernotok'
9368 allow_undefined_flag=' ${wl}-berok'
9369 if test "$with_gnu_ld" = yes; then
9370 # We only use this code for GNU lds that support --whole-archive.
9371 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9372 else
9373 # Exported symbols can be pulled into shared objects from archives
9374 whole_archive_flag_spec='$convenience'
9376 archive_cmds_need_lc=yes
9377 # This is similar to how AIX traditionally builds its shared libraries.
9378 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'
9383 amigaos*)
9384 case $host_cpu in
9385 powerpc)
9386 # see comment about AmigaOS4 .so support
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 archive_expsym_cmds=''
9390 m68k)
9391 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)'
9392 hardcode_libdir_flag_spec='-L$libdir'
9393 hardcode_minus_L=yes
9395 esac
9398 bsdi[45]*)
9399 export_dynamic_flag_spec=-rdynamic
9402 cygwin* | mingw* | pw32* | cegcc*)
9403 # When not using gcc, we currently assume that we are using
9404 # Microsoft Visual C++.
9405 # hardcode_libdir_flag_spec is actually meaningless, as there is
9406 # no search path for DLLs.
9407 hardcode_libdir_flag_spec=' '
9408 allow_undefined_flag=unsupported
9409 # Tell ltmain to make .lib files, not .a files.
9410 libext=lib
9411 # Tell ltmain to make .dll files, not .so files.
9412 shrext_cmds=".dll"
9413 # FIXME: Setting linknames here is a bad hack.
9414 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9415 # The linker will automatically build a .lib file if we build a DLL.
9416 old_archive_from_new_cmds='true'
9417 # FIXME: Should let the user specify the lib program.
9418 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9419 fix_srcfile_path='`cygpath -w "$srcfile"`'
9420 enable_shared_with_static_runtimes=yes
9423 darwin* | rhapsody*)
9426 archive_cmds_need_lc=no
9427 hardcode_direct=no
9428 hardcode_automatic=yes
9429 hardcode_shlibpath_var=unsupported
9430 if test "$lt_cv_ld_force_load" = "yes"; then
9431 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\"`'
9432 else
9433 whole_archive_flag_spec=''
9435 link_all_deplibs=yes
9436 allow_undefined_flag="$_lt_dar_allow_undefined"
9437 case $cc_basename in
9438 ifort*) _lt_dar_can_shared=yes ;;
9439 *) _lt_dar_can_shared=$GCC ;;
9440 esac
9441 if test "$_lt_dar_can_shared" = "yes"; then
9442 output_verbose_link_cmd=func_echo_all
9443 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9444 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9445 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9446 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}"
9448 else
9449 ld_shlibs=no
9454 dgux*)
9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_shlibpath_var=no
9460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9461 # support. Future versions do this automatically, but an explicit c++rt0.o
9462 # does not break anything, and helps significantly (at the cost of a little
9463 # extra space).
9464 freebsd2.2*)
9465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9466 hardcode_libdir_flag_spec='-R$libdir'
9467 hardcode_direct=yes
9468 hardcode_shlibpath_var=no
9471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9472 freebsd2.*)
9473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_direct=yes
9475 hardcode_minus_L=yes
9476 hardcode_shlibpath_var=no
9479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9480 freebsd* | dragonfly*)
9481 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_direct=yes
9484 hardcode_shlibpath_var=no
9487 hpux9*)
9488 if test "$GCC" = yes; then
9489 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'
9490 else
9491 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'
9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9494 hardcode_libdir_separator=:
9495 hardcode_direct=yes
9497 # hardcode_minus_L: Not really in the search PATH,
9498 # but as the default location of the library.
9499 hardcode_minus_L=yes
9500 export_dynamic_flag_spec='${wl}-E'
9503 hpux10*)
9504 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9505 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9506 else
9507 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9509 if test "$with_gnu_ld" = no; then
9510 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9511 hardcode_libdir_flag_spec_ld='+b $libdir'
9512 hardcode_libdir_separator=:
9513 hardcode_direct=yes
9514 hardcode_direct_absolute=yes
9515 export_dynamic_flag_spec='${wl}-E'
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9522 hpux11*)
9523 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9524 case $host_cpu in
9525 hppa*64*)
9526 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9528 ia64*)
9529 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9534 esac
9535 else
9536 case $host_cpu in
9537 hppa*64*)
9538 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9540 ia64*)
9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9545 # Older versions of the 11.00 compiler do not understand -b yet
9546 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9548 $as_echo_n "checking if $CC understands -b... " >&6; }
9549 if ${lt_cv_prog_compiler__b+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 lt_cv_prog_compiler__b=no
9553 save_LDFLAGS="$LDFLAGS"
9554 LDFLAGS="$LDFLAGS -b"
9555 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9557 # The linker can only warn and ignore the option if not recognized
9558 # So say no if there are warnings
9559 if test -s conftest.err; then
9560 # Append any errors to the config.log.
9561 cat conftest.err 1>&5
9562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9564 if diff conftest.exp conftest.er2 >/dev/null; then
9565 lt_cv_prog_compiler__b=yes
9567 else
9568 lt_cv_prog_compiler__b=yes
9571 $RM -r conftest*
9572 LDFLAGS="$save_LDFLAGS"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9576 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9578 if test x"$lt_cv_prog_compiler__b" = xyes; then
9579 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9580 else
9581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9585 esac
9587 if test "$with_gnu_ld" = no; then
9588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9589 hardcode_libdir_separator=:
9591 case $host_cpu in
9592 hppa*64*|ia64*)
9593 hardcode_direct=no
9594 hardcode_shlibpath_var=no
9597 hardcode_direct=yes
9598 hardcode_direct_absolute=yes
9599 export_dynamic_flag_spec='${wl}-E'
9601 # hardcode_minus_L: Not really in the search PATH,
9602 # but as the default location of the library.
9603 hardcode_minus_L=yes
9605 esac
9609 irix5* | irix6* | nonstopux*)
9610 if test "$GCC" = yes; then
9611 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'
9612 # Try to use the -exported_symbol ld option, if it does not
9613 # work, assume that -exports_file does not work either and
9614 # implicitly export all symbols.
9615 save_LDFLAGS="$LDFLAGS"
9616 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int foo(void) {}
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 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'
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 LDFLAGS="$save_LDFLAGS"
9628 else
9629 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'
9630 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'
9632 archive_cmds_need_lc='no'
9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634 hardcode_libdir_separator=:
9635 inherit_rpath=yes
9636 link_all_deplibs=yes
9639 netbsd*)
9640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9642 else
9643 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9645 hardcode_libdir_flag_spec='-R$libdir'
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9650 newsos6)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_direct=yes
9653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9654 hardcode_libdir_separator=:
9655 hardcode_shlibpath_var=no
9658 *nto* | *qnx*)
9661 openbsd*)
9662 if test -f /usr/libexec/ld.so; then
9663 hardcode_direct=yes
9664 hardcode_shlibpath_var=no
9665 hardcode_direct_absolute=yes
9666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9670 export_dynamic_flag_spec='${wl}-E'
9671 else
9672 case $host_os in
9673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9681 esac
9683 else
9684 ld_shlibs=no
9688 os2*)
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 allow_undefined_flag=unsupported
9692 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'
9693 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9696 osf3*)
9697 if test "$GCC" = yes; then
9698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9699 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'
9700 else
9701 allow_undefined_flag=' -expect_unresolved \*'
9702 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'
9704 archive_cmds_need_lc='no'
9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9706 hardcode_libdir_separator=:
9709 osf4* | osf5*) # as osf3* with the addition of -msym flag
9710 if test "$GCC" = yes; then
9711 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9712 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'
9713 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9714 else
9715 allow_undefined_flag=' -expect_unresolved \*'
9716 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'
9717 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~
9718 $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'
9720 # Both c and cxx compiler support -rpath directly
9721 hardcode_libdir_flag_spec='-rpath $libdir'
9723 archive_cmds_need_lc='no'
9724 hardcode_libdir_separator=:
9727 solaris*)
9728 no_undefined_flag=' -z defs'
9729 if test "$GCC" = yes; then
9730 wlarc='${wl}'
9731 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9733 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9734 else
9735 case `$CC -V 2>&1` in
9736 *"Compilers 5.0"*)
9737 wlarc=''
9738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9743 wlarc='${wl}'
9744 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9746 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9748 esac
9750 hardcode_libdir_flag_spec='-R$libdir'
9751 hardcode_shlibpath_var=no
9752 case $host_os in
9753 solaris2.[0-5] | solaris2.[0-5].*) ;;
9755 # The compiler driver will combine and reorder linker options,
9756 # but understands `-z linker_flag'. GCC discards it without `$wl',
9757 # but is careful enough not to reorder.
9758 # Supported since Solaris 2.6 (maybe 2.5.1?)
9759 if test "$GCC" = yes; then
9760 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9761 else
9762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9765 esac
9766 link_all_deplibs=yes
9769 sunos4*)
9770 if test "x$host_vendor" = xsequent; then
9771 # Use $CC to link under sequent, because it throws in some extra .o
9772 # files that make .init and .fini sections work.
9773 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9774 else
9775 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_direct=yes
9779 hardcode_minus_L=yes
9780 hardcode_shlibpath_var=no
9783 sysv4)
9784 case $host_vendor in
9785 sni)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_direct=yes # is this really true???
9789 siemens)
9790 ## LD is ld it makes a PLAMLIB
9791 ## CC just makes a GrossModule.
9792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9793 reload_cmds='$CC -r -o $output$reload_objs'
9794 hardcode_direct=no
9796 motorola)
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9800 esac
9801 runpath_var='LD_RUN_PATH'
9802 hardcode_shlibpath_var=no
9805 sysv4.3*)
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_shlibpath_var=no
9808 export_dynamic_flag_spec='-Bexport'
9811 sysv4*MP*)
9812 if test -d /usr/nec; then
9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9814 hardcode_shlibpath_var=no
9815 runpath_var=LD_RUN_PATH
9816 hardcode_runpath_var=yes
9817 ld_shlibs=yes
9821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9822 no_undefined_flag='${wl}-z,text'
9823 archive_cmds_need_lc=no
9824 hardcode_shlibpath_var=no
9825 runpath_var='LD_RUN_PATH'
9827 if test "$GCC" = yes; then
9828 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 else
9831 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 sysv5* | sco3.2v5* | sco5v6*)
9837 # Note: We can NOT use -z defs as we might desire, because we do not
9838 # link with -lc, and that would cause any symbols used from libc to
9839 # always be unresolved, which means just about no library would
9840 # ever link correctly. If we're not using GNU ld we use -z text
9841 # though, which does catch some bad symbols but isn't as heavy-handed
9842 # as -z defs.
9843 no_undefined_flag='${wl}-z,text'
9844 allow_undefined_flag='${wl}-z,nodefs'
9845 archive_cmds_need_lc=no
9846 hardcode_shlibpath_var=no
9847 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9848 hardcode_libdir_separator=':'
9849 link_all_deplibs=yes
9850 export_dynamic_flag_spec='${wl}-Bexport'
9851 runpath_var='LD_RUN_PATH'
9853 if test "$GCC" = yes; then
9854 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9856 else
9857 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 uts4*)
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_shlibpath_var=no
9869 ld_shlibs=no
9871 esac
9873 if test x$host_vendor = xsni; then
9874 case $host in
9875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9876 export_dynamic_flag_spec='${wl}-Blargedynsym'
9878 esac
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9883 $as_echo "$ld_shlibs" >&6; }
9884 test "$ld_shlibs" = no && can_build_shared=no
9886 with_gnu_ld=$with_gnu_ld
9903 # Do we need to explicitly link libc?
9905 case "x$archive_cmds_need_lc" in
9906 x|xyes)
9907 # Assume -lc should be added
9908 archive_cmds_need_lc=yes
9910 if test "$enable_shared" = yes && test "$GCC" = yes; then
9911 case $archive_cmds in
9912 *'~'*)
9913 # FIXME: we may have to deal with multi-command sequences.
9915 '$CC '*)
9916 # Test whether the compiler implicitly links with -lc since on some
9917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9918 # to ld, don't add -lc before -lgcc.
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9920 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9921 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 $RM conftest*
9925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9928 (eval $ac_compile) 2>&5
9929 ac_status=$?
9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; } 2>conftest.err; then
9932 soname=conftest
9933 lib=conftest
9934 libobjs=conftest.$ac_objext
9935 deplibs=
9936 wl=$lt_prog_compiler_wl
9937 pic_flag=$lt_prog_compiler_pic
9938 compiler_flags=-v
9939 linker_flags=-v
9940 verstring=
9941 output_objdir=.
9942 libname=conftest
9943 lt_save_allow_undefined_flag=$allow_undefined_flag
9944 allow_undefined_flag=
9945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9946 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9947 ac_status=$?
9948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9949 test $ac_status = 0; }
9950 then
9951 lt_cv_archive_cmds_need_lc=no
9952 else
9953 lt_cv_archive_cmds_need_lc=yes
9955 allow_undefined_flag=$lt_save_allow_undefined_flag
9956 else
9957 cat conftest.err 1>&5
9959 $RM conftest*
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9963 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9964 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9966 esac
9969 esac
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10130 if test "$GCC" = yes; then
10131 case $host_os in
10132 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10133 *) lt_awk_arg="/^libraries:/" ;;
10134 esac
10135 case $host_os in
10136 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10137 *) lt_sed_strip_eq="s,=/,/,g" ;;
10138 esac
10139 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10140 case $lt_search_path_spec in
10141 *\;*)
10142 # if the path contains ";" then we assume it to be the separator
10143 # otherwise default to the standard path separator (i.e. ":") - it is
10144 # assumed that no part of a normal pathname contains ";" but that should
10145 # okay in the real world where ";" in dirpaths is itself problematic.
10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10149 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10151 esac
10152 # Ok, now we have the path, separated by spaces, we can step through it
10153 # and add multilib dir if necessary.
10154 lt_tmp_lt_search_path_spec=
10155 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10156 for lt_sys_path in $lt_search_path_spec; do
10157 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10158 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10159 else
10160 test -d "$lt_sys_path" && \
10161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10163 done
10164 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10165 BEGIN {RS=" "; FS="/|\n";} {
10166 lt_foo="";
10167 lt_count=0;
10168 for (lt_i = NF; lt_i > 0; lt_i--) {
10169 if ($lt_i != "" && $lt_i != ".") {
10170 if ($lt_i == "..") {
10171 lt_count++;
10172 } else {
10173 if (lt_count == 0) {
10174 lt_foo="/" $lt_i lt_foo;
10175 } else {
10176 lt_count--;
10181 if (lt_foo != "") { lt_freq[lt_foo]++; }
10182 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10184 # AWK program above erroneously prepends '/' to C:/dos/paths
10185 # for these hosts.
10186 case $host_os in
10187 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10188 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10189 esac
10190 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10191 else
10192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10194 library_names_spec=
10195 libname_spec='lib$name'
10196 soname_spec=
10197 shrext_cmds=".so"
10198 postinstall_cmds=
10199 postuninstall_cmds=
10200 finish_cmds=
10201 finish_eval=
10202 shlibpath_var=
10203 shlibpath_overrides_runpath=unknown
10204 version_type=none
10205 dynamic_linker="$host_os ld.so"
10206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10207 need_lib_prefix=unknown
10208 hardcode_into_libs=no
10210 # when you set need_version to no, make sure it does not cause -set_version
10211 # flags to be left without arguments
10212 need_version=unknown
10214 case $host_os in
10215 aix3*)
10216 version_type=linux
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10218 shlibpath_var=LIBPATH
10220 # AIX 3 has no versioning support, so we append a major version to the name.
10221 soname_spec='${libname}${release}${shared_ext}$major'
10224 aix[4-9]*)
10225 version_type=linux
10226 need_lib_prefix=no
10227 need_version=no
10228 hardcode_into_libs=yes
10229 if test "$host_cpu" = ia64; then
10230 # AIX 5 supports IA64
10231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 else
10234 # With GCC up to 2.95.x, collect2 would create an import file
10235 # for dependence libraries. The import file would start with
10236 # the line `#! .'. This would cause the generated library to
10237 # depend on `.', always an invalid library. This was fixed in
10238 # development snapshots of GCC prior to 3.0.
10239 case $host_os in
10240 aix4 | aix4.[01] | aix4.[01].*)
10241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10242 echo ' yes '
10243 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10245 else
10246 can_build_shared=no
10249 esac
10250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10251 # soname into executable. Probably we can add versioning support to
10252 # collect2, so additional links can be useful in future.
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10255 # instead of lib<name>.a to let people know that these are not
10256 # typical AIX shared libraries.
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 else
10259 # We preserve .a as extension for shared libraries through AIX4.2
10260 # and later when we are not doing run time linking.
10261 library_names_spec='${libname}${release}.a $libname.a'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LIBPATH
10268 amigaos*)
10269 case $host_cpu in
10270 powerpc)
10271 # Since July 2007 AmigaOS4 officially supports .so libraries.
10272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 m68k)
10276 library_names_spec='$libname.ixlibrary $libname.a'
10277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10278 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'
10280 esac
10283 beos*)
10284 library_names_spec='${libname}${shared_ext}'
10285 dynamic_linker="$host_os ld.so"
10286 shlibpath_var=LIBRARY_PATH
10289 bsdi[45]*)
10290 version_type=linux
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10298 # the default ld.so.conf also contains /usr/contrib/lib and
10299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10300 # libtool to hard-code these into programs
10303 cygwin* | mingw* | pw32* | cegcc*)
10304 version_type=windows
10305 shrext_cmds=".dll"
10306 need_version=no
10307 need_lib_prefix=no
10309 case $GCC,$host_os in
10310 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10311 library_names_spec='$libname.dll.a'
10312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10313 postinstall_cmds='base_file=`basename \${file}`~
10314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10315 dldir=$destdir/`dirname \$dlpath`~
10316 test -d \$dldir || mkdir -p \$dldir~
10317 $install_prog $dir/$dlname \$dldir/$dlname~
10318 chmod a+x \$dldir/$dlname~
10319 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10320 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10323 dlpath=$dir/\$dldll~
10324 $RM \$dlpath'
10325 shlibpath_overrides_runpath=yes
10327 case $host_os in
10328 cygwin*)
10329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10334 mingw* | cegcc*)
10335 # MinGW DLLs use traditional 'lib' prefix
10336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 pw32*)
10339 # pw32 DLLs use 'pw' prefix rather than 'lib'
10340 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10342 esac
10346 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10348 esac
10349 dynamic_linker='Win32 ld.exe'
10350 # FIXME: first we should search . and the directory the executable is in
10351 shlibpath_var=PATH
10354 darwin* | rhapsody*)
10355 dynamic_linker="$host_os dyld"
10356 version_type=darwin
10357 need_lib_prefix=no
10358 need_version=no
10359 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10360 soname_spec='${libname}${release}${major}$shared_ext'
10361 shlibpath_overrides_runpath=yes
10362 shlibpath_var=DYLD_LIBRARY_PATH
10363 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10365 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10366 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10369 dgux*)
10370 version_type=linux
10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10378 freebsd* | dragonfly*)
10379 # DragonFly does not have aout. When/if they implement a new
10380 # versioning mechanism, adjust this.
10381 if test -x /usr/bin/objformat; then
10382 objformat=`/usr/bin/objformat`
10383 else
10384 case $host_os in
10385 freebsd[23].*) objformat=aout ;;
10386 *) objformat=elf ;;
10387 esac
10389 version_type=freebsd-$objformat
10390 case $version_type in
10391 freebsd-elf*)
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10393 need_version=no
10394 need_lib_prefix=no
10396 freebsd-*)
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10398 need_version=yes
10400 esac
10401 shlibpath_var=LD_LIBRARY_PATH
10402 case $host_os in
10403 freebsd2.*)
10404 shlibpath_overrides_runpath=yes
10406 freebsd3.[01]* | freebsdelf3.[01]*)
10407 shlibpath_overrides_runpath=yes
10408 hardcode_into_libs=yes
10410 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10411 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10412 shlibpath_overrides_runpath=no
10413 hardcode_into_libs=yes
10415 *) # from 4.6 on, and DragonFly
10416 shlibpath_overrides_runpath=yes
10417 hardcode_into_libs=yes
10419 esac
10422 gnu*)
10423 version_type=linux
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 hardcode_into_libs=yes
10432 haiku*)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 dynamic_linker="$host_os runtime_loader"
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10442 hardcode_into_libs=yes
10445 hpux9* | hpux10* | hpux11*)
10446 # Give a soname corresponding to the major version so that dld.sl refuses to
10447 # link against other versions.
10448 version_type=sunos
10449 need_lib_prefix=no
10450 need_version=no
10451 case $host_cpu in
10452 ia64*)
10453 shrext_cmds='.so'
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.so"
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 if test "X$HPUX_IA64_MODE" = X32; then
10461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10462 else
10463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10467 hppa*64*)
10468 shrext_cmds='.sl'
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.sl"
10471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10479 shrext_cmds='.sl'
10480 dynamic_linker="$host_os dld.sl"
10481 shlibpath_var=SHLIB_PATH
10482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10486 esac
10487 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10488 postinstall_cmds='chmod 555 $lib'
10489 # or fails outright, so override atomically:
10490 install_override_mode=555
10493 interix[3-9]*)
10494 version_type=linux
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=no
10502 hardcode_into_libs=yes
10505 irix5* | irix6* | nonstopux*)
10506 case $host_os in
10507 nonstopux*) version_type=nonstopux ;;
10509 if test "$lt_cv_prog_gnu_ld" = yes; then
10510 version_type=linux
10511 else
10512 version_type=irix
10513 fi ;;
10514 esac
10515 need_lib_prefix=no
10516 need_version=no
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10519 case $host_os in
10520 irix5* | nonstopux*)
10521 libsuff= shlibsuff=
10524 case $LD in # libtool.m4 will add one of these switches to LD
10525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10526 libsuff= shlibsuff= libmagic=32-bit;;
10527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10528 libsuff=32 shlibsuff=N32 libmagic=N32;;
10529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10531 *) libsuff= shlibsuff= libmagic=never-match;;
10532 esac
10534 esac
10535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10536 shlibpath_overrides_runpath=no
10537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10539 hardcode_into_libs=yes
10542 # No shared lib support for Linux oldld, aout, or coff.
10543 linux*oldld* | linux*aout* | linux*coff*)
10544 dynamic_linker=no
10547 # This must be Linux ELF.
10549 # uclinux* changes (here and below) have been submitted to the libtool
10550 # project, but have not yet been accepted: they are GCC-local changes
10551 # for the time being. (See
10552 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10553 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10554 version_type=linux
10555 need_lib_prefix=no
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10563 # Some binutils ld are patched to set DT_RUNPATH
10564 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 lt_cv_shlibpath_overrides_runpath=no
10568 save_LDFLAGS=$LDFLAGS
10569 save_libdir=$libdir
10570 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10571 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10576 main ()
10580 return 0;
10582 _ACEOF
10583 if ac_fn_c_try_link "$LINENO"; then :
10584 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10585 lt_cv_shlibpath_overrides_runpath=yes
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LDFLAGS=$save_LDFLAGS
10591 libdir=$save_libdir
10595 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10597 # This implies no fast_install, which is unacceptable.
10598 # Some rework will be needed to allow for fast_install
10599 # before this can be enabled.
10600 hardcode_into_libs=yes
10602 # Append ld.so.conf contents to the search path
10603 if test -f /etc/ld.so.conf; then
10604 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' ' '`
10605 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10608 # We used to test for /lib/ld.so.1 and disable shared libraries on
10609 # powerpc, because MkLinux only supported shared libraries with the
10610 # GNU dynamic linker. Since this was broken with cross compilers,
10611 # most powerpc-linux boxes support dynamic linking these days and
10612 # people can always --disable-shared, the test was removed, and we
10613 # assume the GNU/Linux dynamic linker is in use.
10614 dynamic_linker='GNU/Linux ld.so'
10617 netbsd*)
10618 version_type=sunos
10619 need_lib_prefix=no
10620 need_version=no
10621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10624 dynamic_linker='NetBSD (a.out) ld.so'
10625 else
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 dynamic_linker='NetBSD ld.elf_so'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 hardcode_into_libs=yes
10635 newsos6)
10636 version_type=linux
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath=yes
10642 *nto* | *qnx*)
10643 version_type=qnx
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath=no
10650 hardcode_into_libs=yes
10651 dynamic_linker='ldqnx.so'
10654 openbsd*)
10655 version_type=sunos
10656 sys_lib_dlsearch_path_spec="/usr/lib"
10657 need_lib_prefix=no
10658 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10659 case $host_os in
10660 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10661 *) need_version=no ;;
10662 esac
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10667 case $host_os in
10668 openbsd2.[89] | openbsd2.[89].*)
10669 shlibpath_overrides_runpath=no
10672 shlibpath_overrides_runpath=yes
10674 esac
10675 else
10676 shlibpath_overrides_runpath=yes
10680 os2*)
10681 libname_spec='$name'
10682 shrext_cmds=".dll"
10683 need_lib_prefix=no
10684 library_names_spec='$libname${shared_ext} $libname.a'
10685 dynamic_linker='OS/2 ld.exe'
10686 shlibpath_var=LIBPATH
10689 osf3* | osf4* | osf5*)
10690 version_type=osf
10691 need_lib_prefix=no
10692 need_version=no
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10700 rdos*)
10701 dynamic_linker=no
10704 solaris*)
10705 version_type=linux
10706 need_lib_prefix=no
10707 need_version=no
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 shlibpath_overrides_runpath=yes
10712 hardcode_into_libs=yes
10713 # ldd complains unless libraries are executable
10714 postinstall_cmds='chmod +x $lib'
10717 sunos4*)
10718 version_type=sunos
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=yes
10723 if test "$with_gnu_ld" = yes; then
10724 need_lib_prefix=no
10726 need_version=yes
10729 sysv4 | sysv4.3*)
10730 version_type=linux
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 case $host_vendor in
10735 sni)
10736 shlibpath_overrides_runpath=no
10737 need_lib_prefix=no
10738 runpath_var=LD_RUN_PATH
10740 siemens)
10741 need_lib_prefix=no
10743 motorola)
10744 need_lib_prefix=no
10745 need_version=no
10746 shlibpath_overrides_runpath=no
10747 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10749 esac
10752 sysv4*MP*)
10753 if test -d /usr/nec ;then
10754 version_type=linux
10755 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10756 soname_spec='$libname${shared_ext}.$major'
10757 shlibpath_var=LD_LIBRARY_PATH
10761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10762 version_type=freebsd-elf
10763 need_lib_prefix=no
10764 need_version=no
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 hardcode_into_libs=yes
10770 if test "$with_gnu_ld" = yes; then
10771 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10772 else
10773 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10774 case $host_os in
10775 sco3.2v5*)
10776 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10778 esac
10780 sys_lib_dlsearch_path_spec='/usr/lib'
10783 tpf*)
10784 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10785 version_type=linux
10786 need_lib_prefix=no
10787 need_version=no
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10794 uts4*)
10795 version_type=linux
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 shlibpath_var=LD_LIBRARY_PATH
10802 dynamic_linker=no
10804 esac
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10806 $as_echo "$dynamic_linker" >&6; }
10807 test "$dynamic_linker" = no && can_build_shared=no
10809 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10810 if test "$GCC" = yes; then
10811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10814 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10815 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10817 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10818 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10914 hardcode_action=
10915 if test -n "$hardcode_libdir_flag_spec" ||
10916 test -n "$runpath_var" ||
10917 test "X$hardcode_automatic" = "Xyes" ; then
10919 # We can hardcode non-existent directories.
10920 if test "$hardcode_direct" != no &&
10921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10922 # have to relink, otherwise we might link with an installed library
10923 # when we should be linking with a yet-to-be-installed one
10924 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10925 test "$hardcode_minus_L" != no; then
10926 # Linking always hardcodes the temporary library directory.
10927 hardcode_action=relink
10928 else
10929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10930 hardcode_action=immediate
10932 else
10933 # We cannot hardcode anything, or else we can only hardcode existing
10934 # directories.
10935 hardcode_action=unsupported
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10938 $as_echo "$hardcode_action" >&6; }
10940 if test "$hardcode_action" = relink ||
10941 test "$inherit_rpath" = yes; then
10942 # Fast installation is not supported
10943 enable_fast_install=no
10944 elif test "$shlibpath_overrides_runpath" = yes ||
10945 test "$enable_shared" = no; then
10946 # Fast installation is not necessary
10947 enable_fast_install=needless
10955 if test "x$enable_dlopen" != xyes; then
10956 enable_dlopen=unknown
10957 enable_dlopen_self=unknown
10958 enable_dlopen_self_static=unknown
10959 else
10960 lt_cv_dlopen=no
10961 lt_cv_dlopen_libs=
10963 case $host_os in
10964 beos*)
10965 lt_cv_dlopen="load_add_on"
10966 lt_cv_dlopen_libs=
10967 lt_cv_dlopen_self=yes
10970 mingw* | pw32* | cegcc*)
10971 lt_cv_dlopen="LoadLibrary"
10972 lt_cv_dlopen_libs=
10975 cygwin*)
10976 lt_cv_dlopen="dlopen"
10977 lt_cv_dlopen_libs=
10980 darwin*)
10981 # if libdl is installed we need to link against it
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10983 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10984 if ${ac_cv_lib_dl_dlopen+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-ldl $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
11000 main ()
11002 return dlopen ();
11004 return 0;
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_dl_dlopen=yes
11009 else
11010 ac_cv_lib_dl_dlopen=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11017 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11018 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11020 else
11022 lt_cv_dlopen="dyld"
11023 lt_cv_dlopen_libs=
11024 lt_cv_dlopen_self=yes
11031 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11032 if test "x$ac_cv_func_shl_load" = xyes; then :
11033 lt_cv_dlopen="shl_load"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11036 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11037 if ${ac_cv_lib_dld_shl_load+:} false; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char shl_load ();
11053 main ()
11055 return shl_load ();
11057 return 0;
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_dld_shl_load=yes
11062 else
11063 ac_cv_lib_dld_shl_load=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11070 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11071 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11072 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11073 else
11074 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11075 if test "x$ac_cv_func_dlopen" = xyes; then :
11076 lt_cv_dlopen="dlopen"
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11079 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11080 if ${ac_cv_lib_dl_dlopen+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-ldl $LIBS"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char dlopen ();
11096 main ()
11098 return dlopen ();
11100 return 0;
11102 _ACEOF
11103 if ac_fn_c_try_link "$LINENO"; then :
11104 ac_cv_lib_dl_dlopen=yes
11105 else
11106 ac_cv_lib_dl_dlopen=no
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11113 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11114 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11118 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11119 if ${ac_cv_lib_svld_dlopen+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-lsvld $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char dlopen ();
11135 main ()
11137 return dlopen ();
11139 return 0;
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143 ac_cv_lib_svld_dlopen=yes
11144 else
11145 ac_cv_lib_svld_dlopen=no
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11152 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11153 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11157 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11158 if ${ac_cv_lib_dld_dld_link+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 ac_check_lib_save_LIBS=$LIBS
11162 LIBS="-ldld $LIBS"
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char dld_link ();
11174 main ()
11176 return dld_link ();
11178 return 0;
11180 _ACEOF
11181 if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_dld_dld_link=yes
11183 else
11184 ac_cv_lib_dld_dld_link=no
11186 rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11191 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11192 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11193 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11212 esac
11214 if test "x$lt_cv_dlopen" != xno; then
11215 enable_dlopen=yes
11216 else
11217 enable_dlopen=no
11220 case $lt_cv_dlopen in
11221 dlopen)
11222 save_CPPFLAGS="$CPPFLAGS"
11223 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11225 save_LDFLAGS="$LDFLAGS"
11226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11228 save_LIBS="$LIBS"
11229 LIBS="$lt_cv_dlopen_libs $LIBS"
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11232 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11233 if ${lt_cv_dlopen_self+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 if test "$cross_compiling" = yes; then :
11237 lt_cv_dlopen_self=cross
11238 else
11239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11240 lt_status=$lt_dlunknown
11241 cat > conftest.$ac_ext <<_LT_EOF
11242 #line 11242 "configure"
11243 #include "confdefs.h"
11245 #if HAVE_DLFCN_H
11246 #include <dlfcn.h>
11247 #endif
11249 #include <stdio.h>
11251 #ifdef RTLD_GLOBAL
11252 # define LT_DLGLOBAL RTLD_GLOBAL
11253 #else
11254 # ifdef DL_GLOBAL
11255 # define LT_DLGLOBAL DL_GLOBAL
11256 # else
11257 # define LT_DLGLOBAL 0
11258 # endif
11259 #endif
11261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11262 find out it does not work in some platform. */
11263 #ifndef LT_DLLAZY_OR_NOW
11264 # ifdef RTLD_LAZY
11265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11266 # else
11267 # ifdef DL_LAZY
11268 # define LT_DLLAZY_OR_NOW DL_LAZY
11269 # else
11270 # ifdef RTLD_NOW
11271 # define LT_DLLAZY_OR_NOW RTLD_NOW
11272 # else
11273 # ifdef DL_NOW
11274 # define LT_DLLAZY_OR_NOW DL_NOW
11275 # else
11276 # define LT_DLLAZY_OR_NOW 0
11277 # endif
11278 # endif
11279 # endif
11280 # endif
11281 #endif
11283 /* When -fvisbility=hidden is used, assume the code has been annotated
11284 correspondingly for the symbols needed. */
11285 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11286 void fnord () __attribute__((visibility("default")));
11287 #endif
11289 void fnord () { int i=42; }
11290 int main ()
11292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11293 int status = $lt_dlunknown;
11295 if (self)
11297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11298 else
11300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11301 else puts (dlerror ());
11303 /* dlclose (self); */
11305 else
11306 puts (dlerror ());
11308 return status;
11310 _LT_EOF
11311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11312 (eval $ac_link) 2>&5
11313 ac_status=$?
11314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11315 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11316 (./conftest; exit; ) >&5 2>/dev/null
11317 lt_status=$?
11318 case x$lt_status in
11319 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11320 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11321 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11322 esac
11323 else :
11324 # compilation failed
11325 lt_cv_dlopen_self=no
11328 rm -fr conftest*
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11333 $as_echo "$lt_cv_dlopen_self" >&6; }
11335 if test "x$lt_cv_dlopen_self" = xyes; then
11336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11338 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11339 if ${lt_cv_dlopen_self_static+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test "$cross_compiling" = yes; then :
11343 lt_cv_dlopen_self_static=cross
11344 else
11345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11346 lt_status=$lt_dlunknown
11347 cat > conftest.$ac_ext <<_LT_EOF
11348 #line 11348 "configure"
11349 #include "confdefs.h"
11351 #if HAVE_DLFCN_H
11352 #include <dlfcn.h>
11353 #endif
11355 #include <stdio.h>
11357 #ifdef RTLD_GLOBAL
11358 # define LT_DLGLOBAL RTLD_GLOBAL
11359 #else
11360 # ifdef DL_GLOBAL
11361 # define LT_DLGLOBAL DL_GLOBAL
11362 # else
11363 # define LT_DLGLOBAL 0
11364 # endif
11365 #endif
11367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11368 find out it does not work in some platform. */
11369 #ifndef LT_DLLAZY_OR_NOW
11370 # ifdef RTLD_LAZY
11371 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11372 # else
11373 # ifdef DL_LAZY
11374 # define LT_DLLAZY_OR_NOW DL_LAZY
11375 # else
11376 # ifdef RTLD_NOW
11377 # define LT_DLLAZY_OR_NOW RTLD_NOW
11378 # else
11379 # ifdef DL_NOW
11380 # define LT_DLLAZY_OR_NOW DL_NOW
11381 # else
11382 # define LT_DLLAZY_OR_NOW 0
11383 # endif
11384 # endif
11385 # endif
11386 # endif
11387 #endif
11389 /* When -fvisbility=hidden is used, assume the code has been annotated
11390 correspondingly for the symbols needed. */
11391 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11392 void fnord () __attribute__((visibility("default")));
11393 #endif
11395 void fnord () { int i=42; }
11396 int main ()
11398 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11399 int status = $lt_dlunknown;
11401 if (self)
11403 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11404 else
11406 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11407 else puts (dlerror ());
11409 /* dlclose (self); */
11411 else
11412 puts (dlerror ());
11414 return status;
11416 _LT_EOF
11417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11418 (eval $ac_link) 2>&5
11419 ac_status=$?
11420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11422 (./conftest; exit; ) >&5 2>/dev/null
11423 lt_status=$?
11424 case x$lt_status in
11425 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11426 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11427 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11428 esac
11429 else :
11430 # compilation failed
11431 lt_cv_dlopen_self_static=no
11434 rm -fr conftest*
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11439 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11442 CPPFLAGS="$save_CPPFLAGS"
11443 LDFLAGS="$save_LDFLAGS"
11444 LIBS="$save_LIBS"
11446 esac
11448 case $lt_cv_dlopen_self in
11449 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11450 *) enable_dlopen_self=unknown ;;
11451 esac
11453 case $lt_cv_dlopen_self_static in
11454 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11455 *) enable_dlopen_self_static=unknown ;;
11456 esac
11475 striplib=
11476 old_striplib=
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11478 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11479 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11480 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11481 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11483 $as_echo "yes" >&6; }
11484 else
11485 # FIXME - insert some real tests, host_os isn't really good enough
11486 case $host_os in
11487 darwin*)
11488 if test -n "$STRIP" ; then
11489 striplib="$STRIP -x"
11490 old_striplib="$STRIP -S"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11502 esac
11516 # Report which library types will actually be built
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11518 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11520 $as_echo "$can_build_shared" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11523 $as_echo_n "checking whether to build shared libraries... " >&6; }
11524 test "$can_build_shared" = "no" && enable_shared=no
11526 # On AIX, shared libraries and static libraries use the same namespace, and
11527 # are all built from PIC.
11528 case $host_os in
11529 aix3*)
11530 test "$enable_shared" = yes && enable_static=no
11531 if test -n "$RANLIB"; then
11532 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11533 postinstall_cmds='$RANLIB $lib'
11537 aix[4-9]*)
11538 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11539 test "$enable_shared" = yes && enable_static=no
11542 esac
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11544 $as_echo "$enable_shared" >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11547 $as_echo_n "checking whether to build static libraries... " >&6; }
11548 # Make sure either enable_shared or enable_static is yes.
11549 test "$enable_shared" = yes || enable_static=yes
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11551 $as_echo "$enable_static" >&6; }
11557 ac_ext=c
11558 ac_cpp='$CPP $CPPFLAGS'
11559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11563 CC="$lt_save_CC"
11565 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11566 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11567 (test "X$CXX" != "Xg++"))) ; then
11568 ac_ext=cpp
11569 ac_cpp='$CXXCPP $CPPFLAGS'
11570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11574 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11575 if test -z "$CXXCPP"; then
11576 if ${ac_cv_prog_CXXCPP+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 # Double quotes because CXXCPP needs to be expanded
11580 for CXXCPP in "$CXX -E" "/lib/cpp"
11582 ac_preproc_ok=false
11583 for ac_cxx_preproc_warn_flag in '' yes
11585 # Use a header file that comes with gcc, so configuring glibc
11586 # with a fresh cross-compiler works.
11587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 # <limits.h> exists even on freestanding compilers.
11589 # On the NeXT, cc -E runs the code through the compiler's parser,
11590 # not just through cpp. "Syntax error" is here to catch this case.
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 #ifdef __STDC__
11594 # include <limits.h>
11595 #else
11596 # include <assert.h>
11597 #endif
11598 Syntax error
11599 _ACEOF
11600 if ac_fn_cxx_try_cpp "$LINENO"; then :
11602 else
11603 # Broken: fails on valid input.
11604 continue
11606 rm -f conftest.err conftest.i conftest.$ac_ext
11608 # OK, works on sane cases. Now check whether nonexistent headers
11609 # can be detected and how.
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <ac_nonexistent.h>
11613 _ACEOF
11614 if ac_fn_cxx_try_cpp "$LINENO"; then :
11615 # Broken: success on invalid input.
11616 continue
11617 else
11618 # Passes both tests.
11619 ac_preproc_ok=:
11620 break
11622 rm -f conftest.err conftest.i conftest.$ac_ext
11624 done
11625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11626 rm -f conftest.i conftest.err conftest.$ac_ext
11627 if $ac_preproc_ok; then :
11628 break
11631 done
11632 ac_cv_prog_CXXCPP=$CXXCPP
11635 CXXCPP=$ac_cv_prog_CXXCPP
11636 else
11637 ac_cv_prog_CXXCPP=$CXXCPP
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11640 $as_echo "$CXXCPP" >&6; }
11641 ac_preproc_ok=false
11642 for ac_cxx_preproc_warn_flag in '' yes
11644 # Use a header file that comes with gcc, so configuring glibc
11645 # with a fresh cross-compiler works.
11646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 # <limits.h> exists even on freestanding compilers.
11648 # On the NeXT, cc -E runs the code through the compiler's parser,
11649 # not just through cpp. "Syntax error" is here to catch this case.
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #ifdef __STDC__
11653 # include <limits.h>
11654 #else
11655 # include <assert.h>
11656 #endif
11657 Syntax error
11658 _ACEOF
11659 if ac_fn_cxx_try_cpp "$LINENO"; then :
11661 else
11662 # Broken: fails on valid input.
11663 continue
11665 rm -f conftest.err conftest.i conftest.$ac_ext
11667 # OK, works on sane cases. Now check whether nonexistent headers
11668 # can be detected and how.
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671 #include <ac_nonexistent.h>
11672 _ACEOF
11673 if ac_fn_cxx_try_cpp "$LINENO"; then :
11674 # Broken: success on invalid input.
11675 continue
11676 else
11677 # Passes both tests.
11678 ac_preproc_ok=:
11679 break
11681 rm -f conftest.err conftest.i conftest.$ac_ext
11683 done
11684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11685 rm -f conftest.i conftest.err conftest.$ac_ext
11686 if $ac_preproc_ok; then :
11688 else
11689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11691 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11692 See \`config.log' for more details" "$LINENO" 5; }
11695 ac_ext=c
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11701 else
11702 _lt_caught_CXX_error=yes
11705 ac_ext=cpp
11706 ac_cpp='$CXXCPP $CPPFLAGS'
11707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11711 archive_cmds_need_lc_CXX=no
11712 allow_undefined_flag_CXX=
11713 always_export_symbols_CXX=no
11714 archive_expsym_cmds_CXX=
11715 compiler_needs_object_CXX=no
11716 export_dynamic_flag_spec_CXX=
11717 hardcode_direct_CXX=no
11718 hardcode_direct_absolute_CXX=no
11719 hardcode_libdir_flag_spec_CXX=
11720 hardcode_libdir_flag_spec_ld_CXX=
11721 hardcode_libdir_separator_CXX=
11722 hardcode_minus_L_CXX=no
11723 hardcode_shlibpath_var_CXX=unsupported
11724 hardcode_automatic_CXX=no
11725 inherit_rpath_CXX=no
11726 module_cmds_CXX=
11727 module_expsym_cmds_CXX=
11728 link_all_deplibs_CXX=unknown
11729 old_archive_cmds_CXX=$old_archive_cmds
11730 reload_flag_CXX=$reload_flag
11731 reload_cmds_CXX=$reload_cmds
11732 no_undefined_flag_CXX=
11733 whole_archive_flag_spec_CXX=
11734 enable_shared_with_static_runtimes_CXX=no
11736 # Source file extension for C++ test sources.
11737 ac_ext=cpp
11739 # Object file extension for compiled C++ test sources.
11740 objext=o
11741 objext_CXX=$objext
11743 # No sense in running all these tests if we already determined that
11744 # the CXX compiler isn't working. Some variables (like enable_shared)
11745 # are currently assumed to apply to all compilers on this platform,
11746 # and will be corrupted by setting them based on a non-working compiler.
11747 if test "$_lt_caught_CXX_error" != yes; then
11748 # Code to be used in simple compile tests
11749 lt_simple_compile_test_code="int some_variable = 0;"
11751 # Code to be used in simple link tests
11752 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11761 # If no C compiler was specified, use CC.
11762 LTCC=${LTCC-"$CC"}
11764 # If no C compiler flags were specified, use CFLAGS.
11765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11767 # Allow CC to be a program name with arguments.
11768 compiler=$CC
11771 # save warnings/boilerplate of simple test code
11772 ac_outfile=conftest.$ac_objext
11773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11775 _lt_compiler_boilerplate=`cat conftest.err`
11776 $RM conftest*
11778 ac_outfile=conftest.$ac_objext
11779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11781 _lt_linker_boilerplate=`cat conftest.err`
11782 $RM -r conftest*
11785 # Allow CC to be a program name with arguments.
11786 lt_save_CC=$CC
11787 lt_save_LD=$LD
11788 lt_save_GCC=$GCC
11789 GCC=$GXX
11790 lt_save_with_gnu_ld=$with_gnu_ld
11791 lt_save_path_LD=$lt_cv_path_LD
11792 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11793 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11794 else
11795 $as_unset lt_cv_prog_gnu_ld
11797 if test -n "${lt_cv_path_LDCXX+set}"; then
11798 lt_cv_path_LD=$lt_cv_path_LDCXX
11799 else
11800 $as_unset lt_cv_path_LD
11802 test -z "${LDCXX+set}" || LD=$LDCXX
11803 CC=${CXX-"c++"}
11804 compiler=$CC
11805 compiler_CXX=$CC
11806 for cc_temp in $compiler""; do
11807 case $cc_temp in
11808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11810 \-*) ;;
11811 *) break;;
11812 esac
11813 done
11814 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11817 if test -n "$compiler"; then
11818 # We don't want -fno-exception when compiling C++ code, so set the
11819 # no_builtin_flag separately
11820 if test "$GXX" = yes; then
11821 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11822 else
11823 lt_prog_compiler_no_builtin_flag_CXX=
11826 if test "$GXX" = yes; then
11827 # Set up default GNU C++ configuration
11831 # Check whether --with-gnu-ld was given.
11832 if test "${with_gnu_ld+set}" = set; then :
11833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11834 else
11835 with_gnu_ld=no
11838 ac_prog=ld
11839 if test "$GCC" = yes; then
11840 # Check if gcc -print-prog-name=ld gives a path.
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11842 $as_echo_n "checking for ld used by $CC... " >&6; }
11843 case $host in
11844 *-*-mingw*)
11845 # gcc leaves a trailing carriage return which upsets mingw
11846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11849 esac
11850 case $ac_prog in
11851 # Accept absolute paths.
11852 [\\/]* | ?:[\\/]*)
11853 re_direlt='/[^/][^/]*/\.\./'
11854 # Canonicalize the pathname of ld
11855 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11856 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11857 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11858 done
11859 test -z "$LD" && LD="$ac_prog"
11862 # If it fails, then pretend we aren't using GCC.
11863 ac_prog=ld
11866 # If it is relative, then search for the first ld in PATH.
11867 with_gnu_ld=unknown
11869 esac
11870 elif test "$with_gnu_ld" = yes; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11872 $as_echo_n "checking for GNU ld... " >&6; }
11873 else
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11875 $as_echo_n "checking for non-GNU ld... " >&6; }
11877 if ${lt_cv_path_LD+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 if test -z "$LD"; then
11881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11882 for ac_dir in $PATH; do
11883 IFS="$lt_save_ifs"
11884 test -z "$ac_dir" && ac_dir=.
11885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11886 lt_cv_path_LD="$ac_dir/$ac_prog"
11887 # Check to see if the program is GNU ld. I'd rather use --version,
11888 # but apparently some variants of GNU ld only accept -v.
11889 # Break only if it was the GNU/non-GNU ld that we prefer.
11890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11891 *GNU* | *'with BFD'*)
11892 test "$with_gnu_ld" != no && break
11895 test "$with_gnu_ld" != yes && break
11897 esac
11899 done
11900 IFS="$lt_save_ifs"
11901 else
11902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11906 LD="$lt_cv_path_LD"
11907 if test -n "$LD"; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11909 $as_echo "$LD" >&6; }
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11914 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11917 if ${lt_cv_prog_gnu_ld+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11921 case `$LD -v 2>&1 </dev/null` in
11922 *GNU* | *'with BFD'*)
11923 lt_cv_prog_gnu_ld=yes
11926 lt_cv_prog_gnu_ld=no
11928 esac
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11931 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11932 with_gnu_ld=$lt_cv_prog_gnu_ld
11940 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11941 # archiving commands below assume that GNU ld is being used.
11942 if test "$with_gnu_ld" = yes; then
11943 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11944 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'
11946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11949 # If archive_cmds runs LD, not CC, wlarc should be empty
11950 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11951 # investigate it a little bit more. (MM)
11952 wlarc='${wl}'
11954 # ancient GNU ld didn't support --whole-archive et. al.
11955 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11956 $GREP 'no-whole-archive' > /dev/null; then
11957 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11958 else
11959 whole_archive_flag_spec_CXX=
11961 else
11962 with_gnu_ld=no
11963 wlarc=
11965 # A generic and very simple default shared library creation
11966 # command for GNU C++ for the case where it uses the native
11967 # linker, instead of GNU ld. If possible, this setting should
11968 # overridden to take advantage of the native linker features on
11969 # the platform it is being used on.
11970 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11973 # Commands to make compiler produce verbose output that lists
11974 # what "hidden" libraries, object files and flags are used when
11975 # linking a shared library.
11976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11978 else
11979 GXX=no
11980 with_gnu_ld=no
11981 wlarc=
11984 # PORTME: fill in a description of your system's C++ link characteristics
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11986 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11987 ld_shlibs_CXX=yes
11988 case $host_os in
11989 aix3*)
11990 # FIXME: insert proper C++ library support
11991 ld_shlibs_CXX=no
11993 aix[4-9]*)
11994 if test "$host_cpu" = ia64; then
11995 # On IA64, the linker does run time linking by default, so we don't
11996 # have to do anything special.
11997 aix_use_runtimelinking=no
11998 exp_sym_flag='-Bexport'
11999 no_entry_flag=""
12000 else
12001 aix_use_runtimelinking=no
12003 # Test if we are trying to use run time linking or normal
12004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12005 # need to do runtime linking.
12006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12007 for ld_flag in $LDFLAGS; do
12008 case $ld_flag in
12009 *-brtl*)
12010 aix_use_runtimelinking=yes
12011 break
12013 esac
12014 done
12016 esac
12018 exp_sym_flag='-bexport'
12019 no_entry_flag='-bnoentry'
12022 # When large executables or shared objects are built, AIX ld can
12023 # have problems creating the table of contents. If linking a library
12024 # or program results in "error TOC overflow" add -mminimal-toc to
12025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12028 archive_cmds_CXX=''
12029 hardcode_direct_CXX=yes
12030 hardcode_direct_absolute_CXX=yes
12031 hardcode_libdir_separator_CXX=':'
12032 link_all_deplibs_CXX=yes
12033 file_list_spec_CXX='${wl}-f,'
12035 if test "$GXX" = yes; then
12036 case $host_os in aix4.[012]|aix4.[012].*)
12037 # We only want to do this on AIX 4.2 and lower, the check
12038 # below for broken collect2 doesn't work under 4.3+
12039 collect2name=`${CC} -print-prog-name=collect2`
12040 if test -f "$collect2name" &&
12041 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12042 then
12043 # We have reworked collect2
12045 else
12046 # We have old collect2
12047 hardcode_direct_CXX=unsupported
12048 # It fails to find uninstalled libraries when the uninstalled
12049 # path is not listed in the libpath. Setting hardcode_minus_L
12050 # to unsupported forces relinking
12051 hardcode_minus_L_CXX=yes
12052 hardcode_libdir_flag_spec_CXX='-L$libdir'
12053 hardcode_libdir_separator_CXX=
12055 esac
12056 shared_flag='-shared'
12057 if test "$aix_use_runtimelinking" = yes; then
12058 shared_flag="$shared_flag "'${wl}-G'
12060 else
12061 # not using gcc
12062 if test "$host_cpu" = ia64; then
12063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12064 # chokes on -Wl,-G. The following line is correct:
12065 shared_flag='-G'
12066 else
12067 if test "$aix_use_runtimelinking" = yes; then
12068 shared_flag='${wl}-G'
12069 else
12070 shared_flag='${wl}-bM:SRE'
12075 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12076 # It seems that -bexpall does not export symbols beginning with
12077 # underscore (_), so it is better to generate a list of symbols to
12078 # export.
12079 always_export_symbols_CXX=yes
12080 if test "$aix_use_runtimelinking" = yes; then
12081 # Warning - without using the other runtime loading flags (-brtl),
12082 # -berok will link without error, but may produce a broken library.
12083 allow_undefined_flag_CXX='-berok'
12084 # Determine the default libpath from the value encoded in an empty
12085 # executable.
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12090 main ()
12094 return 0;
12096 _ACEOF
12097 if ac_fn_cxx_try_link "$LINENO"; then :
12099 lt_aix_libpath_sed='
12100 /Import File Strings/,/^$/ {
12101 /^0/ {
12102 s/^0 *\(.*\)$/\1/
12106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12107 # Check for a 64-bit object if we didn't find anything.
12108 if test -z "$aix_libpath"; then
12109 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12112 rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12116 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12118 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"
12119 else
12120 if test "$host_cpu" = ia64; then
12121 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12122 allow_undefined_flag_CXX="-z nodefs"
12123 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"
12124 else
12125 # Determine the default libpath from the value encoded in an
12126 # empty executable.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12131 main ()
12135 return 0;
12137 _ACEOF
12138 if ac_fn_cxx_try_link "$LINENO"; then :
12140 lt_aix_libpath_sed='
12141 /Import File Strings/,/^$/ {
12142 /^0/ {
12143 s/^0 *\(.*\)$/\1/
12147 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12148 # Check for a 64-bit object if we didn't find anything.
12149 if test -z "$aix_libpath"; then
12150 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12157 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12158 # Warning - without using the other run time loading flags,
12159 # -berok will link without error, but may produce a broken library.
12160 no_undefined_flag_CXX=' ${wl}-bernotok'
12161 allow_undefined_flag_CXX=' ${wl}-berok'
12162 if test "$with_gnu_ld" = yes; then
12163 # We only use this code for GNU lds that support --whole-archive.
12164 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12165 else
12166 # Exported symbols can be pulled into shared objects from archives
12167 whole_archive_flag_spec_CXX='$convenience'
12169 archive_cmds_need_lc_CXX=yes
12170 # This is similar to how AIX traditionally builds its shared
12171 # libraries.
12172 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'
12177 beos*)
12178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12179 allow_undefined_flag_CXX=unsupported
12180 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12181 # support --undefined. This deserves some investigation. FIXME
12182 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12183 else
12184 ld_shlibs_CXX=no
12188 chorus*)
12189 case $cc_basename in
12191 # FIXME: insert proper C++ library support
12192 ld_shlibs_CXX=no
12194 esac
12197 cygwin* | mingw* | pw32* | cegcc*)
12198 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12199 # as there is no search path for DLLs.
12200 hardcode_libdir_flag_spec_CXX='-L$libdir'
12201 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12202 allow_undefined_flag_CXX=unsupported
12203 always_export_symbols_CXX=no
12204 enable_shared_with_static_runtimes_CXX=yes
12206 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12207 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'
12208 # If the export-symbols file already is a .def file (1st line
12209 # is EXPORTS), use it as is; otherwise, prepend...
12210 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12211 cp $export_symbols $output_objdir/$soname.def;
12212 else
12213 echo EXPORTS > $output_objdir/$soname.def;
12214 cat $export_symbols >> $output_objdir/$soname.def;
12216 $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'
12217 else
12218 ld_shlibs_CXX=no
12221 darwin* | rhapsody*)
12224 archive_cmds_need_lc_CXX=no
12225 hardcode_direct_CXX=no
12226 hardcode_automatic_CXX=yes
12227 hardcode_shlibpath_var_CXX=unsupported
12228 if test "$lt_cv_ld_force_load" = "yes"; then
12229 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\"`'
12230 else
12231 whole_archive_flag_spec_CXX=''
12233 link_all_deplibs_CXX=yes
12234 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12235 case $cc_basename in
12236 ifort*) _lt_dar_can_shared=yes ;;
12237 *) _lt_dar_can_shared=$GCC ;;
12238 esac
12239 if test "$_lt_dar_can_shared" = "yes"; then
12240 output_verbose_link_cmd=func_echo_all
12241 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12242 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12243 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 \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12244 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}"
12245 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12246 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 \$rpath/\$soname \$verstring${_lt_dsymutil}"
12247 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}"
12250 else
12251 ld_shlibs_CXX=no
12256 dgux*)
12257 case $cc_basename in
12258 ec++*)
12259 # FIXME: insert proper C++ library support
12260 ld_shlibs_CXX=no
12262 ghcx*)
12263 # Green Hills C++ Compiler
12264 # FIXME: insert proper C++ library support
12265 ld_shlibs_CXX=no
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
12271 esac
12274 freebsd2.*)
12275 # C++ shared libraries reported to be fairly broken before
12276 # switch to ELF
12277 ld_shlibs_CXX=no
12280 freebsd-elf*)
12281 archive_cmds_need_lc_CXX=no
12284 freebsd* | dragonfly*)
12285 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12286 # conventions
12287 ld_shlibs_CXX=yes
12290 gnu*)
12293 haiku*)
12294 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12295 link_all_deplibs_CXX=yes
12298 hpux9*)
12299 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12300 hardcode_libdir_separator_CXX=:
12301 export_dynamic_flag_spec_CXX='${wl}-E'
12302 hardcode_direct_CXX=yes
12303 hardcode_minus_L_CXX=yes # Not in the search PATH,
12304 # but as the default
12305 # location of the library.
12307 case $cc_basename in
12308 CC*)
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12312 aCC*)
12313 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'
12314 # Commands to make compiler produce verbose output that lists
12315 # what "hidden" libraries, object files and flags are used when
12316 # linking a shared library.
12318 # There doesn't appear to be a way to prevent this compiler from
12319 # explicitly linking system object files so we need to strip them
12320 # from the output so that they don't get included in the library
12321 # dependencies.
12322 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"'
12325 if test "$GXX" = yes; then
12326 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'
12327 else
12328 # FIXME: insert proper C++ library support
12329 ld_shlibs_CXX=no
12332 esac
12335 hpux10*|hpux11*)
12336 if test $with_gnu_ld = no; then
12337 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12338 hardcode_libdir_separator_CXX=:
12340 case $host_cpu in
12341 hppa*64*|ia64*)
12344 export_dynamic_flag_spec_CXX='${wl}-E'
12346 esac
12348 case $host_cpu in
12349 hppa*64*|ia64*)
12350 hardcode_direct_CXX=no
12351 hardcode_shlibpath_var_CXX=no
12354 hardcode_direct_CXX=yes
12355 hardcode_direct_absolute_CXX=yes
12356 hardcode_minus_L_CXX=yes # Not in the search PATH,
12357 # but as the default
12358 # location of the library.
12360 esac
12362 case $cc_basename in
12363 CC*)
12364 # FIXME: insert proper C++ library support
12365 ld_shlibs_CXX=no
12367 aCC*)
12368 case $host_cpu in
12369 hppa*64*)
12370 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12372 ia64*)
12373 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12376 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12378 esac
12379 # Commands to make compiler produce verbose output that lists
12380 # what "hidden" libraries, object files and flags are used when
12381 # linking a shared library.
12383 # There doesn't appear to be a way to prevent this compiler from
12384 # explicitly linking system object files so we need to strip them
12385 # from the output so that they don't get included in the library
12386 # dependencies.
12387 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"'
12390 if test "$GXX" = yes; then
12391 if test $with_gnu_ld = no; then
12392 case $host_cpu in
12393 hppa*64*)
12394 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12396 ia64*)
12397 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12400 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'
12402 esac
12404 else
12405 # FIXME: insert proper C++ library support
12406 ld_shlibs_CXX=no
12409 esac
12412 interix[3-9]*)
12413 hardcode_direct_CXX=no
12414 hardcode_shlibpath_var_CXX=no
12415 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12416 export_dynamic_flag_spec_CXX='${wl}-E'
12417 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12418 # Instead, shared libraries are loaded at an image base (0x10000000 by
12419 # default) and relocated if they conflict, which is a slow very memory
12420 # consuming and fragmenting process. To avoid this, we pick a random,
12421 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12422 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12423 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'
12424 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'
12426 irix5* | irix6*)
12427 case $cc_basename in
12428 CC*)
12429 # SGI C++
12430 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'
12432 # Archives containing C++ object files must be created using
12433 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12434 # necessary to make sure instantiated templates are included
12435 # in the archive.
12436 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12439 if test "$GXX" = yes; then
12440 if test "$with_gnu_ld" = no; then
12441 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'
12442 else
12443 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'
12446 link_all_deplibs_CXX=yes
12448 esac
12449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12450 hardcode_libdir_separator_CXX=:
12451 inherit_rpath_CXX=yes
12454 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12455 case $cc_basename in
12456 KCC*)
12457 # Kuck and Associates, Inc. (KAI) C++ Compiler
12459 # KCC will only create a shared library if the output file
12460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12461 # to its proper name (with version) after linking.
12462 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'
12463 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'
12464 # Commands to make compiler produce verbose output that lists
12465 # what "hidden" libraries, object files and flags are used when
12466 # linking a shared library.
12468 # There doesn't appear to be a way to prevent this compiler from
12469 # explicitly linking system object files so we need to strip them
12470 # from the output so that they don't get included in the library
12471 # dependencies.
12472 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"'
12474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12477 # Archives containing C++ object files must be created using
12478 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12479 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12481 icpc* | ecpc* )
12482 # Intel C++
12483 with_gnu_ld=yes
12484 # version 8.0 and above of icpc choke on multiply defined symbols
12485 # if we add $predep_objects and $postdep_objects, however 7.1 and
12486 # earlier do not add the objects themselves.
12487 case `$CC -V 2>&1` in
12488 *"Version 7."*)
12489 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490 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'
12492 *) # Version 8.0 or newer
12493 tmp_idyn=
12494 case $host_cpu in
12495 ia64*) tmp_idyn=' -i_dynamic';;
12496 esac
12497 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12498 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'
12500 esac
12501 archive_cmds_need_lc_CXX=no
12502 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12504 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12506 pgCC* | pgcpp*)
12507 # Portland Group C++ compiler
12508 case `$CC -V` in
12509 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12510 prelink_cmds_CXX='tpldir=Template.dir~
12511 rm -rf $tpldir~
12512 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12513 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12514 old_archive_cmds_CXX='tpldir=Template.dir~
12515 rm -rf $tpldir~
12516 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12517 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12518 $RANLIB $oldlib'
12519 archive_cmds_CXX='tpldir=Template.dir~
12520 rm -rf $tpldir~
12521 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12522 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12523 archive_expsym_cmds_CXX='tpldir=Template.dir~
12524 rm -rf $tpldir~
12525 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12526 $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'
12528 *) # Version 6 and above use weak symbols
12529 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12530 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'
12532 esac
12534 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12535 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12536 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'
12538 cxx*)
12539 # Compaq C++
12540 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12541 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'
12543 runpath_var=LD_RUN_PATH
12544 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12545 hardcode_libdir_separator_CXX=:
12547 # Commands to make compiler produce verbose output that lists
12548 # what "hidden" libraries, object files and flags are used when
12549 # linking a shared library.
12551 # There doesn't appear to be a way to prevent this compiler from
12552 # explicitly linking system object files so we need to strip them
12553 # from the output so that they don't get included in the library
12554 # dependencies.
12555 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'
12557 xl* | mpixl* | bgxl*)
12558 # IBM XL 8.0 on PPC, with GNU ld
12559 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12561 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12562 if test "x$supports_anon_versioning" = xyes; then
12563 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12565 echo "local: *; };" >> $output_objdir/$libname.ver~
12566 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12570 case `$CC -V 2>&1 | sed 5q` in
12571 *Sun\ C*)
12572 # Sun C++ 5.9
12573 no_undefined_flag_CXX=' -zdefs'
12574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12575 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'
12576 hardcode_libdir_flag_spec_CXX='-R$libdir'
12577 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'
12578 compiler_needs_object_CXX=yes
12580 # Not sure whether something based on
12581 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12582 # would be better.
12583 output_verbose_link_cmd='func_echo_all'
12585 # Archives containing C++ object files must be created using
12586 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12587 # necessary to make sure instantiated templates are included
12588 # in the archive.
12589 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12591 esac
12593 esac
12596 lynxos*)
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12601 m88k*)
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12606 mvs*)
12607 case $cc_basename in
12608 cxx*)
12609 # FIXME: insert proper C++ library support
12610 ld_shlibs_CXX=no
12613 # FIXME: insert proper C++ library support
12614 ld_shlibs_CXX=no
12616 esac
12619 netbsd*)
12620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12621 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12622 wlarc=
12623 hardcode_libdir_flag_spec_CXX='-R$libdir'
12624 hardcode_direct_CXX=yes
12625 hardcode_shlibpath_var_CXX=no
12627 # Workaround some broken pre-1.5 toolchains
12628 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12631 *nto* | *qnx*)
12632 ld_shlibs_CXX=yes
12635 openbsd2*)
12636 # C++ shared libraries are fairly broken
12637 ld_shlibs_CXX=no
12640 openbsd*)
12641 if test -f /usr/libexec/ld.so; then
12642 hardcode_direct_CXX=yes
12643 hardcode_shlibpath_var_CXX=no
12644 hardcode_direct_absolute_CXX=yes
12645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12648 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12649 export_dynamic_flag_spec_CXX='${wl}-E'
12650 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12652 output_verbose_link_cmd=func_echo_all
12653 else
12654 ld_shlibs_CXX=no
12658 osf3* | osf4* | osf5*)
12659 case $cc_basename in
12660 KCC*)
12661 # Kuck and Associates, Inc. (KAI) C++ Compiler
12663 # KCC will only create a shared library if the output file
12664 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12665 # to its proper name (with version) after linking.
12666 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'
12668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12669 hardcode_libdir_separator_CXX=:
12671 # Archives containing C++ object files must be created using
12672 # the KAI C++ compiler.
12673 case $host in
12674 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12675 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12676 esac
12678 RCC*)
12679 # Rational C++ 2.4.1
12680 # FIXME: insert proper C++ library support
12681 ld_shlibs_CXX=no
12683 cxx*)
12684 case $host in
12685 osf3*)
12686 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12687 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'
12688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12691 allow_undefined_flag_CXX=' -expect_unresolved \*'
12692 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'
12693 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12694 echo "-hidden">> $lib.exp~
12695 $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~
12696 $RM $lib.exp'
12697 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12699 esac
12701 hardcode_libdir_separator_CXX=:
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12707 # There doesn't appear to be a way to prevent this compiler from
12708 # explicitly linking system object files so we need to strip them
12709 # from the output so that they don't get included in the library
12710 # dependencies.
12711 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"'
12714 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12715 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12716 case $host in
12717 osf3*)
12718 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'
12721 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'
12723 esac
12725 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12726 hardcode_libdir_separator_CXX=:
12728 # Commands to make compiler produce verbose output that lists
12729 # what "hidden" libraries, object files and flags are used when
12730 # linking a shared library.
12731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12733 else
12734 # FIXME: insert proper C++ library support
12735 ld_shlibs_CXX=no
12738 esac
12741 psos*)
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12746 sunos4*)
12747 case $cc_basename in
12748 CC*)
12749 # Sun C++ 4.x
12750 # FIXME: insert proper C++ library support
12751 ld_shlibs_CXX=no
12753 lcc*)
12754 # Lucid
12755 # FIXME: insert proper C++ library support
12756 ld_shlibs_CXX=no
12759 # FIXME: insert proper C++ library support
12760 ld_shlibs_CXX=no
12762 esac
12765 solaris*)
12766 case $cc_basename in
12767 CC*)
12768 # Sun C++ 4.2, 5.x and Centerline C++
12769 archive_cmds_need_lc_CXX=yes
12770 no_undefined_flag_CXX=' -zdefs'
12771 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12772 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12773 $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'
12775 hardcode_libdir_flag_spec_CXX='-R$libdir'
12776 hardcode_shlibpath_var_CXX=no
12777 case $host_os in
12778 solaris2.[0-5] | solaris2.[0-5].*) ;;
12780 # The compiler driver will combine and reorder linker options,
12781 # but understands `-z linker_flag'.
12782 # Supported since Solaris 2.6 (maybe 2.5.1?)
12783 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12785 esac
12786 link_all_deplibs_CXX=yes
12788 output_verbose_link_cmd='func_echo_all'
12790 # Archives containing C++ object files must be created using
12791 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12792 # necessary to make sure instantiated templates are included
12793 # in the archive.
12794 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12796 gcx*)
12797 # Green Hills C++ Compiler
12798 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12800 # The C++ compiler must be used to create the archive.
12801 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12804 # GNU C++ compiler with Solaris linker
12805 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12806 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12807 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12808 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12809 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12810 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12812 # Commands to make compiler produce verbose output that lists
12813 # what "hidden" libraries, object files and flags are used when
12814 # linking a shared library.
12815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12816 else
12817 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12818 # platform.
12819 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12820 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12821 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12823 # Commands to make compiler produce verbose output that lists
12824 # what "hidden" libraries, object files and flags are used when
12825 # linking a shared library.
12826 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12829 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12830 case $host_os in
12831 solaris2.[0-5] | solaris2.[0-5].*) ;;
12833 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12835 esac
12838 esac
12841 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12842 no_undefined_flag_CXX='${wl}-z,text'
12843 archive_cmds_need_lc_CXX=no
12844 hardcode_shlibpath_var_CXX=no
12845 runpath_var='LD_RUN_PATH'
12847 case $cc_basename in
12848 CC*)
12849 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12850 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12853 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12854 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12856 esac
12859 sysv5* | sco3.2v5* | sco5v6*)
12860 # Note: We can NOT use -z defs as we might desire, because we do not
12861 # link with -lc, and that would cause any symbols used from libc to
12862 # always be unresolved, which means just about no library would
12863 # ever link correctly. If we're not using GNU ld we use -z text
12864 # though, which does catch some bad symbols but isn't as heavy-handed
12865 # as -z defs.
12866 no_undefined_flag_CXX='${wl}-z,text'
12867 allow_undefined_flag_CXX='${wl}-z,nodefs'
12868 archive_cmds_need_lc_CXX=no
12869 hardcode_shlibpath_var_CXX=no
12870 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12871 hardcode_libdir_separator_CXX=':'
12872 link_all_deplibs_CXX=yes
12873 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12874 runpath_var='LD_RUN_PATH'
12876 case $cc_basename in
12877 CC*)
12878 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12879 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12881 '"$old_archive_cmds_CXX"
12882 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12883 '"$reload_cmds_CXX"
12886 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12887 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12889 esac
12892 tandem*)
12893 case $cc_basename in
12894 NCC*)
12895 # NonStop-UX NCC 3.20
12896 # FIXME: insert proper C++ library support
12897 ld_shlibs_CXX=no
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12903 esac
12906 vxworks*)
12907 # FIXME: insert proper C++ library support
12908 ld_shlibs_CXX=no
12912 # FIXME: insert proper C++ library support
12913 ld_shlibs_CXX=no
12915 esac
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12918 $as_echo "$ld_shlibs_CXX" >&6; }
12919 test "$ld_shlibs_CXX" = no && can_build_shared=no
12921 GCC_CXX="$GXX"
12922 LD_CXX="$LD"
12924 ## CAVEAT EMPTOR:
12925 ## There is no encapsulation within the following macros, do not change
12926 ## the running order or otherwise move them around unless you know exactly
12927 ## what you are doing...
12928 # Dependencies to place before and after the object being linked:
12929 predep_objects_CXX=
12930 postdep_objects_CXX=
12931 predeps_CXX=
12932 postdeps_CXX=
12933 compiler_lib_search_path_CXX=
12935 cat > conftest.$ac_ext <<_LT_EOF
12936 class Foo
12938 public:
12939 Foo (void) { a = 0; }
12940 private:
12941 int a;
12943 _LT_EOF
12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12946 (eval $ac_compile) 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; }; then
12950 # Parse the compiler output and extract the necessary
12951 # objects, libraries and library flags.
12953 # Sentinel used to keep track of whether or not we are before
12954 # the conftest object file.
12955 pre_test_object_deps_done=no
12957 for p in `eval "$output_verbose_link_cmd"`; do
12958 case $p in
12960 -L* | -R* | -l*)
12961 # Some compilers place space between "-{L,R}" and the path.
12962 # Remove the space.
12963 if test $p = "-L" ||
12964 test $p = "-R"; then
12965 prev=$p
12966 continue
12967 else
12968 prev=
12971 if test "$pre_test_object_deps_done" = no; then
12972 case $p in
12973 -L* | -R*)
12974 # Internal compiler library paths should come after those
12975 # provided the user. The postdeps already come after the
12976 # user supplied libs so there is no need to process them.
12977 if test -z "$compiler_lib_search_path_CXX"; then
12978 compiler_lib_search_path_CXX="${prev}${p}"
12979 else
12980 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12983 # The "-l" case would never come before the object being
12984 # linked, so don't bother handling this case.
12985 esac
12986 else
12987 if test -z "$postdeps_CXX"; then
12988 postdeps_CXX="${prev}${p}"
12989 else
12990 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12995 *.$objext)
12996 # This assumes that the test object file only shows up
12997 # once in the compiler output.
12998 if test "$p" = "conftest.$objext"; then
12999 pre_test_object_deps_done=yes
13000 continue
13003 if test "$pre_test_object_deps_done" = no; then
13004 if test -z "$predep_objects_CXX"; then
13005 predep_objects_CXX="$p"
13006 else
13007 predep_objects_CXX="$predep_objects_CXX $p"
13009 else
13010 if test -z "$postdep_objects_CXX"; then
13011 postdep_objects_CXX="$p"
13012 else
13013 postdep_objects_CXX="$postdep_objects_CXX $p"
13018 *) ;; # Ignore the rest.
13020 esac
13021 done
13023 # Clean up.
13024 rm -f a.out a.exe
13025 else
13026 echo "libtool.m4: error: problem compiling CXX test program"
13029 $RM -f confest.$objext
13031 # PORTME: override above test on systems where it is broken
13032 case $host_os in
13033 interix[3-9]*)
13034 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13035 # hack all around it, let's just trust "g++" to DTRT.
13036 predep_objects_CXX=
13037 postdep_objects_CXX=
13038 postdeps_CXX=
13041 linux*)
13042 case `$CC -V 2>&1 | sed 5q` in
13043 *Sun\ C*)
13044 # Sun C++ 5.9
13046 # The more standards-conforming stlport4 library is
13047 # incompatible with the Cstd library. Avoid specifying
13048 # it if it's in CXXFLAGS. Ignore libCrun as
13049 # -library=stlport4 depends on it.
13050 case " $CXX $CXXFLAGS " in
13051 *" -library=stlport4 "*)
13052 solaris_use_stlport4=yes
13054 esac
13056 if test "$solaris_use_stlport4" != yes; then
13057 postdeps_CXX='-library=Cstd -library=Crun'
13060 esac
13063 solaris*)
13064 case $cc_basename in
13065 CC*)
13066 # The more standards-conforming stlport4 library is
13067 # incompatible with the Cstd library. Avoid specifying
13068 # it if it's in CXXFLAGS. Ignore libCrun as
13069 # -library=stlport4 depends on it.
13070 case " $CXX $CXXFLAGS " in
13071 *" -library=stlport4 "*)
13072 solaris_use_stlport4=yes
13074 esac
13076 # Adding this requires a known-good setup of shared libraries for
13077 # Sun compiler versions before 5.6, else PIC objects from an old
13078 # archive will be linked into the output, leading to subtle bugs.
13079 if test "$solaris_use_stlport4" != yes; then
13080 postdeps_CXX='-library=Cstd -library=Crun'
13083 esac
13085 esac
13088 case " $postdeps_CXX " in
13089 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13090 esac
13091 compiler_lib_search_dirs_CXX=
13092 if test -n "${compiler_lib_search_path_CXX}"; then
13093 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13126 lt_prog_compiler_wl_CXX=
13127 lt_prog_compiler_pic_CXX=
13128 lt_prog_compiler_static_CXX=
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13131 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13133 # C++ specific cases for pic, static, wl, etc.
13134 if test "$GXX" = yes; then
13135 lt_prog_compiler_wl_CXX='-Wl,'
13136 lt_prog_compiler_static_CXX='-static'
13138 case $host_os in
13139 aix*)
13140 # All AIX code is PIC.
13141 if test "$host_cpu" = ia64; then
13142 # AIX 5 now supports IA64 processor
13143 lt_prog_compiler_static_CXX='-Bstatic'
13145 lt_prog_compiler_pic_CXX='-fPIC'
13148 amigaos*)
13149 case $host_cpu in
13150 powerpc)
13151 # see comment about AmigaOS4 .so support
13152 lt_prog_compiler_pic_CXX='-fPIC'
13154 m68k)
13155 # FIXME: we need at least 68020 code to build shared libraries, but
13156 # adding the `-m68020' flag to GCC prevents building anything better,
13157 # like `-m68040'.
13158 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13160 esac
13163 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13164 # PIC is the default for these OSes.
13166 mingw* | cygwin* | os2* | pw32* | cegcc*)
13167 # This hack is so that the source file can tell whether it is being
13168 # built for inclusion in a dll (and should export symbols for example).
13169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13170 # (--disable-auto-import) libraries
13171 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13173 darwin* | rhapsody*)
13174 # PIC is the default on this platform
13175 # Common symbols not allowed in MH_DYLIB files
13176 lt_prog_compiler_pic_CXX='-fno-common'
13178 *djgpp*)
13179 # DJGPP does not support shared libraries at all
13180 lt_prog_compiler_pic_CXX=
13182 haiku*)
13183 # PIC is the default for Haiku.
13184 # The "-static" flag exists, but is broken.
13185 lt_prog_compiler_static_CXX=
13187 interix[3-9]*)
13188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13189 # Instead, we relocate shared libraries at runtime.
13191 sysv4*MP*)
13192 if test -d /usr/nec; then
13193 lt_prog_compiler_pic_CXX=-Kconform_pic
13196 hpux*)
13197 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13198 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13199 # sets the default TLS model and affects inlining.
13200 case $host_cpu in
13201 hppa*64*)
13204 lt_prog_compiler_pic_CXX='-fPIC'
13206 esac
13208 *qnx* | *nto*)
13209 # QNX uses GNU C++, but need to define -shared option too, otherwise
13210 # it will coredump.
13211 lt_prog_compiler_pic_CXX='-fPIC -shared'
13214 lt_prog_compiler_pic_CXX='-fPIC'
13216 esac
13217 else
13218 case $host_os in
13219 aix[4-9]*)
13220 # All AIX code is PIC.
13221 if test "$host_cpu" = ia64; then
13222 # AIX 5 now supports IA64 processor
13223 lt_prog_compiler_static_CXX='-Bstatic'
13224 else
13225 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13228 chorus*)
13229 case $cc_basename in
13230 cxch68*)
13231 # Green Hills C++ Compiler
13232 # _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"
13234 esac
13236 dgux*)
13237 case $cc_basename in
13238 ec++*)
13239 lt_prog_compiler_pic_CXX='-KPIC'
13241 ghcx*)
13242 # Green Hills C++ Compiler
13243 lt_prog_compiler_pic_CXX='-pic'
13247 esac
13249 freebsd* | dragonfly*)
13250 # FreeBSD uses GNU C++
13252 hpux9* | hpux10* | hpux11*)
13253 case $cc_basename in
13254 CC*)
13255 lt_prog_compiler_wl_CXX='-Wl,'
13256 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13257 if test "$host_cpu" != ia64; then
13258 lt_prog_compiler_pic_CXX='+Z'
13261 aCC*)
13262 lt_prog_compiler_wl_CXX='-Wl,'
13263 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13264 case $host_cpu in
13265 hppa*64*|ia64*)
13266 # +Z the default
13269 lt_prog_compiler_pic_CXX='+Z'
13271 esac
13275 esac
13277 interix*)
13278 # This is c89, which is MS Visual C++ (no shared libs)
13279 # Anyone wants to do a port?
13281 irix5* | irix6* | nonstopux*)
13282 case $cc_basename in
13283 CC*)
13284 lt_prog_compiler_wl_CXX='-Wl,'
13285 lt_prog_compiler_static_CXX='-non_shared'
13286 # CC pic flag -KPIC is the default.
13290 esac
13292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13293 case $cc_basename in
13294 KCC*)
13295 # KAI C++ Compiler
13296 lt_prog_compiler_wl_CXX='--backend -Wl,'
13297 lt_prog_compiler_pic_CXX='-fPIC'
13299 ecpc* )
13300 # old Intel C++ for x86_64 which still supported -KPIC.
13301 lt_prog_compiler_wl_CXX='-Wl,'
13302 lt_prog_compiler_pic_CXX='-KPIC'
13303 lt_prog_compiler_static_CXX='-static'
13305 icpc* )
13306 # Intel C++, used to be incompatible with GCC.
13307 # ICC 10 doesn't accept -KPIC any more.
13308 lt_prog_compiler_wl_CXX='-Wl,'
13309 lt_prog_compiler_pic_CXX='-fPIC'
13310 lt_prog_compiler_static_CXX='-static'
13312 pgCC* | pgcpp*)
13313 # Portland Group C++ compiler
13314 lt_prog_compiler_wl_CXX='-Wl,'
13315 lt_prog_compiler_pic_CXX='-fpic'
13316 lt_prog_compiler_static_CXX='-Bstatic'
13318 cxx*)
13319 # Compaq C++
13320 # Make sure the PIC flag is empty. It appears that all Alpha
13321 # Linux and Compaq Tru64 Unix objects are PIC.
13322 lt_prog_compiler_pic_CXX=
13323 lt_prog_compiler_static_CXX='-non_shared'
13325 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13326 # IBM XL 8.0, 9.0 on PPC and BlueGene
13327 lt_prog_compiler_wl_CXX='-Wl,'
13328 lt_prog_compiler_pic_CXX='-qpic'
13329 lt_prog_compiler_static_CXX='-qstaticlink'
13332 case `$CC -V 2>&1 | sed 5q` in
13333 *Sun\ C*)
13334 # Sun C++ 5.9
13335 lt_prog_compiler_pic_CXX='-KPIC'
13336 lt_prog_compiler_static_CXX='-Bstatic'
13337 lt_prog_compiler_wl_CXX='-Qoption ld '
13339 esac
13341 esac
13343 lynxos*)
13345 m88k*)
13347 mvs*)
13348 case $cc_basename in
13349 cxx*)
13350 lt_prog_compiler_pic_CXX='-W c,exportall'
13354 esac
13356 netbsd*)
13358 *qnx* | *nto*)
13359 # QNX uses GNU C++, but need to define -shared option too, otherwise
13360 # it will coredump.
13361 lt_prog_compiler_pic_CXX='-fPIC -shared'
13363 osf3* | osf4* | osf5*)
13364 case $cc_basename in
13365 KCC*)
13366 lt_prog_compiler_wl_CXX='--backend -Wl,'
13368 RCC*)
13369 # Rational C++ 2.4.1
13370 lt_prog_compiler_pic_CXX='-pic'
13372 cxx*)
13373 # Digital/Compaq C++
13374 lt_prog_compiler_wl_CXX='-Wl,'
13375 # Make sure the PIC flag is empty. It appears that all Alpha
13376 # Linux and Compaq Tru64 Unix objects are PIC.
13377 lt_prog_compiler_pic_CXX=
13378 lt_prog_compiler_static_CXX='-non_shared'
13382 esac
13384 psos*)
13386 solaris*)
13387 case $cc_basename in
13388 CC*)
13389 # Sun C++ 4.2, 5.x and Centerline C++
13390 lt_prog_compiler_pic_CXX='-KPIC'
13391 lt_prog_compiler_static_CXX='-Bstatic'
13392 lt_prog_compiler_wl_CXX='-Qoption ld '
13394 gcx*)
13395 # Green Hills C++ Compiler
13396 lt_prog_compiler_pic_CXX='-PIC'
13400 esac
13402 sunos4*)
13403 case $cc_basename in
13404 CC*)
13405 # Sun C++ 4.x
13406 lt_prog_compiler_pic_CXX='-pic'
13407 lt_prog_compiler_static_CXX='-Bstatic'
13409 lcc*)
13410 # Lucid
13411 lt_prog_compiler_pic_CXX='-pic'
13415 esac
13417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13418 case $cc_basename in
13419 CC*)
13420 lt_prog_compiler_wl_CXX='-Wl,'
13421 lt_prog_compiler_pic_CXX='-KPIC'
13422 lt_prog_compiler_static_CXX='-Bstatic'
13424 esac
13426 tandem*)
13427 case $cc_basename in
13428 NCC*)
13429 # NonStop-UX NCC 3.20
13430 lt_prog_compiler_pic_CXX='-KPIC'
13434 esac
13436 vxworks*)
13439 lt_prog_compiler_can_build_shared_CXX=no
13441 esac
13444 case $host_os in
13445 # For platforms which do not support PIC, -DPIC is meaningless:
13446 *djgpp*)
13447 lt_prog_compiler_pic_CXX=
13450 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13452 esac
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13454 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13459 # Check to make sure the PIC flag actually works.
13461 if test -n "$lt_prog_compiler_pic_CXX"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13463 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13464 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466 else
13467 lt_cv_prog_compiler_pic_works_CXX=no
13468 ac_outfile=conftest.$ac_objext
13469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13470 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13471 # Insert the option either (1) after the last *FLAGS variable, or
13472 # (2) before a word containing "conftest.", or (3) at the end.
13473 # Note that $ac_compile itself does not contain backslashes and begins
13474 # with a dollar sign (not a hyphen), so the echo should work correctly.
13475 # The option is referenced via a variable to avoid confusing sed.
13476 lt_compile=`echo "$ac_compile" | $SED \
13477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13479 -e 's:$: $lt_compiler_flag:'`
13480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13481 (eval "$lt_compile" 2>conftest.err)
13482 ac_status=$?
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 if (exit $ac_status) && test -s "$ac_outfile"; then
13486 # The compiler can only warn and ignore the option if not recognized
13487 # So say no if there are warnings other than the usual output.
13488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13491 lt_cv_prog_compiler_pic_works_CXX=yes
13494 $RM conftest*
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13498 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13500 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13501 case $lt_prog_compiler_pic_CXX in
13502 "" | " "*) ;;
13503 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13504 esac
13505 else
13506 lt_prog_compiler_pic_CXX=
13507 lt_prog_compiler_can_build_shared_CXX=no
13515 # Check to make sure the static flag actually works.
13517 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13519 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13520 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 lt_cv_prog_compiler_static_works_CXX=no
13524 save_LDFLAGS="$LDFLAGS"
13525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13526 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13528 # The linker can only warn and ignore the option if not recognized
13529 # So say no if there are warnings
13530 if test -s conftest.err; then
13531 # Append any errors to the config.log.
13532 cat conftest.err 1>&5
13533 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13535 if diff conftest.exp conftest.er2 >/dev/null; then
13536 lt_cv_prog_compiler_static_works_CXX=yes
13538 else
13539 lt_cv_prog_compiler_static_works_CXX=yes
13542 $RM -r conftest*
13543 LDFLAGS="$save_LDFLAGS"
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13547 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13549 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13551 else
13552 lt_prog_compiler_static_CXX=
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13560 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 lt_cv_prog_compiler_c_o_CXX=no
13564 $RM -r conftest 2>/dev/null
13565 mkdir conftest
13566 cd conftest
13567 mkdir out
13568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13570 lt_compiler_flag="-o out/conftest2.$ac_objext"
13571 # Insert the option either (1) after the last *FLAGS variable, or
13572 # (2) before a word containing "conftest.", or (3) at the end.
13573 # Note that $ac_compile itself does not contain backslashes and begins
13574 # with a dollar sign (not a hyphen), so the echo should work correctly.
13575 lt_compile=`echo "$ac_compile" | $SED \
13576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13578 -e 's:$: $lt_compiler_flag:'`
13579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13580 (eval "$lt_compile" 2>out/conftest.err)
13581 ac_status=$?
13582 cat out/conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13585 then
13586 # The compiler can only warn and ignore the option if not recognized
13587 # So say no if there are warnings
13588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13591 lt_cv_prog_compiler_c_o_CXX=yes
13594 chmod u+w . 2>&5
13595 $RM conftest*
13596 # SGI C++ compiler will create directory out/ii_files/ for
13597 # template instantiation
13598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13599 $RM out/* && rmdir out
13600 cd ..
13601 $RM -r conftest
13602 $RM conftest*
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13606 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13612 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 lt_cv_prog_compiler_c_o_CXX=no
13616 $RM -r conftest 2>/dev/null
13617 mkdir conftest
13618 cd conftest
13619 mkdir out
13620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13622 lt_compiler_flag="-o out/conftest2.$ac_objext"
13623 # Insert the option either (1) after the last *FLAGS variable, or
13624 # (2) before a word containing "conftest.", or (3) at the end.
13625 # Note that $ac_compile itself does not contain backslashes and begins
13626 # with a dollar sign (not a hyphen), so the echo should work correctly.
13627 lt_compile=`echo "$ac_compile" | $SED \
13628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13630 -e 's:$: $lt_compiler_flag:'`
13631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13632 (eval "$lt_compile" 2>out/conftest.err)
13633 ac_status=$?
13634 cat out/conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13637 then
13638 # The compiler can only warn and ignore the option if not recognized
13639 # So say no if there are warnings
13640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13643 lt_cv_prog_compiler_c_o_CXX=yes
13646 chmod u+w . 2>&5
13647 $RM conftest*
13648 # SGI C++ compiler will create directory out/ii_files/ for
13649 # template instantiation
13650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13651 $RM out/* && rmdir out
13652 cd ..
13653 $RM -r conftest
13654 $RM conftest*
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13658 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13663 hard_links="nottested"
13664 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13665 # do not overwrite the value of need_locks provided by the user
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13667 $as_echo_n "checking if we can lock with hard links... " >&6; }
13668 hard_links=yes
13669 $RM conftest*
13670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13671 touch conftest.a
13672 ln conftest.a conftest.b 2>&5 || hard_links=no
13673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13675 $as_echo "$hard_links" >&6; }
13676 if test "$hard_links" = no; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13678 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13679 need_locks=warn
13681 else
13682 need_locks=no
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13688 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13691 case $host_os in
13692 aix[4-9]*)
13693 # If we're using GNU nm, then we don't want the "-C" option.
13694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13695 # Also, AIX nm treats weak defined symbols like other global defined
13696 # symbols, whereas GNU nm marks them as "W".
13697 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13698 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'
13699 else
13700 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'
13703 pw32*)
13704 export_symbols_cmds_CXX="$ltdll_cmds"
13706 cygwin* | mingw* | cegcc*)
13707 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'
13710 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13712 esac
13713 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13716 $as_echo "$ld_shlibs_CXX" >&6; }
13717 test "$ld_shlibs_CXX" = no && can_build_shared=no
13719 with_gnu_ld_CXX=$with_gnu_ld
13727 # Do we need to explicitly link libc?
13729 case "x$archive_cmds_need_lc_CXX" in
13730 x|xyes)
13731 # Assume -lc should be added
13732 archive_cmds_need_lc_CXX=yes
13734 if test "$enable_shared" = yes && test "$GCC" = yes; then
13735 case $archive_cmds_CXX in
13736 *'~'*)
13737 # FIXME: we may have to deal with multi-command sequences.
13739 '$CC '*)
13740 # Test whether the compiler implicitly links with -lc since on some
13741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13742 # to ld, don't add -lc before -lgcc.
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13745 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 $RM conftest*
13749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13752 (eval $ac_compile) 2>&5
13753 ac_status=$?
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; } 2>conftest.err; then
13756 soname=conftest
13757 lib=conftest
13758 libobjs=conftest.$ac_objext
13759 deplibs=
13760 wl=$lt_prog_compiler_wl_CXX
13761 pic_flag=$lt_prog_compiler_pic_CXX
13762 compiler_flags=-v
13763 linker_flags=-v
13764 verstring=
13765 output_objdir=.
13766 libname=conftest
13767 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13768 allow_undefined_flag_CXX=
13769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13770 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13771 ac_status=$?
13772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773 test $ac_status = 0; }
13774 then
13775 lt_cv_archive_cmds_need_lc_CXX=no
13776 else
13777 lt_cv_archive_cmds_need_lc_CXX=yes
13779 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13780 else
13781 cat conftest.err 1>&5
13783 $RM conftest*
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13787 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13788 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13790 esac
13793 esac
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13859 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13861 library_names_spec=
13862 libname_spec='lib$name'
13863 soname_spec=
13864 shrext_cmds=".so"
13865 postinstall_cmds=
13866 postuninstall_cmds=
13867 finish_cmds=
13868 finish_eval=
13869 shlibpath_var=
13870 shlibpath_overrides_runpath=unknown
13871 version_type=none
13872 dynamic_linker="$host_os ld.so"
13873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13874 need_lib_prefix=unknown
13875 hardcode_into_libs=no
13877 # when you set need_version to no, make sure it does not cause -set_version
13878 # flags to be left without arguments
13879 need_version=unknown
13881 case $host_os in
13882 aix3*)
13883 version_type=linux
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13885 shlibpath_var=LIBPATH
13887 # AIX 3 has no versioning support, so we append a major version to the name.
13888 soname_spec='${libname}${release}${shared_ext}$major'
13891 aix[4-9]*)
13892 version_type=linux
13893 need_lib_prefix=no
13894 need_version=no
13895 hardcode_into_libs=yes
13896 if test "$host_cpu" = ia64; then
13897 # AIX 5 supports IA64
13898 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 else
13901 # With GCC up to 2.95.x, collect2 would create an import file
13902 # for dependence libraries. The import file would start with
13903 # the line `#! .'. This would cause the generated library to
13904 # depend on `.', always an invalid library. This was fixed in
13905 # development snapshots of GCC prior to 3.0.
13906 case $host_os in
13907 aix4 | aix4.[01] | aix4.[01].*)
13908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13909 echo ' yes '
13910 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13912 else
13913 can_build_shared=no
13916 esac
13917 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13918 # soname into executable. Probably we can add versioning support to
13919 # collect2, so additional links can be useful in future.
13920 if test "$aix_use_runtimelinking" = yes; then
13921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13922 # instead of lib<name>.a to let people know that these are not
13923 # typical AIX shared libraries.
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925 else
13926 # We preserve .a as extension for shared libraries through AIX4.2
13927 # and later when we are not doing run time linking.
13928 library_names_spec='${libname}${release}.a $libname.a'
13929 soname_spec='${libname}${release}${shared_ext}$major'
13931 shlibpath_var=LIBPATH
13935 amigaos*)
13936 case $host_cpu in
13937 powerpc)
13938 # Since July 2007 AmigaOS4 officially supports .so libraries.
13939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942 m68k)
13943 library_names_spec='$libname.ixlibrary $libname.a'
13944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13945 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'
13947 esac
13950 beos*)
13951 library_names_spec='${libname}${shared_ext}'
13952 dynamic_linker="$host_os ld.so"
13953 shlibpath_var=LIBRARY_PATH
13956 bsdi[45]*)
13957 version_type=linux
13958 need_version=no
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13965 # the default ld.so.conf also contains /usr/contrib/lib and
13966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13967 # libtool to hard-code these into programs
13970 cygwin* | mingw* | pw32* | cegcc*)
13971 version_type=windows
13972 shrext_cmds=".dll"
13973 need_version=no
13974 need_lib_prefix=no
13976 case $GCC,$host_os in
13977 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13978 library_names_spec='$libname.dll.a'
13979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13980 postinstall_cmds='base_file=`basename \${file}`~
13981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13982 dldir=$destdir/`dirname \$dlpath`~
13983 test -d \$dldir || mkdir -p \$dldir~
13984 $install_prog $dir/$dlname \$dldir/$dlname~
13985 chmod a+x \$dldir/$dlname~
13986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13990 dlpath=$dir/\$dldll~
13991 $RM \$dlpath'
13992 shlibpath_overrides_runpath=yes
13994 case $host_os in
13995 cygwin*)
13996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14000 mingw* | cegcc*)
14001 # MinGW DLLs use traditional 'lib' prefix
14002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14004 pw32*)
14005 # pw32 DLLs use 'pw' prefix rather than 'lib'
14006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14008 esac
14012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14014 esac
14015 dynamic_linker='Win32 ld.exe'
14016 # FIXME: first we should search . and the directory the executable is in
14017 shlibpath_var=PATH
14020 darwin* | rhapsody*)
14021 dynamic_linker="$host_os dyld"
14022 version_type=darwin
14023 need_lib_prefix=no
14024 need_version=no
14025 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14026 soname_spec='${libname}${release}${major}$shared_ext'
14027 shlibpath_overrides_runpath=yes
14028 shlibpath_var=DYLD_LIBRARY_PATH
14029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14034 dgux*)
14035 version_type=linux
14036 need_lib_prefix=no
14037 need_version=no
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LD_LIBRARY_PATH
14043 freebsd* | dragonfly*)
14044 # DragonFly does not have aout. When/if they implement a new
14045 # versioning mechanism, adjust this.
14046 if test -x /usr/bin/objformat; then
14047 objformat=`/usr/bin/objformat`
14048 else
14049 case $host_os in
14050 freebsd[23].*) objformat=aout ;;
14051 *) objformat=elf ;;
14052 esac
14054 version_type=freebsd-$objformat
14055 case $version_type in
14056 freebsd-elf*)
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14058 need_version=no
14059 need_lib_prefix=no
14061 freebsd-*)
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14063 need_version=yes
14065 esac
14066 shlibpath_var=LD_LIBRARY_PATH
14067 case $host_os in
14068 freebsd2.*)
14069 shlibpath_overrides_runpath=yes
14071 freebsd3.[01]* | freebsdelf3.[01]*)
14072 shlibpath_overrides_runpath=yes
14073 hardcode_into_libs=yes
14075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14077 shlibpath_overrides_runpath=no
14078 hardcode_into_libs=yes
14080 *) # from 4.6 on, and DragonFly
14081 shlibpath_overrides_runpath=yes
14082 hardcode_into_libs=yes
14084 esac
14087 gnu*)
14088 version_type=linux
14089 need_lib_prefix=no
14090 need_version=no
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 hardcode_into_libs=yes
14097 haiku*)
14098 version_type=linux
14099 need_lib_prefix=no
14100 need_version=no
14101 dynamic_linker="$host_os runtime_loader"
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 shlibpath_var=LIBRARY_PATH
14105 shlibpath_overrides_runpath=yes
14106 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14107 hardcode_into_libs=yes
14110 hpux9* | hpux10* | hpux11*)
14111 # Give a soname corresponding to the major version so that dld.sl refuses to
14112 # link against other versions.
14113 version_type=sunos
14114 need_lib_prefix=no
14115 need_version=no
14116 case $host_cpu in
14117 ia64*)
14118 shrext_cmds='.so'
14119 hardcode_into_libs=yes
14120 dynamic_linker="$host_os dld.so"
14121 shlibpath_var=LD_LIBRARY_PATH
14122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 if test "X$HPUX_IA64_MODE" = X32; then
14126 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14127 else
14128 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14132 hppa*64*)
14133 shrext_cmds='.sl'
14134 hardcode_into_libs=yes
14135 dynamic_linker="$host_os dld.sl"
14136 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14144 shrext_cmds='.sl'
14145 dynamic_linker="$host_os dld.sl"
14146 shlibpath_var=SHLIB_PATH
14147 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14149 soname_spec='${libname}${release}${shared_ext}$major'
14151 esac
14152 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14153 postinstall_cmds='chmod 555 $lib'
14154 # or fails outright, so override atomically:
14155 install_override_mode=555
14158 interix[3-9]*)
14159 version_type=linux
14160 need_lib_prefix=no
14161 need_version=no
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14165 shlibpath_var=LD_LIBRARY_PATH
14166 shlibpath_overrides_runpath=no
14167 hardcode_into_libs=yes
14170 irix5* | irix6* | nonstopux*)
14171 case $host_os in
14172 nonstopux*) version_type=nonstopux ;;
14174 if test "$lt_cv_prog_gnu_ld" = yes; then
14175 version_type=linux
14176 else
14177 version_type=irix
14178 fi ;;
14179 esac
14180 need_lib_prefix=no
14181 need_version=no
14182 soname_spec='${libname}${release}${shared_ext}$major'
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14184 case $host_os in
14185 irix5* | nonstopux*)
14186 libsuff= shlibsuff=
14189 case $LD in # libtool.m4 will add one of these switches to LD
14190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14191 libsuff= shlibsuff= libmagic=32-bit;;
14192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14193 libsuff=32 shlibsuff=N32 libmagic=N32;;
14194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14195 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14196 *) libsuff= shlibsuff= libmagic=never-match;;
14197 esac
14199 esac
14200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14201 shlibpath_overrides_runpath=no
14202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14204 hardcode_into_libs=yes
14207 # No shared lib support for Linux oldld, aout, or coff.
14208 linux*oldld* | linux*aout* | linux*coff*)
14209 dynamic_linker=no
14212 # This must be Linux ELF.
14214 # uclinux* changes (here and below) have been submitted to the libtool
14215 # project, but have not yet been accepted: they are GCC-local changes
14216 # for the time being. (See
14217 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14218 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14219 version_type=linux
14220 need_lib_prefix=no
14221 need_version=no
14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223 soname_spec='${libname}${release}${shared_ext}$major'
14224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 shlibpath_overrides_runpath=no
14228 # Some binutils ld are patched to set DT_RUNPATH
14229 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 lt_cv_shlibpath_overrides_runpath=no
14233 save_LDFLAGS=$LDFLAGS
14234 save_libdir=$libdir
14235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14241 main ()
14245 return 0;
14247 _ACEOF
14248 if ac_fn_cxx_try_link "$LINENO"; then :
14249 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14250 lt_cv_shlibpath_overrides_runpath=yes
14253 rm -f core conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 LDFLAGS=$save_LDFLAGS
14256 libdir=$save_libdir
14260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14262 # This implies no fast_install, which is unacceptable.
14263 # Some rework will be needed to allow for fast_install
14264 # before this can be enabled.
14265 hardcode_into_libs=yes
14267 # Append ld.so.conf contents to the search path
14268 if test -f /etc/ld.so.conf; then
14269 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' ' '`
14270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14273 # We used to test for /lib/ld.so.1 and disable shared libraries on
14274 # powerpc, because MkLinux only supported shared libraries with the
14275 # GNU dynamic linker. Since this was broken with cross compilers,
14276 # most powerpc-linux boxes support dynamic linking these days and
14277 # people can always --disable-shared, the test was removed, and we
14278 # assume the GNU/Linux dynamic linker is in use.
14279 dynamic_linker='GNU/Linux ld.so'
14282 netbsd*)
14283 version_type=sunos
14284 need_lib_prefix=no
14285 need_version=no
14286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14289 dynamic_linker='NetBSD (a.out) ld.so'
14290 else
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 dynamic_linker='NetBSD ld.elf_so'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 shlibpath_overrides_runpath=yes
14297 hardcode_into_libs=yes
14300 newsos6)
14301 version_type=linux
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=yes
14307 *nto* | *qnx*)
14308 version_type=qnx
14309 need_lib_prefix=no
14310 need_version=no
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 shlibpath_var=LD_LIBRARY_PATH
14314 shlibpath_overrides_runpath=no
14315 hardcode_into_libs=yes
14316 dynamic_linker='ldqnx.so'
14319 openbsd*)
14320 version_type=sunos
14321 sys_lib_dlsearch_path_spec="/usr/lib"
14322 need_lib_prefix=no
14323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14324 case $host_os in
14325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14326 *) need_version=no ;;
14327 esac
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14332 case $host_os in
14333 openbsd2.[89] | openbsd2.[89].*)
14334 shlibpath_overrides_runpath=no
14337 shlibpath_overrides_runpath=yes
14339 esac
14340 else
14341 shlibpath_overrides_runpath=yes
14345 os2*)
14346 libname_spec='$name'
14347 shrext_cmds=".dll"
14348 need_lib_prefix=no
14349 library_names_spec='$libname${shared_ext} $libname.a'
14350 dynamic_linker='OS/2 ld.exe'
14351 shlibpath_var=LIBPATH
14354 osf3* | osf4* | osf5*)
14355 version_type=osf
14356 need_lib_prefix=no
14357 need_version=no
14358 soname_spec='${libname}${release}${shared_ext}$major'
14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14365 rdos*)
14366 dynamic_linker=no
14369 solaris*)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=yes
14377 hardcode_into_libs=yes
14378 # ldd complains unless libraries are executable
14379 postinstall_cmds='chmod +x $lib'
14382 sunos4*)
14383 version_type=sunos
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14386 shlibpath_var=LD_LIBRARY_PATH
14387 shlibpath_overrides_runpath=yes
14388 if test "$with_gnu_ld" = yes; then
14389 need_lib_prefix=no
14391 need_version=yes
14394 sysv4 | sysv4.3*)
14395 version_type=linux
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 case $host_vendor in
14400 sni)
14401 shlibpath_overrides_runpath=no
14402 need_lib_prefix=no
14403 runpath_var=LD_RUN_PATH
14405 siemens)
14406 need_lib_prefix=no
14408 motorola)
14409 need_lib_prefix=no
14410 need_version=no
14411 shlibpath_overrides_runpath=no
14412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14414 esac
14417 sysv4*MP*)
14418 if test -d /usr/nec ;then
14419 version_type=linux
14420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14421 soname_spec='$libname${shared_ext}.$major'
14422 shlibpath_var=LD_LIBRARY_PATH
14426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14427 version_type=freebsd-elf
14428 need_lib_prefix=no
14429 need_version=no
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes
14434 hardcode_into_libs=yes
14435 if test "$with_gnu_ld" = yes; then
14436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14437 else
14438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14439 case $host_os in
14440 sco3.2v5*)
14441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14443 esac
14445 sys_lib_dlsearch_path_spec='/usr/lib'
14448 tpf*)
14449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=no
14456 hardcode_into_libs=yes
14459 uts4*)
14460 version_type=linux
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 shlibpath_var=LD_LIBRARY_PATH
14467 dynamic_linker=no
14469 esac
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14471 $as_echo "$dynamic_linker" >&6; }
14472 test "$dynamic_linker" = no && can_build_shared=no
14474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14475 if test "$GCC" = yes; then
14476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14524 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14525 hardcode_action_CXX=
14526 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14527 test -n "$runpath_var_CXX" ||
14528 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14530 # We can hardcode non-existent directories.
14531 if test "$hardcode_direct_CXX" != no &&
14532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14533 # have to relink, otherwise we might link with an installed library
14534 # when we should be linking with a yet-to-be-installed one
14535 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14536 test "$hardcode_minus_L_CXX" != no; then
14537 # Linking always hardcodes the temporary library directory.
14538 hardcode_action_CXX=relink
14539 else
14540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14541 hardcode_action_CXX=immediate
14543 else
14544 # We cannot hardcode anything, or else we can only hardcode existing
14545 # directories.
14546 hardcode_action_CXX=unsupported
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14549 $as_echo "$hardcode_action_CXX" >&6; }
14551 if test "$hardcode_action_CXX" = relink ||
14552 test "$inherit_rpath_CXX" = yes; then
14553 # Fast installation is not supported
14554 enable_fast_install=no
14555 elif test "$shlibpath_overrides_runpath" = yes ||
14556 test "$enable_shared" = no; then
14557 # Fast installation is not necessary
14558 enable_fast_install=needless
14567 fi # test -n "$compiler"
14569 CC=$lt_save_CC
14570 LDCXX=$LD
14571 LD=$lt_save_LD
14572 GCC=$lt_save_GCC
14573 with_gnu_ld=$lt_save_with_gnu_ld
14574 lt_cv_path_LDCXX=$lt_cv_path_LD
14575 lt_cv_path_LD=$lt_save_path_LD
14576 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14577 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14578 fi # test "$_lt_caught_CXX_error" != yes
14580 ac_ext=c
14581 ac_cpp='$CPP $CPPFLAGS'
14582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14598 ac_config_commands="$ac_config_commands libtool"
14603 # Only expand once:
14609 ac_config_headers="$ac_config_headers target-config.h"
14612 # The cast to long int works around a bug in the HP C Compiler
14613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14615 # This bug is HP SR number 8606223364.
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14617 $as_echo_n "checking size of int... " >&6; }
14618 if ${ac_cv_sizeof_int+:} false; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14623 else
14624 if test "$ac_cv_type_int" = yes; then
14625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14627 as_fn_error 77 "cannot compute sizeof (int)
14628 See \`config.log' for more details" "$LINENO" 5; }
14629 else
14630 ac_cv_sizeof_int=0
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14636 $as_echo "$ac_cv_sizeof_int" >&6; }
14640 cat >>confdefs.h <<_ACEOF
14641 #define SIZEOF_INT $ac_cv_sizeof_int
14642 _ACEOF
14645 # The cast to long int works around a bug in the HP C Compiler
14646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14648 # This bug is HP SR number 8606223364.
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14650 $as_echo_n "checking size of void*... " >&6; }
14651 if ${ac_cv_sizeof_voidp+:} false; then :
14652 $as_echo_n "(cached) " >&6
14653 else
14654 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
14656 else
14657 if test "$ac_cv_type_voidp" = yes; then
14658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14660 as_fn_error 77 "cannot compute sizeof (void*)
14661 See \`config.log' for more details" "$LINENO" 5; }
14662 else
14663 ac_cv_sizeof_voidp=0
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14669 $as_echo "$ac_cv_sizeof_voidp" >&6; }
14673 cat >>confdefs.h <<_ACEOF
14674 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14675 _ACEOF
14679 # Determine what GCC version number to use in filesystem paths.
14681 get_gcc_base_ver="cat"
14683 # Check whether --with-gcc-major-version-only was given.
14684 if test "${with_gcc_major_version_only+set}" = set; then :
14685 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14686 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14694 # Must be last
14695 cat >confcache <<\_ACEOF
14696 # This file is a shell script that caches the results of configure
14697 # tests run on this system so they can be shared between configure
14698 # scripts and configure runs, see configure's option --config-cache.
14699 # It is not useful on other systems. If it contains results you don't
14700 # want to keep, you may remove or edit it.
14702 # config.status only pays attention to the cache file if you give it
14703 # the --recheck option to rerun configure.
14705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14707 # following values.
14709 _ACEOF
14711 # The following way of writing the cache mishandles newlines in values,
14712 # but we know of no workaround that is simple, portable, and efficient.
14713 # So, we kill variables containing newlines.
14714 # Ultrix sh set writes to stderr and can't be redirected directly,
14715 # and sets the high bit in the cache file unless we assign to the vars.
14717 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14718 eval ac_val=\$$ac_var
14719 case $ac_val in #(
14720 *${as_nl}*)
14721 case $ac_var in #(
14722 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14723 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14724 esac
14725 case $ac_var in #(
14726 _ | IFS | as_nl) ;; #(
14727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14728 *) { eval $ac_var=; unset $ac_var;} ;;
14729 esac ;;
14730 esac
14731 done
14733 (set) 2>&1 |
14734 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14735 *${as_nl}ac_space=\ *)
14736 # `set' does not quote correctly, so add quotes: double-quote
14737 # substitution turns \\\\ into \\, and sed turns \\ into \.
14738 sed -n \
14739 "s/'/'\\\\''/g;
14740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14741 ;; #(
14743 # `set' quotes correctly as required by POSIX, so do not add quotes.
14744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14746 esac |
14747 sort
14749 sed '
14750 /^ac_cv_env_/b end
14751 t clear
14752 :clear
14753 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14754 t end
14755 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14756 :end' >>confcache
14757 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14758 if test -w "$cache_file"; then
14759 if test "x$cache_file" != "x/dev/null"; then
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14761 $as_echo "$as_me: updating cache $cache_file" >&6;}
14762 if test ! -f "$cache_file" || test -h "$cache_file"; then
14763 cat confcache >"$cache_file"
14764 else
14765 case $cache_file in #(
14766 */* | ?:*)
14767 mv -f confcache "$cache_file"$$ &&
14768 mv -f "$cache_file"$$ "$cache_file" ;; #(
14770 mv -f confcache "$cache_file" ;;
14771 esac
14774 else
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14776 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14779 rm -f confcache
14781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14782 # Let make expand exec_prefix.
14783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14785 DEFS=-DHAVE_CONFIG_H
14787 ac_libobjs=
14788 ac_ltlibobjs=
14790 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14791 # 1. Remove the extension, and $U if already installed.
14792 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14793 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14794 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14795 # will be set to the directory where LIBOBJS objects are built.
14796 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14797 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14798 done
14799 LIBOBJS=$ac_libobjs
14801 LTLIBOBJS=$ac_ltlibobjs
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14805 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14806 if test -n "$am_sleep_pid"; then
14807 # Hide warnings about reused PIDs.
14808 wait $am_sleep_pid 2>/dev/null
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14811 $as_echo "done" >&6; }
14812 if test -n "$EXEEXT"; then
14813 am__EXEEXT_TRUE=
14814 am__EXEEXT_FALSE='#'
14815 else
14816 am__EXEEXT_TRUE='#'
14817 am__EXEEXT_FALSE=
14820 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14821 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14824 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14825 as_fn_error $? "conditional \"AMDEP\" was never defined.
14826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14828 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14829 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14832 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14833 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14836 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14837 as_fn_error $? "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14840 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14841 as_fn_error $? "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14845 : "${CONFIG_STATUS=./config.status}"
14846 ac_write_fail=0
14847 ac_clean_files_save=$ac_clean_files
14848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14850 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14851 as_write_fail=0
14852 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14853 #! $SHELL
14854 # Generated by $as_me.
14855 # Run this file to recreate the current configuration.
14856 # Compiler output produced by configure, useful for debugging
14857 # configure, is in config.log if it exists.
14859 debug=false
14860 ac_cs_recheck=false
14861 ac_cs_silent=false
14863 SHELL=\${CONFIG_SHELL-$SHELL}
14864 export SHELL
14865 _ASEOF
14866 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14867 ## -------------------- ##
14868 ## M4sh Initialization. ##
14869 ## -------------------- ##
14871 # Be more Bourne compatible
14872 DUALCASE=1; export DUALCASE # for MKS sh
14873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14874 emulate sh
14875 NULLCMD=:
14876 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14877 # is contrary to our usage. Disable this feature.
14878 alias -g '${1+"$@"}'='"$@"'
14879 setopt NO_GLOB_SUBST
14880 else
14881 case `(set -o) 2>/dev/null` in #(
14882 *posix*) :
14883 set -o posix ;; #(
14884 *) :
14886 esac
14890 as_nl='
14892 export as_nl
14893 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14894 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14897 # Prefer a ksh shell builtin over an external printf program on Solaris,
14898 # but without wasting forks for bash or zsh.
14899 if test -z "$BASH_VERSION$ZSH_VERSION" \
14900 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14901 as_echo='print -r --'
14902 as_echo_n='print -rn --'
14903 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14904 as_echo='printf %s\n'
14905 as_echo_n='printf %s'
14906 else
14907 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14908 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14909 as_echo_n='/usr/ucb/echo -n'
14910 else
14911 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14912 as_echo_n_body='eval
14913 arg=$1;
14914 case $arg in #(
14915 *"$as_nl"*)
14916 expr "X$arg" : "X\\(.*\\)$as_nl";
14917 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14918 esac;
14919 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14921 export as_echo_n_body
14922 as_echo_n='sh -c $as_echo_n_body as_echo'
14924 export as_echo_body
14925 as_echo='sh -c $as_echo_body as_echo'
14928 # The user is always right.
14929 if test "${PATH_SEPARATOR+set}" != set; then
14930 PATH_SEPARATOR=:
14931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14932 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14933 PATH_SEPARATOR=';'
14938 # IFS
14939 # We need space, tab and new line, in precisely that order. Quoting is
14940 # there to prevent editors from complaining about space-tab.
14941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14942 # splitting by setting IFS to empty value.)
14943 IFS=" "" $as_nl"
14945 # Find who we are. Look in the path if we contain no directory separator.
14946 as_myself=
14947 case $0 in #((
14948 *[\\/]* ) as_myself=$0 ;;
14949 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14950 for as_dir in $PATH
14952 IFS=$as_save_IFS
14953 test -z "$as_dir" && as_dir=.
14954 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14955 done
14956 IFS=$as_save_IFS
14959 esac
14960 # We did not find ourselves, most probably we were run as `sh COMMAND'
14961 # in which case we are not to be found in the path.
14962 if test "x$as_myself" = x; then
14963 as_myself=$0
14965 if test ! -f "$as_myself"; then
14966 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14967 exit 1
14970 # Unset variables that we do not need and which cause bugs (e.g. in
14971 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14972 # suppresses any "Segmentation fault" message there. '((' could
14973 # trigger a bug in pdksh 5.2.14.
14974 for as_var in BASH_ENV ENV MAIL MAILPATH
14975 do eval test x\${$as_var+set} = xset \
14976 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14977 done
14978 PS1='$ '
14979 PS2='> '
14980 PS4='+ '
14982 # NLS nuisances.
14983 LC_ALL=C
14984 export LC_ALL
14985 LANGUAGE=C
14986 export LANGUAGE
14988 # CDPATH.
14989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14992 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14993 # ----------------------------------------
14994 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14995 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14996 # script with STATUS, using 1 if that was 0.
14997 as_fn_error ()
14999 as_status=$1; test $as_status -eq 0 && as_status=1
15000 if test "$4"; then
15001 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15002 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15004 $as_echo "$as_me: error: $2" >&2
15005 as_fn_exit $as_status
15006 } # as_fn_error
15009 # as_fn_set_status STATUS
15010 # -----------------------
15011 # Set $? to STATUS, without forking.
15012 as_fn_set_status ()
15014 return $1
15015 } # as_fn_set_status
15017 # as_fn_exit STATUS
15018 # -----------------
15019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15020 as_fn_exit ()
15022 set +e
15023 as_fn_set_status $1
15024 exit $1
15025 } # as_fn_exit
15027 # as_fn_unset VAR
15028 # ---------------
15029 # Portably unset VAR.
15030 as_fn_unset ()
15032 { eval $1=; unset $1;}
15034 as_unset=as_fn_unset
15035 # as_fn_append VAR VALUE
15036 # ----------------------
15037 # Append the text in VALUE to the end of the definition contained in VAR. Take
15038 # advantage of any shell optimizations that allow amortized linear growth over
15039 # repeated appends, instead of the typical quadratic growth present in naive
15040 # implementations.
15041 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15042 eval 'as_fn_append ()
15044 eval $1+=\$2
15046 else
15047 as_fn_append ()
15049 eval $1=\$$1\$2
15051 fi # as_fn_append
15053 # as_fn_arith ARG...
15054 # ------------------
15055 # Perform arithmetic evaluation on the ARGs, and store the result in the
15056 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15057 # must be portable across $(()) and expr.
15058 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15059 eval 'as_fn_arith ()
15061 as_val=$(( $* ))
15063 else
15064 as_fn_arith ()
15066 as_val=`expr "$@" || test $? -eq 1`
15068 fi # as_fn_arith
15071 if expr a : '\(a\)' >/dev/null 2>&1 &&
15072 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15073 as_expr=expr
15074 else
15075 as_expr=false
15078 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15079 as_basename=basename
15080 else
15081 as_basename=false
15084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15085 as_dirname=dirname
15086 else
15087 as_dirname=false
15090 as_me=`$as_basename -- "$0" ||
15091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15092 X"$0" : 'X\(//\)$' \| \
15093 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15094 $as_echo X/"$0" |
15095 sed '/^.*\/\([^/][^/]*\)\/*$/{
15096 s//\1/
15099 /^X\/\(\/\/\)$/{
15100 s//\1/
15103 /^X\/\(\/\).*/{
15104 s//\1/
15107 s/.*/./; q'`
15109 # Avoid depending upon Character Ranges.
15110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15113 as_cr_digits='0123456789'
15114 as_cr_alnum=$as_cr_Letters$as_cr_digits
15116 ECHO_C= ECHO_N= ECHO_T=
15117 case `echo -n x` in #(((((
15118 -n*)
15119 case `echo 'xy\c'` in
15120 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15121 xy) ECHO_C='\c';;
15122 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15123 ECHO_T=' ';;
15124 esac;;
15126 ECHO_N='-n';;
15127 esac
15129 rm -f conf$$ conf$$.exe conf$$.file
15130 if test -d conf$$.dir; then
15131 rm -f conf$$.dir/conf$$.file
15132 else
15133 rm -f conf$$.dir
15134 mkdir conf$$.dir 2>/dev/null
15136 if (echo >conf$$.file) 2>/dev/null; then
15137 if ln -s conf$$.file conf$$ 2>/dev/null; then
15138 as_ln_s='ln -s'
15139 # ... but there are two gotchas:
15140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15142 # In both cases, we have to default to `cp -pR'.
15143 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15144 as_ln_s='cp -pR'
15145 elif ln conf$$.file conf$$ 2>/dev/null; then
15146 as_ln_s=ln
15147 else
15148 as_ln_s='cp -pR'
15150 else
15151 as_ln_s='cp -pR'
15153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15154 rmdir conf$$.dir 2>/dev/null
15157 # as_fn_mkdir_p
15158 # -------------
15159 # Create "$as_dir" as a directory, including parents if necessary.
15160 as_fn_mkdir_p ()
15163 case $as_dir in #(
15164 -*) as_dir=./$as_dir;;
15165 esac
15166 test -d "$as_dir" || eval $as_mkdir_p || {
15167 as_dirs=
15168 while :; do
15169 case $as_dir in #(
15170 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15171 *) as_qdir=$as_dir;;
15172 esac
15173 as_dirs="'$as_qdir' $as_dirs"
15174 as_dir=`$as_dirname -- "$as_dir" ||
15175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15176 X"$as_dir" : 'X\(//\)[^/]' \| \
15177 X"$as_dir" : 'X\(//\)$' \| \
15178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15179 $as_echo X"$as_dir" |
15180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15181 s//\1/
15184 /^X\(\/\/\)[^/].*/{
15185 s//\1/
15188 /^X\(\/\/\)$/{
15189 s//\1/
15192 /^X\(\/\).*/{
15193 s//\1/
15196 s/.*/./; q'`
15197 test -d "$as_dir" && break
15198 done
15199 test -z "$as_dirs" || eval "mkdir $as_dirs"
15200 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15203 } # as_fn_mkdir_p
15204 if mkdir -p . 2>/dev/null; then
15205 as_mkdir_p='mkdir -p "$as_dir"'
15206 else
15207 test -d ./-p && rmdir ./-p
15208 as_mkdir_p=false
15212 # as_fn_executable_p FILE
15213 # -----------------------
15214 # Test if FILE is an executable regular file.
15215 as_fn_executable_p ()
15217 test -f "$1" && test -x "$1"
15218 } # as_fn_executable_p
15219 as_test_x='test -x'
15220 as_executable_p=as_fn_executable_p
15222 # Sed expression to map a string onto a valid CPP name.
15223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15225 # Sed expression to map a string onto a valid variable name.
15226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15229 exec 6>&1
15230 ## ----------------------------------- ##
15231 ## Main body of $CONFIG_STATUS script. ##
15232 ## ----------------------------------- ##
15233 _ASEOF
15234 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 # Save the log message, to keep $0 and so on meaningful, and to
15238 # report actual input values of CONFIG_FILES etc. instead of their
15239 # values after options handling.
15240 ac_log="
15241 This file was extended by phsa HSAIL runtime library $as_me 1.0, which was
15242 generated by GNU Autoconf 2.69. Invocation command line was
15244 CONFIG_FILES = $CONFIG_FILES
15245 CONFIG_HEADERS = $CONFIG_HEADERS
15246 CONFIG_LINKS = $CONFIG_LINKS
15247 CONFIG_COMMANDS = $CONFIG_COMMANDS
15248 $ $0 $@
15250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15253 _ACEOF
15255 case $ac_config_files in *"
15256 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15257 esac
15259 case $ac_config_headers in *"
15260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15261 esac
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 # Files that config.status was made for.
15266 config_files="$ac_config_files"
15267 config_headers="$ac_config_headers"
15268 config_commands="$ac_config_commands"
15270 _ACEOF
15272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273 ac_cs_usage="\
15274 \`$as_me' instantiates files and other configuration actions
15275 from templates according to the current configuration. Unless the files
15276 and actions are specified as TAGs, all are instantiated by default.
15278 Usage: $0 [OPTION]... [TAG]...
15280 -h, --help print this help, then exit
15281 -V, --version print version number and configuration settings, then exit
15282 --config print configuration, then exit
15283 -q, --quiet, --silent
15284 do not print progress messages
15285 -d, --debug don't remove temporary files
15286 --recheck update $as_me by reconfiguring in the same conditions
15287 --file=FILE[:TEMPLATE]
15288 instantiate the configuration file FILE
15289 --header=FILE[:TEMPLATE]
15290 instantiate the configuration header FILE
15292 Configuration files:
15293 $config_files
15295 Configuration headers:
15296 $config_headers
15298 Configuration commands:
15299 $config_commands
15301 Report bugs to <pekka.jaaskelainen@parmance.com>."
15303 _ACEOF
15304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15305 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15306 ac_cs_version="\\
15307 phsa HSAIL runtime library config.status 1.0
15308 configured by $0, generated by GNU Autoconf 2.69,
15309 with options \\"\$ac_cs_config\\"
15311 Copyright (C) 2012 Free Software Foundation, Inc.
15312 This config.status script is free software; the Free Software Foundation
15313 gives unlimited permission to copy, distribute and modify it."
15315 ac_pwd='$ac_pwd'
15316 srcdir='$srcdir'
15317 INSTALL='$INSTALL'
15318 MKDIR_P='$MKDIR_P'
15319 AWK='$AWK'
15320 test -n "\$AWK" || AWK=awk
15321 _ACEOF
15323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15324 # The default lists apply if the user does not specify any file.
15325 ac_need_defaults=:
15326 while test $# != 0
15328 case $1 in
15329 --*=?*)
15330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15331 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15332 ac_shift=:
15334 --*=)
15335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15336 ac_optarg=
15337 ac_shift=:
15340 ac_option=$1
15341 ac_optarg=$2
15342 ac_shift=shift
15344 esac
15346 case $ac_option in
15347 # Handling of the options.
15348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15349 ac_cs_recheck=: ;;
15350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15351 $as_echo "$ac_cs_version"; exit ;;
15352 --config | --confi | --conf | --con | --co | --c )
15353 $as_echo "$ac_cs_config"; exit ;;
15354 --debug | --debu | --deb | --de | --d | -d )
15355 debug=: ;;
15356 --file | --fil | --fi | --f )
15357 $ac_shift
15358 case $ac_optarg in
15359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15360 '') as_fn_error $? "missing file argument" ;;
15361 esac
15362 as_fn_append CONFIG_FILES " '$ac_optarg'"
15363 ac_need_defaults=false;;
15364 --header | --heade | --head | --hea )
15365 $ac_shift
15366 case $ac_optarg in
15367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15368 esac
15369 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15370 ac_need_defaults=false;;
15371 --he | --h)
15372 # Conflict between --help and --header
15373 as_fn_error $? "ambiguous option: \`$1'
15374 Try \`$0 --help' for more information.";;
15375 --help | --hel | -h )
15376 $as_echo "$ac_cs_usage"; exit ;;
15377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15378 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15379 ac_cs_silent=: ;;
15381 # This is an error.
15382 -*) as_fn_error $? "unrecognized option: \`$1'
15383 Try \`$0 --help' for more information." ;;
15385 *) as_fn_append ac_config_targets " $1"
15386 ac_need_defaults=false ;;
15388 esac
15389 shift
15390 done
15392 ac_configure_extra_args=
15394 if $ac_cs_silent; then
15395 exec 6>/dev/null
15396 ac_configure_extra_args="$ac_configure_extra_args --silent"
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 if \$ac_cs_recheck; then
15402 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15403 shift
15404 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15405 CONFIG_SHELL='$SHELL'
15406 export CONFIG_SHELL
15407 exec "\$@"
15410 _ACEOF
15411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15412 exec 5>>config.log
15414 echo
15415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15416 ## Running $as_me. ##
15417 _ASBOX
15418 $as_echo "$ac_log"
15419 } >&5
15421 _ACEOF
15422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15424 # INIT-COMMANDS
15426 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15429 # The HP-UX ksh and POSIX shell print the target directory to stdout
15430 # if CDPATH is set.
15431 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15433 sed_quote_subst='$sed_quote_subst'
15434 double_quote_subst='$double_quote_subst'
15435 delay_variable_subst='$delay_variable_subst'
15436 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15437 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15438 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15439 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15440 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15441 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15442 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15443 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15444 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15445 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15446 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15447 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15448 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15449 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15450 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15451 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15452 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15453 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15454 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15455 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15456 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15457 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15458 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15459 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15460 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15461 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15462 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15463 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15464 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15465 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15466 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15467 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15468 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15469 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15470 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15471 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15472 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15473 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15474 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15475 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15476 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15477 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15478 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15479 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15480 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15481 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15482 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15483 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15484 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"`'
15485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15488 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15489 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15493 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15494 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15495 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15496 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15497 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15498 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15499 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15500 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15501 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15502 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15503 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15504 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15505 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15506 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15507 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15508 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15509 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15510 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15511 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15512 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15513 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15514 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15515 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15516 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15517 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15518 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15519 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15520 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15521 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15522 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15523 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15524 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15525 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15526 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15527 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15528 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15529 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15530 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15531 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15532 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15533 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15534 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15535 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15536 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15537 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15538 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15539 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15540 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15541 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15542 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15543 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15544 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15545 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15546 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15547 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15548 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15549 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15550 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15551 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15552 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15553 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15554 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15555 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15556 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15557 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15558 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15559 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15560 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15561 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15562 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15563 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15564 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15565 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15566 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15567 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15568 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15569 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15570 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15571 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15572 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15573 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15574 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15575 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15576 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15577 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15578 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15579 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15580 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15581 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15582 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15583 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15584 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15585 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15586 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15587 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15588 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15589 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15590 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15591 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15592 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15593 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15594 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15595 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15596 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15597 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15598 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15599 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15600 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15601 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15602 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15603 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15604 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15605 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15606 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15607 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15608 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15609 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15610 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15612 LTCC='$LTCC'
15613 LTCFLAGS='$LTCFLAGS'
15614 compiler='$compiler_DEFAULT'
15616 # A function that is used when there is no print builtin or printf.
15617 func_fallback_echo ()
15619 eval 'cat <<_LTECHO_EOF
15621 _LTECHO_EOF'
15624 # Quote evaled strings.
15625 for var in SHELL \
15626 ECHO \
15627 SED \
15628 GREP \
15629 EGREP \
15630 FGREP \
15631 LD \
15632 NM \
15633 LN_S \
15634 lt_SP2NL \
15635 lt_NL2SP \
15636 reload_flag \
15637 OBJDUMP \
15638 deplibs_check_method \
15639 file_magic_cmd \
15640 AR \
15641 AR_FLAGS \
15642 STRIP \
15643 RANLIB \
15644 CC \
15645 CFLAGS \
15646 compiler \
15647 lt_cv_sys_global_symbol_pipe \
15648 lt_cv_sys_global_symbol_to_cdecl \
15649 lt_cv_sys_global_symbol_to_c_name_address \
15650 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15651 lt_prog_compiler_no_builtin_flag \
15652 lt_prog_compiler_wl \
15653 lt_prog_compiler_pic \
15654 lt_prog_compiler_static \
15655 lt_cv_prog_compiler_c_o \
15656 need_locks \
15657 DSYMUTIL \
15658 NMEDIT \
15659 LIPO \
15660 OTOOL \
15661 OTOOL64 \
15662 shrext_cmds \
15663 export_dynamic_flag_spec \
15664 whole_archive_flag_spec \
15665 compiler_needs_object \
15666 with_gnu_ld \
15667 allow_undefined_flag \
15668 no_undefined_flag \
15669 hardcode_libdir_flag_spec \
15670 hardcode_libdir_flag_spec_ld \
15671 hardcode_libdir_separator \
15672 fix_srcfile_path \
15673 exclude_expsyms \
15674 include_expsyms \
15675 file_list_spec \
15676 variables_saved_for_relink \
15677 libname_spec \
15678 library_names_spec \
15679 soname_spec \
15680 install_override_mode \
15681 finish_eval \
15682 old_striplib \
15683 striplib \
15684 compiler_lib_search_dirs \
15685 predep_objects \
15686 postdep_objects \
15687 predeps \
15688 postdeps \
15689 compiler_lib_search_path \
15690 LD_CXX \
15691 reload_flag_CXX \
15692 compiler_CXX \
15693 lt_prog_compiler_no_builtin_flag_CXX \
15694 lt_prog_compiler_wl_CXX \
15695 lt_prog_compiler_pic_CXX \
15696 lt_prog_compiler_static_CXX \
15697 lt_cv_prog_compiler_c_o_CXX \
15698 export_dynamic_flag_spec_CXX \
15699 whole_archive_flag_spec_CXX \
15700 compiler_needs_object_CXX \
15701 with_gnu_ld_CXX \
15702 allow_undefined_flag_CXX \
15703 no_undefined_flag_CXX \
15704 hardcode_libdir_flag_spec_CXX \
15705 hardcode_libdir_flag_spec_ld_CXX \
15706 hardcode_libdir_separator_CXX \
15707 fix_srcfile_path_CXX \
15708 exclude_expsyms_CXX \
15709 include_expsyms_CXX \
15710 file_list_spec_CXX \
15711 compiler_lib_search_dirs_CXX \
15712 predep_objects_CXX \
15713 postdep_objects_CXX \
15714 predeps_CXX \
15715 postdeps_CXX \
15716 compiler_lib_search_path_CXX; do
15717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15718 *[\\\\\\\`\\"\\\$]*)
15719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15724 esac
15725 done
15727 # Double-quote double-evaled strings.
15728 for var in reload_cmds \
15729 old_postinstall_cmds \
15730 old_postuninstall_cmds \
15731 old_archive_cmds \
15732 extract_expsyms_cmds \
15733 old_archive_from_new_cmds \
15734 old_archive_from_expsyms_cmds \
15735 archive_cmds \
15736 archive_expsym_cmds \
15737 module_cmds \
15738 module_expsym_cmds \
15739 export_symbols_cmds \
15740 prelink_cmds \
15741 postinstall_cmds \
15742 postuninstall_cmds \
15743 finish_cmds \
15744 sys_lib_search_path_spec \
15745 sys_lib_dlsearch_path_spec \
15746 reload_cmds_CXX \
15747 old_archive_cmds_CXX \
15748 old_archive_from_new_cmds_CXX \
15749 old_archive_from_expsyms_cmds_CXX \
15750 archive_cmds_CXX \
15751 archive_expsym_cmds_CXX \
15752 module_cmds_CXX \
15753 module_expsym_cmds_CXX \
15754 export_symbols_cmds_CXX \
15755 prelink_cmds_CXX; do
15756 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15757 *[\\\\\\\`\\"\\\$]*)
15758 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15761 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15763 esac
15764 done
15766 ac_aux_dir='$ac_aux_dir'
15767 xsi_shell='$xsi_shell'
15768 lt_shell_append='$lt_shell_append'
15770 # See if we are running on zsh, and set the options which allow our
15771 # commands through without removal of \ escapes INIT.
15772 if test -n "\${ZSH_VERSION+set}" ; then
15773 setopt NO_GLOB_SUBST
15777 PACKAGE='$PACKAGE'
15778 VERSION='$VERSION'
15779 TIMESTAMP='$TIMESTAMP'
15780 RM='$RM'
15781 ofile='$ofile'
15788 _ACEOF
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792 # Handling of arguments.
15793 for ac_config_target in $ac_config_targets
15795 case $ac_config_target in
15796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15797 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15798 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15799 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;;
15801 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15802 esac
15803 done
15806 # If the user did not use the arguments to specify the items to instantiate,
15807 # then the envvar interface is used. Set only those that are not.
15808 # We use the long form for the default assignment because of an extremely
15809 # bizarre bug on SunOS 4.1.3.
15810 if $ac_need_defaults; then
15811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15812 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15813 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15816 # Have a temporary directory for convenience. Make it in the build tree
15817 # simply because there is no reason against having it here, and in addition,
15818 # creating and moving files from /tmp can sometimes cause problems.
15819 # Hook for its removal unless debugging.
15820 # Note that there is a small window in which the directory will not be cleaned:
15821 # after its creation but before its name has been assigned to `$tmp'.
15822 $debug ||
15824 tmp= ac_tmp=
15825 trap 'exit_status=$?
15826 : "${ac_tmp:=$tmp}"
15827 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15829 trap 'as_fn_exit 1' 1 2 13 15
15831 # Create a (secure) tmp directory for tmp files.
15834 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15835 test -d "$tmp"
15836 } ||
15838 tmp=./conf$$-$RANDOM
15839 (umask 077 && mkdir "$tmp")
15840 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15841 ac_tmp=$tmp
15843 # Set up the scripts for CONFIG_FILES section.
15844 # No need to generate them if there are no CONFIG_FILES.
15845 # This happens for instance with `./config.status config.h'.
15846 if test -n "$CONFIG_FILES"; then
15849 ac_cr=`echo X | tr X '\015'`
15850 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15851 # But we know of no other shell where ac_cr would be empty at this
15852 # point, so we can use a bashism as a fallback.
15853 if test "x$ac_cr" = x; then
15854 eval ac_cr=\$\'\\r\'
15856 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15857 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15858 ac_cs_awk_cr='\\r'
15859 else
15860 ac_cs_awk_cr=$ac_cr
15863 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15864 _ACEOF
15868 echo "cat >conf$$subs.awk <<_ACEOF" &&
15869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15870 echo "_ACEOF"
15871 } >conf$$subs.sh ||
15872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15874 ac_delim='%!_!# '
15875 for ac_last_try in false false false false false :; do
15876 . ./conf$$subs.sh ||
15877 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15880 if test $ac_delim_n = $ac_delim_num; then
15881 break
15882 elif $ac_last_try; then
15883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15884 else
15885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15887 done
15888 rm -f conf$$subs.sh
15890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15891 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15892 _ACEOF
15893 sed -n '
15895 s/^/S["/; s/!.*/"]=/
15898 s/^[^!]*!//
15899 :repl
15900 t repl
15901 s/'"$ac_delim"'$//
15902 t delim
15905 s/\(.\{148\}\)..*/\1/
15906 t more1
15907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15910 b repl
15911 :more1
15912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15915 s/.\{148\}//
15916 t nl
15917 :delim
15919 s/\(.\{148\}\)..*/\1/
15920 t more2
15921 s/["\\]/\\&/g; s/^/"/; s/$/"/
15924 :more2
15925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15928 s/.\{148\}//
15929 t delim
15930 ' <conf$$subs.awk | sed '
15931 /^[^""]/{
15933 s/\n//
15935 ' >>$CONFIG_STATUS || ac_write_fail=1
15936 rm -f conf$$subs.awk
15937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15938 _ACAWK
15939 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15940 for (key in S) S_is_set[key] = 1
15941 FS = "\a"
15945 line = $ 0
15946 nfields = split(line, field, "@")
15947 substed = 0
15948 len = length(field[1])
15949 for (i = 2; i < nfields; i++) {
15950 key = field[i]
15951 keylen = length(key)
15952 if (S_is_set[key]) {
15953 value = S[key]
15954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15955 len += length(value) + length(field[++i])
15956 substed = 1
15957 } else
15958 len += 1 + keylen
15961 print line
15964 _ACAWK
15965 _ACEOF
15966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15967 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15968 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15969 else
15971 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15972 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15973 _ACEOF
15975 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15976 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15977 # trailing colons and then remove the whole line if VPATH becomes empty
15978 # (actually we leave an empty line to preserve line numbers).
15979 if test "x$srcdir" = x.; then
15980 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15982 s///
15983 s/^/:/
15984 s/[ ]*$/:/
15985 s/:\$(srcdir):/:/g
15986 s/:\${srcdir}:/:/g
15987 s/:@srcdir@:/:/g
15988 s/^:*//
15989 s/:*$//
15991 s/\(=[ ]*\).*/\1/
15993 s/\n//
15994 s/^[^=]*=[ ]*$//
15998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15999 fi # test -n "$CONFIG_FILES"
16001 # Set up the scripts for CONFIG_HEADERS section.
16002 # No need to generate them if there are no CONFIG_HEADERS.
16003 # This happens for instance with `./config.status Makefile'.
16004 if test -n "$CONFIG_HEADERS"; then
16005 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16006 BEGIN {
16007 _ACEOF
16009 # Transform confdefs.h into an awk script `defines.awk', embedded as
16010 # here-document in config.status, that substitutes the proper values into
16011 # config.h.in to produce config.h.
16013 # Create a delimiter string that does not exist in confdefs.h, to ease
16014 # handling of long lines.
16015 ac_delim='%!_!# '
16016 for ac_last_try in false false :; do
16017 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16018 if test -z "$ac_tt"; then
16019 break
16020 elif $ac_last_try; then
16021 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16022 else
16023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16025 done
16027 # For the awk script, D is an array of macro values keyed by name,
16028 # likewise P contains macro parameters if any. Preserve backslash
16029 # newline sequences.
16031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16032 sed -n '
16033 s/.\{148\}/&'"$ac_delim"'/g
16034 t rset
16035 :rset
16036 s/^[ ]*#[ ]*define[ ][ ]*/ /
16037 t def
16039 :def
16040 s/\\$//
16041 t bsnl
16042 s/["\\]/\\&/g
16043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16044 D["\1"]=" \3"/p
16045 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16047 :bsnl
16048 s/["\\]/\\&/g
16049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16050 D["\1"]=" \3\\\\\\n"\\/p
16051 t cont
16052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16053 t cont
16055 :cont
16057 s/.\{148\}/&'"$ac_delim"'/g
16058 t clear
16059 :clear
16060 s/\\$//
16061 t bsnlc
16062 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16064 :bsnlc
16065 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16066 b cont
16067 ' <confdefs.h | sed '
16068 s/'"$ac_delim"'/"\\\
16069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072 for (key in D) D_is_set[key] = 1
16073 FS = "\a"
16075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16076 line = \$ 0
16077 split(line, arg, " ")
16078 if (arg[1] == "#") {
16079 defundef = arg[2]
16080 mac1 = arg[3]
16081 } else {
16082 defundef = substr(arg[1], 2)
16083 mac1 = arg[2]
16085 split(mac1, mac2, "(") #)
16086 macro = mac2[1]
16087 prefix = substr(line, 1, index(line, defundef) - 1)
16088 if (D_is_set[macro]) {
16089 # Preserve the white space surrounding the "#".
16090 print prefix "define", macro P[macro] D[macro]
16091 next
16092 } else {
16093 # Replace #undef with comments. This is necessary, for example,
16094 # in the case of _POSIX_SOURCE, which is predefined and required
16095 # on some systems where configure will not decide to define it.
16096 if (defundef == "undef") {
16097 print "/*", prefix defundef, macro, "*/"
16098 next
16102 { print }
16103 _ACAWK
16104 _ACEOF
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16107 fi # test -n "$CONFIG_HEADERS"
16110 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16111 shift
16112 for ac_tag
16114 case $ac_tag in
16115 :[FHLC]) ac_mode=$ac_tag; continue;;
16116 esac
16117 case $ac_mode$ac_tag in
16118 :[FHL]*:*);;
16119 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16120 :[FH]-) ac_tag=-:-;;
16121 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16122 esac
16123 ac_save_IFS=$IFS
16124 IFS=:
16125 set x $ac_tag
16126 IFS=$ac_save_IFS
16127 shift
16128 ac_file=$1
16129 shift
16131 case $ac_mode in
16132 :L) ac_source=$1;;
16133 :[FH])
16134 ac_file_inputs=
16135 for ac_f
16137 case $ac_f in
16138 -) ac_f="$ac_tmp/stdin";;
16139 *) # Look for the file first in the build tree, then in the source tree
16140 # (if the path is not absolute). The absolute path cannot be DOS-style,
16141 # because $ac_f cannot contain `:'.
16142 test -f "$ac_f" ||
16143 case $ac_f in
16144 [\\/$]*) false;;
16145 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16146 esac ||
16147 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16148 esac
16149 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16150 as_fn_append ac_file_inputs " '$ac_f'"
16151 done
16153 # Let's still pretend it is `configure' which instantiates (i.e., don't
16154 # use $as_me), people would be surprised to read:
16155 # /* config.h. Generated by config.status. */
16156 configure_input='Generated from '`
16157 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16158 `' by configure.'
16159 if test x"$ac_file" != x-; then
16160 configure_input="$ac_file. $configure_input"
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16162 $as_echo "$as_me: creating $ac_file" >&6;}
16164 # Neutralize special characters interpreted by sed in replacement strings.
16165 case $configure_input in #(
16166 *\&* | *\|* | *\\* )
16167 ac_sed_conf_input=`$as_echo "$configure_input" |
16168 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16169 *) ac_sed_conf_input=$configure_input;;
16170 esac
16172 case $ac_tag in
16173 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16175 esac
16177 esac
16179 ac_dir=`$as_dirname -- "$ac_file" ||
16180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16181 X"$ac_file" : 'X\(//\)[^/]' \| \
16182 X"$ac_file" : 'X\(//\)$' \| \
16183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16184 $as_echo X"$ac_file" |
16185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16186 s//\1/
16189 /^X\(\/\/\)[^/].*/{
16190 s//\1/
16193 /^X\(\/\/\)$/{
16194 s//\1/
16197 /^X\(\/\).*/{
16198 s//\1/
16201 s/.*/./; q'`
16202 as_dir="$ac_dir"; as_fn_mkdir_p
16203 ac_builddir=.
16205 case "$ac_dir" in
16206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16208 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16209 # A ".." for each directory in $ac_dir_suffix.
16210 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16211 case $ac_top_builddir_sub in
16212 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16213 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16214 esac ;;
16215 esac
16216 ac_abs_top_builddir=$ac_pwd
16217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16218 # for backward compatibility:
16219 ac_top_builddir=$ac_top_build_prefix
16221 case $srcdir in
16222 .) # We are building in place.
16223 ac_srcdir=.
16224 ac_top_srcdir=$ac_top_builddir_sub
16225 ac_abs_top_srcdir=$ac_pwd ;;
16226 [\\/]* | ?:[\\/]* ) # Absolute name.
16227 ac_srcdir=$srcdir$ac_dir_suffix;
16228 ac_top_srcdir=$srcdir
16229 ac_abs_top_srcdir=$srcdir ;;
16230 *) # Relative name.
16231 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16232 ac_top_srcdir=$ac_top_build_prefix$srcdir
16233 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16234 esac
16235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16238 case $ac_mode in
16241 # CONFIG_FILE
16244 case $INSTALL in
16245 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16246 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16247 esac
16248 ac_MKDIR_P=$MKDIR_P
16249 case $MKDIR_P in
16250 [\\/$]* | ?:[\\/]* ) ;;
16251 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16252 esac
16253 _ACEOF
16255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16256 # If the template does not know about datarootdir, expand it.
16257 # FIXME: This hack should be removed a few years after 2.60.
16258 ac_datarootdir_hack=; ac_datarootdir_seen=
16259 ac_sed_dataroot='
16260 /datarootdir/ {
16264 /@datadir@/p
16265 /@docdir@/p
16266 /@infodir@/p
16267 /@localedir@/p
16268 /@mandir@/p'
16269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16270 *datarootdir*) ac_datarootdir_seen=yes;;
16271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16274 _ACEOF
16275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16276 ac_datarootdir_hack='
16277 s&@datadir@&$datadir&g
16278 s&@docdir@&$docdir&g
16279 s&@infodir@&$infodir&g
16280 s&@localedir@&$localedir&g
16281 s&@mandir@&$mandir&g
16282 s&\\\${datarootdir}&$datarootdir&g' ;;
16283 esac
16284 _ACEOF
16286 # Neutralize VPATH when `$srcdir' = `.'.
16287 # Shell code in configure.ac might set extrasub.
16288 # FIXME: do we really want to maintain this feature?
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 ac_sed_extra="$ac_vpsub
16291 $extrasub
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16296 s|@configure_input@|$ac_sed_conf_input|;t t
16297 s&@top_builddir@&$ac_top_builddir_sub&;t t
16298 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16299 s&@srcdir@&$ac_srcdir&;t t
16300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16301 s&@top_srcdir@&$ac_top_srcdir&;t t
16302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16303 s&@builddir@&$ac_builddir&;t t
16304 s&@abs_builddir@&$ac_abs_builddir&;t t
16305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16306 s&@INSTALL@&$ac_INSTALL&;t t
16307 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16308 $ac_datarootdir_hack
16310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16311 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16316 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16318 which seems to be undefined. Please make sure it is defined" >&5
16319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16320 which seems to be undefined. Please make sure it is defined" >&2;}
16322 rm -f "$ac_tmp/stdin"
16323 case $ac_file in
16324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16326 esac \
16327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16331 # CONFIG_HEADER
16333 if test x"$ac_file" != x-; then
16335 $as_echo "/* $configure_input */" \
16336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16337 } >"$ac_tmp/config.h" \
16338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16339 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16342 else
16343 rm -f "$ac_file"
16344 mv "$ac_tmp/config.h" "$ac_file" \
16345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16347 else
16348 $as_echo "/* $configure_input */" \
16349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16350 || as_fn_error $? "could not create -" "$LINENO" 5
16352 # Compute "$ac_file"'s index in $config_headers.
16353 _am_arg="$ac_file"
16354 _am_stamp_count=1
16355 for _am_header in $config_headers :; do
16356 case $_am_header in
16357 $_am_arg | $_am_arg:* )
16358 break ;;
16360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16361 esac
16362 done
16363 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16364 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16365 X"$_am_arg" : 'X\(//\)[^/]' \| \
16366 X"$_am_arg" : 'X\(//\)$' \| \
16367 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16368 $as_echo X"$_am_arg" |
16369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16370 s//\1/
16373 /^X\(\/\/\)[^/].*/{
16374 s//\1/
16377 /^X\(\/\/\)$/{
16378 s//\1/
16381 /^X\(\/\).*/{
16382 s//\1/
16385 s/.*/./; q'`/stamp-h$_am_stamp_count
16388 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16389 $as_echo "$as_me: executing $ac_file commands" >&6;}
16391 esac
16394 case $ac_file$ac_mode in
16395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16396 # Older Autoconf quotes --file arguments for eval, but not when files
16397 # are listed without --file. Let's play safe and only enable the eval
16398 # if we detect the quoting.
16399 case $CONFIG_FILES in
16400 *\'*) eval set x "$CONFIG_FILES" ;;
16401 *) set x $CONFIG_FILES ;;
16402 esac
16403 shift
16404 for mf
16406 # Strip MF so we end up with the name of the file.
16407 mf=`echo "$mf" | sed -e 's/:.*$//'`
16408 # Check whether this is an Automake generated Makefile or not.
16409 # We used to match only the files named 'Makefile.in', but
16410 # some people rename them; so instead we look at the file content.
16411 # Grep'ing the first line is not enough: some people post-process
16412 # each Makefile.in and add a new line on top of each file to say so.
16413 # Grep'ing the whole file is not good either: AIX grep has a line
16414 # limit of 2048, but all sed's we know have understand at least 4000.
16415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16416 dirpart=`$as_dirname -- "$mf" ||
16417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16418 X"$mf" : 'X\(//\)[^/]' \| \
16419 X"$mf" : 'X\(//\)$' \| \
16420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16421 $as_echo X"$mf" |
16422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16423 s//\1/
16426 /^X\(\/\/\)[^/].*/{
16427 s//\1/
16430 /^X\(\/\/\)$/{
16431 s//\1/
16434 /^X\(\/\).*/{
16435 s//\1/
16438 s/.*/./; q'`
16439 else
16440 continue
16442 # Extract the definition of DEPDIR, am__include, and am__quote
16443 # from the Makefile without running 'make'.
16444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16445 test -z "$DEPDIR" && continue
16446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16447 test -z "$am__include" && continue
16448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16449 # Find all dependency output files, they are included files with
16450 # $(DEPDIR) in their names. We invoke sed twice because it is the
16451 # simplest approach to changing $(DEPDIR) to its actual value in the
16452 # expansion.
16453 for file in `sed -n "
16454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16456 # Make sure the directory exists.
16457 test -f "$dirpart/$file" && continue
16458 fdir=`$as_dirname -- "$file" ||
16459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16460 X"$file" : 'X\(//\)[^/]' \| \
16461 X"$file" : 'X\(//\)$' \| \
16462 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16463 $as_echo X"$file" |
16464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16465 s//\1/
16468 /^X\(\/\/\)[^/].*/{
16469 s//\1/
16472 /^X\(\/\/\)$/{
16473 s//\1/
16476 /^X\(\/\).*/{
16477 s//\1/
16480 s/.*/./; q'`
16481 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16482 # echo "creating $dirpart/$file"
16483 echo '# dummy' > "$dirpart/$file"
16484 done
16485 done
16488 "libtool":C)
16490 # See if we are running on zsh, and set the options which allow our
16491 # commands through without removal of \ escapes.
16492 if test -n "${ZSH_VERSION+set}" ; then
16493 setopt NO_GLOB_SUBST
16496 cfgfile="${ofile}T"
16497 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16498 $RM "$cfgfile"
16500 cat <<_LT_EOF >> "$cfgfile"
16501 #! $SHELL
16503 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16504 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16506 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16508 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16509 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16510 # Written by Gordon Matzigkeit, 1996
16512 # This file is part of GNU Libtool.
16514 # GNU Libtool is free software; you can redistribute it and/or
16515 # modify it under the terms of the GNU General Public License as
16516 # published by the Free Software Foundation; either version 2 of
16517 # the License, or (at your option) any later version.
16519 # As a special exception to the GNU General Public License,
16520 # if you distribute this file as part of a program or library that
16521 # is built using GNU Libtool, you may include this file under the
16522 # same distribution terms that you use for the rest of that program.
16524 # GNU Libtool is distributed in the hope that it will be useful,
16525 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16527 # GNU General Public License for more details.
16529 # You should have received a copy of the GNU General Public License
16530 # along with GNU Libtool; see the file COPYING. If not, a copy
16531 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16532 # obtained by writing to the Free Software Foundation, Inc.,
16533 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16536 # The names of the tagged configurations supported by this script.
16537 available_tags="CXX "
16539 # ### BEGIN LIBTOOL CONFIG
16541 # Which release of libtool.m4 was used?
16542 macro_version=$macro_version
16543 macro_revision=$macro_revision
16545 # Whether or not to build shared libraries.
16546 build_libtool_libs=$enable_shared
16548 # Whether or not to build static libraries.
16549 build_old_libs=$enable_static
16551 # What type of objects to build.
16552 pic_mode=$pic_mode
16554 # Whether or not to optimize for fast installation.
16555 fast_install=$enable_fast_install
16557 # Shell to use when invoking shell scripts.
16558 SHELL=$lt_SHELL
16560 # An echo program that protects backslashes.
16561 ECHO=$lt_ECHO
16563 # The host system.
16564 host_alias=$host_alias
16565 host=$host
16566 host_os=$host_os
16568 # The build system.
16569 build_alias=$build_alias
16570 build=$build
16571 build_os=$build_os
16573 # A sed program that does not truncate output.
16574 SED=$lt_SED
16576 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16577 Xsed="\$SED -e 1s/^X//"
16579 # A grep program that handles long lines.
16580 GREP=$lt_GREP
16582 # An ERE matcher.
16583 EGREP=$lt_EGREP
16585 # A literal string matcher.
16586 FGREP=$lt_FGREP
16588 # A BSD- or MS-compatible name lister.
16589 NM=$lt_NM
16591 # Whether we need soft or hard links.
16592 LN_S=$lt_LN_S
16594 # What is the maximum length of a command?
16595 max_cmd_len=$max_cmd_len
16597 # Object file suffix (normally "o").
16598 objext=$ac_objext
16600 # Executable file suffix (normally "").
16601 exeext=$exeext
16603 # whether the shell understands "unset".
16604 lt_unset=$lt_unset
16606 # turn spaces into newlines.
16607 SP2NL=$lt_lt_SP2NL
16609 # turn newlines into spaces.
16610 NL2SP=$lt_lt_NL2SP
16612 # An object symbol dumper.
16613 OBJDUMP=$lt_OBJDUMP
16615 # Method to check whether dependent libraries are shared objects.
16616 deplibs_check_method=$lt_deplibs_check_method
16618 # Command to use when deplibs_check_method == "file_magic".
16619 file_magic_cmd=$lt_file_magic_cmd
16621 # The archiver.
16622 AR=$lt_AR
16623 AR_FLAGS=$lt_AR_FLAGS
16625 # A symbol stripping program.
16626 STRIP=$lt_STRIP
16628 # Commands used to install an old-style archive.
16629 RANLIB=$lt_RANLIB
16630 old_postinstall_cmds=$lt_old_postinstall_cmds
16631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16633 # Whether to use a lock for old archive extraction.
16634 lock_old_archive_extraction=$lock_old_archive_extraction
16636 # A C compiler.
16637 LTCC=$lt_CC
16639 # LTCC compiler flags.
16640 LTCFLAGS=$lt_CFLAGS
16642 # Take the output of nm and produce a listing of raw symbols and C names.
16643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16645 # Transform the output of nm in a proper C declaration.
16646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16648 # Transform the output of nm in a C name address pair.
16649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16651 # Transform the output of nm in a C name address pair when lib prefix is needed.
16652 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16654 # The name of the directory that contains temporary libtool files.
16655 objdir=$objdir
16657 # Used to examine libraries when file_magic_cmd begins with "file".
16658 MAGIC_CMD=$MAGIC_CMD
16660 # Must we lock files when doing compilation?
16661 need_locks=$lt_need_locks
16663 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16664 DSYMUTIL=$lt_DSYMUTIL
16666 # Tool to change global to local symbols on Mac OS X.
16667 NMEDIT=$lt_NMEDIT
16669 # Tool to manipulate fat objects and archives on Mac OS X.
16670 LIPO=$lt_LIPO
16672 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16673 OTOOL=$lt_OTOOL
16675 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16676 OTOOL64=$lt_OTOOL64
16678 # Old archive suffix (normally "a").
16679 libext=$libext
16681 # Shared library suffix (normally ".so").
16682 shrext_cmds=$lt_shrext_cmds
16684 # The commands to extract the exported symbol list from a shared archive.
16685 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16687 # Variables whose values should be saved in libtool wrapper scripts and
16688 # restored at link time.
16689 variables_saved_for_relink=$lt_variables_saved_for_relink
16691 # Do we need the "lib" prefix for modules?
16692 need_lib_prefix=$need_lib_prefix
16694 # Do we need a version for libraries?
16695 need_version=$need_version
16697 # Library versioning type.
16698 version_type=$version_type
16700 # Shared library runtime path variable.
16701 runpath_var=$runpath_var
16703 # Shared library path variable.
16704 shlibpath_var=$shlibpath_var
16706 # Is shlibpath searched before the hard-coded library search path?
16707 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16709 # Format of library name prefix.
16710 libname_spec=$lt_libname_spec
16712 # List of archive names. First name is the real one, the rest are links.
16713 # The last name is the one that the linker finds with -lNAME
16714 library_names_spec=$lt_library_names_spec
16716 # The coded name of the library, if different from the real name.
16717 soname_spec=$lt_soname_spec
16719 # Permission mode override for installation of shared libraries.
16720 install_override_mode=$lt_install_override_mode
16722 # Command to use after installation of a shared archive.
16723 postinstall_cmds=$lt_postinstall_cmds
16725 # Command to use after uninstallation of a shared archive.
16726 postuninstall_cmds=$lt_postuninstall_cmds
16728 # Commands used to finish a libtool library installation in a directory.
16729 finish_cmds=$lt_finish_cmds
16731 # As "finish_cmds", except a single script fragment to be evaled but
16732 # not shown.
16733 finish_eval=$lt_finish_eval
16735 # Whether we should hardcode library paths into libraries.
16736 hardcode_into_libs=$hardcode_into_libs
16738 # Compile-time system search path for libraries.
16739 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16741 # Run-time system search path for libraries.
16742 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16744 # Whether dlopen is supported.
16745 dlopen_support=$enable_dlopen
16747 # Whether dlopen of programs is supported.
16748 dlopen_self=$enable_dlopen_self
16750 # Whether dlopen of statically linked programs is supported.
16751 dlopen_self_static=$enable_dlopen_self_static
16753 # Commands to strip libraries.
16754 old_striplib=$lt_old_striplib
16755 striplib=$lt_striplib
16758 # The linker used to build libraries.
16759 LD=$lt_LD
16761 # How to create reloadable object files.
16762 reload_flag=$lt_reload_flag
16763 reload_cmds=$lt_reload_cmds
16765 # Commands used to build an old-style archive.
16766 old_archive_cmds=$lt_old_archive_cmds
16768 # A language specific compiler.
16769 CC=$lt_compiler
16771 # Is the compiler the GNU compiler?
16772 with_gcc=$GCC
16774 # Compiler flag to turn off builtin functions.
16775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16777 # How to pass a linker flag through the compiler.
16778 wl=$lt_lt_prog_compiler_wl
16780 # Additional compiler flags for building library objects.
16781 pic_flag=$lt_lt_prog_compiler_pic
16783 # Compiler flag to prevent dynamic linking.
16784 link_static_flag=$lt_lt_prog_compiler_static
16786 # Does compiler simultaneously support -c and -o options?
16787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16789 # Whether or not to add -lc for building shared libraries.
16790 build_libtool_need_lc=$archive_cmds_need_lc
16792 # Whether or not to disallow shared libs when runtime libs are static.
16793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16795 # Compiler flag to allow reflexive dlopens.
16796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16798 # Compiler flag to generate shared objects directly from archives.
16799 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16801 # Whether the compiler copes with passing no objects directly.
16802 compiler_needs_object=$lt_compiler_needs_object
16804 # Create an old-style archive from a shared archive.
16805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16807 # Create a temporary old-style archive to link instead of a shared archive.
16808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16810 # Commands used to build a shared archive.
16811 archive_cmds=$lt_archive_cmds
16812 archive_expsym_cmds=$lt_archive_expsym_cmds
16814 # Commands used to build a loadable module if different from building
16815 # a shared archive.
16816 module_cmds=$lt_module_cmds
16817 module_expsym_cmds=$lt_module_expsym_cmds
16819 # Whether we are building with GNU ld or not.
16820 with_gnu_ld=$lt_with_gnu_ld
16822 # Flag that allows shared libraries with undefined symbols to be built.
16823 allow_undefined_flag=$lt_allow_undefined_flag
16825 # Flag that enforces no undefined symbols.
16826 no_undefined_flag=$lt_no_undefined_flag
16828 # Flag to hardcode \$libdir into a binary during linking.
16829 # This must work even if \$libdir does not exist
16830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16832 # If ld is used when linking, flag to hardcode \$libdir into a binary
16833 # during linking. This must work even if \$libdir does not exist.
16834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16836 # Whether we need a single "-rpath" flag with a separated argument.
16837 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16840 # DIR into the resulting binary.
16841 hardcode_direct=$hardcode_direct
16843 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16844 # DIR into the resulting binary and the resulting library dependency is
16845 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16846 # library is relocated.
16847 hardcode_direct_absolute=$hardcode_direct_absolute
16849 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16850 # into the resulting binary.
16851 hardcode_minus_L=$hardcode_minus_L
16853 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16854 # into the resulting binary.
16855 hardcode_shlibpath_var=$hardcode_shlibpath_var
16857 # Set to "yes" if building a shared library automatically hardcodes DIR
16858 # into the library and all subsequent libraries and executables linked
16859 # against it.
16860 hardcode_automatic=$hardcode_automatic
16862 # Set to yes if linker adds runtime paths of dependent libraries
16863 # to runtime path list.
16864 inherit_rpath=$inherit_rpath
16866 # Whether libtool must link a program against all its dependency libraries.
16867 link_all_deplibs=$link_all_deplibs
16869 # Fix the shell variable \$srcfile for the compiler.
16870 fix_srcfile_path=$lt_fix_srcfile_path
16872 # Set to "yes" if exported symbols are required.
16873 always_export_symbols=$always_export_symbols
16875 # The commands to list exported symbols.
16876 export_symbols_cmds=$lt_export_symbols_cmds
16878 # Symbols that should not be listed in the preloaded symbols.
16879 exclude_expsyms=$lt_exclude_expsyms
16881 # Symbols that must always be exported.
16882 include_expsyms=$lt_include_expsyms
16884 # Commands necessary for linking programs (against libraries) with templates.
16885 prelink_cmds=$lt_prelink_cmds
16887 # Specify filename containing input files.
16888 file_list_spec=$lt_file_list_spec
16890 # How to hardcode a shared library path into an executable.
16891 hardcode_action=$hardcode_action
16893 # The directories searched by this compiler when creating a shared library.
16894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16896 # Dependencies to place before and after the objects being linked to
16897 # create a shared library.
16898 predep_objects=$lt_predep_objects
16899 postdep_objects=$lt_postdep_objects
16900 predeps=$lt_predeps
16901 postdeps=$lt_postdeps
16903 # The library search path used internally by the compiler when linking
16904 # a shared library.
16905 compiler_lib_search_path=$lt_compiler_lib_search_path
16907 # ### END LIBTOOL CONFIG
16909 _LT_EOF
16911 case $host_os in
16912 aix3*)
16913 cat <<\_LT_EOF >> "$cfgfile"
16914 # AIX sometimes has problems with the GCC collect2 program. For some
16915 # reason, if we set the COLLECT_NAMES environment variable, the problems
16916 # vanish in a puff of smoke.
16917 if test "X${COLLECT_NAMES+set}" != Xset; then
16918 COLLECT_NAMES=
16919 export COLLECT_NAMES
16921 _LT_EOF
16923 esac
16926 ltmain="$ac_aux_dir/ltmain.sh"
16929 # We use sed instead of cat because bash on DJGPP gets confused if
16930 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16931 # text mode, it properly converts lines to CR/LF. This bash problem
16932 # is reportedly fixed, but why not run on old versions too?
16933 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16934 || (rm -f "$cfgfile"; exit 1)
16936 case $xsi_shell in
16937 yes)
16938 cat << \_LT_EOF >> "$cfgfile"
16940 # func_dirname file append nondir_replacement
16941 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16942 # otherwise set result to NONDIR_REPLACEMENT.
16943 func_dirname ()
16945 case ${1} in
16946 */*) func_dirname_result="${1%/*}${2}" ;;
16947 * ) func_dirname_result="${3}" ;;
16948 esac
16951 # func_basename file
16952 func_basename ()
16954 func_basename_result="${1##*/}"
16957 # func_dirname_and_basename file append nondir_replacement
16958 # perform func_basename and func_dirname in a single function
16959 # call:
16960 # dirname: Compute the dirname of FILE. If nonempty,
16961 # add APPEND to the result, otherwise set result
16962 # to NONDIR_REPLACEMENT.
16963 # value returned in "$func_dirname_result"
16964 # basename: Compute filename of FILE.
16965 # value retuned in "$func_basename_result"
16966 # Implementation must be kept synchronized with func_dirname
16967 # and func_basename. For efficiency, we do not delegate to
16968 # those functions but instead duplicate the functionality here.
16969 func_dirname_and_basename ()
16971 case ${1} in
16972 */*) func_dirname_result="${1%/*}${2}" ;;
16973 * ) func_dirname_result="${3}" ;;
16974 esac
16975 func_basename_result="${1##*/}"
16978 # func_stripname prefix suffix name
16979 # strip PREFIX and SUFFIX off of NAME.
16980 # PREFIX and SUFFIX must not contain globbing or regex special
16981 # characters, hashes, percent signs, but SUFFIX may contain a leading
16982 # dot (in which case that matches only a dot).
16983 func_stripname ()
16985 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16986 # positional parameters, so assign one to ordinary parameter first.
16987 func_stripname_result=${3}
16988 func_stripname_result=${func_stripname_result#"${1}"}
16989 func_stripname_result=${func_stripname_result%"${2}"}
16992 # func_opt_split
16993 func_opt_split ()
16995 func_opt_split_opt=${1%%=*}
16996 func_opt_split_arg=${1#*=}
16999 # func_lo2o object
17000 func_lo2o ()
17002 case ${1} in
17003 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17004 *) func_lo2o_result=${1} ;;
17005 esac
17008 # func_xform libobj-or-source
17009 func_xform ()
17011 func_xform_result=${1%.*}.lo
17014 # func_arith arithmetic-term...
17015 func_arith ()
17017 func_arith_result=$(( $* ))
17020 # func_len string
17021 # STRING may not start with a hyphen.
17022 func_len ()
17024 func_len_result=${#1}
17027 _LT_EOF
17029 *) # Bourne compatible functions.
17030 cat << \_LT_EOF >> "$cfgfile"
17032 # func_dirname file append nondir_replacement
17033 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17034 # otherwise set result to NONDIR_REPLACEMENT.
17035 func_dirname ()
17037 # Extract subdirectory from the argument.
17038 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17039 if test "X$func_dirname_result" = "X${1}"; then
17040 func_dirname_result="${3}"
17041 else
17042 func_dirname_result="$func_dirname_result${2}"
17046 # func_basename file
17047 func_basename ()
17049 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17053 # func_stripname prefix suffix name
17054 # strip PREFIX and SUFFIX off of NAME.
17055 # PREFIX and SUFFIX must not contain globbing or regex special
17056 # characters, hashes, percent signs, but SUFFIX may contain a leading
17057 # dot (in which case that matches only a dot).
17058 # func_strip_suffix prefix name
17059 func_stripname ()
17061 case ${2} in
17062 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17063 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17064 esac
17067 # sed scripts:
17068 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17069 my_sed_long_arg='1s/^-[^=]*=//'
17071 # func_opt_split
17072 func_opt_split ()
17074 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17075 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17078 # func_lo2o object
17079 func_lo2o ()
17081 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17084 # func_xform libobj-or-source
17085 func_xform ()
17087 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17090 # func_arith arithmetic-term...
17091 func_arith ()
17093 func_arith_result=`expr "$@"`
17096 # func_len string
17097 # STRING may not start with a hyphen.
17098 func_len ()
17100 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17103 _LT_EOF
17104 esac
17106 case $lt_shell_append in
17107 yes)
17108 cat << \_LT_EOF >> "$cfgfile"
17110 # func_append var value
17111 # Append VALUE to the end of shell variable VAR.
17112 func_append ()
17114 eval "$1+=\$2"
17116 _LT_EOF
17119 cat << \_LT_EOF >> "$cfgfile"
17121 # func_append var value
17122 # Append VALUE to the end of shell variable VAR.
17123 func_append ()
17125 eval "$1=\$$1\$2"
17128 _LT_EOF
17130 esac
17133 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17134 || (rm -f "$cfgfile"; exit 1)
17136 mv -f "$cfgfile" "$ofile" ||
17137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17138 chmod +x "$ofile"
17141 cat <<_LT_EOF >> "$ofile"
17143 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17145 # The linker used to build libraries.
17146 LD=$lt_LD_CXX
17148 # How to create reloadable object files.
17149 reload_flag=$lt_reload_flag_CXX
17150 reload_cmds=$lt_reload_cmds_CXX
17152 # Commands used to build an old-style archive.
17153 old_archive_cmds=$lt_old_archive_cmds_CXX
17155 # A language specific compiler.
17156 CC=$lt_compiler_CXX
17158 # Is the compiler the GNU compiler?
17159 with_gcc=$GCC_CXX
17161 # Compiler flag to turn off builtin functions.
17162 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17164 # How to pass a linker flag through the compiler.
17165 wl=$lt_lt_prog_compiler_wl_CXX
17167 # Additional compiler flags for building library objects.
17168 pic_flag=$lt_lt_prog_compiler_pic_CXX
17170 # Compiler flag to prevent dynamic linking.
17171 link_static_flag=$lt_lt_prog_compiler_static_CXX
17173 # Does compiler simultaneously support -c and -o options?
17174 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17176 # Whether or not to add -lc for building shared libraries.
17177 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17179 # Whether or not to disallow shared libs when runtime libs are static.
17180 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17182 # Compiler flag to allow reflexive dlopens.
17183 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17185 # Compiler flag to generate shared objects directly from archives.
17186 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17188 # Whether the compiler copes with passing no objects directly.
17189 compiler_needs_object=$lt_compiler_needs_object_CXX
17191 # Create an old-style archive from a shared archive.
17192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17194 # Create a temporary old-style archive to link instead of a shared archive.
17195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17197 # Commands used to build a shared archive.
17198 archive_cmds=$lt_archive_cmds_CXX
17199 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17201 # Commands used to build a loadable module if different from building
17202 # a shared archive.
17203 module_cmds=$lt_module_cmds_CXX
17204 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17206 # Whether we are building with GNU ld or not.
17207 with_gnu_ld=$lt_with_gnu_ld_CXX
17209 # Flag that allows shared libraries with undefined symbols to be built.
17210 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17212 # Flag that enforces no undefined symbols.
17213 no_undefined_flag=$lt_no_undefined_flag_CXX
17215 # Flag to hardcode \$libdir into a binary during linking.
17216 # This must work even if \$libdir does not exist
17217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17219 # If ld is used when linking, flag to hardcode \$libdir into a binary
17220 # during linking. This must work even if \$libdir does not exist.
17221 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17223 # Whether we need a single "-rpath" flag with a separated argument.
17224 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17227 # DIR into the resulting binary.
17228 hardcode_direct=$hardcode_direct_CXX
17230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17231 # DIR into the resulting binary and the resulting library dependency is
17232 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17233 # library is relocated.
17234 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17236 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17237 # into the resulting binary.
17238 hardcode_minus_L=$hardcode_minus_L_CXX
17240 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17241 # into the resulting binary.
17242 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17244 # Set to "yes" if building a shared library automatically hardcodes DIR
17245 # into the library and all subsequent libraries and executables linked
17246 # against it.
17247 hardcode_automatic=$hardcode_automatic_CXX
17249 # Set to yes if linker adds runtime paths of dependent libraries
17250 # to runtime path list.
17251 inherit_rpath=$inherit_rpath_CXX
17253 # Whether libtool must link a program against all its dependency libraries.
17254 link_all_deplibs=$link_all_deplibs_CXX
17256 # Fix the shell variable \$srcfile for the compiler.
17257 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17259 # Set to "yes" if exported symbols are required.
17260 always_export_symbols=$always_export_symbols_CXX
17262 # The commands to list exported symbols.
17263 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17265 # Symbols that should not be listed in the preloaded symbols.
17266 exclude_expsyms=$lt_exclude_expsyms_CXX
17268 # Symbols that must always be exported.
17269 include_expsyms=$lt_include_expsyms_CXX
17271 # Commands necessary for linking programs (against libraries) with templates.
17272 prelink_cmds=$lt_prelink_cmds_CXX
17274 # Specify filename containing input files.
17275 file_list_spec=$lt_file_list_spec_CXX
17277 # How to hardcode a shared library path into an executable.
17278 hardcode_action=$hardcode_action_CXX
17280 # The directories searched by this compiler when creating a shared library.
17281 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17283 # Dependencies to place before and after the objects being linked to
17284 # create a shared library.
17285 predep_objects=$lt_predep_objects_CXX
17286 postdep_objects=$lt_postdep_objects_CXX
17287 predeps=$lt_predeps_CXX
17288 postdeps=$lt_postdeps_CXX
17290 # The library search path used internally by the compiler when linking
17291 # a shared library.
17292 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17294 # ### END LIBTOOL TAG CONFIG: CXX
17295 _LT_EOF
17299 esac
17300 done # for ac_tag
17303 as_fn_exit 0
17304 _ACEOF
17305 ac_clean_files=$ac_clean_files_save
17307 test $ac_write_fail = 0 ||
17308 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17311 # configure is writing to config.log, and then calls config.status.
17312 # config.status does its own redirection, appending to config.log.
17313 # Unfortunately, on DOS this fails, as config.log is still kept open
17314 # by configure, so config.status won't be able to write to it; its
17315 # output is simply discarded. So we exec the FD to /dev/null,
17316 # effectively closing config.log, so it can be properly (re)opened and
17317 # appended to by config.status. When coming back to configure, we
17318 # need to make the FD available again.
17319 if test "$no_create" != yes; then
17320 ac_cs_success=:
17321 ac_config_status_args=
17322 test "$silent" = yes &&
17323 ac_config_status_args="$ac_config_status_args --quiet"
17324 exec 5>/dev/null
17325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17326 exec 5>>config.log
17327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17328 # would make configure fail if this is the last instruction.
17329 $ac_cs_success || as_fn_exit 1
17331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}