compiler: Permit label on fallthrough statement.
[official-gcc.git] / libmpx / configure
blob3bbb54c29874cff0a782dbdcffdc41004d5b008e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Report bugs to <libmpx>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libmpx about your
240 $0: system, including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libmpx'
564 PACKAGE_URL=''
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 XCFLAGS
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
618 ac_ct_DUMPBIN
619 DUMPBIN
621 FGREP
623 LIBTOOL
624 MPX_AS_SUPPORTED_FALSE
625 MPX_AS_SUPPORTED_TRUE
626 RANLIB
629 CCASFLAGS
630 CCAS
631 ac_ct_CXX
632 CXXFLAGS
634 toolexeclibdir
635 toolexecdir
636 EGREP
637 GREP
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
646 MAINT
647 MAINTAINER_MODE_FALSE
648 MAINTAINER_MODE_TRUE
649 multi_basedir
650 am__untar
651 am__tar
652 AMTAR
653 am__leading_dot
654 SET_MAKE
656 mkdir_p
657 MKDIR_P
658 INSTALL_STRIP_PROGRAM
659 STRIP
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 link_libmpx
674 LIBMPX_SUPPORTED_FALSE
675 LIBMPX_SUPPORTED_TRUE
676 LIBSTDCXX_RAW_CXX_LDFLAGS
677 LIBSTDCXX_RAW_CXX_CXXFLAGS
678 target_noncanonical
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_version_specific_runtime_libs
733 enable_multilib
734 enable_maintainer_mode
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
751 CXXCPP'
754 # Initialize some variables set by options.
755 ac_init_help=
756 ac_init_version=false
757 ac_unrecognized_opts=
758 ac_unrecognized_sep=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
761 cache_file=/dev/null
762 exec_prefix=NONE
763 no_create=
764 no_recursion=
765 prefix=NONE
766 program_prefix=NONE
767 program_suffix=NONE
768 program_transform_name=s,x,x,
769 silent=
770 site=
771 srcdir=
772 verbose=
773 x_includes=NONE
774 x_libraries=NONE
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
794 htmldir='${docdir}'
795 dvidir='${docdir}'
796 pdfdir='${docdir}'
797 psdir='${docdir}'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
802 ac_prev=
803 ac_dashdash=
804 for ac_option
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
809 ac_prev=
810 continue
813 case $ac_option in
814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 *) ac_optarg=yes ;;
816 esac
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
822 ac_dashdash=yes ;;
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
825 ac_prev=bindir ;;
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 bindir=$ac_optarg ;;
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
841 --config-cache | -C)
842 cache_file=config.cache ;;
844 -datadir | --datadir | --datadi | --datad)
845 ac_prev=datadir ;;
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
865 "enable_$ac_useropt"
866 "*) ;;
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
869 esac
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
873 ac_prev=docdir ;;
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 docdir=$ac_optarg ;;
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878 ac_prev=dvidir ;;
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 dvidir=$ac_optarg ;;
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
891 "enable_$ac_useropt"
892 "*) ;;
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
895 esac
896 eval enable_$ac_useropt=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
909 with_gas=yes ;;
911 -help | --help | --hel | --he | -h)
912 ac_init_help=long ;;
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 ac_prev=htmldir ;;
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 | --ht=*)
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 ac_prev=infodir ;;
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
942 ac_prev=libdir ;;
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 libdir=$ac_optarg ;;
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
954 ac_prev=localedir ;;
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 ac_prev=mandir ;;
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968 mandir=$ac_optarg ;;
970 -nfp | --nfp | --nf)
971 # Obsolete; use --without-fp.
972 with_fp=no ;;
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
976 no_create=yes ;;
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 no_recursion=yes ;;
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 ac_prev=prefix ;;
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 prefix=$ac_optarg ;;
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 ac_prev=pdfdir ;;
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1033 ac_prev=psdir ;;
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 psdir=$ac_optarg ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 silent=yes ;;
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 ac_prev=sbindir ;;
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 | --sbi=* | --sb=*)
1045 sbindir=$ac_optarg ;;
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1050 | --sha | --sh)
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 | --sha=* | --sh=*)
1056 sharedstatedir=$ac_optarg ;;
1058 -site | --site | --sit)
1059 ac_prev=site ;;
1060 -site=* | --site=* | --sit=*)
1061 site=$ac_optarg ;;
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 ac_prev=srcdir ;;
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 verbose=yes ;;
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1086 -with-* | --with-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=no ;;
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) as_fn_error "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information."
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1146 esac
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 esac
1159 done
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error "missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1168 no) ;;
1169 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171 esac
1174 # Check all directory arguments for consistency.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1181 # Remove trailing slashes.
1182 case $ac_val in
1183 */ )
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1186 esac
1187 # Be sure to have absolute directory names.
1188 case $ac_val in
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191 esac
1192 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1193 done
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1209 cross_compiling=yes
1213 ac_tool_prefix=
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error "pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1245 /^X\(\/\/\)$/{
1246 s//\1/
1249 /^X\(\/\).*/{
1250 s//\1/
1253 s/.*/./; q'`
1254 srcdir=$ac_confdir
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 srcdir=..
1258 else
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1266 ac_abs_confdir=`(
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1268 pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1302 Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1346 _ACEOF
1348 cat <<\_ACEOF
1350 Program names:
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1355 System types:
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 --target=TARGET configure for building compilers for TARGET [HOST]
1359 _ACEOF
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of package-unused version-unused:";;
1365 esac
1366 cat <<\_ACEOF
1368 Optional Features:
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1373 --enable-multilib build many library versions (default)
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
1376 --enable-shared[=PKGS] build shared libraries [default=yes]
1377 --enable-static[=PKGS] build static libraries [default=yes]
1378 --enable-fast-install[=PKGS]
1379 optimize for fast installation [default=yes]
1380 --disable-libtool-lock avoid locking (might break parallel builds)
1382 Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-pic try to use only PIC/non-PIC objects [default=use
1386 both]
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398 CXX C++ compiler command
1399 CXXFLAGS C++ compiler flags
1400 CXXCPP C++ preprocessor
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to <libmpx>.
1406 _ACEOF
1407 ac_status=$?
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 continue
1416 ac_builddir=.
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1434 case $srcdir in
1435 .) # We are building in place.
1436 ac_srcdir=.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1458 else
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1462 done
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467 cat <<\_ACEOF
1468 package-unused configure version-unused
1469 generated by GNU Autoconf 2.64
1471 Copyright (C) 2009 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475 exit
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1482 # ac_fn_c_try_compile LINENO
1483 # --------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_compile ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1490 case "(($ac_try" in
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1493 esac
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1497 ac_status=$?
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1508 ac_retval=0
1509 else
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1513 ac_retval=1
1515 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1516 return $ac_retval
1518 } # ac_fn_c_try_compile
1520 # ac_fn_c_try_cpp LINENO
1521 # ----------------------
1522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_cpp ()
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 if { { ac_try="$ac_cpp conftest.$ac_ext"
1527 case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530 esac
1531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532 $as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } >/dev/null && {
1542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 }; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=1
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 return $ac_retval
1555 } # ac_fn_c_try_cpp
1557 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1558 # -------------------------------------------------------
1559 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1560 # the include files in INCLUDES and setting the cache variable VAR
1561 # accordingly.
1562 ac_fn_c_check_header_mongrel ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1567 $as_echo_n "checking for $2... " >&6; }
1568 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1569 $as_echo_n "(cached) " >&6
1571 eval ac_res=\$$3
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573 $as_echo "$ac_res" >&6; }
1574 else
1575 # Is the header compilable?
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1577 $as_echo_n "checking $2 usability... " >&6; }
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1581 #include <$2>
1582 _ACEOF
1583 if ac_fn_c_try_compile "$LINENO"; then :
1584 ac_header_compiler=yes
1585 else
1586 ac_header_compiler=no
1588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1590 $as_echo "$ac_header_compiler" >&6; }
1592 # Is the header present?
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1594 $as_echo_n "checking $2 presence... " >&6; }
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1597 #include <$2>
1598 _ACEOF
1599 if ac_fn_c_try_cpp "$LINENO"; then :
1600 ac_header_preproc=yes
1601 else
1602 ac_header_preproc=no
1604 rm -f conftest.err conftest.$ac_ext
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1606 $as_echo "$ac_header_preproc" >&6; }
1608 # So? What about this header?
1609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1610 yes:no: )
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1612 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1614 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1616 no:yes:* )
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1618 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1620 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1622 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1624 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1626 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 ( cat <<\_ASBOX
1628 ## --------------------- ##
1629 ## Report this to libmpx ##
1630 ## --------------------- ##
1631 _ASBOX
1632 ) | sed "s/^/$as_me: WARNING: /" >&2
1634 esac
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 eval "$3=\$ac_header_compiler"
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 } # ac_fn_c_check_header_mongrel
1650 # ac_fn_c_try_run LINENO
1651 # ----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653 # that executables *can* be run.
1654 ac_fn_c_try_run ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1665 ac_status=$?
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: program exited with status $ac_status" >&5
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1684 ac_retval=$ac_status
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 return $ac_retval
1690 } # ac_fn_c_try_run
1692 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists and can be compiled using the include files in
1695 # INCLUDES, setting the cache variable VAR accordingly.
1696 ac_fn_c_check_header_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1707 #include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_compile "$LINENO"; then :
1710 eval "$3=yes"
1711 else
1712 eval "$3=no"
1714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 } # ac_fn_c_check_header_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_link ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 $as_test_x conftest$ac_exeext
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1797 #undef $2
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1814 main ()
1816 return $2 ();
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_func
1836 # ac_fn_cxx_try_compile LINENO
1837 # ----------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_cxx_try_compile
1874 # ac_fn_cxx_try_cpp LINENO
1875 # ------------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_cpp ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } >/dev/null && {
1896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1897 test ! -s conftest.err
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 return $ac_retval
1909 } # ac_fn_cxx_try_cpp
1911 # ac_fn_cxx_try_link LINENO
1912 # -------------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_cxx_try_link ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 $as_test_x conftest$ac_exeext
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1945 ac_retval=1
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 return $ac_retval
1955 } # ac_fn_cxx_try_link
1956 cat >config.log <<_ACEOF
1957 This file contains any messages produced by compilers while
1958 running configure, to aid debugging if configure makes a mistake.
1960 It was created by package-unused $as_me version-unused, which was
1961 generated by GNU Autoconf 2.64. Invocation command line was
1963 $ $0 $@
1965 _ACEOF
1966 exec 5>>config.log
1968 cat <<_ASUNAME
1969 ## --------- ##
1970 ## Platform. ##
1971 ## --------- ##
1973 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1974 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1975 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1976 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1977 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1979 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1980 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1982 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1983 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1984 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1985 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1986 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1987 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1988 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990 _ASUNAME
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 $as_echo "PATH: $as_dir"
1998 done
1999 IFS=$as_save_IFS
2001 } >&5
2003 cat >&5 <<_ACEOF
2006 ## ----------- ##
2007 ## Core tests. ##
2008 ## ----------- ##
2010 _ACEOF
2013 # Keep a trace of the command line.
2014 # Strip out --no-create and --no-recursion so they do not pile up.
2015 # Strip out --silent because we don't want to record it for future runs.
2016 # Also quote any args containing shell meta-characters.
2017 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_configure_args=
2019 ac_configure_args0=
2020 ac_configure_args1=
2021 ac_must_keep_next=false
2022 for ac_pass in 1 2
2024 for ac_arg
2026 case $ac_arg in
2027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2029 | -silent | --silent | --silen | --sile | --sil)
2030 continue ;;
2031 *\'*)
2032 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 case $ac_pass in
2035 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2037 as_fn_append ac_configure_args1 " '$ac_arg'"
2038 if test $ac_must_keep_next = true; then
2039 ac_must_keep_next=false # Got value, back to normal.
2040 else
2041 case $ac_arg in
2042 *=* | --config-cache | -C | -disable-* | --disable-* \
2043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2045 | -with-* | --with-* | -without-* | --without-* | --x)
2046 case "$ac_configure_args0 " in
2047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 esac
2050 -* ) ac_must_keep_next=true ;;
2051 esac
2053 as_fn_append ac_configure_args " '$ac_arg'"
2055 esac
2056 done
2057 done
2058 { ac_configure_args0=; unset ac_configure_args0;}
2059 { ac_configure_args1=; unset ac_configure_args1;}
2061 # When interrupted or exit'd, cleanup temporary files, and complete
2062 # config.log. We remove comments because anyway the quotes in there
2063 # would cause problems or look ugly.
2064 # WARNING: Use '\'' to represent an apostrophe within the trap.
2065 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2066 trap 'exit_status=$?
2067 # Save into config.log some information that might help in debugging.
2069 echo
2071 cat <<\_ASBOX
2072 ## ---------------- ##
2073 ## Cache variables. ##
2074 ## ---------------- ##
2075 _ASBOX
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 esac |
2105 sort
2107 echo
2109 cat <<\_ASBOX
2110 ## ----------------- ##
2111 ## Output variables. ##
2112 ## ----------------- ##
2113 _ASBOX
2114 echo
2115 for ac_var in $ac_subst_vars
2117 eval ac_val=\$$ac_var
2118 case $ac_val in
2119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 esac
2121 $as_echo "$ac_var='\''$ac_val'\''"
2122 done | sort
2123 echo
2125 if test -n "$ac_subst_files"; then
2126 cat <<\_ASBOX
2127 ## ------------------- ##
2128 ## File substitutions. ##
2129 ## ------------------- ##
2130 _ASBOX
2131 echo
2132 for ac_var in $ac_subst_files
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2143 if test -s confdefs.h; then
2144 cat <<\_ASBOX
2145 ## ----------- ##
2146 ## confdefs.h. ##
2147 ## ----------- ##
2148 _ASBOX
2149 echo
2150 cat confdefs.h
2151 echo
2153 test "$ac_signal" != 0 &&
2154 $as_echo "$as_me: caught signal $ac_signal"
2155 $as_echo "$as_me: exit $exit_status"
2156 } >&5
2157 rm -f core *.core core.conftest.* &&
2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159 exit $exit_status
2161 for ac_signal in 1 2 13 15; do
2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163 done
2164 ac_signal=0
2166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167 rm -f -r conftest* confdefs.h
2169 $as_echo "/* confdefs.h */" > confdefs.h
2171 # Predefined preprocessor variables.
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_NAME "$PACKAGE_NAME"
2175 _ACEOF
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179 _ACEOF
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2183 _ACEOF
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_STRING "$PACKAGE_STRING"
2187 _ACEOF
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_URL "$PACKAGE_URL"
2195 _ACEOF
2198 # Let the site file select an alternate cache file if it wants to.
2199 # Prefer an explicitly selected file to automatically selected ones.
2200 ac_site_file1=NONE
2201 ac_site_file2=NONE
2202 if test -n "$CONFIG_SITE"; then
2203 ac_site_file1=$CONFIG_SITE
2204 elif test "x$prefix" != xNONE; then
2205 ac_site_file1=$prefix/share/config.site
2206 ac_site_file2=$prefix/etc/config.site
2207 else
2208 ac_site_file1=$ac_default_prefix/share/config.site
2209 ac_site_file2=$ac_default_prefix/etc/config.site
2211 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213 test "x$ac_site_file" = xNONE && continue
2214 if test -r "$ac_site_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2216 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2217 sed 's/^/| /' "$ac_site_file" >&5
2218 . "$ac_site_file"
2220 done
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special
2224 # files actually), so we avoid doing that.
2225 if test -f "$cache_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228 case $cache_file in
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2231 esac
2233 else
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 >$cache_file
2239 # Check that the precious variables saved in the cache have kept the same
2240 # value.
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2248 set,)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,set)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,);;
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 fi;;
2276 esac
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2279 case $ac_new_val in
2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2282 esac
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286 esac
2288 done
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311 # -------
2312 # Options
2313 # -------
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2315 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2316 # Check whether --enable-version-specific-runtime-libs was given.
2317 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2318 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2319 yes) version_specific_libs=yes ;;
2320 no) version_specific_libs=no ;;
2321 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2322 esac
2323 else
2324 version_specific_libs=no
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2328 $as_echo "$version_specific_libs" >&6; }
2330 # Do not delete or change the following two lines. For why, see
2331 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2332 ac_aux_dir=
2333 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2334 for ac_t in install-sh install.sh shtool; do
2335 if test -f "$ac_dir/$ac_t"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/$ac_t -c"
2338 break 2
2340 done
2341 done
2342 if test -z "$ac_aux_dir"; then
2343 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346 # These three variables are undocumented and unsupported,
2347 # and are intended to be withdrawn in a future Autoconf release.
2348 # They can cause serious problems if a builder's source tree is in a directory
2349 # whose full name contains unusual characters.
2350 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2351 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2352 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355 # Make sure we can run config.sub.
2356 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2357 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2360 $as_echo_n "checking build system type... " >&6; }
2361 if test "${ac_cv_build+set}" = set; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 ac_build_alias=$build_alias
2365 test "x$ac_build_alias" = x &&
2366 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2367 test "x$ac_build_alias" = x &&
2368 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2370 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2374 $as_echo "$ac_cv_build" >&6; }
2375 case $ac_cv_build in
2376 *-*-*) ;;
2377 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2378 esac
2379 build=$ac_cv_build
2380 ac_save_IFS=$IFS; IFS='-'
2381 set x $ac_cv_build
2382 shift
2383 build_cpu=$1
2384 build_vendor=$2
2385 shift; shift
2386 # Remember, the first character of IFS is used to create $*,
2387 # except with old shells:
2388 build_os=$*
2389 IFS=$ac_save_IFS
2390 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2394 $as_echo_n "checking host system type... " >&6; }
2395 if test "${ac_cv_host+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 if test "x$host_alias" = x; then
2399 ac_cv_host=$ac_cv_build
2400 else
2401 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2402 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2407 $as_echo "$ac_cv_host" >&6; }
2408 case $ac_cv_host in
2409 *-*-*) ;;
2410 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2411 esac
2412 host=$ac_cv_host
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_host
2415 shift
2416 host_cpu=$1
2417 host_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 host_os=$*
2422 IFS=$ac_save_IFS
2423 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2427 $as_echo_n "checking target system type... " >&6; }
2428 if test "${ac_cv_target+set}" = set; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 if test "x$target_alias" = x; then
2432 ac_cv_target=$ac_cv_host
2433 else
2434 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2435 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2440 $as_echo "$ac_cv_target" >&6; }
2441 case $ac_cv_target in
2442 *-*-*) ;;
2443 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2444 esac
2445 target=$ac_cv_target
2446 ac_save_IFS=$IFS; IFS='-'
2447 set x $ac_cv_target
2448 shift
2449 target_cpu=$1
2450 target_vendor=$2
2451 shift; shift
2452 # Remember, the first character of IFS is used to create $*,
2453 # except with old shells:
2454 target_os=$*
2455 IFS=$ac_save_IFS
2456 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2459 # The aliases save the names the user supplied, while $host etc.
2460 # will get canonicalized.
2461 test -n "$target_alias" &&
2462 test "$program_prefix$program_suffix$program_transform_name" = \
2463 NONENONEs,x,x, &&
2464 program_prefix=${target_alias}-
2466 target_alias=${target_alias-$host_alias}
2468 case ${build_alias} in
2469 "") build_noncanonical=${build} ;;
2470 *) build_noncanonical=${build_alias} ;;
2471 esac
2473 case ${host_alias} in
2474 "") host_noncanonical=${build_noncanonical} ;;
2475 *) host_noncanonical=${host_alias} ;;
2476 esac
2478 case ${target_alias} in
2479 "") target_noncanonical=${host_noncanonical} ;;
2480 *) target_noncanonical=${target_alias} ;;
2481 esac
2487 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2488 -I\$(top_builddir)/../libstdc++-v3/include \
2489 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2490 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2491 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2492 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2497 # See if supported.
2498 unset LIBMPX_SUPPORTED
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5
2500 $as_echo_n "checking for target support for Intel MPX runtime library... " >&6; }
2501 echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c
2502 if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5'
2503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2504 (eval $ac_try) 2>&5
2505 ac_status=$?
2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507 test $ac_status = 0; }; }
2508 then
2509 LIBMPX_SUPPORTED=no
2510 else
2511 LIBMPX_SUPPORTED=yes
2513 rm -f conftest.o conftest.c
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPX_SUPPORTED" >&5
2515 $as_echo "$LIBMPX_SUPPORTED" >&6; }
2516 if test "x$LIBMPX_SUPPORTED" = "xyes"; then
2517 LIBMPX_SUPPORTED_TRUE=
2518 LIBMPX_SUPPORTED_FALSE='#'
2519 else
2520 LIBMPX_SUPPORTED_TRUE='#'
2521 LIBMPX_SUPPORTED_FALSE=
2525 link_libmpx="-lpthread"
2528 am__api_version='1.11'
2530 # Find a good install program. We prefer a C program (faster),
2531 # so one script is as good as another. But avoid the broken or
2532 # incompatible versions:
2533 # SysV /etc/install, /usr/sbin/install
2534 # SunOS /usr/etc/install
2535 # IRIX /sbin/install
2536 # AIX /bin/install
2537 # AmigaOS /C/install, which installs bootblocks on floppy discs
2538 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2539 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2540 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2541 # OS/2's system install, which has a completely different semantic
2542 # ./install, which can be erroneously created by make from ./install.sh.
2543 # Reject install programs that cannot install multiple files.
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2545 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2546 if test -z "$INSTALL"; then
2547 if test "${ac_cv_path_install+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 # Account for people who put trailing slashes in PATH elements.
2556 case $as_dir/ in #((
2557 ./ | .// | /[cC]/* | \
2558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2559 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2560 /usr/ucb/* ) ;;
2562 # OSF1 and SCO ODT 3.0 have their own names for install.
2563 # Don't use installbsd from OSF since it installs stuff as root
2564 # by default.
2565 for ac_prog in ginstall scoinst install; do
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2568 if test $ac_prog = install &&
2569 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570 # AIX install. It has an incompatible calling convention.
2572 elif test $ac_prog = install &&
2573 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2574 # program-specific install script used by HP pwplus--don't use.
2576 else
2577 rm -rf conftest.one conftest.two conftest.dir
2578 echo one > conftest.one
2579 echo two > conftest.two
2580 mkdir conftest.dir
2581 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2582 test -s conftest.one && test -s conftest.two &&
2583 test -s conftest.dir/conftest.one &&
2584 test -s conftest.dir/conftest.two
2585 then
2586 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2587 break 3
2591 done
2592 done
2594 esac
2596 done
2597 IFS=$as_save_IFS
2599 rm -rf conftest.one conftest.two conftest.dir
2602 if test "${ac_cv_path_install+set}" = set; then
2603 INSTALL=$ac_cv_path_install
2604 else
2605 # As a last resort, use the slow shell script. Don't cache a
2606 # value for INSTALL within a source directory, because that will
2607 # break other packages using the cache if that directory is
2608 # removed, or if the value is a relative name.
2609 INSTALL=$ac_install_sh
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2613 $as_echo "$INSTALL" >&6; }
2615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2616 # It thinks the first close brace ends the variable substitution.
2617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2624 $as_echo_n "checking whether build environment is sane... " >&6; }
2625 # Just in case
2626 sleep 1
2627 echo timestamp > conftest.file
2628 # Reject unsafe characters in $srcdir or the absolute working directory
2629 # name. Accept space and tab only in the latter.
2630 am_lf='
2632 case `pwd` in
2633 *[\\\"\#\$\&\'\`$am_lf]*)
2634 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2635 esac
2636 case $srcdir in
2637 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2638 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2639 esac
2641 # Do `set' in a subshell so we don't clobber the current shell's
2642 # arguments. Must try -L first in case configure is actually a
2643 # symlink; some systems play weird games with the mod time of symlinks
2644 # (eg FreeBSD returns the mod time of the symlink's containing
2645 # directory).
2646 if (
2647 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2648 if test "$*" = "X"; then
2649 # -L didn't work.
2650 set X `ls -t "$srcdir/configure" conftest.file`
2652 rm -f conftest.file
2653 if test "$*" != "X $srcdir/configure conftest.file" \
2654 && test "$*" != "X conftest.file $srcdir/configure"; then
2656 # If neither matched, then we have a broken ls. This can happen
2657 # if, for instance, CONFIG_SHELL is bash and it inherits a
2658 # broken ls alias from the environment. This has actually
2659 # happened. Such a system could not be considered "sane".
2660 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2661 alias in your environment" "$LINENO" 5
2664 test "$2" = conftest.file
2666 then
2667 # Ok.
2669 else
2670 as_fn_error "newly created file is older than distributed files!
2671 Check your system clock" "$LINENO" 5
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 test "$program_prefix" != NONE &&
2676 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2677 # Use a double $ so make ignores it.
2678 test "$program_suffix" != NONE &&
2679 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2680 # Double any \ or $.
2681 # By default was `s,x,x', remove it if useless.
2682 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2683 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2685 # expand $ac_aux_dir to an absolute path
2686 am_aux_dir=`cd $ac_aux_dir && pwd`
2688 if test x"${MISSING+set}" != xset; then
2689 case $am_aux_dir in
2690 *\ * | *\ *)
2691 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2693 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2694 esac
2696 # Use eval to expand $SHELL
2697 if eval "$MISSING --run true"; then
2698 am_missing_run="$MISSING --run "
2699 else
2700 am_missing_run=
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2702 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2705 if test x"${install_sh}" != xset; then
2706 case $am_aux_dir in
2707 *\ * | *\ *)
2708 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2710 install_sh="\${SHELL} $am_aux_dir/install-sh"
2711 esac
2714 # Installed binaries are usually stripped using `strip' when the user
2715 # run `make install-strip'. However `strip' might not be the right
2716 # tool to use in cross-compilation environments, therefore Automake
2717 # will honor the `STRIP' environment variable to overrule this program.
2718 if test "$cross_compiling" != no; then
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}strip; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_STRIP+set}" = set; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 if test -n "$STRIP"; then
2728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2743 IFS=$as_save_IFS
2747 STRIP=$ac_cv_prog_STRIP
2748 if test -n "$STRIP"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2750 $as_echo "$STRIP" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2758 if test -z "$ac_cv_prog_STRIP"; then
2759 ac_ct_STRIP=$STRIP
2760 # Extract the first word of "strip", so it can be a program name with args.
2761 set dummy strip; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$ac_ct_STRIP"; then
2768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_STRIP="strip"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2788 if test -n "$ac_ct_STRIP"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2790 $as_echo "$ac_ct_STRIP" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2796 if test "x$ac_ct_STRIP" = x; then
2797 STRIP=":"
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805 STRIP=$ac_ct_STRIP
2807 else
2808 STRIP="$ac_cv_prog_STRIP"
2812 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2815 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2816 if test -z "$MKDIR_P"; then
2817 if test "${ac_cv_path_mkdir+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_prog in mkdir gmkdir; do
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2828 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829 'mkdir (GNU coreutils) '* | \
2830 'mkdir (coreutils) '* | \
2831 'mkdir (fileutils) '4.1*)
2832 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2833 break 3;;
2834 esac
2835 done
2836 done
2837 done
2838 IFS=$as_save_IFS
2842 if test "${ac_cv_path_mkdir+set}" = set; then
2843 MKDIR_P="$ac_cv_path_mkdir -p"
2844 else
2845 # As a last resort, use the slow shell script. Don't cache a
2846 # value for MKDIR_P within a source directory, because that will
2847 # break other packages using the cache if that directory is
2848 # removed, or if the value is a relative name.
2849 test -d ./--version && rmdir ./--version
2850 MKDIR_P="$ac_install_sh -d"
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2854 $as_echo "$MKDIR_P" >&6; }
2856 mkdir_p="$MKDIR_P"
2857 case $mkdir_p in
2858 [\\/$]* | ?:[\\/]*) ;;
2859 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2860 esac
2862 for ac_prog in gawk mawk nawk awk
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_AWK+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_AWK="$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2887 IFS=$as_save_IFS
2891 AWK=$ac_cv_prog_AWK
2892 if test -n "$AWK"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2894 $as_echo "$AWK" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2901 test -n "$AWK" && break
2902 done
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2905 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2906 set x ${MAKE-make}
2907 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2908 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 cat >conftest.make <<\_ACEOF
2912 SHELL = /bin/sh
2913 all:
2914 @echo '@@@%%%=$(MAKE)=@@@%%%'
2915 _ACEOF
2916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2918 *@@@%%%=?*=@@@%%%*)
2919 eval ac_cv_prog_make_${ac_make}_set=yes;;
2921 eval ac_cv_prog_make_${ac_make}_set=no;;
2922 esac
2923 rm -f conftest.make
2925 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927 $as_echo "yes" >&6; }
2928 SET_MAKE=
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 SET_MAKE="MAKE=${MAKE-make}"
2935 rm -rf .tst 2>/dev/null
2936 mkdir .tst 2>/dev/null
2937 if test -d .tst; then
2938 am__leading_dot=.
2939 else
2940 am__leading_dot=_
2942 rmdir .tst 2>/dev/null
2944 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2945 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2946 # is not polluted with repeated "-I."
2947 am__isrc=' -I$(srcdir)'
2948 # test to see if srcdir already configured
2949 if test -f $srcdir/config.status; then
2950 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954 # test whether we have cygpath
2955 if test -z "$CYGPATH_W"; then
2956 if (cygpath --version) >/dev/null 2>/dev/null; then
2957 CYGPATH_W='cygpath -w'
2958 else
2959 CYGPATH_W=echo
2964 # Define the identity of the package.
2965 PACKAGE='package-unused'
2966 VERSION='version-unused'
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE "$PACKAGE"
2971 _ACEOF
2974 cat >>confdefs.h <<_ACEOF
2975 #define VERSION "$VERSION"
2976 _ACEOF
2978 # Some tools Automake needs.
2980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2994 # We need awk for the "check" target. The system "awk" is bad on
2995 # some platforms.
2996 # Always define AMTAR for backward compatibility.
2998 AMTAR=${AMTAR-"${am_missing_run}tar"}
3000 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3006 # Default to --enable-multilib
3007 # Check whether --enable-multilib was given.
3008 if test "${enable_multilib+set}" = set; then :
3009 enableval=$enable_multilib; case "$enableval" in
3010 yes) multilib=yes ;;
3011 no) multilib=no ;;
3012 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3013 esac
3014 else
3015 multilib=yes
3019 # We may get other options which we leave undocumented:
3020 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3021 # See config-ml.in if you want the gory details.
3023 if test "$srcdir" = "."; then
3024 if test "$with_target_subdir" != "."; then
3025 multi_basedir="$srcdir/$with_multisrctop../.."
3026 else
3027 multi_basedir="$srcdir/$with_multisrctop.."
3029 else
3030 multi_basedir="$srcdir/.."
3034 # Even if the default multilib is not a cross compilation,
3035 # it may be that some of the other multilibs are.
3036 if test $cross_compiling = no && test $multilib = yes \
3037 && test "x${with_multisubdir}" != x ; then
3038 cross_compiling=maybe
3041 ac_config_commands="$ac_config_commands default-1"
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3045 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3046 # Check whether --enable-maintainer-mode was given.
3047 if test "${enable_maintainer_mode+set}" = set; then :
3048 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3049 else
3050 USE_MAINTAINER_MODE=no
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3054 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3055 if test $USE_MAINTAINER_MODE = yes; then
3056 MAINTAINER_MODE_TRUE=
3057 MAINTAINER_MODE_FALSE='#'
3058 else
3059 MAINTAINER_MODE_TRUE='#'
3060 MAINTAINER_MODE_FALSE=
3063 MAINT=$MAINTAINER_MODE_TRUE
3067 ac_ext=c
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3094 done
3095 done
3096 IFS=$as_save_IFS
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3111 if test -z "$ac_cv_prog_CC"; then
3112 ac_ct_CC=$CC
3113 # Extract the first word of "gcc", so it can be a program name with args.
3114 set dummy gcc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$ac_ct_CC"; then
3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_ac_ct_CC="gcc"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3134 done
3135 done
3136 IFS=$as_save_IFS
3140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3141 if test -n "$ac_ct_CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3143 $as_echo "$ac_ct_CC" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3149 if test "x$ac_ct_CC" = x; then
3150 CC=""
3151 else
3152 case $cross_compiling:$ac_tool_warned in
3153 yes:)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156 ac_tool_warned=yes ;;
3157 esac
3158 CC=$ac_ct_CC
3160 else
3161 CC="$ac_cv_prog_CC"
3164 if test -z "$CC"; then
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}cc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_CC="${ac_tool_prefix}cc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3193 CC=$ac_cv_prog_CC
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3205 if test -z "$CC"; then
3206 # Extract the first word of "cc", so it can be a program name with args.
3207 set dummy cc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 else
3216 ac_prog_rejected=no
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3225 ac_prog_rejected=yes
3226 continue
3228 ac_cv_prog_CC="cc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3236 if test $ac_prog_rejected = yes; then
3237 # We found a bogon in the path, so make sure we never use it.
3238 set dummy $ac_cv_prog_CC
3239 shift
3240 if test $# != 0; then
3241 # We chose a different compiler from the bogus one.
3242 # However, it has the same basename, so the bogon will be chosen
3243 # first if we set CC to just the basename; use the full file name.
3244 shift
3245 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3250 CC=$ac_cv_prog_CC
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 for ac_prog in cl.exe
3265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_CC+set}" = set; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3286 done
3287 done
3288 IFS=$as_save_IFS
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3302 test -n "$CC" && break
3303 done
3305 if test -z "$CC"; then
3306 ac_ct_CC=$CC
3307 for ac_prog in cl.exe
3309 # Extract the first word of "$ac_prog", so it can be a program name with args.
3310 set dummy $ac_prog; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_ac_ct_CC="$ac_prog"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3330 done
3331 done
3332 IFS=$as_save_IFS
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3346 test -n "$ac_ct_CC" && break
3347 done
3349 if test "x$ac_ct_CC" = x; then
3350 CC=""
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358 CC=$ac_ct_CC
3365 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error "no acceptable C compiler found in \$PATH
3368 See \`config.log' for more details." "$LINENO" 5; }
3370 # Provide some information about the compiler.
3371 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3372 set X $ac_compile
3373 ac_compiler=$2
3374 for ac_option in --version -v -V -qversion; do
3375 { { ac_try="$ac_compiler $ac_option >&5"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3383 ac_status=$?
3384 if test -s conftest.err; then
3385 sed '10a\
3386 ... rest of stderr output deleted ...
3387 10q' conftest.err >conftest.er1
3388 cat conftest.er1 >&5
3389 rm -f conftest.er1 conftest.err
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 done
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3399 main ()
3403 return 0;
3405 _ACEOF
3406 ac_clean_files_save=$ac_clean_files
3407 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3408 # Try to create an executable without -o first, disregard a.out.
3409 # It will help us diagnose broken compilers, and finding out an intuition
3410 # of exeext.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415 # The possible output files:
3416 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418 ac_rmfiles=
3419 for ac_file in $ac_files
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3424 esac
3425 done
3426 rm -f $ac_rmfiles
3428 if { { ac_try="$ac_link_default"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link_default") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3442 # so that the user can short-circuit this test for compilers unknown to
3443 # Autoconf.
3444 for ac_file in $ac_files ''
3446 test -f "$ac_file" || continue
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3450 [ab].out )
3451 # We found the default executable, but exeext='' is most
3452 # certainly right.
3453 break;;
3454 *.* )
3455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3456 then :; else
3457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 # We set ac_cv_exeext here because the later test for it is not
3460 # safe: cross compilers may not add the suffix if given an `-o'
3461 # argument, so we may need to know it at that point already.
3462 # Even if this section looks crufty: it has the advantage of
3463 # actually working.
3464 break;;
3466 break;;
3467 esac
3468 done
3469 test "$ac_cv_exeext" = no && ac_cv_exeext=
3471 else
3472 ac_file=''
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3475 $as_echo "$ac_file" >&6; }
3476 if test -z "$ac_file"; then :
3477 $as_echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 { as_fn_set_status 77
3483 as_fn_error "C compiler cannot create executables
3484 See \`config.log' for more details." "$LINENO" 5; }; }
3486 ac_exeext=$ac_cv_exeext
3488 # Check that the compiler produces executables we can run. If not, either
3489 # the compiler is broken, or we cross compile.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 $as_echo_n "checking whether the C compiler works... " >&6; }
3492 # If not cross compiling, check that we can run a simple program.
3493 if test "$cross_compiling" != yes; then
3494 if { ac_try='./$ac_file'
3495 { { case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_try") 2>&5
3502 ac_status=$?
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; }; then
3505 cross_compiling=no
3506 else
3507 if test "$cross_compiling" = maybe; then
3508 cross_compiling=yes
3509 else
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error "cannot run C compiled programs.
3513 If you meant to cross compile, use \`--host'.
3514 See \`config.log' for more details." "$LINENO" 5; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3521 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3522 ac_clean_files=$ac_clean_files_save
3523 # Check that the compiler produces executables we can run. If not, either
3524 # the compiler is broken, or we cross compile.
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3526 $as_echo_n "checking whether we are cross compiling... " >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3528 $as_echo "$cross_compiling" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3531 $as_echo_n "checking for suffix of executables... " >&6; }
3532 if { { ac_try="$ac_link"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_link") 2>&5
3540 ac_status=$?
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; then :
3543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3545 # work properly (i.e., refer to `conftest.exe'), while it won't with
3546 # `rm'.
3547 for ac_file in conftest.exe conftest conftest.*; do
3548 test -f "$ac_file" || continue
3549 case $ac_file in
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 break;;
3553 * ) break;;
3554 esac
3555 done
3556 else
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error "cannot compute suffix of executables: cannot compile and link
3560 See \`config.log' for more details." "$LINENO" 5; }
3562 rm -f conftest$ac_cv_exeext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3568 ac_exeext=$EXEEXT
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if test "${ac_cv_objext+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3578 main ()
3582 return 0;
3584 _ACEOF
3585 rm -f conftest.o conftest.obj
3586 if { { ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compile") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602 break;;
3603 esac
3604 done
3605 else
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error "cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details." "$LINENO" 5; }
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3619 ac_objext=$OBJEXT
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3629 main ()
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3636 return 0;
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_compiler_gnu=yes
3641 else
3642 ac_compiler_gnu=no
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3649 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3650 if test $ac_compiler_gnu = yes; then
3651 GCC=yes
3652 else
3653 GCC=
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3658 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3659 if test "${ac_cv_prog_cc_g+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 ac_save_c_werror_flag=$ac_c_werror_flag
3663 ac_c_werror_flag=yes
3664 ac_cv_prog_cc_g=no
3665 CFLAGS="-g"
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3670 main ()
3674 return 0;
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_g=yes
3679 else
3680 CFLAGS=""
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3685 main ()
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3694 else
3695 ac_c_werror_flag=$ac_save_c_werror_flag
3696 CFLAGS="-g"
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 main ()
3705 return 0;
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_prog_cc_g=yes
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3719 $as_echo "$ac_cv_prog_cc_g" >&6; }
3720 if test "$ac_test_CFLAGS" = set; then
3721 CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723 if test "$GCC" = yes; then
3724 CFLAGS="-g -O2"
3725 else
3726 CFLAGS="-g"
3728 else
3729 if test "$GCC" = yes; then
3730 CFLAGS="-O2"
3731 else
3732 CFLAGS=
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3736 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3737 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 ac_cv_prog_cc_c89=no
3741 ac_save_CC=$CC
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <stdarg.h>
3745 #include <stdio.h>
3746 #include <sys/types.h>
3747 #include <sys/stat.h>
3748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3749 struct buf { int x; };
3750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3751 static char *e (p, i)
3752 char **p;
3753 int i;
3755 return p[i];
3757 static char *f (char * (*g) (char **, int), char **p, ...)
3759 char *s;
3760 va_list v;
3761 va_start (v,p);
3762 s = g (p, va_arg (v,int));
3763 va_end (v);
3764 return s;
3767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3768 function prototypes and stuff, but not '\xHH' hex character constants.
3769 These don't provoke an error unfortunately, instead are silently treated
3770 as 'x'. The following induces an error, until -std is added to get
3771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3772 array size at least. It's necessary to write '\x00'==0 to get something
3773 that's true only with -std. */
3774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3777 inside strings and character constants. */
3778 #define FOO(x) 'x'
3779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3781 int test (int i, double x);
3782 struct s1 {int (*f) (int a);};
3783 struct s2 {int (*f) (double a);};
3784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785 int argc;
3786 char **argv;
3788 main ()
3790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 return 0;
3794 _ACEOF
3795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798 CC="$ac_save_CC $ac_arg"
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_prog_cc_c89=$ac_arg
3802 rm -f core conftest.err conftest.$ac_objext
3803 test "x$ac_cv_prog_cc_c89" != "xno" && break
3804 done
3805 rm -f conftest.$ac_ext
3806 CC=$ac_save_CC
3809 # AC_CACHE_VAL
3810 case "x$ac_cv_prog_cc_c89" in
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3813 $as_echo "none needed" >&6; } ;;
3814 xno)
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3816 $as_echo "unsupported" >&6; } ;;
3818 CC="$CC $ac_cv_prog_cc_c89"
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3820 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3821 esac
3822 if test "x$ac_cv_prog_cc_c89" != xno; then :
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 ac_ext=c
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3839 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3840 # On Suns, sometimes $CPP names a directory.
3841 if test -n "$CPP" && test -d "$CPP"; then
3842 CPP=
3844 if test -z "$CPP"; then
3845 if test "${ac_cv_prog_CPP+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 # Double quotes because CPP needs to be expanded
3849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #ifdef __STDC__
3863 # include <limits.h>
3864 #else
3865 # include <assert.h>
3866 #endif
3867 Syntax error
3868 _ACEOF
3869 if ac_fn_c_try_cpp "$LINENO"; then :
3871 else
3872 # Broken: fails on valid input.
3873 continue
3875 rm -f conftest.err conftest.$ac_ext
3877 # OK, works on sane cases. Now check whether nonexistent headers
3878 # can be detected and how.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if ac_fn_c_try_cpp "$LINENO"; then :
3884 # Broken: success on invalid input.
3885 continue
3886 else
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3891 rm -f conftest.err conftest.$ac_ext
3893 done
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.$ac_ext
3896 if $ac_preproc_ok; then :
3897 break
3900 done
3901 ac_cv_prog_CPP=$CPP
3904 CPP=$ac_cv_prog_CPP
3905 else
3906 ac_cv_prog_CPP=$CPP
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3909 $as_echo "$CPP" >&6; }
3910 ac_preproc_ok=false
3911 for ac_c_preproc_warn_flag in '' yes
3913 # Use a header file that comes with gcc, so configuring glibc
3914 # with a fresh cross-compiler works.
3915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3916 # <limits.h> exists even on freestanding compilers.
3917 # On the NeXT, cc -E runs the code through the compiler's parser,
3918 # not just through cpp. "Syntax error" is here to catch this case.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #ifdef __STDC__
3922 # include <limits.h>
3923 #else
3924 # include <assert.h>
3925 #endif
3926 Syntax error
3927 _ACEOF
3928 if ac_fn_c_try_cpp "$LINENO"; then :
3930 else
3931 # Broken: fails on valid input.
3932 continue
3934 rm -f conftest.err conftest.$ac_ext
3936 # OK, works on sane cases. Now check whether nonexistent headers
3937 # can be detected and how.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if ac_fn_c_try_cpp "$LINENO"; then :
3943 # Broken: success on invalid input.
3944 continue
3945 else
3946 # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3950 rm -f conftest.err conftest.$ac_ext
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then :
3957 else
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." "$LINENO" 5; }
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3972 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3973 if test "${ac_cv_path_GREP+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -z "$GREP"; then
3977 ac_path_GREP_found=false
3978 # Loop through the user's path and test for each of PROGNAME-LIST
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_prog in grep ggrep; do
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3987 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3988 # Check for GNU ac_path_GREP and select it if it is found.
3989 # Check for GNU $ac_path_GREP
3990 case `"$ac_path_GREP" --version 2>&1` in
3991 *GNU*)
3992 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3994 ac_count=0
3995 $as_echo_n 0123456789 >"conftest.in"
3996 while :
3998 cat "conftest.in" "conftest.in" >"conftest.tmp"
3999 mv "conftest.tmp" "conftest.in"
4000 cp "conftest.in" "conftest.nl"
4001 $as_echo 'GREP' >> "conftest.nl"
4002 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004 as_fn_arith $ac_count + 1 && ac_count=$as_val
4005 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4006 # Best one so far, save it but keep looking for a better one
4007 ac_cv_path_GREP="$ac_path_GREP"
4008 ac_path_GREP_max=$ac_count
4010 # 10*(2^10) chars as input seems more than enough
4011 test $ac_count -gt 10 && break
4012 done
4013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4014 esac
4016 $ac_path_GREP_found && break 3
4017 done
4018 done
4019 done
4020 IFS=$as_save_IFS
4021 if test -z "$ac_cv_path_GREP"; then
4022 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4024 else
4025 ac_cv_path_GREP=$GREP
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4030 $as_echo "$ac_cv_path_GREP" >&6; }
4031 GREP="$ac_cv_path_GREP"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4035 $as_echo_n "checking for egrep... " >&6; }
4036 if test "${ac_cv_path_EGREP+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4040 then ac_cv_path_EGREP="$GREP -E"
4041 else
4042 if test -z "$EGREP"; then
4043 ac_path_EGREP_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in egrep; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4053 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4054 # Check for GNU ac_path_EGREP and select it if it is found.
4055 # Check for GNU $ac_path_EGREP
4056 case `"$ac_path_EGREP" --version 2>&1` in
4057 *GNU*)
4058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4060 ac_count=0
4061 $as_echo_n 0123456789 >"conftest.in"
4062 while :
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 $as_echo 'EGREP' >> "conftest.nl"
4068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 as_fn_arith $ac_count + 1 && ac_count=$as_val
4071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_EGREP="$ac_path_EGREP"
4074 ac_path_EGREP_max=$ac_count
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4078 done
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 esac
4082 $ac_path_EGREP_found && break 3
4083 done
4084 done
4085 done
4086 IFS=$as_save_IFS
4087 if test -z "$ac_cv_path_EGREP"; then
4088 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4090 else
4091 ac_cv_path_EGREP=$EGREP
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4097 $as_echo "$ac_cv_path_EGREP" >&6; }
4098 EGREP="$ac_cv_path_EGREP"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4102 $as_echo_n "checking for ANSI C header files... " >&6; }
4103 if test "${ac_cv_header_stdc+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <stdlib.h>
4109 #include <stdarg.h>
4110 #include <string.h>
4111 #include <float.h>
4114 main ()
4118 return 0;
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_header_stdc=yes
4123 else
4124 ac_cv_header_stdc=no
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 if test $ac_cv_header_stdc = yes; then
4129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <string.h>
4134 _ACEOF
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "memchr" >/dev/null 2>&1; then :
4138 else
4139 ac_cv_header_stdc=no
4141 rm -f conftest*
4145 if test $ac_cv_header_stdc = yes; then
4146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <stdlib.h>
4151 _ACEOF
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "free" >/dev/null 2>&1; then :
4155 else
4156 ac_cv_header_stdc=no
4158 rm -f conftest*
4162 if test $ac_cv_header_stdc = yes; then
4163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4164 if test "$cross_compiling" = yes; then :
4166 else
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <ctype.h>
4170 #include <stdlib.h>
4171 #if ((' ' & 0x0FF) == 0x020)
4172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174 #else
4175 # define ISLOWER(c) \
4176 (('a' <= (c) && (c) <= 'i') \
4177 || ('j' <= (c) && (c) <= 'r') \
4178 || ('s' <= (c) && (c) <= 'z'))
4179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4180 #endif
4182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 main ()
4186 int i;
4187 for (i = 0; i < 256; i++)
4188 if (XOR (islower (i), ISLOWER (i))
4189 || toupper (i) != TOUPPER (i))
4190 return 2;
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_run "$LINENO"; then :
4196 else
4197 ac_cv_header_stdc=no
4199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4200 conftest.$ac_objext conftest.beam conftest.$ac_ext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4206 $as_echo "$ac_cv_header_stdc" >&6; }
4207 if test $ac_cv_header_stdc = yes; then
4209 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4215 inttypes.h stdint.h unistd.h
4216 do :
4217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4218 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4220 eval as_val=\$$as_ac_Header
4221 if test "x$as_val" = x""yes; then :
4222 cat >>confdefs.h <<_ACEOF
4223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4224 _ACEOF
4228 done
4232 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4233 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4234 MINIX=yes
4235 else
4236 MINIX=
4240 if test "$MINIX" = yes; then
4242 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4245 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4248 $as_echo "#define _MINIX 1" >>confdefs.h
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4254 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4255 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 # define __EXTENSIONS__ 1
4262 $ac_includes_default
4264 main ()
4268 return 0;
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"; then :
4272 ac_cv_safe_to_define___extensions__=yes
4273 else
4274 ac_cv_safe_to_define___extensions__=no
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4279 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4280 test $ac_cv_safe_to_define___extensions__ = yes &&
4281 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4283 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4285 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4287 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4289 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4293 for ac_func in secure_getenv
4294 do :
4295 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4296 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4297 cat >>confdefs.h <<_ACEOF
4298 #define HAVE_SECURE_GETENV 1
4299 _ACEOF
4302 done
4305 # Calculate toolexeclibdir
4306 # Also toolexecdir, though it's only used in toolexeclibdir
4307 case ${version_specific_libs} in
4308 yes)
4309 # Need the gcc compiler version to know where to install libraries
4310 # and header files if --enable-version-specific-runtime-libs option
4311 # is selected.
4312 toolexecdir='$(libdir)/gcc/$(target_alias)'
4313 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4316 if test -n "$with_cross_host" &&
4317 test x"$with_cross_host" != x"no"; then
4318 # Install a library built with a cross compiler in tooldir, not libdir.
4319 toolexecdir='$(exec_prefix)/$(target_alias)'
4320 toolexeclibdir='$(toolexecdir)/lib'
4321 else
4322 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4323 toolexeclibdir='$(libdir)'
4325 multi_os_directory=`$CC -print-multi-os-directory`
4326 case $multi_os_directory in
4327 .) ;; # Avoid trailing /.
4328 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4329 esac
4331 esac
4335 # Check for programs.
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if test "${ac_cv_prog_CC+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -n "$CC"; then
4352 ac_cv_prog_CC="$CC" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4365 done
4366 done
4367 IFS=$as_save_IFS
4371 CC=$ac_cv_prog_CC
4372 if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374 $as_echo "$CC" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$ac_cv_prog_CC"; then
4383 ac_ct_CC=$CC
4384 # Extract the first word of "gcc", so it can be a program name with args.
4385 set dummy gcc; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -n "$ac_ct_CC"; then
4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_ac_ct_CC="gcc"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4405 done
4406 done
4407 IFS=$as_save_IFS
4411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4412 if test -n "$ac_ct_CC"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4414 $as_echo "$ac_ct_CC" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4420 if test "x$ac_ct_CC" = x; then
4421 CC=""
4422 else
4423 case $cross_compiling:$ac_tool_warned in
4424 yes:)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427 ac_tool_warned=yes ;;
4428 esac
4429 CC=$ac_ct_CC
4431 else
4432 CC="$ac_cv_prog_CC"
4435 if test -z "$CC"; then
4436 if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4438 set dummy ${ac_tool_prefix}cc; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_CC+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_CC="${ac_tool_prefix}cc"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4458 done
4459 done
4460 IFS=$as_save_IFS
4464 CC=$ac_cv_prog_CC
4465 if test -n "$CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4467 $as_echo "$CC" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4476 if test -z "$CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478 set dummy cc; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if test "${ac_cv_prog_CC+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$CC"; then
4485 ac_cv_prog_CC="$CC" # Let the user override the test.
4486 else
4487 ac_prog_rejected=no
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4497 continue
4499 ac_cv_prog_CC="cc"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4503 done
4504 done
4505 IFS=$as_save_IFS
4507 if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_CC
4510 shift
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set CC to just the basename; use the full file name.
4515 shift
4516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4521 CC=$ac_cv_prog_CC
4522 if test -n "$CC"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4524 $as_echo "$CC" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4532 if test -z "$CC"; then
4533 if test -n "$ac_tool_prefix"; then
4534 for ac_prog in cl.exe
4536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_CC+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4557 done
4558 done
4559 IFS=$as_save_IFS
4563 CC=$ac_cv_prog_CC
4564 if test -n "$CC"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4566 $as_echo "$CC" >&6; }
4567 else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4573 test -n "$CC" && break
4574 done
4576 if test -z "$CC"; then
4577 ac_ct_CC=$CC
4578 for ac_prog in cl.exe
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$ac_ct_CC"; then
4588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_CC="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4608 if test -n "$ac_ct_CC"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4610 $as_echo "$ac_ct_CC" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$ac_ct_CC" && break
4618 done
4620 if test "x$ac_ct_CC" = x; then
4621 CC=""
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 CC=$ac_ct_CC
4636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error "no acceptable C compiler found in \$PATH
4639 See \`config.log' for more details." "$LINENO" 5; }
4641 # Provide some information about the compiler.
4642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4643 set X $ac_compile
4644 ac_compiler=$2
4645 for ac_option in --version -v -V -qversion; do
4646 { { ac_try="$ac_compiler $ac_option >&5"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4652 $as_echo "$ac_try_echo"; } >&5
4653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4654 ac_status=$?
4655 if test -s conftest.err; then
4656 sed '10a\
4657 ... rest of stderr output deleted ...
4658 10q' conftest.err >conftest.er1
4659 cat conftest.er1 >&5
4660 rm -f conftest.er1 conftest.err
4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }
4664 done
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4675 main ()
4677 #ifndef __GNUC__
4678 choke me
4679 #endif
4682 return 0;
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 ac_compiler_gnu=yes
4687 else
4688 ac_compiler_gnu=no
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4697 GCC=yes
4698 else
4699 GCC=
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if test "${ac_cv_prog_cc_g+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4716 main ()
4720 return 0;
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_g=yes
4725 else
4726 CFLAGS=""
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4740 else
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4742 CFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_g=yes
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4774 else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 ac_cv_prog_cc_c89=no
4787 ac_save_CC=$CC
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <stdarg.h>
4791 #include <stdio.h>
4792 #include <sys/types.h>
4793 #include <sys/stat.h>
4794 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4795 struct buf { int x; };
4796 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4797 static char *e (p, i)
4798 char **p;
4799 int i;
4801 return p[i];
4803 static char *f (char * (*g) (char **, int), char **p, ...)
4805 char *s;
4806 va_list v;
4807 va_start (v,p);
4808 s = g (p, va_arg (v,int));
4809 va_end (v);
4810 return s;
4813 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4814 function prototypes and stuff, but not '\xHH' hex character constants.
4815 These don't provoke an error unfortunately, instead are silently treated
4816 as 'x'. The following induces an error, until -std is added to get
4817 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4818 array size at least. It's necessary to write '\x00'==0 to get something
4819 that's true only with -std. */
4820 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4822 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4823 inside strings and character constants. */
4824 #define FOO(x) 'x'
4825 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4827 int test (int i, double x);
4828 struct s1 {int (*f) (int a);};
4829 struct s2 {int (*f) (double a);};
4830 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4831 int argc;
4832 char **argv;
4834 main ()
4836 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4838 return 0;
4840 _ACEOF
4841 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4842 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4844 CC="$ac_save_CC $ac_arg"
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 ac_cv_prog_cc_c89=$ac_arg
4848 rm -f core conftest.err conftest.$ac_objext
4849 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850 done
4851 rm -f conftest.$ac_ext
4852 CC=$ac_save_CC
4855 # AC_CACHE_VAL
4856 case "x$ac_cv_prog_cc_c89" in
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4859 $as_echo "none needed" >&6; } ;;
4860 xno)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4862 $as_echo "unsupported" >&6; } ;;
4864 CC="$CC $ac_cv_prog_cc_c89"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4866 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867 esac
4868 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872 ac_ext=c
4873 ac_cpp='$CPP $CPPFLAGS'
4874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 ac_ext=cpp
4879 ac_cpp='$CXXCPP $CPPFLAGS'
4880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4883 if test -z "$CXX"; then
4884 if test -n "$CCC"; then
4885 CXX=$CCC
4886 else
4887 if test -n "$ac_tool_prefix"; then
4888 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_CXX+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$CXX"; then
4898 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4911 done
4912 done
4913 IFS=$as_save_IFS
4917 CXX=$ac_cv_prog_CXX
4918 if test -n "$CXX"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4920 $as_echo "$CXX" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4927 test -n "$CXX" && break
4928 done
4930 if test -z "$CXX"; then
4931 ac_ct_CXX=$CXX
4932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4934 # Extract the first word of "$ac_prog", so it can be a program name with args.
4935 set dummy $ac_prog; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 if test -n "$ac_ct_CXX"; then
4942 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_prog_ac_ct_CXX="$ac_prog"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4955 done
4956 done
4957 IFS=$as_save_IFS
4961 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4962 if test -n "$ac_ct_CXX"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4964 $as_echo "$ac_ct_CXX" >&6; }
4965 else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4971 test -n "$ac_ct_CXX" && break
4972 done
4974 if test "x$ac_ct_CXX" = x; then
4975 CXX="g++"
4976 else
4977 case $cross_compiling:$ac_tool_warned in
4978 yes:)
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981 ac_tool_warned=yes ;;
4982 esac
4983 CXX=$ac_ct_CXX
4989 # Provide some information about the compiler.
4990 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4991 set X $ac_compile
4992 ac_compiler=$2
4993 for ac_option in --version -v -V -qversion; do
4994 { { ac_try="$ac_compiler $ac_option >&5"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000 $as_echo "$ac_try_echo"; } >&5
5001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5002 ac_status=$?
5003 if test -s conftest.err; then
5004 sed '10a\
5005 ... rest of stderr output deleted ...
5006 10q' conftest.err >conftest.er1
5007 cat conftest.er1 >&5
5008 rm -f conftest.er1 conftest.err
5010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5011 test $ac_status = 0; }
5012 done
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5015 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5016 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5023 main ()
5025 #ifndef __GNUC__
5026 choke me
5027 #endif
5030 return 0;
5032 _ACEOF
5033 if ac_fn_cxx_try_compile "$LINENO"; then :
5034 ac_compiler_gnu=yes
5035 else
5036 ac_compiler_gnu=no
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5043 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5044 if test $ac_compiler_gnu = yes; then
5045 GXX=yes
5046 else
5047 GXX=
5049 ac_test_CXXFLAGS=${CXXFLAGS+set}
5050 ac_save_CXXFLAGS=$CXXFLAGS
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5052 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5053 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5057 ac_cxx_werror_flag=yes
5058 ac_cv_prog_cxx_g=no
5059 CXXFLAGS="-g"
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5064 main ()
5068 return 0;
5070 _ACEOF
5071 if ac_fn_cxx_try_compile "$LINENO"; then :
5072 ac_cv_prog_cxx_g=yes
5073 else
5074 CXXFLAGS=""
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5079 main ()
5083 return 0;
5085 _ACEOF
5086 if ac_fn_cxx_try_compile "$LINENO"; then :
5088 else
5089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5090 CXXFLAGS="-g"
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5095 main ()
5099 return 0;
5101 _ACEOF
5102 if ac_fn_cxx_try_compile "$LINENO"; then :
5103 ac_cv_prog_cxx_g=yes
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5113 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5114 if test "$ac_test_CXXFLAGS" = set; then
5115 CXXFLAGS=$ac_save_CXXFLAGS
5116 elif test $ac_cv_prog_cxx_g = yes; then
5117 if test "$GXX" = yes; then
5118 CXXFLAGS="-g -O2"
5119 else
5120 CXXFLAGS="-g"
5122 else
5123 if test "$GXX" = yes; then
5124 CXXFLAGS="-O2"
5125 else
5126 CXXFLAGS=
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137 if test "x$CC" != xcc; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5139 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5142 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5144 set dummy $CC; ac_cc=`$as_echo "$2" |
5145 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5146 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5153 main ()
5157 return 0;
5159 _ACEOF
5160 # Make sure it works both with $CC and with simple cc.
5161 # We do the test twice because some compilers refuse to overwrite an
5162 # existing .o file with -o, though they will create one.
5163 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5164 rm -f conftest2.*
5165 if { { case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_try") 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; } &&
5175 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180 $as_echo "$ac_try_echo"; } >&5
5181 (eval "$ac_try") 2>&5
5182 ac_status=$?
5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; };
5185 then
5186 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5187 if test "x$CC" != xcc; then
5188 # Test first that cc exists at all.
5189 if { ac_try='cc -c conftest.$ac_ext >&5'
5190 { { case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5195 $as_echo "$ac_try_echo"; } >&5
5196 (eval "$ac_try") 2>&5
5197 ac_status=$?
5198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199 test $ac_status = 0; }; }; then
5200 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5201 rm -f conftest2.*
5202 if { { case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5207 $as_echo "$ac_try_echo"; } >&5
5208 (eval "$ac_try") 2>&5
5209 ac_status=$?
5210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5211 test $ac_status = 0; } &&
5212 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5217 $as_echo "$ac_try_echo"; } >&5
5218 (eval "$ac_try") 2>&5
5219 ac_status=$?
5220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5221 test $ac_status = 0; };
5222 then
5223 # cc works too.
5225 else
5226 # cc exists but doesn't like -o.
5227 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5231 else
5232 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5234 rm -f core conftest*
5237 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 $as_echo "yes" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5244 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5248 # FIXME: we rely on the cache variable name because
5249 # there is no other way.
5250 set dummy $CC
5251 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5252 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5253 if test "$am_t" != yes; then
5254 # Losing compiler, so override with the script.
5255 # FIXME: It is wrong to rewrite CC.
5256 # But if we don't then we get into trouble of one sort or another.
5257 # A longer-term fix would be to have automake use am__CC in this case,
5258 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5259 CC="$am_aux_dir/compile $CC"
5266 # Newer automakes demand CCAS and CCASFLAGS.
5267 : ${CCAS='$(CC)'}
5268 : ${CCASFLAGS='$(CFLAGS)'}
5272 if test -n "$ac_tool_prefix"; then
5273 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5274 set dummy ${ac_tool_prefix}as; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if test "${ac_cv_prog_AS+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -n "$AS"; then
5281 ac_cv_prog_AS="$AS" # Let the user override the test.
5282 else
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_AS="${ac_tool_prefix}as"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5294 done
5295 done
5296 IFS=$as_save_IFS
5300 AS=$ac_cv_prog_AS
5301 if test -n "$AS"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5303 $as_echo "$AS" >&6; }
5304 else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5311 if test -z "$ac_cv_prog_AS"; then
5312 ac_ct_AS=$AS
5313 # Extract the first word of "as", so it can be a program name with args.
5314 set dummy as; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$ac_ct_AS"; then
5321 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_ac_ct_AS="as"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5336 IFS=$as_save_IFS
5340 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5341 if test -n "$ac_ct_AS"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5343 $as_echo "$ac_ct_AS" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5349 if test "x$ac_ct_AS" = x; then
5350 AS=""
5351 else
5352 case $cross_compiling:$ac_tool_warned in
5353 yes:)
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5356 ac_tool_warned=yes ;;
5357 esac
5358 AS=$ac_ct_AS
5360 else
5361 AS="$ac_cv_prog_AS"
5364 if test -n "$ac_tool_prefix"; then
5365 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}ar; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_prog_AR+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$AR"; then
5373 ac_cv_prog_AR="$AR" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_AR="${ac_tool_prefix}ar"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 AR=$ac_cv_prog_AR
5393 if test -n "$AR"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5395 $as_echo "$AR" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5403 if test -z "$ac_cv_prog_AR"; then
5404 ac_ct_AR=$AR
5405 # Extract the first word of "ar", so it can be a program name with args.
5406 set dummy ar; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$ac_ct_AR"; then
5413 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_ac_ct_AR="ar"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5432 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433 if test -n "$ac_ct_AR"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5435 $as_echo "$ac_ct_AR" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5441 if test "x$ac_ct_AR" = x; then
5442 AR=""
5443 else
5444 case $cross_compiling:$ac_tool_warned in
5445 yes:)
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5448 ac_tool_warned=yes ;;
5449 esac
5450 AR=$ac_ct_AR
5452 else
5453 AR="$ac_cv_prog_AR"
5456 if test -n "$ac_tool_prefix"; then
5457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -n "$RANLIB"; then
5465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5466 else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 break 2
5478 done
5479 done
5480 IFS=$as_save_IFS
5484 RANLIB=$ac_cv_prog_RANLIB
5485 if test -n "$RANLIB"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5487 $as_echo "$RANLIB" >&6; }
5488 else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5495 if test -z "$ac_cv_prog_RANLIB"; then
5496 ac_ct_RANLIB=$RANLIB
5497 # Extract the first word of "ranlib", so it can be a program name with args.
5498 set dummy ranlib; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$ac_ct_RANLIB"; then
5505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_ac_ct_RANLIB="ranlib"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5525 if test -n "$ac_ct_RANLIB"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5527 $as_echo "$ac_ct_RANLIB" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5533 if test "x$ac_ct_RANLIB" = x; then
5534 RANLIB=":"
5535 else
5536 case $cross_compiling:$ac_tool_warned in
5537 yes:)
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5540 ac_tool_warned=yes ;;
5541 esac
5542 RANLIB=$ac_ct_RANLIB
5544 else
5545 RANLIB="$ac_cv_prog_RANLIB"
5549 # Check we may build wrappers library
5550 echo "test: bndmov %bnd0, %bnd1" > conftest.s
5551 if { ac_try='$AS -o conftest.o conftest.s 1>&5'
5552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556 test $ac_status = 0; }; }
5557 then
5558 mpx_as=yes
5559 else
5560 mpx_as=no
5561 echo "configure: no MPX support fo as" >&5
5563 rm -f conftest.o conftest.s
5564 if test "x$mpx_as" = "xyes"; then
5565 MPX_AS_SUPPORTED_TRUE=
5566 MPX_AS_SUPPORTED_FALSE='#'
5567 else
5568 MPX_AS_SUPPORTED_TRUE='#'
5569 MPX_AS_SUPPORTED_FALSE=
5573 # Configure libtool
5574 enable_dlopen=yes
5578 case `pwd` in
5579 *\ * | *\ *)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5581 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5582 esac
5586 macro_version='2.2.7a'
5587 macro_revision='1.3134'
5601 ltmain="$ac_aux_dir/ltmain.sh"
5603 # Backslashify metacharacters that are still active within
5604 # double-quoted strings.
5605 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5607 # Same as above, but do not quote variable references.
5608 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5610 # Sed substitution to delay expansion of an escaped shell variable in a
5611 # double_quote_subst'ed string.
5612 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5614 # Sed substitution to delay expansion of an escaped single quote.
5615 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5617 # Sed substitution to avoid accidental globbing in evaled expressions
5618 no_glob_subst='s/\*/\\\*/g'
5620 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5622 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5625 $as_echo_n "checking how to print strings... " >&6; }
5626 # Test print first, because it will be a builtin if present.
5627 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5628 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5629 ECHO='print -r --'
5630 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5631 ECHO='printf %s\n'
5632 else
5633 # Use this function as a fallback that always works.
5634 func_fallback_echo ()
5636 eval 'cat <<_LTECHO_EOF
5638 _LTECHO_EOF'
5640 ECHO='func_fallback_echo'
5643 # func_echo_all arg...
5644 # Invoke $ECHO with all args, space-separated.
5645 func_echo_all ()
5647 $ECHO ""
5650 case "$ECHO" in
5651 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5652 $as_echo "printf" >&6; } ;;
5653 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5654 $as_echo "print -r" >&6; } ;;
5655 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5656 $as_echo "cat" >&6; } ;;
5657 esac
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5673 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5674 if test "${ac_cv_path_SED+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5678 for ac_i in 1 2 3 4 5 6 7; do
5679 ac_script="$ac_script$as_nl$ac_script"
5680 done
5681 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5682 { ac_script=; unset ac_script;}
5683 if test -z "$SED"; then
5684 ac_path_SED_found=false
5685 # Loop through the user's path and test for each of PROGNAME-LIST
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_prog in sed gsed; do
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5694 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5695 # Check for GNU ac_path_SED and select it if it is found.
5696 # Check for GNU $ac_path_SED
5697 case `"$ac_path_SED" --version 2>&1` in
5698 *GNU*)
5699 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5701 ac_count=0
5702 $as_echo_n 0123456789 >"conftest.in"
5703 while :
5705 cat "conftest.in" "conftest.in" >"conftest.tmp"
5706 mv "conftest.tmp" "conftest.in"
5707 cp "conftest.in" "conftest.nl"
5708 $as_echo '' >> "conftest.nl"
5709 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5711 as_fn_arith $ac_count + 1 && ac_count=$as_val
5712 if test $ac_count -gt ${ac_path_SED_max-0}; then
5713 # Best one so far, save it but keep looking for a better one
5714 ac_cv_path_SED="$ac_path_SED"
5715 ac_path_SED_max=$ac_count
5717 # 10*(2^10) chars as input seems more than enough
5718 test $ac_count -gt 10 && break
5719 done
5720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5721 esac
5723 $ac_path_SED_found && break 3
5724 done
5725 done
5726 done
5727 IFS=$as_save_IFS
5728 if test -z "$ac_cv_path_SED"; then
5729 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5731 else
5732 ac_cv_path_SED=$SED
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5737 $as_echo "$ac_cv_path_SED" >&6; }
5738 SED="$ac_cv_path_SED"
5739 rm -f conftest.sed
5741 test -z "$SED" && SED=sed
5742 Xsed="$SED -e 1s/^X//"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5755 $as_echo_n "checking for fgrep... " >&6; }
5756 if test "${ac_cv_path_FGREP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5760 then ac_cv_path_FGREP="$GREP -F"
5761 else
5762 if test -z "$FGREP"; then
5763 ac_path_FGREP_found=false
5764 # Loop through the user's path and test for each of PROGNAME-LIST
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_prog in fgrep; do
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5773 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5774 # Check for GNU ac_path_FGREP and select it if it is found.
5775 # Check for GNU $ac_path_FGREP
5776 case `"$ac_path_FGREP" --version 2>&1` in
5777 *GNU*)
5778 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5780 ac_count=0
5781 $as_echo_n 0123456789 >"conftest.in"
5782 while :
5784 cat "conftest.in" "conftest.in" >"conftest.tmp"
5785 mv "conftest.tmp" "conftest.in"
5786 cp "conftest.in" "conftest.nl"
5787 $as_echo 'FGREP' >> "conftest.nl"
5788 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5790 as_fn_arith $ac_count + 1 && ac_count=$as_val
5791 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5792 # Best one so far, save it but keep looking for a better one
5793 ac_cv_path_FGREP="$ac_path_FGREP"
5794 ac_path_FGREP_max=$ac_count
5796 # 10*(2^10) chars as input seems more than enough
5797 test $ac_count -gt 10 && break
5798 done
5799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5800 esac
5802 $ac_path_FGREP_found && break 3
5803 done
5804 done
5805 done
5806 IFS=$as_save_IFS
5807 if test -z "$ac_cv_path_FGREP"; then
5808 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5810 else
5811 ac_cv_path_FGREP=$FGREP
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5817 $as_echo "$ac_cv_path_FGREP" >&6; }
5818 FGREP="$ac_cv_path_FGREP"
5821 test -z "$GREP" && GREP=grep
5841 # Check whether --with-gnu-ld was given.
5842 if test "${with_gnu_ld+set}" = set; then :
5843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5844 else
5845 with_gnu_ld=no
5848 ac_prog=ld
5849 if test "$GCC" = yes; then
5850 # Check if gcc -print-prog-name=ld gives a path.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5852 $as_echo_n "checking for ld used by $CC... " >&6; }
5853 case $host in
5854 *-*-mingw*)
5855 # gcc leaves a trailing carriage return which upsets mingw
5856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5859 esac
5860 case $ac_prog in
5861 # Accept absolute paths.
5862 [\\/]* | ?:[\\/]*)
5863 re_direlt='/[^/][^/]*/\.\./'
5864 # Canonicalize the pathname of ld
5865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5868 done
5869 test -z "$LD" && LD="$ac_prog"
5872 # If it fails, then pretend we aren't using GCC.
5873 ac_prog=ld
5876 # If it is relative, then search for the first ld in PATH.
5877 with_gnu_ld=unknown
5879 esac
5880 elif test "$with_gnu_ld" = yes; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5882 $as_echo_n "checking for GNU ld... " >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5885 $as_echo_n "checking for non-GNU ld... " >&6; }
5887 if test "${lt_cv_path_LD+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -z "$LD"; then
5891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5892 for ac_dir in $PATH; do
5893 IFS="$lt_save_ifs"
5894 test -z "$ac_dir" && ac_dir=.
5895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5896 lt_cv_path_LD="$ac_dir/$ac_prog"
5897 # Check to see if the program is GNU ld. I'd rather use --version,
5898 # but apparently some variants of GNU ld only accept -v.
5899 # Break only if it was the GNU/non-GNU ld that we prefer.
5900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5901 *GNU* | *'with BFD'*)
5902 test "$with_gnu_ld" != no && break
5905 test "$with_gnu_ld" != yes && break
5907 esac
5909 done
5910 IFS="$lt_save_ifs"
5911 else
5912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5916 LD="$lt_cv_path_LD"
5917 if test -n "$LD"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5919 $as_echo "$LD" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5924 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5927 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5931 case `$LD -v 2>&1 </dev/null` in
5932 *GNU* | *'with BFD'*)
5933 lt_cv_prog_gnu_ld=yes
5936 lt_cv_prog_gnu_ld=no
5938 esac
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5942 with_gnu_ld=$lt_cv_prog_gnu_ld
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5953 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5954 if test "${lt_cv_path_NM+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$NM"; then
5958 # Let the user override the test.
5959 lt_cv_path_NM="$NM"
5960 else
5961 lt_nm_to_check="${ac_tool_prefix}nm"
5962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5963 lt_nm_to_check="$lt_nm_to_check nm"
5965 for lt_tmp_nm in $lt_nm_to_check; do
5966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5968 IFS="$lt_save_ifs"
5969 test -z "$ac_dir" && ac_dir=.
5970 tmp_nm="$ac_dir/$lt_tmp_nm"
5971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5972 # Check to see if the nm accepts a BSD-compat flag.
5973 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5974 # nm: unknown option "B" ignored
5975 # Tru64's nm complains that /dev/null is an invalid object file
5976 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5977 */dev/null* | *'Invalid file or object type'*)
5978 lt_cv_path_NM="$tmp_nm -B"
5979 break
5982 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5983 */dev/null*)
5984 lt_cv_path_NM="$tmp_nm -p"
5985 break
5988 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5989 continue # so that we can try to find one that supports BSD flags
5991 esac
5993 esac
5995 done
5996 IFS="$lt_save_ifs"
5997 done
5998 : ${lt_cv_path_NM=no}
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6002 $as_echo "$lt_cv_path_NM" >&6; }
6003 if test "$lt_cv_path_NM" != "no"; then
6004 NM="$lt_cv_path_NM"
6005 else
6006 # Didn't find any BSD compatible name lister, look for dumpbin.
6007 if test -n "$DUMPBIN"; then :
6008 # Let the user override the test.
6009 else
6010 if test -n "$ac_tool_prefix"; then
6011 for ac_prog in dumpbin "link -dump"
6013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$DUMPBIN"; then
6021 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6034 done
6035 done
6036 IFS=$as_save_IFS
6040 DUMPBIN=$ac_cv_prog_DUMPBIN
6041 if test -n "$DUMPBIN"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6043 $as_echo "$DUMPBIN" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6050 test -n "$DUMPBIN" && break
6051 done
6053 if test -z "$DUMPBIN"; then
6054 ac_ct_DUMPBIN=$DUMPBIN
6055 for ac_prog in dumpbin "link -dump"
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -n "$ac_ct_DUMPBIN"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6078 done
6079 done
6080 IFS=$as_save_IFS
6084 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6085 if test -n "$ac_ct_DUMPBIN"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6087 $as_echo "$ac_ct_DUMPBIN" >&6; }
6088 else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6094 test -n "$ac_ct_DUMPBIN" && break
6095 done
6097 if test "x$ac_ct_DUMPBIN" = x; then
6098 DUMPBIN=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101 yes:)
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned=yes ;;
6105 esac
6106 DUMPBIN=$ac_ct_DUMPBIN
6110 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6111 *COFF*)
6112 DUMPBIN="$DUMPBIN -symbols"
6115 DUMPBIN=:
6117 esac
6120 if test "$DUMPBIN" != ":"; then
6121 NM="$DUMPBIN"
6124 test -z "$NM" && NM=nm
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6132 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6133 if test "${lt_cv_nm_interface+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 lt_cv_nm_interface="BSD nm"
6137 echo "int some_variable = 0;" > conftest.$ac_ext
6138 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6139 (eval "$ac_compile" 2>conftest.err)
6140 cat conftest.err >&5
6141 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6142 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6143 cat conftest.err >&5
6144 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6145 cat conftest.out >&5
6146 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6147 lt_cv_nm_interface="MS dumpbin"
6149 rm -f conftest*
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6152 $as_echo "$lt_cv_nm_interface" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6155 $as_echo_n "checking whether ln -s works... " >&6; }
6156 LN_S=$as_ln_s
6157 if test "$LN_S" = "ln -s"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6159 $as_echo "yes" >&6; }
6160 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6162 $as_echo "no, using $LN_S" >&6; }
6165 # find the maximum length of command line arguments
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6167 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6168 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6172 teststring="ABCD"
6174 case $build_os in
6175 msdosdjgpp*)
6176 # On DJGPP, this test can blow up pretty badly due to problems in libc
6177 # (any single argument exceeding 2000 bytes causes a buffer overrun
6178 # during glob expansion). Even if it were fixed, the result of this
6179 # check would be larger than it should be.
6180 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6183 gnu*)
6184 # Under GNU Hurd, this test is not required because there is
6185 # no limit to the length of command line arguments.
6186 # Libtool will interpret -1 as no limit whatsoever
6187 lt_cv_sys_max_cmd_len=-1;
6190 cygwin* | mingw* | cegcc*)
6191 # On Win9x/ME, this test blows up -- it succeeds, but takes
6192 # about 5 minutes as the teststring grows exponentially.
6193 # Worse, since 9x/ME are not pre-emptively multitasking,
6194 # you end up with a "frozen" computer, even though with patience
6195 # the test eventually succeeds (with a max line length of 256k).
6196 # Instead, let's just punt: use the minimum linelength reported by
6197 # all of the supported platforms: 8192 (on NT/2K/XP).
6198 lt_cv_sys_max_cmd_len=8192;
6201 mint*)
6202 # On MiNT this can take a long time and run out of memory.
6203 lt_cv_sys_max_cmd_len=8192;
6206 amigaos*)
6207 # On AmigaOS with pdksh, this test takes hours, literally.
6208 # So we just punt and use a minimum line length of 8192.
6209 lt_cv_sys_max_cmd_len=8192;
6212 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6213 # This has been around since 386BSD, at least. Likely further.
6214 if test -x /sbin/sysctl; then
6215 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6216 elif test -x /usr/sbin/sysctl; then
6217 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6218 else
6219 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6221 # And add a safety zone
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6226 interix*)
6227 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6228 lt_cv_sys_max_cmd_len=196608
6231 osf*)
6232 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6233 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6234 # nice to cause kernel panics so lets avoid the loop below.
6235 # First set a reasonable default.
6236 lt_cv_sys_max_cmd_len=16384
6238 if test -x /sbin/sysconfig; then
6239 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6240 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6241 esac
6244 sco3.2v5*)
6245 lt_cv_sys_max_cmd_len=102400
6247 sysv5* | sco5v6* | sysv4.2uw2*)
6248 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6249 if test -n "$kargmax"; then
6250 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6251 else
6252 lt_cv_sys_max_cmd_len=32768
6256 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6257 if test -n "$lt_cv_sys_max_cmd_len"; then
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6260 else
6261 # Make teststring a little bigger before we do anything with it.
6262 # a 1K string should be a reasonable start.
6263 for i in 1 2 3 4 5 6 7 8 ; do
6264 teststring=$teststring$teststring
6265 done
6266 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6267 # If test is not a shell built-in, we'll probably end up computing a
6268 # maximum length that is only half of the actual maximum length, but
6269 # we can't tell.
6270 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6271 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6272 test $i != 17 # 1/2 MB should be enough
6274 i=`expr $i + 1`
6275 teststring=$teststring$teststring
6276 done
6277 # Only check the string length outside the loop.
6278 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6279 teststring=
6280 # Add a significant safety factor because C++ compilers can tack on
6281 # massive amounts of additional arguments before passing them to the
6282 # linker. It appears as though 1/2 is a usable value.
6283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6286 esac
6290 if test -n $lt_cv_sys_max_cmd_len ; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6292 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6295 $as_echo "none" >&6; }
6297 max_cmd_len=$lt_cv_sys_max_cmd_len
6304 : ${CP="cp -f"}
6305 : ${MV="mv -f"}
6306 : ${RM="rm -f"}
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6309 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6310 # Try some XSI features
6311 xsi_shell=no
6312 ( _lt_dummy="a/b/c"
6313 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6314 = c,a/b,, \
6315 && eval 'test $(( 1 + 1 )) -eq 2 \
6316 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6317 && xsi_shell=yes
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6319 $as_echo "$xsi_shell" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6323 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6324 lt_shell_append=no
6325 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6326 >/dev/null 2>&1 \
6327 && lt_shell_append=yes
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6329 $as_echo "$lt_shell_append" >&6; }
6332 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6333 lt_unset=unset
6334 else
6335 lt_unset=false
6342 # test EBCDIC or ASCII
6343 case `echo X|tr X '\101'` in
6344 A) # ASCII based system
6345 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6346 lt_SP2NL='tr \040 \012'
6347 lt_NL2SP='tr \015\012 \040\040'
6349 *) # EBCDIC based system
6350 lt_SP2NL='tr \100 \n'
6351 lt_NL2SP='tr \r\n \100\100'
6353 esac
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6364 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6365 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 lt_cv_ld_reload_flag='-r'
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6371 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6372 reload_flag=$lt_cv_ld_reload_flag
6373 case $reload_flag in
6374 "" | " "*) ;;
6375 *) reload_flag=" $reload_flag" ;;
6376 esac
6377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6378 case $host_os in
6379 darwin*)
6380 if test "$GCC" = yes; then
6381 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6382 else
6383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6386 esac
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 if test -n "$OBJDUMP"; then
6405 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6418 done
6419 done
6420 IFS=$as_save_IFS
6424 OBJDUMP=$ac_cv_prog_OBJDUMP
6425 if test -n "$OBJDUMP"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6427 $as_echo "$OBJDUMP" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_OBJDUMP"; then
6436 ac_ct_OBJDUMP=$OBJDUMP
6437 # Extract the first word of "objdump", so it can be a program name with args.
6438 set dummy objdump; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$ac_ct_OBJDUMP"; then
6445 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6465 if test -n "$ac_ct_OBJDUMP"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6467 $as_echo "$ac_ct_OBJDUMP" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_OBJDUMP" = x; then
6474 OBJDUMP="false"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6481 esac
6482 OBJDUMP=$ac_ct_OBJDUMP
6484 else
6485 OBJDUMP="$ac_cv_prog_OBJDUMP"
6488 test -z "$OBJDUMP" && OBJDUMP=objdump
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6499 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6500 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 lt_cv_file_magic_cmd='$MAGIC_CMD'
6504 lt_cv_file_magic_test_file=
6505 lt_cv_deplibs_check_method='unknown'
6506 # Need to set the preceding variable on all platforms that support
6507 # interlibrary dependencies.
6508 # 'none' -- dependencies not supported.
6509 # `unknown' -- same as none, but documents that we really don't know.
6510 # 'pass_all' -- all dependencies passed with no checks.
6511 # 'test_compile' -- check by making test program.
6512 # 'file_magic [[regex]]' -- check by looking for files in library path
6513 # which responds to the $file_magic_cmd with a given extended regex.
6514 # If you have `file' or equivalent on your system and you're not sure
6515 # whether `pass_all' will *always* work, you probably want this one.
6517 case $host_os in
6518 aix[4-9]*)
6519 lt_cv_deplibs_check_method=pass_all
6522 beos*)
6523 lt_cv_deplibs_check_method=pass_all
6526 bsdi[45]*)
6527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6528 lt_cv_file_magic_cmd='/usr/bin/file -L'
6529 lt_cv_file_magic_test_file=/shlib/libc.so
6532 cygwin*)
6533 # func_win32_libid is a shell function defined in ltmain.sh
6534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6535 lt_cv_file_magic_cmd='func_win32_libid'
6538 mingw* | pw32*)
6539 # Base MSYS/MinGW do not provide the 'file' command needed by
6540 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6541 # unless we find 'file', for example because we are cross-compiling.
6542 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6543 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6545 lt_cv_file_magic_cmd='func_win32_libid'
6546 else
6547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6548 lt_cv_file_magic_cmd='$OBJDUMP -f'
6552 cegcc*)
6553 # use the weaker test based on 'objdump'. See mingw*.
6554 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6555 lt_cv_file_magic_cmd='$OBJDUMP -f'
6558 darwin* | rhapsody*)
6559 lt_cv_deplibs_check_method=pass_all
6562 freebsd* | dragonfly*)
6563 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6564 case $host_cpu in
6565 i*86 )
6566 # Not sure whether the presence of OpenBSD here was a mistake.
6567 # Let's accept both of them until this is cleared up.
6568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6569 lt_cv_file_magic_cmd=/usr/bin/file
6570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6572 esac
6573 else
6574 lt_cv_deplibs_check_method=pass_all
6578 gnu*)
6579 lt_cv_deplibs_check_method=pass_all
6582 haiku*)
6583 lt_cv_deplibs_check_method=pass_all
6586 hpux10.20* | hpux11*)
6587 lt_cv_file_magic_cmd=/usr/bin/file
6588 case $host_cpu in
6589 ia64*)
6590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6591 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6593 hppa*64*)
6594 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]'
6595 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6599 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6601 esac
6604 interix[3-9]*)
6605 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6609 irix5* | irix6* | nonstopux*)
6610 case $LD in
6611 *-32|*"-32 ") libmagic=32-bit;;
6612 *-n32|*"-n32 ") libmagic=N32;;
6613 *-64|*"-64 ") libmagic=64-bit;;
6614 *) libmagic=never-match;;
6615 esac
6616 lt_cv_deplibs_check_method=pass_all
6619 # This must be Linux ELF.
6620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6621 lt_cv_deplibs_check_method=pass_all
6624 netbsd*)
6625 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6627 else
6628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6632 newos6*)
6633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6634 lt_cv_file_magic_cmd=/usr/bin/file
6635 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6638 *nto* | *qnx*)
6639 lt_cv_deplibs_check_method=pass_all
6642 openbsd*)
6643 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6645 else
6646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6650 osf3* | osf4* | osf5*)
6651 lt_cv_deplibs_check_method=pass_all
6654 rdos*)
6655 lt_cv_deplibs_check_method=pass_all
6658 solaris*)
6659 lt_cv_deplibs_check_method=pass_all
6662 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6663 lt_cv_deplibs_check_method=pass_all
6666 sysv4 | sysv4.3*)
6667 case $host_vendor in
6668 motorola)
6669 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]'
6670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6672 ncr)
6673 lt_cv_deplibs_check_method=pass_all
6675 sequent)
6676 lt_cv_file_magic_cmd='/bin/file'
6677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6679 sni)
6680 lt_cv_file_magic_cmd='/bin/file'
6681 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6682 lt_cv_file_magic_test_file=/lib/libc.so
6684 siemens)
6685 lt_cv_deplibs_check_method=pass_all
6688 lt_cv_deplibs_check_method=pass_all
6690 esac
6693 tpf*)
6694 lt_cv_deplibs_check_method=pass_all
6696 esac
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6700 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6701 file_magic_cmd=$lt_cv_file_magic_cmd
6702 deplibs_check_method=$lt_cv_deplibs_check_method
6703 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}ar; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_AR+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$AR"; then
6725 ac_cv_prog_AR="$AR" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_AR="${ac_tool_prefix}ar"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 AR=$ac_cv_prog_AR
6745 if test -n "$AR"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6747 $as_echo "$AR" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6755 if test -z "$ac_cv_prog_AR"; then
6756 ac_ct_AR=$AR
6757 # Extract the first word of "ar", so it can be a program name with args.
6758 set dummy ar; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_AR"; then
6765 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_AR="ar"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6785 if test -n "$ac_ct_AR"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6787 $as_echo "$ac_ct_AR" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6793 if test "x$ac_ct_AR" = x; then
6794 AR="false"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 AR=$ac_ct_AR
6804 else
6805 AR="$ac_cv_prog_AR"
6808 test -z "$AR" && AR=ar
6809 test -z "$AR_FLAGS" && AR_FLAGS=cru
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}strip; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_prog_STRIP+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$STRIP"; then
6830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6849 STRIP=$ac_cv_prog_STRIP
6850 if test -n "$STRIP"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6852 $as_echo "$STRIP" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_STRIP"; then
6861 ac_ct_STRIP=$STRIP
6862 # Extract the first word of "strip", so it can be a program name with args.
6863 set dummy strip; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$ac_ct_STRIP"; then
6870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_STRIP="strip"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6883 done
6884 done
6885 IFS=$as_save_IFS
6889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6890 if test -n "$ac_ct_STRIP"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6892 $as_echo "$ac_ct_STRIP" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_STRIP" = x; then
6899 STRIP=":"
6900 else
6901 case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907 STRIP=$ac_ct_STRIP
6909 else
6910 STRIP="$ac_cv_prog_STRIP"
6913 test -z "$STRIP" && STRIP=:
6920 if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$RANLIB"; then
6929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6948 RANLIB=$ac_cv_prog_RANLIB
6949 if test -n "$RANLIB"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6951 $as_echo "$RANLIB" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6959 if test -z "$ac_cv_prog_RANLIB"; then
6960 ac_ct_RANLIB=$RANLIB
6961 # Extract the first word of "ranlib", so it can be a program name with args.
6962 set dummy ranlib; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$ac_ct_RANLIB"; then
6969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_ac_ct_RANLIB="ranlib"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6989 if test -n "$ac_ct_RANLIB"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6991 $as_echo "$ac_ct_RANLIB" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6997 if test "x$ac_ct_RANLIB" = x; then
6998 RANLIB=":"
6999 else
7000 case $cross_compiling:$ac_tool_warned in
7001 yes:)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004 ac_tool_warned=yes ;;
7005 esac
7006 RANLIB=$ac_ct_RANLIB
7008 else
7009 RANLIB="$ac_cv_prog_RANLIB"
7012 test -z "$RANLIB" && RANLIB=:
7019 # Determine commands to create old-style static archives.
7020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7021 old_postinstall_cmds='chmod 644 $oldlib'
7022 old_postuninstall_cmds=
7024 if test -n "$RANLIB"; then
7025 case $host_os in
7026 openbsd*)
7027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7032 esac
7033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7036 case $host_os in
7037 darwin*)
7038 lock_old_archive_extraction=yes ;;
7040 lock_old_archive_extraction=no ;;
7041 esac
7081 # If no C compiler was specified, use CC.
7082 LTCC=${LTCC-"$CC"}
7084 # If no C compiler flags were specified, use CFLAGS.
7085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7087 # Allow CC to be a program name with arguments.
7088 compiler=$CC
7091 # Check for command to grab the raw symbol name followed by C symbol from nm.
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7094 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7098 # These are sane defaults that work on at least a few old systems.
7099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7101 # Character class describing NM global symbol codes.
7102 symcode='[BCDEGRST]'
7104 # Regexp to match symbols that can be accessed directly from C.
7105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7107 # Define system-specific variables.
7108 case $host_os in
7109 aix*)
7110 symcode='[BCDT]'
7112 cygwin* | mingw* | pw32* | cegcc*)
7113 symcode='[ABCDGISTW]'
7115 hpux*)
7116 if test "$host_cpu" = ia64; then
7117 symcode='[ABCDEGRST]'
7120 irix* | nonstopux*)
7121 symcode='[BCDEGRST]'
7123 osf*)
7124 symcode='[BCDEGQRST]'
7126 solaris*)
7127 symcode='[BDRT]'
7129 sco3.2v5*)
7130 symcode='[DT]'
7132 sysv4.2uw2*)
7133 symcode='[DT]'
7135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7136 symcode='[ABDT]'
7138 sysv4)
7139 symcode='[DFNSTU]'
7141 esac
7143 # If we're using GNU nm, then use its standard symbol codes.
7144 case `$NM -V 2>&1` in
7145 *GNU* | *'with BFD'*)
7146 symcode='[ABCDGIRSTW]' ;;
7147 esac
7149 # Transform an extracted symbol line into a proper C declaration.
7150 # Some systems (esp. on ia64) link data and code symbols differently,
7151 # so use this general approach.
7152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7154 # Transform an extracted symbol line into symbol name and symbol address
7155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7156 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'"
7158 # Handle CRLF in mingw tool chain
7159 opt_cr=
7160 case $build_os in
7161 mingw*)
7162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7164 esac
7166 # Try without a prefix underscore, then with it.
7167 for ac_symprfx in "" "_"; do
7169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7170 symxfrm="\\1 $ac_symprfx\\2 \\2"
7172 # Write the raw and C identifiers.
7173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7174 # Fake it for dumpbin and say T for any non-static function
7175 # and D for any global variable.
7176 # Also find C++ and __fastcall symbols from MSVC++,
7177 # which start with @ or ?.
7178 lt_cv_sys_global_symbol_pipe="$AWK '"\
7179 " {last_section=section; section=\$ 3};"\
7180 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7181 " \$ 0!~/External *\|/{next};"\
7182 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7183 " {if(hide[section]) next};"\
7184 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7185 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7186 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7187 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7188 " ' prfx=^$ac_symprfx"
7189 else
7190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7193 # Check to see that the pipe works correctly.
7194 pipe_works=no
7196 rm -f conftest*
7197 cat > conftest.$ac_ext <<_LT_EOF
7198 #ifdef __cplusplus
7199 extern "C" {
7200 #endif
7201 char nm_test_var;
7202 void nm_test_func(void);
7203 void nm_test_func(void){}
7204 #ifdef __cplusplus
7206 #endif
7207 int main(){nm_test_var='a';nm_test_func();return(0);}
7208 _LT_EOF
7210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7211 (eval $ac_compile) 2>&5
7212 ac_status=$?
7213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; }; then
7215 # Now try to grab the symbols.
7216 nlist=conftest.nm
7217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7218 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7219 ac_status=$?
7220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221 test $ac_status = 0; } && test -s "$nlist"; then
7222 # Try sorting and uniquifying the output.
7223 if sort "$nlist" | uniq > "$nlist"T; then
7224 mv -f "$nlist"T "$nlist"
7225 else
7226 rm -f "$nlist"T
7229 # Make sure that we snagged all the symbols we need.
7230 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7231 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7232 cat <<_LT_EOF > conftest.$ac_ext
7233 #ifdef __cplusplus
7234 extern "C" {
7235 #endif
7237 _LT_EOF
7238 # Now generate the symbol file.
7239 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7241 cat <<_LT_EOF >> conftest.$ac_ext
7243 /* The mapping between symbol names and symbols. */
7244 const struct {
7245 const char *name;
7246 void *address;
7248 lt__PROGRAM__LTX_preloaded_symbols[] =
7250 { "@PROGRAM@", (void *) 0 },
7251 _LT_EOF
7252 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7253 cat <<\_LT_EOF >> conftest.$ac_ext
7254 {0, (void *) 0}
7257 /* This works around a problem in FreeBSD linker */
7258 #ifdef FREEBSD_WORKAROUND
7259 static const void *lt_preloaded_setup() {
7260 return lt__PROGRAM__LTX_preloaded_symbols;
7262 #endif
7264 #ifdef __cplusplus
7266 #endif
7267 _LT_EOF
7268 # Now try linking the two files.
7269 mv conftest.$ac_objext conftstm.$ac_objext
7270 lt_save_LIBS="$LIBS"
7271 lt_save_CFLAGS="$CFLAGS"
7272 LIBS="conftstm.$ac_objext"
7273 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7275 (eval $ac_link) 2>&5
7276 ac_status=$?
7277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7279 pipe_works=yes
7281 LIBS="$lt_save_LIBS"
7282 CFLAGS="$lt_save_CFLAGS"
7283 else
7284 echo "cannot find nm_test_func in $nlist" >&5
7286 else
7287 echo "cannot find nm_test_var in $nlist" >&5
7289 else
7290 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7292 else
7293 echo "$progname: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 rm -rf conftest* conftst*
7298 # Do not use the global_symbol_pipe unless it works.
7299 if test "$pipe_works" = yes; then
7300 break
7301 else
7302 lt_cv_sys_global_symbol_pipe=
7304 done
7308 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7309 lt_cv_sys_global_symbol_to_cdecl=
7311 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7313 $as_echo "failed" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7316 $as_echo "ok" >&6; }
7340 # Check whether --enable-libtool-lock was given.
7341 if test "${enable_libtool_lock+set}" = set; then :
7342 enableval=$enable_libtool_lock;
7345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7347 # Some flags need to be propagated to the compiler or linker for good
7348 # libtool support.
7349 case $host in
7350 ia64-*-hpux*)
7351 # Find out which ABI we are using.
7352 echo 'int i;' > conftest.$ac_ext
7353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354 (eval $ac_compile) 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357 test $ac_status = 0; }; then
7358 case `/usr/bin/file conftest.$ac_objext` in
7359 *ELF-32*)
7360 HPUX_IA64_MODE="32"
7362 *ELF-64*)
7363 HPUX_IA64_MODE="64"
7365 esac
7367 rm -rf conftest*
7369 *-*-irix6*)
7370 # Find out which ABI we are using.
7371 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7373 (eval $ac_compile) 2>&5
7374 ac_status=$?
7375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7376 test $ac_status = 0; }; then
7377 if test "$lt_cv_prog_gnu_ld" = yes; then
7378 case `/usr/bin/file conftest.$ac_objext` in
7379 *32-bit*)
7380 LD="${LD-ld} -melf32bsmip"
7382 *N32*)
7383 LD="${LD-ld} -melf32bmipn32"
7385 *64-bit*)
7386 LD="${LD-ld} -melf64bmip"
7388 esac
7389 else
7390 case `/usr/bin/file conftest.$ac_objext` in
7391 *32-bit*)
7392 LD="${LD-ld} -32"
7394 *N32*)
7395 LD="${LD-ld} -n32"
7397 *64-bit*)
7398 LD="${LD-ld} -64"
7400 esac
7403 rm -rf conftest*
7406 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7407 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7408 # Find out which ABI we are using.
7409 echo 'int i;' > conftest.$ac_ext
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 case `/usr/bin/file conftest.o` in
7416 *32-bit*)
7417 case $host in
7418 x86_64-*kfreebsd*-gnu)
7419 LD="${LD-ld} -m elf_i386_fbsd"
7421 x86_64-*linux*)
7422 case `/usr/bin/file conftest.o` in
7423 *x86-64*)
7424 LD="${LD-ld} -m elf32_x86_64"
7427 LD="${LD-ld} -m elf_i386"
7429 esac
7431 powerpc64le-*linux*)
7432 LD="${LD-ld} -m elf32lppclinux"
7434 powerpc64-*linux*)
7435 LD="${LD-ld} -m elf32ppclinux"
7437 s390x-*linux*)
7438 LD="${LD-ld} -m elf_s390"
7440 sparc64-*linux*)
7441 LD="${LD-ld} -m elf32_sparc"
7443 esac
7445 *64-bit*)
7446 case $host in
7447 x86_64-*kfreebsd*-gnu)
7448 LD="${LD-ld} -m elf_x86_64_fbsd"
7450 x86_64-*linux*)
7451 LD="${LD-ld} -m elf_x86_64"
7453 powerpcle-*linux*)
7454 LD="${LD-ld} -m elf64lppc"
7456 powerpc-*linux*)
7457 LD="${LD-ld} -m elf64ppc"
7459 s390*-*linux*|s390*-*tpf*)
7460 LD="${LD-ld} -m elf64_s390"
7462 sparc*-*linux*)
7463 LD="${LD-ld} -m elf64_sparc"
7465 esac
7467 esac
7469 rm -rf conftest*
7472 *-*-sco3.2v5*)
7473 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7474 SAVE_CFLAGS="$CFLAGS"
7475 CFLAGS="$CFLAGS -belf"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7477 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7478 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7491 main ()
7495 return 0;
7497 _ACEOF
7498 if ac_fn_c_try_link "$LINENO"; then :
7499 lt_cv_cc_needs_belf=yes
7500 else
7501 lt_cv_cc_needs_belf=no
7503 rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505 ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7513 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7514 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7516 CFLAGS="$SAVE_CFLAGS"
7519 sparc*-*solaris*)
7520 # Find out which ABI we are using.
7521 echo 'int i;' > conftest.$ac_ext
7522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7523 (eval $ac_compile) 2>&5
7524 ac_status=$?
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; }; then
7527 case `/usr/bin/file conftest.o` in
7528 *64-bit*)
7529 case $lt_cv_prog_gnu_ld in
7530 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7532 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7533 LD="${LD-ld} -64"
7536 esac
7538 esac
7540 rm -rf conftest*
7542 esac
7544 need_locks="$enable_libtool_lock"
7547 case $host_os in
7548 rhapsody* | darwin*)
7549 if test -n "$ac_tool_prefix"; then
7550 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$DSYMUTIL"; then
7558 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7577 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7578 if test -n "$DSYMUTIL"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7580 $as_echo "$DSYMUTIL" >&6; }
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7588 if test -z "$ac_cv_prog_DSYMUTIL"; then
7589 ac_ct_DSYMUTIL=$DSYMUTIL
7590 # Extract the first word of "dsymutil", so it can be a program name with args.
7591 set dummy dsymutil; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 if test -n "$ac_ct_DSYMUTIL"; then
7598 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7613 IFS=$as_save_IFS
7617 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7618 if test -n "$ac_ct_DSYMUTIL"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7620 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7626 if test "x$ac_ct_DSYMUTIL" = x; then
7627 DSYMUTIL=":"
7628 else
7629 case $cross_compiling:$ac_tool_warned in
7630 yes:)
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7634 esac
7635 DSYMUTIL=$ac_ct_DSYMUTIL
7637 else
7638 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 if test -n "$NMEDIT"; then
7650 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7663 done
7664 done
7665 IFS=$as_save_IFS
7669 NMEDIT=$ac_cv_prog_NMEDIT
7670 if test -n "$NMEDIT"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7672 $as_echo "$NMEDIT" >&6; }
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7680 if test -z "$ac_cv_prog_NMEDIT"; then
7681 ac_ct_NMEDIT=$NMEDIT
7682 # Extract the first word of "nmedit", so it can be a program name with args.
7683 set dummy nmedit; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 if test -n "$ac_ct_NMEDIT"; then
7690 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7691 else
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 break 2
7703 done
7704 done
7705 IFS=$as_save_IFS
7709 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7710 if test -n "$ac_ct_NMEDIT"; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7712 $as_echo "$ac_ct_NMEDIT" >&6; }
7713 else
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7718 if test "x$ac_ct_NMEDIT" = x; then
7719 NMEDIT=":"
7720 else
7721 case $cross_compiling:$ac_tool_warned in
7722 yes:)
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7725 ac_tool_warned=yes ;;
7726 esac
7727 NMEDIT=$ac_ct_NMEDIT
7729 else
7730 NMEDIT="$ac_cv_prog_NMEDIT"
7733 if test -n "$ac_tool_prefix"; then
7734 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7735 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if test "${ac_cv_prog_LIPO+set}" = set; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 if test -n "$LIPO"; then
7742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7751 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7755 done
7756 done
7757 IFS=$as_save_IFS
7761 LIPO=$ac_cv_prog_LIPO
7762 if test -n "$LIPO"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7764 $as_echo "$LIPO" >&6; }
7765 else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7772 if test -z "$ac_cv_prog_LIPO"; then
7773 ac_ct_LIPO=$LIPO
7774 # Extract the first word of "lipo", so it can be a program name with args.
7775 set dummy lipo; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 if test -n "$ac_ct_LIPO"; then
7782 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_prog_ac_ct_LIPO="lipo"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7795 done
7796 done
7797 IFS=$as_save_IFS
7801 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7802 if test -n "$ac_ct_LIPO"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7804 $as_echo "$ac_ct_LIPO" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7810 if test "x$ac_ct_LIPO" = x; then
7811 LIPO=":"
7812 else
7813 case $cross_compiling:$ac_tool_warned in
7814 yes:)
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7817 ac_tool_warned=yes ;;
7818 esac
7819 LIPO=$ac_ct_LIPO
7821 else
7822 LIPO="$ac_cv_prog_LIPO"
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}otool; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 if test -n "$OTOOL"; then
7834 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7847 done
7848 done
7849 IFS=$as_save_IFS
7853 OTOOL=$ac_cv_prog_OTOOL
7854 if test -n "$OTOOL"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7856 $as_echo "$OTOOL" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7864 if test -z "$ac_cv_prog_OTOOL"; then
7865 ac_ct_OTOOL=$OTOOL
7866 # Extract the first word of "otool", so it can be a program name with args.
7867 set dummy otool; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 if test -n "$ac_ct_OTOOL"; then
7874 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7875 else
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_ac_ct_OTOOL="otool"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7887 done
7888 done
7889 IFS=$as_save_IFS
7893 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7894 if test -n "$ac_ct_OTOOL"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7896 $as_echo "$ac_ct_OTOOL" >&6; }
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7902 if test "x$ac_ct_OTOOL" = x; then
7903 OTOOL=":"
7904 else
7905 case $cross_compiling:$ac_tool_warned in
7906 yes:)
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909 ac_tool_warned=yes ;;
7910 esac
7911 OTOOL=$ac_ct_OTOOL
7913 else
7914 OTOOL="$ac_cv_prog_OTOOL"
7917 if test -n "$ac_tool_prefix"; then
7918 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7919 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$OTOOL64"; then
7926 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7945 OTOOL64=$ac_cv_prog_OTOOL64
7946 if test -n "$OTOOL64"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7948 $as_echo "$OTOOL64" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7956 if test -z "$ac_cv_prog_OTOOL64"; then
7957 ac_ct_OTOOL64=$OTOOL64
7958 # Extract the first word of "otool64", so it can be a program name with args.
7959 set dummy otool64; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$ac_ct_OTOOL64"; then
7966 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_ac_ct_OTOOL64="otool64"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7985 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7986 if test -n "$ac_ct_OTOOL64"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7988 $as_echo "$ac_ct_OTOOL64" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7994 if test "x$ac_ct_OTOOL64" = x; then
7995 OTOOL64=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003 OTOOL64=$ac_ct_OTOOL64
8005 else
8006 OTOOL64="$ac_cv_prog_OTOOL64"
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8036 $as_echo_n "checking for -single_module linker flag... " >&6; }
8037 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 lt_cv_apple_cc_single_mod=no
8041 if test -z "${LT_MULTI_MODULE}"; then
8042 # By default we will add the -single_module flag. You can override
8043 # by either setting the environment variable LT_MULTI_MODULE
8044 # non-empty at configure time, or by adding -multi_module to the
8045 # link flags.
8046 rm -rf libconftest.dylib*
8047 echo "int foo(void){return 1;}" > conftest.c
8048 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8049 -dynamiclib -Wl,-single_module conftest.c" >&5
8050 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8051 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8052 _lt_result=$?
8053 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8054 lt_cv_apple_cc_single_mod=yes
8055 else
8056 cat conftest.err >&5
8058 rm -rf libconftest.dylib*
8059 rm -f conftest.*
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8063 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8065 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8066 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 lt_cv_ld_exported_symbols_list=no
8070 save_LDFLAGS=$LDFLAGS
8071 echo "_main" > conftest.sym
8072 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8077 main ()
8081 return 0;
8083 _ACEOF
8084 if ac_fn_c_try_link "$LINENO"; then :
8085 lt_cv_ld_exported_symbols_list=yes
8086 else
8087 lt_cv_ld_exported_symbols_list=no
8089 rm -f core conftest.err conftest.$ac_objext \
8090 conftest$ac_exeext conftest.$ac_ext
8091 LDFLAGS="$save_LDFLAGS"
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8095 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8097 $as_echo_n "checking for -force_load linker flag... " >&6; }
8098 if test "${lt_cv_ld_force_load+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 lt_cv_ld_force_load=no
8102 cat > conftest.c << _LT_EOF
8103 int forced_loaded() { return 2;}
8104 _LT_EOF
8105 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8106 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8107 echo "$AR cru libconftest.a conftest.o" >&5
8108 $AR cru libconftest.a conftest.o 2>&5
8109 cat > conftest.c << _LT_EOF
8110 int main() { return 0;}
8111 _LT_EOF
8112 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8113 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8114 _lt_result=$?
8115 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8116 lt_cv_ld_force_load=yes
8117 else
8118 cat conftest.err >&5
8120 rm -f conftest.err libconftest.a conftest conftest.c
8121 rm -rf conftest.dSYM
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8125 $as_echo "$lt_cv_ld_force_load" >&6; }
8126 case $host_os in
8127 rhapsody* | darwin1.[012])
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8129 darwin1.*)
8130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8131 darwin*) # darwin 5.x on
8132 # if running on 10.5 or later, the deployment target defaults
8133 # to the OS version, if on x86, and 10.4, the deployment
8134 # target defaults to 10.4. Don't you love it?
8135 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8136 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8137 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8138 10.[012][,.]*)
8139 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8140 10.*)
8141 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8142 esac
8144 esac
8145 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8146 _lt_dar_single_mod='$single_module'
8148 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8149 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8150 else
8151 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8153 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8154 _lt_dsymutil='~$DSYMUTIL $lib || :'
8155 else
8156 _lt_dsymutil=
8159 esac
8161 for ac_header in dlfcn.h
8162 do :
8163 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8165 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8166 cat >>confdefs.h <<_ACEOF
8167 #define HAVE_DLFCN_H 1
8168 _ACEOF
8172 done
8179 # Set options
8184 enable_win32_dll=no
8187 # Check whether --enable-shared was given.
8188 if test "${enable_shared+set}" = set; then :
8189 enableval=$enable_shared; p=${PACKAGE-default}
8190 case $enableval in
8191 yes) enable_shared=yes ;;
8192 no) enable_shared=no ;;
8194 enable_shared=no
8195 # Look at the argument we got. We use all the common list separators.
8196 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8197 for pkg in $enableval; do
8198 IFS="$lt_save_ifs"
8199 if test "X$pkg" = "X$p"; then
8200 enable_shared=yes
8202 done
8203 IFS="$lt_save_ifs"
8205 esac
8206 else
8207 enable_shared=yes
8218 # Check whether --enable-static was given.
8219 if test "${enable_static+set}" = set; then :
8220 enableval=$enable_static; p=${PACKAGE-default}
8221 case $enableval in
8222 yes) enable_static=yes ;;
8223 no) enable_static=no ;;
8225 enable_static=no
8226 # Look at the argument we got. We use all the common list separators.
8227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8228 for pkg in $enableval; do
8229 IFS="$lt_save_ifs"
8230 if test "X$pkg" = "X$p"; then
8231 enable_static=yes
8233 done
8234 IFS="$lt_save_ifs"
8236 esac
8237 else
8238 enable_static=yes
8250 # Check whether --with-pic was given.
8251 if test "${with_pic+set}" = set; then :
8252 withval=$with_pic; pic_mode="$withval"
8253 else
8254 pic_mode=default
8258 test -z "$pic_mode" && pic_mode=default
8266 # Check whether --enable-fast-install was given.
8267 if test "${enable_fast_install+set}" = set; then :
8268 enableval=$enable_fast_install; p=${PACKAGE-default}
8269 case $enableval in
8270 yes) enable_fast_install=yes ;;
8271 no) enable_fast_install=no ;;
8273 enable_fast_install=no
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for pkg in $enableval; do
8277 IFS="$lt_save_ifs"
8278 if test "X$pkg" = "X$p"; then
8279 enable_fast_install=yes
8281 done
8282 IFS="$lt_save_ifs"
8284 esac
8285 else
8286 enable_fast_install=yes
8299 # This can be used to rebuild libtool when needed
8300 LIBTOOL_DEPS="$ltmain"
8302 # Always use our own libtool.
8303 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8330 test -z "$LN_S" && LN_S="ln -s"
8345 if test -n "${ZSH_VERSION+set}" ; then
8346 setopt NO_GLOB_SUBST
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8350 $as_echo_n "checking for objdir... " >&6; }
8351 if test "${lt_cv_objdir+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 rm -f .libs 2>/dev/null
8355 mkdir .libs 2>/dev/null
8356 if test -d .libs; then
8357 lt_cv_objdir=.libs
8358 else
8359 # MS-DOS does not allow filenames that begin with a dot.
8360 lt_cv_objdir=_libs
8362 rmdir .libs 2>/dev/null
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8365 $as_echo "$lt_cv_objdir" >&6; }
8366 objdir=$lt_cv_objdir
8372 cat >>confdefs.h <<_ACEOF
8373 #define LT_OBJDIR "$lt_cv_objdir/"
8374 _ACEOF
8379 case $host_os in
8380 aix3*)
8381 # AIX sometimes has problems with the GCC collect2 program. For some
8382 # reason, if we set the COLLECT_NAMES environment variable, the problems
8383 # vanish in a puff of smoke.
8384 if test "X${COLLECT_NAMES+set}" != Xset; then
8385 COLLECT_NAMES=
8386 export COLLECT_NAMES
8389 esac
8391 # Global variables:
8392 ofile=libtool
8393 can_build_shared=yes
8395 # All known linkers require a `.a' archive for static linking (except MSVC,
8396 # which needs '.lib').
8397 libext=a
8399 with_gnu_ld="$lt_cv_prog_gnu_ld"
8401 old_CC="$CC"
8402 old_CFLAGS="$CFLAGS"
8404 # Set sane defaults for various variables
8405 test -z "$CC" && CC=cc
8406 test -z "$LTCC" && LTCC=$CC
8407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8408 test -z "$LD" && LD=ld
8409 test -z "$ac_objext" && ac_objext=o
8411 for cc_temp in $compiler""; do
8412 case $cc_temp in
8413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8415 \-*) ;;
8416 *) break;;
8417 esac
8418 done
8419 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8422 # Only perform the check for file, if the check method requires it
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 case $deplibs_check_method in
8425 file_magic*)
8426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8429 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 case $MAGIC_CMD in
8433 [\\/*] | ?:[\\/]*)
8434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8437 lt_save_MAGIC_CMD="$MAGIC_CMD"
8438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440 for ac_dir in $ac_dummy; do
8441 IFS="$lt_save_ifs"
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f $ac_dir/${ac_tool_prefix}file; then
8444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8445 if test -n "$file_magic_test_file"; then
8446 case $deplibs_check_method in
8447 "file_magic "*)
8448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451 $EGREP "$file_magic_regex" > /dev/null; then
8453 else
8454 cat <<_LT_EOF 1>&2
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such. This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem. Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8465 _LT_EOF
8466 fi ;;
8467 esac
8469 break
8471 done
8472 IFS="$lt_save_ifs"
8473 MAGIC_CMD="$lt_save_MAGIC_CMD"
8475 esac
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8491 if test -z "$lt_cv_path_MAGIC_CMD"; then
8492 if test -n "$ac_tool_prefix"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8494 $as_echo_n "checking for file... " >&6; }
8495 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 case $MAGIC_CMD in
8499 [\\/*] | ?:[\\/]*)
8500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8503 lt_save_MAGIC_CMD="$MAGIC_CMD"
8504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506 for ac_dir in $ac_dummy; do
8507 IFS="$lt_save_ifs"
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f $ac_dir/file; then
8510 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8511 if test -n "$file_magic_test_file"; then
8512 case $deplibs_check_method in
8513 "file_magic "*)
8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517 $EGREP "$file_magic_regex" > /dev/null; then
8519 else
8520 cat <<_LT_EOF 1>&2
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such. This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem. Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8531 _LT_EOF
8532 fi ;;
8533 esac
8535 break
8537 done
8538 IFS="$lt_save_ifs"
8539 MAGIC_CMD="$lt_save_MAGIC_CMD"
8541 esac
8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8545 if test -n "$MAGIC_CMD"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8554 else
8555 MAGIC_CMD=:
8561 esac
8563 # Use C for the default configuration in the libtool script
8565 lt_save_CC="$CC"
8566 ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8573 # Source file extension for C test sources.
8574 ac_ext=c
8576 # Object file extension for compiled C test sources.
8577 objext=o
8578 objext=$objext
8580 # Code to be used in simple compile tests
8581 lt_simple_compile_test_code="int some_variable = 0;"
8583 # Code to be used in simple link tests
8584 lt_simple_link_test_code='int main(){return(0);}'
8592 # If no C compiler was specified, use CC.
8593 LTCC=${LTCC-"$CC"}
8595 # If no C compiler flags were specified, use CFLAGS.
8596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8598 # Allow CC to be a program name with arguments.
8599 compiler=$CC
8601 # Save the default compiler, since it gets overwritten when the other
8602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8603 compiler_DEFAULT=$CC
8605 # save warnings/boilerplate of simple test code
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_compiler_boilerplate=`cat conftest.err`
8610 $RM conftest*
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8615 _lt_linker_boilerplate=`cat conftest.err`
8616 $RM -r conftest*
8619 ## CAVEAT EMPTOR:
8620 ## There is no encapsulation within the following macros, do not change
8621 ## the running order or otherwise move them around unless you know exactly
8622 ## what you are doing...
8623 if test -n "$compiler"; then
8625 lt_prog_compiler_no_builtin_flag=
8627 if test "$GCC" = yes; then
8628 case $cc_basename in
8629 nvcc*)
8630 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8632 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8633 esac
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 lt_cv_prog_compiler_rtti_exceptions=no
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643 lt_compiler_flag="-fno-rtti -fno-exceptions"
8644 # Insert the option either (1) after the last *FLAGS variable, or
8645 # (2) before a word containing "conftest.", or (3) at the end.
8646 # Note that $ac_compile itself does not contain backslashes and begins
8647 # with a dollar sign (not a hyphen), so the echo should work correctly.
8648 # The option is referenced via a variable to avoid confusing sed.
8649 lt_compile=`echo "$ac_compile" | $SED \
8650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652 -e 's:$: $lt_compiler_flag:'`
8653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654 (eval "$lt_compile" 2>conftest.err)
8655 ac_status=$?
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 if (exit $ac_status) && test -s "$ac_outfile"; then
8659 # The compiler can only warn and ignore the option if not recognized
8660 # So say no if there are warnings other than the usual output.
8661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664 lt_cv_prog_compiler_rtti_exceptions=yes
8667 $RM conftest*
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8675 else
8686 lt_prog_compiler_wl=
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_static=
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8693 if test "$GCC" = yes; then
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_static='-static'
8697 case $host_os in
8698 aix*)
8699 # All AIX code is PIC.
8700 if test "$host_cpu" = ia64; then
8701 # AIX 5 now supports IA64 processor
8702 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_pic='-fPIC'
8707 amigaos*)
8708 case $host_cpu in
8709 powerpc)
8710 # see comment about AmigaOS4 .so support
8711 lt_prog_compiler_pic='-fPIC'
8713 m68k)
8714 # FIXME: we need at least 68020 code to build shared libraries, but
8715 # adding the `-m68020' flag to GCC prevents building anything better,
8716 # like `-m68040'.
8717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8719 esac
8722 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8723 # PIC is the default for these OSes.
8726 mingw* | cygwin* | pw32* | os2* | cegcc*)
8727 # This hack is so that the source file can tell whether it is being
8728 # built for inclusion in a dll (and should export symbols for example).
8729 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8730 # (--disable-auto-import) libraries
8731 lt_prog_compiler_pic='-DDLL_EXPORT'
8734 darwin* | rhapsody*)
8735 # PIC is the default on this platform
8736 # Common symbols not allowed in MH_DYLIB files
8737 lt_prog_compiler_pic='-fno-common'
8740 haiku*)
8741 # PIC is the default for Haiku.
8742 # The "-static" flag exists, but is broken.
8743 lt_prog_compiler_static=
8746 hpux*)
8747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8749 # sets the default TLS model and affects inlining.
8750 case $host_cpu in
8751 hppa*64*)
8752 # +Z the default
8755 lt_prog_compiler_pic='-fPIC'
8757 esac
8760 interix[3-9]*)
8761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8762 # Instead, we relocate shared libraries at runtime.
8765 msdosdjgpp*)
8766 # Just because we use GCC doesn't mean we suddenly get shared libraries
8767 # on systems that don't support them.
8768 lt_prog_compiler_can_build_shared=no
8769 enable_shared=no
8772 *nto* | *qnx*)
8773 # QNX uses GNU C++, but need to define -shared option too, otherwise
8774 # it will coredump.
8775 lt_prog_compiler_pic='-fPIC -shared'
8778 sysv4*MP*)
8779 if test -d /usr/nec; then
8780 lt_prog_compiler_pic=-Kconform_pic
8785 lt_prog_compiler_pic='-fPIC'
8787 esac
8789 case $cc_basename in
8790 nvcc*) # Cuda Compiler Driver 2.2
8791 lt_prog_compiler_wl='-Xlinker '
8792 lt_prog_compiler_pic='-Xcompiler -fPIC'
8794 esac
8795 else
8796 # PORTME Check for flag to pass linker flags through the system compiler.
8797 case $host_os in
8798 aix*)
8799 lt_prog_compiler_wl='-Wl,'
8800 if test "$host_cpu" = ia64; then
8801 # AIX 5 now supports IA64 processor
8802 lt_prog_compiler_static='-Bstatic'
8803 else
8804 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8808 mingw* | cygwin* | pw32* | os2* | cegcc*)
8809 # This hack is so that the source file can tell whether it is being
8810 # built for inclusion in a dll (and should export symbols for example).
8811 lt_prog_compiler_pic='-DDLL_EXPORT'
8814 hpux9* | hpux10* | hpux11*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8817 # not for PA HP-UX.
8818 case $host_cpu in
8819 hppa*64*|ia64*)
8820 # +Z the default
8823 lt_prog_compiler_pic='+Z'
8825 esac
8826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8827 lt_prog_compiler_static='${wl}-a ${wl}archive'
8830 irix5* | irix6* | nonstopux*)
8831 lt_prog_compiler_wl='-Wl,'
8832 # PIC (with -KPIC) is the default.
8833 lt_prog_compiler_static='-non_shared'
8836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8837 case $cc_basename in
8838 # old Intel for x86_64 which still supported -KPIC.
8839 ecc*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='-KPIC'
8842 lt_prog_compiler_static='-static'
8844 # icc used to be incompatible with GCC.
8845 # ICC 10 doesn't accept -KPIC any more.
8846 icc* | ifort*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fPIC'
8849 lt_prog_compiler_static='-static'
8851 # Lahey Fortran 8.1.
8852 lf95*)
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='--shared'
8855 lt_prog_compiler_static='--static'
8857 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8858 # Portland Group compilers (*not* the Pentium gcc compiler,
8859 # which looks to be a dead project)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-fpic'
8862 lt_prog_compiler_static='-Bstatic'
8864 ccc*)
8865 lt_prog_compiler_wl='-Wl,'
8866 # All Alpha code is PIC.
8867 lt_prog_compiler_static='-non_shared'
8869 xl* | bgxl* | bgf* | mpixl*)
8870 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-qpic'
8873 lt_prog_compiler_static='-qstaticlink'
8876 case `$CC -V 2>&1 | sed 5q` in
8877 *Sun\ F* | *Sun*Fortran*)
8878 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-Bstatic'
8881 lt_prog_compiler_wl=''
8883 *Sun\ C*)
8884 # Sun C 5.9
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 lt_prog_compiler_wl='-Wl,'
8889 esac
8891 esac
8894 newsos6)
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8899 *nto* | *qnx*)
8900 # QNX uses GNU C++, but need to define -shared option too, otherwise
8901 # it will coredump.
8902 lt_prog_compiler_pic='-fPIC -shared'
8905 osf3* | osf4* | osf5*)
8906 lt_prog_compiler_wl='-Wl,'
8907 # All OSF/1 code is PIC.
8908 lt_prog_compiler_static='-non_shared'
8911 rdos*)
8912 lt_prog_compiler_static='-non_shared'
8915 solaris*)
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 case $cc_basename in
8919 f77* | f90* | f95*)
8920 lt_prog_compiler_wl='-Qoption ld ';;
8922 lt_prog_compiler_wl='-Wl,';;
8923 esac
8926 sunos4*)
8927 lt_prog_compiler_wl='-Qoption ld '
8928 lt_prog_compiler_pic='-PIC'
8929 lt_prog_compiler_static='-Bstatic'
8932 sysv4 | sysv4.2uw2* | sysv4.3*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8938 sysv4*MP*)
8939 if test -d /usr/nec ;then
8940 lt_prog_compiler_pic='-Kconform_pic'
8941 lt_prog_compiler_static='-Bstatic'
8945 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8951 unicos*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_can_build_shared=no
8956 uts4*)
8957 lt_prog_compiler_pic='-pic'
8958 lt_prog_compiler_static='-Bstatic'
8962 lt_prog_compiler_can_build_shared=no
8964 esac
8967 case $host_os in
8968 # For platforms which do not support PIC, -DPIC is meaningless:
8969 *djgpp*)
8970 lt_prog_compiler_pic=
8973 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8975 esac
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8977 $as_echo "$lt_prog_compiler_pic" >&6; }
8985 # Check to make sure the PIC flag actually works.
8987 if test -n "$lt_prog_compiler_pic"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8989 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8990 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 lt_cv_prog_compiler_pic_works=no
8994 ac_outfile=conftest.$ac_objext
8995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8997 # Insert the option either (1) after the last *FLAGS variable, or
8998 # (2) before a word containing "conftest.", or (3) at the end.
8999 # Note that $ac_compile itself does not contain backslashes and begins
9000 # with a dollar sign (not a hyphen), so the echo should work correctly.
9001 # The option is referenced via a variable to avoid confusing sed.
9002 lt_compile=`echo "$ac_compile" | $SED \
9003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9005 -e 's:$: $lt_compiler_flag:'`
9006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9007 (eval "$lt_compile" 2>conftest.err)
9008 ac_status=$?
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 if (exit $ac_status) && test -s "$ac_outfile"; then
9012 # The compiler can only warn and ignore the option if not recognized
9013 # So say no if there are warnings other than the usual output.
9014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9017 lt_cv_prog_compiler_pic_works=yes
9020 $RM conftest*
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9024 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9026 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9027 case $lt_prog_compiler_pic in
9028 "" | " "*) ;;
9029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9030 esac
9031 else
9032 lt_prog_compiler_pic=
9033 lt_prog_compiler_can_build_shared=no
9044 # Check to make sure the static flag actually works.
9046 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9048 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9049 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 lt_cv_prog_compiler_static_works=no
9053 save_LDFLAGS="$LDFLAGS"
9054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9057 # The linker can only warn and ignore the option if not recognized
9058 # So say no if there are warnings
9059 if test -s conftest.err; then
9060 # Append any errors to the config.log.
9061 cat conftest.err 1>&5
9062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064 if diff conftest.exp conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_static_works=yes
9067 else
9068 lt_cv_prog_compiler_static_works=yes
9071 $RM -r conftest*
9072 LDFLAGS="$save_LDFLAGS"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9076 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9078 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9080 else
9081 lt_prog_compiler_static=
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9092 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 lt_cv_prog_compiler_c_o=no
9096 $RM -r conftest 2>/dev/null
9097 mkdir conftest
9098 cd conftest
9099 mkdir out
9100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102 lt_compiler_flag="-o out/conftest2.$ac_objext"
9103 # Insert the option either (1) after the last *FLAGS variable, or
9104 # (2) before a word containing "conftest.", or (3) at the end.
9105 # Note that $ac_compile itself does not contain backslashes and begins
9106 # with a dollar sign (not a hyphen), so the echo should work correctly.
9107 lt_compile=`echo "$ac_compile" | $SED \
9108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9110 -e 's:$: $lt_compiler_flag:'`
9111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9112 (eval "$lt_compile" 2>out/conftest.err)
9113 ac_status=$?
9114 cat out/conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9117 then
9118 # The compiler can only warn and ignore the option if not recognized
9119 # So say no if there are warnings
9120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9123 lt_cv_prog_compiler_c_o=yes
9126 chmod u+w . 2>&5
9127 $RM conftest*
9128 # SGI C++ compiler will create directory out/ii_files/ for
9129 # template instantiation
9130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9131 $RM out/* && rmdir out
9132 cd ..
9133 $RM -r conftest
9134 $RM conftest*
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9138 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9147 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 lt_cv_prog_compiler_c_o=no
9151 $RM -r conftest 2>/dev/null
9152 mkdir conftest
9153 cd conftest
9154 mkdir out
9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9157 lt_compiler_flag="-o out/conftest2.$ac_objext"
9158 # Insert the option either (1) after the last *FLAGS variable, or
9159 # (2) before a word containing "conftest.", or (3) at the end.
9160 # Note that $ac_compile itself does not contain backslashes and begins
9161 # with a dollar sign (not a hyphen), so the echo should work correctly.
9162 lt_compile=`echo "$ac_compile" | $SED \
9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9165 -e 's:$: $lt_compiler_flag:'`
9166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9167 (eval "$lt_compile" 2>out/conftest.err)
9168 ac_status=$?
9169 cat out/conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9172 then
9173 # The compiler can only warn and ignore the option if not recognized
9174 # So say no if there are warnings
9175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9178 lt_cv_prog_compiler_c_o=yes
9181 chmod u+w . 2>&5
9182 $RM conftest*
9183 # SGI C++ compiler will create directory out/ii_files/ for
9184 # template instantiation
9185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9186 $RM out/* && rmdir out
9187 cd ..
9188 $RM -r conftest
9189 $RM conftest*
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9198 hard_links="nottested"
9199 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9200 # do not overwrite the value of need_locks provided by the user
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9202 $as_echo_n "checking if we can lock with hard links... " >&6; }
9203 hard_links=yes
9204 $RM conftest*
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 touch conftest.a
9207 ln conftest.a conftest.b 2>&5 || hard_links=no
9208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9210 $as_echo "$hard_links" >&6; }
9211 if test "$hard_links" = no; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9213 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9214 need_locks=warn
9216 else
9217 need_locks=no
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9228 runpath_var=
9229 allow_undefined_flag=
9230 always_export_symbols=no
9231 archive_cmds=
9232 archive_expsym_cmds=
9233 compiler_needs_object=no
9234 enable_shared_with_static_runtimes=no
9235 export_dynamic_flag_spec=
9236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9237 hardcode_automatic=no
9238 hardcode_direct=no
9239 hardcode_direct_absolute=no
9240 hardcode_libdir_flag_spec=
9241 hardcode_libdir_flag_spec_ld=
9242 hardcode_libdir_separator=
9243 hardcode_minus_L=no
9244 hardcode_shlibpath_var=unsupported
9245 inherit_rpath=no
9246 link_all_deplibs=unknown
9247 module_cmds=
9248 module_expsym_cmds=
9249 old_archive_from_new_cmds=
9250 old_archive_from_expsyms_cmds=
9251 thread_safe_flag_spec=
9252 whole_archive_flag_spec=
9253 # include_expsyms should be a list of space-separated symbols to be *always*
9254 # included in the symbol list
9255 include_expsyms=
9256 # exclude_expsyms can be an extended regexp of symbols to exclude
9257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9259 # as well as any symbol that contains `d'.
9260 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9262 # platforms (ab)use it in PIC code, but their linkers get confused if
9263 # the symbol is explicitly referenced. Since portable code cannot
9264 # rely on this symbol name, it's probably fine to never include it in
9265 # preloaded symbol tables.
9266 # Exclude shared library initialization/finalization symbols.
9267 extract_expsyms_cmds=
9269 case $host_os in
9270 cygwin* | mingw* | pw32* | cegcc*)
9271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 if test "$GCC" != yes; then
9275 with_gnu_ld=no
9278 interix*)
9279 # we just hope/assume this is gcc and not c89 (= MSVC++)
9280 with_gnu_ld=yes
9282 openbsd*)
9283 with_gnu_ld=no
9285 esac
9287 ld_shlibs=yes
9289 # On some targets, GNU ld is compatible enough with the native linker
9290 # that we're better off using the native interface for both.
9291 lt_use_gnu_ld_interface=no
9292 if test "$with_gnu_ld" = yes; then
9293 case $host_os in
9294 aix*)
9295 # The AIX port of GNU ld has always aspired to compatibility
9296 # with the native linker. However, as the warning in the GNU ld
9297 # block says, versions before 2.19.5* couldn't really create working
9298 # shared libraries, regardless of the interface used.
9299 case `$LD -v 2>&1` in
9300 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9301 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9302 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9304 lt_use_gnu_ld_interface=yes
9306 esac
9309 lt_use_gnu_ld_interface=yes
9311 esac
9314 if test "$lt_use_gnu_ld_interface" = yes; then
9315 # If archive_cmds runs LD, not CC, wlarc should be empty
9316 wlarc='${wl}'
9318 # Set some defaults for GNU ld with shared library support. These
9319 # are reset later if shared libraries are not supported. Putting them
9320 # here allows them to be overridden if necessary.
9321 runpath_var=LD_RUN_PATH
9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323 export_dynamic_flag_spec='${wl}--export-dynamic'
9324 # ancient GNU ld didn't support --whole-archive et. al.
9325 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9326 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9327 else
9328 whole_archive_flag_spec=
9330 supports_anon_versioning=no
9331 case `$LD -v 2>&1` in
9332 *GNU\ gold*) supports_anon_versioning=yes ;;
9333 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9334 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9335 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9336 *\ 2.11.*) ;; # other 2.11 versions
9337 *) supports_anon_versioning=yes ;;
9338 esac
9340 # See if GNU ld supports shared libraries.
9341 case $host_os in
9342 aix[3-9]*)
9343 # On AIX/PPC, the GNU linker is very broken
9344 if test "$host_cpu" != ia64; then
9345 ld_shlibs=no
9346 cat <<_LT_EOF 1>&2
9348 *** Warning: the GNU linker, at least up to release 2.19, is reported
9349 *** to be unable to reliably create shared libraries on AIX.
9350 *** Therefore, libtool is disabling shared libraries support. If you
9351 *** really care for shared libraries, you may want to install binutils
9352 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9353 *** You will then need to restart the configuration process.
9355 _LT_EOF
9359 amigaos*)
9360 case $host_cpu in
9361 powerpc)
9362 # see comment about AmigaOS4 .so support
9363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds=''
9366 m68k)
9367 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)'
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_minus_L=yes
9371 esac
9374 beos*)
9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 allow_undefined_flag=unsupported
9377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9378 # support --undefined. This deserves some investigation. FIXME
9379 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 else
9381 ld_shlibs=no
9385 cygwin* | mingw* | pw32* | cegcc*)
9386 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9387 # as there is no search path for DLLs.
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 export_dynamic_flag_spec='${wl}--export-all-symbols'
9390 allow_undefined_flag=unsupported
9391 always_export_symbols=no
9392 enable_shared_with_static_runtimes=yes
9393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9395 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397 # If the export-symbols file already is a .def file (1st line
9398 # is EXPORTS), use it as is; otherwise, prepend...
9399 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9400 cp $export_symbols $output_objdir/$soname.def;
9401 else
9402 echo EXPORTS > $output_objdir/$soname.def;
9403 cat $export_symbols >> $output_objdir/$soname.def;
9405 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9406 else
9407 ld_shlibs=no
9411 haiku*)
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413 link_all_deplibs=yes
9416 interix[3-9]*)
9417 hardcode_direct=no
9418 hardcode_shlibpath_var=no
9419 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9420 export_dynamic_flag_spec='${wl}-E'
9421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9422 # Instead, shared libraries are loaded at an image base (0x10000000 by
9423 # default) and relocated if they conflict, which is a slow very memory
9424 # consuming and fragmenting process. To avoid this, we pick a random,
9425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9428 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'
9431 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9432 tmp_diet=no
9433 if test "$host_os" = linux-dietlibc; then
9434 case $cc_basename in
9435 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9436 esac
9438 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9439 && test "$tmp_diet" = no
9440 then
9441 tmp_addflag=' $pic_flag'
9442 tmp_sharedflag='-shared'
9443 case $cc_basename,$host_cpu in
9444 pgcc*) # Portland Group C compiler
9445 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'
9446 tmp_addflag=' $pic_flag'
9448 pgf77* | pgf90* | pgf95* | pgfortran*)
9449 # Portland Group f77 and f90 compilers
9450 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'
9451 tmp_addflag=' $pic_flag -Mnomain' ;;
9452 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9453 tmp_addflag=' -i_dynamic' ;;
9454 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9455 tmp_addflag=' -i_dynamic -nofor_main' ;;
9456 ifc* | ifort*) # Intel Fortran compiler
9457 tmp_addflag=' -nofor_main' ;;
9458 lf95*) # Lahey Fortran 8.1
9459 whole_archive_flag_spec=
9460 tmp_sharedflag='--shared' ;;
9461 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9462 tmp_sharedflag='-qmkshrobj'
9463 tmp_addflag= ;;
9464 nvcc*) # Cuda Compiler Driver 2.2
9465 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'
9466 compiler_needs_object=yes
9468 esac
9469 case `$CC -V 2>&1 | sed 5q` in
9470 *Sun\ C*) # Sun C 5.9
9471 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'
9472 compiler_needs_object=yes
9473 tmp_sharedflag='-G' ;;
9474 *Sun\ F*) # Sun Fortran 8.3
9475 tmp_sharedflag='-G' ;;
9476 esac
9477 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 if test "x$supports_anon_versioning" = xyes; then
9480 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9482 echo "local: *; };" >> $output_objdir/$libname.ver~
9483 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9486 case $cc_basename in
9487 xlf* | bgf* | bgxlf* | mpixlf*)
9488 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9489 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9490 hardcode_libdir_flag_spec=
9491 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9492 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9493 if test "x$supports_anon_versioning" = xyes; then
9494 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9496 echo "local: *; };" >> $output_objdir/$libname.ver~
9497 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9500 esac
9501 else
9502 ld_shlibs=no
9506 netbsd*)
9507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9509 wlarc=
9510 else
9511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9516 solaris*)
9517 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9518 ld_shlibs=no
9519 cat <<_LT_EOF 1>&2
9521 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9522 *** create shared libraries on Solaris systems. Therefore, libtool
9523 *** is disabling shared libraries support. We urge you to upgrade GNU
9524 *** binutils to release 2.9.1 or newer. Another option is to modify
9525 *** your PATH or compiler configuration so that the native linker is
9526 *** used, and then restart.
9528 _LT_EOF
9529 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532 else
9533 ld_shlibs=no
9537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9538 case `$LD -v 2>&1` in
9539 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9540 ld_shlibs=no
9541 cat <<_LT_EOF 1>&2
9543 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9544 *** reliably create shared libraries on SCO systems. Therefore, libtool
9545 *** is disabling shared libraries support. We urge you to upgrade GNU
9546 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9547 *** your PATH or compiler configuration so that the native linker is
9548 *** used, and then restart.
9550 _LT_EOF
9553 # For security reasons, it is highly recommended that you always
9554 # use absolute paths for naming shared libraries, and exclude the
9555 # DT_RUNPATH tag from executables and libraries. But doing so
9556 # requires that you compile everything twice, which is a pain.
9557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561 else
9562 ld_shlibs=no
9565 esac
9568 sunos4*)
9569 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570 wlarc=
9571 hardcode_direct=yes
9572 hardcode_shlibpath_var=no
9576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579 else
9580 ld_shlibs=no
9583 esac
9585 if test "$ld_shlibs" = no; then
9586 runpath_var=
9587 hardcode_libdir_flag_spec=
9588 export_dynamic_flag_spec=
9589 whole_archive_flag_spec=
9591 else
9592 # PORTME fill in a description of your system's linker (not GNU ld)
9593 case $host_os in
9594 aix3*)
9595 allow_undefined_flag=unsupported
9596 always_export_symbols=yes
9597 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'
9598 # Note: this linker hardcodes the directories in LIBPATH if there
9599 # are no directories specified by -L.
9600 hardcode_minus_L=yes
9601 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9602 # Neither direct hardcoding nor static linking is supported with a
9603 # broken collect2.
9604 hardcode_direct=unsupported
9608 aix[4-9]*)
9609 if test "$host_cpu" = ia64; then
9610 # On IA64, the linker does run time linking by default, so we don't
9611 # have to do anything special.
9612 aix_use_runtimelinking=no
9613 exp_sym_flag='-Bexport'
9614 no_entry_flag=""
9615 else
9616 # If we're using GNU nm, then we don't want the "-C" option.
9617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9618 # Also, AIX nm treats weak defined symbols like other global
9619 # defined symbols, whereas GNU nm marks them as "W".
9620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9621 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'
9622 else
9623 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'
9625 aix_use_runtimelinking=no
9627 # Test if we are trying to use run time linking or normal
9628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9629 # need to do runtime linking.
9630 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9631 for ld_flag in $LDFLAGS; do
9632 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9633 aix_use_runtimelinking=yes
9634 break
9636 done
9638 esac
9640 exp_sym_flag='-bexport'
9641 no_entry_flag='-bnoentry'
9644 # When large executables or shared objects are built, AIX ld can
9645 # have problems creating the table of contents. If linking a library
9646 # or program results in "error TOC overflow" add -mminimal-toc to
9647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9650 archive_cmds=''
9651 hardcode_direct=yes
9652 hardcode_direct_absolute=yes
9653 hardcode_libdir_separator=':'
9654 link_all_deplibs=yes
9655 file_list_spec='${wl}-f,'
9657 if test "$GCC" = yes; then
9658 case $host_os in aix4.[012]|aix4.[012].*)
9659 # We only want to do this on AIX 4.2 and lower, the check
9660 # below for broken collect2 doesn't work under 4.3+
9661 collect2name=`${CC} -print-prog-name=collect2`
9662 if test -f "$collect2name" &&
9663 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9664 then
9665 # We have reworked collect2
9667 else
9668 # We have old collect2
9669 hardcode_direct=unsupported
9670 # It fails to find uninstalled libraries when the uninstalled
9671 # path is not listed in the libpath. Setting hardcode_minus_L
9672 # to unsupported forces relinking
9673 hardcode_minus_L=yes
9674 hardcode_libdir_flag_spec='-L$libdir'
9675 hardcode_libdir_separator=
9678 esac
9679 shared_flag='-shared'
9680 if test "$aix_use_runtimelinking" = yes; then
9681 shared_flag="$shared_flag "'${wl}-G'
9683 else
9684 # not using gcc
9685 if test "$host_cpu" = ia64; then
9686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9687 # chokes on -Wl,-G. The following line is correct:
9688 shared_flag='-G'
9689 else
9690 if test "$aix_use_runtimelinking" = yes; then
9691 shared_flag='${wl}-G'
9692 else
9693 shared_flag='${wl}-bM:SRE'
9698 export_dynamic_flag_spec='${wl}-bexpall'
9699 # It seems that -bexpall does not export symbols beginning with
9700 # underscore (_), so it is better to generate a list of symbols to export.
9701 always_export_symbols=yes
9702 if test "$aix_use_runtimelinking" = yes; then
9703 # Warning - without using the other runtime loading flags (-brtl),
9704 # -berok will link without error, but may produce a broken library.
9705 allow_undefined_flag='-berok'
9706 # Determine the default libpath from the value encoded in an
9707 # empty executable.
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9712 main ()
9716 return 0;
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9721 lt_aix_libpath_sed='
9722 /Import File Strings/,/^$/ {
9723 /^0/ {
9724 s/^0 *\(.*\)$/\1/
9728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9729 # Check for a 64-bit object if we didn't find anything.
9730 if test -z "$aix_libpath"; then
9731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9739 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"
9740 else
9741 if test "$host_cpu" = ia64; then
9742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9743 allow_undefined_flag="-z nodefs"
9744 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"
9745 else
9746 # Determine the default libpath from the value encoded in an
9747 # empty executable.
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9752 main ()
9756 return 0;
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"; then :
9761 lt_aix_libpath_sed='
9762 /Import File Strings/,/^$/ {
9763 /^0/ {
9764 s/^0 *\(.*\)$/\1/
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769 # Check for a 64-bit object if we didn't find anything.
9770 if test -z "$aix_libpath"; then
9771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9778 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9779 # Warning - without using the other run time loading flags,
9780 # -berok will link without error, but may produce a broken library.
9781 no_undefined_flag=' ${wl}-bernotok'
9782 allow_undefined_flag=' ${wl}-berok'
9783 if test "$with_gnu_ld" = yes; then
9784 # We only use this code for GNU lds that support --whole-archive.
9785 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9786 else
9787 # Exported symbols can be pulled into shared objects from archives
9788 whole_archive_flag_spec='$convenience'
9790 archive_cmds_need_lc=yes
9791 # This is similar to how AIX traditionally builds its shared libraries.
9792 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'
9797 amigaos*)
9798 case $host_cpu in
9799 powerpc)
9800 # see comment about AmigaOS4 .so support
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds=''
9804 m68k)
9805 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)'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_minus_L=yes
9809 esac
9812 bsdi[45]*)
9813 export_dynamic_flag_spec=-rdynamic
9816 cygwin* | mingw* | pw32* | cegcc*)
9817 # When not using gcc, we currently assume that we are using
9818 # Microsoft Visual C++.
9819 # hardcode_libdir_flag_spec is actually meaningless, as there is
9820 # no search path for DLLs.
9821 hardcode_libdir_flag_spec=' '
9822 allow_undefined_flag=unsupported
9823 # Tell ltmain to make .lib files, not .a files.
9824 libext=lib
9825 # Tell ltmain to make .dll files, not .so files.
9826 shrext_cmds=".dll"
9827 # FIXME: Setting linknames here is a bad hack.
9828 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9829 # The linker will automatically build a .lib file if we build a DLL.
9830 old_archive_from_new_cmds='true'
9831 # FIXME: Should let the user specify the lib program.
9832 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9833 fix_srcfile_path='`cygpath -w "$srcfile"`'
9834 enable_shared_with_static_runtimes=yes
9837 darwin* | rhapsody*)
9840 archive_cmds_need_lc=no
9841 hardcode_direct=no
9842 hardcode_automatic=yes
9843 hardcode_shlibpath_var=unsupported
9844 if test "$lt_cv_ld_force_load" = "yes"; then
9845 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\"`'
9846 else
9847 whole_archive_flag_spec=''
9849 link_all_deplibs=yes
9850 allow_undefined_flag="$_lt_dar_allow_undefined"
9851 case $cc_basename in
9852 ifort*) _lt_dar_can_shared=yes ;;
9853 *) _lt_dar_can_shared=$GCC ;;
9854 esac
9855 if test "$_lt_dar_can_shared" = "yes"; then
9856 output_verbose_link_cmd=func_echo_all
9857 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9858 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9859 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}"
9860 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}"
9862 else
9863 ld_shlibs=no
9868 dgux*)
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_shlibpath_var=no
9874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9875 # support. Future versions do this automatically, but an explicit c++rt0.o
9876 # does not break anything, and helps significantly (at the cost of a little
9877 # extra space).
9878 freebsd2.2*)
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9886 freebsd2.*)
9887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_direct=yes
9889 hardcode_minus_L=yes
9890 hardcode_shlibpath_var=no
9893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9894 freebsd* | dragonfly*)
9895 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9901 hpux9*)
9902 if test "$GCC" = yes; then
9903 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'
9904 else
9905 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'
9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_separator=:
9909 hardcode_direct=yes
9911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 export_dynamic_flag_spec='${wl}-E'
9917 hpux10*)
9918 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9919 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920 else
9921 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9923 if test "$with_gnu_ld" = no; then
9924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_flag_spec_ld='+b $libdir'
9926 hardcode_libdir_separator=:
9927 hardcode_direct=yes
9928 hardcode_direct_absolute=yes
9929 export_dynamic_flag_spec='${wl}-E'
9930 # hardcode_minus_L: Not really in the search PATH,
9931 # but as the default location of the library.
9932 hardcode_minus_L=yes
9936 hpux11*)
9937 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9938 case $host_cpu in
9939 hppa*64*)
9940 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 ia64*)
9943 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9948 esac
9949 else
9950 case $host_cpu in
9951 hppa*64*)
9952 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954 ia64*)
9955 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9959 # Older versions of the 11.00 compiler do not understand -b yet
9960 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9962 $as_echo_n "checking if $CC understands -b... " >&6; }
9963 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 lt_cv_prog_compiler__b=no
9967 save_LDFLAGS="$LDFLAGS"
9968 LDFLAGS="$LDFLAGS -b"
9969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9971 # The linker can only warn and ignore the option if not recognized
9972 # So say no if there are warnings
9973 if test -s conftest.err; then
9974 # Append any errors to the config.log.
9975 cat conftest.err 1>&5
9976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9978 if diff conftest.exp conftest.er2 >/dev/null; then
9979 lt_cv_prog_compiler__b=yes
9981 else
9982 lt_cv_prog_compiler__b=yes
9985 $RM -r conftest*
9986 LDFLAGS="$save_LDFLAGS"
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9990 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9992 if test x"$lt_cv_prog_compiler__b" = xyes; then
9993 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9999 esac
10001 if test "$with_gnu_ld" = no; then
10002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10003 hardcode_libdir_separator=:
10005 case $host_cpu in
10006 hppa*64*|ia64*)
10007 hardcode_direct=no
10008 hardcode_shlibpath_var=no
10011 hardcode_direct=yes
10012 hardcode_direct_absolute=yes
10013 export_dynamic_flag_spec='${wl}-E'
10015 # hardcode_minus_L: Not really in the search PATH,
10016 # but as the default location of the library.
10017 hardcode_minus_L=yes
10019 esac
10023 irix5* | irix6* | nonstopux*)
10024 if test "$GCC" = yes; then
10025 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'
10026 # Try to use the -exported_symbol ld option, if it does not
10027 # work, assume that -exports_file does not work either and
10028 # implicitly export all symbols.
10029 save_LDFLAGS="$LDFLAGS"
10030 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int foo(void) {}
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 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'
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LDFLAGS="$save_LDFLAGS"
10042 else
10043 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'
10044 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'
10046 archive_cmds_need_lc='no'
10047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10048 hardcode_libdir_separator=:
10049 inherit_rpath=yes
10050 link_all_deplibs=yes
10053 netbsd*)
10054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10056 else
10057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10059 hardcode_libdir_flag_spec='-R$libdir'
10060 hardcode_direct=yes
10061 hardcode_shlibpath_var=no
10064 newsos6)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=yes
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 hardcode_libdir_separator=:
10069 hardcode_shlibpath_var=no
10072 *nto* | *qnx*)
10075 openbsd*)
10076 if test -f /usr/libexec/ld.so; then
10077 hardcode_direct=yes
10078 hardcode_shlibpath_var=no
10079 hardcode_direct_absolute=yes
10080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10084 export_dynamic_flag_spec='${wl}-E'
10085 else
10086 case $host_os in
10087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-R$libdir'
10092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095 esac
10097 else
10098 ld_shlibs=no
10102 os2*)
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_minus_L=yes
10105 allow_undefined_flag=unsupported
10106 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'
10107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10110 osf3*)
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 else
10115 allow_undefined_flag=' -expect_unresolved \*'
10116 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'
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10123 osf4* | osf5*) # as osf3* with the addition of -msym flag
10124 if test "$GCC" = yes; then
10125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10126 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'
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 else
10129 allow_undefined_flag=' -expect_unresolved \*'
10130 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'
10131 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~
10132 $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'
10134 # Both c and cxx compiler support -rpath directly
10135 hardcode_libdir_flag_spec='-rpath $libdir'
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_separator=:
10141 solaris*)
10142 no_undefined_flag=' -z defs'
10143 if test "$GCC" = yes; then
10144 wlarc='${wl}'
10145 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10148 else
10149 case `$CC -V 2>&1` in
10150 *"Compilers 5.0"*)
10151 wlarc=''
10152 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10157 wlarc='${wl}'
10158 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10160 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10162 esac
10164 hardcode_libdir_flag_spec='-R$libdir'
10165 hardcode_shlibpath_var=no
10166 case $host_os in
10167 solaris2.[0-5] | solaris2.[0-5].*) ;;
10169 # The compiler driver will combine and reorder linker options,
10170 # but understands `-z linker_flag'. GCC discards it without `$wl',
10171 # but is careful enough not to reorder.
10172 # Supported since Solaris 2.6 (maybe 2.5.1?)
10173 if test "$GCC" = yes; then
10174 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10175 else
10176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10179 esac
10180 link_all_deplibs=yes
10183 sunos4*)
10184 if test "x$host_vendor" = xsequent; then
10185 # Use $CC to link under sequent, because it throws in some extra .o
10186 # files that make .init and .fini sections work.
10187 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10188 else
10189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10191 hardcode_libdir_flag_spec='-L$libdir'
10192 hardcode_direct=yes
10193 hardcode_minus_L=yes
10194 hardcode_shlibpath_var=no
10197 sysv4)
10198 case $host_vendor in
10199 sni)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=yes # is this really true???
10203 siemens)
10204 ## LD is ld it makes a PLAMLIB
10205 ## CC just makes a GrossModule.
10206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10207 reload_cmds='$CC -r -o $output$reload_objs'
10208 hardcode_direct=no
10210 motorola)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10214 esac
10215 runpath_var='LD_RUN_PATH'
10216 hardcode_shlibpath_var=no
10219 sysv4.3*)
10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 hardcode_shlibpath_var=no
10222 export_dynamic_flag_spec='-Bexport'
10225 sysv4*MP*)
10226 if test -d /usr/nec; then
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_shlibpath_var=no
10229 runpath_var=LD_RUN_PATH
10230 hardcode_runpath_var=yes
10231 ld_shlibs=yes
10235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10236 no_undefined_flag='${wl}-z,text'
10237 archive_cmds_need_lc=no
10238 hardcode_shlibpath_var=no
10239 runpath_var='LD_RUN_PATH'
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 sysv5* | sco3.2v5* | sco5v6*)
10251 # Note: We can NOT use -z defs as we might desire, because we do not
10252 # link with -lc, and that would cause any symbols used from libc to
10253 # always be unresolved, which means just about no library would
10254 # ever link correctly. If we're not using GNU ld we use -z text
10255 # though, which does catch some bad symbols but isn't as heavy-handed
10256 # as -z defs.
10257 no_undefined_flag='${wl}-z,text'
10258 allow_undefined_flag='${wl}-z,nodefs'
10259 archive_cmds_need_lc=no
10260 hardcode_shlibpath_var=no
10261 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 export_dynamic_flag_spec='${wl}-Bexport'
10265 runpath_var='LD_RUN_PATH'
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 uts4*)
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_libdir_flag_spec='-L$libdir'
10279 hardcode_shlibpath_var=no
10283 ld_shlibs=no
10285 esac
10287 if test x$host_vendor = xsni; then
10288 case $host in
10289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10290 export_dynamic_flag_spec='${wl}-Blargedynsym'
10292 esac
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10297 $as_echo "$ld_shlibs" >&6; }
10298 test "$ld_shlibs" = no && can_build_shared=no
10300 with_gnu_ld=$with_gnu_ld
10317 # Do we need to explicitly link libc?
10319 case "x$archive_cmds_need_lc" in
10320 x|xyes)
10321 # Assume -lc should be added
10322 archive_cmds_need_lc=yes
10324 if test "$enable_shared" = yes && test "$GCC" = yes; then
10325 case $archive_cmds in
10326 *'~'*)
10327 # FIXME: we may have to deal with multi-command sequences.
10329 '$CC '*)
10330 # Test whether the compiler implicitly links with -lc since on some
10331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10332 # to ld, don't add -lc before -lgcc.
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10334 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10335 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 $RM conftest*
10339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10342 (eval $ac_compile) 2>&5
10343 ac_status=$?
10344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345 test $ac_status = 0; } 2>conftest.err; then
10346 soname=conftest
10347 lib=conftest
10348 libobjs=conftest.$ac_objext
10349 deplibs=
10350 wl=$lt_prog_compiler_wl
10351 pic_flag=$lt_prog_compiler_pic
10352 compiler_flags=-v
10353 linker_flags=-v
10354 verstring=
10355 output_objdir=.
10356 libname=conftest
10357 lt_save_allow_undefined_flag=$allow_undefined_flag
10358 allow_undefined_flag=
10359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10360 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10361 ac_status=$?
10362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363 test $ac_status = 0; }
10364 then
10365 lt_cv_archive_cmds_need_lc=no
10366 else
10367 lt_cv_archive_cmds_need_lc=yes
10369 allow_undefined_flag=$lt_save_allow_undefined_flag
10370 else
10371 cat conftest.err 1>&5
10373 $RM conftest*
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10377 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10378 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10380 esac
10383 esac
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10542 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10544 if test "$GCC" = yes; then
10545 case $host_os in
10546 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10547 *) lt_awk_arg="/^libraries:/" ;;
10548 esac
10549 case $host_os in
10550 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10551 *) lt_sed_strip_eq="s,=/,/,g" ;;
10552 esac
10553 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10554 case $lt_search_path_spec in
10555 *\;*)
10556 # if the path contains ";" then we assume it to be the separator
10557 # otherwise default to the standard path separator (i.e. ":") - it is
10558 # assumed that no part of a normal pathname contains ";" but that should
10559 # okay in the real world where ";" in dirpaths is itself problematic.
10560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10565 esac
10566 # Ok, now we have the path, separated by spaces, we can step through it
10567 # and add multilib dir if necessary.
10568 lt_tmp_lt_search_path_spec=
10569 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10570 for lt_sys_path in $lt_search_path_spec; do
10571 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10573 else
10574 test -d "$lt_sys_path" && \
10575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10577 done
10578 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10579 BEGIN {RS=" "; FS="/|\n";} {
10580 lt_foo="";
10581 lt_count=0;
10582 for (lt_i = NF; lt_i > 0; lt_i--) {
10583 if ($lt_i != "" && $lt_i != ".") {
10584 if ($lt_i == "..") {
10585 lt_count++;
10586 } else {
10587 if (lt_count == 0) {
10588 lt_foo="/" $lt_i lt_foo;
10589 } else {
10590 lt_count--;
10595 if (lt_foo != "") { lt_freq[lt_foo]++; }
10596 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10598 # AWK program above erroneously prepends '/' to C:/dos/paths
10599 # for these hosts.
10600 case $host_os in
10601 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10602 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10603 esac
10604 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10605 else
10606 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10608 library_names_spec=
10609 libname_spec='lib$name'
10610 soname_spec=
10611 shrext_cmds=".so"
10612 postinstall_cmds=
10613 postuninstall_cmds=
10614 finish_cmds=
10615 finish_eval=
10616 shlibpath_var=
10617 shlibpath_overrides_runpath=unknown
10618 version_type=none
10619 dynamic_linker="$host_os ld.so"
10620 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10621 need_lib_prefix=unknown
10622 hardcode_into_libs=no
10624 # when you set need_version to no, make sure it does not cause -set_version
10625 # flags to be left without arguments
10626 need_version=unknown
10628 case $host_os in
10629 aix3*)
10630 version_type=linux
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10632 shlibpath_var=LIBPATH
10634 # AIX 3 has no versioning support, so we append a major version to the name.
10635 soname_spec='${libname}${release}${shared_ext}$major'
10638 aix[4-9]*)
10639 version_type=linux
10640 need_lib_prefix=no
10641 need_version=no
10642 hardcode_into_libs=yes
10643 if test "$host_cpu" = ia64; then
10644 # AIX 5 supports IA64
10645 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 else
10648 # With GCC up to 2.95.x, collect2 would create an import file
10649 # for dependence libraries. The import file would start with
10650 # the line `#! .'. This would cause the generated library to
10651 # depend on `.', always an invalid library. This was fixed in
10652 # development snapshots of GCC prior to 3.0.
10653 case $host_os in
10654 aix4 | aix4.[01] | aix4.[01].*)
10655 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10656 echo ' yes '
10657 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10659 else
10660 can_build_shared=no
10663 esac
10664 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10665 # soname into executable. Probably we can add versioning support to
10666 # collect2, so additional links can be useful in future.
10667 if test "$aix_use_runtimelinking" = yes; then
10668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10669 # instead of lib<name>.a to let people know that these are not
10670 # typical AIX shared libraries.
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 else
10673 # We preserve .a as extension for shared libraries through AIX4.2
10674 # and later when we are not doing run time linking.
10675 library_names_spec='${libname}${release}.a $libname.a'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LIBPATH
10682 amigaos*)
10683 case $host_cpu in
10684 powerpc)
10685 # Since July 2007 AmigaOS4 officially supports .so libraries.
10686 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 m68k)
10690 library_names_spec='$libname.ixlibrary $libname.a'
10691 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10692 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'
10694 esac
10697 beos*)
10698 library_names_spec='${libname}${shared_ext}'
10699 dynamic_linker="$host_os ld.so"
10700 shlibpath_var=LIBRARY_PATH
10703 bsdi[45]*)
10704 version_type=linux
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10712 # the default ld.so.conf also contains /usr/contrib/lib and
10713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10714 # libtool to hard-code these into programs
10717 cygwin* | mingw* | pw32* | cegcc*)
10718 version_type=windows
10719 shrext_cmds=".dll"
10720 need_version=no
10721 need_lib_prefix=no
10723 case $GCC,$host_os in
10724 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10725 library_names_spec='$libname.dll.a'
10726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10727 postinstall_cmds='base_file=`basename \${file}`~
10728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10729 dldir=$destdir/`dirname \$dlpath`~
10730 test -d \$dldir || mkdir -p \$dldir~
10731 $install_prog $dir/$dlname \$dldir/$dlname~
10732 chmod a+x \$dldir/$dlname~
10733 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10734 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10737 dlpath=$dir/\$dldll~
10738 $RM \$dlpath'
10739 shlibpath_overrides_runpath=yes
10741 case $host_os in
10742 cygwin*)
10743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10748 mingw* | cegcc*)
10749 # MinGW DLLs use traditional 'lib' prefix
10750 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752 pw32*)
10753 # pw32 DLLs use 'pw' prefix rather than 'lib'
10754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756 esac
10760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10762 esac
10763 dynamic_linker='Win32 ld.exe'
10764 # FIXME: first we should search . and the directory the executable is in
10765 shlibpath_var=PATH
10768 darwin* | rhapsody*)
10769 dynamic_linker="$host_os dyld"
10770 version_type=darwin
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10774 soname_spec='${libname}${release}${major}$shared_ext'
10775 shlibpath_overrides_runpath=yes
10776 shlibpath_var=DYLD_LIBRARY_PATH
10777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10783 dgux*)
10784 version_type=linux
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10792 freebsd* | dragonfly*)
10793 # DragonFly does not have aout. When/if they implement a new
10794 # versioning mechanism, adjust this.
10795 if test -x /usr/bin/objformat; then
10796 objformat=`/usr/bin/objformat`
10797 else
10798 case $host_os in
10799 freebsd[23].*) objformat=aout ;;
10800 *) objformat=elf ;;
10801 esac
10803 version_type=freebsd-$objformat
10804 case $version_type in
10805 freebsd-elf*)
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10807 need_version=no
10808 need_lib_prefix=no
10810 freebsd-*)
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10812 need_version=yes
10814 esac
10815 shlibpath_var=LD_LIBRARY_PATH
10816 case $host_os in
10817 freebsd2.*)
10818 shlibpath_overrides_runpath=yes
10820 freebsd3.[01]* | freebsdelf3.[01]*)
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10829 *) # from 4.6 on, and DragonFly
10830 shlibpath_overrides_runpath=yes
10831 hardcode_into_libs=yes
10833 esac
10836 gnu*)
10837 version_type=linux
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 hardcode_into_libs=yes
10846 haiku*)
10847 version_type=linux
10848 need_lib_prefix=no
10849 need_version=no
10850 dynamic_linker="$host_os runtime_loader"
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LIBRARY_PATH
10854 shlibpath_overrides_runpath=yes
10855 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10856 hardcode_into_libs=yes
10859 hpux9* | hpux10* | hpux11*)
10860 # Give a soname corresponding to the major version so that dld.sl refuses to
10861 # link against other versions.
10862 version_type=sunos
10863 need_lib_prefix=no
10864 need_version=no
10865 case $host_cpu in
10866 ia64*)
10867 shrext_cmds='.so'
10868 hardcode_into_libs=yes
10869 dynamic_linker="$host_os dld.so"
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 if test "X$HPUX_IA64_MODE" = X32; then
10875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10876 else
10877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10881 hppa*64*)
10882 shrext_cmds='.sl'
10883 hardcode_into_libs=yes
10884 dynamic_linker="$host_os dld.sl"
10885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10893 shrext_cmds='.sl'
10894 dynamic_linker="$host_os dld.sl"
10895 shlibpath_var=SHLIB_PATH
10896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10900 esac
10901 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10902 postinstall_cmds='chmod 555 $lib'
10903 # or fails outright, so override atomically:
10904 install_override_mode=555
10907 interix[3-9]*)
10908 version_type=linux
10909 need_lib_prefix=no
10910 need_version=no
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10919 irix5* | irix6* | nonstopux*)
10920 case $host_os in
10921 nonstopux*) version_type=nonstopux ;;
10923 if test "$lt_cv_prog_gnu_ld" = yes; then
10924 version_type=linux
10925 else
10926 version_type=irix
10927 fi ;;
10928 esac
10929 need_lib_prefix=no
10930 need_version=no
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10933 case $host_os in
10934 irix5* | nonstopux*)
10935 libsuff= shlibsuff=
10938 case $LD in # libtool.m4 will add one of these switches to LD
10939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10940 libsuff= shlibsuff= libmagic=32-bit;;
10941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10942 libsuff=32 shlibsuff=N32 libmagic=N32;;
10943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10945 *) libsuff= shlibsuff= libmagic=never-match;;
10946 esac
10948 esac
10949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10950 shlibpath_overrides_runpath=no
10951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10953 hardcode_into_libs=yes
10956 # No shared lib support for Linux oldld, aout, or coff.
10957 linux*oldld* | linux*aout* | linux*coff*)
10958 dynamic_linker=no
10961 # This must be Linux ELF.
10962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10963 version_type=linux
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=no
10972 # Some binutils ld are patched to set DT_RUNPATH
10973 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 lt_cv_shlibpath_overrides_runpath=no
10977 save_LDFLAGS=$LDFLAGS
10978 save_libdir=$libdir
10979 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10980 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10985 main ()
10989 return 0;
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10994 lt_cv_shlibpath_overrides_runpath=yes
10997 rm -f core conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 LDFLAGS=$save_LDFLAGS
11000 libdir=$save_libdir
11004 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11006 # This implies no fast_install, which is unacceptable.
11007 # Some rework will be needed to allow for fast_install
11008 # before this can be enabled.
11009 hardcode_into_libs=yes
11011 # Append ld.so.conf contents to the search path
11012 if test -f /etc/ld.so.conf; then
11013 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' ' '`
11014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11017 # We used to test for /lib/ld.so.1 and disable shared libraries on
11018 # powerpc, because MkLinux only supported shared libraries with the
11019 # GNU dynamic linker. Since this was broken with cross compilers,
11020 # most powerpc-linux boxes support dynamic linking these days and
11021 # people can always --disable-shared, the test was removed, and we
11022 # assume the GNU/Linux dynamic linker is in use.
11023 dynamic_linker='GNU/Linux ld.so'
11026 netbsd*)
11027 version_type=sunos
11028 need_lib_prefix=no
11029 need_version=no
11030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11033 dynamic_linker='NetBSD (a.out) ld.so'
11034 else
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 dynamic_linker='NetBSD ld.elf_so'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=yes
11041 hardcode_into_libs=yes
11044 newsos6)
11045 version_type=linux
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11051 *nto* | *qnx*)
11052 version_type=qnx
11053 need_lib_prefix=no
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059 hardcode_into_libs=yes
11060 dynamic_linker='ldqnx.so'
11063 openbsd*)
11064 version_type=sunos
11065 sys_lib_dlsearch_path_spec="/usr/lib"
11066 need_lib_prefix=no
11067 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11068 case $host_os in
11069 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11070 *) need_version=no ;;
11071 esac
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11076 case $host_os in
11077 openbsd2.[89] | openbsd2.[89].*)
11078 shlibpath_overrides_runpath=no
11081 shlibpath_overrides_runpath=yes
11083 esac
11084 else
11085 shlibpath_overrides_runpath=yes
11089 os2*)
11090 libname_spec='$name'
11091 shrext_cmds=".dll"
11092 need_lib_prefix=no
11093 library_names_spec='$libname${shared_ext} $libname.a'
11094 dynamic_linker='OS/2 ld.exe'
11095 shlibpath_var=LIBPATH
11098 osf3* | osf4* | osf5*)
11099 version_type=osf
11100 need_lib_prefix=no
11101 need_version=no
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11106 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11109 rdos*)
11110 dynamic_linker=no
11113 solaris*)
11114 version_type=linux
11115 need_lib_prefix=no
11116 need_version=no
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11121 hardcode_into_libs=yes
11122 # ldd complains unless libraries are executable
11123 postinstall_cmds='chmod +x $lib'
11126 sunos4*)
11127 version_type=sunos
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 shlibpath_overrides_runpath=yes
11132 if test "$with_gnu_ld" = yes; then
11133 need_lib_prefix=no
11135 need_version=yes
11138 sysv4 | sysv4.3*)
11139 version_type=linux
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 case $host_vendor in
11144 sni)
11145 shlibpath_overrides_runpath=no
11146 need_lib_prefix=no
11147 runpath_var=LD_RUN_PATH
11149 siemens)
11150 need_lib_prefix=no
11152 motorola)
11153 need_lib_prefix=no
11154 need_version=no
11155 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11158 esac
11161 sysv4*MP*)
11162 if test -d /usr/nec ;then
11163 version_type=linux
11164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11165 soname_spec='$libname${shared_ext}.$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11171 version_type=freebsd-elf
11172 need_lib_prefix=no
11173 need_version=no
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes
11178 hardcode_into_libs=yes
11179 if test "$with_gnu_ld" = yes; then
11180 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11181 else
11182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11183 case $host_os in
11184 sco3.2v5*)
11185 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11187 esac
11189 sys_lib_dlsearch_path_spec='/usr/lib'
11192 tpf*)
11193 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11194 version_type=linux
11195 need_lib_prefix=no
11196 need_version=no
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=no
11200 hardcode_into_libs=yes
11203 uts4*)
11204 version_type=linux
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11211 dynamic_linker=no
11213 esac
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11215 $as_echo "$dynamic_linker" >&6; }
11216 test "$dynamic_linker" = no && can_build_shared=no
11218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11219 if test "$GCC" = yes; then
11220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11223 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11224 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11227 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11322 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11323 hardcode_action=
11324 if test -n "$hardcode_libdir_flag_spec" ||
11325 test -n "$runpath_var" ||
11326 test "X$hardcode_automatic" = "Xyes" ; then
11328 # We can hardcode non-existent directories.
11329 if test "$hardcode_direct" != no &&
11330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11331 # have to relink, otherwise we might link with an installed library
11332 # when we should be linking with a yet-to-be-installed one
11333 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11334 test "$hardcode_minus_L" != no; then
11335 # Linking always hardcodes the temporary library directory.
11336 hardcode_action=relink
11337 else
11338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11339 hardcode_action=immediate
11341 else
11342 # We cannot hardcode anything, or else we can only hardcode existing
11343 # directories.
11344 hardcode_action=unsupported
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11347 $as_echo "$hardcode_action" >&6; }
11349 if test "$hardcode_action" = relink ||
11350 test "$inherit_rpath" = yes; then
11351 # Fast installation is not supported
11352 enable_fast_install=no
11353 elif test "$shlibpath_overrides_runpath" = yes ||
11354 test "$enable_shared" = no; then
11355 # Fast installation is not necessary
11356 enable_fast_install=needless
11364 if test "x$enable_dlopen" != xyes; then
11365 enable_dlopen=unknown
11366 enable_dlopen_self=unknown
11367 enable_dlopen_self_static=unknown
11368 else
11369 lt_cv_dlopen=no
11370 lt_cv_dlopen_libs=
11372 case $host_os in
11373 beos*)
11374 lt_cv_dlopen="load_add_on"
11375 lt_cv_dlopen_libs=
11376 lt_cv_dlopen_self=yes
11379 mingw* | pw32* | cegcc*)
11380 lt_cv_dlopen="LoadLibrary"
11381 lt_cv_dlopen_libs=
11384 cygwin*)
11385 lt_cv_dlopen="dlopen"
11386 lt_cv_dlopen_libs=
11389 darwin*)
11390 # if libdl is installed we need to link against it
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldl $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char dlopen ();
11409 main ()
11411 return dlopen ();
11413 return 0;
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_lib_dl_dlopen=yes
11418 else
11419 ac_cv_lib_dl_dlopen=no
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11429 else
11431 lt_cv_dlopen="dyld"
11432 lt_cv_dlopen_libs=
11433 lt_cv_dlopen_self=yes
11440 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11441 if test "x$ac_cv_func_shl_load" = x""yes; then :
11442 lt_cv_dlopen="shl_load"
11443 else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11445 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11446 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-ldld $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char shl_load ();
11462 main ()
11464 return shl_load ();
11466 return 0;
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_lib_dld_shl_load=yes
11471 else
11472 ac_cv_lib_dld_shl_load=no
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11479 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11480 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11482 else
11483 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11484 if test "x$ac_cv_func_dlopen" = x""yes; then :
11485 lt_cv_dlopen="dlopen"
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11488 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 ac_check_lib_save_LIBS=$LIBS
11493 LIBS="-ldl $LIBS"
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char dlopen ();
11505 main ()
11507 return dlopen ();
11509 return 0;
11511 _ACEOF
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_lib_dl_dlopen=yes
11514 else
11515 ac_cv_lib_dl_dlopen=no
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11522 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11523 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11525 else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11527 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11528 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-lsvld $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 char dlopen ();
11544 main ()
11546 return dlopen ();
11548 return 0;
11550 _ACEOF
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_svld_dlopen=yes
11553 else
11554 ac_cv_lib_svld_dlopen=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11561 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11562 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11566 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11567 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-ldld $LIBS"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char dld_link ();
11583 main ()
11585 return dld_link ();
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 ac_cv_lib_dld_dld_link=yes
11592 else
11593 ac_cv_lib_dld_dld_link=no
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11600 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11601 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11602 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11621 esac
11623 if test "x$lt_cv_dlopen" != xno; then
11624 enable_dlopen=yes
11625 else
11626 enable_dlopen=no
11629 case $lt_cv_dlopen in
11630 dlopen)
11631 save_CPPFLAGS="$CPPFLAGS"
11632 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634 save_LDFLAGS="$LDFLAGS"
11635 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637 save_LIBS="$LIBS"
11638 LIBS="$lt_cv_dlopen_libs $LIBS"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11641 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11642 if test "${lt_cv_dlopen_self+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 if test "$cross_compiling" = yes; then :
11646 lt_cv_dlopen_self=cross
11647 else
11648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11649 lt_status=$lt_dlunknown
11650 cat > conftest.$ac_ext <<_LT_EOF
11651 #line 11651 "configure"
11652 #include "confdefs.h"
11654 #if HAVE_DLFCN_H
11655 #include <dlfcn.h>
11656 #endif
11658 #include <stdio.h>
11660 #ifdef RTLD_GLOBAL
11661 # define LT_DLGLOBAL RTLD_GLOBAL
11662 #else
11663 # ifdef DL_GLOBAL
11664 # define LT_DLGLOBAL DL_GLOBAL
11665 # else
11666 # define LT_DLGLOBAL 0
11667 # endif
11668 #endif
11670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11671 find out it does not work in some platform. */
11672 #ifndef LT_DLLAZY_OR_NOW
11673 # ifdef RTLD_LAZY
11674 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11675 # else
11676 # ifdef DL_LAZY
11677 # define LT_DLLAZY_OR_NOW DL_LAZY
11678 # else
11679 # ifdef RTLD_NOW
11680 # define LT_DLLAZY_OR_NOW RTLD_NOW
11681 # else
11682 # ifdef DL_NOW
11683 # define LT_DLLAZY_OR_NOW DL_NOW
11684 # else
11685 # define LT_DLLAZY_OR_NOW 0
11686 # endif
11687 # endif
11688 # endif
11689 # endif
11690 #endif
11692 /* When -fvisbility=hidden is used, assume the code has been annotated
11693 correspondingly for the symbols needed. */
11694 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11695 void fnord () __attribute__((visibility("default")));
11696 #endif
11698 void fnord () { int i=42; }
11699 int main ()
11701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11702 int status = $lt_dlunknown;
11704 if (self)
11706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11707 else
11709 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11710 else puts (dlerror ());
11712 /* dlclose (self); */
11714 else
11715 puts (dlerror ());
11717 return status;
11719 _LT_EOF
11720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11724 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11725 (./conftest; exit; ) >&5 2>/dev/null
11726 lt_status=$?
11727 case x$lt_status in
11728 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11729 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11730 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11731 esac
11732 else :
11733 # compilation failed
11734 lt_cv_dlopen_self=no
11737 rm -fr conftest*
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11742 $as_echo "$lt_cv_dlopen_self" >&6; }
11744 if test "x$lt_cv_dlopen_self" = xyes; then
11745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11747 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11748 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 if test "$cross_compiling" = yes; then :
11752 lt_cv_dlopen_self_static=cross
11753 else
11754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11755 lt_status=$lt_dlunknown
11756 cat > conftest.$ac_ext <<_LT_EOF
11757 #line 11757 "configure"
11758 #include "confdefs.h"
11760 #if HAVE_DLFCN_H
11761 #include <dlfcn.h>
11762 #endif
11764 #include <stdio.h>
11766 #ifdef RTLD_GLOBAL
11767 # define LT_DLGLOBAL RTLD_GLOBAL
11768 #else
11769 # ifdef DL_GLOBAL
11770 # define LT_DLGLOBAL DL_GLOBAL
11771 # else
11772 # define LT_DLGLOBAL 0
11773 # endif
11774 #endif
11776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11777 find out it does not work in some platform. */
11778 #ifndef LT_DLLAZY_OR_NOW
11779 # ifdef RTLD_LAZY
11780 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11781 # else
11782 # ifdef DL_LAZY
11783 # define LT_DLLAZY_OR_NOW DL_LAZY
11784 # else
11785 # ifdef RTLD_NOW
11786 # define LT_DLLAZY_OR_NOW RTLD_NOW
11787 # else
11788 # ifdef DL_NOW
11789 # define LT_DLLAZY_OR_NOW DL_NOW
11790 # else
11791 # define LT_DLLAZY_OR_NOW 0
11792 # endif
11793 # endif
11794 # endif
11795 # endif
11796 #endif
11798 /* When -fvisbility=hidden is used, assume the code has been annotated
11799 correspondingly for the symbols needed. */
11800 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11801 void fnord () __attribute__((visibility("default")));
11802 #endif
11804 void fnord () { int i=42; }
11805 int main ()
11807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11808 int status = $lt_dlunknown;
11810 if (self)
11812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11813 else
11815 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11816 else puts (dlerror ());
11818 /* dlclose (self); */
11820 else
11821 puts (dlerror ());
11823 return status;
11825 _LT_EOF
11826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11827 (eval $ac_link) 2>&5
11828 ac_status=$?
11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11830 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11831 (./conftest; exit; ) >&5 2>/dev/null
11832 lt_status=$?
11833 case x$lt_status in
11834 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11835 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11836 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11837 esac
11838 else :
11839 # compilation failed
11840 lt_cv_dlopen_self_static=no
11843 rm -fr conftest*
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11848 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11851 CPPFLAGS="$save_CPPFLAGS"
11852 LDFLAGS="$save_LDFLAGS"
11853 LIBS="$save_LIBS"
11855 esac
11857 case $lt_cv_dlopen_self in
11858 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11859 *) enable_dlopen_self=unknown ;;
11860 esac
11862 case $lt_cv_dlopen_self_static in
11863 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11864 *) enable_dlopen_self_static=unknown ;;
11865 esac
11884 striplib=
11885 old_striplib=
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11887 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11888 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11893 else
11894 # FIXME - insert some real tests, host_os isn't really good enough
11895 case $host_os in
11896 darwin*)
11897 if test -n "$STRIP" ; then
11898 striplib="$STRIP -x"
11899 old_striplib="$STRIP -S"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901 $as_echo "yes" >&6; }
11902 else
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11911 esac
11925 # Report which library types will actually be built
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11927 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11929 $as_echo "$can_build_shared" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11932 $as_echo_n "checking whether to build shared libraries... " >&6; }
11933 test "$can_build_shared" = "no" && enable_shared=no
11935 # On AIX, shared libraries and static libraries use the same namespace, and
11936 # are all built from PIC.
11937 case $host_os in
11938 aix3*)
11939 test "$enable_shared" = yes && enable_static=no
11940 if test -n "$RANLIB"; then
11941 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11942 postinstall_cmds='$RANLIB $lib'
11946 aix[4-9]*)
11947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11948 test "$enable_shared" = yes && enable_static=no
11951 esac
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11953 $as_echo "$enable_shared" >&6; }
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11956 $as_echo_n "checking whether to build static libraries... " >&6; }
11957 # Make sure either enable_shared or enable_static is yes.
11958 test "$enable_shared" = yes || enable_static=yes
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11960 $as_echo "$enable_static" >&6; }
11966 ac_ext=c
11967 ac_cpp='$CPP $CPPFLAGS'
11968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972 CC="$lt_save_CC"
11974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11975 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11976 (test "X$CXX" != "Xg++"))) ; then
11977 ac_ext=cpp
11978 ac_cpp='$CXXCPP $CPPFLAGS'
11979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11983 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11984 if test -z "$CXXCPP"; then
11985 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 # Double quotes because CXXCPP needs to be expanded
11989 for CXXCPP in "$CXX -E" "/lib/cpp"
11991 ac_preproc_ok=false
11992 for ac_cxx_preproc_warn_flag in '' yes
11994 # Use a header file that comes with gcc, so configuring glibc
11995 # with a fresh cross-compiler works.
11996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11997 # <limits.h> exists even on freestanding compilers.
11998 # On the NeXT, cc -E runs the code through the compiler's parser,
11999 # not just through cpp. "Syntax error" is here to catch this case.
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 #ifdef __STDC__
12003 # include <limits.h>
12004 #else
12005 # include <assert.h>
12006 #endif
12007 Syntax error
12008 _ACEOF
12009 if ac_fn_cxx_try_cpp "$LINENO"; then :
12011 else
12012 # Broken: fails on valid input.
12013 continue
12015 rm -f conftest.err conftest.$ac_ext
12017 # OK, works on sane cases. Now check whether nonexistent headers
12018 # can be detected and how.
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 #include <ac_nonexistent.h>
12022 _ACEOF
12023 if ac_fn_cxx_try_cpp "$LINENO"; then :
12024 # Broken: success on invalid input.
12025 continue
12026 else
12027 # Passes both tests.
12028 ac_preproc_ok=:
12029 break
12031 rm -f conftest.err conftest.$ac_ext
12033 done
12034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12035 rm -f conftest.err conftest.$ac_ext
12036 if $ac_preproc_ok; then :
12037 break
12040 done
12041 ac_cv_prog_CXXCPP=$CXXCPP
12044 CXXCPP=$ac_cv_prog_CXXCPP
12045 else
12046 ac_cv_prog_CXXCPP=$CXXCPP
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12049 $as_echo "$CXXCPP" >&6; }
12050 ac_preproc_ok=false
12051 for ac_cxx_preproc_warn_flag in '' yes
12053 # Use a header file that comes with gcc, so configuring glibc
12054 # with a fresh cross-compiler works.
12055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 # <limits.h> exists even on freestanding compilers.
12057 # On the NeXT, cc -E runs the code through the compiler's parser,
12058 # not just through cpp. "Syntax error" is here to catch this case.
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #ifdef __STDC__
12062 # include <limits.h>
12063 #else
12064 # include <assert.h>
12065 #endif
12066 Syntax error
12067 _ACEOF
12068 if ac_fn_cxx_try_cpp "$LINENO"; then :
12070 else
12071 # Broken: fails on valid input.
12072 continue
12074 rm -f conftest.err conftest.$ac_ext
12076 # OK, works on sane cases. Now check whether nonexistent headers
12077 # can be detected and how.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #include <ac_nonexistent.h>
12081 _ACEOF
12082 if ac_fn_cxx_try_cpp "$LINENO"; then :
12083 # Broken: success on invalid input.
12084 continue
12085 else
12086 # Passes both tests.
12087 ac_preproc_ok=:
12088 break
12090 rm -f conftest.err conftest.$ac_ext
12092 done
12093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12094 rm -f conftest.err conftest.$ac_ext
12095 if $ac_preproc_ok; then :
12097 else
12098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12100 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12101 See \`config.log' for more details." "$LINENO" 5; }
12104 ac_ext=c
12105 ac_cpp='$CPP $CPPFLAGS'
12106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12110 else
12111 _lt_caught_CXX_error=yes
12114 ac_ext=cpp
12115 ac_cpp='$CXXCPP $CPPFLAGS'
12116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12120 archive_cmds_need_lc_CXX=no
12121 allow_undefined_flag_CXX=
12122 always_export_symbols_CXX=no
12123 archive_expsym_cmds_CXX=
12124 compiler_needs_object_CXX=no
12125 export_dynamic_flag_spec_CXX=
12126 hardcode_direct_CXX=no
12127 hardcode_direct_absolute_CXX=no
12128 hardcode_libdir_flag_spec_CXX=
12129 hardcode_libdir_flag_spec_ld_CXX=
12130 hardcode_libdir_separator_CXX=
12131 hardcode_minus_L_CXX=no
12132 hardcode_shlibpath_var_CXX=unsupported
12133 hardcode_automatic_CXX=no
12134 inherit_rpath_CXX=no
12135 module_cmds_CXX=
12136 module_expsym_cmds_CXX=
12137 link_all_deplibs_CXX=unknown
12138 old_archive_cmds_CXX=$old_archive_cmds
12139 reload_flag_CXX=$reload_flag
12140 reload_cmds_CXX=$reload_cmds
12141 no_undefined_flag_CXX=
12142 whole_archive_flag_spec_CXX=
12143 enable_shared_with_static_runtimes_CXX=no
12145 # Source file extension for C++ test sources.
12146 ac_ext=cpp
12148 # Object file extension for compiled C++ test sources.
12149 objext=o
12150 objext_CXX=$objext
12152 # No sense in running all these tests if we already determined that
12153 # the CXX compiler isn't working. Some variables (like enable_shared)
12154 # are currently assumed to apply to all compilers on this platform,
12155 # and will be corrupted by setting them based on a non-working compiler.
12156 if test "$_lt_caught_CXX_error" != yes; then
12157 # Code to be used in simple compile tests
12158 lt_simple_compile_test_code="int some_variable = 0;"
12160 # Code to be used in simple link tests
12161 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12170 # If no C compiler was specified, use CC.
12171 LTCC=${LTCC-"$CC"}
12173 # If no C compiler flags were specified, use CFLAGS.
12174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12176 # Allow CC to be a program name with arguments.
12177 compiler=$CC
12180 # save warnings/boilerplate of simple test code
12181 ac_outfile=conftest.$ac_objext
12182 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12184 _lt_compiler_boilerplate=`cat conftest.err`
12185 $RM conftest*
12187 ac_outfile=conftest.$ac_objext
12188 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12190 _lt_linker_boilerplate=`cat conftest.err`
12191 $RM -r conftest*
12194 # Allow CC to be a program name with arguments.
12195 lt_save_CC=$CC
12196 lt_save_LD=$LD
12197 lt_save_GCC=$GCC
12198 GCC=$GXX
12199 lt_save_with_gnu_ld=$with_gnu_ld
12200 lt_save_path_LD=$lt_cv_path_LD
12201 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12202 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12203 else
12204 $as_unset lt_cv_prog_gnu_ld
12206 if test -n "${lt_cv_path_LDCXX+set}"; then
12207 lt_cv_path_LD=$lt_cv_path_LDCXX
12208 else
12209 $as_unset lt_cv_path_LD
12211 test -z "${LDCXX+set}" || LD=$LDCXX
12212 CC=${CXX-"c++"}
12213 compiler=$CC
12214 compiler_CXX=$CC
12215 for cc_temp in $compiler""; do
12216 case $cc_temp in
12217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12219 \-*) ;;
12220 *) break;;
12221 esac
12222 done
12223 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12226 if test -n "$compiler"; then
12227 # We don't want -fno-exception when compiling C++ code, so set the
12228 # no_builtin_flag separately
12229 if test "$GXX" = yes; then
12230 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12231 else
12232 lt_prog_compiler_no_builtin_flag_CXX=
12235 if test "$GXX" = yes; then
12236 # Set up default GNU C++ configuration
12240 # Check whether --with-gnu-ld was given.
12241 if test "${with_gnu_ld+set}" = set; then :
12242 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12243 else
12244 with_gnu_ld=no
12247 ac_prog=ld
12248 if test "$GCC" = yes; then
12249 # Check if gcc -print-prog-name=ld gives a path.
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12251 $as_echo_n "checking for ld used by $CC... " >&6; }
12252 case $host in
12253 *-*-mingw*)
12254 # gcc leaves a trailing carriage return which upsets mingw
12255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12258 esac
12259 case $ac_prog in
12260 # Accept absolute paths.
12261 [\\/]* | ?:[\\/]*)
12262 re_direlt='/[^/][^/]*/\.\./'
12263 # Canonicalize the pathname of ld
12264 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12265 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12266 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12267 done
12268 test -z "$LD" && LD="$ac_prog"
12271 # If it fails, then pretend we aren't using GCC.
12272 ac_prog=ld
12275 # If it is relative, then search for the first ld in PATH.
12276 with_gnu_ld=unknown
12278 esac
12279 elif test "$with_gnu_ld" = yes; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12281 $as_echo_n "checking for GNU ld... " >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12284 $as_echo_n "checking for non-GNU ld... " >&6; }
12286 if test "${lt_cv_path_LD+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test -z "$LD"; then
12290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12291 for ac_dir in $PATH; do
12292 IFS="$lt_save_ifs"
12293 test -z "$ac_dir" && ac_dir=.
12294 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12295 lt_cv_path_LD="$ac_dir/$ac_prog"
12296 # Check to see if the program is GNU ld. I'd rather use --version,
12297 # but apparently some variants of GNU ld only accept -v.
12298 # Break only if it was the GNU/non-GNU ld that we prefer.
12299 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12300 *GNU* | *'with BFD'*)
12301 test "$with_gnu_ld" != no && break
12304 test "$with_gnu_ld" != yes && break
12306 esac
12308 done
12309 IFS="$lt_save_ifs"
12310 else
12311 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12315 LD="$lt_cv_path_LD"
12316 if test -n "$LD"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12318 $as_echo "$LD" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12323 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12325 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12326 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12330 case `$LD -v 2>&1 </dev/null` in
12331 *GNU* | *'with BFD'*)
12332 lt_cv_prog_gnu_ld=yes
12335 lt_cv_prog_gnu_ld=no
12337 esac
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12340 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12341 with_gnu_ld=$lt_cv_prog_gnu_ld
12349 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12350 # archiving commands below assume that GNU ld is being used.
12351 if test "$with_gnu_ld" = yes; then
12352 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12353 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12358 # If archive_cmds runs LD, not CC, wlarc should be empty
12359 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12360 # investigate it a little bit more. (MM)
12361 wlarc='${wl}'
12363 # ancient GNU ld didn't support --whole-archive et. al.
12364 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12365 $GREP 'no-whole-archive' > /dev/null; then
12366 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12367 else
12368 whole_archive_flag_spec_CXX=
12370 else
12371 with_gnu_ld=no
12372 wlarc=
12374 # A generic and very simple default shared library creation
12375 # command for GNU C++ for the case where it uses the native
12376 # linker, instead of GNU ld. If possible, this setting should
12377 # overridden to take advantage of the native linker features on
12378 # the platform it is being used on.
12379 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12382 # Commands to make compiler produce verbose output that lists
12383 # what "hidden" libraries, object files and flags are used when
12384 # linking a shared library.
12385 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12387 else
12388 GXX=no
12389 with_gnu_ld=no
12390 wlarc=
12393 # PORTME: fill in a description of your system's C++ link characteristics
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12395 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12396 ld_shlibs_CXX=yes
12397 case $host_os in
12398 aix3*)
12399 # FIXME: insert proper C++ library support
12400 ld_shlibs_CXX=no
12402 aix[4-9]*)
12403 if test "$host_cpu" = ia64; then
12404 # On IA64, the linker does run time linking by default, so we don't
12405 # have to do anything special.
12406 aix_use_runtimelinking=no
12407 exp_sym_flag='-Bexport'
12408 no_entry_flag=""
12409 else
12410 aix_use_runtimelinking=no
12412 # Test if we are trying to use run time linking or normal
12413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12414 # need to do runtime linking.
12415 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12416 for ld_flag in $LDFLAGS; do
12417 case $ld_flag in
12418 *-brtl*)
12419 aix_use_runtimelinking=yes
12420 break
12422 esac
12423 done
12425 esac
12427 exp_sym_flag='-bexport'
12428 no_entry_flag='-bnoentry'
12431 # When large executables or shared objects are built, AIX ld can
12432 # have problems creating the table of contents. If linking a library
12433 # or program results in "error TOC overflow" add -mminimal-toc to
12434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12437 archive_cmds_CXX=''
12438 hardcode_direct_CXX=yes
12439 hardcode_direct_absolute_CXX=yes
12440 hardcode_libdir_separator_CXX=':'
12441 link_all_deplibs_CXX=yes
12442 file_list_spec_CXX='${wl}-f,'
12444 if test "$GXX" = yes; then
12445 case $host_os in aix4.[012]|aix4.[012].*)
12446 # We only want to do this on AIX 4.2 and lower, the check
12447 # below for broken collect2 doesn't work under 4.3+
12448 collect2name=`${CC} -print-prog-name=collect2`
12449 if test -f "$collect2name" &&
12450 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12451 then
12452 # We have reworked collect2
12454 else
12455 # We have old collect2
12456 hardcode_direct_CXX=unsupported
12457 # It fails to find uninstalled libraries when the uninstalled
12458 # path is not listed in the libpath. Setting hardcode_minus_L
12459 # to unsupported forces relinking
12460 hardcode_minus_L_CXX=yes
12461 hardcode_libdir_flag_spec_CXX='-L$libdir'
12462 hardcode_libdir_separator_CXX=
12464 esac
12465 shared_flag='-shared'
12466 if test "$aix_use_runtimelinking" = yes; then
12467 shared_flag="$shared_flag "'${wl}-G'
12469 else
12470 # not using gcc
12471 if test "$host_cpu" = ia64; then
12472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12473 # chokes on -Wl,-G. The following line is correct:
12474 shared_flag='-G'
12475 else
12476 if test "$aix_use_runtimelinking" = yes; then
12477 shared_flag='${wl}-G'
12478 else
12479 shared_flag='${wl}-bM:SRE'
12484 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12485 # It seems that -bexpall does not export symbols beginning with
12486 # underscore (_), so it is better to generate a list of symbols to
12487 # export.
12488 always_export_symbols_CXX=yes
12489 if test "$aix_use_runtimelinking" = yes; then
12490 # Warning - without using the other runtime loading flags (-brtl),
12491 # -berok will link without error, but may produce a broken library.
12492 allow_undefined_flag_CXX='-berok'
12493 # Determine the default libpath from the value encoded in an empty
12494 # executable.
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12499 main ()
12503 return 0;
12505 _ACEOF
12506 if ac_fn_cxx_try_link "$LINENO"; then :
12508 lt_aix_libpath_sed='
12509 /Import File Strings/,/^$/ {
12510 /^0/ {
12511 s/^0 *\(.*\)$/\1/
12515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12516 # Check for a 64-bit object if we didn't find anything.
12517 if test -z "$aix_libpath"; then
12518 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12527 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"
12528 else
12529 if test "$host_cpu" = ia64; then
12530 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12531 allow_undefined_flag_CXX="-z nodefs"
12532 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"
12533 else
12534 # Determine the default libpath from the value encoded in an
12535 # empty executable.
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12540 main ()
12544 return 0;
12546 _ACEOF
12547 if ac_fn_cxx_try_link "$LINENO"; then :
12549 lt_aix_libpath_sed='
12550 /Import File Strings/,/^$/ {
12551 /^0/ {
12552 s/^0 *\(.*\)$/\1/
12556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12557 # Check for a 64-bit object if we didn't find anything.
12558 if test -z "$aix_libpath"; then
12559 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12566 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12567 # Warning - without using the other run time loading flags,
12568 # -berok will link without error, but may produce a broken library.
12569 no_undefined_flag_CXX=' ${wl}-bernotok'
12570 allow_undefined_flag_CXX=' ${wl}-berok'
12571 if test "$with_gnu_ld" = yes; then
12572 # We only use this code for GNU lds that support --whole-archive.
12573 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12574 else
12575 # Exported symbols can be pulled into shared objects from archives
12576 whole_archive_flag_spec_CXX='$convenience'
12578 archive_cmds_need_lc_CXX=yes
12579 # This is similar to how AIX traditionally builds its shared
12580 # libraries.
12581 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'
12586 beos*)
12587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12588 allow_undefined_flag_CXX=unsupported
12589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12590 # support --undefined. This deserves some investigation. FIXME
12591 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12592 else
12593 ld_shlibs_CXX=no
12597 chorus*)
12598 case $cc_basename in
12600 # FIXME: insert proper C++ library support
12601 ld_shlibs_CXX=no
12603 esac
12606 cygwin* | mingw* | pw32* | cegcc*)
12607 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12608 # as there is no search path for DLLs.
12609 hardcode_libdir_flag_spec_CXX='-L$libdir'
12610 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12611 allow_undefined_flag_CXX=unsupported
12612 always_export_symbols_CXX=no
12613 enable_shared_with_static_runtimes_CXX=yes
12615 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12616 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'
12617 # If the export-symbols file already is a .def file (1st line
12618 # is EXPORTS), use it as is; otherwise, prepend...
12619 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12620 cp $export_symbols $output_objdir/$soname.def;
12621 else
12622 echo EXPORTS > $output_objdir/$soname.def;
12623 cat $export_symbols >> $output_objdir/$soname.def;
12625 $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'
12626 else
12627 ld_shlibs_CXX=no
12630 darwin* | rhapsody*)
12633 archive_cmds_need_lc_CXX=no
12634 hardcode_direct_CXX=no
12635 hardcode_automatic_CXX=yes
12636 hardcode_shlibpath_var_CXX=unsupported
12637 if test "$lt_cv_ld_force_load" = "yes"; then
12638 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\"`'
12639 else
12640 whole_archive_flag_spec_CXX=''
12642 link_all_deplibs_CXX=yes
12643 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12644 case $cc_basename in
12645 ifort*) _lt_dar_can_shared=yes ;;
12646 *) _lt_dar_can_shared=$GCC ;;
12647 esac
12648 if test "$_lt_dar_can_shared" = "yes"; then
12649 output_verbose_link_cmd=func_echo_all
12650 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}"
12651 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12652 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}"
12653 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}"
12654 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12655 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}"
12656 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}"
12659 else
12660 ld_shlibs_CXX=no
12665 dgux*)
12666 case $cc_basename in
12667 ec++*)
12668 # FIXME: insert proper C++ library support
12669 ld_shlibs_CXX=no
12671 ghcx*)
12672 # Green Hills C++ Compiler
12673 # FIXME: insert proper C++ library support
12674 ld_shlibs_CXX=no
12677 # FIXME: insert proper C++ library support
12678 ld_shlibs_CXX=no
12680 esac
12683 freebsd2.*)
12684 # C++ shared libraries reported to be fairly broken before
12685 # switch to ELF
12686 ld_shlibs_CXX=no
12689 freebsd-elf*)
12690 archive_cmds_need_lc_CXX=no
12693 freebsd* | dragonfly*)
12694 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12695 # conventions
12696 ld_shlibs_CXX=yes
12699 gnu*)
12702 haiku*)
12703 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12704 link_all_deplibs_CXX=yes
12707 hpux9*)
12708 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12709 hardcode_libdir_separator_CXX=:
12710 export_dynamic_flag_spec_CXX='${wl}-E'
12711 hardcode_direct_CXX=yes
12712 hardcode_minus_L_CXX=yes # Not in the search PATH,
12713 # but as the default
12714 # location of the library.
12716 case $cc_basename in
12717 CC*)
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12721 aCC*)
12722 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'
12723 # Commands to make compiler produce verbose output that lists
12724 # what "hidden" libraries, object files and flags are used when
12725 # linking a shared library.
12727 # There doesn't appear to be a way to prevent this compiler from
12728 # explicitly linking system object files so we need to strip them
12729 # from the output so that they don't get included in the library
12730 # dependencies.
12731 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"'
12734 if test "$GXX" = yes; then
12735 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'
12736 else
12737 # FIXME: insert proper C++ library support
12738 ld_shlibs_CXX=no
12741 esac
12744 hpux10*|hpux11*)
12745 if test $with_gnu_ld = no; then
12746 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12747 hardcode_libdir_separator_CXX=:
12749 case $host_cpu in
12750 hppa*64*|ia64*)
12753 export_dynamic_flag_spec_CXX='${wl}-E'
12755 esac
12757 case $host_cpu in
12758 hppa*64*|ia64*)
12759 hardcode_direct_CXX=no
12760 hardcode_shlibpath_var_CXX=no
12763 hardcode_direct_CXX=yes
12764 hardcode_direct_absolute_CXX=yes
12765 hardcode_minus_L_CXX=yes # Not in the search PATH,
12766 # but as the default
12767 # location of the library.
12769 esac
12771 case $cc_basename in
12772 CC*)
12773 # FIXME: insert proper C++ library support
12774 ld_shlibs_CXX=no
12776 aCC*)
12777 case $host_cpu in
12778 hppa*64*)
12779 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12781 ia64*)
12782 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12787 esac
12788 # Commands to make compiler produce verbose output that lists
12789 # what "hidden" libraries, object files and flags are used when
12790 # linking a shared library.
12792 # There doesn't appear to be a way to prevent this compiler from
12793 # explicitly linking system object files so we need to strip them
12794 # from the output so that they don't get included in the library
12795 # dependencies.
12796 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"'
12799 if test "$GXX" = yes; then
12800 if test $with_gnu_ld = no; then
12801 case $host_cpu in
12802 hppa*64*)
12803 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12805 ia64*)
12806 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12809 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'
12811 esac
12813 else
12814 # FIXME: insert proper C++ library support
12815 ld_shlibs_CXX=no
12818 esac
12821 interix[3-9]*)
12822 hardcode_direct_CXX=no
12823 hardcode_shlibpath_var_CXX=no
12824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12825 export_dynamic_flag_spec_CXX='${wl}-E'
12826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12827 # Instead, shared libraries are loaded at an image base (0x10000000 by
12828 # default) and relocated if they conflict, which is a slow very memory
12829 # consuming and fragmenting process. To avoid this, we pick a random,
12830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12831 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12832 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'
12833 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'
12835 irix5* | irix6*)
12836 case $cc_basename in
12837 CC*)
12838 # SGI C++
12839 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'
12841 # Archives containing C++ object files must be created using
12842 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12843 # necessary to make sure instantiated templates are included
12844 # in the archive.
12845 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12848 if test "$GXX" = yes; then
12849 if test "$with_gnu_ld" = no; then
12850 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'
12851 else
12852 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'
12855 link_all_deplibs_CXX=yes
12857 esac
12858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12859 hardcode_libdir_separator_CXX=:
12860 inherit_rpath_CXX=yes
12863 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12864 case $cc_basename in
12865 KCC*)
12866 # Kuck and Associates, Inc. (KAI) C++ Compiler
12868 # KCC will only create a shared library if the output file
12869 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12870 # to its proper name (with version) after linking.
12871 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'
12872 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'
12873 # Commands to make compiler produce verbose output that lists
12874 # what "hidden" libraries, object files and flags are used when
12875 # linking a shared library.
12877 # There doesn't appear to be a way to prevent this compiler from
12878 # explicitly linking system object files so we need to strip them
12879 # from the output so that they don't get included in the library
12880 # dependencies.
12881 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"'
12883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12886 # Archives containing C++ object files must be created using
12887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12890 icpc* | ecpc* )
12891 # Intel C++
12892 with_gnu_ld=yes
12893 # version 8.0 and above of icpc choke on multiply defined symbols
12894 # if we add $predep_objects and $postdep_objects, however 7.1 and
12895 # earlier do not add the objects themselves.
12896 case `$CC -V 2>&1` in
12897 *"Version 7."*)
12898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12899 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'
12901 *) # Version 8.0 or newer
12902 tmp_idyn=
12903 case $host_cpu in
12904 ia64*) tmp_idyn=' -i_dynamic';;
12905 esac
12906 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 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'
12909 esac
12910 archive_cmds_need_lc_CXX=no
12911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12915 pgCC* | pgcpp*)
12916 # Portland Group C++ compiler
12917 case `$CC -V` in
12918 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12919 prelink_cmds_CXX='tpldir=Template.dir~
12920 rm -rf $tpldir~
12921 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12922 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12923 old_archive_cmds_CXX='tpldir=Template.dir~
12924 rm -rf $tpldir~
12925 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12926 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12927 $RANLIB $oldlib'
12928 archive_cmds_CXX='tpldir=Template.dir~
12929 rm -rf $tpldir~
12930 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12931 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12932 archive_expsym_cmds_CXX='tpldir=Template.dir~
12933 rm -rf $tpldir~
12934 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12935 $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'
12937 *) # Version 6 and above use weak symbols
12938 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12939 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'
12941 esac
12943 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12945 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'
12947 cxx*)
12948 # Compaq C++
12949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 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'
12952 runpath_var=LD_RUN_PATH
12953 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12954 hardcode_libdir_separator_CXX=:
12956 # Commands to make compiler produce verbose output that lists
12957 # what "hidden" libraries, object files and flags are used when
12958 # linking a shared library.
12960 # There doesn't appear to be a way to prevent this compiler from
12961 # explicitly linking system object files so we need to strip them
12962 # from the output so that they don't get included in the library
12963 # dependencies.
12964 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'
12966 xl* | mpixl* | bgxl*)
12967 # IBM XL 8.0 on PPC, with GNU ld
12968 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12970 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 if test "x$supports_anon_versioning" = xyes; then
12972 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12973 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12974 echo "local: *; };" >> $output_objdir/$libname.ver~
12975 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12979 case `$CC -V 2>&1 | sed 5q` in
12980 *Sun\ C*)
12981 # Sun C++ 5.9
12982 no_undefined_flag_CXX=' -zdefs'
12983 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12984 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'
12985 hardcode_libdir_flag_spec_CXX='-R$libdir'
12986 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'
12987 compiler_needs_object_CXX=yes
12989 # Not sure whether something based on
12990 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12991 # would be better.
12992 output_verbose_link_cmd='func_echo_all'
12994 # Archives containing C++ object files must be created using
12995 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12996 # necessary to make sure instantiated templates are included
12997 # in the archive.
12998 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13000 esac
13002 esac
13005 lynxos*)
13006 # FIXME: insert proper C++ library support
13007 ld_shlibs_CXX=no
13010 m88k*)
13011 # FIXME: insert proper C++ library support
13012 ld_shlibs_CXX=no
13015 mvs*)
13016 case $cc_basename in
13017 cxx*)
13018 # FIXME: insert proper C++ library support
13019 ld_shlibs_CXX=no
13022 # FIXME: insert proper C++ library support
13023 ld_shlibs_CXX=no
13025 esac
13028 netbsd*)
13029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13030 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13031 wlarc=
13032 hardcode_libdir_flag_spec_CXX='-R$libdir'
13033 hardcode_direct_CXX=yes
13034 hardcode_shlibpath_var_CXX=no
13036 # Workaround some broken pre-1.5 toolchains
13037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13040 *nto* | *qnx*)
13041 ld_shlibs_CXX=yes
13044 openbsd2*)
13045 # C++ shared libraries are fairly broken
13046 ld_shlibs_CXX=no
13049 openbsd*)
13050 if test -f /usr/libexec/ld.so; then
13051 hardcode_direct_CXX=yes
13052 hardcode_shlibpath_var_CXX=no
13053 hardcode_direct_absolute_CXX=yes
13054 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13057 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13058 export_dynamic_flag_spec_CXX='${wl}-E'
13059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13061 output_verbose_link_cmd=func_echo_all
13062 else
13063 ld_shlibs_CXX=no
13067 osf3* | osf4* | osf5*)
13068 case $cc_basename in
13069 KCC*)
13070 # Kuck and Associates, Inc. (KAI) C++ Compiler
13072 # KCC will only create a shared library if the output file
13073 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13074 # to its proper name (with version) after linking.
13075 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'
13077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13078 hardcode_libdir_separator_CXX=:
13080 # Archives containing C++ object files must be created using
13081 # the KAI C++ compiler.
13082 case $host in
13083 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13084 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13085 esac
13087 RCC*)
13088 # Rational C++ 2.4.1
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13092 cxx*)
13093 case $host in
13094 osf3*)
13095 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13096 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'
13097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13100 allow_undefined_flag_CXX=' -expect_unresolved \*'
13101 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'
13102 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13103 echo "-hidden">> $lib.exp~
13104 $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~
13105 $RM $lib.exp'
13106 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13108 esac
13110 hardcode_libdir_separator_CXX=:
13112 # Commands to make compiler produce verbose output that lists
13113 # what "hidden" libraries, object files and flags are used when
13114 # linking a shared library.
13116 # There doesn't appear to be a way to prevent this compiler from
13117 # explicitly linking system object files so we need to strip them
13118 # from the output so that they don't get included in the library
13119 # dependencies.
13120 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"'
13123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13124 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13125 case $host in
13126 osf3*)
13127 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'
13130 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'
13132 esac
13134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13135 hardcode_libdir_separator_CXX=:
13137 # Commands to make compiler produce verbose output that lists
13138 # what "hidden" libraries, object files and flags are used when
13139 # linking a shared library.
13140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13142 else
13143 # FIXME: insert proper C++ library support
13144 ld_shlibs_CXX=no
13147 esac
13150 psos*)
13151 # FIXME: insert proper C++ library support
13152 ld_shlibs_CXX=no
13155 sunos4*)
13156 case $cc_basename in
13157 CC*)
13158 # Sun C++ 4.x
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13162 lcc*)
13163 # Lucid
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13168 # FIXME: insert proper C++ library support
13169 ld_shlibs_CXX=no
13171 esac
13174 solaris*)
13175 case $cc_basename in
13176 CC*)
13177 # Sun C++ 4.2, 5.x and Centerline C++
13178 archive_cmds_need_lc_CXX=yes
13179 no_undefined_flag_CXX=' -zdefs'
13180 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13182 $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'
13184 hardcode_libdir_flag_spec_CXX='-R$libdir'
13185 hardcode_shlibpath_var_CXX=no
13186 case $host_os in
13187 solaris2.[0-5] | solaris2.[0-5].*) ;;
13189 # The compiler driver will combine and reorder linker options,
13190 # but understands `-z linker_flag'.
13191 # Supported since Solaris 2.6 (maybe 2.5.1?)
13192 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13194 esac
13195 link_all_deplibs_CXX=yes
13197 output_verbose_link_cmd='func_echo_all'
13199 # Archives containing C++ object files must be created using
13200 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13201 # necessary to make sure instantiated templates are included
13202 # in the archive.
13203 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13205 gcx*)
13206 # Green Hills C++ Compiler
13207 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13209 # The C++ compiler must be used to create the archive.
13210 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13213 # GNU C++ compiler with Solaris linker
13214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13215 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13216 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13217 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13218 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13219 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13221 # Commands to make compiler produce verbose output that lists
13222 # what "hidden" libraries, object files and flags are used when
13223 # linking a shared library.
13224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13225 else
13226 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13227 # platform.
13228 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13229 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13230 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13232 # Commands to make compiler produce verbose output that lists
13233 # what "hidden" libraries, object files and flags are used when
13234 # linking a shared library.
13235 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13238 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13239 case $host_os in
13240 solaris2.[0-5] | solaris2.[0-5].*) ;;
13242 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13244 esac
13247 esac
13250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13251 no_undefined_flag_CXX='${wl}-z,text'
13252 archive_cmds_need_lc_CXX=no
13253 hardcode_shlibpath_var_CXX=no
13254 runpath_var='LD_RUN_PATH'
13256 case $cc_basename in
13257 CC*)
13258 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13259 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13263 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13265 esac
13268 sysv5* | sco3.2v5* | sco5v6*)
13269 # Note: We can NOT use -z defs as we might desire, because we do not
13270 # link with -lc, and that would cause any symbols used from libc to
13271 # always be unresolved, which means just about no library would
13272 # ever link correctly. If we're not using GNU ld we use -z text
13273 # though, which does catch some bad symbols but isn't as heavy-handed
13274 # as -z defs.
13275 no_undefined_flag_CXX='${wl}-z,text'
13276 allow_undefined_flag_CXX='${wl}-z,nodefs'
13277 archive_cmds_need_lc_CXX=no
13278 hardcode_shlibpath_var_CXX=no
13279 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13280 hardcode_libdir_separator_CXX=':'
13281 link_all_deplibs_CXX=yes
13282 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13283 runpath_var='LD_RUN_PATH'
13285 case $cc_basename in
13286 CC*)
13287 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13288 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13289 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13290 '"$old_archive_cmds_CXX"
13291 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13292 '"$reload_cmds_CXX"
13295 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 esac
13301 tandem*)
13302 case $cc_basename in
13303 NCC*)
13304 # NonStop-UX NCC 3.20
13305 # FIXME: insert proper C++ library support
13306 ld_shlibs_CXX=no
13309 # FIXME: insert proper C++ library support
13310 ld_shlibs_CXX=no
13312 esac
13315 vxworks*)
13316 # FIXME: insert proper C++ library support
13317 ld_shlibs_CXX=no
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13324 esac
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13327 $as_echo "$ld_shlibs_CXX" >&6; }
13328 test "$ld_shlibs_CXX" = no && can_build_shared=no
13330 GCC_CXX="$GXX"
13331 LD_CXX="$LD"
13333 ## CAVEAT EMPTOR:
13334 ## There is no encapsulation within the following macros, do not change
13335 ## the running order or otherwise move them around unless you know exactly
13336 ## what you are doing...
13337 # Dependencies to place before and after the object being linked:
13338 predep_objects_CXX=
13339 postdep_objects_CXX=
13340 predeps_CXX=
13341 postdeps_CXX=
13342 compiler_lib_search_path_CXX=
13344 cat > conftest.$ac_ext <<_LT_EOF
13345 class Foo
13347 public:
13348 Foo (void) { a = 0; }
13349 private:
13350 int a;
13352 _LT_EOF
13354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13355 (eval $ac_compile) 2>&5
13356 ac_status=$?
13357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13358 test $ac_status = 0; }; then
13359 # Parse the compiler output and extract the necessary
13360 # objects, libraries and library flags.
13362 # Sentinel used to keep track of whether or not we are before
13363 # the conftest object file.
13364 pre_test_object_deps_done=no
13366 for p in `eval "$output_verbose_link_cmd"`; do
13367 case $p in
13369 -L* | -R* | -l*)
13370 # Some compilers place space between "-{L,R}" and the path.
13371 # Remove the space.
13372 if test $p = "-L" ||
13373 test $p = "-R"; then
13374 prev=$p
13375 continue
13376 else
13377 prev=
13380 if test "$pre_test_object_deps_done" = no; then
13381 case $p in
13382 -L* | -R*)
13383 # Internal compiler library paths should come after those
13384 # provided the user. The postdeps already come after the
13385 # user supplied libs so there is no need to process them.
13386 if test -z "$compiler_lib_search_path_CXX"; then
13387 compiler_lib_search_path_CXX="${prev}${p}"
13388 else
13389 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13392 # The "-l" case would never come before the object being
13393 # linked, so don't bother handling this case.
13394 esac
13395 else
13396 if test -z "$postdeps_CXX"; then
13397 postdeps_CXX="${prev}${p}"
13398 else
13399 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13404 *.$objext)
13405 # This assumes that the test object file only shows up
13406 # once in the compiler output.
13407 if test "$p" = "conftest.$objext"; then
13408 pre_test_object_deps_done=yes
13409 continue
13412 if test "$pre_test_object_deps_done" = no; then
13413 if test -z "$predep_objects_CXX"; then
13414 predep_objects_CXX="$p"
13415 else
13416 predep_objects_CXX="$predep_objects_CXX $p"
13418 else
13419 if test -z "$postdep_objects_CXX"; then
13420 postdep_objects_CXX="$p"
13421 else
13422 postdep_objects_CXX="$postdep_objects_CXX $p"
13427 *) ;; # Ignore the rest.
13429 esac
13430 done
13432 # Clean up.
13433 rm -f a.out a.exe
13434 else
13435 echo "libtool.m4: error: problem compiling CXX test program"
13438 $RM -f confest.$objext
13440 # PORTME: override above test on systems where it is broken
13441 case $host_os in
13442 interix[3-9]*)
13443 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13444 # hack all around it, let's just trust "g++" to DTRT.
13445 predep_objects_CXX=
13446 postdep_objects_CXX=
13447 postdeps_CXX=
13450 linux*)
13451 case `$CC -V 2>&1 | sed 5q` in
13452 *Sun\ C*)
13453 # Sun C++ 5.9
13455 # The more standards-conforming stlport4 library is
13456 # incompatible with the Cstd library. Avoid specifying
13457 # it if it's in CXXFLAGS. Ignore libCrun as
13458 # -library=stlport4 depends on it.
13459 case " $CXX $CXXFLAGS " in
13460 *" -library=stlport4 "*)
13461 solaris_use_stlport4=yes
13463 esac
13465 if test "$solaris_use_stlport4" != yes; then
13466 postdeps_CXX='-library=Cstd -library=Crun'
13469 esac
13472 solaris*)
13473 case $cc_basename in
13474 CC*)
13475 # The more standards-conforming stlport4 library is
13476 # incompatible with the Cstd library. Avoid specifying
13477 # it if it's in CXXFLAGS. Ignore libCrun as
13478 # -library=stlport4 depends on it.
13479 case " $CXX $CXXFLAGS " in
13480 *" -library=stlport4 "*)
13481 solaris_use_stlport4=yes
13483 esac
13485 # Adding this requires a known-good setup of shared libraries for
13486 # Sun compiler versions before 5.6, else PIC objects from an old
13487 # archive will be linked into the output, leading to subtle bugs.
13488 if test "$solaris_use_stlport4" != yes; then
13489 postdeps_CXX='-library=Cstd -library=Crun'
13492 esac
13494 esac
13497 case " $postdeps_CXX " in
13498 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13499 esac
13500 compiler_lib_search_dirs_CXX=
13501 if test -n "${compiler_lib_search_path_CXX}"; then
13502 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13535 lt_prog_compiler_wl_CXX=
13536 lt_prog_compiler_pic_CXX=
13537 lt_prog_compiler_static_CXX=
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13540 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13542 # C++ specific cases for pic, static, wl, etc.
13543 if test "$GXX" = yes; then
13544 lt_prog_compiler_wl_CXX='-Wl,'
13545 lt_prog_compiler_static_CXX='-static'
13547 case $host_os in
13548 aix*)
13549 # All AIX code is PIC.
13550 if test "$host_cpu" = ia64; then
13551 # AIX 5 now supports IA64 processor
13552 lt_prog_compiler_static_CXX='-Bstatic'
13554 lt_prog_compiler_pic_CXX='-fPIC'
13557 amigaos*)
13558 case $host_cpu in
13559 powerpc)
13560 # see comment about AmigaOS4 .so support
13561 lt_prog_compiler_pic_CXX='-fPIC'
13563 m68k)
13564 # FIXME: we need at least 68020 code to build shared libraries, but
13565 # adding the `-m68020' flag to GCC prevents building anything better,
13566 # like `-m68040'.
13567 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13569 esac
13572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13573 # PIC is the default for these OSes.
13575 mingw* | cygwin* | os2* | pw32* | cegcc*)
13576 # This hack is so that the source file can tell whether it is being
13577 # built for inclusion in a dll (and should export symbols for example).
13578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13579 # (--disable-auto-import) libraries
13580 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13582 darwin* | rhapsody*)
13583 # PIC is the default on this platform
13584 # Common symbols not allowed in MH_DYLIB files
13585 lt_prog_compiler_pic_CXX='-fno-common'
13587 *djgpp*)
13588 # DJGPP does not support shared libraries at all
13589 lt_prog_compiler_pic_CXX=
13591 haiku*)
13592 # PIC is the default for Haiku.
13593 # The "-static" flag exists, but is broken.
13594 lt_prog_compiler_static_CXX=
13596 interix[3-9]*)
13597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13598 # Instead, we relocate shared libraries at runtime.
13600 sysv4*MP*)
13601 if test -d /usr/nec; then
13602 lt_prog_compiler_pic_CXX=-Kconform_pic
13605 hpux*)
13606 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13607 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13608 # sets the default TLS model and affects inlining.
13609 case $host_cpu in
13610 hppa*64*)
13613 lt_prog_compiler_pic_CXX='-fPIC'
13615 esac
13617 *qnx* | *nto*)
13618 # QNX uses GNU C++, but need to define -shared option too, otherwise
13619 # it will coredump.
13620 lt_prog_compiler_pic_CXX='-fPIC -shared'
13623 lt_prog_compiler_pic_CXX='-fPIC'
13625 esac
13626 else
13627 case $host_os in
13628 aix[4-9]*)
13629 # All AIX code is PIC.
13630 if test "$host_cpu" = ia64; then
13631 # AIX 5 now supports IA64 processor
13632 lt_prog_compiler_static_CXX='-Bstatic'
13633 else
13634 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13637 chorus*)
13638 case $cc_basename in
13639 cxch68*)
13640 # Green Hills C++ Compiler
13641 # _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"
13643 esac
13645 dgux*)
13646 case $cc_basename in
13647 ec++*)
13648 lt_prog_compiler_pic_CXX='-KPIC'
13650 ghcx*)
13651 # Green Hills C++ Compiler
13652 lt_prog_compiler_pic_CXX='-pic'
13656 esac
13658 freebsd* | dragonfly*)
13659 # FreeBSD uses GNU C++
13661 hpux9* | hpux10* | hpux11*)
13662 case $cc_basename in
13663 CC*)
13664 lt_prog_compiler_wl_CXX='-Wl,'
13665 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13666 if test "$host_cpu" != ia64; then
13667 lt_prog_compiler_pic_CXX='+Z'
13670 aCC*)
13671 lt_prog_compiler_wl_CXX='-Wl,'
13672 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13673 case $host_cpu in
13674 hppa*64*|ia64*)
13675 # +Z the default
13678 lt_prog_compiler_pic_CXX='+Z'
13680 esac
13684 esac
13686 interix*)
13687 # This is c89, which is MS Visual C++ (no shared libs)
13688 # Anyone wants to do a port?
13690 irix5* | irix6* | nonstopux*)
13691 case $cc_basename in
13692 CC*)
13693 lt_prog_compiler_wl_CXX='-Wl,'
13694 lt_prog_compiler_static_CXX='-non_shared'
13695 # CC pic flag -KPIC is the default.
13699 esac
13701 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13702 case $cc_basename in
13703 KCC*)
13704 # KAI C++ Compiler
13705 lt_prog_compiler_wl_CXX='--backend -Wl,'
13706 lt_prog_compiler_pic_CXX='-fPIC'
13708 ecpc* )
13709 # old Intel C++ for x86_64 which still supported -KPIC.
13710 lt_prog_compiler_wl_CXX='-Wl,'
13711 lt_prog_compiler_pic_CXX='-KPIC'
13712 lt_prog_compiler_static_CXX='-static'
13714 icpc* )
13715 # Intel C++, used to be incompatible with GCC.
13716 # ICC 10 doesn't accept -KPIC any more.
13717 lt_prog_compiler_wl_CXX='-Wl,'
13718 lt_prog_compiler_pic_CXX='-fPIC'
13719 lt_prog_compiler_static_CXX='-static'
13721 pgCC* | pgcpp*)
13722 # Portland Group C++ compiler
13723 lt_prog_compiler_wl_CXX='-Wl,'
13724 lt_prog_compiler_pic_CXX='-fpic'
13725 lt_prog_compiler_static_CXX='-Bstatic'
13727 cxx*)
13728 # Compaq C++
13729 # Make sure the PIC flag is empty. It appears that all Alpha
13730 # Linux and Compaq Tru64 Unix objects are PIC.
13731 lt_prog_compiler_pic_CXX=
13732 lt_prog_compiler_static_CXX='-non_shared'
13734 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13735 # IBM XL 8.0, 9.0 on PPC and BlueGene
13736 lt_prog_compiler_wl_CXX='-Wl,'
13737 lt_prog_compiler_pic_CXX='-qpic'
13738 lt_prog_compiler_static_CXX='-qstaticlink'
13741 case `$CC -V 2>&1 | sed 5q` in
13742 *Sun\ C*)
13743 # Sun C++ 5.9
13744 lt_prog_compiler_pic_CXX='-KPIC'
13745 lt_prog_compiler_static_CXX='-Bstatic'
13746 lt_prog_compiler_wl_CXX='-Qoption ld '
13748 esac
13750 esac
13752 lynxos*)
13754 m88k*)
13756 mvs*)
13757 case $cc_basename in
13758 cxx*)
13759 lt_prog_compiler_pic_CXX='-W c,exportall'
13763 esac
13765 netbsd*)
13767 *qnx* | *nto*)
13768 # QNX uses GNU C++, but need to define -shared option too, otherwise
13769 # it will coredump.
13770 lt_prog_compiler_pic_CXX='-fPIC -shared'
13772 osf3* | osf4* | osf5*)
13773 case $cc_basename in
13774 KCC*)
13775 lt_prog_compiler_wl_CXX='--backend -Wl,'
13777 RCC*)
13778 # Rational C++ 2.4.1
13779 lt_prog_compiler_pic_CXX='-pic'
13781 cxx*)
13782 # Digital/Compaq C++
13783 lt_prog_compiler_wl_CXX='-Wl,'
13784 # Make sure the PIC flag is empty. It appears that all Alpha
13785 # Linux and Compaq Tru64 Unix objects are PIC.
13786 lt_prog_compiler_pic_CXX=
13787 lt_prog_compiler_static_CXX='-non_shared'
13791 esac
13793 psos*)
13795 solaris*)
13796 case $cc_basename in
13797 CC*)
13798 # Sun C++ 4.2, 5.x and Centerline C++
13799 lt_prog_compiler_pic_CXX='-KPIC'
13800 lt_prog_compiler_static_CXX='-Bstatic'
13801 lt_prog_compiler_wl_CXX='-Qoption ld '
13803 gcx*)
13804 # Green Hills C++ Compiler
13805 lt_prog_compiler_pic_CXX='-PIC'
13809 esac
13811 sunos4*)
13812 case $cc_basename in
13813 CC*)
13814 # Sun C++ 4.x
13815 lt_prog_compiler_pic_CXX='-pic'
13816 lt_prog_compiler_static_CXX='-Bstatic'
13818 lcc*)
13819 # Lucid
13820 lt_prog_compiler_pic_CXX='-pic'
13824 esac
13826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13827 case $cc_basename in
13828 CC*)
13829 lt_prog_compiler_wl_CXX='-Wl,'
13830 lt_prog_compiler_pic_CXX='-KPIC'
13831 lt_prog_compiler_static_CXX='-Bstatic'
13833 esac
13835 tandem*)
13836 case $cc_basename in
13837 NCC*)
13838 # NonStop-UX NCC 3.20
13839 lt_prog_compiler_pic_CXX='-KPIC'
13843 esac
13845 vxworks*)
13848 lt_prog_compiler_can_build_shared_CXX=no
13850 esac
13853 case $host_os in
13854 # For platforms which do not support PIC, -DPIC is meaningless:
13855 *djgpp*)
13856 lt_prog_compiler_pic_CXX=
13859 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13861 esac
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13863 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13868 # Check to make sure the PIC flag actually works.
13870 if test -n "$lt_prog_compiler_pic_CXX"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13873 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 lt_cv_prog_compiler_pic_works_CXX=no
13877 ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13879 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13880 # Insert the option either (1) after the last *FLAGS variable, or
13881 # (2) before a word containing "conftest.", or (3) at the end.
13882 # Note that $ac_compile itself does not contain backslashes and begins
13883 # with a dollar sign (not a hyphen), so the echo should work correctly.
13884 # The option is referenced via a variable to avoid confusing sed.
13885 lt_compile=`echo "$ac_compile" | $SED \
13886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13888 -e 's:$: $lt_compiler_flag:'`
13889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13890 (eval "$lt_compile" 2>conftest.err)
13891 ac_status=$?
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 if (exit $ac_status) && test -s "$ac_outfile"; then
13895 # The compiler can only warn and ignore the option if not recognized
13896 # So say no if there are warnings other than the usual output.
13897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13900 lt_cv_prog_compiler_pic_works_CXX=yes
13903 $RM conftest*
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13907 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13909 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13910 case $lt_prog_compiler_pic_CXX in
13911 "" | " "*) ;;
13912 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13913 esac
13914 else
13915 lt_prog_compiler_pic_CXX=
13916 lt_prog_compiler_can_build_shared_CXX=no
13924 # Check to make sure the static flag actually works.
13926 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13928 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13929 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 lt_cv_prog_compiler_static_works_CXX=no
13933 save_LDFLAGS="$LDFLAGS"
13934 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13937 # The linker can only warn and ignore the option if not recognized
13938 # So say no if there are warnings
13939 if test -s conftest.err; then
13940 # Append any errors to the config.log.
13941 cat conftest.err 1>&5
13942 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13944 if diff conftest.exp conftest.er2 >/dev/null; then
13945 lt_cv_prog_compiler_static_works_CXX=yes
13947 else
13948 lt_cv_prog_compiler_static_works_CXX=yes
13951 $RM -r conftest*
13952 LDFLAGS="$save_LDFLAGS"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13956 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13958 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13960 else
13961 lt_prog_compiler_static_CXX=
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13968 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13969 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13970 $as_echo_n "(cached) " >&6
13971 else
13972 lt_cv_prog_compiler_c_o_CXX=no
13973 $RM -r conftest 2>/dev/null
13974 mkdir conftest
13975 cd conftest
13976 mkdir out
13977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13979 lt_compiler_flag="-o out/conftest2.$ac_objext"
13980 # Insert the option either (1) after the last *FLAGS variable, or
13981 # (2) before a word containing "conftest.", or (3) at the end.
13982 # Note that $ac_compile itself does not contain backslashes and begins
13983 # with a dollar sign (not a hyphen), so the echo should work correctly.
13984 lt_compile=`echo "$ac_compile" | $SED \
13985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13987 -e 's:$: $lt_compiler_flag:'`
13988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13989 (eval "$lt_compile" 2>out/conftest.err)
13990 ac_status=$?
13991 cat out/conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13994 then
13995 # The compiler can only warn and ignore the option if not recognized
13996 # So say no if there are warnings
13997 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14000 lt_cv_prog_compiler_c_o_CXX=yes
14003 chmod u+w . 2>&5
14004 $RM conftest*
14005 # SGI C++ compiler will create directory out/ii_files/ for
14006 # template instantiation
14007 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14008 $RM out/* && rmdir out
14009 cd ..
14010 $RM -r conftest
14011 $RM conftest*
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14015 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14021 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_c_o_CXX=no
14025 $RM -r conftest 2>/dev/null
14026 mkdir conftest
14027 cd conftest
14028 mkdir out
14029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14031 lt_compiler_flag="-o out/conftest2.$ac_objext"
14032 # Insert the option either (1) after the last *FLAGS variable, or
14033 # (2) before a word containing "conftest.", or (3) at the end.
14034 # Note that $ac_compile itself does not contain backslashes and begins
14035 # with a dollar sign (not a hyphen), so the echo should work correctly.
14036 lt_compile=`echo "$ac_compile" | $SED \
14037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14039 -e 's:$: $lt_compiler_flag:'`
14040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14041 (eval "$lt_compile" 2>out/conftest.err)
14042 ac_status=$?
14043 cat out/conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14046 then
14047 # The compiler can only warn and ignore the option if not recognized
14048 # So say no if there are warnings
14049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14052 lt_cv_prog_compiler_c_o_CXX=yes
14055 chmod u+w . 2>&5
14056 $RM conftest*
14057 # SGI C++ compiler will create directory out/ii_files/ for
14058 # template instantiation
14059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14060 $RM out/* && rmdir out
14061 cd ..
14062 $RM -r conftest
14063 $RM conftest*
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14067 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14072 hard_links="nottested"
14073 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14074 # do not overwrite the value of need_locks provided by the user
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14076 $as_echo_n "checking if we can lock with hard links... " >&6; }
14077 hard_links=yes
14078 $RM conftest*
14079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14080 touch conftest.a
14081 ln conftest.a conftest.b 2>&5 || hard_links=no
14082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14084 $as_echo "$hard_links" >&6; }
14085 if test "$hard_links" = no; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14087 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14088 need_locks=warn
14090 else
14091 need_locks=no
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14097 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14099 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14100 case $host_os in
14101 aix[4-9]*)
14102 # If we're using GNU nm, then we don't want the "-C" option.
14103 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14104 # Also, AIX nm treats weak defined symbols like other global defined
14105 # symbols, whereas GNU nm marks them as "W".
14106 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14107 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'
14108 else
14109 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'
14112 pw32*)
14113 export_symbols_cmds_CXX="$ltdll_cmds"
14115 cygwin* | mingw* | cegcc*)
14116 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'
14119 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14121 esac
14122 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14125 $as_echo "$ld_shlibs_CXX" >&6; }
14126 test "$ld_shlibs_CXX" = no && can_build_shared=no
14128 with_gnu_ld_CXX=$with_gnu_ld
14136 # Do we need to explicitly link libc?
14138 case "x$archive_cmds_need_lc_CXX" in
14139 x|xyes)
14140 # Assume -lc should be added
14141 archive_cmds_need_lc_CXX=yes
14143 if test "$enable_shared" = yes && test "$GCC" = yes; then
14144 case $archive_cmds_CXX in
14145 *'~'*)
14146 # FIXME: we may have to deal with multi-command sequences.
14148 '$CC '*)
14149 # Test whether the compiler implicitly links with -lc since on some
14150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14151 # to ld, don't add -lc before -lgcc.
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14154 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 $RM conftest*
14158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14161 (eval $ac_compile) 2>&5
14162 ac_status=$?
14163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14164 test $ac_status = 0; } 2>conftest.err; then
14165 soname=conftest
14166 lib=conftest
14167 libobjs=conftest.$ac_objext
14168 deplibs=
14169 wl=$lt_prog_compiler_wl_CXX
14170 pic_flag=$lt_prog_compiler_pic_CXX
14171 compiler_flags=-v
14172 linker_flags=-v
14173 verstring=
14174 output_objdir=.
14175 libname=conftest
14176 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14177 allow_undefined_flag_CXX=
14178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14179 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14180 ac_status=$?
14181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14182 test $ac_status = 0; }
14183 then
14184 lt_cv_archive_cmds_need_lc_CXX=no
14185 else
14186 lt_cv_archive_cmds_need_lc_CXX=yes
14188 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14189 else
14190 cat conftest.err 1>&5
14192 $RM conftest*
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14196 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14197 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14199 esac
14202 esac
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14268 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14270 library_names_spec=
14271 libname_spec='lib$name'
14272 soname_spec=
14273 shrext_cmds=".so"
14274 postinstall_cmds=
14275 postuninstall_cmds=
14276 finish_cmds=
14277 finish_eval=
14278 shlibpath_var=
14279 shlibpath_overrides_runpath=unknown
14280 version_type=none
14281 dynamic_linker="$host_os ld.so"
14282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14283 need_lib_prefix=unknown
14284 hardcode_into_libs=no
14286 # when you set need_version to no, make sure it does not cause -set_version
14287 # flags to be left without arguments
14288 need_version=unknown
14290 case $host_os in
14291 aix3*)
14292 version_type=linux
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14294 shlibpath_var=LIBPATH
14296 # AIX 3 has no versioning support, so we append a major version to the name.
14297 soname_spec='${libname}${release}${shared_ext}$major'
14300 aix[4-9]*)
14301 version_type=linux
14302 need_lib_prefix=no
14303 need_version=no
14304 hardcode_into_libs=yes
14305 if test "$host_cpu" = ia64; then
14306 # AIX 5 supports IA64
14307 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14308 shlibpath_var=LD_LIBRARY_PATH
14309 else
14310 # With GCC up to 2.95.x, collect2 would create an import file
14311 # for dependence libraries. The import file would start with
14312 # the line `#! .'. This would cause the generated library to
14313 # depend on `.', always an invalid library. This was fixed in
14314 # development snapshots of GCC prior to 3.0.
14315 case $host_os in
14316 aix4 | aix4.[01] | aix4.[01].*)
14317 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14318 echo ' yes '
14319 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14321 else
14322 can_build_shared=no
14325 esac
14326 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14327 # soname into executable. Probably we can add versioning support to
14328 # collect2, so additional links can be useful in future.
14329 if test "$aix_use_runtimelinking" = yes; then
14330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14331 # instead of lib<name>.a to let people know that these are not
14332 # typical AIX shared libraries.
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 else
14335 # We preserve .a as extension for shared libraries through AIX4.2
14336 # and later when we are not doing run time linking.
14337 library_names_spec='${libname}${release}.a $libname.a'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14340 shlibpath_var=LIBPATH
14344 amigaos*)
14345 case $host_cpu in
14346 powerpc)
14347 # Since July 2007 AmigaOS4 officially supports .so libraries.
14348 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351 m68k)
14352 library_names_spec='$libname.ixlibrary $libname.a'
14353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14354 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'
14356 esac
14359 beos*)
14360 library_names_spec='${libname}${shared_ext}'
14361 dynamic_linker="$host_os ld.so"
14362 shlibpath_var=LIBRARY_PATH
14365 bsdi[45]*)
14366 version_type=linux
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14374 # the default ld.so.conf also contains /usr/contrib/lib and
14375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14376 # libtool to hard-code these into programs
14379 cygwin* | mingw* | pw32* | cegcc*)
14380 version_type=windows
14381 shrext_cmds=".dll"
14382 need_version=no
14383 need_lib_prefix=no
14385 case $GCC,$host_os in
14386 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14387 library_names_spec='$libname.dll.a'
14388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14389 postinstall_cmds='base_file=`basename \${file}`~
14390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14391 dldir=$destdir/`dirname \$dlpath`~
14392 test -d \$dldir || mkdir -p \$dldir~
14393 $install_prog $dir/$dlname \$dldir/$dlname~
14394 chmod a+x \$dldir/$dlname~
14395 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14396 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14399 dlpath=$dir/\$dldll~
14400 $RM \$dlpath'
14401 shlibpath_overrides_runpath=yes
14403 case $host_os in
14404 cygwin*)
14405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14409 mingw* | cegcc*)
14410 # MinGW DLLs use traditional 'lib' prefix
14411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14413 pw32*)
14414 # pw32 DLLs use 'pw' prefix rather than 'lib'
14415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14417 esac
14421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14423 esac
14424 dynamic_linker='Win32 ld.exe'
14425 # FIXME: first we should search . and the directory the executable is in
14426 shlibpath_var=PATH
14429 darwin* | rhapsody*)
14430 dynamic_linker="$host_os dyld"
14431 version_type=darwin
14432 need_lib_prefix=no
14433 need_version=no
14434 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14435 soname_spec='${libname}${release}${major}$shared_ext'
14436 shlibpath_overrides_runpath=yes
14437 shlibpath_var=DYLD_LIBRARY_PATH
14438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14443 dgux*)
14444 version_type=linux
14445 need_lib_prefix=no
14446 need_version=no
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 shlibpath_var=LD_LIBRARY_PATH
14452 freebsd* | dragonfly*)
14453 # DragonFly does not have aout. When/if they implement a new
14454 # versioning mechanism, adjust this.
14455 if test -x /usr/bin/objformat; then
14456 objformat=`/usr/bin/objformat`
14457 else
14458 case $host_os in
14459 freebsd[23].*) objformat=aout ;;
14460 *) objformat=elf ;;
14461 esac
14463 version_type=freebsd-$objformat
14464 case $version_type in
14465 freebsd-elf*)
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14467 need_version=no
14468 need_lib_prefix=no
14470 freebsd-*)
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14472 need_version=yes
14474 esac
14475 shlibpath_var=LD_LIBRARY_PATH
14476 case $host_os in
14477 freebsd2.*)
14478 shlibpath_overrides_runpath=yes
14480 freebsd3.[01]* | freebsdelf3.[01]*)
14481 shlibpath_overrides_runpath=yes
14482 hardcode_into_libs=yes
14484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14486 shlibpath_overrides_runpath=no
14487 hardcode_into_libs=yes
14489 *) # from 4.6 on, and DragonFly
14490 shlibpath_overrides_runpath=yes
14491 hardcode_into_libs=yes
14493 esac
14496 gnu*)
14497 version_type=linux
14498 need_lib_prefix=no
14499 need_version=no
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 hardcode_into_libs=yes
14506 haiku*)
14507 version_type=linux
14508 need_lib_prefix=no
14509 need_version=no
14510 dynamic_linker="$host_os runtime_loader"
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14516 hardcode_into_libs=yes
14519 hpux9* | hpux10* | hpux11*)
14520 # Give a soname corresponding to the major version so that dld.sl refuses to
14521 # link against other versions.
14522 version_type=sunos
14523 need_lib_prefix=no
14524 need_version=no
14525 case $host_cpu in
14526 ia64*)
14527 shrext_cmds='.so'
14528 hardcode_into_libs=yes
14529 dynamic_linker="$host_os dld.so"
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 if test "X$HPUX_IA64_MODE" = X32; then
14535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14536 else
14537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14541 hppa*64*)
14542 shrext_cmds='.sl'
14543 hardcode_into_libs=yes
14544 dynamic_linker="$host_os dld.sl"
14545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 soname_spec='${libname}${release}${shared_ext}$major'
14549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14553 shrext_cmds='.sl'
14554 dynamic_linker="$host_os dld.sl"
14555 shlibpath_var=SHLIB_PATH
14556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14560 esac
14561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14562 postinstall_cmds='chmod 555 $lib'
14563 # or fails outright, so override atomically:
14564 install_override_mode=555
14567 interix[3-9]*)
14568 version_type=linux
14569 need_lib_prefix=no
14570 need_version=no
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=no
14576 hardcode_into_libs=yes
14579 irix5* | irix6* | nonstopux*)
14580 case $host_os in
14581 nonstopux*) version_type=nonstopux ;;
14583 if test "$lt_cv_prog_gnu_ld" = yes; then
14584 version_type=linux
14585 else
14586 version_type=irix
14587 fi ;;
14588 esac
14589 need_lib_prefix=no
14590 need_version=no
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14593 case $host_os in
14594 irix5* | nonstopux*)
14595 libsuff= shlibsuff=
14598 case $LD in # libtool.m4 will add one of these switches to LD
14599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14600 libsuff= shlibsuff= libmagic=32-bit;;
14601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14602 libsuff=32 shlibsuff=N32 libmagic=N32;;
14603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14605 *) libsuff= shlibsuff= libmagic=never-match;;
14606 esac
14608 esac
14609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14610 shlibpath_overrides_runpath=no
14611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14613 hardcode_into_libs=yes
14616 # No shared lib support for Linux oldld, aout, or coff.
14617 linux*oldld* | linux*aout* | linux*coff*)
14618 dynamic_linker=no
14621 # This must be Linux ELF.
14622 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14623 version_type=linux
14624 need_lib_prefix=no
14625 need_version=no
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14629 shlibpath_var=LD_LIBRARY_PATH
14630 shlibpath_overrides_runpath=no
14632 # Some binutils ld are patched to set DT_RUNPATH
14633 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 lt_cv_shlibpath_overrides_runpath=no
14637 save_LDFLAGS=$LDFLAGS
14638 save_libdir=$libdir
14639 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14640 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14645 main ()
14649 return 0;
14651 _ACEOF
14652 if ac_fn_cxx_try_link "$LINENO"; then :
14653 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14654 lt_cv_shlibpath_overrides_runpath=yes
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659 LDFLAGS=$save_LDFLAGS
14660 libdir=$save_libdir
14664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14666 # This implies no fast_install, which is unacceptable.
14667 # Some rework will be needed to allow for fast_install
14668 # before this can be enabled.
14669 hardcode_into_libs=yes
14671 # Append ld.so.conf contents to the search path
14672 if test -f /etc/ld.so.conf; then
14673 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' ' '`
14674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14677 # We used to test for /lib/ld.so.1 and disable shared libraries on
14678 # powerpc, because MkLinux only supported shared libraries with the
14679 # GNU dynamic linker. Since this was broken with cross compilers,
14680 # most powerpc-linux boxes support dynamic linking these days and
14681 # people can always --disable-shared, the test was removed, and we
14682 # assume the GNU/Linux dynamic linker is in use.
14683 dynamic_linker='GNU/Linux ld.so'
14686 netbsd*)
14687 version_type=sunos
14688 need_lib_prefix=no
14689 need_version=no
14690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14693 dynamic_linker='NetBSD (a.out) ld.so'
14694 else
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 dynamic_linker='NetBSD ld.elf_so'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 shlibpath_overrides_runpath=yes
14701 hardcode_into_libs=yes
14704 newsos6)
14705 version_type=linux
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 shlibpath_var=LD_LIBRARY_PATH
14708 shlibpath_overrides_runpath=yes
14711 *nto* | *qnx*)
14712 version_type=qnx
14713 need_lib_prefix=no
14714 need_version=no
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 shlibpath_overrides_runpath=no
14719 hardcode_into_libs=yes
14720 dynamic_linker='ldqnx.so'
14723 openbsd*)
14724 version_type=sunos
14725 sys_lib_dlsearch_path_spec="/usr/lib"
14726 need_lib_prefix=no
14727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14728 case $host_os in
14729 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14730 *) need_version=no ;;
14731 esac
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14736 case $host_os in
14737 openbsd2.[89] | openbsd2.[89].*)
14738 shlibpath_overrides_runpath=no
14741 shlibpath_overrides_runpath=yes
14743 esac
14744 else
14745 shlibpath_overrides_runpath=yes
14749 os2*)
14750 libname_spec='$name'
14751 shrext_cmds=".dll"
14752 need_lib_prefix=no
14753 library_names_spec='$libname${shared_ext} $libname.a'
14754 dynamic_linker='OS/2 ld.exe'
14755 shlibpath_var=LIBPATH
14758 osf3* | osf4* | osf5*)
14759 version_type=osf
14760 need_lib_prefix=no
14761 need_version=no
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14769 rdos*)
14770 dynamic_linker=no
14773 solaris*)
14774 version_type=linux
14775 need_lib_prefix=no
14776 need_version=no
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath=yes
14781 hardcode_into_libs=yes
14782 # ldd complains unless libraries are executable
14783 postinstall_cmds='chmod +x $lib'
14786 sunos4*)
14787 version_type=sunos
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 shlibpath_overrides_runpath=yes
14792 if test "$with_gnu_ld" = yes; then
14793 need_lib_prefix=no
14795 need_version=yes
14798 sysv4 | sysv4.3*)
14799 version_type=linux
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 case $host_vendor in
14804 sni)
14805 shlibpath_overrides_runpath=no
14806 need_lib_prefix=no
14807 runpath_var=LD_RUN_PATH
14809 siemens)
14810 need_lib_prefix=no
14812 motorola)
14813 need_lib_prefix=no
14814 need_version=no
14815 shlibpath_overrides_runpath=no
14816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14818 esac
14821 sysv4*MP*)
14822 if test -d /usr/nec ;then
14823 version_type=linux
14824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14825 soname_spec='$libname${shared_ext}.$major'
14826 shlibpath_var=LD_LIBRARY_PATH
14830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14831 version_type=freebsd-elf
14832 need_lib_prefix=no
14833 need_version=no
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 shlibpath_overrides_runpath=yes
14838 hardcode_into_libs=yes
14839 if test "$with_gnu_ld" = yes; then
14840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14841 else
14842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14843 case $host_os in
14844 sco3.2v5*)
14845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14847 esac
14849 sys_lib_dlsearch_path_spec='/usr/lib'
14852 tpf*)
14853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14854 version_type=linux
14855 need_lib_prefix=no
14856 need_version=no
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14863 uts4*)
14864 version_type=linux
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14871 dynamic_linker=no
14873 esac
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14875 $as_echo "$dynamic_linker" >&6; }
14876 test "$dynamic_linker" = no && can_build_shared=no
14878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14879 if test "$GCC" = yes; then
14880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14883 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14884 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14886 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14887 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14928 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14929 hardcode_action_CXX=
14930 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14931 test -n "$runpath_var_CXX" ||
14932 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14934 # We can hardcode non-existent directories.
14935 if test "$hardcode_direct_CXX" != no &&
14936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14937 # have to relink, otherwise we might link with an installed library
14938 # when we should be linking with a yet-to-be-installed one
14939 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14940 test "$hardcode_minus_L_CXX" != no; then
14941 # Linking always hardcodes the temporary library directory.
14942 hardcode_action_CXX=relink
14943 else
14944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14945 hardcode_action_CXX=immediate
14947 else
14948 # We cannot hardcode anything, or else we can only hardcode existing
14949 # directories.
14950 hardcode_action_CXX=unsupported
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14953 $as_echo "$hardcode_action_CXX" >&6; }
14955 if test "$hardcode_action_CXX" = relink ||
14956 test "$inherit_rpath_CXX" = yes; then
14957 # Fast installation is not supported
14958 enable_fast_install=no
14959 elif test "$shlibpath_overrides_runpath" = yes ||
14960 test "$enable_shared" = no; then
14961 # Fast installation is not necessary
14962 enable_fast_install=needless
14971 fi # test -n "$compiler"
14973 CC=$lt_save_CC
14974 LDCXX=$LD
14975 LD=$lt_save_LD
14976 GCC=$lt_save_GCC
14977 with_gnu_ld=$lt_save_with_gnu_ld
14978 lt_cv_path_LDCXX=$lt_cv_path_LD
14979 lt_cv_path_LD=$lt_save_path_LD
14980 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14981 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14982 fi # test "$_lt_caught_CXX_error" != yes
14984 ac_ext=c
14985 ac_cpp='$CPP $CPPFLAGS'
14986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15002 ac_config_commands="$ac_config_commands libtool"
15007 # Only expand once:
15013 XCFLAGS="-Wall -Wextra"
15016 if test "${multilib}" = "yes"; then
15017 multilib_arg="--enable-multilib"
15018 else
15019 multilib_arg=
15022 ac_config_files="$ac_config_files Makefile libmpx.spec"
15024 ac_config_headers="$ac_config_headers config.h"
15026 ac_config_files="$ac_config_files mpxrt/Makefile mpxwrap/Makefile"
15029 cat >confcache <<\_ACEOF
15030 # This file is a shell script that caches the results of configure
15031 # tests run on this system so they can be shared between configure
15032 # scripts and configure runs, see configure's option --config-cache.
15033 # It is not useful on other systems. If it contains results you don't
15034 # want to keep, you may remove or edit it.
15036 # config.status only pays attention to the cache file if you give it
15037 # the --recheck option to rerun configure.
15039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15041 # following values.
15043 _ACEOF
15045 # The following way of writing the cache mishandles newlines in values,
15046 # but we know of no workaround that is simple, portable, and efficient.
15047 # So, we kill variables containing newlines.
15048 # Ultrix sh set writes to stderr and can't be redirected directly,
15049 # and sets the high bit in the cache file unless we assign to the vars.
15051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15052 eval ac_val=\$$ac_var
15053 case $ac_val in #(
15054 *${as_nl}*)
15055 case $ac_var in #(
15056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15058 esac
15059 case $ac_var in #(
15060 _ | IFS | as_nl) ;; #(
15061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15062 *) { eval $ac_var=; unset $ac_var;} ;;
15063 esac ;;
15064 esac
15065 done
15067 (set) 2>&1 |
15068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15069 *${as_nl}ac_space=\ *)
15070 # `set' does not quote correctly, so add quotes: double-quote
15071 # substitution turns \\\\ into \\, and sed turns \\ into \.
15072 sed -n \
15073 "s/'/'\\\\''/g;
15074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15075 ;; #(
15077 # `set' quotes correctly as required by POSIX, so do not add quotes.
15078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15080 esac |
15081 sort
15083 sed '
15084 /^ac_cv_env_/b end
15085 t clear
15086 :clear
15087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15088 t end
15089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15090 :end' >>confcache
15091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15092 if test -w "$cache_file"; then
15093 test "x$cache_file" != "x/dev/null" &&
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15095 $as_echo "$as_me: updating cache $cache_file" >&6;}
15096 cat confcache >$cache_file
15097 else
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15099 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15102 rm -f confcache
15104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15105 # Let make expand exec_prefix.
15106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15108 DEFS=-DHAVE_CONFIG_H
15110 ac_libobjs=
15111 ac_ltlibobjs=
15112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15113 # 1. Remove the extension, and $U if already installed.
15114 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15115 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15116 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15117 # will be set to the directory where LIBOBJS objects are built.
15118 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15119 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15120 done
15121 LIBOBJS=$ac_libobjs
15123 LTLIBOBJS=$ac_ltlibobjs
15126 if test -z "${LIBMPX_SUPPORTED_TRUE}" && test -z "${LIBMPX_SUPPORTED_FALSE}"; then
15127 as_fn_error "conditional \"LIBMPX_SUPPORTED\" was never defined.
15128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130 if test -n "$EXEEXT"; then
15131 am__EXEEXT_TRUE=
15132 am__EXEEXT_FALSE='#'
15133 else
15134 am__EXEEXT_TRUE='#'
15135 am__EXEEXT_FALSE=
15138 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15139 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142 if test -z "${MPX_AS_SUPPORTED_TRUE}" && test -z "${MPX_AS_SUPPORTED_FALSE}"; then
15143 as_fn_error "conditional \"MPX_AS_SUPPORTED\" was never defined.
15144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15147 : ${CONFIG_STATUS=./config.status}
15148 ac_write_fail=0
15149 ac_clean_files_save=$ac_clean_files
15150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15153 as_write_fail=0
15154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15155 #! $SHELL
15156 # Generated by $as_me.
15157 # Run this file to recreate the current configuration.
15158 # Compiler output produced by configure, useful for debugging
15159 # configure, is in config.log if it exists.
15161 debug=false
15162 ac_cs_recheck=false
15163 ac_cs_silent=false
15165 SHELL=\${CONFIG_SHELL-$SHELL}
15166 export SHELL
15167 _ASEOF
15168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15169 ## -------------------- ##
15170 ## M4sh Initialization. ##
15171 ## -------------------- ##
15173 # Be more Bourne compatible
15174 DUALCASE=1; export DUALCASE # for MKS sh
15175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15176 emulate sh
15177 NULLCMD=:
15178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15179 # is contrary to our usage. Disable this feature.
15180 alias -g '${1+"$@"}'='"$@"'
15181 setopt NO_GLOB_SUBST
15182 else
15183 case `(set -o) 2>/dev/null` in #(
15184 *posix*) :
15185 set -o posix ;; #(
15186 *) :
15188 esac
15192 as_nl='
15194 export as_nl
15195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15199 # Prefer a ksh shell builtin over an external printf program on Solaris,
15200 # but without wasting forks for bash or zsh.
15201 if test -z "$BASH_VERSION$ZSH_VERSION" \
15202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15203 as_echo='print -r --'
15204 as_echo_n='print -rn --'
15205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15206 as_echo='printf %s\n'
15207 as_echo_n='printf %s'
15208 else
15209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15211 as_echo_n='/usr/ucb/echo -n'
15212 else
15213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15214 as_echo_n_body='eval
15215 arg=$1;
15216 case $arg in #(
15217 *"$as_nl"*)
15218 expr "X$arg" : "X\\(.*\\)$as_nl";
15219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15220 esac;
15221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15223 export as_echo_n_body
15224 as_echo_n='sh -c $as_echo_n_body as_echo'
15226 export as_echo_body
15227 as_echo='sh -c $as_echo_body as_echo'
15230 # The user is always right.
15231 if test "${PATH_SEPARATOR+set}" != set; then
15232 PATH_SEPARATOR=:
15233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15235 PATH_SEPARATOR=';'
15240 # IFS
15241 # We need space, tab and new line, in precisely that order. Quoting is
15242 # there to prevent editors from complaining about space-tab.
15243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15244 # splitting by setting IFS to empty value.)
15245 IFS=" "" $as_nl"
15247 # Find who we are. Look in the path if we contain no directory separator.
15248 case $0 in #((
15249 *[\\/]* ) as_myself=$0 ;;
15250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15251 for as_dir in $PATH
15253 IFS=$as_save_IFS
15254 test -z "$as_dir" && as_dir=.
15255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15256 done
15257 IFS=$as_save_IFS
15260 esac
15261 # We did not find ourselves, most probably we were run as `sh COMMAND'
15262 # in which case we are not to be found in the path.
15263 if test "x$as_myself" = x; then
15264 as_myself=$0
15266 if test ! -f "$as_myself"; then
15267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15268 exit 1
15271 # Unset variables that we do not need and which cause bugs (e.g. in
15272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15273 # suppresses any "Segmentation fault" message there. '((' could
15274 # trigger a bug in pdksh 5.2.14.
15275 for as_var in BASH_ENV ENV MAIL MAILPATH
15276 do eval test x\${$as_var+set} = xset \
15277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15278 done
15279 PS1='$ '
15280 PS2='> '
15281 PS4='+ '
15283 # NLS nuisances.
15284 LC_ALL=C
15285 export LC_ALL
15286 LANGUAGE=C
15287 export LANGUAGE
15289 # CDPATH.
15290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15293 # as_fn_error ERROR [LINENO LOG_FD]
15294 # ---------------------------------
15295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15297 # script with status $?, using 1 if that was 0.
15298 as_fn_error ()
15300 as_status=$?; test $as_status -eq 0 && as_status=1
15301 if test "$3"; then
15302 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15305 $as_echo "$as_me: error: $1" >&2
15306 as_fn_exit $as_status
15307 } # as_fn_error
15310 # as_fn_set_status STATUS
15311 # -----------------------
15312 # Set $? to STATUS, without forking.
15313 as_fn_set_status ()
15315 return $1
15316 } # as_fn_set_status
15318 # as_fn_exit STATUS
15319 # -----------------
15320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15321 as_fn_exit ()
15323 set +e
15324 as_fn_set_status $1
15325 exit $1
15326 } # as_fn_exit
15328 # as_fn_unset VAR
15329 # ---------------
15330 # Portably unset VAR.
15331 as_fn_unset ()
15333 { eval $1=; unset $1;}
15335 as_unset=as_fn_unset
15336 # as_fn_append VAR VALUE
15337 # ----------------------
15338 # Append the text in VALUE to the end of the definition contained in VAR. Take
15339 # advantage of any shell optimizations that allow amortized linear growth over
15340 # repeated appends, instead of the typical quadratic growth present in naive
15341 # implementations.
15342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15343 eval 'as_fn_append ()
15345 eval $1+=\$2
15347 else
15348 as_fn_append ()
15350 eval $1=\$$1\$2
15352 fi # as_fn_append
15354 # as_fn_arith ARG...
15355 # ------------------
15356 # Perform arithmetic evaluation on the ARGs, and store the result in the
15357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15358 # must be portable across $(()) and expr.
15359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15360 eval 'as_fn_arith ()
15362 as_val=$(( $* ))
15364 else
15365 as_fn_arith ()
15367 as_val=`expr "$@" || test $? -eq 1`
15369 fi # as_fn_arith
15372 if expr a : '\(a\)' >/dev/null 2>&1 &&
15373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15374 as_expr=expr
15375 else
15376 as_expr=false
15379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15380 as_basename=basename
15381 else
15382 as_basename=false
15385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15386 as_dirname=dirname
15387 else
15388 as_dirname=false
15391 as_me=`$as_basename -- "$0" ||
15392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15393 X"$0" : 'X\(//\)$' \| \
15394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15395 $as_echo X/"$0" |
15396 sed '/^.*\/\([^/][^/]*\)\/*$/{
15397 s//\1/
15400 /^X\/\(\/\/\)$/{
15401 s//\1/
15404 /^X\/\(\/\).*/{
15405 s//\1/
15408 s/.*/./; q'`
15410 # Avoid depending upon Character Ranges.
15411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15414 as_cr_digits='0123456789'
15415 as_cr_alnum=$as_cr_Letters$as_cr_digits
15417 ECHO_C= ECHO_N= ECHO_T=
15418 case `echo -n x` in #(((((
15419 -n*)
15420 case `echo 'xy\c'` in
15421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15422 xy) ECHO_C='\c';;
15423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15424 ECHO_T=' ';;
15425 esac;;
15427 ECHO_N='-n';;
15428 esac
15430 rm -f conf$$ conf$$.exe conf$$.file
15431 if test -d conf$$.dir; then
15432 rm -f conf$$.dir/conf$$.file
15433 else
15434 rm -f conf$$.dir
15435 mkdir conf$$.dir 2>/dev/null
15437 if (echo >conf$$.file) 2>/dev/null; then
15438 if ln -s conf$$.file conf$$ 2>/dev/null; then
15439 as_ln_s='ln -s'
15440 # ... but there are two gotchas:
15441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15443 # In both cases, we have to default to `cp -p'.
15444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15445 as_ln_s='cp -p'
15446 elif ln conf$$.file conf$$ 2>/dev/null; then
15447 as_ln_s=ln
15448 else
15449 as_ln_s='cp -p'
15451 else
15452 as_ln_s='cp -p'
15454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15455 rmdir conf$$.dir 2>/dev/null
15458 # as_fn_mkdir_p
15459 # -------------
15460 # Create "$as_dir" as a directory, including parents if necessary.
15461 as_fn_mkdir_p ()
15464 case $as_dir in #(
15465 -*) as_dir=./$as_dir;;
15466 esac
15467 test -d "$as_dir" || eval $as_mkdir_p || {
15468 as_dirs=
15469 while :; do
15470 case $as_dir in #(
15471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15472 *) as_qdir=$as_dir;;
15473 esac
15474 as_dirs="'$as_qdir' $as_dirs"
15475 as_dir=`$as_dirname -- "$as_dir" ||
15476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15477 X"$as_dir" : 'X\(//\)[^/]' \| \
15478 X"$as_dir" : 'X\(//\)$' \| \
15479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15480 $as_echo X"$as_dir" |
15481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15482 s//\1/
15485 /^X\(\/\/\)[^/].*/{
15486 s//\1/
15489 /^X\(\/\/\)$/{
15490 s//\1/
15493 /^X\(\/\).*/{
15494 s//\1/
15497 s/.*/./; q'`
15498 test -d "$as_dir" && break
15499 done
15500 test -z "$as_dirs" || eval "mkdir $as_dirs"
15501 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15504 } # as_fn_mkdir_p
15505 if mkdir -p . 2>/dev/null; then
15506 as_mkdir_p='mkdir -p "$as_dir"'
15507 else
15508 test -d ./-p && rmdir ./-p
15509 as_mkdir_p=false
15512 if test -x / >/dev/null 2>&1; then
15513 as_test_x='test -x'
15514 else
15515 if ls -dL / >/dev/null 2>&1; then
15516 as_ls_L_option=L
15517 else
15518 as_ls_L_option=
15520 as_test_x='
15521 eval sh -c '\''
15522 if test -d "$1"; then
15523 test -d "$1/.";
15524 else
15525 case $1 in #(
15526 -*)set "./$1";;
15527 esac;
15528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15529 ???[sx]*):;;*)false;;esac;fi
15530 '\'' sh
15533 as_executable_p=$as_test_x
15535 # Sed expression to map a string onto a valid CPP name.
15536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15538 # Sed expression to map a string onto a valid variable name.
15539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15542 exec 6>&1
15543 ## ----------------------------------- ##
15544 ## Main body of $CONFIG_STATUS script. ##
15545 ## ----------------------------------- ##
15546 _ASEOF
15547 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15550 # Save the log message, to keep $0 and so on meaningful, and to
15551 # report actual input values of CONFIG_FILES etc. instead of their
15552 # values after options handling.
15553 ac_log="
15554 This file was extended by package-unused $as_me version-unused, which was
15555 generated by GNU Autoconf 2.64. Invocation command line was
15557 CONFIG_FILES = $CONFIG_FILES
15558 CONFIG_HEADERS = $CONFIG_HEADERS
15559 CONFIG_LINKS = $CONFIG_LINKS
15560 CONFIG_COMMANDS = $CONFIG_COMMANDS
15561 $ $0 $@
15563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15566 _ACEOF
15568 case $ac_config_files in *"
15569 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15570 esac
15572 case $ac_config_headers in *"
15573 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15574 esac
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578 # Files that config.status was made for.
15579 config_files="$ac_config_files"
15580 config_headers="$ac_config_headers"
15581 config_commands="$ac_config_commands"
15583 _ACEOF
15585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 ac_cs_usage="\
15587 \`$as_me' instantiates files and other configuration actions
15588 from templates according to the current configuration. Unless the files
15589 and actions are specified as TAGs, all are instantiated by default.
15591 Usage: $0 [OPTION]... [TAG]...
15593 -h, --help print this help, then exit
15594 -V, --version print version number and configuration settings, then exit
15595 -q, --quiet, --silent
15596 do not print progress messages
15597 -d, --debug don't remove temporary files
15598 --recheck update $as_me by reconfiguring in the same conditions
15599 --file=FILE[:TEMPLATE]
15600 instantiate the configuration file FILE
15601 --header=FILE[:TEMPLATE]
15602 instantiate the configuration header FILE
15604 Configuration files:
15605 $config_files
15607 Configuration headers:
15608 $config_headers
15610 Configuration commands:
15611 $config_commands
15613 Report bugs to <libmpx>."
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_cs_version="\\
15618 package-unused config.status version-unused
15619 configured by $0, generated by GNU Autoconf 2.64,
15620 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15622 Copyright (C) 2009 Free Software Foundation, Inc.
15623 This config.status script is free software; the Free Software Foundation
15624 gives unlimited permission to copy, distribute and modify it."
15626 ac_pwd='$ac_pwd'
15627 srcdir='$srcdir'
15628 INSTALL='$INSTALL'
15629 MKDIR_P='$MKDIR_P'
15630 AWK='$AWK'
15631 test -n "\$AWK" || AWK=awk
15632 _ACEOF
15634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15635 # The default lists apply if the user does not specify any file.
15636 ac_need_defaults=:
15637 while test $# != 0
15639 case $1 in
15640 --*=*)
15641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15643 ac_shift=:
15646 ac_option=$1
15647 ac_optarg=$2
15648 ac_shift=shift
15650 esac
15652 case $ac_option in
15653 # Handling of the options.
15654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15655 ac_cs_recheck=: ;;
15656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15657 $as_echo "$ac_cs_version"; exit ;;
15658 --debug | --debu | --deb | --de | --d | -d )
15659 debug=: ;;
15660 --file | --fil | --fi | --f )
15661 $ac_shift
15662 case $ac_optarg in
15663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15664 esac
15665 as_fn_append CONFIG_FILES " '$ac_optarg'"
15666 ac_need_defaults=false;;
15667 --header | --heade | --head | --hea )
15668 $ac_shift
15669 case $ac_optarg in
15670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15671 esac
15672 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15673 ac_need_defaults=false;;
15674 --he | --h)
15675 # Conflict between --help and --header
15676 as_fn_error "ambiguous option: \`$1'
15677 Try \`$0 --help' for more information.";;
15678 --help | --hel | -h )
15679 $as_echo "$ac_cs_usage"; exit ;;
15680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15681 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15682 ac_cs_silent=: ;;
15684 # This is an error.
15685 -*) as_fn_error "unrecognized option: \`$1'
15686 Try \`$0 --help' for more information." ;;
15688 *) as_fn_append ac_config_targets " $1"
15689 ac_need_defaults=false ;;
15691 esac
15692 shift
15693 done
15695 ac_configure_extra_args=
15697 if $ac_cs_silent; then
15698 exec 6>/dev/null
15699 ac_configure_extra_args="$ac_configure_extra_args --silent"
15702 _ACEOF
15703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15704 if \$ac_cs_recheck; then
15705 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15706 shift
15707 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15708 CONFIG_SHELL='$SHELL'
15709 export CONFIG_SHELL
15710 exec "\$@"
15713 _ACEOF
15714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15715 exec 5>>config.log
15717 echo
15718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15719 ## Running $as_me. ##
15720 _ASBOX
15721 $as_echo "$ac_log"
15722 } >&5
15724 _ACEOF
15725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15727 # INIT-COMMANDS
15730 srcdir="$srcdir"
15731 host="$host"
15732 target="$target"
15733 with_multisubdir="$with_multisubdir"
15734 with_multisrctop="$with_multisrctop"
15735 with_target_subdir="$with_target_subdir"
15736 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15737 multi_basedir="$multi_basedir"
15738 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15739 CC="$CC"
15740 CXX="$CXX"
15741 GFORTRAN="$GFORTRAN"
15742 GCJ="$GCJ"
15745 # The HP-UX ksh and POSIX shell print the target directory to stdout
15746 # if CDPATH is set.
15747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15749 sed_quote_subst='$sed_quote_subst'
15750 double_quote_subst='$double_quote_subst'
15751 delay_variable_subst='$delay_variable_subst'
15752 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15753 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15754 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15755 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15756 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15757 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15758 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15759 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15760 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15761 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15762 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15763 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15764 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15765 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15766 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15767 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15768 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15769 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15770 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15771 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15772 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15773 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15774 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15775 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15776 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15777 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15778 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15779 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15780 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15781 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15782 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15783 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15784 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15785 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15786 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15787 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15788 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15789 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15790 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15791 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15792 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15793 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15794 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15795 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15796 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15797 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15798 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15799 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15800 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"`'
15801 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15802 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15803 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15804 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15805 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15806 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15807 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15808 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15809 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15810 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15811 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15812 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15813 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15814 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15815 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15816 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15818 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15819 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15820 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15821 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15822 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15823 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15824 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15825 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15826 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15827 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15828 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15829 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15830 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15831 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15832 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15833 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15834 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15835 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15836 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15837 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15838 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15839 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15840 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15841 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15842 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15843 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15844 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15845 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15846 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15847 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15848 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15849 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15850 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15851 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15852 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15853 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15854 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15855 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15856 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15857 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15858 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15859 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15860 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15861 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15862 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15863 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15864 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15865 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15866 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15867 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15868 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15869 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15870 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15871 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15872 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15873 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15874 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15875 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15876 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15877 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15878 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15879 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15880 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15881 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15882 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15883 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15884 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15885 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15886 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15887 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15888 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15889 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15890 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15891 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15892 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15893 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15894 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15895 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15896 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15897 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15898 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15899 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15900 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15901 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15902 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15903 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15904 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15905 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15906 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15907 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15908 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15909 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15910 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15911 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15912 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15913 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15914 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15915 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15916 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15917 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15918 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15919 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15920 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15921 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15922 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15923 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15924 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15925 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15926 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15928 LTCC='$LTCC'
15929 LTCFLAGS='$LTCFLAGS'
15930 compiler='$compiler_DEFAULT'
15932 # A function that is used when there is no print builtin or printf.
15933 func_fallback_echo ()
15935 eval 'cat <<_LTECHO_EOF
15937 _LTECHO_EOF'
15940 # Quote evaled strings.
15941 for var in SHELL \
15942 ECHO \
15943 SED \
15944 GREP \
15945 EGREP \
15946 FGREP \
15947 LD \
15948 NM \
15949 LN_S \
15950 lt_SP2NL \
15951 lt_NL2SP \
15952 reload_flag \
15953 OBJDUMP \
15954 deplibs_check_method \
15955 file_magic_cmd \
15956 AR \
15957 AR_FLAGS \
15958 STRIP \
15959 RANLIB \
15960 CC \
15961 CFLAGS \
15962 compiler \
15963 lt_cv_sys_global_symbol_pipe \
15964 lt_cv_sys_global_symbol_to_cdecl \
15965 lt_cv_sys_global_symbol_to_c_name_address \
15966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15967 lt_prog_compiler_no_builtin_flag \
15968 lt_prog_compiler_wl \
15969 lt_prog_compiler_pic \
15970 lt_prog_compiler_static \
15971 lt_cv_prog_compiler_c_o \
15972 need_locks \
15973 DSYMUTIL \
15974 NMEDIT \
15975 LIPO \
15976 OTOOL \
15977 OTOOL64 \
15978 shrext_cmds \
15979 export_dynamic_flag_spec \
15980 whole_archive_flag_spec \
15981 compiler_needs_object \
15982 with_gnu_ld \
15983 allow_undefined_flag \
15984 no_undefined_flag \
15985 hardcode_libdir_flag_spec \
15986 hardcode_libdir_flag_spec_ld \
15987 hardcode_libdir_separator \
15988 fix_srcfile_path \
15989 exclude_expsyms \
15990 include_expsyms \
15991 file_list_spec \
15992 variables_saved_for_relink \
15993 libname_spec \
15994 library_names_spec \
15995 soname_spec \
15996 install_override_mode \
15997 finish_eval \
15998 old_striplib \
15999 striplib \
16000 compiler_lib_search_dirs \
16001 predep_objects \
16002 postdep_objects \
16003 predeps \
16004 postdeps \
16005 compiler_lib_search_path \
16006 LD_CXX \
16007 reload_flag_CXX \
16008 compiler_CXX \
16009 lt_prog_compiler_no_builtin_flag_CXX \
16010 lt_prog_compiler_wl_CXX \
16011 lt_prog_compiler_pic_CXX \
16012 lt_prog_compiler_static_CXX \
16013 lt_cv_prog_compiler_c_o_CXX \
16014 export_dynamic_flag_spec_CXX \
16015 whole_archive_flag_spec_CXX \
16016 compiler_needs_object_CXX \
16017 with_gnu_ld_CXX \
16018 allow_undefined_flag_CXX \
16019 no_undefined_flag_CXX \
16020 hardcode_libdir_flag_spec_CXX \
16021 hardcode_libdir_flag_spec_ld_CXX \
16022 hardcode_libdir_separator_CXX \
16023 fix_srcfile_path_CXX \
16024 exclude_expsyms_CXX \
16025 include_expsyms_CXX \
16026 file_list_spec_CXX \
16027 compiler_lib_search_dirs_CXX \
16028 predep_objects_CXX \
16029 postdep_objects_CXX \
16030 predeps_CXX \
16031 postdeps_CXX \
16032 compiler_lib_search_path_CXX; do
16033 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16034 *[\\\\\\\`\\"\\\$]*)
16035 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16038 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16040 esac
16041 done
16043 # Double-quote double-evaled strings.
16044 for var in reload_cmds \
16045 old_postinstall_cmds \
16046 old_postuninstall_cmds \
16047 old_archive_cmds \
16048 extract_expsyms_cmds \
16049 old_archive_from_new_cmds \
16050 old_archive_from_expsyms_cmds \
16051 archive_cmds \
16052 archive_expsym_cmds \
16053 module_cmds \
16054 module_expsym_cmds \
16055 export_symbols_cmds \
16056 prelink_cmds \
16057 postinstall_cmds \
16058 postuninstall_cmds \
16059 finish_cmds \
16060 sys_lib_search_path_spec \
16061 sys_lib_dlsearch_path_spec \
16062 reload_cmds_CXX \
16063 old_archive_cmds_CXX \
16064 old_archive_from_new_cmds_CXX \
16065 old_archive_from_expsyms_cmds_CXX \
16066 archive_cmds_CXX \
16067 archive_expsym_cmds_CXX \
16068 module_cmds_CXX \
16069 module_expsym_cmds_CXX \
16070 export_symbols_cmds_CXX \
16071 prelink_cmds_CXX; do
16072 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16073 *[\\\\\\\`\\"\\\$]*)
16074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16079 esac
16080 done
16082 ac_aux_dir='$ac_aux_dir'
16083 xsi_shell='$xsi_shell'
16084 lt_shell_append='$lt_shell_append'
16086 # See if we are running on zsh, and set the options which allow our
16087 # commands through without removal of \ escapes INIT.
16088 if test -n "\${ZSH_VERSION+set}" ; then
16089 setopt NO_GLOB_SUBST
16093 PACKAGE='$PACKAGE'
16094 VERSION='$VERSION'
16095 TIMESTAMP='$TIMESTAMP'
16096 RM='$RM'
16097 ofile='$ofile'
16104 _ACEOF
16106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16108 # Handling of arguments.
16109 for ac_config_target in $ac_config_targets
16111 case $ac_config_target in
16112 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16113 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16114 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16115 "libmpx.spec") CONFIG_FILES="$CONFIG_FILES libmpx.spec" ;;
16116 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16117 "mpxrt/Makefile") CONFIG_FILES="$CONFIG_FILES mpxrt/Makefile" ;;
16118 "mpxwrap/Makefile") CONFIG_FILES="$CONFIG_FILES mpxwrap/Makefile" ;;
16120 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16121 esac
16122 done
16125 # If the user did not use the arguments to specify the items to instantiate,
16126 # then the envvar interface is used. Set only those that are not.
16127 # We use the long form for the default assignment because of an extremely
16128 # bizarre bug on SunOS 4.1.3.
16129 if $ac_need_defaults; then
16130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16135 # Have a temporary directory for convenience. Make it in the build tree
16136 # simply because there is no reason against having it here, and in addition,
16137 # creating and moving files from /tmp can sometimes cause problems.
16138 # Hook for its removal unless debugging.
16139 # Note that there is a small window in which the directory will not be cleaned:
16140 # after its creation but before its name has been assigned to `$tmp'.
16141 $debug ||
16143 tmp=
16144 trap 'exit_status=$?
16145 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16147 trap 'as_fn_exit 1' 1 2 13 15
16149 # Create a (secure) tmp directory for tmp files.
16152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16153 test -n "$tmp" && test -d "$tmp"
16154 } ||
16156 tmp=./conf$$-$RANDOM
16157 (umask 077 && mkdir "$tmp")
16158 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16160 # Set up the scripts for CONFIG_FILES section.
16161 # No need to generate them if there are no CONFIG_FILES.
16162 # This happens for instance with `./config.status config.h'.
16163 if test -n "$CONFIG_FILES"; then
16166 ac_cr=`echo X | tr X '\015'`
16167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16168 # But we know of no other shell where ac_cr would be empty at this
16169 # point, so we can use a bashism as a fallback.
16170 if test "x$ac_cr" = x; then
16171 eval ac_cr=\$\'\\r\'
16173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16175 ac_cs_awk_cr='\r'
16176 else
16177 ac_cs_awk_cr=$ac_cr
16180 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16181 _ACEOF
16185 echo "cat >conf$$subs.awk <<_ACEOF" &&
16186 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16187 echo "_ACEOF"
16188 } >conf$$subs.sh ||
16189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16190 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16191 ac_delim='%!_!# '
16192 for ac_last_try in false false false false false :; do
16193 . ./conf$$subs.sh ||
16194 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16196 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16197 if test $ac_delim_n = $ac_delim_num; then
16198 break
16199 elif $ac_last_try; then
16200 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16201 else
16202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16204 done
16205 rm -f conf$$subs.sh
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16209 _ACEOF
16210 sed -n '
16212 s/^/S["/; s/!.*/"]=/
16215 s/^[^!]*!//
16216 :repl
16217 t repl
16218 s/'"$ac_delim"'$//
16219 t delim
16222 s/\(.\{148\}\).*/\1/
16223 t more1
16224 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16227 b repl
16228 :more1
16229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16232 s/.\{148\}//
16233 t nl
16234 :delim
16236 s/\(.\{148\}\).*/\1/
16237 t more2
16238 s/["\\]/\\&/g; s/^/"/; s/$/"/
16241 :more2
16242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16245 s/.\{148\}//
16246 t delim
16247 ' <conf$$subs.awk | sed '
16248 /^[^""]/{
16250 s/\n//
16252 ' >>$CONFIG_STATUS || ac_write_fail=1
16253 rm -f conf$$subs.awk
16254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16255 _ACAWK
16256 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16257 for (key in S) S_is_set[key] = 1
16258 FS = "\a"
16262 line = $ 0
16263 nfields = split(line, field, "@")
16264 substed = 0
16265 len = length(field[1])
16266 for (i = 2; i < nfields; i++) {
16267 key = field[i]
16268 keylen = length(key)
16269 if (S_is_set[key]) {
16270 value = S[key]
16271 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16272 len += length(value) + length(field[++i])
16273 substed = 1
16274 } else
16275 len += 1 + keylen
16278 print line
16281 _ACAWK
16282 _ACEOF
16283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16285 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16286 else
16288 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16289 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16290 _ACEOF
16292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16294 # trailing colons and then remove the whole line if VPATH becomes empty
16295 # (actually we leave an empty line to preserve line numbers).
16296 if test "x$srcdir" = x.; then
16297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16298 s/:*\$(srcdir):*/:/
16299 s/:*\${srcdir}:*/:/
16300 s/:*@srcdir@:*/:/
16301 s/^\([^=]*=[ ]*\):*/\1/
16302 s/:*$//
16303 s/^[^=]*=[ ]*$//
16307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16308 fi # test -n "$CONFIG_FILES"
16310 # Set up the scripts for CONFIG_HEADERS section.
16311 # No need to generate them if there are no CONFIG_HEADERS.
16312 # This happens for instance with `./config.status Makefile'.
16313 if test -n "$CONFIG_HEADERS"; then
16314 cat >"$tmp/defines.awk" <<\_ACAWK ||
16315 BEGIN {
16316 _ACEOF
16318 # Transform confdefs.h into an awk script `defines.awk', embedded as
16319 # here-document in config.status, that substitutes the proper values into
16320 # config.h.in to produce config.h.
16322 # Create a delimiter string that does not exist in confdefs.h, to ease
16323 # handling of long lines.
16324 ac_delim='%!_!# '
16325 for ac_last_try in false false :; do
16326 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16327 if test -z "$ac_t"; then
16328 break
16329 elif $ac_last_try; then
16330 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16331 else
16332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16334 done
16336 # For the awk script, D is an array of macro values keyed by name,
16337 # likewise P contains macro parameters if any. Preserve backslash
16338 # newline sequences.
16340 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16341 sed -n '
16342 s/.\{148\}/&'"$ac_delim"'/g
16343 t rset
16344 :rset
16345 s/^[ ]*#[ ]*define[ ][ ]*/ /
16346 t def
16348 :def
16349 s/\\$//
16350 t bsnl
16351 s/["\\]/\\&/g
16352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16353 D["\1"]=" \3"/p
16354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16356 :bsnl
16357 s/["\\]/\\&/g
16358 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16359 D["\1"]=" \3\\\\\\n"\\/p
16360 t cont
16361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16362 t cont
16364 :cont
16366 s/.\{148\}/&'"$ac_delim"'/g
16367 t clear
16368 :clear
16369 s/\\$//
16370 t bsnlc
16371 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16373 :bsnlc
16374 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16375 b cont
16376 ' <confdefs.h | sed '
16377 s/'"$ac_delim"'/"\\\
16378 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16381 for (key in D) D_is_set[key] = 1
16382 FS = "\a"
16384 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16385 line = \$ 0
16386 split(line, arg, " ")
16387 if (arg[1] == "#") {
16388 defundef = arg[2]
16389 mac1 = arg[3]
16390 } else {
16391 defundef = substr(arg[1], 2)
16392 mac1 = arg[2]
16394 split(mac1, mac2, "(") #)
16395 macro = mac2[1]
16396 prefix = substr(line, 1, index(line, defundef) - 1)
16397 if (D_is_set[macro]) {
16398 # Preserve the white space surrounding the "#".
16399 print prefix "define", macro P[macro] D[macro]
16400 next
16401 } else {
16402 # Replace #undef with comments. This is necessary, for example,
16403 # in the case of _POSIX_SOURCE, which is predefined and required
16404 # on some systems where configure will not decide to define it.
16405 if (defundef == "undef") {
16406 print "/*", prefix defundef, macro, "*/"
16407 next
16411 { print }
16412 _ACAWK
16413 _ACEOF
16414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16416 fi # test -n "$CONFIG_HEADERS"
16419 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16420 shift
16421 for ac_tag
16423 case $ac_tag in
16424 :[FHLC]) ac_mode=$ac_tag; continue;;
16425 esac
16426 case $ac_mode$ac_tag in
16427 :[FHL]*:*);;
16428 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16429 :[FH]-) ac_tag=-:-;;
16430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16431 esac
16432 ac_save_IFS=$IFS
16433 IFS=:
16434 set x $ac_tag
16435 IFS=$ac_save_IFS
16436 shift
16437 ac_file=$1
16438 shift
16440 case $ac_mode in
16441 :L) ac_source=$1;;
16442 :[FH])
16443 ac_file_inputs=
16444 for ac_f
16446 case $ac_f in
16447 -) ac_f="$tmp/stdin";;
16448 *) # Look for the file first in the build tree, then in the source tree
16449 # (if the path is not absolute). The absolute path cannot be DOS-style,
16450 # because $ac_f cannot contain `:'.
16451 test -f "$ac_f" ||
16452 case $ac_f in
16453 [\\/$]*) false;;
16454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16455 esac ||
16456 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16457 esac
16458 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16459 as_fn_append ac_file_inputs " '$ac_f'"
16460 done
16462 # Let's still pretend it is `configure' which instantiates (i.e., don't
16463 # use $as_me), people would be surprised to read:
16464 # /* config.h. Generated by config.status. */
16465 configure_input='Generated from '`
16466 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16467 `' by configure.'
16468 if test x"$ac_file" != x-; then
16469 configure_input="$ac_file. $configure_input"
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16471 $as_echo "$as_me: creating $ac_file" >&6;}
16473 # Neutralize special characters interpreted by sed in replacement strings.
16474 case $configure_input in #(
16475 *\&* | *\|* | *\\* )
16476 ac_sed_conf_input=`$as_echo "$configure_input" |
16477 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16478 *) ac_sed_conf_input=$configure_input;;
16479 esac
16481 case $ac_tag in
16482 *:-:* | *:-) cat >"$tmp/stdin" \
16483 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16484 esac
16486 esac
16488 ac_dir=`$as_dirname -- "$ac_file" ||
16489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16490 X"$ac_file" : 'X\(//\)[^/]' \| \
16491 X"$ac_file" : 'X\(//\)$' \| \
16492 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16493 $as_echo X"$ac_file" |
16494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16495 s//\1/
16498 /^X\(\/\/\)[^/].*/{
16499 s//\1/
16502 /^X\(\/\/\)$/{
16503 s//\1/
16506 /^X\(\/\).*/{
16507 s//\1/
16510 s/.*/./; q'`
16511 as_dir="$ac_dir"; as_fn_mkdir_p
16512 ac_builddir=.
16514 case "$ac_dir" in
16515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16518 # A ".." for each directory in $ac_dir_suffix.
16519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16520 case $ac_top_builddir_sub in
16521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16523 esac ;;
16524 esac
16525 ac_abs_top_builddir=$ac_pwd
16526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16527 # for backward compatibility:
16528 ac_top_builddir=$ac_top_build_prefix
16530 case $srcdir in
16531 .) # We are building in place.
16532 ac_srcdir=.
16533 ac_top_srcdir=$ac_top_builddir_sub
16534 ac_abs_top_srcdir=$ac_pwd ;;
16535 [\\/]* | ?:[\\/]* ) # Absolute name.
16536 ac_srcdir=$srcdir$ac_dir_suffix;
16537 ac_top_srcdir=$srcdir
16538 ac_abs_top_srcdir=$srcdir ;;
16539 *) # Relative name.
16540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16541 ac_top_srcdir=$ac_top_build_prefix$srcdir
16542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16543 esac
16544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16547 case $ac_mode in
16550 # CONFIG_FILE
16553 case $INSTALL in
16554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16556 esac
16557 ac_MKDIR_P=$MKDIR_P
16558 case $MKDIR_P in
16559 [\\/$]* | ?:[\\/]* ) ;;
16560 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16561 esac
16562 _ACEOF
16564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565 # If the template does not know about datarootdir, expand it.
16566 # FIXME: This hack should be removed a few years after 2.60.
16567 ac_datarootdir_hack=; ac_datarootdir_seen=
16568 ac_sed_dataroot='
16569 /datarootdir/ {
16573 /@datadir@/p
16574 /@docdir@/p
16575 /@infodir@/p
16576 /@localedir@/p
16577 /@mandir@/p'
16578 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16579 *datarootdir*) ac_datarootdir_seen=yes;;
16580 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16582 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16583 _ACEOF
16584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16585 ac_datarootdir_hack='
16586 s&@datadir@&$datadir&g
16587 s&@docdir@&$docdir&g
16588 s&@infodir@&$infodir&g
16589 s&@localedir@&$localedir&g
16590 s&@mandir@&$mandir&g
16591 s&\\\${datarootdir}&$datarootdir&g' ;;
16592 esac
16593 _ACEOF
16595 # Neutralize VPATH when `$srcdir' = `.'.
16596 # Shell code in configure.ac might set extrasub.
16597 # FIXME: do we really want to maintain this feature?
16598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16599 ac_sed_extra="$ac_vpsub
16600 $extrasub
16601 _ACEOF
16602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16605 s|@configure_input@|$ac_sed_conf_input|;t t
16606 s&@top_builddir@&$ac_top_builddir_sub&;t t
16607 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16608 s&@srcdir@&$ac_srcdir&;t t
16609 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16610 s&@top_srcdir@&$ac_top_srcdir&;t t
16611 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16612 s&@builddir@&$ac_builddir&;t t
16613 s&@abs_builddir@&$ac_abs_builddir&;t t
16614 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16615 s&@INSTALL@&$ac_INSTALL&;t t
16616 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16617 $ac_datarootdir_hack
16619 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16620 || as_fn_error "could not create $ac_file" "$LINENO" 5
16622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16626 which seems to be undefined. Please make sure it is defined." >&5
16627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16628 which seems to be undefined. Please make sure it is defined." >&2;}
16630 rm -f "$tmp/stdin"
16631 case $ac_file in
16632 -) cat "$tmp/out" && rm -f "$tmp/out";;
16633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16634 esac \
16635 || as_fn_error "could not create $ac_file" "$LINENO" 5
16639 # CONFIG_HEADER
16641 if test x"$ac_file" != x-; then
16643 $as_echo "/* $configure_input */" \
16644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16645 } >"$tmp/config.h" \
16646 || as_fn_error "could not create $ac_file" "$LINENO" 5
16647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16650 else
16651 rm -f "$ac_file"
16652 mv "$tmp/config.h" "$ac_file" \
16653 || as_fn_error "could not create $ac_file" "$LINENO" 5
16655 else
16656 $as_echo "/* $configure_input */" \
16657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16658 || as_fn_error "could not create -" "$LINENO" 5
16660 # Compute "$ac_file"'s index in $config_headers.
16661 _am_arg="$ac_file"
16662 _am_stamp_count=1
16663 for _am_header in $config_headers :; do
16664 case $_am_header in
16665 $_am_arg | $_am_arg:* )
16666 break ;;
16668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16669 esac
16670 done
16671 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16672 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16673 X"$_am_arg" : 'X\(//\)[^/]' \| \
16674 X"$_am_arg" : 'X\(//\)$' \| \
16675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16676 $as_echo X"$_am_arg" |
16677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16678 s//\1/
16681 /^X\(\/\/\)[^/].*/{
16682 s//\1/
16685 /^X\(\/\/\)$/{
16686 s//\1/
16689 /^X\(\/\).*/{
16690 s//\1/
16693 s/.*/./; q'`/stamp-h$_am_stamp_count
16696 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16697 $as_echo "$as_me: executing $ac_file commands" >&6;}
16699 esac
16702 case $ac_file$ac_mode in
16703 "default-1":C)
16704 # Only add multilib support code if we just rebuilt the top-level
16705 # Makefile.
16706 case " $CONFIG_FILES " in
16707 *" Makefile "*)
16708 ac_file=Makefile . ${multi_basedir}/config-ml.in
16710 esac ;;
16711 "libtool":C)
16713 # See if we are running on zsh, and set the options which allow our
16714 # commands through without removal of \ escapes.
16715 if test -n "${ZSH_VERSION+set}" ; then
16716 setopt NO_GLOB_SUBST
16719 cfgfile="${ofile}T"
16720 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16721 $RM "$cfgfile"
16723 cat <<_LT_EOF >> "$cfgfile"
16724 #! $SHELL
16726 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16727 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16729 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16731 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16732 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16733 # Written by Gordon Matzigkeit, 1996
16735 # This file is part of GNU Libtool.
16737 # GNU Libtool is free software; you can redistribute it and/or
16738 # modify it under the terms of the GNU General Public License as
16739 # published by the Free Software Foundation; either version 2 of
16740 # the License, or (at your option) any later version.
16742 # As a special exception to the GNU General Public License,
16743 # if you distribute this file as part of a program or library that
16744 # is built using GNU Libtool, you may include this file under the
16745 # same distribution terms that you use for the rest of that program.
16747 # GNU Libtool is distributed in the hope that it will be useful,
16748 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16749 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16750 # GNU General Public License for more details.
16752 # You should have received a copy of the GNU General Public License
16753 # along with GNU Libtool; see the file COPYING. If not, a copy
16754 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16755 # obtained by writing to the Free Software Foundation, Inc.,
16756 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16759 # The names of the tagged configurations supported by this script.
16760 available_tags="CXX "
16762 # ### BEGIN LIBTOOL CONFIG
16764 # Which release of libtool.m4 was used?
16765 macro_version=$macro_version
16766 macro_revision=$macro_revision
16768 # Whether or not to build shared libraries.
16769 build_libtool_libs=$enable_shared
16771 # Whether or not to build static libraries.
16772 build_old_libs=$enable_static
16774 # What type of objects to build.
16775 pic_mode=$pic_mode
16777 # Whether or not to optimize for fast installation.
16778 fast_install=$enable_fast_install
16780 # Shell to use when invoking shell scripts.
16781 SHELL=$lt_SHELL
16783 # An echo program that protects backslashes.
16784 ECHO=$lt_ECHO
16786 # The host system.
16787 host_alias=$host_alias
16788 host=$host
16789 host_os=$host_os
16791 # The build system.
16792 build_alias=$build_alias
16793 build=$build
16794 build_os=$build_os
16796 # A sed program that does not truncate output.
16797 SED=$lt_SED
16799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16800 Xsed="\$SED -e 1s/^X//"
16802 # A grep program that handles long lines.
16803 GREP=$lt_GREP
16805 # An ERE matcher.
16806 EGREP=$lt_EGREP
16808 # A literal string matcher.
16809 FGREP=$lt_FGREP
16811 # A BSD- or MS-compatible name lister.
16812 NM=$lt_NM
16814 # Whether we need soft or hard links.
16815 LN_S=$lt_LN_S
16817 # What is the maximum length of a command?
16818 max_cmd_len=$max_cmd_len
16820 # Object file suffix (normally "o").
16821 objext=$ac_objext
16823 # Executable file suffix (normally "").
16824 exeext=$exeext
16826 # whether the shell understands "unset".
16827 lt_unset=$lt_unset
16829 # turn spaces into newlines.
16830 SP2NL=$lt_lt_SP2NL
16832 # turn newlines into spaces.
16833 NL2SP=$lt_lt_NL2SP
16835 # An object symbol dumper.
16836 OBJDUMP=$lt_OBJDUMP
16838 # Method to check whether dependent libraries are shared objects.
16839 deplibs_check_method=$lt_deplibs_check_method
16841 # Command to use when deplibs_check_method == "file_magic".
16842 file_magic_cmd=$lt_file_magic_cmd
16844 # The archiver.
16845 AR=$lt_AR
16846 AR_FLAGS=$lt_AR_FLAGS
16848 # A symbol stripping program.
16849 STRIP=$lt_STRIP
16851 # Commands used to install an old-style archive.
16852 RANLIB=$lt_RANLIB
16853 old_postinstall_cmds=$lt_old_postinstall_cmds
16854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16856 # Whether to use a lock for old archive extraction.
16857 lock_old_archive_extraction=$lock_old_archive_extraction
16859 # A C compiler.
16860 LTCC=$lt_CC
16862 # LTCC compiler flags.
16863 LTCFLAGS=$lt_CFLAGS
16865 # Take the output of nm and produce a listing of raw symbols and C names.
16866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16868 # Transform the output of nm in a proper C declaration.
16869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16871 # Transform the output of nm in a C name address pair.
16872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16874 # Transform the output of nm in a C name address pair when lib prefix is needed.
16875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16877 # The name of the directory that contains temporary libtool files.
16878 objdir=$objdir
16880 # Used to examine libraries when file_magic_cmd begins with "file".
16881 MAGIC_CMD=$MAGIC_CMD
16883 # Must we lock files when doing compilation?
16884 need_locks=$lt_need_locks
16886 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16887 DSYMUTIL=$lt_DSYMUTIL
16889 # Tool to change global to local symbols on Mac OS X.
16890 NMEDIT=$lt_NMEDIT
16892 # Tool to manipulate fat objects and archives on Mac OS X.
16893 LIPO=$lt_LIPO
16895 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16896 OTOOL=$lt_OTOOL
16898 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16899 OTOOL64=$lt_OTOOL64
16901 # Old archive suffix (normally "a").
16902 libext=$libext
16904 # Shared library suffix (normally ".so").
16905 shrext_cmds=$lt_shrext_cmds
16907 # The commands to extract the exported symbol list from a shared archive.
16908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16910 # Variables whose values should be saved in libtool wrapper scripts and
16911 # restored at link time.
16912 variables_saved_for_relink=$lt_variables_saved_for_relink
16914 # Do we need the "lib" prefix for modules?
16915 need_lib_prefix=$need_lib_prefix
16917 # Do we need a version for libraries?
16918 need_version=$need_version
16920 # Library versioning type.
16921 version_type=$version_type
16923 # Shared library runtime path variable.
16924 runpath_var=$runpath_var
16926 # Shared library path variable.
16927 shlibpath_var=$shlibpath_var
16929 # Is shlibpath searched before the hard-coded library search path?
16930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16932 # Format of library name prefix.
16933 libname_spec=$lt_libname_spec
16935 # List of archive names. First name is the real one, the rest are links.
16936 # The last name is the one that the linker finds with -lNAME
16937 library_names_spec=$lt_library_names_spec
16939 # The coded name of the library, if different from the real name.
16940 soname_spec=$lt_soname_spec
16942 # Permission mode override for installation of shared libraries.
16943 install_override_mode=$lt_install_override_mode
16945 # Command to use after installation of a shared archive.
16946 postinstall_cmds=$lt_postinstall_cmds
16948 # Command to use after uninstallation of a shared archive.
16949 postuninstall_cmds=$lt_postuninstall_cmds
16951 # Commands used to finish a libtool library installation in a directory.
16952 finish_cmds=$lt_finish_cmds
16954 # As "finish_cmds", except a single script fragment to be evaled but
16955 # not shown.
16956 finish_eval=$lt_finish_eval
16958 # Whether we should hardcode library paths into libraries.
16959 hardcode_into_libs=$hardcode_into_libs
16961 # Compile-time system search path for libraries.
16962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16964 # Run-time system search path for libraries.
16965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16967 # Whether dlopen is supported.
16968 dlopen_support=$enable_dlopen
16970 # Whether dlopen of programs is supported.
16971 dlopen_self=$enable_dlopen_self
16973 # Whether dlopen of statically linked programs is supported.
16974 dlopen_self_static=$enable_dlopen_self_static
16976 # Commands to strip libraries.
16977 old_striplib=$lt_old_striplib
16978 striplib=$lt_striplib
16981 # The linker used to build libraries.
16982 LD=$lt_LD
16984 # How to create reloadable object files.
16985 reload_flag=$lt_reload_flag
16986 reload_cmds=$lt_reload_cmds
16988 # Commands used to build an old-style archive.
16989 old_archive_cmds=$lt_old_archive_cmds
16991 # A language specific compiler.
16992 CC=$lt_compiler
16994 # Is the compiler the GNU compiler?
16995 with_gcc=$GCC
16997 # Compiler flag to turn off builtin functions.
16998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17000 # How to pass a linker flag through the compiler.
17001 wl=$lt_lt_prog_compiler_wl
17003 # Additional compiler flags for building library objects.
17004 pic_flag=$lt_lt_prog_compiler_pic
17006 # Compiler flag to prevent dynamic linking.
17007 link_static_flag=$lt_lt_prog_compiler_static
17009 # Does compiler simultaneously support -c and -o options?
17010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17012 # Whether or not to add -lc for building shared libraries.
17013 build_libtool_need_lc=$archive_cmds_need_lc
17015 # Whether or not to disallow shared libs when runtime libs are static.
17016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17018 # Compiler flag to allow reflexive dlopens.
17019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17021 # Compiler flag to generate shared objects directly from archives.
17022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17024 # Whether the compiler copes with passing no objects directly.
17025 compiler_needs_object=$lt_compiler_needs_object
17027 # Create an old-style archive from a shared archive.
17028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17030 # Create a temporary old-style archive to link instead of a shared archive.
17031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17033 # Commands used to build a shared archive.
17034 archive_cmds=$lt_archive_cmds
17035 archive_expsym_cmds=$lt_archive_expsym_cmds
17037 # Commands used to build a loadable module if different from building
17038 # a shared archive.
17039 module_cmds=$lt_module_cmds
17040 module_expsym_cmds=$lt_module_expsym_cmds
17042 # Whether we are building with GNU ld or not.
17043 with_gnu_ld=$lt_with_gnu_ld
17045 # Flag that allows shared libraries with undefined symbols to be built.
17046 allow_undefined_flag=$lt_allow_undefined_flag
17048 # Flag that enforces no undefined symbols.
17049 no_undefined_flag=$lt_no_undefined_flag
17051 # Flag to hardcode \$libdir into a binary during linking.
17052 # This must work even if \$libdir does not exist
17053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17055 # If ld is used when linking, flag to hardcode \$libdir into a binary
17056 # during linking. This must work even if \$libdir does not exist.
17057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17059 # Whether we need a single "-rpath" flag with a separated argument.
17060 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17062 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17063 # DIR into the resulting binary.
17064 hardcode_direct=$hardcode_direct
17066 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17067 # DIR into the resulting binary and the resulting library dependency is
17068 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17069 # library is relocated.
17070 hardcode_direct_absolute=$hardcode_direct_absolute
17072 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17073 # into the resulting binary.
17074 hardcode_minus_L=$hardcode_minus_L
17076 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17077 # into the resulting binary.
17078 hardcode_shlibpath_var=$hardcode_shlibpath_var
17080 # Set to "yes" if building a shared library automatically hardcodes DIR
17081 # into the library and all subsequent libraries and executables linked
17082 # against it.
17083 hardcode_automatic=$hardcode_automatic
17085 # Set to yes if linker adds runtime paths of dependent libraries
17086 # to runtime path list.
17087 inherit_rpath=$inherit_rpath
17089 # Whether libtool must link a program against all its dependency libraries.
17090 link_all_deplibs=$link_all_deplibs
17092 # Fix the shell variable \$srcfile for the compiler.
17093 fix_srcfile_path=$lt_fix_srcfile_path
17095 # Set to "yes" if exported symbols are required.
17096 always_export_symbols=$always_export_symbols
17098 # The commands to list exported symbols.
17099 export_symbols_cmds=$lt_export_symbols_cmds
17101 # Symbols that should not be listed in the preloaded symbols.
17102 exclude_expsyms=$lt_exclude_expsyms
17104 # Symbols that must always be exported.
17105 include_expsyms=$lt_include_expsyms
17107 # Commands necessary for linking programs (against libraries) with templates.
17108 prelink_cmds=$lt_prelink_cmds
17110 # Specify filename containing input files.
17111 file_list_spec=$lt_file_list_spec
17113 # How to hardcode a shared library path into an executable.
17114 hardcode_action=$hardcode_action
17116 # The directories searched by this compiler when creating a shared library.
17117 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17119 # Dependencies to place before and after the objects being linked to
17120 # create a shared library.
17121 predep_objects=$lt_predep_objects
17122 postdep_objects=$lt_postdep_objects
17123 predeps=$lt_predeps
17124 postdeps=$lt_postdeps
17126 # The library search path used internally by the compiler when linking
17127 # a shared library.
17128 compiler_lib_search_path=$lt_compiler_lib_search_path
17130 # ### END LIBTOOL CONFIG
17132 _LT_EOF
17134 case $host_os in
17135 aix3*)
17136 cat <<\_LT_EOF >> "$cfgfile"
17137 # AIX sometimes has problems with the GCC collect2 program. For some
17138 # reason, if we set the COLLECT_NAMES environment variable, the problems
17139 # vanish in a puff of smoke.
17140 if test "X${COLLECT_NAMES+set}" != Xset; then
17141 COLLECT_NAMES=
17142 export COLLECT_NAMES
17144 _LT_EOF
17146 esac
17149 ltmain="$ac_aux_dir/ltmain.sh"
17152 # We use sed instead of cat because bash on DJGPP gets confused if
17153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17154 # text mode, it properly converts lines to CR/LF. This bash problem
17155 # is reportedly fixed, but why not run on old versions too?
17156 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17157 || (rm -f "$cfgfile"; exit 1)
17159 case $xsi_shell in
17160 yes)
17161 cat << \_LT_EOF >> "$cfgfile"
17163 # func_dirname file append nondir_replacement
17164 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17165 # otherwise set result to NONDIR_REPLACEMENT.
17166 func_dirname ()
17168 case ${1} in
17169 */*) func_dirname_result="${1%/*}${2}" ;;
17170 * ) func_dirname_result="${3}" ;;
17171 esac
17174 # func_basename file
17175 func_basename ()
17177 func_basename_result="${1##*/}"
17180 # func_dirname_and_basename file append nondir_replacement
17181 # perform func_basename and func_dirname in a single function
17182 # call:
17183 # dirname: Compute the dirname of FILE. If nonempty,
17184 # add APPEND to the result, otherwise set result
17185 # to NONDIR_REPLACEMENT.
17186 # value returned in "$func_dirname_result"
17187 # basename: Compute filename of FILE.
17188 # value retuned in "$func_basename_result"
17189 # Implementation must be kept synchronized with func_dirname
17190 # and func_basename. For efficiency, we do not delegate to
17191 # those functions but instead duplicate the functionality here.
17192 func_dirname_and_basename ()
17194 case ${1} in
17195 */*) func_dirname_result="${1%/*}${2}" ;;
17196 * ) func_dirname_result="${3}" ;;
17197 esac
17198 func_basename_result="${1##*/}"
17201 # func_stripname prefix suffix name
17202 # strip PREFIX and SUFFIX off of NAME.
17203 # PREFIX and SUFFIX must not contain globbing or regex special
17204 # characters, hashes, percent signs, but SUFFIX may contain a leading
17205 # dot (in which case that matches only a dot).
17206 func_stripname ()
17208 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17209 # positional parameters, so assign one to ordinary parameter first.
17210 func_stripname_result=${3}
17211 func_stripname_result=${func_stripname_result#"${1}"}
17212 func_stripname_result=${func_stripname_result%"${2}"}
17215 # func_opt_split
17216 func_opt_split ()
17218 func_opt_split_opt=${1%%=*}
17219 func_opt_split_arg=${1#*=}
17222 # func_lo2o object
17223 func_lo2o ()
17225 case ${1} in
17226 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17227 *) func_lo2o_result=${1} ;;
17228 esac
17231 # func_xform libobj-or-source
17232 func_xform ()
17234 func_xform_result=${1%.*}.lo
17237 # func_arith arithmetic-term...
17238 func_arith ()
17240 func_arith_result=$(( $* ))
17243 # func_len string
17244 # STRING may not start with a hyphen.
17245 func_len ()
17247 func_len_result=${#1}
17250 _LT_EOF
17252 *) # Bourne compatible functions.
17253 cat << \_LT_EOF >> "$cfgfile"
17255 # func_dirname file append nondir_replacement
17256 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17257 # otherwise set result to NONDIR_REPLACEMENT.
17258 func_dirname ()
17260 # Extract subdirectory from the argument.
17261 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17262 if test "X$func_dirname_result" = "X${1}"; then
17263 func_dirname_result="${3}"
17264 else
17265 func_dirname_result="$func_dirname_result${2}"
17269 # func_basename file
17270 func_basename ()
17272 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17276 # func_stripname prefix suffix name
17277 # strip PREFIX and SUFFIX off of NAME.
17278 # PREFIX and SUFFIX must not contain globbing or regex special
17279 # characters, hashes, percent signs, but SUFFIX may contain a leading
17280 # dot (in which case that matches only a dot).
17281 # func_strip_suffix prefix name
17282 func_stripname ()
17284 case ${2} in
17285 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17286 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17287 esac
17290 # sed scripts:
17291 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17292 my_sed_long_arg='1s/^-[^=]*=//'
17294 # func_opt_split
17295 func_opt_split ()
17297 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17298 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17301 # func_lo2o object
17302 func_lo2o ()
17304 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17307 # func_xform libobj-or-source
17308 func_xform ()
17310 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17313 # func_arith arithmetic-term...
17314 func_arith ()
17316 func_arith_result=`expr "$@"`
17319 # func_len string
17320 # STRING may not start with a hyphen.
17321 func_len ()
17323 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17326 _LT_EOF
17327 esac
17329 case $lt_shell_append in
17330 yes)
17331 cat << \_LT_EOF >> "$cfgfile"
17333 # func_append var value
17334 # Append VALUE to the end of shell variable VAR.
17335 func_append ()
17337 eval "$1+=\$2"
17339 _LT_EOF
17342 cat << \_LT_EOF >> "$cfgfile"
17344 # func_append var value
17345 # Append VALUE to the end of shell variable VAR.
17346 func_append ()
17348 eval "$1=\$$1\$2"
17351 _LT_EOF
17353 esac
17356 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17357 || (rm -f "$cfgfile"; exit 1)
17359 mv -f "$cfgfile" "$ofile" ||
17360 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17361 chmod +x "$ofile"
17364 cat <<_LT_EOF >> "$ofile"
17366 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17368 # The linker used to build libraries.
17369 LD=$lt_LD_CXX
17371 # How to create reloadable object files.
17372 reload_flag=$lt_reload_flag_CXX
17373 reload_cmds=$lt_reload_cmds_CXX
17375 # Commands used to build an old-style archive.
17376 old_archive_cmds=$lt_old_archive_cmds_CXX
17378 # A language specific compiler.
17379 CC=$lt_compiler_CXX
17381 # Is the compiler the GNU compiler?
17382 with_gcc=$GCC_CXX
17384 # Compiler flag to turn off builtin functions.
17385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17387 # How to pass a linker flag through the compiler.
17388 wl=$lt_lt_prog_compiler_wl_CXX
17390 # Additional compiler flags for building library objects.
17391 pic_flag=$lt_lt_prog_compiler_pic_CXX
17393 # Compiler flag to prevent dynamic linking.
17394 link_static_flag=$lt_lt_prog_compiler_static_CXX
17396 # Does compiler simultaneously support -c and -o options?
17397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17399 # Whether or not to add -lc for building shared libraries.
17400 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17402 # Whether or not to disallow shared libs when runtime libs are static.
17403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17405 # Compiler flag to allow reflexive dlopens.
17406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17408 # Compiler flag to generate shared objects directly from archives.
17409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17411 # Whether the compiler copes with passing no objects directly.
17412 compiler_needs_object=$lt_compiler_needs_object_CXX
17414 # Create an old-style archive from a shared archive.
17415 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17417 # Create a temporary old-style archive to link instead of a shared archive.
17418 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17420 # Commands used to build a shared archive.
17421 archive_cmds=$lt_archive_cmds_CXX
17422 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17424 # Commands used to build a loadable module if different from building
17425 # a shared archive.
17426 module_cmds=$lt_module_cmds_CXX
17427 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17429 # Whether we are building with GNU ld or not.
17430 with_gnu_ld=$lt_with_gnu_ld_CXX
17432 # Flag that allows shared libraries with undefined symbols to be built.
17433 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17435 # Flag that enforces no undefined symbols.
17436 no_undefined_flag=$lt_no_undefined_flag_CXX
17438 # Flag to hardcode \$libdir into a binary during linking.
17439 # This must work even if \$libdir does not exist
17440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17442 # If ld is used when linking, flag to hardcode \$libdir into a binary
17443 # during linking. This must work even if \$libdir does not exist.
17444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17446 # Whether we need a single "-rpath" flag with a separated argument.
17447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17450 # DIR into the resulting binary.
17451 hardcode_direct=$hardcode_direct_CXX
17453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17454 # DIR into the resulting binary and the resulting library dependency is
17455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17456 # library is relocated.
17457 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17460 # into the resulting binary.
17461 hardcode_minus_L=$hardcode_minus_L_CXX
17463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17464 # into the resulting binary.
17465 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17467 # Set to "yes" if building a shared library automatically hardcodes DIR
17468 # into the library and all subsequent libraries and executables linked
17469 # against it.
17470 hardcode_automatic=$hardcode_automatic_CXX
17472 # Set to yes if linker adds runtime paths of dependent libraries
17473 # to runtime path list.
17474 inherit_rpath=$inherit_rpath_CXX
17476 # Whether libtool must link a program against all its dependency libraries.
17477 link_all_deplibs=$link_all_deplibs_CXX
17479 # Fix the shell variable \$srcfile for the compiler.
17480 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17482 # Set to "yes" if exported symbols are required.
17483 always_export_symbols=$always_export_symbols_CXX
17485 # The commands to list exported symbols.
17486 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17488 # Symbols that should not be listed in the preloaded symbols.
17489 exclude_expsyms=$lt_exclude_expsyms_CXX
17491 # Symbols that must always be exported.
17492 include_expsyms=$lt_include_expsyms_CXX
17494 # Commands necessary for linking programs (against libraries) with templates.
17495 prelink_cmds=$lt_prelink_cmds_CXX
17497 # Specify filename containing input files.
17498 file_list_spec=$lt_file_list_spec_CXX
17500 # How to hardcode a shared library path into an executable.
17501 hardcode_action=$hardcode_action_CXX
17503 # The directories searched by this compiler when creating a shared library.
17504 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17506 # Dependencies to place before and after the objects being linked to
17507 # create a shared library.
17508 predep_objects=$lt_predep_objects_CXX
17509 postdep_objects=$lt_postdep_objects_CXX
17510 predeps=$lt_predeps_CXX
17511 postdeps=$lt_postdeps_CXX
17513 # The library search path used internally by the compiler when linking
17514 # a shared library.
17515 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17517 # ### END LIBTOOL TAG CONFIG: CXX
17518 _LT_EOF
17521 "mpxrt/Makefile":F) cat > vpsed$$ << \_EOF
17522 s!`test -f '$<' || echo '$(srcdir)/'`!!
17523 _EOF
17524 sed -f vpsed$$ $ac_file > tmp$$
17525 mv tmp$$ $ac_file
17526 rm vpsed$$
17527 echo 'MULTISUBDIR =' >> $ac_file
17528 ml_norecursion=yes
17529 . ${multi_basedir}/config-ml.in
17530 { ml_norecursion=; unset ml_norecursion;}
17532 "mpxwrap/Makefile":F) cat > vpsed$$ << \_EOF
17533 s!`test -f '$<' || echo '$(srcdir)/'`!!
17534 _EOF
17535 sed -f vpsed$$ $ac_file > tmp$$
17536 mv tmp$$ $ac_file
17537 rm vpsed$$
17538 echo 'MULTISUBDIR =' >> $ac_file
17539 ml_norecursion=yes
17540 . ${multi_basedir}/config-ml.in
17541 { ml_norecursion=; unset ml_norecursion;}
17544 esac
17545 done # for ac_tag
17548 as_fn_exit 0
17549 _ACEOF
17550 ac_clean_files=$ac_clean_files_save
17552 test $ac_write_fail = 0 ||
17553 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17556 # configure is writing to config.log, and then calls config.status.
17557 # config.status does its own redirection, appending to config.log.
17558 # Unfortunately, on DOS this fails, as config.log is still kept open
17559 # by configure, so config.status won't be able to write to it; its
17560 # output is simply discarded. So we exec the FD to /dev/null,
17561 # effectively closing config.log, so it can be properly (re)opened and
17562 # appended to by config.status. When coming back to configure, we
17563 # need to make the FD available again.
17564 if test "$no_create" != yes; then
17565 ac_cs_success=:
17566 ac_config_status_args=
17567 test "$silent" = yes &&
17568 ac_config_status_args="$ac_config_status_args --quiet"
17569 exec 5>/dev/null
17570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17571 exec 5>>config.log
17572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17573 # would make configure fail if this is the last instruction.
17574 $ac_cs_success || as_fn_exit $?
17576 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17578 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}