Backport upstream patches to fix ICEs when using -fdebug-types-section.
[official-gcc.git] / gcc-4_7-mobile / libmudflap / configure
blob6b181874bd89e5322600ae61325ace4fb686207a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libmudflap 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libmudflap'
558 PACKAGE_TARNAME='libmudflap'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='libmudflap 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="mf-runtime.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 SECTION_FLAGS
606 toolexeclibdir
607 toolexecdir
608 build_libmudflapth
609 LIBMUDFLAPTH_FALSE
610 LIBMUDFLAPTH_TRUE
611 MF_HAVE_UINTPTR_T
612 MF_HAVE_STDINT_H
613 enable_static
614 enable_shared
615 CXXCPP
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 RANLIB
623 OBJDUMP
624 LN_S
626 ac_ct_DUMPBIN
627 DUMPBIN
629 FGREP
631 LIBTOOL
632 EGREP
633 GREP
634 am__fastdepCXX_FALSE
635 am__fastdepCXX_TRUE
636 CXXDEPMODE
637 ac_ct_CXX
638 CXXFLAGS
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
657 multi_basedir
658 MAINT
659 MAINTAINER_MODE_FALSE
660 MAINTAINER_MODE_TRUE
661 am__untar
662 am__tar
663 AMTAR
664 am__leading_dot
665 SET_MAKE
667 mkdir_p
668 MKDIR_P
669 INSTALL_STRIP_PROGRAM
670 STRIP
671 install_sh
672 MAKEINFO
673 AUTOHEADER
674 AUTOMAKE
675 AUTOCONF
676 ACLOCAL
677 VERSION
678 PACKAGE
679 CYGPATH_W
680 am__isrc
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_noncanonical
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_version_specific_runtime_libs
739 enable_maintainer_mode
740 enable_multilib
741 enable_dependency_tracking
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 enable_libtool_lock
748 enable_tls
750 ac_precious_vars='build_alias
751 host_alias
752 target_alias
754 CPPFLAGS
756 CXXFLAGS
757 LDFLAGS
758 LIBS
760 CXXCPP'
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
811 ac_prev=
812 ac_dashdash=
813 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information."
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 esac
1168 done
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1254 /^X\(\/\/\)$/{
1255 s//\1/
1258 /^X\(\/\).*/{
1259 s//\1/
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1267 else
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/libmudflap]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1357 cat <<\_ACEOF
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368 _ACEOF
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of libmudflap 1.0:";;
1374 esac
1375 cat <<\_ACEOF
1377 Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1382 --enable-maintainer-mode enable make rules and dependencies not useful
1383 (and sometimes confusing) to the casual installer
1384 --enable-multilib build many library versions (default)
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-shared[=PKGS] build shared libraries [default=yes]
1388 --enable-static[=PKGS] build static libraries [default=yes]
1389 --enable-fast-install[=PKGS]
1390 optimize for fast installation [default=yes]
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1392 --enable-tls Use thread-local storage [default=yes]
1394 Optional Packages:
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-pic try to use only PIC/non-PIC objects [default=use
1398 both]
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CPP C preprocessor
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1412 CXXCPP C++ preprocessor
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to the package provider.
1418 _ACEOF
1419 ac_status=$?
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 continue
1428 ac_builddir=.
1430 case "$ac_dir" in
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 esac ;;
1440 esac
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1446 case $srcdir in
1447 .) # We are building in place.
1448 ac_srcdir=.
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
1452 ac_srcdir=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1455 *) # Relative name.
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 esac
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1470 else
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472 fi || ac_status=$?
1473 cd "$ac_pwd" || { ac_status=$?; break; }
1474 done
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1479 cat <<\_ACEOF
1480 libmudflap configure 1.0
1481 generated by GNU Autoconf 2.64
1483 Copyright (C) 2009 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487 exit
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1502 case "(($ac_try" in
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1509 ac_status=$?
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_c_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1520 ac_retval=0
1521 else
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1525 ac_retval=1
1527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1528 return $ac_retval
1530 } # ac_fn_c_try_compile
1532 # ac_fn_c_try_cpp LINENO
1533 # ----------------------
1534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_cpp ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 if { { ac_try="$ac_cpp conftest.$ac_ext"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } >/dev/null && {
1554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 }; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=1
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1567 } # ac_fn_c_try_cpp
1569 # ac_fn_cxx_try_compile LINENO
1570 # ----------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_cxx_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_cxx_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_cxx_try_compile
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_header_mongrel ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 $as_echo_n "(cached) " >&6
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 else
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 ac_header_compiler=yes
1635 else
1636 ac_header_compiler=no
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651 else
1652 ac_header_preproc=no
1654 rm -f conftest.err conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 esac
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1841 #undef $2
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1858 main ()
1860 return $2 ();
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_func
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } >/dev/null && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=1
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1915 } # ac_fn_cxx_try_cpp
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 $as_test_x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 return $ac_retval
1961 } # ac_fn_cxx_try_link
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1966 It was created by libmudflap $as_me 1.0, which was
1967 generated by GNU Autoconf 2.64. Invocation command line was
1969 $ $0 $@
1971 _ACEOF
1972 exec 5>>config.log
1974 cat <<_ASUNAME
1975 ## --------- ##
1976 ## Platform. ##
1977 ## --------- ##
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996 _ASUNAME
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2004 done
2005 IFS=$as_save_IFS
2007 } >&5
2009 cat >&5 <<_ACEOF
2012 ## ----------- ##
2013 ## Core tests. ##
2014 ## ----------- ##
2016 _ACEOF
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_configure_args=
2025 ac_configure_args0=
2026 ac_configure_args1=
2027 ac_must_keep_next=false
2028 for ac_pass in 1 2
2030 for ac_arg
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 case $ac_pass in
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2059 as_fn_append ac_configure_args " '$ac_arg'"
2061 esac
2062 done
2063 done
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2075 echo
2077 cat <<\_ASBOX
2078 ## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##
2081 _ASBOX
2082 echo
2083 # The following way of writing the cache mishandles newlines in values,
2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in #(
2088 *${as_nl}*)
2089 case $ac_var in #(
2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092 esac
2093 case $ac_var in #(
2094 _ | IFS | as_nl) ;; #(
2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 *) { eval $ac_var=; unset $ac_var;} ;;
2097 esac ;;
2098 esac
2099 done
2100 (set) 2>&1 |
2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102 *${as_nl}ac_space=\ *)
2103 sed -n \
2104 "s/'\''/'\''\\\\'\'''\''/g;
2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106 ;; #(
2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110 esac |
2111 sort
2113 echo
2115 cat <<\_ASBOX
2116 ## ----------------- ##
2117 ## Output variables. ##
2118 ## ----------------- ##
2119 _ASBOX
2120 echo
2121 for ac_var in $ac_subst_vars
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2131 if test -n "$ac_subst_files"; then
2132 cat <<\_ASBOX
2133 ## ------------------- ##
2134 ## File substitutions. ##
2135 ## ------------------- ##
2136 _ASBOX
2137 echo
2138 for ac_var in $ac_subst_files
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2149 if test -s confdefs.h; then
2150 cat <<\_ASBOX
2151 ## ----------- ##
2152 ## confdefs.h. ##
2153 ## ----------- ##
2154 _ASBOX
2155 echo
2156 cat confdefs.h
2157 echo
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2175 $as_echo "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209 ac_site_file1=$CONFIG_SITE
2210 elif test "x$prefix" != xNONE; then
2211 ac_site_file1=$prefix/share/config.site
2212 ac_site_file2=$prefix/etc/config.site
2213 else
2214 ac_site_file1=$ac_default_prefix/share/config.site
2215 ac_site_file2=$ac_default_prefix/etc/config.site
2217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219 test "x$ac_site_file" = xNONE && continue
2220 if test -r "$ac_site_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223 sed 's/^/| /' "$ac_site_file" >&5
2224 . "$ac_site_file"
2226 done
2228 if test -r "$cache_file"; then
2229 # Some versions of bash will fail to source /dev/null (special
2230 # files actually), so we avoid doing that.
2231 if test -f "$cache_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234 case $cache_file in
2235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236 *) . "./$cache_file";;
2237 esac
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242 >$cache_file
2245 # Check that the precious variables saved in the cache have kept the same
2246 # value.
2247 ac_cache_corrupted=false
2248 for ac_var in $ac_precious_vars; do
2249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250 eval ac_new_set=\$ac_env_${ac_var}_set
2251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252 eval ac_new_val=\$ac_env_${ac_var}_value
2253 case $ac_old_set,$ac_new_set in
2254 set,)
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2257 ac_cache_corrupted=: ;;
2258 ,set)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,);;
2264 if test "x$ac_old_val" != "x$ac_new_val"; then
2265 # differences in whitespace do not lead to failure.
2266 ac_old_val_w=`echo x $ac_old_val`
2267 ac_new_val_w=`echo x $ac_new_val`
2268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271 ac_cache_corrupted=:
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275 eval $ac_var=\$ac_old_val
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2278 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2280 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2281 fi;;
2282 esac
2283 # Pass precious variables to config.status.
2284 if test "$ac_new_set" = set; then
2285 case $ac_new_val in
2286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2287 *) ac_arg=$ac_var=$ac_new_val ;;
2288 esac
2289 case " $ac_configure_args " in
2290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2292 esac
2294 done
2295 if $ac_cache_corrupted; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2300 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 ## -------------------- ##
2303 ## Main body of script. ##
2304 ## -------------------- ##
2306 ac_ext=c
2307 ac_cpp='$CPP $CPPFLAGS'
2308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 ac_aux_dir=
2318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2319 for ac_t in install-sh install.sh shtool; do
2320 if test -f "$ac_dir/$ac_t"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/$ac_t -c"
2323 break 2
2325 done
2326 done
2327 if test -z "$ac_aux_dir"; then
2328 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if test "${ac_cv_build+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385 else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if test "${ac_cv_target+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418 else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
2451 case ${build_alias} in
2452 "") build_noncanonical=${build} ;;
2453 *) build_noncanonical=${build_alias} ;;
2454 esac
2456 case ${host_alias} in
2457 "") host_noncanonical=${build_noncanonical} ;;
2458 *) host_noncanonical=${host_alias} ;;
2459 esac
2461 case ${target_alias} in
2462 "") target_noncanonical=${host_noncanonical} ;;
2463 *) target_noncanonical=${target_alias} ;;
2464 esac
2469 am__api_version='1.11'
2471 # Find a good install program. We prefer a C program (faster),
2472 # so one script is as good as another. But avoid the broken or
2473 # incompatible versions:
2474 # SysV /etc/install, /usr/sbin/install
2475 # SunOS /usr/etc/install
2476 # IRIX /sbin/install
2477 # AIX /bin/install
2478 # AmigaOS /C/install, which installs bootblocks on floppy discs
2479 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2480 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2481 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2482 # OS/2's system install, which has a completely different semantic
2483 # ./install, which can be erroneously created by make from ./install.sh.
2484 # Reject install programs that cannot install multiple files.
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2486 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2487 if test -z "$INSTALL"; then
2488 if test "${ac_cv_path_install+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 # Account for people who put trailing slashes in PATH elements.
2497 case $as_dir/ in #((
2498 ./ | .// | /[cC]/* | \
2499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2500 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2501 /usr/ucb/* ) ;;
2503 # OSF1 and SCO ODT 3.0 have their own names for install.
2504 # Don't use installbsd from OSF since it installs stuff as root
2505 # by default.
2506 for ac_prog in ginstall scoinst install; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2509 if test $ac_prog = install &&
2510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # AIX install. It has an incompatible calling convention.
2513 elif test $ac_prog = install &&
2514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # program-specific install script used by HP pwplus--don't use.
2517 else
2518 rm -rf conftest.one conftest.two conftest.dir
2519 echo one > conftest.one
2520 echo two > conftest.two
2521 mkdir conftest.dir
2522 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2523 test -s conftest.one && test -s conftest.two &&
2524 test -s conftest.dir/conftest.one &&
2525 test -s conftest.dir/conftest.two
2526 then
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 break 3
2532 done
2533 done
2535 esac
2537 done
2538 IFS=$as_save_IFS
2540 rm -rf conftest.one conftest.two conftest.dir
2543 if test "${ac_cv_path_install+set}" = set; then
2544 INSTALL=$ac_cv_path_install
2545 else
2546 # As a last resort, use the slow shell script. Don't cache a
2547 # value for INSTALL within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the value is a relative name.
2550 INSTALL=$ac_install_sh
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2554 $as_echo "$INSTALL" >&6; }
2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557 # It thinks the first close brace ends the variable substitution.
2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2565 $as_echo_n "checking whether build environment is sane... " >&6; }
2566 # Just in case
2567 sleep 1
2568 echo timestamp > conftest.file
2569 # Reject unsafe characters in $srcdir or the absolute working directory
2570 # name. Accept space and tab only in the latter.
2571 am_lf='
2573 case `pwd` in
2574 *[\\\"\#\$\&\'\`$am_lf]*)
2575 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2576 esac
2577 case $srcdir in
2578 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2579 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2580 esac
2582 # Do `set' in a subshell so we don't clobber the current shell's
2583 # arguments. Must try -L first in case configure is actually a
2584 # symlink; some systems play weird games with the mod time of symlinks
2585 # (eg FreeBSD returns the mod time of the symlink's containing
2586 # directory).
2587 if (
2588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2589 if test "$*" = "X"; then
2590 # -L didn't work.
2591 set X `ls -t "$srcdir/configure" conftest.file`
2593 rm -f conftest.file
2594 if test "$*" != "X $srcdir/configure conftest.file" \
2595 && test "$*" != "X conftest.file $srcdir/configure"; then
2597 # If neither matched, then we have a broken ls. This can happen
2598 # if, for instance, CONFIG_SHELL is bash and it inherits a
2599 # broken ls alias from the environment. This has actually
2600 # happened. Such a system could not be considered "sane".
2601 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2602 alias in your environment" "$LINENO" 5
2605 test "$2" = conftest.file
2607 then
2608 # Ok.
2610 else
2611 as_fn_error "newly created file is older than distributed files!
2612 Check your system clock" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621 # Double any \ or $.
2622 # By default was `s,x,x', remove it if useless.
2623 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2629 if test x"${MISSING+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2635 esac
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640 else
2641 am_missing_run=
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2643 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2646 if test x"${install_sh}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2652 esac
2655 # Installed binaries are usually stripped using `strip' when the user
2656 # run `make install-strip'. However `strip' might not be the right
2657 # tool to use in cross-compilation environments, therefore Automake
2658 # will honor the `STRIP' environment variable to overrule this program.
2659 if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}strip; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_STRIP+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2682 done
2683 done
2684 IFS=$as_save_IFS
2688 STRIP=$ac_cv_prog_STRIP
2689 if test -n "$STRIP"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2691 $as_echo "$STRIP" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2699 if test -z "$ac_cv_prog_STRIP"; then
2700 ac_ct_STRIP=$STRIP
2701 # Extract the first word of "strip", so it can be a program name with args.
2702 set dummy strip; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2722 done
2723 done
2724 IFS=$as_save_IFS
2728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729 if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2731 $as_echo "$ac_ct_STRIP" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2737 if test "x$ac_ct_STRIP" = x; then
2738 STRIP=":"
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 STRIP=$ac_ct_STRIP
2748 else
2749 STRIP="$ac_cv_prog_STRIP"
2753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757 if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2774 break 3;;
2775 esac
2776 done
2777 done
2778 done
2779 IFS=$as_save_IFS
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2785 else
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2795 $as_echo "$MKDIR_P" >&6; }
2797 mkdir_p="$MKDIR_P"
2798 case $mkdir_p in
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2801 esac
2803 for ac_prog in gawk mawk nawk awk
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_AWK+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_AWK="$ac_prog"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2826 done
2827 done
2828 IFS=$as_save_IFS
2832 AWK=$ac_cv_prog_AWK
2833 if test -n "$AWK"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2835 $as_echo "$AWK" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2842 test -n "$AWK" && break
2843 done
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847 set x ${MAKE-make}
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.make <<\_ACEOF
2853 SHELL = /bin/sh
2854 all:
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2856 _ACEOF
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 esac
2864 rm -f conftest.make
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 SET_MAKE=
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2876 rm -rf .tst 2>/dev/null
2877 mkdir .tst 2>/dev/null
2878 if test -d .tst; then
2879 am__leading_dot=.
2880 else
2881 am__leading_dot=_
2883 rmdir .tst 2>/dev/null
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895 # test whether we have cygpath
2896 if test -z "$CYGPATH_W"; then
2897 if (cygpath --version) >/dev/null 2>/dev/null; then
2898 CYGPATH_W='cygpath -w'
2899 else
2900 CYGPATH_W=echo
2905 # Define the identity of the package.
2906 PACKAGE='libmudflap'
2907 VERSION='1.0'
2910 cat >>confdefs.h <<_ACEOF
2911 #define PACKAGE "$PACKAGE"
2912 _ACEOF
2915 cat >>confdefs.h <<_ACEOF
2916 #define VERSION "$VERSION"
2917 _ACEOF
2919 # Some tools Automake needs.
2921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935 # We need awk for the "check" target. The system "awk" is bad on
2936 # some platforms.
2937 # Always define AMTAR for backward compatibility.
2939 AMTAR=${AMTAR-"${am_missing_run}tar"}
2941 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2949 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2950 # Check whether --enable-version-specific-runtime-libs was given.
2951 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2952 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2953 yes) version_specific_libs=yes ;;
2954 no) version_specific_libs=no ;;
2955 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2956 esac
2957 else
2958 version_specific_libs=no
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2962 $as_echo "$version_specific_libs" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2966 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2967 # Check whether --enable-maintainer-mode was given.
2968 if test "${enable_maintainer_mode+set}" = set; then :
2969 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2970 else
2971 USE_MAINTAINER_MODE=no
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2975 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2976 if test $USE_MAINTAINER_MODE = yes; then
2977 MAINTAINER_MODE_TRUE=
2978 MAINTAINER_MODE_FALSE='#'
2979 else
2980 MAINTAINER_MODE_TRUE='#'
2981 MAINTAINER_MODE_FALSE=
2984 MAINT=$MAINTAINER_MODE_TRUE
2989 # Default to --enable-multilib
2990 # Check whether --enable-multilib was given.
2991 if test "${enable_multilib+set}" = set; then :
2992 enableval=$enable_multilib; case "$enableval" in
2993 yes) multilib=yes ;;
2994 no) multilib=no ;;
2995 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2996 esac
2997 else
2998 multilib=yes
3002 # We may get other options which we leave undocumented:
3003 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3004 # See config-ml.in if you want the gory details.
3006 if test "$srcdir" = "."; then
3007 if test "$with_target_subdir" != "."; then
3008 multi_basedir="$srcdir/$with_multisrctop../.."
3009 else
3010 multi_basedir="$srcdir/$with_multisrctop.."
3012 else
3013 multi_basedir="$srcdir/.."
3017 # Even if the default multilib is not a cross compilation,
3018 # it may be that some of the other multilibs are.
3019 if test $cross_compiling = no && test $multilib = yes \
3020 && test "x${with_multisubdir}" != x ; then
3021 cross_compiling=maybe
3024 ac_config_commands="$ac_config_commands default-1"
3027 target_alias=${target_alias-$host_alias}
3030 ac_config_headers="$ac_config_headers config.h"
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3040 # We must force CC to /not/ be precious variables; otherwise
3041 # the wrong, non-multilib-adjusted value will be used in multilibs.
3042 # As a side effect, we have to subst CFLAGS ourselves.
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3090 if test -z "$ac_cv_prog_CC"; then
3091 ac_ct_CC=$CC
3092 # Extract the first word of "gcc", so it can be a program name with args.
3093 set dummy gcc; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="gcc"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3113 done
3114 done
3115 IFS=$as_save_IFS
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3122 $as_echo "$ac_ct_CC" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3128 if test "x$ac_ct_CC" = x; then
3129 CC=""
3130 else
3131 case $cross_compiling:$ac_tool_warned in
3132 yes:)
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3136 esac
3137 CC=$ac_ct_CC
3139 else
3140 CC="$ac_cv_prog_CC"
3143 if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}cc; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="${ac_tool_prefix}cc"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3166 done
3167 done
3168 IFS=$as_save_IFS
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3184 if test -z "$CC"; then
3185 # Extract the first word of "cc", so it can be a program name with args.
3186 set dummy cc; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 ac_prog_rejected=no
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3204 ac_prog_rejected=yes
3205 continue
3207 ac_cv_prog_CC="cc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3213 IFS=$as_save_IFS
3215 if test $ac_prog_rejected = yes; then
3216 # We found a bogon in the path, so make sure we never use it.
3217 set dummy $ac_cv_prog_CC
3218 shift
3219 if test $# != 0; then
3220 # We chose a different compiler from the bogus one.
3221 # However, it has the same basename, so the bogon will be chosen
3222 # first if we set CC to just the basename; use the full file name.
3223 shift
3224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229 CC=$ac_cv_prog_CC
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 for ac_prog in cl.exe
3244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3267 IFS=$as_save_IFS
3271 CC=$ac_cv_prog_CC
3272 if test -n "$CC"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3281 test -n "$CC" && break
3282 done
3284 if test -z "$CC"; then
3285 ac_ct_CC=$CC
3286 for ac_prog in cl.exe
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_prog_ac_ct_CC="$ac_prog"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3316 if test -n "$ac_ct_CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3318 $as_echo "$ac_ct_CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$ac_ct_CC" && break
3326 done
3328 if test "x$ac_ct_CC" = x; then
3329 CC=""
3330 else
3331 case $cross_compiling:$ac_tool_warned in
3332 yes:)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335 ac_tool_warned=yes ;;
3336 esac
3337 CC=$ac_ct_CC
3344 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error "no acceptable C compiler found in \$PATH
3347 See \`config.log' for more details." "$LINENO" 5; }
3349 # Provide some information about the compiler.
3350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3351 set X $ac_compile
3352 ac_compiler=$2
3353 for ac_option in --version -v -V -qversion; do
3354 { { ac_try="$ac_compiler $ac_option >&5"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3362 ac_status=$?
3363 if test -s conftest.err; then
3364 sed '10a\
3365 ... rest of stderr output deleted ...
3366 10q' conftest.err >conftest.er1
3367 cat conftest.er1 >&5
3368 rm -f conftest.er1 conftest.err
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }
3372 done
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3378 main ()
3382 return 0;
3384 _ACEOF
3385 ac_clean_files_save=$ac_clean_files
3386 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3387 # Try to create an executable without -o first, disregard a.out.
3388 # It will help us diagnose broken compilers, and finding out an intuition
3389 # of exeext.
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3391 $as_echo_n "checking for C compiler default output file name... " >&6; }
3392 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3394 # The possible output files:
3395 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3397 ac_rmfiles=
3398 for ac_file in $ac_files
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3403 esac
3404 done
3405 rm -f $ac_rmfiles
3407 if { { ac_try="$ac_link_default"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link_default") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3419 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3420 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3421 # so that the user can short-circuit this test for compilers unknown to
3422 # Autoconf.
3423 for ac_file in $ac_files ''
3425 test -f "$ac_file" || continue
3426 case $ac_file in
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3429 [ab].out )
3430 # We found the default executable, but exeext='' is most
3431 # certainly right.
3432 break;;
3433 *.* )
3434 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3435 then :; else
3436 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 # We set ac_cv_exeext here because the later test for it is not
3439 # safe: cross compilers may not add the suffix if given an `-o'
3440 # argument, so we may need to know it at that point already.
3441 # Even if this section looks crufty: it has the advantage of
3442 # actually working.
3443 break;;
3445 break;;
3446 esac
3447 done
3448 test "$ac_cv_exeext" = no && ac_cv_exeext=
3450 else
3451 ac_file=''
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3454 $as_echo "$ac_file" >&6; }
3455 if test -z "$ac_file"; then :
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 { as_fn_set_status 77
3462 as_fn_error "C compiler cannot create executables
3463 See \`config.log' for more details." "$LINENO" 5; }; }
3465 ac_exeext=$ac_cv_exeext
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 # If not cross compiling, check that we can run a simple program.
3472 if test "$cross_compiling" != yes; then
3473 if { ac_try='./$ac_file'
3474 { { case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_try") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; }; then
3484 cross_compiling=no
3485 else
3486 if test "$cross_compiling" = maybe; then
3487 cross_compiling=yes
3488 else
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error "cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details." "$LINENO" 5; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3500 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3501 ac_clean_files=$ac_clean_files_save
3502 # Check that the compiler produces executables we can run. If not, either
3503 # the compiler is broken, or we cross compile.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505 $as_echo_n "checking whether we are cross compiling... " >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507 $as_echo "$cross_compiling" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3510 $as_echo_n "checking for suffix of executables... " >&6; }
3511 if { { ac_try="$ac_link"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3523 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3524 # work properly (i.e., refer to `conftest.exe'), while it won't with
3525 # `rm'.
3526 for ac_file in conftest.exe conftest conftest.*; do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 break;;
3532 * ) break;;
3533 esac
3534 done
3535 else
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error "cannot compute suffix of executables: cannot compile and link
3539 See \`config.log' for more details." "$LINENO" 5; }
3541 rm -f conftest$ac_cv_exeext
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3543 $as_echo "$ac_cv_exeext" >&6; }
3545 rm -f conftest.$ac_ext
3546 EXEEXT=$ac_cv_exeext
3547 ac_exeext=$EXEEXT
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3549 $as_echo_n "checking for suffix of object files... " >&6; }
3550 if test "${ac_cv_objext+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3557 main ()
3561 return 0;
3563 _ACEOF
3564 rm -f conftest.o conftest.obj
3565 if { { ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_compile") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 for ac_file in conftest.o conftest.obj conftest.*; do
3577 test -f "$ac_file" || continue;
3578 case $ac_file in
3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3581 break;;
3582 esac
3583 done
3584 else
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error "cannot compute suffix of object files: cannot compile
3591 See \`config.log' for more details." "$LINENO" 5; }
3593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3596 $as_echo "$ac_cv_objext" >&6; }
3597 OBJEXT=$ac_cv_objext
3598 ac_objext=$OBJEXT
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3601 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3608 main ()
3610 #ifndef __GNUC__
3611 choke me
3612 #endif
3615 return 0;
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_compiler_gnu=yes
3620 else
3621 ac_compiler_gnu=no
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3628 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3629 if test $ac_compiler_gnu = yes; then
3630 GCC=yes
3631 else
3632 GCC=
3634 ac_test_CFLAGS=${CFLAGS+set}
3635 ac_save_CFLAGS=$CFLAGS
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3637 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3638 if test "${ac_cv_prog_cc_g+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 ac_save_c_werror_flag=$ac_c_werror_flag
3642 ac_c_werror_flag=yes
3643 ac_cv_prog_cc_g=no
3644 CFLAGS="-g"
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3649 main ()
3653 return 0;
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_cv_prog_cc_g=yes
3658 else
3659 CFLAGS=""
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3664 main ()
3668 return 0;
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3673 else
3674 ac_c_werror_flag=$ac_save_c_werror_flag
3675 CFLAGS="-g"
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3680 main ()
3684 return 0;
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_g=yes
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3698 $as_echo "$ac_cv_prog_cc_g" >&6; }
3699 if test "$ac_test_CFLAGS" = set; then
3700 CFLAGS=$ac_save_CFLAGS
3701 elif test $ac_cv_prog_cc_g = yes; then
3702 if test "$GCC" = yes; then
3703 CFLAGS="-g -O2"
3704 else
3705 CFLAGS="-g"
3707 else
3708 if test "$GCC" = yes; then
3709 CFLAGS="-O2"
3710 else
3711 CFLAGS=
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3716 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_cv_prog_cc_c89=no
3720 ac_save_CC=$CC
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723 #include <stdarg.h>
3724 #include <stdio.h>
3725 #include <sys/types.h>
3726 #include <sys/stat.h>
3727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3728 struct buf { int x; };
3729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3730 static char *e (p, i)
3731 char **p;
3732 int i;
3734 return p[i];
3736 static char *f (char * (*g) (char **, int), char **p, ...)
3738 char *s;
3739 va_list v;
3740 va_start (v,p);
3741 s = g (p, va_arg (v,int));
3742 va_end (v);
3743 return s;
3746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3747 function prototypes and stuff, but not '\xHH' hex character constants.
3748 These don't provoke an error unfortunately, instead are silently treated
3749 as 'x'. The following induces an error, until -std is added to get
3750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3751 array size at least. It's necessary to write '\x00'==0 to get something
3752 that's true only with -std. */
3753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3756 inside strings and character constants. */
3757 #define FOO(x) 'x'
3758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3760 int test (int i, double x);
3761 struct s1 {int (*f) (int a);};
3762 struct s2 {int (*f) (double a);};
3763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3764 int argc;
3765 char **argv;
3767 main ()
3769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3771 return 0;
3773 _ACEOF
3774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3777 CC="$ac_save_CC $ac_arg"
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779 ac_cv_prog_cc_c89=$ac_arg
3781 rm -f core conftest.err conftest.$ac_objext
3782 test "x$ac_cv_prog_cc_c89" != "xno" && break
3783 done
3784 rm -f conftest.$ac_ext
3785 CC=$ac_save_CC
3788 # AC_CACHE_VAL
3789 case "x$ac_cv_prog_cc_c89" in
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3792 $as_echo "none needed" >&6; } ;;
3793 xno)
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3795 $as_echo "unsupported" >&6; } ;;
3797 CC="$CC $ac_cv_prog_cc_c89"
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3799 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3800 esac
3801 if test "x$ac_cv_prog_cc_c89" != xno; then :
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 DEPDIR="${am__leading_dot}deps"
3812 ac_config_commands="$ac_config_commands depfiles"
3815 am_make=${MAKE-make}
3816 cat > confinc << 'END'
3817 am__doit:
3818 @echo this is the am__doit target
3819 .PHONY: am__doit
3821 # If we don't find an include directive, just comment out the code.
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3823 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3824 am__include="#"
3825 am__quote=
3826 _am_result=none
3827 # First try GNU make style include.
3828 echo "include confinc" > confmf
3829 # Ignore all kinds of additional output from `make'.
3830 case `$am_make -s -f confmf 2> /dev/null` in #(
3831 *the\ am__doit\ target*)
3832 am__include=include
3833 am__quote=
3834 _am_result=GNU
3836 esac
3837 # Now try BSD make style include.
3838 if test "$am__include" = "#"; then
3839 echo '.include "confinc"' > confmf
3840 case `$am_make -s -f confmf 2> /dev/null` in #(
3841 *the\ am__doit\ target*)
3842 am__include=.include
3843 am__quote="\""
3844 _am_result=BSD
3846 esac
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3851 $as_echo "$_am_result" >&6; }
3852 rm -f confinc confmf
3854 # Check whether --enable-dependency-tracking was given.
3855 if test "${enable_dependency_tracking+set}" = set; then :
3856 enableval=$enable_dependency_tracking;
3859 if test "x$enable_dependency_tracking" != xno; then
3860 am_depcomp="$ac_aux_dir/depcomp"
3861 AMDEPBACKSLASH='\'
3863 if test "x$enable_dependency_tracking" != xno; then
3864 AMDEP_TRUE=
3865 AMDEP_FALSE='#'
3866 else
3867 AMDEP_TRUE='#'
3868 AMDEP_FALSE=
3873 depcc="$CC" am_compiler_list=
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3876 $as_echo_n "checking dependency style of $depcc... " >&6; }
3877 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3881 # We make a subdir and do the tests there. Otherwise we can end up
3882 # making bogus files that we don't know about and never remove. For
3883 # instance it was reported that on HP-UX the gcc test will end up
3884 # making a dummy file named `D' -- because `-MD' means `put the output
3885 # in D'.
3886 mkdir conftest.dir
3887 # Copy depcomp to subdir because otherwise we won't find it if we're
3888 # using a relative directory.
3889 cp "$am_depcomp" conftest.dir
3890 cd conftest.dir
3891 # We will build objects and dependencies in a subdirectory because
3892 # it helps to detect inapplicable dependency modes. For instance
3893 # both Tru64's cc and ICC support -MD to output dependencies as a
3894 # side effect of compilation, but ICC will put the dependencies in
3895 # the current directory while Tru64 will put them in the object
3896 # directory.
3897 mkdir sub
3899 am_cv_CC_dependencies_compiler_type=none
3900 if test "$am_compiler_list" = ""; then
3901 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903 am__universal=false
3904 case " $depcc " in #(
3905 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3906 esac
3908 for depmode in $am_compiler_list; do
3909 # Setup a source with many dependencies, because some compilers
3910 # like to wrap large dependency lists on column 80 (with \), and
3911 # we should not choose a depcomp mode which is confused by this.
3913 # We need to recreate these files for each test, as the compiler may
3914 # overwrite some of them when testing with obscure command lines.
3915 # This happens at least with the AIX C compiler.
3916 : > sub/conftest.c
3917 for i in 1 2 3 4 5 6; do
3918 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3919 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3920 # Solaris 8's {/usr,}/bin/sh.
3921 touch sub/conftst$i.h
3922 done
3923 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3926 # mode. It turns out that the SunPro C++ compiler does not properly
3927 # handle `-M -o', and we need to detect this. Also, some Intel
3928 # versions had trouble with output in subdirs
3929 am__obj=sub/conftest.${OBJEXT-o}
3930 am__minus_obj="-o $am__obj"
3931 case $depmode in
3932 gcc)
3933 # This depmode causes a compiler race in universal mode.
3934 test "$am__universal" = false || continue
3936 nosideeffect)
3937 # after this tag, mechanisms are not by side-effect, so they'll
3938 # only be used when explicitly requested
3939 if test "x$enable_dependency_tracking" = xyes; then
3940 continue
3941 else
3942 break
3945 msvisualcpp | msvcmsys)
3946 # This compiler won't grok `-c -o', but also, the minuso test has
3947 # not run yet. These depmodes are late enough in the game, and
3948 # so weak that their functioning should not be impacted.
3949 am__obj=conftest.${OBJEXT-o}
3950 am__minus_obj=
3952 none) break ;;
3953 esac
3954 if depmode=$depmode \
3955 source=sub/conftest.c object=$am__obj \
3956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3957 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3958 >/dev/null 2>conftest.err &&
3959 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3960 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3961 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3962 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3963 # icc doesn't choke on unknown options, it will just issue warnings
3964 # or remarks (even with -Werror). So we grep stderr for any message
3965 # that says an option was ignored or not supported.
3966 # When given -MP, icc 7.0 and 7.1 complain thusly:
3967 # icc: Command line warning: ignoring option '-M'; no argument required
3968 # The diagnosis changed in icc 8.0:
3969 # icc: Command line remark: option '-MP' not supported
3970 if (grep 'ignoring option' conftest.err ||
3971 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3972 am_cv_CC_dependencies_compiler_type=$depmode
3973 break
3976 done
3978 cd ..
3979 rm -rf conftest.dir
3980 else
3981 am_cv_CC_dependencies_compiler_type=none
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3986 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3987 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3990 test "x$enable_dependency_tracking" != xno \
3991 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3992 am__fastdepCC_TRUE=
3993 am__fastdepCC_FALSE='#'
3994 else
3995 am__fastdepCC_TRUE='#'
3996 am__fastdepCC_FALSE=
4004 if test "x$GCC" != "xyes"; then
4005 as_fn_error "libmudflap must be built with GCC" "$LINENO" 5
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4018 if test -z "$CPP"; then
4019 if test "${ac_cv_prog_CPP+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025 ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #ifdef __STDC__
4037 # include <limits.h>
4038 #else
4039 # include <assert.h>
4040 #endif
4041 Syntax error
4042 _ACEOF
4043 if ac_fn_c_try_cpp "$LINENO"; then :
4045 else
4046 # Broken: fails on valid input.
4047 continue
4049 rm -f conftest.err conftest.$ac_ext
4051 # OK, works on sane cases. Now check whether nonexistent headers
4052 # can be detected and how.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <ac_nonexistent.h>
4056 _ACEOF
4057 if ac_fn_c_try_cpp "$LINENO"; then :
4058 # Broken: success on invalid input.
4059 continue
4060 else
4061 # Passes both tests.
4062 ac_preproc_ok=:
4063 break
4065 rm -f conftest.err conftest.$ac_ext
4067 done
4068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069 rm -f conftest.err conftest.$ac_ext
4070 if $ac_preproc_ok; then :
4071 break
4074 done
4075 ac_cv_prog_CPP=$CPP
4078 CPP=$ac_cv_prog_CPP
4079 else
4080 ac_cv_prog_CPP=$CPP
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083 $as_echo "$CPP" >&6; }
4084 ac_preproc_ok=false
4085 for ac_c_preproc_warn_flag in '' yes
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #ifdef __STDC__
4096 # include <limits.h>
4097 #else
4098 # include <assert.h>
4099 #endif
4100 Syntax error
4101 _ACEOF
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4104 else
4105 # Broken: fails on valid input.
4106 continue
4108 rm -f conftest.err conftest.$ac_ext
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <ac_nonexistent.h>
4115 _ACEOF
4116 if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4118 continue
4119 else
4120 # Passes both tests.
4121 ac_preproc_ok=:
4122 break
4124 rm -f conftest.err conftest.$ac_ext
4126 done
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then :
4131 else
4132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4134 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4135 See \`config.log' for more details." "$LINENO" 5; }
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 # We use the C++ compiler during testing.
4146 ac_ext=cpp
4147 ac_cpp='$CXXCPP $CPPFLAGS'
4148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4151 if test -z "$CXX"; then
4152 if test -n "$CCC"; then
4153 CXX=$CCC
4154 else
4155 if test -n "$ac_tool_prefix"; then
4156 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if test "${ac_cv_prog_CXX+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 if test -n "$CXX"; then
4166 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4179 done
4180 done
4181 IFS=$as_save_IFS
4185 CXX=$ac_cv_prog_CXX
4186 if test -n "$CXX"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4188 $as_echo "$CXX" >&6; }
4189 else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4195 test -n "$CXX" && break
4196 done
4198 if test -z "$CXX"; then
4199 ac_ct_CXX=$CXX
4200 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy $ac_prog; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$ac_ct_CXX"; then
4210 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_ac_ct_CXX="$ac_prog"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4230 if test -n "$ac_ct_CXX"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4232 $as_echo "$ac_ct_CXX" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4239 test -n "$ac_ct_CXX" && break
4240 done
4242 if test "x$ac_ct_CXX" = x; then
4243 CXX="g++"
4244 else
4245 case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251 CXX=$ac_ct_CXX
4257 # Provide some information about the compiler.
4258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4259 set X $ac_compile
4260 ac_compiler=$2
4261 for ac_option in --version -v -V -qversion; do
4262 { { ac_try="$ac_compiler $ac_option >&5"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 $as_echo "$ac_try_echo"; } >&5
4269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4270 ac_status=$?
4271 if test -s conftest.err; then
4272 sed '10a\
4273 ... rest of stderr output deleted ...
4274 10q' conftest.err >conftest.er1
4275 cat conftest.er1 >&5
4276 rm -f conftest.er1 conftest.err
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4280 done
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4283 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4284 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 main ()
4293 #ifndef __GNUC__
4294 choke me
4295 #endif
4298 return 0;
4300 _ACEOF
4301 if ac_fn_cxx_try_compile "$LINENO"; then :
4302 ac_compiler_gnu=yes
4303 else
4304 ac_compiler_gnu=no
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4311 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4312 if test $ac_compiler_gnu = yes; then
4313 GXX=yes
4314 else
4315 GXX=
4317 ac_test_CXXFLAGS=${CXXFLAGS+set}
4318 ac_save_CXXFLAGS=$CXXFLAGS
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4320 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4321 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4325 ac_cxx_werror_flag=yes
4326 ac_cv_prog_cxx_g=no
4327 CXXFLAGS="-g"
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4332 main ()
4336 return 0;
4338 _ACEOF
4339 if ac_fn_cxx_try_compile "$LINENO"; then :
4340 ac_cv_prog_cxx_g=yes
4341 else
4342 CXXFLAGS=""
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4347 main ()
4351 return 0;
4353 _ACEOF
4354 if ac_fn_cxx_try_compile "$LINENO"; then :
4356 else
4357 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4358 CXXFLAGS="-g"
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4363 main ()
4367 return 0;
4369 _ACEOF
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4371 ac_cv_prog_cxx_g=yes
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4381 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4382 if test "$ac_test_CXXFLAGS" = set; then
4383 CXXFLAGS=$ac_save_CXXFLAGS
4384 elif test $ac_cv_prog_cxx_g = yes; then
4385 if test "$GXX" = yes; then
4386 CXXFLAGS="-g -O2"
4387 else
4388 CXXFLAGS="-g"
4390 else
4391 if test "$GXX" = yes; then
4392 CXXFLAGS="-O2"
4393 else
4394 CXXFLAGS=
4397 ac_ext=c
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 depcc="$CXX" am_compiler_list=
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4406 $as_echo_n "checking dependency style of $depcc... " >&6; }
4407 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411 # We make a subdir and do the tests there. Otherwise we can end up
4412 # making bogus files that we don't know about and never remove. For
4413 # instance it was reported that on HP-UX the gcc test will end up
4414 # making a dummy file named `D' -- because `-MD' means `put the output
4415 # in D'.
4416 mkdir conftest.dir
4417 # Copy depcomp to subdir because otherwise we won't find it if we're
4418 # using a relative directory.
4419 cp "$am_depcomp" conftest.dir
4420 cd conftest.dir
4421 # We will build objects and dependencies in a subdirectory because
4422 # it helps to detect inapplicable dependency modes. For instance
4423 # both Tru64's cc and ICC support -MD to output dependencies as a
4424 # side effect of compilation, but ICC will put the dependencies in
4425 # the current directory while Tru64 will put them in the object
4426 # directory.
4427 mkdir sub
4429 am_cv_CXX_dependencies_compiler_type=none
4430 if test "$am_compiler_list" = ""; then
4431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4433 am__universal=false
4434 case " $depcc " in #(
4435 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4436 esac
4438 for depmode in $am_compiler_list; do
4439 # Setup a source with many dependencies, because some compilers
4440 # like to wrap large dependency lists on column 80 (with \), and
4441 # we should not choose a depcomp mode which is confused by this.
4443 # We need to recreate these files for each test, as the compiler may
4444 # overwrite some of them when testing with obscure command lines.
4445 # This happens at least with the AIX C compiler.
4446 : > sub/conftest.c
4447 for i in 1 2 3 4 5 6; do
4448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4450 # Solaris 8's {/usr,}/bin/sh.
4451 touch sub/conftst$i.h
4452 done
4453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4455 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4456 # mode. It turns out that the SunPro C++ compiler does not properly
4457 # handle `-M -o', and we need to detect this. Also, some Intel
4458 # versions had trouble with output in subdirs
4459 am__obj=sub/conftest.${OBJEXT-o}
4460 am__minus_obj="-o $am__obj"
4461 case $depmode in
4462 gcc)
4463 # This depmode causes a compiler race in universal mode.
4464 test "$am__universal" = false || continue
4466 nosideeffect)
4467 # after this tag, mechanisms are not by side-effect, so they'll
4468 # only be used when explicitly requested
4469 if test "x$enable_dependency_tracking" = xyes; then
4470 continue
4471 else
4472 break
4475 msvisualcpp | msvcmsys)
4476 # This compiler won't grok `-c -o', but also, the minuso test has
4477 # not run yet. These depmodes are late enough in the game, and
4478 # so weak that their functioning should not be impacted.
4479 am__obj=conftest.${OBJEXT-o}
4480 am__minus_obj=
4482 none) break ;;
4483 esac
4484 if depmode=$depmode \
4485 source=sub/conftest.c object=$am__obj \
4486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4488 >/dev/null 2>conftest.err &&
4489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4493 # icc doesn't choke on unknown options, it will just issue warnings
4494 # or remarks (even with -Werror). So we grep stderr for any message
4495 # that says an option was ignored or not supported.
4496 # When given -MP, icc 7.0 and 7.1 complain thusly:
4497 # icc: Command line warning: ignoring option '-M'; no argument required
4498 # The diagnosis changed in icc 8.0:
4499 # icc: Command line remark: option '-MP' not supported
4500 if (grep 'ignoring option' conftest.err ||
4501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4502 am_cv_CXX_dependencies_compiler_type=$depmode
4503 break
4506 done
4508 cd ..
4509 rm -rf conftest.dir
4510 else
4511 am_cv_CXX_dependencies_compiler_type=none
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4516 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4517 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4520 test "x$enable_dependency_tracking" != xno \
4521 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4522 am__fastdepCXX_TRUE=
4523 am__fastdepCXX_FALSE='#'
4524 else
4525 am__fastdepCXX_TRUE='#'
4526 am__fastdepCXX_FALSE=
4531 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
4532 # symbol interposition. We disable shared libraries for these.
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym(RTLD_NEXT,...) is available" >&5
4534 $as_echo_n "checking whether dlsym(RTLD_NEXT,...) is available... " >&6; }
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4539 #define _GNU_SOURCE
4540 #include <dlfcn.h>
4543 main ()
4545 void *foo = dlsym (RTLD_NEXT, "exit");
4547 return 0;
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 enable_shared=no
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if test "${ac_cv_path_GREP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -z "$GREP"; then
4567 ac_path_GREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in grep ggrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579 # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4581 *GNU*)
4582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4584 ac_count=0
4585 $as_echo_n 0123456789 >"conftest.in"
4586 while :
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'GREP' >> "conftest.nl"
4592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_GREP="$ac_path_GREP"
4598 ac_path_GREP_max=$ac_count
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4602 done
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4606 $ac_path_GREP_found && break 3
4607 done
4608 done
4609 done
4610 IFS=$as_save_IFS
4611 if test -z "$ac_cv_path_GREP"; then
4612 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4614 else
4615 ac_cv_path_GREP=$GREP
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621 GREP="$ac_cv_path_GREP"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if test "${ac_cv_path_EGREP+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630 then ac_cv_path_EGREP="$GREP -E"
4631 else
4632 if test -z "$EGREP"; then
4633 ac_path_EGREP_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in egrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645 # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4647 *GNU*)
4648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4650 ac_count=0
4651 $as_echo_n 0123456789 >"conftest.in"
4652 while :
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo 'EGREP' >> "conftest.nl"
4658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_EGREP="$ac_path_EGREP"
4664 ac_path_EGREP_max=$ac_count
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4668 done
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 esac
4672 $ac_path_EGREP_found && break 3
4673 done
4674 done
4675 done
4676 IFS=$as_save_IFS
4677 if test -z "$ac_cv_path_EGREP"; then
4678 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4680 else
4681 ac_cv_path_EGREP=$EGREP
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688 EGREP="$ac_cv_path_EGREP"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4692 $as_echo_n "checking for ANSI C header files... " >&6; }
4693 if test "${ac_cv_header_stdc+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <stdlib.h>
4699 #include <stdarg.h>
4700 #include <string.h>
4701 #include <float.h>
4704 main ()
4708 return 0;
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_header_stdc=yes
4713 else
4714 ac_cv_header_stdc=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 if test $ac_cv_header_stdc = yes; then
4719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #include <string.h>
4724 _ACEOF
4725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726 $EGREP "memchr" >/dev/null 2>&1; then :
4728 else
4729 ac_cv_header_stdc=no
4731 rm -f conftest*
4735 if test $ac_cv_header_stdc = yes; then
4736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739 #include <stdlib.h>
4741 _ACEOF
4742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743 $EGREP "free" >/dev/null 2>&1; then :
4745 else
4746 ac_cv_header_stdc=no
4748 rm -f conftest*
4752 if test $ac_cv_header_stdc = yes; then
4753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4754 if test "$cross_compiling" = yes; then :
4756 else
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <ctype.h>
4760 #include <stdlib.h>
4761 #if ((' ' & 0x0FF) == 0x020)
4762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4764 #else
4765 # define ISLOWER(c) \
4766 (('a' <= (c) && (c) <= 'i') \
4767 || ('j' <= (c) && (c) <= 'r') \
4768 || ('s' <= (c) && (c) <= 'z'))
4769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4770 #endif
4772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4774 main ()
4776 int i;
4777 for (i = 0; i < 256; i++)
4778 if (XOR (islower (i), ISLOWER (i))
4779 || toupper (i) != TOUPPER (i))
4780 return 2;
4781 return 0;
4783 _ACEOF
4784 if ac_fn_c_try_run "$LINENO"; then :
4786 else
4787 ac_cv_header_stdc=no
4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4790 conftest.$ac_objext conftest.beam conftest.$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4796 $as_echo "$ac_cv_header_stdc" >&6; }
4797 if test $ac_cv_header_stdc = yes; then
4799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4804 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4805 inttypes.h stdint.h unistd.h
4806 do :
4807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4810 eval as_val=\$$as_ac_Header
4811 if test "x$as_val" = x""yes; then :
4812 cat >>confdefs.h <<_ACEOF
4813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814 _ACEOF
4818 done
4821 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
4822 netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
4823 sys/mnttab.h sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
4824 do :
4825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4827 eval as_val=\$$as_ac_Header
4828 if test "x$as_val" = x""yes; then :
4829 cat >>confdefs.h <<_ACEOF
4830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4831 _ACEOF
4835 done
4838 for ac_func in backtrace backtrace_symbols gettimeofday signal
4839 do :
4840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4842 eval as_val=\$$as_ac_var
4843 if test "x$as_val" = x""yes; then :
4844 cat >>confdefs.h <<_ACEOF
4845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4846 _ACEOF
4849 done
4851 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4852 do :
4853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4854 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4855 eval as_val=\$$as_ac_var
4856 if test "x$as_val" = x""yes; then :
4857 cat >>confdefs.h <<_ACEOF
4858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4859 _ACEOF
4862 done
4864 for ac_func in setbuf setbuffer setlinebuf setvbuf
4865 do :
4866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4868 eval as_val=\$$as_ac_var
4869 if test "x$as_val" = x""yes; then :
4870 cat >>confdefs.h <<_ACEOF
4871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4872 _ACEOF
4875 done
4877 for ac_func in strnlen memrchr strncpy memmem sethostname
4878 do :
4879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4881 eval as_val=\$$as_ac_var
4882 if test "x$as_val" = x""yes; then :
4883 cat >>confdefs.h <<_ACEOF
4884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4885 _ACEOF
4888 done
4890 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4891 do :
4892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4894 eval as_val=\$$as_ac_var
4895 if test "x$as_val" = x""yes; then :
4896 cat >>confdefs.h <<_ACEOF
4897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4898 _ACEOF
4901 done
4903 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4904 do :
4905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4907 eval as_val=\$$as_ac_var
4908 if test "x$as_val" = x""yes; then :
4909 cat >>confdefs.h <<_ACEOF
4910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4911 _ACEOF
4914 done
4916 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4917 do :
4918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4920 eval as_val=\$$as_ac_var
4921 if test "x$as_val" = x""yes; then :
4922 cat >>confdefs.h <<_ACEOF
4923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4924 _ACEOF
4927 done
4929 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4930 do :
4931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4933 eval as_val=\$$as_ac_var
4934 if test "x$as_val" = x""yes; then :
4935 cat >>confdefs.h <<_ACEOF
4936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4937 _ACEOF
4940 done
4942 for ac_func in getprotoent getprotobyname getprotobynumber
4943 do :
4944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4946 eval as_val=\$$as_ac_var
4947 if test "x$as_val" = x""yes; then :
4948 cat >>confdefs.h <<_ACEOF
4949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4950 _ACEOF
4953 done
4955 for ac_func in getmntent setmntent addmntent
4956 do :
4957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4959 eval as_val=\$$as_ac_var
4960 if test "x$as_val" = x""yes; then :
4961 cat >>confdefs.h <<_ACEOF
4962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4963 _ACEOF
4966 done
4968 for ac_func in inet_ntoa mmap munmap
4969 do :
4970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4971 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4972 eval as_val=\$$as_ac_var
4973 if test "x$as_val" = x""yes; then :
4974 cat >>confdefs.h <<_ACEOF
4975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4976 _ACEOF
4979 done
4981 for ac_func in mmap64
4982 do :
4983 ac_fn_c_check_func "$LINENO" "mmap64" "ac_cv_func_mmap64"
4984 if test "x$ac_cv_func_mmap64" = x""yes; then :
4985 cat >>confdefs.h <<_ACEOF
4986 #define HAVE_MMAP64 1
4987 _ACEOF
4990 done
4992 for ac_func in __libc_freeres
4993 do :
4994 ac_fn_c_check_func "$LINENO" "__libc_freeres" "ac_cv_func___libc_freeres"
4995 if test "x$ac_cv_func___libc_freeres" = x""yes; then :
4996 cat >>confdefs.h <<_ACEOF
4997 #define HAVE___LIBC_FREERES 1
4998 _ACEOF
5001 done
5003 for ac_func in rawmemchr stpcpy mempcpy
5004 do :
5005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5007 eval as_val=\$$as_ac_var
5008 if test "x$as_val" = x""yes; then :
5009 cat >>confdefs.h <<_ACEOF
5010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5011 _ACEOF
5014 done
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <sys/types.h>
5020 #include <sys/ipc.h>
5021 #include <sys/sem.h>
5023 main ()
5025 union semun foo;
5027 return 0;
5029 _ACEOF
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 mf_have_semun=1
5032 else
5033 mf_have_semun=0
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 if test $mf_have_semun = 1
5037 then
5039 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
5045 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #define _POSIX_PII_SOCKET
5049 #include <sys/types.h>
5050 #include <sys/socket.h>
5052 main ()
5054 socklen_t x = 5;
5056 return 0;
5058 _ACEOF
5059 if ac_fn_c_try_compile "$LINENO"; then :
5061 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5064 $as_echo "yes" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 enable_dlopen=yes
5075 case `pwd` in
5076 *\ * | *\ *)
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5079 esac
5083 macro_version='2.2.7a'
5084 macro_revision='1.3134'
5098 ltmain="$ac_aux_dir/ltmain.sh"
5100 # Backslashify metacharacters that are still active within
5101 # double-quoted strings.
5102 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5104 # Same as above, but do not quote variable references.
5105 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5107 # Sed substitution to delay expansion of an escaped shell variable in a
5108 # double_quote_subst'ed string.
5109 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5111 # Sed substitution to delay expansion of an escaped single quote.
5112 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5114 # Sed substitution to avoid accidental globbing in evaled expressions
5115 no_glob_subst='s/\*/\\\*/g'
5117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5122 $as_echo_n "checking how to print strings... " >&6; }
5123 # Test print first, because it will be a builtin if present.
5124 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5126 ECHO='print -r --'
5127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5128 ECHO='printf %s\n'
5129 else
5130 # Use this function as a fallback that always works.
5131 func_fallback_echo ()
5133 eval 'cat <<_LTECHO_EOF
5135 _LTECHO_EOF'
5137 ECHO='func_fallback_echo'
5140 # func_echo_all arg...
5141 # Invoke $ECHO with all args, space-separated.
5142 func_echo_all ()
5144 $ECHO ""
5147 case "$ECHO" in
5148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5149 $as_echo "printf" >&6; } ;;
5150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5151 $as_echo "print -r" >&6; } ;;
5152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5153 $as_echo "cat" >&6; } ;;
5154 esac
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5171 if test "${ac_cv_path_SED+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5175 for ac_i in 1 2 3 4 5 6 7; do
5176 ac_script="$ac_script$as_nl$ac_script"
5177 done
5178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5179 { ac_script=; unset ac_script;}
5180 if test -z "$SED"; then
5181 ac_path_SED_found=false
5182 # Loop through the user's path and test for each of PROGNAME-LIST
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_prog in sed gsed; do
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5192 # Check for GNU ac_path_SED and select it if it is found.
5193 # Check for GNU $ac_path_SED
5194 case `"$ac_path_SED" --version 2>&1` in
5195 *GNU*)
5196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5198 ac_count=0
5199 $as_echo_n 0123456789 >"conftest.in"
5200 while :
5202 cat "conftest.in" "conftest.in" >"conftest.tmp"
5203 mv "conftest.tmp" "conftest.in"
5204 cp "conftest.in" "conftest.nl"
5205 $as_echo '' >> "conftest.nl"
5206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208 as_fn_arith $ac_count + 1 && ac_count=$as_val
5209 if test $ac_count -gt ${ac_path_SED_max-0}; then
5210 # Best one so far, save it but keep looking for a better one
5211 ac_cv_path_SED="$ac_path_SED"
5212 ac_path_SED_max=$ac_count
5214 # 10*(2^10) chars as input seems more than enough
5215 test $ac_count -gt 10 && break
5216 done
5217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 esac
5220 $ac_path_SED_found && break 3
5221 done
5222 done
5223 done
5224 IFS=$as_save_IFS
5225 if test -z "$ac_cv_path_SED"; then
5226 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5228 else
5229 ac_cv_path_SED=$SED
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5234 $as_echo "$ac_cv_path_SED" >&6; }
5235 SED="$ac_cv_path_SED"
5236 rm -f conftest.sed
5238 test -z "$SED" && SED=sed
5239 Xsed="$SED -e 1s/^X//"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5252 $as_echo_n "checking for fgrep... " >&6; }
5253 if test "${ac_cv_path_FGREP+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5257 then ac_cv_path_FGREP="$GREP -F"
5258 else
5259 if test -z "$FGREP"; then
5260 ac_path_FGREP_found=false
5261 # Loop through the user's path and test for each of PROGNAME-LIST
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_prog in fgrep; do
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5270 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5271 # Check for GNU ac_path_FGREP and select it if it is found.
5272 # Check for GNU $ac_path_FGREP
5273 case `"$ac_path_FGREP" --version 2>&1` in
5274 *GNU*)
5275 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5277 ac_count=0
5278 $as_echo_n 0123456789 >"conftest.in"
5279 while :
5281 cat "conftest.in" "conftest.in" >"conftest.tmp"
5282 mv "conftest.tmp" "conftest.in"
5283 cp "conftest.in" "conftest.nl"
5284 $as_echo 'FGREP' >> "conftest.nl"
5285 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287 as_fn_arith $ac_count + 1 && ac_count=$as_val
5288 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5289 # Best one so far, save it but keep looking for a better one
5290 ac_cv_path_FGREP="$ac_path_FGREP"
5291 ac_path_FGREP_max=$ac_count
5293 # 10*(2^10) chars as input seems more than enough
5294 test $ac_count -gt 10 && break
5295 done
5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297 esac
5299 $ac_path_FGREP_found && break 3
5300 done
5301 done
5302 done
5303 IFS=$as_save_IFS
5304 if test -z "$ac_cv_path_FGREP"; then
5305 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5307 else
5308 ac_cv_path_FGREP=$FGREP
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5314 $as_echo "$ac_cv_path_FGREP" >&6; }
5315 FGREP="$ac_cv_path_FGREP"
5318 test -z "$GREP" && GREP=grep
5338 # Check whether --with-gnu-ld was given.
5339 if test "${with_gnu_ld+set}" = set; then :
5340 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5341 else
5342 with_gnu_ld=no
5345 ac_prog=ld
5346 if test "$GCC" = yes; then
5347 # Check if gcc -print-prog-name=ld gives a path.
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5349 $as_echo_n "checking for ld used by $CC... " >&6; }
5350 case $host in
5351 *-*-mingw*)
5352 # gcc leaves a trailing carriage return which upsets mingw
5353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5356 esac
5357 case $ac_prog in
5358 # Accept absolute paths.
5359 [\\/]* | ?:[\\/]*)
5360 re_direlt='/[^/][^/]*/\.\./'
5361 # Canonicalize the pathname of ld
5362 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5363 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5364 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5365 done
5366 test -z "$LD" && LD="$ac_prog"
5369 # If it fails, then pretend we aren't using GCC.
5370 ac_prog=ld
5373 # If it is relative, then search for the first ld in PATH.
5374 with_gnu_ld=unknown
5376 esac
5377 elif test "$with_gnu_ld" = yes; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5379 $as_echo_n "checking for GNU ld... " >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5382 $as_echo_n "checking for non-GNU ld... " >&6; }
5384 if test "${lt_cv_path_LD+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -z "$LD"; then
5388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5389 for ac_dir in $PATH; do
5390 IFS="$lt_save_ifs"
5391 test -z "$ac_dir" && ac_dir=.
5392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5393 lt_cv_path_LD="$ac_dir/$ac_prog"
5394 # Check to see if the program is GNU ld. I'd rather use --version,
5395 # but apparently some variants of GNU ld only accept -v.
5396 # Break only if it was the GNU/non-GNU ld that we prefer.
5397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5398 *GNU* | *'with BFD'*)
5399 test "$with_gnu_ld" != no && break
5402 test "$with_gnu_ld" != yes && break
5404 esac
5406 done
5407 IFS="$lt_save_ifs"
5408 else
5409 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5413 LD="$lt_cv_path_LD"
5414 if test -n "$LD"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5416 $as_echo "$LD" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5421 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5423 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5424 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5428 case `$LD -v 2>&1 </dev/null` in
5429 *GNU* | *'with BFD'*)
5430 lt_cv_prog_gnu_ld=yes
5433 lt_cv_prog_gnu_ld=no
5435 esac
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5438 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5439 with_gnu_ld=$lt_cv_prog_gnu_ld
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5450 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5451 if test "${lt_cv_path_NM+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$NM"; then
5455 # Let the user override the test.
5456 lt_cv_path_NM="$NM"
5457 else
5458 lt_nm_to_check="${ac_tool_prefix}nm"
5459 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5460 lt_nm_to_check="$lt_nm_to_check nm"
5462 for lt_tmp_nm in $lt_nm_to_check; do
5463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5464 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5465 IFS="$lt_save_ifs"
5466 test -z "$ac_dir" && ac_dir=.
5467 tmp_nm="$ac_dir/$lt_tmp_nm"
5468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5469 # Check to see if the nm accepts a BSD-compat flag.
5470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5471 # nm: unknown option "B" ignored
5472 # Tru64's nm complains that /dev/null is an invalid object file
5473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5474 */dev/null* | *'Invalid file or object type'*)
5475 lt_cv_path_NM="$tmp_nm -B"
5476 break
5479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5480 */dev/null*)
5481 lt_cv_path_NM="$tmp_nm -p"
5482 break
5485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5486 continue # so that we can try to find one that supports BSD flags
5488 esac
5490 esac
5492 done
5493 IFS="$lt_save_ifs"
5494 done
5495 : ${lt_cv_path_NM=no}
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5499 $as_echo "$lt_cv_path_NM" >&6; }
5500 if test "$lt_cv_path_NM" != "no"; then
5501 NM="$lt_cv_path_NM"
5502 else
5503 # Didn't find any BSD compatible name lister, look for dumpbin.
5504 if test -n "$DUMPBIN"; then :
5505 # Let the user override the test.
5506 else
5507 if test -n "$ac_tool_prefix"; then
5508 for ac_prog in dumpbin "link -dump"
5510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -n "$DUMPBIN"; then
5518 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5531 done
5532 done
5533 IFS=$as_save_IFS
5537 DUMPBIN=$ac_cv_prog_DUMPBIN
5538 if test -n "$DUMPBIN"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5540 $as_echo "$DUMPBIN" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5547 test -n "$DUMPBIN" && break
5548 done
5550 if test -z "$DUMPBIN"; then
5551 ac_ct_DUMPBIN=$DUMPBIN
5552 for ac_prog in dumpbin "link -dump"
5554 # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$ac_ct_DUMPBIN"; then
5562 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5575 done
5576 done
5577 IFS=$as_save_IFS
5581 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5582 if test -n "$ac_ct_DUMPBIN"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5584 $as_echo "$ac_ct_DUMPBIN" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5591 test -n "$ac_ct_DUMPBIN" && break
5592 done
5594 if test "x$ac_ct_DUMPBIN" = x; then
5595 DUMPBIN=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598 yes:)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5602 esac
5603 DUMPBIN=$ac_ct_DUMPBIN
5607 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5608 *COFF*)
5609 DUMPBIN="$DUMPBIN -symbols"
5612 DUMPBIN=:
5614 esac
5617 if test "$DUMPBIN" != ":"; then
5618 NM="$DUMPBIN"
5621 test -z "$NM" && NM=nm
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5629 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5630 if test "${lt_cv_nm_interface+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 lt_cv_nm_interface="BSD nm"
5634 echo "int some_variable = 0;" > conftest.$ac_ext
5635 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5636 (eval "$ac_compile" 2>conftest.err)
5637 cat conftest.err >&5
5638 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5639 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5640 cat conftest.err >&5
5641 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5642 cat conftest.out >&5
5643 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5644 lt_cv_nm_interface="MS dumpbin"
5646 rm -f conftest*
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5649 $as_echo "$lt_cv_nm_interface" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5652 $as_echo_n "checking whether ln -s works... " >&6; }
5653 LN_S=$as_ln_s
5654 if test "$LN_S" = "ln -s"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656 $as_echo "yes" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5659 $as_echo "no, using $LN_S" >&6; }
5662 # find the maximum length of command line arguments
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5664 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5665 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5669 teststring="ABCD"
5671 case $build_os in
5672 msdosdjgpp*)
5673 # On DJGPP, this test can blow up pretty badly due to problems in libc
5674 # (any single argument exceeding 2000 bytes causes a buffer overrun
5675 # during glob expansion). Even if it were fixed, the result of this
5676 # check would be larger than it should be.
5677 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5680 gnu*)
5681 # Under GNU Hurd, this test is not required because there is
5682 # no limit to the length of command line arguments.
5683 # Libtool will interpret -1 as no limit whatsoever
5684 lt_cv_sys_max_cmd_len=-1;
5687 cygwin* | mingw* | cegcc*)
5688 # On Win9x/ME, this test blows up -- it succeeds, but takes
5689 # about 5 minutes as the teststring grows exponentially.
5690 # Worse, since 9x/ME are not pre-emptively multitasking,
5691 # you end up with a "frozen" computer, even though with patience
5692 # the test eventually succeeds (with a max line length of 256k).
5693 # Instead, let's just punt: use the minimum linelength reported by
5694 # all of the supported platforms: 8192 (on NT/2K/XP).
5695 lt_cv_sys_max_cmd_len=8192;
5698 mint*)
5699 # On MiNT this can take a long time and run out of memory.
5700 lt_cv_sys_max_cmd_len=8192;
5703 amigaos*)
5704 # On AmigaOS with pdksh, this test takes hours, literally.
5705 # So we just punt and use a minimum line length of 8192.
5706 lt_cv_sys_max_cmd_len=8192;
5709 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5710 # This has been around since 386BSD, at least. Likely further.
5711 if test -x /sbin/sysctl; then
5712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5713 elif test -x /usr/sbin/sysctl; then
5714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5715 else
5716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5718 # And add a safety zone
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5723 interix*)
5724 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5725 lt_cv_sys_max_cmd_len=196608
5728 osf*)
5729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5731 # nice to cause kernel panics so lets avoid the loop below.
5732 # First set a reasonable default.
5733 lt_cv_sys_max_cmd_len=16384
5735 if test -x /sbin/sysconfig; then
5736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5738 esac
5741 sco3.2v5*)
5742 lt_cv_sys_max_cmd_len=102400
5744 sysv5* | sco5v6* | sysv4.2uw2*)
5745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5746 if test -n "$kargmax"; then
5747 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5748 else
5749 lt_cv_sys_max_cmd_len=32768
5753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5754 if test -n "$lt_cv_sys_max_cmd_len"; then
5755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5757 else
5758 # Make teststring a little bigger before we do anything with it.
5759 # a 1K string should be a reasonable start.
5760 for i in 1 2 3 4 5 6 7 8 ; do
5761 teststring=$teststring$teststring
5762 done
5763 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5764 # If test is not a shell built-in, we'll probably end up computing a
5765 # maximum length that is only half of the actual maximum length, but
5766 # we can't tell.
5767 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5768 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5769 test $i != 17 # 1/2 MB should be enough
5771 i=`expr $i + 1`
5772 teststring=$teststring$teststring
5773 done
5774 # Only check the string length outside the loop.
5775 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5776 teststring=
5777 # Add a significant safety factor because C++ compilers can tack on
5778 # massive amounts of additional arguments before passing them to the
5779 # linker. It appears as though 1/2 is a usable value.
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5783 esac
5787 if test -n $lt_cv_sys_max_cmd_len ; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5789 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5792 $as_echo "none" >&6; }
5794 max_cmd_len=$lt_cv_sys_max_cmd_len
5801 : ${CP="cp -f"}
5802 : ${MV="mv -f"}
5803 : ${RM="rm -f"}
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5806 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5807 # Try some XSI features
5808 xsi_shell=no
5809 ( _lt_dummy="a/b/c"
5810 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5811 = c,a/b,, \
5812 && eval 'test $(( 1 + 1 )) -eq 2 \
5813 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5814 && xsi_shell=yes
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5816 $as_echo "$xsi_shell" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5820 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5821 lt_shell_append=no
5822 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5823 >/dev/null 2>&1 \
5824 && lt_shell_append=yes
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5826 $as_echo "$lt_shell_append" >&6; }
5829 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5830 lt_unset=unset
5831 else
5832 lt_unset=false
5839 # test EBCDIC or ASCII
5840 case `echo X|tr X '\101'` in
5841 A) # ASCII based system
5842 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5843 lt_SP2NL='tr \040 \012'
5844 lt_NL2SP='tr \015\012 \040\040'
5846 *) # EBCDIC based system
5847 lt_SP2NL='tr \100 \n'
5848 lt_NL2SP='tr \r\n \100\100'
5850 esac
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5861 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5862 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 lt_cv_ld_reload_flag='-r'
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5868 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5869 reload_flag=$lt_cv_ld_reload_flag
5870 case $reload_flag in
5871 "" | " "*) ;;
5872 *) reload_flag=" $reload_flag" ;;
5873 esac
5874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5875 case $host_os in
5876 darwin*)
5877 if test "$GCC" = yes; then
5878 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5879 else
5880 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5883 esac
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$OBJDUMP"; then
5902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 OBJDUMP=$ac_cv_prog_OBJDUMP
5922 if test -n "$OBJDUMP"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5924 $as_echo "$OBJDUMP" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5932 if test -z "$ac_cv_prog_OBJDUMP"; then
5933 ac_ct_OBJDUMP=$OBJDUMP
5934 # Extract the first word of "objdump", so it can be a program name with args.
5935 set dummy objdump; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_OBJDUMP"; then
5942 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5962 if test -n "$ac_ct_OBJDUMP"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5964 $as_echo "$ac_ct_OBJDUMP" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5970 if test "x$ac_ct_OBJDUMP" = x; then
5971 OBJDUMP="false"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979 OBJDUMP=$ac_ct_OBJDUMP
5981 else
5982 OBJDUMP="$ac_cv_prog_OBJDUMP"
5985 test -z "$OBJDUMP" && OBJDUMP=objdump
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5996 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5997 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 lt_cv_file_magic_cmd='$MAGIC_CMD'
6001 lt_cv_file_magic_test_file=
6002 lt_cv_deplibs_check_method='unknown'
6003 # Need to set the preceding variable on all platforms that support
6004 # interlibrary dependencies.
6005 # 'none' -- dependencies not supported.
6006 # `unknown' -- same as none, but documents that we really don't know.
6007 # 'pass_all' -- all dependencies passed with no checks.
6008 # 'test_compile' -- check by making test program.
6009 # 'file_magic [[regex]]' -- check by looking for files in library path
6010 # which responds to the $file_magic_cmd with a given extended regex.
6011 # If you have `file' or equivalent on your system and you're not sure
6012 # whether `pass_all' will *always* work, you probably want this one.
6014 case $host_os in
6015 aix[4-9]*)
6016 lt_cv_deplibs_check_method=pass_all
6019 beos*)
6020 lt_cv_deplibs_check_method=pass_all
6023 bsdi[45]*)
6024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6025 lt_cv_file_magic_cmd='/usr/bin/file -L'
6026 lt_cv_file_magic_test_file=/shlib/libc.so
6029 cygwin*)
6030 # func_win32_libid is a shell function defined in ltmain.sh
6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032 lt_cv_file_magic_cmd='func_win32_libid'
6035 mingw* | pw32*)
6036 # Base MSYS/MinGW do not provide the 'file' command needed by
6037 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6038 # unless we find 'file', for example because we are cross-compiling.
6039 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6040 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6041 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6042 lt_cv_file_magic_cmd='func_win32_libid'
6043 else
6044 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6045 lt_cv_file_magic_cmd='$OBJDUMP -f'
6049 cegcc*)
6050 # use the weaker test based on 'objdump'. See mingw*.
6051 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6052 lt_cv_file_magic_cmd='$OBJDUMP -f'
6055 darwin* | rhapsody*)
6056 lt_cv_deplibs_check_method=pass_all
6059 freebsd* | dragonfly*)
6060 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6061 case $host_cpu in
6062 i*86 )
6063 # Not sure whether the presence of OpenBSD here was a mistake.
6064 # Let's accept both of them until this is cleared up.
6065 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6066 lt_cv_file_magic_cmd=/usr/bin/file
6067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6069 esac
6070 else
6071 lt_cv_deplibs_check_method=pass_all
6075 gnu*)
6076 lt_cv_deplibs_check_method=pass_all
6079 haiku*)
6080 lt_cv_deplibs_check_method=pass_all
6083 hpux10.20* | hpux11*)
6084 lt_cv_file_magic_cmd=/usr/bin/file
6085 case $host_cpu in
6086 ia64*)
6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6090 hppa*64*)
6091 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]'
6092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6096 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6098 esac
6101 interix[3-9]*)
6102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6106 irix5* | irix6* | nonstopux*)
6107 case $LD in
6108 *-32|*"-32 ") libmagic=32-bit;;
6109 *-n32|*"-n32 ") libmagic=N32;;
6110 *-64|*"-64 ") libmagic=64-bit;;
6111 *) libmagic=never-match;;
6112 esac
6113 lt_cv_deplibs_check_method=pass_all
6116 # This must be Linux ELF.
6117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6118 lt_cv_deplibs_check_method=pass_all
6121 netbsd*)
6122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6124 else
6125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6129 newos6*)
6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6131 lt_cv_file_magic_cmd=/usr/bin/file
6132 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6135 *nto* | *qnx*)
6136 lt_cv_deplibs_check_method=pass_all
6139 openbsd*)
6140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6142 else
6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6147 osf3* | osf4* | osf5*)
6148 lt_cv_deplibs_check_method=pass_all
6151 rdos*)
6152 lt_cv_deplibs_check_method=pass_all
6155 solaris*)
6156 lt_cv_deplibs_check_method=pass_all
6159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6160 lt_cv_deplibs_check_method=pass_all
6163 sysv4 | sysv4.3*)
6164 case $host_vendor in
6165 motorola)
6166 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]'
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6169 ncr)
6170 lt_cv_deplibs_check_method=pass_all
6172 sequent)
6173 lt_cv_file_magic_cmd='/bin/file'
6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6176 sni)
6177 lt_cv_file_magic_cmd='/bin/file'
6178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6179 lt_cv_file_magic_test_file=/lib/libc.so
6181 siemens)
6182 lt_cv_deplibs_check_method=pass_all
6185 lt_cv_deplibs_check_method=pass_all
6187 esac
6190 tpf*)
6191 lt_cv_deplibs_check_method=pass_all
6193 esac
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6197 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6198 file_magic_cmd=$lt_cv_file_magic_cmd
6199 deplibs_check_method=$lt_cv_deplibs_check_method
6200 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}ar; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if test "${ac_cv_prog_AR+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 if test -n "$AR"; then
6222 ac_cv_prog_AR="$AR" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_AR="${ac_tool_prefix}ar"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6235 done
6236 done
6237 IFS=$as_save_IFS
6241 AR=$ac_cv_prog_AR
6242 if test -n "$AR"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6244 $as_echo "$AR" >&6; }
6245 else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6252 if test -z "$ac_cv_prog_AR"; then
6253 ac_ct_AR=$AR
6254 # Extract the first word of "ar", so it can be a program name with args.
6255 set dummy ar; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$ac_ct_AR"; then
6262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_ac_ct_AR="ar"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282 if test -n "$ac_ct_AR"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6284 $as_echo "$ac_ct_AR" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6290 if test "x$ac_ct_AR" = x; then
6291 AR="false"
6292 else
6293 case $cross_compiling:$ac_tool_warned in
6294 yes:)
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299 AR=$ac_ct_AR
6301 else
6302 AR="$ac_cv_prog_AR"
6305 test -z "$AR" && AR=ar
6306 test -z "$AR_FLAGS" && AR_FLAGS=cru
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}strip; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_STRIP+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$STRIP"; then
6327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6340 done
6341 done
6342 IFS=$as_save_IFS
6346 STRIP=$ac_cv_prog_STRIP
6347 if test -n "$STRIP"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6349 $as_echo "$STRIP" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6357 if test -z "$ac_cv_prog_STRIP"; then
6358 ac_ct_STRIP=$STRIP
6359 # Extract the first word of "strip", so it can be a program name with args.
6360 set dummy strip; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_STRIP"; then
6367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_ac_ct_STRIP="strip"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6380 done
6381 done
6382 IFS=$as_save_IFS
6386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6387 if test -n "$ac_ct_STRIP"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6389 $as_echo "$ac_ct_STRIP" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6395 if test "x$ac_ct_STRIP" = x; then
6396 STRIP=":"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404 STRIP=$ac_ct_STRIP
6406 else
6407 STRIP="$ac_cv_prog_STRIP"
6410 test -z "$STRIP" && STRIP=:
6417 if test -n "$ac_tool_prefix"; then
6418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test -n "$RANLIB"; then
6426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6441 IFS=$as_save_IFS
6445 RANLIB=$ac_cv_prog_RANLIB
6446 if test -n "$RANLIB"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6448 $as_echo "$RANLIB" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6456 if test -z "$ac_cv_prog_RANLIB"; then
6457 ac_ct_RANLIB=$RANLIB
6458 # Extract the first word of "ranlib", so it can be a program name with args.
6459 set dummy ranlib; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 if test -n "$ac_ct_RANLIB"; then
6466 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_prog_ac_ct_RANLIB="ranlib"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6479 done
6480 done
6481 IFS=$as_save_IFS
6485 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6486 if test -n "$ac_ct_RANLIB"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6488 $as_echo "$ac_ct_RANLIB" >&6; }
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6494 if test "x$ac_ct_RANLIB" = x; then
6495 RANLIB=":"
6496 else
6497 case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503 RANLIB=$ac_ct_RANLIB
6505 else
6506 RANLIB="$ac_cv_prog_RANLIB"
6509 test -z "$RANLIB" && RANLIB=:
6516 # Determine commands to create old-style static archives.
6517 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6518 old_postinstall_cmds='chmod 644 $oldlib'
6519 old_postuninstall_cmds=
6521 if test -n "$RANLIB"; then
6522 case $host_os in
6523 openbsd*)
6524 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6527 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6529 esac
6530 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6533 case $host_os in
6534 darwin*)
6535 lock_old_archive_extraction=yes ;;
6537 lock_old_archive_extraction=no ;;
6538 esac
6578 # If no C compiler was specified, use CC.
6579 LTCC=${LTCC-"$CC"}
6581 # If no C compiler flags were specified, use CFLAGS.
6582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6584 # Allow CC to be a program name with arguments.
6585 compiler=$CC
6588 # Check for command to grab the raw symbol name followed by C symbol from nm.
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6590 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6591 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6595 # These are sane defaults that work on at least a few old systems.
6596 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6598 # Character class describing NM global symbol codes.
6599 symcode='[BCDEGRST]'
6601 # Regexp to match symbols that can be accessed directly from C.
6602 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6604 # Define system-specific variables.
6605 case $host_os in
6606 aix*)
6607 symcode='[BCDT]'
6609 cygwin* | mingw* | pw32* | cegcc*)
6610 symcode='[ABCDGISTW]'
6612 hpux*)
6613 if test "$host_cpu" = ia64; then
6614 symcode='[ABCDEGRST]'
6617 irix* | nonstopux*)
6618 symcode='[BCDEGRST]'
6620 osf*)
6621 symcode='[BCDEGQRST]'
6623 solaris*)
6624 symcode='[BDRT]'
6626 sco3.2v5*)
6627 symcode='[DT]'
6629 sysv4.2uw2*)
6630 symcode='[DT]'
6632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6633 symcode='[ABDT]'
6635 sysv4)
6636 symcode='[DFNSTU]'
6638 esac
6640 # If we're using GNU nm, then use its standard symbol codes.
6641 case `$NM -V 2>&1` in
6642 *GNU* | *'with BFD'*)
6643 symcode='[ABCDGIRSTW]' ;;
6644 esac
6646 # Transform an extracted symbol line into a proper C declaration.
6647 # Some systems (esp. on ia64) link data and code symbols differently,
6648 # so use this general approach.
6649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6651 # Transform an extracted symbol line into symbol name and symbol address
6652 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6653 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'"
6655 # Handle CRLF in mingw tool chain
6656 opt_cr=
6657 case $build_os in
6658 mingw*)
6659 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6661 esac
6663 # Try without a prefix underscore, then with it.
6664 for ac_symprfx in "" "_"; do
6666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6667 symxfrm="\\1 $ac_symprfx\\2 \\2"
6669 # Write the raw and C identifiers.
6670 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6671 # Fake it for dumpbin and say T for any non-static function
6672 # and D for any global variable.
6673 # Also find C++ and __fastcall symbols from MSVC++,
6674 # which start with @ or ?.
6675 lt_cv_sys_global_symbol_pipe="$AWK '"\
6676 " {last_section=section; section=\$ 3};"\
6677 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6678 " \$ 0!~/External *\|/{next};"\
6679 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6680 " {if(hide[section]) next};"\
6681 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6682 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6683 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6684 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6685 " ' prfx=^$ac_symprfx"
6686 else
6687 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6690 # Check to see that the pipe works correctly.
6691 pipe_works=no
6693 rm -f conftest*
6694 cat > conftest.$ac_ext <<_LT_EOF
6695 #ifdef __cplusplus
6696 extern "C" {
6697 #endif
6698 char nm_test_var;
6699 void nm_test_func(void);
6700 void nm_test_func(void){}
6701 #ifdef __cplusplus
6703 #endif
6704 int main(){nm_test_var='a';nm_test_func();return(0);}
6705 _LT_EOF
6707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6711 test $ac_status = 0; }; then
6712 # Now try to grab the symbols.
6713 nlist=conftest.nm
6714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6715 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6716 ac_status=$?
6717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718 test $ac_status = 0; } && test -s "$nlist"; then
6719 # Try sorting and uniquifying the output.
6720 if sort "$nlist" | uniq > "$nlist"T; then
6721 mv -f "$nlist"T "$nlist"
6722 else
6723 rm -f "$nlist"T
6726 # Make sure that we snagged all the symbols we need.
6727 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6728 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6729 cat <<_LT_EOF > conftest.$ac_ext
6730 #ifdef __cplusplus
6731 extern "C" {
6732 #endif
6734 _LT_EOF
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6738 cat <<_LT_EOF >> conftest.$ac_ext
6740 /* The mapping between symbol names and symbols. */
6741 const struct {
6742 const char *name;
6743 void *address;
6745 lt__PROGRAM__LTX_preloaded_symbols[] =
6747 { "@PROGRAM@", (void *) 0 },
6748 _LT_EOF
6749 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6750 cat <<\_LT_EOF >> conftest.$ac_ext
6751 {0, (void *) 0}
6754 /* This works around a problem in FreeBSD linker */
6755 #ifdef FREEBSD_WORKAROUND
6756 static const void *lt_preloaded_setup() {
6757 return lt__PROGRAM__LTX_preloaded_symbols;
6759 #endif
6761 #ifdef __cplusplus
6763 #endif
6764 _LT_EOF
6765 # Now try linking the two files.
6766 mv conftest.$ac_objext conftstm.$ac_objext
6767 lt_save_LIBS="$LIBS"
6768 lt_save_CFLAGS="$CFLAGS"
6769 LIBS="conftstm.$ac_objext"
6770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6772 (eval $ac_link) 2>&5
6773 ac_status=$?
6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6776 pipe_works=yes
6778 LIBS="$lt_save_LIBS"
6779 CFLAGS="$lt_save_CFLAGS"
6780 else
6781 echo "cannot find nm_test_func in $nlist" >&5
6783 else
6784 echo "cannot find nm_test_var in $nlist" >&5
6786 else
6787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6789 else
6790 echo "$progname: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 rm -rf conftest* conftst*
6795 # Do not use the global_symbol_pipe unless it works.
6796 if test "$pipe_works" = yes; then
6797 break
6798 else
6799 lt_cv_sys_global_symbol_pipe=
6801 done
6805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6806 lt_cv_sys_global_symbol_to_cdecl=
6808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6810 $as_echo "failed" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6813 $as_echo "ok" >&6; }
6837 # Check whether --enable-libtool-lock was given.
6838 if test "${enable_libtool_lock+set}" = set; then :
6839 enableval=$enable_libtool_lock;
6842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6844 # Some flags need to be propagated to the compiler or linker for good
6845 # libtool support.
6846 case $host in
6847 ia64-*-hpux*)
6848 # Find out which ABI we are using.
6849 echo 'int i;' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 case `/usr/bin/file conftest.$ac_objext` in
6856 *ELF-32*)
6857 HPUX_IA64_MODE="32"
6859 *ELF-64*)
6860 HPUX_IA64_MODE="64"
6862 esac
6864 rm -rf conftest*
6866 *-*-irix6*)
6867 # Find out which ABI we are using.
6868 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870 (eval $ac_compile) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }; then
6874 if test "$lt_cv_prog_gnu_ld" = yes; then
6875 case `/usr/bin/file conftest.$ac_objext` in
6876 *32-bit*)
6877 LD="${LD-ld} -melf32bsmip"
6879 *N32*)
6880 LD="${LD-ld} -melf32bmipn32"
6882 *64-bit*)
6883 LD="${LD-ld} -melf64bmip"
6885 esac
6886 else
6887 case `/usr/bin/file conftest.$ac_objext` in
6888 *32-bit*)
6889 LD="${LD-ld} -32"
6891 *N32*)
6892 LD="${LD-ld} -n32"
6894 *64-bit*)
6895 LD="${LD-ld} -64"
6897 esac
6900 rm -rf conftest*
6903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6905 # Find out which ABI we are using.
6906 echo 'int i;' > conftest.$ac_ext
6907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6908 (eval $ac_compile) 2>&5
6909 ac_status=$?
6910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6911 test $ac_status = 0; }; then
6912 case `/usr/bin/file conftest.o` in
6913 *32-bit*)
6914 case $host in
6915 x86_64-*kfreebsd*-gnu)
6916 LD="${LD-ld} -m elf_i386_fbsd"
6918 x86_64-*linux*)
6919 LD="${LD-ld} -m elf_i386"
6921 ppc64-*linux*|powerpc64-*linux*)
6922 LD="${LD-ld} -m elf32ppclinux"
6924 s390x-*linux*)
6925 LD="${LD-ld} -m elf_s390"
6927 sparc64-*linux*)
6928 LD="${LD-ld} -m elf32_sparc"
6930 esac
6932 *64-bit*)
6933 case $host in
6934 x86_64-*kfreebsd*-gnu)
6935 LD="${LD-ld} -m elf_x86_64_fbsd"
6937 x86_64-*linux*)
6938 LD="${LD-ld} -m elf_x86_64"
6940 ppc*-*linux*|powerpc*-*linux*)
6941 LD="${LD-ld} -m elf64ppc"
6943 s390*-*linux*|s390*-*tpf*)
6944 LD="${LD-ld} -m elf64_s390"
6946 sparc*-*linux*)
6947 LD="${LD-ld} -m elf64_sparc"
6949 esac
6951 esac
6953 rm -rf conftest*
6956 *-*-sco3.2v5*)
6957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6958 SAVE_CFLAGS="$CFLAGS"
6959 CFLAGS="$CFLAGS -belf"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6962 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 ac_ext=c
6966 ac_cpp='$CPP $CPPFLAGS'
6967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6975 main ()
6979 return 0;
6981 _ACEOF
6982 if ac_fn_c_try_link "$LINENO"; then :
6983 lt_cv_cc_needs_belf=yes
6984 else
6985 lt_cv_cc_needs_belf=no
6987 rm -f core conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6989 ac_ext=c
6990 ac_cpp='$CPP $CPPFLAGS'
6991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6998 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7000 CFLAGS="$SAVE_CFLAGS"
7003 sparc*-*solaris*)
7004 # Find out which ABI we are using.
7005 echo 'int i;' > conftest.$ac_ext
7006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7007 (eval $ac_compile) 2>&5
7008 ac_status=$?
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }; then
7011 case `/usr/bin/file conftest.o` in
7012 *64-bit*)
7013 case $lt_cv_prog_gnu_ld in
7014 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7017 LD="${LD-ld} -64"
7020 esac
7022 esac
7024 rm -rf conftest*
7026 esac
7028 need_locks="$enable_libtool_lock"
7031 case $host_os in
7032 rhapsody* | darwin*)
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$DSYMUTIL"; then
7042 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7055 done
7056 done
7057 IFS=$as_save_IFS
7061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7062 if test -n "$DSYMUTIL"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7064 $as_echo "$DSYMUTIL" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7072 if test -z "$ac_cv_prog_DSYMUTIL"; then
7073 ac_ct_DSYMUTIL=$DSYMUTIL
7074 # Extract the first word of "dsymutil", so it can be a program name with args.
7075 set dummy dsymutil; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 if test -n "$ac_ct_DSYMUTIL"; then
7082 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7095 done
7096 done
7097 IFS=$as_save_IFS
7101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7102 if test -n "$ac_ct_DSYMUTIL"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7110 if test "x$ac_ct_DSYMUTIL" = x; then
7111 DSYMUTIL=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned=yes ;;
7118 esac
7119 DSYMUTIL=$ac_ct_DSYMUTIL
7121 else
7122 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$NMEDIT"; then
7134 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7147 done
7148 done
7149 IFS=$as_save_IFS
7153 NMEDIT=$ac_cv_prog_NMEDIT
7154 if test -n "$NMEDIT"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7156 $as_echo "$NMEDIT" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7164 if test -z "$ac_cv_prog_NMEDIT"; then
7165 ac_ct_NMEDIT=$NMEDIT
7166 # Extract the first word of "nmedit", so it can be a program name with args.
7167 set dummy nmedit; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_NMEDIT"; then
7174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7189 IFS=$as_save_IFS
7193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7194 if test -n "$ac_ct_NMEDIT"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7196 $as_echo "$ac_ct_NMEDIT" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 if test "x$ac_ct_NMEDIT" = x; then
7203 NMEDIT=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 NMEDIT=$ac_ct_NMEDIT
7213 else
7214 NMEDIT="$ac_cv_prog_NMEDIT"
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_LIPO+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$LIPO"; then
7226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7239 done
7240 done
7241 IFS=$as_save_IFS
7245 LIPO=$ac_cv_prog_LIPO
7246 if test -n "$LIPO"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7248 $as_echo "$LIPO" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7256 if test -z "$ac_cv_prog_LIPO"; then
7257 ac_ct_LIPO=$LIPO
7258 # Extract the first word of "lipo", so it can be a program name with args.
7259 set dummy lipo; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$ac_ct_LIPO"; then
7266 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_ac_ct_LIPO="lipo"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7279 done
7280 done
7281 IFS=$as_save_IFS
7285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7286 if test -n "$ac_ct_LIPO"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7288 $as_echo "$ac_ct_LIPO" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7294 if test "x$ac_ct_LIPO" = x; then
7295 LIPO=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 LIPO=$ac_ct_LIPO
7305 else
7306 LIPO="$ac_cv_prog_LIPO"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}otool; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$OTOOL"; then
7318 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7331 done
7332 done
7333 IFS=$as_save_IFS
7337 OTOOL=$ac_cv_prog_OTOOL
7338 if test -n "$OTOOL"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7340 $as_echo "$OTOOL" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test -z "$ac_cv_prog_OTOOL"; then
7349 ac_ct_OTOOL=$OTOOL
7350 # Extract the first word of "otool", so it can be a program name with args.
7351 set dummy otool; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$ac_ct_OTOOL"; then
7358 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_ac_ct_OTOOL="otool"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7371 done
7372 done
7373 IFS=$as_save_IFS
7377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7378 if test -n "$ac_ct_OTOOL"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7380 $as_echo "$ac_ct_OTOOL" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 if test "x$ac_ct_OTOOL" = x; then
7387 OTOOL=":"
7388 else
7389 case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395 OTOOL=$ac_ct_OTOOL
7397 else
7398 OTOOL="$ac_cv_prog_OTOOL"
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$OTOOL64"; then
7410 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7425 IFS=$as_save_IFS
7429 OTOOL64=$ac_cv_prog_OTOOL64
7430 if test -n "$OTOOL64"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7432 $as_echo "$OTOOL64" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_OTOOL64"; then
7441 ac_ct_OTOOL64=$OTOOL64
7442 # Extract the first word of "otool64", so it can be a program name with args.
7443 set dummy otool64; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_OTOOL64"; then
7450 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_OTOOL64="otool64"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7470 if test -n "$ac_ct_OTOOL64"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7472 $as_echo "$ac_ct_OTOOL64" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_OTOOL64" = x; then
7479 OTOOL64=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 OTOOL64=$ac_ct_OTOOL64
7489 else
7490 OTOOL64="$ac_cv_prog_OTOOL64"
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7520 $as_echo_n "checking for -single_module linker flag... " >&6; }
7521 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 lt_cv_apple_cc_single_mod=no
7525 if test -z "${LT_MULTI_MODULE}"; then
7526 # By default we will add the -single_module flag. You can override
7527 # by either setting the environment variable LT_MULTI_MODULE
7528 # non-empty at configure time, or by adding -multi_module to the
7529 # link flags.
7530 rm -rf libconftest.dylib*
7531 echo "int foo(void){return 1;}" > conftest.c
7532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7533 -dynamiclib -Wl,-single_module conftest.c" >&5
7534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7536 _lt_result=$?
7537 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7538 lt_cv_apple_cc_single_mod=yes
7539 else
7540 cat conftest.err >&5
7542 rm -rf libconftest.dylib*
7543 rm -f conftest.*
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7550 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 lt_cv_ld_exported_symbols_list=no
7554 save_LDFLAGS=$LDFLAGS
7555 echo "_main" > conftest.sym
7556 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7561 main ()
7565 return 0;
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 lt_cv_ld_exported_symbols_list=yes
7570 else
7571 lt_cv_ld_exported_symbols_list=no
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LDFLAGS="$save_LDFLAGS"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7581 $as_echo_n "checking for -force_load linker flag... " >&6; }
7582 if test "${lt_cv_ld_force_load+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 lt_cv_ld_force_load=no
7586 cat > conftest.c << _LT_EOF
7587 int forced_loaded() { return 2;}
7588 _LT_EOF
7589 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7590 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7591 echo "$AR cru libconftest.a conftest.o" >&5
7592 $AR cru libconftest.a conftest.o 2>&5
7593 cat > conftest.c << _LT_EOF
7594 int main() { return 0;}
7595 _LT_EOF
7596 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7598 _lt_result=$?
7599 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7600 lt_cv_ld_force_load=yes
7601 else
7602 cat conftest.err >&5
7604 rm -f conftest.err libconftest.a conftest conftest.c
7605 rm -rf conftest.dSYM
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7609 $as_echo "$lt_cv_ld_force_load" >&6; }
7610 case $host_os in
7611 rhapsody* | darwin1.[012])
7612 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7613 darwin1.*)
7614 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7615 darwin*) # darwin 5.x on
7616 # if running on 10.5 or later, the deployment target defaults
7617 # to the OS version, if on x86, and 10.4, the deployment
7618 # target defaults to 10.4. Don't you love it?
7619 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7620 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7622 10.[012]*)
7623 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7624 10.*)
7625 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7626 esac
7628 esac
7629 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7630 _lt_dar_single_mod='$single_module'
7632 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7633 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7634 else
7635 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7637 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7638 _lt_dsymutil='~$DSYMUTIL $lib || :'
7639 else
7640 _lt_dsymutil=
7643 esac
7645 for ac_header in dlfcn.h
7646 do :
7647 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7649 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7650 cat >>confdefs.h <<_ACEOF
7651 #define HAVE_DLFCN_H 1
7652 _ACEOF
7656 done
7663 # Set options
7668 enable_win32_dll=no
7671 # Check whether --enable-shared was given.
7672 if test "${enable_shared+set}" = set; then :
7673 enableval=$enable_shared; p=${PACKAGE-default}
7674 case $enableval in
7675 yes) enable_shared=yes ;;
7676 no) enable_shared=no ;;
7678 enable_shared=no
7679 # Look at the argument we got. We use all the common list separators.
7680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681 for pkg in $enableval; do
7682 IFS="$lt_save_ifs"
7683 if test "X$pkg" = "X$p"; then
7684 enable_shared=yes
7686 done
7687 IFS="$lt_save_ifs"
7689 esac
7690 else
7691 enable_shared=yes
7702 # Check whether --enable-static was given.
7703 if test "${enable_static+set}" = set; then :
7704 enableval=$enable_static; p=${PACKAGE-default}
7705 case $enableval in
7706 yes) enable_static=yes ;;
7707 no) enable_static=no ;;
7709 enable_static=no
7710 # Look at the argument we got. We use all the common list separators.
7711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7712 for pkg in $enableval; do
7713 IFS="$lt_save_ifs"
7714 if test "X$pkg" = "X$p"; then
7715 enable_static=yes
7717 done
7718 IFS="$lt_save_ifs"
7720 esac
7721 else
7722 enable_static=yes
7734 # Check whether --with-pic was given.
7735 if test "${with_pic+set}" = set; then :
7736 withval=$with_pic; p=${PACKAGE-default}
7737 case "$withval" in
7738 yes|no) pic_mode="$withval" ;;
7740 pic_mode=default
7741 # Look at the argument we got. We use all the common list separators.
7742 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7743 for pkg in $withval; do
7744 IFS="$lt_save_ifs"
7745 if test "X$pkg" = "X$p"; then
7746 pic_mode=yes
7748 done
7749 IFS="$lt_save_ifs"
7751 esac
7752 else
7753 pic_mode=default
7757 test -z "$pic_mode" && pic_mode=default
7765 # Check whether --enable-fast-install was given.
7766 if test "${enable_fast_install+set}" = set; then :
7767 enableval=$enable_fast_install; p=${PACKAGE-default}
7768 case $enableval in
7769 yes) enable_fast_install=yes ;;
7770 no) enable_fast_install=no ;;
7772 enable_fast_install=no
7773 # Look at the argument we got. We use all the common list separators.
7774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7775 for pkg in $enableval; do
7776 IFS="$lt_save_ifs"
7777 if test "X$pkg" = "X$p"; then
7778 enable_fast_install=yes
7780 done
7781 IFS="$lt_save_ifs"
7783 esac
7784 else
7785 enable_fast_install=yes
7798 # This can be used to rebuild libtool when needed
7799 LIBTOOL_DEPS="$ltmain"
7801 # Always use our own libtool.
7802 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7829 test -z "$LN_S" && LN_S="ln -s"
7844 if test -n "${ZSH_VERSION+set}" ; then
7845 setopt NO_GLOB_SUBST
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7849 $as_echo_n "checking for objdir... " >&6; }
7850 if test "${lt_cv_objdir+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 rm -f .libs 2>/dev/null
7854 mkdir .libs 2>/dev/null
7855 if test -d .libs; then
7856 lt_cv_objdir=.libs
7857 else
7858 # MS-DOS does not allow filenames that begin with a dot.
7859 lt_cv_objdir=_libs
7861 rmdir .libs 2>/dev/null
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7864 $as_echo "$lt_cv_objdir" >&6; }
7865 objdir=$lt_cv_objdir
7871 cat >>confdefs.h <<_ACEOF
7872 #define LT_OBJDIR "$lt_cv_objdir/"
7873 _ACEOF
7878 case $host_os in
7879 aix3*)
7880 # AIX sometimes has problems with the GCC collect2 program. For some
7881 # reason, if we set the COLLECT_NAMES environment variable, the problems
7882 # vanish in a puff of smoke.
7883 if test "X${COLLECT_NAMES+set}" != Xset; then
7884 COLLECT_NAMES=
7885 export COLLECT_NAMES
7888 esac
7890 # Global variables:
7891 ofile=libtool
7892 can_build_shared=yes
7894 # All known linkers require a `.a' archive for static linking (except MSVC,
7895 # which needs '.lib').
7896 libext=a
7898 with_gnu_ld="$lt_cv_prog_gnu_ld"
7900 old_CC="$CC"
7901 old_CFLAGS="$CFLAGS"
7903 # Set sane defaults for various variables
7904 test -z "$CC" && CC=cc
7905 test -z "$LTCC" && LTCC=$CC
7906 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907 test -z "$LD" && LD=ld
7908 test -z "$ac_objext" && ac_objext=o
7910 for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917 done
7918 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7921 # Only perform the check for file, if the check method requires it
7922 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923 case $deplibs_check_method in
7924 file_magic*)
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7927 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 case $MAGIC_CMD in
7932 [\\/*] | ?:[\\/]*)
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7940 IFS="$lt_save_ifs"
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7946 "file_magic "*)
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7952 else
7953 cat <<_LT_EOF 1>&2
7955 *** Warning: the command libtool uses to detect shared libraries,
7956 *** $file_magic_cmd, produces output that libtool cannot recognize.
7957 *** The result is that libtool may fail to recognize shared libraries
7958 *** as such. This will affect the creation of libtool libraries that
7959 *** depend on shared libraries, but programs linked with such libtool
7960 *** libraries will work regardless of this problem. Nevertheless, you
7961 *** may want to report the problem to your system manager and/or to
7962 *** bug-libtool@gnu.org
7964 _LT_EOF
7965 fi ;;
7966 esac
7968 break
7970 done
7971 IFS="$lt_save_ifs"
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7974 esac
7977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978 if test -n "$MAGIC_CMD"; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7980 $as_echo "$MAGIC_CMD" >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7990 if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7993 $as_echo_n "checking for file... " >&6; }
7994 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 case $MAGIC_CMD in
7998 [\\/*] | ?:[\\/]*)
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8006 IFS="$lt_save_ifs"
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8012 "file_magic "*)
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8018 else
8019 cat <<_LT_EOF 1>&2
8021 *** Warning: the command libtool uses to detect shared libraries,
8022 *** $file_magic_cmd, produces output that libtool cannot recognize.
8023 *** The result is that libtool may fail to recognize shared libraries
8024 *** as such. This will affect the creation of libtool libraries that
8025 *** depend on shared libraries, but programs linked with such libtool
8026 *** libraries will work regardless of this problem. Nevertheless, you
8027 *** may want to report the problem to your system manager and/or to
8028 *** bug-libtool@gnu.org
8030 _LT_EOF
8031 fi ;;
8032 esac
8034 break
8036 done
8037 IFS="$lt_save_ifs"
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8040 esac
8043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044 if test -n "$MAGIC_CMD"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8046 $as_echo "$MAGIC_CMD" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8053 else
8054 MAGIC_CMD=:
8060 esac
8062 # Use C for the default configuration in the libtool script
8064 lt_save_CC="$CC"
8065 ac_ext=c
8066 ac_cpp='$CPP $CPPFLAGS'
8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072 # Source file extension for C test sources.
8073 ac_ext=c
8075 # Object file extension for compiled C test sources.
8076 objext=o
8077 objext=$objext
8079 # Code to be used in simple compile tests
8080 lt_simple_compile_test_code="int some_variable = 0;"
8082 # Code to be used in simple link tests
8083 lt_simple_link_test_code='int main(){return(0);}'
8091 # If no C compiler was specified, use CC.
8092 LTCC=${LTCC-"$CC"}
8094 # If no C compiler flags were specified, use CFLAGS.
8095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8097 # Allow CC to be a program name with arguments.
8098 compiler=$CC
8100 # Save the default compiler, since it gets overwritten when the other
8101 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102 compiler_DEFAULT=$CC
8104 # save warnings/boilerplate of simple test code
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108 _lt_compiler_boilerplate=`cat conftest.err`
8109 $RM conftest*
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114 _lt_linker_boilerplate=`cat conftest.err`
8115 $RM -r conftest*
8118 ## CAVEAT EMPTOR:
8119 ## There is no encapsulation within the following macros, do not change
8120 ## the running order or otherwise move them around unless you know exactly
8121 ## what you are doing...
8122 if test -n "$compiler"; then
8124 lt_prog_compiler_no_builtin_flag=
8126 if test "$GCC" = yes; then
8127 case $cc_basename in
8128 nvcc*)
8129 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8131 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8132 esac
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8135 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8136 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 lt_cv_prog_compiler_rtti_exceptions=no
8140 ac_outfile=conftest.$ac_objext
8141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142 lt_compiler_flag="-fno-rtti -fno-exceptions"
8143 # Insert the option either (1) after the last *FLAGS variable, or
8144 # (2) before a word containing "conftest.", or (3) at the end.
8145 # Note that $ac_compile itself does not contain backslashes and begins
8146 # with a dollar sign (not a hyphen), so the echo should work correctly.
8147 # The option is referenced via a variable to avoid confusing sed.
8148 lt_compile=`echo "$ac_compile" | $SED \
8149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151 -e 's:$: $lt_compiler_flag:'`
8152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8153 (eval "$lt_compile" 2>conftest.err)
8154 ac_status=$?
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 if (exit $ac_status) && test -s "$ac_outfile"; then
8158 # The compiler can only warn and ignore the option if not recognized
8159 # So say no if there are warnings other than the usual output.
8160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_rtti_exceptions=yes
8166 $RM conftest*
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8170 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8172 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8174 else
8185 lt_prog_compiler_wl=
8186 lt_prog_compiler_pic=
8187 lt_prog_compiler_static=
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8190 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8192 if test "$GCC" = yes; then
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_static='-static'
8196 case $host_os in
8197 aix*)
8198 # All AIX code is PIC.
8199 if test "$host_cpu" = ia64; then
8200 # AIX 5 now supports IA64 processor
8201 lt_prog_compiler_static='-Bstatic'
8205 amigaos*)
8206 case $host_cpu in
8207 powerpc)
8208 # see comment about AmigaOS4 .so support
8209 lt_prog_compiler_pic='-fPIC'
8211 m68k)
8212 # FIXME: we need at least 68020 code to build shared libraries, but
8213 # adding the `-m68020' flag to GCC prevents building anything better,
8214 # like `-m68040'.
8215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8217 esac
8220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8221 # PIC is the default for these OSes.
8224 mingw* | cygwin* | pw32* | os2* | cegcc*)
8225 # This hack is so that the source file can tell whether it is being
8226 # built for inclusion in a dll (and should export symbols for example).
8227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8228 # (--disable-auto-import) libraries
8229 lt_prog_compiler_pic='-DDLL_EXPORT'
8232 darwin* | rhapsody*)
8233 # PIC is the default on this platform
8234 # Common symbols not allowed in MH_DYLIB files
8235 lt_prog_compiler_pic='-fno-common'
8238 haiku*)
8239 # PIC is the default for Haiku.
8240 # The "-static" flag exists, but is broken.
8241 lt_prog_compiler_static=
8244 hpux*)
8245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8247 # sets the default TLS model and affects inlining.
8248 case $host_cpu in
8249 hppa*64*)
8250 # +Z the default
8253 lt_prog_compiler_pic='-fPIC'
8255 esac
8258 interix[3-9]*)
8259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8260 # Instead, we relocate shared libraries at runtime.
8263 msdosdjgpp*)
8264 # Just because we use GCC doesn't mean we suddenly get shared libraries
8265 # on systems that don't support them.
8266 lt_prog_compiler_can_build_shared=no
8267 enable_shared=no
8270 *nto* | *qnx*)
8271 # QNX uses GNU C++, but need to define -shared option too, otherwise
8272 # it will coredump.
8273 lt_prog_compiler_pic='-fPIC -shared'
8276 sysv4*MP*)
8277 if test -d /usr/nec; then
8278 lt_prog_compiler_pic=-Kconform_pic
8283 lt_prog_compiler_pic='-fPIC'
8285 esac
8287 case $cc_basename in
8288 nvcc*) # Cuda Compiler Driver 2.2
8289 lt_prog_compiler_wl='-Xlinker '
8290 lt_prog_compiler_pic='-Xcompiler -fPIC'
8292 esac
8293 else
8294 # PORTME Check for flag to pass linker flags through the system compiler.
8295 case $host_os in
8296 aix*)
8297 lt_prog_compiler_wl='-Wl,'
8298 if test "$host_cpu" = ia64; then
8299 # AIX 5 now supports IA64 processor
8300 lt_prog_compiler_static='-Bstatic'
8301 else
8302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8306 mingw* | cygwin* | pw32* | os2* | cegcc*)
8307 # This hack is so that the source file can tell whether it is being
8308 # built for inclusion in a dll (and should export symbols for example).
8309 lt_prog_compiler_pic='-DDLL_EXPORT'
8312 hpux9* | hpux10* | hpux11*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8315 # not for PA HP-UX.
8316 case $host_cpu in
8317 hppa*64*|ia64*)
8318 # +Z the default
8321 lt_prog_compiler_pic='+Z'
8323 esac
8324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8325 lt_prog_compiler_static='${wl}-a ${wl}archive'
8328 irix5* | irix6* | nonstopux*)
8329 lt_prog_compiler_wl='-Wl,'
8330 # PIC (with -KPIC) is the default.
8331 lt_prog_compiler_static='-non_shared'
8334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8335 case $cc_basename in
8336 # old Intel for x86_64 which still supported -KPIC.
8337 ecc*)
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-static'
8342 # icc used to be incompatible with GCC.
8343 # ICC 10 doesn't accept -KPIC any more.
8344 icc* | ifort*)
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_pic='-fPIC'
8347 lt_prog_compiler_static='-static'
8349 # Lahey Fortran 8.1.
8350 lf95*)
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='--shared'
8353 lt_prog_compiler_static='--static'
8355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8356 # Portland Group compilers (*not* the Pentium gcc compiler,
8357 # which looks to be a dead project)
8358 lt_prog_compiler_wl='-Wl,'
8359 lt_prog_compiler_pic='-fpic'
8360 lt_prog_compiler_static='-Bstatic'
8362 ccc*)
8363 lt_prog_compiler_wl='-Wl,'
8364 # All Alpha code is PIC.
8365 lt_prog_compiler_static='-non_shared'
8367 xl* | bgxl* | bgf* | mpixl*)
8368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='-qpic'
8371 lt_prog_compiler_static='-qstaticlink'
8374 case `$CC -V 2>&1 | sed 5q` in
8375 *Sun\ F* | *Sun*Fortran*)
8376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8377 lt_prog_compiler_pic='-KPIC'
8378 lt_prog_compiler_static='-Bstatic'
8379 lt_prog_compiler_wl=''
8381 *Sun\ C*)
8382 # Sun C 5.9
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8385 lt_prog_compiler_wl='-Wl,'
8387 esac
8389 esac
8392 newsos6)
8393 lt_prog_compiler_pic='-KPIC'
8394 lt_prog_compiler_static='-Bstatic'
8397 *nto* | *qnx*)
8398 # QNX uses GNU C++, but need to define -shared option too, otherwise
8399 # it will coredump.
8400 lt_prog_compiler_pic='-fPIC -shared'
8403 osf3* | osf4* | osf5*)
8404 lt_prog_compiler_wl='-Wl,'
8405 # All OSF/1 code is PIC.
8406 lt_prog_compiler_static='-non_shared'
8409 rdos*)
8410 lt_prog_compiler_static='-non_shared'
8413 solaris*)
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 case $cc_basename in
8417 f77* | f90* | f95*)
8418 lt_prog_compiler_wl='-Qoption ld ';;
8420 lt_prog_compiler_wl='-Wl,';;
8421 esac
8424 sunos4*)
8425 lt_prog_compiler_wl='-Qoption ld '
8426 lt_prog_compiler_pic='-PIC'
8427 lt_prog_compiler_static='-Bstatic'
8430 sysv4 | sysv4.2uw2* | sysv4.3*)
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8436 sysv4*MP*)
8437 if test -d /usr/nec ;then
8438 lt_prog_compiler_pic='-Kconform_pic'
8439 lt_prog_compiler_static='-Bstatic'
8443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8449 unicos*)
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_can_build_shared=no
8454 uts4*)
8455 lt_prog_compiler_pic='-pic'
8456 lt_prog_compiler_static='-Bstatic'
8460 lt_prog_compiler_can_build_shared=no
8462 esac
8465 case $host_os in
8466 # For platforms which do not support PIC, -DPIC is meaningless:
8467 *djgpp*)
8468 lt_prog_compiler_pic=
8471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8473 esac
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8475 $as_echo "$lt_prog_compiler_pic" >&6; }
8483 # Check to make sure the PIC flag actually works.
8485 if test -n "$lt_prog_compiler_pic"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8487 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8488 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 lt_cv_prog_compiler_pic_works=no
8492 ac_outfile=conftest.$ac_objext
8493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8494 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8495 # Insert the option either (1) after the last *FLAGS variable, or
8496 # (2) before a word containing "conftest.", or (3) at the end.
8497 # Note that $ac_compile itself does not contain backslashes and begins
8498 # with a dollar sign (not a hyphen), so the echo should work correctly.
8499 # The option is referenced via a variable to avoid confusing sed.
8500 lt_compile=`echo "$ac_compile" | $SED \
8501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8503 -e 's:$: $lt_compiler_flag:'`
8504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8505 (eval "$lt_compile" 2>conftest.err)
8506 ac_status=$?
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 if (exit $ac_status) && test -s "$ac_outfile"; then
8510 # The compiler can only warn and ignore the option if not recognized
8511 # So say no if there are warnings other than the usual output.
8512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8515 lt_cv_prog_compiler_pic_works=yes
8518 $RM conftest*
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8522 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8524 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8525 case $lt_prog_compiler_pic in
8526 "" | " "*) ;;
8527 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8528 esac
8529 else
8530 lt_prog_compiler_pic=
8531 lt_prog_compiler_can_build_shared=no
8542 # Check to make sure the static flag actually works.
8544 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8546 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8547 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 lt_cv_prog_compiler_static_works=no
8551 save_LDFLAGS="$LDFLAGS"
8552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8555 # The linker can only warn and ignore the option if not recognized
8556 # So say no if there are warnings
8557 if test -s conftest.err; then
8558 # Append any errors to the config.log.
8559 cat conftest.err 1>&5
8560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562 if diff conftest.exp conftest.er2 >/dev/null; then
8563 lt_cv_prog_compiler_static_works=yes
8565 else
8566 lt_cv_prog_compiler_static_works=yes
8569 $RM -r conftest*
8570 LDFLAGS="$save_LDFLAGS"
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8574 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8576 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8578 else
8579 lt_prog_compiler_static=
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 lt_cv_prog_compiler_c_o=no
8594 $RM -r conftest 2>/dev/null
8595 mkdir conftest
8596 cd conftest
8597 mkdir out
8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 lt_compiler_flag="-o out/conftest2.$ac_objext"
8601 # Insert the option either (1) after the last *FLAGS variable, or
8602 # (2) before a word containing "conftest.", or (3) at the end.
8603 # Note that $ac_compile itself does not contain backslashes and begins
8604 # with a dollar sign (not a hyphen), so the echo should work correctly.
8605 lt_compile=`echo "$ac_compile" | $SED \
8606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608 -e 's:$: $lt_compiler_flag:'`
8609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610 (eval "$lt_compile" 2>out/conftest.err)
8611 ac_status=$?
8612 cat out/conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8615 then
8616 # The compiler can only warn and ignore the option if not recognized
8617 # So say no if there are warnings
8618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621 lt_cv_prog_compiler_c_o=yes
8624 chmod u+w . 2>&5
8625 $RM conftest*
8626 # SGI C++ compiler will create directory out/ii_files/ for
8627 # template instantiation
8628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629 $RM out/* && rmdir out
8630 cd ..
8631 $RM -r conftest
8632 $RM conftest*
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8644 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8645 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 lt_cv_prog_compiler_c_o=no
8649 $RM -r conftest 2>/dev/null
8650 mkdir conftest
8651 cd conftest
8652 mkdir out
8653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8655 lt_compiler_flag="-o out/conftest2.$ac_objext"
8656 # Insert the option either (1) after the last *FLAGS variable, or
8657 # (2) before a word containing "conftest.", or (3) at the end.
8658 # Note that $ac_compile itself does not contain backslashes and begins
8659 # with a dollar sign (not a hyphen), so the echo should work correctly.
8660 lt_compile=`echo "$ac_compile" | $SED \
8661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663 -e 's:$: $lt_compiler_flag:'`
8664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8665 (eval "$lt_compile" 2>out/conftest.err)
8666 ac_status=$?
8667 cat out/conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8670 then
8671 # The compiler can only warn and ignore the option if not recognized
8672 # So say no if there are warnings
8673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676 lt_cv_prog_compiler_c_o=yes
8679 chmod u+w . 2>&5
8680 $RM conftest*
8681 # SGI C++ compiler will create directory out/ii_files/ for
8682 # template instantiation
8683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8684 $RM out/* && rmdir out
8685 cd ..
8686 $RM -r conftest
8687 $RM conftest*
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8691 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8696 hard_links="nottested"
8697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8698 # do not overwrite the value of need_locks provided by the user
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8700 $as_echo_n "checking if we can lock with hard links... " >&6; }
8701 hard_links=yes
8702 $RM conftest*
8703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704 touch conftest.a
8705 ln conftest.a conftest.b 2>&5 || hard_links=no
8706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8708 $as_echo "$hard_links" >&6; }
8709 if test "$hard_links" = no; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8711 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8712 need_locks=warn
8714 else
8715 need_locks=no
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8724 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8726 runpath_var=
8727 allow_undefined_flag=
8728 always_export_symbols=no
8729 archive_cmds=
8730 archive_expsym_cmds=
8731 compiler_needs_object=no
8732 enable_shared_with_static_runtimes=no
8733 export_dynamic_flag_spec=
8734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8735 hardcode_automatic=no
8736 hardcode_direct=no
8737 hardcode_direct_absolute=no
8738 hardcode_libdir_flag_spec=
8739 hardcode_libdir_flag_spec_ld=
8740 hardcode_libdir_separator=
8741 hardcode_minus_L=no
8742 hardcode_shlibpath_var=unsupported
8743 inherit_rpath=no
8744 link_all_deplibs=unknown
8745 module_cmds=
8746 module_expsym_cmds=
8747 old_archive_from_new_cmds=
8748 old_archive_from_expsyms_cmds=
8749 thread_safe_flag_spec=
8750 whole_archive_flag_spec=
8751 # include_expsyms should be a list of space-separated symbols to be *always*
8752 # included in the symbol list
8753 include_expsyms=
8754 # exclude_expsyms can be an extended regexp of symbols to exclude
8755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8757 # as well as any symbol that contains `d'.
8758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8760 # platforms (ab)use it in PIC code, but their linkers get confused if
8761 # the symbol is explicitly referenced. Since portable code cannot
8762 # rely on this symbol name, it's probably fine to never include it in
8763 # preloaded symbol tables.
8764 # Exclude shared library initialization/finalization symbols.
8765 extract_expsyms_cmds=
8767 case $host_os in
8768 cygwin* | mingw* | pw32* | cegcc*)
8769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8770 # When not using gcc, we currently assume that we are using
8771 # Microsoft Visual C++.
8772 if test "$GCC" != yes; then
8773 with_gnu_ld=no
8776 interix*)
8777 # we just hope/assume this is gcc and not c89 (= MSVC++)
8778 with_gnu_ld=yes
8780 openbsd*)
8781 with_gnu_ld=no
8783 esac
8785 ld_shlibs=yes
8787 # On some targets, GNU ld is compatible enough with the native linker
8788 # that we're better off using the native interface for both.
8789 lt_use_gnu_ld_interface=no
8790 if test "$with_gnu_ld" = yes; then
8791 case $host_os in
8792 aix*)
8793 # The AIX port of GNU ld has always aspired to compatibility
8794 # with the native linker. However, as the warning in the GNU ld
8795 # block says, versions before 2.19.5* couldn't really create working
8796 # shared libraries, regardless of the interface used.
8797 case `$LD -v 2>&1` in
8798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8802 lt_use_gnu_ld_interface=yes
8804 esac
8807 lt_use_gnu_ld_interface=yes
8809 esac
8812 if test "$lt_use_gnu_ld_interface" = yes; then
8813 # If archive_cmds runs LD, not CC, wlarc should be empty
8814 wlarc='${wl}'
8816 # Set some defaults for GNU ld with shared library support. These
8817 # are reset later if shared libraries are not supported. Putting them
8818 # here allows them to be overridden if necessary.
8819 runpath_var=LD_RUN_PATH
8820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821 export_dynamic_flag_spec='${wl}--export-dynamic'
8822 # ancient GNU ld didn't support --whole-archive et. al.
8823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8825 else
8826 whole_archive_flag_spec=
8828 supports_anon_versioning=no
8829 case `$LD -v 2>&1` in
8830 *GNU\ gold*) supports_anon_versioning=yes ;;
8831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8834 *\ 2.11.*) ;; # other 2.11 versions
8835 *) supports_anon_versioning=yes ;;
8836 esac
8838 # See if GNU ld supports shared libraries.
8839 case $host_os in
8840 aix[3-9]*)
8841 # On AIX/PPC, the GNU linker is very broken
8842 if test "$host_cpu" != ia64; then
8843 ld_shlibs=no
8844 cat <<_LT_EOF 1>&2
8846 *** Warning: the GNU linker, at least up to release 2.19, is reported
8847 *** to be unable to reliably create shared libraries on AIX.
8848 *** Therefore, libtool is disabling shared libraries support. If you
8849 *** really care for shared libraries, you may want to install binutils
8850 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8851 *** You will then need to restart the configuration process.
8853 _LT_EOF
8857 amigaos*)
8858 case $host_cpu in
8859 powerpc)
8860 # see comment about AmigaOS4 .so support
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 archive_expsym_cmds=''
8864 m68k)
8865 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)'
8866 hardcode_libdir_flag_spec='-L$libdir'
8867 hardcode_minus_L=yes
8869 esac
8872 beos*)
8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874 allow_undefined_flag=unsupported
8875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8876 # support --undefined. This deserves some investigation. FIXME
8877 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 else
8879 ld_shlibs=no
8883 cygwin* | mingw* | pw32* | cegcc*)
8884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8885 # as there is no search path for DLLs.
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 export_dynamic_flag_spec='${wl}--export-all-symbols'
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=no
8890 enable_shared_with_static_runtimes=yes
8891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895 # If the export-symbols file already is a .def file (1st line
8896 # is EXPORTS), use it as is; otherwise, prepend...
8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898 cp $export_symbols $output_objdir/$soname.def;
8899 else
8900 echo EXPORTS > $output_objdir/$soname.def;
8901 cat $export_symbols >> $output_objdir/$soname.def;
8903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904 else
8905 ld_shlibs=no
8909 haiku*)
8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 link_all_deplibs=yes
8914 interix[3-9]*)
8915 hardcode_direct=no
8916 hardcode_shlibpath_var=no
8917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8918 export_dynamic_flag_spec='${wl}-E'
8919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8920 # Instead, shared libraries are loaded at an image base (0x10000000 by
8921 # default) and relocated if they conflict, which is a slow very memory
8922 # consuming and fragmenting process. To avoid this, we pick a random,
8923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8926 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'
8929 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8930 tmp_diet=no
8931 if test "$host_os" = linux-dietlibc; then
8932 case $cc_basename in
8933 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8934 esac
8936 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8937 && test "$tmp_diet" = no
8938 then
8939 tmp_addflag=
8940 tmp_sharedflag='-shared'
8941 case $cc_basename,$host_cpu in
8942 pgcc*) # Portland Group C compiler
8943 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'
8944 tmp_addflag=' $pic_flag'
8946 pgf77* | pgf90* | pgf95* | pgfortran*)
8947 # Portland Group f77 and f90 compilers
8948 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'
8949 tmp_addflag=' $pic_flag -Mnomain' ;;
8950 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8951 tmp_addflag=' -i_dynamic' ;;
8952 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8953 tmp_addflag=' -i_dynamic -nofor_main' ;;
8954 ifc* | ifort*) # Intel Fortran compiler
8955 tmp_addflag=' -nofor_main' ;;
8956 lf95*) # Lahey Fortran 8.1
8957 whole_archive_flag_spec=
8958 tmp_sharedflag='--shared' ;;
8959 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8960 tmp_sharedflag='-qmkshrobj'
8961 tmp_addflag= ;;
8962 nvcc*) # Cuda Compiler Driver 2.2
8963 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'
8964 compiler_needs_object=yes
8966 esac
8967 case `$CC -V 2>&1 | sed 5q` in
8968 *Sun\ C*) # Sun C 5.9
8969 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'
8970 compiler_needs_object=yes
8971 tmp_sharedflag='-G' ;;
8972 *Sun\ F*) # Sun Fortran 8.3
8973 tmp_sharedflag='-G' ;;
8974 esac
8975 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 if test "x$supports_anon_versioning" = xyes; then
8978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8980 echo "local: *; };" >> $output_objdir/$libname.ver~
8981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8984 case $cc_basename in
8985 xlf* | bgf* | bgxlf* | mpixlf*)
8986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8987 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8988 hardcode_libdir_flag_spec=
8989 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8990 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8991 if test "x$supports_anon_versioning" = xyes; then
8992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8994 echo "local: *; };" >> $output_objdir/$libname.ver~
8995 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8998 esac
8999 else
9000 ld_shlibs=no
9004 netbsd*)
9005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9007 wlarc=
9008 else
9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 solaris*)
9015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9016 ld_shlibs=no
9017 cat <<_LT_EOF 1>&2
9019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9020 *** create shared libraries on Solaris systems. Therefore, libtool
9021 *** is disabling shared libraries support. We urge you to upgrade GNU
9022 *** binutils to release 2.9.1 or newer. Another option is to modify
9023 *** your PATH or compiler configuration so that the native linker is
9024 *** used, and then restart.
9026 _LT_EOF
9027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9036 case `$LD -v 2>&1` in
9037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9042 *** reliably create shared libraries on SCO systems. Therefore, libtool
9043 *** is disabling shared libraries support. We urge you to upgrade GNU
9044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9045 *** your PATH or compiler configuration so that the native linker is
9046 *** used, and then restart.
9048 _LT_EOF
9051 # For security reasons, it is highly recommended that you always
9052 # use absolute paths for naming shared libraries, and exclude the
9053 # DT_RUNPATH tag from executables and libraries. But doing so
9054 # requires that you compile everything twice, which is a pain.
9055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059 else
9060 ld_shlibs=no
9063 esac
9066 sunos4*)
9067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068 wlarc=
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9077 else
9078 ld_shlibs=no
9081 esac
9083 if test "$ld_shlibs" = no; then
9084 runpath_var=
9085 hardcode_libdir_flag_spec=
9086 export_dynamic_flag_spec=
9087 whole_archive_flag_spec=
9089 else
9090 # PORTME fill in a description of your system's linker (not GNU ld)
9091 case $host_os in
9092 aix3*)
9093 allow_undefined_flag=unsupported
9094 always_export_symbols=yes
9095 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'
9096 # Note: this linker hardcodes the directories in LIBPATH if there
9097 # are no directories specified by -L.
9098 hardcode_minus_L=yes
9099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9100 # Neither direct hardcoding nor static linking is supported with a
9101 # broken collect2.
9102 hardcode_direct=unsupported
9106 aix[4-9]*)
9107 if test "$host_cpu" = ia64; then
9108 # On IA64, the linker does run time linking by default, so we don't
9109 # have to do anything special.
9110 aix_use_runtimelinking=no
9111 exp_sym_flag='-Bexport'
9112 no_entry_flag=""
9113 else
9114 # If we're using GNU nm, then we don't want the "-C" option.
9115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9116 # Also, AIX nm treats weak defined symbols like other global
9117 # defined symbols, whereas GNU nm marks them as "W".
9118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9119 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'
9120 else
9121 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9123 aix_use_runtimelinking=no
9125 # Test if we are trying to use run time linking or normal
9126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9127 # need to do runtime linking.
9128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9129 for ld_flag in $LDFLAGS; do
9130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9131 aix_use_runtimelinking=yes
9132 break
9134 done
9136 esac
9138 exp_sym_flag='-bexport'
9139 no_entry_flag='-bnoentry'
9142 # When large executables or shared objects are built, AIX ld can
9143 # have problems creating the table of contents. If linking a library
9144 # or program results in "error TOC overflow" add -mminimal-toc to
9145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9148 archive_cmds=''
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 hardcode_libdir_separator=':'
9152 link_all_deplibs=yes
9153 file_list_spec='${wl}-f,'
9155 if test "$GCC" = yes; then
9156 case $host_os in aix4.[012]|aix4.[012].*)
9157 # We only want to do this on AIX 4.2 and lower, the check
9158 # below for broken collect2 doesn't work under 4.3+
9159 collect2name=`${CC} -print-prog-name=collect2`
9160 if test -f "$collect2name" &&
9161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9162 then
9163 # We have reworked collect2
9165 else
9166 # We have old collect2
9167 hardcode_direct=unsupported
9168 # It fails to find uninstalled libraries when the uninstalled
9169 # path is not listed in the libpath. Setting hardcode_minus_L
9170 # to unsupported forces relinking
9171 hardcode_minus_L=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_libdir_separator=
9176 esac
9177 shared_flag='-shared'
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag="$shared_flag "'${wl}-G'
9181 else
9182 # not using gcc
9183 if test "$host_cpu" = ia64; then
9184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9185 # chokes on -Wl,-G. The following line is correct:
9186 shared_flag='-G'
9187 else
9188 if test "$aix_use_runtimelinking" = yes; then
9189 shared_flag='${wl}-G'
9190 else
9191 shared_flag='${wl}-bM:SRE'
9196 export_dynamic_flag_spec='${wl}-bexpall'
9197 # It seems that -bexpall does not export symbols beginning with
9198 # underscore (_), so it is better to generate a list of symbols to export.
9199 always_export_symbols=yes
9200 if test "$aix_use_runtimelinking" = yes; then
9201 # Warning - without using the other runtime loading flags (-brtl),
9202 # -berok will link without error, but may produce a broken library.
9203 allow_undefined_flag='-berok'
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 main ()
9214 return 0;
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9219 lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\(.*\)$/\1/
9226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 # Check for a 64-bit object if we didn't find anything.
9228 if test -z "$aix_libpath"; then
9229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9237 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"
9238 else
9239 if test "$host_cpu" = ia64; then
9240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9241 allow_undefined_flag="-z nodefs"
9242 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"
9243 else
9244 # Determine the default libpath from the value encoded in an
9245 # empty executable.
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9250 main ()
9254 return 0;
9256 _ACEOF
9257 if ac_fn_c_try_link "$LINENO"; then :
9259 lt_aix_libpath_sed='
9260 /Import File Strings/,/^$/ {
9261 /^0/ {
9262 s/^0 *\(.*\)$/\1/
9266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9267 # Check for a 64-bit object if we didn't find anything.
9268 if test -z "$aix_libpath"; then
9269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272 rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9277 # Warning - without using the other run time loading flags,
9278 # -berok will link without error, but may produce a broken library.
9279 no_undefined_flag=' ${wl}-bernotok'
9280 allow_undefined_flag=' ${wl}-berok'
9281 if test "$with_gnu_ld" = yes; then
9282 # We only use this code for GNU lds that support --whole-archive.
9283 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9284 else
9285 # Exported symbols can be pulled into shared objects from archives
9286 whole_archive_flag_spec='$convenience'
9288 archive_cmds_need_lc=yes
9289 # This is similar to how AIX traditionally builds its shared libraries.
9290 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'
9295 amigaos*)
9296 case $host_cpu in
9297 powerpc)
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds=''
9302 m68k)
9303 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)'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_minus_L=yes
9307 esac
9310 bsdi[45]*)
9311 export_dynamic_flag_spec=-rdynamic
9314 cygwin* | mingw* | pw32* | cegcc*)
9315 # When not using gcc, we currently assume that we are using
9316 # Microsoft Visual C++.
9317 # hardcode_libdir_flag_spec is actually meaningless, as there is
9318 # no search path for DLLs.
9319 hardcode_libdir_flag_spec=' '
9320 allow_undefined_flag=unsupported
9321 # Tell ltmain to make .lib files, not .a files.
9322 libext=lib
9323 # Tell ltmain to make .dll files, not .so files.
9324 shrext_cmds=".dll"
9325 # FIXME: Setting linknames here is a bad hack.
9326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9327 # The linker will automatically build a .lib file if we build a DLL.
9328 old_archive_from_new_cmds='true'
9329 # FIXME: Should let the user specify the lib program.
9330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9331 fix_srcfile_path='`cygpath -w "$srcfile"`'
9332 enable_shared_with_static_runtimes=yes
9335 darwin* | rhapsody*)
9338 archive_cmds_need_lc=no
9339 hardcode_direct=no
9340 hardcode_automatic=yes
9341 hardcode_shlibpath_var=unsupported
9342 if test "$lt_cv_ld_force_load" = "yes"; then
9343 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\"`'
9344 else
9345 whole_archive_flag_spec=''
9347 link_all_deplibs=yes
9348 allow_undefined_flag="$_lt_dar_allow_undefined"
9349 case $cc_basename in
9350 ifort*) _lt_dar_can_shared=yes ;;
9351 *) _lt_dar_can_shared=$GCC ;;
9352 esac
9353 if test "$_lt_dar_can_shared" = "yes"; then
9354 output_verbose_link_cmd=func_echo_all
9355 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9356 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9357 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}"
9358 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}"
9360 else
9361 ld_shlibs=no
9366 dgux*)
9367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_shlibpath_var=no
9372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9373 # support. Future versions do this automatically, but an explicit c++rt0.o
9374 # does not break anything, and helps significantly (at the cost of a little
9375 # extra space).
9376 freebsd2.2*)
9377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9378 hardcode_libdir_flag_spec='-R$libdir'
9379 hardcode_direct=yes
9380 hardcode_shlibpath_var=no
9383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9384 freebsd2.*)
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes
9387 hardcode_minus_L=yes
9388 hardcode_shlibpath_var=no
9391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9392 freebsd* | dragonfly*)
9393 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9394 hardcode_libdir_flag_spec='-R$libdir'
9395 hardcode_direct=yes
9396 hardcode_shlibpath_var=no
9399 hpux9*)
9400 if test "$GCC" = yes; then
9401 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'
9402 else
9403 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'
9405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9406 hardcode_libdir_separator=:
9407 hardcode_direct=yes
9409 # hardcode_minus_L: Not really in the search PATH,
9410 # but as the default location of the library.
9411 hardcode_minus_L=yes
9412 export_dynamic_flag_spec='${wl}-E'
9415 hpux10*)
9416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418 else
9419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9421 if test "$with_gnu_ld" = no; then
9422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423 hardcode_libdir_flag_spec_ld='+b $libdir'
9424 hardcode_libdir_separator=:
9425 hardcode_direct=yes
9426 hardcode_direct_absolute=yes
9427 export_dynamic_flag_spec='${wl}-E'
9428 # hardcode_minus_L: Not really in the search PATH,
9429 # but as the default location of the library.
9430 hardcode_minus_L=yes
9434 hpux11*)
9435 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9436 case $host_cpu in
9437 hppa*64*)
9438 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 ia64*)
9441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 esac
9447 else
9448 case $host_cpu in
9449 hppa*64*)
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 ia64*)
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9457 # Older versions of the 11.00 compiler do not understand -b yet
9458 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9460 $as_echo_n "checking if $CC understands -b... " >&6; }
9461 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 lt_cv_prog_compiler__b=no
9465 save_LDFLAGS="$LDFLAGS"
9466 LDFLAGS="$LDFLAGS -b"
9467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9469 # The linker can only warn and ignore the option if not recognized
9470 # So say no if there are warnings
9471 if test -s conftest.err; then
9472 # Append any errors to the config.log.
9473 cat conftest.err 1>&5
9474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476 if diff conftest.exp conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler__b=yes
9479 else
9480 lt_cv_prog_compiler__b=yes
9483 $RM -r conftest*
9484 LDFLAGS="$save_LDFLAGS"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9488 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9490 if test x"$lt_cv_prog_compiler__b" = xyes; then
9491 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492 else
9493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9497 esac
9499 if test "$with_gnu_ld" = no; then
9500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9501 hardcode_libdir_separator=:
9503 case $host_cpu in
9504 hppa*64*|ia64*)
9505 hardcode_direct=no
9506 hardcode_shlibpath_var=no
9509 hardcode_direct=yes
9510 hardcode_direct_absolute=yes
9511 export_dynamic_flag_spec='${wl}-E'
9513 # hardcode_minus_L: Not really in the search PATH,
9514 # but as the default location of the library.
9515 hardcode_minus_L=yes
9517 esac
9521 irix5* | irix6* | nonstopux*)
9522 if test "$GCC" = yes; then
9523 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'
9524 # Try to use the -exported_symbol ld option, if it does not
9525 # work, assume that -exports_file does not work either and
9526 # implicitly export all symbols.
9527 save_LDFLAGS="$LDFLAGS"
9528 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 int foo(void) {}
9532 _ACEOF
9533 if ac_fn_c_try_link "$LINENO"; then :
9534 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'
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LDFLAGS="$save_LDFLAGS"
9540 else
9541 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'
9542 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'
9544 archive_cmds_need_lc='no'
9545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546 hardcode_libdir_separator=:
9547 inherit_rpath=yes
9548 link_all_deplibs=yes
9551 netbsd*)
9552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9554 else
9555 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9557 hardcode_libdir_flag_spec='-R$libdir'
9558 hardcode_direct=yes
9559 hardcode_shlibpath_var=no
9562 newsos6)
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_direct=yes
9565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566 hardcode_libdir_separator=:
9567 hardcode_shlibpath_var=no
9570 *nto* | *qnx*)
9573 openbsd*)
9574 if test -f /usr/libexec/ld.so; then
9575 hardcode_direct=yes
9576 hardcode_shlibpath_var=no
9577 hardcode_direct_absolute=yes
9578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9582 export_dynamic_flag_spec='${wl}-E'
9583 else
9584 case $host_os in
9585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9587 hardcode_libdir_flag_spec='-R$libdir'
9590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9593 esac
9595 else
9596 ld_shlibs=no
9600 os2*)
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_minus_L=yes
9603 allow_undefined_flag=unsupported
9604 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'
9605 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608 osf3*)
9609 if test "$GCC" = yes; then
9610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9611 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'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
9614 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'
9616 archive_cmds_need_lc='no'
9617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9618 hardcode_libdir_separator=:
9621 osf4* | osf5*) # as osf3* with the addition of -msym flag
9622 if test "$GCC" = yes; then
9623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9624 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'
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 else
9627 allow_undefined_flag=' -expect_unresolved \*'
9628 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'
9629 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~
9630 $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'
9632 # Both c and cxx compiler support -rpath directly
9633 hardcode_libdir_flag_spec='-rpath $libdir'
9635 archive_cmds_need_lc='no'
9636 hardcode_libdir_separator=:
9639 solaris*)
9640 no_undefined_flag=' -z defs'
9641 if test "$GCC" = yes; then
9642 wlarc='${wl}'
9643 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9646 else
9647 case `$CC -V 2>&1` in
9648 *"Compilers 5.0"*)
9649 wlarc=''
9650 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9655 wlarc='${wl}'
9656 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9660 esac
9662 hardcode_libdir_flag_spec='-R$libdir'
9663 hardcode_shlibpath_var=no
9664 case $host_os in
9665 solaris2.[0-5] | solaris2.[0-5].*) ;;
9667 # The compiler driver will combine and reorder linker options,
9668 # but understands `-z linker_flag'. GCC discards it without `$wl',
9669 # but is careful enough not to reorder.
9670 # Supported since Solaris 2.6 (maybe 2.5.1?)
9671 if test "$GCC" = yes; then
9672 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9673 else
9674 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9677 esac
9678 link_all_deplibs=yes
9681 sunos4*)
9682 if test "x$host_vendor" = xsequent; then
9683 # Use $CC to link under sequent, because it throws in some extra .o
9684 # files that make .init and .fini sections work.
9685 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9686 else
9687 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_direct=yes
9691 hardcode_minus_L=yes
9692 hardcode_shlibpath_var=no
9695 sysv4)
9696 case $host_vendor in
9697 sni)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_direct=yes # is this really true???
9701 siemens)
9702 ## LD is ld it makes a PLAMLIB
9703 ## CC just makes a GrossModule.
9704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9705 reload_cmds='$CC -r -o $output$reload_objs'
9706 hardcode_direct=no
9708 motorola)
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9712 esac
9713 runpath_var='LD_RUN_PATH'
9714 hardcode_shlibpath_var=no
9717 sysv4.3*)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_shlibpath_var=no
9720 export_dynamic_flag_spec='-Bexport'
9723 sysv4*MP*)
9724 if test -d /usr/nec; then
9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_shlibpath_var=no
9727 runpath_var=LD_RUN_PATH
9728 hardcode_runpath_var=yes
9729 ld_shlibs=yes
9733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9734 no_undefined_flag='${wl}-z,text'
9735 archive_cmds_need_lc=no
9736 hardcode_shlibpath_var=no
9737 runpath_var='LD_RUN_PATH'
9739 if test "$GCC" = yes; then
9740 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 else
9743 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 sysv5* | sco3.2v5* | sco5v6*)
9749 # Note: We can NOT use -z defs as we might desire, because we do not
9750 # link with -lc, and that would cause any symbols used from libc to
9751 # always be unresolved, which means just about no library would
9752 # ever link correctly. If we're not using GNU ld we use -z text
9753 # though, which does catch some bad symbols but isn't as heavy-handed
9754 # as -z defs.
9755 no_undefined_flag='${wl}-z,text'
9756 allow_undefined_flag='${wl}-z,nodefs'
9757 archive_cmds_need_lc=no
9758 hardcode_shlibpath_var=no
9759 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9760 hardcode_libdir_separator=':'
9761 link_all_deplibs=yes
9762 export_dynamic_flag_spec='${wl}-Bexport'
9763 runpath_var='LD_RUN_PATH'
9765 if test "$GCC" = yes; then
9766 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 else
9769 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 uts4*)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_shlibpath_var=no
9781 ld_shlibs=no
9783 esac
9785 if test x$host_vendor = xsni; then
9786 case $host in
9787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9788 export_dynamic_flag_spec='${wl}-Blargedynsym'
9790 esac
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9795 $as_echo "$ld_shlibs" >&6; }
9796 test "$ld_shlibs" = no && can_build_shared=no
9798 with_gnu_ld=$with_gnu_ld
9815 # Do we need to explicitly link libc?
9817 case "x$archive_cmds_need_lc" in
9818 x|xyes)
9819 # Assume -lc should be added
9820 archive_cmds_need_lc=yes
9822 if test "$enable_shared" = yes && test "$GCC" = yes; then
9823 case $archive_cmds in
9824 *'~'*)
9825 # FIXME: we may have to deal with multi-command sequences.
9827 '$CC '*)
9828 # Test whether the compiler implicitly links with -lc since on some
9829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9830 # to ld, don't add -lc before -lgcc.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9833 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 $RM conftest*
9837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9840 (eval $ac_compile) 2>&5
9841 ac_status=$?
9842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9843 test $ac_status = 0; } 2>conftest.err; then
9844 soname=conftest
9845 lib=conftest
9846 libobjs=conftest.$ac_objext
9847 deplibs=
9848 wl=$lt_prog_compiler_wl
9849 pic_flag=$lt_prog_compiler_pic
9850 compiler_flags=-v
9851 linker_flags=-v
9852 verstring=
9853 output_objdir=.
9854 libname=conftest
9855 lt_save_allow_undefined_flag=$allow_undefined_flag
9856 allow_undefined_flag=
9857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9858 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9859 ac_status=$?
9860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861 test $ac_status = 0; }
9862 then
9863 lt_cv_archive_cmds_need_lc=no
9864 else
9865 lt_cv_archive_cmds_need_lc=yes
9867 allow_undefined_flag=$lt_save_allow_undefined_flag
9868 else
9869 cat conftest.err 1>&5
9871 $RM conftest*
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9875 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9876 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9878 esac
9881 esac
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10040 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10042 if test "$GCC" = yes; then
10043 case $host_os in
10044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10045 *) lt_awk_arg="/^libraries:/" ;;
10046 esac
10047 case $host_os in
10048 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10049 *) lt_sed_strip_eq="s,=/,/,g" ;;
10050 esac
10051 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10052 case $lt_search_path_spec in
10053 *\;*)
10054 # if the path contains ";" then we assume it to be the separator
10055 # otherwise default to the standard path separator (i.e. ":") - it is
10056 # assumed that no part of a normal pathname contains ";" but that should
10057 # okay in the real world where ";" in dirpaths is itself problematic.
10058 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10063 esac
10064 # Ok, now we have the path, separated by spaces, we can step through it
10065 # and add multilib dir if necessary.
10066 lt_tmp_lt_search_path_spec=
10067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10068 for lt_sys_path in $lt_search_path_spec; do
10069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10071 else
10072 test -d "$lt_sys_path" && \
10073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10075 done
10076 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10077 BEGIN {RS=" "; FS="/|\n";} {
10078 lt_foo="";
10079 lt_count=0;
10080 for (lt_i = NF; lt_i > 0; lt_i--) {
10081 if ($lt_i != "" && $lt_i != ".") {
10082 if ($lt_i == "..") {
10083 lt_count++;
10084 } else {
10085 if (lt_count == 0) {
10086 lt_foo="/" $lt_i lt_foo;
10087 } else {
10088 lt_count--;
10093 if (lt_foo != "") { lt_freq[lt_foo]++; }
10094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10096 # AWK program above erroneously prepends '/' to C:/dos/paths
10097 # for these hosts.
10098 case $host_os in
10099 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10100 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10101 esac
10102 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10103 else
10104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10106 library_names_spec=
10107 libname_spec='lib$name'
10108 soname_spec=
10109 shrext_cmds=".so"
10110 postinstall_cmds=
10111 postuninstall_cmds=
10112 finish_cmds=
10113 finish_eval=
10114 shlibpath_var=
10115 shlibpath_overrides_runpath=unknown
10116 version_type=none
10117 dynamic_linker="$host_os ld.so"
10118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10119 need_lib_prefix=unknown
10120 hardcode_into_libs=no
10122 # when you set need_version to no, make sure it does not cause -set_version
10123 # flags to be left without arguments
10124 need_version=unknown
10126 case $host_os in
10127 aix3*)
10128 version_type=linux
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10130 shlibpath_var=LIBPATH
10132 # AIX 3 has no versioning support, so we append a major version to the name.
10133 soname_spec='${libname}${release}${shared_ext}$major'
10136 aix[4-9]*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 hardcode_into_libs=yes
10141 if test "$host_cpu" = ia64; then
10142 # AIX 5 supports IA64
10143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 else
10146 # With GCC up to 2.95.x, collect2 would create an import file
10147 # for dependence libraries. The import file would start with
10148 # the line `#! .'. This would cause the generated library to
10149 # depend on `.', always an invalid library. This was fixed in
10150 # development snapshots of GCC prior to 3.0.
10151 case $host_os in
10152 aix4 | aix4.[01] | aix4.[01].*)
10153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10154 echo ' yes '
10155 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10157 else
10158 can_build_shared=no
10161 esac
10162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10163 # soname into executable. Probably we can add versioning support to
10164 # collect2, so additional links can be useful in future.
10165 if test "$aix_use_runtimelinking" = yes; then
10166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10167 # instead of lib<name>.a to let people know that these are not
10168 # typical AIX shared libraries.
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 else
10171 # We preserve .a as extension for shared libraries through AIX4.2
10172 # and later when we are not doing run time linking.
10173 library_names_spec='${libname}${release}.a $libname.a'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LIBPATH
10180 amigaos*)
10181 case $host_cpu in
10182 powerpc)
10183 # Since July 2007 AmigaOS4 officially supports .so libraries.
10184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 m68k)
10188 library_names_spec='$libname.ixlibrary $libname.a'
10189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10190 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'
10192 esac
10195 beos*)
10196 library_names_spec='${libname}${shared_ext}'
10197 dynamic_linker="$host_os ld.so"
10198 shlibpath_var=LIBRARY_PATH
10201 bsdi[45]*)
10202 version_type=linux
10203 need_version=no
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10210 # the default ld.so.conf also contains /usr/contrib/lib and
10211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10212 # libtool to hard-code these into programs
10215 cygwin* | mingw* | pw32* | cegcc*)
10216 version_type=windows
10217 shrext_cmds=".dll"
10218 need_version=no
10219 need_lib_prefix=no
10221 case $GCC,$host_os in
10222 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10223 library_names_spec='$libname.dll.a'
10224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10225 postinstall_cmds='base_file=`basename \${file}`~
10226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10227 dldir=$destdir/`dirname \$dlpath`~
10228 test -d \$dldir || mkdir -p \$dldir~
10229 $install_prog $dir/$dlname \$dldir/$dlname~
10230 chmod a+x \$dldir/$dlname~
10231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10235 dlpath=$dir/\$dldll~
10236 $RM \$dlpath'
10237 shlibpath_overrides_runpath=yes
10239 case $host_os in
10240 cygwin*)
10241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10246 mingw* | cegcc*)
10247 # MinGW DLLs use traditional 'lib' prefix
10248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10250 pw32*)
10251 # pw32 DLLs use 'pw' prefix rather than 'lib'
10252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254 esac
10258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10260 esac
10261 dynamic_linker='Win32 ld.exe'
10262 # FIXME: first we should search . and the directory the executable is in
10263 shlibpath_var=PATH
10266 darwin* | rhapsody*)
10267 dynamic_linker="$host_os dyld"
10268 version_type=darwin
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10272 soname_spec='${libname}${release}${major}$shared_ext'
10273 shlibpath_overrides_runpath=yes
10274 shlibpath_var=DYLD_LIBRARY_PATH
10275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10281 dgux*)
10282 version_type=linux
10283 need_lib_prefix=no
10284 need_version=no
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 shlibpath_var=LD_LIBRARY_PATH
10290 freebsd* | dragonfly*)
10291 # DragonFly does not have aout. When/if they implement a new
10292 # versioning mechanism, adjust this.
10293 if test -x /usr/bin/objformat; then
10294 objformat=`/usr/bin/objformat`
10295 else
10296 case $host_os in
10297 freebsd[23].*) objformat=aout ;;
10298 *) objformat=elf ;;
10299 esac
10301 version_type=freebsd-$objformat
10302 case $version_type in
10303 freebsd-elf*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305 need_version=no
10306 need_lib_prefix=no
10308 freebsd-*)
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10310 need_version=yes
10312 esac
10313 shlibpath_var=LD_LIBRARY_PATH
10314 case $host_os in
10315 freebsd2.*)
10316 shlibpath_overrides_runpath=yes
10318 freebsd3.[01]* | freebsdelf3.[01]*)
10319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10327 *) # from 4.6 on, and DragonFly
10328 shlibpath_overrides_runpath=yes
10329 hardcode_into_libs=yes
10331 esac
10334 gnu*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 hardcode_into_libs=yes
10344 haiku*)
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 dynamic_linker="$host_os runtime_loader"
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10354 hardcode_into_libs=yes
10357 hpux9* | hpux10* | hpux11*)
10358 # Give a soname corresponding to the major version so that dld.sl refuses to
10359 # link against other versions.
10360 version_type=sunos
10361 need_lib_prefix=no
10362 need_version=no
10363 case $host_cpu in
10364 ia64*)
10365 shrext_cmds='.so'
10366 hardcode_into_libs=yes
10367 dynamic_linker="$host_os dld.so"
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 if test "X$HPUX_IA64_MODE" = X32; then
10373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10374 else
10375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10379 hppa*64*)
10380 shrext_cmds='.sl'
10381 hardcode_into_libs=yes
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391 shrext_cmds='.sl'
10392 dynamic_linker="$host_os dld.sl"
10393 shlibpath_var=SHLIB_PATH
10394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10398 esac
10399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10400 postinstall_cmds='chmod 555 $lib'
10401 # or fails outright, so override atomically:
10402 install_override_mode=555
10405 interix[3-9]*)
10406 version_type=linux
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 shlibpath_overrides_runpath=no
10414 hardcode_into_libs=yes
10417 irix5* | irix6* | nonstopux*)
10418 case $host_os in
10419 nonstopux*) version_type=nonstopux ;;
10421 if test "$lt_cv_prog_gnu_ld" = yes; then
10422 version_type=linux
10423 else
10424 version_type=irix
10425 fi ;;
10426 esac
10427 need_lib_prefix=no
10428 need_version=no
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10431 case $host_os in
10432 irix5* | nonstopux*)
10433 libsuff= shlibsuff=
10436 case $LD in # libtool.m4 will add one of these switches to LD
10437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10438 libsuff= shlibsuff= libmagic=32-bit;;
10439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10440 libsuff=32 shlibsuff=N32 libmagic=N32;;
10441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10443 *) libsuff= shlibsuff= libmagic=never-match;;
10444 esac
10446 esac
10447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10448 shlibpath_overrides_runpath=no
10449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10451 hardcode_into_libs=yes
10454 # No shared lib support for Linux oldld, aout, or coff.
10455 linux*oldld* | linux*aout* | linux*coff*)
10456 dynamic_linker=no
10459 # This must be Linux ELF.
10460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10461 version_type=linux
10462 need_lib_prefix=no
10463 need_version=no
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10470 # Some binutils ld are patched to set DT_RUNPATH
10471 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 lt_cv_shlibpath_overrides_runpath=no
10475 save_LDFLAGS=$LDFLAGS
10476 save_libdir=$libdir
10477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10483 main ()
10487 return 0;
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10492 lt_cv_shlibpath_overrides_runpath=yes
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LDFLAGS=$save_LDFLAGS
10498 libdir=$save_libdir
10502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10504 # This implies no fast_install, which is unacceptable.
10505 # Some rework will be needed to allow for fast_install
10506 # before this can be enabled.
10507 hardcode_into_libs=yes
10509 # Append ld.so.conf contents to the search path
10510 if test -f /etc/ld.so.conf; then
10511 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' ' '`
10512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10515 # We used to test for /lib/ld.so.1 and disable shared libraries on
10516 # powerpc, because MkLinux only supported shared libraries with the
10517 # GNU dynamic linker. Since this was broken with cross compilers,
10518 # most powerpc-linux boxes support dynamic linking these days and
10519 # people can always --disable-shared, the test was removed, and we
10520 # assume the GNU/Linux dynamic linker is in use.
10521 dynamic_linker='GNU/Linux ld.so'
10524 netbsd*)
10525 version_type=sunos
10526 need_lib_prefix=no
10527 need_version=no
10528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 dynamic_linker='NetBSD (a.out) ld.so'
10532 else
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 dynamic_linker='NetBSD ld.elf_so'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 shlibpath_overrides_runpath=yes
10539 hardcode_into_libs=yes
10542 newsos6)
10543 version_type=linux
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10549 *nto* | *qnx*)
10550 version_type=qnx
10551 need_lib_prefix=no
10552 need_version=no
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=no
10557 hardcode_into_libs=yes
10558 dynamic_linker='ldqnx.so'
10561 openbsd*)
10562 version_type=sunos
10563 sys_lib_dlsearch_path_spec="/usr/lib"
10564 need_lib_prefix=no
10565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10566 case $host_os in
10567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10568 *) need_version=no ;;
10569 esac
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10574 case $host_os in
10575 openbsd2.[89] | openbsd2.[89].*)
10576 shlibpath_overrides_runpath=no
10579 shlibpath_overrides_runpath=yes
10581 esac
10582 else
10583 shlibpath_overrides_runpath=yes
10587 os2*)
10588 libname_spec='$name'
10589 shrext_cmds=".dll"
10590 need_lib_prefix=no
10591 library_names_spec='$libname${shared_ext} $libname.a'
10592 dynamic_linker='OS/2 ld.exe'
10593 shlibpath_var=LIBPATH
10596 osf3* | osf4* | osf5*)
10597 version_type=osf
10598 need_lib_prefix=no
10599 need_version=no
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10607 rdos*)
10608 dynamic_linker=no
10611 solaris*)
10612 version_type=linux
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=yes
10619 hardcode_into_libs=yes
10620 # ldd complains unless libraries are executable
10621 postinstall_cmds='chmod +x $lib'
10624 sunos4*)
10625 version_type=sunos
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 if test "$with_gnu_ld" = yes; then
10631 need_lib_prefix=no
10633 need_version=yes
10636 sysv4 | sysv4.3*)
10637 version_type=linux
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 case $host_vendor in
10642 sni)
10643 shlibpath_overrides_runpath=no
10644 need_lib_prefix=no
10645 runpath_var=LD_RUN_PATH
10647 siemens)
10648 need_lib_prefix=no
10650 motorola)
10651 need_lib_prefix=no
10652 need_version=no
10653 shlibpath_overrides_runpath=no
10654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10656 esac
10659 sysv4*MP*)
10660 if test -d /usr/nec ;then
10661 version_type=linux
10662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10663 soname_spec='$libname${shared_ext}.$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10669 version_type=freebsd-elf
10670 need_lib_prefix=no
10671 need_version=no
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 if test "$with_gnu_ld" = yes; then
10678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10679 else
10680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10681 case $host_os in
10682 sco3.2v5*)
10683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10685 esac
10687 sys_lib_dlsearch_path_spec='/usr/lib'
10690 tpf*)
10691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10701 uts4*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10709 dynamic_linker=no
10711 esac
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10713 $as_echo "$dynamic_linker" >&6; }
10714 test "$dynamic_linker" = no && can_build_shared=no
10716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10717 if test "$GCC" = yes; then
10718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10721 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10722 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10724 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10725 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10821 hardcode_action=
10822 if test -n "$hardcode_libdir_flag_spec" ||
10823 test -n "$runpath_var" ||
10824 test "X$hardcode_automatic" = "Xyes" ; then
10826 # We can hardcode non-existent directories.
10827 if test "$hardcode_direct" != no &&
10828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10829 # have to relink, otherwise we might link with an installed library
10830 # when we should be linking with a yet-to-be-installed one
10831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10832 test "$hardcode_minus_L" != no; then
10833 # Linking always hardcodes the temporary library directory.
10834 hardcode_action=relink
10835 else
10836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10837 hardcode_action=immediate
10839 else
10840 # We cannot hardcode anything, or else we can only hardcode existing
10841 # directories.
10842 hardcode_action=unsupported
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10845 $as_echo "$hardcode_action" >&6; }
10847 if test "$hardcode_action" = relink ||
10848 test "$inherit_rpath" = yes; then
10849 # Fast installation is not supported
10850 enable_fast_install=no
10851 elif test "$shlibpath_overrides_runpath" = yes ||
10852 test "$enable_shared" = no; then
10853 # Fast installation is not necessary
10854 enable_fast_install=needless
10862 if test "x$enable_dlopen" != xyes; then
10863 enable_dlopen=unknown
10864 enable_dlopen_self=unknown
10865 enable_dlopen_self_static=unknown
10866 else
10867 lt_cv_dlopen=no
10868 lt_cv_dlopen_libs=
10870 case $host_os in
10871 beos*)
10872 lt_cv_dlopen="load_add_on"
10873 lt_cv_dlopen_libs=
10874 lt_cv_dlopen_self=yes
10877 mingw* | pw32* | cegcc*)
10878 lt_cv_dlopen="LoadLibrary"
10879 lt_cv_dlopen_libs=
10882 cygwin*)
10883 lt_cv_dlopen="dlopen"
10884 lt_cv_dlopen_libs=
10887 darwin*)
10888 # if libdl is installed we need to link against it
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893 else
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-ldl $LIBS"
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10899 /* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10902 #ifdef __cplusplus
10903 extern "C"
10904 #endif
10905 char dlopen ();
10907 main ()
10909 return dlopen ();
10911 return 0;
10913 _ACEOF
10914 if ac_fn_c_try_link "$LINENO"; then :
10915 ac_cv_lib_dl_dlopen=yes
10916 else
10917 ac_cv_lib_dl_dlopen=no
10919 rm -f core conftest.err conftest.$ac_objext \
10920 conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10925 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10927 else
10929 lt_cv_dlopen="dyld"
10930 lt_cv_dlopen_libs=
10931 lt_cv_dlopen_self=yes
10938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10939 if test "x$ac_cv_func_shl_load" = x""yes; then :
10940 lt_cv_dlopen="shl_load"
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10944 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-ldld $LIBS"
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955 #ifdef __cplusplus
10956 extern "C"
10957 #endif
10958 char shl_load ();
10960 main ()
10962 return shl_load ();
10964 return 0;
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_lib_dld_shl_load=yes
10969 else
10970 ac_cv_lib_dld_shl_load=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10978 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10980 else
10981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10982 if test "x$ac_cv_func_dlopen" = x""yes; then :
10983 lt_cv_dlopen="dlopen"
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldl $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char dlopen ();
11003 main ()
11005 return dlopen ();
11007 return 0;
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 ac_cv_lib_dl_dlopen=yes
11012 else
11013 ac_cv_lib_dl_dlopen=no
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11021 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11025 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11026 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-lsvld $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char dlopen ();
11042 main ()
11044 return dlopen ();
11046 return 0;
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_svld_dlopen=yes
11051 else
11052 ac_cv_lib_svld_dlopen=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11059 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11060 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11062 else
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11064 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 ac_check_lib_save_LIBS=$LIBS
11069 LIBS="-ldld $LIBS"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char dld_link ();
11081 main ()
11083 return dld_link ();
11085 return 0;
11087 _ACEOF
11088 if ac_fn_c_try_link "$LINENO"; then :
11089 ac_cv_lib_dld_dld_link=yes
11090 else
11091 ac_cv_lib_dld_dld_link=no
11093 rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11098 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11099 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11100 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11119 esac
11121 if test "x$lt_cv_dlopen" != xno; then
11122 enable_dlopen=yes
11123 else
11124 enable_dlopen=no
11127 case $lt_cv_dlopen in
11128 dlopen)
11129 save_CPPFLAGS="$CPPFLAGS"
11130 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11132 save_LDFLAGS="$LDFLAGS"
11133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11135 save_LIBS="$LIBS"
11136 LIBS="$lt_cv_dlopen_libs $LIBS"
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11139 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11140 if test "${lt_cv_dlopen_self+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 if test "$cross_compiling" = yes; then :
11144 lt_cv_dlopen_self=cross
11145 else
11146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11147 lt_status=$lt_dlunknown
11148 cat > conftest.$ac_ext <<_LT_EOF
11149 #line 11149 "configure"
11150 #include "confdefs.h"
11152 #if HAVE_DLFCN_H
11153 #include <dlfcn.h>
11154 #endif
11156 #include <stdio.h>
11158 #ifdef RTLD_GLOBAL
11159 # define LT_DLGLOBAL RTLD_GLOBAL
11160 #else
11161 # ifdef DL_GLOBAL
11162 # define LT_DLGLOBAL DL_GLOBAL
11163 # else
11164 # define LT_DLGLOBAL 0
11165 # endif
11166 #endif
11168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11169 find out it does not work in some platform. */
11170 #ifndef LT_DLLAZY_OR_NOW
11171 # ifdef RTLD_LAZY
11172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11173 # else
11174 # ifdef DL_LAZY
11175 # define LT_DLLAZY_OR_NOW DL_LAZY
11176 # else
11177 # ifdef RTLD_NOW
11178 # define LT_DLLAZY_OR_NOW RTLD_NOW
11179 # else
11180 # ifdef DL_NOW
11181 # define LT_DLLAZY_OR_NOW DL_NOW
11182 # else
11183 # define LT_DLLAZY_OR_NOW 0
11184 # endif
11185 # endif
11186 # endif
11187 # endif
11188 #endif
11190 /* When -fvisbility=hidden is used, assume the code has been annotated
11191 correspondingly for the symbols needed. */
11192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11193 void fnord () __attribute__((visibility("default")));
11194 #endif
11196 void fnord () { int i=42; }
11197 int main ()
11199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200 int status = $lt_dlunknown;
11202 if (self)
11204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 else
11207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11208 else puts (dlerror ());
11210 /* dlclose (self); */
11212 else
11213 puts (dlerror ());
11215 return status;
11217 _LT_EOF
11218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11219 (eval $ac_link) 2>&5
11220 ac_status=$?
11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11223 (./conftest; exit; ) >&5 2>/dev/null
11224 lt_status=$?
11225 case x$lt_status in
11226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11229 esac
11230 else :
11231 # compilation failed
11232 lt_cv_dlopen_self=no
11235 rm -fr conftest*
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11240 $as_echo "$lt_cv_dlopen_self" >&6; }
11242 if test "x$lt_cv_dlopen_self" = xyes; then
11243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11245 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11246 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 if test "$cross_compiling" = yes; then :
11250 lt_cv_dlopen_self_static=cross
11251 else
11252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11253 lt_status=$lt_dlunknown
11254 cat > conftest.$ac_ext <<_LT_EOF
11255 #line 11255 "configure"
11256 #include "confdefs.h"
11258 #if HAVE_DLFCN_H
11259 #include <dlfcn.h>
11260 #endif
11262 #include <stdio.h>
11264 #ifdef RTLD_GLOBAL
11265 # define LT_DLGLOBAL RTLD_GLOBAL
11266 #else
11267 # ifdef DL_GLOBAL
11268 # define LT_DLGLOBAL DL_GLOBAL
11269 # else
11270 # define LT_DLGLOBAL 0
11271 # endif
11272 #endif
11274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11275 find out it does not work in some platform. */
11276 #ifndef LT_DLLAZY_OR_NOW
11277 # ifdef RTLD_LAZY
11278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11279 # else
11280 # ifdef DL_LAZY
11281 # define LT_DLLAZY_OR_NOW DL_LAZY
11282 # else
11283 # ifdef RTLD_NOW
11284 # define LT_DLLAZY_OR_NOW RTLD_NOW
11285 # else
11286 # ifdef DL_NOW
11287 # define LT_DLLAZY_OR_NOW DL_NOW
11288 # else
11289 # define LT_DLLAZY_OR_NOW 0
11290 # endif
11291 # endif
11292 # endif
11293 # endif
11294 #endif
11296 /* When -fvisbility=hidden is used, assume the code has been annotated
11297 correspondingly for the symbols needed. */
11298 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11299 void fnord () __attribute__((visibility("default")));
11300 #endif
11302 void fnord () { int i=42; }
11303 int main ()
11305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11306 int status = $lt_dlunknown;
11308 if (self)
11310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11311 else
11313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11314 else puts (dlerror ());
11316 /* dlclose (self); */
11318 else
11319 puts (dlerror ());
11321 return status;
11323 _LT_EOF
11324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11325 (eval $ac_link) 2>&5
11326 ac_status=$?
11327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11329 (./conftest; exit; ) >&5 2>/dev/null
11330 lt_status=$?
11331 case x$lt_status in
11332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11335 esac
11336 else :
11337 # compilation failed
11338 lt_cv_dlopen_self_static=no
11341 rm -fr conftest*
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11346 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11349 CPPFLAGS="$save_CPPFLAGS"
11350 LDFLAGS="$save_LDFLAGS"
11351 LIBS="$save_LIBS"
11353 esac
11355 case $lt_cv_dlopen_self in
11356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11357 *) enable_dlopen_self=unknown ;;
11358 esac
11360 case $lt_cv_dlopen_self_static in
11361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11362 *) enable_dlopen_self_static=unknown ;;
11363 esac
11382 striplib=
11383 old_striplib=
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11385 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11386 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391 else
11392 # FIXME - insert some real tests, host_os isn't really good enough
11393 case $host_os in
11394 darwin*)
11395 if test -n "$STRIP" ; then
11396 striplib="$STRIP -x"
11397 old_striplib="$STRIP -S"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399 $as_echo "yes" >&6; }
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11409 esac
11423 # Report which library types will actually be built
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11427 $as_echo "$can_build_shared" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11430 $as_echo_n "checking whether to build shared libraries... " >&6; }
11431 test "$can_build_shared" = "no" && enable_shared=no
11433 # On AIX, shared libraries and static libraries use the same namespace, and
11434 # are all built from PIC.
11435 case $host_os in
11436 aix3*)
11437 test "$enable_shared" = yes && enable_static=no
11438 if test -n "$RANLIB"; then
11439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11440 postinstall_cmds='$RANLIB $lib'
11444 aix[4-9]*)
11445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11446 test "$enable_shared" = yes && enable_static=no
11449 esac
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11451 $as_echo "$enable_shared" >&6; }
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11454 $as_echo_n "checking whether to build static libraries... " >&6; }
11455 # Make sure either enable_shared or enable_static is yes.
11456 test "$enable_shared" = yes || enable_static=yes
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11458 $as_echo "$enable_static" >&6; }
11464 ac_ext=c
11465 ac_cpp='$CPP $CPPFLAGS'
11466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11470 CC="$lt_save_CC"
11472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11474 (test "X$CXX" != "Xg++"))) ; then
11475 ac_ext=cpp
11476 ac_cpp='$CXXCPP $CPPFLAGS'
11477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11481 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11482 if test -z "$CXXCPP"; then
11483 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 # Double quotes because CXXCPP needs to be expanded
11487 for CXXCPP in "$CXX -E" "/lib/cpp"
11489 ac_preproc_ok=false
11490 for ac_cxx_preproc_warn_flag in '' yes
11492 # Use a header file that comes with gcc, so configuring glibc
11493 # with a fresh cross-compiler works.
11494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 # <limits.h> exists even on freestanding compilers.
11496 # On the NeXT, cc -E runs the code through the compiler's parser,
11497 # not just through cpp. "Syntax error" is here to catch this case.
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #ifdef __STDC__
11501 # include <limits.h>
11502 #else
11503 # include <assert.h>
11504 #endif
11505 Syntax error
11506 _ACEOF
11507 if ac_fn_cxx_try_cpp "$LINENO"; then :
11509 else
11510 # Broken: fails on valid input.
11511 continue
11513 rm -f conftest.err conftest.$ac_ext
11515 # OK, works on sane cases. Now check whether nonexistent headers
11516 # can be detected and how.
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <ac_nonexistent.h>
11520 _ACEOF
11521 if ac_fn_cxx_try_cpp "$LINENO"; then :
11522 # Broken: success on invalid input.
11523 continue
11524 else
11525 # Passes both tests.
11526 ac_preproc_ok=:
11527 break
11529 rm -f conftest.err conftest.$ac_ext
11531 done
11532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11533 rm -f conftest.err conftest.$ac_ext
11534 if $ac_preproc_ok; then :
11535 break
11538 done
11539 ac_cv_prog_CXXCPP=$CXXCPP
11542 CXXCPP=$ac_cv_prog_CXXCPP
11543 else
11544 ac_cv_prog_CXXCPP=$CXXCPP
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11547 $as_echo "$CXXCPP" >&6; }
11548 ac_preproc_ok=false
11549 for ac_cxx_preproc_warn_flag in '' yes
11551 # Use a header file that comes with gcc, so configuring glibc
11552 # with a fresh cross-compiler works.
11553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554 # <limits.h> exists even on freestanding compilers.
11555 # On the NeXT, cc -E runs the code through the compiler's parser,
11556 # not just through cpp. "Syntax error" is here to catch this case.
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #ifdef __STDC__
11560 # include <limits.h>
11561 #else
11562 # include <assert.h>
11563 #endif
11564 Syntax error
11565 _ACEOF
11566 if ac_fn_cxx_try_cpp "$LINENO"; then :
11568 else
11569 # Broken: fails on valid input.
11570 continue
11572 rm -f conftest.err conftest.$ac_ext
11574 # OK, works on sane cases. Now check whether nonexistent headers
11575 # can be detected and how.
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <ac_nonexistent.h>
11579 _ACEOF
11580 if ac_fn_cxx_try_cpp "$LINENO"; then :
11581 # Broken: success on invalid input.
11582 continue
11583 else
11584 # Passes both tests.
11585 ac_preproc_ok=:
11586 break
11588 rm -f conftest.err conftest.$ac_ext
11590 done
11591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11592 rm -f conftest.err conftest.$ac_ext
11593 if $ac_preproc_ok; then :
11595 else
11596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11598 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11599 See \`config.log' for more details." "$LINENO" 5; }
11602 ac_ext=c
11603 ac_cpp='$CPP $CPPFLAGS'
11604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11608 else
11609 _lt_caught_CXX_error=yes
11612 ac_ext=cpp
11613 ac_cpp='$CXXCPP $CPPFLAGS'
11614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11618 archive_cmds_need_lc_CXX=no
11619 allow_undefined_flag_CXX=
11620 always_export_symbols_CXX=no
11621 archive_expsym_cmds_CXX=
11622 compiler_needs_object_CXX=no
11623 export_dynamic_flag_spec_CXX=
11624 hardcode_direct_CXX=no
11625 hardcode_direct_absolute_CXX=no
11626 hardcode_libdir_flag_spec_CXX=
11627 hardcode_libdir_flag_spec_ld_CXX=
11628 hardcode_libdir_separator_CXX=
11629 hardcode_minus_L_CXX=no
11630 hardcode_shlibpath_var_CXX=unsupported
11631 hardcode_automatic_CXX=no
11632 inherit_rpath_CXX=no
11633 module_cmds_CXX=
11634 module_expsym_cmds_CXX=
11635 link_all_deplibs_CXX=unknown
11636 old_archive_cmds_CXX=$old_archive_cmds
11637 reload_flag_CXX=$reload_flag
11638 reload_cmds_CXX=$reload_cmds
11639 no_undefined_flag_CXX=
11640 whole_archive_flag_spec_CXX=
11641 enable_shared_with_static_runtimes_CXX=no
11643 # Source file extension for C++ test sources.
11644 ac_ext=cpp
11646 # Object file extension for compiled C++ test sources.
11647 objext=o
11648 objext_CXX=$objext
11650 # No sense in running all these tests if we already determined that
11651 # the CXX compiler isn't working. Some variables (like enable_shared)
11652 # are currently assumed to apply to all compilers on this platform,
11653 # and will be corrupted by setting them based on a non-working compiler.
11654 if test "$_lt_caught_CXX_error" != yes; then
11655 # Code to be used in simple compile tests
11656 lt_simple_compile_test_code="int some_variable = 0;"
11658 # Code to be used in simple link tests
11659 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11668 # If no C compiler was specified, use CC.
11669 LTCC=${LTCC-"$CC"}
11671 # If no C compiler flags were specified, use CFLAGS.
11672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11674 # Allow CC to be a program name with arguments.
11675 compiler=$CC
11678 # save warnings/boilerplate of simple test code
11679 ac_outfile=conftest.$ac_objext
11680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11682 _lt_compiler_boilerplate=`cat conftest.err`
11683 $RM conftest*
11685 ac_outfile=conftest.$ac_objext
11686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11688 _lt_linker_boilerplate=`cat conftest.err`
11689 $RM -r conftest*
11692 # Allow CC to be a program name with arguments.
11693 lt_save_CC=$CC
11694 lt_save_LD=$LD
11695 lt_save_GCC=$GCC
11696 GCC=$GXX
11697 lt_save_with_gnu_ld=$with_gnu_ld
11698 lt_save_path_LD=$lt_cv_path_LD
11699 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11700 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11701 else
11702 $as_unset lt_cv_prog_gnu_ld
11704 if test -n "${lt_cv_path_LDCXX+set}"; then
11705 lt_cv_path_LD=$lt_cv_path_LDCXX
11706 else
11707 $as_unset lt_cv_path_LD
11709 test -z "${LDCXX+set}" || LD=$LDCXX
11710 CC=${CXX-"c++"}
11711 compiler=$CC
11712 compiler_CXX=$CC
11713 for cc_temp in $compiler""; do
11714 case $cc_temp in
11715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11717 \-*) ;;
11718 *) break;;
11719 esac
11720 done
11721 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11724 if test -n "$compiler"; then
11725 # We don't want -fno-exception when compiling C++ code, so set the
11726 # no_builtin_flag separately
11727 if test "$GXX" = yes; then
11728 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11729 else
11730 lt_prog_compiler_no_builtin_flag_CXX=
11733 if test "$GXX" = yes; then
11734 # Set up default GNU C++ configuration
11738 # Check whether --with-gnu-ld was given.
11739 if test "${with_gnu_ld+set}" = set; then :
11740 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11741 else
11742 with_gnu_ld=no
11745 ac_prog=ld
11746 if test "$GCC" = yes; then
11747 # Check if gcc -print-prog-name=ld gives a path.
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11749 $as_echo_n "checking for ld used by $CC... " >&6; }
11750 case $host in
11751 *-*-mingw*)
11752 # gcc leaves a trailing carriage return which upsets mingw
11753 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11755 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11756 esac
11757 case $ac_prog in
11758 # Accept absolute paths.
11759 [\\/]* | ?:[\\/]*)
11760 re_direlt='/[^/][^/]*/\.\./'
11761 # Canonicalize the pathname of ld
11762 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11763 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11764 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11765 done
11766 test -z "$LD" && LD="$ac_prog"
11769 # If it fails, then pretend we aren't using GCC.
11770 ac_prog=ld
11773 # If it is relative, then search for the first ld in PATH.
11774 with_gnu_ld=unknown
11776 esac
11777 elif test "$with_gnu_ld" = yes; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11779 $as_echo_n "checking for GNU ld... " >&6; }
11780 else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11782 $as_echo_n "checking for non-GNU ld... " >&6; }
11784 if test "${lt_cv_path_LD+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -z "$LD"; then
11788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11789 for ac_dir in $PATH; do
11790 IFS="$lt_save_ifs"
11791 test -z "$ac_dir" && ac_dir=.
11792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11793 lt_cv_path_LD="$ac_dir/$ac_prog"
11794 # Check to see if the program is GNU ld. I'd rather use --version,
11795 # but apparently some variants of GNU ld only accept -v.
11796 # Break only if it was the GNU/non-GNU ld that we prefer.
11797 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11798 *GNU* | *'with BFD'*)
11799 test "$with_gnu_ld" != no && break
11802 test "$with_gnu_ld" != yes && break
11804 esac
11806 done
11807 IFS="$lt_save_ifs"
11808 else
11809 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11813 LD="$lt_cv_path_LD"
11814 if test -n "$LD"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11816 $as_echo "$LD" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11821 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11824 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11828 case `$LD -v 2>&1 </dev/null` in
11829 *GNU* | *'with BFD'*)
11830 lt_cv_prog_gnu_ld=yes
11833 lt_cv_prog_gnu_ld=no
11835 esac
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11838 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11839 with_gnu_ld=$lt_cv_prog_gnu_ld
11847 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11848 # archiving commands below assume that GNU ld is being used.
11849 if test "$with_gnu_ld" = yes; then
11850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11851 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11856 # If archive_cmds runs LD, not CC, wlarc should be empty
11857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11858 # investigate it a little bit more. (MM)
11859 wlarc='${wl}'
11861 # ancient GNU ld didn't support --whole-archive et. al.
11862 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11863 $GREP 'no-whole-archive' > /dev/null; then
11864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11865 else
11866 whole_archive_flag_spec_CXX=
11868 else
11869 with_gnu_ld=no
11870 wlarc=
11872 # A generic and very simple default shared library creation
11873 # command for GNU C++ for the case where it uses the native
11874 # linker, instead of GNU ld. If possible, this setting should
11875 # overridden to take advantage of the native linker features on
11876 # the platform it is being used on.
11877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11880 # Commands to make compiler produce verbose output that lists
11881 # what "hidden" libraries, object files and flags are used when
11882 # linking a shared library.
11883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11885 else
11886 GXX=no
11887 with_gnu_ld=no
11888 wlarc=
11891 # PORTME: fill in a description of your system's C++ link characteristics
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11894 ld_shlibs_CXX=yes
11895 case $host_os in
11896 aix3*)
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11900 aix[4-9]*)
11901 if test "$host_cpu" = ia64; then
11902 # On IA64, the linker does run time linking by default, so we don't
11903 # have to do anything special.
11904 aix_use_runtimelinking=no
11905 exp_sym_flag='-Bexport'
11906 no_entry_flag=""
11907 else
11908 aix_use_runtimelinking=no
11910 # Test if we are trying to use run time linking or normal
11911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11912 # need to do runtime linking.
11913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11914 for ld_flag in $LDFLAGS; do
11915 case $ld_flag in
11916 *-brtl*)
11917 aix_use_runtimelinking=yes
11918 break
11920 esac
11921 done
11923 esac
11925 exp_sym_flag='-bexport'
11926 no_entry_flag='-bnoentry'
11929 # When large executables or shared objects are built, AIX ld can
11930 # have problems creating the table of contents. If linking a library
11931 # or program results in "error TOC overflow" add -mminimal-toc to
11932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11935 archive_cmds_CXX=''
11936 hardcode_direct_CXX=yes
11937 hardcode_direct_absolute_CXX=yes
11938 hardcode_libdir_separator_CXX=':'
11939 link_all_deplibs_CXX=yes
11940 file_list_spec_CXX='${wl}-f,'
11942 if test "$GXX" = yes; then
11943 case $host_os in aix4.[012]|aix4.[012].*)
11944 # We only want to do this on AIX 4.2 and lower, the check
11945 # below for broken collect2 doesn't work under 4.3+
11946 collect2name=`${CC} -print-prog-name=collect2`
11947 if test -f "$collect2name" &&
11948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11949 then
11950 # We have reworked collect2
11952 else
11953 # We have old collect2
11954 hardcode_direct_CXX=unsupported
11955 # It fails to find uninstalled libraries when the uninstalled
11956 # path is not listed in the libpath. Setting hardcode_minus_L
11957 # to unsupported forces relinking
11958 hardcode_minus_L_CXX=yes
11959 hardcode_libdir_flag_spec_CXX='-L$libdir'
11960 hardcode_libdir_separator_CXX=
11962 esac
11963 shared_flag='-shared'
11964 if test "$aix_use_runtimelinking" = yes; then
11965 shared_flag="$shared_flag "'${wl}-G'
11967 else
11968 # not using gcc
11969 if test "$host_cpu" = ia64; then
11970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11971 # chokes on -Wl,-G. The following line is correct:
11972 shared_flag='-G'
11973 else
11974 if test "$aix_use_runtimelinking" = yes; then
11975 shared_flag='${wl}-G'
11976 else
11977 shared_flag='${wl}-bM:SRE'
11982 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11983 # It seems that -bexpall does not export symbols beginning with
11984 # underscore (_), so it is better to generate a list of symbols to
11985 # export.
11986 always_export_symbols_CXX=yes
11987 if test "$aix_use_runtimelinking" = yes; then
11988 # Warning - without using the other runtime loading flags (-brtl),
11989 # -berok will link without error, but may produce a broken library.
11990 allow_undefined_flag_CXX='-berok'
11991 # Determine the default libpath from the value encoded in an empty
11992 # executable.
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11997 main ()
12001 return 0;
12003 _ACEOF
12004 if ac_fn_cxx_try_link "$LINENO"; then :
12006 lt_aix_libpath_sed='
12007 /Import File Strings/,/^$/ {
12008 /^0/ {
12009 s/^0 *\(.*\)$/\1/
12013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12014 # Check for a 64-bit object if we didn't find anything.
12015 if test -z "$aix_libpath"; then
12016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12025 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"
12026 else
12027 if test "$host_cpu" = ia64; then
12028 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12029 allow_undefined_flag_CXX="-z nodefs"
12030 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"
12031 else
12032 # Determine the default libpath from the value encoded in an
12033 # empty executable.
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12038 main ()
12042 return 0;
12044 _ACEOF
12045 if ac_fn_cxx_try_link "$LINENO"; then :
12047 lt_aix_libpath_sed='
12048 /Import File Strings/,/^$/ {
12049 /^0/ {
12050 s/^0 *\(.*\)$/\1/
12054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12055 # Check for a 64-bit object if we didn't find anything.
12056 if test -z "$aix_libpath"; then
12057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12060 rm -f core conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12064 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12065 # Warning - without using the other run time loading flags,
12066 # -berok will link without error, but may produce a broken library.
12067 no_undefined_flag_CXX=' ${wl}-bernotok'
12068 allow_undefined_flag_CXX=' ${wl}-berok'
12069 if test "$with_gnu_ld" = yes; then
12070 # We only use this code for GNU lds that support --whole-archive.
12071 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12072 else
12073 # Exported symbols can be pulled into shared objects from archives
12074 whole_archive_flag_spec_CXX='$convenience'
12076 archive_cmds_need_lc_CXX=yes
12077 # This is similar to how AIX traditionally builds its shared
12078 # libraries.
12079 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'
12084 beos*)
12085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12086 allow_undefined_flag_CXX=unsupported
12087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12088 # support --undefined. This deserves some investigation. FIXME
12089 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12090 else
12091 ld_shlibs_CXX=no
12095 chorus*)
12096 case $cc_basename in
12098 # FIXME: insert proper C++ library support
12099 ld_shlibs_CXX=no
12101 esac
12104 cygwin* | mingw* | pw32* | cegcc*)
12105 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12106 # as there is no search path for DLLs.
12107 hardcode_libdir_flag_spec_CXX='-L$libdir'
12108 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12109 allow_undefined_flag_CXX=unsupported
12110 always_export_symbols_CXX=no
12111 enable_shared_with_static_runtimes_CXX=yes
12113 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12114 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'
12115 # If the export-symbols file already is a .def file (1st line
12116 # is EXPORTS), use it as is; otherwise, prepend...
12117 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12118 cp $export_symbols $output_objdir/$soname.def;
12119 else
12120 echo EXPORTS > $output_objdir/$soname.def;
12121 cat $export_symbols >> $output_objdir/$soname.def;
12123 $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'
12124 else
12125 ld_shlibs_CXX=no
12128 darwin* | rhapsody*)
12131 archive_cmds_need_lc_CXX=no
12132 hardcode_direct_CXX=no
12133 hardcode_automatic_CXX=yes
12134 hardcode_shlibpath_var_CXX=unsupported
12135 if test "$lt_cv_ld_force_load" = "yes"; then
12136 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\"`'
12137 else
12138 whole_archive_flag_spec_CXX=''
12140 link_all_deplibs_CXX=yes
12141 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12142 case $cc_basename in
12143 ifort*) _lt_dar_can_shared=yes ;;
12144 *) _lt_dar_can_shared=$GCC ;;
12145 esac
12146 if test "$_lt_dar_can_shared" = "yes"; then
12147 output_verbose_link_cmd=func_echo_all
12148 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}"
12149 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12150 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}"
12151 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}"
12152 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12153 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}"
12154 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}"
12157 else
12158 ld_shlibs_CXX=no
12163 dgux*)
12164 case $cc_basename in
12165 ec++*)
12166 # FIXME: insert proper C++ library support
12167 ld_shlibs_CXX=no
12169 ghcx*)
12170 # Green Hills C++ Compiler
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12175 # FIXME: insert proper C++ library support
12176 ld_shlibs_CXX=no
12178 esac
12181 freebsd[12]*)
12182 # C++ shared libraries reported to be fairly broken before
12183 # switch to ELF
12184 ld_shlibs_CXX=no
12187 freebsd-elf*)
12188 archive_cmds_need_lc_CXX=no
12191 freebsd* | dragonfly*)
12192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12193 # conventions
12194 ld_shlibs_CXX=yes
12197 gnu*)
12200 haiku*)
12201 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12202 link_all_deplibs_CXX=yes
12205 hpux9*)
12206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12207 hardcode_libdir_separator_CXX=:
12208 export_dynamic_flag_spec_CXX='${wl}-E'
12209 hardcode_direct_CXX=yes
12210 hardcode_minus_L_CXX=yes # Not in the search PATH,
12211 # but as the default
12212 # location of the library.
12214 case $cc_basename in
12215 CC*)
12216 # FIXME: insert proper C++ library support
12217 ld_shlibs_CXX=no
12219 aCC*)
12220 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'
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12225 # There doesn't appear to be a way to prevent this compiler from
12226 # explicitly linking system object files so we need to strip them
12227 # from the output so that they don't get included in the library
12228 # dependencies.
12229 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"'
12232 if test "$GXX" = yes; then
12233 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'
12234 else
12235 # FIXME: insert proper C++ library support
12236 ld_shlibs_CXX=no
12239 esac
12242 hpux10*|hpux11*)
12243 if test $with_gnu_ld = no; then
12244 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12245 hardcode_libdir_separator_CXX=:
12247 case $host_cpu in
12248 hppa*64*|ia64*)
12251 export_dynamic_flag_spec_CXX='${wl}-E'
12253 esac
12255 case $host_cpu in
12256 hppa*64*|ia64*)
12257 hardcode_direct_CXX=no
12258 hardcode_shlibpath_var_CXX=no
12261 hardcode_direct_CXX=yes
12262 hardcode_direct_absolute_CXX=yes
12263 hardcode_minus_L_CXX=yes # Not in the search PATH,
12264 # but as the default
12265 # location of the library.
12267 esac
12269 case $cc_basename in
12270 CC*)
12271 # FIXME: insert proper C++ library support
12272 ld_shlibs_CXX=no
12274 aCC*)
12275 case $host_cpu in
12276 hppa*64*)
12277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12279 ia64*)
12280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12283 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12285 esac
12286 # Commands to make compiler produce verbose output that lists
12287 # what "hidden" libraries, object files and flags are used when
12288 # linking a shared library.
12290 # There doesn't appear to be a way to prevent this compiler from
12291 # explicitly linking system object files so we need to strip them
12292 # from the output so that they don't get included in the library
12293 # dependencies.
12294 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"'
12297 if test "$GXX" = yes; then
12298 if test $with_gnu_ld = no; then
12299 case $host_cpu in
12300 hppa*64*)
12301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12303 ia64*)
12304 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12307 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'
12309 esac
12311 else
12312 # FIXME: insert proper C++ library support
12313 ld_shlibs_CXX=no
12316 esac
12319 interix[3-9]*)
12320 hardcode_direct_CXX=no
12321 hardcode_shlibpath_var_CXX=no
12322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12323 export_dynamic_flag_spec_CXX='${wl}-E'
12324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12325 # Instead, shared libraries are loaded at an image base (0x10000000 by
12326 # default) and relocated if they conflict, which is a slow very memory
12327 # consuming and fragmenting process. To avoid this, we pick a random,
12328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12330 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'
12331 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'
12333 irix5* | irix6*)
12334 case $cc_basename in
12335 CC*)
12336 # SGI C++
12337 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'
12339 # Archives containing C++ object files must be created using
12340 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12341 # necessary to make sure instantiated templates are included
12342 # in the archive.
12343 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12346 if test "$GXX" = yes; then
12347 if test "$with_gnu_ld" = no; then
12348 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'
12349 else
12350 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'
12353 link_all_deplibs_CXX=yes
12355 esac
12356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12357 hardcode_libdir_separator_CXX=:
12358 inherit_rpath_CXX=yes
12361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12362 case $cc_basename in
12363 KCC*)
12364 # Kuck and Associates, Inc. (KAI) C++ Compiler
12366 # KCC will only create a shared library if the output file
12367 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12368 # to its proper name (with version) after linking.
12369 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'
12370 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'
12371 # Commands to make compiler produce verbose output that lists
12372 # what "hidden" libraries, object files and flags are used when
12373 # linking a shared library.
12375 # There doesn't appear to be a way to prevent this compiler from
12376 # explicitly linking system object files so we need to strip them
12377 # from the output so that they don't get included in the library
12378 # dependencies.
12379 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"'
12381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12384 # Archives containing C++ object files must be created using
12385 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12386 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12388 icpc* | ecpc* )
12389 # Intel C++
12390 with_gnu_ld=yes
12391 # version 8.0 and above of icpc choke on multiply defined symbols
12392 # if we add $predep_objects and $postdep_objects, however 7.1 and
12393 # earlier do not add the objects themselves.
12394 case `$CC -V 2>&1` in
12395 *"Version 7."*)
12396 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12397 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'
12399 *) # Version 8.0 or newer
12400 tmp_idyn=
12401 case $host_cpu in
12402 ia64*) tmp_idyn=' -i_dynamic';;
12403 esac
12404 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12405 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'
12407 esac
12408 archive_cmds_need_lc_CXX=no
12409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12411 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12413 pgCC* | pgcpp*)
12414 # Portland Group C++ compiler
12415 case `$CC -V` in
12416 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12417 prelink_cmds_CXX='tpldir=Template.dir~
12418 rm -rf $tpldir~
12419 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12420 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12421 old_archive_cmds_CXX='tpldir=Template.dir~
12422 rm -rf $tpldir~
12423 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12424 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12425 $RANLIB $oldlib'
12426 archive_cmds_CXX='tpldir=Template.dir~
12427 rm -rf $tpldir~
12428 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12429 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12430 archive_expsym_cmds_CXX='tpldir=Template.dir~
12431 rm -rf $tpldir~
12432 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12433 $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'
12435 *) # Version 6 and above use weak symbols
12436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12437 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'
12439 esac
12441 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12443 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'
12445 cxx*)
12446 # Compaq C++
12447 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12448 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'
12450 runpath_var=LD_RUN_PATH
12451 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12452 hardcode_libdir_separator_CXX=:
12454 # Commands to make compiler produce verbose output that lists
12455 # what "hidden" libraries, object files and flags are used when
12456 # linking a shared library.
12458 # There doesn't appear to be a way to prevent this compiler from
12459 # explicitly linking system object files so we need to strip them
12460 # from the output so that they don't get included in the library
12461 # dependencies.
12462 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'
12464 xl* | mpixl* | bgxl*)
12465 # IBM XL 8.0 on PPC, with GNU ld
12466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12468 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12469 if test "x$supports_anon_versioning" = xyes; then
12470 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12472 echo "local: *; };" >> $output_objdir/$libname.ver~
12473 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12477 case `$CC -V 2>&1 | sed 5q` in
12478 *Sun\ C*)
12479 # Sun C++ 5.9
12480 no_undefined_flag_CXX=' -zdefs'
12481 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12482 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'
12483 hardcode_libdir_flag_spec_CXX='-R$libdir'
12484 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'
12485 compiler_needs_object_CXX=yes
12487 # Not sure whether something based on
12488 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12489 # would be better.
12490 output_verbose_link_cmd='func_echo_all'
12492 # Archives containing C++ object files must be created using
12493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12494 # necessary to make sure instantiated templates are included
12495 # in the archive.
12496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12498 esac
12500 esac
12503 lynxos*)
12504 # FIXME: insert proper C++ library support
12505 ld_shlibs_CXX=no
12508 m88k*)
12509 # FIXME: insert proper C++ library support
12510 ld_shlibs_CXX=no
12513 mvs*)
12514 case $cc_basename in
12515 cxx*)
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12520 # FIXME: insert proper C++ library support
12521 ld_shlibs_CXX=no
12523 esac
12526 netbsd*)
12527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12528 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12529 wlarc=
12530 hardcode_libdir_flag_spec_CXX='-R$libdir'
12531 hardcode_direct_CXX=yes
12532 hardcode_shlibpath_var_CXX=no
12534 # Workaround some broken pre-1.5 toolchains
12535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12538 *nto* | *qnx*)
12539 ld_shlibs_CXX=yes
12542 openbsd2*)
12543 # C++ shared libraries are fairly broken
12544 ld_shlibs_CXX=no
12547 openbsd*)
12548 if test -f /usr/libexec/ld.so; then
12549 hardcode_direct_CXX=yes
12550 hardcode_shlibpath_var_CXX=no
12551 hardcode_direct_absolute_CXX=yes
12552 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12555 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12556 export_dynamic_flag_spec_CXX='${wl}-E'
12557 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12559 output_verbose_link_cmd=func_echo_all
12560 else
12561 ld_shlibs_CXX=no
12565 osf3* | osf4* | osf5*)
12566 case $cc_basename in
12567 KCC*)
12568 # Kuck and Associates, Inc. (KAI) C++ Compiler
12570 # KCC will only create a shared library if the output file
12571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12572 # to its proper name (with version) after linking.
12573 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'
12575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12576 hardcode_libdir_separator_CXX=:
12578 # Archives containing C++ object files must be created using
12579 # the KAI C++ compiler.
12580 case $host in
12581 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12582 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12583 esac
12585 RCC*)
12586 # Rational C++ 2.4.1
12587 # FIXME: insert proper C++ library support
12588 ld_shlibs_CXX=no
12590 cxx*)
12591 case $host in
12592 osf3*)
12593 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12594 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'
12595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12598 allow_undefined_flag_CXX=' -expect_unresolved \*'
12599 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'
12600 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12601 echo "-hidden">> $lib.exp~
12602 $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~
12603 $RM $lib.exp'
12604 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12606 esac
12608 hardcode_libdir_separator_CXX=:
12610 # Commands to make compiler produce verbose output that lists
12611 # what "hidden" libraries, object files and flags are used when
12612 # linking a shared library.
12614 # There doesn't appear to be a way to prevent this compiler from
12615 # explicitly linking system object files so we need to strip them
12616 # from the output so that they don't get included in the library
12617 # dependencies.
12618 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"'
12621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12623 case $host in
12624 osf3*)
12625 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'
12628 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'
12630 esac
12632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12633 hardcode_libdir_separator_CXX=:
12635 # Commands to make compiler produce verbose output that lists
12636 # what "hidden" libraries, object files and flags are used when
12637 # linking a shared library.
12638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12640 else
12641 # FIXME: insert proper C++ library support
12642 ld_shlibs_CXX=no
12645 esac
12648 psos*)
12649 # FIXME: insert proper C++ library support
12650 ld_shlibs_CXX=no
12653 sunos4*)
12654 case $cc_basename in
12655 CC*)
12656 # Sun C++ 4.x
12657 # FIXME: insert proper C++ library support
12658 ld_shlibs_CXX=no
12660 lcc*)
12661 # Lucid
12662 # FIXME: insert proper C++ library support
12663 ld_shlibs_CXX=no
12666 # FIXME: insert proper C++ library support
12667 ld_shlibs_CXX=no
12669 esac
12672 solaris*)
12673 case $cc_basename in
12674 CC*)
12675 # Sun C++ 4.2, 5.x and Centerline C++
12676 archive_cmds_need_lc_CXX=yes
12677 no_undefined_flag_CXX=' -zdefs'
12678 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12679 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12680 $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'
12682 hardcode_libdir_flag_spec_CXX='-R$libdir'
12683 hardcode_shlibpath_var_CXX=no
12684 case $host_os in
12685 solaris2.[0-5] | solaris2.[0-5].*) ;;
12687 # The compiler driver will combine and reorder linker options,
12688 # but understands `-z linker_flag'.
12689 # Supported since Solaris 2.6 (maybe 2.5.1?)
12690 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12692 esac
12693 link_all_deplibs_CXX=yes
12695 output_verbose_link_cmd='func_echo_all'
12697 # Archives containing C++ object files must be created using
12698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12699 # necessary to make sure instantiated templates are included
12700 # in the archive.
12701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12703 gcx*)
12704 # Green Hills C++ Compiler
12705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12707 # The C++ compiler must be used to create the archive.
12708 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12711 # GNU C++ compiler with Solaris linker
12712 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12713 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12714 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12715 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12717 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12719 # Commands to make compiler produce verbose output that lists
12720 # what "hidden" libraries, object files and flags are used when
12721 # linking a shared library.
12722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12723 else
12724 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12725 # platform.
12726 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12728 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12730 # Commands to make compiler produce verbose output that lists
12731 # what "hidden" libraries, object files and flags are used when
12732 # linking a shared library.
12733 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12736 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12737 case $host_os in
12738 solaris2.[0-5] | solaris2.[0-5].*) ;;
12740 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12742 esac
12745 esac
12748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12749 no_undefined_flag_CXX='${wl}-z,text'
12750 archive_cmds_need_lc_CXX=no
12751 hardcode_shlibpath_var_CXX=no
12752 runpath_var='LD_RUN_PATH'
12754 case $cc_basename in
12755 CC*)
12756 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12763 esac
12766 sysv5* | sco3.2v5* | sco5v6*)
12767 # Note: We can NOT use -z defs as we might desire, because we do not
12768 # link with -lc, and that would cause any symbols used from libc to
12769 # always be unresolved, which means just about no library would
12770 # ever link correctly. If we're not using GNU ld we use -z text
12771 # though, which does catch some bad symbols but isn't as heavy-handed
12772 # as -z defs.
12773 no_undefined_flag_CXX='${wl}-z,text'
12774 allow_undefined_flag_CXX='${wl}-z,nodefs'
12775 archive_cmds_need_lc_CXX=no
12776 hardcode_shlibpath_var_CXX=no
12777 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12778 hardcode_libdir_separator_CXX=':'
12779 link_all_deplibs_CXX=yes
12780 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12781 runpath_var='LD_RUN_PATH'
12783 case $cc_basename in
12784 CC*)
12785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12787 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12788 '"$old_archive_cmds_CXX"
12789 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12790 '"$reload_cmds_CXX"
12793 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12794 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12796 esac
12799 tandem*)
12800 case $cc_basename in
12801 NCC*)
12802 # NonStop-UX NCC 3.20
12803 # FIXME: insert proper C++ library support
12804 ld_shlibs_CXX=no
12807 # FIXME: insert proper C++ library support
12808 ld_shlibs_CXX=no
12810 esac
12813 vxworks*)
12814 # FIXME: insert proper C++ library support
12815 ld_shlibs_CXX=no
12819 # FIXME: insert proper C++ library support
12820 ld_shlibs_CXX=no
12822 esac
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12825 $as_echo "$ld_shlibs_CXX" >&6; }
12826 test "$ld_shlibs_CXX" = no && can_build_shared=no
12828 GCC_CXX="$GXX"
12829 LD_CXX="$LD"
12831 ## CAVEAT EMPTOR:
12832 ## There is no encapsulation within the following macros, do not change
12833 ## the running order or otherwise move them around unless you know exactly
12834 ## what you are doing...
12835 # Dependencies to place before and after the object being linked:
12836 predep_objects_CXX=
12837 postdep_objects_CXX=
12838 predeps_CXX=
12839 postdeps_CXX=
12840 compiler_lib_search_path_CXX=
12842 cat > conftest.$ac_ext <<_LT_EOF
12843 class Foo
12845 public:
12846 Foo (void) { a = 0; }
12847 private:
12848 int a;
12850 _LT_EOF
12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853 (eval $ac_compile) 2>&5
12854 ac_status=$?
12855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; }; then
12857 # Parse the compiler output and extract the necessary
12858 # objects, libraries and library flags.
12860 # Sentinel used to keep track of whether or not we are before
12861 # the conftest object file.
12862 pre_test_object_deps_done=no
12864 for p in `eval "$output_verbose_link_cmd"`; do
12865 case $p in
12867 -L* | -R* | -l*)
12868 # Some compilers place space between "-{L,R}" and the path.
12869 # Remove the space.
12870 if test $p = "-L" ||
12871 test $p = "-R"; then
12872 prev=$p
12873 continue
12874 else
12875 prev=
12878 if test "$pre_test_object_deps_done" = no; then
12879 case $p in
12880 -L* | -R*)
12881 # Internal compiler library paths should come after those
12882 # provided the user. The postdeps already come after the
12883 # user supplied libs so there is no need to process them.
12884 if test -z "$compiler_lib_search_path_CXX"; then
12885 compiler_lib_search_path_CXX="${prev}${p}"
12886 else
12887 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12890 # The "-l" case would never come before the object being
12891 # linked, so don't bother handling this case.
12892 esac
12893 else
12894 if test -z "$postdeps_CXX"; then
12895 postdeps_CXX="${prev}${p}"
12896 else
12897 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12902 *.$objext)
12903 # This assumes that the test object file only shows up
12904 # once in the compiler output.
12905 if test "$p" = "conftest.$objext"; then
12906 pre_test_object_deps_done=yes
12907 continue
12910 if test "$pre_test_object_deps_done" = no; then
12911 if test -z "$predep_objects_CXX"; then
12912 predep_objects_CXX="$p"
12913 else
12914 predep_objects_CXX="$predep_objects_CXX $p"
12916 else
12917 if test -z "$postdep_objects_CXX"; then
12918 postdep_objects_CXX="$p"
12919 else
12920 postdep_objects_CXX="$postdep_objects_CXX $p"
12925 *) ;; # Ignore the rest.
12927 esac
12928 done
12930 # Clean up.
12931 rm -f a.out a.exe
12932 else
12933 echo "libtool.m4: error: problem compiling CXX test program"
12936 $RM -f confest.$objext
12938 # PORTME: override above test on systems where it is broken
12939 case $host_os in
12940 interix[3-9]*)
12941 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12942 # hack all around it, let's just trust "g++" to DTRT.
12943 predep_objects_CXX=
12944 postdep_objects_CXX=
12945 postdeps_CXX=
12948 linux*)
12949 case `$CC -V 2>&1 | sed 5q` in
12950 *Sun\ C*)
12951 # Sun C++ 5.9
12953 # The more standards-conforming stlport4 library is
12954 # incompatible with the Cstd library. Avoid specifying
12955 # it if it's in CXXFLAGS. Ignore libCrun as
12956 # -library=stlport4 depends on it.
12957 case " $CXX $CXXFLAGS " in
12958 *" -library=stlport4 "*)
12959 solaris_use_stlport4=yes
12961 esac
12963 if test "$solaris_use_stlport4" != yes; then
12964 postdeps_CXX='-library=Cstd -library=Crun'
12967 esac
12970 solaris*)
12971 case $cc_basename in
12972 CC*)
12973 # The more standards-conforming stlport4 library is
12974 # incompatible with the Cstd library. Avoid specifying
12975 # it if it's in CXXFLAGS. Ignore libCrun as
12976 # -library=stlport4 depends on it.
12977 case " $CXX $CXXFLAGS " in
12978 *" -library=stlport4 "*)
12979 solaris_use_stlport4=yes
12981 esac
12983 # Adding this requires a known-good setup of shared libraries for
12984 # Sun compiler versions before 5.6, else PIC objects from an old
12985 # archive will be linked into the output, leading to subtle bugs.
12986 if test "$solaris_use_stlport4" != yes; then
12987 postdeps_CXX='-library=Cstd -library=Crun'
12990 esac
12992 esac
12995 case " $postdeps_CXX " in
12996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12997 esac
12998 compiler_lib_search_dirs_CXX=
12999 if test -n "${compiler_lib_search_path_CXX}"; then
13000 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13033 lt_prog_compiler_wl_CXX=
13034 lt_prog_compiler_pic_CXX=
13035 lt_prog_compiler_static_CXX=
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13040 # C++ specific cases for pic, static, wl, etc.
13041 if test "$GXX" = yes; then
13042 lt_prog_compiler_wl_CXX='-Wl,'
13043 lt_prog_compiler_static_CXX='-static'
13045 case $host_os in
13046 aix*)
13047 # All AIX code is PIC.
13048 if test "$host_cpu" = ia64; then
13049 # AIX 5 now supports IA64 processor
13050 lt_prog_compiler_static_CXX='-Bstatic'
13054 amigaos*)
13055 case $host_cpu in
13056 powerpc)
13057 # see comment about AmigaOS4 .so support
13058 lt_prog_compiler_pic_CXX='-fPIC'
13060 m68k)
13061 # FIXME: we need at least 68020 code to build shared libraries, but
13062 # adding the `-m68020' flag to GCC prevents building anything better,
13063 # like `-m68040'.
13064 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13066 esac
13069 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13070 # PIC is the default for these OSes.
13072 mingw* | cygwin* | os2* | pw32* | cegcc*)
13073 # This hack is so that the source file can tell whether it is being
13074 # built for inclusion in a dll (and should export symbols for example).
13075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13076 # (--disable-auto-import) libraries
13077 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13079 darwin* | rhapsody*)
13080 # PIC is the default on this platform
13081 # Common symbols not allowed in MH_DYLIB files
13082 lt_prog_compiler_pic_CXX='-fno-common'
13084 *djgpp*)
13085 # DJGPP does not support shared libraries at all
13086 lt_prog_compiler_pic_CXX=
13088 haiku*)
13089 # PIC is the default for Haiku.
13090 # The "-static" flag exists, but is broken.
13091 lt_prog_compiler_static_CXX=
13093 interix[3-9]*)
13094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13095 # Instead, we relocate shared libraries at runtime.
13097 sysv4*MP*)
13098 if test -d /usr/nec; then
13099 lt_prog_compiler_pic_CXX=-Kconform_pic
13102 hpux*)
13103 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13104 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13105 # sets the default TLS model and affects inlining.
13106 case $host_cpu in
13107 hppa*64*)
13110 lt_prog_compiler_pic_CXX='-fPIC'
13112 esac
13114 *qnx* | *nto*)
13115 # QNX uses GNU C++, but need to define -shared option too, otherwise
13116 # it will coredump.
13117 lt_prog_compiler_pic_CXX='-fPIC -shared'
13120 lt_prog_compiler_pic_CXX='-fPIC'
13122 esac
13123 else
13124 case $host_os in
13125 aix[4-9]*)
13126 # All AIX code is PIC.
13127 if test "$host_cpu" = ia64; then
13128 # AIX 5 now supports IA64 processor
13129 lt_prog_compiler_static_CXX='-Bstatic'
13130 else
13131 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13134 chorus*)
13135 case $cc_basename in
13136 cxch68*)
13137 # Green Hills C++ Compiler
13138 # _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"
13140 esac
13142 dgux*)
13143 case $cc_basename in
13144 ec++*)
13145 lt_prog_compiler_pic_CXX='-KPIC'
13147 ghcx*)
13148 # Green Hills C++ Compiler
13149 lt_prog_compiler_pic_CXX='-pic'
13153 esac
13155 freebsd* | dragonfly*)
13156 # FreeBSD uses GNU C++
13158 hpux9* | hpux10* | hpux11*)
13159 case $cc_basename in
13160 CC*)
13161 lt_prog_compiler_wl_CXX='-Wl,'
13162 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13163 if test "$host_cpu" != ia64; then
13164 lt_prog_compiler_pic_CXX='+Z'
13167 aCC*)
13168 lt_prog_compiler_wl_CXX='-Wl,'
13169 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13170 case $host_cpu in
13171 hppa*64*|ia64*)
13172 # +Z the default
13175 lt_prog_compiler_pic_CXX='+Z'
13177 esac
13181 esac
13183 interix*)
13184 # This is c89, which is MS Visual C++ (no shared libs)
13185 # Anyone wants to do a port?
13187 irix5* | irix6* | nonstopux*)
13188 case $cc_basename in
13189 CC*)
13190 lt_prog_compiler_wl_CXX='-Wl,'
13191 lt_prog_compiler_static_CXX='-non_shared'
13192 # CC pic flag -KPIC is the default.
13196 esac
13198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13199 case $cc_basename in
13200 KCC*)
13201 # KAI C++ Compiler
13202 lt_prog_compiler_wl_CXX='--backend -Wl,'
13203 lt_prog_compiler_pic_CXX='-fPIC'
13205 ecpc* )
13206 # old Intel C++ for x86_64 which still supported -KPIC.
13207 lt_prog_compiler_wl_CXX='-Wl,'
13208 lt_prog_compiler_pic_CXX='-KPIC'
13209 lt_prog_compiler_static_CXX='-static'
13211 icpc* )
13212 # Intel C++, used to be incompatible with GCC.
13213 # ICC 10 doesn't accept -KPIC any more.
13214 lt_prog_compiler_wl_CXX='-Wl,'
13215 lt_prog_compiler_pic_CXX='-fPIC'
13216 lt_prog_compiler_static_CXX='-static'
13218 pgCC* | pgcpp*)
13219 # Portland Group C++ compiler
13220 lt_prog_compiler_wl_CXX='-Wl,'
13221 lt_prog_compiler_pic_CXX='-fpic'
13222 lt_prog_compiler_static_CXX='-Bstatic'
13224 cxx*)
13225 # Compaq C++
13226 # Make sure the PIC flag is empty. It appears that all Alpha
13227 # Linux and Compaq Tru64 Unix objects are PIC.
13228 lt_prog_compiler_pic_CXX=
13229 lt_prog_compiler_static_CXX='-non_shared'
13231 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13232 # IBM XL 8.0, 9.0 on PPC and BlueGene
13233 lt_prog_compiler_wl_CXX='-Wl,'
13234 lt_prog_compiler_pic_CXX='-qpic'
13235 lt_prog_compiler_static_CXX='-qstaticlink'
13238 case `$CC -V 2>&1 | sed 5q` in
13239 *Sun\ C*)
13240 # Sun C++ 5.9
13241 lt_prog_compiler_pic_CXX='-KPIC'
13242 lt_prog_compiler_static_CXX='-Bstatic'
13243 lt_prog_compiler_wl_CXX='-Qoption ld '
13245 esac
13247 esac
13249 lynxos*)
13251 m88k*)
13253 mvs*)
13254 case $cc_basename in
13255 cxx*)
13256 lt_prog_compiler_pic_CXX='-W c,exportall'
13260 esac
13262 netbsd*)
13264 *qnx* | *nto*)
13265 # QNX uses GNU C++, but need to define -shared option too, otherwise
13266 # it will coredump.
13267 lt_prog_compiler_pic_CXX='-fPIC -shared'
13269 osf3* | osf4* | osf5*)
13270 case $cc_basename in
13271 KCC*)
13272 lt_prog_compiler_wl_CXX='--backend -Wl,'
13274 RCC*)
13275 # Rational C++ 2.4.1
13276 lt_prog_compiler_pic_CXX='-pic'
13278 cxx*)
13279 # Digital/Compaq C++
13280 lt_prog_compiler_wl_CXX='-Wl,'
13281 # Make sure the PIC flag is empty. It appears that all Alpha
13282 # Linux and Compaq Tru64 Unix objects are PIC.
13283 lt_prog_compiler_pic_CXX=
13284 lt_prog_compiler_static_CXX='-non_shared'
13288 esac
13290 psos*)
13292 solaris*)
13293 case $cc_basename in
13294 CC*)
13295 # Sun C++ 4.2, 5.x and Centerline C++
13296 lt_prog_compiler_pic_CXX='-KPIC'
13297 lt_prog_compiler_static_CXX='-Bstatic'
13298 lt_prog_compiler_wl_CXX='-Qoption ld '
13300 gcx*)
13301 # Green Hills C++ Compiler
13302 lt_prog_compiler_pic_CXX='-PIC'
13306 esac
13308 sunos4*)
13309 case $cc_basename in
13310 CC*)
13311 # Sun C++ 4.x
13312 lt_prog_compiler_pic_CXX='-pic'
13313 lt_prog_compiler_static_CXX='-Bstatic'
13315 lcc*)
13316 # Lucid
13317 lt_prog_compiler_pic_CXX='-pic'
13321 esac
13323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13324 case $cc_basename in
13325 CC*)
13326 lt_prog_compiler_wl_CXX='-Wl,'
13327 lt_prog_compiler_pic_CXX='-KPIC'
13328 lt_prog_compiler_static_CXX='-Bstatic'
13330 esac
13332 tandem*)
13333 case $cc_basename in
13334 NCC*)
13335 # NonStop-UX NCC 3.20
13336 lt_prog_compiler_pic_CXX='-KPIC'
13340 esac
13342 vxworks*)
13345 lt_prog_compiler_can_build_shared_CXX=no
13347 esac
13350 case $host_os in
13351 # For platforms which do not support PIC, -DPIC is meaningless:
13352 *djgpp*)
13353 lt_prog_compiler_pic_CXX=
13356 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13358 esac
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13360 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13365 # Check to make sure the PIC flag actually works.
13367 if test -n "$lt_prog_compiler_pic_CXX"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13369 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13370 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 lt_cv_prog_compiler_pic_works_CXX=no
13374 ac_outfile=conftest.$ac_objext
13375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13376 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13377 # Insert the option either (1) after the last *FLAGS variable, or
13378 # (2) before a word containing "conftest.", or (3) at the end.
13379 # Note that $ac_compile itself does not contain backslashes and begins
13380 # with a dollar sign (not a hyphen), so the echo should work correctly.
13381 # The option is referenced via a variable to avoid confusing sed.
13382 lt_compile=`echo "$ac_compile" | $SED \
13383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13385 -e 's:$: $lt_compiler_flag:'`
13386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13387 (eval "$lt_compile" 2>conftest.err)
13388 ac_status=$?
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 if (exit $ac_status) && test -s "$ac_outfile"; then
13392 # The compiler can only warn and ignore the option if not recognized
13393 # So say no if there are warnings other than the usual output.
13394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13397 lt_cv_prog_compiler_pic_works_CXX=yes
13400 $RM conftest*
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13404 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13406 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13407 case $lt_prog_compiler_pic_CXX in
13408 "" | " "*) ;;
13409 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13410 esac
13411 else
13412 lt_prog_compiler_pic_CXX=
13413 lt_prog_compiler_can_build_shared_CXX=no
13421 # Check to make sure the static flag actually works.
13423 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13426 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 lt_cv_prog_compiler_static_works_CXX=no
13430 save_LDFLAGS="$LDFLAGS"
13431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13434 # The linker can only warn and ignore the option if not recognized
13435 # So say no if there are warnings
13436 if test -s conftest.err; then
13437 # Append any errors to the config.log.
13438 cat conftest.err 1>&5
13439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13441 if diff conftest.exp conftest.er2 >/dev/null; then
13442 lt_cv_prog_compiler_static_works_CXX=yes
13444 else
13445 lt_cv_prog_compiler_static_works_CXX=yes
13448 $RM -r conftest*
13449 LDFLAGS="$save_LDFLAGS"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13453 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13455 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13457 else
13458 lt_prog_compiler_static_CXX=
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 lt_cv_prog_compiler_c_o_CXX=no
13470 $RM -r conftest 2>/dev/null
13471 mkdir conftest
13472 cd conftest
13473 mkdir out
13474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13476 lt_compiler_flag="-o out/conftest2.$ac_objext"
13477 # Insert the option either (1) after the last *FLAGS variable, or
13478 # (2) before a word containing "conftest.", or (3) at the end.
13479 # Note that $ac_compile itself does not contain backslashes and begins
13480 # with a dollar sign (not a hyphen), so the echo should work correctly.
13481 lt_compile=`echo "$ac_compile" | $SED \
13482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484 -e 's:$: $lt_compiler_flag:'`
13485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13486 (eval "$lt_compile" 2>out/conftest.err)
13487 ac_status=$?
13488 cat out/conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13491 then
13492 # The compiler can only warn and ignore the option if not recognized
13493 # So say no if there are warnings
13494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13497 lt_cv_prog_compiler_c_o_CXX=yes
13500 chmod u+w . 2>&5
13501 $RM conftest*
13502 # SGI C++ compiler will create directory out/ii_files/ for
13503 # template instantiation
13504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13505 $RM out/* && rmdir out
13506 cd ..
13507 $RM -r conftest
13508 $RM conftest*
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13512 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13518 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 lt_cv_prog_compiler_c_o_CXX=no
13522 $RM -r conftest 2>/dev/null
13523 mkdir conftest
13524 cd conftest
13525 mkdir out
13526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13528 lt_compiler_flag="-o out/conftest2.$ac_objext"
13529 # Insert the option either (1) after the last *FLAGS variable, or
13530 # (2) before a word containing "conftest.", or (3) at the end.
13531 # Note that $ac_compile itself does not contain backslashes and begins
13532 # with a dollar sign (not a hyphen), so the echo should work correctly.
13533 lt_compile=`echo "$ac_compile" | $SED \
13534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13536 -e 's:$: $lt_compiler_flag:'`
13537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13538 (eval "$lt_compile" 2>out/conftest.err)
13539 ac_status=$?
13540 cat out/conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13543 then
13544 # The compiler can only warn and ignore the option if not recognized
13545 # So say no if there are warnings
13546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13549 lt_cv_prog_compiler_c_o_CXX=yes
13552 chmod u+w . 2>&5
13553 $RM conftest*
13554 # SGI C++ compiler will create directory out/ii_files/ for
13555 # template instantiation
13556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13557 $RM out/* && rmdir out
13558 cd ..
13559 $RM -r conftest
13560 $RM conftest*
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13564 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13569 hard_links="nottested"
13570 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13571 # do not overwrite the value of need_locks provided by the user
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13573 $as_echo_n "checking if we can lock with hard links... " >&6; }
13574 hard_links=yes
13575 $RM conftest*
13576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13577 touch conftest.a
13578 ln conftest.a conftest.b 2>&5 || hard_links=no
13579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13581 $as_echo "$hard_links" >&6; }
13582 if test "$hard_links" = no; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13584 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13585 need_locks=warn
13587 else
13588 need_locks=no
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13596 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13597 case $host_os in
13598 aix[4-9]*)
13599 # If we're using GNU nm, then we don't want the "-C" option.
13600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13601 # Also, AIX nm treats weak defined symbols like other global defined
13602 # symbols, whereas GNU nm marks them as "W".
13603 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13604 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'
13605 else
13606 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13609 pw32*)
13610 export_symbols_cmds_CXX="$ltdll_cmds"
13612 cygwin* | mingw* | cegcc*)
13613 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'
13616 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13618 esac
13619 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13622 $as_echo "$ld_shlibs_CXX" >&6; }
13623 test "$ld_shlibs_CXX" = no && can_build_shared=no
13625 with_gnu_ld_CXX=$with_gnu_ld
13633 # Do we need to explicitly link libc?
13635 case "x$archive_cmds_need_lc_CXX" in
13636 x|xyes)
13637 # Assume -lc should be added
13638 archive_cmds_need_lc_CXX=yes
13640 if test "$enable_shared" = yes && test "$GCC" = yes; then
13641 case $archive_cmds_CXX in
13642 *'~'*)
13643 # FIXME: we may have to deal with multi-command sequences.
13645 '$CC '*)
13646 # Test whether the compiler implicitly links with -lc since on some
13647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13648 # to ld, don't add -lc before -lgcc.
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13650 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13651 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 $RM conftest*
13655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13658 (eval $ac_compile) 2>&5
13659 ac_status=$?
13660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13661 test $ac_status = 0; } 2>conftest.err; then
13662 soname=conftest
13663 lib=conftest
13664 libobjs=conftest.$ac_objext
13665 deplibs=
13666 wl=$lt_prog_compiler_wl_CXX
13667 pic_flag=$lt_prog_compiler_pic_CXX
13668 compiler_flags=-v
13669 linker_flags=-v
13670 verstring=
13671 output_objdir=.
13672 libname=conftest
13673 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13674 allow_undefined_flag_CXX=
13675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13676 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13677 ac_status=$?
13678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13679 test $ac_status = 0; }
13680 then
13681 lt_cv_archive_cmds_need_lc_CXX=no
13682 else
13683 lt_cv_archive_cmds_need_lc_CXX=yes
13685 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13686 else
13687 cat conftest.err 1>&5
13689 $RM conftest*
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13693 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13694 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13696 esac
13699 esac
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13765 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13767 library_names_spec=
13768 libname_spec='lib$name'
13769 soname_spec=
13770 shrext_cmds=".so"
13771 postinstall_cmds=
13772 postuninstall_cmds=
13773 finish_cmds=
13774 finish_eval=
13775 shlibpath_var=
13776 shlibpath_overrides_runpath=unknown
13777 version_type=none
13778 dynamic_linker="$host_os ld.so"
13779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13780 need_lib_prefix=unknown
13781 hardcode_into_libs=no
13783 # when you set need_version to no, make sure it does not cause -set_version
13784 # flags to be left without arguments
13785 need_version=unknown
13787 case $host_os in
13788 aix3*)
13789 version_type=linux
13790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13791 shlibpath_var=LIBPATH
13793 # AIX 3 has no versioning support, so we append a major version to the name.
13794 soname_spec='${libname}${release}${shared_ext}$major'
13797 aix[4-9]*)
13798 version_type=linux
13799 need_lib_prefix=no
13800 need_version=no
13801 hardcode_into_libs=yes
13802 if test "$host_cpu" = ia64; then
13803 # AIX 5 supports IA64
13804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 else
13807 # With GCC up to 2.95.x, collect2 would create an import file
13808 # for dependence libraries. The import file would start with
13809 # the line `#! .'. This would cause the generated library to
13810 # depend on `.', always an invalid library. This was fixed in
13811 # development snapshots of GCC prior to 3.0.
13812 case $host_os in
13813 aix4 | aix4.[01] | aix4.[01].*)
13814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13815 echo ' yes '
13816 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13818 else
13819 can_build_shared=no
13822 esac
13823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13824 # soname into executable. Probably we can add versioning support to
13825 # collect2, so additional links can be useful in future.
13826 if test "$aix_use_runtimelinking" = yes; then
13827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13828 # instead of lib<name>.a to let people know that these are not
13829 # typical AIX shared libraries.
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831 else
13832 # We preserve .a as extension for shared libraries through AIX4.2
13833 # and later when we are not doing run time linking.
13834 library_names_spec='${libname}${release}.a $libname.a'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13837 shlibpath_var=LIBPATH
13841 amigaos*)
13842 case $host_cpu in
13843 powerpc)
13844 # Since July 2007 AmigaOS4 officially supports .so libraries.
13845 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848 m68k)
13849 library_names_spec='$libname.ixlibrary $libname.a'
13850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13851 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'
13853 esac
13856 beos*)
13857 library_names_spec='${libname}${shared_ext}'
13858 dynamic_linker="$host_os ld.so"
13859 shlibpath_var=LIBRARY_PATH
13862 bsdi[45]*)
13863 version_type=linux
13864 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13868 shlibpath_var=LD_LIBRARY_PATH
13869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13871 # the default ld.so.conf also contains /usr/contrib/lib and
13872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13873 # libtool to hard-code these into programs
13876 cygwin* | mingw* | pw32* | cegcc*)
13877 version_type=windows
13878 shrext_cmds=".dll"
13879 need_version=no
13880 need_lib_prefix=no
13882 case $GCC,$host_os in
13883 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13884 library_names_spec='$libname.dll.a'
13885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13886 postinstall_cmds='base_file=`basename \${file}`~
13887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13888 dldir=$destdir/`dirname \$dlpath`~
13889 test -d \$dldir || mkdir -p \$dldir~
13890 $install_prog $dir/$dlname \$dldir/$dlname~
13891 chmod a+x \$dldir/$dlname~
13892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13896 dlpath=$dir/\$dldll~
13897 $RM \$dlpath'
13898 shlibpath_overrides_runpath=yes
13900 case $host_os in
13901 cygwin*)
13902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13906 mingw* | cegcc*)
13907 # MinGW DLLs use traditional 'lib' prefix
13908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13910 pw32*)
13911 # pw32 DLLs use 'pw' prefix rather than 'lib'
13912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13914 esac
13918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13920 esac
13921 dynamic_linker='Win32 ld.exe'
13922 # FIXME: first we should search . and the directory the executable is in
13923 shlibpath_var=PATH
13926 darwin* | rhapsody*)
13927 dynamic_linker="$host_os dyld"
13928 version_type=darwin
13929 need_lib_prefix=no
13930 need_version=no
13931 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13932 soname_spec='${libname}${release}${major}$shared_ext'
13933 shlibpath_overrides_runpath=yes
13934 shlibpath_var=DYLD_LIBRARY_PATH
13935 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13940 dgux*)
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 shlibpath_var=LD_LIBRARY_PATH
13949 freebsd* | dragonfly*)
13950 # DragonFly does not have aout. When/if they implement a new
13951 # versioning mechanism, adjust this.
13952 if test -x /usr/bin/objformat; then
13953 objformat=`/usr/bin/objformat`
13954 else
13955 case $host_os in
13956 freebsd[123]*) objformat=aout ;;
13957 *) objformat=elf ;;
13958 esac
13960 version_type=freebsd-$objformat
13961 case $version_type in
13962 freebsd-elf*)
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13964 need_version=no
13965 need_lib_prefix=no
13967 freebsd-*)
13968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13969 need_version=yes
13971 esac
13972 shlibpath_var=LD_LIBRARY_PATH
13973 case $host_os in
13974 freebsd2*)
13975 shlibpath_overrides_runpath=yes
13977 freebsd3.[01]* | freebsdelf3.[01]*)
13978 shlibpath_overrides_runpath=yes
13979 hardcode_into_libs=yes
13981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13983 shlibpath_overrides_runpath=no
13984 hardcode_into_libs=yes
13986 *) # from 4.6 on, and DragonFly
13987 shlibpath_overrides_runpath=yes
13988 hardcode_into_libs=yes
13990 esac
13993 gnu*)
13994 version_type=linux
13995 need_lib_prefix=no
13996 need_version=no
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 hardcode_into_libs=yes
14003 haiku*)
14004 version_type=linux
14005 need_lib_prefix=no
14006 need_version=no
14007 dynamic_linker="$host_os runtime_loader"
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14009 soname_spec='${libname}${release}${shared_ext}$major'
14010 shlibpath_var=LIBRARY_PATH
14011 shlibpath_overrides_runpath=yes
14012 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14013 hardcode_into_libs=yes
14016 hpux9* | hpux10* | hpux11*)
14017 # Give a soname corresponding to the major version so that dld.sl refuses to
14018 # link against other versions.
14019 version_type=sunos
14020 need_lib_prefix=no
14021 need_version=no
14022 case $host_cpu in
14023 ia64*)
14024 shrext_cmds='.so'
14025 hardcode_into_libs=yes
14026 dynamic_linker="$host_os dld.so"
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14030 soname_spec='${libname}${release}${shared_ext}$major'
14031 if test "X$HPUX_IA64_MODE" = X32; then
14032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14033 else
14034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14038 hppa*64*)
14039 shrext_cmds='.sl'
14040 hardcode_into_libs=yes
14041 dynamic_linker="$host_os dld.sl"
14042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14050 shrext_cmds='.sl'
14051 dynamic_linker="$host_os dld.sl"
14052 shlibpath_var=SHLIB_PATH
14053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14055 soname_spec='${libname}${release}${shared_ext}$major'
14057 esac
14058 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14059 postinstall_cmds='chmod 555 $lib'
14060 # or fails outright, so override atomically:
14061 install_override_mode=555
14064 interix[3-9]*)
14065 version_type=linux
14066 need_lib_prefix=no
14067 need_version=no
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14069 soname_spec='${libname}${release}${shared_ext}$major'
14070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14071 shlibpath_var=LD_LIBRARY_PATH
14072 shlibpath_overrides_runpath=no
14073 hardcode_into_libs=yes
14076 irix5* | irix6* | nonstopux*)
14077 case $host_os in
14078 nonstopux*) version_type=nonstopux ;;
14080 if test "$lt_cv_prog_gnu_ld" = yes; then
14081 version_type=linux
14082 else
14083 version_type=irix
14084 fi ;;
14085 esac
14086 need_lib_prefix=no
14087 need_version=no
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14090 case $host_os in
14091 irix5* | nonstopux*)
14092 libsuff= shlibsuff=
14095 case $LD in # libtool.m4 will add one of these switches to LD
14096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14097 libsuff= shlibsuff= libmagic=32-bit;;
14098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14099 libsuff=32 shlibsuff=N32 libmagic=N32;;
14100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14102 *) libsuff= shlibsuff= libmagic=never-match;;
14103 esac
14105 esac
14106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14107 shlibpath_overrides_runpath=no
14108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14110 hardcode_into_libs=yes
14113 # No shared lib support for Linux oldld, aout, or coff.
14114 linux*oldld* | linux*aout* | linux*coff*)
14115 dynamic_linker=no
14118 # This must be Linux ELF.
14119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14120 version_type=linux
14121 need_lib_prefix=no
14122 need_version=no
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 shlibpath_overrides_runpath=no
14129 # Some binutils ld are patched to set DT_RUNPATH
14130 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 lt_cv_shlibpath_overrides_runpath=no
14134 save_LDFLAGS=$LDFLAGS
14135 save_libdir=$libdir
14136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14142 main ()
14146 return 0;
14148 _ACEOF
14149 if ac_fn_cxx_try_link "$LINENO"; then :
14150 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14151 lt_cv_shlibpath_overrides_runpath=yes
14154 rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LDFLAGS=$save_LDFLAGS
14157 libdir=$save_libdir
14161 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14163 # This implies no fast_install, which is unacceptable.
14164 # Some rework will be needed to allow for fast_install
14165 # before this can be enabled.
14166 hardcode_into_libs=yes
14168 # Append ld.so.conf contents to the search path
14169 if test -f /etc/ld.so.conf; then
14170 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' ' '`
14171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14174 # We used to test for /lib/ld.so.1 and disable shared libraries on
14175 # powerpc, because MkLinux only supported shared libraries with the
14176 # GNU dynamic linker. Since this was broken with cross compilers,
14177 # most powerpc-linux boxes support dynamic linking these days and
14178 # people can always --disable-shared, the test was removed, and we
14179 # assume the GNU/Linux dynamic linker is in use.
14180 dynamic_linker='GNU/Linux ld.so'
14183 netbsd*)
14184 version_type=sunos
14185 need_lib_prefix=no
14186 need_version=no
14187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14190 dynamic_linker='NetBSD (a.out) ld.so'
14191 else
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 dynamic_linker='NetBSD ld.elf_so'
14196 shlibpath_var=LD_LIBRARY_PATH
14197 shlibpath_overrides_runpath=yes
14198 hardcode_into_libs=yes
14201 newsos6)
14202 version_type=linux
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 shlibpath_overrides_runpath=yes
14208 *nto* | *qnx*)
14209 version_type=qnx
14210 need_lib_prefix=no
14211 need_version=no
14212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213 soname_spec='${libname}${release}${shared_ext}$major'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 shlibpath_overrides_runpath=no
14216 hardcode_into_libs=yes
14217 dynamic_linker='ldqnx.so'
14220 openbsd*)
14221 version_type=sunos
14222 sys_lib_dlsearch_path_spec="/usr/lib"
14223 need_lib_prefix=no
14224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14225 case $host_os in
14226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14227 *) need_version=no ;;
14228 esac
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14233 case $host_os in
14234 openbsd2.[89] | openbsd2.[89].*)
14235 shlibpath_overrides_runpath=no
14238 shlibpath_overrides_runpath=yes
14240 esac
14241 else
14242 shlibpath_overrides_runpath=yes
14246 os2*)
14247 libname_spec='$name'
14248 shrext_cmds=".dll"
14249 need_lib_prefix=no
14250 library_names_spec='$libname${shared_ext} $libname.a'
14251 dynamic_linker='OS/2 ld.exe'
14252 shlibpath_var=LIBPATH
14255 osf3* | osf4* | osf5*)
14256 version_type=osf
14257 need_lib_prefix=no
14258 need_version=no
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14266 rdos*)
14267 dynamic_linker=no
14270 solaris*)
14271 version_type=linux
14272 need_lib_prefix=no
14273 need_version=no
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath=yes
14278 hardcode_into_libs=yes
14279 # ldd complains unless libraries are executable
14280 postinstall_cmds='chmod +x $lib'
14283 sunos4*)
14284 version_type=sunos
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14287 shlibpath_var=LD_LIBRARY_PATH
14288 shlibpath_overrides_runpath=yes
14289 if test "$with_gnu_ld" = yes; then
14290 need_lib_prefix=no
14292 need_version=yes
14295 sysv4 | sysv4.3*)
14296 version_type=linux
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 shlibpath_var=LD_LIBRARY_PATH
14300 case $host_vendor in
14301 sni)
14302 shlibpath_overrides_runpath=no
14303 need_lib_prefix=no
14304 runpath_var=LD_RUN_PATH
14306 siemens)
14307 need_lib_prefix=no
14309 motorola)
14310 need_lib_prefix=no
14311 need_version=no
14312 shlibpath_overrides_runpath=no
14313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14315 esac
14318 sysv4*MP*)
14319 if test -d /usr/nec ;then
14320 version_type=linux
14321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14322 soname_spec='$libname${shared_ext}.$major'
14323 shlibpath_var=LD_LIBRARY_PATH
14327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14328 version_type=freebsd-elf
14329 need_lib_prefix=no
14330 need_version=no
14331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14332 soname_spec='${libname}${release}${shared_ext}$major'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 shlibpath_overrides_runpath=yes
14335 hardcode_into_libs=yes
14336 if test "$with_gnu_ld" = yes; then
14337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14338 else
14339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14340 case $host_os in
14341 sco3.2v5*)
14342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14344 esac
14346 sys_lib_dlsearch_path_spec='/usr/lib'
14349 tpf*)
14350 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14351 version_type=linux
14352 need_lib_prefix=no
14353 need_version=no
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355 shlibpath_var=LD_LIBRARY_PATH
14356 shlibpath_overrides_runpath=no
14357 hardcode_into_libs=yes
14360 uts4*)
14361 version_type=linux
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 shlibpath_var=LD_LIBRARY_PATH
14368 dynamic_linker=no
14370 esac
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14372 $as_echo "$dynamic_linker" >&6; }
14373 test "$dynamic_linker" = no && can_build_shared=no
14375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14376 if test "$GCC" = yes; then
14377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14380 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14381 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14383 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14384 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14425 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14426 hardcode_action_CXX=
14427 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14428 test -n "$runpath_var_CXX" ||
14429 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14431 # We can hardcode non-existent directories.
14432 if test "$hardcode_direct_CXX" != no &&
14433 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14434 # have to relink, otherwise we might link with an installed library
14435 # when we should be linking with a yet-to-be-installed one
14436 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14437 test "$hardcode_minus_L_CXX" != no; then
14438 # Linking always hardcodes the temporary library directory.
14439 hardcode_action_CXX=relink
14440 else
14441 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14442 hardcode_action_CXX=immediate
14444 else
14445 # We cannot hardcode anything, or else we can only hardcode existing
14446 # directories.
14447 hardcode_action_CXX=unsupported
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14450 $as_echo "$hardcode_action_CXX" >&6; }
14452 if test "$hardcode_action_CXX" = relink ||
14453 test "$inherit_rpath_CXX" = yes; then
14454 # Fast installation is not supported
14455 enable_fast_install=no
14456 elif test "$shlibpath_overrides_runpath" = yes ||
14457 test "$enable_shared" = no; then
14458 # Fast installation is not necessary
14459 enable_fast_install=needless
14468 fi # test -n "$compiler"
14470 CC=$lt_save_CC
14471 LDCXX=$LD
14472 LD=$lt_save_LD
14473 GCC=$lt_save_GCC
14474 with_gnu_ld=$lt_save_with_gnu_ld
14475 lt_cv_path_LDCXX=$lt_cv_path_LD
14476 lt_cv_path_LD=$lt_save_path_LD
14477 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14478 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14479 fi # test "$_lt_caught_CXX_error" != yes
14481 ac_ext=c
14482 ac_cpp='$CPP $CPPFLAGS'
14483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14499 ac_config_commands="$ac_config_commands libtool"
14504 # Only expand once:
14510 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14511 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14512 MF_HAVE_STDINT_H=1
14513 else
14514 MF_HAVE_STDINT_H=0
14519 if test $MF_HAVE_STDINT_H = 1
14520 then
14521 MF_HAVE_UINTPTR_T=1
14522 else
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 #include <sys/types.h>
14527 main ()
14529 uintptr_t k = 0;
14531 return 0;
14533 _ACEOF
14534 if ac_fn_c_try_compile "$LINENO"; then :
14535 MF_HAVE_UINTPTR_T=1
14536 else
14537 MF_HAVE_UINTPTR_T=0
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 for ac_header in pthread.h
14544 do :
14545 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14546 if test "x$ac_cv_header_pthread_h" = x""yes; then :
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_PTHREAD_H 1
14549 _ACEOF
14553 done
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
14557 $as_echo_n "checking for thread model used by GCC... " >&6; }
14558 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
14560 $as_echo "$target_thread_file" >&6; }
14562 # We only support posix threads, or no threads at all.
14563 posix_threads=
14564 case ${target_thread_file} in
14565 posix)
14566 posix_threads=yes
14568 single)
14571 echo "${target_thread_file} is an unsupported thread package" 1>&2
14572 exit 1
14574 esac
14576 if test "x$posix_threads" != "x"; then
14577 LIBMUDFLAPTH_TRUE=
14578 LIBMUDFLAPTH_FALSE='#'
14579 else
14580 LIBMUDFLAPTH_TRUE='#'
14581 LIBMUDFLAPTH_FALSE=
14584 if test "x$posix_threads" != "x"
14585 then
14586 build_libmudflapth=1
14587 else
14588 build_libmudflapth=0
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
14593 $as_echo_n "checking for dlsym in -ldl... " >&6; }
14594 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
14595 $as_echo_n "(cached) " >&6
14596 else
14597 ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-ldl $LIBS"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply. */
14605 #ifdef __cplusplus
14606 extern "C"
14607 #endif
14608 char dlsym ();
14610 main ()
14612 return dlsym ();
14614 return 0;
14616 _ACEOF
14617 if ac_fn_c_try_link "$LINENO"; then :
14618 ac_cv_lib_dl_dlsym=yes
14619 else
14620 ac_cv_lib_dl_dlsym=no
14622 rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624 LIBS=$ac_check_lib_save_LIBS
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
14627 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14628 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
14629 cat >>confdefs.h <<_ACEOF
14630 #define HAVE_LIBDL 1
14631 _ACEOF
14633 LIBS="-ldl $LIBS"
14638 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14639 if test "x$ac_cv_func_connect" = x""yes; then :
14641 else
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
14643 $as_echo_n "checking for connect in -lsocket... " >&6; }
14644 if test "${ac_cv_lib_socket_connect+set}" = set; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_check_lib_save_LIBS=$LIBS
14648 LIBS="-lsocket $LIBS"
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14652 /* Override any GCC internal prototype to avoid an error.
14653 Use char because int might match the return type of a GCC
14654 builtin and then its argument prototype would still apply. */
14655 #ifdef __cplusplus
14656 extern "C"
14657 #endif
14658 char connect ();
14660 main ()
14662 return connect ();
14664 return 0;
14666 _ACEOF
14667 if ac_fn_c_try_link "$LINENO"; then :
14668 ac_cv_lib_socket_connect=yes
14669 else
14670 ac_cv_lib_socket_connect=no
14672 rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674 LIBS=$ac_check_lib_save_LIBS
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14677 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14678 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
14679 cat >>confdefs.h <<_ACEOF
14680 #define HAVE_LIBSOCKET 1
14681 _ACEOF
14683 LIBS="-lsocket $LIBS"
14689 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
14690 if test "x$ac_cv_func_sched_yield" = x""yes; then :
14692 else
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14694 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14695 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 ac_check_lib_save_LIBS=$LIBS
14699 LIBS="-lrt $LIBS"
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char sched_yield ();
14711 main ()
14713 return sched_yield ();
14715 return 0;
14717 _ACEOF
14718 if ac_fn_c_try_link "$LINENO"; then :
14719 ac_cv_lib_rt_sched_yield=yes
14720 else
14721 ac_cv_lib_rt_sched_yield=no
14723 rm -f core conftest.err conftest.$ac_objext \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14728 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14729 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_LIBRT 1
14732 _ACEOF
14734 LIBS="-lrt $LIBS"
14741 # Calculate toolexeclibdir
14742 # Also toolexecdir, though it's only used in toolexeclibdir
14743 case ${version_specific_libs} in
14744 yes)
14745 # Need the gcc compiler version to know where to install libraries
14746 # and header files if --enable-version-specific-runtime-libs option
14747 # is selected.
14748 toolexecdir='$(libdir)/gcc/$(target_alias)'
14749 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14752 if test -n "$with_cross_host" &&
14753 test x"$with_cross_host" != x"no"; then
14754 # Install a library built with a cross compiler in tooldir, not libdir.
14755 toolexecdir='$(exec_prefix)/$(target_alias)'
14756 toolexeclibdir='$(toolexecdir)/lib'
14757 else
14758 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14759 toolexeclibdir='$(libdir)'
14761 multi_os_directory=`$CC -print-multi-os-directory`
14762 case $multi_os_directory in
14763 .) ;; # Avoid trailing /.
14764 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14765 esac
14767 esac
14771 includedir=${toolexecdir}/include
14774 pthread_create_version='""'
14775 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
14776 # NB: don't check for -lpthread here, because then it would be
14777 # added to LIBS. For the thread-unaware libmudflap.la, we don't
14778 # want it there.
14780 # glibc-related hacks. dlsym() may pick the wrong version of
14781 # interposed functions like pthread_create on modern glibc.
14782 # We need to find the proper symbol version string, and use
14783 # the nonstandard dlvsym().
14784 for ac_func in dlvsym
14785 do :
14786 ac_fn_c_check_func "$LINENO" "dlvsym" "ac_cv_func_dlvsym"
14787 if test "x$ac_cv_func_dlvsym" = x""yes; then :
14788 cat >>confdefs.h <<_ACEOF
14789 #define HAVE_DLVSYM 1
14790 _ACEOF
14793 done
14795 if test -n "$ac_tool_prefix"; then
14796 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
14797 set dummy ${ac_tool_prefix}nm; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799 $as_echo_n "checking for $ac_word... " >&6; }
14800 if test "${ac_cv_prog_NM+set}" = set; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 if test -n "$NM"; then
14804 ac_cv_prog_NM="$NM" # Let the user override the test.
14805 else
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14813 ac_cv_prog_NM="${ac_tool_prefix}nm"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14817 done
14818 done
14819 IFS=$as_save_IFS
14823 NM=$ac_cv_prog_NM
14824 if test -n "$NM"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14826 $as_echo "$NM" >&6; }
14827 else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14834 if test -z "$ac_cv_prog_NM"; then
14835 ac_ct_NM=$NM
14836 # Extract the first word of "nm", so it can be a program name with args.
14837 set dummy nm; ac_word=$2
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14839 $as_echo_n "checking for $ac_word... " >&6; }
14840 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 if test -n "$ac_ct_NM"; then
14844 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
14845 else
14846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14847 for as_dir in $PATH
14849 IFS=$as_save_IFS
14850 test -z "$as_dir" && as_dir=.
14851 for ac_exec_ext in '' $ac_executable_extensions; do
14852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14853 ac_cv_prog_ac_ct_NM="nm"
14854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14855 break 2
14857 done
14858 done
14859 IFS=$as_save_IFS
14863 ac_ct_NM=$ac_cv_prog_ac_ct_NM
14864 if test -n "$ac_ct_NM"; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
14866 $as_echo "$ac_ct_NM" >&6; }
14867 else
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14872 if test "x$ac_ct_NM" = x; then
14873 NM=""
14874 else
14875 case $cross_compiling:$ac_tool_warned in
14876 yes:)
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14879 ac_tool_warned=yes ;;
14880 esac
14881 NM=$ac_ct_NM
14883 else
14884 NM="$ac_cv_prog_NM"
14887 if test "x$ac_cv_have_dlvsym" != "x"; then
14888 # Try compiling a simple pthreads program. Find the shared libraries it
14889 # ends up with. Then use "nm" on those libraries to extract the
14890 # default symbol versioning suffix ("@@"), if any. But that's tricky.
14891 # Rather, run nm on the resulting executable. Unfortunately, autoconf
14892 # doesn't appear to have a macro that builds a test executable for
14893 # subsequent analysis ... so we do it by hand here.
14894 cat >> conftest.c << EOF
14895 #include <pthread.h>
14896 int main () { void *p = (void *) & pthread_create; return (int) p; }
14898 oldLIBS="$LIBS"
14899 LIBS="$LIBS -lpthread"
14900 pthread_create_version="\"\""
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pthread_create symbol version" >&5
14902 $as_echo_n "checking pthread_create symbol version... " >&6; }
14903 if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
14904 version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
14905 if test "x$version" != "x"; then
14906 pthread_create_version="\"$version\""
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthread_create_version" >&5
14910 $as_echo "$pthread_create_version" >&6; }
14911 LIBS="$oldLIBS"
14915 cat >>confdefs.h <<_ACEOF
14916 #define PTHREAD_CREATE_VERSION $pthread_create_version
14917 _ACEOF
14921 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
14922 # similarly to how libstdc++ does it
14923 ac_test_CFLAGS="${CFLAGS+set}"
14924 ac_save_CFLAGS="$CFLAGS"
14926 # Check for -ffunction-sections -fdata-sections
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
14928 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
14929 CFLAGS='-Werror -ffunction-sections -fdata-sections'
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14934 main ()
14936 int foo;
14938 return 0;
14940 _ACEOF
14941 if ac_fn_c_try_compile "$LINENO"; then :
14942 ac_fdsections=yes
14943 else
14944 ac_fdsections=no
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 if test "$ac_test_CFLAGS" = set; then
14948 CFLAGS="$ac_save_CFLAGS"
14949 else
14950 # this is the suspicious part
14951 CFLAGS=""
14953 if test x"$ac_fdsections" = x"yes"; then
14954 SECTION_FLAGS='-ffunction-sections -fdata-sections'
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
14957 $as_echo "$ac_fdsections" >&6; }
14961 # Check for the name of the symbol used for the entry point.
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the name of the symbol used for the entry point" >&5
14963 $as_echo_n "checking for the name of the symbol used for the entry point... " >&6; }
14964 if test "${mudflap_cv_entry_point+set}" = set; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14968 for name in _start __start unknown; do
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 extern char $name[];
14973 main ()
14975 $name[0] = 0;
14977 return 0;
14979 _ACEOF
14980 if ac_fn_c_try_link "$LINENO"; then :
14981 break
14983 rm -f core conftest.err conftest.$ac_objext \
14984 conftest$ac_exeext conftest.$ac_ext
14985 done
14986 mudflap_cv_entry_point="$name"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mudflap_cv_entry_point" >&5
14989 $as_echo "$mudflap_cv_entry_point" >&6; }
14990 if test "$mudflap_cv_entry_point" = unknown; then
14991 as_fn_error "none of the known symbol names works" "$LINENO" 5
14994 cat >>confdefs.h <<_ACEOF
14995 #define ENTRY_POINT $mudflap_cv_entry_point
14996 _ACEOF
15000 if test ${multilib} = yes; then
15001 multilib_arg="--enable-multilib"
15002 else
15003 multilib_arg=
15006 # See if we support thread-local storage.
15009 # Check whether --enable-tls was given.
15010 if test "${enable_tls+set}" = set; then :
15011 enableval=$enable_tls;
15012 case "$enableval" in
15013 yes|no) ;;
15014 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15015 esac
15017 else
15018 enable_tls=yes
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15023 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15024 if test "${gcc_cv_have_tls+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15028 if test "$cross_compiling" = yes; then :
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 __thread int a; int b; int main() { return a = b; }
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"; then :
15034 chktls_save_LDFLAGS="$LDFLAGS"
15035 case $host in
15036 *-*-linux*)
15037 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15039 esac
15040 chktls_save_CFLAGS="$CFLAGS"
15041 CFLAGS="-fPIC $CFLAGS"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 int f() { return 0; }
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 __thread int a; int b; int f() { return a = b; }
15050 _ACEOF
15051 if ac_fn_c_try_link "$LINENO"; then :
15052 gcc_cv_have_tls=yes
15053 else
15054 gcc_cv_have_tls=no
15056 rm -f core conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
15058 else
15059 gcc_cv_have_tls=yes
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15063 CFLAGS="$chktls_save_CFLAGS"
15064 LDFLAGS="$chktls_save_LDFLAGS"
15065 else
15066 gcc_cv_have_tls=no
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15072 else
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 __thread int a; int b; int main() { return a = b; }
15076 _ACEOF
15077 if ac_fn_c_try_run "$LINENO"; then :
15078 chktls_save_LDFLAGS="$LDFLAGS"
15079 LDFLAGS="-static $LDFLAGS"
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082 int main() { return 0; }
15083 _ACEOF
15084 if ac_fn_c_try_link "$LINENO"; then :
15085 if test "$cross_compiling" = yes; then :
15086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15088 as_fn_error "cannot run test program while cross compiling
15089 See \`config.log' for more details." "$LINENO" 5; }
15090 else
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 __thread int a; int b; int main() { return a = b; }
15094 _ACEOF
15095 if ac_fn_c_try_run "$LINENO"; then :
15096 gcc_cv_have_tls=yes
15097 else
15098 gcc_cv_have_tls=no
15100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15101 conftest.$ac_objext conftest.beam conftest.$ac_ext
15104 else
15105 gcc_cv_have_tls=yes
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LDFLAGS="$chktls_save_LDFLAGS"
15110 if test $gcc_cv_have_tls = yes; then
15111 chktls_save_CFLAGS="$CFLAGS"
15112 thread_CFLAGS=failed
15113 for flag in '' '-pthread' '-lpthread'; do
15114 CFLAGS="$flag $chktls_save_CFLAGS"
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 #include <pthread.h>
15118 void *g(void *d) { return NULL; }
15120 main ()
15122 pthread_t t; pthread_create(&t,NULL,g,NULL);
15124 return 0;
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"; then :
15128 thread_CFLAGS="$flag"
15130 rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132 if test "X$thread_CFLAGS" != Xfailed; then
15133 break
15135 done
15136 CFLAGS="$chktls_save_CFLAGS"
15137 if test "X$thread_CFLAGS" != Xfailed; then
15138 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15139 if test "$cross_compiling" = yes; then :
15140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15142 as_fn_error "cannot run test program while cross compiling
15143 See \`config.log' for more details." "$LINENO" 5; }
15144 else
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 #include <pthread.h>
15148 __thread int a;
15149 static int *volatile a_in_other_thread;
15150 static void *
15151 thread_func (void *arg)
15153 a_in_other_thread = &a;
15154 return (void *)0;
15157 main ()
15159 pthread_t thread;
15160 void *thread_retval;
15161 int *volatile a_in_main_thread;
15162 a_in_main_thread = &a;
15163 if (pthread_create (&thread, (pthread_attr_t *)0,
15164 thread_func, (void *)0))
15165 return 0;
15166 if (pthread_join (thread, &thread_retval))
15167 return 0;
15168 return (a_in_other_thread == a_in_main_thread);
15170 return 0;
15172 _ACEOF
15173 if ac_fn_c_try_run "$LINENO"; then :
15174 gcc_cv_have_tls=yes
15175 else
15176 gcc_cv_have_tls=no
15178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15179 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182 CFLAGS="$chktls_save_CFLAGS"
15185 else
15186 gcc_cv_have_tls=no
15188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15189 conftest.$ac_objext conftest.beam conftest.$ac_ext
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15194 $as_echo "$gcc_cv_have_tls" >&6; }
15195 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15197 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15202 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15203 if test "${gcc_cv_use_emutls+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15207 gcc_cv_use_emutls=no
15208 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15209 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15214 test $ac_status = 0; }; }; then
15215 if grep __emutls_get_address conftest.s > /dev/null; then
15216 gcc_cv_use_emutls=yes
15219 rm -f conftest.*
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15223 $as_echo "$gcc_cv_use_emutls" >&6; }
15224 if test "$gcc_cv_use_emutls" = "yes" ; then
15226 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15230 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
15232 cat >confcache <<\_ACEOF
15233 # This file is a shell script that caches the results of configure
15234 # tests run on this system so they can be shared between configure
15235 # scripts and configure runs, see configure's option --config-cache.
15236 # It is not useful on other systems. If it contains results you don't
15237 # want to keep, you may remove or edit it.
15239 # config.status only pays attention to the cache file if you give it
15240 # the --recheck option to rerun configure.
15242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15244 # following values.
15246 _ACEOF
15248 # The following way of writing the cache mishandles newlines in values,
15249 # but we know of no workaround that is simple, portable, and efficient.
15250 # So, we kill variables containing newlines.
15251 # Ultrix sh set writes to stderr and can't be redirected directly,
15252 # and sets the high bit in the cache file unless we assign to the vars.
15254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15255 eval ac_val=\$$ac_var
15256 case $ac_val in #(
15257 *${as_nl}*)
15258 case $ac_var in #(
15259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15261 esac
15262 case $ac_var in #(
15263 _ | IFS | as_nl) ;; #(
15264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15265 *) { eval $ac_var=; unset $ac_var;} ;;
15266 esac ;;
15267 esac
15268 done
15270 (set) 2>&1 |
15271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15272 *${as_nl}ac_space=\ *)
15273 # `set' does not quote correctly, so add quotes: double-quote
15274 # substitution turns \\\\ into \\, and sed turns \\ into \.
15275 sed -n \
15276 "s/'/'\\\\''/g;
15277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15278 ;; #(
15280 # `set' quotes correctly as required by POSIX, so do not add quotes.
15281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15283 esac |
15284 sort
15286 sed '
15287 /^ac_cv_env_/b end
15288 t clear
15289 :clear
15290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15291 t end
15292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15293 :end' >>confcache
15294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15295 if test -w "$cache_file"; then
15296 test "x$cache_file" != "x/dev/null" &&
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15298 $as_echo "$as_me: updating cache $cache_file" >&6;}
15299 cat confcache >$cache_file
15300 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15302 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15305 rm -f confcache
15307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15308 # Let make expand exec_prefix.
15309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15311 DEFS=-DHAVE_CONFIG_H
15313 ac_libobjs=
15314 ac_ltlibobjs=
15315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15316 # 1. Remove the extension, and $U if already installed.
15317 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15318 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15319 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15320 # will be set to the directory where LIBOBJS objects are built.
15321 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15322 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15323 done
15324 LIBOBJS=$ac_libobjs
15326 LTLIBOBJS=$ac_ltlibobjs
15329 if test -n "$EXEEXT"; then
15330 am__EXEEXT_TRUE=
15331 am__EXEEXT_FALSE='#'
15332 else
15333 am__EXEEXT_TRUE='#'
15334 am__EXEEXT_FALSE=
15337 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15338 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15341 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15342 as_fn_error "conditional \"AMDEP\" was never defined.
15343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15345 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15346 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15349 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15350 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15353 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
15354 as_fn_error "conditional \"LIBMUDFLAPTH\" was never defined.
15355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 : ${CONFIG_STATUS=./config.status}
15359 ac_write_fail=0
15360 ac_clean_files_save=$ac_clean_files
15361 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15363 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15364 as_write_fail=0
15365 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15366 #! $SHELL
15367 # Generated by $as_me.
15368 # Run this file to recreate the current configuration.
15369 # Compiler output produced by configure, useful for debugging
15370 # configure, is in config.log if it exists.
15372 debug=false
15373 ac_cs_recheck=false
15374 ac_cs_silent=false
15376 SHELL=\${CONFIG_SHELL-$SHELL}
15377 export SHELL
15378 _ASEOF
15379 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15380 ## -------------------- ##
15381 ## M4sh Initialization. ##
15382 ## -------------------- ##
15384 # Be more Bourne compatible
15385 DUALCASE=1; export DUALCASE # for MKS sh
15386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15387 emulate sh
15388 NULLCMD=:
15389 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15390 # is contrary to our usage. Disable this feature.
15391 alias -g '${1+"$@"}'='"$@"'
15392 setopt NO_GLOB_SUBST
15393 else
15394 case `(set -o) 2>/dev/null` in #(
15395 *posix*) :
15396 set -o posix ;; #(
15397 *) :
15399 esac
15403 as_nl='
15405 export as_nl
15406 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15407 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15410 # Prefer a ksh shell builtin over an external printf program on Solaris,
15411 # but without wasting forks for bash or zsh.
15412 if test -z "$BASH_VERSION$ZSH_VERSION" \
15413 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15414 as_echo='print -r --'
15415 as_echo_n='print -rn --'
15416 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15417 as_echo='printf %s\n'
15418 as_echo_n='printf %s'
15419 else
15420 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15421 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15422 as_echo_n='/usr/ucb/echo -n'
15423 else
15424 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15425 as_echo_n_body='eval
15426 arg=$1;
15427 case $arg in #(
15428 *"$as_nl"*)
15429 expr "X$arg" : "X\\(.*\\)$as_nl";
15430 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15431 esac;
15432 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15434 export as_echo_n_body
15435 as_echo_n='sh -c $as_echo_n_body as_echo'
15437 export as_echo_body
15438 as_echo='sh -c $as_echo_body as_echo'
15441 # The user is always right.
15442 if test "${PATH_SEPARATOR+set}" != set; then
15443 PATH_SEPARATOR=:
15444 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15445 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15446 PATH_SEPARATOR=';'
15451 # IFS
15452 # We need space, tab and new line, in precisely that order. Quoting is
15453 # there to prevent editors from complaining about space-tab.
15454 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15455 # splitting by setting IFS to empty value.)
15456 IFS=" "" $as_nl"
15458 # Find who we are. Look in the path if we contain no directory separator.
15459 case $0 in #((
15460 *[\\/]* ) as_myself=$0 ;;
15461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462 for as_dir in $PATH
15464 IFS=$as_save_IFS
15465 test -z "$as_dir" && as_dir=.
15466 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15467 done
15468 IFS=$as_save_IFS
15471 esac
15472 # We did not find ourselves, most probably we were run as `sh COMMAND'
15473 # in which case we are not to be found in the path.
15474 if test "x$as_myself" = x; then
15475 as_myself=$0
15477 if test ! -f "$as_myself"; then
15478 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15479 exit 1
15482 # Unset variables that we do not need and which cause bugs (e.g. in
15483 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15484 # suppresses any "Segmentation fault" message there. '((' could
15485 # trigger a bug in pdksh 5.2.14.
15486 for as_var in BASH_ENV ENV MAIL MAILPATH
15487 do eval test x\${$as_var+set} = xset \
15488 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15489 done
15490 PS1='$ '
15491 PS2='> '
15492 PS4='+ '
15494 # NLS nuisances.
15495 LC_ALL=C
15496 export LC_ALL
15497 LANGUAGE=C
15498 export LANGUAGE
15500 # CDPATH.
15501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15504 # as_fn_error ERROR [LINENO LOG_FD]
15505 # ---------------------------------
15506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15508 # script with status $?, using 1 if that was 0.
15509 as_fn_error ()
15511 as_status=$?; test $as_status -eq 0 && as_status=1
15512 if test "$3"; then
15513 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15514 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15516 $as_echo "$as_me: error: $1" >&2
15517 as_fn_exit $as_status
15518 } # as_fn_error
15521 # as_fn_set_status STATUS
15522 # -----------------------
15523 # Set $? to STATUS, without forking.
15524 as_fn_set_status ()
15526 return $1
15527 } # as_fn_set_status
15529 # as_fn_exit STATUS
15530 # -----------------
15531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15532 as_fn_exit ()
15534 set +e
15535 as_fn_set_status $1
15536 exit $1
15537 } # as_fn_exit
15539 # as_fn_unset VAR
15540 # ---------------
15541 # Portably unset VAR.
15542 as_fn_unset ()
15544 { eval $1=; unset $1;}
15546 as_unset=as_fn_unset
15547 # as_fn_append VAR VALUE
15548 # ----------------------
15549 # Append the text in VALUE to the end of the definition contained in VAR. Take
15550 # advantage of any shell optimizations that allow amortized linear growth over
15551 # repeated appends, instead of the typical quadratic growth present in naive
15552 # implementations.
15553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15554 eval 'as_fn_append ()
15556 eval $1+=\$2
15558 else
15559 as_fn_append ()
15561 eval $1=\$$1\$2
15563 fi # as_fn_append
15565 # as_fn_arith ARG...
15566 # ------------------
15567 # Perform arithmetic evaluation on the ARGs, and store the result in the
15568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15569 # must be portable across $(()) and expr.
15570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15571 eval 'as_fn_arith ()
15573 as_val=$(( $* ))
15575 else
15576 as_fn_arith ()
15578 as_val=`expr "$@" || test $? -eq 1`
15580 fi # as_fn_arith
15583 if expr a : '\(a\)' >/dev/null 2>&1 &&
15584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15585 as_expr=expr
15586 else
15587 as_expr=false
15590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15591 as_basename=basename
15592 else
15593 as_basename=false
15596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15597 as_dirname=dirname
15598 else
15599 as_dirname=false
15602 as_me=`$as_basename -- "$0" ||
15603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15604 X"$0" : 'X\(//\)$' \| \
15605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15606 $as_echo X/"$0" |
15607 sed '/^.*\/\([^/][^/]*\)\/*$/{
15608 s//\1/
15611 /^X\/\(\/\/\)$/{
15612 s//\1/
15615 /^X\/\(\/\).*/{
15616 s//\1/
15619 s/.*/./; q'`
15621 # Avoid depending upon Character Ranges.
15622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15625 as_cr_digits='0123456789'
15626 as_cr_alnum=$as_cr_Letters$as_cr_digits
15628 ECHO_C= ECHO_N= ECHO_T=
15629 case `echo -n x` in #(((((
15630 -n*)
15631 case `echo 'xy\c'` in
15632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15633 xy) ECHO_C='\c';;
15634 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15635 ECHO_T=' ';;
15636 esac;;
15638 ECHO_N='-n';;
15639 esac
15641 rm -f conf$$ conf$$.exe conf$$.file
15642 if test -d conf$$.dir; then
15643 rm -f conf$$.dir/conf$$.file
15644 else
15645 rm -f conf$$.dir
15646 mkdir conf$$.dir 2>/dev/null
15648 if (echo >conf$$.file) 2>/dev/null; then
15649 if ln -s conf$$.file conf$$ 2>/dev/null; then
15650 as_ln_s='ln -s'
15651 # ... but there are two gotchas:
15652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15654 # In both cases, we have to default to `cp -p'.
15655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15656 as_ln_s='cp -p'
15657 elif ln conf$$.file conf$$ 2>/dev/null; then
15658 as_ln_s=ln
15659 else
15660 as_ln_s='cp -p'
15662 else
15663 as_ln_s='cp -p'
15665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15666 rmdir conf$$.dir 2>/dev/null
15669 # as_fn_mkdir_p
15670 # -------------
15671 # Create "$as_dir" as a directory, including parents if necessary.
15672 as_fn_mkdir_p ()
15675 case $as_dir in #(
15676 -*) as_dir=./$as_dir;;
15677 esac
15678 test -d "$as_dir" || eval $as_mkdir_p || {
15679 as_dirs=
15680 while :; do
15681 case $as_dir in #(
15682 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15683 *) as_qdir=$as_dir;;
15684 esac
15685 as_dirs="'$as_qdir' $as_dirs"
15686 as_dir=`$as_dirname -- "$as_dir" ||
15687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15688 X"$as_dir" : 'X\(//\)[^/]' \| \
15689 X"$as_dir" : 'X\(//\)$' \| \
15690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15691 $as_echo X"$as_dir" |
15692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15693 s//\1/
15696 /^X\(\/\/\)[^/].*/{
15697 s//\1/
15700 /^X\(\/\/\)$/{
15701 s//\1/
15704 /^X\(\/\).*/{
15705 s//\1/
15708 s/.*/./; q'`
15709 test -d "$as_dir" && break
15710 done
15711 test -z "$as_dirs" || eval "mkdir $as_dirs"
15712 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15715 } # as_fn_mkdir_p
15716 if mkdir -p . 2>/dev/null; then
15717 as_mkdir_p='mkdir -p "$as_dir"'
15718 else
15719 test -d ./-p && rmdir ./-p
15720 as_mkdir_p=false
15723 if test -x / >/dev/null 2>&1; then
15724 as_test_x='test -x'
15725 else
15726 if ls -dL / >/dev/null 2>&1; then
15727 as_ls_L_option=L
15728 else
15729 as_ls_L_option=
15731 as_test_x='
15732 eval sh -c '\''
15733 if test -d "$1"; then
15734 test -d "$1/.";
15735 else
15736 case $1 in #(
15737 -*)set "./$1";;
15738 esac;
15739 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15740 ???[sx]*):;;*)false;;esac;fi
15741 '\'' sh
15744 as_executable_p=$as_test_x
15746 # Sed expression to map a string onto a valid CPP name.
15747 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15749 # Sed expression to map a string onto a valid variable name.
15750 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15753 exec 6>&1
15754 ## ----------------------------------- ##
15755 ## Main body of $CONFIG_STATUS script. ##
15756 ## ----------------------------------- ##
15757 _ASEOF
15758 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15761 # Save the log message, to keep $0 and so on meaningful, and to
15762 # report actual input values of CONFIG_FILES etc. instead of their
15763 # values after options handling.
15764 ac_log="
15765 This file was extended by libmudflap $as_me 1.0, which was
15766 generated by GNU Autoconf 2.64. Invocation command line was
15768 CONFIG_FILES = $CONFIG_FILES
15769 CONFIG_HEADERS = $CONFIG_HEADERS
15770 CONFIG_LINKS = $CONFIG_LINKS
15771 CONFIG_COMMANDS = $CONFIG_COMMANDS
15772 $ $0 $@
15774 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15777 _ACEOF
15779 case $ac_config_files in *"
15780 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15781 esac
15783 case $ac_config_headers in *"
15784 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15785 esac
15788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15789 # Files that config.status was made for.
15790 config_files="$ac_config_files"
15791 config_headers="$ac_config_headers"
15792 config_commands="$ac_config_commands"
15794 _ACEOF
15796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15797 ac_cs_usage="\
15798 \`$as_me' instantiates files and other configuration actions
15799 from templates according to the current configuration. Unless the files
15800 and actions are specified as TAGs, all are instantiated by default.
15802 Usage: $0 [OPTION]... [TAG]...
15804 -h, --help print this help, then exit
15805 -V, --version print version number and configuration settings, then exit
15806 -q, --quiet, --silent
15807 do not print progress messages
15808 -d, --debug don't remove temporary files
15809 --recheck update $as_me by reconfiguring in the same conditions
15810 --file=FILE[:TEMPLATE]
15811 instantiate the configuration file FILE
15812 --header=FILE[:TEMPLATE]
15813 instantiate the configuration header FILE
15815 Configuration files:
15816 $config_files
15818 Configuration headers:
15819 $config_headers
15821 Configuration commands:
15822 $config_commands
15824 Report bugs to the package provider."
15826 _ACEOF
15827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15828 ac_cs_version="\\
15829 libmudflap config.status 1.0
15830 configured by $0, generated by GNU Autoconf 2.64,
15831 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15833 Copyright (C) 2009 Free Software Foundation, Inc.
15834 This config.status script is free software; the Free Software Foundation
15835 gives unlimited permission to copy, distribute and modify it."
15837 ac_pwd='$ac_pwd'
15838 srcdir='$srcdir'
15839 INSTALL='$INSTALL'
15840 MKDIR_P='$MKDIR_P'
15841 AWK='$AWK'
15842 test -n "\$AWK" || AWK=awk
15843 _ACEOF
15845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15846 # The default lists apply if the user does not specify any file.
15847 ac_need_defaults=:
15848 while test $# != 0
15850 case $1 in
15851 --*=*)
15852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15854 ac_shift=:
15857 ac_option=$1
15858 ac_optarg=$2
15859 ac_shift=shift
15861 esac
15863 case $ac_option in
15864 # Handling of the options.
15865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15866 ac_cs_recheck=: ;;
15867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15868 $as_echo "$ac_cs_version"; exit ;;
15869 --debug | --debu | --deb | --de | --d | -d )
15870 debug=: ;;
15871 --file | --fil | --fi | --f )
15872 $ac_shift
15873 case $ac_optarg in
15874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15875 esac
15876 as_fn_append CONFIG_FILES " '$ac_optarg'"
15877 ac_need_defaults=false;;
15878 --header | --heade | --head | --hea )
15879 $ac_shift
15880 case $ac_optarg in
15881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15882 esac
15883 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15884 ac_need_defaults=false;;
15885 --he | --h)
15886 # Conflict between --help and --header
15887 as_fn_error "ambiguous option: \`$1'
15888 Try \`$0 --help' for more information.";;
15889 --help | --hel | -h )
15890 $as_echo "$ac_cs_usage"; exit ;;
15891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15892 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15893 ac_cs_silent=: ;;
15895 # This is an error.
15896 -*) as_fn_error "unrecognized option: \`$1'
15897 Try \`$0 --help' for more information." ;;
15899 *) as_fn_append ac_config_targets " $1"
15900 ac_need_defaults=false ;;
15902 esac
15903 shift
15904 done
15906 ac_configure_extra_args=
15908 if $ac_cs_silent; then
15909 exec 6>/dev/null
15910 ac_configure_extra_args="$ac_configure_extra_args --silent"
15913 _ACEOF
15914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15915 if \$ac_cs_recheck; then
15916 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15917 shift
15918 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15919 CONFIG_SHELL='$SHELL'
15920 export CONFIG_SHELL
15921 exec "\$@"
15924 _ACEOF
15925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926 exec 5>>config.log
15928 echo
15929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15930 ## Running $as_me. ##
15931 _ASBOX
15932 $as_echo "$ac_log"
15933 } >&5
15935 _ACEOF
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15938 # INIT-COMMANDS
15941 srcdir="$srcdir"
15942 host="$host"
15943 target="$target"
15944 with_multisubdir="$with_multisubdir"
15945 with_multisrctop="$with_multisrctop"
15946 with_target_subdir="$with_target_subdir"
15947 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15948 multi_basedir="$multi_basedir"
15949 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15950 CC="$CC"
15951 CXX="$CXX"
15952 GFORTRAN="$GFORTRAN"
15953 GCJ="$GCJ"
15954 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15957 # The HP-UX ksh and POSIX shell print the target directory to stdout
15958 # if CDPATH is set.
15959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15961 sed_quote_subst='$sed_quote_subst'
15962 double_quote_subst='$double_quote_subst'
15963 delay_variable_subst='$delay_variable_subst'
15964 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15965 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15966 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15967 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15968 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15969 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15970 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15971 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15972 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15973 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15974 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15975 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15976 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15977 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15978 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15979 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15980 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15981 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15982 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15983 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15984 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15985 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15986 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15987 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15988 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15989 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15990 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15991 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15992 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15993 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15994 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15995 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15996 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15997 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15998 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15999 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16000 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16001 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16002 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16003 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16004 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16005 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16006 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16007 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16008 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16009 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16010 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16011 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16012 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"`'
16013 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16014 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16015 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16017 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16018 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16019 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16020 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16044 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16045 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16046 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16047 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16048 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16049 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16050 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16051 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16052 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16053 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16054 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16055 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16056 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16057 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16058 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16059 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16060 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16061 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16062 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16063 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16064 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16065 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16066 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16067 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16068 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16069 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16070 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16071 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16072 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16073 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16074 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16075 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16076 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16077 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16084 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16085 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16086 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16087 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16088 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16089 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16090 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16091 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16092 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16093 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16094 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16095 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16097 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16098 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16099 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16100 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16101 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16102 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16103 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16104 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16105 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16106 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16107 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16108 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16109 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16110 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16111 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16112 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16113 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16114 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16115 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16116 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16117 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16118 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16119 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16120 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16121 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16122 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16123 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16124 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16125 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16126 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16127 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16128 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16129 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16130 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16131 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16132 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16133 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16134 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16135 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16136 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16137 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16138 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16140 LTCC='$LTCC'
16141 LTCFLAGS='$LTCFLAGS'
16142 compiler='$compiler_DEFAULT'
16144 # A function that is used when there is no print builtin or printf.
16145 func_fallback_echo ()
16147 eval 'cat <<_LTECHO_EOF
16149 _LTECHO_EOF'
16152 # Quote evaled strings.
16153 for var in SHELL \
16154 ECHO \
16155 SED \
16156 GREP \
16157 EGREP \
16158 FGREP \
16159 LD \
16160 NM \
16161 LN_S \
16162 lt_SP2NL \
16163 lt_NL2SP \
16164 reload_flag \
16165 OBJDUMP \
16166 deplibs_check_method \
16167 file_magic_cmd \
16168 AR \
16169 AR_FLAGS \
16170 STRIP \
16171 RANLIB \
16172 CC \
16173 CFLAGS \
16174 compiler \
16175 lt_cv_sys_global_symbol_pipe \
16176 lt_cv_sys_global_symbol_to_cdecl \
16177 lt_cv_sys_global_symbol_to_c_name_address \
16178 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16179 lt_prog_compiler_no_builtin_flag \
16180 lt_prog_compiler_wl \
16181 lt_prog_compiler_pic \
16182 lt_prog_compiler_static \
16183 lt_cv_prog_compiler_c_o \
16184 need_locks \
16185 DSYMUTIL \
16186 NMEDIT \
16187 LIPO \
16188 OTOOL \
16189 OTOOL64 \
16190 shrext_cmds \
16191 export_dynamic_flag_spec \
16192 whole_archive_flag_spec \
16193 compiler_needs_object \
16194 with_gnu_ld \
16195 allow_undefined_flag \
16196 no_undefined_flag \
16197 hardcode_libdir_flag_spec \
16198 hardcode_libdir_flag_spec_ld \
16199 hardcode_libdir_separator \
16200 fix_srcfile_path \
16201 exclude_expsyms \
16202 include_expsyms \
16203 file_list_spec \
16204 variables_saved_for_relink \
16205 libname_spec \
16206 library_names_spec \
16207 soname_spec \
16208 install_override_mode \
16209 finish_eval \
16210 old_striplib \
16211 striplib \
16212 compiler_lib_search_dirs \
16213 predep_objects \
16214 postdep_objects \
16215 predeps \
16216 postdeps \
16217 compiler_lib_search_path \
16218 LD_CXX \
16219 reload_flag_CXX \
16220 compiler_CXX \
16221 lt_prog_compiler_no_builtin_flag_CXX \
16222 lt_prog_compiler_wl_CXX \
16223 lt_prog_compiler_pic_CXX \
16224 lt_prog_compiler_static_CXX \
16225 lt_cv_prog_compiler_c_o_CXX \
16226 export_dynamic_flag_spec_CXX \
16227 whole_archive_flag_spec_CXX \
16228 compiler_needs_object_CXX \
16229 with_gnu_ld_CXX \
16230 allow_undefined_flag_CXX \
16231 no_undefined_flag_CXX \
16232 hardcode_libdir_flag_spec_CXX \
16233 hardcode_libdir_flag_spec_ld_CXX \
16234 hardcode_libdir_separator_CXX \
16235 fix_srcfile_path_CXX \
16236 exclude_expsyms_CXX \
16237 include_expsyms_CXX \
16238 file_list_spec_CXX \
16239 compiler_lib_search_dirs_CXX \
16240 predep_objects_CXX \
16241 postdep_objects_CXX \
16242 predeps_CXX \
16243 postdeps_CXX \
16244 compiler_lib_search_path_CXX; do
16245 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16246 *[\\\\\\\`\\"\\\$]*)
16247 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16250 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16252 esac
16253 done
16255 # Double-quote double-evaled strings.
16256 for var in reload_cmds \
16257 old_postinstall_cmds \
16258 old_postuninstall_cmds \
16259 old_archive_cmds \
16260 extract_expsyms_cmds \
16261 old_archive_from_new_cmds \
16262 old_archive_from_expsyms_cmds \
16263 archive_cmds \
16264 archive_expsym_cmds \
16265 module_cmds \
16266 module_expsym_cmds \
16267 export_symbols_cmds \
16268 prelink_cmds \
16269 postinstall_cmds \
16270 postuninstall_cmds \
16271 finish_cmds \
16272 sys_lib_search_path_spec \
16273 sys_lib_dlsearch_path_spec \
16274 reload_cmds_CXX \
16275 old_archive_cmds_CXX \
16276 old_archive_from_new_cmds_CXX \
16277 old_archive_from_expsyms_cmds_CXX \
16278 archive_cmds_CXX \
16279 archive_expsym_cmds_CXX \
16280 module_cmds_CXX \
16281 module_expsym_cmds_CXX \
16282 export_symbols_cmds_CXX \
16283 prelink_cmds_CXX; do
16284 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16285 *[\\\\\\\`\\"\\\$]*)
16286 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16289 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16291 esac
16292 done
16294 ac_aux_dir='$ac_aux_dir'
16295 xsi_shell='$xsi_shell'
16296 lt_shell_append='$lt_shell_append'
16298 # See if we are running on zsh, and set the options which allow our
16299 # commands through without removal of \ escapes INIT.
16300 if test -n "\${ZSH_VERSION+set}" ; then
16301 setopt NO_GLOB_SUBST
16305 PACKAGE='$PACKAGE'
16306 VERSION='$VERSION'
16307 TIMESTAMP='$TIMESTAMP'
16308 RM='$RM'
16309 ofile='$ofile'
16316 _ACEOF
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320 # Handling of arguments.
16321 for ac_config_target in $ac_config_targets
16323 case $ac_config_target in
16324 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16325 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16327 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16328 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16329 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16330 "testsuite/mfconfig.exp") CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
16332 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16333 esac
16334 done
16337 # If the user did not use the arguments to specify the items to instantiate,
16338 # then the envvar interface is used. Set only those that are not.
16339 # We use the long form for the default assignment because of an extremely
16340 # bizarre bug on SunOS 4.1.3.
16341 if $ac_need_defaults; then
16342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16347 # Have a temporary directory for convenience. Make it in the build tree
16348 # simply because there is no reason against having it here, and in addition,
16349 # creating and moving files from /tmp can sometimes cause problems.
16350 # Hook for its removal unless debugging.
16351 # Note that there is a small window in which the directory will not be cleaned:
16352 # after its creation but before its name has been assigned to `$tmp'.
16353 $debug ||
16355 tmp=
16356 trap 'exit_status=$?
16357 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16359 trap 'as_fn_exit 1' 1 2 13 15
16361 # Create a (secure) tmp directory for tmp files.
16364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16365 test -n "$tmp" && test -d "$tmp"
16366 } ||
16368 tmp=./conf$$-$RANDOM
16369 (umask 077 && mkdir "$tmp")
16370 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16372 # Set up the scripts for CONFIG_FILES section.
16373 # No need to generate them if there are no CONFIG_FILES.
16374 # This happens for instance with `./config.status config.h'.
16375 if test -n "$CONFIG_FILES"; then
16378 ac_cr=`echo X | tr X '\015'`
16379 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16380 # But we know of no other shell where ac_cr would be empty at this
16381 # point, so we can use a bashism as a fallback.
16382 if test "x$ac_cr" = x; then
16383 eval ac_cr=\$\'\\r\'
16385 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16386 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16387 ac_cs_awk_cr='\r'
16388 else
16389 ac_cs_awk_cr=$ac_cr
16392 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16393 _ACEOF
16397 echo "cat >conf$$subs.awk <<_ACEOF" &&
16398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16399 echo "_ACEOF"
16400 } >conf$$subs.sh ||
16401 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16402 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16403 ac_delim='%!_!# '
16404 for ac_last_try in false false false false false :; do
16405 . ./conf$$subs.sh ||
16406 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16409 if test $ac_delim_n = $ac_delim_num; then
16410 break
16411 elif $ac_last_try; then
16412 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16413 else
16414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16416 done
16417 rm -f conf$$subs.sh
16419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16420 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16421 _ACEOF
16422 sed -n '
16424 s/^/S["/; s/!.*/"]=/
16427 s/^[^!]*!//
16428 :repl
16429 t repl
16430 s/'"$ac_delim"'$//
16431 t delim
16434 s/\(.\{148\}\).*/\1/
16435 t more1
16436 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16439 b repl
16440 :more1
16441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16444 s/.\{148\}//
16445 t nl
16446 :delim
16448 s/\(.\{148\}\).*/\1/
16449 t more2
16450 s/["\\]/\\&/g; s/^/"/; s/$/"/
16453 :more2
16454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16457 s/.\{148\}//
16458 t delim
16459 ' <conf$$subs.awk | sed '
16460 /^[^""]/{
16462 s/\n//
16464 ' >>$CONFIG_STATUS || ac_write_fail=1
16465 rm -f conf$$subs.awk
16466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16467 _ACAWK
16468 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16469 for (key in S) S_is_set[key] = 1
16470 FS = "\a"
16474 line = $ 0
16475 nfields = split(line, field, "@")
16476 substed = 0
16477 len = length(field[1])
16478 for (i = 2; i < nfields; i++) {
16479 key = field[i]
16480 keylen = length(key)
16481 if (S_is_set[key]) {
16482 value = S[key]
16483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16484 len += length(value) + length(field[++i])
16485 substed = 1
16486 } else
16487 len += 1 + keylen
16490 print line
16493 _ACAWK
16494 _ACEOF
16495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16498 else
16500 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16501 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16502 _ACEOF
16504 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16505 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16506 # trailing colons and then remove the whole line if VPATH becomes empty
16507 # (actually we leave an empty line to preserve line numbers).
16508 if test "x$srcdir" = x.; then
16509 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16510 s/:*\$(srcdir):*/:/
16511 s/:*\${srcdir}:*/:/
16512 s/:*@srcdir@:*/:/
16513 s/^\([^=]*=[ ]*\):*/\1/
16514 s/:*$//
16515 s/^[^=]*=[ ]*$//
16519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16520 fi # test -n "$CONFIG_FILES"
16522 # Set up the scripts for CONFIG_HEADERS section.
16523 # No need to generate them if there are no CONFIG_HEADERS.
16524 # This happens for instance with `./config.status Makefile'.
16525 if test -n "$CONFIG_HEADERS"; then
16526 cat >"$tmp/defines.awk" <<\_ACAWK ||
16527 BEGIN {
16528 _ACEOF
16530 # Transform confdefs.h into an awk script `defines.awk', embedded as
16531 # here-document in config.status, that substitutes the proper values into
16532 # config.h.in to produce config.h.
16534 # Create a delimiter string that does not exist in confdefs.h, to ease
16535 # handling of long lines.
16536 ac_delim='%!_!# '
16537 for ac_last_try in false false :; do
16538 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16539 if test -z "$ac_t"; then
16540 break
16541 elif $ac_last_try; then
16542 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16543 else
16544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16546 done
16548 # For the awk script, D is an array of macro values keyed by name,
16549 # likewise P contains macro parameters if any. Preserve backslash
16550 # newline sequences.
16552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16553 sed -n '
16554 s/.\{148\}/&'"$ac_delim"'/g
16555 t rset
16556 :rset
16557 s/^[ ]*#[ ]*define[ ][ ]*/ /
16558 t def
16560 :def
16561 s/\\$//
16562 t bsnl
16563 s/["\\]/\\&/g
16564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16565 D["\1"]=" \3"/p
16566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16568 :bsnl
16569 s/["\\]/\\&/g
16570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16571 D["\1"]=" \3\\\\\\n"\\/p
16572 t cont
16573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16574 t cont
16576 :cont
16578 s/.\{148\}/&'"$ac_delim"'/g
16579 t clear
16580 :clear
16581 s/\\$//
16582 t bsnlc
16583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16585 :bsnlc
16586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16587 b cont
16588 ' <confdefs.h | sed '
16589 s/'"$ac_delim"'/"\\\
16590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16593 for (key in D) D_is_set[key] = 1
16594 FS = "\a"
16596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16597 line = \$ 0
16598 split(line, arg, " ")
16599 if (arg[1] == "#") {
16600 defundef = arg[2]
16601 mac1 = arg[3]
16602 } else {
16603 defundef = substr(arg[1], 2)
16604 mac1 = arg[2]
16606 split(mac1, mac2, "(") #)
16607 macro = mac2[1]
16608 prefix = substr(line, 1, index(line, defundef) - 1)
16609 if (D_is_set[macro]) {
16610 # Preserve the white space surrounding the "#".
16611 print prefix "define", macro P[macro] D[macro]
16612 next
16613 } else {
16614 # Replace #undef with comments. This is necessary, for example,
16615 # in the case of _POSIX_SOURCE, which is predefined and required
16616 # on some systems where configure will not decide to define it.
16617 if (defundef == "undef") {
16618 print "/*", prefix defundef, macro, "*/"
16619 next
16623 { print }
16624 _ACAWK
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16628 fi # test -n "$CONFIG_HEADERS"
16631 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16632 shift
16633 for ac_tag
16635 case $ac_tag in
16636 :[FHLC]) ac_mode=$ac_tag; continue;;
16637 esac
16638 case $ac_mode$ac_tag in
16639 :[FHL]*:*);;
16640 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16641 :[FH]-) ac_tag=-:-;;
16642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16643 esac
16644 ac_save_IFS=$IFS
16645 IFS=:
16646 set x $ac_tag
16647 IFS=$ac_save_IFS
16648 shift
16649 ac_file=$1
16650 shift
16652 case $ac_mode in
16653 :L) ac_source=$1;;
16654 :[FH])
16655 ac_file_inputs=
16656 for ac_f
16658 case $ac_f in
16659 -) ac_f="$tmp/stdin";;
16660 *) # Look for the file first in the build tree, then in the source tree
16661 # (if the path is not absolute). The absolute path cannot be DOS-style,
16662 # because $ac_f cannot contain `:'.
16663 test -f "$ac_f" ||
16664 case $ac_f in
16665 [\\/$]*) false;;
16666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16667 esac ||
16668 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16669 esac
16670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16671 as_fn_append ac_file_inputs " '$ac_f'"
16672 done
16674 # Let's still pretend it is `configure' which instantiates (i.e., don't
16675 # use $as_me), people would be surprised to read:
16676 # /* config.h. Generated by config.status. */
16677 configure_input='Generated from '`
16678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16679 `' by configure.'
16680 if test x"$ac_file" != x-; then
16681 configure_input="$ac_file. $configure_input"
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16683 $as_echo "$as_me: creating $ac_file" >&6;}
16685 # Neutralize special characters interpreted by sed in replacement strings.
16686 case $configure_input in #(
16687 *\&* | *\|* | *\\* )
16688 ac_sed_conf_input=`$as_echo "$configure_input" |
16689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16690 *) ac_sed_conf_input=$configure_input;;
16691 esac
16693 case $ac_tag in
16694 *:-:* | *:-) cat >"$tmp/stdin" \
16695 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16696 esac
16698 esac
16700 ac_dir=`$as_dirname -- "$ac_file" ||
16701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16702 X"$ac_file" : 'X\(//\)[^/]' \| \
16703 X"$ac_file" : 'X\(//\)$' \| \
16704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16705 $as_echo X"$ac_file" |
16706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16707 s//\1/
16710 /^X\(\/\/\)[^/].*/{
16711 s//\1/
16714 /^X\(\/\/\)$/{
16715 s//\1/
16718 /^X\(\/\).*/{
16719 s//\1/
16722 s/.*/./; q'`
16723 as_dir="$ac_dir"; as_fn_mkdir_p
16724 ac_builddir=.
16726 case "$ac_dir" in
16727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16730 # A ".." for each directory in $ac_dir_suffix.
16731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16732 case $ac_top_builddir_sub in
16733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16735 esac ;;
16736 esac
16737 ac_abs_top_builddir=$ac_pwd
16738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16739 # for backward compatibility:
16740 ac_top_builddir=$ac_top_build_prefix
16742 case $srcdir in
16743 .) # We are building in place.
16744 ac_srcdir=.
16745 ac_top_srcdir=$ac_top_builddir_sub
16746 ac_abs_top_srcdir=$ac_pwd ;;
16747 [\\/]* | ?:[\\/]* ) # Absolute name.
16748 ac_srcdir=$srcdir$ac_dir_suffix;
16749 ac_top_srcdir=$srcdir
16750 ac_abs_top_srcdir=$srcdir ;;
16751 *) # Relative name.
16752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16753 ac_top_srcdir=$ac_top_build_prefix$srcdir
16754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16755 esac
16756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16759 case $ac_mode in
16762 # CONFIG_FILE
16765 case $INSTALL in
16766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16768 esac
16769 ac_MKDIR_P=$MKDIR_P
16770 case $MKDIR_P in
16771 [\\/$]* | ?:[\\/]* ) ;;
16772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16773 esac
16774 _ACEOF
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 # If the template does not know about datarootdir, expand it.
16778 # FIXME: This hack should be removed a few years after 2.60.
16779 ac_datarootdir_hack=; ac_datarootdir_seen=
16780 ac_sed_dataroot='
16781 /datarootdir/ {
16785 /@datadir@/p
16786 /@docdir@/p
16787 /@infodir@/p
16788 /@localedir@/p
16789 /@mandir@/p'
16790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16791 *datarootdir*) ac_datarootdir_seen=yes;;
16792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16795 _ACEOF
16796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16797 ac_datarootdir_hack='
16798 s&@datadir@&$datadir&g
16799 s&@docdir@&$docdir&g
16800 s&@infodir@&$infodir&g
16801 s&@localedir@&$localedir&g
16802 s&@mandir@&$mandir&g
16803 s&\\\${datarootdir}&$datarootdir&g' ;;
16804 esac
16805 _ACEOF
16807 # Neutralize VPATH when `$srcdir' = `.'.
16808 # Shell code in configure.ac might set extrasub.
16809 # FIXME: do we really want to maintain this feature?
16810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16811 ac_sed_extra="$ac_vpsub
16812 $extrasub
16813 _ACEOF
16814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16817 s|@configure_input@|$ac_sed_conf_input|;t t
16818 s&@top_builddir@&$ac_top_builddir_sub&;t t
16819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16820 s&@srcdir@&$ac_srcdir&;t t
16821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16822 s&@top_srcdir@&$ac_top_srcdir&;t t
16823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16824 s&@builddir@&$ac_builddir&;t t
16825 s&@abs_builddir@&$ac_abs_builddir&;t t
16826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16827 s&@INSTALL@&$ac_INSTALL&;t t
16828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16829 $ac_datarootdir_hack
16831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16832 || as_fn_error "could not create $ac_file" "$LINENO" 5
16834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16835 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16838 which seems to be undefined. Please make sure it is defined." >&5
16839 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16840 which seems to be undefined. Please make sure it is defined." >&2;}
16842 rm -f "$tmp/stdin"
16843 case $ac_file in
16844 -) cat "$tmp/out" && rm -f "$tmp/out";;
16845 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16846 esac \
16847 || as_fn_error "could not create $ac_file" "$LINENO" 5
16851 # CONFIG_HEADER
16853 if test x"$ac_file" != x-; then
16855 $as_echo "/* $configure_input */" \
16856 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16857 } >"$tmp/config.h" \
16858 || as_fn_error "could not create $ac_file" "$LINENO" 5
16859 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16861 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16862 else
16863 rm -f "$ac_file"
16864 mv "$tmp/config.h" "$ac_file" \
16865 || as_fn_error "could not create $ac_file" "$LINENO" 5
16867 else
16868 $as_echo "/* $configure_input */" \
16869 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16870 || as_fn_error "could not create -" "$LINENO" 5
16872 # Compute "$ac_file"'s index in $config_headers.
16873 _am_arg="$ac_file"
16874 _am_stamp_count=1
16875 for _am_header in $config_headers :; do
16876 case $_am_header in
16877 $_am_arg | $_am_arg:* )
16878 break ;;
16880 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16881 esac
16882 done
16883 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16884 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16885 X"$_am_arg" : 'X\(//\)[^/]' \| \
16886 X"$_am_arg" : 'X\(//\)$' \| \
16887 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16888 $as_echo X"$_am_arg" |
16889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16890 s//\1/
16893 /^X\(\/\/\)[^/].*/{
16894 s//\1/
16897 /^X\(\/\/\)$/{
16898 s//\1/
16901 /^X\(\/\).*/{
16902 s//\1/
16905 s/.*/./; q'`/stamp-h$_am_stamp_count
16908 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16909 $as_echo "$as_me: executing $ac_file commands" >&6;}
16911 esac
16914 case $ac_file$ac_mode in
16915 "default-1":C)
16916 # Only add multilib support code if we just rebuilt the top-level
16917 # Makefile.
16918 case " $CONFIG_FILES " in
16919 *" Makefile "*)
16920 ac_file=Makefile . ${multi_basedir}/config-ml.in
16922 esac ;;
16923 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16924 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16925 # are listed without --file. Let's play safe and only enable the eval
16926 # if we detect the quoting.
16927 case $CONFIG_FILES in
16928 *\'*) eval set x "$CONFIG_FILES" ;;
16929 *) set x $CONFIG_FILES ;;
16930 esac
16931 shift
16932 for mf
16934 # Strip MF so we end up with the name of the file.
16935 mf=`echo "$mf" | sed -e 's/:.*$//'`
16936 # Check whether this is an Automake generated Makefile or not.
16937 # We used to match only the files named `Makefile.in', but
16938 # some people rename them; so instead we look at the file content.
16939 # Grep'ing the first line is not enough: some people post-process
16940 # each Makefile.in and add a new line on top of each file to say so.
16941 # Grep'ing the whole file is not good either: AIX grep has a line
16942 # limit of 2048, but all sed's we know have understand at least 4000.
16943 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16944 dirpart=`$as_dirname -- "$mf" ||
16945 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16946 X"$mf" : 'X\(//\)[^/]' \| \
16947 X"$mf" : 'X\(//\)$' \| \
16948 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16949 $as_echo X"$mf" |
16950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16951 s//\1/
16954 /^X\(\/\/\)[^/].*/{
16955 s//\1/
16958 /^X\(\/\/\)$/{
16959 s//\1/
16962 /^X\(\/\).*/{
16963 s//\1/
16966 s/.*/./; q'`
16967 else
16968 continue
16970 # Extract the definition of DEPDIR, am__include, and am__quote
16971 # from the Makefile without running `make'.
16972 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16973 test -z "$DEPDIR" && continue
16974 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16975 test -z "am__include" && continue
16976 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16977 # When using ansi2knr, U may be empty or an underscore; expand it
16978 U=`sed -n 's/^U = //p' < "$mf"`
16979 # Find all dependency output files, they are included files with
16980 # $(DEPDIR) in their names. We invoke sed twice because it is the
16981 # simplest approach to changing $(DEPDIR) to its actual value in the
16982 # expansion.
16983 for file in `sed -n "
16984 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16985 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16986 # Make sure the directory exists.
16987 test -f "$dirpart/$file" && continue
16988 fdir=`$as_dirname -- "$file" ||
16989 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990 X"$file" : 'X\(//\)[^/]' \| \
16991 X"$file" : 'X\(//\)$' \| \
16992 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16993 $as_echo X"$file" |
16994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995 s//\1/
16998 /^X\(\/\/\)[^/].*/{
16999 s//\1/
17002 /^X\(\/\/\)$/{
17003 s//\1/
17006 /^X\(\/\).*/{
17007 s//\1/
17010 s/.*/./; q'`
17011 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17012 # echo "creating $dirpart/$file"
17013 echo '# dummy' > "$dirpart/$file"
17014 done
17015 done
17018 "libtool":C)
17020 # See if we are running on zsh, and set the options which allow our
17021 # commands through without removal of \ escapes.
17022 if test -n "${ZSH_VERSION+set}" ; then
17023 setopt NO_GLOB_SUBST
17026 cfgfile="${ofile}T"
17027 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17028 $RM "$cfgfile"
17030 cat <<_LT_EOF >> "$cfgfile"
17031 #! $SHELL
17033 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17034 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17035 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17036 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17038 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17039 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17040 # Written by Gordon Matzigkeit, 1996
17042 # This file is part of GNU Libtool.
17044 # GNU Libtool is free software; you can redistribute it and/or
17045 # modify it under the terms of the GNU General Public License as
17046 # published by the Free Software Foundation; either version 2 of
17047 # the License, or (at your option) any later version.
17049 # As a special exception to the GNU General Public License,
17050 # if you distribute this file as part of a program or library that
17051 # is built using GNU Libtool, you may include this file under the
17052 # same distribution terms that you use for the rest of that program.
17054 # GNU Libtool is distributed in the hope that it will be useful,
17055 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17056 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17057 # GNU General Public License for more details.
17059 # You should have received a copy of the GNU General Public License
17060 # along with GNU Libtool; see the file COPYING. If not, a copy
17061 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17062 # obtained by writing to the Free Software Foundation, Inc.,
17063 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17066 # The names of the tagged configurations supported by this script.
17067 available_tags="CXX "
17069 # ### BEGIN LIBTOOL CONFIG
17071 # Which release of libtool.m4 was used?
17072 macro_version=$macro_version
17073 macro_revision=$macro_revision
17075 # Whether or not to build shared libraries.
17076 build_libtool_libs=$enable_shared
17078 # Whether or not to build static libraries.
17079 build_old_libs=$enable_static
17081 # What type of objects to build.
17082 pic_mode=$pic_mode
17084 # Whether or not to optimize for fast installation.
17085 fast_install=$enable_fast_install
17087 # Shell to use when invoking shell scripts.
17088 SHELL=$lt_SHELL
17090 # An echo program that protects backslashes.
17091 ECHO=$lt_ECHO
17093 # The host system.
17094 host_alias=$host_alias
17095 host=$host
17096 host_os=$host_os
17098 # The build system.
17099 build_alias=$build_alias
17100 build=$build
17101 build_os=$build_os
17103 # A sed program that does not truncate output.
17104 SED=$lt_SED
17106 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17107 Xsed="\$SED -e 1s/^X//"
17109 # A grep program that handles long lines.
17110 GREP=$lt_GREP
17112 # An ERE matcher.
17113 EGREP=$lt_EGREP
17115 # A literal string matcher.
17116 FGREP=$lt_FGREP
17118 # A BSD- or MS-compatible name lister.
17119 NM=$lt_NM
17121 # Whether we need soft or hard links.
17122 LN_S=$lt_LN_S
17124 # What is the maximum length of a command?
17125 max_cmd_len=$max_cmd_len
17127 # Object file suffix (normally "o").
17128 objext=$ac_objext
17130 # Executable file suffix (normally "").
17131 exeext=$exeext
17133 # whether the shell understands "unset".
17134 lt_unset=$lt_unset
17136 # turn spaces into newlines.
17137 SP2NL=$lt_lt_SP2NL
17139 # turn newlines into spaces.
17140 NL2SP=$lt_lt_NL2SP
17142 # An object symbol dumper.
17143 OBJDUMP=$lt_OBJDUMP
17145 # Method to check whether dependent libraries are shared objects.
17146 deplibs_check_method=$lt_deplibs_check_method
17148 # Command to use when deplibs_check_method == "file_magic".
17149 file_magic_cmd=$lt_file_magic_cmd
17151 # The archiver.
17152 AR=$lt_AR
17153 AR_FLAGS=$lt_AR_FLAGS
17155 # A symbol stripping program.
17156 STRIP=$lt_STRIP
17158 # Commands used to install an old-style archive.
17159 RANLIB=$lt_RANLIB
17160 old_postinstall_cmds=$lt_old_postinstall_cmds
17161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17163 # Whether to use a lock for old archive extraction.
17164 lock_old_archive_extraction=$lock_old_archive_extraction
17166 # A C compiler.
17167 LTCC=$lt_CC
17169 # LTCC compiler flags.
17170 LTCFLAGS=$lt_CFLAGS
17172 # Take the output of nm and produce a listing of raw symbols and C names.
17173 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17175 # Transform the output of nm in a proper C declaration.
17176 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17178 # Transform the output of nm in a C name address pair.
17179 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17181 # Transform the output of nm in a C name address pair when lib prefix is needed.
17182 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17184 # The name of the directory that contains temporary libtool files.
17185 objdir=$objdir
17187 # Used to examine libraries when file_magic_cmd begins with "file".
17188 MAGIC_CMD=$MAGIC_CMD
17190 # Must we lock files when doing compilation?
17191 need_locks=$lt_need_locks
17193 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17194 DSYMUTIL=$lt_DSYMUTIL
17196 # Tool to change global to local symbols on Mac OS X.
17197 NMEDIT=$lt_NMEDIT
17199 # Tool to manipulate fat objects and archives on Mac OS X.
17200 LIPO=$lt_LIPO
17202 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17203 OTOOL=$lt_OTOOL
17205 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17206 OTOOL64=$lt_OTOOL64
17208 # Old archive suffix (normally "a").
17209 libext=$libext
17211 # Shared library suffix (normally ".so").
17212 shrext_cmds=$lt_shrext_cmds
17214 # The commands to extract the exported symbol list from a shared archive.
17215 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17217 # Variables whose values should be saved in libtool wrapper scripts and
17218 # restored at link time.
17219 variables_saved_for_relink=$lt_variables_saved_for_relink
17221 # Do we need the "lib" prefix for modules?
17222 need_lib_prefix=$need_lib_prefix
17224 # Do we need a version for libraries?
17225 need_version=$need_version
17227 # Library versioning type.
17228 version_type=$version_type
17230 # Shared library runtime path variable.
17231 runpath_var=$runpath_var
17233 # Shared library path variable.
17234 shlibpath_var=$shlibpath_var
17236 # Is shlibpath searched before the hard-coded library search path?
17237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17239 # Format of library name prefix.
17240 libname_spec=$lt_libname_spec
17242 # List of archive names. First name is the real one, the rest are links.
17243 # The last name is the one that the linker finds with -lNAME
17244 library_names_spec=$lt_library_names_spec
17246 # The coded name of the library, if different from the real name.
17247 soname_spec=$lt_soname_spec
17249 # Permission mode override for installation of shared libraries.
17250 install_override_mode=$lt_install_override_mode
17252 # Command to use after installation of a shared archive.
17253 postinstall_cmds=$lt_postinstall_cmds
17255 # Command to use after uninstallation of a shared archive.
17256 postuninstall_cmds=$lt_postuninstall_cmds
17258 # Commands used to finish a libtool library installation in a directory.
17259 finish_cmds=$lt_finish_cmds
17261 # As "finish_cmds", except a single script fragment to be evaled but
17262 # not shown.
17263 finish_eval=$lt_finish_eval
17265 # Whether we should hardcode library paths into libraries.
17266 hardcode_into_libs=$hardcode_into_libs
17268 # Compile-time system search path for libraries.
17269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17271 # Run-time system search path for libraries.
17272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17274 # Whether dlopen is supported.
17275 dlopen_support=$enable_dlopen
17277 # Whether dlopen of programs is supported.
17278 dlopen_self=$enable_dlopen_self
17280 # Whether dlopen of statically linked programs is supported.
17281 dlopen_self_static=$enable_dlopen_self_static
17283 # Commands to strip libraries.
17284 old_striplib=$lt_old_striplib
17285 striplib=$lt_striplib
17288 # The linker used to build libraries.
17289 LD=$lt_LD
17291 # How to create reloadable object files.
17292 reload_flag=$lt_reload_flag
17293 reload_cmds=$lt_reload_cmds
17295 # Commands used to build an old-style archive.
17296 old_archive_cmds=$lt_old_archive_cmds
17298 # A language specific compiler.
17299 CC=$lt_compiler
17301 # Is the compiler the GNU compiler?
17302 with_gcc=$GCC
17304 # Compiler flag to turn off builtin functions.
17305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17307 # How to pass a linker flag through the compiler.
17308 wl=$lt_lt_prog_compiler_wl
17310 # Additional compiler flags for building library objects.
17311 pic_flag=$lt_lt_prog_compiler_pic
17313 # Compiler flag to prevent dynamic linking.
17314 link_static_flag=$lt_lt_prog_compiler_static
17316 # Does compiler simultaneously support -c and -o options?
17317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17319 # Whether or not to add -lc for building shared libraries.
17320 build_libtool_need_lc=$archive_cmds_need_lc
17322 # Whether or not to disallow shared libs when runtime libs are static.
17323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17325 # Compiler flag to allow reflexive dlopens.
17326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17328 # Compiler flag to generate shared objects directly from archives.
17329 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17331 # Whether the compiler copes with passing no objects directly.
17332 compiler_needs_object=$lt_compiler_needs_object
17334 # Create an old-style archive from a shared archive.
17335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17337 # Create a temporary old-style archive to link instead of a shared archive.
17338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17340 # Commands used to build a shared archive.
17341 archive_cmds=$lt_archive_cmds
17342 archive_expsym_cmds=$lt_archive_expsym_cmds
17344 # Commands used to build a loadable module if different from building
17345 # a shared archive.
17346 module_cmds=$lt_module_cmds
17347 module_expsym_cmds=$lt_module_expsym_cmds
17349 # Whether we are building with GNU ld or not.
17350 with_gnu_ld=$lt_with_gnu_ld
17352 # Flag that allows shared libraries with undefined symbols to be built.
17353 allow_undefined_flag=$lt_allow_undefined_flag
17355 # Flag that enforces no undefined symbols.
17356 no_undefined_flag=$lt_no_undefined_flag
17358 # Flag to hardcode \$libdir into a binary during linking.
17359 # This must work even if \$libdir does not exist
17360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17362 # If ld is used when linking, flag to hardcode \$libdir into a binary
17363 # during linking. This must work even if \$libdir does not exist.
17364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17366 # Whether we need a single "-rpath" flag with a separated argument.
17367 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17370 # DIR into the resulting binary.
17371 hardcode_direct=$hardcode_direct
17373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17374 # DIR into the resulting binary and the resulting library dependency is
17375 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17376 # library is relocated.
17377 hardcode_direct_absolute=$hardcode_direct_absolute
17379 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17380 # into the resulting binary.
17381 hardcode_minus_L=$hardcode_minus_L
17383 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17384 # into the resulting binary.
17385 hardcode_shlibpath_var=$hardcode_shlibpath_var
17387 # Set to "yes" if building a shared library automatically hardcodes DIR
17388 # into the library and all subsequent libraries and executables linked
17389 # against it.
17390 hardcode_automatic=$hardcode_automatic
17392 # Set to yes if linker adds runtime paths of dependent libraries
17393 # to runtime path list.
17394 inherit_rpath=$inherit_rpath
17396 # Whether libtool must link a program against all its dependency libraries.
17397 link_all_deplibs=$link_all_deplibs
17399 # Fix the shell variable \$srcfile for the compiler.
17400 fix_srcfile_path=$lt_fix_srcfile_path
17402 # Set to "yes" if exported symbols are required.
17403 always_export_symbols=$always_export_symbols
17405 # The commands to list exported symbols.
17406 export_symbols_cmds=$lt_export_symbols_cmds
17408 # Symbols that should not be listed in the preloaded symbols.
17409 exclude_expsyms=$lt_exclude_expsyms
17411 # Symbols that must always be exported.
17412 include_expsyms=$lt_include_expsyms
17414 # Commands necessary for linking programs (against libraries) with templates.
17415 prelink_cmds=$lt_prelink_cmds
17417 # Specify filename containing input files.
17418 file_list_spec=$lt_file_list_spec
17420 # How to hardcode a shared library path into an executable.
17421 hardcode_action=$hardcode_action
17423 # The directories searched by this compiler when creating a shared library.
17424 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17426 # Dependencies to place before and after the objects being linked to
17427 # create a shared library.
17428 predep_objects=$lt_predep_objects
17429 postdep_objects=$lt_postdep_objects
17430 predeps=$lt_predeps
17431 postdeps=$lt_postdeps
17433 # The library search path used internally by the compiler when linking
17434 # a shared library.
17435 compiler_lib_search_path=$lt_compiler_lib_search_path
17437 # ### END LIBTOOL CONFIG
17439 _LT_EOF
17441 case $host_os in
17442 aix3*)
17443 cat <<\_LT_EOF >> "$cfgfile"
17444 # AIX sometimes has problems with the GCC collect2 program. For some
17445 # reason, if we set the COLLECT_NAMES environment variable, the problems
17446 # vanish in a puff of smoke.
17447 if test "X${COLLECT_NAMES+set}" != Xset; then
17448 COLLECT_NAMES=
17449 export COLLECT_NAMES
17451 _LT_EOF
17453 esac
17456 ltmain="$ac_aux_dir/ltmain.sh"
17459 # We use sed instead of cat because bash on DJGPP gets confused if
17460 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17461 # text mode, it properly converts lines to CR/LF. This bash problem
17462 # is reportedly fixed, but why not run on old versions too?
17463 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17464 || (rm -f "$cfgfile"; exit 1)
17466 case $xsi_shell in
17467 yes)
17468 cat << \_LT_EOF >> "$cfgfile"
17470 # func_dirname file append nondir_replacement
17471 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17472 # otherwise set result to NONDIR_REPLACEMENT.
17473 func_dirname ()
17475 case ${1} in
17476 */*) func_dirname_result="${1%/*}${2}" ;;
17477 * ) func_dirname_result="${3}" ;;
17478 esac
17481 # func_basename file
17482 func_basename ()
17484 func_basename_result="${1##*/}"
17487 # func_dirname_and_basename file append nondir_replacement
17488 # perform func_basename and func_dirname in a single function
17489 # call:
17490 # dirname: Compute the dirname of FILE. If nonempty,
17491 # add APPEND to the result, otherwise set result
17492 # to NONDIR_REPLACEMENT.
17493 # value returned in "$func_dirname_result"
17494 # basename: Compute filename of FILE.
17495 # value retuned in "$func_basename_result"
17496 # Implementation must be kept synchronized with func_dirname
17497 # and func_basename. For efficiency, we do not delegate to
17498 # those functions but instead duplicate the functionality here.
17499 func_dirname_and_basename ()
17501 case ${1} in
17502 */*) func_dirname_result="${1%/*}${2}" ;;
17503 * ) func_dirname_result="${3}" ;;
17504 esac
17505 func_basename_result="${1##*/}"
17508 # func_stripname prefix suffix name
17509 # strip PREFIX and SUFFIX off of NAME.
17510 # PREFIX and SUFFIX must not contain globbing or regex special
17511 # characters, hashes, percent signs, but SUFFIX may contain a leading
17512 # dot (in which case that matches only a dot).
17513 func_stripname ()
17515 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17516 # positional parameters, so assign one to ordinary parameter first.
17517 func_stripname_result=${3}
17518 func_stripname_result=${func_stripname_result#"${1}"}
17519 func_stripname_result=${func_stripname_result%"${2}"}
17522 # func_opt_split
17523 func_opt_split ()
17525 func_opt_split_opt=${1%%=*}
17526 func_opt_split_arg=${1#*=}
17529 # func_lo2o object
17530 func_lo2o ()
17532 case ${1} in
17533 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17534 *) func_lo2o_result=${1} ;;
17535 esac
17538 # func_xform libobj-or-source
17539 func_xform ()
17541 func_xform_result=${1%.*}.lo
17544 # func_arith arithmetic-term...
17545 func_arith ()
17547 func_arith_result=$(( $* ))
17550 # func_len string
17551 # STRING may not start with a hyphen.
17552 func_len ()
17554 func_len_result=${#1}
17557 _LT_EOF
17559 *) # Bourne compatible functions.
17560 cat << \_LT_EOF >> "$cfgfile"
17562 # func_dirname file append nondir_replacement
17563 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17564 # otherwise set result to NONDIR_REPLACEMENT.
17565 func_dirname ()
17567 # Extract subdirectory from the argument.
17568 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17569 if test "X$func_dirname_result" = "X${1}"; then
17570 func_dirname_result="${3}"
17571 else
17572 func_dirname_result="$func_dirname_result${2}"
17576 # func_basename file
17577 func_basename ()
17579 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17583 # func_stripname prefix suffix name
17584 # strip PREFIX and SUFFIX off of NAME.
17585 # PREFIX and SUFFIX must not contain globbing or regex special
17586 # characters, hashes, percent signs, but SUFFIX may contain a leading
17587 # dot (in which case that matches only a dot).
17588 # func_strip_suffix prefix name
17589 func_stripname ()
17591 case ${2} in
17592 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17593 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17594 esac
17597 # sed scripts:
17598 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17599 my_sed_long_arg='1s/^-[^=]*=//'
17601 # func_opt_split
17602 func_opt_split ()
17604 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17605 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17608 # func_lo2o object
17609 func_lo2o ()
17611 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17614 # func_xform libobj-or-source
17615 func_xform ()
17617 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17620 # func_arith arithmetic-term...
17621 func_arith ()
17623 func_arith_result=`expr "$@"`
17626 # func_len string
17627 # STRING may not start with a hyphen.
17628 func_len ()
17630 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17633 _LT_EOF
17634 esac
17636 case $lt_shell_append in
17637 yes)
17638 cat << \_LT_EOF >> "$cfgfile"
17640 # func_append var value
17641 # Append VALUE to the end of shell variable VAR.
17642 func_append ()
17644 eval "$1+=\$2"
17646 _LT_EOF
17649 cat << \_LT_EOF >> "$cfgfile"
17651 # func_append var value
17652 # Append VALUE to the end of shell variable VAR.
17653 func_append ()
17655 eval "$1=\$$1\$2"
17658 _LT_EOF
17660 esac
17663 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17664 || (rm -f "$cfgfile"; exit 1)
17666 mv -f "$cfgfile" "$ofile" ||
17667 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17668 chmod +x "$ofile"
17671 cat <<_LT_EOF >> "$ofile"
17673 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17675 # The linker used to build libraries.
17676 LD=$lt_LD_CXX
17678 # How to create reloadable object files.
17679 reload_flag=$lt_reload_flag_CXX
17680 reload_cmds=$lt_reload_cmds_CXX
17682 # Commands used to build an old-style archive.
17683 old_archive_cmds=$lt_old_archive_cmds_CXX
17685 # A language specific compiler.
17686 CC=$lt_compiler_CXX
17688 # Is the compiler the GNU compiler?
17689 with_gcc=$GCC_CXX
17691 # Compiler flag to turn off builtin functions.
17692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17694 # How to pass a linker flag through the compiler.
17695 wl=$lt_lt_prog_compiler_wl_CXX
17697 # Additional compiler flags for building library objects.
17698 pic_flag=$lt_lt_prog_compiler_pic_CXX
17700 # Compiler flag to prevent dynamic linking.
17701 link_static_flag=$lt_lt_prog_compiler_static_CXX
17703 # Does compiler simultaneously support -c and -o options?
17704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17706 # Whether or not to add -lc for building shared libraries.
17707 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17709 # Whether or not to disallow shared libs when runtime libs are static.
17710 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17712 # Compiler flag to allow reflexive dlopens.
17713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17715 # Compiler flag to generate shared objects directly from archives.
17716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17718 # Whether the compiler copes with passing no objects directly.
17719 compiler_needs_object=$lt_compiler_needs_object_CXX
17721 # Create an old-style archive from a shared archive.
17722 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17724 # Create a temporary old-style archive to link instead of a shared archive.
17725 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17727 # Commands used to build a shared archive.
17728 archive_cmds=$lt_archive_cmds_CXX
17729 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17731 # Commands used to build a loadable module if different from building
17732 # a shared archive.
17733 module_cmds=$lt_module_cmds_CXX
17734 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17736 # Whether we are building with GNU ld or not.
17737 with_gnu_ld=$lt_with_gnu_ld_CXX
17739 # Flag that allows shared libraries with undefined symbols to be built.
17740 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17742 # Flag that enforces no undefined symbols.
17743 no_undefined_flag=$lt_no_undefined_flag_CXX
17745 # Flag to hardcode \$libdir into a binary during linking.
17746 # This must work even if \$libdir does not exist
17747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17749 # If ld is used when linking, flag to hardcode \$libdir into a binary
17750 # during linking. This must work even if \$libdir does not exist.
17751 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17753 # Whether we need a single "-rpath" flag with a separated argument.
17754 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17756 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17757 # DIR into the resulting binary.
17758 hardcode_direct=$hardcode_direct_CXX
17760 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17761 # DIR into the resulting binary and the resulting library dependency is
17762 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17763 # library is relocated.
17764 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17766 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17767 # into the resulting binary.
17768 hardcode_minus_L=$hardcode_minus_L_CXX
17770 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17771 # into the resulting binary.
17772 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17774 # Set to "yes" if building a shared library automatically hardcodes DIR
17775 # into the library and all subsequent libraries and executables linked
17776 # against it.
17777 hardcode_automatic=$hardcode_automatic_CXX
17779 # Set to yes if linker adds runtime paths of dependent libraries
17780 # to runtime path list.
17781 inherit_rpath=$inherit_rpath_CXX
17783 # Whether libtool must link a program against all its dependency libraries.
17784 link_all_deplibs=$link_all_deplibs_CXX
17786 # Fix the shell variable \$srcfile for the compiler.
17787 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17789 # Set to "yes" if exported symbols are required.
17790 always_export_symbols=$always_export_symbols_CXX
17792 # The commands to list exported symbols.
17793 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17795 # Symbols that should not be listed in the preloaded symbols.
17796 exclude_expsyms=$lt_exclude_expsyms_CXX
17798 # Symbols that must always be exported.
17799 include_expsyms=$lt_include_expsyms_CXX
17801 # Commands necessary for linking programs (against libraries) with templates.
17802 prelink_cmds=$lt_prelink_cmds_CXX
17804 # Specify filename containing input files.
17805 file_list_spec=$lt_file_list_spec_CXX
17807 # How to hardcode a shared library path into an executable.
17808 hardcode_action=$hardcode_action_CXX
17810 # The directories searched by this compiler when creating a shared library.
17811 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17813 # Dependencies to place before and after the objects being linked to
17814 # create a shared library.
17815 predep_objects=$lt_predep_objects_CXX
17816 postdep_objects=$lt_postdep_objects_CXX
17817 predeps=$lt_predeps_CXX
17818 postdeps=$lt_postdeps_CXX
17820 # The library search path used internally by the compiler when linking
17821 # a shared library.
17822 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17824 # ### END LIBTOOL TAG CONFIG: CXX
17825 _LT_EOF
17829 esac
17830 done # for ac_tag
17833 as_fn_exit 0
17834 _ACEOF
17835 ac_clean_files=$ac_clean_files_save
17837 test $ac_write_fail = 0 ||
17838 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17841 # configure is writing to config.log, and then calls config.status.
17842 # config.status does its own redirection, appending to config.log.
17843 # Unfortunately, on DOS this fails, as config.log is still kept open
17844 # by configure, so config.status won't be able to write to it; its
17845 # output is simply discarded. So we exec the FD to /dev/null,
17846 # effectively closing config.log, so it can be properly (re)opened and
17847 # appended to by config.status. When coming back to configure, we
17848 # need to make the FD available again.
17849 if test "$no_create" != yes; then
17850 ac_cs_success=:
17851 ac_config_status_args=
17852 test "$silent" = yes &&
17853 ac_config_status_args="$ac_config_status_args --quiet"
17854 exec 5>/dev/null
17855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17856 exec 5>>config.log
17857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17858 # would make configure fail if this is the last instruction.
17859 $ac_cs_success || as_fn_exit $?
17861 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17863 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}