re PR fortran/56226 (Add support for DEC UNION and MAP extensions)
[official-gcc.git] / libcilkrts / configure
blob802b325eba691fafa5759d2e8f40e511b2c3be63
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cilk Runtime Library 2.0.
5 # Report bugs to <cilk@intel.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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 cilk@intel.com
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='Cilk Runtime Library'
561 PACKAGE_TARNAME='cilk-runtime-library'
562 PACKAGE_VERSION='2.0'
563 PACKAGE_STRING='Cilk Runtime Library 2.0'
564 PACKAGE_BUGREPORT='cilk@intel.com'
565 PACKAGE_URL=''
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 link_cilkrts
608 XLDFLAGS
609 XCFLAGS
610 lt_cv_dlopen_libs
611 toolexeclibdir
612 toolexecdir
613 CXXCPP
614 OTOOL64
615 OTOOL
616 LIPO
617 NMEDIT
618 DSYMUTIL
619 RANLIB
621 OBJDUMP
622 LN_S
624 ac_ct_DUMPBIN
625 DUMPBIN
627 FGREP
629 LIBTOOL
630 MAC_LINKER_SCRIPT_FALSE
631 MAC_LINKER_SCRIPT_TRUE
632 LINUX_LINKER_SCRIPT_FALSE
633 LINUX_LINKER_SCRIPT_TRUE
634 config_dir
635 ALLOCA
636 am__fastdepCXX_FALSE
637 am__fastdepCXX_TRUE
638 CXXDEPMODE
639 ac_ct_CXX
640 CXXFLAGS
642 multi_basedir
643 MAINT
644 MAINTAINER_MODE_FALSE
645 MAINTAINER_MODE_TRUE
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 EGREP
680 GREP
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 build_os
698 build_vendor
699 build_cpu
700 build
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_dependency_tracking
743 enable_maintainer_mode
744 enable_multilib
745 enable_version_specific_runtime_libs
746 enable_shared
747 enable_static
748 with_pic
749 enable_fast_install
750 with_gnu_ld
751 enable_libtool_lock
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
763 CXXFLAGS
765 CXXCPP'
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
816 ac_prev=
817 ac_dashdash=
818 for ac_option
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
836 ac_dashdash=yes ;;
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
855 --config-cache | -C)
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
879 "enable_$ac_useropt"
880 "*) ;;
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
883 esac
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
887 ac_prev=docdir ;;
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889 docdir=$ac_optarg ;;
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 ac_prev=dvidir ;;
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894 dvidir=$ac_optarg ;;
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160 esac
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 esac
1173 done
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 esac
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1196 case $ac_val in
1197 */ )
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1200 esac
1201 # Be sure to have absolute directory names.
1202 case $ac_val in
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 esac
1206 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 s//\1/
1255 /^X\(\/\/\)[^/].*/{
1256 s//\1/
1259 /^X\(\/\/\)$/{
1260 s//\1/
1263 /^X\(\/\).*/{
1264 s//\1/
1267 s/.*/./; q'`
1268 srcdir=$ac_confdir
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 srcdir=..
1272 else
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root
1356 [DATAROOTDIR/doc/cilk-runtime-library]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1363 cat <<\_ACEOF
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
1391 --enable-multilib build many library versions (default)
1392 --enable-version-specific-runtime-libs
1393 Specify that runtime libraries should be installed
1394 in a compi ler-specific directory
1395 --enable-shared[=PKGS] build shared libraries [default=yes]
1396 --enable-static[=PKGS] build static libraries [default=yes]
1397 --enable-fast-install[=PKGS]
1398 optimize for fast installation [default=yes]
1399 --disable-libtool-lock avoid locking (might break parallel builds)
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-pic try to use only PIC/non-PIC objects [default=use
1405 both]
1406 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CPP C preprocessor
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1419 CXXCPP C++ preprocessor
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1424 Report bugs to <cilk@intel.com>.
1425 _ACEOF
1426 ac_status=$?
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434 continue
1435 ac_builddir=.
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1453 case $srcdir in
1454 .) # We are building in place.
1455 ac_srcdir=.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1462 *) # Relative name.
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for guested configure.
1471 if test -f "$ac_srcdir/configure.gnu"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474 elif test -f "$ac_srcdir/configure"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure" --help=recursive
1477 else
1478 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479 fi || ac_status=$?
1480 cd "$ac_pwd" || { ac_status=$?; break; }
1481 done
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486 cat <<\_ACEOF
1487 Cilk Runtime Library configure 2.0
1488 generated by GNU Autoconf 2.64
1490 Copyright (C) 2009 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494 exit
1497 ## ------------------------ ##
1498 ## Autoconf initialization. ##
1499 ## ------------------------ ##
1501 # ac_fn_c_try_compile LINENO
1502 # --------------------------
1503 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_compile ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 rm -f conftest.$ac_objext
1508 if { { ac_try="$ac_compile"
1509 case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_compile") 2>conftest.err
1516 ac_status=$?
1517 if test -s conftest.err; then
1518 grep -v '^ *+' conftest.err >conftest.er1
1519 cat conftest.er1 >&5
1520 mv -f conftest.er1 conftest.err
1522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1523 test $ac_status = 0; } && {
1524 test -z "$ac_c_werror_flag" ||
1525 test ! -s conftest.err
1526 } && test -s conftest.$ac_objext; then :
1527 ac_retval=0
1528 else
1529 $as_echo "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1532 ac_retval=1
1534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1535 return $ac_retval
1537 } # ac_fn_c_try_compile
1539 # ac_fn_c_try_cpp LINENO
1540 # ----------------------
1541 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_cpp ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_cpp conftest.$ac_ext"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } >/dev/null && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 }; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1569 ac_retval=1
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 return $ac_retval
1574 } # ac_fn_c_try_cpp
1576 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579 # the include files in INCLUDES and setting the cache variable VAR
1580 # accordingly.
1581 ac_fn_c_check_header_mongrel ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 $as_echo_n "(cached) " >&6
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 else
1594 # Is the header compilable?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596 $as_echo_n "checking $2 usability... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1604 else
1605 ac_header_compiler=no
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609 $as_echo "$ac_header_compiler" >&6; }
1611 # Is the header present?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613 $as_echo_n "checking $2 presence... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 #include <$2>
1617 _ACEOF
1618 if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1620 else
1621 ac_header_preproc=no
1623 rm -f conftest.err conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625 $as_echo "$ac_header_preproc" >&6; }
1627 # So? What about this header?
1628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1629 yes:no: )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 no:yes:* )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 ( cat <<\_ASBOX
1647 ## ----------------------------- ##
1648 ## Report this to cilk@intel.com ##
1649 ## ----------------------------- ##
1650 _ASBOX
1651 ) | sed "s/^/$as_me: WARNING: /" >&2
1653 esac
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 eval "$3=\$ac_header_compiler"
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 } # ac_fn_c_check_header_mongrel
1669 # ac_fn_c_try_run LINENO
1670 # ----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672 # that executables *can* be run.
1673 ac_fn_c_try_run ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687 { { case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_try") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; }; }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: program exited with status $ac_status" >&5
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=$ac_status
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_c_try_run
1711 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists and can be compiled using the include files in
1714 # INCLUDES, setting the cache variable VAR accordingly.
1715 ac_fn_c_check_header_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 $as_echo_n "(cached) " >&6
1722 else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 } # ac_fn_c_check_header_compile
1742 # ac_fn_cxx_try_compile LINENO
1743 # ----------------------------
1744 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_cxx_try_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 rm -f conftest.$ac_objext
1749 if { { ac_try="$ac_compile"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_compile") 2>conftest.err
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_cxx_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest.$ac_objext; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1773 ac_retval=1
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 return $ac_retval
1778 } # ac_fn_cxx_try_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1795 ac_status=$?
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 $as_test_x conftest$ac_exeext
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 return $ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1854 #undef $2
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1871 main ()
1873 return $2 ();
1875 return 0;
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 } # ac_fn_c_check_func
1893 # ac_fn_cxx_try_cpp LINENO
1894 # ------------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } >/dev/null && {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1928 } # ac_fn_cxx_try_cpp
1930 # ac_fn_cxx_try_link LINENO
1931 # -------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_cxx_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 $as_test_x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 return $ac_retval
1974 } # ac_fn_cxx_try_link
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1979 It was created by Cilk Runtime Library $as_me 2.0, which was
1980 generated by GNU Autoconf 2.64. Invocation command line was
1982 $ $0 $@
1984 _ACEOF
1985 exec 5>>config.log
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009 _ASUNAME
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2020 } >&5
2022 cat >&5 <<_ACEOF
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2029 _ACEOF
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2043 for ac_arg
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2072 as_fn_append ac_configure_args " '$ac_arg'"
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2088 echo
2090 cat <<\_ASBOX
2091 ## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##
2094 _ASBOX
2095 echo
2096 # The following way of writing the cache mishandles newlines in values,
2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in #(
2101 *${as_nl}*)
2102 case $ac_var in #(
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2105 esac
2106 case $ac_var in #(
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2110 esac ;;
2111 esac
2112 done
2113 (set) 2>&1 |
2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
2116 sed -n \
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119 ;; #(
2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 esac |
2124 sort
2126 echo
2128 cat <<\_ASBOX
2129 ## ----------------- ##
2130 ## Output variables. ##
2131 ## ----------------- ##
2132 _ASBOX
2133 echo
2134 for ac_var in $ac_subst_vars
2136 eval ac_val=\$$ac_var
2137 case $ac_val in
2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139 esac
2140 $as_echo "$ac_var='\''$ac_val'\''"
2141 done | sort
2142 echo
2144 if test -n "$ac_subst_files"; then
2145 cat <<\_ASBOX
2146 ## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##
2149 _ASBOX
2150 echo
2151 for ac_var in $ac_subst_files
2153 eval ac_val=\$$ac_var
2154 case $ac_val in
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 esac
2157 $as_echo "$ac_var='\''$ac_val'\''"
2158 done | sort
2159 echo
2162 if test -s confdefs.h; then
2163 cat <<\_ASBOX
2164 ## ----------- ##
2165 ## confdefs.h. ##
2166 ## ----------- ##
2167 _ASBOX
2168 echo
2169 cat confdefs.h
2170 echo
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2175 } >&5
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 exit $exit_status
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 done
2183 ac_signal=0
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2188 $as_echo "/* confdefs.h */" > confdefs.h
2190 # Predefined preprocessor variables.
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 _ACEOF
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 _ACEOF
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2214 _ACEOF
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 ac_site_file1=NONE
2220 ac_site_file2=NONE
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_file1=$CONFIG_SITE
2223 elif test "x$prefix" != xNONE; then
2224 ac_site_file1=$prefix/share/config.site
2225 ac_site_file2=$prefix/etc/config.site
2226 else
2227 ac_site_file1=$ac_default_prefix/share/config.site
2228 ac_site_file2=$ac_default_prefix/etc/config.site
2230 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2232 test "x$ac_site_file" = xNONE && continue
2233 if test -r "$ac_site_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2235 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2236 sed 's/^/| /' "$ac_site_file" >&5
2237 . "$ac_site_file"
2239 done
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special
2243 # files actually), so we avoid doing that.
2244 if test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2258 # Check that the precious variables saved in the cache have kept the same
2259 # value.
2260 ac_cache_corrupted=false
2261 for ac_var in $ac_precious_vars; do
2262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263 eval ac_new_set=\$ac_env_${ac_var}_set
2264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265 eval ac_new_val=\$ac_env_${ac_var}_value
2266 case $ac_old_set,$ac_new_set in
2267 set,)
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2271 ,set)
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2275 ,);;
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w=`echo x $ac_old_val`
2280 ac_new_val_w=`echo x $ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284 ac_cache_corrupted=:
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\$ac_old_val
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 fi;;
2295 esac
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2298 case $ac_new_val in
2299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 *) ac_arg=$ac_var=$ac_new_val ;;
2301 esac
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2305 esac
2307 done
2308 if $ac_cache_corrupted; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 ## -------------------- ##
2316 ## Main body of script. ##
2317 ## -------------------- ##
2319 ac_ext=c
2320 ac_cpp='$CPP $CPPFLAGS'
2321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331 # Needed to define ${target}. Needs to be very early to avoid annoying
2332 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2339 break 2
2341 done
2342 done
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2379 esac
2380 build=$ac_cv_build
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_build
2383 shift
2384 build_cpu=$1
2385 build_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 build_os=$*
2390 IFS=$ac_save_IFS
2391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2467 target_alias=${target_alias-$host_alias}
2470 # Test for GNU extensions. Will define _GNU_SOURCE if they're available
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2507 $as_echo "$CC" >&6; }
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2515 if test -z "$ac_cv_prog_CC"; then
2516 ac_ct_CC=$CC
2517 # Extract the first word of "gcc", so it can be a program name with args.
2518 set dummy gcc; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_CC="gcc"
2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2538 done
2539 done
2540 IFS=$as_save_IFS
2544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2545 if test -n "$ac_ct_CC"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2547 $as_echo "$ac_ct_CC" >&6; }
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2553 if test "x$ac_ct_CC" = x; then
2554 CC=""
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562 CC=$ac_ct_CC
2564 else
2565 CC="$ac_cv_prog_CC"
2568 if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}cc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}cc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2609 if test -z "$CC"; then
2610 # Extract the first word of "cc", so it can be a program name with args.
2611 set dummy cc; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620 ac_prog_rejected=no
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629 ac_prog_rejected=yes
2630 continue
2632 ac_cv_prog_CC="cc"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2636 done
2637 done
2638 IFS=$as_save_IFS
2640 if test $ac_prog_rejected = yes; then
2641 # We found a bogon in the path, so make sure we never use it.
2642 set dummy $ac_cv_prog_CC
2643 shift
2644 if test $# != 0; then
2645 # We chose a different compiler from the bogus one.
2646 # However, it has the same basename, so the bogon will be chosen
2647 # first if we set CC to just the basename; use the full file name.
2648 shift
2649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2657 $as_echo "$CC" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2665 if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2667 for ac_prog in cl.exe
2669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if test "${ac_cv_prog_CC+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2690 done
2691 done
2692 IFS=$as_save_IFS
2696 CC=$ac_cv_prog_CC
2697 if test -n "$CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 $as_echo "$CC" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2706 test -n "$CC" && break
2707 done
2709 if test -z "$CC"; then
2710 ac_ct_CC=$CC
2711 for ac_prog in cl.exe
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_CC="$ac_prog"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2734 done
2735 done
2736 IFS=$as_save_IFS
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743 $as_echo "$ac_ct_CC" >&6; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2750 test -n "$ac_ct_CC" && break
2751 done
2753 if test "x$ac_ct_CC" = x; then
2754 CC=""
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762 CC=$ac_ct_CC
2769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2771 as_fn_error "no acceptable C compiler found in \$PATH
2772 See \`config.log' for more details." "$LINENO" 5; }
2774 # Provide some information about the compiler.
2775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2776 set X $ac_compile
2777 ac_compiler=$2
2778 for ac_option in --version -v -V -qversion; do
2779 { { ac_try="$ac_compiler $ac_option >&5"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2787 ac_status=$?
2788 if test -s conftest.err; then
2789 sed '10a\
2790 ... rest of stderr output deleted ...
2791 10q' conftest.err >conftest.er1
2792 cat conftest.er1 >&5
2793 rm -f conftest.er1 conftest.err
2795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796 test $ac_status = 0; }
2797 done
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2803 main ()
2807 return 0;
2809 _ACEOF
2810 ac_clean_files_save=$ac_clean_files
2811 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2812 # Try to create an executable without -o first, disregard a.out.
2813 # It will help us diagnose broken compilers, and finding out an intuition
2814 # of exeext.
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2816 $as_echo_n "checking for C compiler default output file name... " >&6; }
2817 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2819 # The possible output files:
2820 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2822 ac_rmfiles=
2823 for ac_file in $ac_files
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2827 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2828 esac
2829 done
2830 rm -f $ac_rmfiles
2832 if { { ac_try="$ac_link_default"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_link_default") 2>&5
2840 ac_status=$?
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }; then :
2843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2844 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2845 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2846 # so that the user can short-circuit this test for compilers unknown to
2847 # Autoconf.
2848 for ac_file in $ac_files ''
2850 test -f "$ac_file" || continue
2851 case $ac_file in
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2854 [ab].out )
2855 # We found the default executable, but exeext='' is most
2856 # certainly right.
2857 break;;
2858 *.* )
2859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2860 then :; else
2861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2863 # We set ac_cv_exeext here because the later test for it is not
2864 # safe: cross compilers may not add the suffix if given an `-o'
2865 # argument, so we may need to know it at that point already.
2866 # Even if this section looks crufty: it has the advantage of
2867 # actually working.
2868 break;;
2870 break;;
2871 esac
2872 done
2873 test "$ac_cv_exeext" = no && ac_cv_exeext=
2875 else
2876 ac_file=''
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2879 $as_echo "$ac_file" >&6; }
2880 if test -z "$ac_file"; then :
2881 $as_echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886 { as_fn_set_status 77
2887 as_fn_error "C compiler cannot create executables
2888 See \`config.log' for more details." "$LINENO" 5; }; }
2890 ac_exeext=$ac_cv_exeext
2892 # Check that the compiler produces executables we can run. If not, either
2893 # the compiler is broken, or we cross compile.
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2895 $as_echo_n "checking whether the C compiler works... " >&6; }
2896 # If not cross compiling, check that we can run a simple program.
2897 if test "$cross_compiling" != yes; then
2898 if { ac_try='./$ac_file'
2899 { { case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_try") 2>&5
2906 ac_status=$?
2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908 test $ac_status = 0; }; }; then
2909 cross_compiling=no
2910 else
2911 if test "$cross_compiling" = maybe; then
2912 cross_compiling=yes
2913 else
2914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 as_fn_error "cannot run C compiled programs.
2917 If you meant to cross compile, use \`--host'.
2918 See \`config.log' for more details." "$LINENO" 5; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2925 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2926 ac_clean_files=$ac_clean_files_save
2927 # Check that the compiler produces executables we can run. If not, either
2928 # the compiler is broken, or we cross compile.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2930 $as_echo_n "checking whether we are cross compiling... " >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2932 $as_echo "$cross_compiling" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2935 $as_echo_n "checking for suffix of executables... " >&6; }
2936 if { { ac_try="$ac_link"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942 $as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_link") 2>&5
2944 ac_status=$?
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; then :
2947 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2948 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2949 # work properly (i.e., refer to `conftest.exe'), while it won't with
2950 # `rm'.
2951 for ac_file in conftest.exe conftest conftest.*; do
2952 test -f "$ac_file" || continue
2953 case $ac_file in
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2955 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 break;;
2957 * ) break;;
2958 esac
2959 done
2960 else
2961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 as_fn_error "cannot compute suffix of executables: cannot compile and link
2964 See \`config.log' for more details." "$LINENO" 5; }
2966 rm -f conftest$ac_cv_exeext
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2968 $as_echo "$ac_cv_exeext" >&6; }
2970 rm -f conftest.$ac_ext
2971 EXEEXT=$ac_cv_exeext
2972 ac_exeext=$EXEEXT
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2974 $as_echo_n "checking for suffix of object files... " >&6; }
2975 if test "${ac_cv_objext+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h. */
2982 main ()
2986 return 0;
2988 _ACEOF
2989 rm -f conftest.o conftest.obj
2990 if { { ac_try="$ac_compile"
2991 case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_compile") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
3001 for ac_file in conftest.o conftest.obj conftest.*; do
3002 test -f "$ac_file" || continue;
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3005 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3006 break;;
3007 esac
3008 done
3009 else
3010 $as_echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error "cannot compute suffix of object files: cannot compile
3016 See \`config.log' for more details." "$LINENO" 5; }
3018 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3021 $as_echo "$ac_cv_objext" >&6; }
3022 OBJEXT=$ac_cv_objext
3023 ac_objext=$OBJEXT
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3025 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3026 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3033 main ()
3035 #ifndef __GNUC__
3036 choke me
3037 #endif
3040 return 0;
3042 _ACEOF
3043 if ac_fn_c_try_compile "$LINENO"; then :
3044 ac_compiler_gnu=yes
3045 else
3046 ac_compiler_gnu=no
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3053 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3054 if test $ac_compiler_gnu = yes; then
3055 GCC=yes
3056 else
3057 GCC=
3059 ac_test_CFLAGS=${CFLAGS+set}
3060 ac_save_CFLAGS=$CFLAGS
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3062 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3063 if test "${ac_cv_prog_cc_g+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 ac_save_c_werror_flag=$ac_c_werror_flag
3067 ac_c_werror_flag=yes
3068 ac_cv_prog_cc_g=no
3069 CFLAGS="-g"
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3074 main ()
3078 return 0;
3080 _ACEOF
3081 if ac_fn_c_try_compile "$LINENO"; then :
3082 ac_cv_prog_cc_g=yes
3083 else
3084 CFLAGS=""
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3089 main ()
3093 return 0;
3095 _ACEOF
3096 if ac_fn_c_try_compile "$LINENO"; then :
3098 else
3099 ac_c_werror_flag=$ac_save_c_werror_flag
3100 CFLAGS="-g"
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 if ac_fn_c_try_compile "$LINENO"; then :
3113 ac_cv_prog_cc_g=yes
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3123 $as_echo "$ac_cv_prog_cc_g" >&6; }
3124 if test "$ac_test_CFLAGS" = set; then
3125 CFLAGS=$ac_save_CFLAGS
3126 elif test $ac_cv_prog_cc_g = yes; then
3127 if test "$GCC" = yes; then
3128 CFLAGS="-g -O2"
3129 else
3130 CFLAGS="-g"
3132 else
3133 if test "$GCC" = yes; then
3134 CFLAGS="-O2"
3135 else
3136 CFLAGS=
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3140 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3141 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 ac_cv_prog_cc_c89=no
3145 ac_save_CC=$CC
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3148 #include <stdarg.h>
3149 #include <stdio.h>
3150 #include <sys/types.h>
3151 #include <sys/stat.h>
3152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3153 struct buf { int x; };
3154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3155 static char *e (p, i)
3156 char **p;
3157 int i;
3159 return p[i];
3161 static char *f (char * (*g) (char **, int), char **p, ...)
3163 char *s;
3164 va_list v;
3165 va_start (v,p);
3166 s = g (p, va_arg (v,int));
3167 va_end (v);
3168 return s;
3171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3172 function prototypes and stuff, but not '\xHH' hex character constants.
3173 These don't provoke an error unfortunately, instead are silently treated
3174 as 'x'. The following induces an error, until -std is added to get
3175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3176 array size at least. It's necessary to write '\x00'==0 to get something
3177 that's true only with -std. */
3178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3181 inside strings and character constants. */
3182 #define FOO(x) 'x'
3183 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3185 int test (int i, double x);
3186 struct s1 {int (*f) (int a);};
3187 struct s2 {int (*f) (double a);};
3188 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3189 int argc;
3190 char **argv;
3192 main ()
3194 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3196 return 0;
3198 _ACEOF
3199 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3200 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3202 CC="$ac_save_CC $ac_arg"
3203 if ac_fn_c_try_compile "$LINENO"; then :
3204 ac_cv_prog_cc_c89=$ac_arg
3206 rm -f core conftest.err conftest.$ac_objext
3207 test "x$ac_cv_prog_cc_c89" != "xno" && break
3208 done
3209 rm -f conftest.$ac_ext
3210 CC=$ac_save_CC
3213 # AC_CACHE_VAL
3214 case "x$ac_cv_prog_cc_c89" in
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3217 $as_echo "none needed" >&6; } ;;
3218 xno)
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3220 $as_echo "unsupported" >&6; } ;;
3222 CC="$CC $ac_cv_prog_cc_c89"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3224 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3225 esac
3226 if test "x$ac_cv_prog_cc_c89" != xno; then :
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3244 # On Suns, sometimes $CPP names a directory.
3245 if test -n "$CPP" && test -d "$CPP"; then
3246 CPP=
3248 if test -z "$CPP"; then
3249 if test "${ac_cv_prog_CPP+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 # Double quotes because CPP needs to be expanded
3253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255 ac_preproc_ok=false
3256 for ac_c_preproc_warn_flag in '' yes
3258 # Use a header file that comes with gcc, so configuring glibc
3259 # with a fresh cross-compiler works.
3260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3261 # <limits.h> exists even on freestanding compilers.
3262 # On the NeXT, cc -E runs the code through the compiler's parser,
3263 # not just through cpp. "Syntax error" is here to catch this case.
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271 Syntax error
3272 _ACEOF
3273 if ac_fn_c_try_cpp "$LINENO"; then :
3275 else
3276 # Broken: fails on valid input.
3277 continue
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3285 #include <ac_nonexistent.h>
3286 _ACEOF
3287 if ac_fn_c_try_cpp "$LINENO"; then :
3288 # Broken: success on invalid input.
3289 continue
3290 else
3291 # Passes both tests.
3292 ac_preproc_ok=:
3293 break
3295 rm -f conftest.err conftest.$ac_ext
3297 done
3298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299 rm -f conftest.err conftest.$ac_ext
3300 if $ac_preproc_ok; then :
3301 break
3304 done
3305 ac_cv_prog_CPP=$CPP
3308 CPP=$ac_cv_prog_CPP
3309 else
3310 ac_cv_prog_CPP=$CPP
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3313 $as_echo "$CPP" >&6; }
3314 ac_preproc_ok=false
3315 for ac_c_preproc_warn_flag in '' yes
3317 # Use a header file that comes with gcc, so configuring glibc
3318 # with a fresh cross-compiler works.
3319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320 # <limits.h> exists even on freestanding compilers.
3321 # On the NeXT, cc -E runs the code through the compiler's parser,
3322 # not just through cpp. "Syntax error" is here to catch this case.
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325 #ifdef __STDC__
3326 # include <limits.h>
3327 #else
3328 # include <assert.h>
3329 #endif
3330 Syntax error
3331 _ACEOF
3332 if ac_fn_c_try_cpp "$LINENO"; then :
3334 else
3335 # Broken: fails on valid input.
3336 continue
3338 rm -f conftest.err conftest.$ac_ext
3340 # OK, works on sane cases. Now check whether nonexistent headers
3341 # can be detected and how.
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344 #include <ac_nonexistent.h>
3345 _ACEOF
3346 if ac_fn_c_try_cpp "$LINENO"; then :
3347 # Broken: success on invalid input.
3348 continue
3349 else
3350 # Passes both tests.
3351 ac_preproc_ok=:
3352 break
3354 rm -f conftest.err conftest.$ac_ext
3356 done
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then :
3361 else
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3365 See \`config.log' for more details." "$LINENO" 5; }
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3377 if test "${ac_cv_path_GREP+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 if test -z "$GREP"; then
3381 ac_path_GREP_found=false
3382 # Loop through the user's path and test for each of PROGNAME-LIST
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_prog in grep ggrep; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3391 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3392 # Check for GNU ac_path_GREP and select it if it is found.
3393 # Check for GNU $ac_path_GREP
3394 case `"$ac_path_GREP" --version 2>&1` in
3395 *GNU*)
3396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3398 ac_count=0
3399 $as_echo_n 0123456789 >"conftest.in"
3400 while :
3402 cat "conftest.in" "conftest.in" >"conftest.tmp"
3403 mv "conftest.tmp" "conftest.in"
3404 cp "conftest.in" "conftest.nl"
3405 $as_echo 'GREP' >> "conftest.nl"
3406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3408 as_fn_arith $ac_count + 1 && ac_count=$as_val
3409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3410 # Best one so far, save it but keep looking for a better one
3411 ac_cv_path_GREP="$ac_path_GREP"
3412 ac_path_GREP_max=$ac_count
3414 # 10*(2^10) chars as input seems more than enough
3415 test $ac_count -gt 10 && break
3416 done
3417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3418 esac
3420 $ac_path_GREP_found && break 3
3421 done
3422 done
3423 done
3424 IFS=$as_save_IFS
3425 if test -z "$ac_cv_path_GREP"; then
3426 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3428 else
3429 ac_cv_path_GREP=$GREP
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3434 $as_echo "$ac_cv_path_GREP" >&6; }
3435 GREP="$ac_cv_path_GREP"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3439 $as_echo_n "checking for egrep... " >&6; }
3440 if test "${ac_cv_path_EGREP+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3444 then ac_cv_path_EGREP="$GREP -E"
3445 else
3446 if test -z "$EGREP"; then
3447 ac_path_EGREP_found=false
3448 # Loop through the user's path and test for each of PROGNAME-LIST
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_prog in egrep; do
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3457 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3458 # Check for GNU ac_path_EGREP and select it if it is found.
3459 # Check for GNU $ac_path_EGREP
3460 case `"$ac_path_EGREP" --version 2>&1` in
3461 *GNU*)
3462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3464 ac_count=0
3465 $as_echo_n 0123456789 >"conftest.in"
3466 while :
3468 cat "conftest.in" "conftest.in" >"conftest.tmp"
3469 mv "conftest.tmp" "conftest.in"
3470 cp "conftest.in" "conftest.nl"
3471 $as_echo 'EGREP' >> "conftest.nl"
3472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3474 as_fn_arith $ac_count + 1 && ac_count=$as_val
3475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3476 # Best one so far, save it but keep looking for a better one
3477 ac_cv_path_EGREP="$ac_path_EGREP"
3478 ac_path_EGREP_max=$ac_count
3480 # 10*(2^10) chars as input seems more than enough
3481 test $ac_count -gt 10 && break
3482 done
3483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3484 esac
3486 $ac_path_EGREP_found && break 3
3487 done
3488 done
3489 done
3490 IFS=$as_save_IFS
3491 if test -z "$ac_cv_path_EGREP"; then
3492 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3494 else
3495 ac_cv_path_EGREP=$EGREP
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3501 $as_echo "$ac_cv_path_EGREP" >&6; }
3502 EGREP="$ac_cv_path_EGREP"
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3506 $as_echo_n "checking for ANSI C header files... " >&6; }
3507 if test "${ac_cv_header_stdc+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512 #include <stdlib.h>
3513 #include <stdarg.h>
3514 #include <string.h>
3515 #include <float.h>
3518 main ()
3522 return 0;
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_cv_header_stdc=yes
3527 else
3528 ac_cv_header_stdc=no
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 if test $ac_cv_header_stdc = yes; then
3533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <string.h>
3538 _ACEOF
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 $EGREP "memchr" >/dev/null 2>&1; then :
3542 else
3543 ac_cv_header_stdc=no
3545 rm -f conftest*
3549 if test $ac_cv_header_stdc = yes; then
3550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553 #include <stdlib.h>
3555 _ACEOF
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "free" >/dev/null 2>&1; then :
3559 else
3560 ac_cv_header_stdc=no
3562 rm -f conftest*
3566 if test $ac_cv_header_stdc = yes; then
3567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3568 if test "$cross_compiling" = yes; then :
3570 else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <ctype.h>
3574 #include <stdlib.h>
3575 #if ((' ' & 0x0FF) == 0x020)
3576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3578 #else
3579 # define ISLOWER(c) \
3580 (('a' <= (c) && (c) <= 'i') \
3581 || ('j' <= (c) && (c) <= 'r') \
3582 || ('s' <= (c) && (c) <= 'z'))
3583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3584 #endif
3586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3588 main ()
3590 int i;
3591 for (i = 0; i < 256; i++)
3592 if (XOR (islower (i), ISLOWER (i))
3593 || toupper (i) != TOUPPER (i))
3594 return 2;
3595 return 0;
3597 _ACEOF
3598 if ac_fn_c_try_run "$LINENO"; then :
3600 else
3601 ac_cv_header_stdc=no
3603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3604 conftest.$ac_objext conftest.beam conftest.$ac_ext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3610 $as_echo "$ac_cv_header_stdc" >&6; }
3611 if test $ac_cv_header_stdc = yes; then
3613 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3618 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3619 inttypes.h stdint.h unistd.h
3620 do :
3621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3624 eval as_val=\$$as_ac_Header
3625 if test "x$as_val" = x""yes; then :
3626 cat >>confdefs.h <<_ACEOF
3627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3628 _ACEOF
3632 done
3636 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3637 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3638 MINIX=yes
3639 else
3640 MINIX=
3644 if test "$MINIX" = yes; then
3646 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3649 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3652 $as_echo "#define _MINIX 1" >>confdefs.h
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3658 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3659 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3665 # define __EXTENSIONS__ 1
3666 $ac_includes_default
3668 main ()
3672 return 0;
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_safe_to_define___extensions__=yes
3677 else
3678 ac_cv_safe_to_define___extensions__=no
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3683 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3684 test $ac_cv_safe_to_define___extensions__ = yes &&
3685 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3687 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3689 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3691 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3693 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3697 am__api_version='1.11'
3699 # Find a good install program. We prefer a C program (faster),
3700 # so one script is as good as another. But avoid the broken or
3701 # incompatible versions:
3702 # SysV /etc/install, /usr/sbin/install
3703 # SunOS /usr/etc/install
3704 # IRIX /sbin/install
3705 # AIX /bin/install
3706 # AmigaOS /C/install, which installs bootblocks on floppy discs
3707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3710 # OS/2's system install, which has a completely different semantic
3711 # ./install, which can be erroneously created by make from ./install.sh.
3712 # Reject install programs that cannot install multiple files.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3714 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3715 if test -z "$INSTALL"; then
3716 if test "${ac_cv_path_install+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 # Account for people who put trailing slashes in PATH elements.
3725 case $as_dir/ in #((
3726 ./ | .// | /[cC]/* | \
3727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3728 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3729 /usr/ucb/* ) ;;
3731 # OSF1 and SCO ODT 3.0 have their own names for install.
3732 # Don't use installbsd from OSF since it installs stuff as root
3733 # by default.
3734 for ac_prog in ginstall scoinst install; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3737 if test $ac_prog = install &&
3738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3739 # AIX install. It has an incompatible calling convention.
3741 elif test $ac_prog = install &&
3742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3743 # program-specific install script used by HP pwplus--don't use.
3745 else
3746 rm -rf conftest.one conftest.two conftest.dir
3747 echo one > conftest.one
3748 echo two > conftest.two
3749 mkdir conftest.dir
3750 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3751 test -s conftest.one && test -s conftest.two &&
3752 test -s conftest.dir/conftest.one &&
3753 test -s conftest.dir/conftest.two
3754 then
3755 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3756 break 3
3760 done
3761 done
3763 esac
3765 done
3766 IFS=$as_save_IFS
3768 rm -rf conftest.one conftest.two conftest.dir
3771 if test "${ac_cv_path_install+set}" = set; then
3772 INSTALL=$ac_cv_path_install
3773 else
3774 # As a last resort, use the slow shell script. Don't cache a
3775 # value for INSTALL within a source directory, because that will
3776 # break other packages using the cache if that directory is
3777 # removed, or if the value is a relative name.
3778 INSTALL=$ac_install_sh
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3782 $as_echo "$INSTALL" >&6; }
3784 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3785 # It thinks the first close brace ends the variable substitution.
3786 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3788 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3790 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3793 $as_echo_n "checking whether build environment is sane... " >&6; }
3794 # Just in case
3795 sleep 1
3796 echo timestamp > conftest.file
3797 # Reject unsafe characters in $srcdir or the absolute working directory
3798 # name. Accept space and tab only in the latter.
3799 am_lf='
3801 case `pwd` in
3802 *[\\\"\#\$\&\'\`$am_lf]*)
3803 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3804 esac
3805 case $srcdir in
3806 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3807 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3808 esac
3810 # Do `set' in a subshell so we don't clobber the current shell's
3811 # arguments. Must try -L first in case configure is actually a
3812 # symlink; some systems play weird games with the mod time of symlinks
3813 # (eg FreeBSD returns the mod time of the symlink's containing
3814 # directory).
3815 if (
3816 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3817 if test "$*" = "X"; then
3818 # -L didn't work.
3819 set X `ls -t "$srcdir/configure" conftest.file`
3821 rm -f conftest.file
3822 if test "$*" != "X $srcdir/configure conftest.file" \
3823 && test "$*" != "X conftest.file $srcdir/configure"; then
3825 # If neither matched, then we have a broken ls. This can happen
3826 # if, for instance, CONFIG_SHELL is bash and it inherits a
3827 # broken ls alias from the environment. This has actually
3828 # happened. Such a system could not be considered "sane".
3829 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3830 alias in your environment" "$LINENO" 5
3833 test "$2" = conftest.file
3835 then
3836 # Ok.
3838 else
3839 as_fn_error "newly created file is older than distributed files!
3840 Check your system clock" "$LINENO" 5
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3843 $as_echo "yes" >&6; }
3844 test "$program_prefix" != NONE &&
3845 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3846 # Use a double $ so make ignores it.
3847 test "$program_suffix" != NONE &&
3848 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3849 # Double any \ or $.
3850 # By default was `s,x,x', remove it if useless.
3851 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3852 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3854 # expand $ac_aux_dir to an absolute path
3855 am_aux_dir=`cd $ac_aux_dir && pwd`
3857 if test x"${MISSING+set}" != xset; then
3858 case $am_aux_dir in
3859 *\ * | *\ *)
3860 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3862 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3863 esac
3865 # Use eval to expand $SHELL
3866 if eval "$MISSING --run true"; then
3867 am_missing_run="$MISSING --run "
3868 else
3869 am_missing_run=
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3871 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3874 if test x"${install_sh}" != xset; then
3875 case $am_aux_dir in
3876 *\ * | *\ *)
3877 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3879 install_sh="\${SHELL} $am_aux_dir/install-sh"
3880 esac
3883 # Installed binaries are usually stripped using `strip' when the user
3884 # run `make install-strip'. However `strip' might not be the right
3885 # tool to use in cross-compilation environments, therefore Automake
3886 # will honor the `STRIP' environment variable to overrule this program.
3887 if test "$cross_compiling" != no; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}strip; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if test "${ac_cv_prog_STRIP+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 if test -n "$STRIP"; then
3897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3910 done
3911 done
3912 IFS=$as_save_IFS
3916 STRIP=$ac_cv_prog_STRIP
3917 if test -n "$STRIP"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3919 $as_echo "$STRIP" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3927 if test -z "$ac_cv_prog_STRIP"; then
3928 ac_ct_STRIP=$STRIP
3929 # Extract the first word of "strip", so it can be a program name with args.
3930 set dummy strip; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$ac_ct_STRIP"; then
3937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_ac_ct_STRIP="strip"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3952 IFS=$as_save_IFS
3956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3957 if test -n "$ac_ct_STRIP"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3959 $as_echo "$ac_ct_STRIP" >&6; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3965 if test "x$ac_ct_STRIP" = x; then
3966 STRIP=":"
3967 else
3968 case $cross_compiling:$ac_tool_warned in
3969 yes:)
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3972 ac_tool_warned=yes ;;
3973 esac
3974 STRIP=$ac_ct_STRIP
3976 else
3977 STRIP="$ac_cv_prog_STRIP"
3981 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3984 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3985 if test -z "$MKDIR_P"; then
3986 if test "${ac_cv_path_mkdir+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in mkdir gmkdir; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3997 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3998 'mkdir (GNU coreutils) '* | \
3999 'mkdir (coreutils) '* | \
4000 'mkdir (fileutils) '4.1*)
4001 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4002 break 3;;
4003 esac
4004 done
4005 done
4006 done
4007 IFS=$as_save_IFS
4011 if test "${ac_cv_path_mkdir+set}" = set; then
4012 MKDIR_P="$ac_cv_path_mkdir -p"
4013 else
4014 # As a last resort, use the slow shell script. Don't cache a
4015 # value for MKDIR_P within a source directory, because that will
4016 # break other packages using the cache if that directory is
4017 # removed, or if the value is a relative name.
4018 test -d ./--version && rmdir ./--version
4019 MKDIR_P="$ac_install_sh -d"
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4023 $as_echo "$MKDIR_P" >&6; }
4025 mkdir_p="$MKDIR_P"
4026 case $mkdir_p in
4027 [\\/$]* | ?:[\\/]*) ;;
4028 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4029 esac
4031 for ac_prog in gawk mawk nawk awk
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if test "${ac_cv_prog_AWK+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if test -n "$AWK"; then
4041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_AWK="$ac_prog"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4054 done
4055 done
4056 IFS=$as_save_IFS
4060 AWK=$ac_cv_prog_AWK
4061 if test -n "$AWK"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4063 $as_echo "$AWK" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4070 test -n "$AWK" && break
4071 done
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4074 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4075 set x ${MAKE-make}
4076 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4077 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 cat >conftest.make <<\_ACEOF
4081 SHELL = /bin/sh
4082 all:
4083 @echo '@@@%%%=$(MAKE)=@@@%%%'
4084 _ACEOF
4085 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4087 *@@@%%%=?*=@@@%%%*)
4088 eval ac_cv_prog_make_${ac_make}_set=yes;;
4090 eval ac_cv_prog_make_${ac_make}_set=no;;
4091 esac
4092 rm -f conftest.make
4094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4096 $as_echo "yes" >&6; }
4097 SET_MAKE=
4098 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 SET_MAKE="MAKE=${MAKE-make}"
4104 rm -rf .tst 2>/dev/null
4105 mkdir .tst 2>/dev/null
4106 if test -d .tst; then
4107 am__leading_dot=.
4108 else
4109 am__leading_dot=_
4111 rmdir .tst 2>/dev/null
4113 DEPDIR="${am__leading_dot}deps"
4115 ac_config_commands="$ac_config_commands depfiles"
4118 am_make=${MAKE-make}
4119 cat > confinc << 'END'
4120 am__doit:
4121 @echo this is the am__doit target
4122 .PHONY: am__doit
4124 # If we don't find an include directive, just comment out the code.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4126 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4127 am__include="#"
4128 am__quote=
4129 _am_result=none
4130 # First try GNU make style include.
4131 echo "include confinc" > confmf
4132 # Ignore all kinds of additional output from `make'.
4133 case `$am_make -s -f confmf 2> /dev/null` in #(
4134 *the\ am__doit\ target*)
4135 am__include=include
4136 am__quote=
4137 _am_result=GNU
4139 esac
4140 # Now try BSD make style include.
4141 if test "$am__include" = "#"; then
4142 echo '.include "confinc"' > confmf
4143 case `$am_make -s -f confmf 2> /dev/null` in #(
4144 *the\ am__doit\ target*)
4145 am__include=.include
4146 am__quote="\""
4147 _am_result=BSD
4149 esac
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4154 $as_echo "$_am_result" >&6; }
4155 rm -f confinc confmf
4157 # Check whether --enable-dependency-tracking was given.
4158 if test "${enable_dependency_tracking+set}" = set; then :
4159 enableval=$enable_dependency_tracking;
4162 if test "x$enable_dependency_tracking" != xno; then
4163 am_depcomp="$ac_aux_dir/depcomp"
4164 AMDEPBACKSLASH='\'
4165 am__nodep='_no'
4167 if test "x$enable_dependency_tracking" != xno; then
4168 AMDEP_TRUE=
4169 AMDEP_FALSE='#'
4170 else
4171 AMDEP_TRUE='#'
4172 AMDEP_FALSE=
4176 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4177 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4178 # is not polluted with repeated "-I."
4179 am__isrc=' -I$(srcdir)'
4180 # test to see if srcdir already configured
4181 if test -f $srcdir/config.status; then
4182 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4186 # test whether we have cygpath
4187 if test -z "$CYGPATH_W"; then
4188 if (cygpath --version) >/dev/null 2>/dev/null; then
4189 CYGPATH_W='cygpath -w'
4190 else
4191 CYGPATH_W=echo
4196 # Define the identity of the package.
4197 PACKAGE='cilk-runtime-library'
4198 VERSION='2.0'
4201 cat >>confdefs.h <<_ACEOF
4202 #define PACKAGE "$PACKAGE"
4203 _ACEOF
4206 cat >>confdefs.h <<_ACEOF
4207 #define VERSION "$VERSION"
4208 _ACEOF
4210 # Some tools Automake needs.
4212 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4215 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4218 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4221 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4224 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4226 # We need awk for the "check" target. The system "awk" is bad on
4227 # some platforms.
4228 # Always define AMTAR for backward compatibility. Yes, it's still used
4229 # in the wild :-( We should find a proper way to deprecate it ...
4230 AMTAR='$${TAR-tar}'
4232 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4237 depcc="$CC" am_compiler_list=
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4240 $as_echo_n "checking dependency style of $depcc... " >&6; }
4241 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4245 # We make a subdir and do the tests there. Otherwise we can end up
4246 # making bogus files that we don't know about and never remove. For
4247 # instance it was reported that on HP-UX the gcc test will end up
4248 # making a dummy file named `D' -- because `-MD' means `put the output
4249 # in D'.
4250 rm -rf conftest.dir
4251 mkdir conftest.dir
4252 # Copy depcomp to subdir because otherwise we won't find it if we're
4253 # using a relative directory.
4254 cp "$am_depcomp" conftest.dir
4255 cd conftest.dir
4256 # We will build objects and dependencies in a subdirectory because
4257 # it helps to detect inapplicable dependency modes. For instance
4258 # both Tru64's cc and ICC support -MD to output dependencies as a
4259 # side effect of compilation, but ICC will put the dependencies in
4260 # the current directory while Tru64 will put them in the object
4261 # directory.
4262 mkdir sub
4264 am_cv_CC_dependencies_compiler_type=none
4265 if test "$am_compiler_list" = ""; then
4266 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4268 am__universal=false
4269 case " $depcc " in #(
4270 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4271 esac
4273 for depmode in $am_compiler_list; do
4274 # Setup a source with many dependencies, because some compilers
4275 # like to wrap large dependency lists on column 80 (with \), and
4276 # we should not choose a depcomp mode which is confused by this.
4278 # We need to recreate these files for each test, as the compiler may
4279 # overwrite some of them when testing with obscure command lines.
4280 # This happens at least with the AIX C compiler.
4281 : > sub/conftest.c
4282 for i in 1 2 3 4 5 6; do
4283 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4284 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4285 # Solaris 8's {/usr,}/bin/sh.
4286 touch sub/conftst$i.h
4287 done
4288 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4291 # mode. It turns out that the SunPro C++ compiler does not properly
4292 # handle `-M -o', and we need to detect this. Also, some Intel
4293 # versions had trouble with output in subdirs
4294 am__obj=sub/conftest.${OBJEXT-o}
4295 am__minus_obj="-o $am__obj"
4296 case $depmode in
4297 gcc)
4298 # This depmode causes a compiler race in universal mode.
4299 test "$am__universal" = false || continue
4301 nosideeffect)
4302 # after this tag, mechanisms are not by side-effect, so they'll
4303 # only be used when explicitly requested
4304 if test "x$enable_dependency_tracking" = xyes; then
4305 continue
4306 else
4307 break
4310 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4311 # This compiler won't grok `-c -o', but also, the minuso test has
4312 # not run yet. These depmodes are late enough in the game, and
4313 # so weak that their functioning should not be impacted.
4314 am__obj=conftest.${OBJEXT-o}
4315 am__minus_obj=
4317 none) break ;;
4318 esac
4319 if depmode=$depmode \
4320 source=sub/conftest.c object=$am__obj \
4321 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4322 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4323 >/dev/null 2>conftest.err &&
4324 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4325 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4326 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4327 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4328 # icc doesn't choke on unknown options, it will just issue warnings
4329 # or remarks (even with -Werror). So we grep stderr for any message
4330 # that says an option was ignored or not supported.
4331 # When given -MP, icc 7.0 and 7.1 complain thusly:
4332 # icc: Command line warning: ignoring option '-M'; no argument required
4333 # The diagnosis changed in icc 8.0:
4334 # icc: Command line remark: option '-MP' not supported
4335 if (grep 'ignoring option' conftest.err ||
4336 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4337 am_cv_CC_dependencies_compiler_type=$depmode
4338 break
4341 done
4343 cd ..
4344 rm -rf conftest.dir
4345 else
4346 am_cv_CC_dependencies_compiler_type=none
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4352 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355 test "x$enable_dependency_tracking" != xno \
4356 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4357 am__fastdepCC_TRUE=
4358 am__fastdepCC_FALSE='#'
4359 else
4360 am__fastdepCC_TRUE='#'
4361 am__fastdepCC_FALSE=
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4369 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4370 # Check whether --enable-maintainer-mode was given.
4371 if test "${enable_maintainer_mode+set}" = set; then :
4372 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4373 else
4374 USE_MAINTAINER_MODE=no
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4378 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4379 if test $USE_MAINTAINER_MODE = yes; then
4380 MAINTAINER_MODE_TRUE=
4381 MAINTAINER_MODE_FALSE='#'
4382 else
4383 MAINTAINER_MODE_TRUE='#'
4384 MAINTAINER_MODE_FALSE=
4387 MAINT=$MAINTAINER_MODE_TRUE
4391 # Default to --enable-multilib
4392 # Check whether --enable-multilib was given.
4393 if test "${enable_multilib+set}" = set; then :
4394 enableval=$enable_multilib; case "$enableval" in
4395 yes) multilib=yes ;;
4396 no) multilib=no ;;
4397 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4398 esac
4399 else
4400 multilib=yes
4404 # We may get other options which we leave undocumented:
4405 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4406 # See config-ml.in if you want the gory details.
4408 if test "$srcdir" = "."; then
4409 if test "$with_target_subdir" != "."; then
4410 multi_basedir="$srcdir/$with_multisrctop../.."
4411 else
4412 multi_basedir="$srcdir/$with_multisrctop.."
4414 else
4415 multi_basedir="$srcdir/.."
4419 # Even if the default multilib is not a cross compilation,
4420 # it may be that some of the other multilibs are.
4421 if test $cross_compiling = no && test $multilib = yes \
4422 && test "x${with_multisubdir}" != x ; then
4423 cross_compiling=maybe
4426 ac_config_commands="$ac_config_commands default-1"
4429 # Build a DLL on Windows
4430 # AC_LIBTOOL_WIN32_DLL
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4438 set dummy ${ac_tool_prefix}gcc; 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}gcc"
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; }
4475 if test -z "$ac_cv_prog_CC"; then
4476 ac_ct_CC=$CC
4477 # Extract the first word of "gcc", so it can be a program name with args.
4478 set dummy gcc; 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_ac_ct_CC+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -n "$ac_ct_CC"; then
4485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4494 ac_cv_prog_ac_ct_CC="gcc"
4495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4498 done
4499 done
4500 IFS=$as_save_IFS
4504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4507 $as_echo "$ac_ct_CC" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4513 if test "x$ac_ct_CC" = x; then
4514 CC=""
4515 else
4516 case $cross_compiling:$ac_tool_warned in
4517 yes:)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520 ac_tool_warned=yes ;;
4521 esac
4522 CC=$ac_ct_CC
4524 else
4525 CC="$ac_cv_prog_CC"
4528 if test -z "$CC"; then
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4531 set dummy ${ac_tool_prefix}cc; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_CC="${ac_tool_prefix}cc"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4551 done
4552 done
4553 IFS=$as_save_IFS
4557 CC=$ac_cv_prog_CC
4558 if test -n "$CC"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560 $as_echo "$CC" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4569 if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_CC+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC="$CC" # Let the user override the test.
4579 else
4580 ac_prog_rejected=no
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4592 ac_cv_prog_CC="cc"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4596 done
4597 done
4598 IFS=$as_save_IFS
4600 if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4614 CC=$ac_cv_prog_CC
4615 if test -n "$CC"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617 $as_echo "$CC" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in cl.exe
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 CC=$ac_cv_prog_CC
4657 if test -n "$CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659 $as_echo "$CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 test -n "$CC" && break
4667 done
4669 if test -z "$CC"; then
4670 ac_ct_CC=$CC
4671 for ac_prog in cl.exe
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_CC="$ac_prog"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4694 done
4695 done
4696 IFS=$as_save_IFS
4700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 $as_echo "$ac_ct_CC" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4710 test -n "$ac_ct_CC" && break
4711 done
4713 if test "x$ac_ct_CC" = x; then
4714 CC=""
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722 CC=$ac_ct_CC
4729 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4731 as_fn_error "no acceptable C compiler found in \$PATH
4732 See \`config.log' for more details." "$LINENO" 5; }
4734 # Provide some information about the compiler.
4735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4736 set X $ac_compile
4737 ac_compiler=$2
4738 for ac_option in --version -v -V -qversion; do
4739 { { ac_try="$ac_compiler $ac_option >&5"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4747 ac_status=$?
4748 if test -s conftest.err; then
4749 sed '10a\
4750 ... rest of stderr output deleted ...
4751 10q' conftest.err >conftest.er1
4752 cat conftest.er1 >&5
4753 rm -f conftest.er1 conftest.err
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757 done
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4761 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4768 main ()
4770 #ifndef __GNUC__
4771 choke me
4772 #endif
4775 return 0;
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_compiler_gnu=yes
4780 else
4781 ac_compiler_gnu=no
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4789 if test $ac_compiler_gnu = yes; then
4790 GCC=yes
4791 else
4792 GCC=
4794 ac_test_CFLAGS=${CFLAGS+set}
4795 ac_save_CFLAGS=$CFLAGS
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4798 if test "${ac_cv_prog_cc_g+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 ac_save_c_werror_flag=$ac_c_werror_flag
4802 ac_c_werror_flag=yes
4803 ac_cv_prog_cc_g=no
4804 CFLAGS="-g"
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4809 main ()
4813 return 0;
4815 _ACEOF
4816 if ac_fn_c_try_compile "$LINENO"; then :
4817 ac_cv_prog_cc_g=yes
4818 else
4819 CFLAGS=""
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4824 main ()
4828 return 0;
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4833 else
4834 ac_c_werror_flag=$ac_save_c_werror_flag
4835 CFLAGS="-g"
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4840 main ()
4844 return 0;
4846 _ACEOF
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_prog_cc_g=yes
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 ac_c_werror_flag=$ac_save_c_werror_flag
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4858 $as_echo "$ac_cv_prog_cc_g" >&6; }
4859 if test "$ac_test_CFLAGS" = set; then
4860 CFLAGS=$ac_save_CFLAGS
4861 elif test $ac_cv_prog_cc_g = yes; then
4862 if test "$GCC" = yes; then
4863 CFLAGS="-g -O2"
4864 else
4865 CFLAGS="-g"
4867 else
4868 if test "$GCC" = yes; then
4869 CFLAGS="-O2"
4870 else
4871 CFLAGS=
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4876 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 ac_cv_prog_cc_c89=no
4880 ac_save_CC=$CC
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <stdarg.h>
4884 #include <stdio.h>
4885 #include <sys/types.h>
4886 #include <sys/stat.h>
4887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4888 struct buf { int x; };
4889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890 static char *e (p, i)
4891 char **p;
4892 int i;
4894 return p[i];
4896 static char *f (char * (*g) (char **, int), char **p, ...)
4898 char *s;
4899 va_list v;
4900 va_start (v,p);
4901 s = g (p, va_arg (v,int));
4902 va_end (v);
4903 return s;
4906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4907 function prototypes and stuff, but not '\xHH' hex character constants.
4908 These don't provoke an error unfortunately, instead are silently treated
4909 as 'x'. The following induces an error, until -std is added to get
4910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4911 array size at least. It's necessary to write '\x00'==0 to get something
4912 that's true only with -std. */
4913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4916 inside strings and character constants. */
4917 #define FOO(x) 'x'
4918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4920 int test (int i, double x);
4921 struct s1 {int (*f) (int a);};
4922 struct s2 {int (*f) (double a);};
4923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4924 int argc;
4925 char **argv;
4927 main ()
4929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4931 return 0;
4933 _ACEOF
4934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_cv_prog_cc_c89=$ac_arg
4941 rm -f core conftest.err conftest.$ac_objext
4942 test "x$ac_cv_prog_cc_c89" != "xno" && break
4943 done
4944 rm -f conftest.$ac_ext
4945 CC=$ac_save_CC
4948 # AC_CACHE_VAL
4949 case "x$ac_cv_prog_cc_c89" in
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4952 $as_echo "none needed" >&6; } ;;
4953 xno)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4955 $as_echo "unsupported" >&6; } ;;
4957 CC="$CC $ac_cv_prog_cc_c89"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4960 esac
4961 if test "x$ac_cv_prog_cc_c89" != xno; then :
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 ac_ext=cpp
4972 ac_cpp='$CXXCPP $CPPFLAGS'
4973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976 if test -z "$CXX"; then
4977 if test -n "$CCC"; then
4978 CXX=$CCC
4979 else
4980 if test -n "$ac_tool_prefix"; then
4981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if test "${ac_cv_prog_CXX+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$CXX"; then
4991 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 CXX=$ac_cv_prog_CXX
5011 if test -n "$CXX"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5013 $as_echo "$CXX" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 test -n "$CXX" && break
5021 done
5023 if test -z "$CXX"; then
5024 ac_ct_CXX=$CXX
5025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$ac_ct_CXX"; then
5035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_ac_ct_CXX="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5054 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5055 if test -n "$ac_ct_CXX"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5057 $as_echo "$ac_ct_CXX" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 test -n "$ac_ct_CXX" && break
5065 done
5067 if test "x$ac_ct_CXX" = x; then
5068 CXX="g++"
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 CXX=$ac_ct_CXX
5082 # Provide some information about the compiler.
5083 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5084 set X $ac_compile
5085 ac_compiler=$2
5086 for ac_option in --version -v -V -qversion; do
5087 { { ac_try="$ac_compiler $ac_option >&5"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5093 $as_echo "$ac_try_echo"; } >&5
5094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5095 ac_status=$?
5096 if test -s conftest.err; then
5097 sed '10a\
5098 ... rest of stderr output deleted ...
5099 10q' conftest.err >conftest.er1
5100 cat conftest.er1 >&5
5101 rm -f conftest.er1 conftest.err
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 done
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5108 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5109 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5116 main ()
5118 #ifndef __GNUC__
5119 choke me
5120 #endif
5123 return 0;
5125 _ACEOF
5126 if ac_fn_cxx_try_compile "$LINENO"; then :
5127 ac_compiler_gnu=yes
5128 else
5129 ac_compiler_gnu=no
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5136 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5137 if test $ac_compiler_gnu = yes; then
5138 GXX=yes
5139 else
5140 GXX=
5142 ac_test_CXXFLAGS=${CXXFLAGS+set}
5143 ac_save_CXXFLAGS=$CXXFLAGS
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5145 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5146 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5150 ac_cxx_werror_flag=yes
5151 ac_cv_prog_cxx_g=no
5152 CXXFLAGS="-g"
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5157 main ()
5161 return 0;
5163 _ACEOF
5164 if ac_fn_cxx_try_compile "$LINENO"; then :
5165 ac_cv_prog_cxx_g=yes
5166 else
5167 CXXFLAGS=""
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5172 main ()
5176 return 0;
5178 _ACEOF
5179 if ac_fn_cxx_try_compile "$LINENO"; then :
5181 else
5182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5183 CXXFLAGS="-g"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5188 main ()
5192 return 0;
5194 _ACEOF
5195 if ac_fn_cxx_try_compile "$LINENO"; then :
5196 ac_cv_prog_cxx_g=yes
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5206 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5207 if test "$ac_test_CXXFLAGS" = set; then
5208 CXXFLAGS=$ac_save_CXXFLAGS
5209 elif test $ac_cv_prog_cxx_g = yes; then
5210 if test "$GXX" = yes; then
5211 CXXFLAGS="-g -O2"
5212 else
5213 CXXFLAGS="-g"
5215 else
5216 if test "$GXX" = yes; then
5217 CXXFLAGS="-O2"
5218 else
5219 CXXFLAGS=
5222 ac_ext=c
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 depcc="$CXX" am_compiler_list=
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5231 $as_echo_n "checking dependency style of $depcc... " >&6; }
5232 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5236 # We make a subdir and do the tests there. Otherwise we can end up
5237 # making bogus files that we don't know about and never remove. For
5238 # instance it was reported that on HP-UX the gcc test will end up
5239 # making a dummy file named `D' -- because `-MD' means `put the output
5240 # in D'.
5241 rm -rf conftest.dir
5242 mkdir conftest.dir
5243 # Copy depcomp to subdir because otherwise we won't find it if we're
5244 # using a relative directory.
5245 cp "$am_depcomp" conftest.dir
5246 cd conftest.dir
5247 # We will build objects and dependencies in a subdirectory because
5248 # it helps to detect inapplicable dependency modes. For instance
5249 # both Tru64's cc and ICC support -MD to output dependencies as a
5250 # side effect of compilation, but ICC will put the dependencies in
5251 # the current directory while Tru64 will put them in the object
5252 # directory.
5253 mkdir sub
5255 am_cv_CXX_dependencies_compiler_type=none
5256 if test "$am_compiler_list" = ""; then
5257 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5259 am__universal=false
5260 case " $depcc " in #(
5261 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5262 esac
5264 for depmode in $am_compiler_list; do
5265 # Setup a source with many dependencies, because some compilers
5266 # like to wrap large dependency lists on column 80 (with \), and
5267 # we should not choose a depcomp mode which is confused by this.
5269 # We need to recreate these files for each test, as the compiler may
5270 # overwrite some of them when testing with obscure command lines.
5271 # This happens at least with the AIX C compiler.
5272 : > sub/conftest.c
5273 for i in 1 2 3 4 5 6; do
5274 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5275 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5276 # Solaris 8's {/usr,}/bin/sh.
5277 touch sub/conftst$i.h
5278 done
5279 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5282 # mode. It turns out that the SunPro C++ compiler does not properly
5283 # handle `-M -o', and we need to detect this. Also, some Intel
5284 # versions had trouble with output in subdirs
5285 am__obj=sub/conftest.${OBJEXT-o}
5286 am__minus_obj="-o $am__obj"
5287 case $depmode in
5288 gcc)
5289 # This depmode causes a compiler race in universal mode.
5290 test "$am__universal" = false || continue
5292 nosideeffect)
5293 # after this tag, mechanisms are not by side-effect, so they'll
5294 # only be used when explicitly requested
5295 if test "x$enable_dependency_tracking" = xyes; then
5296 continue
5297 else
5298 break
5301 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5302 # This compiler won't grok `-c -o', but also, the minuso test has
5303 # not run yet. These depmodes are late enough in the game, and
5304 # so weak that their functioning should not be impacted.
5305 am__obj=conftest.${OBJEXT-o}
5306 am__minus_obj=
5308 none) break ;;
5309 esac
5310 if depmode=$depmode \
5311 source=sub/conftest.c object=$am__obj \
5312 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5313 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5314 >/dev/null 2>conftest.err &&
5315 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5317 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5319 # icc doesn't choke on unknown options, it will just issue warnings
5320 # or remarks (even with -Werror). So we grep stderr for any message
5321 # that says an option was ignored or not supported.
5322 # When given -MP, icc 7.0 and 7.1 complain thusly:
5323 # icc: Command line warning: ignoring option '-M'; no argument required
5324 # The diagnosis changed in icc 8.0:
5325 # icc: Command line remark: option '-MP' not supported
5326 if (grep 'ignoring option' conftest.err ||
5327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5328 am_cv_CXX_dependencies_compiler_type=$depmode
5329 break
5332 done
5334 cd ..
5335 rm -rf conftest.dir
5336 else
5337 am_cv_CXX_dependencies_compiler_type=none
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5342 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5343 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5346 test "x$enable_dependency_tracking" != xno \
5347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5348 am__fastdepCXX_TRUE=
5349 am__fastdepCXX_FALSE='#'
5350 else
5351 am__fastdepCXX_TRUE='#'
5352 am__fastdepCXX_FALSE=
5356 # AC_PROG_LIBTOOL
5357 # AC_CONFIG_MACRO_DIR([..])
5358 ac_config_files="$ac_config_files Makefile libcilkrts.spec"
5360 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5361 # for constant arguments. Useless!
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5363 $as_echo_n "checking for working alloca.h... " >&6; }
5364 if test "${ac_cv_working_alloca_h+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <alloca.h>
5371 main ()
5373 char *p = (char *) alloca (2 * sizeof (int));
5374 if (p) return 0;
5376 return 0;
5378 _ACEOF
5379 if ac_fn_c_try_link "$LINENO"; then :
5380 ac_cv_working_alloca_h=yes
5381 else
5382 ac_cv_working_alloca_h=no
5384 rm -f core conftest.err conftest.$ac_objext \
5385 conftest$ac_exeext conftest.$ac_ext
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5388 $as_echo "$ac_cv_working_alloca_h" >&6; }
5389 if test $ac_cv_working_alloca_h = yes; then
5391 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5396 $as_echo_n "checking for alloca... " >&6; }
5397 if test "${ac_cv_func_alloca_works+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #ifdef __GNUC__
5403 # define alloca __builtin_alloca
5404 #else
5405 # ifdef _MSC_VER
5406 # include <malloc.h>
5407 # define alloca _alloca
5408 # else
5409 # ifdef HAVE_ALLOCA_H
5410 # include <alloca.h>
5411 # else
5412 # ifdef _AIX
5413 #pragma alloca
5414 # else
5415 # ifndef alloca /* predefined by HP cc +Olibcalls */
5416 char *alloca ();
5417 # endif
5418 # endif
5419 # endif
5420 # endif
5421 #endif
5424 main ()
5426 char *p = (char *) alloca (1);
5427 if (p) return 0;
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_link "$LINENO"; then :
5433 ac_cv_func_alloca_works=yes
5434 else
5435 ac_cv_func_alloca_works=no
5437 rm -f core conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5441 $as_echo "$ac_cv_func_alloca_works" >&6; }
5443 if test $ac_cv_func_alloca_works = yes; then
5445 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5447 else
5448 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5449 # that cause trouble. Some versions do not even contain alloca or
5450 # contain a buggy version. If you still want to use their alloca,
5451 # use ar to extract alloca.o from them instead of compiling alloca.c.
5453 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5455 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5459 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5460 if test "${ac_cv_os_cray+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #if defined CRAY && ! defined CRAY2
5466 webecray
5467 #else
5468 wenotbecray
5469 #endif
5471 _ACEOF
5472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5473 $EGREP "webecray" >/dev/null 2>&1; then :
5474 ac_cv_os_cray=yes
5475 else
5476 ac_cv_os_cray=no
5478 rm -f conftest*
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5482 $as_echo "$ac_cv_os_cray" >&6; }
5483 if test $ac_cv_os_cray = yes; then
5484 for ac_func in _getb67 GETB67 getb67; do
5485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5487 eval as_val=\$$as_ac_var
5488 if test "x$as_val" = x""yes; then :
5490 cat >>confdefs.h <<_ACEOF
5491 #define CRAY_STACKSEG_END $ac_func
5492 _ACEOF
5494 break
5497 done
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5501 $as_echo_n "checking stack direction for C alloca... " >&6; }
5502 if test "${ac_cv_c_stack_direction+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test "$cross_compiling" = yes; then :
5506 ac_cv_c_stack_direction=0
5507 else
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 $ac_includes_default
5512 find_stack_direction ()
5514 static char *addr = 0;
5515 auto char dummy;
5516 if (addr == 0)
5518 addr = &dummy;
5519 return find_stack_direction ();
5521 else
5522 return (&dummy > addr) ? 1 : -1;
5526 main ()
5528 return find_stack_direction () < 0;
5530 _ACEOF
5531 if ac_fn_c_try_run "$LINENO"; then :
5532 ac_cv_c_stack_direction=1
5533 else
5534 ac_cv_c_stack_direction=-1
5536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5537 conftest.$ac_objext conftest.beam conftest.$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5542 $as_echo "$ac_cv_c_stack_direction" >&6; }
5543 cat >>confdefs.h <<_ACEOF
5544 #define STACK_DIRECTION $ac_cv_c_stack_direction
5545 _ACEOF
5551 # Check whether the target supports protected visibility.
5552 save_CFLAGS="$CFLAGS"
5553 CFLAGS="$CFLAGS -Werror"
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 void __attribute__((visibility("protected"))) foo(void) { }
5558 main ()
5562 return 0;
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 libcilkrts_cv_have_attribute_visibility=yes
5567 else
5568 libcilkrts_cv_have_attribute_visibility=no
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 CFLAGS="$save_CFLAGS"
5572 if test $libcilkrts_cv_have_attribute_visibility = yes; then
5574 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
5578 # Get target configury.
5579 . ${srcdir}/configure.tgt
5580 if test -n "$UNSUPPORTED"; then
5581 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
5584 if test "${multilib}" = "yes"; then
5585 multilib_arg="--enable-multilib"
5586 else
5587 multilib_arg=
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5591 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5592 # Check whether --enable-version-specific-runtime-libs was given.
5593 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5594 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5595 yes) enable_version_specific_runtime_libs=yes ;;
5596 no) enable_version_specific_runtime_libs=no ;;
5597 *) as_fn_error "Unknown argument to enable/disable version-specific libs
5598 " "$LINENO" 5;;
5599 esac
5600 else
5601 enable_version_specific_runtime_libs=no
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5605 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5608 # Calculate toolexeclibdir
5609 # Also toolexecdir, though it's only used in toolexeclibdir
5610 case ${enable_version_specific_runtime_libs} in
5611 yes)
5612 # Need the gcc compiler version to know where to install libraries
5613 # and header files if --enable-version-specific-runtime-libs option
5614 # is selected.
5615 toolexecdir='$(libdir)/gcc/$(target_alias)'
5616 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5619 if test -n "$with_cross_host" &&
5620 test x"$with_cross_host" != x"no"; then
5621 # Install a library built with a cross compiler in tooldir, not libdir.
5622 toolexecdir='$(exec_prefix)/$(target_alias)'
5623 toolexeclibdir='$(toolexecdir)/lib'
5624 else
5625 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5626 toolexeclibdir='$(libdir)'
5628 multi_os_directory=`$CC -print-multi-os-directory`
5629 case $multi_os_directory in
5630 .) ;; # Avoid trailing /.
5631 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5632 esac
5634 esac
5636 # Set config_dir based on the target. config_dir specifies where to get
5637 # target-specific files. The generic implementation is incomplete, but
5638 # contains information on what's needed
5639 case "${target}" in
5641 x86_64-*-*)
5642 config_dir="x86"
5645 i?86-*-*)
5646 config_dir="x86"
5649 arm-*-*)
5650 config_dir="arm"
5654 config_dir="generic"
5657 esac
5660 # We have linker scripts for appropriate operating systems
5661 linux_linker_script=no
5662 case "${host}" in
5663 *-*-linux*)
5664 linux_linker_script=yes
5666 esac
5667 if test "$linux_linker_script" = "yes"; then
5668 LINUX_LINKER_SCRIPT_TRUE=
5669 LINUX_LINKER_SCRIPT_FALSE='#'
5670 else
5671 LINUX_LINKER_SCRIPT_TRUE='#'
5672 LINUX_LINKER_SCRIPT_FALSE=
5676 mac_linker_script=no
5677 case "${host}" in
5678 *-*-apple*)
5679 mac_linker_script=yes
5681 esac
5682 if test "$mac_linker_script" = "yes"; then
5683 MAC_LINKER_SCRIPT_TRUE=
5684 MAC_LINKER_SCRIPT_FALSE='#'
5685 else
5686 MAC_LINKER_SCRIPT_TRUE='#'
5687 MAC_LINKER_SCRIPT_FALSE=
5691 enable_dlopen=yes
5695 case `pwd` in
5696 *\ * | *\ *)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5698 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5699 esac
5703 macro_version='2.2.7a'
5704 macro_revision='1.3134'
5718 ltmain="$ac_aux_dir/ltmain.sh"
5720 # Backslashify metacharacters that are still active within
5721 # double-quoted strings.
5722 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5724 # Same as above, but do not quote variable references.
5725 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5727 # Sed substitution to delay expansion of an escaped shell variable in a
5728 # double_quote_subst'ed string.
5729 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5731 # Sed substitution to delay expansion of an escaped single quote.
5732 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5734 # Sed substitution to avoid accidental globbing in evaled expressions
5735 no_glob_subst='s/\*/\\\*/g'
5737 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5739 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5742 $as_echo_n "checking how to print strings... " >&6; }
5743 # Test print first, because it will be a builtin if present.
5744 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5745 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5746 ECHO='print -r --'
5747 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5748 ECHO='printf %s\n'
5749 else
5750 # Use this function as a fallback that always works.
5751 func_fallback_echo ()
5753 eval 'cat <<_LTECHO_EOF
5755 _LTECHO_EOF'
5757 ECHO='func_fallback_echo'
5760 # func_echo_all arg...
5761 # Invoke $ECHO with all args, space-separated.
5762 func_echo_all ()
5764 $ECHO ""
5767 case "$ECHO" in
5768 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5769 $as_echo "printf" >&6; } ;;
5770 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5771 $as_echo "print -r" >&6; } ;;
5772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5773 $as_echo "cat" >&6; } ;;
5774 esac
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5790 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5791 if test "${ac_cv_path_SED+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5795 for ac_i in 1 2 3 4 5 6 7; do
5796 ac_script="$ac_script$as_nl$ac_script"
5797 done
5798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5799 { ac_script=; unset ac_script;}
5800 if test -z "$SED"; then
5801 ac_path_SED_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in sed gsed; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5811 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5812 # Check for GNU ac_path_SED and select it if it is found.
5813 # Check for GNU $ac_path_SED
5814 case `"$ac_path_SED" --version 2>&1` in
5815 *GNU*)
5816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5818 ac_count=0
5819 $as_echo_n 0123456789 >"conftest.in"
5820 while :
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo '' >> "conftest.nl"
5826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_SED_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_SED="$ac_path_SED"
5832 ac_path_SED_max=$ac_count
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5836 done
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838 esac
5840 $ac_path_SED_found && break 3
5841 done
5842 done
5843 done
5844 IFS=$as_save_IFS
5845 if test -z "$ac_cv_path_SED"; then
5846 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5848 else
5849 ac_cv_path_SED=$SED
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5854 $as_echo "$ac_cv_path_SED" >&6; }
5855 SED="$ac_cv_path_SED"
5856 rm -f conftest.sed
5858 test -z "$SED" && SED=sed
5859 Xsed="$SED -e 1s/^X//"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5872 $as_echo_n "checking for fgrep... " >&6; }
5873 if test "${ac_cv_path_FGREP+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5877 then ac_cv_path_FGREP="$GREP -F"
5878 else
5879 if test -z "$FGREP"; then
5880 ac_path_FGREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in fgrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5890 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5891 # Check for GNU ac_path_FGREP and select it if it is found.
5892 # Check for GNU $ac_path_FGREP
5893 case `"$ac_path_FGREP" --version 2>&1` in
5894 *GNU*)
5895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5897 ac_count=0
5898 $as_echo_n 0123456789 >"conftest.in"
5899 while :
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 $as_echo 'FGREP' >> "conftest.nl"
5905 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 as_fn_arith $ac_count + 1 && ac_count=$as_val
5908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_FGREP="$ac_path_FGREP"
5911 ac_path_FGREP_max=$ac_count
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5915 done
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 esac
5919 $ac_path_FGREP_found && break 3
5920 done
5921 done
5922 done
5923 IFS=$as_save_IFS
5924 if test -z "$ac_cv_path_FGREP"; then
5925 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5927 else
5928 ac_cv_path_FGREP=$FGREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5934 $as_echo "$ac_cv_path_FGREP" >&6; }
5935 FGREP="$ac_cv_path_FGREP"
5938 test -z "$GREP" && GREP=grep
5958 # Check whether --with-gnu-ld was given.
5959 if test "${with_gnu_ld+set}" = set; then :
5960 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5961 else
5962 with_gnu_ld=no
5965 ac_prog=ld
5966 if test "$GCC" = yes; then
5967 # Check if gcc -print-prog-name=ld gives a path.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5969 $as_echo_n "checking for ld used by $CC... " >&6; }
5970 case $host in
5971 *-*-mingw*)
5972 # gcc leaves a trailing carriage return which upsets mingw
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5976 esac
5977 case $ac_prog in
5978 # Accept absolute paths.
5979 [\\/]* | ?:[\\/]*)
5980 re_direlt='/[^/][^/]*/\.\./'
5981 # Canonicalize the pathname of ld
5982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5985 done
5986 test -z "$LD" && LD="$ac_prog"
5989 # If it fails, then pretend we aren't using GCC.
5990 ac_prog=ld
5993 # If it is relative, then search for the first ld in PATH.
5994 with_gnu_ld=unknown
5996 esac
5997 elif test "$with_gnu_ld" = yes; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5999 $as_echo_n "checking for GNU ld... " >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6002 $as_echo_n "checking for non-GNU ld... " >&6; }
6004 if test "${lt_cv_path_LD+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -z "$LD"; then
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 for ac_dir in $PATH; do
6010 IFS="$lt_save_ifs"
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6013 lt_cv_path_LD="$ac_dir/$ac_prog"
6014 # Check to see if the program is GNU ld. I'd rather use --version,
6015 # but apparently some variants of GNU ld only accept -v.
6016 # Break only if it was the GNU/non-GNU ld that we prefer.
6017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6018 *GNU* | *'with BFD'*)
6019 test "$with_gnu_ld" != no && break
6022 test "$with_gnu_ld" != yes && break
6024 esac
6026 done
6027 IFS="$lt_save_ifs"
6028 else
6029 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6033 LD="$lt_cv_path_LD"
6034 if test -n "$LD"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6036 $as_echo "$LD" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6041 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6043 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6044 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048 case `$LD -v 2>&1 </dev/null` in
6049 *GNU* | *'with BFD'*)
6050 lt_cv_prog_gnu_ld=yes
6053 lt_cv_prog_gnu_ld=no
6055 esac
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6058 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6059 with_gnu_ld=$lt_cv_prog_gnu_ld
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6070 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6071 if test "${lt_cv_path_NM+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -n "$NM"; then
6075 # Let the user override the test.
6076 lt_cv_path_NM="$NM"
6077 else
6078 lt_nm_to_check="${ac_tool_prefix}nm"
6079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6080 lt_nm_to_check="$lt_nm_to_check nm"
6082 for lt_tmp_nm in $lt_nm_to_check; do
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6085 IFS="$lt_save_ifs"
6086 test -z "$ac_dir" && ac_dir=.
6087 tmp_nm="$ac_dir/$lt_tmp_nm"
6088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
6092 # Tru64's nm complains that /dev/null is an invalid object file
6093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6094 */dev/null* | *'Invalid file or object type'*)
6095 lt_cv_path_NM="$tmp_nm -B"
6096 break
6099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6100 */dev/null*)
6101 lt_cv_path_NM="$tmp_nm -p"
6102 break
6105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6106 continue # so that we can try to find one that supports BSD flags
6108 esac
6110 esac
6112 done
6113 IFS="$lt_save_ifs"
6114 done
6115 : ${lt_cv_path_NM=no}
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119 $as_echo "$lt_cv_path_NM" >&6; }
6120 if test "$lt_cv_path_NM" != "no"; then
6121 NM="$lt_cv_path_NM"
6122 else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6151 done
6152 done
6153 IFS=$as_save_IFS
6157 DUMPBIN=$ac_cv_prog_DUMPBIN
6158 if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6160 $as_echo "$DUMPBIN" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6167 test -n "$DUMPBIN" && break
6168 done
6170 if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link -dump"
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6195 done
6196 done
6197 IFS=$as_save_IFS
6201 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202 if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6204 $as_echo "$ac_ct_DUMPBIN" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6211 test -n "$ac_ct_DUMPBIN" && break
6212 done
6214 if test "x$ac_ct_DUMPBIN" = x; then
6215 DUMPBIN=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 DUMPBIN=$ac_ct_DUMPBIN
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6228 *COFF*)
6229 DUMPBIN="$DUMPBIN -symbols"
6232 DUMPBIN=:
6234 esac
6237 if test "$DUMPBIN" != ":"; then
6238 NM="$DUMPBIN"
6241 test -z "$NM" && NM=nm
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6249 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6250 if test "${lt_cv_nm_interface+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 lt_cv_nm_interface="BSD nm"
6254 echo "int some_variable = 0;" > conftest.$ac_ext
6255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin"
6266 rm -f conftest*
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6269 $as_echo "$lt_cv_nm_interface" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6272 $as_echo_n "checking whether ln -s works... " >&6; }
6273 LN_S=$as_ln_s
6274 if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6276 $as_echo "yes" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6279 $as_echo "no, using $LN_S" >&6; }
6282 # find the maximum length of command line arguments
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6284 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6285 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6289 teststring="ABCD"
6291 case $build_os in
6292 msdosdjgpp*)
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6300 gnu*)
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6318 mint*)
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6323 amigaos*)
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335 else
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6343 interix*)
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6348 osf*)
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358 esac
6361 sco3.2v5*)
6362 lt_cv_sys_max_cmd_len=102400
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368 else
6369 lt_cv_sys_max_cmd_len=32768
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377 else
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6382 done
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6386 # we can't tell.
6387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6396 teststring=
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6403 esac
6407 if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412 $as_echo "none" >&6; }
6414 max_cmd_len=$lt_cv_sys_max_cmd_len
6421 : ${CP="cp -f"}
6422 : ${MV="mv -f"}
6423 : ${RM="rm -f"}
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6426 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6427 # Try some XSI features
6428 xsi_shell=no
6429 ( _lt_dummy="a/b/c"
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6431 = c,a/b,, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6434 && xsi_shell=yes
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436 $as_echo "$xsi_shell" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6441 lt_shell_append=no
6442 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6443 >/dev/null 2>&1 \
6444 && lt_shell_append=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446 $as_echo "$lt_shell_append" >&6; }
6449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6450 lt_unset=unset
6451 else
6452 lt_unset=false
6459 # test EBCDIC or ASCII
6460 case `echo X|tr X '\101'` in
6461 A) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL='tr \040 \012'
6464 lt_NL2SP='tr \015\012 \040\040'
6466 *) # EBCDIC based system
6467 lt_SP2NL='tr \100 \n'
6468 lt_NL2SP='tr \r\n \100\100'
6470 esac
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6482 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 lt_cv_ld_reload_flag='-r'
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6489 reload_flag=$lt_cv_ld_reload_flag
6490 case $reload_flag in
6491 "" | " "*) ;;
6492 *) reload_flag=" $reload_flag" ;;
6493 esac
6494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6495 case $host_os in
6496 darwin*)
6497 if test "$GCC" = yes; then
6498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6499 else
6500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6503 esac
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6535 done
6536 done
6537 IFS=$as_save_IFS
6541 OBJDUMP=$ac_cv_prog_OBJDUMP
6542 if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544 $as_echo "$OBJDUMP" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6552 if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555 set dummy objdump; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6575 done
6576 done
6577 IFS=$as_save_IFS
6581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6582 if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584 $as_echo "$ac_ct_OBJDUMP" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6590 if test "x$ac_ct_OBJDUMP" = x; then
6591 OBJDUMP="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 OBJDUMP=$ac_ct_OBJDUMP
6601 else
6602 OBJDUMP="$ac_cv_prog_OBJDUMP"
6605 test -z "$OBJDUMP" && OBJDUMP=objdump
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6617 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 lt_cv_file_magic_cmd='$MAGIC_CMD'
6621 lt_cv_file_magic_test_file=
6622 lt_cv_deplibs_check_method='unknown'
6623 # Need to set the preceding variable on all platforms that support
6624 # interlibrary dependencies.
6625 # 'none' -- dependencies not supported.
6626 # `unknown' -- same as none, but documents that we really don't know.
6627 # 'pass_all' -- all dependencies passed with no checks.
6628 # 'test_compile' -- check by making test program.
6629 # 'file_magic [[regex]]' -- check by looking for files in library path
6630 # which responds to the $file_magic_cmd with a given extended regex.
6631 # If you have `file' or equivalent on your system and you're not sure
6632 # whether `pass_all' will *always* work, you probably want this one.
6634 case $host_os in
6635 aix[4-9]*)
6636 lt_cv_deplibs_check_method=pass_all
6639 beos*)
6640 lt_cv_deplibs_check_method=pass_all
6643 bsdi[45]*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file=/shlib/libc.so
6649 cygwin*)
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6655 mingw* | pw32*)
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd='func_win32_libid'
6663 else
6664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd='$OBJDUMP -f'
6669 cegcc*)
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd='$OBJDUMP -f'
6675 darwin* | rhapsody*)
6676 lt_cv_deplibs_check_method=pass_all
6679 freebsd* | dragonfly*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681 case $host_cpu in
6682 i*86 )
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd=/usr/bin/file
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6689 esac
6690 else
6691 lt_cv_deplibs_check_method=pass_all
6695 gnu*)
6696 lt_cv_deplibs_check_method=pass_all
6699 haiku*)
6700 lt_cv_deplibs_check_method=pass_all
6703 hpux10.20* | hpux11*)
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 case $host_cpu in
6706 ia64*)
6707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6710 hppa*64*)
6711 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]'
6712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6718 esac
6721 interix[3-9]*)
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6726 irix5* | irix6* | nonstopux*)
6727 case $LD in
6728 *-32|*"-32 ") libmagic=32-bit;;
6729 *-n32|*"-n32 ") libmagic=N32;;
6730 *-64|*"-64 ") libmagic=64-bit;;
6731 *) libmagic=never-match;;
6732 esac
6733 lt_cv_deplibs_check_method=pass_all
6736 # This must be Linux ELF.
6737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6738 lt_cv_deplibs_check_method=pass_all
6741 netbsd*)
6742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744 else
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6749 newos6*)
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd=/usr/bin/file
6752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6755 *nto* | *qnx*)
6756 lt_cv_deplibs_check_method=pass_all
6759 openbsd*)
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6767 osf3* | osf4* | osf5*)
6768 lt_cv_deplibs_check_method=pass_all
6771 rdos*)
6772 lt_cv_deplibs_check_method=pass_all
6775 solaris*)
6776 lt_cv_deplibs_check_method=pass_all
6779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6780 lt_cv_deplibs_check_method=pass_all
6783 sysv4 | sysv4.3*)
6784 case $host_vendor in
6785 motorola)
6786 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]'
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6789 ncr)
6790 lt_cv_deplibs_check_method=pass_all
6792 sequent)
6793 lt_cv_file_magic_cmd='/bin/file'
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6796 sni)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file=/lib/libc.so
6801 siemens)
6802 lt_cv_deplibs_check_method=pass_all
6805 lt_cv_deplibs_check_method=pass_all
6807 esac
6810 tpf*)
6811 lt_cv_deplibs_check_method=pass_all
6813 esac
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6818 file_magic_cmd=$lt_cv_file_magic_cmd
6819 deplibs_check_method=$lt_cv_deplibs_check_method
6820 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}ar; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_prog_AR+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$AR"; then
6842 ac_cv_prog_AR="$AR" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_AR="${ac_tool_prefix}ar"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6861 AR=$ac_cv_prog_AR
6862 if test -n "$AR"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6864 $as_echo "$AR" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_AR"; then
6873 ac_ct_AR=$AR
6874 # Extract the first word of "ar", so it can be a program name with args.
6875 set dummy ar; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_AR"; then
6882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_prog_ac_ct_AR="ar"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6902 if test -n "$ac_ct_AR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6904 $as_echo "$ac_ct_AR" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_AR" = x; then
6911 AR="false"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 AR=$ac_ct_AR
6921 else
6922 AR="$ac_cv_prog_AR"
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}strip; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_STRIP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$STRIP"; then
6947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 STRIP=$ac_cv_prog_STRIP
6967 if test -n "$STRIP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6969 $as_echo "$STRIP" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6977 if test -z "$ac_cv_prog_STRIP"; then
6978 ac_ct_STRIP=$STRIP
6979 # Extract the first word of "strip", so it can be a program name with args.
6980 set dummy strip; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_STRIP"; then
6987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_STRIP="strip"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7007 if test -n "$ac_ct_STRIP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7009 $as_echo "$ac_ct_STRIP" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 if test "x$ac_ct_STRIP" = x; then
7016 STRIP=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 STRIP=$ac_ct_STRIP
7026 else
7027 STRIP="$ac_cv_prog_STRIP"
7030 test -z "$STRIP" && STRIP=:
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7065 RANLIB=$ac_cv_prog_RANLIB
7066 if test -n "$RANLIB"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7068 $as_echo "$RANLIB" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7076 if test -z "$ac_cv_prog_RANLIB"; then
7077 ac_ct_RANLIB=$RANLIB
7078 # Extract the first word of "ranlib", so it can be a program name with args.
7079 set dummy ranlib; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$ac_ct_RANLIB"; then
7086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_ac_ct_RANLIB="ranlib"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7106 if test -n "$ac_ct_RANLIB"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7108 $as_echo "$ac_ct_RANLIB" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test "x$ac_ct_RANLIB" = x; then
7115 RANLIB=":"
7116 else
7117 case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123 RANLIB=$ac_ct_RANLIB
7125 else
7126 RANLIB="$ac_cv_prog_RANLIB"
7129 test -z "$RANLIB" && RANLIB=:
7136 # Determine commands to create old-style static archives.
7137 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7138 old_postinstall_cmds='chmod 644 $oldlib'
7139 old_postuninstall_cmds=
7141 if test -n "$RANLIB"; then
7142 case $host_os in
7143 openbsd*)
7144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7149 esac
7150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7153 case $host_os in
7154 darwin*)
7155 lock_old_archive_extraction=yes ;;
7157 lock_old_archive_extraction=no ;;
7158 esac
7198 # If no C compiler was specified, use CC.
7199 LTCC=${LTCC-"$CC"}
7201 # If no C compiler flags were specified, use CFLAGS.
7202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7204 # Allow CC to be a program name with arguments.
7205 compiler=$CC
7208 # Check for command to grab the raw symbol name followed by C symbol from nm.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7210 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7211 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7215 # These are sane defaults that work on at least a few old systems.
7216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7218 # Character class describing NM global symbol codes.
7219 symcode='[BCDEGRST]'
7221 # Regexp to match symbols that can be accessed directly from C.
7222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7224 # Define system-specific variables.
7225 case $host_os in
7226 aix*)
7227 symcode='[BCDT]'
7229 cygwin* | mingw* | pw32* | cegcc*)
7230 symcode='[ABCDGISTW]'
7232 hpux*)
7233 if test "$host_cpu" = ia64; then
7234 symcode='[ABCDEGRST]'
7237 irix* | nonstopux*)
7238 symcode='[BCDEGRST]'
7240 osf*)
7241 symcode='[BCDEGQRST]'
7243 solaris*)
7244 symcode='[BDRT]'
7246 sco3.2v5*)
7247 symcode='[DT]'
7249 sysv4.2uw2*)
7250 symcode='[DT]'
7252 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7253 symcode='[ABDT]'
7255 sysv4)
7256 symcode='[DFNSTU]'
7258 esac
7260 # If we're using GNU nm, then use its standard symbol codes.
7261 case `$NM -V 2>&1` in
7262 *GNU* | *'with BFD'*)
7263 symcode='[ABCDGIRSTW]' ;;
7264 esac
7266 # Transform an extracted symbol line into a proper C declaration.
7267 # Some systems (esp. on ia64) link data and code symbols differently,
7268 # so use this general approach.
7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7271 # Transform an extracted symbol line into symbol name and symbol address
7272 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7273 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'"
7275 # Handle CRLF in mingw tool chain
7276 opt_cr=
7277 case $build_os in
7278 mingw*)
7279 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7281 esac
7283 # Try without a prefix underscore, then with it.
7284 for ac_symprfx in "" "_"; do
7286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7287 symxfrm="\\1 $ac_symprfx\\2 \\2"
7289 # Write the raw and C identifiers.
7290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7291 # Fake it for dumpbin and say T for any non-static function
7292 # and D for any global variable.
7293 # Also find C++ and __fastcall symbols from MSVC++,
7294 # which start with @ or ?.
7295 lt_cv_sys_global_symbol_pipe="$AWK '"\
7296 " {last_section=section; section=\$ 3};"\
7297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 " \$ 0!~/External *\|/{next};"\
7299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7300 " {if(hide[section]) next};"\
7301 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7302 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7303 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7304 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7305 " ' prfx=^$ac_symprfx"
7306 else
7307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7310 # Check to see that the pipe works correctly.
7311 pipe_works=no
7313 rm -f conftest*
7314 cat > conftest.$ac_ext <<_LT_EOF
7315 #ifdef __cplusplus
7316 extern "C" {
7317 #endif
7318 char nm_test_var;
7319 void nm_test_func(void);
7320 void nm_test_func(void){}
7321 #ifdef __cplusplus
7323 #endif
7324 int main(){nm_test_var='a';nm_test_func();return(0);}
7325 _LT_EOF
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 # Now try to grab the symbols.
7333 nlist=conftest.nm
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; } && test -s "$nlist"; then
7339 # Try sorting and uniquifying the output.
7340 if sort "$nlist" | uniq > "$nlist"T; then
7341 mv -f "$nlist"T "$nlist"
7342 else
7343 rm -f "$nlist"T
7346 # Make sure that we snagged all the symbols we need.
7347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7349 cat <<_LT_EOF > conftest.$ac_ext
7350 #ifdef __cplusplus
7351 extern "C" {
7352 #endif
7354 _LT_EOF
7355 # Now generate the symbol file.
7356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7358 cat <<_LT_EOF >> conftest.$ac_ext
7360 /* The mapping between symbol names and symbols. */
7361 const struct {
7362 const char *name;
7363 void *address;
7365 lt__PROGRAM__LTX_preloaded_symbols[] =
7367 { "@PROGRAM@", (void *) 0 },
7368 _LT_EOF
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7370 cat <<\_LT_EOF >> conftest.$ac_ext
7371 {0, (void *) 0}
7374 /* This works around a problem in FreeBSD linker */
7375 #ifdef FREEBSD_WORKAROUND
7376 static const void *lt_preloaded_setup() {
7377 return lt__PROGRAM__LTX_preloaded_symbols;
7379 #endif
7381 #ifdef __cplusplus
7383 #endif
7384 _LT_EOF
7385 # Now try linking the two files.
7386 mv conftest.$ac_objext conftstm.$ac_objext
7387 lt_save_LIBS="$LIBS"
7388 lt_save_CFLAGS="$CFLAGS"
7389 LIBS="conftstm.$ac_objext"
7390 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7392 (eval $ac_link) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7396 pipe_works=yes
7398 LIBS="$lt_save_LIBS"
7399 CFLAGS="$lt_save_CFLAGS"
7400 else
7401 echo "cannot find nm_test_func in $nlist" >&5
7403 else
7404 echo "cannot find nm_test_var in $nlist" >&5
7406 else
7407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7409 else
7410 echo "$progname: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 rm -rf conftest* conftst*
7415 # Do not use the global_symbol_pipe unless it works.
7416 if test "$pipe_works" = yes; then
7417 break
7418 else
7419 lt_cv_sys_global_symbol_pipe=
7421 done
7425 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7426 lt_cv_sys_global_symbol_to_cdecl=
7428 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7430 $as_echo "failed" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7433 $as_echo "ok" >&6; }
7457 # Check whether --enable-libtool-lock was given.
7458 if test "${enable_libtool_lock+set}" = set; then :
7459 enableval=$enable_libtool_lock;
7462 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7464 # Some flags need to be propagated to the compiler or linker for good
7465 # libtool support.
7466 case $host in
7467 ia64-*-hpux*)
7468 # Find out which ABI we are using.
7469 echo 'int i;' > conftest.$ac_ext
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471 (eval $ac_compile) 2>&5
7472 ac_status=$?
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 case `/usr/bin/file conftest.$ac_objext` in
7476 *ELF-32*)
7477 HPUX_IA64_MODE="32"
7479 *ELF-64*)
7480 HPUX_IA64_MODE="64"
7482 esac
7484 rm -rf conftest*
7486 *-*-irix6*)
7487 # Find out which ABI we are using.
7488 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 if test "$lt_cv_prog_gnu_ld" = yes; then
7495 case `/usr/bin/file conftest.$ac_objext` in
7496 *32-bit*)
7497 LD="${LD-ld} -melf32bsmip"
7499 *N32*)
7500 LD="${LD-ld} -melf32bmipn32"
7502 *64-bit*)
7503 LD="${LD-ld} -melf64bmip"
7505 esac
7506 else
7507 case `/usr/bin/file conftest.$ac_objext` in
7508 *32-bit*)
7509 LD="${LD-ld} -32"
7511 *N32*)
7512 LD="${LD-ld} -n32"
7514 *64-bit*)
7515 LD="${LD-ld} -64"
7517 esac
7520 rm -rf conftest*
7523 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7524 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.o` in
7533 *32-bit*)
7534 case $host in
7535 x86_64-*kfreebsd*-gnu)
7536 LD="${LD-ld} -m elf_i386_fbsd"
7538 x86_64-*linux*)
7539 case `/usr/bin/file conftest.o` in
7540 *x86-64*)
7541 LD="${LD-ld} -m elf32_x86_64"
7544 LD="${LD-ld} -m elf_i386"
7546 esac
7548 powerpc64le-*linux*)
7549 LD="${LD-ld} -m elf32lppclinux"
7551 powerpc64-*linux*)
7552 LD="${LD-ld} -m elf32ppclinux"
7554 s390x-*linux*)
7555 LD="${LD-ld} -m elf_s390"
7557 sparc64-*linux*)
7558 LD="${LD-ld} -m elf32_sparc"
7560 esac
7562 *64-bit*)
7563 case $host in
7564 x86_64-*kfreebsd*-gnu)
7565 LD="${LD-ld} -m elf_x86_64_fbsd"
7567 x86_64-*linux*)
7568 LD="${LD-ld} -m elf_x86_64"
7570 powerpcle-*linux*)
7571 LD="${LD-ld} -m elf64lppc"
7573 powerpc-*linux*)
7574 LD="${LD-ld} -m elf64ppc"
7576 s390*-*linux*|s390*-*tpf*)
7577 LD="${LD-ld} -m elf64_s390"
7579 sparc*-*linux*)
7580 LD="${LD-ld} -m elf64_sparc"
7582 esac
7584 esac
7586 rm -rf conftest*
7589 *-*-sco3.2v5*)
7590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7591 SAVE_CFLAGS="$CFLAGS"
7592 CFLAGS="$CFLAGS -belf"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7594 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7595 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 main ()
7612 return 0;
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_cc_needs_belf=yes
7617 else
7618 lt_cv_cc_needs_belf=no
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 ac_ext=c
7623 ac_cpp='$CPP $CPPFLAGS'
7624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7630 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7631 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7633 CFLAGS="$SAVE_CFLAGS"
7636 sparc*-*solaris*)
7637 # Find out which ABI we are using.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7645 *64-bit*)
7646 case $lt_cv_prog_gnu_ld in
7647 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7649 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7650 LD="${LD-ld} -64"
7653 esac
7655 esac
7657 rm -rf conftest*
7659 esac
7661 need_locks="$enable_libtool_lock"
7664 case $host_os in
7665 rhapsody* | darwin*)
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$DSYMUTIL"; then
7675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7690 IFS=$as_save_IFS
7694 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7695 if test -n "$DSYMUTIL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7697 $as_echo "$DSYMUTIL" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -z "$ac_cv_prog_DSYMUTIL"; then
7706 ac_ct_DSYMUTIL=$DSYMUTIL
7707 # Extract the first word of "dsymutil", so it can be a program name with args.
7708 set dummy dsymutil; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7728 done
7729 done
7730 IFS=$as_save_IFS
7734 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7735 if test -n "$ac_ct_DSYMUTIL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7743 if test "x$ac_ct_DSYMUTIL" = x; then
7744 DSYMUTIL=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 DSYMUTIL=$ac_ct_DSYMUTIL
7754 else
7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$NMEDIT"; then
7767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 NMEDIT=$ac_cv_prog_NMEDIT
7787 if test -n "$NMEDIT"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7789 $as_echo "$NMEDIT" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 if test -z "$ac_cv_prog_NMEDIT"; then
7798 ac_ct_NMEDIT=$NMEDIT
7799 # Extract the first word of "nmedit", so it can be a program name with args.
7800 set dummy nmedit; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$ac_ct_NMEDIT"; then
7807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7820 done
7821 done
7822 IFS=$as_save_IFS
7826 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7827 if test -n "$ac_ct_NMEDIT"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7829 $as_echo "$ac_ct_NMEDIT" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7835 if test "x$ac_ct_NMEDIT" = x; then
7836 NMEDIT=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844 NMEDIT=$ac_ct_NMEDIT
7846 else
7847 NMEDIT="$ac_cv_prog_NMEDIT"
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_LIPO+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$LIPO"; then
7859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 LIPO=$ac_cv_prog_LIPO
7879 if test -n "$LIPO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7881 $as_echo "$LIPO" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7889 if test -z "$ac_cv_prog_LIPO"; then
7890 ac_ct_LIPO=$LIPO
7891 # Extract the first word of "lipo", so it can be a program name with args.
7892 set dummy lipo; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 if test -n "$ac_ct_LIPO"; then
7899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_ac_ct_LIPO="lipo"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7912 done
7913 done
7914 IFS=$as_save_IFS
7918 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7919 if test -n "$ac_ct_LIPO"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7921 $as_echo "$ac_ct_LIPO" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7927 if test "x$ac_ct_LIPO" = x; then
7928 LIPO=":"
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931 yes:)
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned=yes ;;
7935 esac
7936 LIPO=$ac_ct_LIPO
7938 else
7939 LIPO="$ac_cv_prog_LIPO"
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}otool; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$OTOOL"; then
7951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7966 IFS=$as_save_IFS
7970 OTOOL=$ac_cv_prog_OTOOL
7971 if test -n "$OTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7973 $as_echo "$OTOOL" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_OTOOL"; then
7982 ac_ct_OTOOL=$OTOOL
7983 # Extract the first word of "otool", so it can be a program name with args.
7984 set dummy otool; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 if test -n "$ac_ct_OTOOL"; then
7991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8000 ac_cv_prog_ac_ct_OTOOL="otool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8004 done
8005 done
8006 IFS=$as_save_IFS
8010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8011 if test -n "$ac_ct_OTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8013 $as_echo "$ac_ct_OTOOL" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8019 if test "x$ac_ct_OTOOL" = x; then
8020 OTOOL=":"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028 OTOOL=$ac_ct_OTOOL
8030 else
8031 OTOOL="$ac_cv_prog_OTOOL"
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 if test -n "$OTOOL64"; then
8043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8062 OTOOL64=$ac_cv_prog_OTOOL64
8063 if test -n "$OTOOL64"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065 $as_echo "$OTOOL64" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076 set dummy otool64; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$ac_ct_OTOOL64"; then
8083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092 ac_cv_prog_ac_ct_OTOOL64="otool64"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8096 done
8097 done
8098 IFS=$as_save_IFS
8102 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8103 if test -n "$ac_ct_OTOOL64"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8105 $as_echo "$ac_ct_OTOOL64" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_OTOOL64" = x; then
8112 OTOOL64=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 OTOOL64=$ac_ct_OTOOL64
8122 else
8123 OTOOL64="$ac_cv_prog_OTOOL64"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8153 $as_echo_n "checking for -single_module linker flag... " >&6; }
8154 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_apple_cc_single_mod=no
8158 if test -z "${LT_MULTI_MODULE}"; then
8159 # By default we will add the -single_module flag. You can override
8160 # by either setting the environment variable LT_MULTI_MODULE
8161 # non-empty at configure time, or by adding -multi_module to the
8162 # link flags.
8163 rm -rf libconftest.dylib*
8164 echo "int foo(void){return 1;}" > conftest.c
8165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166 -dynamiclib -Wl,-single_module conftest.c" >&5
8167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8169 _lt_result=$?
8170 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8171 lt_cv_apple_cc_single_mod=yes
8172 else
8173 cat conftest.err >&5
8175 rm -rf libconftest.dylib*
8176 rm -f conftest.*
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8183 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_ld_exported_symbols_list=no
8187 save_LDFLAGS=$LDFLAGS
8188 echo "_main" > conftest.sym
8189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8194 main ()
8198 return 0;
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"; then :
8202 lt_cv_ld_exported_symbols_list=yes
8203 else
8204 lt_cv_ld_exported_symbols_list=no
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS="$save_LDFLAGS"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214 $as_echo_n "checking for -force_load linker flag... " >&6; }
8215 if test "${lt_cv_ld_force_load+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 lt_cv_ld_force_load=no
8219 cat > conftest.c << _LT_EOF
8220 int forced_loaded() { return 2;}
8221 _LT_EOF
8222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8224 echo "$AR cru libconftest.a conftest.o" >&5
8225 $AR cru libconftest.a conftest.o 2>&5
8226 cat > conftest.c << _LT_EOF
8227 int main() { return 0;}
8228 _LT_EOF
8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8231 _lt_result=$?
8232 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8233 lt_cv_ld_force_load=yes
8234 else
8235 cat conftest.err >&5
8237 rm -f conftest.err libconftest.a conftest conftest.c
8238 rm -rf conftest.dSYM
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8242 $as_echo "$lt_cv_ld_force_load" >&6; }
8243 case $host_os in
8244 rhapsody* | darwin1.[012])
8245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8246 darwin1.*)
8247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8248 darwin*) # darwin 5.x on
8249 # if running on 10.5 or later, the deployment target defaults
8250 # to the OS version, if on x86, and 10.4, the deployment
8251 # target defaults to 10.4. Don't you love it?
8252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8253 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8255 10.[012][,.]*)
8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257 10.*)
8258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8259 esac
8261 esac
8262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8263 _lt_dar_single_mod='$single_module'
8265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8267 else
8268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8271 _lt_dsymutil='~$DSYMUTIL $lib || :'
8272 else
8273 _lt_dsymutil=
8276 esac
8278 for ac_header in dlfcn.h
8279 do :
8280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8282 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8283 cat >>confdefs.h <<_ACEOF
8284 #define HAVE_DLFCN_H 1
8285 _ACEOF
8289 done
8296 # Set options
8301 enable_win32_dll=no
8304 # Check whether --enable-shared was given.
8305 if test "${enable_shared+set}" = set; then :
8306 enableval=$enable_shared; p=${PACKAGE-default}
8307 case $enableval in
8308 yes) enable_shared=yes ;;
8309 no) enable_shared=no ;;
8311 enable_shared=no
8312 # Look at the argument we got. We use all the common list separators.
8313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8314 for pkg in $enableval; do
8315 IFS="$lt_save_ifs"
8316 if test "X$pkg" = "X$p"; then
8317 enable_shared=yes
8319 done
8320 IFS="$lt_save_ifs"
8322 esac
8323 else
8324 enable_shared=yes
8335 # Check whether --enable-static was given.
8336 if test "${enable_static+set}" = set; then :
8337 enableval=$enable_static; p=${PACKAGE-default}
8338 case $enableval in
8339 yes) enable_static=yes ;;
8340 no) enable_static=no ;;
8342 enable_static=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8346 IFS="$lt_save_ifs"
8347 if test "X$pkg" = "X$p"; then
8348 enable_static=yes
8350 done
8351 IFS="$lt_save_ifs"
8353 esac
8354 else
8355 enable_static=yes
8367 # Check whether --with-pic was given.
8368 if test "${with_pic+set}" = set; then :
8369 withval=$with_pic; pic_mode="$withval"
8370 else
8371 pic_mode=default
8375 test -z "$pic_mode" && pic_mode=default
8383 # Check whether --enable-fast-install was given.
8384 if test "${enable_fast_install+set}" = set; then :
8385 enableval=$enable_fast_install; p=${PACKAGE-default}
8386 case $enableval in
8387 yes) enable_fast_install=yes ;;
8388 no) enable_fast_install=no ;;
8390 enable_fast_install=no
8391 # Look at the argument we got. We use all the common list separators.
8392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8393 for pkg in $enableval; do
8394 IFS="$lt_save_ifs"
8395 if test "X$pkg" = "X$p"; then
8396 enable_fast_install=yes
8398 done
8399 IFS="$lt_save_ifs"
8401 esac
8402 else
8403 enable_fast_install=yes
8416 # This can be used to rebuild libtool when needed
8417 LIBTOOL_DEPS="$ltmain"
8419 # Always use our own libtool.
8420 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8447 test -z "$LN_S" && LN_S="ln -s"
8462 if test -n "${ZSH_VERSION+set}" ; then
8463 setopt NO_GLOB_SUBST
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8467 $as_echo_n "checking for objdir... " >&6; }
8468 if test "${lt_cv_objdir+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 rm -f .libs 2>/dev/null
8472 mkdir .libs 2>/dev/null
8473 if test -d .libs; then
8474 lt_cv_objdir=.libs
8475 else
8476 # MS-DOS does not allow filenames that begin with a dot.
8477 lt_cv_objdir=_libs
8479 rmdir .libs 2>/dev/null
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8482 $as_echo "$lt_cv_objdir" >&6; }
8483 objdir=$lt_cv_objdir
8489 cat >>confdefs.h <<_ACEOF
8490 #define LT_OBJDIR "$lt_cv_objdir/"
8491 _ACEOF
8496 case $host_os in
8497 aix3*)
8498 # AIX sometimes has problems with the GCC collect2 program. For some
8499 # reason, if we set the COLLECT_NAMES environment variable, the problems
8500 # vanish in a puff of smoke.
8501 if test "X${COLLECT_NAMES+set}" != Xset; then
8502 COLLECT_NAMES=
8503 export COLLECT_NAMES
8506 esac
8508 # Global variables:
8509 ofile=libtool
8510 can_build_shared=yes
8512 # All known linkers require a `.a' archive for static linking (except MSVC,
8513 # which needs '.lib').
8514 libext=a
8516 with_gnu_ld="$lt_cv_prog_gnu_ld"
8518 old_CC="$CC"
8519 old_CFLAGS="$CFLAGS"
8521 # Set sane defaults for various variables
8522 test -z "$CC" && CC=cc
8523 test -z "$LTCC" && LTCC=$CC
8524 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8525 test -z "$LD" && LD=ld
8526 test -z "$ac_objext" && ac_objext=o
8528 for cc_temp in $compiler""; do
8529 case $cc_temp in
8530 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8531 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8532 \-*) ;;
8533 *) break;;
8534 esac
8535 done
8536 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8539 # Only perform the check for file, if the check method requires it
8540 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8541 case $deplibs_check_method in
8542 file_magic*)
8543 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8545 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 case $MAGIC_CMD in
8550 [\\/*] | ?:[\\/]*)
8551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8554 lt_save_MAGIC_CMD="$MAGIC_CMD"
8555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8557 for ac_dir in $ac_dummy; do
8558 IFS="$lt_save_ifs"
8559 test -z "$ac_dir" && ac_dir=.
8560 if test -f $ac_dir/${ac_tool_prefix}file; then
8561 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8562 if test -n "$file_magic_test_file"; then
8563 case $deplibs_check_method in
8564 "file_magic "*)
8565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8568 $EGREP "$file_magic_regex" > /dev/null; then
8570 else
8571 cat <<_LT_EOF 1>&2
8573 *** Warning: the command libtool uses to detect shared libraries,
8574 *** $file_magic_cmd, produces output that libtool cannot recognize.
8575 *** The result is that libtool may fail to recognize shared libraries
8576 *** as such. This will affect the creation of libtool libraries that
8577 *** depend on shared libraries, but programs linked with such libtool
8578 *** libraries will work regardless of this problem. Nevertheless, you
8579 *** may want to report the problem to your system manager and/or to
8580 *** bug-libtool@gnu.org
8582 _LT_EOF
8583 fi ;;
8584 esac
8586 break
8588 done
8589 IFS="$lt_save_ifs"
8590 MAGIC_CMD="$lt_save_MAGIC_CMD"
8592 esac
8595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8596 if test -n "$MAGIC_CMD"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8598 $as_echo "$MAGIC_CMD" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8608 if test -z "$lt_cv_path_MAGIC_CMD"; then
8609 if test -n "$ac_tool_prefix"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8611 $as_echo_n "checking for file... " >&6; }
8612 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 case $MAGIC_CMD in
8616 [\\/*] | ?:[\\/]*)
8617 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8620 lt_save_MAGIC_CMD="$MAGIC_CMD"
8621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8622 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8623 for ac_dir in $ac_dummy; do
8624 IFS="$lt_save_ifs"
8625 test -z "$ac_dir" && ac_dir=.
8626 if test -f $ac_dir/file; then
8627 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8628 if test -n "$file_magic_test_file"; then
8629 case $deplibs_check_method in
8630 "file_magic "*)
8631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8634 $EGREP "$file_magic_regex" > /dev/null; then
8636 else
8637 cat <<_LT_EOF 1>&2
8639 *** Warning: the command libtool uses to detect shared libraries,
8640 *** $file_magic_cmd, produces output that libtool cannot recognize.
8641 *** The result is that libtool may fail to recognize shared libraries
8642 *** as such. This will affect the creation of libtool libraries that
8643 *** depend on shared libraries, but programs linked with such libtool
8644 *** libraries will work regardless of this problem. Nevertheless, you
8645 *** may want to report the problem to your system manager and/or to
8646 *** bug-libtool@gnu.org
8648 _LT_EOF
8649 fi ;;
8650 esac
8652 break
8654 done
8655 IFS="$lt_save_ifs"
8656 MAGIC_CMD="$lt_save_MAGIC_CMD"
8658 esac
8661 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8662 if test -n "$MAGIC_CMD"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8664 $as_echo "$MAGIC_CMD" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8671 else
8672 MAGIC_CMD=:
8678 esac
8680 # Use C for the default configuration in the libtool script
8682 lt_save_CC="$CC"
8683 ac_ext=c
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690 # Source file extension for C test sources.
8691 ac_ext=c
8693 # Object file extension for compiled C test sources.
8694 objext=o
8695 objext=$objext
8697 # Code to be used in simple compile tests
8698 lt_simple_compile_test_code="int some_variable = 0;"
8700 # Code to be used in simple link tests
8701 lt_simple_link_test_code='int main(){return(0);}'
8709 # If no C compiler was specified, use CC.
8710 LTCC=${LTCC-"$CC"}
8712 # If no C compiler flags were specified, use CFLAGS.
8713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8715 # Allow CC to be a program name with arguments.
8716 compiler=$CC
8718 # Save the default compiler, since it gets overwritten when the other
8719 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8720 compiler_DEFAULT=$CC
8722 # save warnings/boilerplate of simple test code
8723 ac_outfile=conftest.$ac_objext
8724 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8725 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8726 _lt_compiler_boilerplate=`cat conftest.err`
8727 $RM conftest*
8729 ac_outfile=conftest.$ac_objext
8730 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8731 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8732 _lt_linker_boilerplate=`cat conftest.err`
8733 $RM -r conftest*
8736 ## CAVEAT EMPTOR:
8737 ## There is no encapsulation within the following macros, do not change
8738 ## the running order or otherwise move them around unless you know exactly
8739 ## what you are doing...
8740 if test -n "$compiler"; then
8742 lt_prog_compiler_no_builtin_flag=
8744 if test "$GCC" = yes; then
8745 case $cc_basename in
8746 nvcc*)
8747 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8749 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8750 esac
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8753 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8754 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 lt_cv_prog_compiler_rtti_exceptions=no
8758 ac_outfile=conftest.$ac_objext
8759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8760 lt_compiler_flag="-fno-rtti -fno-exceptions"
8761 # Insert the option either (1) after the last *FLAGS variable, or
8762 # (2) before a word containing "conftest.", or (3) at the end.
8763 # Note that $ac_compile itself does not contain backslashes and begins
8764 # with a dollar sign (not a hyphen), so the echo should work correctly.
8765 # The option is referenced via a variable to avoid confusing sed.
8766 lt_compile=`echo "$ac_compile" | $SED \
8767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769 -e 's:$: $lt_compiler_flag:'`
8770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8771 (eval "$lt_compile" 2>conftest.err)
8772 ac_status=$?
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 if (exit $ac_status) && test -s "$ac_outfile"; then
8776 # The compiler can only warn and ignore the option if not recognized
8777 # So say no if there are warnings other than the usual output.
8778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8780 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8781 lt_cv_prog_compiler_rtti_exceptions=yes
8784 $RM conftest*
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8788 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8790 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8791 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8792 else
8803 lt_prog_compiler_wl=
8804 lt_prog_compiler_pic=
8805 lt_prog_compiler_static=
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8808 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8810 if test "$GCC" = yes; then
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_static='-static'
8814 case $host_os in
8815 aix*)
8816 # All AIX code is PIC.
8817 if test "$host_cpu" = ia64; then
8818 # AIX 5 now supports IA64 processor
8819 lt_prog_compiler_static='-Bstatic'
8821 lt_prog_compiler_pic='-fPIC'
8824 amigaos*)
8825 case $host_cpu in
8826 powerpc)
8827 # see comment about AmigaOS4 .so support
8828 lt_prog_compiler_pic='-fPIC'
8830 m68k)
8831 # FIXME: we need at least 68020 code to build shared libraries, but
8832 # adding the `-m68020' flag to GCC prevents building anything better,
8833 # like `-m68040'.
8834 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8836 esac
8839 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8840 # PIC is the default for these OSes.
8843 mingw* | cygwin* | pw32* | os2* | cegcc*)
8844 # This hack is so that the source file can tell whether it is being
8845 # built for inclusion in a dll (and should export symbols for example).
8846 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8847 # (--disable-auto-import) libraries
8848 lt_prog_compiler_pic='-DDLL_EXPORT'
8851 darwin* | rhapsody*)
8852 # PIC is the default on this platform
8853 # Common symbols not allowed in MH_DYLIB files
8854 lt_prog_compiler_pic='-fno-common'
8857 haiku*)
8858 # PIC is the default for Haiku.
8859 # The "-static" flag exists, but is broken.
8860 lt_prog_compiler_static=
8863 hpux*)
8864 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8865 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8866 # sets the default TLS model and affects inlining.
8867 case $host_cpu in
8868 hppa*64*)
8869 # +Z the default
8872 lt_prog_compiler_pic='-fPIC'
8874 esac
8877 interix[3-9]*)
8878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8879 # Instead, we relocate shared libraries at runtime.
8882 msdosdjgpp*)
8883 # Just because we use GCC doesn't mean we suddenly get shared libraries
8884 # on systems that don't support them.
8885 lt_prog_compiler_can_build_shared=no
8886 enable_shared=no
8889 *nto* | *qnx*)
8890 # QNX uses GNU C++, but need to define -shared option too, otherwise
8891 # it will coredump.
8892 lt_prog_compiler_pic='-fPIC -shared'
8895 sysv4*MP*)
8896 if test -d /usr/nec; then
8897 lt_prog_compiler_pic=-Kconform_pic
8902 lt_prog_compiler_pic='-fPIC'
8904 esac
8906 case $cc_basename in
8907 nvcc*) # Cuda Compiler Driver 2.2
8908 lt_prog_compiler_wl='-Xlinker '
8909 lt_prog_compiler_pic='-Xcompiler -fPIC'
8911 esac
8912 else
8913 # PORTME Check for flag to pass linker flags through the system compiler.
8914 case $host_os in
8915 aix*)
8916 lt_prog_compiler_wl='-Wl,'
8917 if test "$host_cpu" = ia64; then
8918 # AIX 5 now supports IA64 processor
8919 lt_prog_compiler_static='-Bstatic'
8920 else
8921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8925 mingw* | cygwin* | pw32* | os2* | cegcc*)
8926 # This hack is so that the source file can tell whether it is being
8927 # built for inclusion in a dll (and should export symbols for example).
8928 lt_prog_compiler_pic='-DDLL_EXPORT'
8931 hpux9* | hpux10* | hpux11*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8934 # not for PA HP-UX.
8935 case $host_cpu in
8936 hppa*64*|ia64*)
8937 # +Z the default
8940 lt_prog_compiler_pic='+Z'
8942 esac
8943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8944 lt_prog_compiler_static='${wl}-a ${wl}archive'
8947 irix5* | irix6* | nonstopux*)
8948 lt_prog_compiler_wl='-Wl,'
8949 # PIC (with -KPIC) is the default.
8950 lt_prog_compiler_static='-non_shared'
8953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8954 case $cc_basename in
8955 # old Intel for x86_64 which still supported -KPIC.
8956 ecc*)
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-static'
8961 # icc used to be incompatible with GCC.
8962 # ICC 10 doesn't accept -KPIC any more.
8963 icc* | ifort*)
8964 lt_prog_compiler_wl='-Wl,'
8965 lt_prog_compiler_pic='-fPIC'
8966 lt_prog_compiler_static='-static'
8968 # Lahey Fortran 8.1.
8969 lf95*)
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='--shared'
8972 lt_prog_compiler_static='--static'
8974 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8975 # Portland Group compilers (*not* the Pentium gcc compiler,
8976 # which looks to be a dead project)
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-fpic'
8979 lt_prog_compiler_static='-Bstatic'
8981 ccc*)
8982 lt_prog_compiler_wl='-Wl,'
8983 # All Alpha code is PIC.
8984 lt_prog_compiler_static='-non_shared'
8986 xl* | bgxl* | bgf* | mpixl*)
8987 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-qpic'
8990 lt_prog_compiler_static='-qstaticlink'
8993 case `$CC -V 2>&1 | sed 5q` in
8994 *Sun\ F* | *Sun*Fortran*)
8995 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8996 lt_prog_compiler_pic='-KPIC'
8997 lt_prog_compiler_static='-Bstatic'
8998 lt_prog_compiler_wl=''
9000 *Sun\ C*)
9001 # Sun C 5.9
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9004 lt_prog_compiler_wl='-Wl,'
9006 esac
9008 esac
9011 newsos6)
9012 lt_prog_compiler_pic='-KPIC'
9013 lt_prog_compiler_static='-Bstatic'
9016 *nto* | *qnx*)
9017 # QNX uses GNU C++, but need to define -shared option too, otherwise
9018 # it will coredump.
9019 lt_prog_compiler_pic='-fPIC -shared'
9022 osf3* | osf4* | osf5*)
9023 lt_prog_compiler_wl='-Wl,'
9024 # All OSF/1 code is PIC.
9025 lt_prog_compiler_static='-non_shared'
9028 rdos*)
9029 lt_prog_compiler_static='-non_shared'
9032 solaris*)
9033 lt_prog_compiler_pic='-KPIC'
9034 lt_prog_compiler_static='-Bstatic'
9035 case $cc_basename in
9036 f77* | f90* | f95*)
9037 lt_prog_compiler_wl='-Qoption ld ';;
9039 lt_prog_compiler_wl='-Wl,';;
9040 esac
9043 sunos4*)
9044 lt_prog_compiler_wl='-Qoption ld '
9045 lt_prog_compiler_pic='-PIC'
9046 lt_prog_compiler_static='-Bstatic'
9049 sysv4 | sysv4.2uw2* | sysv4.3*)
9050 lt_prog_compiler_wl='-Wl,'
9051 lt_prog_compiler_pic='-KPIC'
9052 lt_prog_compiler_static='-Bstatic'
9055 sysv4*MP*)
9056 if test -d /usr/nec ;then
9057 lt_prog_compiler_pic='-Kconform_pic'
9058 lt_prog_compiler_static='-Bstatic'
9062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-KPIC'
9065 lt_prog_compiler_static='-Bstatic'
9068 unicos*)
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_can_build_shared=no
9073 uts4*)
9074 lt_prog_compiler_pic='-pic'
9075 lt_prog_compiler_static='-Bstatic'
9079 lt_prog_compiler_can_build_shared=no
9081 esac
9084 case $host_os in
9085 # For platforms which do not support PIC, -DPIC is meaningless:
9086 *djgpp*)
9087 lt_prog_compiler_pic=
9090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9092 esac
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9094 $as_echo "$lt_prog_compiler_pic" >&6; }
9102 # Check to make sure the PIC flag actually works.
9104 if test -n "$lt_prog_compiler_pic"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9107 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 lt_cv_prog_compiler_pic_works=no
9111 ac_outfile=conftest.$ac_objext
9112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9114 # Insert the option either (1) after the last *FLAGS variable, or
9115 # (2) before a word containing "conftest.", or (3) at the end.
9116 # Note that $ac_compile itself does not contain backslashes and begins
9117 # with a dollar sign (not a hyphen), so the echo should work correctly.
9118 # The option is referenced via a variable to avoid confusing sed.
9119 lt_compile=`echo "$ac_compile" | $SED \
9120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9122 -e 's:$: $lt_compiler_flag:'`
9123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9124 (eval "$lt_compile" 2>conftest.err)
9125 ac_status=$?
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 if (exit $ac_status) && test -s "$ac_outfile"; then
9129 # The compiler can only warn and ignore the option if not recognized
9130 # So say no if there are warnings other than the usual output.
9131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9134 lt_cv_prog_compiler_pic_works=yes
9137 $RM conftest*
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9141 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9143 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9144 case $lt_prog_compiler_pic in
9145 "" | " "*) ;;
9146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9147 esac
9148 else
9149 lt_prog_compiler_pic=
9150 lt_prog_compiler_can_build_shared=no
9161 # Check to make sure the static flag actually works.
9163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9166 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 lt_cv_prog_compiler_static_works=no
9170 save_LDFLAGS="$LDFLAGS"
9171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9174 # The linker can only warn and ignore the option if not recognized
9175 # So say no if there are warnings
9176 if test -s conftest.err; then
9177 # Append any errors to the config.log.
9178 cat conftest.err 1>&5
9179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9181 if diff conftest.exp conftest.er2 >/dev/null; then
9182 lt_cv_prog_compiler_static_works=yes
9184 else
9185 lt_cv_prog_compiler_static_works=yes
9188 $RM -r conftest*
9189 LDFLAGS="$save_LDFLAGS"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9193 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9195 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9197 else
9198 lt_prog_compiler_static=
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9209 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 lt_cv_prog_compiler_c_o=no
9213 $RM -r conftest 2>/dev/null
9214 mkdir conftest
9215 cd conftest
9216 mkdir out
9217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219 lt_compiler_flag="-o out/conftest2.$ac_objext"
9220 # Insert the option either (1) after the last *FLAGS variable, or
9221 # (2) before a word containing "conftest.", or (3) at the end.
9222 # Note that $ac_compile itself does not contain backslashes and begins
9223 # with a dollar sign (not a hyphen), so the echo should work correctly.
9224 lt_compile=`echo "$ac_compile" | $SED \
9225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9227 -e 's:$: $lt_compiler_flag:'`
9228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9229 (eval "$lt_compile" 2>out/conftest.err)
9230 ac_status=$?
9231 cat out/conftest.err >&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9234 then
9235 # The compiler can only warn and ignore the option if not recognized
9236 # So say no if there are warnings
9237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9240 lt_cv_prog_compiler_c_o=yes
9243 chmod u+w . 2>&5
9244 $RM conftest*
9245 # SGI C++ compiler will create directory out/ii_files/ for
9246 # template instantiation
9247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9248 $RM out/* && rmdir out
9249 cd ..
9250 $RM -r conftest
9251 $RM conftest*
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9264 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 lt_cv_prog_compiler_c_o=no
9268 $RM -r conftest 2>/dev/null
9269 mkdir conftest
9270 cd conftest
9271 mkdir out
9272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9274 lt_compiler_flag="-o out/conftest2.$ac_objext"
9275 # Insert the option either (1) after the last *FLAGS variable, or
9276 # (2) before a word containing "conftest.", or (3) at the end.
9277 # Note that $ac_compile itself does not contain backslashes and begins
9278 # with a dollar sign (not a hyphen), so the echo should work correctly.
9279 lt_compile=`echo "$ac_compile" | $SED \
9280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9282 -e 's:$: $lt_compiler_flag:'`
9283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9284 (eval "$lt_compile" 2>out/conftest.err)
9285 ac_status=$?
9286 cat out/conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9289 then
9290 # The compiler can only warn and ignore the option if not recognized
9291 # So say no if there are warnings
9292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9295 lt_cv_prog_compiler_c_o=yes
9298 chmod u+w . 2>&5
9299 $RM conftest*
9300 # SGI C++ compiler will create directory out/ii_files/ for
9301 # template instantiation
9302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9303 $RM out/* && rmdir out
9304 cd ..
9305 $RM -r conftest
9306 $RM conftest*
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9310 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9315 hard_links="nottested"
9316 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9317 # do not overwrite the value of need_locks provided by the user
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9319 $as_echo_n "checking if we can lock with hard links... " >&6; }
9320 hard_links=yes
9321 $RM conftest*
9322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9323 touch conftest.a
9324 ln conftest.a conftest.b 2>&5 || hard_links=no
9325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9327 $as_echo "$hard_links" >&6; }
9328 if test "$hard_links" = no; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9331 need_locks=warn
9333 else
9334 need_locks=no
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9345 runpath_var=
9346 allow_undefined_flag=
9347 always_export_symbols=no
9348 archive_cmds=
9349 archive_expsym_cmds=
9350 compiler_needs_object=no
9351 enable_shared_with_static_runtimes=no
9352 export_dynamic_flag_spec=
9353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9354 hardcode_automatic=no
9355 hardcode_direct=no
9356 hardcode_direct_absolute=no
9357 hardcode_libdir_flag_spec=
9358 hardcode_libdir_flag_spec_ld=
9359 hardcode_libdir_separator=
9360 hardcode_minus_L=no
9361 hardcode_shlibpath_var=unsupported
9362 inherit_rpath=no
9363 link_all_deplibs=unknown
9364 module_cmds=
9365 module_expsym_cmds=
9366 old_archive_from_new_cmds=
9367 old_archive_from_expsyms_cmds=
9368 thread_safe_flag_spec=
9369 whole_archive_flag_spec=
9370 # include_expsyms should be a list of space-separated symbols to be *always*
9371 # included in the symbol list
9372 include_expsyms=
9373 # exclude_expsyms can be an extended regexp of symbols to exclude
9374 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9375 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9376 # as well as any symbol that contains `d'.
9377 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9378 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9379 # platforms (ab)use it in PIC code, but their linkers get confused if
9380 # the symbol is explicitly referenced. Since portable code cannot
9381 # rely on this symbol name, it's probably fine to never include it in
9382 # preloaded symbol tables.
9383 # Exclude shared library initialization/finalization symbols.
9384 extract_expsyms_cmds=
9386 case $host_os in
9387 cygwin* | mingw* | pw32* | cegcc*)
9388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9389 # When not using gcc, we currently assume that we are using
9390 # Microsoft Visual C++.
9391 if test "$GCC" != yes; then
9392 with_gnu_ld=no
9395 interix*)
9396 # we just hope/assume this is gcc and not c89 (= MSVC++)
9397 with_gnu_ld=yes
9399 openbsd*)
9400 with_gnu_ld=no
9402 esac
9404 ld_shlibs=yes
9406 # On some targets, GNU ld is compatible enough with the native linker
9407 # that we're better off using the native interface for both.
9408 lt_use_gnu_ld_interface=no
9409 if test "$with_gnu_ld" = yes; then
9410 case $host_os in
9411 aix*)
9412 # The AIX port of GNU ld has always aspired to compatibility
9413 # with the native linker. However, as the warning in the GNU ld
9414 # block says, versions before 2.19.5* couldn't really create working
9415 # shared libraries, regardless of the interface used.
9416 case `$LD -v 2>&1` in
9417 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9418 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9419 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9421 lt_use_gnu_ld_interface=yes
9423 esac
9426 lt_use_gnu_ld_interface=yes
9428 esac
9431 if test "$lt_use_gnu_ld_interface" = yes; then
9432 # If archive_cmds runs LD, not CC, wlarc should be empty
9433 wlarc='${wl}'
9435 # Set some defaults for GNU ld with shared library support. These
9436 # are reset later if shared libraries are not supported. Putting them
9437 # here allows them to be overridden if necessary.
9438 runpath_var=LD_RUN_PATH
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 export_dynamic_flag_spec='${wl}--export-dynamic'
9441 # ancient GNU ld didn't support --whole-archive et. al.
9442 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9443 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9444 else
9445 whole_archive_flag_spec=
9447 supports_anon_versioning=no
9448 case `$LD -v 2>&1` in
9449 *GNU\ gold*) supports_anon_versioning=yes ;;
9450 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9453 *\ 2.11.*) ;; # other 2.11 versions
9454 *) supports_anon_versioning=yes ;;
9455 esac
9457 # See if GNU ld supports shared libraries.
9458 case $host_os in
9459 aix[3-9]*)
9460 # On AIX/PPC, the GNU linker is very broken
9461 if test "$host_cpu" != ia64; then
9462 ld_shlibs=no
9463 cat <<_LT_EOF 1>&2
9465 *** Warning: the GNU linker, at least up to release 2.19, is reported
9466 *** to be unable to reliably create shared libraries on AIX.
9467 *** Therefore, libtool is disabling shared libraries support. If you
9468 *** really care for shared libraries, you may want to install binutils
9469 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9470 *** You will then need to restart the configuration process.
9472 _LT_EOF
9476 amigaos*)
9477 case $host_cpu in
9478 powerpc)
9479 # see comment about AmigaOS4 .so support
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 archive_expsym_cmds=''
9483 m68k)
9484 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)'
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_minus_L=yes
9488 esac
9491 beos*)
9492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9493 allow_undefined_flag=unsupported
9494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9495 # support --undefined. This deserves some investigation. FIXME
9496 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 else
9498 ld_shlibs=no
9502 cygwin* | mingw* | pw32* | cegcc*)
9503 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9504 # as there is no search path for DLLs.
9505 hardcode_libdir_flag_spec='-L$libdir'
9506 export_dynamic_flag_spec='${wl}--export-all-symbols'
9507 allow_undefined_flag=unsupported
9508 always_export_symbols=no
9509 enable_shared_with_static_runtimes=yes
9510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9514 # If the export-symbols file already is a .def file (1st line
9515 # is EXPORTS), use it as is; otherwise, prepend...
9516 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9517 cp $export_symbols $output_objdir/$soname.def;
9518 else
9519 echo EXPORTS > $output_objdir/$soname.def;
9520 cat $export_symbols >> $output_objdir/$soname.def;
9522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9523 else
9524 ld_shlibs=no
9528 haiku*)
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 link_all_deplibs=yes
9533 interix[3-9]*)
9534 hardcode_direct=no
9535 hardcode_shlibpath_var=no
9536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9537 export_dynamic_flag_spec='${wl}-E'
9538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9539 # Instead, shared libraries are loaded at an image base (0x10000000 by
9540 # default) and relocated if they conflict, which is a slow very memory
9541 # consuming and fragmenting process. To avoid this, we pick a random,
9542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9544 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9545 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'
9548 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9549 tmp_diet=no
9550 if test "$host_os" = linux-dietlibc; then
9551 case $cc_basename in
9552 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9553 esac
9555 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9556 && test "$tmp_diet" = no
9557 then
9558 tmp_addflag=' $pic_flag'
9559 tmp_sharedflag='-shared'
9560 case $cc_basename,$host_cpu in
9561 pgcc*) # Portland Group C compiler
9562 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'
9563 tmp_addflag=' $pic_flag'
9565 pgf77* | pgf90* | pgf95* | pgfortran*)
9566 # Portland Group f77 and f90 compilers
9567 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'
9568 tmp_addflag=' $pic_flag -Mnomain' ;;
9569 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9570 tmp_addflag=' -i_dynamic' ;;
9571 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9572 tmp_addflag=' -i_dynamic -nofor_main' ;;
9573 ifc* | ifort*) # Intel Fortran compiler
9574 tmp_addflag=' -nofor_main' ;;
9575 lf95*) # Lahey Fortran 8.1
9576 whole_archive_flag_spec=
9577 tmp_sharedflag='--shared' ;;
9578 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9579 tmp_sharedflag='-qmkshrobj'
9580 tmp_addflag= ;;
9581 nvcc*) # Cuda Compiler Driver 2.2
9582 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'
9583 compiler_needs_object=yes
9585 esac
9586 case `$CC -V 2>&1 | sed 5q` in
9587 *Sun\ C*) # Sun C 5.9
9588 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'
9589 compiler_needs_object=yes
9590 tmp_sharedflag='-G' ;;
9591 *Sun\ F*) # Sun Fortran 8.3
9592 tmp_sharedflag='-G' ;;
9593 esac
9594 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596 if test "x$supports_anon_versioning" = xyes; then
9597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9599 echo "local: *; };" >> $output_objdir/$libname.ver~
9600 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9603 case $cc_basename in
9604 xlf* | bgf* | bgxlf* | mpixlf*)
9605 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9606 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9607 hardcode_libdir_flag_spec=
9608 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9609 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9610 if test "x$supports_anon_versioning" = xyes; then
9611 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9613 echo "local: *; };" >> $output_objdir/$libname.ver~
9614 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9617 esac
9618 else
9619 ld_shlibs=no
9623 netbsd*)
9624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9625 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9626 wlarc=
9627 else
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 solaris*)
9634 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9635 ld_shlibs=no
9636 cat <<_LT_EOF 1>&2
9638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9639 *** create shared libraries on Solaris systems. Therefore, libtool
9640 *** is disabling shared libraries support. We urge you to upgrade GNU
9641 *** binutils to release 2.9.1 or newer. Another option is to modify
9642 *** your PATH or compiler configuration so that the native linker is
9643 *** used, and then restart.
9645 _LT_EOF
9646 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9649 else
9650 ld_shlibs=no
9654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9655 case `$LD -v 2>&1` in
9656 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9657 ld_shlibs=no
9658 cat <<_LT_EOF 1>&2
9660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9661 *** reliably create shared libraries on SCO systems. Therefore, libtool
9662 *** is disabling shared libraries support. We urge you to upgrade GNU
9663 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9664 *** your PATH or compiler configuration so that the native linker is
9665 *** used, and then restart.
9667 _LT_EOF
9670 # For security reasons, it is highly recommended that you always
9671 # use absolute paths for naming shared libraries, and exclude the
9672 # DT_RUNPATH tag from executables and libraries. But doing so
9673 # requires that you compile everything twice, which is a pain.
9674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9678 else
9679 ld_shlibs=no
9682 esac
9685 sunos4*)
9686 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9687 wlarc=
9688 hardcode_direct=yes
9689 hardcode_shlibpath_var=no
9693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9696 else
9697 ld_shlibs=no
9700 esac
9702 if test "$ld_shlibs" = no; then
9703 runpath_var=
9704 hardcode_libdir_flag_spec=
9705 export_dynamic_flag_spec=
9706 whole_archive_flag_spec=
9708 else
9709 # PORTME fill in a description of your system's linker (not GNU ld)
9710 case $host_os in
9711 aix3*)
9712 allow_undefined_flag=unsupported
9713 always_export_symbols=yes
9714 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'
9715 # Note: this linker hardcodes the directories in LIBPATH if there
9716 # are no directories specified by -L.
9717 hardcode_minus_L=yes
9718 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9719 # Neither direct hardcoding nor static linking is supported with a
9720 # broken collect2.
9721 hardcode_direct=unsupported
9725 aix[4-9]*)
9726 if test "$host_cpu" = ia64; then
9727 # On IA64, the linker does run time linking by default, so we don't
9728 # have to do anything special.
9729 aix_use_runtimelinking=no
9730 exp_sym_flag='-Bexport'
9731 no_entry_flag=""
9732 else
9733 # If we're using GNU nm, then we don't want the "-C" option.
9734 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9735 # Also, AIX nm treats weak defined symbols like other global
9736 # defined symbols, whereas GNU nm marks them as "W".
9737 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9738 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'
9739 else
9740 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9742 aix_use_runtimelinking=no
9744 # Test if we are trying to use run time linking or normal
9745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9746 # need to do runtime linking.
9747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9748 for ld_flag in $LDFLAGS; do
9749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9750 aix_use_runtimelinking=yes
9751 break
9753 done
9755 esac
9757 exp_sym_flag='-bexport'
9758 no_entry_flag='-bnoentry'
9761 # When large executables or shared objects are built, AIX ld can
9762 # have problems creating the table of contents. If linking a library
9763 # or program results in "error TOC overflow" add -mminimal-toc to
9764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9767 archive_cmds=''
9768 hardcode_direct=yes
9769 hardcode_direct_absolute=yes
9770 hardcode_libdir_separator=':'
9771 link_all_deplibs=yes
9772 file_list_spec='${wl}-f,'
9774 if test "$GCC" = yes; then
9775 case $host_os in aix4.[012]|aix4.[012].*)
9776 # We only want to do this on AIX 4.2 and lower, the check
9777 # below for broken collect2 doesn't work under 4.3+
9778 collect2name=`${CC} -print-prog-name=collect2`
9779 if test -f "$collect2name" &&
9780 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9781 then
9782 # We have reworked collect2
9784 else
9785 # We have old collect2
9786 hardcode_direct=unsupported
9787 # It fails to find uninstalled libraries when the uninstalled
9788 # path is not listed in the libpath. Setting hardcode_minus_L
9789 # to unsupported forces relinking
9790 hardcode_minus_L=yes
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_libdir_separator=
9795 esac
9796 shared_flag='-shared'
9797 if test "$aix_use_runtimelinking" = yes; then
9798 shared_flag="$shared_flag "'${wl}-G'
9800 else
9801 # not using gcc
9802 if test "$host_cpu" = ia64; then
9803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9804 # chokes on -Wl,-G. The following line is correct:
9805 shared_flag='-G'
9806 else
9807 if test "$aix_use_runtimelinking" = yes; then
9808 shared_flag='${wl}-G'
9809 else
9810 shared_flag='${wl}-bM:SRE'
9815 export_dynamic_flag_spec='${wl}-bexpall'
9816 # It seems that -bexpall does not export symbols beginning with
9817 # underscore (_), so it is better to generate a list of symbols to export.
9818 always_export_symbols=yes
9819 if test "$aix_use_runtimelinking" = yes; then
9820 # Warning - without using the other runtime loading flags (-brtl),
9821 # -berok will link without error, but may produce a broken library.
9822 allow_undefined_flag='-berok'
9823 # Determine the default libpath from the value encoded in an
9824 # empty executable.
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9829 main ()
9833 return 0;
9835 _ACEOF
9836 if ac_fn_c_try_link "$LINENO"; then :
9838 lt_aix_libpath_sed='
9839 /Import File Strings/,/^$/ {
9840 /^0/ {
9841 s/^0 *\(.*\)$/\1/
9845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9846 # Check for a 64-bit object if we didn't find anything.
9847 if test -z "$aix_libpath"; then
9848 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9855 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9856 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"
9857 else
9858 if test "$host_cpu" = ia64; then
9859 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9860 allow_undefined_flag="-z nodefs"
9861 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"
9862 else
9863 # Determine the default libpath from the value encoded in an
9864 # empty executable.
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9869 main ()
9873 return 0;
9875 _ACEOF
9876 if ac_fn_c_try_link "$LINENO"; then :
9878 lt_aix_libpath_sed='
9879 /Import File Strings/,/^$/ {
9880 /^0/ {
9881 s/^0 *\(.*\)$/\1/
9885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9886 # Check for a 64-bit object if we didn't find anything.
9887 if test -z "$aix_libpath"; then
9888 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896 # Warning - without using the other run time loading flags,
9897 # -berok will link without error, but may produce a broken library.
9898 no_undefined_flag=' ${wl}-bernotok'
9899 allow_undefined_flag=' ${wl}-berok'
9900 if test "$with_gnu_ld" = yes; then
9901 # We only use this code for GNU lds that support --whole-archive.
9902 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9903 else
9904 # Exported symbols can be pulled into shared objects from archives
9905 whole_archive_flag_spec='$convenience'
9907 archive_cmds_need_lc=yes
9908 # This is similar to how AIX traditionally builds its shared libraries.
9909 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'
9914 amigaos*)
9915 case $host_cpu in
9916 powerpc)
9917 # see comment about AmigaOS4 .so support
9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9919 archive_expsym_cmds=''
9921 m68k)
9922 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)'
9923 hardcode_libdir_flag_spec='-L$libdir'
9924 hardcode_minus_L=yes
9926 esac
9929 bsdi[45]*)
9930 export_dynamic_flag_spec=-rdynamic
9933 cygwin* | mingw* | pw32* | cegcc*)
9934 # When not using gcc, we currently assume that we are using
9935 # Microsoft Visual C++.
9936 # hardcode_libdir_flag_spec is actually meaningless, as there is
9937 # no search path for DLLs.
9938 hardcode_libdir_flag_spec=' '
9939 allow_undefined_flag=unsupported
9940 # Tell ltmain to make .lib files, not .a files.
9941 libext=lib
9942 # Tell ltmain to make .dll files, not .so files.
9943 shrext_cmds=".dll"
9944 # FIXME: Setting linknames here is a bad hack.
9945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9946 # The linker will automatically build a .lib file if we build a DLL.
9947 old_archive_from_new_cmds='true'
9948 # FIXME: Should let the user specify the lib program.
9949 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9950 fix_srcfile_path='`cygpath -w "$srcfile"`'
9951 enable_shared_with_static_runtimes=yes
9954 darwin* | rhapsody*)
9957 archive_cmds_need_lc=no
9958 hardcode_direct=no
9959 hardcode_automatic=yes
9960 hardcode_shlibpath_var=unsupported
9961 if test "$lt_cv_ld_force_load" = "yes"; then
9962 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\"`'
9963 else
9964 whole_archive_flag_spec=''
9966 link_all_deplibs=yes
9967 allow_undefined_flag="$_lt_dar_allow_undefined"
9968 case $cc_basename in
9969 ifort*) _lt_dar_can_shared=yes ;;
9970 *) _lt_dar_can_shared=$GCC ;;
9971 esac
9972 if test "$_lt_dar_can_shared" = "yes"; then
9973 output_verbose_link_cmd=func_echo_all
9974 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9975 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9976 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}"
9977 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}"
9979 else
9980 ld_shlibs=no
9985 dgux*)
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 hardcode_shlibpath_var=no
9991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9992 # support. Future versions do this automatically, but an explicit c++rt0.o
9993 # does not break anything, and helps significantly (at the cost of a little
9994 # extra space).
9995 freebsd2.2*)
9996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9997 hardcode_libdir_flag_spec='-R$libdir'
9998 hardcode_direct=yes
9999 hardcode_shlibpath_var=no
10002 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10003 freebsd2.*)
10004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_direct=yes
10006 hardcode_minus_L=yes
10007 hardcode_shlibpath_var=no
10010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10011 freebsd* | dragonfly*)
10012 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10013 hardcode_libdir_flag_spec='-R$libdir'
10014 hardcode_direct=yes
10015 hardcode_shlibpath_var=no
10018 hpux9*)
10019 if test "$GCC" = yes; then
10020 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'
10021 else
10022 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'
10024 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10025 hardcode_libdir_separator=:
10026 hardcode_direct=yes
10028 # hardcode_minus_L: Not really in the search PATH,
10029 # but as the default location of the library.
10030 hardcode_minus_L=yes
10031 export_dynamic_flag_spec='${wl}-E'
10034 hpux10*)
10035 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10036 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10037 else
10038 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10040 if test "$with_gnu_ld" = no; then
10041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10042 hardcode_libdir_flag_spec_ld='+b $libdir'
10043 hardcode_libdir_separator=:
10044 hardcode_direct=yes
10045 hardcode_direct_absolute=yes
10046 export_dynamic_flag_spec='${wl}-E'
10047 # hardcode_minus_L: Not really in the search PATH,
10048 # but as the default location of the library.
10049 hardcode_minus_L=yes
10053 hpux11*)
10054 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10055 case $host_cpu in
10056 hppa*64*)
10057 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 ia64*)
10060 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10065 esac
10066 else
10067 case $host_cpu in
10068 hppa*64*)
10069 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 ia64*)
10072 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10076 # Older versions of the 11.00 compiler do not understand -b yet
10077 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10079 $as_echo_n "checking if $CC understands -b... " >&6; }
10080 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 lt_cv_prog_compiler__b=no
10084 save_LDFLAGS="$LDFLAGS"
10085 LDFLAGS="$LDFLAGS -b"
10086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10088 # The linker can only warn and ignore the option if not recognized
10089 # So say no if there are warnings
10090 if test -s conftest.err; then
10091 # Append any errors to the config.log.
10092 cat conftest.err 1>&5
10093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10095 if diff conftest.exp conftest.er2 >/dev/null; then
10096 lt_cv_prog_compiler__b=yes
10098 else
10099 lt_cv_prog_compiler__b=yes
10102 $RM -r conftest*
10103 LDFLAGS="$save_LDFLAGS"
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10107 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10109 if test x"$lt_cv_prog_compiler__b" = xyes; then
10110 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10111 else
10112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10116 esac
10118 if test "$with_gnu_ld" = no; then
10119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10120 hardcode_libdir_separator=:
10122 case $host_cpu in
10123 hppa*64*|ia64*)
10124 hardcode_direct=no
10125 hardcode_shlibpath_var=no
10128 hardcode_direct=yes
10129 hardcode_direct_absolute=yes
10130 export_dynamic_flag_spec='${wl}-E'
10132 # hardcode_minus_L: Not really in the search PATH,
10133 # but as the default location of the library.
10134 hardcode_minus_L=yes
10136 esac
10140 irix5* | irix6* | nonstopux*)
10141 if test "$GCC" = yes; then
10142 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'
10143 # Try to use the -exported_symbol ld option, if it does not
10144 # work, assume that -exports_file does not work either and
10145 # implicitly export all symbols.
10146 save_LDFLAGS="$LDFLAGS"
10147 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 int foo(void) {}
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"; then :
10153 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'
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LDFLAGS="$save_LDFLAGS"
10159 else
10160 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'
10161 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'
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10165 hardcode_libdir_separator=:
10166 inherit_rpath=yes
10167 link_all_deplibs=yes
10170 netbsd*)
10171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10173 else
10174 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10176 hardcode_libdir_flag_spec='-R$libdir'
10177 hardcode_direct=yes
10178 hardcode_shlibpath_var=no
10181 newsos6)
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_direct=yes
10184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10185 hardcode_libdir_separator=:
10186 hardcode_shlibpath_var=no
10189 *nto* | *qnx*)
10192 openbsd*)
10193 if test -f /usr/libexec/ld.so; then
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 hardcode_direct_absolute=yes
10197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10201 export_dynamic_flag_spec='${wl}-E'
10202 else
10203 case $host_os in
10204 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_libdir_flag_spec='-R$libdir'
10209 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10210 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10212 esac
10214 else
10215 ld_shlibs=no
10219 os2*)
10220 hardcode_libdir_flag_spec='-L$libdir'
10221 hardcode_minus_L=yes
10222 allow_undefined_flag=unsupported
10223 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'
10224 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10227 osf3*)
10228 if test "$GCC" = yes; then
10229 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10230 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'
10231 else
10232 allow_undefined_flag=' -expect_unresolved \*'
10233 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'
10235 archive_cmds_need_lc='no'
10236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10237 hardcode_libdir_separator=:
10240 osf4* | osf5*) # as osf3* with the addition of -msym flag
10241 if test "$GCC" = yes; then
10242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10243 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'
10244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10245 else
10246 allow_undefined_flag=' -expect_unresolved \*'
10247 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'
10248 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~
10249 $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'
10251 # Both c and cxx compiler support -rpath directly
10252 hardcode_libdir_flag_spec='-rpath $libdir'
10254 archive_cmds_need_lc='no'
10255 hardcode_libdir_separator=:
10258 solaris*)
10259 no_undefined_flag=' -z defs'
10260 if test "$GCC" = yes; then
10261 wlarc='${wl}'
10262 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10264 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10265 else
10266 case `$CC -V 2>&1` in
10267 *"Compilers 5.0"*)
10268 wlarc=''
10269 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10271 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10274 wlarc='${wl}'
10275 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10277 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10279 esac
10281 hardcode_libdir_flag_spec='-R$libdir'
10282 hardcode_shlibpath_var=no
10283 case $host_os in
10284 solaris2.[0-5] | solaris2.[0-5].*) ;;
10286 # The compiler driver will combine and reorder linker options,
10287 # but understands `-z linker_flag'. GCC discards it without `$wl',
10288 # but is careful enough not to reorder.
10289 # Supported since Solaris 2.6 (maybe 2.5.1?)
10290 if test "$GCC" = yes; then
10291 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10292 else
10293 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10296 esac
10297 link_all_deplibs=yes
10300 sunos4*)
10301 if test "x$host_vendor" = xsequent; then
10302 # Use $CC to link under sequent, because it throws in some extra .o
10303 # files that make .init and .fini sections work.
10304 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10305 else
10306 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_libdir_flag_spec='-L$libdir'
10309 hardcode_direct=yes
10310 hardcode_minus_L=yes
10311 hardcode_shlibpath_var=no
10314 sysv4)
10315 case $host_vendor in
10316 sni)
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 hardcode_direct=yes # is this really true???
10320 siemens)
10321 ## LD is ld it makes a PLAMLIB
10322 ## CC just makes a GrossModule.
10323 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10324 reload_cmds='$CC -r -o $output$reload_objs'
10325 hardcode_direct=no
10327 motorola)
10328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10329 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10331 esac
10332 runpath_var='LD_RUN_PATH'
10333 hardcode_shlibpath_var=no
10336 sysv4.3*)
10337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338 hardcode_shlibpath_var=no
10339 export_dynamic_flag_spec='-Bexport'
10342 sysv4*MP*)
10343 if test -d /usr/nec; then
10344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345 hardcode_shlibpath_var=no
10346 runpath_var=LD_RUN_PATH
10347 hardcode_runpath_var=yes
10348 ld_shlibs=yes
10352 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10353 no_undefined_flag='${wl}-z,text'
10354 archive_cmds_need_lc=no
10355 hardcode_shlibpath_var=no
10356 runpath_var='LD_RUN_PATH'
10358 if test "$GCC" = yes; then
10359 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 else
10362 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 sysv5* | sco3.2v5* | sco5v6*)
10368 # Note: We can NOT use -z defs as we might desire, because we do not
10369 # link with -lc, and that would cause any symbols used from libc to
10370 # always be unresolved, which means just about no library would
10371 # ever link correctly. If we're not using GNU ld we use -z text
10372 # though, which does catch some bad symbols but isn't as heavy-handed
10373 # as -z defs.
10374 no_undefined_flag='${wl}-z,text'
10375 allow_undefined_flag='${wl}-z,nodefs'
10376 archive_cmds_need_lc=no
10377 hardcode_shlibpath_var=no
10378 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10379 hardcode_libdir_separator=':'
10380 link_all_deplibs=yes
10381 export_dynamic_flag_spec='${wl}-Bexport'
10382 runpath_var='LD_RUN_PATH'
10384 if test "$GCC" = yes; then
10385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 else
10388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 uts4*)
10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_libdir_flag_spec='-L$libdir'
10396 hardcode_shlibpath_var=no
10400 ld_shlibs=no
10402 esac
10404 if test x$host_vendor = xsni; then
10405 case $host in
10406 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10407 export_dynamic_flag_spec='${wl}-Blargedynsym'
10409 esac
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10414 $as_echo "$ld_shlibs" >&6; }
10415 test "$ld_shlibs" = no && can_build_shared=no
10417 with_gnu_ld=$with_gnu_ld
10434 # Do we need to explicitly link libc?
10436 case "x$archive_cmds_need_lc" in
10437 x|xyes)
10438 # Assume -lc should be added
10439 archive_cmds_need_lc=yes
10441 if test "$enable_shared" = yes && test "$GCC" = yes; then
10442 case $archive_cmds in
10443 *'~'*)
10444 # FIXME: we may have to deal with multi-command sequences.
10446 '$CC '*)
10447 # Test whether the compiler implicitly links with -lc since on some
10448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10449 # to ld, don't add -lc before -lgcc.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10452 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 $RM conftest*
10456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10459 (eval $ac_compile) 2>&5
10460 ac_status=$?
10461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10462 test $ac_status = 0; } 2>conftest.err; then
10463 soname=conftest
10464 lib=conftest
10465 libobjs=conftest.$ac_objext
10466 deplibs=
10467 wl=$lt_prog_compiler_wl
10468 pic_flag=$lt_prog_compiler_pic
10469 compiler_flags=-v
10470 linker_flags=-v
10471 verstring=
10472 output_objdir=.
10473 libname=conftest
10474 lt_save_allow_undefined_flag=$allow_undefined_flag
10475 allow_undefined_flag=
10476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10477 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10478 ac_status=$?
10479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10480 test $ac_status = 0; }
10481 then
10482 lt_cv_archive_cmds_need_lc=no
10483 else
10484 lt_cv_archive_cmds_need_lc=yes
10486 allow_undefined_flag=$lt_save_allow_undefined_flag
10487 else
10488 cat conftest.err 1>&5
10490 $RM conftest*
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10494 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10495 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10497 esac
10500 esac
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10659 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10661 if test "$GCC" = yes; then
10662 case $host_os in
10663 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10664 *) lt_awk_arg="/^libraries:/" ;;
10665 esac
10666 case $host_os in
10667 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10668 *) lt_sed_strip_eq="s,=/,/,g" ;;
10669 esac
10670 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10671 case $lt_search_path_spec in
10672 *\;*)
10673 # if the path contains ";" then we assume it to be the separator
10674 # otherwise default to the standard path separator (i.e. ":") - it is
10675 # assumed that no part of a normal pathname contains ";" but that should
10676 # okay in the real world where ";" in dirpaths is itself problematic.
10677 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10682 esac
10683 # Ok, now we have the path, separated by spaces, we can step through it
10684 # and add multilib dir if necessary.
10685 lt_tmp_lt_search_path_spec=
10686 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10687 for lt_sys_path in $lt_search_path_spec; do
10688 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10690 else
10691 test -d "$lt_sys_path" && \
10692 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10694 done
10695 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10696 BEGIN {RS=" "; FS="/|\n";} {
10697 lt_foo="";
10698 lt_count=0;
10699 for (lt_i = NF; lt_i > 0; lt_i--) {
10700 if ($lt_i != "" && $lt_i != ".") {
10701 if ($lt_i == "..") {
10702 lt_count++;
10703 } else {
10704 if (lt_count == 0) {
10705 lt_foo="/" $lt_i lt_foo;
10706 } else {
10707 lt_count--;
10712 if (lt_foo != "") { lt_freq[lt_foo]++; }
10713 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10715 # AWK program above erroneously prepends '/' to C:/dos/paths
10716 # for these hosts.
10717 case $host_os in
10718 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10719 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10720 esac
10721 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10722 else
10723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10725 library_names_spec=
10726 libname_spec='lib$name'
10727 soname_spec=
10728 shrext_cmds=".so"
10729 postinstall_cmds=
10730 postuninstall_cmds=
10731 finish_cmds=
10732 finish_eval=
10733 shlibpath_var=
10734 shlibpath_overrides_runpath=unknown
10735 version_type=none
10736 dynamic_linker="$host_os ld.so"
10737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10738 need_lib_prefix=unknown
10739 hardcode_into_libs=no
10741 # when you set need_version to no, make sure it does not cause -set_version
10742 # flags to be left without arguments
10743 need_version=unknown
10745 case $host_os in
10746 aix3*)
10747 version_type=linux
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10749 shlibpath_var=LIBPATH
10751 # AIX 3 has no versioning support, so we append a major version to the name.
10752 soname_spec='${libname}${release}${shared_ext}$major'
10755 aix[4-9]*)
10756 version_type=linux
10757 need_lib_prefix=no
10758 need_version=no
10759 hardcode_into_libs=yes
10760 if test "$host_cpu" = ia64; then
10761 # AIX 5 supports IA64
10762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 else
10765 # With GCC up to 2.95.x, collect2 would create an import file
10766 # for dependence libraries. The import file would start with
10767 # the line `#! .'. This would cause the generated library to
10768 # depend on `.', always an invalid library. This was fixed in
10769 # development snapshots of GCC prior to 3.0.
10770 case $host_os in
10771 aix4 | aix4.[01] | aix4.[01].*)
10772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10773 echo ' yes '
10774 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10776 else
10777 can_build_shared=no
10780 esac
10781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10782 # soname into executable. Probably we can add versioning support to
10783 # collect2, so additional links can be useful in future.
10784 if test "$aix_use_runtimelinking" = yes; then
10785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10786 # instead of lib<name>.a to let people know that these are not
10787 # typical AIX shared libraries.
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 else
10790 # We preserve .a as extension for shared libraries through AIX4.2
10791 # and later when we are not doing run time linking.
10792 library_names_spec='${libname}${release}.a $libname.a'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LIBPATH
10799 amigaos*)
10800 case $host_cpu in
10801 powerpc)
10802 # Since July 2007 AmigaOS4 officially supports .so libraries.
10803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 m68k)
10807 library_names_spec='$libname.ixlibrary $libname.a'
10808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10809 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'
10811 esac
10814 beos*)
10815 library_names_spec='${libname}${shared_ext}'
10816 dynamic_linker="$host_os ld.so"
10817 shlibpath_var=LIBRARY_PATH
10820 bsdi[45]*)
10821 version_type=linux
10822 need_version=no
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10829 # the default ld.so.conf also contains /usr/contrib/lib and
10830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10831 # libtool to hard-code these into programs
10834 cygwin* | mingw* | pw32* | cegcc*)
10835 version_type=windows
10836 shrext_cmds=".dll"
10837 need_version=no
10838 need_lib_prefix=no
10840 case $GCC,$host_os in
10841 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10842 library_names_spec='$libname.dll.a'
10843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10844 postinstall_cmds='base_file=`basename \${file}`~
10845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10846 dldir=$destdir/`dirname \$dlpath`~
10847 test -d \$dldir || mkdir -p \$dldir~
10848 $install_prog $dir/$dlname \$dldir/$dlname~
10849 chmod a+x \$dldir/$dlname~
10850 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10851 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10854 dlpath=$dir/\$dldll~
10855 $RM \$dlpath'
10856 shlibpath_overrides_runpath=yes
10858 case $host_os in
10859 cygwin*)
10860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10863 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10865 mingw* | cegcc*)
10866 # MinGW DLLs use traditional 'lib' prefix
10867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10869 pw32*)
10870 # pw32 DLLs use 'pw' prefix rather than 'lib'
10871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10873 esac
10877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10879 esac
10880 dynamic_linker='Win32 ld.exe'
10881 # FIXME: first we should search . and the directory the executable is in
10882 shlibpath_var=PATH
10885 darwin* | rhapsody*)
10886 dynamic_linker="$host_os dyld"
10887 version_type=darwin
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10891 soname_spec='${libname}${release}${major}$shared_ext'
10892 shlibpath_overrides_runpath=yes
10893 shlibpath_var=DYLD_LIBRARY_PATH
10894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10900 dgux*)
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10909 freebsd* | dragonfly*)
10910 # DragonFly does not have aout. When/if they implement a new
10911 # versioning mechanism, adjust this.
10912 if test -x /usr/bin/objformat; then
10913 objformat=`/usr/bin/objformat`
10914 else
10915 case $host_os in
10916 freebsd[23].*) objformat=aout ;;
10917 *) objformat=elf ;;
10918 esac
10920 version_type=freebsd-$objformat
10921 case $version_type in
10922 freebsd-elf*)
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10924 need_version=no
10925 need_lib_prefix=no
10927 freebsd-*)
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10929 need_version=yes
10931 esac
10932 shlibpath_var=LD_LIBRARY_PATH
10933 case $host_os in
10934 freebsd2.*)
10935 shlibpath_overrides_runpath=yes
10937 freebsd3.[01]* | freebsdelf3.[01]*)
10938 shlibpath_overrides_runpath=yes
10939 hardcode_into_libs=yes
10941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10946 *) # from 4.6 on, and DragonFly
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10950 esac
10953 gnu*)
10954 version_type=linux
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 hardcode_into_libs=yes
10963 haiku*)
10964 version_type=linux
10965 need_lib_prefix=no
10966 need_version=no
10967 dynamic_linker="$host_os runtime_loader"
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10973 hardcode_into_libs=yes
10976 hpux9* | hpux10* | hpux11*)
10977 # Give a soname corresponding to the major version so that dld.sl refuses to
10978 # link against other versions.
10979 version_type=sunos
10980 need_lib_prefix=no
10981 need_version=no
10982 case $host_cpu in
10983 ia64*)
10984 shrext_cmds='.so'
10985 hardcode_into_libs=yes
10986 dynamic_linker="$host_os dld.so"
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 if test "X$HPUX_IA64_MODE" = X32; then
10992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10993 else
10994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10998 hppa*64*)
10999 shrext_cmds='.sl'
11000 hardcode_into_libs=yes
11001 dynamic_linker="$host_os dld.sl"
11002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11010 shrext_cmds='.sl'
11011 dynamic_linker="$host_os dld.sl"
11012 shlibpath_var=SHLIB_PATH
11013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11017 esac
11018 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11019 postinstall_cmds='chmod 555 $lib'
11020 # or fails outright, so override atomically:
11021 install_override_mode=555
11024 interix[3-9]*)
11025 version_type=linux
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=no
11033 hardcode_into_libs=yes
11036 irix5* | irix6* | nonstopux*)
11037 case $host_os in
11038 nonstopux*) version_type=nonstopux ;;
11040 if test "$lt_cv_prog_gnu_ld" = yes; then
11041 version_type=linux
11042 else
11043 version_type=irix
11044 fi ;;
11045 esac
11046 need_lib_prefix=no
11047 need_version=no
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11050 case $host_os in
11051 irix5* | nonstopux*)
11052 libsuff= shlibsuff=
11055 case $LD in # libtool.m4 will add one of these switches to LD
11056 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11057 libsuff= shlibsuff= libmagic=32-bit;;
11058 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11059 libsuff=32 shlibsuff=N32 libmagic=N32;;
11060 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11061 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11062 *) libsuff= shlibsuff= libmagic=never-match;;
11063 esac
11065 esac
11066 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11067 shlibpath_overrides_runpath=no
11068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11070 hardcode_into_libs=yes
11073 # No shared lib support for Linux oldld, aout, or coff.
11074 linux*oldld* | linux*aout* | linux*coff*)
11075 dynamic_linker=no
11078 # This must be Linux ELF.
11079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11080 version_type=linux
11081 need_lib_prefix=no
11082 need_version=no
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=no
11089 # Some binutils ld are patched to set DT_RUNPATH
11090 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 lt_cv_shlibpath_overrides_runpath=no
11094 save_LDFLAGS=$LDFLAGS
11095 save_libdir=$libdir
11096 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11097 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11102 main ()
11106 return 0;
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11111 lt_cv_shlibpath_overrides_runpath=yes
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LDFLAGS=$save_LDFLAGS
11117 libdir=$save_libdir
11121 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11123 # This implies no fast_install, which is unacceptable.
11124 # Some rework will be needed to allow for fast_install
11125 # before this can be enabled.
11126 hardcode_into_libs=yes
11128 # Append ld.so.conf contents to the search path
11129 if test -f /etc/ld.so.conf; then
11130 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' ' '`
11131 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11134 # We used to test for /lib/ld.so.1 and disable shared libraries on
11135 # powerpc, because MkLinux only supported shared libraries with the
11136 # GNU dynamic linker. Since this was broken with cross compilers,
11137 # most powerpc-linux boxes support dynamic linking these days and
11138 # people can always --disable-shared, the test was removed, and we
11139 # assume the GNU/Linux dynamic linker is in use.
11140 dynamic_linker='GNU/Linux ld.so'
11143 netbsd*)
11144 version_type=sunos
11145 need_lib_prefix=no
11146 need_version=no
11147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 dynamic_linker='NetBSD (a.out) ld.so'
11151 else
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 dynamic_linker='NetBSD ld.elf_so'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 hardcode_into_libs=yes
11161 newsos6)
11162 version_type=linux
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11168 *nto* | *qnx*)
11169 version_type=qnx
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11176 hardcode_into_libs=yes
11177 dynamic_linker='ldqnx.so'
11180 openbsd*)
11181 version_type=sunos
11182 sys_lib_dlsearch_path_spec="/usr/lib"
11183 need_lib_prefix=no
11184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11185 case $host_os in
11186 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11187 *) need_version=no ;;
11188 esac
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11193 case $host_os in
11194 openbsd2.[89] | openbsd2.[89].*)
11195 shlibpath_overrides_runpath=no
11198 shlibpath_overrides_runpath=yes
11200 esac
11201 else
11202 shlibpath_overrides_runpath=yes
11206 os2*)
11207 libname_spec='$name'
11208 shrext_cmds=".dll"
11209 need_lib_prefix=no
11210 library_names_spec='$libname${shared_ext} $libname.a'
11211 dynamic_linker='OS/2 ld.exe'
11212 shlibpath_var=LIBPATH
11215 osf3* | osf4* | osf5*)
11216 version_type=osf
11217 need_lib_prefix=no
11218 need_version=no
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11226 rdos*)
11227 dynamic_linker=no
11230 solaris*)
11231 version_type=linux
11232 need_lib_prefix=no
11233 need_version=no
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11239 # ldd complains unless libraries are executable
11240 postinstall_cmds='chmod +x $lib'
11243 sunos4*)
11244 version_type=sunos
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath=yes
11249 if test "$with_gnu_ld" = yes; then
11250 need_lib_prefix=no
11252 need_version=yes
11255 sysv4 | sysv4.3*)
11256 version_type=linux
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 case $host_vendor in
11261 sni)
11262 shlibpath_overrides_runpath=no
11263 need_lib_prefix=no
11264 runpath_var=LD_RUN_PATH
11266 siemens)
11267 need_lib_prefix=no
11269 motorola)
11270 need_lib_prefix=no
11271 need_version=no
11272 shlibpath_overrides_runpath=no
11273 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11275 esac
11278 sysv4*MP*)
11279 if test -d /usr/nec ;then
11280 version_type=linux
11281 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11282 soname_spec='$libname${shared_ext}.$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11288 version_type=freebsd-elf
11289 need_lib_prefix=no
11290 need_version=no
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes
11295 hardcode_into_libs=yes
11296 if test "$with_gnu_ld" = yes; then
11297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11298 else
11299 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11300 case $host_os in
11301 sco3.2v5*)
11302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11304 esac
11306 sys_lib_dlsearch_path_spec='/usr/lib'
11309 tpf*)
11310 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11311 version_type=linux
11312 need_lib_prefix=no
11313 need_version=no
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=no
11317 hardcode_into_libs=yes
11320 uts4*)
11321 version_type=linux
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 shlibpath_var=LD_LIBRARY_PATH
11328 dynamic_linker=no
11330 esac
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11332 $as_echo "$dynamic_linker" >&6; }
11333 test "$dynamic_linker" = no && can_build_shared=no
11335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11336 if test "$GCC" = yes; then
11337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11340 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11341 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11343 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11344 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11439 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11440 hardcode_action=
11441 if test -n "$hardcode_libdir_flag_spec" ||
11442 test -n "$runpath_var" ||
11443 test "X$hardcode_automatic" = "Xyes" ; then
11445 # We can hardcode non-existent directories.
11446 if test "$hardcode_direct" != no &&
11447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11448 # have to relink, otherwise we might link with an installed library
11449 # when we should be linking with a yet-to-be-installed one
11450 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11451 test "$hardcode_minus_L" != no; then
11452 # Linking always hardcodes the temporary library directory.
11453 hardcode_action=relink
11454 else
11455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11456 hardcode_action=immediate
11458 else
11459 # We cannot hardcode anything, or else we can only hardcode existing
11460 # directories.
11461 hardcode_action=unsupported
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11464 $as_echo "$hardcode_action" >&6; }
11466 if test "$hardcode_action" = relink ||
11467 test "$inherit_rpath" = yes; then
11468 # Fast installation is not supported
11469 enable_fast_install=no
11470 elif test "$shlibpath_overrides_runpath" = yes ||
11471 test "$enable_shared" = no; then
11472 # Fast installation is not necessary
11473 enable_fast_install=needless
11481 if test "x$enable_dlopen" != xyes; then
11482 enable_dlopen=unknown
11483 enable_dlopen_self=unknown
11484 enable_dlopen_self_static=unknown
11485 else
11486 lt_cv_dlopen=no
11487 lt_cv_dlopen_libs=
11489 case $host_os in
11490 beos*)
11491 lt_cv_dlopen="load_add_on"
11492 lt_cv_dlopen_libs=
11493 lt_cv_dlopen_self=yes
11496 mingw* | pw32* | cegcc*)
11497 lt_cv_dlopen="LoadLibrary"
11498 lt_cv_dlopen_libs=
11501 cygwin*)
11502 lt_cv_dlopen="dlopen"
11503 lt_cv_dlopen_libs=
11506 darwin*)
11507 # if libdl is installed we need to link against it
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11509 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11510 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldl $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char dlopen ();
11526 main ()
11528 return dlopen ();
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_dl_dlopen=yes
11535 else
11536 ac_cv_lib_dl_dlopen=no
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11543 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11546 else
11548 lt_cv_dlopen="dyld"
11549 lt_cv_dlopen_libs=
11550 lt_cv_dlopen_self=yes
11557 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11558 if test "x$ac_cv_func_shl_load" = x""yes; then :
11559 lt_cv_dlopen="shl_load"
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11563 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldld $LIBS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char shl_load ();
11579 main ()
11581 return shl_load ();
11583 return 0;
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_dld_shl_load=yes
11588 else
11589 ac_cv_lib_dld_shl_load=no
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11597 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11599 else
11600 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11601 if test "x$ac_cv_func_dlopen" = x""yes; then :
11602 lt_cv_dlopen="dlopen"
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11606 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 ac_check_lib_save_LIBS=$LIBS
11610 LIBS="-ldl $LIBS"
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char dlopen ();
11622 main ()
11624 return dlopen ();
11626 return 0;
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"; then :
11630 ac_cv_lib_dl_dlopen=yes
11631 else
11632 ac_cv_lib_dl_dlopen=no
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11639 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11640 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11644 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11645 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 ac_check_lib_save_LIBS=$LIBS
11649 LIBS="-lsvld $LIBS"
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11653 /* Override any GCC internal prototype to avoid an error.
11654 Use char because int might match the return type of a GCC
11655 builtin and then its argument prototype would still apply. */
11656 #ifdef __cplusplus
11657 extern "C"
11658 #endif
11659 char dlopen ();
11661 main ()
11663 return dlopen ();
11665 return 0;
11667 _ACEOF
11668 if ac_fn_c_try_link "$LINENO"; then :
11669 ac_cv_lib_svld_dlopen=yes
11670 else
11671 ac_cv_lib_svld_dlopen=no
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11678 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11679 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11683 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11684 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-ldld $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char dld_link ();
11700 main ()
11702 return dld_link ();
11704 return 0;
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_dld_dld_link=yes
11709 else
11710 ac_cv_lib_dld_dld_link=no
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11717 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11718 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11719 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11738 esac
11740 if test "x$lt_cv_dlopen" != xno; then
11741 enable_dlopen=yes
11742 else
11743 enable_dlopen=no
11746 case $lt_cv_dlopen in
11747 dlopen)
11748 save_CPPFLAGS="$CPPFLAGS"
11749 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11751 save_LDFLAGS="$LDFLAGS"
11752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11754 save_LIBS="$LIBS"
11755 LIBS="$lt_cv_dlopen_libs $LIBS"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11758 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11759 if test "${lt_cv_dlopen_self+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 if test "$cross_compiling" = yes; then :
11763 lt_cv_dlopen_self=cross
11764 else
11765 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11766 lt_status=$lt_dlunknown
11767 cat > conftest.$ac_ext <<_LT_EOF
11768 #line 11768 "configure"
11769 #include "confdefs.h"
11771 #if HAVE_DLFCN_H
11772 #include <dlfcn.h>
11773 #endif
11775 #include <stdio.h>
11777 #ifdef RTLD_GLOBAL
11778 # define LT_DLGLOBAL RTLD_GLOBAL
11779 #else
11780 # ifdef DL_GLOBAL
11781 # define LT_DLGLOBAL DL_GLOBAL
11782 # else
11783 # define LT_DLGLOBAL 0
11784 # endif
11785 #endif
11787 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11788 find out it does not work in some platform. */
11789 #ifndef LT_DLLAZY_OR_NOW
11790 # ifdef RTLD_LAZY
11791 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11792 # else
11793 # ifdef DL_LAZY
11794 # define LT_DLLAZY_OR_NOW DL_LAZY
11795 # else
11796 # ifdef RTLD_NOW
11797 # define LT_DLLAZY_OR_NOW RTLD_NOW
11798 # else
11799 # ifdef DL_NOW
11800 # define LT_DLLAZY_OR_NOW DL_NOW
11801 # else
11802 # define LT_DLLAZY_OR_NOW 0
11803 # endif
11804 # endif
11805 # endif
11806 # endif
11807 #endif
11809 /* When -fvisbility=hidden is used, assume the code has been annotated
11810 correspondingly for the symbols needed. */
11811 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11812 void fnord () __attribute__((visibility("default")));
11813 #endif
11815 void fnord () { int i=42; }
11816 int main ()
11818 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11819 int status = $lt_dlunknown;
11821 if (self)
11823 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11824 else
11826 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11827 else puts (dlerror ());
11829 /* dlclose (self); */
11831 else
11832 puts (dlerror ());
11834 return status;
11836 _LT_EOF
11837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11838 (eval $ac_link) 2>&5
11839 ac_status=$?
11840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11841 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11842 (./conftest; exit; ) >&5 2>/dev/null
11843 lt_status=$?
11844 case x$lt_status in
11845 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11846 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11847 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11848 esac
11849 else :
11850 # compilation failed
11851 lt_cv_dlopen_self=no
11854 rm -fr conftest*
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11859 $as_echo "$lt_cv_dlopen_self" >&6; }
11861 if test "x$lt_cv_dlopen_self" = xyes; then
11862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11864 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11865 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11867 else
11868 if test "$cross_compiling" = yes; then :
11869 lt_cv_dlopen_self_static=cross
11870 else
11871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11872 lt_status=$lt_dlunknown
11873 cat > conftest.$ac_ext <<_LT_EOF
11874 #line 11874 "configure"
11875 #include "confdefs.h"
11877 #if HAVE_DLFCN_H
11878 #include <dlfcn.h>
11879 #endif
11881 #include <stdio.h>
11883 #ifdef RTLD_GLOBAL
11884 # define LT_DLGLOBAL RTLD_GLOBAL
11885 #else
11886 # ifdef DL_GLOBAL
11887 # define LT_DLGLOBAL DL_GLOBAL
11888 # else
11889 # define LT_DLGLOBAL 0
11890 # endif
11891 #endif
11893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11894 find out it does not work in some platform. */
11895 #ifndef LT_DLLAZY_OR_NOW
11896 # ifdef RTLD_LAZY
11897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11898 # else
11899 # ifdef DL_LAZY
11900 # define LT_DLLAZY_OR_NOW DL_LAZY
11901 # else
11902 # ifdef RTLD_NOW
11903 # define LT_DLLAZY_OR_NOW RTLD_NOW
11904 # else
11905 # ifdef DL_NOW
11906 # define LT_DLLAZY_OR_NOW DL_NOW
11907 # else
11908 # define LT_DLLAZY_OR_NOW 0
11909 # endif
11910 # endif
11911 # endif
11912 # endif
11913 #endif
11915 /* When -fvisbility=hidden is used, assume the code has been annotated
11916 correspondingly for the symbols needed. */
11917 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11918 void fnord () __attribute__((visibility("default")));
11919 #endif
11921 void fnord () { int i=42; }
11922 int main ()
11924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11925 int status = $lt_dlunknown;
11927 if (self)
11929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11930 else
11932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11933 else puts (dlerror ());
11935 /* dlclose (self); */
11937 else
11938 puts (dlerror ());
11940 return status;
11942 _LT_EOF
11943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11944 (eval $ac_link) 2>&5
11945 ac_status=$?
11946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11947 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11948 (./conftest; exit; ) >&5 2>/dev/null
11949 lt_status=$?
11950 case x$lt_status in
11951 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11952 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11953 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11954 esac
11955 else :
11956 # compilation failed
11957 lt_cv_dlopen_self_static=no
11960 rm -fr conftest*
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11965 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11968 CPPFLAGS="$save_CPPFLAGS"
11969 LDFLAGS="$save_LDFLAGS"
11970 LIBS="$save_LIBS"
11972 esac
11974 case $lt_cv_dlopen_self in
11975 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11976 *) enable_dlopen_self=unknown ;;
11977 esac
11979 case $lt_cv_dlopen_self_static in
11980 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11981 *) enable_dlopen_self_static=unknown ;;
11982 esac
12001 striplib=
12002 old_striplib=
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12004 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12005 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12007 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009 $as_echo "yes" >&6; }
12010 else
12011 # FIXME - insert some real tests, host_os isn't really good enough
12012 case $host_os in
12013 darwin*)
12014 if test -n "$STRIP" ; then
12015 striplib="$STRIP -x"
12016 old_striplib="$STRIP -S"
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12018 $as_echo "yes" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12028 esac
12042 # Report which library types will actually be built
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12044 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12046 $as_echo "$can_build_shared" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12049 $as_echo_n "checking whether to build shared libraries... " >&6; }
12050 test "$can_build_shared" = "no" && enable_shared=no
12052 # On AIX, shared libraries and static libraries use the same namespace, and
12053 # are all built from PIC.
12054 case $host_os in
12055 aix3*)
12056 test "$enable_shared" = yes && enable_static=no
12057 if test -n "$RANLIB"; then
12058 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12059 postinstall_cmds='$RANLIB $lib'
12063 aix[4-9]*)
12064 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12065 test "$enable_shared" = yes && enable_static=no
12068 esac
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12070 $as_echo "$enable_shared" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12073 $as_echo_n "checking whether to build static libraries... " >&6; }
12074 # Make sure either enable_shared or enable_static is yes.
12075 test "$enable_shared" = yes || enable_static=yes
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12077 $as_echo "$enable_static" >&6; }
12083 ac_ext=c
12084 ac_cpp='$CPP $CPPFLAGS'
12085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12089 CC="$lt_save_CC"
12091 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12092 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12093 (test "X$CXX" != "Xg++"))) ; then
12094 ac_ext=cpp
12095 ac_cpp='$CXXCPP $CPPFLAGS'
12096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12100 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12101 if test -z "$CXXCPP"; then
12102 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 # Double quotes because CXXCPP needs to be expanded
12106 for CXXCPP in "$CXX -E" "/lib/cpp"
12108 ac_preproc_ok=false
12109 for ac_cxx_preproc_warn_flag in '' yes
12111 # Use a header file that comes with gcc, so configuring glibc
12112 # with a fresh cross-compiler works.
12113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12114 # <limits.h> exists even on freestanding compilers.
12115 # On the NeXT, cc -E runs the code through the compiler's parser,
12116 # not just through cpp. "Syntax error" is here to catch this case.
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 #ifdef __STDC__
12120 # include <limits.h>
12121 #else
12122 # include <assert.h>
12123 #endif
12124 Syntax error
12125 _ACEOF
12126 if ac_fn_cxx_try_cpp "$LINENO"; then :
12128 else
12129 # Broken: fails on valid input.
12130 continue
12132 rm -f conftest.err conftest.$ac_ext
12134 # OK, works on sane cases. Now check whether nonexistent headers
12135 # can be detected and how.
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138 #include <ac_nonexistent.h>
12139 _ACEOF
12140 if ac_fn_cxx_try_cpp "$LINENO"; then :
12141 # Broken: success on invalid input.
12142 continue
12143 else
12144 # Passes both tests.
12145 ac_preproc_ok=:
12146 break
12148 rm -f conftest.err conftest.$ac_ext
12150 done
12151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12152 rm -f conftest.err conftest.$ac_ext
12153 if $ac_preproc_ok; then :
12154 break
12157 done
12158 ac_cv_prog_CXXCPP=$CXXCPP
12161 CXXCPP=$ac_cv_prog_CXXCPP
12162 else
12163 ac_cv_prog_CXXCPP=$CXXCPP
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12166 $as_echo "$CXXCPP" >&6; }
12167 ac_preproc_ok=false
12168 for ac_cxx_preproc_warn_flag in '' yes
12170 # Use a header file that comes with gcc, so configuring glibc
12171 # with a fresh cross-compiler works.
12172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12173 # <limits.h> exists even on freestanding compilers.
12174 # On the NeXT, cc -E runs the code through the compiler's parser,
12175 # not just through cpp. "Syntax error" is here to catch this case.
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12178 #ifdef __STDC__
12179 # include <limits.h>
12180 #else
12181 # include <assert.h>
12182 #endif
12183 Syntax error
12184 _ACEOF
12185 if ac_fn_cxx_try_cpp "$LINENO"; then :
12187 else
12188 # Broken: fails on valid input.
12189 continue
12191 rm -f conftest.err conftest.$ac_ext
12193 # OK, works on sane cases. Now check whether nonexistent headers
12194 # can be detected and how.
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <ac_nonexistent.h>
12198 _ACEOF
12199 if ac_fn_cxx_try_cpp "$LINENO"; then :
12200 # Broken: success on invalid input.
12201 continue
12202 else
12203 # Passes both tests.
12204 ac_preproc_ok=:
12205 break
12207 rm -f conftest.err conftest.$ac_ext
12209 done
12210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12211 rm -f conftest.err conftest.$ac_ext
12212 if $ac_preproc_ok; then :
12214 else
12215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12217 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12218 See \`config.log' for more details." "$LINENO" 5; }
12221 ac_ext=c
12222 ac_cpp='$CPP $CPPFLAGS'
12223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12227 else
12228 _lt_caught_CXX_error=yes
12231 ac_ext=cpp
12232 ac_cpp='$CXXCPP $CPPFLAGS'
12233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12237 archive_cmds_need_lc_CXX=no
12238 allow_undefined_flag_CXX=
12239 always_export_symbols_CXX=no
12240 archive_expsym_cmds_CXX=
12241 compiler_needs_object_CXX=no
12242 export_dynamic_flag_spec_CXX=
12243 hardcode_direct_CXX=no
12244 hardcode_direct_absolute_CXX=no
12245 hardcode_libdir_flag_spec_CXX=
12246 hardcode_libdir_flag_spec_ld_CXX=
12247 hardcode_libdir_separator_CXX=
12248 hardcode_minus_L_CXX=no
12249 hardcode_shlibpath_var_CXX=unsupported
12250 hardcode_automatic_CXX=no
12251 inherit_rpath_CXX=no
12252 module_cmds_CXX=
12253 module_expsym_cmds_CXX=
12254 link_all_deplibs_CXX=unknown
12255 old_archive_cmds_CXX=$old_archive_cmds
12256 reload_flag_CXX=$reload_flag
12257 reload_cmds_CXX=$reload_cmds
12258 no_undefined_flag_CXX=
12259 whole_archive_flag_spec_CXX=
12260 enable_shared_with_static_runtimes_CXX=no
12262 # Source file extension for C++ test sources.
12263 ac_ext=cpp
12265 # Object file extension for compiled C++ test sources.
12266 objext=o
12267 objext_CXX=$objext
12269 # No sense in running all these tests if we already determined that
12270 # the CXX compiler isn't working. Some variables (like enable_shared)
12271 # are currently assumed to apply to all compilers on this platform,
12272 # and will be corrupted by setting them based on a non-working compiler.
12273 if test "$_lt_caught_CXX_error" != yes; then
12274 # Code to be used in simple compile tests
12275 lt_simple_compile_test_code="int some_variable = 0;"
12277 # Code to be used in simple link tests
12278 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12287 # If no C compiler was specified, use CC.
12288 LTCC=${LTCC-"$CC"}
12290 # If no C compiler flags were specified, use CFLAGS.
12291 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12293 # Allow CC to be a program name with arguments.
12294 compiler=$CC
12297 # save warnings/boilerplate of simple test code
12298 ac_outfile=conftest.$ac_objext
12299 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12300 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12301 _lt_compiler_boilerplate=`cat conftest.err`
12302 $RM conftest*
12304 ac_outfile=conftest.$ac_objext
12305 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12306 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12307 _lt_linker_boilerplate=`cat conftest.err`
12308 $RM -r conftest*
12311 # Allow CC to be a program name with arguments.
12312 lt_save_CC=$CC
12313 lt_save_LD=$LD
12314 lt_save_GCC=$GCC
12315 GCC=$GXX
12316 lt_save_with_gnu_ld=$with_gnu_ld
12317 lt_save_path_LD=$lt_cv_path_LD
12318 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12319 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12320 else
12321 $as_unset lt_cv_prog_gnu_ld
12323 if test -n "${lt_cv_path_LDCXX+set}"; then
12324 lt_cv_path_LD=$lt_cv_path_LDCXX
12325 else
12326 $as_unset lt_cv_path_LD
12328 test -z "${LDCXX+set}" || LD=$LDCXX
12329 CC=${CXX-"c++"}
12330 compiler=$CC
12331 compiler_CXX=$CC
12332 for cc_temp in $compiler""; do
12333 case $cc_temp in
12334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12336 \-*) ;;
12337 *) break;;
12338 esac
12339 done
12340 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12343 if test -n "$compiler"; then
12344 # We don't want -fno-exception when compiling C++ code, so set the
12345 # no_builtin_flag separately
12346 if test "$GXX" = yes; then
12347 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12348 else
12349 lt_prog_compiler_no_builtin_flag_CXX=
12352 if test "$GXX" = yes; then
12353 # Set up default GNU C++ configuration
12357 # Check whether --with-gnu-ld was given.
12358 if test "${with_gnu_ld+set}" = set; then :
12359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12360 else
12361 with_gnu_ld=no
12364 ac_prog=ld
12365 if test "$GCC" = yes; then
12366 # Check if gcc -print-prog-name=ld gives a path.
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12368 $as_echo_n "checking for ld used by $CC... " >&6; }
12369 case $host in
12370 *-*-mingw*)
12371 # gcc leaves a trailing carriage return which upsets mingw
12372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12375 esac
12376 case $ac_prog in
12377 # Accept absolute paths.
12378 [\\/]* | ?:[\\/]*)
12379 re_direlt='/[^/][^/]*/\.\./'
12380 # Canonicalize the pathname of ld
12381 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12382 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12383 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12384 done
12385 test -z "$LD" && LD="$ac_prog"
12388 # If it fails, then pretend we aren't using GCC.
12389 ac_prog=ld
12392 # If it is relative, then search for the first ld in PATH.
12393 with_gnu_ld=unknown
12395 esac
12396 elif test "$with_gnu_ld" = yes; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12398 $as_echo_n "checking for GNU ld... " >&6; }
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12401 $as_echo_n "checking for non-GNU ld... " >&6; }
12403 if test "${lt_cv_path_LD+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 if test -z "$LD"; then
12407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12408 for ac_dir in $PATH; do
12409 IFS="$lt_save_ifs"
12410 test -z "$ac_dir" && ac_dir=.
12411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12412 lt_cv_path_LD="$ac_dir/$ac_prog"
12413 # Check to see if the program is GNU ld. I'd rather use --version,
12414 # but apparently some variants of GNU ld only accept -v.
12415 # Break only if it was the GNU/non-GNU ld that we prefer.
12416 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12417 *GNU* | *'with BFD'*)
12418 test "$with_gnu_ld" != no && break
12421 test "$with_gnu_ld" != yes && break
12423 esac
12425 done
12426 IFS="$lt_save_ifs"
12427 else
12428 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12432 LD="$lt_cv_path_LD"
12433 if test -n "$LD"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12435 $as_echo "$LD" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12440 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12442 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12443 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12445 else
12446 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12447 case `$LD -v 2>&1 </dev/null` in
12448 *GNU* | *'with BFD'*)
12449 lt_cv_prog_gnu_ld=yes
12452 lt_cv_prog_gnu_ld=no
12454 esac
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12457 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12458 with_gnu_ld=$lt_cv_prog_gnu_ld
12466 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12467 # archiving commands below assume that GNU ld is being used.
12468 if test "$with_gnu_ld" = yes; then
12469 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12470 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'
12472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12473 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12475 # If archive_cmds runs LD, not CC, wlarc should be empty
12476 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12477 # investigate it a little bit more. (MM)
12478 wlarc='${wl}'
12480 # ancient GNU ld didn't support --whole-archive et. al.
12481 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12482 $GREP 'no-whole-archive' > /dev/null; then
12483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12484 else
12485 whole_archive_flag_spec_CXX=
12487 else
12488 with_gnu_ld=no
12489 wlarc=
12491 # A generic and very simple default shared library creation
12492 # command for GNU C++ for the case where it uses the native
12493 # linker, instead of GNU ld. If possible, this setting should
12494 # overridden to take advantage of the native linker features on
12495 # the platform it is being used on.
12496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12499 # Commands to make compiler produce verbose output that lists
12500 # what "hidden" libraries, object files and flags are used when
12501 # linking a shared library.
12502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12504 else
12505 GXX=no
12506 with_gnu_ld=no
12507 wlarc=
12510 # PORTME: fill in a description of your system's C++ link characteristics
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12513 ld_shlibs_CXX=yes
12514 case $host_os in
12515 aix3*)
12516 # FIXME: insert proper C++ library support
12517 ld_shlibs_CXX=no
12519 aix[4-9]*)
12520 if test "$host_cpu" = ia64; then
12521 # On IA64, the linker does run time linking by default, so we don't
12522 # have to do anything special.
12523 aix_use_runtimelinking=no
12524 exp_sym_flag='-Bexport'
12525 no_entry_flag=""
12526 else
12527 aix_use_runtimelinking=no
12529 # Test if we are trying to use run time linking or normal
12530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12531 # need to do runtime linking.
12532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12533 for ld_flag in $LDFLAGS; do
12534 case $ld_flag in
12535 *-brtl*)
12536 aix_use_runtimelinking=yes
12537 break
12539 esac
12540 done
12542 esac
12544 exp_sym_flag='-bexport'
12545 no_entry_flag='-bnoentry'
12548 # When large executables or shared objects are built, AIX ld can
12549 # have problems creating the table of contents. If linking a library
12550 # or program results in "error TOC overflow" add -mminimal-toc to
12551 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12552 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12554 archive_cmds_CXX=''
12555 hardcode_direct_CXX=yes
12556 hardcode_direct_absolute_CXX=yes
12557 hardcode_libdir_separator_CXX=':'
12558 link_all_deplibs_CXX=yes
12559 file_list_spec_CXX='${wl}-f,'
12561 if test "$GXX" = yes; then
12562 case $host_os in aix4.[012]|aix4.[012].*)
12563 # We only want to do this on AIX 4.2 and lower, the check
12564 # below for broken collect2 doesn't work under 4.3+
12565 collect2name=`${CC} -print-prog-name=collect2`
12566 if test -f "$collect2name" &&
12567 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12568 then
12569 # We have reworked collect2
12571 else
12572 # We have old collect2
12573 hardcode_direct_CXX=unsupported
12574 # It fails to find uninstalled libraries when the uninstalled
12575 # path is not listed in the libpath. Setting hardcode_minus_L
12576 # to unsupported forces relinking
12577 hardcode_minus_L_CXX=yes
12578 hardcode_libdir_flag_spec_CXX='-L$libdir'
12579 hardcode_libdir_separator_CXX=
12581 esac
12582 shared_flag='-shared'
12583 if test "$aix_use_runtimelinking" = yes; then
12584 shared_flag="$shared_flag "'${wl}-G'
12586 else
12587 # not using gcc
12588 if test "$host_cpu" = ia64; then
12589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12590 # chokes on -Wl,-G. The following line is correct:
12591 shared_flag='-G'
12592 else
12593 if test "$aix_use_runtimelinking" = yes; then
12594 shared_flag='${wl}-G'
12595 else
12596 shared_flag='${wl}-bM:SRE'
12601 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12602 # It seems that -bexpall does not export symbols beginning with
12603 # underscore (_), so it is better to generate a list of symbols to
12604 # export.
12605 always_export_symbols_CXX=yes
12606 if test "$aix_use_runtimelinking" = yes; then
12607 # Warning - without using the other runtime loading flags (-brtl),
12608 # -berok will link without error, but may produce a broken library.
12609 allow_undefined_flag_CXX='-berok'
12610 # Determine the default libpath from the value encoded in an empty
12611 # executable.
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12616 main ()
12620 return 0;
12622 _ACEOF
12623 if ac_fn_cxx_try_link "$LINENO"; then :
12625 lt_aix_libpath_sed='
12626 /Import File Strings/,/^$/ {
12627 /^0/ {
12628 s/^0 *\(.*\)$/\1/
12632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12633 # Check for a 64-bit object if we didn't find anything.
12634 if test -z "$aix_libpath"; then
12635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12642 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12644 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"
12645 else
12646 if test "$host_cpu" = ia64; then
12647 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12648 allow_undefined_flag_CXX="-z nodefs"
12649 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"
12650 else
12651 # Determine the default libpath from the value encoded in an
12652 # empty executable.
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12657 main ()
12661 return 0;
12663 _ACEOF
12664 if ac_fn_cxx_try_link "$LINENO"; then :
12666 lt_aix_libpath_sed='
12667 /Import File Strings/,/^$/ {
12668 /^0/ {
12669 s/^0 *\(.*\)$/\1/
12673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12674 # Check for a 64-bit object if we didn't find anything.
12675 if test -z "$aix_libpath"; then
12676 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12683 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12684 # Warning - without using the other run time loading flags,
12685 # -berok will link without error, but may produce a broken library.
12686 no_undefined_flag_CXX=' ${wl}-bernotok'
12687 allow_undefined_flag_CXX=' ${wl}-berok'
12688 if test "$with_gnu_ld" = yes; then
12689 # We only use this code for GNU lds that support --whole-archive.
12690 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12691 else
12692 # Exported symbols can be pulled into shared objects from archives
12693 whole_archive_flag_spec_CXX='$convenience'
12695 archive_cmds_need_lc_CXX=yes
12696 # This is similar to how AIX traditionally builds its shared
12697 # libraries.
12698 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'
12703 beos*)
12704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12705 allow_undefined_flag_CXX=unsupported
12706 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12707 # support --undefined. This deserves some investigation. FIXME
12708 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709 else
12710 ld_shlibs_CXX=no
12714 chorus*)
12715 case $cc_basename in
12717 # FIXME: insert proper C++ library support
12718 ld_shlibs_CXX=no
12720 esac
12723 cygwin* | mingw* | pw32* | cegcc*)
12724 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12725 # as there is no search path for DLLs.
12726 hardcode_libdir_flag_spec_CXX='-L$libdir'
12727 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12728 allow_undefined_flag_CXX=unsupported
12729 always_export_symbols_CXX=no
12730 enable_shared_with_static_runtimes_CXX=yes
12732 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12733 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'
12734 # If the export-symbols file already is a .def file (1st line
12735 # is EXPORTS), use it as is; otherwise, prepend...
12736 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12737 cp $export_symbols $output_objdir/$soname.def;
12738 else
12739 echo EXPORTS > $output_objdir/$soname.def;
12740 cat $export_symbols >> $output_objdir/$soname.def;
12742 $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'
12743 else
12744 ld_shlibs_CXX=no
12747 darwin* | rhapsody*)
12750 archive_cmds_need_lc_CXX=no
12751 hardcode_direct_CXX=no
12752 hardcode_automatic_CXX=yes
12753 hardcode_shlibpath_var_CXX=unsupported
12754 if test "$lt_cv_ld_force_load" = "yes"; then
12755 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\"`'
12756 else
12757 whole_archive_flag_spec_CXX=''
12759 link_all_deplibs_CXX=yes
12760 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12761 case $cc_basename in
12762 ifort*) _lt_dar_can_shared=yes ;;
12763 *) _lt_dar_can_shared=$GCC ;;
12764 esac
12765 if test "$_lt_dar_can_shared" = "yes"; then
12766 output_verbose_link_cmd=func_echo_all
12767 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}"
12768 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12769 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}"
12770 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}"
12771 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12772 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}"
12773 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}"
12776 else
12777 ld_shlibs_CXX=no
12782 dgux*)
12783 case $cc_basename in
12784 ec++*)
12785 # FIXME: insert proper C++ library support
12786 ld_shlibs_CXX=no
12788 ghcx*)
12789 # Green Hills C++ Compiler
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12797 esac
12800 freebsd2.*)
12801 # C++ shared libraries reported to be fairly broken before
12802 # switch to ELF
12803 ld_shlibs_CXX=no
12806 freebsd-elf*)
12807 archive_cmds_need_lc_CXX=no
12810 freebsd* | dragonfly*)
12811 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12812 # conventions
12813 ld_shlibs_CXX=yes
12816 gnu*)
12819 haiku*)
12820 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821 link_all_deplibs_CXX=yes
12824 hpux9*)
12825 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12826 hardcode_libdir_separator_CXX=:
12827 export_dynamic_flag_spec_CXX='${wl}-E'
12828 hardcode_direct_CXX=yes
12829 hardcode_minus_L_CXX=yes # Not in the search PATH,
12830 # but as the default
12831 # location of the library.
12833 case $cc_basename in
12834 CC*)
12835 # FIXME: insert proper C++ library support
12836 ld_shlibs_CXX=no
12838 aCC*)
12839 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'
12840 # Commands to make compiler produce verbose output that lists
12841 # what "hidden" libraries, object files and flags are used when
12842 # linking a shared library.
12844 # There doesn't appear to be a way to prevent this compiler from
12845 # explicitly linking system object files so we need to strip them
12846 # from the output so that they don't get included in the library
12847 # dependencies.
12848 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"'
12851 if test "$GXX" = yes; then
12852 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'
12853 else
12854 # FIXME: insert proper C++ library support
12855 ld_shlibs_CXX=no
12858 esac
12861 hpux10*|hpux11*)
12862 if test $with_gnu_ld = no; then
12863 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12864 hardcode_libdir_separator_CXX=:
12866 case $host_cpu in
12867 hppa*64*|ia64*)
12870 export_dynamic_flag_spec_CXX='${wl}-E'
12872 esac
12874 case $host_cpu in
12875 hppa*64*|ia64*)
12876 hardcode_direct_CXX=no
12877 hardcode_shlibpath_var_CXX=no
12880 hardcode_direct_CXX=yes
12881 hardcode_direct_absolute_CXX=yes
12882 hardcode_minus_L_CXX=yes # Not in the search PATH,
12883 # but as the default
12884 # location of the library.
12886 esac
12888 case $cc_basename in
12889 CC*)
12890 # FIXME: insert proper C++ library support
12891 ld_shlibs_CXX=no
12893 aCC*)
12894 case $host_cpu in
12895 hppa*64*)
12896 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12898 ia64*)
12899 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12902 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12904 esac
12905 # Commands to make compiler produce verbose output that lists
12906 # what "hidden" libraries, object files and flags are used when
12907 # linking a shared library.
12909 # There doesn't appear to be a way to prevent this compiler from
12910 # explicitly linking system object files so we need to strip them
12911 # from the output so that they don't get included in the library
12912 # dependencies.
12913 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"'
12916 if test "$GXX" = yes; then
12917 if test $with_gnu_ld = no; then
12918 case $host_cpu in
12919 hppa*64*)
12920 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12922 ia64*)
12923 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926 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'
12928 esac
12930 else
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12935 esac
12938 interix[3-9]*)
12939 hardcode_direct_CXX=no
12940 hardcode_shlibpath_var_CXX=no
12941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12942 export_dynamic_flag_spec_CXX='${wl}-E'
12943 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12944 # Instead, shared libraries are loaded at an image base (0x10000000 by
12945 # default) and relocated if they conflict, which is a slow very memory
12946 # consuming and fragmenting process. To avoid this, we pick a random,
12947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12948 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12949 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'
12950 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'
12952 irix5* | irix6*)
12953 case $cc_basename in
12954 CC*)
12955 # SGI C++
12956 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'
12958 # Archives containing C++ object files must be created using
12959 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12960 # necessary to make sure instantiated templates are included
12961 # in the archive.
12962 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12965 if test "$GXX" = yes; then
12966 if test "$with_gnu_ld" = no; then
12967 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'
12968 else
12969 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'
12972 link_all_deplibs_CXX=yes
12974 esac
12975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12976 hardcode_libdir_separator_CXX=:
12977 inherit_rpath_CXX=yes
12980 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12981 case $cc_basename in
12982 KCC*)
12983 # Kuck and Associates, Inc. (KAI) C++ Compiler
12985 # KCC will only create a shared library if the output file
12986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12987 # to its proper name (with version) after linking.
12988 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'
12989 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'
12990 # Commands to make compiler produce verbose output that lists
12991 # what "hidden" libraries, object files and flags are used when
12992 # linking a shared library.
12994 # There doesn't appear to be a way to prevent this compiler from
12995 # explicitly linking system object files so we need to strip them
12996 # from the output so that they don't get included in the library
12997 # dependencies.
12998 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"'
13000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003 # Archives containing C++ object files must be created using
13004 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13005 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13007 icpc* | ecpc* )
13008 # Intel C++
13009 with_gnu_ld=yes
13010 # version 8.0 and above of icpc choke on multiply defined symbols
13011 # if we add $predep_objects and $postdep_objects, however 7.1 and
13012 # earlier do not add the objects themselves.
13013 case `$CC -V 2>&1` in
13014 *"Version 7."*)
13015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016 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'
13018 *) # Version 8.0 or newer
13019 tmp_idyn=
13020 case $host_cpu in
13021 ia64*) tmp_idyn=' -i_dynamic';;
13022 esac
13023 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13024 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'
13026 esac
13027 archive_cmds_need_lc_CXX=no
13028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13030 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13032 pgCC* | pgcpp*)
13033 # Portland Group C++ compiler
13034 case `$CC -V` in
13035 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13036 prelink_cmds_CXX='tpldir=Template.dir~
13037 rm -rf $tpldir~
13038 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13039 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13040 old_archive_cmds_CXX='tpldir=Template.dir~
13041 rm -rf $tpldir~
13042 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13043 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13044 $RANLIB $oldlib'
13045 archive_cmds_CXX='tpldir=Template.dir~
13046 rm -rf $tpldir~
13047 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13048 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13049 archive_expsym_cmds_CXX='tpldir=Template.dir~
13050 rm -rf $tpldir~
13051 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13052 $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'
13054 *) # Version 6 and above use weak symbols
13055 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13056 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'
13058 esac
13060 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13062 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'
13064 cxx*)
13065 # Compaq C++
13066 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067 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'
13069 runpath_var=LD_RUN_PATH
13070 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13071 hardcode_libdir_separator_CXX=:
13073 # Commands to make compiler produce verbose output that lists
13074 # what "hidden" libraries, object files and flags are used when
13075 # linking a shared library.
13077 # There doesn't appear to be a way to prevent this compiler from
13078 # explicitly linking system object files so we need to strip them
13079 # from the output so that they don't get included in the library
13080 # dependencies.
13081 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'
13083 xl* | mpixl* | bgxl*)
13084 # IBM XL 8.0 on PPC, with GNU ld
13085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13087 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13088 if test "x$supports_anon_versioning" = xyes; then
13089 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13091 echo "local: *; };" >> $output_objdir/$libname.ver~
13092 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13096 case `$CC -V 2>&1 | sed 5q` in
13097 *Sun\ C*)
13098 # Sun C++ 5.9
13099 no_undefined_flag_CXX=' -zdefs'
13100 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13101 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'
13102 hardcode_libdir_flag_spec_CXX='-R$libdir'
13103 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'
13104 compiler_needs_object_CXX=yes
13106 # Not sure whether something based on
13107 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13108 # would be better.
13109 output_verbose_link_cmd='func_echo_all'
13111 # Archives containing C++ object files must be created using
13112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13113 # necessary to make sure instantiated templates are included
13114 # in the archive.
13115 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13117 esac
13119 esac
13122 lynxos*)
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13127 m88k*)
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13132 mvs*)
13133 case $cc_basename in
13134 cxx*)
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13142 esac
13145 netbsd*)
13146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13147 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13148 wlarc=
13149 hardcode_libdir_flag_spec_CXX='-R$libdir'
13150 hardcode_direct_CXX=yes
13151 hardcode_shlibpath_var_CXX=no
13153 # Workaround some broken pre-1.5 toolchains
13154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13157 *nto* | *qnx*)
13158 ld_shlibs_CXX=yes
13161 openbsd2*)
13162 # C++ shared libraries are fairly broken
13163 ld_shlibs_CXX=no
13166 openbsd*)
13167 if test -f /usr/libexec/ld.so; then
13168 hardcode_direct_CXX=yes
13169 hardcode_shlibpath_var_CXX=no
13170 hardcode_direct_absolute_CXX=yes
13171 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13174 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13175 export_dynamic_flag_spec_CXX='${wl}-E'
13176 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13178 output_verbose_link_cmd=func_echo_all
13179 else
13180 ld_shlibs_CXX=no
13184 osf3* | osf4* | osf5*)
13185 case $cc_basename in
13186 KCC*)
13187 # Kuck and Associates, Inc. (KAI) C++ Compiler
13189 # KCC will only create a shared library if the output file
13190 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13191 # to its proper name (with version) after linking.
13192 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'
13194 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13195 hardcode_libdir_separator_CXX=:
13197 # Archives containing C++ object files must be created using
13198 # the KAI C++ compiler.
13199 case $host in
13200 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13201 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13202 esac
13204 RCC*)
13205 # Rational C++ 2.4.1
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13209 cxx*)
13210 case $host in
13211 osf3*)
13212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13213 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'
13214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13217 allow_undefined_flag_CXX=' -expect_unresolved \*'
13218 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'
13219 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13220 echo "-hidden">> $lib.exp~
13221 $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~
13222 $RM $lib.exp'
13223 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13225 esac
13227 hardcode_libdir_separator_CXX=:
13229 # Commands to make compiler produce verbose output that lists
13230 # what "hidden" libraries, object files and flags are used when
13231 # linking a shared library.
13233 # There doesn't appear to be a way to prevent this compiler from
13234 # explicitly linking system object files so we need to strip them
13235 # from the output so that they don't get included in the library
13236 # dependencies.
13237 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"'
13240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13241 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13242 case $host in
13243 osf3*)
13244 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'
13247 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'
13249 esac
13251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13252 hardcode_libdir_separator_CXX=:
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13259 else
13260 # FIXME: insert proper C++ library support
13261 ld_shlibs_CXX=no
13264 esac
13267 psos*)
13268 # FIXME: insert proper C++ library support
13269 ld_shlibs_CXX=no
13272 sunos4*)
13273 case $cc_basename in
13274 CC*)
13275 # Sun C++ 4.x
13276 # FIXME: insert proper C++ library support
13277 ld_shlibs_CXX=no
13279 lcc*)
13280 # Lucid
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13285 # FIXME: insert proper C++ library support
13286 ld_shlibs_CXX=no
13288 esac
13291 solaris*)
13292 case $cc_basename in
13293 CC*)
13294 # Sun C++ 4.2, 5.x and Centerline C++
13295 archive_cmds_need_lc_CXX=yes
13296 no_undefined_flag_CXX=' -zdefs'
13297 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13299 $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'
13301 hardcode_libdir_flag_spec_CXX='-R$libdir'
13302 hardcode_shlibpath_var_CXX=no
13303 case $host_os in
13304 solaris2.[0-5] | solaris2.[0-5].*) ;;
13306 # The compiler driver will combine and reorder linker options,
13307 # but understands `-z linker_flag'.
13308 # Supported since Solaris 2.6 (maybe 2.5.1?)
13309 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13311 esac
13312 link_all_deplibs_CXX=yes
13314 output_verbose_link_cmd='func_echo_all'
13316 # Archives containing C++ object files must be created using
13317 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13318 # necessary to make sure instantiated templates are included
13319 # in the archive.
13320 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13322 gcx*)
13323 # Green Hills C++ Compiler
13324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13326 # The C++ compiler must be used to create the archive.
13327 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13330 # GNU C++ compiler with Solaris linker
13331 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13332 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13333 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13334 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13335 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13336 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13338 # Commands to make compiler produce verbose output that lists
13339 # what "hidden" libraries, object files and flags are used when
13340 # linking a shared library.
13341 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13342 else
13343 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13344 # platform.
13345 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13346 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13347 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13349 # Commands to make compiler produce verbose output that lists
13350 # what "hidden" libraries, object files and flags are used when
13351 # linking a shared library.
13352 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13355 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13356 case $host_os in
13357 solaris2.[0-5] | solaris2.[0-5].*) ;;
13359 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13361 esac
13364 esac
13367 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13368 no_undefined_flag_CXX='${wl}-z,text'
13369 archive_cmds_need_lc_CXX=no
13370 hardcode_shlibpath_var_CXX=no
13371 runpath_var='LD_RUN_PATH'
13373 case $cc_basename in
13374 CC*)
13375 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13376 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 esac
13385 sysv5* | sco3.2v5* | sco5v6*)
13386 # Note: We can NOT use -z defs as we might desire, because we do not
13387 # link with -lc, and that would cause any symbols used from libc to
13388 # always be unresolved, which means just about no library would
13389 # ever link correctly. If we're not using GNU ld we use -z text
13390 # though, which does catch some bad symbols but isn't as heavy-handed
13391 # as -z defs.
13392 no_undefined_flag_CXX='${wl}-z,text'
13393 allow_undefined_flag_CXX='${wl}-z,nodefs'
13394 archive_cmds_need_lc_CXX=no
13395 hardcode_shlibpath_var_CXX=no
13396 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13397 hardcode_libdir_separator_CXX=':'
13398 link_all_deplibs_CXX=yes
13399 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13400 runpath_var='LD_RUN_PATH'
13402 case $cc_basename in
13403 CC*)
13404 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13405 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13406 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13407 '"$old_archive_cmds_CXX"
13408 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13409 '"$reload_cmds_CXX"
13412 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13413 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13415 esac
13418 tandem*)
13419 case $cc_basename in
13420 NCC*)
13421 # NonStop-UX NCC 3.20
13422 # FIXME: insert proper C++ library support
13423 ld_shlibs_CXX=no
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13429 esac
13432 vxworks*)
13433 # FIXME: insert proper C++ library support
13434 ld_shlibs_CXX=no
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13441 esac
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13444 $as_echo "$ld_shlibs_CXX" >&6; }
13445 test "$ld_shlibs_CXX" = no && can_build_shared=no
13447 GCC_CXX="$GXX"
13448 LD_CXX="$LD"
13450 ## CAVEAT EMPTOR:
13451 ## There is no encapsulation within the following macros, do not change
13452 ## the running order or otherwise move them around unless you know exactly
13453 ## what you are doing...
13454 # Dependencies to place before and after the object being linked:
13455 predep_objects_CXX=
13456 postdep_objects_CXX=
13457 predeps_CXX=
13458 postdeps_CXX=
13459 compiler_lib_search_path_CXX=
13461 cat > conftest.$ac_ext <<_LT_EOF
13462 class Foo
13464 public:
13465 Foo (void) { a = 0; }
13466 private:
13467 int a;
13469 _LT_EOF
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13472 (eval $ac_compile) 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }; then
13476 # Parse the compiler output and extract the necessary
13477 # objects, libraries and library flags.
13479 # Sentinel used to keep track of whether or not we are before
13480 # the conftest object file.
13481 pre_test_object_deps_done=no
13483 for p in `eval "$output_verbose_link_cmd"`; do
13484 case $p in
13486 -L* | -R* | -l*)
13487 # Some compilers place space between "-{L,R}" and the path.
13488 # Remove the space.
13489 if test $p = "-L" ||
13490 test $p = "-R"; then
13491 prev=$p
13492 continue
13493 else
13494 prev=
13497 if test "$pre_test_object_deps_done" = no; then
13498 case $p in
13499 -L* | -R*)
13500 # Internal compiler library paths should come after those
13501 # provided the user. The postdeps already come after the
13502 # user supplied libs so there is no need to process them.
13503 if test -z "$compiler_lib_search_path_CXX"; then
13504 compiler_lib_search_path_CXX="${prev}${p}"
13505 else
13506 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13509 # The "-l" case would never come before the object being
13510 # linked, so don't bother handling this case.
13511 esac
13512 else
13513 if test -z "$postdeps_CXX"; then
13514 postdeps_CXX="${prev}${p}"
13515 else
13516 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13521 *.$objext)
13522 # This assumes that the test object file only shows up
13523 # once in the compiler output.
13524 if test "$p" = "conftest.$objext"; then
13525 pre_test_object_deps_done=yes
13526 continue
13529 if test "$pre_test_object_deps_done" = no; then
13530 if test -z "$predep_objects_CXX"; then
13531 predep_objects_CXX="$p"
13532 else
13533 predep_objects_CXX="$predep_objects_CXX $p"
13535 else
13536 if test -z "$postdep_objects_CXX"; then
13537 postdep_objects_CXX="$p"
13538 else
13539 postdep_objects_CXX="$postdep_objects_CXX $p"
13544 *) ;; # Ignore the rest.
13546 esac
13547 done
13549 # Clean up.
13550 rm -f a.out a.exe
13551 else
13552 echo "libtool.m4: error: problem compiling CXX test program"
13555 $RM -f confest.$objext
13557 # PORTME: override above test on systems where it is broken
13558 case $host_os in
13559 interix[3-9]*)
13560 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13561 # hack all around it, let's just trust "g++" to DTRT.
13562 predep_objects_CXX=
13563 postdep_objects_CXX=
13564 postdeps_CXX=
13567 linux*)
13568 case `$CC -V 2>&1 | sed 5q` in
13569 *Sun\ C*)
13570 # Sun C++ 5.9
13572 # The more standards-conforming stlport4 library is
13573 # incompatible with the Cstd library. Avoid specifying
13574 # it if it's in CXXFLAGS. Ignore libCrun as
13575 # -library=stlport4 depends on it.
13576 case " $CXX $CXXFLAGS " in
13577 *" -library=stlport4 "*)
13578 solaris_use_stlport4=yes
13580 esac
13582 if test "$solaris_use_stlport4" != yes; then
13583 postdeps_CXX='-library=Cstd -library=Crun'
13586 esac
13589 solaris*)
13590 case $cc_basename in
13591 CC*)
13592 # The more standards-conforming stlport4 library is
13593 # incompatible with the Cstd library. Avoid specifying
13594 # it if it's in CXXFLAGS. Ignore libCrun as
13595 # -library=stlport4 depends on it.
13596 case " $CXX $CXXFLAGS " in
13597 *" -library=stlport4 "*)
13598 solaris_use_stlport4=yes
13600 esac
13602 # Adding this requires a known-good setup of shared libraries for
13603 # Sun compiler versions before 5.6, else PIC objects from an old
13604 # archive will be linked into the output, leading to subtle bugs.
13605 if test "$solaris_use_stlport4" != yes; then
13606 postdeps_CXX='-library=Cstd -library=Crun'
13609 esac
13611 esac
13614 case " $postdeps_CXX " in
13615 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13616 esac
13617 compiler_lib_search_dirs_CXX=
13618 if test -n "${compiler_lib_search_path_CXX}"; then
13619 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13652 lt_prog_compiler_wl_CXX=
13653 lt_prog_compiler_pic_CXX=
13654 lt_prog_compiler_static_CXX=
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13657 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13659 # C++ specific cases for pic, static, wl, etc.
13660 if test "$GXX" = yes; then
13661 lt_prog_compiler_wl_CXX='-Wl,'
13662 lt_prog_compiler_static_CXX='-static'
13664 case $host_os in
13665 aix*)
13666 # All AIX code is PIC.
13667 if test "$host_cpu" = ia64; then
13668 # AIX 5 now supports IA64 processor
13669 lt_prog_compiler_static_CXX='-Bstatic'
13671 lt_prog_compiler_pic_CXX='-fPIC'
13674 amigaos*)
13675 case $host_cpu in
13676 powerpc)
13677 # see comment about AmigaOS4 .so support
13678 lt_prog_compiler_pic_CXX='-fPIC'
13680 m68k)
13681 # FIXME: we need at least 68020 code to build shared libraries, but
13682 # adding the `-m68020' flag to GCC prevents building anything better,
13683 # like `-m68040'.
13684 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13686 esac
13689 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13690 # PIC is the default for these OSes.
13692 mingw* | cygwin* | os2* | pw32* | cegcc*)
13693 # This hack is so that the source file can tell whether it is being
13694 # built for inclusion in a dll (and should export symbols for example).
13695 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13696 # (--disable-auto-import) libraries
13697 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13699 darwin* | rhapsody*)
13700 # PIC is the default on this platform
13701 # Common symbols not allowed in MH_DYLIB files
13702 lt_prog_compiler_pic_CXX='-fno-common'
13704 *djgpp*)
13705 # DJGPP does not support shared libraries at all
13706 lt_prog_compiler_pic_CXX=
13708 haiku*)
13709 # PIC is the default for Haiku.
13710 # The "-static" flag exists, but is broken.
13711 lt_prog_compiler_static_CXX=
13713 interix[3-9]*)
13714 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13715 # Instead, we relocate shared libraries at runtime.
13717 sysv4*MP*)
13718 if test -d /usr/nec; then
13719 lt_prog_compiler_pic_CXX=-Kconform_pic
13722 hpux*)
13723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13725 # sets the default TLS model and affects inlining.
13726 case $host_cpu in
13727 hppa*64*)
13730 lt_prog_compiler_pic_CXX='-fPIC'
13732 esac
13734 *qnx* | *nto*)
13735 # QNX uses GNU C++, but need to define -shared option too, otherwise
13736 # it will coredump.
13737 lt_prog_compiler_pic_CXX='-fPIC -shared'
13740 lt_prog_compiler_pic_CXX='-fPIC'
13742 esac
13743 else
13744 case $host_os in
13745 aix[4-9]*)
13746 # All AIX code is PIC.
13747 if test "$host_cpu" = ia64; then
13748 # AIX 5 now supports IA64 processor
13749 lt_prog_compiler_static_CXX='-Bstatic'
13750 else
13751 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13754 chorus*)
13755 case $cc_basename in
13756 cxch68*)
13757 # Green Hills C++ Compiler
13758 # _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"
13760 esac
13762 dgux*)
13763 case $cc_basename in
13764 ec++*)
13765 lt_prog_compiler_pic_CXX='-KPIC'
13767 ghcx*)
13768 # Green Hills C++ Compiler
13769 lt_prog_compiler_pic_CXX='-pic'
13773 esac
13775 freebsd* | dragonfly*)
13776 # FreeBSD uses GNU C++
13778 hpux9* | hpux10* | hpux11*)
13779 case $cc_basename in
13780 CC*)
13781 lt_prog_compiler_wl_CXX='-Wl,'
13782 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13783 if test "$host_cpu" != ia64; then
13784 lt_prog_compiler_pic_CXX='+Z'
13787 aCC*)
13788 lt_prog_compiler_wl_CXX='-Wl,'
13789 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13790 case $host_cpu in
13791 hppa*64*|ia64*)
13792 # +Z the default
13795 lt_prog_compiler_pic_CXX='+Z'
13797 esac
13801 esac
13803 interix*)
13804 # This is c89, which is MS Visual C++ (no shared libs)
13805 # Anyone wants to do a port?
13807 irix5* | irix6* | nonstopux*)
13808 case $cc_basename in
13809 CC*)
13810 lt_prog_compiler_wl_CXX='-Wl,'
13811 lt_prog_compiler_static_CXX='-non_shared'
13812 # CC pic flag -KPIC is the default.
13816 esac
13818 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13819 case $cc_basename in
13820 KCC*)
13821 # KAI C++ Compiler
13822 lt_prog_compiler_wl_CXX='--backend -Wl,'
13823 lt_prog_compiler_pic_CXX='-fPIC'
13825 ecpc* )
13826 # old Intel C++ for x86_64 which still supported -KPIC.
13827 lt_prog_compiler_wl_CXX='-Wl,'
13828 lt_prog_compiler_pic_CXX='-KPIC'
13829 lt_prog_compiler_static_CXX='-static'
13831 icpc* )
13832 # Intel C++, used to be incompatible with GCC.
13833 # ICC 10 doesn't accept -KPIC any more.
13834 lt_prog_compiler_wl_CXX='-Wl,'
13835 lt_prog_compiler_pic_CXX='-fPIC'
13836 lt_prog_compiler_static_CXX='-static'
13838 pgCC* | pgcpp*)
13839 # Portland Group C++ compiler
13840 lt_prog_compiler_wl_CXX='-Wl,'
13841 lt_prog_compiler_pic_CXX='-fpic'
13842 lt_prog_compiler_static_CXX='-Bstatic'
13844 cxx*)
13845 # Compaq C++
13846 # Make sure the PIC flag is empty. It appears that all Alpha
13847 # Linux and Compaq Tru64 Unix objects are PIC.
13848 lt_prog_compiler_pic_CXX=
13849 lt_prog_compiler_static_CXX='-non_shared'
13851 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13852 # IBM XL 8.0, 9.0 on PPC and BlueGene
13853 lt_prog_compiler_wl_CXX='-Wl,'
13854 lt_prog_compiler_pic_CXX='-qpic'
13855 lt_prog_compiler_static_CXX='-qstaticlink'
13858 case `$CC -V 2>&1 | sed 5q` in
13859 *Sun\ C*)
13860 # Sun C++ 5.9
13861 lt_prog_compiler_pic_CXX='-KPIC'
13862 lt_prog_compiler_static_CXX='-Bstatic'
13863 lt_prog_compiler_wl_CXX='-Qoption ld '
13865 esac
13867 esac
13869 lynxos*)
13871 m88k*)
13873 mvs*)
13874 case $cc_basename in
13875 cxx*)
13876 lt_prog_compiler_pic_CXX='-W c,exportall'
13880 esac
13882 netbsd*)
13884 *qnx* | *nto*)
13885 # QNX uses GNU C++, but need to define -shared option too, otherwise
13886 # it will coredump.
13887 lt_prog_compiler_pic_CXX='-fPIC -shared'
13889 osf3* | osf4* | osf5*)
13890 case $cc_basename in
13891 KCC*)
13892 lt_prog_compiler_wl_CXX='--backend -Wl,'
13894 RCC*)
13895 # Rational C++ 2.4.1
13896 lt_prog_compiler_pic_CXX='-pic'
13898 cxx*)
13899 # Digital/Compaq C++
13900 lt_prog_compiler_wl_CXX='-Wl,'
13901 # Make sure the PIC flag is empty. It appears that all Alpha
13902 # Linux and Compaq Tru64 Unix objects are PIC.
13903 lt_prog_compiler_pic_CXX=
13904 lt_prog_compiler_static_CXX='-non_shared'
13908 esac
13910 psos*)
13912 solaris*)
13913 case $cc_basename in
13914 CC*)
13915 # Sun C++ 4.2, 5.x and Centerline C++
13916 lt_prog_compiler_pic_CXX='-KPIC'
13917 lt_prog_compiler_static_CXX='-Bstatic'
13918 lt_prog_compiler_wl_CXX='-Qoption ld '
13920 gcx*)
13921 # Green Hills C++ Compiler
13922 lt_prog_compiler_pic_CXX='-PIC'
13926 esac
13928 sunos4*)
13929 case $cc_basename in
13930 CC*)
13931 # Sun C++ 4.x
13932 lt_prog_compiler_pic_CXX='-pic'
13933 lt_prog_compiler_static_CXX='-Bstatic'
13935 lcc*)
13936 # Lucid
13937 lt_prog_compiler_pic_CXX='-pic'
13941 esac
13943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13944 case $cc_basename in
13945 CC*)
13946 lt_prog_compiler_wl_CXX='-Wl,'
13947 lt_prog_compiler_pic_CXX='-KPIC'
13948 lt_prog_compiler_static_CXX='-Bstatic'
13950 esac
13952 tandem*)
13953 case $cc_basename in
13954 NCC*)
13955 # NonStop-UX NCC 3.20
13956 lt_prog_compiler_pic_CXX='-KPIC'
13960 esac
13962 vxworks*)
13965 lt_prog_compiler_can_build_shared_CXX=no
13967 esac
13970 case $host_os in
13971 # For platforms which do not support PIC, -DPIC is meaningless:
13972 *djgpp*)
13973 lt_prog_compiler_pic_CXX=
13976 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13978 esac
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13980 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13985 # Check to make sure the PIC flag actually works.
13987 if test -n "$lt_prog_compiler_pic_CXX"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13989 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13990 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 lt_cv_prog_compiler_pic_works_CXX=no
13994 ac_outfile=conftest.$ac_objext
13995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13996 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13997 # Insert the option either (1) after the last *FLAGS variable, or
13998 # (2) before a word containing "conftest.", or (3) at the end.
13999 # Note that $ac_compile itself does not contain backslashes and begins
14000 # with a dollar sign (not a hyphen), so the echo should work correctly.
14001 # The option is referenced via a variable to avoid confusing sed.
14002 lt_compile=`echo "$ac_compile" | $SED \
14003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14005 -e 's:$: $lt_compiler_flag:'`
14006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14007 (eval "$lt_compile" 2>conftest.err)
14008 ac_status=$?
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 if (exit $ac_status) && test -s "$ac_outfile"; then
14012 # The compiler can only warn and ignore the option if not recognized
14013 # So say no if there are warnings other than the usual output.
14014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14017 lt_cv_prog_compiler_pic_works_CXX=yes
14020 $RM conftest*
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14024 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14026 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14027 case $lt_prog_compiler_pic_CXX in
14028 "" | " "*) ;;
14029 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14030 esac
14031 else
14032 lt_prog_compiler_pic_CXX=
14033 lt_prog_compiler_can_build_shared_CXX=no
14041 # Check to make sure the static flag actually works.
14043 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14045 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14046 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14047 $as_echo_n "(cached) " >&6
14048 else
14049 lt_cv_prog_compiler_static_works_CXX=no
14050 save_LDFLAGS="$LDFLAGS"
14051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14054 # The linker can only warn and ignore the option if not recognized
14055 # So say no if there are warnings
14056 if test -s conftest.err; then
14057 # Append any errors to the config.log.
14058 cat conftest.err 1>&5
14059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14061 if diff conftest.exp conftest.er2 >/dev/null; then
14062 lt_cv_prog_compiler_static_works_CXX=yes
14064 else
14065 lt_cv_prog_compiler_static_works_CXX=yes
14068 $RM -r conftest*
14069 LDFLAGS="$save_LDFLAGS"
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14073 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14075 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14077 else
14078 lt_prog_compiler_static_CXX=
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14086 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 lt_cv_prog_compiler_c_o_CXX=no
14090 $RM -r conftest 2>/dev/null
14091 mkdir conftest
14092 cd conftest
14093 mkdir out
14094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14096 lt_compiler_flag="-o out/conftest2.$ac_objext"
14097 # Insert the option either (1) after the last *FLAGS variable, or
14098 # (2) before a word containing "conftest.", or (3) at the end.
14099 # Note that $ac_compile itself does not contain backslashes and begins
14100 # with a dollar sign (not a hyphen), so the echo should work correctly.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
14105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14106 (eval "$lt_compile" 2>out/conftest.err)
14107 ac_status=$?
14108 cat out/conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14111 then
14112 # The compiler can only warn and ignore the option if not recognized
14113 # So say no if there are warnings
14114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14117 lt_cv_prog_compiler_c_o_CXX=yes
14120 chmod u+w . 2>&5
14121 $RM conftest*
14122 # SGI C++ compiler will create directory out/ii_files/ for
14123 # template instantiation
14124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14125 $RM out/* && rmdir out
14126 cd ..
14127 $RM -r conftest
14128 $RM conftest*
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14132 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14138 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 lt_cv_prog_compiler_c_o_CXX=no
14142 $RM -r conftest 2>/dev/null
14143 mkdir conftest
14144 cd conftest
14145 mkdir out
14146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14148 lt_compiler_flag="-o out/conftest2.$ac_objext"
14149 # Insert the option either (1) after the last *FLAGS variable, or
14150 # (2) before a word containing "conftest.", or (3) at the end.
14151 # Note that $ac_compile itself does not contain backslashes and begins
14152 # with a dollar sign (not a hyphen), so the echo should work correctly.
14153 lt_compile=`echo "$ac_compile" | $SED \
14154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14156 -e 's:$: $lt_compiler_flag:'`
14157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14158 (eval "$lt_compile" 2>out/conftest.err)
14159 ac_status=$?
14160 cat out/conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14163 then
14164 # The compiler can only warn and ignore the option if not recognized
14165 # So say no if there are warnings
14166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14169 lt_cv_prog_compiler_c_o_CXX=yes
14172 chmod u+w . 2>&5
14173 $RM conftest*
14174 # SGI C++ compiler will create directory out/ii_files/ for
14175 # template instantiation
14176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14177 $RM out/* && rmdir out
14178 cd ..
14179 $RM -r conftest
14180 $RM conftest*
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14184 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14189 hard_links="nottested"
14190 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14191 # do not overwrite the value of need_locks provided by the user
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14193 $as_echo_n "checking if we can lock with hard links... " >&6; }
14194 hard_links=yes
14195 $RM conftest*
14196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14197 touch conftest.a
14198 ln conftest.a conftest.b 2>&5 || hard_links=no
14199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14201 $as_echo "$hard_links" >&6; }
14202 if test "$hard_links" = no; then
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14204 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14205 need_locks=warn
14207 else
14208 need_locks=no
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14214 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14216 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14217 case $host_os in
14218 aix[4-9]*)
14219 # If we're using GNU nm, then we don't want the "-C" option.
14220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14221 # Also, AIX nm treats weak defined symbols like other global defined
14222 # symbols, whereas GNU nm marks them as "W".
14223 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14224 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'
14225 else
14226 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14229 pw32*)
14230 export_symbols_cmds_CXX="$ltdll_cmds"
14232 cygwin* | mingw* | cegcc*)
14233 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'
14236 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14238 esac
14239 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14242 $as_echo "$ld_shlibs_CXX" >&6; }
14243 test "$ld_shlibs_CXX" = no && can_build_shared=no
14245 with_gnu_ld_CXX=$with_gnu_ld
14253 # Do we need to explicitly link libc?
14255 case "x$archive_cmds_need_lc_CXX" in
14256 x|xyes)
14257 # Assume -lc should be added
14258 archive_cmds_need_lc_CXX=yes
14260 if test "$enable_shared" = yes && test "$GCC" = yes; then
14261 case $archive_cmds_CXX in
14262 *'~'*)
14263 # FIXME: we may have to deal with multi-command sequences.
14265 '$CC '*)
14266 # Test whether the compiler implicitly links with -lc since on some
14267 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14268 # to ld, don't add -lc before -lgcc.
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14270 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14271 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 $RM conftest*
14275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14278 (eval $ac_compile) 2>&5
14279 ac_status=$?
14280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14281 test $ac_status = 0; } 2>conftest.err; then
14282 soname=conftest
14283 lib=conftest
14284 libobjs=conftest.$ac_objext
14285 deplibs=
14286 wl=$lt_prog_compiler_wl_CXX
14287 pic_flag=$lt_prog_compiler_pic_CXX
14288 compiler_flags=-v
14289 linker_flags=-v
14290 verstring=
14291 output_objdir=.
14292 libname=conftest
14293 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14294 allow_undefined_flag_CXX=
14295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14296 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14297 ac_status=$?
14298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299 test $ac_status = 0; }
14300 then
14301 lt_cv_archive_cmds_need_lc_CXX=no
14302 else
14303 lt_cv_archive_cmds_need_lc_CXX=yes
14305 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14306 else
14307 cat conftest.err 1>&5
14309 $RM conftest*
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14313 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14314 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14316 esac
14319 esac
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14385 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14387 library_names_spec=
14388 libname_spec='lib$name'
14389 soname_spec=
14390 shrext_cmds=".so"
14391 postinstall_cmds=
14392 postuninstall_cmds=
14393 finish_cmds=
14394 finish_eval=
14395 shlibpath_var=
14396 shlibpath_overrides_runpath=unknown
14397 version_type=none
14398 dynamic_linker="$host_os ld.so"
14399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14400 need_lib_prefix=unknown
14401 hardcode_into_libs=no
14403 # when you set need_version to no, make sure it does not cause -set_version
14404 # flags to be left without arguments
14405 need_version=unknown
14407 case $host_os in
14408 aix3*)
14409 version_type=linux
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14411 shlibpath_var=LIBPATH
14413 # AIX 3 has no versioning support, so we append a major version to the name.
14414 soname_spec='${libname}${release}${shared_ext}$major'
14417 aix[4-9]*)
14418 version_type=linux
14419 need_lib_prefix=no
14420 need_version=no
14421 hardcode_into_libs=yes
14422 if test "$host_cpu" = ia64; then
14423 # AIX 5 supports IA64
14424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14425 shlibpath_var=LD_LIBRARY_PATH
14426 else
14427 # With GCC up to 2.95.x, collect2 would create an import file
14428 # for dependence libraries. The import file would start with
14429 # the line `#! .'. This would cause the generated library to
14430 # depend on `.', always an invalid library. This was fixed in
14431 # development snapshots of GCC prior to 3.0.
14432 case $host_os in
14433 aix4 | aix4.[01] | aix4.[01].*)
14434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14435 echo ' yes '
14436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14438 else
14439 can_build_shared=no
14442 esac
14443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14444 # soname into executable. Probably we can add versioning support to
14445 # collect2, so additional links can be useful in future.
14446 if test "$aix_use_runtimelinking" = yes; then
14447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14448 # instead of lib<name>.a to let people know that these are not
14449 # typical AIX shared libraries.
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 else
14452 # We preserve .a as extension for shared libraries through AIX4.2
14453 # and later when we are not doing run time linking.
14454 library_names_spec='${libname}${release}.a $libname.a'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14457 shlibpath_var=LIBPATH
14461 amigaos*)
14462 case $host_cpu in
14463 powerpc)
14464 # Since July 2007 AmigaOS4 officially supports .so libraries.
14465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 m68k)
14469 library_names_spec='$libname.ixlibrary $libname.a'
14470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14471 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'
14473 esac
14476 beos*)
14477 library_names_spec='${libname}${shared_ext}'
14478 dynamic_linker="$host_os ld.so"
14479 shlibpath_var=LIBRARY_PATH
14482 bsdi[45]*)
14483 version_type=linux
14484 need_version=no
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14491 # the default ld.so.conf also contains /usr/contrib/lib and
14492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14493 # libtool to hard-code these into programs
14496 cygwin* | mingw* | pw32* | cegcc*)
14497 version_type=windows
14498 shrext_cmds=".dll"
14499 need_version=no
14500 need_lib_prefix=no
14502 case $GCC,$host_os in
14503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14504 library_names_spec='$libname.dll.a'
14505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14506 postinstall_cmds='base_file=`basename \${file}`~
14507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14508 dldir=$destdir/`dirname \$dlpath`~
14509 test -d \$dldir || mkdir -p \$dldir~
14510 $install_prog $dir/$dlname \$dldir/$dlname~
14511 chmod a+x \$dldir/$dlname~
14512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14516 dlpath=$dir/\$dldll~
14517 $RM \$dlpath'
14518 shlibpath_overrides_runpath=yes
14520 case $host_os in
14521 cygwin*)
14522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14526 mingw* | cegcc*)
14527 # MinGW DLLs use traditional 'lib' prefix
14528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14530 pw32*)
14531 # pw32 DLLs use 'pw' prefix rather than 'lib'
14532 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14534 esac
14538 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14540 esac
14541 dynamic_linker='Win32 ld.exe'
14542 # FIXME: first we should search . and the directory the executable is in
14543 shlibpath_var=PATH
14546 darwin* | rhapsody*)
14547 dynamic_linker="$host_os dyld"
14548 version_type=darwin
14549 need_lib_prefix=no
14550 need_version=no
14551 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14552 soname_spec='${libname}${release}${major}$shared_ext'
14553 shlibpath_overrides_runpath=yes
14554 shlibpath_var=DYLD_LIBRARY_PATH
14555 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14560 dgux*)
14561 version_type=linux
14562 need_lib_prefix=no
14563 need_version=no
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14569 freebsd* | dragonfly*)
14570 # DragonFly does not have aout. When/if they implement a new
14571 # versioning mechanism, adjust this.
14572 if test -x /usr/bin/objformat; then
14573 objformat=`/usr/bin/objformat`
14574 else
14575 case $host_os in
14576 freebsd[23].*) objformat=aout ;;
14577 *) objformat=elf ;;
14578 esac
14580 version_type=freebsd-$objformat
14581 case $version_type in
14582 freebsd-elf*)
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14584 need_version=no
14585 need_lib_prefix=no
14587 freebsd-*)
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14589 need_version=yes
14591 esac
14592 shlibpath_var=LD_LIBRARY_PATH
14593 case $host_os in
14594 freebsd2.*)
14595 shlibpath_overrides_runpath=yes
14597 freebsd3.[01]* | freebsdelf3.[01]*)
14598 shlibpath_overrides_runpath=yes
14599 hardcode_into_libs=yes
14601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14603 shlibpath_overrides_runpath=no
14604 hardcode_into_libs=yes
14606 *) # from 4.6 on, and DragonFly
14607 shlibpath_overrides_runpath=yes
14608 hardcode_into_libs=yes
14610 esac
14613 gnu*)
14614 version_type=linux
14615 need_lib_prefix=no
14616 need_version=no
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 hardcode_into_libs=yes
14623 haiku*)
14624 version_type=linux
14625 need_lib_prefix=no
14626 need_version=no
14627 dynamic_linker="$host_os runtime_loader"
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LIBRARY_PATH
14631 shlibpath_overrides_runpath=yes
14632 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14633 hardcode_into_libs=yes
14636 hpux9* | hpux10* | hpux11*)
14637 # Give a soname corresponding to the major version so that dld.sl refuses to
14638 # link against other versions.
14639 version_type=sunos
14640 need_lib_prefix=no
14641 need_version=no
14642 case $host_cpu in
14643 ia64*)
14644 shrext_cmds='.so'
14645 hardcode_into_libs=yes
14646 dynamic_linker="$host_os dld.so"
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 if test "X$HPUX_IA64_MODE" = X32; then
14652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14653 else
14654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14658 hppa*64*)
14659 shrext_cmds='.sl'
14660 hardcode_into_libs=yes
14661 dynamic_linker="$host_os dld.sl"
14662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14670 shrext_cmds='.sl'
14671 dynamic_linker="$host_os dld.sl"
14672 shlibpath_var=SHLIB_PATH
14673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14677 esac
14678 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14679 postinstall_cmds='chmod 555 $lib'
14680 # or fails outright, so override atomically:
14681 install_override_mode=555
14684 interix[3-9]*)
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=no
14693 hardcode_into_libs=yes
14696 irix5* | irix6* | nonstopux*)
14697 case $host_os in
14698 nonstopux*) version_type=nonstopux ;;
14700 if test "$lt_cv_prog_gnu_ld" = yes; then
14701 version_type=linux
14702 else
14703 version_type=irix
14704 fi ;;
14705 esac
14706 need_lib_prefix=no
14707 need_version=no
14708 soname_spec='${libname}${release}${shared_ext}$major'
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14710 case $host_os in
14711 irix5* | nonstopux*)
14712 libsuff= shlibsuff=
14715 case $LD in # libtool.m4 will add one of these switches to LD
14716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14717 libsuff= shlibsuff= libmagic=32-bit;;
14718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14719 libsuff=32 shlibsuff=N32 libmagic=N32;;
14720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14722 *) libsuff= shlibsuff= libmagic=never-match;;
14723 esac
14725 esac
14726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14727 shlibpath_overrides_runpath=no
14728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14730 hardcode_into_libs=yes
14733 # No shared lib support for Linux oldld, aout, or coff.
14734 linux*oldld* | linux*aout* | linux*coff*)
14735 dynamic_linker=no
14738 # This must be Linux ELF.
14739 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14740 version_type=linux
14741 need_lib_prefix=no
14742 need_version=no
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744 soname_spec='${libname}${release}${shared_ext}$major'
14745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=no
14749 # Some binutils ld are patched to set DT_RUNPATH
14750 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 lt_cv_shlibpath_overrides_runpath=no
14754 save_LDFLAGS=$LDFLAGS
14755 save_libdir=$libdir
14756 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14757 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14762 main ()
14766 return 0;
14768 _ACEOF
14769 if ac_fn_cxx_try_link "$LINENO"; then :
14770 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14771 lt_cv_shlibpath_overrides_runpath=yes
14774 rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776 LDFLAGS=$save_LDFLAGS
14777 libdir=$save_libdir
14781 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14783 # This implies no fast_install, which is unacceptable.
14784 # Some rework will be needed to allow for fast_install
14785 # before this can be enabled.
14786 hardcode_into_libs=yes
14788 # Append ld.so.conf contents to the search path
14789 if test -f /etc/ld.so.conf; then
14790 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' ' '`
14791 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14794 # We used to test for /lib/ld.so.1 and disable shared libraries on
14795 # powerpc, because MkLinux only supported shared libraries with the
14796 # GNU dynamic linker. Since this was broken with cross compilers,
14797 # most powerpc-linux boxes support dynamic linking these days and
14798 # people can always --disable-shared, the test was removed, and we
14799 # assume the GNU/Linux dynamic linker is in use.
14800 dynamic_linker='GNU/Linux ld.so'
14803 netbsd*)
14804 version_type=sunos
14805 need_lib_prefix=no
14806 need_version=no
14807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14810 dynamic_linker='NetBSD (a.out) ld.so'
14811 else
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 dynamic_linker='NetBSD ld.elf_so'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=yes
14818 hardcode_into_libs=yes
14821 newsos6)
14822 version_type=linux
14823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 shlibpath_overrides_runpath=yes
14828 *nto* | *qnx*)
14829 version_type=qnx
14830 need_lib_prefix=no
14831 need_version=no
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 shlibpath_overrides_runpath=no
14836 hardcode_into_libs=yes
14837 dynamic_linker='ldqnx.so'
14840 openbsd*)
14841 version_type=sunos
14842 sys_lib_dlsearch_path_spec="/usr/lib"
14843 need_lib_prefix=no
14844 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14845 case $host_os in
14846 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14847 *) need_version=no ;;
14848 esac
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14853 case $host_os in
14854 openbsd2.[89] | openbsd2.[89].*)
14855 shlibpath_overrides_runpath=no
14858 shlibpath_overrides_runpath=yes
14860 esac
14861 else
14862 shlibpath_overrides_runpath=yes
14866 os2*)
14867 libname_spec='$name'
14868 shrext_cmds=".dll"
14869 need_lib_prefix=no
14870 library_names_spec='$libname${shared_ext} $libname.a'
14871 dynamic_linker='OS/2 ld.exe'
14872 shlibpath_var=LIBPATH
14875 osf3* | osf4* | osf5*)
14876 version_type=osf
14877 need_lib_prefix=no
14878 need_version=no
14879 soname_spec='${libname}${release}${shared_ext}$major'
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14883 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14886 rdos*)
14887 dynamic_linker=no
14890 solaris*)
14891 version_type=linux
14892 need_lib_prefix=no
14893 need_version=no
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath=yes
14898 hardcode_into_libs=yes
14899 # ldd complains unless libraries are executable
14900 postinstall_cmds='chmod +x $lib'
14903 sunos4*)
14904 version_type=sunos
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 shlibpath_overrides_runpath=yes
14909 if test "$with_gnu_ld" = yes; then
14910 need_lib_prefix=no
14912 need_version=yes
14915 sysv4 | sysv4.3*)
14916 version_type=linux
14917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 case $host_vendor in
14921 sni)
14922 shlibpath_overrides_runpath=no
14923 need_lib_prefix=no
14924 runpath_var=LD_RUN_PATH
14926 siemens)
14927 need_lib_prefix=no
14929 motorola)
14930 need_lib_prefix=no
14931 need_version=no
14932 shlibpath_overrides_runpath=no
14933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14935 esac
14938 sysv4*MP*)
14939 if test -d /usr/nec ;then
14940 version_type=linux
14941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14942 soname_spec='$libname${shared_ext}.$major'
14943 shlibpath_var=LD_LIBRARY_PATH
14947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14948 version_type=freebsd-elf
14949 need_lib_prefix=no
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 shlibpath_var=LD_LIBRARY_PATH
14954 shlibpath_overrides_runpath=yes
14955 hardcode_into_libs=yes
14956 if test "$with_gnu_ld" = yes; then
14957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14958 else
14959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14960 case $host_os in
14961 sco3.2v5*)
14962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14964 esac
14966 sys_lib_dlsearch_path_spec='/usr/lib'
14969 tpf*)
14970 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14971 version_type=linux
14972 need_lib_prefix=no
14973 need_version=no
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=no
14977 hardcode_into_libs=yes
14980 uts4*)
14981 version_type=linux
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14988 dynamic_linker=no
14990 esac
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14992 $as_echo "$dynamic_linker" >&6; }
14993 test "$dynamic_linker" = no && can_build_shared=no
14995 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14996 if test "$GCC" = yes; then
14997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15000 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15001 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15003 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15004 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15045 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15046 hardcode_action_CXX=
15047 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15048 test -n "$runpath_var_CXX" ||
15049 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15051 # We can hardcode non-existent directories.
15052 if test "$hardcode_direct_CXX" != no &&
15053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15054 # have to relink, otherwise we might link with an installed library
15055 # when we should be linking with a yet-to-be-installed one
15056 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15057 test "$hardcode_minus_L_CXX" != no; then
15058 # Linking always hardcodes the temporary library directory.
15059 hardcode_action_CXX=relink
15060 else
15061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15062 hardcode_action_CXX=immediate
15064 else
15065 # We cannot hardcode anything, or else we can only hardcode existing
15066 # directories.
15067 hardcode_action_CXX=unsupported
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15070 $as_echo "$hardcode_action_CXX" >&6; }
15072 if test "$hardcode_action_CXX" = relink ||
15073 test "$inherit_rpath_CXX" = yes; then
15074 # Fast installation is not supported
15075 enable_fast_install=no
15076 elif test "$shlibpath_overrides_runpath" = yes ||
15077 test "$enable_shared" = no; then
15078 # Fast installation is not necessary
15079 enable_fast_install=needless
15088 fi # test -n "$compiler"
15090 CC=$lt_save_CC
15091 LDCXX=$LD
15092 LD=$lt_save_LD
15093 GCC=$lt_save_GCC
15094 with_gnu_ld=$lt_save_with_gnu_ld
15095 lt_cv_path_LDCXX=$lt_cv_path_LD
15096 lt_cv_path_LD=$lt_save_path_LD
15097 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15098 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15099 fi # test "$_lt_caught_CXX_error" != yes
15101 ac_ext=c
15102 ac_cpp='$CPP $CPPFLAGS'
15103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15119 ac_config_commands="$ac_config_commands libtool"
15124 # Only expand once:
15132 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15133 # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
15134 # In case the pthread.h system header is not found, this test will fail.
15135 XCFLAGS=""
15136 XLDFLAGS=""
15137 CFLAGS="$CFLAGS -pthread"
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <pthread.h>
15141 void *g(void *d) { return NULL; }
15143 main ()
15145 pthread_t t; pthread_create(&t,NULL,g,NULL);
15147 return 0;
15149 _ACEOF
15150 if ac_fn_c_try_link "$LINENO"; then :
15151 XCFLAGS=" -Wc,-pthread"
15152 else
15153 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15156 #include <pthread.h>
15157 void *g(void *d) { return NULL; }
15159 main ()
15161 pthread_t t; pthread_create(&t,NULL,g,NULL);
15163 return 0;
15165 _ACEOF
15166 if ac_fn_c_try_link "$LINENO"; then :
15168 else
15169 as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
15171 rm -f core conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15174 rm -f core conftest.err conftest.$ac_objext \
15175 conftest$ac_exeext conftest.$ac_ext
15177 # Check for pthread_{,attr_}[sg]etaffinity_np.
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include <pthread.h>
15182 main ()
15184 cpu_set_t cpuset;
15185 pthread_attr_t attr;
15186 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15187 if (CPU_ISSET (0, &cpuset))
15188 CPU_SET (1, &cpuset);
15189 else
15190 CPU_ZERO (&cpuset);
15191 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15192 pthread_attr_init (&attr);
15193 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15194 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15196 return 0;
15198 _ACEOF
15199 if ac_fn_c_try_link "$LINENO"; then :
15201 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15207 # Every c++ lib is linking by default with -nostdlib, which leads to the
15208 # fact, that proper pthread library will not be given at link time. We have
15209 # to hard-code that.
15210 case "${target}" in
15212 *android*)
15213 XLDFLAGS="$XLDFLAGS -lc"
15216 XLDFLAGS="$XLDFLAGS -lpthread"
15219 esac
15224 CFLAGS="$save_CFLAGS"
15226 if test $enable_shared = yes; then
15227 link_cilkrts="-lcilkrts %{static: $LIBS}"
15228 else
15229 link_cilkrts="-lcilkrts $LIBS"
15234 # Must be last
15235 cat >confcache <<\_ACEOF
15236 # This file is a shell script that caches the results of configure
15237 # tests run on this system so they can be shared between configure
15238 # scripts and configure runs, see configure's option --config-cache.
15239 # It is not useful on other systems. If it contains results you don't
15240 # want to keep, you may remove or edit it.
15242 # config.status only pays attention to the cache file if you give it
15243 # the --recheck option to rerun configure.
15245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15247 # following values.
15249 _ACEOF
15251 # The following way of writing the cache mishandles newlines in values,
15252 # but we know of no workaround that is simple, portable, and efficient.
15253 # So, we kill variables containing newlines.
15254 # Ultrix sh set writes to stderr and can't be redirected directly,
15255 # and sets the high bit in the cache file unless we assign to the vars.
15257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15258 eval ac_val=\$$ac_var
15259 case $ac_val in #(
15260 *${as_nl}*)
15261 case $ac_var in #(
15262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15264 esac
15265 case $ac_var in #(
15266 _ | IFS | as_nl) ;; #(
15267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15268 *) { eval $ac_var=; unset $ac_var;} ;;
15269 esac ;;
15270 esac
15271 done
15273 (set) 2>&1 |
15274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15275 *${as_nl}ac_space=\ *)
15276 # `set' does not quote correctly, so add quotes: double-quote
15277 # substitution turns \\\\ into \\, and sed turns \\ into \.
15278 sed -n \
15279 "s/'/'\\\\''/g;
15280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15281 ;; #(
15283 # `set' quotes correctly as required by POSIX, so do not add quotes.
15284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15286 esac |
15287 sort
15289 sed '
15290 /^ac_cv_env_/b end
15291 t clear
15292 :clear
15293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15294 t end
15295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15296 :end' >>confcache
15297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15298 if test -w "$cache_file"; then
15299 test "x$cache_file" != "x/dev/null" &&
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15301 $as_echo "$as_me: updating cache $cache_file" >&6;}
15302 cat confcache >$cache_file
15303 else
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15305 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15308 rm -f confcache
15310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15311 # Let make expand exec_prefix.
15312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15314 # Transform confdefs.h into DEFS.
15315 # Protect against shell expansion while executing Makefile rules.
15316 # Protect against Makefile macro expansion.
15318 # If the first sed substitution is executed (which looks for macros that
15319 # take arguments), then branch to the quote section. Otherwise,
15320 # look for a macro that doesn't take arguments.
15321 ac_script='
15322 :mline
15323 /\\$/{
15325 s,\\\n,,
15326 b mline
15328 t clear
15329 :clear
15330 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15331 t quote
15332 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15333 t quote
15334 b any
15335 :quote
15336 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15337 s/\[/\\&/g
15338 s/\]/\\&/g
15339 s/\$/$$/g
15341 :any
15344 s/^\n//
15345 s/\n/ /g
15349 DEFS=`sed -n "$ac_script" confdefs.h`
15352 ac_libobjs=
15353 ac_ltlibobjs=
15354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15355 # 1. Remove the extension, and $U if already installed.
15356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15359 # will be set to the directory where LIBOBJS objects are built.
15360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15362 done
15363 LIBOBJS=$ac_libobjs
15365 LTLIBOBJS=$ac_ltlibobjs
15368 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15369 as_fn_error "conditional \"AMDEP\" was never defined.
15370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15373 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376 if test -n "$EXEEXT"; then
15377 am__EXEEXT_TRUE=
15378 am__EXEEXT_FALSE='#'
15379 else
15380 am__EXEEXT_TRUE='#'
15381 am__EXEEXT_FALSE=
15384 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15385 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15389 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15392 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
15393 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
15394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15396 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
15397 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
15398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15401 : ${CONFIG_STATUS=./config.status}
15402 ac_write_fail=0
15403 ac_clean_files_save=$ac_clean_files
15404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15407 as_write_fail=0
15408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15409 #! $SHELL
15410 # Generated by $as_me.
15411 # Run this file to recreate the current configuration.
15412 # Compiler output produced by configure, useful for debugging
15413 # configure, is in config.log if it exists.
15415 debug=false
15416 ac_cs_recheck=false
15417 ac_cs_silent=false
15419 SHELL=\${CONFIG_SHELL-$SHELL}
15420 export SHELL
15421 _ASEOF
15422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15423 ## -------------------- ##
15424 ## M4sh Initialization. ##
15425 ## -------------------- ##
15427 # Be more Bourne compatible
15428 DUALCASE=1; export DUALCASE # for MKS sh
15429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15430 emulate sh
15431 NULLCMD=:
15432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15433 # is contrary to our usage. Disable this feature.
15434 alias -g '${1+"$@"}'='"$@"'
15435 setopt NO_GLOB_SUBST
15436 else
15437 case `(set -o) 2>/dev/null` in #(
15438 *posix*) :
15439 set -o posix ;; #(
15440 *) :
15442 esac
15446 as_nl='
15448 export as_nl
15449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15453 # Prefer a ksh shell builtin over an external printf program on Solaris,
15454 # but without wasting forks for bash or zsh.
15455 if test -z "$BASH_VERSION$ZSH_VERSION" \
15456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15457 as_echo='print -r --'
15458 as_echo_n='print -rn --'
15459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15460 as_echo='printf %s\n'
15461 as_echo_n='printf %s'
15462 else
15463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15465 as_echo_n='/usr/ucb/echo -n'
15466 else
15467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15468 as_echo_n_body='eval
15469 arg=$1;
15470 case $arg in #(
15471 *"$as_nl"*)
15472 expr "X$arg" : "X\\(.*\\)$as_nl";
15473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15474 esac;
15475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15477 export as_echo_n_body
15478 as_echo_n='sh -c $as_echo_n_body as_echo'
15480 export as_echo_body
15481 as_echo='sh -c $as_echo_body as_echo'
15484 # The user is always right.
15485 if test "${PATH_SEPARATOR+set}" != set; then
15486 PATH_SEPARATOR=:
15487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15489 PATH_SEPARATOR=';'
15494 # IFS
15495 # We need space, tab and new line, in precisely that order. Quoting is
15496 # there to prevent editors from complaining about space-tab.
15497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15498 # splitting by setting IFS to empty value.)
15499 IFS=" "" $as_nl"
15501 # Find who we are. Look in the path if we contain no directory separator.
15502 case $0 in #((
15503 *[\\/]* ) as_myself=$0 ;;
15504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505 for as_dir in $PATH
15507 IFS=$as_save_IFS
15508 test -z "$as_dir" && as_dir=.
15509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15510 done
15511 IFS=$as_save_IFS
15514 esac
15515 # We did not find ourselves, most probably we were run as `sh COMMAND'
15516 # in which case we are not to be found in the path.
15517 if test "x$as_myself" = x; then
15518 as_myself=$0
15520 if test ! -f "$as_myself"; then
15521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15522 exit 1
15525 # Unset variables that we do not need and which cause bugs (e.g. in
15526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15527 # suppresses any "Segmentation fault" message there. '((' could
15528 # trigger a bug in pdksh 5.2.14.
15529 for as_var in BASH_ENV ENV MAIL MAILPATH
15530 do eval test x\${$as_var+set} = xset \
15531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15532 done
15533 PS1='$ '
15534 PS2='> '
15535 PS4='+ '
15537 # NLS nuisances.
15538 LC_ALL=C
15539 export LC_ALL
15540 LANGUAGE=C
15541 export LANGUAGE
15543 # CDPATH.
15544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15547 # as_fn_error ERROR [LINENO LOG_FD]
15548 # ---------------------------------
15549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15551 # script with status $?, using 1 if that was 0.
15552 as_fn_error ()
15554 as_status=$?; test $as_status -eq 0 && as_status=1
15555 if test "$3"; then
15556 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15559 $as_echo "$as_me: error: $1" >&2
15560 as_fn_exit $as_status
15561 } # as_fn_error
15564 # as_fn_set_status STATUS
15565 # -----------------------
15566 # Set $? to STATUS, without forking.
15567 as_fn_set_status ()
15569 return $1
15570 } # as_fn_set_status
15572 # as_fn_exit STATUS
15573 # -----------------
15574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15575 as_fn_exit ()
15577 set +e
15578 as_fn_set_status $1
15579 exit $1
15580 } # as_fn_exit
15582 # as_fn_unset VAR
15583 # ---------------
15584 # Portably unset VAR.
15585 as_fn_unset ()
15587 { eval $1=; unset $1;}
15589 as_unset=as_fn_unset
15590 # as_fn_append VAR VALUE
15591 # ----------------------
15592 # Append the text in VALUE to the end of the definition contained in VAR. Take
15593 # advantage of any shell optimizations that allow amortized linear growth over
15594 # repeated appends, instead of the typical quadratic growth present in naive
15595 # implementations.
15596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15597 eval 'as_fn_append ()
15599 eval $1+=\$2
15601 else
15602 as_fn_append ()
15604 eval $1=\$$1\$2
15606 fi # as_fn_append
15608 # as_fn_arith ARG...
15609 # ------------------
15610 # Perform arithmetic evaluation on the ARGs, and store the result in the
15611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15612 # must be portable across $(()) and expr.
15613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15614 eval 'as_fn_arith ()
15616 as_val=$(( $* ))
15618 else
15619 as_fn_arith ()
15621 as_val=`expr "$@" || test $? -eq 1`
15623 fi # as_fn_arith
15626 if expr a : '\(a\)' >/dev/null 2>&1 &&
15627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15628 as_expr=expr
15629 else
15630 as_expr=false
15633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15634 as_basename=basename
15635 else
15636 as_basename=false
15639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15640 as_dirname=dirname
15641 else
15642 as_dirname=false
15645 as_me=`$as_basename -- "$0" ||
15646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15647 X"$0" : 'X\(//\)$' \| \
15648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15649 $as_echo X/"$0" |
15650 sed '/^.*\/\([^/][^/]*\)\/*$/{
15651 s//\1/
15654 /^X\/\(\/\/\)$/{
15655 s//\1/
15658 /^X\/\(\/\).*/{
15659 s//\1/
15662 s/.*/./; q'`
15664 # Avoid depending upon Character Ranges.
15665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15668 as_cr_digits='0123456789'
15669 as_cr_alnum=$as_cr_Letters$as_cr_digits
15671 ECHO_C= ECHO_N= ECHO_T=
15672 case `echo -n x` in #(((((
15673 -n*)
15674 case `echo 'xy\c'` in
15675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15676 xy) ECHO_C='\c';;
15677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15678 ECHO_T=' ';;
15679 esac;;
15681 ECHO_N='-n';;
15682 esac
15684 rm -f conf$$ conf$$.exe conf$$.file
15685 if test -d conf$$.dir; then
15686 rm -f conf$$.dir/conf$$.file
15687 else
15688 rm -f conf$$.dir
15689 mkdir conf$$.dir 2>/dev/null
15691 if (echo >conf$$.file) 2>/dev/null; then
15692 if ln -s conf$$.file conf$$ 2>/dev/null; then
15693 as_ln_s='ln -s'
15694 # ... but there are two gotchas:
15695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15697 # In both cases, we have to default to `cp -p'.
15698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15699 as_ln_s='cp -p'
15700 elif ln conf$$.file conf$$ 2>/dev/null; then
15701 as_ln_s=ln
15702 else
15703 as_ln_s='cp -p'
15705 else
15706 as_ln_s='cp -p'
15708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15709 rmdir conf$$.dir 2>/dev/null
15712 # as_fn_mkdir_p
15713 # -------------
15714 # Create "$as_dir" as a directory, including parents if necessary.
15715 as_fn_mkdir_p ()
15718 case $as_dir in #(
15719 -*) as_dir=./$as_dir;;
15720 esac
15721 test -d "$as_dir" || eval $as_mkdir_p || {
15722 as_dirs=
15723 while :; do
15724 case $as_dir in #(
15725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15726 *) as_qdir=$as_dir;;
15727 esac
15728 as_dirs="'$as_qdir' $as_dirs"
15729 as_dir=`$as_dirname -- "$as_dir" ||
15730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15731 X"$as_dir" : 'X\(//\)[^/]' \| \
15732 X"$as_dir" : 'X\(//\)$' \| \
15733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15734 $as_echo X"$as_dir" |
15735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15736 s//\1/
15739 /^X\(\/\/\)[^/].*/{
15740 s//\1/
15743 /^X\(\/\/\)$/{
15744 s//\1/
15747 /^X\(\/\).*/{
15748 s//\1/
15751 s/.*/./; q'`
15752 test -d "$as_dir" && break
15753 done
15754 test -z "$as_dirs" || eval "mkdir $as_dirs"
15755 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15758 } # as_fn_mkdir_p
15759 if mkdir -p . 2>/dev/null; then
15760 as_mkdir_p='mkdir -p "$as_dir"'
15761 else
15762 test -d ./-p && rmdir ./-p
15763 as_mkdir_p=false
15766 if test -x / >/dev/null 2>&1; then
15767 as_test_x='test -x'
15768 else
15769 if ls -dL / >/dev/null 2>&1; then
15770 as_ls_L_option=L
15771 else
15772 as_ls_L_option=
15774 as_test_x='
15775 eval sh -c '\''
15776 if test -d "$1"; then
15777 test -d "$1/.";
15778 else
15779 case $1 in #(
15780 -*)set "./$1";;
15781 esac;
15782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15783 ???[sx]*):;;*)false;;esac;fi
15784 '\'' sh
15787 as_executable_p=$as_test_x
15789 # Sed expression to map a string onto a valid CPP name.
15790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15792 # Sed expression to map a string onto a valid variable name.
15793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15796 exec 6>&1
15797 ## ----------------------------------- ##
15798 ## Main body of $CONFIG_STATUS script. ##
15799 ## ----------------------------------- ##
15800 _ASEOF
15801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804 # Save the log message, to keep $0 and so on meaningful, and to
15805 # report actual input values of CONFIG_FILES etc. instead of their
15806 # values after options handling.
15807 ac_log="
15808 This file was extended by Cilk Runtime Library $as_me 2.0, which was
15809 generated by GNU Autoconf 2.64. Invocation command line was
15811 CONFIG_FILES = $CONFIG_FILES
15812 CONFIG_HEADERS = $CONFIG_HEADERS
15813 CONFIG_LINKS = $CONFIG_LINKS
15814 CONFIG_COMMANDS = $CONFIG_COMMANDS
15815 $ $0 $@
15817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15820 _ACEOF
15822 case $ac_config_files in *"
15823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15824 esac
15828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829 # Files that config.status was made for.
15830 config_files="$ac_config_files"
15831 config_commands="$ac_config_commands"
15833 _ACEOF
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836 ac_cs_usage="\
15837 \`$as_me' instantiates files and other configuration actions
15838 from templates according to the current configuration. Unless the files
15839 and actions are specified as TAGs, all are instantiated by default.
15841 Usage: $0 [OPTION]... [TAG]...
15843 -h, --help print this help, then exit
15844 -V, --version print version number and configuration settings, then exit
15845 -q, --quiet, --silent
15846 do not print progress messages
15847 -d, --debug don't remove temporary files
15848 --recheck update $as_me by reconfiguring in the same conditions
15849 --file=FILE[:TEMPLATE]
15850 instantiate the configuration file FILE
15852 Configuration files:
15853 $config_files
15855 Configuration commands:
15856 $config_commands
15858 Report bugs to <cilk@intel.com>."
15860 _ACEOF
15861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15862 ac_cs_version="\\
15863 Cilk Runtime Library config.status 2.0
15864 configured by $0, generated by GNU Autoconf 2.64,
15865 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15867 Copyright (C) 2009 Free Software Foundation, Inc.
15868 This config.status script is free software; the Free Software Foundation
15869 gives unlimited permission to copy, distribute and modify it."
15871 ac_pwd='$ac_pwd'
15872 srcdir='$srcdir'
15873 INSTALL='$INSTALL'
15874 MKDIR_P='$MKDIR_P'
15875 AWK='$AWK'
15876 test -n "\$AWK" || AWK=awk
15877 _ACEOF
15879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15880 # The default lists apply if the user does not specify any file.
15881 ac_need_defaults=:
15882 while test $# != 0
15884 case $1 in
15885 --*=*)
15886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15888 ac_shift=:
15891 ac_option=$1
15892 ac_optarg=$2
15893 ac_shift=shift
15895 esac
15897 case $ac_option in
15898 # Handling of the options.
15899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15900 ac_cs_recheck=: ;;
15901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15902 $as_echo "$ac_cs_version"; exit ;;
15903 --debug | --debu | --deb | --de | --d | -d )
15904 debug=: ;;
15905 --file | --fil | --fi | --f )
15906 $ac_shift
15907 case $ac_optarg in
15908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15909 esac
15910 as_fn_append CONFIG_FILES " '$ac_optarg'"
15911 ac_need_defaults=false;;
15912 --he | --h | --help | --hel | -h )
15913 $as_echo "$ac_cs_usage"; exit ;;
15914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15916 ac_cs_silent=: ;;
15918 # This is an error.
15919 -*) as_fn_error "unrecognized option: \`$1'
15920 Try \`$0 --help' for more information." ;;
15922 *) as_fn_append ac_config_targets " $1"
15923 ac_need_defaults=false ;;
15925 esac
15926 shift
15927 done
15929 ac_configure_extra_args=
15931 if $ac_cs_silent; then
15932 exec 6>/dev/null
15933 ac_configure_extra_args="$ac_configure_extra_args --silent"
15936 _ACEOF
15937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15938 if \$ac_cs_recheck; then
15939 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15940 shift
15941 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15942 CONFIG_SHELL='$SHELL'
15943 export CONFIG_SHELL
15944 exec "\$@"
15947 _ACEOF
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 exec 5>>config.log
15951 echo
15952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15953 ## Running $as_me. ##
15954 _ASBOX
15955 $as_echo "$ac_log"
15956 } >&5
15958 _ACEOF
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 # INIT-COMMANDS
15963 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15965 srcdir="$srcdir"
15966 host="$host"
15967 target="$target"
15968 with_multisubdir="$with_multisubdir"
15969 with_multisrctop="$with_multisrctop"
15970 with_target_subdir="$with_target_subdir"
15971 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15972 multi_basedir="$multi_basedir"
15973 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15974 CC="$CC"
15975 CXX="$CXX"
15976 GFORTRAN="$GFORTRAN"
15977 GCJ="$GCJ"
15980 # The HP-UX ksh and POSIX shell print the target directory to stdout
15981 # if CDPATH is set.
15982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15984 sed_quote_subst='$sed_quote_subst'
15985 double_quote_subst='$double_quote_subst'
15986 delay_variable_subst='$delay_variable_subst'
15987 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15988 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15989 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15990 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15991 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15992 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15993 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15994 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15995 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15996 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15997 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15998 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15999 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16000 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16001 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16002 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16003 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16004 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16005 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16006 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16007 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16008 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16009 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16010 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16011 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16012 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16013 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16014 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16015 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16016 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16017 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16018 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16019 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16020 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16021 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16022 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16023 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16024 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16025 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16026 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16027 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16028 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16029 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16030 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16031 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16032 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16033 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16034 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16035 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"`'
16036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16039 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16040 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16044 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16045 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16046 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16047 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16048 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16049 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16050 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16051 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16052 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16053 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16054 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16055 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16056 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16057 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16058 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16059 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16060 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16061 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16062 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16063 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16064 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16065 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16066 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16067 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16068 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16069 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16070 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16071 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16072 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16073 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16074 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16075 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16076 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16082 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16083 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16084 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16085 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16086 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16087 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16088 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16089 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16090 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16091 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16092 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16093 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16094 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16095 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16096 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16097 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16098 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16099 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16100 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16101 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16102 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16103 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16104 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16105 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16106 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16107 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16108 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16109 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16110 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16111 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16112 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16113 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16114 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16115 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16116 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16117 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16118 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16119 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16120 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16122 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16123 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16124 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16125 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16126 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16127 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16128 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16129 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16130 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16131 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16132 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16133 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16134 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16135 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16136 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16137 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16138 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16139 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16140 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16141 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16143 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16144 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16145 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16146 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16147 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16148 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16149 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16150 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16151 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16152 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16153 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16154 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16155 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16156 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16157 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16158 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16159 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16160 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16161 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16163 LTCC='$LTCC'
16164 LTCFLAGS='$LTCFLAGS'
16165 compiler='$compiler_DEFAULT'
16167 # A function that is used when there is no print builtin or printf.
16168 func_fallback_echo ()
16170 eval 'cat <<_LTECHO_EOF
16172 _LTECHO_EOF'
16175 # Quote evaled strings.
16176 for var in SHELL \
16177 ECHO \
16178 SED \
16179 GREP \
16180 EGREP \
16181 FGREP \
16182 LD \
16183 NM \
16184 LN_S \
16185 lt_SP2NL \
16186 lt_NL2SP \
16187 reload_flag \
16188 OBJDUMP \
16189 deplibs_check_method \
16190 file_magic_cmd \
16191 AR \
16192 AR_FLAGS \
16193 STRIP \
16194 RANLIB \
16195 CC \
16196 CFLAGS \
16197 compiler \
16198 lt_cv_sys_global_symbol_pipe \
16199 lt_cv_sys_global_symbol_to_cdecl \
16200 lt_cv_sys_global_symbol_to_c_name_address \
16201 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16202 lt_prog_compiler_no_builtin_flag \
16203 lt_prog_compiler_wl \
16204 lt_prog_compiler_pic \
16205 lt_prog_compiler_static \
16206 lt_cv_prog_compiler_c_o \
16207 need_locks \
16208 DSYMUTIL \
16209 NMEDIT \
16210 LIPO \
16211 OTOOL \
16212 OTOOL64 \
16213 shrext_cmds \
16214 export_dynamic_flag_spec \
16215 whole_archive_flag_spec \
16216 compiler_needs_object \
16217 with_gnu_ld \
16218 allow_undefined_flag \
16219 no_undefined_flag \
16220 hardcode_libdir_flag_spec \
16221 hardcode_libdir_flag_spec_ld \
16222 hardcode_libdir_separator \
16223 fix_srcfile_path \
16224 exclude_expsyms \
16225 include_expsyms \
16226 file_list_spec \
16227 variables_saved_for_relink \
16228 libname_spec \
16229 library_names_spec \
16230 soname_spec \
16231 install_override_mode \
16232 finish_eval \
16233 old_striplib \
16234 striplib \
16235 compiler_lib_search_dirs \
16236 predep_objects \
16237 postdep_objects \
16238 predeps \
16239 postdeps \
16240 compiler_lib_search_path \
16241 LD_CXX \
16242 reload_flag_CXX \
16243 compiler_CXX \
16244 lt_prog_compiler_no_builtin_flag_CXX \
16245 lt_prog_compiler_wl_CXX \
16246 lt_prog_compiler_pic_CXX \
16247 lt_prog_compiler_static_CXX \
16248 lt_cv_prog_compiler_c_o_CXX \
16249 export_dynamic_flag_spec_CXX \
16250 whole_archive_flag_spec_CXX \
16251 compiler_needs_object_CXX \
16252 with_gnu_ld_CXX \
16253 allow_undefined_flag_CXX \
16254 no_undefined_flag_CXX \
16255 hardcode_libdir_flag_spec_CXX \
16256 hardcode_libdir_flag_spec_ld_CXX \
16257 hardcode_libdir_separator_CXX \
16258 fix_srcfile_path_CXX \
16259 exclude_expsyms_CXX \
16260 include_expsyms_CXX \
16261 file_list_spec_CXX \
16262 compiler_lib_search_dirs_CXX \
16263 predep_objects_CXX \
16264 postdep_objects_CXX \
16265 predeps_CXX \
16266 postdeps_CXX \
16267 compiler_lib_search_path_CXX; do
16268 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16269 *[\\\\\\\`\\"\\\$]*)
16270 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16273 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16275 esac
16276 done
16278 # Double-quote double-evaled strings.
16279 for var in reload_cmds \
16280 old_postinstall_cmds \
16281 old_postuninstall_cmds \
16282 old_archive_cmds \
16283 extract_expsyms_cmds \
16284 old_archive_from_new_cmds \
16285 old_archive_from_expsyms_cmds \
16286 archive_cmds \
16287 archive_expsym_cmds \
16288 module_cmds \
16289 module_expsym_cmds \
16290 export_symbols_cmds \
16291 prelink_cmds \
16292 postinstall_cmds \
16293 postuninstall_cmds \
16294 finish_cmds \
16295 sys_lib_search_path_spec \
16296 sys_lib_dlsearch_path_spec \
16297 reload_cmds_CXX \
16298 old_archive_cmds_CXX \
16299 old_archive_from_new_cmds_CXX \
16300 old_archive_from_expsyms_cmds_CXX \
16301 archive_cmds_CXX \
16302 archive_expsym_cmds_CXX \
16303 module_cmds_CXX \
16304 module_expsym_cmds_CXX \
16305 export_symbols_cmds_CXX \
16306 prelink_cmds_CXX; do
16307 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16308 *[\\\\\\\`\\"\\\$]*)
16309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16314 esac
16315 done
16317 ac_aux_dir='$ac_aux_dir'
16318 xsi_shell='$xsi_shell'
16319 lt_shell_append='$lt_shell_append'
16321 # See if we are running on zsh, and set the options which allow our
16322 # commands through without removal of \ escapes INIT.
16323 if test -n "\${ZSH_VERSION+set}" ; then
16324 setopt NO_GLOB_SUBST
16328 PACKAGE='$PACKAGE'
16329 VERSION='$VERSION'
16330 TIMESTAMP='$TIMESTAMP'
16331 RM='$RM'
16332 ofile='$ofile'
16339 _ACEOF
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16343 # Handling of arguments.
16344 for ac_config_target in $ac_config_targets
16346 case $ac_config_target in
16347 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16348 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16349 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16350 "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
16351 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16353 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16354 esac
16355 done
16358 # If the user did not use the arguments to specify the items to instantiate,
16359 # then the envvar interface is used. Set only those that are not.
16360 # We use the long form for the default assignment because of an extremely
16361 # bizarre bug on SunOS 4.1.3.
16362 if $ac_need_defaults; then
16363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16367 # Have a temporary directory for convenience. Make it in the build tree
16368 # simply because there is no reason against having it here, and in addition,
16369 # creating and moving files from /tmp can sometimes cause problems.
16370 # Hook for its removal unless debugging.
16371 # Note that there is a small window in which the directory will not be cleaned:
16372 # after its creation but before its name has been assigned to `$tmp'.
16373 $debug ||
16375 tmp=
16376 trap 'exit_status=$?
16377 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16379 trap 'as_fn_exit 1' 1 2 13 15
16381 # Create a (secure) tmp directory for tmp files.
16384 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16385 test -n "$tmp" && test -d "$tmp"
16386 } ||
16388 tmp=./conf$$-$RANDOM
16389 (umask 077 && mkdir "$tmp")
16390 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16392 # Set up the scripts for CONFIG_FILES section.
16393 # No need to generate them if there are no CONFIG_FILES.
16394 # This happens for instance with `./config.status config.h'.
16395 if test -n "$CONFIG_FILES"; then
16398 ac_cr=`echo X | tr X '\015'`
16399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16400 # But we know of no other shell where ac_cr would be empty at this
16401 # point, so we can use a bashism as a fallback.
16402 if test "x$ac_cr" = x; then
16403 eval ac_cr=\$\'\\r\'
16405 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16407 ac_cs_awk_cr='\r'
16408 else
16409 ac_cs_awk_cr=$ac_cr
16412 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16413 _ACEOF
16417 echo "cat >conf$$subs.awk <<_ACEOF" &&
16418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16419 echo "_ACEOF"
16420 } >conf$$subs.sh ||
16421 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16423 ac_delim='%!_!# '
16424 for ac_last_try in false false false false false :; do
16425 . ./conf$$subs.sh ||
16426 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16429 if test $ac_delim_n = $ac_delim_num; then
16430 break
16431 elif $ac_last_try; then
16432 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16433 else
16434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16436 done
16437 rm -f conf$$subs.sh
16439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16440 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16441 _ACEOF
16442 sed -n '
16444 s/^/S["/; s/!.*/"]=/
16447 s/^[^!]*!//
16448 :repl
16449 t repl
16450 s/'"$ac_delim"'$//
16451 t delim
16454 s/\(.\{148\}\).*/\1/
16455 t more1
16456 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16459 b repl
16460 :more1
16461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16464 s/.\{148\}//
16465 t nl
16466 :delim
16468 s/\(.\{148\}\).*/\1/
16469 t more2
16470 s/["\\]/\\&/g; s/^/"/; s/$/"/
16473 :more2
16474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16477 s/.\{148\}//
16478 t delim
16479 ' <conf$$subs.awk | sed '
16480 /^[^""]/{
16482 s/\n//
16484 ' >>$CONFIG_STATUS || ac_write_fail=1
16485 rm -f conf$$subs.awk
16486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16487 _ACAWK
16488 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16489 for (key in S) S_is_set[key] = 1
16490 FS = "\a"
16494 line = $ 0
16495 nfields = split(line, field, "@")
16496 substed = 0
16497 len = length(field[1])
16498 for (i = 2; i < nfields; i++) {
16499 key = field[i]
16500 keylen = length(key)
16501 if (S_is_set[key]) {
16502 value = S[key]
16503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16504 len += length(value) + length(field[++i])
16505 substed = 1
16506 } else
16507 len += 1 + keylen
16510 print line
16513 _ACAWK
16514 _ACEOF
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16518 else
16520 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16521 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16522 _ACEOF
16524 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16525 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16526 # trailing colons and then remove the whole line if VPATH becomes empty
16527 # (actually we leave an empty line to preserve line numbers).
16528 if test "x$srcdir" = x.; then
16529 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16530 s/:*\$(srcdir):*/:/
16531 s/:*\${srcdir}:*/:/
16532 s/:*@srcdir@:*/:/
16533 s/^\([^=]*=[ ]*\):*/\1/
16534 s/:*$//
16535 s/^[^=]*=[ ]*$//
16539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16540 fi # test -n "$CONFIG_FILES"
16543 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16544 shift
16545 for ac_tag
16547 case $ac_tag in
16548 :[FHLC]) ac_mode=$ac_tag; continue;;
16549 esac
16550 case $ac_mode$ac_tag in
16551 :[FHL]*:*);;
16552 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16553 :[FH]-) ac_tag=-:-;;
16554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16555 esac
16556 ac_save_IFS=$IFS
16557 IFS=:
16558 set x $ac_tag
16559 IFS=$ac_save_IFS
16560 shift
16561 ac_file=$1
16562 shift
16564 case $ac_mode in
16565 :L) ac_source=$1;;
16566 :[FH])
16567 ac_file_inputs=
16568 for ac_f
16570 case $ac_f in
16571 -) ac_f="$tmp/stdin";;
16572 *) # Look for the file first in the build tree, then in the source tree
16573 # (if the path is not absolute). The absolute path cannot be DOS-style,
16574 # because $ac_f cannot contain `:'.
16575 test -f "$ac_f" ||
16576 case $ac_f in
16577 [\\/$]*) false;;
16578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16579 esac ||
16580 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16581 esac
16582 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16583 as_fn_append ac_file_inputs " '$ac_f'"
16584 done
16586 # Let's still pretend it is `configure' which instantiates (i.e., don't
16587 # use $as_me), people would be surprised to read:
16588 # /* config.h. Generated by config.status. */
16589 configure_input='Generated from '`
16590 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16591 `' by configure.'
16592 if test x"$ac_file" != x-; then
16593 configure_input="$ac_file. $configure_input"
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16595 $as_echo "$as_me: creating $ac_file" >&6;}
16597 # Neutralize special characters interpreted by sed in replacement strings.
16598 case $configure_input in #(
16599 *\&* | *\|* | *\\* )
16600 ac_sed_conf_input=`$as_echo "$configure_input" |
16601 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16602 *) ac_sed_conf_input=$configure_input;;
16603 esac
16605 case $ac_tag in
16606 *:-:* | *:-) cat >"$tmp/stdin" \
16607 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16608 esac
16610 esac
16612 ac_dir=`$as_dirname -- "$ac_file" ||
16613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614 X"$ac_file" : 'X\(//\)[^/]' \| \
16615 X"$ac_file" : 'X\(//\)$' \| \
16616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16617 $as_echo X"$ac_file" |
16618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16619 s//\1/
16622 /^X\(\/\/\)[^/].*/{
16623 s//\1/
16626 /^X\(\/\/\)$/{
16627 s//\1/
16630 /^X\(\/\).*/{
16631 s//\1/
16634 s/.*/./; q'`
16635 as_dir="$ac_dir"; as_fn_mkdir_p
16636 ac_builddir=.
16638 case "$ac_dir" in
16639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16642 # A ".." for each directory in $ac_dir_suffix.
16643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16644 case $ac_top_builddir_sub in
16645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16647 esac ;;
16648 esac
16649 ac_abs_top_builddir=$ac_pwd
16650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16651 # for backward compatibility:
16652 ac_top_builddir=$ac_top_build_prefix
16654 case $srcdir in
16655 .) # We are building in place.
16656 ac_srcdir=.
16657 ac_top_srcdir=$ac_top_builddir_sub
16658 ac_abs_top_srcdir=$ac_pwd ;;
16659 [\\/]* | ?:[\\/]* ) # Absolute name.
16660 ac_srcdir=$srcdir$ac_dir_suffix;
16661 ac_top_srcdir=$srcdir
16662 ac_abs_top_srcdir=$srcdir ;;
16663 *) # Relative name.
16664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16665 ac_top_srcdir=$ac_top_build_prefix$srcdir
16666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16667 esac
16668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16671 case $ac_mode in
16674 # CONFIG_FILE
16677 case $INSTALL in
16678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16680 esac
16681 ac_MKDIR_P=$MKDIR_P
16682 case $MKDIR_P in
16683 [\\/$]* | ?:[\\/]* ) ;;
16684 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16685 esac
16686 _ACEOF
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16689 # If the template does not know about datarootdir, expand it.
16690 # FIXME: This hack should be removed a few years after 2.60.
16691 ac_datarootdir_hack=; ac_datarootdir_seen=
16692 ac_sed_dataroot='
16693 /datarootdir/ {
16697 /@datadir@/p
16698 /@docdir@/p
16699 /@infodir@/p
16700 /@localedir@/p
16701 /@mandir@/p'
16702 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16703 *datarootdir*) ac_datarootdir_seen=yes;;
16704 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16706 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16707 _ACEOF
16708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16709 ac_datarootdir_hack='
16710 s&@datadir@&$datadir&g
16711 s&@docdir@&$docdir&g
16712 s&@infodir@&$infodir&g
16713 s&@localedir@&$localedir&g
16714 s&@mandir@&$mandir&g
16715 s&\\\${datarootdir}&$datarootdir&g' ;;
16716 esac
16717 _ACEOF
16719 # Neutralize VPATH when `$srcdir' = `.'.
16720 # Shell code in configure.ac might set extrasub.
16721 # FIXME: do we really want to maintain this feature?
16722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16723 ac_sed_extra="$ac_vpsub
16724 $extrasub
16725 _ACEOF
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16729 s|@configure_input@|$ac_sed_conf_input|;t t
16730 s&@top_builddir@&$ac_top_builddir_sub&;t t
16731 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16732 s&@srcdir@&$ac_srcdir&;t t
16733 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16734 s&@top_srcdir@&$ac_top_srcdir&;t t
16735 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16736 s&@builddir@&$ac_builddir&;t t
16737 s&@abs_builddir@&$ac_abs_builddir&;t t
16738 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16739 s&@INSTALL@&$ac_INSTALL&;t t
16740 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16741 $ac_datarootdir_hack
16743 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16744 || as_fn_error "could not create $ac_file" "$LINENO" 5
16746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16747 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16750 which seems to be undefined. Please make sure it is defined." >&5
16751 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16752 which seems to be undefined. Please make sure it is defined." >&2;}
16754 rm -f "$tmp/stdin"
16755 case $ac_file in
16756 -) cat "$tmp/out" && rm -f "$tmp/out";;
16757 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16758 esac \
16759 || as_fn_error "could not create $ac_file" "$LINENO" 5
16763 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16764 $as_echo "$as_me: executing $ac_file commands" >&6;}
16766 esac
16769 case $ac_file$ac_mode in
16770 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16771 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16772 # are listed without --file. Let's play safe and only enable the eval
16773 # if we detect the quoting.
16774 case $CONFIG_FILES in
16775 *\'*) eval set x "$CONFIG_FILES" ;;
16776 *) set x $CONFIG_FILES ;;
16777 esac
16778 shift
16779 for mf
16781 # Strip MF so we end up with the name of the file.
16782 mf=`echo "$mf" | sed -e 's/:.*$//'`
16783 # Check whether this is an Automake generated Makefile or not.
16784 # We used to match only the files named `Makefile.in', but
16785 # some people rename them; so instead we look at the file content.
16786 # Grep'ing the first line is not enough: some people post-process
16787 # each Makefile.in and add a new line on top of each file to say so.
16788 # Grep'ing the whole file is not good either: AIX grep has a line
16789 # limit of 2048, but all sed's we know have understand at least 4000.
16790 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16791 dirpart=`$as_dirname -- "$mf" ||
16792 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16793 X"$mf" : 'X\(//\)[^/]' \| \
16794 X"$mf" : 'X\(//\)$' \| \
16795 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16796 $as_echo X"$mf" |
16797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16798 s//\1/
16801 /^X\(\/\/\)[^/].*/{
16802 s//\1/
16805 /^X\(\/\/\)$/{
16806 s//\1/
16809 /^X\(\/\).*/{
16810 s//\1/
16813 s/.*/./; q'`
16814 else
16815 continue
16817 # Extract the definition of DEPDIR, am__include, and am__quote
16818 # from the Makefile without running `make'.
16819 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16820 test -z "$DEPDIR" && continue
16821 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16822 test -z "am__include" && continue
16823 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16824 # When using ansi2knr, U may be empty or an underscore; expand it
16825 U=`sed -n 's/^U = //p' < "$mf"`
16826 # Find all dependency output files, they are included files with
16827 # $(DEPDIR) in their names. We invoke sed twice because it is the
16828 # simplest approach to changing $(DEPDIR) to its actual value in the
16829 # expansion.
16830 for file in `sed -n "
16831 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16832 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16833 # Make sure the directory exists.
16834 test -f "$dirpart/$file" && continue
16835 fdir=`$as_dirname -- "$file" ||
16836 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16837 X"$file" : 'X\(//\)[^/]' \| \
16838 X"$file" : 'X\(//\)$' \| \
16839 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16840 $as_echo X"$file" |
16841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16842 s//\1/
16845 /^X\(\/\/\)[^/].*/{
16846 s//\1/
16849 /^X\(\/\/\)$/{
16850 s//\1/
16853 /^X\(\/\).*/{
16854 s//\1/
16857 s/.*/./; q'`
16858 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16859 # echo "creating $dirpart/$file"
16860 echo '# dummy' > "$dirpart/$file"
16861 done
16862 done
16865 "default-1":C)
16866 # Only add multilib support code if we just rebuilt the top-level
16867 # Makefile.
16868 case " $CONFIG_FILES " in
16869 *" Makefile "*)
16870 ac_file=Makefile . ${multi_basedir}/config-ml.in
16872 esac ;;
16873 "libtool":C)
16875 # See if we are running on zsh, and set the options which allow our
16876 # commands through without removal of \ escapes.
16877 if test -n "${ZSH_VERSION+set}" ; then
16878 setopt NO_GLOB_SUBST
16881 cfgfile="${ofile}T"
16882 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16883 $RM "$cfgfile"
16885 cat <<_LT_EOF >> "$cfgfile"
16886 #! $SHELL
16888 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16889 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16893 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16894 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16895 # Written by Gordon Matzigkeit, 1996
16897 # This file is part of GNU Libtool.
16899 # GNU Libtool is free software; you can redistribute it and/or
16900 # modify it under the terms of the GNU General Public License as
16901 # published by the Free Software Foundation; either version 2 of
16902 # the License, or (at your option) any later version.
16904 # As a special exception to the GNU General Public License,
16905 # if you distribute this file as part of a program or library that
16906 # is built using GNU Libtool, you may include this file under the
16907 # same distribution terms that you use for the rest of that program.
16909 # GNU Libtool is distributed in the hope that it will be useful,
16910 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16912 # GNU General Public License for more details.
16914 # You should have received a copy of the GNU General Public License
16915 # along with GNU Libtool; see the file COPYING. If not, a copy
16916 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16917 # obtained by writing to the Free Software Foundation, Inc.,
16918 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16921 # The names of the tagged configurations supported by this script.
16922 available_tags="CXX "
16924 # ### BEGIN LIBTOOL CONFIG
16926 # Which release of libtool.m4 was used?
16927 macro_version=$macro_version
16928 macro_revision=$macro_revision
16930 # Whether or not to build shared libraries.
16931 build_libtool_libs=$enable_shared
16933 # Whether or not to build static libraries.
16934 build_old_libs=$enable_static
16936 # What type of objects to build.
16937 pic_mode=$pic_mode
16939 # Whether or not to optimize for fast installation.
16940 fast_install=$enable_fast_install
16942 # Shell to use when invoking shell scripts.
16943 SHELL=$lt_SHELL
16945 # An echo program that protects backslashes.
16946 ECHO=$lt_ECHO
16948 # The host system.
16949 host_alias=$host_alias
16950 host=$host
16951 host_os=$host_os
16953 # The build system.
16954 build_alias=$build_alias
16955 build=$build
16956 build_os=$build_os
16958 # A sed program that does not truncate output.
16959 SED=$lt_SED
16961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16962 Xsed="\$SED -e 1s/^X//"
16964 # A grep program that handles long lines.
16965 GREP=$lt_GREP
16967 # An ERE matcher.
16968 EGREP=$lt_EGREP
16970 # A literal string matcher.
16971 FGREP=$lt_FGREP
16973 # A BSD- or MS-compatible name lister.
16974 NM=$lt_NM
16976 # Whether we need soft or hard links.
16977 LN_S=$lt_LN_S
16979 # What is the maximum length of a command?
16980 max_cmd_len=$max_cmd_len
16982 # Object file suffix (normally "o").
16983 objext=$ac_objext
16985 # Executable file suffix (normally "").
16986 exeext=$exeext
16988 # whether the shell understands "unset".
16989 lt_unset=$lt_unset
16991 # turn spaces into newlines.
16992 SP2NL=$lt_lt_SP2NL
16994 # turn newlines into spaces.
16995 NL2SP=$lt_lt_NL2SP
16997 # An object symbol dumper.
16998 OBJDUMP=$lt_OBJDUMP
17000 # Method to check whether dependent libraries are shared objects.
17001 deplibs_check_method=$lt_deplibs_check_method
17003 # Command to use when deplibs_check_method == "file_magic".
17004 file_magic_cmd=$lt_file_magic_cmd
17006 # The archiver.
17007 AR=$lt_AR
17008 AR_FLAGS=$lt_AR_FLAGS
17010 # A symbol stripping program.
17011 STRIP=$lt_STRIP
17013 # Commands used to install an old-style archive.
17014 RANLIB=$lt_RANLIB
17015 old_postinstall_cmds=$lt_old_postinstall_cmds
17016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17018 # Whether to use a lock for old archive extraction.
17019 lock_old_archive_extraction=$lock_old_archive_extraction
17021 # A C compiler.
17022 LTCC=$lt_CC
17024 # LTCC compiler flags.
17025 LTCFLAGS=$lt_CFLAGS
17027 # Take the output of nm and produce a listing of raw symbols and C names.
17028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17030 # Transform the output of nm in a proper C declaration.
17031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17033 # Transform the output of nm in a C name address pair.
17034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17036 # Transform the output of nm in a C name address pair when lib prefix is needed.
17037 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17039 # The name of the directory that contains temporary libtool files.
17040 objdir=$objdir
17042 # Used to examine libraries when file_magic_cmd begins with "file".
17043 MAGIC_CMD=$MAGIC_CMD
17045 # Must we lock files when doing compilation?
17046 need_locks=$lt_need_locks
17048 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17049 DSYMUTIL=$lt_DSYMUTIL
17051 # Tool to change global to local symbols on Mac OS X.
17052 NMEDIT=$lt_NMEDIT
17054 # Tool to manipulate fat objects and archives on Mac OS X.
17055 LIPO=$lt_LIPO
17057 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17058 OTOOL=$lt_OTOOL
17060 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17061 OTOOL64=$lt_OTOOL64
17063 # Old archive suffix (normally "a").
17064 libext=$libext
17066 # Shared library suffix (normally ".so").
17067 shrext_cmds=$lt_shrext_cmds
17069 # The commands to extract the exported symbol list from a shared archive.
17070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17072 # Variables whose values should be saved in libtool wrapper scripts and
17073 # restored at link time.
17074 variables_saved_for_relink=$lt_variables_saved_for_relink
17076 # Do we need the "lib" prefix for modules?
17077 need_lib_prefix=$need_lib_prefix
17079 # Do we need a version for libraries?
17080 need_version=$need_version
17082 # Library versioning type.
17083 version_type=$version_type
17085 # Shared library runtime path variable.
17086 runpath_var=$runpath_var
17088 # Shared library path variable.
17089 shlibpath_var=$shlibpath_var
17091 # Is shlibpath searched before the hard-coded library search path?
17092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17094 # Format of library name prefix.
17095 libname_spec=$lt_libname_spec
17097 # List of archive names. First name is the real one, the rest are links.
17098 # The last name is the one that the linker finds with -lNAME
17099 library_names_spec=$lt_library_names_spec
17101 # The coded name of the library, if different from the real name.
17102 soname_spec=$lt_soname_spec
17104 # Permission mode override for installation of shared libraries.
17105 install_override_mode=$lt_install_override_mode
17107 # Command to use after installation of a shared archive.
17108 postinstall_cmds=$lt_postinstall_cmds
17110 # Command to use after uninstallation of a shared archive.
17111 postuninstall_cmds=$lt_postuninstall_cmds
17113 # Commands used to finish a libtool library installation in a directory.
17114 finish_cmds=$lt_finish_cmds
17116 # As "finish_cmds", except a single script fragment to be evaled but
17117 # not shown.
17118 finish_eval=$lt_finish_eval
17120 # Whether we should hardcode library paths into libraries.
17121 hardcode_into_libs=$hardcode_into_libs
17123 # Compile-time system search path for libraries.
17124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17126 # Run-time system search path for libraries.
17127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17129 # Whether dlopen is supported.
17130 dlopen_support=$enable_dlopen
17132 # Whether dlopen of programs is supported.
17133 dlopen_self=$enable_dlopen_self
17135 # Whether dlopen of statically linked programs is supported.
17136 dlopen_self_static=$enable_dlopen_self_static
17138 # Commands to strip libraries.
17139 old_striplib=$lt_old_striplib
17140 striplib=$lt_striplib
17143 # The linker used to build libraries.
17144 LD=$lt_LD
17146 # How to create reloadable object files.
17147 reload_flag=$lt_reload_flag
17148 reload_cmds=$lt_reload_cmds
17150 # Commands used to build an old-style archive.
17151 old_archive_cmds=$lt_old_archive_cmds
17153 # A language specific compiler.
17154 CC=$lt_compiler
17156 # Is the compiler the GNU compiler?
17157 with_gcc=$GCC
17159 # Compiler flag to turn off builtin functions.
17160 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17162 # How to pass a linker flag through the compiler.
17163 wl=$lt_lt_prog_compiler_wl
17165 # Additional compiler flags for building library objects.
17166 pic_flag=$lt_lt_prog_compiler_pic
17168 # Compiler flag to prevent dynamic linking.
17169 link_static_flag=$lt_lt_prog_compiler_static
17171 # Does compiler simultaneously support -c and -o options?
17172 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17174 # Whether or not to add -lc for building shared libraries.
17175 build_libtool_need_lc=$archive_cmds_need_lc
17177 # Whether or not to disallow shared libs when runtime libs are static.
17178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17180 # Compiler flag to allow reflexive dlopens.
17181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17183 # Compiler flag to generate shared objects directly from archives.
17184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17186 # Whether the compiler copes with passing no objects directly.
17187 compiler_needs_object=$lt_compiler_needs_object
17189 # Create an old-style archive from a shared archive.
17190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17192 # Create a temporary old-style archive to link instead of a shared archive.
17193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17195 # Commands used to build a shared archive.
17196 archive_cmds=$lt_archive_cmds
17197 archive_expsym_cmds=$lt_archive_expsym_cmds
17199 # Commands used to build a loadable module if different from building
17200 # a shared archive.
17201 module_cmds=$lt_module_cmds
17202 module_expsym_cmds=$lt_module_expsym_cmds
17204 # Whether we are building with GNU ld or not.
17205 with_gnu_ld=$lt_with_gnu_ld
17207 # Flag that allows shared libraries with undefined symbols to be built.
17208 allow_undefined_flag=$lt_allow_undefined_flag
17210 # Flag that enforces no undefined symbols.
17211 no_undefined_flag=$lt_no_undefined_flag
17213 # Flag to hardcode \$libdir into a binary during linking.
17214 # This must work even if \$libdir does not exist
17215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17217 # If ld is used when linking, flag to hardcode \$libdir into a binary
17218 # during linking. This must work even if \$libdir does not exist.
17219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17221 # Whether we need a single "-rpath" flag with a separated argument.
17222 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17225 # DIR into the resulting binary.
17226 hardcode_direct=$hardcode_direct
17228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17229 # DIR into the resulting binary and the resulting library dependency is
17230 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17231 # library is relocated.
17232 hardcode_direct_absolute=$hardcode_direct_absolute
17234 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17235 # into the resulting binary.
17236 hardcode_minus_L=$hardcode_minus_L
17238 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17239 # into the resulting binary.
17240 hardcode_shlibpath_var=$hardcode_shlibpath_var
17242 # Set to "yes" if building a shared library automatically hardcodes DIR
17243 # into the library and all subsequent libraries and executables linked
17244 # against it.
17245 hardcode_automatic=$hardcode_automatic
17247 # Set to yes if linker adds runtime paths of dependent libraries
17248 # to runtime path list.
17249 inherit_rpath=$inherit_rpath
17251 # Whether libtool must link a program against all its dependency libraries.
17252 link_all_deplibs=$link_all_deplibs
17254 # Fix the shell variable \$srcfile for the compiler.
17255 fix_srcfile_path=$lt_fix_srcfile_path
17257 # Set to "yes" if exported symbols are required.
17258 always_export_symbols=$always_export_symbols
17260 # The commands to list exported symbols.
17261 export_symbols_cmds=$lt_export_symbols_cmds
17263 # Symbols that should not be listed in the preloaded symbols.
17264 exclude_expsyms=$lt_exclude_expsyms
17266 # Symbols that must always be exported.
17267 include_expsyms=$lt_include_expsyms
17269 # Commands necessary for linking programs (against libraries) with templates.
17270 prelink_cmds=$lt_prelink_cmds
17272 # Specify filename containing input files.
17273 file_list_spec=$lt_file_list_spec
17275 # How to hardcode a shared library path into an executable.
17276 hardcode_action=$hardcode_action
17278 # The directories searched by this compiler when creating a shared library.
17279 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17281 # Dependencies to place before and after the objects being linked to
17282 # create a shared library.
17283 predep_objects=$lt_predep_objects
17284 postdep_objects=$lt_postdep_objects
17285 predeps=$lt_predeps
17286 postdeps=$lt_postdeps
17288 # The library search path used internally by the compiler when linking
17289 # a shared library.
17290 compiler_lib_search_path=$lt_compiler_lib_search_path
17292 # ### END LIBTOOL CONFIG
17294 _LT_EOF
17296 case $host_os in
17297 aix3*)
17298 cat <<\_LT_EOF >> "$cfgfile"
17299 # AIX sometimes has problems with the GCC collect2 program. For some
17300 # reason, if we set the COLLECT_NAMES environment variable, the problems
17301 # vanish in a puff of smoke.
17302 if test "X${COLLECT_NAMES+set}" != Xset; then
17303 COLLECT_NAMES=
17304 export COLLECT_NAMES
17306 _LT_EOF
17308 esac
17311 ltmain="$ac_aux_dir/ltmain.sh"
17314 # We use sed instead of cat because bash on DJGPP gets confused if
17315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17316 # text mode, it properly converts lines to CR/LF. This bash problem
17317 # is reportedly fixed, but why not run on old versions too?
17318 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17319 || (rm -f "$cfgfile"; exit 1)
17321 case $xsi_shell in
17322 yes)
17323 cat << \_LT_EOF >> "$cfgfile"
17325 # func_dirname file append nondir_replacement
17326 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17327 # otherwise set result to NONDIR_REPLACEMENT.
17328 func_dirname ()
17330 case ${1} in
17331 */*) func_dirname_result="${1%/*}${2}" ;;
17332 * ) func_dirname_result="${3}" ;;
17333 esac
17336 # func_basename file
17337 func_basename ()
17339 func_basename_result="${1##*/}"
17342 # func_dirname_and_basename file append nondir_replacement
17343 # perform func_basename and func_dirname in a single function
17344 # call:
17345 # dirname: Compute the dirname of FILE. If nonempty,
17346 # add APPEND to the result, otherwise set result
17347 # to NONDIR_REPLACEMENT.
17348 # value returned in "$func_dirname_result"
17349 # basename: Compute filename of FILE.
17350 # value retuned in "$func_basename_result"
17351 # Implementation must be kept synchronized with func_dirname
17352 # and func_basename. For efficiency, we do not delegate to
17353 # those functions but instead duplicate the functionality here.
17354 func_dirname_and_basename ()
17356 case ${1} in
17357 */*) func_dirname_result="${1%/*}${2}" ;;
17358 * ) func_dirname_result="${3}" ;;
17359 esac
17360 func_basename_result="${1##*/}"
17363 # func_stripname prefix suffix name
17364 # strip PREFIX and SUFFIX off of NAME.
17365 # PREFIX and SUFFIX must not contain globbing or regex special
17366 # characters, hashes, percent signs, but SUFFIX may contain a leading
17367 # dot (in which case that matches only a dot).
17368 func_stripname ()
17370 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17371 # positional parameters, so assign one to ordinary parameter first.
17372 func_stripname_result=${3}
17373 func_stripname_result=${func_stripname_result#"${1}"}
17374 func_stripname_result=${func_stripname_result%"${2}"}
17377 # func_opt_split
17378 func_opt_split ()
17380 func_opt_split_opt=${1%%=*}
17381 func_opt_split_arg=${1#*=}
17384 # func_lo2o object
17385 func_lo2o ()
17387 case ${1} in
17388 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17389 *) func_lo2o_result=${1} ;;
17390 esac
17393 # func_xform libobj-or-source
17394 func_xform ()
17396 func_xform_result=${1%.*}.lo
17399 # func_arith arithmetic-term...
17400 func_arith ()
17402 func_arith_result=$(( $* ))
17405 # func_len string
17406 # STRING may not start with a hyphen.
17407 func_len ()
17409 func_len_result=${#1}
17412 _LT_EOF
17414 *) # Bourne compatible functions.
17415 cat << \_LT_EOF >> "$cfgfile"
17417 # func_dirname file append nondir_replacement
17418 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17419 # otherwise set result to NONDIR_REPLACEMENT.
17420 func_dirname ()
17422 # Extract subdirectory from the argument.
17423 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17424 if test "X$func_dirname_result" = "X${1}"; then
17425 func_dirname_result="${3}"
17426 else
17427 func_dirname_result="$func_dirname_result${2}"
17431 # func_basename file
17432 func_basename ()
17434 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17438 # func_stripname prefix suffix name
17439 # strip PREFIX and SUFFIX off of NAME.
17440 # PREFIX and SUFFIX must not contain globbing or regex special
17441 # characters, hashes, percent signs, but SUFFIX may contain a leading
17442 # dot (in which case that matches only a dot).
17443 # func_strip_suffix prefix name
17444 func_stripname ()
17446 case ${2} in
17447 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17448 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17449 esac
17452 # sed scripts:
17453 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17454 my_sed_long_arg='1s/^-[^=]*=//'
17456 # func_opt_split
17457 func_opt_split ()
17459 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17460 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17463 # func_lo2o object
17464 func_lo2o ()
17466 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17469 # func_xform libobj-or-source
17470 func_xform ()
17472 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17475 # func_arith arithmetic-term...
17476 func_arith ()
17478 func_arith_result=`expr "$@"`
17481 # func_len string
17482 # STRING may not start with a hyphen.
17483 func_len ()
17485 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17488 _LT_EOF
17489 esac
17491 case $lt_shell_append in
17492 yes)
17493 cat << \_LT_EOF >> "$cfgfile"
17495 # func_append var value
17496 # Append VALUE to the end of shell variable VAR.
17497 func_append ()
17499 eval "$1+=\$2"
17501 _LT_EOF
17504 cat << \_LT_EOF >> "$cfgfile"
17506 # func_append var value
17507 # Append VALUE to the end of shell variable VAR.
17508 func_append ()
17510 eval "$1=\$$1\$2"
17513 _LT_EOF
17515 esac
17518 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17519 || (rm -f "$cfgfile"; exit 1)
17521 mv -f "$cfgfile" "$ofile" ||
17522 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17523 chmod +x "$ofile"
17526 cat <<_LT_EOF >> "$ofile"
17528 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17530 # The linker used to build libraries.
17531 LD=$lt_LD_CXX
17533 # How to create reloadable object files.
17534 reload_flag=$lt_reload_flag_CXX
17535 reload_cmds=$lt_reload_cmds_CXX
17537 # Commands used to build an old-style archive.
17538 old_archive_cmds=$lt_old_archive_cmds_CXX
17540 # A language specific compiler.
17541 CC=$lt_compiler_CXX
17543 # Is the compiler the GNU compiler?
17544 with_gcc=$GCC_CXX
17546 # Compiler flag to turn off builtin functions.
17547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17549 # How to pass a linker flag through the compiler.
17550 wl=$lt_lt_prog_compiler_wl_CXX
17552 # Additional compiler flags for building library objects.
17553 pic_flag=$lt_lt_prog_compiler_pic_CXX
17555 # Compiler flag to prevent dynamic linking.
17556 link_static_flag=$lt_lt_prog_compiler_static_CXX
17558 # Does compiler simultaneously support -c and -o options?
17559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17561 # Whether or not to add -lc for building shared libraries.
17562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17564 # Whether or not to disallow shared libs when runtime libs are static.
17565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17567 # Compiler flag to allow reflexive dlopens.
17568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17570 # Compiler flag to generate shared objects directly from archives.
17571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17573 # Whether the compiler copes with passing no objects directly.
17574 compiler_needs_object=$lt_compiler_needs_object_CXX
17576 # Create an old-style archive from a shared archive.
17577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17579 # Create a temporary old-style archive to link instead of a shared archive.
17580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17582 # Commands used to build a shared archive.
17583 archive_cmds=$lt_archive_cmds_CXX
17584 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17586 # Commands used to build a loadable module if different from building
17587 # a shared archive.
17588 module_cmds=$lt_module_cmds_CXX
17589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17591 # Whether we are building with GNU ld or not.
17592 with_gnu_ld=$lt_with_gnu_ld_CXX
17594 # Flag that allows shared libraries with undefined symbols to be built.
17595 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17597 # Flag that enforces no undefined symbols.
17598 no_undefined_flag=$lt_no_undefined_flag_CXX
17600 # Flag to hardcode \$libdir into a binary during linking.
17601 # This must work even if \$libdir does not exist
17602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17604 # If ld is used when linking, flag to hardcode \$libdir into a binary
17605 # during linking. This must work even if \$libdir does not exist.
17606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17608 # Whether we need a single "-rpath" flag with a separated argument.
17609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17612 # DIR into the resulting binary.
17613 hardcode_direct=$hardcode_direct_CXX
17615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17616 # DIR into the resulting binary and the resulting library dependency is
17617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17618 # library is relocated.
17619 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17622 # into the resulting binary.
17623 hardcode_minus_L=$hardcode_minus_L_CXX
17625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17626 # into the resulting binary.
17627 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17629 # Set to "yes" if building a shared library automatically hardcodes DIR
17630 # into the library and all subsequent libraries and executables linked
17631 # against it.
17632 hardcode_automatic=$hardcode_automatic_CXX
17634 # Set to yes if linker adds runtime paths of dependent libraries
17635 # to runtime path list.
17636 inherit_rpath=$inherit_rpath_CXX
17638 # Whether libtool must link a program against all its dependency libraries.
17639 link_all_deplibs=$link_all_deplibs_CXX
17641 # Fix the shell variable \$srcfile for the compiler.
17642 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17644 # Set to "yes" if exported symbols are required.
17645 always_export_symbols=$always_export_symbols_CXX
17647 # The commands to list exported symbols.
17648 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17650 # Symbols that should not be listed in the preloaded symbols.
17651 exclude_expsyms=$lt_exclude_expsyms_CXX
17653 # Symbols that must always be exported.
17654 include_expsyms=$lt_include_expsyms_CXX
17656 # Commands necessary for linking programs (against libraries) with templates.
17657 prelink_cmds=$lt_prelink_cmds_CXX
17659 # Specify filename containing input files.
17660 file_list_spec=$lt_file_list_spec_CXX
17662 # How to hardcode a shared library path into an executable.
17663 hardcode_action=$hardcode_action_CXX
17665 # The directories searched by this compiler when creating a shared library.
17666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17668 # Dependencies to place before and after the objects being linked to
17669 # create a shared library.
17670 predep_objects=$lt_predep_objects_CXX
17671 postdep_objects=$lt_postdep_objects_CXX
17672 predeps=$lt_predeps_CXX
17673 postdeps=$lt_postdeps_CXX
17675 # The library search path used internally by the compiler when linking
17676 # a shared library.
17677 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17679 # ### END LIBTOOL TAG CONFIG: CXX
17680 _LT_EOF
17684 esac
17685 done # for ac_tag
17688 as_fn_exit 0
17689 _ACEOF
17690 ac_clean_files=$ac_clean_files_save
17692 test $ac_write_fail = 0 ||
17693 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17696 # configure is writing to config.log, and then calls config.status.
17697 # config.status does its own redirection, appending to config.log.
17698 # Unfortunately, on DOS this fails, as config.log is still kept open
17699 # by configure, so config.status won't be able to write to it; its
17700 # output is simply discarded. So we exec the FD to /dev/null,
17701 # effectively closing config.log, so it can be properly (re)opened and
17702 # appended to by config.status. When coming back to configure, we
17703 # need to make the FD available again.
17704 if test "$no_create" != yes; then
17705 ac_cs_success=:
17706 ac_config_status_args=
17707 test "$silent" = yes &&
17708 ac_config_status_args="$ac_config_status_args --quiet"
17709 exec 5>/dev/null
17710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17711 exec 5>>config.log
17712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17713 # would make configure fail if this is the last instruction.
17714 $ac_cs_success || as_fn_exit $?
17716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}