Fix typo.
[official-gcc.git] / libhsail-rt / configure
blob0c10830bf3e64d67c47993a1a458c1ec4e071f40
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for phsa HSAIL runtime library 1.0.
5 # Report bugs to <pekka.jaaskelainen@parmance.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: pekka.jaaskelainen@parmance.com about your system,
241 $0: including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='phsa HSAIL runtime library'
561 PACKAGE_TARNAME='phsa-hsail-runtime-library'
562 PACKAGE_VERSION='1.0'
563 PACKAGE_STRING='phsa HSAIL runtime library 1.0'
564 PACKAGE_BUGREPORT='pekka.jaaskelainen@parmance.com'
565 PACKAGE_URL=''
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 toolexeclibdir
608 toolexecdir
609 CXXCPP
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 RANLIB
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
625 EGREP
626 GREP
628 LIBTOOL
629 MAC_LINKER_SCRIPT_FALSE
630 MAC_LINKER_SCRIPT_TRUE
631 LINUX_LINKER_SCRIPT_FALSE
632 LINUX_LINKER_SCRIPT_TRUE
633 config_dir
634 am__fastdepCXX_FALSE
635 am__fastdepCXX_TRUE
636 CXXDEPMODE
637 ac_ct_CXX
638 CXXFLAGS
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 target_os
683 target_vendor
684 target_cpu
685 target
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_maintainer_mode
736 enable_dependency_tracking
737 enable_version_specific_runtime_libs
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 enable_libtool_lock
745 ac_precious_vars='build_alias
746 host_alias
747 target_alias
749 CFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
754 CXXFLAGS
757 CXXCPP'
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
808 ac_prev=
809 ac_dashdash=
810 for ac_option
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
824 # Accept the important Cygnus configure options, so we can diagnose typos.
826 case $ac_dashdash$ac_option in
828 ac_dashdash=yes ;;
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
847 --config-cache | -C)
848 cache_file=config.cache ;;
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information."
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164 esac
1165 done
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error "missing argument to $ac_option"
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error "pwd does not report name of working directory"
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1251 /^X\(\/\/\)$/{
1252 s//\1/
1255 /^X\(\/\).*/{
1256 s//\1/
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1264 else
1265 ac_srcdir_defaulted=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1293 # Report the --help message.
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures phsa HSAIL runtime library 1.0 to adapt to many kinds of systems.
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1306 Defaults for the options are specified in brackets.
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1330 For better control, use the options below.
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root
1348 [DATAROOTDIR/doc/phsa-hsail-runtime-library]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1353 _ACEOF
1355 cat <<\_ACEOF
1357 Program names:
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1362 System types:
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1366 _ACEOF
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of phsa HSAIL runtime library 1.0:";;
1372 esac
1373 cat <<\_ACEOF
1375 Optional Features:
1376 --disable-option-checking ignore unrecognized --enable/--with options
1377 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --disable-dependency-tracking speeds up one-time build
1382 --enable-dependency-tracking do not reject slow dependency extractors
1383 --enable-version-specific-runtime-libs
1384 Specify that runtime libraries should be installed
1385 in a compi ler-specific directory
1386 --enable-shared[=PKGS] build shared libraries [default=yes]
1387 --enable-static[=PKGS] build static libraries [default=yes]
1388 --enable-fast-install[=PKGS]
1389 optimize for fast installation [default=yes]
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-pic try to use only PIC/non-PIC objects [default=use
1396 both]
1397 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CXX C++ compiler command
1408 CXXFLAGS C++ compiler flags
1409 CPP C preprocessor
1410 CXXCPP C++ preprocessor
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to <pekka.jaaskelainen@parmance.com>.
1416 _ACEOF
1417 ac_status=$?
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 phsa HSAIL runtime library configure 1.0
1479 generated by GNU Autoconf 2.64
1481 Copyright (C) 2009 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1523 ac_retval=1
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 return $ac_retval
1528 } # ac_fn_c_try_compile
1530 # ac_fn_cxx_try_compile LINENO
1531 # ----------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_cxx_try_compile ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_cxx_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1561 ac_retval=1
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 return $ac_retval
1566 } # ac_fn_cxx_try_compile
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1602 ac_retval=1
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1612 } # ac_fn_c_try_link
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes"
1633 else
1634 eval "$3=no"
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } >/dev/null && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=1
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 return $ac_retval
1680 } # ac_fn_c_try_cpp
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1686 ac_fn_c_try_run ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=$ac_status
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1722 } # ac_fn_c_try_run
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below.
1743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744 <limits.h> exists even on freestanding compilers. */
1746 #ifdef __STDC__
1747 # include <limits.h>
1748 #else
1749 # include <assert.h>
1750 #endif
1752 #undef $2
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1769 main ()
1771 return $2 ();
1773 return 0;
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1781 rm -f core conftest.err conftest.$ac_objext \
1782 conftest$ac_exeext conftest.$ac_ext
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 } # ac_fn_c_check_func
1791 # ac_fn_cxx_try_cpp LINENO
1792 # ------------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_cpp ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } >/dev/null && {
1813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1826 } # ac_fn_cxx_try_cpp
1828 # ac_fn_cxx_try_link LINENO
1829 # -------------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_link ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 $as_test_x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_cxx_try_link
1874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875 # --------------------------------------------
1876 # Tries to find the compile-time value of EXPR in a program that includes
1877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1878 # computed
1879 ac_fn_c_compute_int ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if test "$cross_compiling" = yes; then
1883 # Depending upon the size, compute the lo and hi bounds.
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 main ()
1890 static int test_array [1 - 2 * !(($2) >= 0)];
1891 test_array [0] = 0
1894 return 0;
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898 ac_lo=0 ac_mid=0
1899 while :; do
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1904 main ()
1906 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1907 test_array [0] = 0
1910 return 0;
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid; break
1915 else
1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917 if test $ac_lo -le $ac_mid; then
1918 ac_lo= ac_hi=
1919 break
1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 done
1925 else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 main ()
1932 static int test_array [1 - 2 * !(($2) < 0)];
1933 test_array [0] = 0
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_hi=-1 ac_mid=-1
1941 while :; do
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1946 main ()
1948 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1949 test_array [0] = 0
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_lo=$ac_mid; break
1957 else
1958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1959 if test $ac_mid -le $ac_hi; then
1960 ac_lo= ac_hi=
1961 break
1963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
1967 else
1968 ac_lo= ac_hi=
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 # Binary search between lo and hi bounds.
1974 while test "x$ac_lo" != "x$ac_hi"; do
1975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 main ()
1982 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1983 test_array [0] = 0
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_hi=$ac_mid
1991 else
1992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 done
1996 case $ac_lo in #((
1997 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1998 '') ac_retval=1 ;;
1999 esac
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2004 static long int longval () { return $2; }
2005 static unsigned long int ulongval () { return $2; }
2006 #include <stdio.h>
2007 #include <stdlib.h>
2009 main ()
2012 FILE *f = fopen ("conftest.val", "w");
2013 if (! f)
2014 return 1;
2015 if (($2) < 0)
2017 long int i = longval ();
2018 if (i != ($2))
2019 return 1;
2020 fprintf (f, "%ld", i);
2022 else
2024 unsigned long int i = ulongval ();
2025 if (i != ($2))
2026 return 1;
2027 fprintf (f, "%lu", i);
2029 /* Do not output a trailing newline, as this causes \r\n confusion
2030 on some platforms. */
2031 return ferror (f) || fclose (f) != 0;
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_run "$LINENO"; then :
2038 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2039 else
2040 ac_retval=1
2042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2043 conftest.$ac_objext conftest.beam conftest.$ac_ext
2044 rm -f conftest.val
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 return $ac_retval
2050 } # ac_fn_c_compute_int
2051 cat >config.log <<_ACEOF
2052 This file contains any messages produced by compilers while
2053 running configure, to aid debugging if configure makes a mistake.
2055 It was created by phsa HSAIL runtime library $as_me 1.0, which was
2056 generated by GNU Autoconf 2.64. Invocation command line was
2058 $ $0 $@
2060 _ACEOF
2061 exec 5>>config.log
2063 cat <<_ASUNAME
2064 ## --------- ##
2065 ## Platform. ##
2066 ## --------- ##
2068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2080 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085 _ASUNAME
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 $as_echo "PATH: $as_dir"
2093 done
2094 IFS=$as_save_IFS
2096 } >&5
2098 cat >&5 <<_ACEOF
2101 ## ----------- ##
2102 ## Core tests. ##
2103 ## ----------- ##
2105 _ACEOF
2108 # Keep a trace of the command line.
2109 # Strip out --no-create and --no-recursion so they do not pile up.
2110 # Strip out --silent because we don't want to record it for future runs.
2111 # Also quote any args containing shell meta-characters.
2112 # Make two passes to allow for proper duplicate-argument suppression.
2113 ac_configure_args=
2114 ac_configure_args0=
2115 ac_configure_args1=
2116 ac_must_keep_next=false
2117 for ac_pass in 1 2
2119 for ac_arg
2121 case $ac_arg in
2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124 | -silent | --silent | --silen | --sile | --sil)
2125 continue ;;
2126 *\'*)
2127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 esac
2129 case $ac_pass in
2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132 as_fn_append ac_configure_args1 " '$ac_arg'"
2133 if test $ac_must_keep_next = true; then
2134 ac_must_keep_next=false # Got value, back to normal.
2135 else
2136 case $ac_arg in
2137 *=* | --config-cache | -C | -disable-* | --disable-* \
2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140 | -with-* | --with-* | -without-* | --without-* | --x)
2141 case "$ac_configure_args0 " in
2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143 esac
2145 -* ) ac_must_keep_next=true ;;
2146 esac
2148 as_fn_append ac_configure_args " '$ac_arg'"
2150 esac
2151 done
2152 done
2153 { ac_configure_args0=; unset ac_configure_args0;}
2154 { ac_configure_args1=; unset ac_configure_args1;}
2156 # When interrupted or exit'd, cleanup temporary files, and complete
2157 # config.log. We remove comments because anyway the quotes in there
2158 # would cause problems or look ugly.
2159 # WARNING: Use '\'' to represent an apostrophe within the trap.
2160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161 trap 'exit_status=$?
2162 # Save into config.log some information that might help in debugging.
2164 echo
2166 cat <<\_ASBOX
2167 ## ---------------- ##
2168 ## Cache variables. ##
2169 ## ---------------- ##
2170 _ASBOX
2171 echo
2172 # The following way of writing the cache mishandles newlines in values,
2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175 eval ac_val=\$$ac_var
2176 case $ac_val in #(
2177 *${as_nl}*)
2178 case $ac_var in #(
2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 esac
2182 case $ac_var in #(
2183 _ | IFS | as_nl) ;; #(
2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185 *) { eval $ac_var=; unset $ac_var;} ;;
2186 esac ;;
2187 esac
2188 done
2189 (set) 2>&1 |
2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191 *${as_nl}ac_space=\ *)
2192 sed -n \
2193 "s/'\''/'\''\\\\'\'''\''/g;
2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 ;; #(
2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2199 esac |
2200 sort
2202 echo
2204 cat <<\_ASBOX
2205 ## ----------------- ##
2206 ## Output variables. ##
2207 ## ----------------- ##
2208 _ASBOX
2209 echo
2210 for ac_var in $ac_subst_vars
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2220 if test -n "$ac_subst_files"; then
2221 cat <<\_ASBOX
2222 ## ------------------- ##
2223 ## File substitutions. ##
2224 ## ------------------- ##
2225 _ASBOX
2226 echo
2227 for ac_var in $ac_subst_files
2229 eval ac_val=\$$ac_var
2230 case $ac_val in
2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232 esac
2233 $as_echo "$ac_var='\''$ac_val'\''"
2234 done | sort
2235 echo
2238 if test -s confdefs.h; then
2239 cat <<\_ASBOX
2240 ## ----------- ##
2241 ## confdefs.h. ##
2242 ## ----------- ##
2243 _ASBOX
2244 echo
2245 cat confdefs.h
2246 echo
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2251 } >&5
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 exit $exit_status
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 done
2259 ac_signal=0
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 _ACEOF
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 _ACEOF
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 _ACEOF
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 _ACEOF
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 _ACEOF
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2290 _ACEOF
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2295 ac_site_file1=NONE
2296 ac_site_file2=NONE
2297 if test -n "$CONFIG_SITE"; then
2298 ac_site_file1=$CONFIG_SITE
2299 elif test "x$prefix" != xNONE; then
2300 ac_site_file1=$prefix/share/config.site
2301 ac_site_file2=$prefix/etc/config.site
2302 else
2303 ac_site_file1=$ac_default_prefix/share/config.site
2304 ac_site_file2=$ac_default_prefix/etc/config.site
2306 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308 test "x$ac_site_file" = xNONE && continue
2309 if test -r "$ac_site_file"; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2311 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2312 sed 's/^/| /' "$ac_site_file" >&5
2313 . "$ac_site_file"
2315 done
2317 if test -r "$cache_file"; then
2318 # Some versions of bash will fail to source /dev/null (special
2319 # files actually), so we avoid doing that.
2320 if test -f "$cache_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2323 case $cache_file in
2324 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325 *) . "./$cache_file";;
2326 esac
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2331 >$cache_file
2334 # Check that the precious variables saved in the cache have kept the same
2335 # value.
2336 ac_cache_corrupted=false
2337 for ac_var in $ac_precious_vars; do
2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2339 eval ac_new_set=\$ac_env_${ac_var}_set
2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2341 eval ac_new_val=\$ac_env_${ac_var}_value
2342 case $ac_old_set,$ac_new_set in
2343 set,)
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2345 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2346 ac_cache_corrupted=: ;;
2347 ,set)
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2349 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2350 ac_cache_corrupted=: ;;
2351 ,);;
2353 if test "x$ac_old_val" != "x$ac_new_val"; then
2354 # differences in whitespace do not lead to failure.
2355 ac_old_val_w=`echo x $ac_old_val`
2356 ac_new_val_w=`echo x $ac_new_val`
2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2359 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2360 ac_cache_corrupted=:
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2363 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2364 eval $ac_var=\$ac_old_val
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2367 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2369 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2370 fi;;
2371 esac
2372 # Pass precious variables to config.status.
2373 if test "$ac_new_set" = set; then
2374 case $ac_new_val in
2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 *) ac_arg=$ac_var=$ac_new_val ;;
2377 esac
2378 case " $ac_configure_args " in
2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2381 esac
2383 done
2384 if $ac_cache_corrupted; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2388 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2389 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391 ## -------------------- ##
2392 ## Main body of script. ##
2393 ## -------------------- ##
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406 # Needed to define ${target}. Needs to be very early to avoid annoying
2407 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2408 ac_aux_dir=
2409 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2410 for ac_t in install-sh install.sh shtool; do
2411 if test -f "$ac_dir/$ac_t"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/$ac_t -c"
2414 break 2
2416 done
2417 done
2418 if test -z "$ac_aux_dir"; then
2419 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2431 # Make sure we can run config.sub.
2432 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2433 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2436 $as_echo_n "checking build system type... " >&6; }
2437 if test "${ac_cv_build+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 ac_build_alias=$build_alias
2441 test "x$ac_build_alias" = x &&
2442 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2443 test "x$ac_build_alias" = x &&
2444 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2446 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2450 $as_echo "$ac_cv_build" >&6; }
2451 case $ac_cv_build in
2452 *-*-*) ;;
2453 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2454 esac
2455 build=$ac_cv_build
2456 ac_save_IFS=$IFS; IFS='-'
2457 set x $ac_cv_build
2458 shift
2459 build_cpu=$1
2460 build_vendor=$2
2461 shift; shift
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2464 build_os=$*
2465 IFS=$ac_save_IFS
2466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2470 $as_echo_n "checking host system type... " >&6; }
2471 if test "${ac_cv_host+set}" = set; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test "x$host_alias" = x; then
2475 ac_cv_host=$ac_cv_build
2476 else
2477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2478 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2483 $as_echo "$ac_cv_host" >&6; }
2484 case $ac_cv_host in
2485 *-*-*) ;;
2486 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2487 esac
2488 host=$ac_cv_host
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_host
2491 shift
2492 host_cpu=$1
2493 host_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 host_os=$*
2498 IFS=$ac_save_IFS
2499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2503 $as_echo_n "checking target system type... " >&6; }
2504 if test "${ac_cv_target+set}" = set; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 if test "x$target_alias" = x; then
2508 ac_cv_target=$ac_cv_host
2509 else
2510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2511 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2516 $as_echo "$ac_cv_target" >&6; }
2517 case $ac_cv_target in
2518 *-*-*) ;;
2519 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2520 esac
2521 target=$ac_cv_target
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_target
2524 shift
2525 target_cpu=$1
2526 target_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 target_os=$*
2531 IFS=$ac_save_IFS
2532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2535 # The aliases save the names the user supplied, while $host etc.
2536 # will get canonicalized.
2537 test -n "$target_alias" &&
2538 test "$program_prefix$program_suffix$program_transform_name" = \
2539 NONENONEs,x,x, &&
2540 program_prefix=${target_alias}-
2542 target_alias=${target_alias-$host_alias}
2544 am__api_version='1.11'
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2552 # AIX /bin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # OS/2's system install, which has a completely different semantic
2558 # ./install, which can be erroneously created by make from ./install.sh.
2559 # Reject install programs that cannot install multiple files.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2562 if test -z "$INSTALL"; then
2563 if test "${ac_cv_path_install+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2572 case $as_dir/ in #((
2573 ./ | .// | /[cC]/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2576 /usr/ucb/* ) ;;
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2580 # by default.
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2592 else
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one > conftest.one
2595 echo two > conftest.two
2596 mkdir conftest.dir
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2598 test -s conftest.one && test -s conftest.two &&
2599 test -s conftest.dir/conftest.one &&
2600 test -s conftest.dir/conftest.two
2601 then
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 break 3
2607 done
2608 done
2610 esac
2612 done
2613 IFS=$as_save_IFS
2615 rm -rf conftest.one conftest.two conftest.dir
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL=$ac_install_sh
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629 $as_echo "$INSTALL" >&6; }
2631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632 # It thinks the first close brace ends the variable substitution.
2633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640 $as_echo_n "checking whether build environment is sane... " >&6; }
2641 # Just in case
2642 sleep 1
2643 echo timestamp > conftest.file
2644 # Reject unsafe characters in $srcdir or the absolute working directory
2645 # name. Accept space and tab only in the latter.
2646 am_lf='
2648 case `pwd` in
2649 *[\\\"\#\$\&\'\`$am_lf]*)
2650 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2651 esac
2652 case $srcdir in
2653 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2654 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2655 esac
2657 # Do `set' in a subshell so we don't clobber the current shell's
2658 # arguments. Must try -L first in case configure is actually a
2659 # symlink; some systems play weird games with the mod time of symlinks
2660 # (eg FreeBSD returns the mod time of the symlink's containing
2661 # directory).
2662 if (
2663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2665 # -L didn't work.
2666 set X `ls -t "$srcdir/configure" conftest.file`
2668 rm -f conftest.file
2669 if test "$*" != "X $srcdir/configure conftest.file" \
2670 && test "$*" != "X conftest.file $srcdir/configure"; then
2672 # If neither matched, then we have a broken ls. This can happen
2673 # if, for instance, CONFIG_SHELL is bash and it inherits a
2674 # broken ls alias from the environment. This has actually
2675 # happened. Such a system could not be considered "sane".
2676 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2677 alias in your environment" "$LINENO" 5
2680 test "$2" = conftest.file
2682 then
2683 # Ok.
2685 else
2686 as_fn_error "newly created file is older than distributed files!
2687 Check your system clock" "$LINENO" 5
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2690 $as_echo "yes" >&6; }
2691 test "$program_prefix" != NONE &&
2692 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2693 # Use a double $ so make ignores it.
2694 test "$program_suffix" != NONE &&
2695 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2696 # Double any \ or $.
2697 # By default was `s,x,x', remove it if useless.
2698 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2699 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2701 # expand $ac_aux_dir to an absolute path
2702 am_aux_dir=`cd $ac_aux_dir && pwd`
2704 if test x"${MISSING+set}" != xset; then
2705 case $am_aux_dir in
2706 *\ * | *\ *)
2707 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2709 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2710 esac
2712 # Use eval to expand $SHELL
2713 if eval "$MISSING --run true"; then
2714 am_missing_run="$MISSING --run "
2715 else
2716 am_missing_run=
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2718 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2721 if test x"${install_sh}" != xset; then
2722 case $am_aux_dir in
2723 *\ * | *\ *)
2724 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2726 install_sh="\${SHELL} $am_aux_dir/install-sh"
2727 esac
2730 # Installed binaries are usually stripped using `strip' when the user
2731 # run `make install-strip'. However `strip' might not be the right
2732 # tool to use in cross-compilation environments, therefore Automake
2733 # will honor the `STRIP' environment variable to overrule this program.
2734 if test "$cross_compiling" != no; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}strip; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if test "${ac_cv_prog_STRIP+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$STRIP"; then
2744 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 break 2
2757 done
2758 done
2759 IFS=$as_save_IFS
2763 STRIP=$ac_cv_prog_STRIP
2764 if test -n "$STRIP"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2766 $as_echo "$STRIP" >&6; }
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2774 if test -z "$ac_cv_prog_STRIP"; then
2775 ac_ct_STRIP=$STRIP
2776 # Extract the first word of "strip", so it can be a program name with args.
2777 set dummy strip; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$ac_ct_STRIP"; then
2784 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_ac_ct_STRIP="strip"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2804 if test -n "$ac_ct_STRIP"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2806 $as_echo "$ac_ct_STRIP" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2812 if test "x$ac_ct_STRIP" = x; then
2813 STRIP=":"
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816 yes:)
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2820 esac
2821 STRIP=$ac_ct_STRIP
2823 else
2824 STRIP="$ac_cv_prog_STRIP"
2828 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2831 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2832 if test -z "$MKDIR_P"; then
2833 if test "${ac_cv_path_mkdir+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_prog in mkdir gmkdir; do
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2844 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2845 'mkdir (GNU coreutils) '* | \
2846 'mkdir (coreutils) '* | \
2847 'mkdir (fileutils) '4.1*)
2848 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2849 break 3;;
2850 esac
2851 done
2852 done
2853 done
2854 IFS=$as_save_IFS
2858 if test "${ac_cv_path_mkdir+set}" = set; then
2859 MKDIR_P="$ac_cv_path_mkdir -p"
2860 else
2861 # As a last resort, use the slow shell script. Don't cache a
2862 # value for MKDIR_P within a source directory, because that will
2863 # break other packages using the cache if that directory is
2864 # removed, or if the value is a relative name.
2865 test -d ./--version && rmdir ./--version
2866 MKDIR_P="$ac_install_sh -d"
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2870 $as_echo "$MKDIR_P" >&6; }
2872 mkdir_p="$MKDIR_P"
2873 case $mkdir_p in
2874 [\\/$]* | ?:[\\/]*) ;;
2875 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2876 esac
2878 for ac_prog in gawk mawk nawk awk
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_AWK+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$AWK"; then
2888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_AWK="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 AWK=$ac_cv_prog_AWK
2908 if test -n "$AWK"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2910 $as_echo "$AWK" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$AWK" && break
2918 done
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2921 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2922 set x ${MAKE-make}
2923 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2924 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 cat >conftest.make <<\_ACEOF
2928 SHELL = /bin/sh
2929 all:
2930 @echo '@@@%%%=$(MAKE)=@@@%%%'
2931 _ACEOF
2932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2933 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2934 *@@@%%%=?*=@@@%%%*)
2935 eval ac_cv_prog_make_${ac_make}_set=yes;;
2937 eval ac_cv_prog_make_${ac_make}_set=no;;
2938 esac
2939 rm -f conftest.make
2941 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2944 SET_MAKE=
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 SET_MAKE="MAKE=${MAKE-make}"
2951 rm -rf .tst 2>/dev/null
2952 mkdir .tst 2>/dev/null
2953 if test -d .tst; then
2954 am__leading_dot=.
2955 else
2956 am__leading_dot=_
2958 rmdir .tst 2>/dev/null
2960 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2961 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2962 # is not polluted with repeated "-I."
2963 am__isrc=' -I$(srcdir)'
2964 # test to see if srcdir already configured
2965 if test -f $srcdir/config.status; then
2966 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2970 # test whether we have cygpath
2971 if test -z "$CYGPATH_W"; then
2972 if (cygpath --version) >/dev/null 2>/dev/null; then
2973 CYGPATH_W='cygpath -w'
2974 else
2975 CYGPATH_W=echo
2980 # Define the identity of the package.
2981 PACKAGE='phsa-hsail-runtime-library'
2982 VERSION='1.0'
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE "$PACKAGE"
2987 _ACEOF
2990 cat >>confdefs.h <<_ACEOF
2991 #define VERSION "$VERSION"
2992 _ACEOF
2994 # Some tools Automake needs.
2996 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2999 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3002 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3005 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3008 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3010 # We need awk for the "check" target. The system "awk" is bad on
3011 # some platforms.
3012 # Always define AMTAR for backward compatibility.
3014 AMTAR=${AMTAR-"${am_missing_run}tar"}
3016 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3025 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3026 # Check whether --enable-maintainer-mode was given.
3027 if test "${enable_maintainer_mode+set}" = set; then :
3028 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3029 else
3030 USE_MAINTAINER_MODE=no
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3034 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3035 if test $USE_MAINTAINER_MODE = yes; then
3036 MAINTAINER_MODE_TRUE=
3037 MAINTAINER_MODE_FALSE='#'
3038 else
3039 MAINTAINER_MODE_TRUE='#'
3040 MAINTAINER_MODE_FALSE=
3043 MAINT=$MAINTAINER_MODE_TRUE
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3076 IFS=$as_save_IFS
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$ac_cv_prog_CC"; then
3092 ac_ct_CC=$CC
3093 # Extract the first word of "gcc", so it can be a program name with args.
3094 set dummy gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_CC="gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3114 done
3115 done
3116 IFS=$as_save_IFS
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 CC=$ac_ct_CC
3140 else
3141 CC="$ac_cv_prog_CC"
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}cc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if test "${ac_cv_prog_CC+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="${ac_tool_prefix}cc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3167 done
3168 done
3169 IFS=$as_save_IFS
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3185 if test -z "$CC"; then
3186 # Extract the first word of "cc", so it can be a program name with args.
3187 set dummy cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 ac_prog_rejected=no
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205 ac_prog_rejected=yes
3206 continue
3208 ac_cv_prog_CC="cc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3212 done
3213 done
3214 IFS=$as_save_IFS
3216 if test $ac_prog_rejected = yes; then
3217 # We found a bogon in the path, so make sure we never use it.
3218 set dummy $ac_cv_prog_CC
3219 shift
3220 if test $# != 0; then
3221 # We chose a different compiler from the bogus one.
3222 # However, it has the same basename, so the bogon will be chosen
3223 # first if we set CC to just the basename; use the full file name.
3224 shift
3225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 for ac_prog in cl.exe
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3266 done
3267 done
3268 IFS=$as_save_IFS
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$CC" && break
3283 done
3285 if test -z "$CC"; then
3286 ac_ct_CC=$CC
3287 for ac_prog in cl.exe
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290 set dummy $ac_prog; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CC="$ac_prog"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3310 done
3311 done
3312 IFS=$as_save_IFS
3316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317 if test -n "$ac_ct_CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3319 $as_echo "$ac_ct_CC" >&6; }
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3326 test -n "$ac_ct_CC" && break
3327 done
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error "no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." "$LINENO" 5; }
3350 # Provide some information about the compiler.
3351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3352 set X $ac_compile
3353 ac_compiler=$2
3354 for ac_option in --version -v -V -qversion; do
3355 { { ac_try="$ac_compiler $ac_option >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3363 ac_status=$?
3364 if test -s conftest.err; then
3365 sed '10a\
3366 ... rest of stderr output deleted ...
3367 10q' conftest.err >conftest.er1
3368 cat conftest.er1 >&5
3369 rm -f conftest.er1 conftest.err
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }
3373 done
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 #include <stdio.h>
3379 main ()
3381 FILE *f = fopen ("conftest.out", "w");
3382 return ferror (f) || fclose (f) != 0;
3385 return 0;
3387 _ACEOF
3388 ac_clean_files_save=$ac_clean_files
3389 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3390 # Try to create an executable without -o first, disregard a.out.
3391 # It will help us diagnose broken compilers, and finding out an intuition
3392 # of exeext.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 $as_echo_n "checking for C compiler default output file name... " >&6; }
3395 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397 # The possible output files:
3398 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3400 ac_rmfiles=
3401 for ac_file in $ac_files
3403 case $ac_file in
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3406 esac
3407 done
3408 rm -f $ac_rmfiles
3410 if { { ac_try="$ac_link_default"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_link_default") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
3421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3423 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3424 # so that the user can short-circuit this test for compilers unknown to
3425 # Autoconf.
3426 for ac_file in $ac_files ''
3428 test -f "$ac_file" || continue
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3432 [ab].out )
3433 # We found the default executable, but exeext='' is most
3434 # certainly right.
3435 break;;
3436 *.* )
3437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3438 then :; else
3439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441 # We set ac_cv_exeext here because the later test for it is not
3442 # safe: cross compilers may not add the suffix if given an `-o'
3443 # argument, so we may need to know it at that point already.
3444 # Even if this section looks crufty: it has the advantage of
3445 # actually working.
3446 break;;
3448 break;;
3449 esac
3450 done
3451 test "$ac_cv_exeext" = no && ac_cv_exeext=
3453 else
3454 ac_file=''
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3457 $as_echo "$ac_file" >&6; }
3458 if test -z "$ac_file"; then :
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 { as_fn_set_status 77
3465 as_fn_error "C compiler cannot create executables
3466 See \`config.log' for more details." "$LINENO" 5; }; }
3468 ac_exeext=$ac_cv_exeext
3470 # Check that the compiler produces executables we can run. If not, either
3471 # the compiler is broken, or we cross compile.
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3473 $as_echo_n "checking whether the C compiler works... " >&6; }
3474 # If not cross compiling, check that we can run a simple program.
3475 if test "$cross_compiling" != yes; then
3476 if { ac_try='./$ac_file'
3477 { { case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_try") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; }; then
3487 cross_compiling=no
3488 else
3489 if test "$cross_compiling" = maybe; then
3490 cross_compiling=yes
3491 else
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error "cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details." "$LINENO" 5; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3504 ac_clean_files=$ac_clean_files_save
3505 # Check that the compiler produces executables we can run. If not, either
3506 # the compiler is broken, or we cross compile.
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508 $as_echo_n "checking whether we are cross compiling... " >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3510 $as_echo "$cross_compiling" >&6; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3513 $as_echo_n "checking for suffix of executables... " >&6; }
3514 if { { ac_try="$ac_link"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; then :
3525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3526 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3527 # work properly (i.e., refer to `conftest.exe'), while it won't with
3528 # `rm'.
3529 for ac_file in conftest.exe conftest conftest.*; do
3530 test -f "$ac_file" || continue
3531 case $ac_file in
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 break;;
3535 * ) break;;
3536 esac
3537 done
3538 else
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error "cannot compute suffix of executables: cannot compile and link
3542 See \`config.log' for more details." "$LINENO" 5; }
3544 rm -f conftest$ac_cv_exeext
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3546 $as_echo "$ac_cv_exeext" >&6; }
3548 rm -f conftest.$ac_ext
3549 EXEEXT=$ac_cv_exeext
3550 ac_exeext=$EXEEXT
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552 $as_echo_n "checking for suffix of object files... " >&6; }
3553 if test "${ac_cv_objext+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.o conftest.obj
3568 if { { ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compile") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; then :
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 break;;
3585 esac
3586 done
3587 else
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error "cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details." "$LINENO" 5; }
3596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599 $as_echo "$ac_cv_objext" >&6; }
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$OBJEXT
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3611 main ()
3613 #ifndef __GNUC__
3614 choke me
3615 #endif
3618 return 0;
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622 ac_compiler_gnu=yes
3623 else
3624 ac_compiler_gnu=no
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632 if test $ac_compiler_gnu = yes; then
3633 GCC=yes
3634 else
3635 GCC=
3637 ac_test_CFLAGS=${CFLAGS+set}
3638 ac_save_CFLAGS=$CFLAGS
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3641 if test "${ac_cv_prog_cc_g+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 ac_save_c_werror_flag=$ac_c_werror_flag
3645 ac_c_werror_flag=yes
3646 ac_cv_prog_cc_g=no
3647 CFLAGS="-g"
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3652 main ()
3656 return 0;
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_prog_cc_g=yes
3661 else
3662 CFLAGS=""
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3667 main ()
3671 return 0;
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3676 else
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3678 CFLAGS="-g"
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3683 main ()
3687 return 0;
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_cv_prog_cc_g=yes
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_c_werror_flag=$ac_save_c_werror_flag
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701 $as_echo "$ac_cv_prog_cc_g" >&6; }
3702 if test "$ac_test_CFLAGS" = set; then
3703 CFLAGS=$ac_save_CFLAGS
3704 elif test $ac_cv_prog_cc_g = yes; then
3705 if test "$GCC" = yes; then
3706 CFLAGS="-g -O2"
3707 else
3708 CFLAGS="-g"
3710 else
3711 if test "$GCC" = yes; then
3712 CFLAGS="-O2"
3713 else
3714 CFLAGS=
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 ac_cv_prog_cc_c89=no
3723 ac_save_CC=$CC
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #include <stdarg.h>
3727 #include <stdio.h>
3728 #include <sys/types.h>
3729 #include <sys/stat.h>
3730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3731 struct buf { int x; };
3732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3733 static char *e (p, i)
3734 char **p;
3735 int i;
3737 return p[i];
3739 static char *f (char * (*g) (char **, int), char **p, ...)
3741 char *s;
3742 va_list v;
3743 va_start (v,p);
3744 s = g (p, va_arg (v,int));
3745 va_end (v);
3746 return s;
3749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3750 function prototypes and stuff, but not '\xHH' hex character constants.
3751 These don't provoke an error unfortunately, instead are silently treated
3752 as 'x'. The following induces an error, until -std is added to get
3753 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3754 array size at least. It's necessary to write '\x00'==0 to get something
3755 that's true only with -std. */
3756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3759 inside strings and character constants. */
3760 #define FOO(x) 'x'
3761 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763 int test (int i, double x);
3764 struct s1 {int (*f) (int a);};
3765 struct s2 {int (*f) (double a);};
3766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3767 int argc;
3768 char **argv;
3770 main ()
3772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 return 0;
3776 _ACEOF
3777 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3778 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3780 CC="$ac_save_CC $ac_arg"
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_c89=$ac_arg
3784 rm -f core conftest.err conftest.$ac_objext
3785 test "x$ac_cv_prog_cc_c89" != "xno" && break
3786 done
3787 rm -f conftest.$ac_ext
3788 CC=$ac_save_CC
3791 # AC_CACHE_VAL
3792 case "x$ac_cv_prog_cc_c89" in
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3795 $as_echo "none needed" >&6; } ;;
3796 xno)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3798 $as_echo "unsupported" >&6; } ;;
3800 CC="$CC $ac_cv_prog_cc_c89"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3802 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3803 esac
3804 if test "x$ac_cv_prog_cc_c89" != xno; then :
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 DEPDIR="${am__leading_dot}deps"
3815 ac_config_commands="$ac_config_commands depfiles"
3818 am_make=${MAKE-make}
3819 cat > confinc << 'END'
3820 am__doit:
3821 @echo this is the am__doit target
3822 .PHONY: am__doit
3824 # If we don't find an include directive, just comment out the code.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3826 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3827 am__include="#"
3828 am__quote=
3829 _am_result=none
3830 # First try GNU make style include.
3831 echo "include confinc" > confmf
3832 # Ignore all kinds of additional output from `make'.
3833 case `$am_make -s -f confmf 2> /dev/null` in #(
3834 *the\ am__doit\ target*)
3835 am__include=include
3836 am__quote=
3837 _am_result=GNU
3839 esac
3840 # Now try BSD make style include.
3841 if test "$am__include" = "#"; then
3842 echo '.include "confinc"' > confmf
3843 case `$am_make -s -f confmf 2> /dev/null` in #(
3844 *the\ am__doit\ target*)
3845 am__include=.include
3846 am__quote="\""
3847 _am_result=BSD
3849 esac
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3854 $as_echo "$_am_result" >&6; }
3855 rm -f confinc confmf
3857 # Check whether --enable-dependency-tracking was given.
3858 if test "${enable_dependency_tracking+set}" = set; then :
3859 enableval=$enable_dependency_tracking;
3862 if test "x$enable_dependency_tracking" != xno; then
3863 am_depcomp="$ac_aux_dir/depcomp"
3864 AMDEPBACKSLASH='\'
3866 if test "x$enable_dependency_tracking" != xno; then
3867 AMDEP_TRUE=
3868 AMDEP_FALSE='#'
3869 else
3870 AMDEP_TRUE='#'
3871 AMDEP_FALSE=
3876 depcc="$CC" am_compiler_list=
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3879 $as_echo_n "checking dependency style of $depcc... " >&6; }
3880 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3884 # We make a subdir and do the tests there. Otherwise we can end up
3885 # making bogus files that we don't know about and never remove. For
3886 # instance it was reported that on HP-UX the gcc test will end up
3887 # making a dummy file named `D' -- because `-MD' means `put the output
3888 # in D'.
3889 mkdir conftest.dir
3890 # Copy depcomp to subdir because otherwise we won't find it if we're
3891 # using a relative directory.
3892 cp "$am_depcomp" conftest.dir
3893 cd conftest.dir
3894 # We will build objects and dependencies in a subdirectory because
3895 # it helps to detect inapplicable dependency modes. For instance
3896 # both Tru64's cc and ICC support -MD to output dependencies as a
3897 # side effect of compilation, but ICC will put the dependencies in
3898 # the current directory while Tru64 will put them in the object
3899 # directory.
3900 mkdir sub
3902 am_cv_CC_dependencies_compiler_type=none
3903 if test "$am_compiler_list" = ""; then
3904 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3906 am__universal=false
3907 case " $depcc " in #(
3908 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3909 esac
3911 for depmode in $am_compiler_list; do
3912 # Setup a source with many dependencies, because some compilers
3913 # like to wrap large dependency lists on column 80 (with \), and
3914 # we should not choose a depcomp mode which is confused by this.
3916 # We need to recreate these files for each test, as the compiler may
3917 # overwrite some of them when testing with obscure command lines.
3918 # This happens at least with the AIX C compiler.
3919 : > sub/conftest.c
3920 for i in 1 2 3 4 5 6; do
3921 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3923 # Solaris 8's {/usr,}/bin/sh.
3924 touch sub/conftst$i.h
3925 done
3926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3928 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3929 # mode. It turns out that the SunPro C++ compiler does not properly
3930 # handle `-M -o', and we need to detect this. Also, some Intel
3931 # versions had trouble with output in subdirs
3932 am__obj=sub/conftest.${OBJEXT-o}
3933 am__minus_obj="-o $am__obj"
3934 case $depmode in
3935 gcc)
3936 # This depmode causes a compiler race in universal mode.
3937 test "$am__universal" = false || continue
3939 nosideeffect)
3940 # after this tag, mechanisms are not by side-effect, so they'll
3941 # only be used when explicitly requested
3942 if test "x$enable_dependency_tracking" = xyes; then
3943 continue
3944 else
3945 break
3948 msvisualcpp | msvcmsys)
3949 # This compiler won't grok `-c -o', but also, the minuso test has
3950 # not run yet. These depmodes are late enough in the game, and
3951 # so weak that their functioning should not be impacted.
3952 am__obj=conftest.${OBJEXT-o}
3953 am__minus_obj=
3955 none) break ;;
3956 esac
3957 if depmode=$depmode \
3958 source=sub/conftest.c object=$am__obj \
3959 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3960 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3961 >/dev/null 2>conftest.err &&
3962 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3963 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3964 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3965 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3966 # icc doesn't choke on unknown options, it will just issue warnings
3967 # or remarks (even with -Werror). So we grep stderr for any message
3968 # that says an option was ignored or not supported.
3969 # When given -MP, icc 7.0 and 7.1 complain thusly:
3970 # icc: Command line warning: ignoring option '-M'; no argument required
3971 # The diagnosis changed in icc 8.0:
3972 # icc: Command line remark: option '-MP' not supported
3973 if (grep 'ignoring option' conftest.err ||
3974 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3975 am_cv_CC_dependencies_compiler_type=$depmode
3976 break
3979 done
3981 cd ..
3982 rm -rf conftest.dir
3983 else
3984 am_cv_CC_dependencies_compiler_type=none
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3989 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3993 test "x$enable_dependency_tracking" != xno \
3994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3995 am__fastdepCC_TRUE=
3996 am__fastdepCC_FALSE='#'
3997 else
3998 am__fastdepCC_TRUE='#'
3999 am__fastdepCC_FALSE=
4003 ac_ext=cpp
4004 ac_cpp='$CXXCPP $CPPFLAGS'
4005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4008 if test -z "$CXX"; then
4009 if test -n "$CCC"; then
4010 CXX=$CCC
4011 else
4012 if test -n "$ac_tool_prefix"; then
4013 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if test "${ac_cv_prog_CXX+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 if test -n "$CXX"; then
4023 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4042 CXX=$ac_cv_prog_CXX
4043 if test -n "$CXX"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4045 $as_echo "$CXX" >&6; }
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4052 test -n "$CXX" && break
4053 done
4055 if test -z "$CXX"; then
4056 ac_ct_CXX=$CXX
4057 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -n "$ac_ct_CXX"; then
4067 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_prog_ac_ct_CXX="$ac_prog"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4086 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4087 if test -n "$ac_ct_CXX"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4089 $as_echo "$ac_ct_CXX" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4096 test -n "$ac_ct_CXX" && break
4097 done
4099 if test "x$ac_ct_CXX" = x; then
4100 CXX="g++"
4101 else
4102 case $cross_compiling:$ac_tool_warned in
4103 yes:)
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4107 esac
4108 CXX=$ac_ct_CXX
4114 # Provide some information about the compiler.
4115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4116 set X $ac_compile
4117 ac_compiler=$2
4118 for ac_option in --version -v -V -qversion; do
4119 { { ac_try="$ac_compiler $ac_option >&5"
4120 case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123 esac
4124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125 $as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4127 ac_status=$?
4128 if test -s conftest.err; then
4129 sed '10a\
4130 ... rest of stderr output deleted ...
4131 10q' conftest.err >conftest.er1
4132 cat conftest.er1 >&5
4133 rm -f conftest.er1 conftest.err
4135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136 test $ac_status = 0; }
4137 done
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4140 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4141 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4148 main ()
4150 #ifndef __GNUC__
4151 choke me
4152 #endif
4155 return 0;
4157 _ACEOF
4158 if ac_fn_cxx_try_compile "$LINENO"; then :
4159 ac_compiler_gnu=yes
4160 else
4161 ac_compiler_gnu=no
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4168 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4169 if test $ac_compiler_gnu = yes; then
4170 GXX=yes
4171 else
4172 GXX=
4174 ac_test_CXXFLAGS=${CXXFLAGS+set}
4175 ac_save_CXXFLAGS=$CXXFLAGS
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4177 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4178 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4182 ac_cxx_werror_flag=yes
4183 ac_cv_prog_cxx_g=no
4184 CXXFLAGS="-g"
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4189 main ()
4193 return 0;
4195 _ACEOF
4196 if ac_fn_cxx_try_compile "$LINENO"; then :
4197 ac_cv_prog_cxx_g=yes
4198 else
4199 CXXFLAGS=""
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4204 main ()
4208 return 0;
4210 _ACEOF
4211 if ac_fn_cxx_try_compile "$LINENO"; then :
4213 else
4214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4215 CXXFLAGS="-g"
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4220 main ()
4224 return 0;
4226 _ACEOF
4227 if ac_fn_cxx_try_compile "$LINENO"; then :
4228 ac_cv_prog_cxx_g=yes
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4238 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4239 if test "$ac_test_CXXFLAGS" = set; then
4240 CXXFLAGS=$ac_save_CXXFLAGS
4241 elif test $ac_cv_prog_cxx_g = yes; then
4242 if test "$GXX" = yes; then
4243 CXXFLAGS="-g -O2"
4244 else
4245 CXXFLAGS="-g"
4247 else
4248 if test "$GXX" = yes; then
4249 CXXFLAGS="-O2"
4250 else
4251 CXXFLAGS=
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 depcc="$CXX" am_compiler_list=
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4263 $as_echo_n "checking dependency style of $depcc... " >&6; }
4264 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4268 # We make a subdir and do the tests there. Otherwise we can end up
4269 # making bogus files that we don't know about and never remove. For
4270 # instance it was reported that on HP-UX the gcc test will end up
4271 # making a dummy file named `D' -- because `-MD' means `put the output
4272 # in D'.
4273 mkdir conftest.dir
4274 # Copy depcomp to subdir because otherwise we won't find it if we're
4275 # using a relative directory.
4276 cp "$am_depcomp" conftest.dir
4277 cd conftest.dir
4278 # We will build objects and dependencies in a subdirectory because
4279 # it helps to detect inapplicable dependency modes. For instance
4280 # both Tru64's cc and ICC support -MD to output dependencies as a
4281 # side effect of compilation, but ICC will put the dependencies in
4282 # the current directory while Tru64 will put them in the object
4283 # directory.
4284 mkdir sub
4286 am_cv_CXX_dependencies_compiler_type=none
4287 if test "$am_compiler_list" = ""; then
4288 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4290 am__universal=false
4291 case " $depcc " in #(
4292 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4293 esac
4295 for depmode in $am_compiler_list; do
4296 # Setup a source with many dependencies, because some compilers
4297 # like to wrap large dependency lists on column 80 (with \), and
4298 # we should not choose a depcomp mode which is confused by this.
4300 # We need to recreate these files for each test, as the compiler may
4301 # overwrite some of them when testing with obscure command lines.
4302 # This happens at least with the AIX C compiler.
4303 : > sub/conftest.c
4304 for i in 1 2 3 4 5 6; do
4305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4307 # Solaris 8's {/usr,}/bin/sh.
4308 touch sub/conftst$i.h
4309 done
4310 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4313 # mode. It turns out that the SunPro C++ compiler does not properly
4314 # handle `-M -o', and we need to detect this. Also, some Intel
4315 # versions had trouble with output in subdirs
4316 am__obj=sub/conftest.${OBJEXT-o}
4317 am__minus_obj="-o $am__obj"
4318 case $depmode in
4319 gcc)
4320 # This depmode causes a compiler race in universal mode.
4321 test "$am__universal" = false || continue
4323 nosideeffect)
4324 # after this tag, mechanisms are not by side-effect, so they'll
4325 # only be used when explicitly requested
4326 if test "x$enable_dependency_tracking" = xyes; then
4327 continue
4328 else
4329 break
4332 msvisualcpp | msvcmsys)
4333 # This compiler won't grok `-c -o', but also, the minuso test has
4334 # not run yet. These depmodes are late enough in the game, and
4335 # so weak that their functioning should not be impacted.
4336 am__obj=conftest.${OBJEXT-o}
4337 am__minus_obj=
4339 none) break ;;
4340 esac
4341 if depmode=$depmode \
4342 source=sub/conftest.c object=$am__obj \
4343 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4344 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4345 >/dev/null 2>conftest.err &&
4346 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4347 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4348 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4349 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4350 # icc doesn't choke on unknown options, it will just issue warnings
4351 # or remarks (even with -Werror). So we grep stderr for any message
4352 # that says an option was ignored or not supported.
4353 # When given -MP, icc 7.0 and 7.1 complain thusly:
4354 # icc: Command line warning: ignoring option '-M'; no argument required
4355 # The diagnosis changed in icc 8.0:
4356 # icc: Command line remark: option '-MP' not supported
4357 if (grep 'ignoring option' conftest.err ||
4358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4359 am_cv_CXX_dependencies_compiler_type=$depmode
4360 break
4363 done
4365 cd ..
4366 rm -rf conftest.dir
4367 else
4368 am_cv_CXX_dependencies_compiler_type=none
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4373 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4374 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4377 test "x$enable_dependency_tracking" != xno \
4378 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4379 am__fastdepCXX_TRUE=
4380 am__fastdepCXX_FALSE='#'
4381 else
4382 am__fastdepCXX_TRUE='#'
4383 am__fastdepCXX_FALSE=
4387 # AC_PROG_LIBTOOL
4388 ac_config_files="$ac_config_files Makefile"
4391 if test "${multilib}" = "yes"; then
4392 multilib_arg="--enable-multilib"
4393 else
4394 multilib_arg=
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4398 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4399 # Check whether --enable-version-specific-runtime-libs was given.
4400 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4401 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4402 yes) enable_version_specific_runtime_libs=yes ;;
4403 no) enable_version_specific_runtime_libs=no ;;
4404 *) as_fn_error "Unknown argument to enable/disable version-specific libs
4405 " "$LINENO" 5;;
4406 esac
4407 else
4408 enable_version_specific_runtime_libs=no
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4412 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4414 # Calculate toolexeclibdir
4415 # Also toolexecdir, though it's only used in toolexeclibdir
4416 case ${enable_version_specific_runtime_libs} in
4417 yes)
4418 # Need the gcc compiler version to know where to install libraries
4419 # and header files if --enable-version-specific-runtime-libs option
4420 # is selected.
4421 toolexecdir='$(libdir)/gcc/$(target_alias)'
4422 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4425 if test -n "$with_cross_host" &&
4426 test x"$with_cross_host" != x"no"; then
4427 # Install a library built with a cross compiler in tooldir, not libdir.
4428 toolexecdir='$(exec_prefix)/$(target_alias)'
4429 toolexeclibdir='$(toolexecdir)/lib'
4430 else
4431 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4432 toolexeclibdir='$(libdir)'
4434 multi_os_directory=`$CC -print-multi-os-directory`
4435 case $multi_os_directory in
4436 .) ;; # Avoid trailing /.
4437 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4438 esac
4440 esac
4442 # Set config_dir based on the target. config_dir specifies where to get
4443 # target-specific files. The generic implementation is incomplete, but
4444 # contains information on what's needed
4445 case "${target}" in
4447 x86_64-*-*)
4448 config_dir="x86"
4451 i?86-*-*)
4452 config_dir="x86"
4456 config_dir="generic"
4459 esac
4462 # We have linker scripts for appropriate operating systems
4463 linux_linker_script=no
4464 case "${host}" in
4465 *-*-linux*)
4466 linux_linker_script=yes
4468 esac
4469 if test "$linux_linker_script" = "yes"; then
4470 LINUX_LINKER_SCRIPT_TRUE=
4471 LINUX_LINKER_SCRIPT_FALSE='#'
4472 else
4473 LINUX_LINKER_SCRIPT_TRUE='#'
4474 LINUX_LINKER_SCRIPT_FALSE=
4478 mac_linker_script=no
4479 case "${host}" in
4480 *-*-apple*)
4481 mac_linker_script=yes
4483 esac
4484 if test "$mac_linker_script" = "yes"; then
4485 MAC_LINKER_SCRIPT_TRUE=
4486 MAC_LINKER_SCRIPT_FALSE='#'
4487 else
4488 MAC_LINKER_SCRIPT_TRUE='#'
4489 MAC_LINKER_SCRIPT_FALSE=
4493 enable_dlopen=yes
4497 case `pwd` in
4498 *\ * | *\ *)
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4500 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4501 esac
4505 macro_version='2.2.7a'
4506 macro_revision='1.3134'
4520 ltmain="$ac_aux_dir/ltmain.sh"
4522 # Backslashify metacharacters that are still active within
4523 # double-quoted strings.
4524 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4526 # Same as above, but do not quote variable references.
4527 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4529 # Sed substitution to delay expansion of an escaped shell variable in a
4530 # double_quote_subst'ed string.
4531 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4533 # Sed substitution to delay expansion of an escaped single quote.
4534 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4536 # Sed substitution to avoid accidental globbing in evaled expressions
4537 no_glob_subst='s/\*/\\\*/g'
4539 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4541 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4544 $as_echo_n "checking how to print strings... " >&6; }
4545 # Test print first, because it will be a builtin if present.
4546 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4548 ECHO='print -r --'
4549 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4550 ECHO='printf %s\n'
4551 else
4552 # Use this function as a fallback that always works.
4553 func_fallback_echo ()
4555 eval 'cat <<_LTECHO_EOF
4557 _LTECHO_EOF'
4559 ECHO='func_fallback_echo'
4562 # func_echo_all arg...
4563 # Invoke $ECHO with all args, space-separated.
4564 func_echo_all ()
4566 $ECHO ""
4569 case "$ECHO" in
4570 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4571 $as_echo "printf" >&6; } ;;
4572 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4573 $as_echo "print -r" >&6; } ;;
4574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4575 $as_echo "cat" >&6; } ;;
4576 esac
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4592 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4593 if test "${ac_cv_path_SED+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4597 for ac_i in 1 2 3 4 5 6 7; do
4598 ac_script="$ac_script$as_nl$ac_script"
4599 done
4600 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4601 { ac_script=; unset ac_script;}
4602 if test -z "$SED"; then
4603 ac_path_SED_found=false
4604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in sed gsed; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4613 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4614 # Check for GNU ac_path_SED and select it if it is found.
4615 # Check for GNU $ac_path_SED
4616 case `"$ac_path_SED" --version 2>&1` in
4617 *GNU*)
4618 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4620 ac_count=0
4621 $as_echo_n 0123456789 >"conftest.in"
4622 while :
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 $as_echo '' >> "conftest.nl"
4628 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 as_fn_arith $ac_count + 1 && ac_count=$as_val
4631 if test $ac_count -gt ${ac_path_SED_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_SED="$ac_path_SED"
4634 ac_path_SED_max=$ac_count
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640 esac
4642 $ac_path_SED_found && break 3
4643 done
4644 done
4645 done
4646 IFS=$as_save_IFS
4647 if test -z "$ac_cv_path_SED"; then
4648 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4650 else
4651 ac_cv_path_SED=$SED
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4656 $as_echo "$ac_cv_path_SED" >&6; }
4657 SED="$ac_cv_path_SED"
4658 rm -f conftest.sed
4660 test -z "$SED" && SED=sed
4661 Xsed="$SED -e 1s/^X//"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4674 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4675 if test "${ac_cv_path_GREP+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -z "$GREP"; then
4679 ac_path_GREP_found=false
4680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_prog in grep ggrep; do
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4690 # Check for GNU ac_path_GREP and select it if it is found.
4691 # Check for GNU $ac_path_GREP
4692 case `"$ac_path_GREP" --version 2>&1` in
4693 *GNU*)
4694 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4696 ac_count=0
4697 $as_echo_n 0123456789 >"conftest.in"
4698 while :
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
4703 $as_echo 'GREP' >> "conftest.nl"
4704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706 as_fn_arith $ac_count + 1 && ac_count=$as_val
4707 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_GREP="$ac_path_GREP"
4710 ac_path_GREP_max=$ac_count
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4718 $ac_path_GREP_found && break 3
4719 done
4720 done
4721 done
4722 IFS=$as_save_IFS
4723 if test -z "$ac_cv_path_GREP"; then
4724 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 else
4727 ac_cv_path_GREP=$GREP
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4732 $as_echo "$ac_cv_path_GREP" >&6; }
4733 GREP="$ac_cv_path_GREP"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4737 $as_echo_n "checking for egrep... " >&6; }
4738 if test "${ac_cv_path_EGREP+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4742 then ac_cv_path_EGREP="$GREP -E"
4743 else
4744 if test -z "$EGREP"; then
4745 ac_path_EGREP_found=false
4746 # Loop through the user's path and test for each of PROGNAME-LIST
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_prog in egrep; do
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4755 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4756 # Check for GNU ac_path_EGREP and select it if it is found.
4757 # Check for GNU $ac_path_EGREP
4758 case `"$ac_path_EGREP" --version 2>&1` in
4759 *GNU*)
4760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4762 ac_count=0
4763 $as_echo_n 0123456789 >"conftest.in"
4764 while :
4766 cat "conftest.in" "conftest.in" >"conftest.tmp"
4767 mv "conftest.tmp" "conftest.in"
4768 cp "conftest.in" "conftest.nl"
4769 $as_echo 'EGREP' >> "conftest.nl"
4770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4772 as_fn_arith $ac_count + 1 && ac_count=$as_val
4773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4774 # Best one so far, save it but keep looking for a better one
4775 ac_cv_path_EGREP="$ac_path_EGREP"
4776 ac_path_EGREP_max=$ac_count
4778 # 10*(2^10) chars as input seems more than enough
4779 test $ac_count -gt 10 && break
4780 done
4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782 esac
4784 $ac_path_EGREP_found && break 3
4785 done
4786 done
4787 done
4788 IFS=$as_save_IFS
4789 if test -z "$ac_cv_path_EGREP"; then
4790 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4792 else
4793 ac_cv_path_EGREP=$EGREP
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4799 $as_echo "$ac_cv_path_EGREP" >&6; }
4800 EGREP="$ac_cv_path_EGREP"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4804 $as_echo_n "checking for fgrep... " >&6; }
4805 if test "${ac_cv_path_FGREP+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4809 then ac_cv_path_FGREP="$GREP -F"
4810 else
4811 if test -z "$FGREP"; then
4812 ac_path_FGREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in fgrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4822 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4823 # Check for GNU ac_path_FGREP and select it if it is found.
4824 # Check for GNU $ac_path_FGREP
4825 case `"$ac_path_FGREP" --version 2>&1` in
4826 *GNU*)
4827 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4829 ac_count=0
4830 $as_echo_n 0123456789 >"conftest.in"
4831 while :
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'FGREP' >> "conftest.nl"
4837 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_FGREP="$ac_path_FGREP"
4843 ac_path_FGREP_max=$ac_count
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4847 done
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 esac
4851 $ac_path_FGREP_found && break 3
4852 done
4853 done
4854 done
4855 IFS=$as_save_IFS
4856 if test -z "$ac_cv_path_FGREP"; then
4857 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4859 else
4860 ac_cv_path_FGREP=$FGREP
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4866 $as_echo "$ac_cv_path_FGREP" >&6; }
4867 FGREP="$ac_cv_path_FGREP"
4870 test -z "$GREP" && GREP=grep
4890 # Check whether --with-gnu-ld was given.
4891 if test "${with_gnu_ld+set}" = set; then :
4892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4893 else
4894 with_gnu_ld=no
4897 ac_prog=ld
4898 if test "$GCC" = yes; then
4899 # Check if gcc -print-prog-name=ld gives a path.
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4901 $as_echo_n "checking for ld used by $CC... " >&6; }
4902 case $host in
4903 *-*-mingw*)
4904 # gcc leaves a trailing carriage return which upsets mingw
4905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4908 esac
4909 case $ac_prog in
4910 # Accept absolute paths.
4911 [\\/]* | ?:[\\/]*)
4912 re_direlt='/[^/][^/]*/\.\./'
4913 # Canonicalize the pathname of ld
4914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4917 done
4918 test -z "$LD" && LD="$ac_prog"
4921 # If it fails, then pretend we aren't using GCC.
4922 ac_prog=ld
4925 # If it is relative, then search for the first ld in PATH.
4926 with_gnu_ld=unknown
4928 esac
4929 elif test "$with_gnu_ld" = yes; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4931 $as_echo_n "checking for GNU ld... " >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4934 $as_echo_n "checking for non-GNU ld... " >&6; }
4936 if test "${lt_cv_path_LD+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -z "$LD"; then
4940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4941 for ac_dir in $PATH; do
4942 IFS="$lt_save_ifs"
4943 test -z "$ac_dir" && ac_dir=.
4944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4945 lt_cv_path_LD="$ac_dir/$ac_prog"
4946 # Check to see if the program is GNU ld. I'd rather use --version,
4947 # but apparently some variants of GNU ld only accept -v.
4948 # Break only if it was the GNU/non-GNU ld that we prefer.
4949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4950 *GNU* | *'with BFD'*)
4951 test "$with_gnu_ld" != no && break
4954 test "$with_gnu_ld" != yes && break
4956 esac
4958 done
4959 IFS="$lt_save_ifs"
4960 else
4961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4965 LD="$lt_cv_path_LD"
4966 if test -n "$LD"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4968 $as_echo "$LD" >&6; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4973 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4975 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4976 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4980 case `$LD -v 2>&1 </dev/null` in
4981 *GNU* | *'with BFD'*)
4982 lt_cv_prog_gnu_ld=yes
4985 lt_cv_prog_gnu_ld=no
4987 esac
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4990 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4991 with_gnu_ld=$lt_cv_prog_gnu_ld
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5002 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5003 if test "${lt_cv_path_NM+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$NM"; then
5007 # Let the user override the test.
5008 lt_cv_path_NM="$NM"
5009 else
5010 lt_nm_to_check="${ac_tool_prefix}nm"
5011 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5012 lt_nm_to_check="$lt_nm_to_check nm"
5014 for lt_tmp_nm in $lt_nm_to_check; do
5015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5016 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5017 IFS="$lt_save_ifs"
5018 test -z "$ac_dir" && ac_dir=.
5019 tmp_nm="$ac_dir/$lt_tmp_nm"
5020 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5021 # Check to see if the nm accepts a BSD-compat flag.
5022 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5023 # nm: unknown option "B" ignored
5024 # Tru64's nm complains that /dev/null is an invalid object file
5025 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5026 */dev/null* | *'Invalid file or object type'*)
5027 lt_cv_path_NM="$tmp_nm -B"
5028 break
5031 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5032 */dev/null*)
5033 lt_cv_path_NM="$tmp_nm -p"
5034 break
5037 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5038 continue # so that we can try to find one that supports BSD flags
5040 esac
5042 esac
5044 done
5045 IFS="$lt_save_ifs"
5046 done
5047 : ${lt_cv_path_NM=no}
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5051 $as_echo "$lt_cv_path_NM" >&6; }
5052 if test "$lt_cv_path_NM" != "no"; then
5053 NM="$lt_cv_path_NM"
5054 else
5055 # Didn't find any BSD compatible name lister, look for dumpbin.
5056 if test -n "$DUMPBIN"; then :
5057 # Let the user override the test.
5058 else
5059 if test -n "$ac_tool_prefix"; then
5060 for ac_prog in dumpbin "link -dump"
5062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$DUMPBIN"; then
5070 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 DUMPBIN=$ac_cv_prog_DUMPBIN
5090 if test -n "$DUMPBIN"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5092 $as_echo "$DUMPBIN" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 test -n "$DUMPBIN" && break
5100 done
5102 if test -z "$DUMPBIN"; then
5103 ac_ct_DUMPBIN=$DUMPBIN
5104 for ac_prog in dumpbin "link -dump"
5106 # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$ac_ct_DUMPBIN"; then
5114 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5127 done
5128 done
5129 IFS=$as_save_IFS
5133 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5134 if test -n "$ac_ct_DUMPBIN"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5136 $as_echo "$ac_ct_DUMPBIN" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 test -n "$ac_ct_DUMPBIN" && break
5144 done
5146 if test "x$ac_ct_DUMPBIN" = x; then
5147 DUMPBIN=":"
5148 else
5149 case $cross_compiling:$ac_tool_warned in
5150 yes:)
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5153 ac_tool_warned=yes ;;
5154 esac
5155 DUMPBIN=$ac_ct_DUMPBIN
5159 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5160 *COFF*)
5161 DUMPBIN="$DUMPBIN -symbols"
5164 DUMPBIN=:
5166 esac
5169 if test "$DUMPBIN" != ":"; then
5170 NM="$DUMPBIN"
5173 test -z "$NM" && NM=nm
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5181 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5182 if test "${lt_cv_nm_interface+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 lt_cv_nm_interface="BSD nm"
5186 echo "int some_variable = 0;" > conftest.$ac_ext
5187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5188 (eval "$ac_compile" 2>conftest.err)
5189 cat conftest.err >&5
5190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5192 cat conftest.err >&5
5193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5194 cat conftest.out >&5
5195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5196 lt_cv_nm_interface="MS dumpbin"
5198 rm -f conftest*
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5201 $as_echo "$lt_cv_nm_interface" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5204 $as_echo_n "checking whether ln -s works... " >&6; }
5205 LN_S=$as_ln_s
5206 if test "$LN_S" = "ln -s"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5211 $as_echo "no, using $LN_S" >&6; }
5214 # find the maximum length of command line arguments
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5216 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5217 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5221 teststring="ABCD"
5223 case $build_os in
5224 msdosdjgpp*)
5225 # On DJGPP, this test can blow up pretty badly due to problems in libc
5226 # (any single argument exceeding 2000 bytes causes a buffer overrun
5227 # during glob expansion). Even if it were fixed, the result of this
5228 # check would be larger than it should be.
5229 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5232 gnu*)
5233 # Under GNU Hurd, this test is not required because there is
5234 # no limit to the length of command line arguments.
5235 # Libtool will interpret -1 as no limit whatsoever
5236 lt_cv_sys_max_cmd_len=-1;
5239 cygwin* | mingw* | cegcc*)
5240 # On Win9x/ME, this test blows up -- it succeeds, but takes
5241 # about 5 minutes as the teststring grows exponentially.
5242 # Worse, since 9x/ME are not pre-emptively multitasking,
5243 # you end up with a "frozen" computer, even though with patience
5244 # the test eventually succeeds (with a max line length of 256k).
5245 # Instead, let's just punt: use the minimum linelength reported by
5246 # all of the supported platforms: 8192 (on NT/2K/XP).
5247 lt_cv_sys_max_cmd_len=8192;
5250 mint*)
5251 # On MiNT this can take a long time and run out of memory.
5252 lt_cv_sys_max_cmd_len=8192;
5255 amigaos*)
5256 # On AmigaOS with pdksh, this test takes hours, literally.
5257 # So we just punt and use a minimum line length of 8192.
5258 lt_cv_sys_max_cmd_len=8192;
5261 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5262 # This has been around since 386BSD, at least. Likely further.
5263 if test -x /sbin/sysctl; then
5264 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5265 elif test -x /usr/sbin/sysctl; then
5266 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5267 else
5268 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5270 # And add a safety zone
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5275 interix*)
5276 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5277 lt_cv_sys_max_cmd_len=196608
5280 osf*)
5281 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5282 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5283 # nice to cause kernel panics so lets avoid the loop below.
5284 # First set a reasonable default.
5285 lt_cv_sys_max_cmd_len=16384
5287 if test -x /sbin/sysconfig; then
5288 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5289 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5290 esac
5293 sco3.2v5*)
5294 lt_cv_sys_max_cmd_len=102400
5296 sysv5* | sco5v6* | sysv4.2uw2*)
5297 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5298 if test -n "$kargmax"; then
5299 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5300 else
5301 lt_cv_sys_max_cmd_len=32768
5305 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5306 if test -n "$lt_cv_sys_max_cmd_len"; then
5307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5309 else
5310 # Make teststring a little bigger before we do anything with it.
5311 # a 1K string should be a reasonable start.
5312 for i in 1 2 3 4 5 6 7 8 ; do
5313 teststring=$teststring$teststring
5314 done
5315 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5316 # If test is not a shell built-in, we'll probably end up computing a
5317 # maximum length that is only half of the actual maximum length, but
5318 # we can't tell.
5319 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5320 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5321 test $i != 17 # 1/2 MB should be enough
5323 i=`expr $i + 1`
5324 teststring=$teststring$teststring
5325 done
5326 # Only check the string length outside the loop.
5327 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5328 teststring=
5329 # Add a significant safety factor because C++ compilers can tack on
5330 # massive amounts of additional arguments before passing them to the
5331 # linker. It appears as though 1/2 is a usable value.
5332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5335 esac
5339 if test -n $lt_cv_sys_max_cmd_len ; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5341 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5344 $as_echo "none" >&6; }
5346 max_cmd_len=$lt_cv_sys_max_cmd_len
5353 : ${CP="cp -f"}
5354 : ${MV="mv -f"}
5355 : ${RM="rm -f"}
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5358 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5359 # Try some XSI features
5360 xsi_shell=no
5361 ( _lt_dummy="a/b/c"
5362 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5363 = c,a/b,, \
5364 && eval 'test $(( 1 + 1 )) -eq 2 \
5365 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5366 && xsi_shell=yes
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5368 $as_echo "$xsi_shell" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5372 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5373 lt_shell_append=no
5374 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5375 >/dev/null 2>&1 \
5376 && lt_shell_append=yes
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5378 $as_echo "$lt_shell_append" >&6; }
5381 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5382 lt_unset=unset
5383 else
5384 lt_unset=false
5391 # test EBCDIC or ASCII
5392 case `echo X|tr X '\101'` in
5393 A) # ASCII based system
5394 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5395 lt_SP2NL='tr \040 \012'
5396 lt_NL2SP='tr \015\012 \040\040'
5398 *) # EBCDIC based system
5399 lt_SP2NL='tr \100 \n'
5400 lt_NL2SP='tr \r\n \100\100'
5402 esac
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5413 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5414 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 lt_cv_ld_reload_flag='-r'
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5420 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5421 reload_flag=$lt_cv_ld_reload_flag
5422 case $reload_flag in
5423 "" | " "*) ;;
5424 *) reload_flag=" $reload_flag" ;;
5425 esac
5426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5427 case $host_os in
5428 darwin*)
5429 if test "$GCC" = yes; then
5430 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5431 else
5432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5435 esac
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$OBJDUMP"; then
5454 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5469 IFS=$as_save_IFS
5473 OBJDUMP=$ac_cv_prog_OBJDUMP
5474 if test -n "$OBJDUMP"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5476 $as_echo "$OBJDUMP" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5484 if test -z "$ac_cv_prog_OBJDUMP"; then
5485 ac_ct_OBJDUMP=$OBJDUMP
5486 # Extract the first word of "objdump", so it can be a program name with args.
5487 set dummy objdump; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$ac_ct_OBJDUMP"; then
5494 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5514 if test -n "$ac_ct_OBJDUMP"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5516 $as_echo "$ac_ct_OBJDUMP" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5522 if test "x$ac_ct_OBJDUMP" = x; then
5523 OBJDUMP="false"
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531 OBJDUMP=$ac_ct_OBJDUMP
5533 else
5534 OBJDUMP="$ac_cv_prog_OBJDUMP"
5537 test -z "$OBJDUMP" && OBJDUMP=objdump
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5548 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5549 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 lt_cv_file_magic_cmd='$MAGIC_CMD'
5553 lt_cv_file_magic_test_file=
5554 lt_cv_deplibs_check_method='unknown'
5555 # Need to set the preceding variable on all platforms that support
5556 # interlibrary dependencies.
5557 # 'none' -- dependencies not supported.
5558 # `unknown' -- same as none, but documents that we really don't know.
5559 # 'pass_all' -- all dependencies passed with no checks.
5560 # 'test_compile' -- check by making test program.
5561 # 'file_magic [[regex]]' -- check by looking for files in library path
5562 # which responds to the $file_magic_cmd with a given extended regex.
5563 # If you have `file' or equivalent on your system and you're not sure
5564 # whether `pass_all' will *always* work, you probably want this one.
5566 case $host_os in
5567 aix[4-9]*)
5568 lt_cv_deplibs_check_method=pass_all
5571 beos*)
5572 lt_cv_deplibs_check_method=pass_all
5575 bsdi[45]*)
5576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5577 lt_cv_file_magic_cmd='/usr/bin/file -L'
5578 lt_cv_file_magic_test_file=/shlib/libc.so
5581 cygwin*)
5582 # func_win32_libid is a shell function defined in ltmain.sh
5583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5584 lt_cv_file_magic_cmd='func_win32_libid'
5587 mingw* | pw32*)
5588 # Base MSYS/MinGW do not provide the 'file' command needed by
5589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5590 # unless we find 'file', for example because we are cross-compiling.
5591 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5592 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5594 lt_cv_file_magic_cmd='func_win32_libid'
5595 else
5596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5597 lt_cv_file_magic_cmd='$OBJDUMP -f'
5601 cegcc*)
5602 # use the weaker test based on 'objdump'. See mingw*.
5603 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5604 lt_cv_file_magic_cmd='$OBJDUMP -f'
5607 darwin* | rhapsody*)
5608 lt_cv_deplibs_check_method=pass_all
5611 freebsd* | dragonfly*)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 case $host_cpu in
5614 i*86 )
5615 # Not sure whether the presence of OpenBSD here was a mistake.
5616 # Let's accept both of them until this is cleared up.
5617 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5618 lt_cv_file_magic_cmd=/usr/bin/file
5619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5621 esac
5622 else
5623 lt_cv_deplibs_check_method=pass_all
5627 gnu*)
5628 lt_cv_deplibs_check_method=pass_all
5631 haiku*)
5632 lt_cv_deplibs_check_method=pass_all
5635 hpux10.20* | hpux11*)
5636 lt_cv_file_magic_cmd=/usr/bin/file
5637 case $host_cpu in
5638 ia64*)
5639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5642 hppa*64*)
5643 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]'
5644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5650 esac
5653 interix[3-9]*)
5654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5658 irix5* | irix6* | nonstopux*)
5659 case $LD in
5660 *-32|*"-32 ") libmagic=32-bit;;
5661 *-n32|*"-n32 ") libmagic=N32;;
5662 *-64|*"-64 ") libmagic=64-bit;;
5663 *) libmagic=never-match;;
5664 esac
5665 lt_cv_deplibs_check_method=pass_all
5668 # This must be Linux ELF.
5669 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5670 lt_cv_deplibs_check_method=pass_all
5673 netbsd*)
5674 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5676 else
5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5681 newos6*)
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5683 lt_cv_file_magic_cmd=/usr/bin/file
5684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5687 *nto* | *qnx*)
5688 lt_cv_deplibs_check_method=pass_all
5691 openbsd*)
5692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5694 else
5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5699 osf3* | osf4* | osf5*)
5700 lt_cv_deplibs_check_method=pass_all
5703 rdos*)
5704 lt_cv_deplibs_check_method=pass_all
5707 solaris*)
5708 lt_cv_deplibs_check_method=pass_all
5711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5712 lt_cv_deplibs_check_method=pass_all
5715 sysv4 | sysv4.3*)
5716 case $host_vendor in
5717 motorola)
5718 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]'
5719 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5721 ncr)
5722 lt_cv_deplibs_check_method=pass_all
5724 sequent)
5725 lt_cv_file_magic_cmd='/bin/file'
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5728 sni)
5729 lt_cv_file_magic_cmd='/bin/file'
5730 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5731 lt_cv_file_magic_test_file=/lib/libc.so
5733 siemens)
5734 lt_cv_deplibs_check_method=pass_all
5737 lt_cv_deplibs_check_method=pass_all
5739 esac
5742 tpf*)
5743 lt_cv_deplibs_check_method=pass_all
5745 esac
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5750 file_magic_cmd=$lt_cv_file_magic_cmd
5751 deplibs_check_method=$lt_cv_deplibs_check_method
5752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}ar; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_AR+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$AR"; then
5774 ac_cv_prog_AR="$AR" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_AR="${ac_tool_prefix}ar"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5787 done
5788 done
5789 IFS=$as_save_IFS
5793 AR=$ac_cv_prog_AR
5794 if test -n "$AR"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5796 $as_echo "$AR" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5804 if test -z "$ac_cv_prog_AR"; then
5805 ac_ct_AR=$AR
5806 # Extract the first word of "ar", so it can be a program name with args.
5807 set dummy ar; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 if test -n "$ac_ct_AR"; then
5814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_AR="ar"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5834 if test -n "$ac_ct_AR"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5836 $as_echo "$ac_ct_AR" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5842 if test "x$ac_ct_AR" = x; then
5843 AR="false"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846 yes:)
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849 ac_tool_warned=yes ;;
5850 esac
5851 AR=$ac_ct_AR
5853 else
5854 AR="$ac_cv_prog_AR"
5857 test -z "$AR" && AR=ar
5858 test -z "$AR_FLAGS" && AR_FLAGS=cru
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}strip; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_STRIP+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test -n "$STRIP"; then
5879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5892 done
5893 done
5894 IFS=$as_save_IFS
5898 STRIP=$ac_cv_prog_STRIP
5899 if test -n "$STRIP"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5901 $as_echo "$STRIP" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5909 if test -z "$ac_cv_prog_STRIP"; then
5910 ac_ct_STRIP=$STRIP
5911 # Extract the first word of "strip", so it can be a program name with args.
5912 set dummy strip; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if test -n "$ac_ct_STRIP"; then
5919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_prog_ac_ct_STRIP="strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5932 done
5933 done
5934 IFS=$as_save_IFS
5938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5939 if test -n "$ac_ct_STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5941 $as_echo "$ac_ct_STRIP" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5947 if test "x$ac_ct_STRIP" = x; then
5948 STRIP=":"
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 STRIP=$ac_ct_STRIP
5958 else
5959 STRIP="$ac_cv_prog_STRIP"
5962 test -z "$STRIP" && STRIP=:
5969 if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$RANLIB"; then
5978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5991 done
5992 done
5993 IFS=$as_save_IFS
5997 RANLIB=$ac_cv_prog_RANLIB
5998 if test -n "$RANLIB"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6000 $as_echo "$RANLIB" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6008 if test -z "$ac_cv_prog_RANLIB"; then
6009 ac_ct_RANLIB=$RANLIB
6010 # Extract the first word of "ranlib", so it can be a program name with args.
6011 set dummy ranlib; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$ac_ct_RANLIB"; then
6018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_ac_ct_RANLIB="ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6031 done
6032 done
6033 IFS=$as_save_IFS
6037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6038 if test -n "$ac_ct_RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6040 $as_echo "$ac_ct_RANLIB" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6046 if test "x$ac_ct_RANLIB" = x; then
6047 RANLIB=":"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055 RANLIB=$ac_ct_RANLIB
6057 else
6058 RANLIB="$ac_cv_prog_RANLIB"
6061 test -z "$RANLIB" && RANLIB=:
6068 # Determine commands to create old-style static archives.
6069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6070 old_postinstall_cmds='chmod 644 $oldlib'
6071 old_postuninstall_cmds=
6073 if test -n "$RANLIB"; then
6074 case $host_os in
6075 openbsd*)
6076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6081 esac
6082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6085 case $host_os in
6086 darwin*)
6087 lock_old_archive_extraction=yes ;;
6089 lock_old_archive_extraction=no ;;
6090 esac
6130 # If no C compiler was specified, use CC.
6131 LTCC=${LTCC-"$CC"}
6133 # If no C compiler flags were specified, use CFLAGS.
6134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6136 # Allow CC to be a program name with arguments.
6137 compiler=$CC
6140 # Check for command to grab the raw symbol name followed by C symbol from nm.
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6142 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6143 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6147 # These are sane defaults that work on at least a few old systems.
6148 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6150 # Character class describing NM global symbol codes.
6151 symcode='[BCDEGRST]'
6153 # Regexp to match symbols that can be accessed directly from C.
6154 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6156 # Define system-specific variables.
6157 case $host_os in
6158 aix*)
6159 symcode='[BCDT]'
6161 cygwin* | mingw* | pw32* | cegcc*)
6162 symcode='[ABCDGISTW]'
6164 hpux*)
6165 if test "$host_cpu" = ia64; then
6166 symcode='[ABCDEGRST]'
6169 irix* | nonstopux*)
6170 symcode='[BCDEGRST]'
6172 osf*)
6173 symcode='[BCDEGQRST]'
6175 solaris*)
6176 symcode='[BDRT]'
6178 sco3.2v5*)
6179 symcode='[DT]'
6181 sysv4.2uw2*)
6182 symcode='[DT]'
6184 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6185 symcode='[ABDT]'
6187 sysv4)
6188 symcode='[DFNSTU]'
6190 esac
6192 # If we're using GNU nm, then use its standard symbol codes.
6193 case `$NM -V 2>&1` in
6194 *GNU* | *'with BFD'*)
6195 symcode='[ABCDGIRSTW]' ;;
6196 esac
6198 # Transform an extracted symbol line into a proper C declaration.
6199 # Some systems (esp. on ia64) link data and code symbols differently,
6200 # so use this general approach.
6201 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6203 # Transform an extracted symbol line into symbol name and symbol address
6204 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6205 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'"
6207 # Handle CRLF in mingw tool chain
6208 opt_cr=
6209 case $build_os in
6210 mingw*)
6211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6213 esac
6215 # Try without a prefix underscore, then with it.
6216 for ac_symprfx in "" "_"; do
6218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6219 symxfrm="\\1 $ac_symprfx\\2 \\2"
6221 # Write the raw and C identifiers.
6222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6223 # Fake it for dumpbin and say T for any non-static function
6224 # and D for any global variable.
6225 # Also find C++ and __fastcall symbols from MSVC++,
6226 # which start with @ or ?.
6227 lt_cv_sys_global_symbol_pipe="$AWK '"\
6228 " {last_section=section; section=\$ 3};"\
6229 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6230 " \$ 0!~/External *\|/{next};"\
6231 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6232 " {if(hide[section]) next};"\
6233 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6234 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6235 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6236 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6237 " ' prfx=^$ac_symprfx"
6238 else
6239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6242 # Check to see that the pipe works correctly.
6243 pipe_works=no
6245 rm -f conftest*
6246 cat > conftest.$ac_ext <<_LT_EOF
6247 #ifdef __cplusplus
6248 extern "C" {
6249 #endif
6250 char nm_test_var;
6251 void nm_test_func(void);
6252 void nm_test_func(void){}
6253 #ifdef __cplusplus
6255 #endif
6256 int main(){nm_test_var='a';nm_test_func();return(0);}
6257 _LT_EOF
6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260 (eval $ac_compile) 2>&5
6261 ac_status=$?
6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263 test $ac_status = 0; }; then
6264 # Now try to grab the symbols.
6265 nlist=conftest.nm
6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6267 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; } && test -s "$nlist"; then
6271 # Try sorting and uniquifying the output.
6272 if sort "$nlist" | uniq > "$nlist"T; then
6273 mv -f "$nlist"T "$nlist"
6274 else
6275 rm -f "$nlist"T
6278 # Make sure that we snagged all the symbols we need.
6279 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6280 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6281 cat <<_LT_EOF > conftest.$ac_ext
6282 #ifdef __cplusplus
6283 extern "C" {
6284 #endif
6286 _LT_EOF
6287 # Now generate the symbol file.
6288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6290 cat <<_LT_EOF >> conftest.$ac_ext
6292 /* The mapping between symbol names and symbols. */
6293 const struct {
6294 const char *name;
6295 void *address;
6297 lt__PROGRAM__LTX_preloaded_symbols[] =
6299 { "@PROGRAM@", (void *) 0 },
6300 _LT_EOF
6301 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6302 cat <<\_LT_EOF >> conftest.$ac_ext
6303 {0, (void *) 0}
6306 /* This works around a problem in FreeBSD linker */
6307 #ifdef FREEBSD_WORKAROUND
6308 static const void *lt_preloaded_setup() {
6309 return lt__PROGRAM__LTX_preloaded_symbols;
6311 #endif
6313 #ifdef __cplusplus
6315 #endif
6316 _LT_EOF
6317 # Now try linking the two files.
6318 mv conftest.$ac_objext conftstm.$ac_objext
6319 lt_save_LIBS="$LIBS"
6320 lt_save_CFLAGS="$CFLAGS"
6321 LIBS="conftstm.$ac_objext"
6322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6324 (eval $ac_link) 2>&5
6325 ac_status=$?
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6328 pipe_works=yes
6330 LIBS="$lt_save_LIBS"
6331 CFLAGS="$lt_save_CFLAGS"
6332 else
6333 echo "cannot find nm_test_func in $nlist" >&5
6335 else
6336 echo "cannot find nm_test_var in $nlist" >&5
6338 else
6339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6341 else
6342 echo "$progname: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6345 rm -rf conftest* conftst*
6347 # Do not use the global_symbol_pipe unless it works.
6348 if test "$pipe_works" = yes; then
6349 break
6350 else
6351 lt_cv_sys_global_symbol_pipe=
6353 done
6357 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6358 lt_cv_sys_global_symbol_to_cdecl=
6360 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6362 $as_echo "failed" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6365 $as_echo "ok" >&6; }
6390 # Check whether --enable-libtool-lock was given.
6391 if test "${enable_libtool_lock+set}" = set; then :
6392 enableval=$enable_libtool_lock;
6395 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6397 # Some flags need to be propagated to the compiler or linker for good
6398 # libtool support.
6399 case $host in
6400 ia64-*-hpux*)
6401 # Find out which ABI we are using.
6402 echo 'int i;' > conftest.$ac_ext
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 case `/usr/bin/file conftest.$ac_objext` in
6409 *ELF-32*)
6410 HPUX_IA64_MODE="32"
6412 *ELF-64*)
6413 HPUX_IA64_MODE="64"
6415 esac
6417 rm -rf conftest*
6419 *-*-irix6*)
6420 # Find out which ABI we are using.
6421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; then
6427 if test "$lt_cv_prog_gnu_ld" = yes; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6429 *32-bit*)
6430 LD="${LD-ld} -melf32bsmip"
6432 *N32*)
6433 LD="${LD-ld} -melf32bmipn32"
6435 *64-bit*)
6436 LD="${LD-ld} -melf64bmip"
6438 esac
6439 else
6440 case `/usr/bin/file conftest.$ac_objext` in
6441 *32-bit*)
6442 LD="${LD-ld} -32"
6444 *N32*)
6445 LD="${LD-ld} -n32"
6447 *64-bit*)
6448 LD="${LD-ld} -64"
6450 esac
6453 rm -rf conftest*
6456 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6457 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6458 # Find out which ABI we are using.
6459 echo 'int i;' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 case `/usr/bin/file conftest.o` in
6466 *32-bit*)
6467 case $host in
6468 x86_64-*kfreebsd*-gnu)
6469 LD="${LD-ld} -m elf_i386_fbsd"
6471 x86_64-*linux*)
6472 case `/usr/bin/file conftest.o` in
6473 *x86-64*)
6474 LD="${LD-ld} -m elf32_x86_64"
6477 LD="${LD-ld} -m elf_i386"
6479 esac
6481 powerpc64le-*linux*)
6482 LD="${LD-ld} -m elf32lppclinux"
6484 powerpc64-*linux*)
6485 LD="${LD-ld} -m elf32ppclinux"
6487 s390x-*linux*)
6488 LD="${LD-ld} -m elf_s390"
6490 sparc64-*linux*)
6491 LD="${LD-ld} -m elf32_sparc"
6493 esac
6495 *64-bit*)
6496 case $host in
6497 x86_64-*kfreebsd*-gnu)
6498 LD="${LD-ld} -m elf_x86_64_fbsd"
6500 x86_64-*linux*)
6501 LD="${LD-ld} -m elf_x86_64"
6503 powerpcle-*linux*)
6504 LD="${LD-ld} -m elf64lppc"
6506 powerpc-*linux*)
6507 LD="${LD-ld} -m elf64ppc"
6509 s390*-*linux*|s390*-*tpf*)
6510 LD="${LD-ld} -m elf64_s390"
6512 sparc*-*linux*)
6513 LD="${LD-ld} -m elf64_sparc"
6515 esac
6517 esac
6519 rm -rf conftest*
6522 *-*-sco3.2v5*)
6523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6524 SAVE_CFLAGS="$CFLAGS"
6525 CFLAGS="$CFLAGS -belf"
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6528 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 ac_ext=c
6532 ac_cpp='$CPP $CPPFLAGS'
6533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6541 main ()
6545 return 0;
6547 _ACEOF
6548 if ac_fn_c_try_link "$LINENO"; then :
6549 lt_cv_cc_needs_belf=yes
6550 else
6551 lt_cv_cc_needs_belf=no
6553 rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 ac_ext=c
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6563 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6566 CFLAGS="$SAVE_CFLAGS"
6569 sparc*-*solaris*)
6570 # Find out which ABI we are using.
6571 echo 'int i;' > conftest.$ac_ext
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 case `/usr/bin/file conftest.o` in
6578 *64-bit*)
6579 case $lt_cv_prog_gnu_ld in
6580 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6583 LD="${LD-ld} -64"
6586 esac
6588 esac
6590 rm -rf conftest*
6592 esac
6594 need_locks="$enable_libtool_lock"
6597 case $host_os in
6598 rhapsody* | darwin*)
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$DSYMUTIL"; then
6608 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6621 done
6622 done
6623 IFS=$as_save_IFS
6627 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6628 if test -n "$DSYMUTIL"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6630 $as_echo "$DSYMUTIL" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6638 if test -z "$ac_cv_prog_DSYMUTIL"; then
6639 ac_ct_DSYMUTIL=$DSYMUTIL
6640 # Extract the first word of "dsymutil", so it can be a program name with args.
6641 set dummy dsymutil; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$ac_ct_DSYMUTIL"; then
6648 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6668 if test -n "$ac_ct_DSYMUTIL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6670 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6676 if test "x$ac_ct_DSYMUTIL" = x; then
6677 DSYMUTIL=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 DSYMUTIL=$ac_ct_DSYMUTIL
6687 else
6688 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$NMEDIT"; then
6700 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6713 done
6714 done
6715 IFS=$as_save_IFS
6719 NMEDIT=$ac_cv_prog_NMEDIT
6720 if test -n "$NMEDIT"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6722 $as_echo "$NMEDIT" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6730 if test -z "$ac_cv_prog_NMEDIT"; then
6731 ac_ct_NMEDIT=$NMEDIT
6732 # Extract the first word of "nmedit", so it can be a program name with args.
6733 set dummy nmedit; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_NMEDIT"; then
6740 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6760 if test -n "$ac_ct_NMEDIT"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6762 $as_echo "$ac_ct_NMEDIT" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6768 if test "x$ac_ct_NMEDIT" = x; then
6769 NMEDIT=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 NMEDIT=$ac_ct_NMEDIT
6779 else
6780 NMEDIT="$ac_cv_prog_NMEDIT"
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_LIPO+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$LIPO"; then
6792 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6807 IFS=$as_save_IFS
6811 LIPO=$ac_cv_prog_LIPO
6812 if test -n "$LIPO"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6814 $as_echo "$LIPO" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6822 if test -z "$ac_cv_prog_LIPO"; then
6823 ac_ct_LIPO=$LIPO
6824 # Extract the first word of "lipo", so it can be a program name with args.
6825 set dummy lipo; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$ac_ct_LIPO"; then
6832 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_LIPO="lipo"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6845 done
6846 done
6847 IFS=$as_save_IFS
6851 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6852 if test -n "$ac_ct_LIPO"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6854 $as_echo "$ac_ct_LIPO" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6860 if test "x$ac_ct_LIPO" = x; then
6861 LIPO=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 LIPO=$ac_ct_LIPO
6871 else
6872 LIPO="$ac_cv_prog_LIPO"
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}otool; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$OTOOL"; then
6884 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6903 OTOOL=$ac_cv_prog_OTOOL
6904 if test -n "$OTOOL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6906 $as_echo "$OTOOL" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_OTOOL"; then
6915 ac_ct_OTOOL=$OTOOL
6916 # Extract the first word of "otool", so it can be a program name with args.
6917 set dummy otool; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$ac_ct_OTOOL"; then
6924 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_OTOOL="otool"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6944 if test -n "$ac_ct_OTOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6946 $as_echo "$ac_ct_OTOOL" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_OTOOL" = x; then
6953 OTOOL=":"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961 OTOOL=$ac_ct_OTOOL
6963 else
6964 OTOOL="$ac_cv_prog_OTOOL"
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6969 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$OTOOL64"; then
6976 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6995 OTOOL64=$ac_cv_prog_OTOOL64
6996 if test -n "$OTOOL64"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6998 $as_echo "$OTOOL64" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7006 if test -z "$ac_cv_prog_OTOOL64"; then
7007 ac_ct_OTOOL64=$OTOOL64
7008 # Extract the first word of "otool64", so it can be a program name with args.
7009 set dummy otool64; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$ac_ct_OTOOL64"; then
7016 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_ac_ct_OTOOL64="otool64"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7036 if test -n "$ac_ct_OTOOL64"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7038 $as_echo "$ac_ct_OTOOL64" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7044 if test "x$ac_ct_OTOOL64" = x; then
7045 OTOOL64=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048 yes:)
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7052 esac
7053 OTOOL64=$ac_ct_OTOOL64
7055 else
7056 OTOOL64="$ac_cv_prog_OTOOL64"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7086 $as_echo_n "checking for -single_module linker flag... " >&6; }
7087 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 lt_cv_apple_cc_single_mod=no
7091 if test -z "${LT_MULTI_MODULE}"; then
7092 # By default we will add the -single_module flag. You can override
7093 # by either setting the environment variable LT_MULTI_MODULE
7094 # non-empty at configure time, or by adding -multi_module to the
7095 # link flags.
7096 rm -rf libconftest.dylib*
7097 echo "int foo(void){return 1;}" > conftest.c
7098 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7099 -dynamiclib -Wl,-single_module conftest.c" >&5
7100 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7101 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7102 _lt_result=$?
7103 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7104 lt_cv_apple_cc_single_mod=yes
7105 else
7106 cat conftest.err >&5
7108 rm -rf libconftest.dylib*
7109 rm -f conftest.*
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7113 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7115 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7116 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 lt_cv_ld_exported_symbols_list=no
7120 save_LDFLAGS=$LDFLAGS
7121 echo "_main" > conftest.sym
7122 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7127 main ()
7131 return 0;
7133 _ACEOF
7134 if ac_fn_c_try_link "$LINENO"; then :
7135 lt_cv_ld_exported_symbols_list=yes
7136 else
7137 lt_cv_ld_exported_symbols_list=no
7139 rm -f core conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LDFLAGS="$save_LDFLAGS"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7145 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7147 $as_echo_n "checking for -force_load linker flag... " >&6; }
7148 if test "${lt_cv_ld_force_load+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 lt_cv_ld_force_load=no
7152 cat > conftest.c << _LT_EOF
7153 int forced_loaded() { return 2;}
7154 _LT_EOF
7155 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7156 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7157 echo "$AR cru libconftest.a conftest.o" >&5
7158 $AR cru libconftest.a conftest.o 2>&5
7159 cat > conftest.c << _LT_EOF
7160 int main() { return 0;}
7161 _LT_EOF
7162 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7163 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7164 _lt_result=$?
7165 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7166 lt_cv_ld_force_load=yes
7167 else
7168 cat conftest.err >&5
7170 rm -f conftest.err libconftest.a conftest conftest.c
7171 rm -rf conftest.dSYM
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7175 $as_echo "$lt_cv_ld_force_load" >&6; }
7176 case $host_os in
7177 rhapsody* | darwin1.[012])
7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7179 darwin1.*)
7180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7181 darwin*) # darwin 5.x on
7182 # if running on 10.5 or later, the deployment target defaults
7183 # to the OS version, if on x86, and 10.4, the deployment
7184 # target defaults to 10.4. Don't you love it?
7185 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7186 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7187 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7188 10.[012][,.]*)
7189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7190 10.*)
7191 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7192 esac
7194 esac
7195 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7196 _lt_dar_single_mod='$single_module'
7198 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7199 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7200 else
7201 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7203 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7204 _lt_dsymutil='~$DSYMUTIL $lib || :'
7205 else
7206 _lt_dsymutil=
7209 esac
7211 ac_ext=c
7212 ac_cpp='$CPP $CPPFLAGS'
7213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7217 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7218 # On Suns, sometimes $CPP names a directory.
7219 if test -n "$CPP" && test -d "$CPP"; then
7220 CPP=
7222 if test -z "$CPP"; then
7223 if test "${ac_cv_prog_CPP+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 # Double quotes because CPP needs to be expanded
7227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7229 ac_preproc_ok=false
7230 for ac_c_preproc_warn_flag in '' yes
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 #ifdef __STDC__
7241 # include <limits.h>
7242 #else
7243 # include <assert.h>
7244 #endif
7245 Syntax error
7246 _ACEOF
7247 if ac_fn_c_try_cpp "$LINENO"; then :
7249 else
7250 # Broken: fails on valid input.
7251 continue
7253 rm -f conftest.err conftest.$ac_ext
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 #include <ac_nonexistent.h>
7260 _ACEOF
7261 if ac_fn_c_try_cpp "$LINENO"; then :
7262 # Broken: success on invalid input.
7263 continue
7264 else
7265 # Passes both tests.
7266 ac_preproc_ok=:
7267 break
7269 rm -f conftest.err conftest.$ac_ext
7271 done
7272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7273 rm -f conftest.err conftest.$ac_ext
7274 if $ac_preproc_ok; then :
7275 break
7278 done
7279 ac_cv_prog_CPP=$CPP
7282 CPP=$ac_cv_prog_CPP
7283 else
7284 ac_cv_prog_CPP=$CPP
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7287 $as_echo "$CPP" >&6; }
7288 ac_preproc_ok=false
7289 for ac_c_preproc_warn_flag in '' yes
7291 # Use a header file that comes with gcc, so configuring glibc
7292 # with a fresh cross-compiler works.
7293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 # <limits.h> exists even on freestanding compilers.
7295 # On the NeXT, cc -E runs the code through the compiler's parser,
7296 # not just through cpp. "Syntax error" is here to catch this case.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #ifdef __STDC__
7300 # include <limits.h>
7301 #else
7302 # include <assert.h>
7303 #endif
7304 Syntax error
7305 _ACEOF
7306 if ac_fn_c_try_cpp "$LINENO"; then :
7308 else
7309 # Broken: fails on valid input.
7310 continue
7312 rm -f conftest.err conftest.$ac_ext
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #include <ac_nonexistent.h>
7319 _ACEOF
7320 if ac_fn_c_try_cpp "$LINENO"; then :
7321 # Broken: success on invalid input.
7322 continue
7323 else
7324 # Passes both tests.
7325 ac_preproc_ok=:
7326 break
7328 rm -f conftest.err conftest.$ac_ext
7330 done
7331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7332 rm -f conftest.err conftest.$ac_ext
7333 if $ac_preproc_ok; then :
7335 else
7336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7338 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7339 See \`config.log' for more details." "$LINENO" 5; }
7342 ac_ext=c
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7350 $as_echo_n "checking for ANSI C header files... " >&6; }
7351 if test "${ac_cv_header_stdc+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #include <stdlib.h>
7357 #include <stdarg.h>
7358 #include <string.h>
7359 #include <float.h>
7362 main ()
7366 return 0;
7368 _ACEOF
7369 if ac_fn_c_try_compile "$LINENO"; then :
7370 ac_cv_header_stdc=yes
7371 else
7372 ac_cv_header_stdc=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 if test $ac_cv_header_stdc = yes; then
7377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 #include <string.h>
7382 _ACEOF
7383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "memchr" >/dev/null 2>&1; then :
7386 else
7387 ac_cv_header_stdc=no
7389 rm -f conftest*
7393 if test $ac_cv_header_stdc = yes; then
7394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #include <stdlib.h>
7399 _ACEOF
7400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 $EGREP "free" >/dev/null 2>&1; then :
7403 else
7404 ac_cv_header_stdc=no
7406 rm -f conftest*
7410 if test $ac_cv_header_stdc = yes; then
7411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7412 if test "$cross_compiling" = yes; then :
7414 else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <ctype.h>
7418 #include <stdlib.h>
7419 #if ((' ' & 0x0FF) == 0x020)
7420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7422 #else
7423 # define ISLOWER(c) \
7424 (('a' <= (c) && (c) <= 'i') \
7425 || ('j' <= (c) && (c) <= 'r') \
7426 || ('s' <= (c) && (c) <= 'z'))
7427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7428 #endif
7430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7432 main ()
7434 int i;
7435 for (i = 0; i < 256; i++)
7436 if (XOR (islower (i), ISLOWER (i))
7437 || toupper (i) != TOUPPER (i))
7438 return 2;
7439 return 0;
7441 _ACEOF
7442 if ac_fn_c_try_run "$LINENO"; then :
7444 else
7445 ac_cv_header_stdc=no
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7448 conftest.$ac_objext conftest.beam conftest.$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7454 $as_echo "$ac_cv_header_stdc" >&6; }
7455 if test $ac_cv_header_stdc = yes; then
7457 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7461 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7463 inttypes.h stdint.h unistd.h
7464 do :
7465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7468 eval as_val=\$$as_ac_Header
7469 if test "x$as_val" = x""yes; then :
7470 cat >>confdefs.h <<_ACEOF
7471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7472 _ACEOF
7476 done
7479 for ac_header in dlfcn.h
7480 do :
7481 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7483 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7484 cat >>confdefs.h <<_ACEOF
7485 #define HAVE_DLFCN_H 1
7486 _ACEOF
7490 done
7497 # Set options
7502 enable_win32_dll=no
7505 # Check whether --enable-shared was given.
7506 if test "${enable_shared+set}" = set; then :
7507 enableval=$enable_shared; p=${PACKAGE-default}
7508 case $enableval in
7509 yes) enable_shared=yes ;;
7510 no) enable_shared=no ;;
7512 enable_shared=no
7513 # Look at the argument we got. We use all the common list separators.
7514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7515 for pkg in $enableval; do
7516 IFS="$lt_save_ifs"
7517 if test "X$pkg" = "X$p"; then
7518 enable_shared=yes
7520 done
7521 IFS="$lt_save_ifs"
7523 esac
7524 else
7525 enable_shared=yes
7536 # Check whether --enable-static was given.
7537 if test "${enable_static+set}" = set; then :
7538 enableval=$enable_static; p=${PACKAGE-default}
7539 case $enableval in
7540 yes) enable_static=yes ;;
7541 no) enable_static=no ;;
7543 enable_static=no
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546 for pkg in $enableval; do
7547 IFS="$lt_save_ifs"
7548 if test "X$pkg" = "X$p"; then
7549 enable_static=yes
7551 done
7552 IFS="$lt_save_ifs"
7554 esac
7555 else
7556 enable_static=yes
7568 # Check whether --with-pic was given.
7569 if test "${with_pic+set}" = set; then :
7570 withval=$with_pic; pic_mode="$withval"
7571 else
7572 pic_mode=default
7576 test -z "$pic_mode" && pic_mode=default
7584 # Check whether --enable-fast-install was given.
7585 if test "${enable_fast_install+set}" = set; then :
7586 enableval=$enable_fast_install; p=${PACKAGE-default}
7587 case $enableval in
7588 yes) enable_fast_install=yes ;;
7589 no) enable_fast_install=no ;;
7591 enable_fast_install=no
7592 # Look at the argument we got. We use all the common list separators.
7593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7594 for pkg in $enableval; do
7595 IFS="$lt_save_ifs"
7596 if test "X$pkg" = "X$p"; then
7597 enable_fast_install=yes
7599 done
7600 IFS="$lt_save_ifs"
7602 esac
7603 else
7604 enable_fast_install=yes
7617 # This can be used to rebuild libtool when needed
7618 LIBTOOL_DEPS="$ltmain"
7620 # Always use our own libtool.
7621 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7648 test -z "$LN_S" && LN_S="ln -s"
7663 if test -n "${ZSH_VERSION+set}" ; then
7664 setopt NO_GLOB_SUBST
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7668 $as_echo_n "checking for objdir... " >&6; }
7669 if test "${lt_cv_objdir+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 rm -f .libs 2>/dev/null
7673 mkdir .libs 2>/dev/null
7674 if test -d .libs; then
7675 lt_cv_objdir=.libs
7676 else
7677 # MS-DOS does not allow filenames that begin with a dot.
7678 lt_cv_objdir=_libs
7680 rmdir .libs 2>/dev/null
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7683 $as_echo "$lt_cv_objdir" >&6; }
7684 objdir=$lt_cv_objdir
7690 cat >>confdefs.h <<_ACEOF
7691 #define LT_OBJDIR "$lt_cv_objdir/"
7692 _ACEOF
7697 case $host_os in
7698 aix3*)
7699 # AIX sometimes has problems with the GCC collect2 program. For some
7700 # reason, if we set the COLLECT_NAMES environment variable, the problems
7701 # vanish in a puff of smoke.
7702 if test "X${COLLECT_NAMES+set}" != Xset; then
7703 COLLECT_NAMES=
7704 export COLLECT_NAMES
7707 esac
7709 # Global variables:
7710 ofile=libtool
7711 can_build_shared=yes
7713 # All known linkers require a `.a' archive for static linking (except MSVC,
7714 # which needs '.lib').
7715 libext=a
7717 with_gnu_ld="$lt_cv_prog_gnu_ld"
7719 old_CC="$CC"
7720 old_CFLAGS="$CFLAGS"
7722 # Set sane defaults for various variables
7723 test -z "$CC" && CC=cc
7724 test -z "$LTCC" && LTCC=$CC
7725 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7726 test -z "$LD" && LD=ld
7727 test -z "$ac_objext" && ac_objext=o
7729 for cc_temp in $compiler""; do
7730 case $cc_temp in
7731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7733 \-*) ;;
7734 *) break;;
7735 esac
7736 done
7737 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7740 # Only perform the check for file, if the check method requires it
7741 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7742 case $deplibs_check_method in
7743 file_magic*)
7744 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7746 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 case $MAGIC_CMD in
7751 [\\/*] | ?:[\\/]*)
7752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7755 lt_save_MAGIC_CMD="$MAGIC_CMD"
7756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7758 for ac_dir in $ac_dummy; do
7759 IFS="$lt_save_ifs"
7760 test -z "$ac_dir" && ac_dir=.
7761 if test -f $ac_dir/${ac_tool_prefix}file; then
7762 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7763 if test -n "$file_magic_test_file"; then
7764 case $deplibs_check_method in
7765 "file_magic "*)
7766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7769 $EGREP "$file_magic_regex" > /dev/null; then
7771 else
7772 cat <<_LT_EOF 1>&2
7774 *** Warning: the command libtool uses to detect shared libraries,
7775 *** $file_magic_cmd, produces output that libtool cannot recognize.
7776 *** The result is that libtool may fail to recognize shared libraries
7777 *** as such. This will affect the creation of libtool libraries that
7778 *** depend on shared libraries, but programs linked with such libtool
7779 *** libraries will work regardless of this problem. Nevertheless, you
7780 *** may want to report the problem to your system manager and/or to
7781 *** bug-libtool@gnu.org
7783 _LT_EOF
7784 fi ;;
7785 esac
7787 break
7789 done
7790 IFS="$lt_save_ifs"
7791 MAGIC_CMD="$lt_save_MAGIC_CMD"
7793 esac
7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797 if test -n "$MAGIC_CMD"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7799 $as_echo "$MAGIC_CMD" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7809 if test -z "$lt_cv_path_MAGIC_CMD"; then
7810 if test -n "$ac_tool_prefix"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7812 $as_echo_n "checking for file... " >&6; }
7813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 case $MAGIC_CMD in
7817 [\\/*] | ?:[\\/]*)
7818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7821 lt_save_MAGIC_CMD="$MAGIC_CMD"
7822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7824 for ac_dir in $ac_dummy; do
7825 IFS="$lt_save_ifs"
7826 test -z "$ac_dir" && ac_dir=.
7827 if test -f $ac_dir/file; then
7828 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7829 if test -n "$file_magic_test_file"; then
7830 case $deplibs_check_method in
7831 "file_magic "*)
7832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7835 $EGREP "$file_magic_regex" > /dev/null; then
7837 else
7838 cat <<_LT_EOF 1>&2
7840 *** Warning: the command libtool uses to detect shared libraries,
7841 *** $file_magic_cmd, produces output that libtool cannot recognize.
7842 *** The result is that libtool may fail to recognize shared libraries
7843 *** as such. This will affect the creation of libtool libraries that
7844 *** depend on shared libraries, but programs linked with such libtool
7845 *** libraries will work regardless of this problem. Nevertheless, you
7846 *** may want to report the problem to your system manager and/or to
7847 *** bug-libtool@gnu.org
7849 _LT_EOF
7850 fi ;;
7851 esac
7853 break
7855 done
7856 IFS="$lt_save_ifs"
7857 MAGIC_CMD="$lt_save_MAGIC_CMD"
7859 esac
7862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7863 if test -n "$MAGIC_CMD"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7865 $as_echo "$MAGIC_CMD" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7872 else
7873 MAGIC_CMD=:
7879 esac
7881 # Use C for the default configuration in the libtool script
7883 lt_save_CC="$CC"
7884 ac_ext=c
7885 ac_cpp='$CPP $CPPFLAGS'
7886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 # Source file extension for C test sources.
7892 ac_ext=c
7894 # Object file extension for compiled C test sources.
7895 objext=o
7896 objext=$objext
7898 # Code to be used in simple compile tests
7899 lt_simple_compile_test_code="int some_variable = 0;"
7901 # Code to be used in simple link tests
7902 lt_simple_link_test_code='int main(){return(0);}'
7910 # If no C compiler was specified, use CC.
7911 LTCC=${LTCC-"$CC"}
7913 # If no C compiler flags were specified, use CFLAGS.
7914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7916 # Allow CC to be a program name with arguments.
7917 compiler=$CC
7919 # Save the default compiler, since it gets overwritten when the other
7920 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7921 compiler_DEFAULT=$CC
7923 # save warnings/boilerplate of simple test code
7924 ac_outfile=conftest.$ac_objext
7925 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7927 _lt_compiler_boilerplate=`cat conftest.err`
7928 $RM conftest*
7930 ac_outfile=conftest.$ac_objext
7931 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7933 _lt_linker_boilerplate=`cat conftest.err`
7934 $RM -r conftest*
7937 ## CAVEAT EMPTOR:
7938 ## There is no encapsulation within the following macros, do not change
7939 ## the running order or otherwise move them around unless you know exactly
7940 ## what you are doing...
7941 if test -n "$compiler"; then
7943 lt_prog_compiler_no_builtin_flag=
7945 if test "$GCC" = yes; then
7946 case $cc_basename in
7947 nvcc*)
7948 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7950 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7951 esac
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7954 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7955 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 lt_cv_prog_compiler_rtti_exceptions=no
7959 ac_outfile=conftest.$ac_objext
7960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7961 lt_compiler_flag="-fno-rtti -fno-exceptions"
7962 # Insert the option either (1) after the last *FLAGS variable, or
7963 # (2) before a word containing "conftest.", or (3) at the end.
7964 # Note that $ac_compile itself does not contain backslashes and begins
7965 # with a dollar sign (not a hyphen), so the echo should work correctly.
7966 # The option is referenced via a variable to avoid confusing sed.
7967 lt_compile=`echo "$ac_compile" | $SED \
7968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7970 -e 's:$: $lt_compiler_flag:'`
7971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7972 (eval "$lt_compile" 2>conftest.err)
7973 ac_status=$?
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 if (exit $ac_status) && test -s "$ac_outfile"; then
7977 # The compiler can only warn and ignore the option if not recognized
7978 # So say no if there are warnings other than the usual output.
7979 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7982 lt_cv_prog_compiler_rtti_exceptions=yes
7985 $RM conftest*
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7989 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7991 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7992 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7993 else
8004 lt_prog_compiler_wl=
8005 lt_prog_compiler_pic=
8006 lt_prog_compiler_static=
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8009 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8011 if test "$GCC" = yes; then
8012 lt_prog_compiler_wl='-Wl,'
8013 lt_prog_compiler_static='-static'
8015 case $host_os in
8016 aix*)
8017 # All AIX code is PIC.
8018 if test "$host_cpu" = ia64; then
8019 # AIX 5 now supports IA64 processor
8020 lt_prog_compiler_static='-Bstatic'
8022 lt_prog_compiler_pic='-fPIC'
8025 amigaos*)
8026 case $host_cpu in
8027 powerpc)
8028 # see comment about AmigaOS4 .so support
8029 lt_prog_compiler_pic='-fPIC'
8031 m68k)
8032 # FIXME: we need at least 68020 code to build shared libraries, but
8033 # adding the `-m68020' flag to GCC prevents building anything better,
8034 # like `-m68040'.
8035 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8037 esac
8040 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8041 # PIC is the default for these OSes.
8044 mingw* | cygwin* | pw32* | os2* | cegcc*)
8045 # This hack is so that the source file can tell whether it is being
8046 # built for inclusion in a dll (and should export symbols for example).
8047 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8048 # (--disable-auto-import) libraries
8049 lt_prog_compiler_pic='-DDLL_EXPORT'
8052 darwin* | rhapsody*)
8053 # PIC is the default on this platform
8054 # Common symbols not allowed in MH_DYLIB files
8055 lt_prog_compiler_pic='-fno-common'
8058 haiku*)
8059 # PIC is the default for Haiku.
8060 # The "-static" flag exists, but is broken.
8061 lt_prog_compiler_static=
8064 hpux*)
8065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8067 # sets the default TLS model and affects inlining.
8068 case $host_cpu in
8069 hppa*64*)
8070 # +Z the default
8073 lt_prog_compiler_pic='-fPIC'
8075 esac
8078 interix[3-9]*)
8079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8080 # Instead, we relocate shared libraries at runtime.
8083 msdosdjgpp*)
8084 # Just because we use GCC doesn't mean we suddenly get shared libraries
8085 # on systems that don't support them.
8086 lt_prog_compiler_can_build_shared=no
8087 enable_shared=no
8090 *nto* | *qnx*)
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8092 # it will coredump.
8093 lt_prog_compiler_pic='-fPIC -shared'
8096 sysv4*MP*)
8097 if test -d /usr/nec; then
8098 lt_prog_compiler_pic=-Kconform_pic
8103 lt_prog_compiler_pic='-fPIC'
8105 esac
8107 case $cc_basename in
8108 nvcc*) # Cuda Compiler Driver 2.2
8109 lt_prog_compiler_wl='-Xlinker '
8110 lt_prog_compiler_pic='-Xcompiler -fPIC'
8112 esac
8113 else
8114 # PORTME Check for flag to pass linker flags through the system compiler.
8115 case $host_os in
8116 aix*)
8117 lt_prog_compiler_wl='-Wl,'
8118 if test "$host_cpu" = ia64; then
8119 # AIX 5 now supports IA64 processor
8120 lt_prog_compiler_static='-Bstatic'
8121 else
8122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8126 mingw* | cygwin* | pw32* | os2* | cegcc*)
8127 # This hack is so that the source file can tell whether it is being
8128 # built for inclusion in a dll (and should export symbols for example).
8129 lt_prog_compiler_pic='-DDLL_EXPORT'
8132 hpux9* | hpux10* | hpux11*)
8133 lt_prog_compiler_wl='-Wl,'
8134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8135 # not for PA HP-UX.
8136 case $host_cpu in
8137 hppa*64*|ia64*)
8138 # +Z the default
8141 lt_prog_compiler_pic='+Z'
8143 esac
8144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8145 lt_prog_compiler_static='${wl}-a ${wl}archive'
8148 irix5* | irix6* | nonstopux*)
8149 lt_prog_compiler_wl='-Wl,'
8150 # PIC (with -KPIC) is the default.
8151 lt_prog_compiler_static='-non_shared'
8154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8155 case $cc_basename in
8156 # old Intel for x86_64 which still supported -KPIC.
8157 ecc*)
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-static'
8162 # icc used to be incompatible with GCC.
8163 # ICC 10 doesn't accept -KPIC any more.
8164 icc* | ifort*)
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-fPIC'
8167 lt_prog_compiler_static='-static'
8169 # Lahey Fortran 8.1.
8170 lf95*)
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='--shared'
8173 lt_prog_compiler_static='--static'
8175 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8176 # Portland Group compilers (*not* the Pentium gcc compiler,
8177 # which looks to be a dead project)
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_pic='-fpic'
8180 lt_prog_compiler_static='-Bstatic'
8182 ccc*)
8183 lt_prog_compiler_wl='-Wl,'
8184 # All Alpha code is PIC.
8185 lt_prog_compiler_static='-non_shared'
8187 xl* | bgxl* | bgf* | mpixl*)
8188 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-qpic'
8191 lt_prog_compiler_static='-qstaticlink'
8194 case `$CC -V 2>&1 | sed 5q` in
8195 *Sun\ F* | *Sun*Fortran*)
8196 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 lt_prog_compiler_wl=''
8201 *Sun\ C*)
8202 # Sun C 5.9
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8205 lt_prog_compiler_wl='-Wl,'
8207 esac
8209 esac
8212 newsos6)
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8217 *nto* | *qnx*)
8218 # QNX uses GNU C++, but need to define -shared option too, otherwise
8219 # it will coredump.
8220 lt_prog_compiler_pic='-fPIC -shared'
8223 osf3* | osf4* | osf5*)
8224 lt_prog_compiler_wl='-Wl,'
8225 # All OSF/1 code is PIC.
8226 lt_prog_compiler_static='-non_shared'
8229 rdos*)
8230 lt_prog_compiler_static='-non_shared'
8233 solaris*)
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 case $cc_basename in
8237 f77* | f90* | f95*)
8238 lt_prog_compiler_wl='-Qoption ld ';;
8240 lt_prog_compiler_wl='-Wl,';;
8241 esac
8244 sunos4*)
8245 lt_prog_compiler_wl='-Qoption ld '
8246 lt_prog_compiler_pic='-PIC'
8247 lt_prog_compiler_static='-Bstatic'
8250 sysv4 | sysv4.2uw2* | sysv4.3*)
8251 lt_prog_compiler_wl='-Wl,'
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8256 sysv4*MP*)
8257 if test -d /usr/nec ;then
8258 lt_prog_compiler_pic='-Kconform_pic'
8259 lt_prog_compiler_static='-Bstatic'
8263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_pic='-KPIC'
8266 lt_prog_compiler_static='-Bstatic'
8269 unicos*)
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_can_build_shared=no
8274 uts4*)
8275 lt_prog_compiler_pic='-pic'
8276 lt_prog_compiler_static='-Bstatic'
8280 lt_prog_compiler_can_build_shared=no
8282 esac
8285 case $host_os in
8286 # For platforms which do not support PIC, -DPIC is meaningless:
8287 *djgpp*)
8288 lt_prog_compiler_pic=
8291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8293 esac
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8295 $as_echo "$lt_prog_compiler_pic" >&6; }
8303 # Check to make sure the PIC flag actually works.
8305 if test -n "$lt_prog_compiler_pic"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8307 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8308 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 lt_cv_prog_compiler_pic_works=no
8312 ac_outfile=conftest.$ac_objext
8313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8315 # Insert the option either (1) after the last *FLAGS variable, or
8316 # (2) before a word containing "conftest.", or (3) at the end.
8317 # Note that $ac_compile itself does not contain backslashes and begins
8318 # with a dollar sign (not a hyphen), so the echo should work correctly.
8319 # The option is referenced via a variable to avoid confusing sed.
8320 lt_compile=`echo "$ac_compile" | $SED \
8321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
8324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8325 (eval "$lt_compile" 2>conftest.err)
8326 ac_status=$?
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 if (exit $ac_status) && test -s "$ac_outfile"; then
8330 # The compiler can only warn and ignore the option if not recognized
8331 # So say no if there are warnings other than the usual output.
8332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8335 lt_cv_prog_compiler_pic_works=yes
8338 $RM conftest*
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8342 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8344 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8345 case $lt_prog_compiler_pic in
8346 "" | " "*) ;;
8347 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8348 esac
8349 else
8350 lt_prog_compiler_pic=
8351 lt_prog_compiler_can_build_shared=no
8362 # Check to make sure the static flag actually works.
8364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8367 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 lt_cv_prog_compiler_static_works=no
8371 save_LDFLAGS="$LDFLAGS"
8372 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375 # The linker can only warn and ignore the option if not recognized
8376 # So say no if there are warnings
8377 if test -s conftest.err; then
8378 # Append any errors to the config.log.
8379 cat conftest.err 1>&5
8380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382 if diff conftest.exp conftest.er2 >/dev/null; then
8383 lt_cv_prog_compiler_static_works=yes
8385 else
8386 lt_cv_prog_compiler_static_works=yes
8389 $RM -r conftest*
8390 LDFLAGS="$save_LDFLAGS"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8394 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8396 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8398 else
8399 lt_prog_compiler_static=
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 lt_cv_prog_compiler_c_o=no
8414 $RM -r conftest 2>/dev/null
8415 mkdir conftest
8416 cd conftest
8417 mkdir out
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8420 lt_compiler_flag="-o out/conftest2.$ac_objext"
8421 # Insert the option either (1) after the last *FLAGS variable, or
8422 # (2) before a word containing "conftest.", or (3) at the end.
8423 # Note that $ac_compile itself does not contain backslashes and begins
8424 # with a dollar sign (not a hyphen), so the echo should work correctly.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
8429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430 (eval "$lt_compile" 2>out/conftest.err)
8431 ac_status=$?
8432 cat out/conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8435 then
8436 # The compiler can only warn and ignore the option if not recognized
8437 # So say no if there are warnings
8438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441 lt_cv_prog_compiler_c_o=yes
8444 chmod u+w . 2>&5
8445 $RM conftest*
8446 # SGI C++ compiler will create directory out/ii_files/ for
8447 # template instantiation
8448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449 $RM out/* && rmdir out
8450 cd ..
8451 $RM -r conftest
8452 $RM conftest*
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8465 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 lt_cv_prog_compiler_c_o=no
8469 $RM -r conftest 2>/dev/null
8470 mkdir conftest
8471 cd conftest
8472 mkdir out
8473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8475 lt_compiler_flag="-o out/conftest2.$ac_objext"
8476 # Insert the option either (1) after the last *FLAGS variable, or
8477 # (2) before a word containing "conftest.", or (3) at the end.
8478 # Note that $ac_compile itself does not contain backslashes and begins
8479 # with a dollar sign (not a hyphen), so the echo should work correctly.
8480 lt_compile=`echo "$ac_compile" | $SED \
8481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483 -e 's:$: $lt_compiler_flag:'`
8484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8485 (eval "$lt_compile" 2>out/conftest.err)
8486 ac_status=$?
8487 cat out/conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8490 then
8491 # The compiler can only warn and ignore the option if not recognized
8492 # So say no if there are warnings
8493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8496 lt_cv_prog_compiler_c_o=yes
8499 chmod u+w . 2>&5
8500 $RM conftest*
8501 # SGI C++ compiler will create directory out/ii_files/ for
8502 # template instantiation
8503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8504 $RM out/* && rmdir out
8505 cd ..
8506 $RM -r conftest
8507 $RM conftest*
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8516 hard_links="nottested"
8517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518 # do not overwrite the value of need_locks provided by the user
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8520 $as_echo_n "checking if we can lock with hard links... " >&6; }
8521 hard_links=yes
8522 $RM conftest*
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524 touch conftest.a
8525 ln conftest.a conftest.b 2>&5 || hard_links=no
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8528 $as_echo "$hard_links" >&6; }
8529 if test "$hard_links" = no; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8532 need_locks=warn
8534 else
8535 need_locks=no
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8544 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8546 runpath_var=
8547 allow_undefined_flag=
8548 always_export_symbols=no
8549 archive_cmds=
8550 archive_expsym_cmds=
8551 compiler_needs_object=no
8552 enable_shared_with_static_runtimes=no
8553 export_dynamic_flag_spec=
8554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8555 hardcode_automatic=no
8556 hardcode_direct=no
8557 hardcode_direct_absolute=no
8558 hardcode_libdir_flag_spec=
8559 hardcode_libdir_flag_spec_ld=
8560 hardcode_libdir_separator=
8561 hardcode_minus_L=no
8562 hardcode_shlibpath_var=unsupported
8563 inherit_rpath=no
8564 link_all_deplibs=unknown
8565 module_cmds=
8566 module_expsym_cmds=
8567 old_archive_from_new_cmds=
8568 old_archive_from_expsyms_cmds=
8569 thread_safe_flag_spec=
8570 whole_archive_flag_spec=
8571 # include_expsyms should be a list of space-separated symbols to be *always*
8572 # included in the symbol list
8573 include_expsyms=
8574 # exclude_expsyms can be an extended regexp of symbols to exclude
8575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8577 # as well as any symbol that contains `d'.
8578 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8580 # platforms (ab)use it in PIC code, but their linkers get confused if
8581 # the symbol is explicitly referenced. Since portable code cannot
8582 # rely on this symbol name, it's probably fine to never include it in
8583 # preloaded symbol tables.
8584 # Exclude shared library initialization/finalization symbols.
8585 extract_expsyms_cmds=
8587 case $host_os in
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8590 # When not using gcc, we currently assume that we are using
8591 # Microsoft Visual C++.
8592 if test "$GCC" != yes; then
8593 with_gnu_ld=no
8596 interix*)
8597 # we just hope/assume this is gcc and not c89 (= MSVC++)
8598 with_gnu_ld=yes
8600 openbsd*)
8601 with_gnu_ld=no
8603 esac
8605 ld_shlibs=yes
8607 # On some targets, GNU ld is compatible enough with the native linker
8608 # that we're better off using the native interface for both.
8609 lt_use_gnu_ld_interface=no
8610 if test "$with_gnu_ld" = yes; then
8611 case $host_os in
8612 aix*)
8613 # The AIX port of GNU ld has always aspired to compatibility
8614 # with the native linker. However, as the warning in the GNU ld
8615 # block says, versions before 2.19.5* couldn't really create working
8616 # shared libraries, regardless of the interface used.
8617 case `$LD -v 2>&1` in
8618 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8619 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8620 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8622 lt_use_gnu_ld_interface=yes
8624 esac
8627 lt_use_gnu_ld_interface=yes
8629 esac
8632 if test "$lt_use_gnu_ld_interface" = yes; then
8633 # If archive_cmds runs LD, not CC, wlarc should be empty
8634 wlarc='${wl}'
8636 # Set some defaults for GNU ld with shared library support. These
8637 # are reset later if shared libraries are not supported. Putting them
8638 # here allows them to be overridden if necessary.
8639 runpath_var=LD_RUN_PATH
8640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641 export_dynamic_flag_spec='${wl}--export-dynamic'
8642 # ancient GNU ld didn't support --whole-archive et. al.
8643 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8644 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8645 else
8646 whole_archive_flag_spec=
8648 supports_anon_versioning=no
8649 case `$LD -v 2>&1` in
8650 *GNU\ gold*) supports_anon_versioning=yes ;;
8651 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8652 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8653 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8654 *\ 2.11.*) ;; # other 2.11 versions
8655 *) supports_anon_versioning=yes ;;
8656 esac
8658 # See if GNU ld supports shared libraries.
8659 case $host_os in
8660 aix[3-9]*)
8661 # On AIX/PPC, the GNU linker is very broken
8662 if test "$host_cpu" != ia64; then
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8666 *** Warning: the GNU linker, at least up to release 2.19, is reported
8667 *** to be unable to reliably create shared libraries on AIX.
8668 *** Therefore, libtool is disabling shared libraries support. If you
8669 *** really care for shared libraries, you may want to install binutils
8670 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8671 *** You will then need to restart the configuration process.
8673 _LT_EOF
8677 amigaos*)
8678 case $host_cpu in
8679 powerpc)
8680 # see comment about AmigaOS4 .so support
8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682 archive_expsym_cmds=''
8684 m68k)
8685 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)'
8686 hardcode_libdir_flag_spec='-L$libdir'
8687 hardcode_minus_L=yes
8689 esac
8692 beos*)
8693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694 allow_undefined_flag=unsupported
8695 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8696 # support --undefined. This deserves some investigation. FIXME
8697 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 else
8699 ld_shlibs=no
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8705 # as there is no search path for DLLs.
8706 hardcode_libdir_flag_spec='-L$libdir'
8707 export_dynamic_flag_spec='${wl}--export-all-symbols'
8708 allow_undefined_flag=unsupported
8709 always_export_symbols=no
8710 enable_shared_with_static_runtimes=yes
8711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8715 # If the export-symbols file already is a .def file (1st line
8716 # is EXPORTS), use it as is; otherwise, prepend...
8717 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8718 cp $export_symbols $output_objdir/$soname.def;
8719 else
8720 echo EXPORTS > $output_objdir/$soname.def;
8721 cat $export_symbols >> $output_objdir/$soname.def;
8723 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8724 else
8725 ld_shlibs=no
8729 haiku*)
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 link_all_deplibs=yes
8734 interix[3-9]*)
8735 hardcode_direct=no
8736 hardcode_shlibpath_var=no
8737 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8738 export_dynamic_flag_spec='${wl}-E'
8739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8740 # Instead, shared libraries are loaded at an image base (0x10000000 by
8741 # default) and relocated if they conflict, which is a slow very memory
8742 # consuming and fragmenting process. To avoid this, we pick a random,
8743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8746 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'
8749 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8750 tmp_diet=no
8751 if test "$host_os" = linux-dietlibc; then
8752 case $cc_basename in
8753 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8754 esac
8756 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8757 && test "$tmp_diet" = no
8758 then
8759 tmp_addflag=' $pic_flag'
8760 tmp_sharedflag='-shared'
8761 case $cc_basename,$host_cpu in
8762 pgcc*) # Portland Group C compiler
8763 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'
8764 tmp_addflag=' $pic_flag'
8766 pgf77* | pgf90* | pgf95* | pgfortran*)
8767 # Portland Group f77 and f90 compilers
8768 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'
8769 tmp_addflag=' $pic_flag -Mnomain' ;;
8770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8771 tmp_addflag=' -i_dynamic' ;;
8772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8773 tmp_addflag=' -i_dynamic -nofor_main' ;;
8774 ifc* | ifort*) # Intel Fortran compiler
8775 tmp_addflag=' -nofor_main' ;;
8776 lf95*) # Lahey Fortran 8.1
8777 whole_archive_flag_spec=
8778 tmp_sharedflag='--shared' ;;
8779 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8780 tmp_sharedflag='-qmkshrobj'
8781 tmp_addflag= ;;
8782 nvcc*) # Cuda Compiler Driver 2.2
8783 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'
8784 compiler_needs_object=yes
8786 esac
8787 case `$CC -V 2>&1 | sed 5q` in
8788 *Sun\ C*) # Sun C 5.9
8789 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'
8790 compiler_needs_object=yes
8791 tmp_sharedflag='-G' ;;
8792 *Sun\ F*) # Sun Fortran 8.3
8793 tmp_sharedflag='-G' ;;
8794 esac
8795 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 if test "x$supports_anon_versioning" = xyes; then
8798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8800 echo "local: *; };" >> $output_objdir/$libname.ver~
8801 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8804 case $cc_basename in
8805 xlf* | bgf* | bgxlf* | mpixlf*)
8806 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8807 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8808 hardcode_libdir_flag_spec=
8809 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8810 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8811 if test "x$supports_anon_versioning" = xyes; then
8812 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8814 echo "local: *; };" >> $output_objdir/$libname.ver~
8815 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8818 esac
8819 else
8820 ld_shlibs=no
8824 netbsd*)
8825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8827 wlarc=
8828 else
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8834 solaris*)
8835 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8836 ld_shlibs=no
8837 cat <<_LT_EOF 1>&2
8839 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8840 *** create shared libraries on Solaris systems. Therefore, libtool
8841 *** is disabling shared libraries support. We urge you to upgrade GNU
8842 *** binutils to release 2.9.1 or newer. Another option is to modify
8843 *** your PATH or compiler configuration so that the native linker is
8844 *** used, and then restart.
8846 _LT_EOF
8847 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8850 else
8851 ld_shlibs=no
8855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8856 case `$LD -v 2>&1` in
8857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8858 ld_shlibs=no
8859 cat <<_LT_EOF 1>&2
8861 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8862 *** reliably create shared libraries on SCO systems. Therefore, libtool
8863 *** is disabling shared libraries support. We urge you to upgrade GNU
8864 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8865 *** your PATH or compiler configuration so that the native linker is
8866 *** used, and then restart.
8868 _LT_EOF
8871 # For security reasons, it is highly recommended that you always
8872 # use absolute paths for naming shared libraries, and exclude the
8873 # DT_RUNPATH tag from executables and libraries. But doing so
8874 # requires that you compile everything twice, which is a pain.
8875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8879 else
8880 ld_shlibs=no
8883 esac
8886 sunos4*)
8887 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8888 wlarc=
8889 hardcode_direct=yes
8890 hardcode_shlibpath_var=no
8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8897 else
8898 ld_shlibs=no
8901 esac
8903 if test "$ld_shlibs" = no; then
8904 runpath_var=
8905 hardcode_libdir_flag_spec=
8906 export_dynamic_flag_spec=
8907 whole_archive_flag_spec=
8909 else
8910 # PORTME fill in a description of your system's linker (not GNU ld)
8911 case $host_os in
8912 aix3*)
8913 allow_undefined_flag=unsupported
8914 always_export_symbols=yes
8915 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'
8916 # Note: this linker hardcodes the directories in LIBPATH if there
8917 # are no directories specified by -L.
8918 hardcode_minus_L=yes
8919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8920 # Neither direct hardcoding nor static linking is supported with a
8921 # broken collect2.
8922 hardcode_direct=unsupported
8926 aix[4-9]*)
8927 if test "$host_cpu" = ia64; then
8928 # On IA64, the linker does run time linking by default, so we don't
8929 # have to do anything special.
8930 aix_use_runtimelinking=no
8931 exp_sym_flag='-Bexport'
8932 no_entry_flag=""
8933 else
8934 # If we're using GNU nm, then we don't want the "-C" option.
8935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8936 # Also, AIX nm treats weak defined symbols like other global
8937 # defined symbols, whereas GNU nm marks them as "W".
8938 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8939 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'
8940 else
8941 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'
8943 aix_use_runtimelinking=no
8945 # Test if we are trying to use run time linking or normal
8946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8947 # need to do runtime linking.
8948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8949 for ld_flag in $LDFLAGS; do
8950 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8951 aix_use_runtimelinking=yes
8952 break
8954 done
8956 esac
8958 exp_sym_flag='-bexport'
8959 no_entry_flag='-bnoentry'
8962 # When large executables or shared objects are built, AIX ld can
8963 # have problems creating the table of contents. If linking a library
8964 # or program results in "error TOC overflow" add -mminimal-toc to
8965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8968 archive_cmds=''
8969 hardcode_direct=yes
8970 hardcode_direct_absolute=yes
8971 hardcode_libdir_separator=':'
8972 link_all_deplibs=yes
8973 file_list_spec='${wl}-f,'
8975 if test "$GCC" = yes; then
8976 case $host_os in aix4.[012]|aix4.[012].*)
8977 # We only want to do this on AIX 4.2 and lower, the check
8978 # below for broken collect2 doesn't work under 4.3+
8979 collect2name=`${CC} -print-prog-name=collect2`
8980 if test -f "$collect2name" &&
8981 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8982 then
8983 # We have reworked collect2
8985 else
8986 # We have old collect2
8987 hardcode_direct=unsupported
8988 # It fails to find uninstalled libraries when the uninstalled
8989 # path is not listed in the libpath. Setting hardcode_minus_L
8990 # to unsupported forces relinking
8991 hardcode_minus_L=yes
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_libdir_separator=
8996 esac
8997 shared_flag='-shared'
8998 if test "$aix_use_runtimelinking" = yes; then
8999 shared_flag="$shared_flag "'${wl}-G'
9001 else
9002 # not using gcc
9003 if test "$host_cpu" = ia64; then
9004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9005 # chokes on -Wl,-G. The following line is correct:
9006 shared_flag='-G'
9007 else
9008 if test "$aix_use_runtimelinking" = yes; then
9009 shared_flag='${wl}-G'
9010 else
9011 shared_flag='${wl}-bM:SRE'
9016 export_dynamic_flag_spec='${wl}-bexpall'
9017 # It seems that -bexpall does not export symbols beginning with
9018 # underscore (_), so it is better to generate a list of symbols to export.
9019 always_export_symbols=yes
9020 if test "$aix_use_runtimelinking" = yes; then
9021 # Warning - without using the other runtime loading flags (-brtl),
9022 # -berok will link without error, but may produce a broken library.
9023 allow_undefined_flag='-berok'
9024 # Determine the default libpath from the value encoded in an
9025 # empty executable.
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9030 main ()
9034 return 0;
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9039 lt_aix_libpath_sed='
9040 /Import File Strings/,/^$/ {
9041 /^0/ {
9042 s/^0 *\(.*\)$/\1/
9046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9047 # Check for a 64-bit object if we didn't find anything.
9048 if test -z "$aix_libpath"; then
9049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052 rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9057 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"
9058 else
9059 if test "$host_cpu" = ia64; then
9060 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9061 allow_undefined_flag="-z nodefs"
9062 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"
9063 else
9064 # Determine the default libpath from the value encoded in an
9065 # empty executable.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9070 main ()
9074 return 0;
9076 _ACEOF
9077 if ac_fn_c_try_link "$LINENO"; then :
9079 lt_aix_libpath_sed='
9080 /Import File Strings/,/^$/ {
9081 /^0/ {
9082 s/^0 *\(.*\)$/\1/
9086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9087 # Check for a 64-bit object if we didn't find anything.
9088 if test -z "$aix_libpath"; then
9089 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9097 # Warning - without using the other run time loading flags,
9098 # -berok will link without error, but may produce a broken library.
9099 no_undefined_flag=' ${wl}-bernotok'
9100 allow_undefined_flag=' ${wl}-berok'
9101 if test "$with_gnu_ld" = yes; then
9102 # We only use this code for GNU lds that support --whole-archive.
9103 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9104 else
9105 # Exported symbols can be pulled into shared objects from archives
9106 whole_archive_flag_spec='$convenience'
9108 archive_cmds_need_lc=yes
9109 # This is similar to how AIX traditionally builds its shared libraries.
9110 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'
9115 amigaos*)
9116 case $host_cpu in
9117 powerpc)
9118 # see comment about AmigaOS4 .so support
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds=''
9122 m68k)
9123 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)'
9124 hardcode_libdir_flag_spec='-L$libdir'
9125 hardcode_minus_L=yes
9127 esac
9130 bsdi[45]*)
9131 export_dynamic_flag_spec=-rdynamic
9134 cygwin* | mingw* | pw32* | cegcc*)
9135 # When not using gcc, we currently assume that we are using
9136 # Microsoft Visual C++.
9137 # hardcode_libdir_flag_spec is actually meaningless, as there is
9138 # no search path for DLLs.
9139 hardcode_libdir_flag_spec=' '
9140 allow_undefined_flag=unsupported
9141 # Tell ltmain to make .lib files, not .a files.
9142 libext=lib
9143 # Tell ltmain to make .dll files, not .so files.
9144 shrext_cmds=".dll"
9145 # FIXME: Setting linknames here is a bad hack.
9146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9147 # The linker will automatically build a .lib file if we build a DLL.
9148 old_archive_from_new_cmds='true'
9149 # FIXME: Should let the user specify the lib program.
9150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9151 fix_srcfile_path='`cygpath -w "$srcfile"`'
9152 enable_shared_with_static_runtimes=yes
9155 darwin* | rhapsody*)
9158 archive_cmds_need_lc=no
9159 hardcode_direct=no
9160 hardcode_automatic=yes
9161 hardcode_shlibpath_var=unsupported
9162 if test "$lt_cv_ld_force_load" = "yes"; then
9163 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\"`'
9164 else
9165 whole_archive_flag_spec=''
9167 link_all_deplibs=yes
9168 allow_undefined_flag="$_lt_dar_allow_undefined"
9169 case $cc_basename in
9170 ifort*) _lt_dar_can_shared=yes ;;
9171 *) _lt_dar_can_shared=$GCC ;;
9172 esac
9173 if test "$_lt_dar_can_shared" = "yes"; then
9174 output_verbose_link_cmd=func_echo_all
9175 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9176 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9177 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}"
9178 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}"
9180 else
9181 ld_shlibs=no
9186 dgux*)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_shlibpath_var=no
9192 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9193 # support. Future versions do this automatically, but an explicit c++rt0.o
9194 # does not break anything, and helps significantly (at the cost of a little
9195 # extra space).
9196 freebsd2.2*)
9197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9198 hardcode_libdir_flag_spec='-R$libdir'
9199 hardcode_direct=yes
9200 hardcode_shlibpath_var=no
9203 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9204 freebsd2.*)
9205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9206 hardcode_direct=yes
9207 hardcode_minus_L=yes
9208 hardcode_shlibpath_var=no
9211 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9212 freebsd* | dragonfly*)
9213 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9214 hardcode_libdir_flag_spec='-R$libdir'
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9219 hpux9*)
9220 if test "$GCC" = yes; then
9221 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'
9222 else
9223 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'
9225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9226 hardcode_libdir_separator=:
9227 hardcode_direct=yes
9229 # hardcode_minus_L: Not really in the search PATH,
9230 # but as the default location of the library.
9231 hardcode_minus_L=yes
9232 export_dynamic_flag_spec='${wl}-E'
9235 hpux10*)
9236 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9237 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9238 else
9239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9241 if test "$with_gnu_ld" = no; then
9242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9243 hardcode_libdir_flag_spec_ld='+b $libdir'
9244 hardcode_libdir_separator=:
9245 hardcode_direct=yes
9246 hardcode_direct_absolute=yes
9247 export_dynamic_flag_spec='${wl}-E'
9248 # hardcode_minus_L: Not really in the search PATH,
9249 # but as the default location of the library.
9250 hardcode_minus_L=yes
9254 hpux11*)
9255 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9256 case $host_cpu in
9257 hppa*64*)
9258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9260 ia64*)
9261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9266 esac
9267 else
9268 case $host_cpu in
9269 hppa*64*)
9270 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9272 ia64*)
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277 # Older versions of the 11.00 compiler do not understand -b yet
9278 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9280 $as_echo_n "checking if $CC understands -b... " >&6; }
9281 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 lt_cv_prog_compiler__b=no
9285 save_LDFLAGS="$LDFLAGS"
9286 LDFLAGS="$LDFLAGS -b"
9287 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9288 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9289 # The linker can only warn and ignore the option if not recognized
9290 # So say no if there are warnings
9291 if test -s conftest.err; then
9292 # Append any errors to the config.log.
9293 cat conftest.err 1>&5
9294 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9296 if diff conftest.exp conftest.er2 >/dev/null; then
9297 lt_cv_prog_compiler__b=yes
9299 else
9300 lt_cv_prog_compiler__b=yes
9303 $RM -r conftest*
9304 LDFLAGS="$save_LDFLAGS"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9308 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9310 if test x"$lt_cv_prog_compiler__b" = xyes; then
9311 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9312 else
9313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317 esac
9319 if test "$with_gnu_ld" = no; then
9320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321 hardcode_libdir_separator=:
9323 case $host_cpu in
9324 hppa*64*|ia64*)
9325 hardcode_direct=no
9326 hardcode_shlibpath_var=no
9329 hardcode_direct=yes
9330 hardcode_direct_absolute=yes
9331 export_dynamic_flag_spec='${wl}-E'
9333 # hardcode_minus_L: Not really in the search PATH,
9334 # but as the default location of the library.
9335 hardcode_minus_L=yes
9337 esac
9341 irix5* | irix6* | nonstopux*)
9342 if test "$GCC" = yes; then
9343 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'
9344 # Try to use the -exported_symbol ld option, if it does not
9345 # work, assume that -exports_file does not work either and
9346 # implicitly export all symbols.
9347 save_LDFLAGS="$LDFLAGS"
9348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351 int foo(void) {}
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 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'
9357 rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LDFLAGS="$save_LDFLAGS"
9360 else
9361 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'
9362 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'
9364 archive_cmds_need_lc='no'
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366 hardcode_libdir_separator=:
9367 inherit_rpath=yes
9368 link_all_deplibs=yes
9371 netbsd*)
9372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9374 else
9375 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9377 hardcode_libdir_flag_spec='-R$libdir'
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9382 newsos6)
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_direct=yes
9385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386 hardcode_libdir_separator=:
9387 hardcode_shlibpath_var=no
9390 *nto* | *qnx*)
9393 openbsd*)
9394 if test -f /usr/libexec/ld.so; then
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9397 hardcode_direct_absolute=yes
9398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402 export_dynamic_flag_spec='${wl}-E'
9403 else
9404 case $host_os in
9405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_libdir_flag_spec='-R$libdir'
9410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9413 esac
9415 else
9416 ld_shlibs=no
9420 os2*)
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_minus_L=yes
9423 allow_undefined_flag=unsupported
9424 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'
9425 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9428 osf3*)
9429 if test "$GCC" = yes; then
9430 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9431 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'
9432 else
9433 allow_undefined_flag=' -expect_unresolved \*'
9434 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'
9436 archive_cmds_need_lc='no'
9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438 hardcode_libdir_separator=:
9441 osf4* | osf5*) # as osf3* with the addition of -msym flag
9442 if test "$GCC" = yes; then
9443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9444 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'
9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446 else
9447 allow_undefined_flag=' -expect_unresolved \*'
9448 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'
9449 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~
9450 $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'
9452 # Both c and cxx compiler support -rpath directly
9453 hardcode_libdir_flag_spec='-rpath $libdir'
9455 archive_cmds_need_lc='no'
9456 hardcode_libdir_separator=:
9459 solaris*)
9460 no_undefined_flag=' -z defs'
9461 if test "$GCC" = yes; then
9462 wlarc='${wl}'
9463 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9466 else
9467 case `$CC -V 2>&1` in
9468 *"Compilers 5.0"*)
9469 wlarc=''
9470 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9475 wlarc='${wl}'
9476 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9480 esac
9482 hardcode_libdir_flag_spec='-R$libdir'
9483 hardcode_shlibpath_var=no
9484 case $host_os in
9485 solaris2.[0-5] | solaris2.[0-5].*) ;;
9487 # The compiler driver will combine and reorder linker options,
9488 # but understands `-z linker_flag'. GCC discards it without `$wl',
9489 # but is careful enough not to reorder.
9490 # Supported since Solaris 2.6 (maybe 2.5.1?)
9491 if test "$GCC" = yes; then
9492 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9493 else
9494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9497 esac
9498 link_all_deplibs=yes
9501 sunos4*)
9502 if test "x$host_vendor" = xsequent; then
9503 # Use $CC to link under sequent, because it throws in some extra .o
9504 # files that make .init and .fini sections work.
9505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9506 else
9507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9509 hardcode_libdir_flag_spec='-L$libdir'
9510 hardcode_direct=yes
9511 hardcode_minus_L=yes
9512 hardcode_shlibpath_var=no
9515 sysv4)
9516 case $host_vendor in
9517 sni)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=yes # is this really true???
9521 siemens)
9522 ## LD is ld it makes a PLAMLIB
9523 ## CC just makes a GrossModule.
9524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9525 reload_cmds='$CC -r -o $output$reload_objs'
9526 hardcode_direct=no
9528 motorola)
9529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9532 esac
9533 runpath_var='LD_RUN_PATH'
9534 hardcode_shlibpath_var=no
9537 sysv4.3*)
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_shlibpath_var=no
9540 export_dynamic_flag_spec='-Bexport'
9543 sysv4*MP*)
9544 if test -d /usr/nec; then
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_shlibpath_var=no
9547 runpath_var=LD_RUN_PATH
9548 hardcode_runpath_var=yes
9549 ld_shlibs=yes
9553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9554 no_undefined_flag='${wl}-z,text'
9555 archive_cmds_need_lc=no
9556 hardcode_shlibpath_var=no
9557 runpath_var='LD_RUN_PATH'
9559 if test "$GCC" = yes; then
9560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9562 else
9563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568 sysv5* | sco3.2v5* | sco5v6*)
9569 # Note: We can NOT use -z defs as we might desire, because we do not
9570 # link with -lc, and that would cause any symbols used from libc to
9571 # always be unresolved, which means just about no library would
9572 # ever link correctly. If we're not using GNU ld we use -z text
9573 # though, which does catch some bad symbols but isn't as heavy-handed
9574 # as -z defs.
9575 no_undefined_flag='${wl}-z,text'
9576 allow_undefined_flag='${wl}-z,nodefs'
9577 archive_cmds_need_lc=no
9578 hardcode_shlibpath_var=no
9579 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9580 hardcode_libdir_separator=':'
9581 link_all_deplibs=yes
9582 export_dynamic_flag_spec='${wl}-Bexport'
9583 runpath_var='LD_RUN_PATH'
9585 if test "$GCC" = yes; then
9586 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588 else
9589 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 uts4*)
9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_shlibpath_var=no
9601 ld_shlibs=no
9603 esac
9605 if test x$host_vendor = xsni; then
9606 case $host in
9607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9608 export_dynamic_flag_spec='${wl}-Blargedynsym'
9610 esac
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9615 $as_echo "$ld_shlibs" >&6; }
9616 test "$ld_shlibs" = no && can_build_shared=no
9618 with_gnu_ld=$with_gnu_ld
9635 # Do we need to explicitly link libc?
9637 case "x$archive_cmds_need_lc" in
9638 x|xyes)
9639 # Assume -lc should be added
9640 archive_cmds_need_lc=yes
9642 if test "$enable_shared" = yes && test "$GCC" = yes; then
9643 case $archive_cmds in
9644 *'~'*)
9645 # FIXME: we may have to deal with multi-command sequences.
9647 '$CC '*)
9648 # Test whether the compiler implicitly links with -lc since on some
9649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9650 # to ld, don't add -lc before -lgcc.
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9652 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9653 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 $RM conftest*
9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9660 (eval $ac_compile) 2>&5
9661 ac_status=$?
9662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9663 test $ac_status = 0; } 2>conftest.err; then
9664 soname=conftest
9665 lib=conftest
9666 libobjs=conftest.$ac_objext
9667 deplibs=
9668 wl=$lt_prog_compiler_wl
9669 pic_flag=$lt_prog_compiler_pic
9670 compiler_flags=-v
9671 linker_flags=-v
9672 verstring=
9673 output_objdir=.
9674 libname=conftest
9675 lt_save_allow_undefined_flag=$allow_undefined_flag
9676 allow_undefined_flag=
9677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9678 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9679 ac_status=$?
9680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9681 test $ac_status = 0; }
9682 then
9683 lt_cv_archive_cmds_need_lc=no
9684 else
9685 lt_cv_archive_cmds_need_lc=yes
9687 allow_undefined_flag=$lt_save_allow_undefined_flag
9688 else
9689 cat conftest.err 1>&5
9691 $RM conftest*
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9695 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9696 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9698 esac
9701 esac
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9862 if test "$GCC" = yes; then
9863 case $host_os in
9864 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9865 *) lt_awk_arg="/^libraries:/" ;;
9866 esac
9867 case $host_os in
9868 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9869 *) lt_sed_strip_eq="s,=/,/,g" ;;
9870 esac
9871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9872 case $lt_search_path_spec in
9873 *\;*)
9874 # if the path contains ";" then we assume it to be the separator
9875 # otherwise default to the standard path separator (i.e. ":") - it is
9876 # assumed that no part of a normal pathname contains ";" but that should
9877 # okay in the real world where ";" in dirpaths is itself problematic.
9878 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9883 esac
9884 # Ok, now we have the path, separated by spaces, we can step through it
9885 # and add multilib dir if necessary.
9886 lt_tmp_lt_search_path_spec=
9887 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9888 for lt_sys_path in $lt_search_path_spec; do
9889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9891 else
9892 test -d "$lt_sys_path" && \
9893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9895 done
9896 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9897 BEGIN {RS=" "; FS="/|\n";} {
9898 lt_foo="";
9899 lt_count=0;
9900 for (lt_i = NF; lt_i > 0; lt_i--) {
9901 if ($lt_i != "" && $lt_i != ".") {
9902 if ($lt_i == "..") {
9903 lt_count++;
9904 } else {
9905 if (lt_count == 0) {
9906 lt_foo="/" $lt_i lt_foo;
9907 } else {
9908 lt_count--;
9913 if (lt_foo != "") { lt_freq[lt_foo]++; }
9914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9916 # AWK program above erroneously prepends '/' to C:/dos/paths
9917 # for these hosts.
9918 case $host_os in
9919 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9920 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9921 esac
9922 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9923 else
9924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9926 library_names_spec=
9927 libname_spec='lib$name'
9928 soname_spec=
9929 shrext_cmds=".so"
9930 postinstall_cmds=
9931 postuninstall_cmds=
9932 finish_cmds=
9933 finish_eval=
9934 shlibpath_var=
9935 shlibpath_overrides_runpath=unknown
9936 version_type=none
9937 dynamic_linker="$host_os ld.so"
9938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9939 need_lib_prefix=unknown
9940 hardcode_into_libs=no
9942 # when you set need_version to no, make sure it does not cause -set_version
9943 # flags to be left without arguments
9944 need_version=unknown
9946 case $host_os in
9947 aix3*)
9948 version_type=linux
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9950 shlibpath_var=LIBPATH
9952 # AIX 3 has no versioning support, so we append a major version to the name.
9953 soname_spec='${libname}${release}${shared_ext}$major'
9956 aix[4-9]*)
9957 version_type=linux
9958 need_lib_prefix=no
9959 need_version=no
9960 hardcode_into_libs=yes
9961 if test "$host_cpu" = ia64; then
9962 # AIX 5 supports IA64
9963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9964 shlibpath_var=LD_LIBRARY_PATH
9965 else
9966 # With GCC up to 2.95.x, collect2 would create an import file
9967 # for dependence libraries. The import file would start with
9968 # the line `#! .'. This would cause the generated library to
9969 # depend on `.', always an invalid library. This was fixed in
9970 # development snapshots of GCC prior to 3.0.
9971 case $host_os in
9972 aix4 | aix4.[01] | aix4.[01].*)
9973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9974 echo ' yes '
9975 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9977 else
9978 can_build_shared=no
9981 esac
9982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9983 # soname into executable. Probably we can add versioning support to
9984 # collect2, so additional links can be useful in future.
9985 if test "$aix_use_runtimelinking" = yes; then
9986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9987 # instead of lib<name>.a to let people know that these are not
9988 # typical AIX shared libraries.
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990 else
9991 # We preserve .a as extension for shared libraries through AIX4.2
9992 # and later when we are not doing run time linking.
9993 library_names_spec='${libname}${release}.a $libname.a'
9994 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LIBPATH
10000 amigaos*)
10001 case $host_cpu in
10002 powerpc)
10003 # Since July 2007 AmigaOS4 officially supports .so libraries.
10004 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 m68k)
10008 library_names_spec='$libname.ixlibrary $libname.a'
10009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10010 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'
10012 esac
10015 beos*)
10016 library_names_spec='${libname}${shared_ext}'
10017 dynamic_linker="$host_os ld.so"
10018 shlibpath_var=LIBRARY_PATH
10021 bsdi[45]*)
10022 version_type=linux
10023 need_version=no
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10030 # the default ld.so.conf also contains /usr/contrib/lib and
10031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10032 # libtool to hard-code these into programs
10035 cygwin* | mingw* | pw32* | cegcc*)
10036 version_type=windows
10037 shrext_cmds=".dll"
10038 need_version=no
10039 need_lib_prefix=no
10041 case $GCC,$host_os in
10042 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10043 library_names_spec='$libname.dll.a'
10044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10045 postinstall_cmds='base_file=`basename \${file}`~
10046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10047 dldir=$destdir/`dirname \$dlpath`~
10048 test -d \$dldir || mkdir -p \$dldir~
10049 $install_prog $dir/$dlname \$dldir/$dlname~
10050 chmod a+x \$dldir/$dlname~
10051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10055 dlpath=$dir/\$dldll~
10056 $RM \$dlpath'
10057 shlibpath_overrides_runpath=yes
10059 case $host_os in
10060 cygwin*)
10061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10064 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10066 mingw* | cegcc*)
10067 # MinGW DLLs use traditional 'lib' prefix
10068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10070 pw32*)
10071 # pw32 DLLs use 'pw' prefix rather than 'lib'
10072 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10074 esac
10078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10080 esac
10081 dynamic_linker='Win32 ld.exe'
10082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10086 darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
10091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
10095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10101 dgux*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10110 freebsd* | dragonfly*)
10111 # DragonFly does not have aout. When/if they implement a new
10112 # versioning mechanism, adjust this.
10113 if test -x /usr/bin/objformat; then
10114 objformat=`/usr/bin/objformat`
10115 else
10116 case $host_os in
10117 freebsd[23].*) objformat=aout ;;
10118 *) objformat=elf ;;
10119 esac
10121 version_type=freebsd-$objformat
10122 case $version_type in
10123 freebsd-elf*)
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10125 need_version=no
10126 need_lib_prefix=no
10128 freebsd-*)
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10130 need_version=yes
10132 esac
10133 shlibpath_var=LD_LIBRARY_PATH
10134 case $host_os in
10135 freebsd2.*)
10136 shlibpath_overrides_runpath=yes
10138 freebsd3.[01]* | freebsdelf3.[01]*)
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10144 shlibpath_overrides_runpath=no
10145 hardcode_into_libs=yes
10147 *) # from 4.6 on, and DragonFly
10148 shlibpath_overrides_runpath=yes
10149 hardcode_into_libs=yes
10151 esac
10154 gnu*)
10155 version_type=linux
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 hardcode_into_libs=yes
10164 haiku*)
10165 version_type=linux
10166 need_lib_prefix=no
10167 need_version=no
10168 dynamic_linker="$host_os runtime_loader"
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 shlibpath_var=LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10173 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10174 hardcode_into_libs=yes
10177 hpux9* | hpux10* | hpux11*)
10178 # Give a soname corresponding to the major version so that dld.sl refuses to
10179 # link against other versions.
10180 version_type=sunos
10181 need_lib_prefix=no
10182 need_version=no
10183 case $host_cpu in
10184 ia64*)
10185 shrext_cmds='.so'
10186 hardcode_into_libs=yes
10187 dynamic_linker="$host_os dld.so"
10188 shlibpath_var=LD_LIBRARY_PATH
10189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 if test "X$HPUX_IA64_MODE" = X32; then
10193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10194 else
10195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10199 hppa*64*)
10200 shrext_cmds='.sl'
10201 hardcode_into_libs=yes
10202 dynamic_linker="$host_os dld.sl"
10203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10211 shrext_cmds='.sl'
10212 dynamic_linker="$host_os dld.sl"
10213 shlibpath_var=SHLIB_PATH
10214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10218 esac
10219 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10220 postinstall_cmds='chmod 555 $lib'
10221 # or fails outright, so override atomically:
10222 install_override_mode=555
10225 interix[3-9]*)
10226 version_type=linux
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10234 hardcode_into_libs=yes
10237 irix5* | irix6* | nonstopux*)
10238 case $host_os in
10239 nonstopux*) version_type=nonstopux ;;
10241 if test "$lt_cv_prog_gnu_ld" = yes; then
10242 version_type=linux
10243 else
10244 version_type=irix
10245 fi ;;
10246 esac
10247 need_lib_prefix=no
10248 need_version=no
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10251 case $host_os in
10252 irix5* | nonstopux*)
10253 libsuff= shlibsuff=
10256 case $LD in # libtool.m4 will add one of these switches to LD
10257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10258 libsuff= shlibsuff= libmagic=32-bit;;
10259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10260 libsuff=32 shlibsuff=N32 libmagic=N32;;
10261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10263 *) libsuff= shlibsuff= libmagic=never-match;;
10264 esac
10266 esac
10267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10268 shlibpath_overrides_runpath=no
10269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10271 hardcode_into_libs=yes
10274 # No shared lib support for Linux oldld, aout, or coff.
10275 linux*oldld* | linux*aout* | linux*coff*)
10276 dynamic_linker=no
10279 # This must be Linux ELF.
10280 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=no
10290 # Some binutils ld are patched to set DT_RUNPATH
10291 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 lt_cv_shlibpath_overrides_runpath=no
10295 save_LDFLAGS=$LDFLAGS
10296 save_libdir=$libdir
10297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10303 main ()
10307 return 0;
10309 _ACEOF
10310 if ac_fn_c_try_link "$LINENO"; then :
10311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10312 lt_cv_shlibpath_overrides_runpath=yes
10315 rm -f core conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LDFLAGS=$save_LDFLAGS
10318 libdir=$save_libdir
10322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10324 # This implies no fast_install, which is unacceptable.
10325 # Some rework will be needed to allow for fast_install
10326 # before this can be enabled.
10327 hardcode_into_libs=yes
10329 # Append ld.so.conf contents to the search path
10330 if test -f /etc/ld.so.conf; then
10331 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' ' '`
10332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10335 # We used to test for /lib/ld.so.1 and disable shared libraries on
10336 # powerpc, because MkLinux only supported shared libraries with the
10337 # GNU dynamic linker. Since this was broken with cross compilers,
10338 # most powerpc-linux boxes support dynamic linking these days and
10339 # people can always --disable-shared, the test was removed, and we
10340 # assume the GNU/Linux dynamic linker is in use.
10341 dynamic_linker='GNU/Linux ld.so'
10344 netbsd*)
10345 version_type=sunos
10346 need_lib_prefix=no
10347 need_version=no
10348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10351 dynamic_linker='NetBSD (a.out) ld.so'
10352 else
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 dynamic_linker='NetBSD ld.elf_so'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=yes
10359 hardcode_into_libs=yes
10362 newsos6)
10363 version_type=linux
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10369 *nto* | *qnx*)
10370 version_type=qnx
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
10376 shlibpath_overrides_runpath=no
10377 hardcode_into_libs=yes
10378 dynamic_linker='ldqnx.so'
10381 openbsd*)
10382 version_type=sunos
10383 sys_lib_dlsearch_path_spec="/usr/lib"
10384 need_lib_prefix=no
10385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10386 case $host_os in
10387 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10388 *) need_version=no ;;
10389 esac
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10394 case $host_os in
10395 openbsd2.[89] | openbsd2.[89].*)
10396 shlibpath_overrides_runpath=no
10399 shlibpath_overrides_runpath=yes
10401 esac
10402 else
10403 shlibpath_overrides_runpath=yes
10407 os2*)
10408 libname_spec='$name'
10409 shrext_cmds=".dll"
10410 need_lib_prefix=no
10411 library_names_spec='$libname${shared_ext} $libname.a'
10412 dynamic_linker='OS/2 ld.exe'
10413 shlibpath_var=LIBPATH
10416 osf3* | osf4* | osf5*)
10417 version_type=osf
10418 need_lib_prefix=no
10419 need_version=no
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10427 rdos*)
10428 dynamic_linker=no
10431 solaris*)
10432 version_type=linux
10433 need_lib_prefix=no
10434 need_version=no
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10440 # ldd complains unless libraries are executable
10441 postinstall_cmds='chmod +x $lib'
10444 sunos4*)
10445 version_type=sunos
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=yes
10450 if test "$with_gnu_ld" = yes; then
10451 need_lib_prefix=no
10453 need_version=yes
10456 sysv4 | sysv4.3*)
10457 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
10461 case $host_vendor in
10462 sni)
10463 shlibpath_overrides_runpath=no
10464 need_lib_prefix=no
10465 runpath_var=LD_RUN_PATH
10467 siemens)
10468 need_lib_prefix=no
10470 motorola)
10471 need_lib_prefix=no
10472 need_version=no
10473 shlibpath_overrides_runpath=no
10474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10476 esac
10479 sysv4*MP*)
10480 if test -d /usr/nec ;then
10481 version_type=linux
10482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10483 soname_spec='$libname${shared_ext}.$major'
10484 shlibpath_var=LD_LIBRARY_PATH
10488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10489 version_type=freebsd-elf
10490 need_lib_prefix=no
10491 need_version=no
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=yes
10496 hardcode_into_libs=yes
10497 if test "$with_gnu_ld" = yes; then
10498 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10499 else
10500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10501 case $host_os in
10502 sco3.2v5*)
10503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10505 esac
10507 sys_lib_dlsearch_path_spec='/usr/lib'
10510 tpf*)
10511 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10512 version_type=linux
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10521 uts4*)
10522 version_type=linux
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 shlibpath_var=LD_LIBRARY_PATH
10529 dynamic_linker=no
10531 esac
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10533 $as_echo "$dynamic_linker" >&6; }
10534 test "$dynamic_linker" = no && can_build_shared=no
10536 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10537 if test "$GCC" = yes; then
10538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10541 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10544 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10640 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10641 hardcode_action=
10642 if test -n "$hardcode_libdir_flag_spec" ||
10643 test -n "$runpath_var" ||
10644 test "X$hardcode_automatic" = "Xyes" ; then
10646 # We can hardcode non-existent directories.
10647 if test "$hardcode_direct" != no &&
10648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10649 # have to relink, otherwise we might link with an installed library
10650 # when we should be linking with a yet-to-be-installed one
10651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10652 test "$hardcode_minus_L" != no; then
10653 # Linking always hardcodes the temporary library directory.
10654 hardcode_action=relink
10655 else
10656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10657 hardcode_action=immediate
10659 else
10660 # We cannot hardcode anything, or else we can only hardcode existing
10661 # directories.
10662 hardcode_action=unsupported
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10665 $as_echo "$hardcode_action" >&6; }
10667 if test "$hardcode_action" = relink ||
10668 test "$inherit_rpath" = yes; then
10669 # Fast installation is not supported
10670 enable_fast_install=no
10671 elif test "$shlibpath_overrides_runpath" = yes ||
10672 test "$enable_shared" = no; then
10673 # Fast installation is not necessary
10674 enable_fast_install=needless
10682 if test "x$enable_dlopen" != xyes; then
10683 enable_dlopen=unknown
10684 enable_dlopen_self=unknown
10685 enable_dlopen_self_static=unknown
10686 else
10687 lt_cv_dlopen=no
10688 lt_cv_dlopen_libs=
10690 case $host_os in
10691 beos*)
10692 lt_cv_dlopen="load_add_on"
10693 lt_cv_dlopen_libs=
10694 lt_cv_dlopen_self=yes
10697 mingw* | pw32* | cegcc*)
10698 lt_cv_dlopen="LoadLibrary"
10699 lt_cv_dlopen_libs=
10702 cygwin*)
10703 lt_cv_dlopen="dlopen"
10704 lt_cv_dlopen_libs=
10707 darwin*)
10708 # if libdl is installed we need to link against it
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10710 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-ldl $LIBS"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char dlopen ();
10727 main ()
10729 return dlopen ();
10731 return 0;
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_lib_dl_dlopen=yes
10736 else
10737 ac_cv_lib_dl_dlopen=no
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10744 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10745 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10747 else
10749 lt_cv_dlopen="dyld"
10750 lt_cv_dlopen_libs=
10751 lt_cv_dlopen_self=yes
10758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10759 if test "x$ac_cv_func_shl_load" = x""yes; then :
10760 lt_cv_dlopen="shl_load"
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10763 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10764 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-ldld $LIBS"
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10775 #ifdef __cplusplus
10776 extern "C"
10777 #endif
10778 char shl_load ();
10780 main ()
10782 return shl_load ();
10784 return 0;
10786 _ACEOF
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_dld_shl_load=yes
10789 else
10790 ac_cv_lib_dld_shl_load=no
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10797 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10798 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10800 else
10801 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10802 if test "x$ac_cv_func_dlopen" = x""yes; then :
10803 lt_cv_dlopen="dlopen"
10804 else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 ac_check_lib_save_LIBS=$LIBS
10811 LIBS="-ldl $LIBS"
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char dlopen ();
10823 main ()
10825 return dlopen ();
10827 return 0;
10829 _ACEOF
10830 if ac_fn_c_try_link "$LINENO"; then :
10831 ac_cv_lib_dl_dlopen=yes
10832 else
10833 ac_cv_lib_dl_dlopen=no
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 LIBS=$ac_check_lib_save_LIBS
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10841 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10845 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-lsvld $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10862 main ()
10864 return dlopen ();
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_svld_dlopen=yes
10871 else
10872 ac_cv_lib_svld_dlopen=no
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10879 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10880 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10884 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10885 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-ldld $LIBS"
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char dld_link ();
10901 main ()
10903 return dld_link ();
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_dld_dld_link=yes
10910 else
10911 ac_cv_lib_dld_dld_link=no
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10918 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10919 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10920 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10939 esac
10941 if test "x$lt_cv_dlopen" != xno; then
10942 enable_dlopen=yes
10943 else
10944 enable_dlopen=no
10947 case $lt_cv_dlopen in
10948 dlopen)
10949 save_CPPFLAGS="$CPPFLAGS"
10950 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10952 save_LDFLAGS="$LDFLAGS"
10953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10955 save_LIBS="$LIBS"
10956 LIBS="$lt_cv_dlopen_libs $LIBS"
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10959 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10960 if test "${lt_cv_dlopen_self+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 if test "$cross_compiling" = yes; then :
10964 lt_cv_dlopen_self=cross
10965 else
10966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10967 lt_status=$lt_dlunknown
10968 cat > conftest.$ac_ext <<_LT_EOF
10969 #line 10969 "configure"
10970 #include "confdefs.h"
10972 #if HAVE_DLFCN_H
10973 #include <dlfcn.h>
10974 #endif
10976 #include <stdio.h>
10978 #ifdef RTLD_GLOBAL
10979 # define LT_DLGLOBAL RTLD_GLOBAL
10980 #else
10981 # ifdef DL_GLOBAL
10982 # define LT_DLGLOBAL DL_GLOBAL
10983 # else
10984 # define LT_DLGLOBAL 0
10985 # endif
10986 #endif
10988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10989 find out it does not work in some platform. */
10990 #ifndef LT_DLLAZY_OR_NOW
10991 # ifdef RTLD_LAZY
10992 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10993 # else
10994 # ifdef DL_LAZY
10995 # define LT_DLLAZY_OR_NOW DL_LAZY
10996 # else
10997 # ifdef RTLD_NOW
10998 # define LT_DLLAZY_OR_NOW RTLD_NOW
10999 # else
11000 # ifdef DL_NOW
11001 # define LT_DLLAZY_OR_NOW DL_NOW
11002 # else
11003 # define LT_DLLAZY_OR_NOW 0
11004 # endif
11005 # endif
11006 # endif
11007 # endif
11008 #endif
11010 /* When -fvisbility=hidden is used, assume the code has been annotated
11011 correspondingly for the symbols needed. */
11012 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11013 void fnord () __attribute__((visibility("default")));
11014 #endif
11016 void fnord () { int i=42; }
11017 int main ()
11019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11020 int status = $lt_dlunknown;
11022 if (self)
11024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11025 else
11027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11028 else puts (dlerror ());
11030 /* dlclose (self); */
11032 else
11033 puts (dlerror ());
11035 return status;
11037 _LT_EOF
11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11039 (eval $ac_link) 2>&5
11040 ac_status=$?
11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11043 (./conftest; exit; ) >&5 2>/dev/null
11044 lt_status=$?
11045 case x$lt_status in
11046 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11047 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11048 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11049 esac
11050 else :
11051 # compilation failed
11052 lt_cv_dlopen_self=no
11055 rm -fr conftest*
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11060 $as_echo "$lt_cv_dlopen_self" >&6; }
11062 if test "x$lt_cv_dlopen_self" = xyes; then
11063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11065 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11066 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test "$cross_compiling" = yes; then :
11070 lt_cv_dlopen_self_static=cross
11071 else
11072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11073 lt_status=$lt_dlunknown
11074 cat > conftest.$ac_ext <<_LT_EOF
11075 #line 11075 "configure"
11076 #include "confdefs.h"
11078 #if HAVE_DLFCN_H
11079 #include <dlfcn.h>
11080 #endif
11082 #include <stdio.h>
11084 #ifdef RTLD_GLOBAL
11085 # define LT_DLGLOBAL RTLD_GLOBAL
11086 #else
11087 # ifdef DL_GLOBAL
11088 # define LT_DLGLOBAL DL_GLOBAL
11089 # else
11090 # define LT_DLGLOBAL 0
11091 # endif
11092 #endif
11094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11095 find out it does not work in some platform. */
11096 #ifndef LT_DLLAZY_OR_NOW
11097 # ifdef RTLD_LAZY
11098 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11099 # else
11100 # ifdef DL_LAZY
11101 # define LT_DLLAZY_OR_NOW DL_LAZY
11102 # else
11103 # ifdef RTLD_NOW
11104 # define LT_DLLAZY_OR_NOW RTLD_NOW
11105 # else
11106 # ifdef DL_NOW
11107 # define LT_DLLAZY_OR_NOW DL_NOW
11108 # else
11109 # define LT_DLLAZY_OR_NOW 0
11110 # endif
11111 # endif
11112 # endif
11113 # endif
11114 #endif
11116 /* When -fvisbility=hidden is used, assume the code has been annotated
11117 correspondingly for the symbols needed. */
11118 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11119 void fnord () __attribute__((visibility("default")));
11120 #endif
11122 void fnord () { int i=42; }
11123 int main ()
11125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11126 int status = $lt_dlunknown;
11128 if (self)
11130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11131 else
11133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11134 else puts (dlerror ());
11136 /* dlclose (self); */
11138 else
11139 puts (dlerror ());
11141 return status;
11143 _LT_EOF
11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11145 (eval $ac_link) 2>&5
11146 ac_status=$?
11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11148 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11149 (./conftest; exit; ) >&5 2>/dev/null
11150 lt_status=$?
11151 case x$lt_status in
11152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11154 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11155 esac
11156 else :
11157 # compilation failed
11158 lt_cv_dlopen_self_static=no
11161 rm -fr conftest*
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11166 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11169 CPPFLAGS="$save_CPPFLAGS"
11170 LDFLAGS="$save_LDFLAGS"
11171 LIBS="$save_LIBS"
11173 esac
11175 case $lt_cv_dlopen_self in
11176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11177 *) enable_dlopen_self=unknown ;;
11178 esac
11180 case $lt_cv_dlopen_self_static in
11181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11182 *) enable_dlopen_self_static=unknown ;;
11183 esac
11202 striplib=
11203 old_striplib=
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11205 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11206 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11210 $as_echo "yes" >&6; }
11211 else
11212 # FIXME - insert some real tests, host_os isn't really good enough
11213 case $host_os in
11214 darwin*)
11215 if test -n "$STRIP" ; then
11216 striplib="$STRIP -x"
11217 old_striplib="$STRIP -S"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11219 $as_echo "yes" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11229 esac
11243 # Report which library types will actually be built
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11245 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11247 $as_echo "$can_build_shared" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11250 $as_echo_n "checking whether to build shared libraries... " >&6; }
11251 test "$can_build_shared" = "no" && enable_shared=no
11253 # On AIX, shared libraries and static libraries use the same namespace, and
11254 # are all built from PIC.
11255 case $host_os in
11256 aix3*)
11257 test "$enable_shared" = yes && enable_static=no
11258 if test -n "$RANLIB"; then
11259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11260 postinstall_cmds='$RANLIB $lib'
11264 aix[4-9]*)
11265 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11266 test "$enable_shared" = yes && enable_static=no
11269 esac
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11271 $as_echo "$enable_shared" >&6; }
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11274 $as_echo_n "checking whether to build static libraries... " >&6; }
11275 # Make sure either enable_shared or enable_static is yes.
11276 test "$enable_shared" = yes || enable_static=yes
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11278 $as_echo "$enable_static" >&6; }
11284 ac_ext=c
11285 ac_cpp='$CPP $CPPFLAGS'
11286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11290 CC="$lt_save_CC"
11292 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11293 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11294 (test "X$CXX" != "Xg++"))) ; then
11295 ac_ext=cpp
11296 ac_cpp='$CXXCPP $CPPFLAGS'
11297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11301 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11302 if test -z "$CXXCPP"; then
11303 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 # Double quotes because CXXCPP needs to be expanded
11307 for CXXCPP in "$CXX -E" "/lib/cpp"
11309 ac_preproc_ok=false
11310 for ac_cxx_preproc_warn_flag in '' yes
11312 # Use a header file that comes with gcc, so configuring glibc
11313 # with a fresh cross-compiler works.
11314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11315 # <limits.h> exists even on freestanding compilers.
11316 # On the NeXT, cc -E runs the code through the compiler's parser,
11317 # not just through cpp. "Syntax error" is here to catch this case.
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320 #ifdef __STDC__
11321 # include <limits.h>
11322 #else
11323 # include <assert.h>
11324 #endif
11325 Syntax error
11326 _ACEOF
11327 if ac_fn_cxx_try_cpp "$LINENO"; then :
11329 else
11330 # Broken: fails on valid input.
11331 continue
11333 rm -f conftest.err conftest.$ac_ext
11335 # OK, works on sane cases. Now check whether nonexistent headers
11336 # can be detected and how.
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11339 #include <ac_nonexistent.h>
11340 _ACEOF
11341 if ac_fn_cxx_try_cpp "$LINENO"; then :
11342 # Broken: success on invalid input.
11343 continue
11344 else
11345 # Passes both tests.
11346 ac_preproc_ok=:
11347 break
11349 rm -f conftest.err conftest.$ac_ext
11351 done
11352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11353 rm -f conftest.err conftest.$ac_ext
11354 if $ac_preproc_ok; then :
11355 break
11358 done
11359 ac_cv_prog_CXXCPP=$CXXCPP
11362 CXXCPP=$ac_cv_prog_CXXCPP
11363 else
11364 ac_cv_prog_CXXCPP=$CXXCPP
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11367 $as_echo "$CXXCPP" >&6; }
11368 ac_preproc_ok=false
11369 for ac_cxx_preproc_warn_flag in '' yes
11371 # Use a header file that comes with gcc, so configuring glibc
11372 # with a fresh cross-compiler works.
11373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11374 # <limits.h> exists even on freestanding compilers.
11375 # On the NeXT, cc -E runs the code through the compiler's parser,
11376 # not just through cpp. "Syntax error" is here to catch this case.
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379 #ifdef __STDC__
11380 # include <limits.h>
11381 #else
11382 # include <assert.h>
11383 #endif
11384 Syntax error
11385 _ACEOF
11386 if ac_fn_cxx_try_cpp "$LINENO"; then :
11388 else
11389 # Broken: fails on valid input.
11390 continue
11392 rm -f conftest.err conftest.$ac_ext
11394 # OK, works on sane cases. Now check whether nonexistent headers
11395 # can be detected and how.
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11398 #include <ac_nonexistent.h>
11399 _ACEOF
11400 if ac_fn_cxx_try_cpp "$LINENO"; then :
11401 # Broken: success on invalid input.
11402 continue
11403 else
11404 # Passes both tests.
11405 ac_preproc_ok=:
11406 break
11408 rm -f conftest.err conftest.$ac_ext
11410 done
11411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11412 rm -f conftest.err conftest.$ac_ext
11413 if $ac_preproc_ok; then :
11415 else
11416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11418 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11419 See \`config.log' for more details." "$LINENO" 5; }
11422 ac_ext=c
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428 else
11429 _lt_caught_CXX_error=yes
11432 ac_ext=cpp
11433 ac_cpp='$CXXCPP $CPPFLAGS'
11434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11438 archive_cmds_need_lc_CXX=no
11439 allow_undefined_flag_CXX=
11440 always_export_symbols_CXX=no
11441 archive_expsym_cmds_CXX=
11442 compiler_needs_object_CXX=no
11443 export_dynamic_flag_spec_CXX=
11444 hardcode_direct_CXX=no
11445 hardcode_direct_absolute_CXX=no
11446 hardcode_libdir_flag_spec_CXX=
11447 hardcode_libdir_flag_spec_ld_CXX=
11448 hardcode_libdir_separator_CXX=
11449 hardcode_minus_L_CXX=no
11450 hardcode_shlibpath_var_CXX=unsupported
11451 hardcode_automatic_CXX=no
11452 inherit_rpath_CXX=no
11453 module_cmds_CXX=
11454 module_expsym_cmds_CXX=
11455 link_all_deplibs_CXX=unknown
11456 old_archive_cmds_CXX=$old_archive_cmds
11457 reload_flag_CXX=$reload_flag
11458 reload_cmds_CXX=$reload_cmds
11459 no_undefined_flag_CXX=
11460 whole_archive_flag_spec_CXX=
11461 enable_shared_with_static_runtimes_CXX=no
11463 # Source file extension for C++ test sources.
11464 ac_ext=cpp
11466 # Object file extension for compiled C++ test sources.
11467 objext=o
11468 objext_CXX=$objext
11470 # No sense in running all these tests if we already determined that
11471 # the CXX compiler isn't working. Some variables (like enable_shared)
11472 # are currently assumed to apply to all compilers on this platform,
11473 # and will be corrupted by setting them based on a non-working compiler.
11474 if test "$_lt_caught_CXX_error" != yes; then
11475 # Code to be used in simple compile tests
11476 lt_simple_compile_test_code="int some_variable = 0;"
11478 # Code to be used in simple link tests
11479 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11488 # If no C compiler was specified, use CC.
11489 LTCC=${LTCC-"$CC"}
11491 # If no C compiler flags were specified, use CFLAGS.
11492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11494 # Allow CC to be a program name with arguments.
11495 compiler=$CC
11498 # save warnings/boilerplate of simple test code
11499 ac_outfile=conftest.$ac_objext
11500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11502 _lt_compiler_boilerplate=`cat conftest.err`
11503 $RM conftest*
11505 ac_outfile=conftest.$ac_objext
11506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11508 _lt_linker_boilerplate=`cat conftest.err`
11509 $RM -r conftest*
11512 # Allow CC to be a program name with arguments.
11513 lt_save_CC=$CC
11514 lt_save_LD=$LD
11515 lt_save_GCC=$GCC
11516 GCC=$GXX
11517 lt_save_with_gnu_ld=$with_gnu_ld
11518 lt_save_path_LD=$lt_cv_path_LD
11519 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11520 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11521 else
11522 $as_unset lt_cv_prog_gnu_ld
11524 if test -n "${lt_cv_path_LDCXX+set}"; then
11525 lt_cv_path_LD=$lt_cv_path_LDCXX
11526 else
11527 $as_unset lt_cv_path_LD
11529 test -z "${LDCXX+set}" || LD=$LDCXX
11530 CC=${CXX-"c++"}
11531 compiler=$CC
11532 compiler_CXX=$CC
11533 for cc_temp in $compiler""; do
11534 case $cc_temp in
11535 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11536 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11537 \-*) ;;
11538 *) break;;
11539 esac
11540 done
11541 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11544 if test -n "$compiler"; then
11545 # We don't want -fno-exception when compiling C++ code, so set the
11546 # no_builtin_flag separately
11547 if test "$GXX" = yes; then
11548 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11549 else
11550 lt_prog_compiler_no_builtin_flag_CXX=
11553 if test "$GXX" = yes; then
11554 # Set up default GNU C++ configuration
11558 # Check whether --with-gnu-ld was given.
11559 if test "${with_gnu_ld+set}" = set; then :
11560 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11561 else
11562 with_gnu_ld=no
11565 ac_prog=ld
11566 if test "$GCC" = yes; then
11567 # Check if gcc -print-prog-name=ld gives a path.
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11569 $as_echo_n "checking for ld used by $CC... " >&6; }
11570 case $host in
11571 *-*-mingw*)
11572 # gcc leaves a trailing carriage return which upsets mingw
11573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11576 esac
11577 case $ac_prog in
11578 # Accept absolute paths.
11579 [\\/]* | ?:[\\/]*)
11580 re_direlt='/[^/][^/]*/\.\./'
11581 # Canonicalize the pathname of ld
11582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11585 done
11586 test -z "$LD" && LD="$ac_prog"
11589 # If it fails, then pretend we aren't using GCC.
11590 ac_prog=ld
11593 # If it is relative, then search for the first ld in PATH.
11594 with_gnu_ld=unknown
11596 esac
11597 elif test "$with_gnu_ld" = yes; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11599 $as_echo_n "checking for GNU ld... " >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11602 $as_echo_n "checking for non-GNU ld... " >&6; }
11604 if test "${lt_cv_path_LD+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 if test -z "$LD"; then
11608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11609 for ac_dir in $PATH; do
11610 IFS="$lt_save_ifs"
11611 test -z "$ac_dir" && ac_dir=.
11612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11613 lt_cv_path_LD="$ac_dir/$ac_prog"
11614 # Check to see if the program is GNU ld. I'd rather use --version,
11615 # but apparently some variants of GNU ld only accept -v.
11616 # Break only if it was the GNU/non-GNU ld that we prefer.
11617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11618 *GNU* | *'with BFD'*)
11619 test "$with_gnu_ld" != no && break
11622 test "$with_gnu_ld" != yes && break
11624 esac
11626 done
11627 IFS="$lt_save_ifs"
11628 else
11629 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11633 LD="$lt_cv_path_LD"
11634 if test -n "$LD"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11636 $as_echo "$LD" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11641 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11644 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11648 case `$LD -v 2>&1 </dev/null` in
11649 *GNU* | *'with BFD'*)
11650 lt_cv_prog_gnu_ld=yes
11653 lt_cv_prog_gnu_ld=no
11655 esac
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11658 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11659 with_gnu_ld=$lt_cv_prog_gnu_ld
11667 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11668 # archiving commands below assume that GNU ld is being used.
11669 if test "$with_gnu_ld" = yes; then
11670 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11671 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'
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11674 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11676 # If archive_cmds runs LD, not CC, wlarc should be empty
11677 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11678 # investigate it a little bit more. (MM)
11679 wlarc='${wl}'
11681 # ancient GNU ld didn't support --whole-archive et. al.
11682 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11683 $GREP 'no-whole-archive' > /dev/null; then
11684 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11685 else
11686 whole_archive_flag_spec_CXX=
11688 else
11689 with_gnu_ld=no
11690 wlarc=
11692 # A generic and very simple default shared library creation
11693 # command for GNU C++ for the case where it uses the native
11694 # linker, instead of GNU ld. If possible, this setting should
11695 # overridden to take advantage of the native linker features on
11696 # the platform it is being used on.
11697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11700 # Commands to make compiler produce verbose output that lists
11701 # what "hidden" libraries, object files and flags are used when
11702 # linking a shared library.
11703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11705 else
11706 GXX=no
11707 with_gnu_ld=no
11708 wlarc=
11711 # PORTME: fill in a description of your system's C++ link characteristics
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11714 ld_shlibs_CXX=yes
11715 case $host_os in
11716 aix3*)
11717 # FIXME: insert proper C++ library support
11718 ld_shlibs_CXX=no
11720 aix[4-9]*)
11721 if test "$host_cpu" = ia64; then
11722 # On IA64, the linker does run time linking by default, so we don't
11723 # have to do anything special.
11724 aix_use_runtimelinking=no
11725 exp_sym_flag='-Bexport'
11726 no_entry_flag=""
11727 else
11728 aix_use_runtimelinking=no
11730 # Test if we are trying to use run time linking or normal
11731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11732 # need to do runtime linking.
11733 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11734 for ld_flag in $LDFLAGS; do
11735 case $ld_flag in
11736 *-brtl*)
11737 aix_use_runtimelinking=yes
11738 break
11740 esac
11741 done
11743 esac
11745 exp_sym_flag='-bexport'
11746 no_entry_flag='-bnoentry'
11749 # When large executables or shared objects are built, AIX ld can
11750 # have problems creating the table of contents. If linking a library
11751 # or program results in "error TOC overflow" add -mminimal-toc to
11752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11755 archive_cmds_CXX=''
11756 hardcode_direct_CXX=yes
11757 hardcode_direct_absolute_CXX=yes
11758 hardcode_libdir_separator_CXX=':'
11759 link_all_deplibs_CXX=yes
11760 file_list_spec_CXX='${wl}-f,'
11762 if test "$GXX" = yes; then
11763 case $host_os in aix4.[012]|aix4.[012].*)
11764 # We only want to do this on AIX 4.2 and lower, the check
11765 # below for broken collect2 doesn't work under 4.3+
11766 collect2name=`${CC} -print-prog-name=collect2`
11767 if test -f "$collect2name" &&
11768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11769 then
11770 # We have reworked collect2
11772 else
11773 # We have old collect2
11774 hardcode_direct_CXX=unsupported
11775 # It fails to find uninstalled libraries when the uninstalled
11776 # path is not listed in the libpath. Setting hardcode_minus_L
11777 # to unsupported forces relinking
11778 hardcode_minus_L_CXX=yes
11779 hardcode_libdir_flag_spec_CXX='-L$libdir'
11780 hardcode_libdir_separator_CXX=
11782 esac
11783 shared_flag='-shared'
11784 if test "$aix_use_runtimelinking" = yes; then
11785 shared_flag="$shared_flag "'${wl}-G'
11787 else
11788 # not using gcc
11789 if test "$host_cpu" = ia64; then
11790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11791 # chokes on -Wl,-G. The following line is correct:
11792 shared_flag='-G'
11793 else
11794 if test "$aix_use_runtimelinking" = yes; then
11795 shared_flag='${wl}-G'
11796 else
11797 shared_flag='${wl}-bM:SRE'
11802 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11803 # It seems that -bexpall does not export symbols beginning with
11804 # underscore (_), so it is better to generate a list of symbols to
11805 # export.
11806 always_export_symbols_CXX=yes
11807 if test "$aix_use_runtimelinking" = yes; then
11808 # Warning - without using the other runtime loading flags (-brtl),
11809 # -berok will link without error, but may produce a broken library.
11810 allow_undefined_flag_CXX='-berok'
11811 # Determine the default libpath from the value encoded in an empty
11812 # executable.
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11817 main ()
11821 return 0;
11823 _ACEOF
11824 if ac_fn_cxx_try_link "$LINENO"; then :
11826 lt_aix_libpath_sed='
11827 /Import File Strings/,/^$/ {
11828 /^0/ {
11829 s/^0 *\(.*\)$/\1/
11833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11834 # Check for a 64-bit object if we didn't find anything.
11835 if test -z "$aix_libpath"; then
11836 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11843 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11845 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"
11846 else
11847 if test "$host_cpu" = ia64; then
11848 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11849 allow_undefined_flag_CXX="-z nodefs"
11850 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"
11851 else
11852 # Determine the default libpath from the value encoded in an
11853 # empty executable.
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11858 main ()
11862 return 0;
11864 _ACEOF
11865 if ac_fn_cxx_try_link "$LINENO"; then :
11867 lt_aix_libpath_sed='
11868 /Import File Strings/,/^$/ {
11869 /^0/ {
11870 s/^0 *\(.*\)$/\1/
11874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11875 # Check for a 64-bit object if we didn't find anything.
11876 if test -z "$aix_libpath"; then
11877 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11884 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11885 # Warning - without using the other run time loading flags,
11886 # -berok will link without error, but may produce a broken library.
11887 no_undefined_flag_CXX=' ${wl}-bernotok'
11888 allow_undefined_flag_CXX=' ${wl}-berok'
11889 if test "$with_gnu_ld" = yes; then
11890 # We only use this code for GNU lds that support --whole-archive.
11891 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11892 else
11893 # Exported symbols can be pulled into shared objects from archives
11894 whole_archive_flag_spec_CXX='$convenience'
11896 archive_cmds_need_lc_CXX=yes
11897 # This is similar to how AIX traditionally builds its shared
11898 # libraries.
11899 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'
11904 beos*)
11905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11906 allow_undefined_flag_CXX=unsupported
11907 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11908 # support --undefined. This deserves some investigation. FIXME
11909 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11910 else
11911 ld_shlibs_CXX=no
11915 chorus*)
11916 case $cc_basename in
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11921 esac
11924 cygwin* | mingw* | pw32* | cegcc*)
11925 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11926 # as there is no search path for DLLs.
11927 hardcode_libdir_flag_spec_CXX='-L$libdir'
11928 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11929 allow_undefined_flag_CXX=unsupported
11930 always_export_symbols_CXX=no
11931 enable_shared_with_static_runtimes_CXX=yes
11933 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11934 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'
11935 # If the export-symbols file already is a .def file (1st line
11936 # is EXPORTS), use it as is; otherwise, prepend...
11937 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11938 cp $export_symbols $output_objdir/$soname.def;
11939 else
11940 echo EXPORTS > $output_objdir/$soname.def;
11941 cat $export_symbols >> $output_objdir/$soname.def;
11943 $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'
11944 else
11945 ld_shlibs_CXX=no
11948 darwin* | rhapsody*)
11951 archive_cmds_need_lc_CXX=no
11952 hardcode_direct_CXX=no
11953 hardcode_automatic_CXX=yes
11954 hardcode_shlibpath_var_CXX=unsupported
11955 if test "$lt_cv_ld_force_load" = "yes"; then
11956 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\"`'
11957 else
11958 whole_archive_flag_spec_CXX=''
11960 link_all_deplibs_CXX=yes
11961 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11962 case $cc_basename in
11963 ifort*) _lt_dar_can_shared=yes ;;
11964 *) _lt_dar_can_shared=$GCC ;;
11965 esac
11966 if test "$_lt_dar_can_shared" = "yes"; then
11967 output_verbose_link_cmd=func_echo_all
11968 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}"
11969 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11970 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}"
11971 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}"
11972 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11973 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}"
11974 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}"
11977 else
11978 ld_shlibs_CXX=no
11983 dgux*)
11984 case $cc_basename in
11985 ec++*)
11986 # FIXME: insert proper C++ library support
11987 ld_shlibs_CXX=no
11989 ghcx*)
11990 # Green Hills C++ Compiler
11991 # FIXME: insert proper C++ library support
11992 ld_shlibs_CXX=no
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11998 esac
12001 freebsd2.*)
12002 # C++ shared libraries reported to be fairly broken before
12003 # switch to ELF
12004 ld_shlibs_CXX=no
12007 freebsd-elf*)
12008 archive_cmds_need_lc_CXX=no
12011 freebsd* | dragonfly*)
12012 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12013 # conventions
12014 ld_shlibs_CXX=yes
12017 gnu*)
12020 haiku*)
12021 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12022 link_all_deplibs_CXX=yes
12025 hpux9*)
12026 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12027 hardcode_libdir_separator_CXX=:
12028 export_dynamic_flag_spec_CXX='${wl}-E'
12029 hardcode_direct_CXX=yes
12030 hardcode_minus_L_CXX=yes # Not in the search PATH,
12031 # but as the default
12032 # location of the library.
12034 case $cc_basename in
12035 CC*)
12036 # FIXME: insert proper C++ library support
12037 ld_shlibs_CXX=no
12039 aCC*)
12040 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'
12041 # Commands to make compiler produce verbose output that lists
12042 # what "hidden" libraries, object files and flags are used when
12043 # linking a shared library.
12045 # There doesn't appear to be a way to prevent this compiler from
12046 # explicitly linking system object files so we need to strip them
12047 # from the output so that they don't get included in the library
12048 # dependencies.
12049 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"'
12052 if test "$GXX" = yes; then
12053 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'
12054 else
12055 # FIXME: insert proper C++ library support
12056 ld_shlibs_CXX=no
12059 esac
12062 hpux10*|hpux11*)
12063 if test $with_gnu_ld = no; then
12064 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12065 hardcode_libdir_separator_CXX=:
12067 case $host_cpu in
12068 hppa*64*|ia64*)
12071 export_dynamic_flag_spec_CXX='${wl}-E'
12073 esac
12075 case $host_cpu in
12076 hppa*64*|ia64*)
12077 hardcode_direct_CXX=no
12078 hardcode_shlibpath_var_CXX=no
12081 hardcode_direct_CXX=yes
12082 hardcode_direct_absolute_CXX=yes
12083 hardcode_minus_L_CXX=yes # Not in the search PATH,
12084 # but as the default
12085 # location of the library.
12087 esac
12089 case $cc_basename in
12090 CC*)
12091 # FIXME: insert proper C++ library support
12092 ld_shlibs_CXX=no
12094 aCC*)
12095 case $host_cpu in
12096 hppa*64*)
12097 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12099 ia64*)
12100 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12105 esac
12106 # Commands to make compiler produce verbose output that lists
12107 # what "hidden" libraries, object files and flags are used when
12108 # linking a shared library.
12110 # There doesn't appear to be a way to prevent this compiler from
12111 # explicitly linking system object files so we need to strip them
12112 # from the output so that they don't get included in the library
12113 # dependencies.
12114 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"'
12117 if test "$GXX" = yes; then
12118 if test $with_gnu_ld = no; then
12119 case $host_cpu in
12120 hppa*64*)
12121 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12123 ia64*)
12124 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12127 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'
12129 esac
12131 else
12132 # FIXME: insert proper C++ library support
12133 ld_shlibs_CXX=no
12136 esac
12139 interix[3-9]*)
12140 hardcode_direct_CXX=no
12141 hardcode_shlibpath_var_CXX=no
12142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12143 export_dynamic_flag_spec_CXX='${wl}-E'
12144 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12145 # Instead, shared libraries are loaded at an image base (0x10000000 by
12146 # default) and relocated if they conflict, which is a slow very memory
12147 # consuming and fragmenting process. To avoid this, we pick a random,
12148 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12149 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12150 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'
12151 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'
12153 irix5* | irix6*)
12154 case $cc_basename in
12155 CC*)
12156 # SGI C++
12157 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'
12159 # Archives containing C++ object files must be created using
12160 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12161 # necessary to make sure instantiated templates are included
12162 # in the archive.
12163 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12166 if test "$GXX" = yes; then
12167 if test "$with_gnu_ld" = no; then
12168 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'
12169 else
12170 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'
12173 link_all_deplibs_CXX=yes
12175 esac
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12177 hardcode_libdir_separator_CXX=:
12178 inherit_rpath_CXX=yes
12181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12182 case $cc_basename in
12183 KCC*)
12184 # Kuck and Associates, Inc. (KAI) C++ Compiler
12186 # KCC will only create a shared library if the output file
12187 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12188 # to its proper name (with version) after linking.
12189 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'
12190 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'
12191 # Commands to make compiler produce verbose output that lists
12192 # what "hidden" libraries, object files and flags are used when
12193 # linking a shared library.
12195 # There doesn't appear to be a way to prevent this compiler from
12196 # explicitly linking system object files so we need to strip them
12197 # from the output so that they don't get included in the library
12198 # dependencies.
12199 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"'
12201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12204 # Archives containing C++ object files must be created using
12205 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12206 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12208 icpc* | ecpc* )
12209 # Intel C++
12210 with_gnu_ld=yes
12211 # version 8.0 and above of icpc choke on multiply defined symbols
12212 # if we add $predep_objects and $postdep_objects, however 7.1 and
12213 # earlier do not add the objects themselves.
12214 case `$CC -V 2>&1` in
12215 *"Version 7."*)
12216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12217 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'
12219 *) # Version 8.0 or newer
12220 tmp_idyn=
12221 case $host_cpu in
12222 ia64*) tmp_idyn=' -i_dynamic';;
12223 esac
12224 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12225 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'
12227 esac
12228 archive_cmds_need_lc_CXX=no
12229 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12230 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12231 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12233 pgCC* | pgcpp*)
12234 # Portland Group C++ compiler
12235 case `$CC -V` in
12236 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12237 prelink_cmds_CXX='tpldir=Template.dir~
12238 rm -rf $tpldir~
12239 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12240 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12241 old_archive_cmds_CXX='tpldir=Template.dir~
12242 rm -rf $tpldir~
12243 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12244 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12245 $RANLIB $oldlib'
12246 archive_cmds_CXX='tpldir=Template.dir~
12247 rm -rf $tpldir~
12248 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12249 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12250 archive_expsym_cmds_CXX='tpldir=Template.dir~
12251 rm -rf $tpldir~
12252 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12253 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12255 *) # Version 6 and above use weak symbols
12256 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12257 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'
12259 esac
12261 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 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'
12265 cxx*)
12266 # Compaq C++
12267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 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'
12270 runpath_var=LD_RUN_PATH
12271 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12272 hardcode_libdir_separator_CXX=:
12274 # Commands to make compiler produce verbose output that lists
12275 # what "hidden" libraries, object files and flags are used when
12276 # linking a shared library.
12278 # There doesn't appear to be a way to prevent this compiler from
12279 # explicitly linking system object files so we need to strip them
12280 # from the output so that they don't get included in the library
12281 # dependencies.
12282 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'
12284 xl* | mpixl* | bgxl*)
12285 # IBM XL 8.0 on PPC, with GNU ld
12286 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12288 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12289 if test "x$supports_anon_versioning" = xyes; then
12290 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12292 echo "local: *; };" >> $output_objdir/$libname.ver~
12293 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12297 case `$CC -V 2>&1 | sed 5q` in
12298 *Sun\ C*)
12299 # Sun C++ 5.9
12300 no_undefined_flag_CXX=' -zdefs'
12301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12302 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'
12303 hardcode_libdir_flag_spec_CXX='-R$libdir'
12304 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'
12305 compiler_needs_object_CXX=yes
12307 # Not sure whether something based on
12308 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12309 # would be better.
12310 output_verbose_link_cmd='func_echo_all'
12312 # Archives containing C++ object files must be created using
12313 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12314 # necessary to make sure instantiated templates are included
12315 # in the archive.
12316 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12318 esac
12320 esac
12323 lynxos*)
12324 # FIXME: insert proper C++ library support
12325 ld_shlibs_CXX=no
12328 m88k*)
12329 # FIXME: insert proper C++ library support
12330 ld_shlibs_CXX=no
12333 mvs*)
12334 case $cc_basename in
12335 cxx*)
12336 # FIXME: insert proper C++ library support
12337 ld_shlibs_CXX=no
12340 # FIXME: insert proper C++ library support
12341 ld_shlibs_CXX=no
12343 esac
12346 netbsd*)
12347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12348 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12349 wlarc=
12350 hardcode_libdir_flag_spec_CXX='-R$libdir'
12351 hardcode_direct_CXX=yes
12352 hardcode_shlibpath_var_CXX=no
12354 # Workaround some broken pre-1.5 toolchains
12355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12358 *nto* | *qnx*)
12359 ld_shlibs_CXX=yes
12362 openbsd2*)
12363 # C++ shared libraries are fairly broken
12364 ld_shlibs_CXX=no
12367 openbsd*)
12368 if test -f /usr/libexec/ld.so; then
12369 hardcode_direct_CXX=yes
12370 hardcode_shlibpath_var_CXX=no
12371 hardcode_direct_absolute_CXX=yes
12372 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12375 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12376 export_dynamic_flag_spec_CXX='${wl}-E'
12377 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12379 output_verbose_link_cmd=func_echo_all
12380 else
12381 ld_shlibs_CXX=no
12385 osf3* | osf4* | osf5*)
12386 case $cc_basename in
12387 KCC*)
12388 # Kuck and Associates, Inc. (KAI) C++ Compiler
12390 # KCC will only create a shared library if the output file
12391 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12392 # to its proper name (with version) after linking.
12393 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'
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12396 hardcode_libdir_separator_CXX=:
12398 # Archives containing C++ object files must be created using
12399 # the KAI C++ compiler.
12400 case $host in
12401 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12402 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12403 esac
12405 RCC*)
12406 # Rational C++ 2.4.1
12407 # FIXME: insert proper C++ library support
12408 ld_shlibs_CXX=no
12410 cxx*)
12411 case $host in
12412 osf3*)
12413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12414 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'
12415 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12418 allow_undefined_flag_CXX=' -expect_unresolved \*'
12419 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'
12420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12421 echo "-hidden">> $lib.exp~
12422 $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~
12423 $RM $lib.exp'
12424 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12426 esac
12428 hardcode_libdir_separator_CXX=:
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12434 # There doesn't appear to be a way to prevent this compiler from
12435 # explicitly linking system object files so we need to strip them
12436 # from the output so that they don't get included in the library
12437 # dependencies.
12438 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"'
12441 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12443 case $host in
12444 osf3*)
12445 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'
12448 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'
12450 esac
12452 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12453 hardcode_libdir_separator_CXX=:
12455 # Commands to make compiler produce verbose output that lists
12456 # what "hidden" libraries, object files and flags are used when
12457 # linking a shared library.
12458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12460 else
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12465 esac
12468 psos*)
12469 # FIXME: insert proper C++ library support
12470 ld_shlibs_CXX=no
12473 sunos4*)
12474 case $cc_basename in
12475 CC*)
12476 # Sun C++ 4.x
12477 # FIXME: insert proper C++ library support
12478 ld_shlibs_CXX=no
12480 lcc*)
12481 # Lucid
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12486 # FIXME: insert proper C++ library support
12487 ld_shlibs_CXX=no
12489 esac
12492 solaris*)
12493 case $cc_basename in
12494 CC*)
12495 # Sun C++ 4.2, 5.x and Centerline C++
12496 archive_cmds_need_lc_CXX=yes
12497 no_undefined_flag_CXX=' -zdefs'
12498 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12499 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12500 $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'
12502 hardcode_libdir_flag_spec_CXX='-R$libdir'
12503 hardcode_shlibpath_var_CXX=no
12504 case $host_os in
12505 solaris2.[0-5] | solaris2.[0-5].*) ;;
12507 # The compiler driver will combine and reorder linker options,
12508 # but understands `-z linker_flag'.
12509 # Supported since Solaris 2.6 (maybe 2.5.1?)
12510 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12512 esac
12513 link_all_deplibs_CXX=yes
12515 output_verbose_link_cmd='func_echo_all'
12517 # Archives containing C++ object files must be created using
12518 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12519 # necessary to make sure instantiated templates are included
12520 # in the archive.
12521 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12523 gcx*)
12524 # Green Hills C++ Compiler
12525 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12527 # The C++ compiler must be used to create the archive.
12528 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12531 # GNU C++ compiler with Solaris linker
12532 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12533 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12534 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12535 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12536 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12537 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12539 # Commands to make compiler produce verbose output that lists
12540 # what "hidden" libraries, object files and flags are used when
12541 # linking a shared library.
12542 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12543 else
12544 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12545 # platform.
12546 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12547 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12548 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12553 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12556 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12557 case $host_os in
12558 solaris2.[0-5] | solaris2.[0-5].*) ;;
12560 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12562 esac
12565 esac
12568 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12569 no_undefined_flag_CXX='${wl}-z,text'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 runpath_var='LD_RUN_PATH'
12574 case $cc_basename in
12575 CC*)
12576 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12580 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12583 esac
12586 sysv5* | sco3.2v5* | sco5v6*)
12587 # Note: We can NOT use -z defs as we might desire, because we do not
12588 # link with -lc, and that would cause any symbols used from libc to
12589 # always be unresolved, which means just about no library would
12590 # ever link correctly. If we're not using GNU ld we use -z text
12591 # though, which does catch some bad symbols but isn't as heavy-handed
12592 # as -z defs.
12593 no_undefined_flag_CXX='${wl}-z,text'
12594 allow_undefined_flag_CXX='${wl}-z,nodefs'
12595 archive_cmds_need_lc_CXX=no
12596 hardcode_shlibpath_var_CXX=no
12597 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12598 hardcode_libdir_separator_CXX=':'
12599 link_all_deplibs_CXX=yes
12600 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12601 runpath_var='LD_RUN_PATH'
12603 case $cc_basename in
12604 CC*)
12605 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12606 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12607 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12608 '"$old_archive_cmds_CXX"
12609 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12610 '"$reload_cmds_CXX"
12613 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12614 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616 esac
12619 tandem*)
12620 case $cc_basename in
12621 NCC*)
12622 # NonStop-UX NCC 3.20
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12630 esac
12633 vxworks*)
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12639 # FIXME: insert proper C++ library support
12640 ld_shlibs_CXX=no
12642 esac
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12645 $as_echo "$ld_shlibs_CXX" >&6; }
12646 test "$ld_shlibs_CXX" = no && can_build_shared=no
12648 GCC_CXX="$GXX"
12649 LD_CXX="$LD"
12651 ## CAVEAT EMPTOR:
12652 ## There is no encapsulation within the following macros, do not change
12653 ## the running order or otherwise move them around unless you know exactly
12654 ## what you are doing...
12655 # Dependencies to place before and after the object being linked:
12656 predep_objects_CXX=
12657 postdep_objects_CXX=
12658 predeps_CXX=
12659 postdeps_CXX=
12660 compiler_lib_search_path_CXX=
12662 cat > conftest.$ac_ext <<_LT_EOF
12663 class Foo
12665 public:
12666 Foo (void) { a = 0; }
12667 private:
12668 int a;
12670 _LT_EOF
12672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12673 (eval $ac_compile) 2>&5
12674 ac_status=$?
12675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676 test $ac_status = 0; }; then
12677 # Parse the compiler output and extract the necessary
12678 # objects, libraries and library flags.
12680 # Sentinel used to keep track of whether or not we are before
12681 # the conftest object file.
12682 pre_test_object_deps_done=no
12684 for p in `eval "$output_verbose_link_cmd"`; do
12685 case $p in
12687 -L* | -R* | -l*)
12688 # Some compilers place space between "-{L,R}" and the path.
12689 # Remove the space.
12690 if test $p = "-L" ||
12691 test $p = "-R"; then
12692 prev=$p
12693 continue
12694 else
12695 prev=
12698 if test "$pre_test_object_deps_done" = no; then
12699 case $p in
12700 -L* | -R*)
12701 # Internal compiler library paths should come after those
12702 # provided the user. The postdeps already come after the
12703 # user supplied libs so there is no need to process them.
12704 if test -z "$compiler_lib_search_path_CXX"; then
12705 compiler_lib_search_path_CXX="${prev}${p}"
12706 else
12707 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12710 # The "-l" case would never come before the object being
12711 # linked, so don't bother handling this case.
12712 esac
12713 else
12714 if test -z "$postdeps_CXX"; then
12715 postdeps_CXX="${prev}${p}"
12716 else
12717 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12722 *.$objext)
12723 # This assumes that the test object file only shows up
12724 # once in the compiler output.
12725 if test "$p" = "conftest.$objext"; then
12726 pre_test_object_deps_done=yes
12727 continue
12730 if test "$pre_test_object_deps_done" = no; then
12731 if test -z "$predep_objects_CXX"; then
12732 predep_objects_CXX="$p"
12733 else
12734 predep_objects_CXX="$predep_objects_CXX $p"
12736 else
12737 if test -z "$postdep_objects_CXX"; then
12738 postdep_objects_CXX="$p"
12739 else
12740 postdep_objects_CXX="$postdep_objects_CXX $p"
12745 *) ;; # Ignore the rest.
12747 esac
12748 done
12750 # Clean up.
12751 rm -f a.out a.exe
12752 else
12753 echo "libtool.m4: error: problem compiling CXX test program"
12756 $RM -f confest.$objext
12758 # PORTME: override above test on systems where it is broken
12759 case $host_os in
12760 interix[3-9]*)
12761 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12762 # hack all around it, let's just trust "g++" to DTRT.
12763 predep_objects_CXX=
12764 postdep_objects_CXX=
12765 postdeps_CXX=
12768 linux*)
12769 case `$CC -V 2>&1 | sed 5q` in
12770 *Sun\ C*)
12771 # Sun C++ 5.9
12773 # The more standards-conforming stlport4 library is
12774 # incompatible with the Cstd library. Avoid specifying
12775 # it if it's in CXXFLAGS. Ignore libCrun as
12776 # -library=stlport4 depends on it.
12777 case " $CXX $CXXFLAGS " in
12778 *" -library=stlport4 "*)
12779 solaris_use_stlport4=yes
12781 esac
12783 if test "$solaris_use_stlport4" != yes; then
12784 postdeps_CXX='-library=Cstd -library=Crun'
12787 esac
12790 solaris*)
12791 case $cc_basename in
12792 CC*)
12793 # The more standards-conforming stlport4 library is
12794 # incompatible with the Cstd library. Avoid specifying
12795 # it if it's in CXXFLAGS. Ignore libCrun as
12796 # -library=stlport4 depends on it.
12797 case " $CXX $CXXFLAGS " in
12798 *" -library=stlport4 "*)
12799 solaris_use_stlport4=yes
12801 esac
12803 # Adding this requires a known-good setup of shared libraries for
12804 # Sun compiler versions before 5.6, else PIC objects from an old
12805 # archive will be linked into the output, leading to subtle bugs.
12806 if test "$solaris_use_stlport4" != yes; then
12807 postdeps_CXX='-library=Cstd -library=Crun'
12810 esac
12812 esac
12815 case " $postdeps_CXX " in
12816 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12817 esac
12818 compiler_lib_search_dirs_CXX=
12819 if test -n "${compiler_lib_search_path_CXX}"; then
12820 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12853 lt_prog_compiler_wl_CXX=
12854 lt_prog_compiler_pic_CXX=
12855 lt_prog_compiler_static_CXX=
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12858 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12860 # C++ specific cases for pic, static, wl, etc.
12861 if test "$GXX" = yes; then
12862 lt_prog_compiler_wl_CXX='-Wl,'
12863 lt_prog_compiler_static_CXX='-static'
12865 case $host_os in
12866 aix*)
12867 # All AIX code is PIC.
12868 if test "$host_cpu" = ia64; then
12869 # AIX 5 now supports IA64 processor
12870 lt_prog_compiler_static_CXX='-Bstatic'
12872 lt_prog_compiler_pic_CXX='-fPIC'
12875 amigaos*)
12876 case $host_cpu in
12877 powerpc)
12878 # see comment about AmigaOS4 .so support
12879 lt_prog_compiler_pic_CXX='-fPIC'
12881 m68k)
12882 # FIXME: we need at least 68020 code to build shared libraries, but
12883 # adding the `-m68020' flag to GCC prevents building anything better,
12884 # like `-m68040'.
12885 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12887 esac
12890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12891 # PIC is the default for these OSes.
12893 mingw* | cygwin* | os2* | pw32* | cegcc*)
12894 # This hack is so that the source file can tell whether it is being
12895 # built for inclusion in a dll (and should export symbols for example).
12896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12897 # (--disable-auto-import) libraries
12898 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12900 darwin* | rhapsody*)
12901 # PIC is the default on this platform
12902 # Common symbols not allowed in MH_DYLIB files
12903 lt_prog_compiler_pic_CXX='-fno-common'
12905 *djgpp*)
12906 # DJGPP does not support shared libraries at all
12907 lt_prog_compiler_pic_CXX=
12909 haiku*)
12910 # PIC is the default for Haiku.
12911 # The "-static" flag exists, but is broken.
12912 lt_prog_compiler_static_CXX=
12914 interix[3-9]*)
12915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12916 # Instead, we relocate shared libraries at runtime.
12918 sysv4*MP*)
12919 if test -d /usr/nec; then
12920 lt_prog_compiler_pic_CXX=-Kconform_pic
12923 hpux*)
12924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12926 # sets the default TLS model and affects inlining.
12927 case $host_cpu in
12928 hppa*64*)
12931 lt_prog_compiler_pic_CXX='-fPIC'
12933 esac
12935 *qnx* | *nto*)
12936 # QNX uses GNU C++, but need to define -shared option too, otherwise
12937 # it will coredump.
12938 lt_prog_compiler_pic_CXX='-fPIC -shared'
12941 lt_prog_compiler_pic_CXX='-fPIC'
12943 esac
12944 else
12945 case $host_os in
12946 aix[4-9]*)
12947 # All AIX code is PIC.
12948 if test "$host_cpu" = ia64; then
12949 # AIX 5 now supports IA64 processor
12950 lt_prog_compiler_static_CXX='-Bstatic'
12951 else
12952 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12955 chorus*)
12956 case $cc_basename in
12957 cxch68*)
12958 # Green Hills C++ Compiler
12959 # _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"
12961 esac
12963 dgux*)
12964 case $cc_basename in
12965 ec++*)
12966 lt_prog_compiler_pic_CXX='-KPIC'
12968 ghcx*)
12969 # Green Hills C++ Compiler
12970 lt_prog_compiler_pic_CXX='-pic'
12974 esac
12976 freebsd* | dragonfly*)
12977 # FreeBSD uses GNU C++
12979 hpux9* | hpux10* | hpux11*)
12980 case $cc_basename in
12981 CC*)
12982 lt_prog_compiler_wl_CXX='-Wl,'
12983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12984 if test "$host_cpu" != ia64; then
12985 lt_prog_compiler_pic_CXX='+Z'
12988 aCC*)
12989 lt_prog_compiler_wl_CXX='-Wl,'
12990 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12991 case $host_cpu in
12992 hppa*64*|ia64*)
12993 # +Z the default
12996 lt_prog_compiler_pic_CXX='+Z'
12998 esac
13002 esac
13004 interix*)
13005 # This is c89, which is MS Visual C++ (no shared libs)
13006 # Anyone wants to do a port?
13008 irix5* | irix6* | nonstopux*)
13009 case $cc_basename in
13010 CC*)
13011 lt_prog_compiler_wl_CXX='-Wl,'
13012 lt_prog_compiler_static_CXX='-non_shared'
13013 # CC pic flag -KPIC is the default.
13017 esac
13019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13020 case $cc_basename in
13021 KCC*)
13022 # KAI C++ Compiler
13023 lt_prog_compiler_wl_CXX='--backend -Wl,'
13024 lt_prog_compiler_pic_CXX='-fPIC'
13026 ecpc* )
13027 # old Intel C++ for x86_64 which still supported -KPIC.
13028 lt_prog_compiler_wl_CXX='-Wl,'
13029 lt_prog_compiler_pic_CXX='-KPIC'
13030 lt_prog_compiler_static_CXX='-static'
13032 icpc* )
13033 # Intel C++, used to be incompatible with GCC.
13034 # ICC 10 doesn't accept -KPIC any more.
13035 lt_prog_compiler_wl_CXX='-Wl,'
13036 lt_prog_compiler_pic_CXX='-fPIC'
13037 lt_prog_compiler_static_CXX='-static'
13039 pgCC* | pgcpp*)
13040 # Portland Group C++ compiler
13041 lt_prog_compiler_wl_CXX='-Wl,'
13042 lt_prog_compiler_pic_CXX='-fpic'
13043 lt_prog_compiler_static_CXX='-Bstatic'
13045 cxx*)
13046 # Compaq C++
13047 # Make sure the PIC flag is empty. It appears that all Alpha
13048 # Linux and Compaq Tru64 Unix objects are PIC.
13049 lt_prog_compiler_pic_CXX=
13050 lt_prog_compiler_static_CXX='-non_shared'
13052 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13053 # IBM XL 8.0, 9.0 on PPC and BlueGene
13054 lt_prog_compiler_wl_CXX='-Wl,'
13055 lt_prog_compiler_pic_CXX='-qpic'
13056 lt_prog_compiler_static_CXX='-qstaticlink'
13059 case `$CC -V 2>&1 | sed 5q` in
13060 *Sun\ C*)
13061 # Sun C++ 5.9
13062 lt_prog_compiler_pic_CXX='-KPIC'
13063 lt_prog_compiler_static_CXX='-Bstatic'
13064 lt_prog_compiler_wl_CXX='-Qoption ld '
13066 esac
13068 esac
13070 lynxos*)
13072 m88k*)
13074 mvs*)
13075 case $cc_basename in
13076 cxx*)
13077 lt_prog_compiler_pic_CXX='-W c,exportall'
13081 esac
13083 netbsd*)
13085 *qnx* | *nto*)
13086 # QNX uses GNU C++, but need to define -shared option too, otherwise
13087 # it will coredump.
13088 lt_prog_compiler_pic_CXX='-fPIC -shared'
13090 osf3* | osf4* | osf5*)
13091 case $cc_basename in
13092 KCC*)
13093 lt_prog_compiler_wl_CXX='--backend -Wl,'
13095 RCC*)
13096 # Rational C++ 2.4.1
13097 lt_prog_compiler_pic_CXX='-pic'
13099 cxx*)
13100 # Digital/Compaq C++
13101 lt_prog_compiler_wl_CXX='-Wl,'
13102 # Make sure the PIC flag is empty. It appears that all Alpha
13103 # Linux and Compaq Tru64 Unix objects are PIC.
13104 lt_prog_compiler_pic_CXX=
13105 lt_prog_compiler_static_CXX='-non_shared'
13109 esac
13111 psos*)
13113 solaris*)
13114 case $cc_basename in
13115 CC*)
13116 # Sun C++ 4.2, 5.x and Centerline C++
13117 lt_prog_compiler_pic_CXX='-KPIC'
13118 lt_prog_compiler_static_CXX='-Bstatic'
13119 lt_prog_compiler_wl_CXX='-Qoption ld '
13121 gcx*)
13122 # Green Hills C++ Compiler
13123 lt_prog_compiler_pic_CXX='-PIC'
13127 esac
13129 sunos4*)
13130 case $cc_basename in
13131 CC*)
13132 # Sun C++ 4.x
13133 lt_prog_compiler_pic_CXX='-pic'
13134 lt_prog_compiler_static_CXX='-Bstatic'
13136 lcc*)
13137 # Lucid
13138 lt_prog_compiler_pic_CXX='-pic'
13142 esac
13144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13145 case $cc_basename in
13146 CC*)
13147 lt_prog_compiler_wl_CXX='-Wl,'
13148 lt_prog_compiler_pic_CXX='-KPIC'
13149 lt_prog_compiler_static_CXX='-Bstatic'
13151 esac
13153 tandem*)
13154 case $cc_basename in
13155 NCC*)
13156 # NonStop-UX NCC 3.20
13157 lt_prog_compiler_pic_CXX='-KPIC'
13161 esac
13163 vxworks*)
13166 lt_prog_compiler_can_build_shared_CXX=no
13168 esac
13171 case $host_os in
13172 # For platforms which do not support PIC, -DPIC is meaningless:
13173 *djgpp*)
13174 lt_prog_compiler_pic_CXX=
13177 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13179 esac
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13181 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13186 # Check to make sure the PIC flag actually works.
13188 if test -n "$lt_prog_compiler_pic_CXX"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13190 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13191 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 lt_cv_prog_compiler_pic_works_CXX=no
13195 ac_outfile=conftest.$ac_objext
13196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13197 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13198 # Insert the option either (1) after the last *FLAGS variable, or
13199 # (2) before a word containing "conftest.", or (3) at the end.
13200 # Note that $ac_compile itself does not contain backslashes and begins
13201 # with a dollar sign (not a hyphen), so the echo should work correctly.
13202 # The option is referenced via a variable to avoid confusing sed.
13203 lt_compile=`echo "$ac_compile" | $SED \
13204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13206 -e 's:$: $lt_compiler_flag:'`
13207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13208 (eval "$lt_compile" 2>conftest.err)
13209 ac_status=$?
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 if (exit $ac_status) && test -s "$ac_outfile"; then
13213 # The compiler can only warn and ignore the option if not recognized
13214 # So say no if there are warnings other than the usual output.
13215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13218 lt_cv_prog_compiler_pic_works_CXX=yes
13221 $RM conftest*
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13225 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13227 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13228 case $lt_prog_compiler_pic_CXX in
13229 "" | " "*) ;;
13230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13231 esac
13232 else
13233 lt_prog_compiler_pic_CXX=
13234 lt_prog_compiler_can_build_shared_CXX=no
13242 # Check to make sure the static flag actually works.
13244 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13247 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 lt_cv_prog_compiler_static_works_CXX=no
13251 save_LDFLAGS="$LDFLAGS"
13252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13255 # The linker can only warn and ignore the option if not recognized
13256 # So say no if there are warnings
13257 if test -s conftest.err; then
13258 # Append any errors to the config.log.
13259 cat conftest.err 1>&5
13260 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13262 if diff conftest.exp conftest.er2 >/dev/null; then
13263 lt_cv_prog_compiler_static_works_CXX=yes
13265 else
13266 lt_cv_prog_compiler_static_works_CXX=yes
13269 $RM -r conftest*
13270 LDFLAGS="$save_LDFLAGS"
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13274 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13276 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13278 else
13279 lt_prog_compiler_static_CXX=
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13287 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13290 lt_cv_prog_compiler_c_o_CXX=no
13291 $RM -r conftest 2>/dev/null
13292 mkdir conftest
13293 cd conftest
13294 mkdir out
13295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13297 lt_compiler_flag="-o out/conftest2.$ac_objext"
13298 # Insert the option either (1) after the last *FLAGS variable, or
13299 # (2) before a word containing "conftest.", or (3) at the end.
13300 # Note that $ac_compile itself does not contain backslashes and begins
13301 # with a dollar sign (not a hyphen), so the echo should work correctly.
13302 lt_compile=`echo "$ac_compile" | $SED \
13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13305 -e 's:$: $lt_compiler_flag:'`
13306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13307 (eval "$lt_compile" 2>out/conftest.err)
13308 ac_status=$?
13309 cat out/conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13312 then
13313 # The compiler can only warn and ignore the option if not recognized
13314 # So say no if there are warnings
13315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13318 lt_cv_prog_compiler_c_o_CXX=yes
13321 chmod u+w . 2>&5
13322 $RM conftest*
13323 # SGI C++ compiler will create directory out/ii_files/ for
13324 # template instantiation
13325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13326 $RM out/* && rmdir out
13327 cd ..
13328 $RM -r conftest
13329 $RM conftest*
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13333 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13339 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 lt_cv_prog_compiler_c_o_CXX=no
13343 $RM -r conftest 2>/dev/null
13344 mkdir conftest
13345 cd conftest
13346 mkdir out
13347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13349 lt_compiler_flag="-o out/conftest2.$ac_objext"
13350 # Insert the option either (1) after the last *FLAGS variable, or
13351 # (2) before a word containing "conftest.", or (3) at the end.
13352 # Note that $ac_compile itself does not contain backslashes and begins
13353 # with a dollar sign (not a hyphen), so the echo should work correctly.
13354 lt_compile=`echo "$ac_compile" | $SED \
13355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13357 -e 's:$: $lt_compiler_flag:'`
13358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13359 (eval "$lt_compile" 2>out/conftest.err)
13360 ac_status=$?
13361 cat out/conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13364 then
13365 # The compiler can only warn and ignore the option if not recognized
13366 # So say no if there are warnings
13367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13370 lt_cv_prog_compiler_c_o_CXX=yes
13373 chmod u+w . 2>&5
13374 $RM conftest*
13375 # SGI C++ compiler will create directory out/ii_files/ for
13376 # template instantiation
13377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13378 $RM out/* && rmdir out
13379 cd ..
13380 $RM -r conftest
13381 $RM conftest*
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13385 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13390 hard_links="nottested"
13391 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13392 # do not overwrite the value of need_locks provided by the user
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13394 $as_echo_n "checking if we can lock with hard links... " >&6; }
13395 hard_links=yes
13396 $RM conftest*
13397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13398 touch conftest.a
13399 ln conftest.a conftest.b 2>&5 || hard_links=no
13400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13402 $as_echo "$hard_links" >&6; }
13403 if test "$hard_links" = no; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13406 need_locks=warn
13408 else
13409 need_locks=no
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13417 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13418 case $host_os in
13419 aix[4-9]*)
13420 # If we're using GNU nm, then we don't want the "-C" option.
13421 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13422 # Also, AIX nm treats weak defined symbols like other global defined
13423 # symbols, whereas GNU nm marks them as "W".
13424 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13425 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'
13426 else
13427 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'
13430 pw32*)
13431 export_symbols_cmds_CXX="$ltdll_cmds"
13433 cygwin* | mingw* | cegcc*)
13434 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'
13437 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13439 esac
13440 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13443 $as_echo "$ld_shlibs_CXX" >&6; }
13444 test "$ld_shlibs_CXX" = no && can_build_shared=no
13446 with_gnu_ld_CXX=$with_gnu_ld
13454 # Do we need to explicitly link libc?
13456 case "x$archive_cmds_need_lc_CXX" in
13457 x|xyes)
13458 # Assume -lc should be added
13459 archive_cmds_need_lc_CXX=yes
13461 if test "$enable_shared" = yes && test "$GCC" = yes; then
13462 case $archive_cmds_CXX in
13463 *'~'*)
13464 # FIXME: we may have to deal with multi-command sequences.
13466 '$CC '*)
13467 # Test whether the compiler implicitly links with -lc since on some
13468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13469 # to ld, don't add -lc before -lgcc.
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13472 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 $RM conftest*
13476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13479 (eval $ac_compile) 2>&5
13480 ac_status=$?
13481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13482 test $ac_status = 0; } 2>conftest.err; then
13483 soname=conftest
13484 lib=conftest
13485 libobjs=conftest.$ac_objext
13486 deplibs=
13487 wl=$lt_prog_compiler_wl_CXX
13488 pic_flag=$lt_prog_compiler_pic_CXX
13489 compiler_flags=-v
13490 linker_flags=-v
13491 verstring=
13492 output_objdir=.
13493 libname=conftest
13494 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13495 allow_undefined_flag_CXX=
13496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13497 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13498 ac_status=$?
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500 test $ac_status = 0; }
13501 then
13502 lt_cv_archive_cmds_need_lc_CXX=no
13503 else
13504 lt_cv_archive_cmds_need_lc_CXX=yes
13506 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13507 else
13508 cat conftest.err 1>&5
13510 $RM conftest*
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13514 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13515 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13517 esac
13520 esac
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13586 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13588 library_names_spec=
13589 libname_spec='lib$name'
13590 soname_spec=
13591 shrext_cmds=".so"
13592 postinstall_cmds=
13593 postuninstall_cmds=
13594 finish_cmds=
13595 finish_eval=
13596 shlibpath_var=
13597 shlibpath_overrides_runpath=unknown
13598 version_type=none
13599 dynamic_linker="$host_os ld.so"
13600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13601 need_lib_prefix=unknown
13602 hardcode_into_libs=no
13604 # when you set need_version to no, make sure it does not cause -set_version
13605 # flags to be left without arguments
13606 need_version=unknown
13608 case $host_os in
13609 aix3*)
13610 version_type=linux
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13612 shlibpath_var=LIBPATH
13614 # AIX 3 has no versioning support, so we append a major version to the name.
13615 soname_spec='${libname}${release}${shared_ext}$major'
13618 aix[4-9]*)
13619 version_type=linux
13620 need_lib_prefix=no
13621 need_version=no
13622 hardcode_into_libs=yes
13623 if test "$host_cpu" = ia64; then
13624 # AIX 5 supports IA64
13625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13626 shlibpath_var=LD_LIBRARY_PATH
13627 else
13628 # With GCC up to 2.95.x, collect2 would create an import file
13629 # for dependence libraries. The import file would start with
13630 # the line `#! .'. This would cause the generated library to
13631 # depend on `.', always an invalid library. This was fixed in
13632 # development snapshots of GCC prior to 3.0.
13633 case $host_os in
13634 aix4 | aix4.[01] | aix4.[01].*)
13635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13636 echo ' yes '
13637 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13639 else
13640 can_build_shared=no
13643 esac
13644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13645 # soname into executable. Probably we can add versioning support to
13646 # collect2, so additional links can be useful in future.
13647 if test "$aix_use_runtimelinking" = yes; then
13648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13649 # instead of lib<name>.a to let people know that these are not
13650 # typical AIX shared libraries.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 else
13653 # We preserve .a as extension for shared libraries through AIX4.2
13654 # and later when we are not doing run time linking.
13655 library_names_spec='${libname}${release}.a $libname.a'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13658 shlibpath_var=LIBPATH
13662 amigaos*)
13663 case $host_cpu in
13664 powerpc)
13665 # Since July 2007 AmigaOS4 officially supports .so libraries.
13666 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669 m68k)
13670 library_names_spec='$libname.ixlibrary $libname.a'
13671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13672 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'
13674 esac
13677 beos*)
13678 library_names_spec='${libname}${shared_ext}'
13679 dynamic_linker="$host_os ld.so"
13680 shlibpath_var=LIBRARY_PATH
13683 bsdi[45]*)
13684 version_type=linux
13685 need_version=no
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13692 # the default ld.so.conf also contains /usr/contrib/lib and
13693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13694 # libtool to hard-code these into programs
13697 cygwin* | mingw* | pw32* | cegcc*)
13698 version_type=windows
13699 shrext_cmds=".dll"
13700 need_version=no
13701 need_lib_prefix=no
13703 case $GCC,$host_os in
13704 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13705 library_names_spec='$libname.dll.a'
13706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13707 postinstall_cmds='base_file=`basename \${file}`~
13708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13709 dldir=$destdir/`dirname \$dlpath`~
13710 test -d \$dldir || mkdir -p \$dldir~
13711 $install_prog $dir/$dlname \$dldir/$dlname~
13712 chmod a+x \$dldir/$dlname~
13713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13717 dlpath=$dir/\$dldll~
13718 $RM \$dlpath'
13719 shlibpath_overrides_runpath=yes
13721 case $host_os in
13722 cygwin*)
13723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13727 mingw* | cegcc*)
13728 # MinGW DLLs use traditional 'lib' prefix
13729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13731 pw32*)
13732 # pw32 DLLs use 'pw' prefix rather than 'lib'
13733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13735 esac
13739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13741 esac
13742 dynamic_linker='Win32 ld.exe'
13743 # FIXME: first we should search . and the directory the executable is in
13744 shlibpath_var=PATH
13747 darwin* | rhapsody*)
13748 dynamic_linker="$host_os dyld"
13749 version_type=darwin
13750 need_lib_prefix=no
13751 need_version=no
13752 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13753 soname_spec='${libname}${release}${major}$shared_ext'
13754 shlibpath_overrides_runpath=yes
13755 shlibpath_var=DYLD_LIBRARY_PATH
13756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13761 dgux*)
13762 version_type=linux
13763 need_lib_prefix=no
13764 need_version=no
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13766 soname_spec='${libname}${release}${shared_ext}$major'
13767 shlibpath_var=LD_LIBRARY_PATH
13770 freebsd* | dragonfly*)
13771 # DragonFly does not have aout. When/if they implement a new
13772 # versioning mechanism, adjust this.
13773 if test -x /usr/bin/objformat; then
13774 objformat=`/usr/bin/objformat`
13775 else
13776 case $host_os in
13777 freebsd[23].*) objformat=aout ;;
13778 *) objformat=elf ;;
13779 esac
13781 version_type=freebsd-$objformat
13782 case $version_type in
13783 freebsd-elf*)
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13785 need_version=no
13786 need_lib_prefix=no
13788 freebsd-*)
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13790 need_version=yes
13792 esac
13793 shlibpath_var=LD_LIBRARY_PATH
13794 case $host_os in
13795 freebsd2.*)
13796 shlibpath_overrides_runpath=yes
13798 freebsd3.[01]* | freebsdelf3.[01]*)
13799 shlibpath_overrides_runpath=yes
13800 hardcode_into_libs=yes
13802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13804 shlibpath_overrides_runpath=no
13805 hardcode_into_libs=yes
13807 *) # from 4.6 on, and DragonFly
13808 shlibpath_overrides_runpath=yes
13809 hardcode_into_libs=yes
13811 esac
13814 gnu*)
13815 version_type=linux
13816 need_lib_prefix=no
13817 need_version=no
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13819 soname_spec='${libname}${release}${shared_ext}$major'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 hardcode_into_libs=yes
13824 haiku*)
13825 version_type=linux
13826 need_lib_prefix=no
13827 need_version=no
13828 dynamic_linker="$host_os runtime_loader"
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 shlibpath_var=LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13834 hardcode_into_libs=yes
13837 hpux9* | hpux10* | hpux11*)
13838 # Give a soname corresponding to the major version so that dld.sl refuses to
13839 # link against other versions.
13840 version_type=sunos
13841 need_lib_prefix=no
13842 need_version=no
13843 case $host_cpu in
13844 ia64*)
13845 shrext_cmds='.so'
13846 hardcode_into_libs=yes
13847 dynamic_linker="$host_os dld.so"
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851 soname_spec='${libname}${release}${shared_ext}$major'
13852 if test "X$HPUX_IA64_MODE" = X32; then
13853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13854 else
13855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13859 hppa*64*)
13860 shrext_cmds='.sl'
13861 hardcode_into_libs=yes
13862 dynamic_linker="$host_os dld.sl"
13863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866 soname_spec='${libname}${release}${shared_ext}$major'
13867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13871 shrext_cmds='.sl'
13872 dynamic_linker="$host_os dld.sl"
13873 shlibpath_var=SHLIB_PATH
13874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13878 esac
13879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13880 postinstall_cmds='chmod 555 $lib'
13881 # or fails outright, so override atomically:
13882 install_override_mode=555
13885 interix[3-9]*)
13886 version_type=linux
13887 need_lib_prefix=no
13888 need_version=no
13889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13890 soname_spec='${libname}${release}${shared_ext}$major'
13891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13892 shlibpath_var=LD_LIBRARY_PATH
13893 shlibpath_overrides_runpath=no
13894 hardcode_into_libs=yes
13897 irix5* | irix6* | nonstopux*)
13898 case $host_os in
13899 nonstopux*) version_type=nonstopux ;;
13901 if test "$lt_cv_prog_gnu_ld" = yes; then
13902 version_type=linux
13903 else
13904 version_type=irix
13905 fi ;;
13906 esac
13907 need_lib_prefix=no
13908 need_version=no
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13911 case $host_os in
13912 irix5* | nonstopux*)
13913 libsuff= shlibsuff=
13916 case $LD in # libtool.m4 will add one of these switches to LD
13917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13918 libsuff= shlibsuff= libmagic=32-bit;;
13919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13920 libsuff=32 shlibsuff=N32 libmagic=N32;;
13921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13923 *) libsuff= shlibsuff= libmagic=never-match;;
13924 esac
13926 esac
13927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13928 shlibpath_overrides_runpath=no
13929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13931 hardcode_into_libs=yes
13934 # No shared lib support for Linux oldld, aout, or coff.
13935 linux*oldld* | linux*aout* | linux*coff*)
13936 dynamic_linker=no
13939 # This must be Linux ELF.
13940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13941 version_type=linux
13942 need_lib_prefix=no
13943 need_version=no
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945 soname_spec='${libname}${release}${shared_ext}$major'
13946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13947 shlibpath_var=LD_LIBRARY_PATH
13948 shlibpath_overrides_runpath=no
13950 # Some binutils ld are patched to set DT_RUNPATH
13951 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 lt_cv_shlibpath_overrides_runpath=no
13955 save_LDFLAGS=$LDFLAGS
13956 save_libdir=$libdir
13957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13963 main ()
13967 return 0;
13969 _ACEOF
13970 if ac_fn_cxx_try_link "$LINENO"; then :
13971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13972 lt_cv_shlibpath_overrides_runpath=yes
13975 rm -f core conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LDFLAGS=$save_LDFLAGS
13978 libdir=$save_libdir
13982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13984 # This implies no fast_install, which is unacceptable.
13985 # Some rework will be needed to allow for fast_install
13986 # before this can be enabled.
13987 hardcode_into_libs=yes
13989 # Append ld.so.conf contents to the search path
13990 if test -f /etc/ld.so.conf; then
13991 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' ' '`
13992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13995 # We used to test for /lib/ld.so.1 and disable shared libraries on
13996 # powerpc, because MkLinux only supported shared libraries with the
13997 # GNU dynamic linker. Since this was broken with cross compilers,
13998 # most powerpc-linux boxes support dynamic linking these days and
13999 # people can always --disable-shared, the test was removed, and we
14000 # assume the GNU/Linux dynamic linker is in use.
14001 dynamic_linker='GNU/Linux ld.so'
14004 netbsd*)
14005 version_type=sunos
14006 need_lib_prefix=no
14007 need_version=no
14008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14011 dynamic_linker='NetBSD (a.out) ld.so'
14012 else
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 dynamic_linker='NetBSD ld.elf_so'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=yes
14019 hardcode_into_libs=yes
14022 newsos6)
14023 version_type=linux
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 shlibpath_overrides_runpath=yes
14029 *nto* | *qnx*)
14030 version_type=qnx
14031 need_lib_prefix=no
14032 need_version=no
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=no
14037 hardcode_into_libs=yes
14038 dynamic_linker='ldqnx.so'
14041 openbsd*)
14042 version_type=sunos
14043 sys_lib_dlsearch_path_spec="/usr/lib"
14044 need_lib_prefix=no
14045 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14046 case $host_os in
14047 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14048 *) need_version=no ;;
14049 esac
14050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14052 shlibpath_var=LD_LIBRARY_PATH
14053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14054 case $host_os in
14055 openbsd2.[89] | openbsd2.[89].*)
14056 shlibpath_overrides_runpath=no
14059 shlibpath_overrides_runpath=yes
14061 esac
14062 else
14063 shlibpath_overrides_runpath=yes
14067 os2*)
14068 libname_spec='$name'
14069 shrext_cmds=".dll"
14070 need_lib_prefix=no
14071 library_names_spec='$libname${shared_ext} $libname.a'
14072 dynamic_linker='OS/2 ld.exe'
14073 shlibpath_var=LIBPATH
14076 osf3* | osf4* | osf5*)
14077 version_type=osf
14078 need_lib_prefix=no
14079 need_version=no
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14084 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14087 rdos*)
14088 dynamic_linker=no
14091 solaris*)
14092 version_type=linux
14093 need_lib_prefix=no
14094 need_version=no
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 shlibpath_overrides_runpath=yes
14099 hardcode_into_libs=yes
14100 # ldd complains unless libraries are executable
14101 postinstall_cmds='chmod +x $lib'
14104 sunos4*)
14105 version_type=sunos
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14108 shlibpath_var=LD_LIBRARY_PATH
14109 shlibpath_overrides_runpath=yes
14110 if test "$with_gnu_ld" = yes; then
14111 need_lib_prefix=no
14113 need_version=yes
14116 sysv4 | sysv4.3*)
14117 version_type=linux
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 case $host_vendor in
14122 sni)
14123 shlibpath_overrides_runpath=no
14124 need_lib_prefix=no
14125 runpath_var=LD_RUN_PATH
14127 siemens)
14128 need_lib_prefix=no
14130 motorola)
14131 need_lib_prefix=no
14132 need_version=no
14133 shlibpath_overrides_runpath=no
14134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14136 esac
14139 sysv4*MP*)
14140 if test -d /usr/nec ;then
14141 version_type=linux
14142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14143 soname_spec='$libname${shared_ext}.$major'
14144 shlibpath_var=LD_LIBRARY_PATH
14148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14149 version_type=freebsd-elf
14150 need_lib_prefix=no
14151 need_version=no
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14153 soname_spec='${libname}${release}${shared_ext}$major'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 hardcode_into_libs=yes
14157 if test "$with_gnu_ld" = yes; then
14158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14159 else
14160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14161 case $host_os in
14162 sco3.2v5*)
14163 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14165 esac
14167 sys_lib_dlsearch_path_spec='/usr/lib'
14170 tpf*)
14171 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14172 version_type=linux
14173 need_lib_prefix=no
14174 need_version=no
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath=no
14178 hardcode_into_libs=yes
14181 uts4*)
14182 version_type=linux
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 shlibpath_var=LD_LIBRARY_PATH
14189 dynamic_linker=no
14191 esac
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14193 $as_echo "$dynamic_linker" >&6; }
14194 test "$dynamic_linker" = no && can_build_shared=no
14196 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14197 if test "$GCC" = yes; then
14198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14201 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14202 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14204 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14205 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14246 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14247 hardcode_action_CXX=
14248 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14249 test -n "$runpath_var_CXX" ||
14250 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14252 # We can hardcode non-existent directories.
14253 if test "$hardcode_direct_CXX" != no &&
14254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14255 # have to relink, otherwise we might link with an installed library
14256 # when we should be linking with a yet-to-be-installed one
14257 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14258 test "$hardcode_minus_L_CXX" != no; then
14259 # Linking always hardcodes the temporary library directory.
14260 hardcode_action_CXX=relink
14261 else
14262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14263 hardcode_action_CXX=immediate
14265 else
14266 # We cannot hardcode anything, or else we can only hardcode existing
14267 # directories.
14268 hardcode_action_CXX=unsupported
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14271 $as_echo "$hardcode_action_CXX" >&6; }
14273 if test "$hardcode_action_CXX" = relink ||
14274 test "$inherit_rpath_CXX" = yes; then
14275 # Fast installation is not supported
14276 enable_fast_install=no
14277 elif test "$shlibpath_overrides_runpath" = yes ||
14278 test "$enable_shared" = no; then
14279 # Fast installation is not necessary
14280 enable_fast_install=needless
14289 fi # test -n "$compiler"
14291 CC=$lt_save_CC
14292 LDCXX=$LD
14293 LD=$lt_save_LD
14294 GCC=$lt_save_GCC
14295 with_gnu_ld=$lt_save_with_gnu_ld
14296 lt_cv_path_LDCXX=$lt_cv_path_LD
14297 lt_cv_path_LD=$lt_save_path_LD
14298 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14299 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14300 fi # test "$_lt_caught_CXX_error" != yes
14302 ac_ext=c
14303 ac_cpp='$CPP $CPPFLAGS'
14304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14320 ac_config_commands="$ac_config_commands libtool"
14325 # Only expand once:
14331 ac_config_headers="$ac_config_headers target-config.h"
14334 # The cast to long int works around a bug in the HP C Compiler
14335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14337 # This bug is HP SR number 8606223364.
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14339 $as_echo_n "checking size of int... " >&6; }
14340 if test "${ac_cv_sizeof_int+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14345 else
14346 if test "$ac_cv_type_int" = yes; then
14347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14349 { as_fn_set_status 77
14350 as_fn_error "cannot compute sizeof (int)
14351 See \`config.log' for more details." "$LINENO" 5; }; }
14352 else
14353 ac_cv_sizeof_int=0
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14359 $as_echo "$ac_cv_sizeof_int" >&6; }
14363 cat >>confdefs.h <<_ACEOF
14364 #define SIZEOF_INT $ac_cv_sizeof_int
14365 _ACEOF
14368 # The cast to long int works around a bug in the HP C Compiler
14369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14371 # This bug is HP SR number 8606223364.
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14373 $as_echo_n "checking size of void*... " >&6; }
14374 if test "${ac_cv_sizeof_voidp+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
14379 else
14380 if test "$ac_cv_type_voidp" = yes; then
14381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14383 { as_fn_set_status 77
14384 as_fn_error "cannot compute sizeof (void*)
14385 See \`config.log' for more details." "$LINENO" 5; }; }
14386 else
14387 ac_cv_sizeof_voidp=0
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14393 $as_echo "$ac_cv_sizeof_voidp" >&6; }
14397 cat >>confdefs.h <<_ACEOF
14398 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14399 _ACEOF
14403 # Must be last
14404 cat >confcache <<\_ACEOF
14405 # This file is a shell script that caches the results of configure
14406 # tests run on this system so they can be shared between configure
14407 # scripts and configure runs, see configure's option --config-cache.
14408 # It is not useful on other systems. If it contains results you don't
14409 # want to keep, you may remove or edit it.
14411 # config.status only pays attention to the cache file if you give it
14412 # the --recheck option to rerun configure.
14414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14416 # following values.
14418 _ACEOF
14420 # The following way of writing the cache mishandles newlines in values,
14421 # but we know of no workaround that is simple, portable, and efficient.
14422 # So, we kill variables containing newlines.
14423 # Ultrix sh set writes to stderr and can't be redirected directly,
14424 # and sets the high bit in the cache file unless we assign to the vars.
14426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14427 eval ac_val=\$$ac_var
14428 case $ac_val in #(
14429 *${as_nl}*)
14430 case $ac_var in #(
14431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14433 esac
14434 case $ac_var in #(
14435 _ | IFS | as_nl) ;; #(
14436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14437 *) { eval $ac_var=; unset $ac_var;} ;;
14438 esac ;;
14439 esac
14440 done
14442 (set) 2>&1 |
14443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14444 *${as_nl}ac_space=\ *)
14445 # `set' does not quote correctly, so add quotes: double-quote
14446 # substitution turns \\\\ into \\, and sed turns \\ into \.
14447 sed -n \
14448 "s/'/'\\\\''/g;
14449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14450 ;; #(
14452 # `set' quotes correctly as required by POSIX, so do not add quotes.
14453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14455 esac |
14456 sort
14458 sed '
14459 /^ac_cv_env_/b end
14460 t clear
14461 :clear
14462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14463 t end
14464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14465 :end' >>confcache
14466 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14467 if test -w "$cache_file"; then
14468 test "x$cache_file" != "x/dev/null" &&
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14470 $as_echo "$as_me: updating cache $cache_file" >&6;}
14471 cat confcache >$cache_file
14472 else
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14474 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14477 rm -f confcache
14479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14480 # Let make expand exec_prefix.
14481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14483 DEFS=-DHAVE_CONFIG_H
14485 ac_libobjs=
14486 ac_ltlibobjs=
14487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14488 # 1. Remove the extension, and $U if already installed.
14489 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14490 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14492 # will be set to the directory where LIBOBJS objects are built.
14493 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14494 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14495 done
14496 LIBOBJS=$ac_libobjs
14498 LTLIBOBJS=$ac_ltlibobjs
14501 if test -n "$EXEEXT"; then
14502 am__EXEEXT_TRUE=
14503 am__EXEEXT_FALSE='#'
14504 else
14505 am__EXEEXT_TRUE='#'
14506 am__EXEEXT_FALSE=
14509 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14510 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14514 as_fn_error "conditional \"AMDEP\" was never defined.
14515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14518 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14521 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14522 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14525 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14526 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14529 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14530 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14534 : ${CONFIG_STATUS=./config.status}
14535 ac_write_fail=0
14536 ac_clean_files_save=$ac_clean_files
14537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14540 as_write_fail=0
14541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14542 #! $SHELL
14543 # Generated by $as_me.
14544 # Run this file to recreate the current configuration.
14545 # Compiler output produced by configure, useful for debugging
14546 # configure, is in config.log if it exists.
14548 debug=false
14549 ac_cs_recheck=false
14550 ac_cs_silent=false
14552 SHELL=\${CONFIG_SHELL-$SHELL}
14553 export SHELL
14554 _ASEOF
14555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14556 ## -------------------- ##
14557 ## M4sh Initialization. ##
14558 ## -------------------- ##
14560 # Be more Bourne compatible
14561 DUALCASE=1; export DUALCASE # for MKS sh
14562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14563 emulate sh
14564 NULLCMD=:
14565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14566 # is contrary to our usage. Disable this feature.
14567 alias -g '${1+"$@"}'='"$@"'
14568 setopt NO_GLOB_SUBST
14569 else
14570 case `(set -o) 2>/dev/null` in #(
14571 *posix*) :
14572 set -o posix ;; #(
14573 *) :
14575 esac
14579 as_nl='
14581 export as_nl
14582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14586 # Prefer a ksh shell builtin over an external printf program on Solaris,
14587 # but without wasting forks for bash or zsh.
14588 if test -z "$BASH_VERSION$ZSH_VERSION" \
14589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14590 as_echo='print -r --'
14591 as_echo_n='print -rn --'
14592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14593 as_echo='printf %s\n'
14594 as_echo_n='printf %s'
14595 else
14596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14598 as_echo_n='/usr/ucb/echo -n'
14599 else
14600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14601 as_echo_n_body='eval
14602 arg=$1;
14603 case $arg in #(
14604 *"$as_nl"*)
14605 expr "X$arg" : "X\\(.*\\)$as_nl";
14606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14607 esac;
14608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14610 export as_echo_n_body
14611 as_echo_n='sh -c $as_echo_n_body as_echo'
14613 export as_echo_body
14614 as_echo='sh -c $as_echo_body as_echo'
14617 # The user is always right.
14618 if test "${PATH_SEPARATOR+set}" != set; then
14619 PATH_SEPARATOR=:
14620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14622 PATH_SEPARATOR=';'
14627 # IFS
14628 # We need space, tab and new line, in precisely that order. Quoting is
14629 # there to prevent editors from complaining about space-tab.
14630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14631 # splitting by setting IFS to empty value.)
14632 IFS=" "" $as_nl"
14634 # Find who we are. Look in the path if we contain no directory separator.
14635 case $0 in #((
14636 *[\\/]* ) as_myself=$0 ;;
14637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14638 for as_dir in $PATH
14640 IFS=$as_save_IFS
14641 test -z "$as_dir" && as_dir=.
14642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14643 done
14644 IFS=$as_save_IFS
14647 esac
14648 # We did not find ourselves, most probably we were run as `sh COMMAND'
14649 # in which case we are not to be found in the path.
14650 if test "x$as_myself" = x; then
14651 as_myself=$0
14653 if test ! -f "$as_myself"; then
14654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14655 exit 1
14658 # Unset variables that we do not need and which cause bugs (e.g. in
14659 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14660 # suppresses any "Segmentation fault" message there. '((' could
14661 # trigger a bug in pdksh 5.2.14.
14662 for as_var in BASH_ENV ENV MAIL MAILPATH
14663 do eval test x\${$as_var+set} = xset \
14664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14665 done
14666 PS1='$ '
14667 PS2='> '
14668 PS4='+ '
14670 # NLS nuisances.
14671 LC_ALL=C
14672 export LC_ALL
14673 LANGUAGE=C
14674 export LANGUAGE
14676 # CDPATH.
14677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14680 # as_fn_error ERROR [LINENO LOG_FD]
14681 # ---------------------------------
14682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14684 # script with status $?, using 1 if that was 0.
14685 as_fn_error ()
14687 as_status=$?; test $as_status -eq 0 && as_status=1
14688 if test "$3"; then
14689 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14692 $as_echo "$as_me: error: $1" >&2
14693 as_fn_exit $as_status
14694 } # as_fn_error
14697 # as_fn_set_status STATUS
14698 # -----------------------
14699 # Set $? to STATUS, without forking.
14700 as_fn_set_status ()
14702 return $1
14703 } # as_fn_set_status
14705 # as_fn_exit STATUS
14706 # -----------------
14707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14708 as_fn_exit ()
14710 set +e
14711 as_fn_set_status $1
14712 exit $1
14713 } # as_fn_exit
14715 # as_fn_unset VAR
14716 # ---------------
14717 # Portably unset VAR.
14718 as_fn_unset ()
14720 { eval $1=; unset $1;}
14722 as_unset=as_fn_unset
14723 # as_fn_append VAR VALUE
14724 # ----------------------
14725 # Append the text in VALUE to the end of the definition contained in VAR. Take
14726 # advantage of any shell optimizations that allow amortized linear growth over
14727 # repeated appends, instead of the typical quadratic growth present in naive
14728 # implementations.
14729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14730 eval 'as_fn_append ()
14732 eval $1+=\$2
14734 else
14735 as_fn_append ()
14737 eval $1=\$$1\$2
14739 fi # as_fn_append
14741 # as_fn_arith ARG...
14742 # ------------------
14743 # Perform arithmetic evaluation on the ARGs, and store the result in the
14744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14745 # must be portable across $(()) and expr.
14746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14747 eval 'as_fn_arith ()
14749 as_val=$(( $* ))
14751 else
14752 as_fn_arith ()
14754 as_val=`expr "$@" || test $? -eq 1`
14756 fi # as_fn_arith
14759 if expr a : '\(a\)' >/dev/null 2>&1 &&
14760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14761 as_expr=expr
14762 else
14763 as_expr=false
14766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14767 as_basename=basename
14768 else
14769 as_basename=false
14772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14773 as_dirname=dirname
14774 else
14775 as_dirname=false
14778 as_me=`$as_basename -- "$0" ||
14779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14780 X"$0" : 'X\(//\)$' \| \
14781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14782 $as_echo X/"$0" |
14783 sed '/^.*\/\([^/][^/]*\)\/*$/{
14784 s//\1/
14787 /^X\/\(\/\/\)$/{
14788 s//\1/
14791 /^X\/\(\/\).*/{
14792 s//\1/
14795 s/.*/./; q'`
14797 # Avoid depending upon Character Ranges.
14798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14801 as_cr_digits='0123456789'
14802 as_cr_alnum=$as_cr_Letters$as_cr_digits
14804 ECHO_C= ECHO_N= ECHO_T=
14805 case `echo -n x` in #(((((
14806 -n*)
14807 case `echo 'xy\c'` in
14808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14809 xy) ECHO_C='\c';;
14810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14811 ECHO_T=' ';;
14812 esac;;
14814 ECHO_N='-n';;
14815 esac
14817 rm -f conf$$ conf$$.exe conf$$.file
14818 if test -d conf$$.dir; then
14819 rm -f conf$$.dir/conf$$.file
14820 else
14821 rm -f conf$$.dir
14822 mkdir conf$$.dir 2>/dev/null
14824 if (echo >conf$$.file) 2>/dev/null; then
14825 if ln -s conf$$.file conf$$ 2>/dev/null; then
14826 as_ln_s='ln -s'
14827 # ... but there are two gotchas:
14828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14830 # In both cases, we have to default to `cp -p'.
14831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14832 as_ln_s='cp -p'
14833 elif ln conf$$.file conf$$ 2>/dev/null; then
14834 as_ln_s=ln
14835 else
14836 as_ln_s='cp -p'
14838 else
14839 as_ln_s='cp -p'
14841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14842 rmdir conf$$.dir 2>/dev/null
14845 # as_fn_mkdir_p
14846 # -------------
14847 # Create "$as_dir" as a directory, including parents if necessary.
14848 as_fn_mkdir_p ()
14851 case $as_dir in #(
14852 -*) as_dir=./$as_dir;;
14853 esac
14854 test -d "$as_dir" || eval $as_mkdir_p || {
14855 as_dirs=
14856 while :; do
14857 case $as_dir in #(
14858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14859 *) as_qdir=$as_dir;;
14860 esac
14861 as_dirs="'$as_qdir' $as_dirs"
14862 as_dir=`$as_dirname -- "$as_dir" ||
14863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14864 X"$as_dir" : 'X\(//\)[^/]' \| \
14865 X"$as_dir" : 'X\(//\)$' \| \
14866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14867 $as_echo X"$as_dir" |
14868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14869 s//\1/
14872 /^X\(\/\/\)[^/].*/{
14873 s//\1/
14876 /^X\(\/\/\)$/{
14877 s//\1/
14880 /^X\(\/\).*/{
14881 s//\1/
14884 s/.*/./; q'`
14885 test -d "$as_dir" && break
14886 done
14887 test -z "$as_dirs" || eval "mkdir $as_dirs"
14888 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14891 } # as_fn_mkdir_p
14892 if mkdir -p . 2>/dev/null; then
14893 as_mkdir_p='mkdir -p "$as_dir"'
14894 else
14895 test -d ./-p && rmdir ./-p
14896 as_mkdir_p=false
14899 if test -x / >/dev/null 2>&1; then
14900 as_test_x='test -x'
14901 else
14902 if ls -dL / >/dev/null 2>&1; then
14903 as_ls_L_option=L
14904 else
14905 as_ls_L_option=
14907 as_test_x='
14908 eval sh -c '\''
14909 if test -d "$1"; then
14910 test -d "$1/.";
14911 else
14912 case $1 in #(
14913 -*)set "./$1";;
14914 esac;
14915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14916 ???[sx]*):;;*)false;;esac;fi
14917 '\'' sh
14920 as_executable_p=$as_test_x
14922 # Sed expression to map a string onto a valid CPP name.
14923 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14925 # Sed expression to map a string onto a valid variable name.
14926 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14929 exec 6>&1
14930 ## ----------------------------------- ##
14931 ## Main body of $CONFIG_STATUS script. ##
14932 ## ----------------------------------- ##
14933 _ASEOF
14934 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14937 # Save the log message, to keep $0 and so on meaningful, and to
14938 # report actual input values of CONFIG_FILES etc. instead of their
14939 # values after options handling.
14940 ac_log="
14941 This file was extended by phsa HSAIL runtime library $as_me 1.0, which was
14942 generated by GNU Autoconf 2.64. Invocation command line was
14944 CONFIG_FILES = $CONFIG_FILES
14945 CONFIG_HEADERS = $CONFIG_HEADERS
14946 CONFIG_LINKS = $CONFIG_LINKS
14947 CONFIG_COMMANDS = $CONFIG_COMMANDS
14948 $ $0 $@
14950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14953 _ACEOF
14955 case $ac_config_files in *"
14956 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14957 esac
14959 case $ac_config_headers in *"
14960 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14961 esac
14964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14965 # Files that config.status was made for.
14966 config_files="$ac_config_files"
14967 config_headers="$ac_config_headers"
14968 config_commands="$ac_config_commands"
14970 _ACEOF
14972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14973 ac_cs_usage="\
14974 \`$as_me' instantiates files and other configuration actions
14975 from templates according to the current configuration. Unless the files
14976 and actions are specified as TAGs, all are instantiated by default.
14978 Usage: $0 [OPTION]... [TAG]...
14980 -h, --help print this help, then exit
14981 -V, --version print version number and configuration settings, then exit
14982 -q, --quiet, --silent
14983 do not print progress messages
14984 -d, --debug don't remove temporary files
14985 --recheck update $as_me by reconfiguring in the same conditions
14986 --file=FILE[:TEMPLATE]
14987 instantiate the configuration file FILE
14988 --header=FILE[:TEMPLATE]
14989 instantiate the configuration header FILE
14991 Configuration files:
14992 $config_files
14994 Configuration headers:
14995 $config_headers
14997 Configuration commands:
14998 $config_commands
15000 Report bugs to <pekka.jaaskelainen@parmance.com>."
15002 _ACEOF
15003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004 ac_cs_version="\\
15005 phsa HSAIL runtime library config.status 1.0
15006 configured by $0, generated by GNU Autoconf 2.64,
15007 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15009 Copyright (C) 2009 Free Software Foundation, Inc.
15010 This config.status script is free software; the Free Software Foundation
15011 gives unlimited permission to copy, distribute and modify it."
15013 ac_pwd='$ac_pwd'
15014 srcdir='$srcdir'
15015 INSTALL='$INSTALL'
15016 MKDIR_P='$MKDIR_P'
15017 AWK='$AWK'
15018 test -n "\$AWK" || AWK=awk
15019 _ACEOF
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022 # The default lists apply if the user does not specify any file.
15023 ac_need_defaults=:
15024 while test $# != 0
15026 case $1 in
15027 --*=*)
15028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15030 ac_shift=:
15033 ac_option=$1
15034 ac_optarg=$2
15035 ac_shift=shift
15037 esac
15039 case $ac_option in
15040 # Handling of the options.
15041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15042 ac_cs_recheck=: ;;
15043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15044 $as_echo "$ac_cs_version"; exit ;;
15045 --debug | --debu | --deb | --de | --d | -d )
15046 debug=: ;;
15047 --file | --fil | --fi | --f )
15048 $ac_shift
15049 case $ac_optarg in
15050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15051 esac
15052 as_fn_append CONFIG_FILES " '$ac_optarg'"
15053 ac_need_defaults=false;;
15054 --header | --heade | --head | --hea )
15055 $ac_shift
15056 case $ac_optarg in
15057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15058 esac
15059 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15060 ac_need_defaults=false;;
15061 --he | --h)
15062 # Conflict between --help and --header
15063 as_fn_error "ambiguous option: \`$1'
15064 Try \`$0 --help' for more information.";;
15065 --help | --hel | -h )
15066 $as_echo "$ac_cs_usage"; exit ;;
15067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15069 ac_cs_silent=: ;;
15071 # This is an error.
15072 -*) as_fn_error "unrecognized option: \`$1'
15073 Try \`$0 --help' for more information." ;;
15075 *) as_fn_append ac_config_targets " $1"
15076 ac_need_defaults=false ;;
15078 esac
15079 shift
15080 done
15082 ac_configure_extra_args=
15084 if $ac_cs_silent; then
15085 exec 6>/dev/null
15086 ac_configure_extra_args="$ac_configure_extra_args --silent"
15089 _ACEOF
15090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15091 if \$ac_cs_recheck; then
15092 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15093 shift
15094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15095 CONFIG_SHELL='$SHELL'
15096 export CONFIG_SHELL
15097 exec "\$@"
15100 _ACEOF
15101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15102 exec 5>>config.log
15104 echo
15105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15106 ## Running $as_me. ##
15107 _ASBOX
15108 $as_echo "$ac_log"
15109 } >&5
15111 _ACEOF
15112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15114 # INIT-COMMANDS
15116 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15119 # The HP-UX ksh and POSIX shell print the target directory to stdout
15120 # if CDPATH is set.
15121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15123 sed_quote_subst='$sed_quote_subst'
15124 double_quote_subst='$double_quote_subst'
15125 delay_variable_subst='$delay_variable_subst'
15126 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15127 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15128 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15129 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15130 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15131 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15132 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15133 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15134 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15135 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15136 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15137 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15138 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15139 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15140 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15141 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15142 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15143 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15144 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15145 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15146 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15147 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15148 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15149 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15150 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15151 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15152 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15153 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15154 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15155 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15156 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15157 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15158 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15159 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15160 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15161 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15162 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15163 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15164 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15165 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15166 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15167 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15168 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15169 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15170 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15171 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15172 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15173 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15174 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"`'
15175 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15176 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15177 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15178 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15179 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15180 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15181 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15182 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15183 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15184 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15185 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15186 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15187 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15188 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15189 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15190 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15191 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15192 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15193 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15194 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15195 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15196 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15197 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15198 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15199 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15200 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15201 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15202 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15203 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15204 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15205 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15206 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15207 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15208 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15209 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15210 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15211 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15212 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15213 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15214 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15215 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15216 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15217 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15218 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15219 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15220 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15221 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15222 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15223 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15224 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15225 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15226 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15227 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15228 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15229 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15230 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15231 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15232 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15233 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15234 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15235 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15236 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15237 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15238 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15239 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15240 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15241 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15242 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15243 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15244 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15245 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15246 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15247 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15248 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15249 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15250 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15251 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15252 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15253 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15254 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15255 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15256 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15257 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15258 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15259 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15260 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15261 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15262 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15263 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15264 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15265 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15266 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15267 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15268 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15269 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15270 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15271 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15272 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15273 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15274 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15275 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15276 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15277 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15278 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15279 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15280 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15281 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15282 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15283 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15284 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15285 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15286 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15287 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15288 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15289 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15290 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15291 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15292 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15293 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15294 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15295 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15296 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15297 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15298 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15299 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15300 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15302 LTCC='$LTCC'
15303 LTCFLAGS='$LTCFLAGS'
15304 compiler='$compiler_DEFAULT'
15306 # A function that is used when there is no print builtin or printf.
15307 func_fallback_echo ()
15309 eval 'cat <<_LTECHO_EOF
15311 _LTECHO_EOF'
15314 # Quote evaled strings.
15315 for var in SHELL \
15316 ECHO \
15317 SED \
15318 GREP \
15319 EGREP \
15320 FGREP \
15321 LD \
15322 NM \
15323 LN_S \
15324 lt_SP2NL \
15325 lt_NL2SP \
15326 reload_flag \
15327 OBJDUMP \
15328 deplibs_check_method \
15329 file_magic_cmd \
15330 AR \
15331 AR_FLAGS \
15332 STRIP \
15333 RANLIB \
15334 CC \
15335 CFLAGS \
15336 compiler \
15337 lt_cv_sys_global_symbol_pipe \
15338 lt_cv_sys_global_symbol_to_cdecl \
15339 lt_cv_sys_global_symbol_to_c_name_address \
15340 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15341 lt_prog_compiler_no_builtin_flag \
15342 lt_prog_compiler_wl \
15343 lt_prog_compiler_pic \
15344 lt_prog_compiler_static \
15345 lt_cv_prog_compiler_c_o \
15346 need_locks \
15347 DSYMUTIL \
15348 NMEDIT \
15349 LIPO \
15350 OTOOL \
15351 OTOOL64 \
15352 shrext_cmds \
15353 export_dynamic_flag_spec \
15354 whole_archive_flag_spec \
15355 compiler_needs_object \
15356 with_gnu_ld \
15357 allow_undefined_flag \
15358 no_undefined_flag \
15359 hardcode_libdir_flag_spec \
15360 hardcode_libdir_flag_spec_ld \
15361 hardcode_libdir_separator \
15362 fix_srcfile_path \
15363 exclude_expsyms \
15364 include_expsyms \
15365 file_list_spec \
15366 variables_saved_for_relink \
15367 libname_spec \
15368 library_names_spec \
15369 soname_spec \
15370 install_override_mode \
15371 finish_eval \
15372 old_striplib \
15373 striplib \
15374 compiler_lib_search_dirs \
15375 predep_objects \
15376 postdep_objects \
15377 predeps \
15378 postdeps \
15379 compiler_lib_search_path \
15380 LD_CXX \
15381 reload_flag_CXX \
15382 compiler_CXX \
15383 lt_prog_compiler_no_builtin_flag_CXX \
15384 lt_prog_compiler_wl_CXX \
15385 lt_prog_compiler_pic_CXX \
15386 lt_prog_compiler_static_CXX \
15387 lt_cv_prog_compiler_c_o_CXX \
15388 export_dynamic_flag_spec_CXX \
15389 whole_archive_flag_spec_CXX \
15390 compiler_needs_object_CXX \
15391 with_gnu_ld_CXX \
15392 allow_undefined_flag_CXX \
15393 no_undefined_flag_CXX \
15394 hardcode_libdir_flag_spec_CXX \
15395 hardcode_libdir_flag_spec_ld_CXX \
15396 hardcode_libdir_separator_CXX \
15397 fix_srcfile_path_CXX \
15398 exclude_expsyms_CXX \
15399 include_expsyms_CXX \
15400 file_list_spec_CXX \
15401 compiler_lib_search_dirs_CXX \
15402 predep_objects_CXX \
15403 postdep_objects_CXX \
15404 predeps_CXX \
15405 postdeps_CXX \
15406 compiler_lib_search_path_CXX; do
15407 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15408 *[\\\\\\\`\\"\\\$]*)
15409 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15412 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15414 esac
15415 done
15417 # Double-quote double-evaled strings.
15418 for var in reload_cmds \
15419 old_postinstall_cmds \
15420 old_postuninstall_cmds \
15421 old_archive_cmds \
15422 extract_expsyms_cmds \
15423 old_archive_from_new_cmds \
15424 old_archive_from_expsyms_cmds \
15425 archive_cmds \
15426 archive_expsym_cmds \
15427 module_cmds \
15428 module_expsym_cmds \
15429 export_symbols_cmds \
15430 prelink_cmds \
15431 postinstall_cmds \
15432 postuninstall_cmds \
15433 finish_cmds \
15434 sys_lib_search_path_spec \
15435 sys_lib_dlsearch_path_spec \
15436 reload_cmds_CXX \
15437 old_archive_cmds_CXX \
15438 old_archive_from_new_cmds_CXX \
15439 old_archive_from_expsyms_cmds_CXX \
15440 archive_cmds_CXX \
15441 archive_expsym_cmds_CXX \
15442 module_cmds_CXX \
15443 module_expsym_cmds_CXX \
15444 export_symbols_cmds_CXX \
15445 prelink_cmds_CXX; do
15446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15447 *[\\\\\\\`\\"\\\$]*)
15448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15453 esac
15454 done
15456 ac_aux_dir='$ac_aux_dir'
15457 xsi_shell='$xsi_shell'
15458 lt_shell_append='$lt_shell_append'
15460 # See if we are running on zsh, and set the options which allow our
15461 # commands through without removal of \ escapes INIT.
15462 if test -n "\${ZSH_VERSION+set}" ; then
15463 setopt NO_GLOB_SUBST
15467 PACKAGE='$PACKAGE'
15468 VERSION='$VERSION'
15469 TIMESTAMP='$TIMESTAMP'
15470 RM='$RM'
15471 ofile='$ofile'
15478 _ACEOF
15480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482 # Handling of arguments.
15483 for ac_config_target in $ac_config_targets
15485 case $ac_config_target in
15486 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15488 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15489 "target-config.h") CONFIG_HEADERS="$CONFIG_HEADERS target-config.h" ;;
15491 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15492 esac
15493 done
15496 # If the user did not use the arguments to specify the items to instantiate,
15497 # then the envvar interface is used. Set only those that are not.
15498 # We use the long form for the default assignment because of an extremely
15499 # bizarre bug on SunOS 4.1.3.
15500 if $ac_need_defaults; then
15501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15506 # Have a temporary directory for convenience. Make it in the build tree
15507 # simply because there is no reason against having it here, and in addition,
15508 # creating and moving files from /tmp can sometimes cause problems.
15509 # Hook for its removal unless debugging.
15510 # Note that there is a small window in which the directory will not be cleaned:
15511 # after its creation but before its name has been assigned to `$tmp'.
15512 $debug ||
15514 tmp=
15515 trap 'exit_status=$?
15516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15518 trap 'as_fn_exit 1' 1 2 13 15
15520 # Create a (secure) tmp directory for tmp files.
15523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15524 test -n "$tmp" && test -d "$tmp"
15525 } ||
15527 tmp=./conf$$-$RANDOM
15528 (umask 077 && mkdir "$tmp")
15529 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15531 # Set up the scripts for CONFIG_FILES section.
15532 # No need to generate them if there are no CONFIG_FILES.
15533 # This happens for instance with `./config.status config.h'.
15534 if test -n "$CONFIG_FILES"; then
15537 ac_cr=`echo X | tr X '\015'`
15538 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15539 # But we know of no other shell where ac_cr would be empty at this
15540 # point, so we can use a bashism as a fallback.
15541 if test "x$ac_cr" = x; then
15542 eval ac_cr=\$\'\\r\'
15544 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15546 ac_cs_awk_cr='\r'
15547 else
15548 ac_cs_awk_cr=$ac_cr
15551 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15552 _ACEOF
15556 echo "cat >conf$$subs.awk <<_ACEOF" &&
15557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15558 echo "_ACEOF"
15559 } >conf$$subs.sh ||
15560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15561 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15562 ac_delim='%!_!# '
15563 for ac_last_try in false false false false false :; do
15564 . ./conf$$subs.sh ||
15565 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15568 if test $ac_delim_n = $ac_delim_num; then
15569 break
15570 elif $ac_last_try; then
15571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572 else
15573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15575 done
15576 rm -f conf$$subs.sh
15578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15580 _ACEOF
15581 sed -n '
15583 s/^/S["/; s/!.*/"]=/
15586 s/^[^!]*!//
15587 :repl
15588 t repl
15589 s/'"$ac_delim"'$//
15590 t delim
15593 s/\(.\{148\}\).*/\1/
15594 t more1
15595 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15598 b repl
15599 :more1
15600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15603 s/.\{148\}//
15604 t nl
15605 :delim
15607 s/\(.\{148\}\).*/\1/
15608 t more2
15609 s/["\\]/\\&/g; s/^/"/; s/$/"/
15612 :more2
15613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15616 s/.\{148\}//
15617 t delim
15618 ' <conf$$subs.awk | sed '
15619 /^[^""]/{
15621 s/\n//
15623 ' >>$CONFIG_STATUS || ac_write_fail=1
15624 rm -f conf$$subs.awk
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 _ACAWK
15627 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15628 for (key in S) S_is_set[key] = 1
15629 FS = "\a"
15633 line = $ 0
15634 nfields = split(line, field, "@")
15635 substed = 0
15636 len = length(field[1])
15637 for (i = 2; i < nfields; i++) {
15638 key = field[i]
15639 keylen = length(key)
15640 if (S_is_set[key]) {
15641 value = S[key]
15642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15643 len += length(value) + length(field[++i])
15644 substed = 1
15645 } else
15646 len += 1 + keylen
15649 print line
15652 _ACAWK
15653 _ACEOF
15654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15657 else
15659 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15660 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15661 _ACEOF
15663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15665 # trailing colons and then remove the whole line if VPATH becomes empty
15666 # (actually we leave an empty line to preserve line numbers).
15667 if test "x$srcdir" = x.; then
15668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15669 s/:*\$(srcdir):*/:/
15670 s/:*\${srcdir}:*/:/
15671 s/:*@srcdir@:*/:/
15672 s/^\([^=]*=[ ]*\):*/\1/
15673 s/:*$//
15674 s/^[^=]*=[ ]*$//
15678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679 fi # test -n "$CONFIG_FILES"
15681 # Set up the scripts for CONFIG_HEADERS section.
15682 # No need to generate them if there are no CONFIG_HEADERS.
15683 # This happens for instance with `./config.status Makefile'.
15684 if test -n "$CONFIG_HEADERS"; then
15685 cat >"$tmp/defines.awk" <<\_ACAWK ||
15686 BEGIN {
15687 _ACEOF
15689 # Transform confdefs.h into an awk script `defines.awk', embedded as
15690 # here-document in config.status, that substitutes the proper values into
15691 # config.h.in to produce config.h.
15693 # Create a delimiter string that does not exist in confdefs.h, to ease
15694 # handling of long lines.
15695 ac_delim='%!_!# '
15696 for ac_last_try in false false :; do
15697 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15698 if test -z "$ac_t"; then
15699 break
15700 elif $ac_last_try; then
15701 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15702 else
15703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15705 done
15707 # For the awk script, D is an array of macro values keyed by name,
15708 # likewise P contains macro parameters if any. Preserve backslash
15709 # newline sequences.
15711 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15712 sed -n '
15713 s/.\{148\}/&'"$ac_delim"'/g
15714 t rset
15715 :rset
15716 s/^[ ]*#[ ]*define[ ][ ]*/ /
15717 t def
15719 :def
15720 s/\\$//
15721 t bsnl
15722 s/["\\]/\\&/g
15723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15724 D["\1"]=" \3"/p
15725 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15727 :bsnl
15728 s/["\\]/\\&/g
15729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15730 D["\1"]=" \3\\\\\\n"\\/p
15731 t cont
15732 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15733 t cont
15735 :cont
15737 s/.\{148\}/&'"$ac_delim"'/g
15738 t clear
15739 :clear
15740 s/\\$//
15741 t bsnlc
15742 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15744 :bsnlc
15745 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15746 b cont
15747 ' <confdefs.h | sed '
15748 s/'"$ac_delim"'/"\\\
15749 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 for (key in D) D_is_set[key] = 1
15753 FS = "\a"
15755 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15756 line = \$ 0
15757 split(line, arg, " ")
15758 if (arg[1] == "#") {
15759 defundef = arg[2]
15760 mac1 = arg[3]
15761 } else {
15762 defundef = substr(arg[1], 2)
15763 mac1 = arg[2]
15765 split(mac1, mac2, "(") #)
15766 macro = mac2[1]
15767 prefix = substr(line, 1, index(line, defundef) - 1)
15768 if (D_is_set[macro]) {
15769 # Preserve the white space surrounding the "#".
15770 print prefix "define", macro P[macro] D[macro]
15771 next
15772 } else {
15773 # Replace #undef with comments. This is necessary, for example,
15774 # in the case of _POSIX_SOURCE, which is predefined and required
15775 # on some systems where configure will not decide to define it.
15776 if (defundef == "undef") {
15777 print "/*", prefix defundef, macro, "*/"
15778 next
15782 { print }
15783 _ACAWK
15784 _ACEOF
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15787 fi # test -n "$CONFIG_HEADERS"
15790 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15791 shift
15792 for ac_tag
15794 case $ac_tag in
15795 :[FHLC]) ac_mode=$ac_tag; continue;;
15796 esac
15797 case $ac_mode$ac_tag in
15798 :[FHL]*:*);;
15799 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15800 :[FH]-) ac_tag=-:-;;
15801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15802 esac
15803 ac_save_IFS=$IFS
15804 IFS=:
15805 set x $ac_tag
15806 IFS=$ac_save_IFS
15807 shift
15808 ac_file=$1
15809 shift
15811 case $ac_mode in
15812 :L) ac_source=$1;;
15813 :[FH])
15814 ac_file_inputs=
15815 for ac_f
15817 case $ac_f in
15818 -) ac_f="$tmp/stdin";;
15819 *) # Look for the file first in the build tree, then in the source tree
15820 # (if the path is not absolute). The absolute path cannot be DOS-style,
15821 # because $ac_f cannot contain `:'.
15822 test -f "$ac_f" ||
15823 case $ac_f in
15824 [\\/$]*) false;;
15825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15826 esac ||
15827 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15828 esac
15829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15830 as_fn_append ac_file_inputs " '$ac_f'"
15831 done
15833 # Let's still pretend it is `configure' which instantiates (i.e., don't
15834 # use $as_me), people would be surprised to read:
15835 # /* config.h. Generated by config.status. */
15836 configure_input='Generated from '`
15837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15838 `' by configure.'
15839 if test x"$ac_file" != x-; then
15840 configure_input="$ac_file. $configure_input"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15842 $as_echo "$as_me: creating $ac_file" >&6;}
15844 # Neutralize special characters interpreted by sed in replacement strings.
15845 case $configure_input in #(
15846 *\&* | *\|* | *\\* )
15847 ac_sed_conf_input=`$as_echo "$configure_input" |
15848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15849 *) ac_sed_conf_input=$configure_input;;
15850 esac
15852 case $ac_tag in
15853 *:-:* | *:-) cat >"$tmp/stdin" \
15854 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15855 esac
15857 esac
15859 ac_dir=`$as_dirname -- "$ac_file" ||
15860 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15861 X"$ac_file" : 'X\(//\)[^/]' \| \
15862 X"$ac_file" : 'X\(//\)$' \| \
15863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15864 $as_echo X"$ac_file" |
15865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15866 s//\1/
15869 /^X\(\/\/\)[^/].*/{
15870 s//\1/
15873 /^X\(\/\/\)$/{
15874 s//\1/
15877 /^X\(\/\).*/{
15878 s//\1/
15881 s/.*/./; q'`
15882 as_dir="$ac_dir"; as_fn_mkdir_p
15883 ac_builddir=.
15885 case "$ac_dir" in
15886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15889 # A ".." for each directory in $ac_dir_suffix.
15890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15891 case $ac_top_builddir_sub in
15892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15894 esac ;;
15895 esac
15896 ac_abs_top_builddir=$ac_pwd
15897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15898 # for backward compatibility:
15899 ac_top_builddir=$ac_top_build_prefix
15901 case $srcdir in
15902 .) # We are building in place.
15903 ac_srcdir=.
15904 ac_top_srcdir=$ac_top_builddir_sub
15905 ac_abs_top_srcdir=$ac_pwd ;;
15906 [\\/]* | ?:[\\/]* ) # Absolute name.
15907 ac_srcdir=$srcdir$ac_dir_suffix;
15908 ac_top_srcdir=$srcdir
15909 ac_abs_top_srcdir=$srcdir ;;
15910 *) # Relative name.
15911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15912 ac_top_srcdir=$ac_top_build_prefix$srcdir
15913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15914 esac
15915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15918 case $ac_mode in
15921 # CONFIG_FILE
15924 case $INSTALL in
15925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15927 esac
15928 ac_MKDIR_P=$MKDIR_P
15929 case $MKDIR_P in
15930 [\\/$]* | ?:[\\/]* ) ;;
15931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15932 esac
15933 _ACEOF
15935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936 # If the template does not know about datarootdir, expand it.
15937 # FIXME: This hack should be removed a few years after 2.60.
15938 ac_datarootdir_hack=; ac_datarootdir_seen=
15939 ac_sed_dataroot='
15940 /datarootdir/ {
15944 /@datadir@/p
15945 /@docdir@/p
15946 /@infodir@/p
15947 /@localedir@/p
15948 /@mandir@/p'
15949 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15950 *datarootdir*) ac_datarootdir_seen=yes;;
15951 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15953 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15954 _ACEOF
15955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 ac_datarootdir_hack='
15957 s&@datadir@&$datadir&g
15958 s&@docdir@&$docdir&g
15959 s&@infodir@&$infodir&g
15960 s&@localedir@&$localedir&g
15961 s&@mandir@&$mandir&g
15962 s&\\\${datarootdir}&$datarootdir&g' ;;
15963 esac
15964 _ACEOF
15966 # Neutralize VPATH when `$srcdir' = `.'.
15967 # Shell code in configure.ac might set extrasub.
15968 # FIXME: do we really want to maintain this feature?
15969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970 ac_sed_extra="$ac_vpsub
15971 $extrasub
15972 _ACEOF
15973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15976 s|@configure_input@|$ac_sed_conf_input|;t t
15977 s&@top_builddir@&$ac_top_builddir_sub&;t t
15978 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15979 s&@srcdir@&$ac_srcdir&;t t
15980 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15981 s&@top_srcdir@&$ac_top_srcdir&;t t
15982 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15983 s&@builddir@&$ac_builddir&;t t
15984 s&@abs_builddir@&$ac_abs_builddir&;t t
15985 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15986 s&@INSTALL@&$ac_INSTALL&;t t
15987 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15988 $ac_datarootdir_hack
15990 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15991 || as_fn_error "could not create $ac_file" "$LINENO" 5
15993 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15997 which seems to be undefined. Please make sure it is defined." >&5
15998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15999 which seems to be undefined. Please make sure it is defined." >&2;}
16001 rm -f "$tmp/stdin"
16002 case $ac_file in
16003 -) cat "$tmp/out" && rm -f "$tmp/out";;
16004 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16005 esac \
16006 || as_fn_error "could not create $ac_file" "$LINENO" 5
16010 # CONFIG_HEADER
16012 if test x"$ac_file" != x-; then
16014 $as_echo "/* $configure_input */" \
16015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16016 } >"$tmp/config.h" \
16017 || as_fn_error "could not create $ac_file" "$LINENO" 5
16018 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16021 else
16022 rm -f "$ac_file"
16023 mv "$tmp/config.h" "$ac_file" \
16024 || as_fn_error "could not create $ac_file" "$LINENO" 5
16026 else
16027 $as_echo "/* $configure_input */" \
16028 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16029 || as_fn_error "could not create -" "$LINENO" 5
16031 # Compute "$ac_file"'s index in $config_headers.
16032 _am_arg="$ac_file"
16033 _am_stamp_count=1
16034 for _am_header in $config_headers :; do
16035 case $_am_header in
16036 $_am_arg | $_am_arg:* )
16037 break ;;
16039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16040 esac
16041 done
16042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16044 X"$_am_arg" : 'X\(//\)[^/]' \| \
16045 X"$_am_arg" : 'X\(//\)$' \| \
16046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16047 $as_echo X"$_am_arg" |
16048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16049 s//\1/
16052 /^X\(\/\/\)[^/].*/{
16053 s//\1/
16056 /^X\(\/\/\)$/{
16057 s//\1/
16060 /^X\(\/\).*/{
16061 s//\1/
16064 s/.*/./; q'`/stamp-h$_am_stamp_count
16067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16068 $as_echo "$as_me: executing $ac_file commands" >&6;}
16070 esac
16073 case $ac_file$ac_mode in
16074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16075 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16076 # are listed without --file. Let's play safe and only enable the eval
16077 # if we detect the quoting.
16078 case $CONFIG_FILES in
16079 *\'*) eval set x "$CONFIG_FILES" ;;
16080 *) set x $CONFIG_FILES ;;
16081 esac
16082 shift
16083 for mf
16085 # Strip MF so we end up with the name of the file.
16086 mf=`echo "$mf" | sed -e 's/:.*$//'`
16087 # Check whether this is an Automake generated Makefile or not.
16088 # We used to match only the files named `Makefile.in', but
16089 # some people rename them; so instead we look at the file content.
16090 # Grep'ing the first line is not enough: some people post-process
16091 # each Makefile.in and add a new line on top of each file to say so.
16092 # Grep'ing the whole file is not good either: AIX grep has a line
16093 # limit of 2048, but all sed's we know have understand at least 4000.
16094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16095 dirpart=`$as_dirname -- "$mf" ||
16096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16097 X"$mf" : 'X\(//\)[^/]' \| \
16098 X"$mf" : 'X\(//\)$' \| \
16099 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16100 $as_echo X"$mf" |
16101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16102 s//\1/
16105 /^X\(\/\/\)[^/].*/{
16106 s//\1/
16109 /^X\(\/\/\)$/{
16110 s//\1/
16113 /^X\(\/\).*/{
16114 s//\1/
16117 s/.*/./; q'`
16118 else
16119 continue
16121 # Extract the definition of DEPDIR, am__include, and am__quote
16122 # from the Makefile without running `make'.
16123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16124 test -z "$DEPDIR" && continue
16125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16126 test -z "am__include" && continue
16127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16128 # When using ansi2knr, U may be empty or an underscore; expand it
16129 U=`sed -n 's/^U = //p' < "$mf"`
16130 # Find all dependency output files, they are included files with
16131 # $(DEPDIR) in their names. We invoke sed twice because it is the
16132 # simplest approach to changing $(DEPDIR) to its actual value in the
16133 # expansion.
16134 for file in `sed -n "
16135 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16136 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16137 # Make sure the directory exists.
16138 test -f "$dirpart/$file" && continue
16139 fdir=`$as_dirname -- "$file" ||
16140 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16141 X"$file" : 'X\(//\)[^/]' \| \
16142 X"$file" : 'X\(//\)$' \| \
16143 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16144 $as_echo X"$file" |
16145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16146 s//\1/
16149 /^X\(\/\/\)[^/].*/{
16150 s//\1/
16153 /^X\(\/\/\)$/{
16154 s//\1/
16157 /^X\(\/\).*/{
16158 s//\1/
16161 s/.*/./; q'`
16162 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16163 # echo "creating $dirpart/$file"
16164 echo '# dummy' > "$dirpart/$file"
16165 done
16166 done
16169 "libtool":C)
16171 # See if we are running on zsh, and set the options which allow our
16172 # commands through without removal of \ escapes.
16173 if test -n "${ZSH_VERSION+set}" ; then
16174 setopt NO_GLOB_SUBST
16177 cfgfile="${ofile}T"
16178 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16179 $RM "$cfgfile"
16181 cat <<_LT_EOF >> "$cfgfile"
16182 #! $SHELL
16184 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16185 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16187 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16189 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16190 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16191 # Written by Gordon Matzigkeit, 1996
16193 # This file is part of GNU Libtool.
16195 # GNU Libtool is free software; you can redistribute it and/or
16196 # modify it under the terms of the GNU General Public License as
16197 # published by the Free Software Foundation; either version 2 of
16198 # the License, or (at your option) any later version.
16200 # As a special exception to the GNU General Public License,
16201 # if you distribute this file as part of a program or library that
16202 # is built using GNU Libtool, you may include this file under the
16203 # same distribution terms that you use for the rest of that program.
16205 # GNU Libtool is distributed in the hope that it will be useful,
16206 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16207 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16208 # GNU General Public License for more details.
16210 # You should have received a copy of the GNU General Public License
16211 # along with GNU Libtool; see the file COPYING. If not, a copy
16212 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16213 # obtained by writing to the Free Software Foundation, Inc.,
16214 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16217 # The names of the tagged configurations supported by this script.
16218 available_tags="CXX "
16220 # ### BEGIN LIBTOOL CONFIG
16222 # Which release of libtool.m4 was used?
16223 macro_version=$macro_version
16224 macro_revision=$macro_revision
16226 # Whether or not to build shared libraries.
16227 build_libtool_libs=$enable_shared
16229 # Whether or not to build static libraries.
16230 build_old_libs=$enable_static
16232 # What type of objects to build.
16233 pic_mode=$pic_mode
16235 # Whether or not to optimize for fast installation.
16236 fast_install=$enable_fast_install
16238 # Shell to use when invoking shell scripts.
16239 SHELL=$lt_SHELL
16241 # An echo program that protects backslashes.
16242 ECHO=$lt_ECHO
16244 # The host system.
16245 host_alias=$host_alias
16246 host=$host
16247 host_os=$host_os
16249 # The build system.
16250 build_alias=$build_alias
16251 build=$build
16252 build_os=$build_os
16254 # A sed program that does not truncate output.
16255 SED=$lt_SED
16257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16258 Xsed="\$SED -e 1s/^X//"
16260 # A grep program that handles long lines.
16261 GREP=$lt_GREP
16263 # An ERE matcher.
16264 EGREP=$lt_EGREP
16266 # A literal string matcher.
16267 FGREP=$lt_FGREP
16269 # A BSD- or MS-compatible name lister.
16270 NM=$lt_NM
16272 # Whether we need soft or hard links.
16273 LN_S=$lt_LN_S
16275 # What is the maximum length of a command?
16276 max_cmd_len=$max_cmd_len
16278 # Object file suffix (normally "o").
16279 objext=$ac_objext
16281 # Executable file suffix (normally "").
16282 exeext=$exeext
16284 # whether the shell understands "unset".
16285 lt_unset=$lt_unset
16287 # turn spaces into newlines.
16288 SP2NL=$lt_lt_SP2NL
16290 # turn newlines into spaces.
16291 NL2SP=$lt_lt_NL2SP
16293 # An object symbol dumper.
16294 OBJDUMP=$lt_OBJDUMP
16296 # Method to check whether dependent libraries are shared objects.
16297 deplibs_check_method=$lt_deplibs_check_method
16299 # Command to use when deplibs_check_method == "file_magic".
16300 file_magic_cmd=$lt_file_magic_cmd
16302 # The archiver.
16303 AR=$lt_AR
16304 AR_FLAGS=$lt_AR_FLAGS
16306 # A symbol stripping program.
16307 STRIP=$lt_STRIP
16309 # Commands used to install an old-style archive.
16310 RANLIB=$lt_RANLIB
16311 old_postinstall_cmds=$lt_old_postinstall_cmds
16312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16314 # Whether to use a lock for old archive extraction.
16315 lock_old_archive_extraction=$lock_old_archive_extraction
16317 # A C compiler.
16318 LTCC=$lt_CC
16320 # LTCC compiler flags.
16321 LTCFLAGS=$lt_CFLAGS
16323 # Take the output of nm and produce a listing of raw symbols and C names.
16324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16326 # Transform the output of nm in a proper C declaration.
16327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16329 # Transform the output of nm in a C name address pair.
16330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16332 # Transform the output of nm in a C name address pair when lib prefix is needed.
16333 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16335 # The name of the directory that contains temporary libtool files.
16336 objdir=$objdir
16338 # Used to examine libraries when file_magic_cmd begins with "file".
16339 MAGIC_CMD=$MAGIC_CMD
16341 # Must we lock files when doing compilation?
16342 need_locks=$lt_need_locks
16344 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16345 DSYMUTIL=$lt_DSYMUTIL
16347 # Tool to change global to local symbols on Mac OS X.
16348 NMEDIT=$lt_NMEDIT
16350 # Tool to manipulate fat objects and archives on Mac OS X.
16351 LIPO=$lt_LIPO
16353 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16354 OTOOL=$lt_OTOOL
16356 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16357 OTOOL64=$lt_OTOOL64
16359 # Old archive suffix (normally "a").
16360 libext=$libext
16362 # Shared library suffix (normally ".so").
16363 shrext_cmds=$lt_shrext_cmds
16365 # The commands to extract the exported symbol list from a shared archive.
16366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16368 # Variables whose values should be saved in libtool wrapper scripts and
16369 # restored at link time.
16370 variables_saved_for_relink=$lt_variables_saved_for_relink
16372 # Do we need the "lib" prefix for modules?
16373 need_lib_prefix=$need_lib_prefix
16375 # Do we need a version for libraries?
16376 need_version=$need_version
16378 # Library versioning type.
16379 version_type=$version_type
16381 # Shared library runtime path variable.
16382 runpath_var=$runpath_var
16384 # Shared library path variable.
16385 shlibpath_var=$shlibpath_var
16387 # Is shlibpath searched before the hard-coded library search path?
16388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16390 # Format of library name prefix.
16391 libname_spec=$lt_libname_spec
16393 # List of archive names. First name is the real one, the rest are links.
16394 # The last name is the one that the linker finds with -lNAME
16395 library_names_spec=$lt_library_names_spec
16397 # The coded name of the library, if different from the real name.
16398 soname_spec=$lt_soname_spec
16400 # Permission mode override for installation of shared libraries.
16401 install_override_mode=$lt_install_override_mode
16403 # Command to use after installation of a shared archive.
16404 postinstall_cmds=$lt_postinstall_cmds
16406 # Command to use after uninstallation of a shared archive.
16407 postuninstall_cmds=$lt_postuninstall_cmds
16409 # Commands used to finish a libtool library installation in a directory.
16410 finish_cmds=$lt_finish_cmds
16412 # As "finish_cmds", except a single script fragment to be evaled but
16413 # not shown.
16414 finish_eval=$lt_finish_eval
16416 # Whether we should hardcode library paths into libraries.
16417 hardcode_into_libs=$hardcode_into_libs
16419 # Compile-time system search path for libraries.
16420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16422 # Run-time system search path for libraries.
16423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16425 # Whether dlopen is supported.
16426 dlopen_support=$enable_dlopen
16428 # Whether dlopen of programs is supported.
16429 dlopen_self=$enable_dlopen_self
16431 # Whether dlopen of statically linked programs is supported.
16432 dlopen_self_static=$enable_dlopen_self_static
16434 # Commands to strip libraries.
16435 old_striplib=$lt_old_striplib
16436 striplib=$lt_striplib
16439 # The linker used to build libraries.
16440 LD=$lt_LD
16442 # How to create reloadable object files.
16443 reload_flag=$lt_reload_flag
16444 reload_cmds=$lt_reload_cmds
16446 # Commands used to build an old-style archive.
16447 old_archive_cmds=$lt_old_archive_cmds
16449 # A language specific compiler.
16450 CC=$lt_compiler
16452 # Is the compiler the GNU compiler?
16453 with_gcc=$GCC
16455 # Compiler flag to turn off builtin functions.
16456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16458 # How to pass a linker flag through the compiler.
16459 wl=$lt_lt_prog_compiler_wl
16461 # Additional compiler flags for building library objects.
16462 pic_flag=$lt_lt_prog_compiler_pic
16464 # Compiler flag to prevent dynamic linking.
16465 link_static_flag=$lt_lt_prog_compiler_static
16467 # Does compiler simultaneously support -c and -o options?
16468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16470 # Whether or not to add -lc for building shared libraries.
16471 build_libtool_need_lc=$archive_cmds_need_lc
16473 # Whether or not to disallow shared libs when runtime libs are static.
16474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16476 # Compiler flag to allow reflexive dlopens.
16477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16479 # Compiler flag to generate shared objects directly from archives.
16480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16482 # Whether the compiler copes with passing no objects directly.
16483 compiler_needs_object=$lt_compiler_needs_object
16485 # Create an old-style archive from a shared archive.
16486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16488 # Create a temporary old-style archive to link instead of a shared archive.
16489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16491 # Commands used to build a shared archive.
16492 archive_cmds=$lt_archive_cmds
16493 archive_expsym_cmds=$lt_archive_expsym_cmds
16495 # Commands used to build a loadable module if different from building
16496 # a shared archive.
16497 module_cmds=$lt_module_cmds
16498 module_expsym_cmds=$lt_module_expsym_cmds
16500 # Whether we are building with GNU ld or not.
16501 with_gnu_ld=$lt_with_gnu_ld
16503 # Flag that allows shared libraries with undefined symbols to be built.
16504 allow_undefined_flag=$lt_allow_undefined_flag
16506 # Flag that enforces no undefined symbols.
16507 no_undefined_flag=$lt_no_undefined_flag
16509 # Flag to hardcode \$libdir into a binary during linking.
16510 # This must work even if \$libdir does not exist
16511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16513 # If ld is used when linking, flag to hardcode \$libdir into a binary
16514 # during linking. This must work even if \$libdir does not exist.
16515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16517 # Whether we need a single "-rpath" flag with a separated argument.
16518 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16520 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16521 # DIR into the resulting binary.
16522 hardcode_direct=$hardcode_direct
16524 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16525 # DIR into the resulting binary and the resulting library dependency is
16526 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16527 # library is relocated.
16528 hardcode_direct_absolute=$hardcode_direct_absolute
16530 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16531 # into the resulting binary.
16532 hardcode_minus_L=$hardcode_minus_L
16534 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16535 # into the resulting binary.
16536 hardcode_shlibpath_var=$hardcode_shlibpath_var
16538 # Set to "yes" if building a shared library automatically hardcodes DIR
16539 # into the library and all subsequent libraries and executables linked
16540 # against it.
16541 hardcode_automatic=$hardcode_automatic
16543 # Set to yes if linker adds runtime paths of dependent libraries
16544 # to runtime path list.
16545 inherit_rpath=$inherit_rpath
16547 # Whether libtool must link a program against all its dependency libraries.
16548 link_all_deplibs=$link_all_deplibs
16550 # Fix the shell variable \$srcfile for the compiler.
16551 fix_srcfile_path=$lt_fix_srcfile_path
16553 # Set to "yes" if exported symbols are required.
16554 always_export_symbols=$always_export_symbols
16556 # The commands to list exported symbols.
16557 export_symbols_cmds=$lt_export_symbols_cmds
16559 # Symbols that should not be listed in the preloaded symbols.
16560 exclude_expsyms=$lt_exclude_expsyms
16562 # Symbols that must always be exported.
16563 include_expsyms=$lt_include_expsyms
16565 # Commands necessary for linking programs (against libraries) with templates.
16566 prelink_cmds=$lt_prelink_cmds
16568 # Specify filename containing input files.
16569 file_list_spec=$lt_file_list_spec
16571 # How to hardcode a shared library path into an executable.
16572 hardcode_action=$hardcode_action
16574 # The directories searched by this compiler when creating a shared library.
16575 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16577 # Dependencies to place before and after the objects being linked to
16578 # create a shared library.
16579 predep_objects=$lt_predep_objects
16580 postdep_objects=$lt_postdep_objects
16581 predeps=$lt_predeps
16582 postdeps=$lt_postdeps
16584 # The library search path used internally by the compiler when linking
16585 # a shared library.
16586 compiler_lib_search_path=$lt_compiler_lib_search_path
16588 # ### END LIBTOOL CONFIG
16590 _LT_EOF
16592 case $host_os in
16593 aix3*)
16594 cat <<\_LT_EOF >> "$cfgfile"
16595 # AIX sometimes has problems with the GCC collect2 program. For some
16596 # reason, if we set the COLLECT_NAMES environment variable, the problems
16597 # vanish in a puff of smoke.
16598 if test "X${COLLECT_NAMES+set}" != Xset; then
16599 COLLECT_NAMES=
16600 export COLLECT_NAMES
16602 _LT_EOF
16604 esac
16607 ltmain="$ac_aux_dir/ltmain.sh"
16610 # We use sed instead of cat because bash on DJGPP gets confused if
16611 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16612 # text mode, it properly converts lines to CR/LF. This bash problem
16613 # is reportedly fixed, but why not run on old versions too?
16614 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16615 || (rm -f "$cfgfile"; exit 1)
16617 case $xsi_shell in
16618 yes)
16619 cat << \_LT_EOF >> "$cfgfile"
16621 # func_dirname file append nondir_replacement
16622 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16623 # otherwise set result to NONDIR_REPLACEMENT.
16624 func_dirname ()
16626 case ${1} in
16627 */*) func_dirname_result="${1%/*}${2}" ;;
16628 * ) func_dirname_result="${3}" ;;
16629 esac
16632 # func_basename file
16633 func_basename ()
16635 func_basename_result="${1##*/}"
16638 # func_dirname_and_basename file append nondir_replacement
16639 # perform func_basename and func_dirname in a single function
16640 # call:
16641 # dirname: Compute the dirname of FILE. If nonempty,
16642 # add APPEND to the result, otherwise set result
16643 # to NONDIR_REPLACEMENT.
16644 # value returned in "$func_dirname_result"
16645 # basename: Compute filename of FILE.
16646 # value retuned in "$func_basename_result"
16647 # Implementation must be kept synchronized with func_dirname
16648 # and func_basename. For efficiency, we do not delegate to
16649 # those functions but instead duplicate the functionality here.
16650 func_dirname_and_basename ()
16652 case ${1} in
16653 */*) func_dirname_result="${1%/*}${2}" ;;
16654 * ) func_dirname_result="${3}" ;;
16655 esac
16656 func_basename_result="${1##*/}"
16659 # func_stripname prefix suffix name
16660 # strip PREFIX and SUFFIX off of NAME.
16661 # PREFIX and SUFFIX must not contain globbing or regex special
16662 # characters, hashes, percent signs, but SUFFIX may contain a leading
16663 # dot (in which case that matches only a dot).
16664 func_stripname ()
16666 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16667 # positional parameters, so assign one to ordinary parameter first.
16668 func_stripname_result=${3}
16669 func_stripname_result=${func_stripname_result#"${1}"}
16670 func_stripname_result=${func_stripname_result%"${2}"}
16673 # func_opt_split
16674 func_opt_split ()
16676 func_opt_split_opt=${1%%=*}
16677 func_opt_split_arg=${1#*=}
16680 # func_lo2o object
16681 func_lo2o ()
16683 case ${1} in
16684 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16685 *) func_lo2o_result=${1} ;;
16686 esac
16689 # func_xform libobj-or-source
16690 func_xform ()
16692 func_xform_result=${1%.*}.lo
16695 # func_arith arithmetic-term...
16696 func_arith ()
16698 func_arith_result=$(( $* ))
16701 # func_len string
16702 # STRING may not start with a hyphen.
16703 func_len ()
16705 func_len_result=${#1}
16708 _LT_EOF
16710 *) # Bourne compatible functions.
16711 cat << \_LT_EOF >> "$cfgfile"
16713 # func_dirname file append nondir_replacement
16714 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16715 # otherwise set result to NONDIR_REPLACEMENT.
16716 func_dirname ()
16718 # Extract subdirectory from the argument.
16719 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16720 if test "X$func_dirname_result" = "X${1}"; then
16721 func_dirname_result="${3}"
16722 else
16723 func_dirname_result="$func_dirname_result${2}"
16727 # func_basename file
16728 func_basename ()
16730 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16734 # func_stripname prefix suffix name
16735 # strip PREFIX and SUFFIX off of NAME.
16736 # PREFIX and SUFFIX must not contain globbing or regex special
16737 # characters, hashes, percent signs, but SUFFIX may contain a leading
16738 # dot (in which case that matches only a dot).
16739 # func_strip_suffix prefix name
16740 func_stripname ()
16742 case ${2} in
16743 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16744 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16745 esac
16748 # sed scripts:
16749 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16750 my_sed_long_arg='1s/^-[^=]*=//'
16752 # func_opt_split
16753 func_opt_split ()
16755 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16756 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16759 # func_lo2o object
16760 func_lo2o ()
16762 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16765 # func_xform libobj-or-source
16766 func_xform ()
16768 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16771 # func_arith arithmetic-term...
16772 func_arith ()
16774 func_arith_result=`expr "$@"`
16777 # func_len string
16778 # STRING may not start with a hyphen.
16779 func_len ()
16781 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16784 _LT_EOF
16785 esac
16787 case $lt_shell_append in
16788 yes)
16789 cat << \_LT_EOF >> "$cfgfile"
16791 # func_append var value
16792 # Append VALUE to the end of shell variable VAR.
16793 func_append ()
16795 eval "$1+=\$2"
16797 _LT_EOF
16800 cat << \_LT_EOF >> "$cfgfile"
16802 # func_append var value
16803 # Append VALUE to the end of shell variable VAR.
16804 func_append ()
16806 eval "$1=\$$1\$2"
16809 _LT_EOF
16811 esac
16814 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16815 || (rm -f "$cfgfile"; exit 1)
16817 mv -f "$cfgfile" "$ofile" ||
16818 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16819 chmod +x "$ofile"
16822 cat <<_LT_EOF >> "$ofile"
16824 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16826 # The linker used to build libraries.
16827 LD=$lt_LD_CXX
16829 # How to create reloadable object files.
16830 reload_flag=$lt_reload_flag_CXX
16831 reload_cmds=$lt_reload_cmds_CXX
16833 # Commands used to build an old-style archive.
16834 old_archive_cmds=$lt_old_archive_cmds_CXX
16836 # A language specific compiler.
16837 CC=$lt_compiler_CXX
16839 # Is the compiler the GNU compiler?
16840 with_gcc=$GCC_CXX
16842 # Compiler flag to turn off builtin functions.
16843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16845 # How to pass a linker flag through the compiler.
16846 wl=$lt_lt_prog_compiler_wl_CXX
16848 # Additional compiler flags for building library objects.
16849 pic_flag=$lt_lt_prog_compiler_pic_CXX
16851 # Compiler flag to prevent dynamic linking.
16852 link_static_flag=$lt_lt_prog_compiler_static_CXX
16854 # Does compiler simultaneously support -c and -o options?
16855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16857 # Whether or not to add -lc for building shared libraries.
16858 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16860 # Whether or not to disallow shared libs when runtime libs are static.
16861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16863 # Compiler flag to allow reflexive dlopens.
16864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16866 # Compiler flag to generate shared objects directly from archives.
16867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16869 # Whether the compiler copes with passing no objects directly.
16870 compiler_needs_object=$lt_compiler_needs_object_CXX
16872 # Create an old-style archive from a shared archive.
16873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16875 # Create a temporary old-style archive to link instead of a shared archive.
16876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16878 # Commands used to build a shared archive.
16879 archive_cmds=$lt_archive_cmds_CXX
16880 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16882 # Commands used to build a loadable module if different from building
16883 # a shared archive.
16884 module_cmds=$lt_module_cmds_CXX
16885 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16887 # Whether we are building with GNU ld or not.
16888 with_gnu_ld=$lt_with_gnu_ld_CXX
16890 # Flag that allows shared libraries with undefined symbols to be built.
16891 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16893 # Flag that enforces no undefined symbols.
16894 no_undefined_flag=$lt_no_undefined_flag_CXX
16896 # Flag to hardcode \$libdir into a binary during linking.
16897 # This must work even if \$libdir does not exist
16898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16900 # If ld is used when linking, flag to hardcode \$libdir into a binary
16901 # during linking. This must work even if \$libdir does not exist.
16902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16904 # Whether we need a single "-rpath" flag with a separated argument.
16905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16908 # DIR into the resulting binary.
16909 hardcode_direct=$hardcode_direct_CXX
16911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16912 # DIR into the resulting binary and the resulting library dependency is
16913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16914 # library is relocated.
16915 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16918 # into the resulting binary.
16919 hardcode_minus_L=$hardcode_minus_L_CXX
16921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16922 # into the resulting binary.
16923 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16925 # Set to "yes" if building a shared library automatically hardcodes DIR
16926 # into the library and all subsequent libraries and executables linked
16927 # against it.
16928 hardcode_automatic=$hardcode_automatic_CXX
16930 # Set to yes if linker adds runtime paths of dependent libraries
16931 # to runtime path list.
16932 inherit_rpath=$inherit_rpath_CXX
16934 # Whether libtool must link a program against all its dependency libraries.
16935 link_all_deplibs=$link_all_deplibs_CXX
16937 # Fix the shell variable \$srcfile for the compiler.
16938 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16940 # Set to "yes" if exported symbols are required.
16941 always_export_symbols=$always_export_symbols_CXX
16943 # The commands to list exported symbols.
16944 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16946 # Symbols that should not be listed in the preloaded symbols.
16947 exclude_expsyms=$lt_exclude_expsyms_CXX
16949 # Symbols that must always be exported.
16950 include_expsyms=$lt_include_expsyms_CXX
16952 # Commands necessary for linking programs (against libraries) with templates.
16953 prelink_cmds=$lt_prelink_cmds_CXX
16955 # Specify filename containing input files.
16956 file_list_spec=$lt_file_list_spec_CXX
16958 # How to hardcode a shared library path into an executable.
16959 hardcode_action=$hardcode_action_CXX
16961 # The directories searched by this compiler when creating a shared library.
16962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16964 # Dependencies to place before and after the objects being linked to
16965 # create a shared library.
16966 predep_objects=$lt_predep_objects_CXX
16967 postdep_objects=$lt_postdep_objects_CXX
16968 predeps=$lt_predeps_CXX
16969 postdeps=$lt_postdeps_CXX
16971 # The library search path used internally by the compiler when linking
16972 # a shared library.
16973 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16975 # ### END LIBTOOL TAG CONFIG: CXX
16976 _LT_EOF
16980 esac
16981 done # for ac_tag
16984 as_fn_exit 0
16985 _ACEOF
16986 ac_clean_files=$ac_clean_files_save
16988 test $ac_write_fail = 0 ||
16989 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16992 # configure is writing to config.log, and then calls config.status.
16993 # config.status does its own redirection, appending to config.log.
16994 # Unfortunately, on DOS this fails, as config.log is still kept open
16995 # by configure, so config.status won't be able to write to it; its
16996 # output is simply discarded. So we exec the FD to /dev/null,
16997 # effectively closing config.log, so it can be properly (re)opened and
16998 # appended to by config.status. When coming back to configure, we
16999 # need to make the FD available again.
17000 if test "$no_create" != yes; then
17001 ac_cs_success=:
17002 ac_config_status_args=
17003 test "$silent" = yes &&
17004 ac_config_status_args="$ac_config_status_args --quiet"
17005 exec 5>/dev/null
17006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17007 exec 5>>config.log
17008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17009 # would make configure fail if this is the last instruction.
17010 $ac_cs_success || as_fn_exit $?
17012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17014 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}