2016-09-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
[official-gcc.git] / libcilkrts / configure
blob2380bc6c0c1e60c884e84ab2e606773f8cead01c
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 EGREP
643 GREP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 am__nodep
649 AMDEPBACKSLASH
650 AMDEP_FALSE
651 AMDEP_TRUE
652 am__quote
653 am__include
654 DEPDIR
655 OBJEXT
656 EXEEXT
657 ac_ct_CC
658 CPPFLAGS
659 LDFLAGS
660 CFLAGS
662 multi_basedir
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 am__untar
667 am__tar
668 AMTAR
669 am__leading_dot
670 SET_MAKE
672 mkdir_p
673 MKDIR_P
674 INSTALL_STRIP_PROGRAM
675 STRIP
676 install_sh
677 MAKEINFO
678 AUTOHEADER
679 AUTOMAKE
680 AUTOCONF
681 ACLOCAL
682 VERSION
683 PACKAGE
684 CYGPATH_W
685 am__isrc
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
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_maintainer_mode
743 enable_multilib
744 enable_dependency_tracking
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 --enable-maintainer-mode enable make rules and dependencies not useful
1388 (and sometimes confusing) to the casual installer
1389 --enable-multilib build many library versions (default)
1390 --disable-dependency-tracking speeds up one-time build
1391 --enable-dependency-tracking do not reject slow dependency extractors
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 am__api_version='1.11'
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if test "${ac_cv_path_install+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502 /usr/ucb/* ) ;;
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2506 # by default.
2507 for ac_prog in ginstall scoinst install; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2514 elif test $ac_prog = install &&
2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2518 else
2519 rm -rf conftest.one conftest.two conftest.dir
2520 echo one > conftest.one
2521 echo two > conftest.two
2522 mkdir conftest.dir
2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524 test -s conftest.one && test -s conftest.two &&
2525 test -s conftest.dir/conftest.one &&
2526 test -s conftest.dir/conftest.two
2527 then
2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529 break 3
2533 done
2534 done
2536 esac
2538 done
2539 IFS=$as_save_IFS
2541 rm -rf conftest.one conftest.two conftest.dir
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2546 else
2547 # As a last resort, use the slow shell script. Don't cache a
2548 # value for INSTALL within a source directory, because that will
2549 # break other packages using the cache if that directory is
2550 # removed, or if the value is a relative name.
2551 INSTALL=$ac_install_sh
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Just in case
2568 sleep 1
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2581 esac
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590 if test "$*" = "X"; then
2591 # -L didn't work.
2592 set X `ls -t "$srcdir/configure" conftest.file`
2594 rm -f conftest.file
2595 if test "$*" != "X $srcdir/configure conftest.file" \
2596 && test "$*" != "X conftest.file $srcdir/configure"; then
2598 # If neither matched, then we have a broken ls. This can happen
2599 # if, for instance, CONFIG_SHELL is bash and it inherits a
2600 # broken ls alias from the environment. This has actually
2601 # happened. Such a system could not be considered "sane".
2602 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2606 test "$2" = conftest.file
2608 then
2609 # Ok.
2611 else
2612 as_fn_error "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2630 if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640 am_missing_run="$MISSING --run "
2641 else
2642 am_missing_run=
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2647 if test x"${install_sh}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'. However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2683 done
2684 done
2685 IFS=$as_save_IFS
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2700 if test -z "$ac_cv_prog_STRIP"; then
2701 ac_ct_STRIP=$STRIP
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_ac_ct_STRIP="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 STRIP=$ac_ct_STRIP
2749 else
2750 STRIP="$ac_cv_prog_STRIP"
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if test "${ac_cv_path_mkdir+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_prog in mkdir gmkdir; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 break 3;;
2776 esac
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2784 if test "${ac_cv_path_mkdir+set}" = set; then
2785 MKDIR_P="$ac_cv_path_mkdir -p"
2786 else
2787 # As a last resort, use the slow shell script. Don't cache a
2788 # value for MKDIR_P within a source directory, because that will
2789 # break other packages using the cache if that directory is
2790 # removed, or if the value is a relative name.
2791 test -d ./--version && rmdir ./--version
2792 MKDIR_P="$ac_install_sh -d"
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2798 mkdir_p="$MKDIR_P"
2799 case $mkdir_p in
2800 [\\/$]* | ?:[\\/]*) ;;
2801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802 esac
2804 for ac_prog in gawk mawk nawk awk
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_AWK+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$AWK"; then
2814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_AWK="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 AWK=$ac_cv_prog_AWK
2834 if test -n "$AWK"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2843 test -n "$AWK" && break
2844 done
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 set x ${MAKE-make}
2849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 cat >conftest.make <<\_ACEOF
2854 SHELL = /bin/sh
2855 all:
2856 @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 _ACEOF
2858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860 *@@@%%%=?*=@@@%%%*)
2861 eval ac_cv_prog_make_${ac_make}_set=yes;;
2863 eval ac_cv_prog_make_${ac_make}_set=no;;
2864 esac
2865 rm -f conftest.make
2867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 SET_MAKE=
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 SET_MAKE="MAKE=${MAKE-make}"
2877 rm -rf .tst 2>/dev/null
2878 mkdir .tst 2>/dev/null
2879 if test -d .tst; then
2880 am__leading_dot=.
2881 else
2882 am__leading_dot=_
2884 rmdir .tst 2>/dev/null
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888 # is not polluted with repeated "-I."
2889 am__isrc=' -I$(srcdir)'
2890 # test to see if srcdir already configured
2891 if test -f $srcdir/config.status; then
2892 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898 if (cygpath --version) >/dev/null 2>/dev/null; then
2899 CYGPATH_W='cygpath -w'
2900 else
2901 CYGPATH_W=echo
2906 # Define the identity of the package.
2907 PACKAGE='cilk-runtime-library'
2908 VERSION='2.0'
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2913 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define VERSION "$VERSION"
2918 _ACEOF
2920 # Some tools Automake needs.
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936 # We need awk for the "check" target. The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility. Yes, it's still used
2939 # in the wild :-( We should find a proper way to deprecate it ...
2940 AMTAR='$${TAR-tar}'
2942 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2951 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2952 # Check whether --enable-maintainer-mode was given.
2953 if test "${enable_maintainer_mode+set}" = set; then :
2954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2955 else
2956 USE_MAINTAINER_MODE=no
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2960 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2961 if test $USE_MAINTAINER_MODE = yes; then
2962 MAINTAINER_MODE_TRUE=
2963 MAINTAINER_MODE_FALSE='#'
2964 else
2965 MAINTAINER_MODE_TRUE='#'
2966 MAINTAINER_MODE_FALSE=
2969 MAINT=$MAINTAINER_MODE_TRUE
2973 # Default to --enable-multilib
2974 # Check whether --enable-multilib was given.
2975 if test "${enable_multilib+set}" = set; then :
2976 enableval=$enable_multilib; case "$enableval" in
2977 yes) multilib=yes ;;
2978 no) multilib=no ;;
2979 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2980 esac
2981 else
2982 multilib=yes
2986 # We may get other options which we leave undocumented:
2987 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2988 # See config-ml.in if you want the gory details.
2990 if test "$srcdir" = "."; then
2991 if test "$with_target_subdir" != "."; then
2992 multi_basedir="$srcdir/$with_multisrctop../.."
2993 else
2994 multi_basedir="$srcdir/$with_multisrctop.."
2996 else
2997 multi_basedir="$srcdir/.."
3001 # Even if the default multilib is not a cross compilation,
3002 # it may be that some of the other multilibs are.
3003 if test $cross_compiling = no && test $multilib = yes \
3004 && test "x${with_multisubdir}" != x ; then
3005 cross_compiling=maybe
3008 ac_config_commands="$ac_config_commands default-1"
3011 # Test for GNU extensions. Will define _GNU_SOURCE if they're available
3012 DEPDIR="${am__leading_dot}deps"
3014 ac_config_commands="$ac_config_commands depfiles"
3017 am_make=${MAKE-make}
3018 cat > confinc << 'END'
3019 am__doit:
3020 @echo this is the am__doit target
3021 .PHONY: am__doit
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 am__include="#"
3027 am__quote=
3028 _am_result=none
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from `make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3038 esac
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=.include
3045 am__quote="\""
3046 _am_result=BSD
3048 esac
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval=$enable_dependency_tracking;
3061 if test "x$enable_dependency_tracking" != xno; then
3062 am_depcomp="$ac_aux_dir/depcomp"
3063 AMDEPBACKSLASH='\'
3064 am__nodep='_no'
3066 if test "x$enable_dependency_tracking" != xno; then
3067 AMDEP_TRUE=
3068 AMDEP_FALSE='#'
3069 else
3070 AMDEP_TRUE='#'
3071 AMDEP_FALSE=
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3104 IFS=$as_save_IFS
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3142 done
3143 done
3144 IFS=$as_save_IFS
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3168 else
3169 CC="$ac_cv_prog_CC"
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3197 IFS=$as_save_IFS
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3240 done
3241 done
3242 IFS=$as_save_IFS
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$CC" && break
3311 done
3313 if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$ac_ct_CC" && break
3355 done
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CC=$ac_ct_CC
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details." "$LINENO" 5; }
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 done
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3407 main ()
3411 return 0;
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433 done
3434 rm -f $ac_rmfiles
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3474 break;;
3475 esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479 else
3480 ac_file=''
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3483 $as_echo "$ac_file" >&6; }
3484 if test -z "$ac_file"; then :
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 { as_fn_set_status 77
3491 as_fn_error "C compiler cannot create executables
3492 See \`config.log' for more details." "$LINENO" 5; }; }
3494 ac_exeext=$ac_cv_exeext
3496 # Check that the compiler produces executables we can run. If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 # If not cross compiling, check that we can run a simple program.
3501 if test "$cross_compiling" != yes; then
3502 if { ac_try='./$ac_file'
3503 { { case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_try") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; }; then
3513 cross_compiling=no
3514 else
3515 if test "$cross_compiling" = maybe; then
3516 cross_compiling=yes
3517 else
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details." "$LINENO" 5; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3530 ac_clean_files=$ac_clean_files_save
3531 # Check that the compiler produces executables we can run. If not, either
3532 # the compiler is broken, or we cross compile.
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3534 $as_echo_n "checking whether we are cross compiling... " >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { { ac_try="$ac_link"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3552 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 # `rm'.
3555 for ac_file in conftest.exe conftest conftest.*; do
3556 test -f "$ac_file" || continue
3557 case $ac_file in
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 break;;
3561 * ) break;;
3562 esac
3563 done
3564 else
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error "cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details." "$LINENO" 5; }
3570 rm -f conftest$ac_cv_exeext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3572 $as_echo "$ac_cv_exeext" >&6; }
3574 rm -f conftest.$ac_ext
3575 EXEEXT=$ac_cv_exeext
3576 ac_exeext=$EXEEXT
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3578 $as_echo_n "checking for suffix of object files... " >&6; }
3579 if test "${ac_cv_objext+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3586 main ()
3590 return 0;
3592 _ACEOF
3593 rm -f conftest.o conftest.obj
3594 if { { ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_compile") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 for ac_file in conftest.o conftest.obj conftest.*; do
3606 test -f "$ac_file" || continue;
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610 break;;
3611 esac
3612 done
3613 else
3614 $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot compute suffix of object files: cannot compile
3620 See \`config.log' for more details." "$LINENO" 5; }
3622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3625 $as_echo "$ac_cv_objext" >&6; }
3626 OBJEXT=$ac_cv_objext
3627 ac_objext=$OBJEXT
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3629 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3630 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3637 main ()
3639 #ifndef __GNUC__
3640 choke me
3641 #endif
3644 return 0;
3646 _ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_compiler_gnu=yes
3649 else
3650 ac_compiler_gnu=no
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3658 if test $ac_compiler_gnu = yes; then
3659 GCC=yes
3660 else
3661 GCC=
3663 ac_test_CFLAGS=${CFLAGS+set}
3664 ac_save_CFLAGS=$CFLAGS
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3667 if test "${ac_cv_prog_cc_g+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_save_c_werror_flag=$ac_c_werror_flag
3671 ac_c_werror_flag=yes
3672 ac_cv_prog_cc_g=no
3673 CFLAGS="-g"
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3678 main ()
3682 return 0;
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_cv_prog_cc_g=yes
3687 else
3688 CFLAGS=""
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3693 main ()
3697 return 0;
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3702 else
3703 ac_c_werror_flag=$ac_save_c_werror_flag
3704 CFLAGS="-g"
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3709 main ()
3713 return 0;
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_g=yes
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3727 $as_echo "$ac_cv_prog_cc_g" >&6; }
3728 if test "$ac_test_CFLAGS" = set; then
3729 CFLAGS=$ac_save_CFLAGS
3730 elif test $ac_cv_prog_cc_g = yes; then
3731 if test "$GCC" = yes; then
3732 CFLAGS="-g -O2"
3733 else
3734 CFLAGS="-g"
3736 else
3737 if test "$GCC" = yes; then
3738 CFLAGS="-O2"
3739 else
3740 CFLAGS=
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 ac_cv_prog_cc_c89=no
3749 ac_save_CC=$CC
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3752 #include <stdarg.h>
3753 #include <stdio.h>
3754 #include <sys/types.h>
3755 #include <sys/stat.h>
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3760 char **p;
3761 int i;
3763 return p[i];
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3767 char *s;
3768 va_list v;
3769 va_start (v,p);
3770 s = g (p, va_arg (v,int));
3771 va_end (v);
3772 return s;
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3776 function prototypes and stuff, but not '\xHH' hex character constants.
3777 These don't provoke an error unfortunately, instead are silently treated
3778 as 'x'. The following induces an error, until -std is added to get
3779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3780 array size at least. It's necessary to write '\x00'==0 to get something
3781 that's true only with -std. */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785 inside strings and character constants. */
3786 #define FOO(x) 'x'
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3793 int argc;
3794 char **argv;
3796 main ()
3798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3800 return 0;
3802 _ACEOF
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3806 CC="$ac_save_CC $ac_arg"
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_c89=$ac_arg
3810 rm -f core conftest.err conftest.$ac_objext
3811 test "x$ac_cv_prog_cc_c89" != "xno" && break
3812 done
3813 rm -f conftest.$ac_ext
3814 CC=$ac_save_CC
3817 # AC_CACHE_VAL
3818 case "x$ac_cv_prog_cc_c89" in
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821 $as_echo "none needed" >&6; } ;;
3822 xno)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824 $as_echo "unsupported" >&6; } ;;
3826 CC="$CC $ac_cv_prog_cc_c89"
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3829 esac
3830 if test "x$ac_cv_prog_cc_c89" != xno; then :
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 depcc="$CC" am_compiler_list=
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3843 $as_echo_n "checking dependency style of $depcc... " >&6; }
3844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3848 # We make a subdir and do the tests there. Otherwise we can end up
3849 # making bogus files that we don't know about and never remove. For
3850 # instance it was reported that on HP-UX the gcc test will end up
3851 # making a dummy file named `D' -- because `-MD' means `put the output
3852 # in D'.
3853 rm -rf conftest.dir
3854 mkdir conftest.dir
3855 # Copy depcomp to subdir because otherwise we won't find it if we're
3856 # using a relative directory.
3857 cp "$am_depcomp" conftest.dir
3858 cd conftest.dir
3859 # We will build objects and dependencies in a subdirectory because
3860 # it helps to detect inapplicable dependency modes. For instance
3861 # both Tru64's cc and ICC support -MD to output dependencies as a
3862 # side effect of compilation, but ICC will put the dependencies in
3863 # the current directory while Tru64 will put them in the object
3864 # directory.
3865 mkdir sub
3867 am_cv_CC_dependencies_compiler_type=none
3868 if test "$am_compiler_list" = ""; then
3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3871 am__universal=false
3872 case " $depcc " in #(
3873 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3874 esac
3876 for depmode in $am_compiler_list; do
3877 # Setup a source with many dependencies, because some compilers
3878 # like to wrap large dependency lists on column 80 (with \), and
3879 # we should not choose a depcomp mode which is confused by this.
3881 # We need to recreate these files for each test, as the compiler may
3882 # overwrite some of them when testing with obscure command lines.
3883 # This happens at least with the AIX C compiler.
3884 : > sub/conftest.c
3885 for i in 1 2 3 4 5 6; do
3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3887 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3888 # Solaris 8's {/usr,}/bin/sh.
3889 touch sub/conftst$i.h
3890 done
3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3894 # mode. It turns out that the SunPro C++ compiler does not properly
3895 # handle `-M -o', and we need to detect this. Also, some Intel
3896 # versions had trouble with output in subdirs
3897 am__obj=sub/conftest.${OBJEXT-o}
3898 am__minus_obj="-o $am__obj"
3899 case $depmode in
3900 gcc)
3901 # This depmode causes a compiler race in universal mode.
3902 test "$am__universal" = false || continue
3904 nosideeffect)
3905 # after this tag, mechanisms are not by side-effect, so they'll
3906 # only be used when explicitly requested
3907 if test "x$enable_dependency_tracking" = xyes; then
3908 continue
3909 else
3910 break
3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3914 # This compiler won't grok `-c -o', but also, the minuso test has
3915 # not run yet. These depmodes are late enough in the game, and
3916 # so weak that their functioning should not be impacted.
3917 am__obj=conftest.${OBJEXT-o}
3918 am__minus_obj=
3920 none) break ;;
3921 esac
3922 if depmode=$depmode \
3923 source=sub/conftest.c object=$am__obj \
3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3926 >/dev/null 2>conftest.err &&
3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931 # icc doesn't choke on unknown options, it will just issue warnings
3932 # or remarks (even with -Werror). So we grep stderr for any message
3933 # that says an option was ignored or not supported.
3934 # When given -MP, icc 7.0 and 7.1 complain thusly:
3935 # icc: Command line warning: ignoring option '-M'; no argument required
3936 # The diagnosis changed in icc 8.0:
3937 # icc: Command line remark: option '-MP' not supported
3938 if (grep 'ignoring option' conftest.err ||
3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940 am_cv_CC_dependencies_compiler_type=$depmode
3941 break
3944 done
3946 cd ..
3947 rm -rf conftest.dir
3948 else
3949 am_cv_CC_dependencies_compiler_type=none
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3954 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3955 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958 test "x$enable_dependency_tracking" != xno \
3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3960 am__fastdepCC_TRUE=
3961 am__fastdepCC_FALSE='#'
3962 else
3963 am__fastdepCC_TRUE='#'
3964 am__fastdepCC_FALSE=
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3976 # On Suns, sometimes $CPP names a directory.
3977 if test -n "$CPP" && test -d "$CPP"; then
3978 CPP=
3980 if test -z "$CPP"; then
3981 if test "${ac_cv_prog_CPP+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 # Double quotes because CPP needs to be expanded
3985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3987 ac_preproc_ok=false
3988 for ac_c_preproc_warn_flag in '' yes
3990 # Use a header file that comes with gcc, so configuring glibc
3991 # with a fresh cross-compiler works.
3992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 # <limits.h> exists even on freestanding compilers.
3994 # On the NeXT, cc -E runs the code through the compiler's parser,
3995 # not just through cpp. "Syntax error" is here to catch this case.
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #ifdef __STDC__
3999 # include <limits.h>
4000 #else
4001 # include <assert.h>
4002 #endif
4003 Syntax error
4004 _ACEOF
4005 if ac_fn_c_try_cpp "$LINENO"; then :
4007 else
4008 # Broken: fails on valid input.
4009 continue
4011 rm -f conftest.err conftest.$ac_ext
4013 # OK, works on sane cases. Now check whether nonexistent headers
4014 # can be detected and how.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <ac_nonexistent.h>
4018 _ACEOF
4019 if ac_fn_c_try_cpp "$LINENO"; then :
4020 # Broken: success on invalid input.
4021 continue
4022 else
4023 # Passes both tests.
4024 ac_preproc_ok=:
4025 break
4027 rm -f conftest.err conftest.$ac_ext
4029 done
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then :
4033 break
4036 done
4037 ac_cv_prog_CPP=$CPP
4040 CPP=$ac_cv_prog_CPP
4041 else
4042 ac_cv_prog_CPP=$CPP
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4045 $as_echo "$CPP" >&6; }
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #ifdef __STDC__
4058 # include <limits.h>
4059 #else
4060 # include <assert.h>
4061 #endif
4062 Syntax error
4063 _ACEOF
4064 if ac_fn_c_try_cpp "$LINENO"; then :
4066 else
4067 # Broken: fails on valid input.
4068 continue
4070 rm -f conftest.err conftest.$ac_ext
4072 # OK, works on sane cases. Now check whether nonexistent headers
4073 # can be detected and how.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <ac_nonexistent.h>
4077 _ACEOF
4078 if ac_fn_c_try_cpp "$LINENO"; then :
4079 # Broken: success on invalid input.
4080 continue
4081 else
4082 # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4086 rm -f conftest.err conftest.$ac_ext
4088 done
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.err conftest.$ac_ext
4091 if $ac_preproc_ok; then :
4093 else
4094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4096 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." "$LINENO" 5; }
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4109 if test "${ac_cv_path_GREP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -z "$GREP"; then
4113 ac_path_GREP_found=false
4114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_prog in grep ggrep; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4124 # Check for GNU ac_path_GREP and select it if it is found.
4125 # Check for GNU $ac_path_GREP
4126 case `"$ac_path_GREP" --version 2>&1` in
4127 *GNU*)
4128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4130 ac_count=0
4131 $as_echo_n 0123456789 >"conftest.in"
4132 while :
4134 cat "conftest.in" "conftest.in" >"conftest.tmp"
4135 mv "conftest.tmp" "conftest.in"
4136 cp "conftest.in" "conftest.nl"
4137 $as_echo 'GREP' >> "conftest.nl"
4138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140 as_fn_arith $ac_count + 1 && ac_count=$as_val
4141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4142 # Best one so far, save it but keep looking for a better one
4143 ac_cv_path_GREP="$ac_path_GREP"
4144 ac_path_GREP_max=$ac_count
4146 # 10*(2^10) chars as input seems more than enough
4147 test $ac_count -gt 10 && break
4148 done
4149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150 esac
4152 $ac_path_GREP_found && break 3
4153 done
4154 done
4155 done
4156 IFS=$as_save_IFS
4157 if test -z "$ac_cv_path_GREP"; then
4158 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4160 else
4161 ac_cv_path_GREP=$GREP
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4166 $as_echo "$ac_cv_path_GREP" >&6; }
4167 GREP="$ac_cv_path_GREP"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4171 $as_echo_n "checking for egrep... " >&6; }
4172 if test "${ac_cv_path_EGREP+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4176 then ac_cv_path_EGREP="$GREP -E"
4177 else
4178 if test -z "$EGREP"; then
4179 ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in egrep; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191 # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4193 *GNU*)
4194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4196 ac_count=0
4197 $as_echo_n 0123456789 >"conftest.in"
4198 while :
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 $as_echo 'EGREP' >> "conftest.nl"
4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 as_fn_arith $ac_count + 1 && ac_count=$as_val
4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_EGREP="$ac_path_EGREP"
4210 ac_path_EGREP_max=$ac_count
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4214 done
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216 esac
4218 $ac_path_EGREP_found && break 3
4219 done
4220 done
4221 done
4222 IFS=$as_save_IFS
4223 if test -z "$ac_cv_path_EGREP"; then
4224 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4226 else
4227 ac_cv_path_EGREP=$EGREP
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4233 $as_echo "$ac_cv_path_EGREP" >&6; }
4234 EGREP="$ac_cv_path_EGREP"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4238 $as_echo_n "checking for ANSI C header files... " >&6; }
4239 if test "${ac_cv_header_stdc+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <stdlib.h>
4245 #include <stdarg.h>
4246 #include <string.h>
4247 #include <float.h>
4250 main ()
4254 return 0;
4256 _ACEOF
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_header_stdc=yes
4259 else
4260 ac_cv_header_stdc=no
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 if test $ac_cv_header_stdc = yes; then
4265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <string.h>
4270 _ACEOF
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 $EGREP "memchr" >/dev/null 2>&1; then :
4274 else
4275 ac_cv_header_stdc=no
4277 rm -f conftest*
4281 if test $ac_cv_header_stdc = yes; then
4282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <stdlib.h>
4287 _ACEOF
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 $EGREP "free" >/dev/null 2>&1; then :
4291 else
4292 ac_cv_header_stdc=no
4294 rm -f conftest*
4298 if test $ac_cv_header_stdc = yes; then
4299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300 if test "$cross_compiling" = yes; then :
4302 else
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <ctype.h>
4306 #include <stdlib.h>
4307 #if ((' ' & 0x0FF) == 0x020)
4308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4310 #else
4311 # define ISLOWER(c) \
4312 (('a' <= (c) && (c) <= 'i') \
4313 || ('j' <= (c) && (c) <= 'r') \
4314 || ('s' <= (c) && (c) <= 'z'))
4315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4316 #endif
4318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4320 main ()
4322 int i;
4323 for (i = 0; i < 256; i++)
4324 if (XOR (islower (i), ISLOWER (i))
4325 || toupper (i) != TOUPPER (i))
4326 return 2;
4327 return 0;
4329 _ACEOF
4330 if ac_fn_c_try_run "$LINENO"; then :
4332 else
4333 ac_cv_header_stdc=no
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4336 conftest.$ac_objext conftest.beam conftest.$ac_ext
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4342 $as_echo "$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4351 inttypes.h stdint.h unistd.h
4352 do :
4353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4356 eval as_val=\$$as_ac_Header
4357 if test "x$as_val" = x""yes; then :
4358 cat >>confdefs.h <<_ACEOF
4359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4360 _ACEOF
4364 done
4368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4369 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4370 MINIX=yes
4371 else
4372 MINIX=
4376 if test "$MINIX" = yes; then
4378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4384 $as_echo "#define _MINIX 1" >>confdefs.h
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 # define __EXTENSIONS__ 1
4398 $ac_includes_default
4400 main ()
4404 return 0;
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_safe_to_define___extensions__=yes
4409 else
4410 ac_cv_safe_to_define___extensions__=no
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4416 test $ac_cv_safe_to_define___extensions__ = yes &&
4417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
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 depcc="$CC" am_compiler_list=
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4974 $as_echo_n "checking dependency style of $depcc... " >&6; }
4975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4979 # We make a subdir and do the tests there. Otherwise we can end up
4980 # making bogus files that we don't know about and never remove. For
4981 # instance it was reported that on HP-UX the gcc test will end up
4982 # making a dummy file named `D' -- because `-MD' means `put the output
4983 # in D'.
4984 rm -rf conftest.dir
4985 mkdir conftest.dir
4986 # Copy depcomp to subdir because otherwise we won't find it if we're
4987 # using a relative directory.
4988 cp "$am_depcomp" conftest.dir
4989 cd conftest.dir
4990 # We will build objects and dependencies in a subdirectory because
4991 # it helps to detect inapplicable dependency modes. For instance
4992 # both Tru64's cc and ICC support -MD to output dependencies as a
4993 # side effect of compilation, but ICC will put the dependencies in
4994 # the current directory while Tru64 will put them in the object
4995 # directory.
4996 mkdir sub
4998 am_cv_CC_dependencies_compiler_type=none
4999 if test "$am_compiler_list" = ""; then
5000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5002 am__universal=false
5003 case " $depcc " in #(
5004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5005 esac
5007 for depmode in $am_compiler_list; do
5008 # Setup a source with many dependencies, because some compilers
5009 # like to wrap large dependency lists on column 80 (with \), and
5010 # we should not choose a depcomp mode which is confused by this.
5012 # We need to recreate these files for each test, as the compiler may
5013 # overwrite some of them when testing with obscure command lines.
5014 # This happens at least with the AIX C compiler.
5015 : > sub/conftest.c
5016 for i in 1 2 3 4 5 6; do
5017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5019 # Solaris 8's {/usr,}/bin/sh.
5020 touch sub/conftst$i.h
5021 done
5022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5025 # mode. It turns out that the SunPro C++ compiler does not properly
5026 # handle `-M -o', and we need to detect this. Also, some Intel
5027 # versions had trouble with output in subdirs
5028 am__obj=sub/conftest.${OBJEXT-o}
5029 am__minus_obj="-o $am__obj"
5030 case $depmode in
5031 gcc)
5032 # This depmode causes a compiler race in universal mode.
5033 test "$am__universal" = false || continue
5035 nosideeffect)
5036 # after this tag, mechanisms are not by side-effect, so they'll
5037 # only be used when explicitly requested
5038 if test "x$enable_dependency_tracking" = xyes; then
5039 continue
5040 else
5041 break
5044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5045 # This compiler won't grok `-c -o', but also, the minuso test has
5046 # not run yet. These depmodes are late enough in the game, and
5047 # so weak that their functioning should not be impacted.
5048 am__obj=conftest.${OBJEXT-o}
5049 am__minus_obj=
5051 none) break ;;
5052 esac
5053 if depmode=$depmode \
5054 source=sub/conftest.c object=$am__obj \
5055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5057 >/dev/null 2>conftest.err &&
5058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5062 # icc doesn't choke on unknown options, it will just issue warnings
5063 # or remarks (even with -Werror). So we grep stderr for any message
5064 # that says an option was ignored or not supported.
5065 # When given -MP, icc 7.0 and 7.1 complain thusly:
5066 # icc: Command line warning: ignoring option '-M'; no argument required
5067 # The diagnosis changed in icc 8.0:
5068 # icc: Command line remark: option '-MP' not supported
5069 if (grep 'ignoring option' conftest.err ||
5070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5071 am_cv_CC_dependencies_compiler_type=$depmode
5072 break
5075 done
5077 cd ..
5078 rm -rf conftest.dir
5079 else
5080 am_cv_CC_dependencies_compiler_type=none
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5085 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5089 test "x$enable_dependency_tracking" != xno \
5090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5091 am__fastdepCC_TRUE=
5092 am__fastdepCC_FALSE='#'
5093 else
5094 am__fastdepCC_TRUE='#'
5095 am__fastdepCC_FALSE=
5099 ac_ext=cpp
5100 ac_cpp='$CXXCPP $CPPFLAGS'
5101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5104 if test -z "$CXX"; then
5105 if test -n "$CCC"; then
5106 CXX=$CCC
5107 else
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_CXX+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$CXX"; then
5119 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5132 done
5133 done
5134 IFS=$as_save_IFS
5138 CXX=$ac_cv_prog_CXX
5139 if test -n "$CXX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5141 $as_echo "$CXX" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 test -n "$CXX" && break
5149 done
5151 if test -z "$CXX"; then
5152 ac_ct_CXX=$CXX
5153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$ac_ct_CXX"; then
5163 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_ac_ct_CXX="$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5178 IFS=$as_save_IFS
5182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5183 if test -n "$ac_ct_CXX"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5185 $as_echo "$ac_ct_CXX" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5192 test -n "$ac_ct_CXX" && break
5193 done
5195 if test "x$ac_ct_CXX" = x; then
5196 CXX="g++"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 CXX=$ac_ct_CXX
5210 # Provide some information about the compiler.
5211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5212 set X $ac_compile
5213 ac_compiler=$2
5214 for ac_option in --version -v -V -qversion; do
5215 { { ac_try="$ac_compiler $ac_option >&5"
5216 case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219 esac
5220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221 $as_echo "$ac_try_echo"; } >&5
5222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5223 ac_status=$?
5224 if test -s conftest.err; then
5225 sed '10a\
5226 ... rest of stderr output deleted ...
5227 10q' conftest.err >conftest.er1
5228 cat conftest.er1 >&5
5229 rm -f conftest.er1 conftest.err
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; }
5233 done
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5236 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5237 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5244 main ()
5246 #ifndef __GNUC__
5247 choke me
5248 #endif
5251 return 0;
5253 _ACEOF
5254 if ac_fn_cxx_try_compile "$LINENO"; then :
5255 ac_compiler_gnu=yes
5256 else
5257 ac_compiler_gnu=no
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5264 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5265 if test $ac_compiler_gnu = yes; then
5266 GXX=yes
5267 else
5268 GXX=
5270 ac_test_CXXFLAGS=${CXXFLAGS+set}
5271 ac_save_CXXFLAGS=$CXXFLAGS
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5273 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5274 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5278 ac_cxx_werror_flag=yes
5279 ac_cv_prog_cxx_g=no
5280 CXXFLAGS="-g"
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5285 main ()
5289 return 0;
5291 _ACEOF
5292 if ac_fn_cxx_try_compile "$LINENO"; then :
5293 ac_cv_prog_cxx_g=yes
5294 else
5295 CXXFLAGS=""
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 main ()
5304 return 0;
5306 _ACEOF
5307 if ac_fn_cxx_try_compile "$LINENO"; then :
5309 else
5310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5311 CXXFLAGS="-g"
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5316 main ()
5320 return 0;
5322 _ACEOF
5323 if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_cv_prog_cxx_g=yes
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5334 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5335 if test "$ac_test_CXXFLAGS" = set; then
5336 CXXFLAGS=$ac_save_CXXFLAGS
5337 elif test $ac_cv_prog_cxx_g = yes; then
5338 if test "$GXX" = yes; then
5339 CXXFLAGS="-g -O2"
5340 else
5341 CXXFLAGS="-g"
5343 else
5344 if test "$GXX" = yes; then
5345 CXXFLAGS="-O2"
5346 else
5347 CXXFLAGS=
5350 ac_ext=c
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 depcc="$CXX" am_compiler_list=
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named `D' -- because `-MD' means `put the output
5368 # in D'.
5369 rm -rf conftest.dir
5370 mkdir conftest.dir
5371 # Copy depcomp to subdir because otherwise we won't find it if we're
5372 # using a relative directory.
5373 cp "$am_depcomp" conftest.dir
5374 cd conftest.dir
5375 # We will build objects and dependencies in a subdirectory because
5376 # it helps to detect inapplicable dependency modes. For instance
5377 # both Tru64's cc and ICC support -MD to output dependencies as a
5378 # side effect of compilation, but ICC will put the dependencies in
5379 # the current directory while Tru64 will put them in the object
5380 # directory.
5381 mkdir sub
5383 am_cv_CXX_dependencies_compiler_type=none
5384 if test "$am_compiler_list" = ""; then
5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5387 am__universal=false
5388 case " $depcc " in #(
5389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390 esac
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5400 : > sub/conftest.c
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5404 # Solaris 8's {/usr,}/bin/sh.
5405 touch sub/conftst$i.h
5406 done
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5409 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5410 # mode. It turns out that the SunPro C++ compiler does not properly
5411 # handle `-M -o', and we need to detect this. Also, some Intel
5412 # versions had trouble with output in subdirs
5413 am__obj=sub/conftest.${OBJEXT-o}
5414 am__minus_obj="-o $am__obj"
5415 case $depmode in
5416 gcc)
5417 # This depmode causes a compiler race in universal mode.
5418 test "$am__universal" = false || continue
5420 nosideeffect)
5421 # after this tag, mechanisms are not by side-effect, so they'll
5422 # only be used when explicitly requested
5423 if test "x$enable_dependency_tracking" = xyes; then
5424 continue
5425 else
5426 break
5429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430 # This compiler won't grok `-c -o', but also, the minuso test has
5431 # not run yet. These depmodes are late enough in the game, and
5432 # so weak that their functioning should not be impacted.
5433 am__obj=conftest.${OBJEXT-o}
5434 am__minus_obj=
5436 none) break ;;
5437 esac
5438 if depmode=$depmode \
5439 source=sub/conftest.c object=$am__obj \
5440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442 >/dev/null 2>conftest.err &&
5443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447 # icc doesn't choke on unknown options, it will just issue warnings
5448 # or remarks (even with -Werror). So we grep stderr for any message
5449 # that says an option was ignored or not supported.
5450 # When given -MP, icc 7.0 and 7.1 complain thusly:
5451 # icc: Command line warning: ignoring option '-M'; no argument required
5452 # The diagnosis changed in icc 8.0:
5453 # icc: Command line remark: option '-MP' not supported
5454 if (grep 'ignoring option' conftest.err ||
5455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456 am_cv_CXX_dependencies_compiler_type=$depmode
5457 break
5460 done
5462 cd ..
5463 rm -rf conftest.dir
5464 else
5465 am_cv_CXX_dependencies_compiler_type=none
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5471 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5476 am__fastdepCXX_TRUE=
5477 am__fastdepCXX_FALSE='#'
5478 else
5479 am__fastdepCXX_TRUE='#'
5480 am__fastdepCXX_FALSE=
5484 # AC_PROG_LIBTOOL
5485 # AC_CONFIG_MACRO_DIR([..])
5486 ac_config_files="$ac_config_files Makefile libcilkrts.spec"
5488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5489 # for constant arguments. Useless!
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5491 $as_echo_n "checking for working alloca.h... " >&6; }
5492 if test "${ac_cv_working_alloca_h+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 #include <alloca.h>
5499 main ()
5501 char *p = (char *) alloca (2 * sizeof (int));
5502 if (p) return 0;
5504 return 0;
5506 _ACEOF
5507 if ac_fn_c_try_link "$LINENO"; then :
5508 ac_cv_working_alloca_h=yes
5509 else
5510 ac_cv_working_alloca_h=no
5512 rm -f core conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5516 $as_echo "$ac_cv_working_alloca_h" >&6; }
5517 if test $ac_cv_working_alloca_h = yes; then
5519 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5524 $as_echo_n "checking for alloca... " >&6; }
5525 if test "${ac_cv_func_alloca_works+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #ifdef __GNUC__
5531 # define alloca __builtin_alloca
5532 #else
5533 # ifdef _MSC_VER
5534 # include <malloc.h>
5535 # define alloca _alloca
5536 # else
5537 # ifdef HAVE_ALLOCA_H
5538 # include <alloca.h>
5539 # else
5540 # ifdef _AIX
5541 #pragma alloca
5542 # else
5543 # ifndef alloca /* predefined by HP cc +Olibcalls */
5544 char *alloca ();
5545 # endif
5546 # endif
5547 # endif
5548 # endif
5549 #endif
5552 main ()
5554 char *p = (char *) alloca (1);
5555 if (p) return 0;
5557 return 0;
5559 _ACEOF
5560 if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_func_alloca_works=yes
5562 else
5563 ac_cv_func_alloca_works=no
5565 rm -f core conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5569 $as_echo "$ac_cv_func_alloca_works" >&6; }
5571 if test $ac_cv_func_alloca_works = yes; then
5573 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5575 else
5576 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5577 # that cause trouble. Some versions do not even contain alloca or
5578 # contain a buggy version. If you still want to use their alloca,
5579 # use ar to extract alloca.o from them instead of compiling alloca.c.
5581 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5583 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5587 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5588 if test "${ac_cv_os_cray+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #if defined CRAY && ! defined CRAY2
5594 webecray
5595 #else
5596 wenotbecray
5597 #endif
5599 _ACEOF
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 $EGREP "webecray" >/dev/null 2>&1; then :
5602 ac_cv_os_cray=yes
5603 else
5604 ac_cv_os_cray=no
5606 rm -f conftest*
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5610 $as_echo "$ac_cv_os_cray" >&6; }
5611 if test $ac_cv_os_cray = yes; then
5612 for ac_func in _getb67 GETB67 getb67; do
5613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5615 eval as_val=\$$as_ac_var
5616 if test "x$as_val" = x""yes; then :
5618 cat >>confdefs.h <<_ACEOF
5619 #define CRAY_STACKSEG_END $ac_func
5620 _ACEOF
5622 break
5625 done
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5629 $as_echo_n "checking stack direction for C alloca... " >&6; }
5630 if test "${ac_cv_c_stack_direction+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test "$cross_compiling" = yes; then :
5634 ac_cv_c_stack_direction=0
5635 else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 $ac_includes_default
5640 find_stack_direction ()
5642 static char *addr = 0;
5643 auto char dummy;
5644 if (addr == 0)
5646 addr = &dummy;
5647 return find_stack_direction ();
5649 else
5650 return (&dummy > addr) ? 1 : -1;
5654 main ()
5656 return find_stack_direction () < 0;
5658 _ACEOF
5659 if ac_fn_c_try_run "$LINENO"; then :
5660 ac_cv_c_stack_direction=1
5661 else
5662 ac_cv_c_stack_direction=-1
5664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5665 conftest.$ac_objext conftest.beam conftest.$ac_ext
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5670 $as_echo "$ac_cv_c_stack_direction" >&6; }
5671 cat >>confdefs.h <<_ACEOF
5672 #define STACK_DIRECTION $ac_cv_c_stack_direction
5673 _ACEOF
5679 # Check whether the target supports protected visibility.
5680 save_CFLAGS="$CFLAGS"
5681 CFLAGS="$CFLAGS -Werror"
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 void __attribute__((visibility("protected"))) foo(void) { }
5686 main ()
5690 return 0;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 libcilkrts_cv_have_attribute_visibility=yes
5695 else
5696 libcilkrts_cv_have_attribute_visibility=no
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 CFLAGS="$save_CFLAGS"
5700 if test $libcilkrts_cv_have_attribute_visibility = yes; then
5702 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
5706 # Get target configury.
5707 . ${srcdir}/configure.tgt
5708 if test -n "$UNSUPPORTED"; then
5709 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
5712 if test "${multilib}" = "yes"; then
5713 multilib_arg="--enable-multilib"
5714 else
5715 multilib_arg=
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5719 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5720 # Check whether --enable-version-specific-runtime-libs was given.
5721 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5722 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5723 yes) enable_version_specific_runtime_libs=yes ;;
5724 no) enable_version_specific_runtime_libs=no ;;
5725 *) as_fn_error "Unknown argument to enable/disable version-specific libs
5726 " "$LINENO" 5;;
5727 esac
5728 else
5729 enable_version_specific_runtime_libs=no
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5733 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5736 # Calculate toolexeclibdir
5737 # Also toolexecdir, though it's only used in toolexeclibdir
5738 case ${enable_version_specific_runtime_libs} in
5739 yes)
5740 # Need the gcc compiler version to know where to install libraries
5741 # and header files if --enable-version-specific-runtime-libs option
5742 # is selected.
5743 toolexecdir='$(libdir)/gcc/$(target_alias)'
5744 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5747 if test -n "$with_cross_host" &&
5748 test x"$with_cross_host" != x"no"; then
5749 # Install a library built with a cross compiler in tooldir, not libdir.
5750 toolexecdir='$(exec_prefix)/$(target_alias)'
5751 toolexeclibdir='$(toolexecdir)/lib'
5752 else
5753 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5754 toolexeclibdir='$(libdir)'
5756 multi_os_directory=`$CC -print-multi-os-directory`
5757 case $multi_os_directory in
5758 .) ;; # Avoid trailing /.
5759 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5760 esac
5762 esac
5764 # Set config_dir based on the target. config_dir specifies where to get
5765 # target-specific files. The generic implementation is incomplete, but
5766 # contains information on what's needed
5767 case "${target}" in
5769 x86_64-*-*)
5770 config_dir="x86"
5773 i?86-*-*)
5774 config_dir="x86"
5777 arm-*-*)
5778 config_dir="arm"
5782 config_dir="generic"
5785 esac
5788 # We have linker scripts for appropriate operating systems
5789 linux_linker_script=no
5790 case "${host}" in
5791 *-*-linux*)
5792 linux_linker_script=yes
5794 esac
5795 if test "$linux_linker_script" = "yes"; then
5796 LINUX_LINKER_SCRIPT_TRUE=
5797 LINUX_LINKER_SCRIPT_FALSE='#'
5798 else
5799 LINUX_LINKER_SCRIPT_TRUE='#'
5800 LINUX_LINKER_SCRIPT_FALSE=
5804 mac_linker_script=no
5805 case "${host}" in
5806 *-*-apple*)
5807 mac_linker_script=yes
5809 esac
5810 if test "$mac_linker_script" = "yes"; then
5811 MAC_LINKER_SCRIPT_TRUE=
5812 MAC_LINKER_SCRIPT_FALSE='#'
5813 else
5814 MAC_LINKER_SCRIPT_TRUE='#'
5815 MAC_LINKER_SCRIPT_FALSE=
5819 enable_dlopen=yes
5823 case `pwd` in
5824 *\ * | *\ *)
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5826 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5827 esac
5831 macro_version='2.2.7a'
5832 macro_revision='1.3134'
5846 ltmain="$ac_aux_dir/ltmain.sh"
5848 # Backslashify metacharacters that are still active within
5849 # double-quoted strings.
5850 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5852 # Same as above, but do not quote variable references.
5853 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5855 # Sed substitution to delay expansion of an escaped shell variable in a
5856 # double_quote_subst'ed string.
5857 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5859 # Sed substitution to delay expansion of an escaped single quote.
5860 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5862 # Sed substitution to avoid accidental globbing in evaled expressions
5863 no_glob_subst='s/\*/\\\*/g'
5865 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5866 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5867 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5870 $as_echo_n "checking how to print strings... " >&6; }
5871 # Test print first, because it will be a builtin if present.
5872 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5873 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5874 ECHO='print -r --'
5875 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5876 ECHO='printf %s\n'
5877 else
5878 # Use this function as a fallback that always works.
5879 func_fallback_echo ()
5881 eval 'cat <<_LTECHO_EOF
5883 _LTECHO_EOF'
5885 ECHO='func_fallback_echo'
5888 # func_echo_all arg...
5889 # Invoke $ECHO with all args, space-separated.
5890 func_echo_all ()
5892 $ECHO ""
5895 case "$ECHO" in
5896 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5897 $as_echo "printf" >&6; } ;;
5898 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5899 $as_echo "print -r" >&6; } ;;
5900 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5901 $as_echo "cat" >&6; } ;;
5902 esac
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5918 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5919 if test "${ac_cv_path_SED+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5923 for ac_i in 1 2 3 4 5 6 7; do
5924 ac_script="$ac_script$as_nl$ac_script"
5925 done
5926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5927 { ac_script=; unset ac_script;}
5928 if test -z "$SED"; then
5929 ac_path_SED_found=false
5930 # Loop through the user's path and test for each of PROGNAME-LIST
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_prog in sed gsed; do
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5939 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5940 # Check for GNU ac_path_SED and select it if it is found.
5941 # Check for GNU $ac_path_SED
5942 case `"$ac_path_SED" --version 2>&1` in
5943 *GNU*)
5944 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5946 ac_count=0
5947 $as_echo_n 0123456789 >"conftest.in"
5948 while :
5950 cat "conftest.in" "conftest.in" >"conftest.tmp"
5951 mv "conftest.tmp" "conftest.in"
5952 cp "conftest.in" "conftest.nl"
5953 $as_echo '' >> "conftest.nl"
5954 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5956 as_fn_arith $ac_count + 1 && ac_count=$as_val
5957 if test $ac_count -gt ${ac_path_SED_max-0}; then
5958 # Best one so far, save it but keep looking for a better one
5959 ac_cv_path_SED="$ac_path_SED"
5960 ac_path_SED_max=$ac_count
5962 # 10*(2^10) chars as input seems more than enough
5963 test $ac_count -gt 10 && break
5964 done
5965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5966 esac
5968 $ac_path_SED_found && break 3
5969 done
5970 done
5971 done
5972 IFS=$as_save_IFS
5973 if test -z "$ac_cv_path_SED"; then
5974 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5976 else
5977 ac_cv_path_SED=$SED
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5982 $as_echo "$ac_cv_path_SED" >&6; }
5983 SED="$ac_cv_path_SED"
5984 rm -f conftest.sed
5986 test -z "$SED" && SED=sed
5987 Xsed="$SED -e 1s/^X//"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6000 $as_echo_n "checking for fgrep... " >&6; }
6001 if test "${ac_cv_path_FGREP+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6005 then ac_cv_path_FGREP="$GREP -F"
6006 else
6007 if test -z "$FGREP"; then
6008 ac_path_FGREP_found=false
6009 # Loop through the user's path and test for each of PROGNAME-LIST
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_prog in fgrep; do
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6018 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6019 # Check for GNU ac_path_FGREP and select it if it is found.
6020 # Check for GNU $ac_path_FGREP
6021 case `"$ac_path_FGREP" --version 2>&1` in
6022 *GNU*)
6023 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6025 ac_count=0
6026 $as_echo_n 0123456789 >"conftest.in"
6027 while :
6029 cat "conftest.in" "conftest.in" >"conftest.tmp"
6030 mv "conftest.tmp" "conftest.in"
6031 cp "conftest.in" "conftest.nl"
6032 $as_echo 'FGREP' >> "conftest.nl"
6033 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6035 as_fn_arith $ac_count + 1 && ac_count=$as_val
6036 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6037 # Best one so far, save it but keep looking for a better one
6038 ac_cv_path_FGREP="$ac_path_FGREP"
6039 ac_path_FGREP_max=$ac_count
6041 # 10*(2^10) chars as input seems more than enough
6042 test $ac_count -gt 10 && break
6043 done
6044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6045 esac
6047 $ac_path_FGREP_found && break 3
6048 done
6049 done
6050 done
6051 IFS=$as_save_IFS
6052 if test -z "$ac_cv_path_FGREP"; then
6053 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6055 else
6056 ac_cv_path_FGREP=$FGREP
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6062 $as_echo "$ac_cv_path_FGREP" >&6; }
6063 FGREP="$ac_cv_path_FGREP"
6066 test -z "$GREP" && GREP=grep
6086 # Check whether --with-gnu-ld was given.
6087 if test "${with_gnu_ld+set}" = set; then :
6088 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6089 else
6090 with_gnu_ld=no
6093 ac_prog=ld
6094 if test "$GCC" = yes; then
6095 # Check if gcc -print-prog-name=ld gives a path.
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6097 $as_echo_n "checking for ld used by $CC... " >&6; }
6098 case $host in
6099 *-*-mingw*)
6100 # gcc leaves a trailing carriage return which upsets mingw
6101 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6103 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6104 esac
6105 case $ac_prog in
6106 # Accept absolute paths.
6107 [\\/]* | ?:[\\/]*)
6108 re_direlt='/[^/][^/]*/\.\./'
6109 # Canonicalize the pathname of ld
6110 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6111 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6112 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6113 done
6114 test -z "$LD" && LD="$ac_prog"
6117 # If it fails, then pretend we aren't using GCC.
6118 ac_prog=ld
6121 # If it is relative, then search for the first ld in PATH.
6122 with_gnu_ld=unknown
6124 esac
6125 elif test "$with_gnu_ld" = yes; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6127 $as_echo_n "checking for GNU ld... " >&6; }
6128 else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6130 $as_echo_n "checking for non-GNU ld... " >&6; }
6132 if test "${lt_cv_path_LD+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -z "$LD"; then
6136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6137 for ac_dir in $PATH; do
6138 IFS="$lt_save_ifs"
6139 test -z "$ac_dir" && ac_dir=.
6140 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6141 lt_cv_path_LD="$ac_dir/$ac_prog"
6142 # Check to see if the program is GNU ld. I'd rather use --version,
6143 # but apparently some variants of GNU ld only accept -v.
6144 # Break only if it was the GNU/non-GNU ld that we prefer.
6145 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6146 *GNU* | *'with BFD'*)
6147 test "$with_gnu_ld" != no && break
6150 test "$with_gnu_ld" != yes && break
6152 esac
6154 done
6155 IFS="$lt_save_ifs"
6156 else
6157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6161 LD="$lt_cv_path_LD"
6162 if test -n "$LD"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6164 $as_echo "$LD" >&6; }
6165 else
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6169 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6171 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6172 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6176 case `$LD -v 2>&1 </dev/null` in
6177 *GNU* | *'with BFD'*)
6178 lt_cv_prog_gnu_ld=yes
6181 lt_cv_prog_gnu_ld=no
6183 esac
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6186 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6187 with_gnu_ld=$lt_cv_prog_gnu_ld
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6198 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6199 if test "${lt_cv_path_NM+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$NM"; then
6203 # Let the user override the test.
6204 lt_cv_path_NM="$NM"
6205 else
6206 lt_nm_to_check="${ac_tool_prefix}nm"
6207 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6208 lt_nm_to_check="$lt_nm_to_check nm"
6210 for lt_tmp_nm in $lt_nm_to_check; do
6211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6212 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6213 IFS="$lt_save_ifs"
6214 test -z "$ac_dir" && ac_dir=.
6215 tmp_nm="$ac_dir/$lt_tmp_nm"
6216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6217 # Check to see if the nm accepts a BSD-compat flag.
6218 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6219 # nm: unknown option "B" ignored
6220 # Tru64's nm complains that /dev/null is an invalid object file
6221 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6222 */dev/null* | *'Invalid file or object type'*)
6223 lt_cv_path_NM="$tmp_nm -B"
6224 break
6227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6228 */dev/null*)
6229 lt_cv_path_NM="$tmp_nm -p"
6230 break
6233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6234 continue # so that we can try to find one that supports BSD flags
6236 esac
6238 esac
6240 done
6241 IFS="$lt_save_ifs"
6242 done
6243 : ${lt_cv_path_NM=no}
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6247 $as_echo "$lt_cv_path_NM" >&6; }
6248 if test "$lt_cv_path_NM" != "no"; then
6249 NM="$lt_cv_path_NM"
6250 else
6251 # Didn't find any BSD compatible name lister, look for dumpbin.
6252 if test -n "$DUMPBIN"; then :
6253 # Let the user override the test.
6254 else
6255 if test -n "$ac_tool_prefix"; then
6256 for ac_prog in dumpbin "link -dump"
6258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -n "$DUMPBIN"; then
6266 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6279 done
6280 done
6281 IFS=$as_save_IFS
6285 DUMPBIN=$ac_cv_prog_DUMPBIN
6286 if test -n "$DUMPBIN"; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6288 $as_echo "$DUMPBIN" >&6; }
6289 else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6295 test -n "$DUMPBIN" && break
6296 done
6298 if test -z "$DUMPBIN"; then
6299 ac_ct_DUMPBIN=$DUMPBIN
6300 for ac_prog in dumpbin "link -dump"
6302 # Extract the first word of "$ac_prog", so it can be a program name with args.
6303 set dummy $ac_prog; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$ac_ct_DUMPBIN"; then
6310 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6323 done
6324 done
6325 IFS=$as_save_IFS
6329 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6330 if test -n "$ac_ct_DUMPBIN"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6332 $as_echo "$ac_ct_DUMPBIN" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6339 test -n "$ac_ct_DUMPBIN" && break
6340 done
6342 if test "x$ac_ct_DUMPBIN" = x; then
6343 DUMPBIN=":"
6344 else
6345 case $cross_compiling:$ac_tool_warned in
6346 yes:)
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349 ac_tool_warned=yes ;;
6350 esac
6351 DUMPBIN=$ac_ct_DUMPBIN
6355 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6356 *COFF*)
6357 DUMPBIN="$DUMPBIN -symbols"
6360 DUMPBIN=:
6362 esac
6365 if test "$DUMPBIN" != ":"; then
6366 NM="$DUMPBIN"
6369 test -z "$NM" && NM=nm
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6377 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6378 if test "${lt_cv_nm_interface+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 lt_cv_nm_interface="BSD nm"
6382 echo "int some_variable = 0;" > conftest.$ac_ext
6383 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6384 (eval "$ac_compile" 2>conftest.err)
6385 cat conftest.err >&5
6386 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6387 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6388 cat conftest.err >&5
6389 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6390 cat conftest.out >&5
6391 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6392 lt_cv_nm_interface="MS dumpbin"
6394 rm -f conftest*
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6397 $as_echo "$lt_cv_nm_interface" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6400 $as_echo_n "checking whether ln -s works... " >&6; }
6401 LN_S=$as_ln_s
6402 if test "$LN_S" = "ln -s"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6404 $as_echo "yes" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6407 $as_echo "no, using $LN_S" >&6; }
6410 # find the maximum length of command line arguments
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6412 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6413 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6417 teststring="ABCD"
6419 case $build_os in
6420 msdosdjgpp*)
6421 # On DJGPP, this test can blow up pretty badly due to problems in libc
6422 # (any single argument exceeding 2000 bytes causes a buffer overrun
6423 # during glob expansion). Even if it were fixed, the result of this
6424 # check would be larger than it should be.
6425 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6428 gnu*)
6429 # Under GNU Hurd, this test is not required because there is
6430 # no limit to the length of command line arguments.
6431 # Libtool will interpret -1 as no limit whatsoever
6432 lt_cv_sys_max_cmd_len=-1;
6435 cygwin* | mingw* | cegcc*)
6436 # On Win9x/ME, this test blows up -- it succeeds, but takes
6437 # about 5 minutes as the teststring grows exponentially.
6438 # Worse, since 9x/ME are not pre-emptively multitasking,
6439 # you end up with a "frozen" computer, even though with patience
6440 # the test eventually succeeds (with a max line length of 256k).
6441 # Instead, let's just punt: use the minimum linelength reported by
6442 # all of the supported platforms: 8192 (on NT/2K/XP).
6443 lt_cv_sys_max_cmd_len=8192;
6446 mint*)
6447 # On MiNT this can take a long time and run out of memory.
6448 lt_cv_sys_max_cmd_len=8192;
6451 amigaos*)
6452 # On AmigaOS with pdksh, this test takes hours, literally.
6453 # So we just punt and use a minimum line length of 8192.
6454 lt_cv_sys_max_cmd_len=8192;
6457 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6458 # This has been around since 386BSD, at least. Likely further.
6459 if test -x /sbin/sysctl; then
6460 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6461 elif test -x /usr/sbin/sysctl; then
6462 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6463 else
6464 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6466 # And add a safety zone
6467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6471 interix*)
6472 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6473 lt_cv_sys_max_cmd_len=196608
6476 osf*)
6477 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6478 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6479 # nice to cause kernel panics so lets avoid the loop below.
6480 # First set a reasonable default.
6481 lt_cv_sys_max_cmd_len=16384
6483 if test -x /sbin/sysconfig; then
6484 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6485 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6486 esac
6489 sco3.2v5*)
6490 lt_cv_sys_max_cmd_len=102400
6492 sysv5* | sco5v6* | sysv4.2uw2*)
6493 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6494 if test -n "$kargmax"; then
6495 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6496 else
6497 lt_cv_sys_max_cmd_len=32768
6501 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6502 if test -n "$lt_cv_sys_max_cmd_len"; then
6503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6505 else
6506 # Make teststring a little bigger before we do anything with it.
6507 # a 1K string should be a reasonable start.
6508 for i in 1 2 3 4 5 6 7 8 ; do
6509 teststring=$teststring$teststring
6510 done
6511 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6512 # If test is not a shell built-in, we'll probably end up computing a
6513 # maximum length that is only half of the actual maximum length, but
6514 # we can't tell.
6515 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6516 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6517 test $i != 17 # 1/2 MB should be enough
6519 i=`expr $i + 1`
6520 teststring=$teststring$teststring
6521 done
6522 # Only check the string length outside the loop.
6523 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6524 teststring=
6525 # Add a significant safety factor because C++ compilers can tack on
6526 # massive amounts of additional arguments before passing them to the
6527 # linker. It appears as though 1/2 is a usable value.
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6531 esac
6535 if test -n $lt_cv_sys_max_cmd_len ; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6537 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6540 $as_echo "none" >&6; }
6542 max_cmd_len=$lt_cv_sys_max_cmd_len
6549 : ${CP="cp -f"}
6550 : ${MV="mv -f"}
6551 : ${RM="rm -f"}
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6554 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6555 # Try some XSI features
6556 xsi_shell=no
6557 ( _lt_dummy="a/b/c"
6558 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6559 = c,a/b,, \
6560 && eval 'test $(( 1 + 1 )) -eq 2 \
6561 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6562 && xsi_shell=yes
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6564 $as_echo "$xsi_shell" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6568 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6569 lt_shell_append=no
6570 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6571 >/dev/null 2>&1 \
6572 && lt_shell_append=yes
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6574 $as_echo "$lt_shell_append" >&6; }
6577 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6578 lt_unset=unset
6579 else
6580 lt_unset=false
6587 # test EBCDIC or ASCII
6588 case `echo X|tr X '\101'` in
6589 A) # ASCII based system
6590 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6591 lt_SP2NL='tr \040 \012'
6592 lt_NL2SP='tr \015\012 \040\040'
6594 *) # EBCDIC based system
6595 lt_SP2NL='tr \100 \n'
6596 lt_NL2SP='tr \r\n \100\100'
6598 esac
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6609 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6610 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 lt_cv_ld_reload_flag='-r'
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6616 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6617 reload_flag=$lt_cv_ld_reload_flag
6618 case $reload_flag in
6619 "" | " "*) ;;
6620 *) reload_flag=" $reload_flag" ;;
6621 esac
6622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6623 case $host_os in
6624 darwin*)
6625 if test "$GCC" = yes; then
6626 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6627 else
6628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6631 esac
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 if test -n "$OBJDUMP"; then
6650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6663 done
6664 done
6665 IFS=$as_save_IFS
6669 OBJDUMP=$ac_cv_prog_OBJDUMP
6670 if test -n "$OBJDUMP"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6672 $as_echo "$OBJDUMP" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6680 if test -z "$ac_cv_prog_OBJDUMP"; then
6681 ac_ct_OBJDUMP=$OBJDUMP
6682 # Extract the first word of "objdump", so it can be a program name with args.
6683 set dummy objdump; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 if test -n "$ac_ct_OBJDUMP"; then
6690 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6703 done
6704 done
6705 IFS=$as_save_IFS
6709 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6710 if test -n "$ac_ct_OBJDUMP"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6712 $as_echo "$ac_ct_OBJDUMP" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6718 if test "x$ac_ct_OBJDUMP" = x; then
6719 OBJDUMP="false"
6720 else
6721 case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6726 esac
6727 OBJDUMP=$ac_ct_OBJDUMP
6729 else
6730 OBJDUMP="$ac_cv_prog_OBJDUMP"
6733 test -z "$OBJDUMP" && OBJDUMP=objdump
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6744 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6745 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 lt_cv_file_magic_cmd='$MAGIC_CMD'
6749 lt_cv_file_magic_test_file=
6750 lt_cv_deplibs_check_method='unknown'
6751 # Need to set the preceding variable on all platforms that support
6752 # interlibrary dependencies.
6753 # 'none' -- dependencies not supported.
6754 # `unknown' -- same as none, but documents that we really don't know.
6755 # 'pass_all' -- all dependencies passed with no checks.
6756 # 'test_compile' -- check by making test program.
6757 # 'file_magic [[regex]]' -- check by looking for files in library path
6758 # which responds to the $file_magic_cmd with a given extended regex.
6759 # If you have `file' or equivalent on your system and you're not sure
6760 # whether `pass_all' will *always* work, you probably want this one.
6762 case $host_os in
6763 aix[4-9]*)
6764 lt_cv_deplibs_check_method=pass_all
6767 beos*)
6768 lt_cv_deplibs_check_method=pass_all
6771 bsdi[45]*)
6772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6773 lt_cv_file_magic_cmd='/usr/bin/file -L'
6774 lt_cv_file_magic_test_file=/shlib/libc.so
6777 cygwin*)
6778 # func_win32_libid is a shell function defined in ltmain.sh
6779 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6780 lt_cv_file_magic_cmd='func_win32_libid'
6783 mingw* | pw32*)
6784 # Base MSYS/MinGW do not provide the 'file' command needed by
6785 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6786 # unless we find 'file', for example because we are cross-compiling.
6787 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6788 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6789 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6790 lt_cv_file_magic_cmd='func_win32_libid'
6791 else
6792 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6793 lt_cv_file_magic_cmd='$OBJDUMP -f'
6797 cegcc*)
6798 # use the weaker test based on 'objdump'. See mingw*.
6799 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6800 lt_cv_file_magic_cmd='$OBJDUMP -f'
6803 darwin* | rhapsody*)
6804 lt_cv_deplibs_check_method=pass_all
6807 freebsd* | dragonfly*)
6808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6809 case $host_cpu in
6810 i*86 )
6811 # Not sure whether the presence of OpenBSD here was a mistake.
6812 # Let's accept both of them until this is cleared up.
6813 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6814 lt_cv_file_magic_cmd=/usr/bin/file
6815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6817 esac
6818 else
6819 lt_cv_deplibs_check_method=pass_all
6823 gnu*)
6824 lt_cv_deplibs_check_method=pass_all
6827 haiku*)
6828 lt_cv_deplibs_check_method=pass_all
6831 hpux10.20* | hpux11*)
6832 lt_cv_file_magic_cmd=/usr/bin/file
6833 case $host_cpu in
6834 ia64*)
6835 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6836 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6838 hppa*64*)
6839 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]'
6840 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6844 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6846 esac
6849 interix[3-9]*)
6850 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6854 irix5* | irix6* | nonstopux*)
6855 case $LD in
6856 *-32|*"-32 ") libmagic=32-bit;;
6857 *-n32|*"-n32 ") libmagic=N32;;
6858 *-64|*"-64 ") libmagic=64-bit;;
6859 *) libmagic=never-match;;
6860 esac
6861 lt_cv_deplibs_check_method=pass_all
6864 # This must be Linux ELF.
6865 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6866 lt_cv_deplibs_check_method=pass_all
6869 netbsd*)
6870 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6872 else
6873 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6877 newos6*)
6878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6879 lt_cv_file_magic_cmd=/usr/bin/file
6880 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6883 *nto* | *qnx*)
6884 lt_cv_deplibs_check_method=pass_all
6887 openbsd*)
6888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6889 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6890 else
6891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6895 osf3* | osf4* | osf5*)
6896 lt_cv_deplibs_check_method=pass_all
6899 rdos*)
6900 lt_cv_deplibs_check_method=pass_all
6903 solaris*)
6904 lt_cv_deplibs_check_method=pass_all
6907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6908 lt_cv_deplibs_check_method=pass_all
6911 sysv4 | sysv4.3*)
6912 case $host_vendor in
6913 motorola)
6914 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]'
6915 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6917 ncr)
6918 lt_cv_deplibs_check_method=pass_all
6920 sequent)
6921 lt_cv_file_magic_cmd='/bin/file'
6922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6924 sni)
6925 lt_cv_file_magic_cmd='/bin/file'
6926 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6927 lt_cv_file_magic_test_file=/lib/libc.so
6929 siemens)
6930 lt_cv_deplibs_check_method=pass_all
6933 lt_cv_deplibs_check_method=pass_all
6935 esac
6938 tpf*)
6939 lt_cv_deplibs_check_method=pass_all
6941 esac
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6945 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6946 file_magic_cmd=$lt_cv_file_magic_cmd
6947 deplibs_check_method=$lt_cv_deplibs_check_method
6948 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}ar; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_AR+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$AR"; then
6970 ac_cv_prog_AR="$AR" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_AR="${ac_tool_prefix}ar"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6983 done
6984 done
6985 IFS=$as_save_IFS
6989 AR=$ac_cv_prog_AR
6990 if test -n "$AR"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6992 $as_echo "$AR" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 if test -z "$ac_cv_prog_AR"; then
7001 ac_ct_AR=$AR
7002 # Extract the first word of "ar", so it can be a program name with args.
7003 set dummy ar; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$ac_ct_AR"; then
7010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_AR="ar"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7029 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7030 if test -n "$ac_ct_AR"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7032 $as_echo "$ac_ct_AR" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7038 if test "x$ac_ct_AR" = x; then
7039 AR="false"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047 AR=$ac_ct_AR
7049 else
7050 AR="$ac_cv_prog_AR"
7053 test -z "$AR" && AR=ar
7054 test -z "$AR_FLAGS" && AR_FLAGS=cru
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}strip; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if test "${ac_cv_prog_STRIP+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$STRIP"; then
7075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7088 done
7089 done
7090 IFS=$as_save_IFS
7094 STRIP=$ac_cv_prog_STRIP
7095 if test -n "$STRIP"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7097 $as_echo "$STRIP" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7105 if test -z "$ac_cv_prog_STRIP"; then
7106 ac_ct_STRIP=$STRIP
7107 # Extract the first word of "strip", so it can be a program name with args.
7108 set dummy strip; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$ac_ct_STRIP"; then
7115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_ac_ct_STRIP="strip"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7130 IFS=$as_save_IFS
7134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7135 if test -n "$ac_ct_STRIP"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7137 $as_echo "$ac_ct_STRIP" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7143 if test "x$ac_ct_STRIP" = x; then
7144 STRIP=":"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 STRIP=$ac_ct_STRIP
7154 else
7155 STRIP="$ac_cv_prog_STRIP"
7158 test -z "$STRIP" && STRIP=:
7165 if test -n "$ac_tool_prefix"; then
7166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7189 IFS=$as_save_IFS
7193 RANLIB=$ac_cv_prog_RANLIB
7194 if test -n "$RANLIB"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7196 $as_echo "$RANLIB" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7204 if test -z "$ac_cv_prog_RANLIB"; then
7205 ac_ct_RANLIB=$RANLIB
7206 # Extract the first word of "ranlib", so it can be a program name with args.
7207 set dummy ranlib; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$ac_ct_RANLIB"; then
7214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_ac_ct_RANLIB="ranlib"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7227 done
7228 done
7229 IFS=$as_save_IFS
7233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7234 if test -n "$ac_ct_RANLIB"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7236 $as_echo "$ac_ct_RANLIB" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7242 if test "x$ac_ct_RANLIB" = x; then
7243 RANLIB=":"
7244 else
7245 case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251 RANLIB=$ac_ct_RANLIB
7253 else
7254 RANLIB="$ac_cv_prog_RANLIB"
7257 test -z "$RANLIB" && RANLIB=:
7264 # Determine commands to create old-style static archives.
7265 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7266 old_postinstall_cmds='chmod 644 $oldlib'
7267 old_postuninstall_cmds=
7269 if test -n "$RANLIB"; then
7270 case $host_os in
7271 openbsd*)
7272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7277 esac
7278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7281 case $host_os in
7282 darwin*)
7283 lock_old_archive_extraction=yes ;;
7285 lock_old_archive_extraction=no ;;
7286 esac
7326 # If no C compiler was specified, use CC.
7327 LTCC=${LTCC-"$CC"}
7329 # If no C compiler flags were specified, use CFLAGS.
7330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7332 # Allow CC to be a program name with arguments.
7333 compiler=$CC
7336 # Check for command to grab the raw symbol name followed by C symbol from nm.
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7338 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7339 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7343 # These are sane defaults that work on at least a few old systems.
7344 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7346 # Character class describing NM global symbol codes.
7347 symcode='[BCDEGRST]'
7349 # Regexp to match symbols that can be accessed directly from C.
7350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7352 # Define system-specific variables.
7353 case $host_os in
7354 aix*)
7355 symcode='[BCDT]'
7357 cygwin* | mingw* | pw32* | cegcc*)
7358 symcode='[ABCDGISTW]'
7360 hpux*)
7361 if test "$host_cpu" = ia64; then
7362 symcode='[ABCDEGRST]'
7365 irix* | nonstopux*)
7366 symcode='[BCDEGRST]'
7368 osf*)
7369 symcode='[BCDEGQRST]'
7371 solaris*)
7372 symcode='[BDRT]'
7374 sco3.2v5*)
7375 symcode='[DT]'
7377 sysv4.2uw2*)
7378 symcode='[DT]'
7380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7381 symcode='[ABDT]'
7383 sysv4)
7384 symcode='[DFNSTU]'
7386 esac
7388 # If we're using GNU nm, then use its standard symbol codes.
7389 case `$NM -V 2>&1` in
7390 *GNU* | *'with BFD'*)
7391 symcode='[ABCDGIRSTW]' ;;
7392 esac
7394 # Transform an extracted symbol line into a proper C declaration.
7395 # Some systems (esp. on ia64) link data and code symbols differently,
7396 # so use this general approach.
7397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7399 # Transform an extracted symbol line into symbol name and symbol address
7400 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7401 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'"
7403 # Handle CRLF in mingw tool chain
7404 opt_cr=
7405 case $build_os in
7406 mingw*)
7407 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7409 esac
7411 # Try without a prefix underscore, then with it.
7412 for ac_symprfx in "" "_"; do
7414 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7415 symxfrm="\\1 $ac_symprfx\\2 \\2"
7417 # Write the raw and C identifiers.
7418 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7419 # Fake it for dumpbin and say T for any non-static function
7420 # and D for any global variable.
7421 # Also find C++ and __fastcall symbols from MSVC++,
7422 # which start with @ or ?.
7423 lt_cv_sys_global_symbol_pipe="$AWK '"\
7424 " {last_section=section; section=\$ 3};"\
7425 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7426 " \$ 0!~/External *\|/{next};"\
7427 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7428 " {if(hide[section]) next};"\
7429 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7430 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7431 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7432 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7433 " ' prfx=^$ac_symprfx"
7434 else
7435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7438 # Check to see that the pipe works correctly.
7439 pipe_works=no
7441 rm -f conftest*
7442 cat > conftest.$ac_ext <<_LT_EOF
7443 #ifdef __cplusplus
7444 extern "C" {
7445 #endif
7446 char nm_test_var;
7447 void nm_test_func(void);
7448 void nm_test_func(void){}
7449 #ifdef __cplusplus
7451 #endif
7452 int main(){nm_test_var='a';nm_test_func();return(0);}
7453 _LT_EOF
7455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7456 (eval $ac_compile) 2>&5
7457 ac_status=$?
7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7459 test $ac_status = 0; }; then
7460 # Now try to grab the symbols.
7461 nlist=conftest.nm
7462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7463 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7464 ac_status=$?
7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; } && test -s "$nlist"; then
7467 # Try sorting and uniquifying the output.
7468 if sort "$nlist" | uniq > "$nlist"T; then
7469 mv -f "$nlist"T "$nlist"
7470 else
7471 rm -f "$nlist"T
7474 # Make sure that we snagged all the symbols we need.
7475 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7476 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7477 cat <<_LT_EOF > conftest.$ac_ext
7478 #ifdef __cplusplus
7479 extern "C" {
7480 #endif
7482 _LT_EOF
7483 # Now generate the symbol file.
7484 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7486 cat <<_LT_EOF >> conftest.$ac_ext
7488 /* The mapping between symbol names and symbols. */
7489 const struct {
7490 const char *name;
7491 void *address;
7493 lt__PROGRAM__LTX_preloaded_symbols[] =
7495 { "@PROGRAM@", (void *) 0 },
7496 _LT_EOF
7497 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7498 cat <<\_LT_EOF >> conftest.$ac_ext
7499 {0, (void *) 0}
7502 /* This works around a problem in FreeBSD linker */
7503 #ifdef FREEBSD_WORKAROUND
7504 static const void *lt_preloaded_setup() {
7505 return lt__PROGRAM__LTX_preloaded_symbols;
7507 #endif
7509 #ifdef __cplusplus
7511 #endif
7512 _LT_EOF
7513 # Now try linking the two files.
7514 mv conftest.$ac_objext conftstm.$ac_objext
7515 lt_save_LIBS="$LIBS"
7516 lt_save_CFLAGS="$CFLAGS"
7517 LIBS="conftstm.$ac_objext"
7518 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7520 (eval $ac_link) 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7524 pipe_works=yes
7526 LIBS="$lt_save_LIBS"
7527 CFLAGS="$lt_save_CFLAGS"
7528 else
7529 echo "cannot find nm_test_func in $nlist" >&5
7531 else
7532 echo "cannot find nm_test_var in $nlist" >&5
7534 else
7535 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7537 else
7538 echo "$progname: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7541 rm -rf conftest* conftst*
7543 # Do not use the global_symbol_pipe unless it works.
7544 if test "$pipe_works" = yes; then
7545 break
7546 else
7547 lt_cv_sys_global_symbol_pipe=
7549 done
7553 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7554 lt_cv_sys_global_symbol_to_cdecl=
7556 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7558 $as_echo "failed" >&6; }
7559 else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7561 $as_echo "ok" >&6; }
7585 # Check whether --enable-libtool-lock was given.
7586 if test "${enable_libtool_lock+set}" = set; then :
7587 enableval=$enable_libtool_lock;
7590 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7592 # Some flags need to be propagated to the compiler or linker for good
7593 # libtool support.
7594 case $host in
7595 ia64-*-hpux*)
7596 # Find out which ABI we are using.
7597 echo 'int i;' > conftest.$ac_ext
7598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7599 (eval $ac_compile) 2>&5
7600 ac_status=$?
7601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7602 test $ac_status = 0; }; then
7603 case `/usr/bin/file conftest.$ac_objext` in
7604 *ELF-32*)
7605 HPUX_IA64_MODE="32"
7607 *ELF-64*)
7608 HPUX_IA64_MODE="64"
7610 esac
7612 rm -rf conftest*
7614 *-*-irix6*)
7615 # Find out which ABI we are using.
7616 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7618 (eval $ac_compile) 2>&5
7619 ac_status=$?
7620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621 test $ac_status = 0; }; then
7622 if test "$lt_cv_prog_gnu_ld" = yes; then
7623 case `/usr/bin/file conftest.$ac_objext` in
7624 *32-bit*)
7625 LD="${LD-ld} -melf32bsmip"
7627 *N32*)
7628 LD="${LD-ld} -melf32bmipn32"
7630 *64-bit*)
7631 LD="${LD-ld} -melf64bmip"
7633 esac
7634 else
7635 case `/usr/bin/file conftest.$ac_objext` in
7636 *32-bit*)
7637 LD="${LD-ld} -32"
7639 *N32*)
7640 LD="${LD-ld} -n32"
7642 *64-bit*)
7643 LD="${LD-ld} -64"
7645 esac
7648 rm -rf conftest*
7651 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7652 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7653 # Find out which ABI we are using.
7654 echo 'int i;' > conftest.$ac_ext
7655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7656 (eval $ac_compile) 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; }; then
7660 case `/usr/bin/file conftest.o` in
7661 *32-bit*)
7662 case $host in
7663 x86_64-*kfreebsd*-gnu)
7664 LD="${LD-ld} -m elf_i386_fbsd"
7666 x86_64-*linux*)
7667 case `/usr/bin/file conftest.o` in
7668 *x86-64*)
7669 LD="${LD-ld} -m elf32_x86_64"
7672 LD="${LD-ld} -m elf_i386"
7674 esac
7676 powerpc64le-*linux*)
7677 LD="${LD-ld} -m elf32lppclinux"
7679 powerpc64-*linux*)
7680 LD="${LD-ld} -m elf32ppclinux"
7682 s390x-*linux*)
7683 LD="${LD-ld} -m elf_s390"
7685 sparc64-*linux*)
7686 LD="${LD-ld} -m elf32_sparc"
7688 esac
7690 *64-bit*)
7691 case $host in
7692 x86_64-*kfreebsd*-gnu)
7693 LD="${LD-ld} -m elf_x86_64_fbsd"
7695 x86_64-*linux*)
7696 LD="${LD-ld} -m elf_x86_64"
7698 powerpcle-*linux*)
7699 LD="${LD-ld} -m elf64lppc"
7701 powerpc-*linux*)
7702 LD="${LD-ld} -m elf64ppc"
7704 s390*-*linux*|s390*-*tpf*)
7705 LD="${LD-ld} -m elf64_s390"
7707 sparc*-*linux*)
7708 LD="${LD-ld} -m elf64_sparc"
7710 esac
7712 esac
7714 rm -rf conftest*
7717 *-*-sco3.2v5*)
7718 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7719 SAVE_CFLAGS="$CFLAGS"
7720 CFLAGS="$CFLAGS -belf"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7722 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7723 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 ac_ext=c
7727 ac_cpp='$CPP $CPPFLAGS'
7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7736 main ()
7740 return 0;
7742 _ACEOF
7743 if ac_fn_c_try_link "$LINENO"; then :
7744 lt_cv_cc_needs_belf=yes
7745 else
7746 lt_cv_cc_needs_belf=no
7748 rm -f core conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 ac_ext=c
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7758 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7759 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7760 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7761 CFLAGS="$SAVE_CFLAGS"
7764 sparc*-*solaris*)
7765 # Find out which ABI we are using.
7766 echo 'int i;' > conftest.$ac_ext
7767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7768 (eval $ac_compile) 2>&5
7769 ac_status=$?
7770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7771 test $ac_status = 0; }; then
7772 case `/usr/bin/file conftest.o` in
7773 *64-bit*)
7774 case $lt_cv_prog_gnu_ld in
7775 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7777 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7778 LD="${LD-ld} -64"
7781 esac
7783 esac
7785 rm -rf conftest*
7787 esac
7789 need_locks="$enable_libtool_lock"
7792 case $host_os in
7793 rhapsody* | darwin*)
7794 if test -n "$ac_tool_prefix"; then
7795 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7796 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$DSYMUTIL"; then
7803 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7816 done
7817 done
7818 IFS=$as_save_IFS
7822 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7823 if test -n "$DSYMUTIL"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7825 $as_echo "$DSYMUTIL" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7833 if test -z "$ac_cv_prog_DSYMUTIL"; then
7834 ac_ct_DSYMUTIL=$DSYMUTIL
7835 # Extract the first word of "dsymutil", so it can be a program name with args.
7836 set dummy dsymutil; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$ac_ct_DSYMUTIL"; then
7843 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7862 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7863 if test -n "$ac_ct_DSYMUTIL"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7865 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7871 if test "x$ac_ct_DSYMUTIL" = x; then
7872 DSYMUTIL=":"
7873 else
7874 case $cross_compiling:$ac_tool_warned in
7875 yes:)
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7878 ac_tool_warned=yes ;;
7879 esac
7880 DSYMUTIL=$ac_ct_DSYMUTIL
7882 else
7883 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7886 if test -n "$ac_tool_prefix"; then
7887 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$NMEDIT"; then
7895 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7908 done
7909 done
7910 IFS=$as_save_IFS
7914 NMEDIT=$ac_cv_prog_NMEDIT
7915 if test -n "$NMEDIT"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7917 $as_echo "$NMEDIT" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7925 if test -z "$ac_cv_prog_NMEDIT"; then
7926 ac_ct_NMEDIT=$NMEDIT
7927 # Extract the first word of "nmedit", so it can be a program name with args.
7928 set dummy nmedit; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$ac_ct_NMEDIT"; then
7935 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7944 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7948 done
7949 done
7950 IFS=$as_save_IFS
7954 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7955 if test -n "$ac_ct_NMEDIT"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7957 $as_echo "$ac_ct_NMEDIT" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7963 if test "x$ac_ct_NMEDIT" = x; then
7964 NMEDIT=":"
7965 else
7966 case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972 NMEDIT=$ac_ct_NMEDIT
7974 else
7975 NMEDIT="$ac_cv_prog_NMEDIT"
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_prog_LIPO+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$LIPO"; then
7987 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
8000 done
8001 done
8002 IFS=$as_save_IFS
8006 LIPO=$ac_cv_prog_LIPO
8007 if test -n "$LIPO"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8009 $as_echo "$LIPO" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8017 if test -z "$ac_cv_prog_LIPO"; then
8018 ac_ct_LIPO=$LIPO
8019 # Extract the first word of "lipo", so it can be a program name with args.
8020 set dummy lipo; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 if test -n "$ac_ct_LIPO"; then
8027 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_prog_ac_ct_LIPO="lipo"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8040 done
8041 done
8042 IFS=$as_save_IFS
8046 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8047 if test -n "$ac_ct_LIPO"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8049 $as_echo "$ac_ct_LIPO" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8055 if test "x$ac_ct_LIPO" = x; then
8056 LIPO=":"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064 LIPO=$ac_ct_LIPO
8066 else
8067 LIPO="$ac_cv_prog_LIPO"
8070 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}otool; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$OTOOL"; then
8079 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8098 OTOOL=$ac_cv_prog_OTOOL
8099 if test -n "$OTOOL"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8101 $as_echo "$OTOOL" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8109 if test -z "$ac_cv_prog_OTOOL"; then
8110 ac_ct_OTOOL=$OTOOL
8111 # Extract the first word of "otool", so it can be a program name with args.
8112 set dummy otool; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$ac_ct_OTOOL"; then
8119 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_ac_ct_OTOOL="otool"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8132 done
8133 done
8134 IFS=$as_save_IFS
8138 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8139 if test -n "$ac_ct_OTOOL"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8141 $as_echo "$ac_ct_OTOOL" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8147 if test "x$ac_ct_OTOOL" = x; then
8148 OTOOL=":"
8149 else
8150 case $cross_compiling:$ac_tool_warned in
8151 yes:)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8155 esac
8156 OTOOL=$ac_ct_OTOOL
8158 else
8159 OTOOL="$ac_cv_prog_OTOOL"
8162 if test -n "$ac_tool_prefix"; then
8163 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8164 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test -n "$OTOOL64"; then
8171 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8184 done
8185 done
8186 IFS=$as_save_IFS
8190 OTOOL64=$ac_cv_prog_OTOOL64
8191 if test -n "$OTOOL64"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8193 $as_echo "$OTOOL64" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8201 if test -z "$ac_cv_prog_OTOOL64"; then
8202 ac_ct_OTOOL64=$OTOOL64
8203 # Extract the first word of "otool64", so it can be a program name with args.
8204 set dummy otool64; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 if test -n "$ac_ct_OTOOL64"; then
8211 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_prog_ac_ct_OTOOL64="otool64"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 break 2
8224 done
8225 done
8226 IFS=$as_save_IFS
8230 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8231 if test -n "$ac_ct_OTOOL64"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8233 $as_echo "$ac_ct_OTOOL64" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8239 if test "x$ac_ct_OTOOL64" = x; then
8240 OTOOL64=":"
8241 else
8242 case $cross_compiling:$ac_tool_warned in
8243 yes:)
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246 ac_tool_warned=yes ;;
8247 esac
8248 OTOOL64=$ac_ct_OTOOL64
8250 else
8251 OTOOL64="$ac_cv_prog_OTOOL64"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8281 $as_echo_n "checking for -single_module linker flag... " >&6; }
8282 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 lt_cv_apple_cc_single_mod=no
8286 if test -z "${LT_MULTI_MODULE}"; then
8287 # By default we will add the -single_module flag. You can override
8288 # by either setting the environment variable LT_MULTI_MODULE
8289 # non-empty at configure time, or by adding -multi_module to the
8290 # link flags.
8291 rm -rf libconftest.dylib*
8292 echo "int foo(void){return 1;}" > conftest.c
8293 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8294 -dynamiclib -Wl,-single_module conftest.c" >&5
8295 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8296 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8297 _lt_result=$?
8298 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8299 lt_cv_apple_cc_single_mod=yes
8300 else
8301 cat conftest.err >&5
8303 rm -rf libconftest.dylib*
8304 rm -f conftest.*
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8308 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8310 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8311 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 lt_cv_ld_exported_symbols_list=no
8315 save_LDFLAGS=$LDFLAGS
8316 echo "_main" > conftest.sym
8317 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8322 main ()
8326 return 0;
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"; then :
8330 lt_cv_ld_exported_symbols_list=yes
8331 else
8332 lt_cv_ld_exported_symbols_list=no
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 LDFLAGS="$save_LDFLAGS"
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8340 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8342 $as_echo_n "checking for -force_load linker flag... " >&6; }
8343 if test "${lt_cv_ld_force_load+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 lt_cv_ld_force_load=no
8347 cat > conftest.c << _LT_EOF
8348 int forced_loaded() { return 2;}
8349 _LT_EOF
8350 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8351 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8352 echo "$AR cru libconftest.a conftest.o" >&5
8353 $AR cru libconftest.a conftest.o 2>&5
8354 cat > conftest.c << _LT_EOF
8355 int main() { return 0;}
8356 _LT_EOF
8357 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8358 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8359 _lt_result=$?
8360 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8361 lt_cv_ld_force_load=yes
8362 else
8363 cat conftest.err >&5
8365 rm -f conftest.err libconftest.a conftest conftest.c
8366 rm -rf conftest.dSYM
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8370 $as_echo "$lt_cv_ld_force_load" >&6; }
8371 case $host_os in
8372 rhapsody* | darwin1.[012])
8373 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8374 darwin1.*)
8375 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8376 darwin*) # darwin 5.x on
8377 # if running on 10.5 or later, the deployment target defaults
8378 # to the OS version, if on x86, and 10.4, the deployment
8379 # target defaults to 10.4. Don't you love it?
8380 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8381 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8382 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8383 10.[012][,.]*)
8384 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8385 10.*)
8386 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8387 esac
8389 esac
8390 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8391 _lt_dar_single_mod='$single_module'
8393 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8394 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8395 else
8396 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8398 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8399 _lt_dsymutil='~$DSYMUTIL $lib || :'
8400 else
8401 _lt_dsymutil=
8404 esac
8406 for ac_header in dlfcn.h
8407 do :
8408 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8410 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8411 cat >>confdefs.h <<_ACEOF
8412 #define HAVE_DLFCN_H 1
8413 _ACEOF
8417 done
8424 # Set options
8429 enable_win32_dll=no
8432 # Check whether --enable-shared was given.
8433 if test "${enable_shared+set}" = set; then :
8434 enableval=$enable_shared; p=${PACKAGE-default}
8435 case $enableval in
8436 yes) enable_shared=yes ;;
8437 no) enable_shared=no ;;
8439 enable_shared=no
8440 # Look at the argument we got. We use all the common list separators.
8441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8442 for pkg in $enableval; do
8443 IFS="$lt_save_ifs"
8444 if test "X$pkg" = "X$p"; then
8445 enable_shared=yes
8447 done
8448 IFS="$lt_save_ifs"
8450 esac
8451 else
8452 enable_shared=yes
8463 # Check whether --enable-static was given.
8464 if test "${enable_static+set}" = set; then :
8465 enableval=$enable_static; p=${PACKAGE-default}
8466 case $enableval in
8467 yes) enable_static=yes ;;
8468 no) enable_static=no ;;
8470 enable_static=no
8471 # Look at the argument we got. We use all the common list separators.
8472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8473 for pkg in $enableval; do
8474 IFS="$lt_save_ifs"
8475 if test "X$pkg" = "X$p"; then
8476 enable_static=yes
8478 done
8479 IFS="$lt_save_ifs"
8481 esac
8482 else
8483 enable_static=yes
8495 # Check whether --with-pic was given.
8496 if test "${with_pic+set}" = set; then :
8497 withval=$with_pic; pic_mode="$withval"
8498 else
8499 pic_mode=default
8503 test -z "$pic_mode" && pic_mode=default
8511 # Check whether --enable-fast-install was given.
8512 if test "${enable_fast_install+set}" = set; then :
8513 enableval=$enable_fast_install; p=${PACKAGE-default}
8514 case $enableval in
8515 yes) enable_fast_install=yes ;;
8516 no) enable_fast_install=no ;;
8518 enable_fast_install=no
8519 # Look at the argument we got. We use all the common list separators.
8520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8521 for pkg in $enableval; do
8522 IFS="$lt_save_ifs"
8523 if test "X$pkg" = "X$p"; then
8524 enable_fast_install=yes
8526 done
8527 IFS="$lt_save_ifs"
8529 esac
8530 else
8531 enable_fast_install=yes
8544 # This can be used to rebuild libtool when needed
8545 LIBTOOL_DEPS="$ltmain"
8547 # Always use our own libtool.
8548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8575 test -z "$LN_S" && LN_S="ln -s"
8590 if test -n "${ZSH_VERSION+set}" ; then
8591 setopt NO_GLOB_SUBST
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8595 $as_echo_n "checking for objdir... " >&6; }
8596 if test "${lt_cv_objdir+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 rm -f .libs 2>/dev/null
8600 mkdir .libs 2>/dev/null
8601 if test -d .libs; then
8602 lt_cv_objdir=.libs
8603 else
8604 # MS-DOS does not allow filenames that begin with a dot.
8605 lt_cv_objdir=_libs
8607 rmdir .libs 2>/dev/null
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8610 $as_echo "$lt_cv_objdir" >&6; }
8611 objdir=$lt_cv_objdir
8617 cat >>confdefs.h <<_ACEOF
8618 #define LT_OBJDIR "$lt_cv_objdir/"
8619 _ACEOF
8624 case $host_os in
8625 aix3*)
8626 # AIX sometimes has problems with the GCC collect2 program. For some
8627 # reason, if we set the COLLECT_NAMES environment variable, the problems
8628 # vanish in a puff of smoke.
8629 if test "X${COLLECT_NAMES+set}" != Xset; then
8630 COLLECT_NAMES=
8631 export COLLECT_NAMES
8634 esac
8636 # Global variables:
8637 ofile=libtool
8638 can_build_shared=yes
8640 # All known linkers require a `.a' archive for static linking (except MSVC,
8641 # which needs '.lib').
8642 libext=a
8644 with_gnu_ld="$lt_cv_prog_gnu_ld"
8646 old_CC="$CC"
8647 old_CFLAGS="$CFLAGS"
8649 # Set sane defaults for various variables
8650 test -z "$CC" && CC=cc
8651 test -z "$LTCC" && LTCC=$CC
8652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8653 test -z "$LD" && LD=ld
8654 test -z "$ac_objext" && ac_objext=o
8656 for cc_temp in $compiler""; do
8657 case $cc_temp in
8658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8660 \-*) ;;
8661 *) break;;
8662 esac
8663 done
8664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667 # Only perform the check for file, if the check method requires it
8668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8669 case $deplibs_check_method in
8670 file_magic*)
8671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8674 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 case $MAGIC_CMD in
8678 [\\/*] | ?:[\\/]*)
8679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682 lt_save_MAGIC_CMD="$MAGIC_CMD"
8683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8685 for ac_dir in $ac_dummy; do
8686 IFS="$lt_save_ifs"
8687 test -z "$ac_dir" && ac_dir=.
8688 if test -f $ac_dir/${ac_tool_prefix}file; then
8689 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8690 if test -n "$file_magic_test_file"; then
8691 case $deplibs_check_method in
8692 "file_magic "*)
8693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8696 $EGREP "$file_magic_regex" > /dev/null; then
8698 else
8699 cat <<_LT_EOF 1>&2
8701 *** Warning: the command libtool uses to detect shared libraries,
8702 *** $file_magic_cmd, produces output that libtool cannot recognize.
8703 *** The result is that libtool may fail to recognize shared libraries
8704 *** as such. This will affect the creation of libtool libraries that
8705 *** depend on shared libraries, but programs linked with such libtool
8706 *** libraries will work regardless of this problem. Nevertheless, you
8707 *** may want to report the problem to your system manager and/or to
8708 *** bug-libtool@gnu.org
8710 _LT_EOF
8711 fi ;;
8712 esac
8714 break
8716 done
8717 IFS="$lt_save_ifs"
8718 MAGIC_CMD="$lt_save_MAGIC_CMD"
8720 esac
8723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8724 if test -n "$MAGIC_CMD"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8726 $as_echo "$MAGIC_CMD" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8736 if test -z "$lt_cv_path_MAGIC_CMD"; then
8737 if test -n "$ac_tool_prefix"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8739 $as_echo_n "checking for file... " >&6; }
8740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 case $MAGIC_CMD in
8744 [\\/*] | ?:[\\/]*)
8745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8748 lt_save_MAGIC_CMD="$MAGIC_CMD"
8749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8751 for ac_dir in $ac_dummy; do
8752 IFS="$lt_save_ifs"
8753 test -z "$ac_dir" && ac_dir=.
8754 if test -f $ac_dir/file; then
8755 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8756 if test -n "$file_magic_test_file"; then
8757 case $deplibs_check_method in
8758 "file_magic "*)
8759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8762 $EGREP "$file_magic_regex" > /dev/null; then
8764 else
8765 cat <<_LT_EOF 1>&2
8767 *** Warning: the command libtool uses to detect shared libraries,
8768 *** $file_magic_cmd, produces output that libtool cannot recognize.
8769 *** The result is that libtool may fail to recognize shared libraries
8770 *** as such. This will affect the creation of libtool libraries that
8771 *** depend on shared libraries, but programs linked with such libtool
8772 *** libraries will work regardless of this problem. Nevertheless, you
8773 *** may want to report the problem to your system manager and/or to
8774 *** bug-libtool@gnu.org
8776 _LT_EOF
8777 fi ;;
8778 esac
8780 break
8782 done
8783 IFS="$lt_save_ifs"
8784 MAGIC_CMD="$lt_save_MAGIC_CMD"
8786 esac
8789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790 if test -n "$MAGIC_CMD"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8792 $as_echo "$MAGIC_CMD" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8799 else
8800 MAGIC_CMD=:
8806 esac
8808 # Use C for the default configuration in the libtool script
8810 lt_save_CC="$CC"
8811 ac_ext=c
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 # Source file extension for C test sources.
8819 ac_ext=c
8821 # Object file extension for compiled C test sources.
8822 objext=o
8823 objext=$objext
8825 # Code to be used in simple compile tests
8826 lt_simple_compile_test_code="int some_variable = 0;"
8828 # Code to be used in simple link tests
8829 lt_simple_link_test_code='int main(){return(0);}'
8837 # If no C compiler was specified, use CC.
8838 LTCC=${LTCC-"$CC"}
8840 # If no C compiler flags were specified, use CFLAGS.
8841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8843 # Allow CC to be a program name with arguments.
8844 compiler=$CC
8846 # Save the default compiler, since it gets overwritten when the other
8847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8848 compiler_DEFAULT=$CC
8850 # save warnings/boilerplate of simple test code
8851 ac_outfile=conftest.$ac_objext
8852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8854 _lt_compiler_boilerplate=`cat conftest.err`
8855 $RM conftest*
8857 ac_outfile=conftest.$ac_objext
8858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8860 _lt_linker_boilerplate=`cat conftest.err`
8861 $RM -r conftest*
8864 ## CAVEAT EMPTOR:
8865 ## There is no encapsulation within the following macros, do not change
8866 ## the running order or otherwise move them around unless you know exactly
8867 ## what you are doing...
8868 if test -n "$compiler"; then
8870 lt_prog_compiler_no_builtin_flag=
8872 if test "$GCC" = yes; then
8873 case $cc_basename in
8874 nvcc*)
8875 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8877 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8878 esac
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8881 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8882 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 lt_cv_prog_compiler_rtti_exceptions=no
8886 ac_outfile=conftest.$ac_objext
8887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8888 lt_compiler_flag="-fno-rtti -fno-exceptions"
8889 # Insert the option either (1) after the last *FLAGS variable, or
8890 # (2) before a word containing "conftest.", or (3) at the end.
8891 # Note that $ac_compile itself does not contain backslashes and begins
8892 # with a dollar sign (not a hyphen), so the echo should work correctly.
8893 # The option is referenced via a variable to avoid confusing sed.
8894 lt_compile=`echo "$ac_compile" | $SED \
8895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897 -e 's:$: $lt_compiler_flag:'`
8898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899 (eval "$lt_compile" 2>conftest.err)
8900 ac_status=$?
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 if (exit $ac_status) && test -s "$ac_outfile"; then
8904 # The compiler can only warn and ignore the option if not recognized
8905 # So say no if there are warnings other than the usual output.
8906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8909 lt_cv_prog_compiler_rtti_exceptions=yes
8912 $RM conftest*
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8916 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8919 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8920 else
8931 lt_prog_compiler_wl=
8932 lt_prog_compiler_pic=
8933 lt_prog_compiler_static=
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8938 if test "$GCC" = yes; then
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_static='-static'
8942 case $host_os in
8943 aix*)
8944 # All AIX code is PIC.
8945 if test "$host_cpu" = ia64; then
8946 # AIX 5 now supports IA64 processor
8947 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_pic='-fPIC'
8952 amigaos*)
8953 case $host_cpu in
8954 powerpc)
8955 # see comment about AmigaOS4 .so support
8956 lt_prog_compiler_pic='-fPIC'
8958 m68k)
8959 # FIXME: we need at least 68020 code to build shared libraries, but
8960 # adding the `-m68020' flag to GCC prevents building anything better,
8961 # like `-m68040'.
8962 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8964 esac
8967 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8968 # PIC is the default for these OSes.
8971 mingw* | cygwin* | pw32* | os2* | cegcc*)
8972 # This hack is so that the source file can tell whether it is being
8973 # built for inclusion in a dll (and should export symbols for example).
8974 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8975 # (--disable-auto-import) libraries
8976 lt_prog_compiler_pic='-DDLL_EXPORT'
8979 darwin* | rhapsody*)
8980 # PIC is the default on this platform
8981 # Common symbols not allowed in MH_DYLIB files
8982 lt_prog_compiler_pic='-fno-common'
8985 haiku*)
8986 # PIC is the default for Haiku.
8987 # The "-static" flag exists, but is broken.
8988 lt_prog_compiler_static=
8991 hpux*)
8992 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8993 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8994 # sets the default TLS model and affects inlining.
8995 case $host_cpu in
8996 hppa*64*)
8997 # +Z the default
9000 lt_prog_compiler_pic='-fPIC'
9002 esac
9005 interix[3-9]*)
9006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9007 # Instead, we relocate shared libraries at runtime.
9010 msdosdjgpp*)
9011 # Just because we use GCC doesn't mean we suddenly get shared libraries
9012 # on systems that don't support them.
9013 lt_prog_compiler_can_build_shared=no
9014 enable_shared=no
9017 *nto* | *qnx*)
9018 # QNX uses GNU C++, but need to define -shared option too, otherwise
9019 # it will coredump.
9020 lt_prog_compiler_pic='-fPIC -shared'
9023 sysv4*MP*)
9024 if test -d /usr/nec; then
9025 lt_prog_compiler_pic=-Kconform_pic
9030 lt_prog_compiler_pic='-fPIC'
9032 esac
9034 case $cc_basename in
9035 nvcc*) # Cuda Compiler Driver 2.2
9036 lt_prog_compiler_wl='-Xlinker '
9037 lt_prog_compiler_pic='-Xcompiler -fPIC'
9039 esac
9040 else
9041 # PORTME Check for flag to pass linker flags through the system compiler.
9042 case $host_os in
9043 aix*)
9044 lt_prog_compiler_wl='-Wl,'
9045 if test "$host_cpu" = ia64; then
9046 # AIX 5 now supports IA64 processor
9047 lt_prog_compiler_static='-Bstatic'
9048 else
9049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053 mingw* | cygwin* | pw32* | os2* | cegcc*)
9054 # This hack is so that the source file can tell whether it is being
9055 # built for inclusion in a dll (and should export symbols for example).
9056 lt_prog_compiler_pic='-DDLL_EXPORT'
9059 hpux9* | hpux10* | hpux11*)
9060 lt_prog_compiler_wl='-Wl,'
9061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9062 # not for PA HP-UX.
9063 case $host_cpu in
9064 hppa*64*|ia64*)
9065 # +Z the default
9068 lt_prog_compiler_pic='+Z'
9070 esac
9071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9072 lt_prog_compiler_static='${wl}-a ${wl}archive'
9075 irix5* | irix6* | nonstopux*)
9076 lt_prog_compiler_wl='-Wl,'
9077 # PIC (with -KPIC) is the default.
9078 lt_prog_compiler_static='-non_shared'
9081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9082 case $cc_basename in
9083 # old Intel for x86_64 which still supported -KPIC.
9084 ecc*)
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-static'
9089 # icc used to be incompatible with GCC.
9090 # ICC 10 doesn't accept -KPIC any more.
9091 icc* | ifort*)
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-fPIC'
9094 lt_prog_compiler_static='-static'
9096 # Lahey Fortran 8.1.
9097 lf95*)
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='--shared'
9100 lt_prog_compiler_static='--static'
9102 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9103 # Portland Group compilers (*not* the Pentium gcc compiler,
9104 # which looks to be a dead project)
9105 lt_prog_compiler_wl='-Wl,'
9106 lt_prog_compiler_pic='-fpic'
9107 lt_prog_compiler_static='-Bstatic'
9109 ccc*)
9110 lt_prog_compiler_wl='-Wl,'
9111 # All Alpha code is PIC.
9112 lt_prog_compiler_static='-non_shared'
9114 xl* | bgxl* | bgf* | mpixl*)
9115 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_pic='-qpic'
9118 lt_prog_compiler_static='-qstaticlink'
9121 case `$CC -V 2>&1 | sed 5q` in
9122 *Sun\ F* | *Sun*Fortran*)
9123 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9124 lt_prog_compiler_pic='-KPIC'
9125 lt_prog_compiler_static='-Bstatic'
9126 lt_prog_compiler_wl=''
9128 *Sun\ C*)
9129 # Sun C 5.9
9130 lt_prog_compiler_pic='-KPIC'
9131 lt_prog_compiler_static='-Bstatic'
9132 lt_prog_compiler_wl='-Wl,'
9134 esac
9136 esac
9139 newsos6)
9140 lt_prog_compiler_pic='-KPIC'
9141 lt_prog_compiler_static='-Bstatic'
9144 *nto* | *qnx*)
9145 # QNX uses GNU C++, but need to define -shared option too, otherwise
9146 # it will coredump.
9147 lt_prog_compiler_pic='-fPIC -shared'
9150 osf3* | osf4* | osf5*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # All OSF/1 code is PIC.
9153 lt_prog_compiler_static='-non_shared'
9156 rdos*)
9157 lt_prog_compiler_static='-non_shared'
9160 solaris*)
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-Bstatic'
9163 case $cc_basename in
9164 f77* | f90* | f95*)
9165 lt_prog_compiler_wl='-Qoption ld ';;
9167 lt_prog_compiler_wl='-Wl,';;
9168 esac
9171 sunos4*)
9172 lt_prog_compiler_wl='-Qoption ld '
9173 lt_prog_compiler_pic='-PIC'
9174 lt_prog_compiler_static='-Bstatic'
9177 sysv4 | sysv4.2uw2* | sysv4.3*)
9178 lt_prog_compiler_wl='-Wl,'
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9183 sysv4*MP*)
9184 if test -d /usr/nec ;then
9185 lt_prog_compiler_pic='-Kconform_pic'
9186 lt_prog_compiler_static='-Bstatic'
9190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-KPIC'
9193 lt_prog_compiler_static='-Bstatic'
9196 unicos*)
9197 lt_prog_compiler_wl='-Wl,'
9198 lt_prog_compiler_can_build_shared=no
9201 uts4*)
9202 lt_prog_compiler_pic='-pic'
9203 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_can_build_shared=no
9209 esac
9212 case $host_os in
9213 # For platforms which do not support PIC, -DPIC is meaningless:
9214 *djgpp*)
9215 lt_prog_compiler_pic=
9218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9220 esac
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9222 $as_echo "$lt_prog_compiler_pic" >&6; }
9230 # Check to make sure the PIC flag actually works.
9232 if test -n "$lt_prog_compiler_pic"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9235 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 lt_cv_prog_compiler_pic_works=no
9239 ac_outfile=conftest.$ac_objext
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9242 # Insert the option either (1) after the last *FLAGS variable, or
9243 # (2) before a word containing "conftest.", or (3) at the end.
9244 # Note that $ac_compile itself does not contain backslashes and begins
9245 # with a dollar sign (not a hyphen), so the echo should work correctly.
9246 # The option is referenced via a variable to avoid confusing sed.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>conftest.err)
9253 ac_status=$?
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 if (exit $ac_status) && test -s "$ac_outfile"; then
9257 # The compiler can only warn and ignore the option if not recognized
9258 # So say no if there are warnings other than the usual output.
9259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9262 lt_cv_prog_compiler_pic_works=yes
9265 $RM conftest*
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9272 case $lt_prog_compiler_pic in
9273 "" | " "*) ;;
9274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9275 esac
9276 else
9277 lt_prog_compiler_pic=
9278 lt_prog_compiler_can_build_shared=no
9289 # Check to make sure the static flag actually works.
9291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9294 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 lt_cv_prog_compiler_static_works=no
9298 save_LDFLAGS="$LDFLAGS"
9299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9302 # The linker can only warn and ignore the option if not recognized
9303 # So say no if there are warnings
9304 if test -s conftest.err; then
9305 # Append any errors to the config.log.
9306 cat conftest.err 1>&5
9307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9309 if diff conftest.exp conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_static_works=yes
9312 else
9313 lt_cv_prog_compiler_static_works=yes
9316 $RM -r conftest*
9317 LDFLAGS="$save_LDFLAGS"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9321 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9323 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9325 else
9326 lt_prog_compiler_static=
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 lt_cv_prog_compiler_c_o=no
9341 $RM -r conftest 2>/dev/null
9342 mkdir conftest
9343 cd conftest
9344 mkdir out
9345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9347 lt_compiler_flag="-o out/conftest2.$ac_objext"
9348 # Insert the option either (1) after the last *FLAGS variable, or
9349 # (2) before a word containing "conftest.", or (3) at the end.
9350 # Note that $ac_compile itself does not contain backslashes and begins
9351 # with a dollar sign (not a hyphen), so the echo should work correctly.
9352 lt_compile=`echo "$ac_compile" | $SED \
9353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9355 -e 's:$: $lt_compiler_flag:'`
9356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9357 (eval "$lt_compile" 2>out/conftest.err)
9358 ac_status=$?
9359 cat out/conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9362 then
9363 # The compiler can only warn and ignore the option if not recognized
9364 # So say no if there are warnings
9365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9368 lt_cv_prog_compiler_c_o=yes
9371 chmod u+w . 2>&5
9372 $RM conftest*
9373 # SGI C++ compiler will create directory out/ii_files/ for
9374 # template instantiation
9375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9376 $RM out/* && rmdir out
9377 cd ..
9378 $RM -r conftest
9379 $RM conftest*
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395 lt_cv_prog_compiler_c_o=no
9396 $RM -r conftest 2>/dev/null
9397 mkdir conftest
9398 cd conftest
9399 mkdir out
9400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9402 lt_compiler_flag="-o out/conftest2.$ac_objext"
9403 # Insert the option either (1) after the last *FLAGS variable, or
9404 # (2) before a word containing "conftest.", or (3) at the end.
9405 # Note that $ac_compile itself does not contain backslashes and begins
9406 # with a dollar sign (not a hyphen), so the echo should work correctly.
9407 lt_compile=`echo "$ac_compile" | $SED \
9408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9410 -e 's:$: $lt_compiler_flag:'`
9411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9412 (eval "$lt_compile" 2>out/conftest.err)
9413 ac_status=$?
9414 cat out/conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9417 then
9418 # The compiler can only warn and ignore the option if not recognized
9419 # So say no if there are warnings
9420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9423 lt_cv_prog_compiler_c_o=yes
9426 chmod u+w . 2>&5
9427 $RM conftest*
9428 # SGI C++ compiler will create directory out/ii_files/ for
9429 # template instantiation
9430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9431 $RM out/* && rmdir out
9432 cd ..
9433 $RM -r conftest
9434 $RM conftest*
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9443 hard_links="nottested"
9444 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9445 # do not overwrite the value of need_locks provided by the user
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9447 $as_echo_n "checking if we can lock with hard links... " >&6; }
9448 hard_links=yes
9449 $RM conftest*
9450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9451 touch conftest.a
9452 ln conftest.a conftest.b 2>&5 || hard_links=no
9453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9455 $as_echo "$hard_links" >&6; }
9456 if test "$hard_links" = no; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9458 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9459 need_locks=warn
9461 else
9462 need_locks=no
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9473 runpath_var=
9474 allow_undefined_flag=
9475 always_export_symbols=no
9476 archive_cmds=
9477 archive_expsym_cmds=
9478 compiler_needs_object=no
9479 enable_shared_with_static_runtimes=no
9480 export_dynamic_flag_spec=
9481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9482 hardcode_automatic=no
9483 hardcode_direct=no
9484 hardcode_direct_absolute=no
9485 hardcode_libdir_flag_spec=
9486 hardcode_libdir_flag_spec_ld=
9487 hardcode_libdir_separator=
9488 hardcode_minus_L=no
9489 hardcode_shlibpath_var=unsupported
9490 inherit_rpath=no
9491 link_all_deplibs=unknown
9492 module_cmds=
9493 module_expsym_cmds=
9494 old_archive_from_new_cmds=
9495 old_archive_from_expsyms_cmds=
9496 thread_safe_flag_spec=
9497 whole_archive_flag_spec=
9498 # include_expsyms should be a list of space-separated symbols to be *always*
9499 # included in the symbol list
9500 include_expsyms=
9501 # exclude_expsyms can be an extended regexp of symbols to exclude
9502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9504 # as well as any symbol that contains `d'.
9505 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9507 # platforms (ab)use it in PIC code, but their linkers get confused if
9508 # the symbol is explicitly referenced. Since portable code cannot
9509 # rely on this symbol name, it's probably fine to never include it in
9510 # preloaded symbol tables.
9511 # Exclude shared library initialization/finalization symbols.
9512 extract_expsyms_cmds=
9514 case $host_os in
9515 cygwin* | mingw* | pw32* | cegcc*)
9516 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9517 # When not using gcc, we currently assume that we are using
9518 # Microsoft Visual C++.
9519 if test "$GCC" != yes; then
9520 with_gnu_ld=no
9523 interix*)
9524 # we just hope/assume this is gcc and not c89 (= MSVC++)
9525 with_gnu_ld=yes
9527 openbsd*)
9528 with_gnu_ld=no
9530 esac
9532 ld_shlibs=yes
9534 # On some targets, GNU ld is compatible enough with the native linker
9535 # that we're better off using the native interface for both.
9536 lt_use_gnu_ld_interface=no
9537 if test "$with_gnu_ld" = yes; then
9538 case $host_os in
9539 aix*)
9540 # The AIX port of GNU ld has always aspired to compatibility
9541 # with the native linker. However, as the warning in the GNU ld
9542 # block says, versions before 2.19.5* couldn't really create working
9543 # shared libraries, regardless of the interface used.
9544 case `$LD -v 2>&1` in
9545 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9546 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9547 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9549 lt_use_gnu_ld_interface=yes
9551 esac
9554 lt_use_gnu_ld_interface=yes
9556 esac
9559 if test "$lt_use_gnu_ld_interface" = yes; then
9560 # If archive_cmds runs LD, not CC, wlarc should be empty
9561 wlarc='${wl}'
9563 # Set some defaults for GNU ld with shared library support. These
9564 # are reset later if shared libraries are not supported. Putting them
9565 # here allows them to be overridden if necessary.
9566 runpath_var=LD_RUN_PATH
9567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9568 export_dynamic_flag_spec='${wl}--export-dynamic'
9569 # ancient GNU ld didn't support --whole-archive et. al.
9570 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9571 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9572 else
9573 whole_archive_flag_spec=
9575 supports_anon_versioning=no
9576 case `$LD -v 2>&1` in
9577 *GNU\ gold*) supports_anon_versioning=yes ;;
9578 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9581 *\ 2.11.*) ;; # other 2.11 versions
9582 *) supports_anon_versioning=yes ;;
9583 esac
9585 # See if GNU ld supports shared libraries.
9586 case $host_os in
9587 aix[3-9]*)
9588 # On AIX/PPC, the GNU linker is very broken
9589 if test "$host_cpu" != ia64; then
9590 ld_shlibs=no
9591 cat <<_LT_EOF 1>&2
9593 *** Warning: the GNU linker, at least up to release 2.19, is reported
9594 *** to be unable to reliably create shared libraries on AIX.
9595 *** Therefore, libtool is disabling shared libraries support. If you
9596 *** really care for shared libraries, you may want to install binutils
9597 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9598 *** You will then need to restart the configuration process.
9600 _LT_EOF
9604 amigaos*)
9605 case $host_cpu in
9606 powerpc)
9607 # see comment about AmigaOS4 .so support
9608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9609 archive_expsym_cmds=''
9611 m68k)
9612 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)'
9613 hardcode_libdir_flag_spec='-L$libdir'
9614 hardcode_minus_L=yes
9616 esac
9619 beos*)
9620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621 allow_undefined_flag=unsupported
9622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9623 # support --undefined. This deserves some investigation. FIXME
9624 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9625 else
9626 ld_shlibs=no
9630 cygwin* | mingw* | pw32* | cegcc*)
9631 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9632 # as there is no search path for DLLs.
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 export_dynamic_flag_spec='${wl}--export-all-symbols'
9635 allow_undefined_flag=unsupported
9636 always_export_symbols=no
9637 enable_shared_with_static_runtimes=yes
9638 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9640 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9642 # If the export-symbols file already is a .def file (1st line
9643 # is EXPORTS), use it as is; otherwise, prepend...
9644 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9645 cp $export_symbols $output_objdir/$soname.def;
9646 else
9647 echo EXPORTS > $output_objdir/$soname.def;
9648 cat $export_symbols >> $output_objdir/$soname.def;
9650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9651 else
9652 ld_shlibs=no
9656 haiku*)
9657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9658 link_all_deplibs=yes
9661 interix[3-9]*)
9662 hardcode_direct=no
9663 hardcode_shlibpath_var=no
9664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9665 export_dynamic_flag_spec='${wl}-E'
9666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9667 # Instead, shared libraries are loaded at an image base (0x10000000 by
9668 # default) and relocated if they conflict, which is a slow very memory
9669 # consuming and fragmenting process. To avoid this, we pick a random,
9670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9673 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'
9676 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9677 tmp_diet=no
9678 if test "$host_os" = linux-dietlibc; then
9679 case $cc_basename in
9680 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9681 esac
9683 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9684 && test "$tmp_diet" = no
9685 then
9686 tmp_addflag=' $pic_flag'
9687 tmp_sharedflag='-shared'
9688 case $cc_basename,$host_cpu in
9689 pgcc*) # Portland Group C compiler
9690 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'
9691 tmp_addflag=' $pic_flag'
9693 pgf77* | pgf90* | pgf95* | pgfortran*)
9694 # Portland Group f77 and f90 compilers
9695 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'
9696 tmp_addflag=' $pic_flag -Mnomain' ;;
9697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9698 tmp_addflag=' -i_dynamic' ;;
9699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9700 tmp_addflag=' -i_dynamic -nofor_main' ;;
9701 ifc* | ifort*) # Intel Fortran compiler
9702 tmp_addflag=' -nofor_main' ;;
9703 lf95*) # Lahey Fortran 8.1
9704 whole_archive_flag_spec=
9705 tmp_sharedflag='--shared' ;;
9706 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9707 tmp_sharedflag='-qmkshrobj'
9708 tmp_addflag= ;;
9709 nvcc*) # Cuda Compiler Driver 2.2
9710 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'
9711 compiler_needs_object=yes
9713 esac
9714 case `$CC -V 2>&1 | sed 5q` in
9715 *Sun\ C*) # Sun C 5.9
9716 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'
9717 compiler_needs_object=yes
9718 tmp_sharedflag='-G' ;;
9719 *Sun\ F*) # Sun Fortran 8.3
9720 tmp_sharedflag='-G' ;;
9721 esac
9722 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9724 if test "x$supports_anon_versioning" = xyes; then
9725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9727 echo "local: *; };" >> $output_objdir/$libname.ver~
9728 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9731 case $cc_basename in
9732 xlf* | bgf* | bgxlf* | mpixlf*)
9733 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9734 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9735 hardcode_libdir_flag_spec=
9736 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9737 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9738 if test "x$supports_anon_versioning" = xyes; then
9739 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9741 echo "local: *; };" >> $output_objdir/$libname.ver~
9742 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9745 esac
9746 else
9747 ld_shlibs=no
9751 netbsd*)
9752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9753 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9754 wlarc=
9755 else
9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9761 solaris*)
9762 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9763 ld_shlibs=no
9764 cat <<_LT_EOF 1>&2
9766 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9767 *** create shared libraries on Solaris systems. Therefore, libtool
9768 *** is disabling shared libraries support. We urge you to upgrade GNU
9769 *** binutils to release 2.9.1 or newer. Another option is to modify
9770 *** your PATH or compiler configuration so that the native linker is
9771 *** used, and then restart.
9773 _LT_EOF
9774 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9777 else
9778 ld_shlibs=no
9782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9783 case `$LD -v 2>&1` in
9784 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9785 ld_shlibs=no
9786 cat <<_LT_EOF 1>&2
9788 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9789 *** reliably create shared libraries on SCO systems. Therefore, libtool
9790 *** is disabling shared libraries support. We urge you to upgrade GNU
9791 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9792 *** your PATH or compiler configuration so that the native linker is
9793 *** used, and then restart.
9795 _LT_EOF
9798 # For security reasons, it is highly recommended that you always
9799 # use absolute paths for naming shared libraries, and exclude the
9800 # DT_RUNPATH tag from executables and libraries. But doing so
9801 # requires that you compile everything twice, which is a pain.
9802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9806 else
9807 ld_shlibs=no
9810 esac
9813 sunos4*)
9814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9815 wlarc=
9816 hardcode_direct=yes
9817 hardcode_shlibpath_var=no
9821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9824 else
9825 ld_shlibs=no
9828 esac
9830 if test "$ld_shlibs" = no; then
9831 runpath_var=
9832 hardcode_libdir_flag_spec=
9833 export_dynamic_flag_spec=
9834 whole_archive_flag_spec=
9836 else
9837 # PORTME fill in a description of your system's linker (not GNU ld)
9838 case $host_os in
9839 aix3*)
9840 allow_undefined_flag=unsupported
9841 always_export_symbols=yes
9842 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'
9843 # Note: this linker hardcodes the directories in LIBPATH if there
9844 # are no directories specified by -L.
9845 hardcode_minus_L=yes
9846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9847 # Neither direct hardcoding nor static linking is supported with a
9848 # broken collect2.
9849 hardcode_direct=unsupported
9853 aix[4-9]*)
9854 if test "$host_cpu" = ia64; then
9855 # On IA64, the linker does run time linking by default, so we don't
9856 # have to do anything special.
9857 aix_use_runtimelinking=no
9858 exp_sym_flag='-Bexport'
9859 no_entry_flag=""
9860 else
9861 # If we're using GNU nm, then we don't want the "-C" option.
9862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9863 # Also, AIX nm treats weak defined symbols like other global
9864 # defined symbols, whereas GNU nm marks them as "W".
9865 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9866 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'
9867 else
9868 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'
9870 aix_use_runtimelinking=no
9872 # Test if we are trying to use run time linking or normal
9873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9874 # need to do runtime linking.
9875 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9876 for ld_flag in $LDFLAGS; do
9877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9878 aix_use_runtimelinking=yes
9879 break
9881 done
9883 esac
9885 exp_sym_flag='-bexport'
9886 no_entry_flag='-bnoentry'
9889 # When large executables or shared objects are built, AIX ld can
9890 # have problems creating the table of contents. If linking a library
9891 # or program results in "error TOC overflow" add -mminimal-toc to
9892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9895 archive_cmds=''
9896 hardcode_direct=yes
9897 hardcode_direct_absolute=yes
9898 hardcode_libdir_separator=':'
9899 link_all_deplibs=yes
9900 file_list_spec='${wl}-f,'
9902 if test "$GCC" = yes; then
9903 case $host_os in aix4.[012]|aix4.[012].*)
9904 # We only want to do this on AIX 4.2 and lower, the check
9905 # below for broken collect2 doesn't work under 4.3+
9906 collect2name=`${CC} -print-prog-name=collect2`
9907 if test -f "$collect2name" &&
9908 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9909 then
9910 # We have reworked collect2
9912 else
9913 # We have old collect2
9914 hardcode_direct=unsupported
9915 # It fails to find uninstalled libraries when the uninstalled
9916 # path is not listed in the libpath. Setting hardcode_minus_L
9917 # to unsupported forces relinking
9918 hardcode_minus_L=yes
9919 hardcode_libdir_flag_spec='-L$libdir'
9920 hardcode_libdir_separator=
9923 esac
9924 shared_flag='-shared'
9925 if test "$aix_use_runtimelinking" = yes; then
9926 shared_flag="$shared_flag "'${wl}-G'
9928 else
9929 # not using gcc
9930 if test "$host_cpu" = ia64; then
9931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9932 # chokes on -Wl,-G. The following line is correct:
9933 shared_flag='-G'
9934 else
9935 if test "$aix_use_runtimelinking" = yes; then
9936 shared_flag='${wl}-G'
9937 else
9938 shared_flag='${wl}-bM:SRE'
9943 export_dynamic_flag_spec='${wl}-bexpall'
9944 # It seems that -bexpall does not export symbols beginning with
9945 # underscore (_), so it is better to generate a list of symbols to export.
9946 always_export_symbols=yes
9947 if test "$aix_use_runtimelinking" = yes; then
9948 # Warning - without using the other runtime loading flags (-brtl),
9949 # -berok will link without error, but may produce a broken library.
9950 allow_undefined_flag='-berok'
9951 # Determine the default libpath from the value encoded in an
9952 # empty executable.
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9957 main ()
9961 return 0;
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"; then :
9966 lt_aix_libpath_sed='
9967 /Import File Strings/,/^$/ {
9968 /^0/ {
9969 s/^0 *\(.*\)$/\1/
9973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9974 # Check for a 64-bit object if we didn't find anything.
9975 if test -z "$aix_libpath"; then
9976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9984 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"
9985 else
9986 if test "$host_cpu" = ia64; then
9987 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9988 allow_undefined_flag="-z nodefs"
9989 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"
9990 else
9991 # Determine the default libpath from the value encoded in an
9992 # empty executable.
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994 /* end confdefs.h. */
9997 main ()
10001 return 0;
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10006 lt_aix_libpath_sed='
10007 /Import File Strings/,/^$/ {
10008 /^0/ {
10009 s/^0 *\(.*\)$/\1/
10013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10014 # Check for a 64-bit object if we didn't find anything.
10015 if test -z "$aix_libpath"; then
10016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10024 # Warning - without using the other run time loading flags,
10025 # -berok will link without error, but may produce a broken library.
10026 no_undefined_flag=' ${wl}-bernotok'
10027 allow_undefined_flag=' ${wl}-berok'
10028 if test "$with_gnu_ld" = yes; then
10029 # We only use this code for GNU lds that support --whole-archive.
10030 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10031 else
10032 # Exported symbols can be pulled into shared objects from archives
10033 whole_archive_flag_spec='$convenience'
10035 archive_cmds_need_lc=yes
10036 # This is similar to how AIX traditionally builds its shared libraries.
10037 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'
10042 amigaos*)
10043 case $host_cpu in
10044 powerpc)
10045 # see comment about AmigaOS4 .so support
10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047 archive_expsym_cmds=''
10049 m68k)
10050 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)'
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_minus_L=yes
10054 esac
10057 bsdi[45]*)
10058 export_dynamic_flag_spec=-rdynamic
10061 cygwin* | mingw* | pw32* | cegcc*)
10062 # When not using gcc, we currently assume that we are using
10063 # Microsoft Visual C++.
10064 # hardcode_libdir_flag_spec is actually meaningless, as there is
10065 # no search path for DLLs.
10066 hardcode_libdir_flag_spec=' '
10067 allow_undefined_flag=unsupported
10068 # Tell ltmain to make .lib files, not .a files.
10069 libext=lib
10070 # Tell ltmain to make .dll files, not .so files.
10071 shrext_cmds=".dll"
10072 # FIXME: Setting linknames here is a bad hack.
10073 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10074 # The linker will automatically build a .lib file if we build a DLL.
10075 old_archive_from_new_cmds='true'
10076 # FIXME: Should let the user specify the lib program.
10077 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10078 fix_srcfile_path='`cygpath -w "$srcfile"`'
10079 enable_shared_with_static_runtimes=yes
10082 darwin* | rhapsody*)
10085 archive_cmds_need_lc=no
10086 hardcode_direct=no
10087 hardcode_automatic=yes
10088 hardcode_shlibpath_var=unsupported
10089 if test "$lt_cv_ld_force_load" = "yes"; then
10090 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\"`'
10091 else
10092 whole_archive_flag_spec=''
10094 link_all_deplibs=yes
10095 allow_undefined_flag="$_lt_dar_allow_undefined"
10096 case $cc_basename in
10097 ifort*) _lt_dar_can_shared=yes ;;
10098 *) _lt_dar_can_shared=$GCC ;;
10099 esac
10100 if test "$_lt_dar_can_shared" = "yes"; then
10101 output_verbose_link_cmd=func_echo_all
10102 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10103 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10104 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}"
10105 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}"
10107 else
10108 ld_shlibs=no
10113 dgux*)
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_shlibpath_var=no
10119 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10120 # support. Future versions do this automatically, but an explicit c++rt0.o
10121 # does not break anything, and helps significantly (at the cost of a little
10122 # extra space).
10123 freebsd2.2*)
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10125 hardcode_libdir_flag_spec='-R$libdir'
10126 hardcode_direct=yes
10127 hardcode_shlibpath_var=no
10130 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10131 freebsd2.*)
10132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=yes
10134 hardcode_minus_L=yes
10135 hardcode_shlibpath_var=no
10138 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10139 freebsd* | dragonfly*)
10140 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10141 hardcode_libdir_flag_spec='-R$libdir'
10142 hardcode_direct=yes
10143 hardcode_shlibpath_var=no
10146 hpux9*)
10147 if test "$GCC" = yes; then
10148 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'
10149 else
10150 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'
10152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154 hardcode_direct=yes
10156 # hardcode_minus_L: Not really in the search PATH,
10157 # but as the default location of the library.
10158 hardcode_minus_L=yes
10159 export_dynamic_flag_spec='${wl}-E'
10162 hpux10*)
10163 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10164 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10165 else
10166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10168 if test "$with_gnu_ld" = no; then
10169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10170 hardcode_libdir_flag_spec_ld='+b $libdir'
10171 hardcode_libdir_separator=:
10172 hardcode_direct=yes
10173 hardcode_direct_absolute=yes
10174 export_dynamic_flag_spec='${wl}-E'
10175 # hardcode_minus_L: Not really in the search PATH,
10176 # but as the default location of the library.
10177 hardcode_minus_L=yes
10181 hpux11*)
10182 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10183 case $host_cpu in
10184 hppa*64*)
10185 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 ia64*)
10188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10193 esac
10194 else
10195 case $host_cpu in
10196 hppa*64*)
10197 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 ia64*)
10200 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10204 # Older versions of the 11.00 compiler do not understand -b yet
10205 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10207 $as_echo_n "checking if $CC understands -b... " >&6; }
10208 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 lt_cv_prog_compiler__b=no
10212 save_LDFLAGS="$LDFLAGS"
10213 LDFLAGS="$LDFLAGS -b"
10214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10216 # The linker can only warn and ignore the option if not recognized
10217 # So say no if there are warnings
10218 if test -s conftest.err; then
10219 # Append any errors to the config.log.
10220 cat conftest.err 1>&5
10221 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10223 if diff conftest.exp conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler__b=yes
10226 else
10227 lt_cv_prog_compiler__b=yes
10230 $RM -r conftest*
10231 LDFLAGS="$save_LDFLAGS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10235 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10237 if test x"$lt_cv_prog_compiler__b" = xyes; then
10238 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10239 else
10240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10244 esac
10246 if test "$with_gnu_ld" = no; then
10247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10248 hardcode_libdir_separator=:
10250 case $host_cpu in
10251 hppa*64*|ia64*)
10252 hardcode_direct=no
10253 hardcode_shlibpath_var=no
10256 hardcode_direct=yes
10257 hardcode_direct_absolute=yes
10258 export_dynamic_flag_spec='${wl}-E'
10260 # hardcode_minus_L: Not really in the search PATH,
10261 # but as the default location of the library.
10262 hardcode_minus_L=yes
10264 esac
10268 irix5* | irix6* | nonstopux*)
10269 if test "$GCC" = yes; then
10270 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'
10271 # Try to use the -exported_symbol ld option, if it does not
10272 # work, assume that -exports_file does not work either and
10273 # implicitly export all symbols.
10274 save_LDFLAGS="$LDFLAGS"
10275 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278 int foo(void) {}
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then :
10281 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'
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LDFLAGS="$save_LDFLAGS"
10287 else
10288 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'
10289 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'
10291 archive_cmds_need_lc='no'
10292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293 hardcode_libdir_separator=:
10294 inherit_rpath=yes
10295 link_all_deplibs=yes
10298 netbsd*)
10299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10301 else
10302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10304 hardcode_libdir_flag_spec='-R$libdir'
10305 hardcode_direct=yes
10306 hardcode_shlibpath_var=no
10309 newsos6)
10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311 hardcode_direct=yes
10312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10313 hardcode_libdir_separator=:
10314 hardcode_shlibpath_var=no
10317 *nto* | *qnx*)
10320 openbsd*)
10321 if test -f /usr/libexec/ld.so; then
10322 hardcode_direct=yes
10323 hardcode_shlibpath_var=no
10324 hardcode_direct_absolute=yes
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10329 export_dynamic_flag_spec='${wl}-E'
10330 else
10331 case $host_os in
10332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_libdir_flag_spec='-R$libdir'
10337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10340 esac
10342 else
10343 ld_shlibs=no
10347 os2*)
10348 hardcode_libdir_flag_spec='-L$libdir'
10349 hardcode_minus_L=yes
10350 allow_undefined_flag=unsupported
10351 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'
10352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10355 osf3*)
10356 if test "$GCC" = yes; then
10357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10358 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'
10359 else
10360 allow_undefined_flag=' -expect_unresolved \*'
10361 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'
10363 archive_cmds_need_lc='no'
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 hardcode_libdir_separator=:
10368 osf4* | osf5*) # as osf3* with the addition of -msym flag
10369 if test "$GCC" = yes; then
10370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10371 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'
10372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373 else
10374 allow_undefined_flag=' -expect_unresolved \*'
10375 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'
10376 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~
10377 $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'
10379 # Both c and cxx compiler support -rpath directly
10380 hardcode_libdir_flag_spec='-rpath $libdir'
10382 archive_cmds_need_lc='no'
10383 hardcode_libdir_separator=:
10386 solaris*)
10387 no_undefined_flag=' -z defs'
10388 if test "$GCC" = yes; then
10389 wlarc='${wl}'
10390 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10393 else
10394 case `$CC -V 2>&1` in
10395 *"Compilers 5.0"*)
10396 wlarc=''
10397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10402 wlarc='${wl}'
10403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10407 esac
10409 hardcode_libdir_flag_spec='-R$libdir'
10410 hardcode_shlibpath_var=no
10411 case $host_os in
10412 solaris2.[0-5] | solaris2.[0-5].*) ;;
10414 # The compiler driver will combine and reorder linker options,
10415 # but understands `-z linker_flag'. GCC discards it without `$wl',
10416 # but is careful enough not to reorder.
10417 # Supported since Solaris 2.6 (maybe 2.5.1?)
10418 if test "$GCC" = yes; then
10419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10420 else
10421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10424 esac
10425 link_all_deplibs=yes
10428 sunos4*)
10429 if test "x$host_vendor" = xsequent; then
10430 # Use $CC to link under sequent, because it throws in some extra .o
10431 # files that make .init and .fini sections work.
10432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10433 else
10434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 hardcode_direct=yes
10438 hardcode_minus_L=yes
10439 hardcode_shlibpath_var=no
10442 sysv4)
10443 case $host_vendor in
10444 sni)
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_direct=yes # is this really true???
10448 siemens)
10449 ## LD is ld it makes a PLAMLIB
10450 ## CC just makes a GrossModule.
10451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10452 reload_cmds='$CC -r -o $output$reload_objs'
10453 hardcode_direct=no
10455 motorola)
10456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10459 esac
10460 runpath_var='LD_RUN_PATH'
10461 hardcode_shlibpath_var=no
10464 sysv4.3*)
10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_shlibpath_var=no
10467 export_dynamic_flag_spec='-Bexport'
10470 sysv4*MP*)
10471 if test -d /usr/nec; then
10472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473 hardcode_shlibpath_var=no
10474 runpath_var=LD_RUN_PATH
10475 hardcode_runpath_var=yes
10476 ld_shlibs=yes
10480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10481 no_undefined_flag='${wl}-z,text'
10482 archive_cmds_need_lc=no
10483 hardcode_shlibpath_var=no
10484 runpath_var='LD_RUN_PATH'
10486 if test "$GCC" = yes; then
10487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489 else
10490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10495 sysv5* | sco3.2v5* | sco5v6*)
10496 # Note: We can NOT use -z defs as we might desire, because we do not
10497 # link with -lc, and that would cause any symbols used from libc to
10498 # always be unresolved, which means just about no library would
10499 # ever link correctly. If we're not using GNU ld we use -z text
10500 # though, which does catch some bad symbols but isn't as heavy-handed
10501 # as -z defs.
10502 no_undefined_flag='${wl}-z,text'
10503 allow_undefined_flag='${wl}-z,nodefs'
10504 archive_cmds_need_lc=no
10505 hardcode_shlibpath_var=no
10506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10507 hardcode_libdir_separator=':'
10508 link_all_deplibs=yes
10509 export_dynamic_flag_spec='${wl}-Bexport'
10510 runpath_var='LD_RUN_PATH'
10512 if test "$GCC" = yes; then
10513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515 else
10516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10521 uts4*)
10522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_shlibpath_var=no
10528 ld_shlibs=no
10530 esac
10532 if test x$host_vendor = xsni; then
10533 case $host in
10534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10535 export_dynamic_flag_spec='${wl}-Blargedynsym'
10537 esac
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10542 $as_echo "$ld_shlibs" >&6; }
10543 test "$ld_shlibs" = no && can_build_shared=no
10545 with_gnu_ld=$with_gnu_ld
10562 # Do we need to explicitly link libc?
10564 case "x$archive_cmds_need_lc" in
10565 x|xyes)
10566 # Assume -lc should be added
10567 archive_cmds_need_lc=yes
10569 if test "$enable_shared" = yes && test "$GCC" = yes; then
10570 case $archive_cmds in
10571 *'~'*)
10572 # FIXME: we may have to deal with multi-command sequences.
10574 '$CC '*)
10575 # Test whether the compiler implicitly links with -lc since on some
10576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10577 # to ld, don't add -lc before -lgcc.
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10580 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 $RM conftest*
10584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10587 (eval $ac_compile) 2>&5
10588 ac_status=$?
10589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590 test $ac_status = 0; } 2>conftest.err; then
10591 soname=conftest
10592 lib=conftest
10593 libobjs=conftest.$ac_objext
10594 deplibs=
10595 wl=$lt_prog_compiler_wl
10596 pic_flag=$lt_prog_compiler_pic
10597 compiler_flags=-v
10598 linker_flags=-v
10599 verstring=
10600 output_objdir=.
10601 libname=conftest
10602 lt_save_allow_undefined_flag=$allow_undefined_flag
10603 allow_undefined_flag=
10604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10606 ac_status=$?
10607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10608 test $ac_status = 0; }
10609 then
10610 lt_cv_archive_cmds_need_lc=no
10611 else
10612 lt_cv_archive_cmds_need_lc=yes
10614 allow_undefined_flag=$lt_save_allow_undefined_flag
10615 else
10616 cat conftest.err 1>&5
10618 $RM conftest*
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10625 esac
10628 esac
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10789 if test "$GCC" = yes; then
10790 case $host_os in
10791 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10792 *) lt_awk_arg="/^libraries:/" ;;
10793 esac
10794 case $host_os in
10795 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10796 *) lt_sed_strip_eq="s,=/,/,g" ;;
10797 esac
10798 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10799 case $lt_search_path_spec in
10800 *\;*)
10801 # if the path contains ";" then we assume it to be the separator
10802 # otherwise default to the standard path separator (i.e. ":") - it is
10803 # assumed that no part of a normal pathname contains ";" but that should
10804 # okay in the real world where ";" in dirpaths is itself problematic.
10805 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10810 esac
10811 # Ok, now we have the path, separated by spaces, we can step through it
10812 # and add multilib dir if necessary.
10813 lt_tmp_lt_search_path_spec=
10814 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10815 for lt_sys_path in $lt_search_path_spec; do
10816 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10817 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10818 else
10819 test -d "$lt_sys_path" && \
10820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10822 done
10823 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10824 BEGIN {RS=" "; FS="/|\n";} {
10825 lt_foo="";
10826 lt_count=0;
10827 for (lt_i = NF; lt_i > 0; lt_i--) {
10828 if ($lt_i != "" && $lt_i != ".") {
10829 if ($lt_i == "..") {
10830 lt_count++;
10831 } else {
10832 if (lt_count == 0) {
10833 lt_foo="/" $lt_i lt_foo;
10834 } else {
10835 lt_count--;
10840 if (lt_foo != "") { lt_freq[lt_foo]++; }
10841 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10843 # AWK program above erroneously prepends '/' to C:/dos/paths
10844 # for these hosts.
10845 case $host_os in
10846 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10847 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10848 esac
10849 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10850 else
10851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10853 library_names_spec=
10854 libname_spec='lib$name'
10855 soname_spec=
10856 shrext_cmds=".so"
10857 postinstall_cmds=
10858 postuninstall_cmds=
10859 finish_cmds=
10860 finish_eval=
10861 shlibpath_var=
10862 shlibpath_overrides_runpath=unknown
10863 version_type=none
10864 dynamic_linker="$host_os ld.so"
10865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10866 need_lib_prefix=unknown
10867 hardcode_into_libs=no
10869 # when you set need_version to no, make sure it does not cause -set_version
10870 # flags to be left without arguments
10871 need_version=unknown
10873 case $host_os in
10874 aix3*)
10875 version_type=linux
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10877 shlibpath_var=LIBPATH
10879 # AIX 3 has no versioning support, so we append a major version to the name.
10880 soname_spec='${libname}${release}${shared_ext}$major'
10883 aix[4-9]*)
10884 version_type=linux
10885 need_lib_prefix=no
10886 need_version=no
10887 hardcode_into_libs=yes
10888 if test "$host_cpu" = ia64; then
10889 # AIX 5 supports IA64
10890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10891 shlibpath_var=LD_LIBRARY_PATH
10892 else
10893 # With GCC up to 2.95.x, collect2 would create an import file
10894 # for dependence libraries. The import file would start with
10895 # the line `#! .'. This would cause the generated library to
10896 # depend on `.', always an invalid library. This was fixed in
10897 # development snapshots of GCC prior to 3.0.
10898 case $host_os in
10899 aix4 | aix4.[01] | aix4.[01].*)
10900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10901 echo ' yes '
10902 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10904 else
10905 can_build_shared=no
10908 esac
10909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10910 # soname into executable. Probably we can add versioning support to
10911 # collect2, so additional links can be useful in future.
10912 if test "$aix_use_runtimelinking" = yes; then
10913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10914 # instead of lib<name>.a to let people know that these are not
10915 # typical AIX shared libraries.
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 else
10918 # We preserve .a as extension for shared libraries through AIX4.2
10919 # and later when we are not doing run time linking.
10920 library_names_spec='${libname}${release}.a $libname.a'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LIBPATH
10927 amigaos*)
10928 case $host_cpu in
10929 powerpc)
10930 # Since July 2007 AmigaOS4 officially supports .so libraries.
10931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 m68k)
10935 library_names_spec='$libname.ixlibrary $libname.a'
10936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10937 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'
10939 esac
10942 beos*)
10943 library_names_spec='${libname}${shared_ext}'
10944 dynamic_linker="$host_os ld.so"
10945 shlibpath_var=LIBRARY_PATH
10948 bsdi[45]*)
10949 version_type=linux
10950 need_version=no
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10957 # the default ld.so.conf also contains /usr/contrib/lib and
10958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10959 # libtool to hard-code these into programs
10962 cygwin* | mingw* | pw32* | cegcc*)
10963 version_type=windows
10964 shrext_cmds=".dll"
10965 need_version=no
10966 need_lib_prefix=no
10968 case $GCC,$host_os in
10969 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10970 library_names_spec='$libname.dll.a'
10971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10972 postinstall_cmds='base_file=`basename \${file}`~
10973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10974 dldir=$destdir/`dirname \$dlpath`~
10975 test -d \$dldir || mkdir -p \$dldir~
10976 $install_prog $dir/$dlname \$dldir/$dlname~
10977 chmod a+x \$dldir/$dlname~
10978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10982 dlpath=$dir/\$dldll~
10983 $RM \$dlpath'
10984 shlibpath_overrides_runpath=yes
10986 case $host_os in
10987 cygwin*)
10988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10991 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10993 mingw* | cegcc*)
10994 # MinGW DLLs use traditional 'lib' prefix
10995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10997 pw32*)
10998 # pw32 DLLs use 'pw' prefix rather than 'lib'
10999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11001 esac
11005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11007 esac
11008 dynamic_linker='Win32 ld.exe'
11009 # FIXME: first we should search . and the directory the executable is in
11010 shlibpath_var=PATH
11013 darwin* | rhapsody*)
11014 dynamic_linker="$host_os dyld"
11015 version_type=darwin
11016 need_lib_prefix=no
11017 need_version=no
11018 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11019 soname_spec='${libname}${release}${major}$shared_ext'
11020 shlibpath_overrides_runpath=yes
11021 shlibpath_var=DYLD_LIBRARY_PATH
11022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11028 dgux*)
11029 version_type=linux
11030 need_lib_prefix=no
11031 need_version=no
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11037 freebsd* | dragonfly*)
11038 # DragonFly does not have aout. When/if they implement a new
11039 # versioning mechanism, adjust this.
11040 if test -x /usr/bin/objformat; then
11041 objformat=`/usr/bin/objformat`
11042 else
11043 case $host_os in
11044 freebsd[23].*) objformat=aout ;;
11045 *) objformat=elf ;;
11046 esac
11048 version_type=freebsd-$objformat
11049 case $version_type in
11050 freebsd-elf*)
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11052 need_version=no
11053 need_lib_prefix=no
11055 freebsd-*)
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11057 need_version=yes
11059 esac
11060 shlibpath_var=LD_LIBRARY_PATH
11061 case $host_os in
11062 freebsd2.*)
11063 shlibpath_overrides_runpath=yes
11065 freebsd3.[01]* | freebsdelf3.[01]*)
11066 shlibpath_overrides_runpath=yes
11067 hardcode_into_libs=yes
11069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11071 shlibpath_overrides_runpath=no
11072 hardcode_into_libs=yes
11074 *) # from 4.6 on, and DragonFly
11075 shlibpath_overrides_runpath=yes
11076 hardcode_into_libs=yes
11078 esac
11081 gnu*)
11082 version_type=linux
11083 need_lib_prefix=no
11084 need_version=no
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 hardcode_into_libs=yes
11091 haiku*)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 dynamic_linker="$host_os runtime_loader"
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11101 hardcode_into_libs=yes
11104 hpux9* | hpux10* | hpux11*)
11105 # Give a soname corresponding to the major version so that dld.sl refuses to
11106 # link against other versions.
11107 version_type=sunos
11108 need_lib_prefix=no
11109 need_version=no
11110 case $host_cpu in
11111 ia64*)
11112 shrext_cmds='.so'
11113 hardcode_into_libs=yes
11114 dynamic_linker="$host_os dld.so"
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 if test "X$HPUX_IA64_MODE" = X32; then
11120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11121 else
11122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11126 hppa*64*)
11127 shrext_cmds='.sl'
11128 hardcode_into_libs=yes
11129 dynamic_linker="$host_os dld.sl"
11130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11138 shrext_cmds='.sl'
11139 dynamic_linker="$host_os dld.sl"
11140 shlibpath_var=SHLIB_PATH
11141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11145 esac
11146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11147 postinstall_cmds='chmod 555 $lib'
11148 # or fails outright, so override atomically:
11149 install_override_mode=555
11152 interix[3-9]*)
11153 version_type=linux
11154 need_lib_prefix=no
11155 need_version=no
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=no
11161 hardcode_into_libs=yes
11164 irix5* | irix6* | nonstopux*)
11165 case $host_os in
11166 nonstopux*) version_type=nonstopux ;;
11168 if test "$lt_cv_prog_gnu_ld" = yes; then
11169 version_type=linux
11170 else
11171 version_type=irix
11172 fi ;;
11173 esac
11174 need_lib_prefix=no
11175 need_version=no
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11178 case $host_os in
11179 irix5* | nonstopux*)
11180 libsuff= shlibsuff=
11183 case $LD in # libtool.m4 will add one of these switches to LD
11184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11185 libsuff= shlibsuff= libmagic=32-bit;;
11186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11187 libsuff=32 shlibsuff=N32 libmagic=N32;;
11188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11190 *) libsuff= shlibsuff= libmagic=never-match;;
11191 esac
11193 esac
11194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11195 shlibpath_overrides_runpath=no
11196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11198 hardcode_into_libs=yes
11201 # No shared lib support for Linux oldld, aout, or coff.
11202 linux*oldld* | linux*aout* | linux*coff*)
11203 dynamic_linker=no
11206 # This must be Linux ELF.
11207 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11208 version_type=linux
11209 need_lib_prefix=no
11210 need_version=no
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11217 # Some binutils ld are patched to set DT_RUNPATH
11218 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 lt_cv_shlibpath_overrides_runpath=no
11222 save_LDFLAGS=$LDFLAGS
11223 save_libdir=$libdir
11224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11230 main ()
11234 return 0;
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11239 lt_cv_shlibpath_overrides_runpath=yes
11242 rm -f core conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11244 LDFLAGS=$save_LDFLAGS
11245 libdir=$save_libdir
11249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11251 # This implies no fast_install, which is unacceptable.
11252 # Some rework will be needed to allow for fast_install
11253 # before this can be enabled.
11254 hardcode_into_libs=yes
11256 # Append ld.so.conf contents to the search path
11257 if test -f /etc/ld.so.conf; then
11258 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' ' '`
11259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11262 # We used to test for /lib/ld.so.1 and disable shared libraries on
11263 # powerpc, because MkLinux only supported shared libraries with the
11264 # GNU dynamic linker. Since this was broken with cross compilers,
11265 # most powerpc-linux boxes support dynamic linking these days and
11266 # people can always --disable-shared, the test was removed, and we
11267 # assume the GNU/Linux dynamic linker is in use.
11268 dynamic_linker='GNU/Linux ld.so'
11271 netbsd*)
11272 version_type=sunos
11273 need_lib_prefix=no
11274 need_version=no
11275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11278 dynamic_linker='NetBSD (a.out) ld.so'
11279 else
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 dynamic_linker='NetBSD ld.elf_so'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11289 newsos6)
11290 version_type=linux
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 shlibpath_overrides_runpath=yes
11296 *nto* | *qnx*)
11297 version_type=qnx
11298 need_lib_prefix=no
11299 need_version=no
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 shlibpath_overrides_runpath=no
11304 hardcode_into_libs=yes
11305 dynamic_linker='ldqnx.so'
11308 openbsd*)
11309 version_type=sunos
11310 sys_lib_dlsearch_path_spec="/usr/lib"
11311 need_lib_prefix=no
11312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11313 case $host_os in
11314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11315 *) need_version=no ;;
11316 esac
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11321 case $host_os in
11322 openbsd2.[89] | openbsd2.[89].*)
11323 shlibpath_overrides_runpath=no
11326 shlibpath_overrides_runpath=yes
11328 esac
11329 else
11330 shlibpath_overrides_runpath=yes
11334 os2*)
11335 libname_spec='$name'
11336 shrext_cmds=".dll"
11337 need_lib_prefix=no
11338 library_names_spec='$libname${shared_ext} $libname.a'
11339 dynamic_linker='OS/2 ld.exe'
11340 shlibpath_var=LIBPATH
11343 osf3* | osf4* | osf5*)
11344 version_type=osf
11345 need_lib_prefix=no
11346 need_version=no
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11354 rdos*)
11355 dynamic_linker=no
11358 solaris*)
11359 version_type=linux
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=yes
11366 hardcode_into_libs=yes
11367 # ldd complains unless libraries are executable
11368 postinstall_cmds='chmod +x $lib'
11371 sunos4*)
11372 version_type=sunos
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=yes
11377 if test "$with_gnu_ld" = yes; then
11378 need_lib_prefix=no
11380 need_version=yes
11383 sysv4 | sysv4.3*)
11384 version_type=linux
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 case $host_vendor in
11389 sni)
11390 shlibpath_overrides_runpath=no
11391 need_lib_prefix=no
11392 runpath_var=LD_RUN_PATH
11394 siemens)
11395 need_lib_prefix=no
11397 motorola)
11398 need_lib_prefix=no
11399 need_version=no
11400 shlibpath_overrides_runpath=no
11401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11403 esac
11406 sysv4*MP*)
11407 if test -d /usr/nec ;then
11408 version_type=linux
11409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11410 soname_spec='$libname${shared_ext}.$major'
11411 shlibpath_var=LD_LIBRARY_PATH
11415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11416 version_type=freebsd-elf
11417 need_lib_prefix=no
11418 need_version=no
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 shlibpath_var=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath=yes
11423 hardcode_into_libs=yes
11424 if test "$with_gnu_ld" = yes; then
11425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11426 else
11427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11428 case $host_os in
11429 sco3.2v5*)
11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11432 esac
11434 sys_lib_dlsearch_path_spec='/usr/lib'
11437 tpf*)
11438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11439 version_type=linux
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=no
11445 hardcode_into_libs=yes
11448 uts4*)
11449 version_type=linux
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11456 dynamic_linker=no
11458 esac
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11460 $as_echo "$dynamic_linker" >&6; }
11461 test "$dynamic_linker" = no && can_build_shared=no
11463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11464 if test "$GCC" = yes; then
11465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11568 hardcode_action=
11569 if test -n "$hardcode_libdir_flag_spec" ||
11570 test -n "$runpath_var" ||
11571 test "X$hardcode_automatic" = "Xyes" ; then
11573 # We can hardcode non-existent directories.
11574 if test "$hardcode_direct" != no &&
11575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11576 # have to relink, otherwise we might link with an installed library
11577 # when we should be linking with a yet-to-be-installed one
11578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11579 test "$hardcode_minus_L" != no; then
11580 # Linking always hardcodes the temporary library directory.
11581 hardcode_action=relink
11582 else
11583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11584 hardcode_action=immediate
11586 else
11587 # We cannot hardcode anything, or else we can only hardcode existing
11588 # directories.
11589 hardcode_action=unsupported
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11592 $as_echo "$hardcode_action" >&6; }
11594 if test "$hardcode_action" = relink ||
11595 test "$inherit_rpath" = yes; then
11596 # Fast installation is not supported
11597 enable_fast_install=no
11598 elif test "$shlibpath_overrides_runpath" = yes ||
11599 test "$enable_shared" = no; then
11600 # Fast installation is not necessary
11601 enable_fast_install=needless
11609 if test "x$enable_dlopen" != xyes; then
11610 enable_dlopen=unknown
11611 enable_dlopen_self=unknown
11612 enable_dlopen_self_static=unknown
11613 else
11614 lt_cv_dlopen=no
11615 lt_cv_dlopen_libs=
11617 case $host_os in
11618 beos*)
11619 lt_cv_dlopen="load_add_on"
11620 lt_cv_dlopen_libs=
11621 lt_cv_dlopen_self=yes
11624 mingw* | pw32* | cegcc*)
11625 lt_cv_dlopen="LoadLibrary"
11626 lt_cv_dlopen_libs=
11629 cygwin*)
11630 lt_cv_dlopen="dlopen"
11631 lt_cv_dlopen_libs=
11634 darwin*)
11635 # if libdl is installed we need to link against it
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-ldl $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char dlopen ();
11654 main ()
11656 return dlopen ();
11658 return 0;
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_dl_dlopen=yes
11663 else
11664 ac_cv_lib_dl_dlopen=no
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11672 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11674 else
11676 lt_cv_dlopen="dyld"
11677 lt_cv_dlopen_libs=
11678 lt_cv_dlopen_self=yes
11685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11686 if test "x$ac_cv_func_shl_load" = x""yes; then :
11687 lt_cv_dlopen="shl_load"
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11691 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 ac_check_lib_save_LIBS=$LIBS
11695 LIBS="-ldld $LIBS"
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11699 /* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11702 #ifdef __cplusplus
11703 extern "C"
11704 #endif
11705 char shl_load ();
11707 main ()
11709 return shl_load ();
11711 return 0;
11713 _ACEOF
11714 if ac_fn_c_try_link "$LINENO"; then :
11715 ac_cv_lib_dld_shl_load=yes
11716 else
11717 ac_cv_lib_dld_shl_load=no
11719 rm -f core conftest.err conftest.$ac_objext \
11720 conftest$ac_exeext conftest.$ac_ext
11721 LIBS=$ac_check_lib_save_LIBS
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11725 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11727 else
11728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11729 if test "x$ac_cv_func_dlopen" = x""yes; then :
11730 lt_cv_dlopen="dlopen"
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-ldl $LIBS"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char dlopen ();
11750 main ()
11752 return dlopen ();
11754 return 0;
11756 _ACEOF
11757 if ac_fn_c_try_link "$LINENO"; then :
11758 ac_cv_lib_dl_dlopen=yes
11759 else
11760 ac_cv_lib_dl_dlopen=no
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11768 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11773 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11775 else
11776 ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-lsvld $LIBS"
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11781 /* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 char dlopen ();
11789 main ()
11791 return dlopen ();
11793 return 0;
11795 _ACEOF
11796 if ac_fn_c_try_link "$LINENO"; then :
11797 ac_cv_lib_svld_dlopen=yes
11798 else
11799 ac_cv_lib_svld_dlopen=no
11801 rm -f core conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11807 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11812 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-ldld $LIBS"
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char dld_link ();
11828 main ()
11830 return dld_link ();
11832 return 0;
11834 _ACEOF
11835 if ac_fn_c_try_link "$LINENO"; then :
11836 ac_cv_lib_dld_dld_link=yes
11837 else
11838 ac_cv_lib_dld_dld_link=no
11840 rm -f core conftest.err conftest.$ac_objext \
11841 conftest$ac_exeext conftest.$ac_ext
11842 LIBS=$ac_check_lib_save_LIBS
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11846 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11866 esac
11868 if test "x$lt_cv_dlopen" != xno; then
11869 enable_dlopen=yes
11870 else
11871 enable_dlopen=no
11874 case $lt_cv_dlopen in
11875 dlopen)
11876 save_CPPFLAGS="$CPPFLAGS"
11877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11879 save_LDFLAGS="$LDFLAGS"
11880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11882 save_LIBS="$LIBS"
11883 LIBS="$lt_cv_dlopen_libs $LIBS"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11887 if test "${lt_cv_dlopen_self+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 if test "$cross_compiling" = yes; then :
11891 lt_cv_dlopen_self=cross
11892 else
11893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11894 lt_status=$lt_dlunknown
11895 cat > conftest.$ac_ext <<_LT_EOF
11896 #line 11896 "configure"
11897 #include "confdefs.h"
11899 #if HAVE_DLFCN_H
11900 #include <dlfcn.h>
11901 #endif
11903 #include <stdio.h>
11905 #ifdef RTLD_GLOBAL
11906 # define LT_DLGLOBAL RTLD_GLOBAL
11907 #else
11908 # ifdef DL_GLOBAL
11909 # define LT_DLGLOBAL DL_GLOBAL
11910 # else
11911 # define LT_DLGLOBAL 0
11912 # endif
11913 #endif
11915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11916 find out it does not work in some platform. */
11917 #ifndef LT_DLLAZY_OR_NOW
11918 # ifdef RTLD_LAZY
11919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11920 # else
11921 # ifdef DL_LAZY
11922 # define LT_DLLAZY_OR_NOW DL_LAZY
11923 # else
11924 # ifdef RTLD_NOW
11925 # define LT_DLLAZY_OR_NOW RTLD_NOW
11926 # else
11927 # ifdef DL_NOW
11928 # define LT_DLLAZY_OR_NOW DL_NOW
11929 # else
11930 # define LT_DLLAZY_OR_NOW 0
11931 # endif
11932 # endif
11933 # endif
11934 # endif
11935 #endif
11937 /* When -fvisbility=hidden is used, assume the code has been annotated
11938 correspondingly for the symbols needed. */
11939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11940 void fnord () __attribute__((visibility("default")));
11941 #endif
11943 void fnord () { int i=42; }
11944 int main ()
11946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11947 int status = $lt_dlunknown;
11949 if (self)
11951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11952 else
11954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11955 else puts (dlerror ());
11957 /* dlclose (self); */
11959 else
11960 puts (dlerror ());
11962 return status;
11964 _LT_EOF
11965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11966 (eval $ac_link) 2>&5
11967 ac_status=$?
11968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11970 (./conftest; exit; ) >&5 2>/dev/null
11971 lt_status=$?
11972 case x$lt_status in
11973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11976 esac
11977 else :
11978 # compilation failed
11979 lt_cv_dlopen_self=no
11982 rm -fr conftest*
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11987 $as_echo "$lt_cv_dlopen_self" >&6; }
11989 if test "x$lt_cv_dlopen_self" = xyes; then
11990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11993 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 if test "$cross_compiling" = yes; then :
11997 lt_cv_dlopen_self_static=cross
11998 else
11999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12000 lt_status=$lt_dlunknown
12001 cat > conftest.$ac_ext <<_LT_EOF
12002 #line 12002 "configure"
12003 #include "confdefs.h"
12005 #if HAVE_DLFCN_H
12006 #include <dlfcn.h>
12007 #endif
12009 #include <stdio.h>
12011 #ifdef RTLD_GLOBAL
12012 # define LT_DLGLOBAL RTLD_GLOBAL
12013 #else
12014 # ifdef DL_GLOBAL
12015 # define LT_DLGLOBAL DL_GLOBAL
12016 # else
12017 # define LT_DLGLOBAL 0
12018 # endif
12019 #endif
12021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12022 find out it does not work in some platform. */
12023 #ifndef LT_DLLAZY_OR_NOW
12024 # ifdef RTLD_LAZY
12025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12026 # else
12027 # ifdef DL_LAZY
12028 # define LT_DLLAZY_OR_NOW DL_LAZY
12029 # else
12030 # ifdef RTLD_NOW
12031 # define LT_DLLAZY_OR_NOW RTLD_NOW
12032 # else
12033 # ifdef DL_NOW
12034 # define LT_DLLAZY_OR_NOW DL_NOW
12035 # else
12036 # define LT_DLLAZY_OR_NOW 0
12037 # endif
12038 # endif
12039 # endif
12040 # endif
12041 #endif
12043 /* When -fvisbility=hidden is used, assume the code has been annotated
12044 correspondingly for the symbols needed. */
12045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12046 void fnord () __attribute__((visibility("default")));
12047 #endif
12049 void fnord () { int i=42; }
12050 int main ()
12052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12053 int status = $lt_dlunknown;
12055 if (self)
12057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12058 else
12060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12061 else puts (dlerror ());
12063 /* dlclose (self); */
12065 else
12066 puts (dlerror ());
12068 return status;
12070 _LT_EOF
12071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12076 (./conftest; exit; ) >&5 2>/dev/null
12077 lt_status=$?
12078 case x$lt_status in
12079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12082 esac
12083 else :
12084 # compilation failed
12085 lt_cv_dlopen_self_static=no
12088 rm -fr conftest*
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12096 CPPFLAGS="$save_CPPFLAGS"
12097 LDFLAGS="$save_LDFLAGS"
12098 LIBS="$save_LIBS"
12100 esac
12102 case $lt_cv_dlopen_self in
12103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12104 *) enable_dlopen_self=unknown ;;
12105 esac
12107 case $lt_cv_dlopen_self_static in
12108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12109 *) enable_dlopen_self_static=unknown ;;
12110 esac
12129 striplib=
12130 old_striplib=
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137 $as_echo "yes" >&6; }
12138 else
12139 # FIXME - insert some real tests, host_os isn't really good enough
12140 case $host_os in
12141 darwin*)
12142 if test -n "$STRIP" ; then
12143 striplib="$STRIP -x"
12144 old_striplib="$STRIP -S"
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146 $as_echo "yes" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12156 esac
12170 # Report which library types will actually be built
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12174 $as_echo "$can_build_shared" >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12177 $as_echo_n "checking whether to build shared libraries... " >&6; }
12178 test "$can_build_shared" = "no" && enable_shared=no
12180 # On AIX, shared libraries and static libraries use the same namespace, and
12181 # are all built from PIC.
12182 case $host_os in
12183 aix3*)
12184 test "$enable_shared" = yes && enable_static=no
12185 if test -n "$RANLIB"; then
12186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12187 postinstall_cmds='$RANLIB $lib'
12191 aix[4-9]*)
12192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12193 test "$enable_shared" = yes && enable_static=no
12196 esac
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12198 $as_echo "$enable_shared" >&6; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12201 $as_echo_n "checking whether to build static libraries... " >&6; }
12202 # Make sure either enable_shared or enable_static is yes.
12203 test "$enable_shared" = yes || enable_static=yes
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12205 $as_echo "$enable_static" >&6; }
12211 ac_ext=c
12212 ac_cpp='$CPP $CPPFLAGS'
12213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12217 CC="$lt_save_CC"
12219 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12220 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12221 (test "X$CXX" != "Xg++"))) ; then
12222 ac_ext=cpp
12223 ac_cpp='$CXXCPP $CPPFLAGS'
12224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12228 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12229 if test -z "$CXXCPP"; then
12230 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 # Double quotes because CXXCPP needs to be expanded
12234 for CXXCPP in "$CXX -E" "/lib/cpp"
12236 ac_preproc_ok=false
12237 for ac_cxx_preproc_warn_flag in '' yes
12239 # Use a header file that comes with gcc, so configuring glibc
12240 # with a fresh cross-compiler works.
12241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 # <limits.h> exists even on freestanding compilers.
12243 # On the NeXT, cc -E runs the code through the compiler's parser,
12244 # not just through cpp. "Syntax error" is here to catch this case.
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 #ifdef __STDC__
12248 # include <limits.h>
12249 #else
12250 # include <assert.h>
12251 #endif
12252 Syntax error
12253 _ACEOF
12254 if ac_fn_cxx_try_cpp "$LINENO"; then :
12256 else
12257 # Broken: fails on valid input.
12258 continue
12260 rm -f conftest.err conftest.$ac_ext
12262 # OK, works on sane cases. Now check whether nonexistent headers
12263 # can be detected and how.
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266 #include <ac_nonexistent.h>
12267 _ACEOF
12268 if ac_fn_cxx_try_cpp "$LINENO"; then :
12269 # Broken: success on invalid input.
12270 continue
12271 else
12272 # Passes both tests.
12273 ac_preproc_ok=:
12274 break
12276 rm -f conftest.err conftest.$ac_ext
12278 done
12279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12280 rm -f conftest.err conftest.$ac_ext
12281 if $ac_preproc_ok; then :
12282 break
12285 done
12286 ac_cv_prog_CXXCPP=$CXXCPP
12289 CXXCPP=$ac_cv_prog_CXXCPP
12290 else
12291 ac_cv_prog_CXXCPP=$CXXCPP
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12294 $as_echo "$CXXCPP" >&6; }
12295 ac_preproc_ok=false
12296 for ac_cxx_preproc_warn_flag in '' yes
12298 # Use a header file that comes with gcc, so configuring glibc
12299 # with a fresh cross-compiler works.
12300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12301 # <limits.h> exists even on freestanding compilers.
12302 # On the NeXT, cc -E runs the code through the compiler's parser,
12303 # not just through cpp. "Syntax error" is here to catch this case.
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306 #ifdef __STDC__
12307 # include <limits.h>
12308 #else
12309 # include <assert.h>
12310 #endif
12311 Syntax error
12312 _ACEOF
12313 if ac_fn_cxx_try_cpp "$LINENO"; then :
12315 else
12316 # Broken: fails on valid input.
12317 continue
12319 rm -f conftest.err conftest.$ac_ext
12321 # OK, works on sane cases. Now check whether nonexistent headers
12322 # can be detected and how.
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 #include <ac_nonexistent.h>
12326 _ACEOF
12327 if ac_fn_cxx_try_cpp "$LINENO"; then :
12328 # Broken: success on invalid input.
12329 continue
12330 else
12331 # Passes both tests.
12332 ac_preproc_ok=:
12333 break
12335 rm -f conftest.err conftest.$ac_ext
12337 done
12338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12339 rm -f conftest.err conftest.$ac_ext
12340 if $ac_preproc_ok; then :
12342 else
12343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12345 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12346 See \`config.log' for more details." "$LINENO" 5; }
12349 ac_ext=c
12350 ac_cpp='$CPP $CPPFLAGS'
12351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355 else
12356 _lt_caught_CXX_error=yes
12359 ac_ext=cpp
12360 ac_cpp='$CXXCPP $CPPFLAGS'
12361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12365 archive_cmds_need_lc_CXX=no
12366 allow_undefined_flag_CXX=
12367 always_export_symbols_CXX=no
12368 archive_expsym_cmds_CXX=
12369 compiler_needs_object_CXX=no
12370 export_dynamic_flag_spec_CXX=
12371 hardcode_direct_CXX=no
12372 hardcode_direct_absolute_CXX=no
12373 hardcode_libdir_flag_spec_CXX=
12374 hardcode_libdir_flag_spec_ld_CXX=
12375 hardcode_libdir_separator_CXX=
12376 hardcode_minus_L_CXX=no
12377 hardcode_shlibpath_var_CXX=unsupported
12378 hardcode_automatic_CXX=no
12379 inherit_rpath_CXX=no
12380 module_cmds_CXX=
12381 module_expsym_cmds_CXX=
12382 link_all_deplibs_CXX=unknown
12383 old_archive_cmds_CXX=$old_archive_cmds
12384 reload_flag_CXX=$reload_flag
12385 reload_cmds_CXX=$reload_cmds
12386 no_undefined_flag_CXX=
12387 whole_archive_flag_spec_CXX=
12388 enable_shared_with_static_runtimes_CXX=no
12390 # Source file extension for C++ test sources.
12391 ac_ext=cpp
12393 # Object file extension for compiled C++ test sources.
12394 objext=o
12395 objext_CXX=$objext
12397 # No sense in running all these tests if we already determined that
12398 # the CXX compiler isn't working. Some variables (like enable_shared)
12399 # are currently assumed to apply to all compilers on this platform,
12400 # and will be corrupted by setting them based on a non-working compiler.
12401 if test "$_lt_caught_CXX_error" != yes; then
12402 # Code to be used in simple compile tests
12403 lt_simple_compile_test_code="int some_variable = 0;"
12405 # Code to be used in simple link tests
12406 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12415 # If no C compiler was specified, use CC.
12416 LTCC=${LTCC-"$CC"}
12418 # If no C compiler flags were specified, use CFLAGS.
12419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12421 # Allow CC to be a program name with arguments.
12422 compiler=$CC
12425 # save warnings/boilerplate of simple test code
12426 ac_outfile=conftest.$ac_objext
12427 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12428 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12429 _lt_compiler_boilerplate=`cat conftest.err`
12430 $RM conftest*
12432 ac_outfile=conftest.$ac_objext
12433 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12434 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12435 _lt_linker_boilerplate=`cat conftest.err`
12436 $RM -r conftest*
12439 # Allow CC to be a program name with arguments.
12440 lt_save_CC=$CC
12441 lt_save_LD=$LD
12442 lt_save_GCC=$GCC
12443 GCC=$GXX
12444 lt_save_with_gnu_ld=$with_gnu_ld
12445 lt_save_path_LD=$lt_cv_path_LD
12446 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12447 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12448 else
12449 $as_unset lt_cv_prog_gnu_ld
12451 if test -n "${lt_cv_path_LDCXX+set}"; then
12452 lt_cv_path_LD=$lt_cv_path_LDCXX
12453 else
12454 $as_unset lt_cv_path_LD
12456 test -z "${LDCXX+set}" || LD=$LDCXX
12457 CC=${CXX-"c++"}
12458 compiler=$CC
12459 compiler_CXX=$CC
12460 for cc_temp in $compiler""; do
12461 case $cc_temp in
12462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12464 \-*) ;;
12465 *) break;;
12466 esac
12467 done
12468 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12471 if test -n "$compiler"; then
12472 # We don't want -fno-exception when compiling C++ code, so set the
12473 # no_builtin_flag separately
12474 if test "$GXX" = yes; then
12475 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12476 else
12477 lt_prog_compiler_no_builtin_flag_CXX=
12480 if test "$GXX" = yes; then
12481 # Set up default GNU C++ configuration
12485 # Check whether --with-gnu-ld was given.
12486 if test "${with_gnu_ld+set}" = set; then :
12487 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12488 else
12489 with_gnu_ld=no
12492 ac_prog=ld
12493 if test "$GCC" = yes; then
12494 # Check if gcc -print-prog-name=ld gives a path.
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12496 $as_echo_n "checking for ld used by $CC... " >&6; }
12497 case $host in
12498 *-*-mingw*)
12499 # gcc leaves a trailing carriage return which upsets mingw
12500 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12502 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12503 esac
12504 case $ac_prog in
12505 # Accept absolute paths.
12506 [\\/]* | ?:[\\/]*)
12507 re_direlt='/[^/][^/]*/\.\./'
12508 # Canonicalize the pathname of ld
12509 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12510 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12511 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12512 done
12513 test -z "$LD" && LD="$ac_prog"
12516 # If it fails, then pretend we aren't using GCC.
12517 ac_prog=ld
12520 # If it is relative, then search for the first ld in PATH.
12521 with_gnu_ld=unknown
12523 esac
12524 elif test "$with_gnu_ld" = yes; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12526 $as_echo_n "checking for GNU ld... " >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12529 $as_echo_n "checking for non-GNU ld... " >&6; }
12531 if test "${lt_cv_path_LD+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if test -z "$LD"; then
12535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12536 for ac_dir in $PATH; do
12537 IFS="$lt_save_ifs"
12538 test -z "$ac_dir" && ac_dir=.
12539 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12540 lt_cv_path_LD="$ac_dir/$ac_prog"
12541 # Check to see if the program is GNU ld. I'd rather use --version,
12542 # but apparently some variants of GNU ld only accept -v.
12543 # Break only if it was the GNU/non-GNU ld that we prefer.
12544 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12545 *GNU* | *'with BFD'*)
12546 test "$with_gnu_ld" != no && break
12549 test "$with_gnu_ld" != yes && break
12551 esac
12553 done
12554 IFS="$lt_save_ifs"
12555 else
12556 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12560 LD="$lt_cv_path_LD"
12561 if test -n "$LD"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12563 $as_echo "$LD" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12568 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12575 case `$LD -v 2>&1 </dev/null` in
12576 *GNU* | *'with BFD'*)
12577 lt_cv_prog_gnu_ld=yes
12580 lt_cv_prog_gnu_ld=no
12582 esac
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12586 with_gnu_ld=$lt_cv_prog_gnu_ld
12594 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12595 # archiving commands below assume that GNU ld is being used.
12596 if test "$with_gnu_ld" = yes; then
12597 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12598 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'
12600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12603 # If archive_cmds runs LD, not CC, wlarc should be empty
12604 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12605 # investigate it a little bit more. (MM)
12606 wlarc='${wl}'
12608 # ancient GNU ld didn't support --whole-archive et. al.
12609 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12610 $GREP 'no-whole-archive' > /dev/null; then
12611 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12612 else
12613 whole_archive_flag_spec_CXX=
12615 else
12616 with_gnu_ld=no
12617 wlarc=
12619 # A generic and very simple default shared library creation
12620 # command for GNU C++ for the case where it uses the native
12621 # linker, instead of GNU ld. If possible, this setting should
12622 # overridden to take advantage of the native linker features on
12623 # the platform it is being used on.
12624 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12627 # Commands to make compiler produce verbose output that lists
12628 # what "hidden" libraries, object files and flags are used when
12629 # linking a shared library.
12630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12632 else
12633 GXX=no
12634 with_gnu_ld=no
12635 wlarc=
12638 # PORTME: fill in a description of your system's C++ link characteristics
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12640 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12641 ld_shlibs_CXX=yes
12642 case $host_os in
12643 aix3*)
12644 # FIXME: insert proper C++ library support
12645 ld_shlibs_CXX=no
12647 aix[4-9]*)
12648 if test "$host_cpu" = ia64; then
12649 # On IA64, the linker does run time linking by default, so we don't
12650 # have to do anything special.
12651 aix_use_runtimelinking=no
12652 exp_sym_flag='-Bexport'
12653 no_entry_flag=""
12654 else
12655 aix_use_runtimelinking=no
12657 # Test if we are trying to use run time linking or normal
12658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12659 # need to do runtime linking.
12660 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12661 for ld_flag in $LDFLAGS; do
12662 case $ld_flag in
12663 *-brtl*)
12664 aix_use_runtimelinking=yes
12665 break
12667 esac
12668 done
12670 esac
12672 exp_sym_flag='-bexport'
12673 no_entry_flag='-bnoentry'
12676 # When large executables or shared objects are built, AIX ld can
12677 # have problems creating the table of contents. If linking a library
12678 # or program results in "error TOC overflow" add -mminimal-toc to
12679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12682 archive_cmds_CXX=''
12683 hardcode_direct_CXX=yes
12684 hardcode_direct_absolute_CXX=yes
12685 hardcode_libdir_separator_CXX=':'
12686 link_all_deplibs_CXX=yes
12687 file_list_spec_CXX='${wl}-f,'
12689 if test "$GXX" = yes; then
12690 case $host_os in aix4.[012]|aix4.[012].*)
12691 # We only want to do this on AIX 4.2 and lower, the check
12692 # below for broken collect2 doesn't work under 4.3+
12693 collect2name=`${CC} -print-prog-name=collect2`
12694 if test -f "$collect2name" &&
12695 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12696 then
12697 # We have reworked collect2
12699 else
12700 # We have old collect2
12701 hardcode_direct_CXX=unsupported
12702 # It fails to find uninstalled libraries when the uninstalled
12703 # path is not listed in the libpath. Setting hardcode_minus_L
12704 # to unsupported forces relinking
12705 hardcode_minus_L_CXX=yes
12706 hardcode_libdir_flag_spec_CXX='-L$libdir'
12707 hardcode_libdir_separator_CXX=
12709 esac
12710 shared_flag='-shared'
12711 if test "$aix_use_runtimelinking" = yes; then
12712 shared_flag="$shared_flag "'${wl}-G'
12714 else
12715 # not using gcc
12716 if test "$host_cpu" = ia64; then
12717 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12718 # chokes on -Wl,-G. The following line is correct:
12719 shared_flag='-G'
12720 else
12721 if test "$aix_use_runtimelinking" = yes; then
12722 shared_flag='${wl}-G'
12723 else
12724 shared_flag='${wl}-bM:SRE'
12729 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12730 # It seems that -bexpall does not export symbols beginning with
12731 # underscore (_), so it is better to generate a list of symbols to
12732 # export.
12733 always_export_symbols_CXX=yes
12734 if test "$aix_use_runtimelinking" = yes; then
12735 # Warning - without using the other runtime loading flags (-brtl),
12736 # -berok will link without error, but may produce a broken library.
12737 allow_undefined_flag_CXX='-berok'
12738 # Determine the default libpath from the value encoded in an empty
12739 # executable.
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12744 main ()
12748 return 0;
12750 _ACEOF
12751 if ac_fn_cxx_try_link "$LINENO"; then :
12753 lt_aix_libpath_sed='
12754 /Import File Strings/,/^$/ {
12755 /^0/ {
12756 s/^0 *\(.*\)$/\1/
12760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12761 # Check for a 64-bit object if we didn't find anything.
12762 if test -z "$aix_libpath"; then
12763 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12772 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"
12773 else
12774 if test "$host_cpu" = ia64; then
12775 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12776 allow_undefined_flag_CXX="-z nodefs"
12777 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"
12778 else
12779 # Determine the default libpath from the value encoded in an
12780 # empty executable.
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12785 main ()
12789 return 0;
12791 _ACEOF
12792 if ac_fn_cxx_try_link "$LINENO"; then :
12794 lt_aix_libpath_sed='
12795 /Import File Strings/,/^$/ {
12796 /^0/ {
12797 s/^0 *\(.*\)$/\1/
12801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12802 # Check for a 64-bit object if we didn't find anything.
12803 if test -z "$aix_libpath"; then
12804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12812 # Warning - without using the other run time loading flags,
12813 # -berok will link without error, but may produce a broken library.
12814 no_undefined_flag_CXX=' ${wl}-bernotok'
12815 allow_undefined_flag_CXX=' ${wl}-berok'
12816 if test "$with_gnu_ld" = yes; then
12817 # We only use this code for GNU lds that support --whole-archive.
12818 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12819 else
12820 # Exported symbols can be pulled into shared objects from archives
12821 whole_archive_flag_spec_CXX='$convenience'
12823 archive_cmds_need_lc_CXX=yes
12824 # This is similar to how AIX traditionally builds its shared
12825 # libraries.
12826 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'
12831 beos*)
12832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12833 allow_undefined_flag_CXX=unsupported
12834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12835 # support --undefined. This deserves some investigation. FIXME
12836 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12837 else
12838 ld_shlibs_CXX=no
12842 chorus*)
12843 case $cc_basename in
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12848 esac
12851 cygwin* | mingw* | pw32* | cegcc*)
12852 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12853 # as there is no search path for DLLs.
12854 hardcode_libdir_flag_spec_CXX='-L$libdir'
12855 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12856 allow_undefined_flag_CXX=unsupported
12857 always_export_symbols_CXX=no
12858 enable_shared_with_static_runtimes_CXX=yes
12860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12861 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'
12862 # If the export-symbols file already is a .def file (1st line
12863 # is EXPORTS), use it as is; otherwise, prepend...
12864 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12865 cp $export_symbols $output_objdir/$soname.def;
12866 else
12867 echo EXPORTS > $output_objdir/$soname.def;
12868 cat $export_symbols >> $output_objdir/$soname.def;
12870 $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'
12871 else
12872 ld_shlibs_CXX=no
12875 darwin* | rhapsody*)
12878 archive_cmds_need_lc_CXX=no
12879 hardcode_direct_CXX=no
12880 hardcode_automatic_CXX=yes
12881 hardcode_shlibpath_var_CXX=unsupported
12882 if test "$lt_cv_ld_force_load" = "yes"; then
12883 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\"`'
12884 else
12885 whole_archive_flag_spec_CXX=''
12887 link_all_deplibs_CXX=yes
12888 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12889 case $cc_basename in
12890 ifort*) _lt_dar_can_shared=yes ;;
12891 *) _lt_dar_can_shared=$GCC ;;
12892 esac
12893 if test "$_lt_dar_can_shared" = "yes"; then
12894 output_verbose_link_cmd=func_echo_all
12895 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}"
12896 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12897 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}"
12898 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}"
12899 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12900 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}"
12901 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}"
12904 else
12905 ld_shlibs_CXX=no
12910 dgux*)
12911 case $cc_basename in
12912 ec++*)
12913 # FIXME: insert proper C++ library support
12914 ld_shlibs_CXX=no
12916 ghcx*)
12917 # Green Hills C++ Compiler
12918 # FIXME: insert proper C++ library support
12919 ld_shlibs_CXX=no
12922 # FIXME: insert proper C++ library support
12923 ld_shlibs_CXX=no
12925 esac
12928 freebsd2.*)
12929 # C++ shared libraries reported to be fairly broken before
12930 # switch to ELF
12931 ld_shlibs_CXX=no
12934 freebsd-elf*)
12935 archive_cmds_need_lc_CXX=no
12938 freebsd* | dragonfly*)
12939 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12940 # conventions
12941 ld_shlibs_CXX=yes
12944 gnu*)
12947 haiku*)
12948 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949 link_all_deplibs_CXX=yes
12952 hpux9*)
12953 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12954 hardcode_libdir_separator_CXX=:
12955 export_dynamic_flag_spec_CXX='${wl}-E'
12956 hardcode_direct_CXX=yes
12957 hardcode_minus_L_CXX=yes # Not in the search PATH,
12958 # but as the default
12959 # location of the library.
12961 case $cc_basename in
12962 CC*)
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12966 aCC*)
12967 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'
12968 # Commands to make compiler produce verbose output that lists
12969 # what "hidden" libraries, object files and flags are used when
12970 # linking a shared library.
12972 # There doesn't appear to be a way to prevent this compiler from
12973 # explicitly linking system object files so we need to strip them
12974 # from the output so that they don't get included in the library
12975 # dependencies.
12976 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"'
12979 if test "$GXX" = yes; then
12980 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'
12981 else
12982 # FIXME: insert proper C++ library support
12983 ld_shlibs_CXX=no
12986 esac
12989 hpux10*|hpux11*)
12990 if test $with_gnu_ld = no; then
12991 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12992 hardcode_libdir_separator_CXX=:
12994 case $host_cpu in
12995 hppa*64*|ia64*)
12998 export_dynamic_flag_spec_CXX='${wl}-E'
13000 esac
13002 case $host_cpu in
13003 hppa*64*|ia64*)
13004 hardcode_direct_CXX=no
13005 hardcode_shlibpath_var_CXX=no
13008 hardcode_direct_CXX=yes
13009 hardcode_direct_absolute_CXX=yes
13010 hardcode_minus_L_CXX=yes # Not in the search PATH,
13011 # but as the default
13012 # location of the library.
13014 esac
13016 case $cc_basename in
13017 CC*)
13018 # FIXME: insert proper C++ library support
13019 ld_shlibs_CXX=no
13021 aCC*)
13022 case $host_cpu in
13023 hppa*64*)
13024 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026 ia64*)
13027 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 esac
13033 # Commands to make compiler produce verbose output that lists
13034 # what "hidden" libraries, object files and flags are used when
13035 # linking a shared library.
13037 # There doesn't appear to be a way to prevent this compiler from
13038 # explicitly linking system object files so we need to strip them
13039 # from the output so that they don't get included in the library
13040 # dependencies.
13041 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"'
13044 if test "$GXX" = yes; then
13045 if test $with_gnu_ld = no; then
13046 case $host_cpu in
13047 hppa*64*)
13048 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050 ia64*)
13051 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13054 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'
13056 esac
13058 else
13059 # FIXME: insert proper C++ library support
13060 ld_shlibs_CXX=no
13063 esac
13066 interix[3-9]*)
13067 hardcode_direct_CXX=no
13068 hardcode_shlibpath_var_CXX=no
13069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13070 export_dynamic_flag_spec_CXX='${wl}-E'
13071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13072 # Instead, shared libraries are loaded at an image base (0x10000000 by
13073 # default) and relocated if they conflict, which is a slow very memory
13074 # consuming and fragmenting process. To avoid this, we pick a random,
13075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13077 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'
13078 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'
13080 irix5* | irix6*)
13081 case $cc_basename in
13082 CC*)
13083 # SGI C++
13084 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'
13086 # Archives containing C++ object files must be created using
13087 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13088 # necessary to make sure instantiated templates are included
13089 # in the archive.
13090 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13093 if test "$GXX" = yes; then
13094 if test "$with_gnu_ld" = no; then
13095 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'
13096 else
13097 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'
13100 link_all_deplibs_CXX=yes
13102 esac
13103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13104 hardcode_libdir_separator_CXX=:
13105 inherit_rpath_CXX=yes
13108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13109 case $cc_basename in
13110 KCC*)
13111 # Kuck and Associates, Inc. (KAI) C++ Compiler
13113 # KCC will only create a shared library if the output file
13114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13115 # to its proper name (with version) after linking.
13116 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'
13117 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'
13118 # Commands to make compiler produce verbose output that lists
13119 # what "hidden" libraries, object files and flags are used when
13120 # linking a shared library.
13122 # There doesn't appear to be a way to prevent this compiler from
13123 # explicitly linking system object files so we need to strip them
13124 # from the output so that they don't get included in the library
13125 # dependencies.
13126 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"'
13128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13131 # Archives containing C++ object files must be created using
13132 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13133 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13135 icpc* | ecpc* )
13136 # Intel C++
13137 with_gnu_ld=yes
13138 # version 8.0 and above of icpc choke on multiply defined symbols
13139 # if we add $predep_objects and $postdep_objects, however 7.1 and
13140 # earlier do not add the objects themselves.
13141 case `$CC -V 2>&1` in
13142 *"Version 7."*)
13143 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13144 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'
13146 *) # Version 8.0 or newer
13147 tmp_idyn=
13148 case $host_cpu in
13149 ia64*) tmp_idyn=' -i_dynamic';;
13150 esac
13151 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13152 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'
13154 esac
13155 archive_cmds_need_lc_CXX=no
13156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13158 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13160 pgCC* | pgcpp*)
13161 # Portland Group C++ compiler
13162 case `$CC -V` in
13163 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13164 prelink_cmds_CXX='tpldir=Template.dir~
13165 rm -rf $tpldir~
13166 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13167 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13168 old_archive_cmds_CXX='tpldir=Template.dir~
13169 rm -rf $tpldir~
13170 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13171 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13172 $RANLIB $oldlib'
13173 archive_cmds_CXX='tpldir=Template.dir~
13174 rm -rf $tpldir~
13175 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13176 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13177 archive_expsym_cmds_CXX='tpldir=Template.dir~
13178 rm -rf $tpldir~
13179 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13180 $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'
13182 *) # Version 6 and above use weak symbols
13183 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13184 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'
13186 esac
13188 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13189 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13190 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'
13192 cxx*)
13193 # Compaq C++
13194 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195 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'
13197 runpath_var=LD_RUN_PATH
13198 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13199 hardcode_libdir_separator_CXX=:
13201 # Commands to make compiler produce verbose output that lists
13202 # what "hidden" libraries, object files and flags are used when
13203 # linking a shared library.
13205 # There doesn't appear to be a way to prevent this compiler from
13206 # explicitly linking system object files so we need to strip them
13207 # from the output so that they don't get included in the library
13208 # dependencies.
13209 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'
13211 xl* | mpixl* | bgxl*)
13212 # IBM XL 8.0 on PPC, with GNU ld
13213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13215 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13216 if test "x$supports_anon_versioning" = xyes; then
13217 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13219 echo "local: *; };" >> $output_objdir/$libname.ver~
13220 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13224 case `$CC -V 2>&1 | sed 5q` in
13225 *Sun\ C*)
13226 # Sun C++ 5.9
13227 no_undefined_flag_CXX=' -zdefs'
13228 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13229 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'
13230 hardcode_libdir_flag_spec_CXX='-R$libdir'
13231 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'
13232 compiler_needs_object_CXX=yes
13234 # Not sure whether something based on
13235 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13236 # would be better.
13237 output_verbose_link_cmd='func_echo_all'
13239 # Archives containing C++ object files must be created using
13240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13241 # necessary to make sure instantiated templates are included
13242 # in the archive.
13243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13245 esac
13247 esac
13250 lynxos*)
13251 # FIXME: insert proper C++ library support
13252 ld_shlibs_CXX=no
13255 m88k*)
13256 # FIXME: insert proper C++ library support
13257 ld_shlibs_CXX=no
13260 mvs*)
13261 case $cc_basename in
13262 cxx*)
13263 # FIXME: insert proper C++ library support
13264 ld_shlibs_CXX=no
13267 # FIXME: insert proper C++ library support
13268 ld_shlibs_CXX=no
13270 esac
13273 netbsd*)
13274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13275 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13276 wlarc=
13277 hardcode_libdir_flag_spec_CXX='-R$libdir'
13278 hardcode_direct_CXX=yes
13279 hardcode_shlibpath_var_CXX=no
13281 # Workaround some broken pre-1.5 toolchains
13282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13285 *nto* | *qnx*)
13286 ld_shlibs_CXX=yes
13289 openbsd2*)
13290 # C++ shared libraries are fairly broken
13291 ld_shlibs_CXX=no
13294 openbsd*)
13295 if test -f /usr/libexec/ld.so; then
13296 hardcode_direct_CXX=yes
13297 hardcode_shlibpath_var_CXX=no
13298 hardcode_direct_absolute_CXX=yes
13299 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13300 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13302 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13303 export_dynamic_flag_spec_CXX='${wl}-E'
13304 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13306 output_verbose_link_cmd=func_echo_all
13307 else
13308 ld_shlibs_CXX=no
13312 osf3* | osf4* | osf5*)
13313 case $cc_basename in
13314 KCC*)
13315 # Kuck and Associates, Inc. (KAI) C++ Compiler
13317 # KCC will only create a shared library if the output file
13318 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13319 # to its proper name (with version) after linking.
13320 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'
13322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13323 hardcode_libdir_separator_CXX=:
13325 # Archives containing C++ object files must be created using
13326 # the KAI C++ compiler.
13327 case $host in
13328 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13329 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13330 esac
13332 RCC*)
13333 # Rational C++ 2.4.1
13334 # FIXME: insert proper C++ library support
13335 ld_shlibs_CXX=no
13337 cxx*)
13338 case $host in
13339 osf3*)
13340 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13341 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'
13342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13345 allow_undefined_flag_CXX=' -expect_unresolved \*'
13346 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'
13347 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13348 echo "-hidden">> $lib.exp~
13349 $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~
13350 $RM $lib.exp'
13351 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13353 esac
13355 hardcode_libdir_separator_CXX=:
13357 # Commands to make compiler produce verbose output that lists
13358 # what "hidden" libraries, object files and flags are used when
13359 # linking a shared library.
13361 # There doesn't appear to be a way to prevent this compiler from
13362 # explicitly linking system object files so we need to strip them
13363 # from the output so that they don't get included in the library
13364 # dependencies.
13365 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"'
13368 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13369 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13370 case $host in
13371 osf3*)
13372 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'
13375 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'
13377 esac
13379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13380 hardcode_libdir_separator_CXX=:
13382 # Commands to make compiler produce verbose output that lists
13383 # what "hidden" libraries, object files and flags are used when
13384 # linking a shared library.
13385 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13387 else
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13392 esac
13395 psos*)
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13400 sunos4*)
13401 case $cc_basename in
13402 CC*)
13403 # Sun C++ 4.x
13404 # FIXME: insert proper C++ library support
13405 ld_shlibs_CXX=no
13407 lcc*)
13408 # Lucid
13409 # FIXME: insert proper C++ library support
13410 ld_shlibs_CXX=no
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13416 esac
13419 solaris*)
13420 case $cc_basename in
13421 CC*)
13422 # Sun C++ 4.2, 5.x and Centerline C++
13423 archive_cmds_need_lc_CXX=yes
13424 no_undefined_flag_CXX=' -zdefs'
13425 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13426 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13427 $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'
13429 hardcode_libdir_flag_spec_CXX='-R$libdir'
13430 hardcode_shlibpath_var_CXX=no
13431 case $host_os in
13432 solaris2.[0-5] | solaris2.[0-5].*) ;;
13434 # The compiler driver will combine and reorder linker options,
13435 # but understands `-z linker_flag'.
13436 # Supported since Solaris 2.6 (maybe 2.5.1?)
13437 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13439 esac
13440 link_all_deplibs_CXX=yes
13442 output_verbose_link_cmd='func_echo_all'
13444 # Archives containing C++ object files must be created using
13445 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13446 # necessary to make sure instantiated templates are included
13447 # in the archive.
13448 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13450 gcx*)
13451 # Green Hills C++ Compiler
13452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13454 # The C++ compiler must be used to create the archive.
13455 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13458 # GNU C++ compiler with Solaris linker
13459 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13460 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13461 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13462 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13463 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13464 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13466 # Commands to make compiler produce verbose output that lists
13467 # what "hidden" libraries, object files and flags are used when
13468 # linking a shared library.
13469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13470 else
13471 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13472 # platform.
13473 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13474 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13475 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13477 # Commands to make compiler produce verbose output that lists
13478 # what "hidden" libraries, object files and flags are used when
13479 # linking a shared library.
13480 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13483 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13484 case $host_os in
13485 solaris2.[0-5] | solaris2.[0-5].*) ;;
13487 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13489 esac
13492 esac
13495 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13496 no_undefined_flag_CXX='${wl}-z,text'
13497 archive_cmds_need_lc_CXX=no
13498 hardcode_shlibpath_var_CXX=no
13499 runpath_var='LD_RUN_PATH'
13501 case $cc_basename in
13502 CC*)
13503 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13504 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13508 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 esac
13513 sysv5* | sco3.2v5* | sco5v6*)
13514 # Note: We can NOT use -z defs as we might desire, because we do not
13515 # link with -lc, and that would cause any symbols used from libc to
13516 # always be unresolved, which means just about no library would
13517 # ever link correctly. If we're not using GNU ld we use -z text
13518 # though, which does catch some bad symbols but isn't as heavy-handed
13519 # as -z defs.
13520 no_undefined_flag_CXX='${wl}-z,text'
13521 allow_undefined_flag_CXX='${wl}-z,nodefs'
13522 archive_cmds_need_lc_CXX=no
13523 hardcode_shlibpath_var_CXX=no
13524 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13525 hardcode_libdir_separator_CXX=':'
13526 link_all_deplibs_CXX=yes
13527 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13528 runpath_var='LD_RUN_PATH'
13530 case $cc_basename in
13531 CC*)
13532 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13533 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13534 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13535 '"$old_archive_cmds_CXX"
13536 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13537 '"$reload_cmds_CXX"
13540 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13541 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 esac
13546 tandem*)
13547 case $cc_basename in
13548 NCC*)
13549 # NonStop-UX NCC 3.20
13550 # FIXME: insert proper C++ library support
13551 ld_shlibs_CXX=no
13554 # FIXME: insert proper C++ library support
13555 ld_shlibs_CXX=no
13557 esac
13560 vxworks*)
13561 # FIXME: insert proper C++ library support
13562 ld_shlibs_CXX=no
13566 # FIXME: insert proper C++ library support
13567 ld_shlibs_CXX=no
13569 esac
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13572 $as_echo "$ld_shlibs_CXX" >&6; }
13573 test "$ld_shlibs_CXX" = no && can_build_shared=no
13575 GCC_CXX="$GXX"
13576 LD_CXX="$LD"
13578 ## CAVEAT EMPTOR:
13579 ## There is no encapsulation within the following macros, do not change
13580 ## the running order or otherwise move them around unless you know exactly
13581 ## what you are doing...
13582 # Dependencies to place before and after the object being linked:
13583 predep_objects_CXX=
13584 postdep_objects_CXX=
13585 predeps_CXX=
13586 postdeps_CXX=
13587 compiler_lib_search_path_CXX=
13589 cat > conftest.$ac_ext <<_LT_EOF
13590 class Foo
13592 public:
13593 Foo (void) { a = 0; }
13594 private:
13595 int a;
13597 _LT_EOF
13599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13600 (eval $ac_compile) 2>&5
13601 ac_status=$?
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603 test $ac_status = 0; }; then
13604 # Parse the compiler output and extract the necessary
13605 # objects, libraries and library flags.
13607 # Sentinel used to keep track of whether or not we are before
13608 # the conftest object file.
13609 pre_test_object_deps_done=no
13611 for p in `eval "$output_verbose_link_cmd"`; do
13612 case $p in
13614 -L* | -R* | -l*)
13615 # Some compilers place space between "-{L,R}" and the path.
13616 # Remove the space.
13617 if test $p = "-L" ||
13618 test $p = "-R"; then
13619 prev=$p
13620 continue
13621 else
13622 prev=
13625 if test "$pre_test_object_deps_done" = no; then
13626 case $p in
13627 -L* | -R*)
13628 # Internal compiler library paths should come after those
13629 # provided the user. The postdeps already come after the
13630 # user supplied libs so there is no need to process them.
13631 if test -z "$compiler_lib_search_path_CXX"; then
13632 compiler_lib_search_path_CXX="${prev}${p}"
13633 else
13634 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13637 # The "-l" case would never come before the object being
13638 # linked, so don't bother handling this case.
13639 esac
13640 else
13641 if test -z "$postdeps_CXX"; then
13642 postdeps_CXX="${prev}${p}"
13643 else
13644 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13649 *.$objext)
13650 # This assumes that the test object file only shows up
13651 # once in the compiler output.
13652 if test "$p" = "conftest.$objext"; then
13653 pre_test_object_deps_done=yes
13654 continue
13657 if test "$pre_test_object_deps_done" = no; then
13658 if test -z "$predep_objects_CXX"; then
13659 predep_objects_CXX="$p"
13660 else
13661 predep_objects_CXX="$predep_objects_CXX $p"
13663 else
13664 if test -z "$postdep_objects_CXX"; then
13665 postdep_objects_CXX="$p"
13666 else
13667 postdep_objects_CXX="$postdep_objects_CXX $p"
13672 *) ;; # Ignore the rest.
13674 esac
13675 done
13677 # Clean up.
13678 rm -f a.out a.exe
13679 else
13680 echo "libtool.m4: error: problem compiling CXX test program"
13683 $RM -f confest.$objext
13685 # PORTME: override above test on systems where it is broken
13686 case $host_os in
13687 interix[3-9]*)
13688 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13689 # hack all around it, let's just trust "g++" to DTRT.
13690 predep_objects_CXX=
13691 postdep_objects_CXX=
13692 postdeps_CXX=
13695 linux*)
13696 case `$CC -V 2>&1 | sed 5q` in
13697 *Sun\ C*)
13698 # Sun C++ 5.9
13700 # The more standards-conforming stlport4 library is
13701 # incompatible with the Cstd library. Avoid specifying
13702 # it if it's in CXXFLAGS. Ignore libCrun as
13703 # -library=stlport4 depends on it.
13704 case " $CXX $CXXFLAGS " in
13705 *" -library=stlport4 "*)
13706 solaris_use_stlport4=yes
13708 esac
13710 if test "$solaris_use_stlport4" != yes; then
13711 postdeps_CXX='-library=Cstd -library=Crun'
13714 esac
13717 solaris*)
13718 case $cc_basename in
13719 CC*)
13720 # The more standards-conforming stlport4 library is
13721 # incompatible with the Cstd library. Avoid specifying
13722 # it if it's in CXXFLAGS. Ignore libCrun as
13723 # -library=stlport4 depends on it.
13724 case " $CXX $CXXFLAGS " in
13725 *" -library=stlport4 "*)
13726 solaris_use_stlport4=yes
13728 esac
13730 # Adding this requires a known-good setup of shared libraries for
13731 # Sun compiler versions before 5.6, else PIC objects from an old
13732 # archive will be linked into the output, leading to subtle bugs.
13733 if test "$solaris_use_stlport4" != yes; then
13734 postdeps_CXX='-library=Cstd -library=Crun'
13737 esac
13739 esac
13742 case " $postdeps_CXX " in
13743 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13744 esac
13745 compiler_lib_search_dirs_CXX=
13746 if test -n "${compiler_lib_search_path_CXX}"; then
13747 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13780 lt_prog_compiler_wl_CXX=
13781 lt_prog_compiler_pic_CXX=
13782 lt_prog_compiler_static_CXX=
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13785 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13787 # C++ specific cases for pic, static, wl, etc.
13788 if test "$GXX" = yes; then
13789 lt_prog_compiler_wl_CXX='-Wl,'
13790 lt_prog_compiler_static_CXX='-static'
13792 case $host_os in
13793 aix*)
13794 # All AIX code is PIC.
13795 if test "$host_cpu" = ia64; then
13796 # AIX 5 now supports IA64 processor
13797 lt_prog_compiler_static_CXX='-Bstatic'
13799 lt_prog_compiler_pic_CXX='-fPIC'
13802 amigaos*)
13803 case $host_cpu in
13804 powerpc)
13805 # see comment about AmigaOS4 .so support
13806 lt_prog_compiler_pic_CXX='-fPIC'
13808 m68k)
13809 # FIXME: we need at least 68020 code to build shared libraries, but
13810 # adding the `-m68020' flag to GCC prevents building anything better,
13811 # like `-m68040'.
13812 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13814 esac
13817 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13818 # PIC is the default for these OSes.
13820 mingw* | cygwin* | os2* | pw32* | cegcc*)
13821 # This hack is so that the source file can tell whether it is being
13822 # built for inclusion in a dll (and should export symbols for example).
13823 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13824 # (--disable-auto-import) libraries
13825 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13827 darwin* | rhapsody*)
13828 # PIC is the default on this platform
13829 # Common symbols not allowed in MH_DYLIB files
13830 lt_prog_compiler_pic_CXX='-fno-common'
13832 *djgpp*)
13833 # DJGPP does not support shared libraries at all
13834 lt_prog_compiler_pic_CXX=
13836 haiku*)
13837 # PIC is the default for Haiku.
13838 # The "-static" flag exists, but is broken.
13839 lt_prog_compiler_static_CXX=
13841 interix[3-9]*)
13842 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13843 # Instead, we relocate shared libraries at runtime.
13845 sysv4*MP*)
13846 if test -d /usr/nec; then
13847 lt_prog_compiler_pic_CXX=-Kconform_pic
13850 hpux*)
13851 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13852 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13853 # sets the default TLS model and affects inlining.
13854 case $host_cpu in
13855 hppa*64*)
13858 lt_prog_compiler_pic_CXX='-fPIC'
13860 esac
13862 *qnx* | *nto*)
13863 # QNX uses GNU C++, but need to define -shared option too, otherwise
13864 # it will coredump.
13865 lt_prog_compiler_pic_CXX='-fPIC -shared'
13868 lt_prog_compiler_pic_CXX='-fPIC'
13870 esac
13871 else
13872 case $host_os in
13873 aix[4-9]*)
13874 # All AIX code is PIC.
13875 if test "$host_cpu" = ia64; then
13876 # AIX 5 now supports IA64 processor
13877 lt_prog_compiler_static_CXX='-Bstatic'
13878 else
13879 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13882 chorus*)
13883 case $cc_basename in
13884 cxch68*)
13885 # Green Hills C++ Compiler
13886 # _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"
13888 esac
13890 dgux*)
13891 case $cc_basename in
13892 ec++*)
13893 lt_prog_compiler_pic_CXX='-KPIC'
13895 ghcx*)
13896 # Green Hills C++ Compiler
13897 lt_prog_compiler_pic_CXX='-pic'
13901 esac
13903 freebsd* | dragonfly*)
13904 # FreeBSD uses GNU C++
13906 hpux9* | hpux10* | hpux11*)
13907 case $cc_basename in
13908 CC*)
13909 lt_prog_compiler_wl_CXX='-Wl,'
13910 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13911 if test "$host_cpu" != ia64; then
13912 lt_prog_compiler_pic_CXX='+Z'
13915 aCC*)
13916 lt_prog_compiler_wl_CXX='-Wl,'
13917 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13918 case $host_cpu in
13919 hppa*64*|ia64*)
13920 # +Z the default
13923 lt_prog_compiler_pic_CXX='+Z'
13925 esac
13929 esac
13931 interix*)
13932 # This is c89, which is MS Visual C++ (no shared libs)
13933 # Anyone wants to do a port?
13935 irix5* | irix6* | nonstopux*)
13936 case $cc_basename in
13937 CC*)
13938 lt_prog_compiler_wl_CXX='-Wl,'
13939 lt_prog_compiler_static_CXX='-non_shared'
13940 # CC pic flag -KPIC is the default.
13944 esac
13946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13947 case $cc_basename in
13948 KCC*)
13949 # KAI C++ Compiler
13950 lt_prog_compiler_wl_CXX='--backend -Wl,'
13951 lt_prog_compiler_pic_CXX='-fPIC'
13953 ecpc* )
13954 # old Intel C++ for x86_64 which still supported -KPIC.
13955 lt_prog_compiler_wl_CXX='-Wl,'
13956 lt_prog_compiler_pic_CXX='-KPIC'
13957 lt_prog_compiler_static_CXX='-static'
13959 icpc* )
13960 # Intel C++, used to be incompatible with GCC.
13961 # ICC 10 doesn't accept -KPIC any more.
13962 lt_prog_compiler_wl_CXX='-Wl,'
13963 lt_prog_compiler_pic_CXX='-fPIC'
13964 lt_prog_compiler_static_CXX='-static'
13966 pgCC* | pgcpp*)
13967 # Portland Group C++ compiler
13968 lt_prog_compiler_wl_CXX='-Wl,'
13969 lt_prog_compiler_pic_CXX='-fpic'
13970 lt_prog_compiler_static_CXX='-Bstatic'
13972 cxx*)
13973 # Compaq C++
13974 # Make sure the PIC flag is empty. It appears that all Alpha
13975 # Linux and Compaq Tru64 Unix objects are PIC.
13976 lt_prog_compiler_pic_CXX=
13977 lt_prog_compiler_static_CXX='-non_shared'
13979 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13980 # IBM XL 8.0, 9.0 on PPC and BlueGene
13981 lt_prog_compiler_wl_CXX='-Wl,'
13982 lt_prog_compiler_pic_CXX='-qpic'
13983 lt_prog_compiler_static_CXX='-qstaticlink'
13986 case `$CC -V 2>&1 | sed 5q` in
13987 *Sun\ C*)
13988 # Sun C++ 5.9
13989 lt_prog_compiler_pic_CXX='-KPIC'
13990 lt_prog_compiler_static_CXX='-Bstatic'
13991 lt_prog_compiler_wl_CXX='-Qoption ld '
13993 esac
13995 esac
13997 lynxos*)
13999 m88k*)
14001 mvs*)
14002 case $cc_basename in
14003 cxx*)
14004 lt_prog_compiler_pic_CXX='-W c,exportall'
14008 esac
14010 netbsd*)
14012 *qnx* | *nto*)
14013 # QNX uses GNU C++, but need to define -shared option too, otherwise
14014 # it will coredump.
14015 lt_prog_compiler_pic_CXX='-fPIC -shared'
14017 osf3* | osf4* | osf5*)
14018 case $cc_basename in
14019 KCC*)
14020 lt_prog_compiler_wl_CXX='--backend -Wl,'
14022 RCC*)
14023 # Rational C++ 2.4.1
14024 lt_prog_compiler_pic_CXX='-pic'
14026 cxx*)
14027 # Digital/Compaq C++
14028 lt_prog_compiler_wl_CXX='-Wl,'
14029 # Make sure the PIC flag is empty. It appears that all Alpha
14030 # Linux and Compaq Tru64 Unix objects are PIC.
14031 lt_prog_compiler_pic_CXX=
14032 lt_prog_compiler_static_CXX='-non_shared'
14036 esac
14038 psos*)
14040 solaris*)
14041 case $cc_basename in
14042 CC*)
14043 # Sun C++ 4.2, 5.x and Centerline C++
14044 lt_prog_compiler_pic_CXX='-KPIC'
14045 lt_prog_compiler_static_CXX='-Bstatic'
14046 lt_prog_compiler_wl_CXX='-Qoption ld '
14048 gcx*)
14049 # Green Hills C++ Compiler
14050 lt_prog_compiler_pic_CXX='-PIC'
14054 esac
14056 sunos4*)
14057 case $cc_basename in
14058 CC*)
14059 # Sun C++ 4.x
14060 lt_prog_compiler_pic_CXX='-pic'
14061 lt_prog_compiler_static_CXX='-Bstatic'
14063 lcc*)
14064 # Lucid
14065 lt_prog_compiler_pic_CXX='-pic'
14069 esac
14071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14072 case $cc_basename in
14073 CC*)
14074 lt_prog_compiler_wl_CXX='-Wl,'
14075 lt_prog_compiler_pic_CXX='-KPIC'
14076 lt_prog_compiler_static_CXX='-Bstatic'
14078 esac
14080 tandem*)
14081 case $cc_basename in
14082 NCC*)
14083 # NonStop-UX NCC 3.20
14084 lt_prog_compiler_pic_CXX='-KPIC'
14088 esac
14090 vxworks*)
14093 lt_prog_compiler_can_build_shared_CXX=no
14095 esac
14098 case $host_os in
14099 # For platforms which do not support PIC, -DPIC is meaningless:
14100 *djgpp*)
14101 lt_prog_compiler_pic_CXX=
14104 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14106 esac
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14108 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14113 # Check to make sure the PIC flag actually works.
14115 if test -n "$lt_prog_compiler_pic_CXX"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14117 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14118 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 lt_cv_prog_compiler_pic_works_CXX=no
14122 ac_outfile=conftest.$ac_objext
14123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14124 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14125 # Insert the option either (1) after the last *FLAGS variable, or
14126 # (2) before a word containing "conftest.", or (3) at the end.
14127 # Note that $ac_compile itself does not contain backslashes and begins
14128 # with a dollar sign (not a hyphen), so the echo should work correctly.
14129 # The option is referenced via a variable to avoid confusing sed.
14130 lt_compile=`echo "$ac_compile" | $SED \
14131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14133 -e 's:$: $lt_compiler_flag:'`
14134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14135 (eval "$lt_compile" 2>conftest.err)
14136 ac_status=$?
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 if (exit $ac_status) && test -s "$ac_outfile"; then
14140 # The compiler can only warn and ignore the option if not recognized
14141 # So say no if there are warnings other than the usual output.
14142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14145 lt_cv_prog_compiler_pic_works_CXX=yes
14148 $RM conftest*
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14152 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14154 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14155 case $lt_prog_compiler_pic_CXX in
14156 "" | " "*) ;;
14157 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14158 esac
14159 else
14160 lt_prog_compiler_pic_CXX=
14161 lt_prog_compiler_can_build_shared_CXX=no
14169 # Check to make sure the static flag actually works.
14171 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14173 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14174 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 lt_cv_prog_compiler_static_works_CXX=no
14178 save_LDFLAGS="$LDFLAGS"
14179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14182 # The linker can only warn and ignore the option if not recognized
14183 # So say no if there are warnings
14184 if test -s conftest.err; then
14185 # Append any errors to the config.log.
14186 cat conftest.err 1>&5
14187 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14189 if diff conftest.exp conftest.er2 >/dev/null; then
14190 lt_cv_prog_compiler_static_works_CXX=yes
14192 else
14193 lt_cv_prog_compiler_static_works_CXX=yes
14196 $RM -r conftest*
14197 LDFLAGS="$save_LDFLAGS"
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14201 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14203 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14205 else
14206 lt_prog_compiler_static_CXX=
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14214 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 lt_cv_prog_compiler_c_o_CXX=no
14218 $RM -r conftest 2>/dev/null
14219 mkdir conftest
14220 cd conftest
14221 mkdir out
14222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14224 lt_compiler_flag="-o out/conftest2.$ac_objext"
14225 # Insert the option either (1) after the last *FLAGS variable, or
14226 # (2) before a word containing "conftest.", or (3) at the end.
14227 # Note that $ac_compile itself does not contain backslashes and begins
14228 # with a dollar sign (not a hyphen), so the echo should work correctly.
14229 lt_compile=`echo "$ac_compile" | $SED \
14230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14232 -e 's:$: $lt_compiler_flag:'`
14233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14234 (eval "$lt_compile" 2>out/conftest.err)
14235 ac_status=$?
14236 cat out/conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14239 then
14240 # The compiler can only warn and ignore the option if not recognized
14241 # So say no if there are warnings
14242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14245 lt_cv_prog_compiler_c_o_CXX=yes
14248 chmod u+w . 2>&5
14249 $RM conftest*
14250 # SGI C++ compiler will create directory out/ii_files/ for
14251 # template instantiation
14252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14253 $RM out/* && rmdir out
14254 cd ..
14255 $RM -r conftest
14256 $RM conftest*
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14260 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14265 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14266 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 lt_cv_prog_compiler_c_o_CXX=no
14270 $RM -r conftest 2>/dev/null
14271 mkdir conftest
14272 cd conftest
14273 mkdir out
14274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14276 lt_compiler_flag="-o out/conftest2.$ac_objext"
14277 # Insert the option either (1) after the last *FLAGS variable, or
14278 # (2) before a word containing "conftest.", or (3) at the end.
14279 # Note that $ac_compile itself does not contain backslashes and begins
14280 # with a dollar sign (not a hyphen), so the echo should work correctly.
14281 lt_compile=`echo "$ac_compile" | $SED \
14282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14284 -e 's:$: $lt_compiler_flag:'`
14285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14286 (eval "$lt_compile" 2>out/conftest.err)
14287 ac_status=$?
14288 cat out/conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14291 then
14292 # The compiler can only warn and ignore the option if not recognized
14293 # So say no if there are warnings
14294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14297 lt_cv_prog_compiler_c_o_CXX=yes
14300 chmod u+w . 2>&5
14301 $RM conftest*
14302 # SGI C++ compiler will create directory out/ii_files/ for
14303 # template instantiation
14304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14305 $RM out/* && rmdir out
14306 cd ..
14307 $RM -r conftest
14308 $RM conftest*
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14312 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14317 hard_links="nottested"
14318 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14319 # do not overwrite the value of need_locks provided by the user
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14321 $as_echo_n "checking if we can lock with hard links... " >&6; }
14322 hard_links=yes
14323 $RM conftest*
14324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14325 touch conftest.a
14326 ln conftest.a conftest.b 2>&5 || hard_links=no
14327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14329 $as_echo "$hard_links" >&6; }
14330 if test "$hard_links" = no; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14332 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14333 need_locks=warn
14335 else
14336 need_locks=no
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14344 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14345 case $host_os in
14346 aix[4-9]*)
14347 # If we're using GNU nm, then we don't want the "-C" option.
14348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14349 # Also, AIX nm treats weak defined symbols like other global defined
14350 # symbols, whereas GNU nm marks them as "W".
14351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14352 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'
14353 else
14354 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'
14357 pw32*)
14358 export_symbols_cmds_CXX="$ltdll_cmds"
14360 cygwin* | mingw* | cegcc*)
14361 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'
14364 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14366 esac
14367 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14370 $as_echo "$ld_shlibs_CXX" >&6; }
14371 test "$ld_shlibs_CXX" = no && can_build_shared=no
14373 with_gnu_ld_CXX=$with_gnu_ld
14381 # Do we need to explicitly link libc?
14383 case "x$archive_cmds_need_lc_CXX" in
14384 x|xyes)
14385 # Assume -lc should be added
14386 archive_cmds_need_lc_CXX=yes
14388 if test "$enable_shared" = yes && test "$GCC" = yes; then
14389 case $archive_cmds_CXX in
14390 *'~'*)
14391 # FIXME: we may have to deal with multi-command sequences.
14393 '$CC '*)
14394 # Test whether the compiler implicitly links with -lc since on some
14395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14396 # to ld, don't add -lc before -lgcc.
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14399 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 $RM conftest*
14403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14406 (eval $ac_compile) 2>&5
14407 ac_status=$?
14408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14409 test $ac_status = 0; } 2>conftest.err; then
14410 soname=conftest
14411 lib=conftest
14412 libobjs=conftest.$ac_objext
14413 deplibs=
14414 wl=$lt_prog_compiler_wl_CXX
14415 pic_flag=$lt_prog_compiler_pic_CXX
14416 compiler_flags=-v
14417 linker_flags=-v
14418 verstring=
14419 output_objdir=.
14420 libname=conftest
14421 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14422 allow_undefined_flag_CXX=
14423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14424 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14425 ac_status=$?
14426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427 test $ac_status = 0; }
14428 then
14429 lt_cv_archive_cmds_need_lc_CXX=no
14430 else
14431 lt_cv_archive_cmds_need_lc_CXX=yes
14433 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14434 else
14435 cat conftest.err 1>&5
14437 $RM conftest*
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14441 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14442 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14444 esac
14447 esac
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14513 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14515 library_names_spec=
14516 libname_spec='lib$name'
14517 soname_spec=
14518 shrext_cmds=".so"
14519 postinstall_cmds=
14520 postuninstall_cmds=
14521 finish_cmds=
14522 finish_eval=
14523 shlibpath_var=
14524 shlibpath_overrides_runpath=unknown
14525 version_type=none
14526 dynamic_linker="$host_os ld.so"
14527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14528 need_lib_prefix=unknown
14529 hardcode_into_libs=no
14531 # when you set need_version to no, make sure it does not cause -set_version
14532 # flags to be left without arguments
14533 need_version=unknown
14535 case $host_os in
14536 aix3*)
14537 version_type=linux
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14539 shlibpath_var=LIBPATH
14541 # AIX 3 has no versioning support, so we append a major version to the name.
14542 soname_spec='${libname}${release}${shared_ext}$major'
14545 aix[4-9]*)
14546 version_type=linux
14547 need_lib_prefix=no
14548 need_version=no
14549 hardcode_into_libs=yes
14550 if test "$host_cpu" = ia64; then
14551 # AIX 5 supports IA64
14552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14553 shlibpath_var=LD_LIBRARY_PATH
14554 else
14555 # With GCC up to 2.95.x, collect2 would create an import file
14556 # for dependence libraries. The import file would start with
14557 # the line `#! .'. This would cause the generated library to
14558 # depend on `.', always an invalid library. This was fixed in
14559 # development snapshots of GCC prior to 3.0.
14560 case $host_os in
14561 aix4 | aix4.[01] | aix4.[01].*)
14562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14563 echo ' yes '
14564 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14566 else
14567 can_build_shared=no
14570 esac
14571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14572 # soname into executable. Probably we can add versioning support to
14573 # collect2, so additional links can be useful in future.
14574 if test "$aix_use_runtimelinking" = yes; then
14575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14576 # instead of lib<name>.a to let people know that these are not
14577 # typical AIX shared libraries.
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 else
14580 # We preserve .a as extension for shared libraries through AIX4.2
14581 # and later when we are not doing run time linking.
14582 library_names_spec='${libname}${release}.a $libname.a'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14585 shlibpath_var=LIBPATH
14589 amigaos*)
14590 case $host_cpu in
14591 powerpc)
14592 # Since July 2007 AmigaOS4 officially supports .so libraries.
14593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 m68k)
14597 library_names_spec='$libname.ixlibrary $libname.a'
14598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14599 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'
14601 esac
14604 beos*)
14605 library_names_spec='${libname}${shared_ext}'
14606 dynamic_linker="$host_os ld.so"
14607 shlibpath_var=LIBRARY_PATH
14610 bsdi[45]*)
14611 version_type=linux
14612 need_version=no
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14619 # the default ld.so.conf also contains /usr/contrib/lib and
14620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14621 # libtool to hard-code these into programs
14624 cygwin* | mingw* | pw32* | cegcc*)
14625 version_type=windows
14626 shrext_cmds=".dll"
14627 need_version=no
14628 need_lib_prefix=no
14630 case $GCC,$host_os in
14631 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14632 library_names_spec='$libname.dll.a'
14633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14634 postinstall_cmds='base_file=`basename \${file}`~
14635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14636 dldir=$destdir/`dirname \$dlpath`~
14637 test -d \$dldir || mkdir -p \$dldir~
14638 $install_prog $dir/$dlname \$dldir/$dlname~
14639 chmod a+x \$dldir/$dlname~
14640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14644 dlpath=$dir/\$dldll~
14645 $RM \$dlpath'
14646 shlibpath_overrides_runpath=yes
14648 case $host_os in
14649 cygwin*)
14650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14651 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14654 mingw* | cegcc*)
14655 # MinGW DLLs use traditional 'lib' prefix
14656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14658 pw32*)
14659 # pw32 DLLs use 'pw' prefix rather than 'lib'
14660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14662 esac
14666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14668 esac
14669 dynamic_linker='Win32 ld.exe'
14670 # FIXME: first we should search . and the directory the executable is in
14671 shlibpath_var=PATH
14674 darwin* | rhapsody*)
14675 dynamic_linker="$host_os dyld"
14676 version_type=darwin
14677 need_lib_prefix=no
14678 need_version=no
14679 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14680 soname_spec='${libname}${release}${major}$shared_ext'
14681 shlibpath_overrides_runpath=yes
14682 shlibpath_var=DYLD_LIBRARY_PATH
14683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14688 dgux*)
14689 version_type=linux
14690 need_lib_prefix=no
14691 need_version=no
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 shlibpath_var=LD_LIBRARY_PATH
14697 freebsd* | dragonfly*)
14698 # DragonFly does not have aout. When/if they implement a new
14699 # versioning mechanism, adjust this.
14700 if test -x /usr/bin/objformat; then
14701 objformat=`/usr/bin/objformat`
14702 else
14703 case $host_os in
14704 freebsd[23].*) objformat=aout ;;
14705 *) objformat=elf ;;
14706 esac
14708 version_type=freebsd-$objformat
14709 case $version_type in
14710 freebsd-elf*)
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14712 need_version=no
14713 need_lib_prefix=no
14715 freebsd-*)
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14717 need_version=yes
14719 esac
14720 shlibpath_var=LD_LIBRARY_PATH
14721 case $host_os in
14722 freebsd2.*)
14723 shlibpath_overrides_runpath=yes
14725 freebsd3.[01]* | freebsdelf3.[01]*)
14726 shlibpath_overrides_runpath=yes
14727 hardcode_into_libs=yes
14729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14731 shlibpath_overrides_runpath=no
14732 hardcode_into_libs=yes
14734 *) # from 4.6 on, and DragonFly
14735 shlibpath_overrides_runpath=yes
14736 hardcode_into_libs=yes
14738 esac
14741 gnu*)
14742 version_type=linux
14743 need_lib_prefix=no
14744 need_version=no
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14746 soname_spec='${libname}${release}${shared_ext}$major'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 hardcode_into_libs=yes
14751 haiku*)
14752 version_type=linux
14753 need_lib_prefix=no
14754 need_version=no
14755 dynamic_linker="$host_os runtime_loader"
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 shlibpath_var=LIBRARY_PATH
14759 shlibpath_overrides_runpath=yes
14760 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14761 hardcode_into_libs=yes
14764 hpux9* | hpux10* | hpux11*)
14765 # Give a soname corresponding to the major version so that dld.sl refuses to
14766 # link against other versions.
14767 version_type=sunos
14768 need_lib_prefix=no
14769 need_version=no
14770 case $host_cpu in
14771 ia64*)
14772 shrext_cmds='.so'
14773 hardcode_into_libs=yes
14774 dynamic_linker="$host_os dld.so"
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 if test "X$HPUX_IA64_MODE" = X32; then
14780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14781 else
14782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14786 hppa*64*)
14787 shrext_cmds='.sl'
14788 hardcode_into_libs=yes
14789 dynamic_linker="$host_os dld.sl"
14790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
14794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14798 shrext_cmds='.sl'
14799 dynamic_linker="$host_os dld.sl"
14800 shlibpath_var=SHLIB_PATH
14801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14805 esac
14806 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14807 postinstall_cmds='chmod 555 $lib'
14808 # or fails outright, so override atomically:
14809 install_override_mode=555
14812 interix[3-9]*)
14813 version_type=linux
14814 need_lib_prefix=no
14815 need_version=no
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14817 soname_spec='${libname}${release}${shared_ext}$major'
14818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=no
14821 hardcode_into_libs=yes
14824 irix5* | irix6* | nonstopux*)
14825 case $host_os in
14826 nonstopux*) version_type=nonstopux ;;
14828 if test "$lt_cv_prog_gnu_ld" = yes; then
14829 version_type=linux
14830 else
14831 version_type=irix
14832 fi ;;
14833 esac
14834 need_lib_prefix=no
14835 need_version=no
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14838 case $host_os in
14839 irix5* | nonstopux*)
14840 libsuff= shlibsuff=
14843 case $LD in # libtool.m4 will add one of these switches to LD
14844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14845 libsuff= shlibsuff= libmagic=32-bit;;
14846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14847 libsuff=32 shlibsuff=N32 libmagic=N32;;
14848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14849 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14850 *) libsuff= shlibsuff= libmagic=never-match;;
14851 esac
14853 esac
14854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14855 shlibpath_overrides_runpath=no
14856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14858 hardcode_into_libs=yes
14861 # No shared lib support for Linux oldld, aout, or coff.
14862 linux*oldld* | linux*aout* | linux*coff*)
14863 dynamic_linker=no
14866 # This must be Linux ELF.
14867 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14868 version_type=linux
14869 need_lib_prefix=no
14870 need_version=no
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14877 # Some binutils ld are patched to set DT_RUNPATH
14878 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 lt_cv_shlibpath_overrides_runpath=no
14882 save_LDFLAGS=$LDFLAGS
14883 save_libdir=$libdir
14884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h. */
14890 main ()
14894 return 0;
14896 _ACEOF
14897 if ac_fn_cxx_try_link "$LINENO"; then :
14898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14899 lt_cv_shlibpath_overrides_runpath=yes
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LDFLAGS=$save_LDFLAGS
14905 libdir=$save_libdir
14909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14911 # This implies no fast_install, which is unacceptable.
14912 # Some rework will be needed to allow for fast_install
14913 # before this can be enabled.
14914 hardcode_into_libs=yes
14916 # Append ld.so.conf contents to the search path
14917 if test -f /etc/ld.so.conf; then
14918 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' ' '`
14919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14922 # We used to test for /lib/ld.so.1 and disable shared libraries on
14923 # powerpc, because MkLinux only supported shared libraries with the
14924 # GNU dynamic linker. Since this was broken with cross compilers,
14925 # most powerpc-linux boxes support dynamic linking these days and
14926 # people can always --disable-shared, the test was removed, and we
14927 # assume the GNU/Linux dynamic linker is in use.
14928 dynamic_linker='GNU/Linux ld.so'
14931 netbsd*)
14932 version_type=sunos
14933 need_lib_prefix=no
14934 need_version=no
14935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14938 dynamic_linker='NetBSD (a.out) ld.so'
14939 else
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 dynamic_linker='NetBSD ld.elf_so'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 shlibpath_overrides_runpath=yes
14946 hardcode_into_libs=yes
14949 newsos6)
14950 version_type=linux
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14956 *nto* | *qnx*)
14957 version_type=qnx
14958 need_lib_prefix=no
14959 need_version=no
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 shlibpath_overrides_runpath=no
14964 hardcode_into_libs=yes
14965 dynamic_linker='ldqnx.so'
14968 openbsd*)
14969 version_type=sunos
14970 sys_lib_dlsearch_path_spec="/usr/lib"
14971 need_lib_prefix=no
14972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14973 case $host_os in
14974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14975 *) need_version=no ;;
14976 esac
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14979 shlibpath_var=LD_LIBRARY_PATH
14980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14981 case $host_os in
14982 openbsd2.[89] | openbsd2.[89].*)
14983 shlibpath_overrides_runpath=no
14986 shlibpath_overrides_runpath=yes
14988 esac
14989 else
14990 shlibpath_overrides_runpath=yes
14994 os2*)
14995 libname_spec='$name'
14996 shrext_cmds=".dll"
14997 need_lib_prefix=no
14998 library_names_spec='$libname${shared_ext} $libname.a'
14999 dynamic_linker='OS/2 ld.exe'
15000 shlibpath_var=LIBPATH
15003 osf3* | osf4* | osf5*)
15004 version_type=osf
15005 need_lib_prefix=no
15006 need_version=no
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15014 rdos*)
15015 dynamic_linker=no
15018 solaris*)
15019 version_type=linux
15020 need_lib_prefix=no
15021 need_version=no
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15027 # ldd complains unless libraries are executable
15028 postinstall_cmds='chmod +x $lib'
15031 sunos4*)
15032 version_type=sunos
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15035 shlibpath_var=LD_LIBRARY_PATH
15036 shlibpath_overrides_runpath=yes
15037 if test "$with_gnu_ld" = yes; then
15038 need_lib_prefix=no
15040 need_version=yes
15043 sysv4 | sysv4.3*)
15044 version_type=linux
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 case $host_vendor in
15049 sni)
15050 shlibpath_overrides_runpath=no
15051 need_lib_prefix=no
15052 runpath_var=LD_RUN_PATH
15054 siemens)
15055 need_lib_prefix=no
15057 motorola)
15058 need_lib_prefix=no
15059 need_version=no
15060 shlibpath_overrides_runpath=no
15061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15063 esac
15066 sysv4*MP*)
15067 if test -d /usr/nec ;then
15068 version_type=linux
15069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15070 soname_spec='$libname${shared_ext}.$major'
15071 shlibpath_var=LD_LIBRARY_PATH
15075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15076 version_type=freebsd-elf
15077 need_lib_prefix=no
15078 need_version=no
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 shlibpath_overrides_runpath=yes
15083 hardcode_into_libs=yes
15084 if test "$with_gnu_ld" = yes; then
15085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15086 else
15087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15088 case $host_os in
15089 sco3.2v5*)
15090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15092 esac
15094 sys_lib_dlsearch_path_spec='/usr/lib'
15097 tpf*)
15098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15099 version_type=linux
15100 need_lib_prefix=no
15101 need_version=no
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=no
15105 hardcode_into_libs=yes
15108 uts4*)
15109 version_type=linux
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 shlibpath_var=LD_LIBRARY_PATH
15116 dynamic_linker=no
15118 esac
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15120 $as_echo "$dynamic_linker" >&6; }
15121 test "$dynamic_linker" = no && can_build_shared=no
15123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15124 if test "$GCC" = yes; then
15125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15174 hardcode_action_CXX=
15175 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15176 test -n "$runpath_var_CXX" ||
15177 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15179 # We can hardcode non-existent directories.
15180 if test "$hardcode_direct_CXX" != no &&
15181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15182 # have to relink, otherwise we might link with an installed library
15183 # when we should be linking with a yet-to-be-installed one
15184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15185 test "$hardcode_minus_L_CXX" != no; then
15186 # Linking always hardcodes the temporary library directory.
15187 hardcode_action_CXX=relink
15188 else
15189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15190 hardcode_action_CXX=immediate
15192 else
15193 # We cannot hardcode anything, or else we can only hardcode existing
15194 # directories.
15195 hardcode_action_CXX=unsupported
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15198 $as_echo "$hardcode_action_CXX" >&6; }
15200 if test "$hardcode_action_CXX" = relink ||
15201 test "$inherit_rpath_CXX" = yes; then
15202 # Fast installation is not supported
15203 enable_fast_install=no
15204 elif test "$shlibpath_overrides_runpath" = yes ||
15205 test "$enable_shared" = no; then
15206 # Fast installation is not necessary
15207 enable_fast_install=needless
15216 fi # test -n "$compiler"
15218 CC=$lt_save_CC
15219 LDCXX=$LD
15220 LD=$lt_save_LD
15221 GCC=$lt_save_GCC
15222 with_gnu_ld=$lt_save_with_gnu_ld
15223 lt_cv_path_LDCXX=$lt_cv_path_LD
15224 lt_cv_path_LD=$lt_save_path_LD
15225 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15226 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15227 fi # test "$_lt_caught_CXX_error" != yes
15229 ac_ext=c
15230 ac_cpp='$CPP $CPPFLAGS'
15231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15247 ac_config_commands="$ac_config_commands libtool"
15252 # Only expand once:
15260 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15261 # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
15262 # In case the pthread.h system header is not found, this test will fail.
15263 XCFLAGS=""
15264 XLDFLAGS=""
15265 CFLAGS="$CFLAGS -pthread"
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15268 #include <pthread.h>
15269 void *g(void *d) { return NULL; }
15271 main ()
15273 pthread_t t; pthread_create(&t,NULL,g,NULL);
15275 return 0;
15277 _ACEOF
15278 if ac_fn_c_try_link "$LINENO"; then :
15279 XCFLAGS=" -Wc,-pthread"
15280 else
15281 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include <pthread.h>
15285 void *g(void *d) { return NULL; }
15287 main ()
15289 pthread_t t; pthread_create(&t,NULL,g,NULL);
15291 return 0;
15293 _ACEOF
15294 if ac_fn_c_try_link "$LINENO"; then :
15296 else
15297 as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
15299 rm -f core conftest.err conftest.$ac_objext \
15300 conftest$ac_exeext conftest.$ac_ext
15302 rm -f core conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15305 # Check for pthread_{,attr_}[sg]etaffinity_np.
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 #include <pthread.h>
15310 main ()
15312 cpu_set_t cpuset;
15313 pthread_attr_t attr;
15314 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15315 if (CPU_ISSET (0, &cpuset))
15316 CPU_SET (1, &cpuset);
15317 else
15318 CPU_ZERO (&cpuset);
15319 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15320 pthread_attr_init (&attr);
15321 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15322 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15324 return 0;
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"; then :
15329 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15332 rm -f core conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15335 # Every c++ lib is linking by default with -nostdlib, which leads to the
15336 # fact, that proper pthread library will not be given at link time. We have
15337 # to hard-code that.
15338 case "${target}" in
15340 *android*)
15341 XLDFLAGS="$XLDFLAGS -lc"
15344 XLDFLAGS="$XLDFLAGS -lpthread"
15347 esac
15352 CFLAGS="$save_CFLAGS"
15354 if test $enable_shared = yes; then
15355 link_cilkrts="-lcilkrts %{static: $LIBS}"
15356 else
15357 link_cilkrts="-lcilkrts $LIBS"
15362 # Must be last
15363 cat >confcache <<\_ACEOF
15364 # This file is a shell script that caches the results of configure
15365 # tests run on this system so they can be shared between configure
15366 # scripts and configure runs, see configure's option --config-cache.
15367 # It is not useful on other systems. If it contains results you don't
15368 # want to keep, you may remove or edit it.
15370 # config.status only pays attention to the cache file if you give it
15371 # the --recheck option to rerun configure.
15373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15375 # following values.
15377 _ACEOF
15379 # The following way of writing the cache mishandles newlines in values,
15380 # but we know of no workaround that is simple, portable, and efficient.
15381 # So, we kill variables containing newlines.
15382 # Ultrix sh set writes to stderr and can't be redirected directly,
15383 # and sets the high bit in the cache file unless we assign to the vars.
15385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15386 eval ac_val=\$$ac_var
15387 case $ac_val in #(
15388 *${as_nl}*)
15389 case $ac_var in #(
15390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15392 esac
15393 case $ac_var in #(
15394 _ | IFS | as_nl) ;; #(
15395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15396 *) { eval $ac_var=; unset $ac_var;} ;;
15397 esac ;;
15398 esac
15399 done
15401 (set) 2>&1 |
15402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15403 *${as_nl}ac_space=\ *)
15404 # `set' does not quote correctly, so add quotes: double-quote
15405 # substitution turns \\\\ into \\, and sed turns \\ into \.
15406 sed -n \
15407 "s/'/'\\\\''/g;
15408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15409 ;; #(
15411 # `set' quotes correctly as required by POSIX, so do not add quotes.
15412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15414 esac |
15415 sort
15417 sed '
15418 /^ac_cv_env_/b end
15419 t clear
15420 :clear
15421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15422 t end
15423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15424 :end' >>confcache
15425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15426 if test -w "$cache_file"; then
15427 test "x$cache_file" != "x/dev/null" &&
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15429 $as_echo "$as_me: updating cache $cache_file" >&6;}
15430 cat confcache >$cache_file
15431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15433 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15436 rm -f confcache
15438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15439 # Let make expand exec_prefix.
15440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15442 # Transform confdefs.h into DEFS.
15443 # Protect against shell expansion while executing Makefile rules.
15444 # Protect against Makefile macro expansion.
15446 # If the first sed substitution is executed (which looks for macros that
15447 # take arguments), then branch to the quote section. Otherwise,
15448 # look for a macro that doesn't take arguments.
15449 ac_script='
15450 :mline
15451 /\\$/{
15453 s,\\\n,,
15454 b mline
15456 t clear
15457 :clear
15458 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15459 t quote
15460 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15461 t quote
15462 b any
15463 :quote
15464 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15465 s/\[/\\&/g
15466 s/\]/\\&/g
15467 s/\$/$$/g
15469 :any
15472 s/^\n//
15473 s/\n/ /g
15477 DEFS=`sed -n "$ac_script" confdefs.h`
15480 ac_libobjs=
15481 ac_ltlibobjs=
15482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15483 # 1. Remove the extension, and $U if already installed.
15484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15487 # will be set to the directory where LIBOBJS objects are built.
15488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15490 done
15491 LIBOBJS=$ac_libobjs
15493 LTLIBOBJS=$ac_ltlibobjs
15496 if test -n "$EXEEXT"; then
15497 am__EXEEXT_TRUE=
15498 am__EXEEXT_FALSE='#'
15499 else
15500 am__EXEEXT_TRUE='#'
15501 am__EXEEXT_FALSE=
15504 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15505 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15509 as_fn_error "conditional \"AMDEP\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15513 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15517 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15520 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15521 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15524 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
15525 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15528 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
15529 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15533 : ${CONFIG_STATUS=./config.status}
15534 ac_write_fail=0
15535 ac_clean_files_save=$ac_clean_files
15536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15538 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15539 as_write_fail=0
15540 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15541 #! $SHELL
15542 # Generated by $as_me.
15543 # Run this file to recreate the current configuration.
15544 # Compiler output produced by configure, useful for debugging
15545 # configure, is in config.log if it exists.
15547 debug=false
15548 ac_cs_recheck=false
15549 ac_cs_silent=false
15551 SHELL=\${CONFIG_SHELL-$SHELL}
15552 export SHELL
15553 _ASEOF
15554 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15555 ## -------------------- ##
15556 ## M4sh Initialization. ##
15557 ## -------------------- ##
15559 # Be more Bourne compatible
15560 DUALCASE=1; export DUALCASE # for MKS sh
15561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15562 emulate sh
15563 NULLCMD=:
15564 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15565 # is contrary to our usage. Disable this feature.
15566 alias -g '${1+"$@"}'='"$@"'
15567 setopt NO_GLOB_SUBST
15568 else
15569 case `(set -o) 2>/dev/null` in #(
15570 *posix*) :
15571 set -o posix ;; #(
15572 *) :
15574 esac
15578 as_nl='
15580 export as_nl
15581 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15582 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15583 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15585 # Prefer a ksh shell builtin over an external printf program on Solaris,
15586 # but without wasting forks for bash or zsh.
15587 if test -z "$BASH_VERSION$ZSH_VERSION" \
15588 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15589 as_echo='print -r --'
15590 as_echo_n='print -rn --'
15591 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15592 as_echo='printf %s\n'
15593 as_echo_n='printf %s'
15594 else
15595 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15596 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15597 as_echo_n='/usr/ucb/echo -n'
15598 else
15599 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15600 as_echo_n_body='eval
15601 arg=$1;
15602 case $arg in #(
15603 *"$as_nl"*)
15604 expr "X$arg" : "X\\(.*\\)$as_nl";
15605 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15606 esac;
15607 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15609 export as_echo_n_body
15610 as_echo_n='sh -c $as_echo_n_body as_echo'
15612 export as_echo_body
15613 as_echo='sh -c $as_echo_body as_echo'
15616 # The user is always right.
15617 if test "${PATH_SEPARATOR+set}" != set; then
15618 PATH_SEPARATOR=:
15619 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15620 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15621 PATH_SEPARATOR=';'
15626 # IFS
15627 # We need space, tab and new line, in precisely that order. Quoting is
15628 # there to prevent editors from complaining about space-tab.
15629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15630 # splitting by setting IFS to empty value.)
15631 IFS=" "" $as_nl"
15633 # Find who we are. Look in the path if we contain no directory separator.
15634 case $0 in #((
15635 *[\\/]* ) as_myself=$0 ;;
15636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $PATH
15639 IFS=$as_save_IFS
15640 test -z "$as_dir" && as_dir=.
15641 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15642 done
15643 IFS=$as_save_IFS
15646 esac
15647 # We did not find ourselves, most probably we were run as `sh COMMAND'
15648 # in which case we are not to be found in the path.
15649 if test "x$as_myself" = x; then
15650 as_myself=$0
15652 if test ! -f "$as_myself"; then
15653 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15654 exit 1
15657 # Unset variables that we do not need and which cause bugs (e.g. in
15658 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15659 # suppresses any "Segmentation fault" message there. '((' could
15660 # trigger a bug in pdksh 5.2.14.
15661 for as_var in BASH_ENV ENV MAIL MAILPATH
15662 do eval test x\${$as_var+set} = xset \
15663 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15664 done
15665 PS1='$ '
15666 PS2='> '
15667 PS4='+ '
15669 # NLS nuisances.
15670 LC_ALL=C
15671 export LC_ALL
15672 LANGUAGE=C
15673 export LANGUAGE
15675 # CDPATH.
15676 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15679 # as_fn_error ERROR [LINENO LOG_FD]
15680 # ---------------------------------
15681 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15682 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15683 # script with status $?, using 1 if that was 0.
15684 as_fn_error ()
15686 as_status=$?; test $as_status -eq 0 && as_status=1
15687 if test "$3"; then
15688 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15689 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15691 $as_echo "$as_me: error: $1" >&2
15692 as_fn_exit $as_status
15693 } # as_fn_error
15696 # as_fn_set_status STATUS
15697 # -----------------------
15698 # Set $? to STATUS, without forking.
15699 as_fn_set_status ()
15701 return $1
15702 } # as_fn_set_status
15704 # as_fn_exit STATUS
15705 # -----------------
15706 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15707 as_fn_exit ()
15709 set +e
15710 as_fn_set_status $1
15711 exit $1
15712 } # as_fn_exit
15714 # as_fn_unset VAR
15715 # ---------------
15716 # Portably unset VAR.
15717 as_fn_unset ()
15719 { eval $1=; unset $1;}
15721 as_unset=as_fn_unset
15722 # as_fn_append VAR VALUE
15723 # ----------------------
15724 # Append the text in VALUE to the end of the definition contained in VAR. Take
15725 # advantage of any shell optimizations that allow amortized linear growth over
15726 # repeated appends, instead of the typical quadratic growth present in naive
15727 # implementations.
15728 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15729 eval 'as_fn_append ()
15731 eval $1+=\$2
15733 else
15734 as_fn_append ()
15736 eval $1=\$$1\$2
15738 fi # as_fn_append
15740 # as_fn_arith ARG...
15741 # ------------------
15742 # Perform arithmetic evaluation on the ARGs, and store the result in the
15743 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15744 # must be portable across $(()) and expr.
15745 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15746 eval 'as_fn_arith ()
15748 as_val=$(( $* ))
15750 else
15751 as_fn_arith ()
15753 as_val=`expr "$@" || test $? -eq 1`
15755 fi # as_fn_arith
15758 if expr a : '\(a\)' >/dev/null 2>&1 &&
15759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15760 as_expr=expr
15761 else
15762 as_expr=false
15765 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15766 as_basename=basename
15767 else
15768 as_basename=false
15771 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15772 as_dirname=dirname
15773 else
15774 as_dirname=false
15777 as_me=`$as_basename -- "$0" ||
15778 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15779 X"$0" : 'X\(//\)$' \| \
15780 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15781 $as_echo X/"$0" |
15782 sed '/^.*\/\([^/][^/]*\)\/*$/{
15783 s//\1/
15786 /^X\/\(\/\/\)$/{
15787 s//\1/
15790 /^X\/\(\/\).*/{
15791 s//\1/
15794 s/.*/./; q'`
15796 # Avoid depending upon Character Ranges.
15797 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15798 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15799 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15800 as_cr_digits='0123456789'
15801 as_cr_alnum=$as_cr_Letters$as_cr_digits
15803 ECHO_C= ECHO_N= ECHO_T=
15804 case `echo -n x` in #(((((
15805 -n*)
15806 case `echo 'xy\c'` in
15807 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15808 xy) ECHO_C='\c';;
15809 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15810 ECHO_T=' ';;
15811 esac;;
15813 ECHO_N='-n';;
15814 esac
15816 rm -f conf$$ conf$$.exe conf$$.file
15817 if test -d conf$$.dir; then
15818 rm -f conf$$.dir/conf$$.file
15819 else
15820 rm -f conf$$.dir
15821 mkdir conf$$.dir 2>/dev/null
15823 if (echo >conf$$.file) 2>/dev/null; then
15824 if ln -s conf$$.file conf$$ 2>/dev/null; then
15825 as_ln_s='ln -s'
15826 # ... but there are two gotchas:
15827 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15828 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15829 # In both cases, we have to default to `cp -p'.
15830 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15831 as_ln_s='cp -p'
15832 elif ln conf$$.file conf$$ 2>/dev/null; then
15833 as_ln_s=ln
15834 else
15835 as_ln_s='cp -p'
15837 else
15838 as_ln_s='cp -p'
15840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15841 rmdir conf$$.dir 2>/dev/null
15844 # as_fn_mkdir_p
15845 # -------------
15846 # Create "$as_dir" as a directory, including parents if necessary.
15847 as_fn_mkdir_p ()
15850 case $as_dir in #(
15851 -*) as_dir=./$as_dir;;
15852 esac
15853 test -d "$as_dir" || eval $as_mkdir_p || {
15854 as_dirs=
15855 while :; do
15856 case $as_dir in #(
15857 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15858 *) as_qdir=$as_dir;;
15859 esac
15860 as_dirs="'$as_qdir' $as_dirs"
15861 as_dir=`$as_dirname -- "$as_dir" ||
15862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15863 X"$as_dir" : 'X\(//\)[^/]' \| \
15864 X"$as_dir" : 'X\(//\)$' \| \
15865 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15866 $as_echo X"$as_dir" |
15867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15868 s//\1/
15871 /^X\(\/\/\)[^/].*/{
15872 s//\1/
15875 /^X\(\/\/\)$/{
15876 s//\1/
15879 /^X\(\/\).*/{
15880 s//\1/
15883 s/.*/./; q'`
15884 test -d "$as_dir" && break
15885 done
15886 test -z "$as_dirs" || eval "mkdir $as_dirs"
15887 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15890 } # as_fn_mkdir_p
15891 if mkdir -p . 2>/dev/null; then
15892 as_mkdir_p='mkdir -p "$as_dir"'
15893 else
15894 test -d ./-p && rmdir ./-p
15895 as_mkdir_p=false
15898 if test -x / >/dev/null 2>&1; then
15899 as_test_x='test -x'
15900 else
15901 if ls -dL / >/dev/null 2>&1; then
15902 as_ls_L_option=L
15903 else
15904 as_ls_L_option=
15906 as_test_x='
15907 eval sh -c '\''
15908 if test -d "$1"; then
15909 test -d "$1/.";
15910 else
15911 case $1 in #(
15912 -*)set "./$1";;
15913 esac;
15914 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15915 ???[sx]*):;;*)false;;esac;fi
15916 '\'' sh
15919 as_executable_p=$as_test_x
15921 # Sed expression to map a string onto a valid CPP name.
15922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15924 # Sed expression to map a string onto a valid variable name.
15925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15928 exec 6>&1
15929 ## ----------------------------------- ##
15930 ## Main body of $CONFIG_STATUS script. ##
15931 ## ----------------------------------- ##
15932 _ASEOF
15933 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936 # Save the log message, to keep $0 and so on meaningful, and to
15937 # report actual input values of CONFIG_FILES etc. instead of their
15938 # values after options handling.
15939 ac_log="
15940 This file was extended by Cilk Runtime Library $as_me 2.0, which was
15941 generated by GNU Autoconf 2.64. Invocation command line was
15943 CONFIG_FILES = $CONFIG_FILES
15944 CONFIG_HEADERS = $CONFIG_HEADERS
15945 CONFIG_LINKS = $CONFIG_LINKS
15946 CONFIG_COMMANDS = $CONFIG_COMMANDS
15947 $ $0 $@
15949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15952 _ACEOF
15954 case $ac_config_files in *"
15955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15956 esac
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 # Files that config.status was made for.
15962 config_files="$ac_config_files"
15963 config_commands="$ac_config_commands"
15965 _ACEOF
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 ac_cs_usage="\
15969 \`$as_me' instantiates files and other configuration actions
15970 from templates according to the current configuration. Unless the files
15971 and actions are specified as TAGs, all are instantiated by default.
15973 Usage: $0 [OPTION]... [TAG]...
15975 -h, --help print this help, then exit
15976 -V, --version print version number and configuration settings, then exit
15977 -q, --quiet, --silent
15978 do not print progress messages
15979 -d, --debug don't remove temporary files
15980 --recheck update $as_me by reconfiguring in the same conditions
15981 --file=FILE[:TEMPLATE]
15982 instantiate the configuration file FILE
15984 Configuration files:
15985 $config_files
15987 Configuration commands:
15988 $config_commands
15990 Report bugs to <cilk@intel.com>."
15992 _ACEOF
15993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15994 ac_cs_version="\\
15995 Cilk Runtime Library config.status 2.0
15996 configured by $0, generated by GNU Autoconf 2.64,
15997 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15999 Copyright (C) 2009 Free Software Foundation, Inc.
16000 This config.status script is free software; the Free Software Foundation
16001 gives unlimited permission to copy, distribute and modify it."
16003 ac_pwd='$ac_pwd'
16004 srcdir='$srcdir'
16005 INSTALL='$INSTALL'
16006 MKDIR_P='$MKDIR_P'
16007 AWK='$AWK'
16008 test -n "\$AWK" || AWK=awk
16009 _ACEOF
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012 # The default lists apply if the user does not specify any file.
16013 ac_need_defaults=:
16014 while test $# != 0
16016 case $1 in
16017 --*=*)
16018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16020 ac_shift=:
16023 ac_option=$1
16024 ac_optarg=$2
16025 ac_shift=shift
16027 esac
16029 case $ac_option in
16030 # Handling of the options.
16031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16032 ac_cs_recheck=: ;;
16033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16034 $as_echo "$ac_cs_version"; exit ;;
16035 --debug | --debu | --deb | --de | --d | -d )
16036 debug=: ;;
16037 --file | --fil | --fi | --f )
16038 $ac_shift
16039 case $ac_optarg in
16040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16041 esac
16042 as_fn_append CONFIG_FILES " '$ac_optarg'"
16043 ac_need_defaults=false;;
16044 --he | --h | --help | --hel | -h )
16045 $as_echo "$ac_cs_usage"; exit ;;
16046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16047 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16048 ac_cs_silent=: ;;
16050 # This is an error.
16051 -*) as_fn_error "unrecognized option: \`$1'
16052 Try \`$0 --help' for more information." ;;
16054 *) as_fn_append ac_config_targets " $1"
16055 ac_need_defaults=false ;;
16057 esac
16058 shift
16059 done
16061 ac_configure_extra_args=
16063 if $ac_cs_silent; then
16064 exec 6>/dev/null
16065 ac_configure_extra_args="$ac_configure_extra_args --silent"
16068 _ACEOF
16069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070 if \$ac_cs_recheck; then
16071 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16072 shift
16073 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16074 CONFIG_SHELL='$SHELL'
16075 export CONFIG_SHELL
16076 exec "\$@"
16079 _ACEOF
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 exec 5>>config.log
16083 echo
16084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16085 ## Running $as_me. ##
16086 _ASBOX
16087 $as_echo "$ac_log"
16088 } >&5
16090 _ACEOF
16091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16093 # INIT-COMMANDS
16096 srcdir="$srcdir"
16097 host="$host"
16098 target="$target"
16099 with_multisubdir="$with_multisubdir"
16100 with_multisrctop="$with_multisrctop"
16101 with_target_subdir="$with_target_subdir"
16102 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16103 multi_basedir="$multi_basedir"
16104 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16105 CC="$CC"
16106 CXX="$CXX"
16107 GFORTRAN="$GFORTRAN"
16108 GCJ="$GCJ"
16109 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16112 # The HP-UX ksh and POSIX shell print the target directory to stdout
16113 # if CDPATH is set.
16114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16116 sed_quote_subst='$sed_quote_subst'
16117 double_quote_subst='$double_quote_subst'
16118 delay_variable_subst='$delay_variable_subst'
16119 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16120 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16121 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16122 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16123 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16124 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16125 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16126 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16127 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16128 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16129 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16130 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16131 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16132 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16133 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16134 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16135 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16136 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16137 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16138 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16139 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16140 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16141 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16142 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16143 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16144 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16145 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16146 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16147 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16148 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16149 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16150 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16151 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16152 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16153 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16154 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16155 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16156 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16157 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16158 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16159 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16160 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16161 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16162 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16163 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16164 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16165 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16166 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16167 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"`'
16168 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16169 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16170 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16171 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16172 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16173 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16174 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16175 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16176 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16177 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16178 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16179 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16180 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16181 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16182 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16183 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16184 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16185 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16186 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16187 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16188 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16189 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16190 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16191 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16192 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16193 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16194 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16195 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16196 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16197 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16198 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16199 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16200 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16201 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16202 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16203 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16204 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16205 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16206 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16207 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16208 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16209 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16210 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16211 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16212 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16213 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16214 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16215 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16216 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16217 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16218 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16219 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16220 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16221 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16222 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16223 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16224 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16225 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16226 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16227 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16228 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16229 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16230 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16231 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16232 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16233 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16234 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16235 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16236 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16237 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16238 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16239 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16240 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16241 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16242 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16243 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16244 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16245 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16246 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16247 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16248 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16249 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16250 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16251 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16252 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16253 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16254 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16255 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16256 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16257 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16258 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16259 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16260 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16261 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16262 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16263 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16264 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16265 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16266 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16267 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16268 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16269 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16270 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16271 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16272 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16273 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16274 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16275 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16276 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16277 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16278 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16279 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16280 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16281 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16282 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16283 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16284 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16285 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16286 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16287 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16288 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16289 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16290 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16291 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16292 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16293 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16295 LTCC='$LTCC'
16296 LTCFLAGS='$LTCFLAGS'
16297 compiler='$compiler_DEFAULT'
16299 # A function that is used when there is no print builtin or printf.
16300 func_fallback_echo ()
16302 eval 'cat <<_LTECHO_EOF
16304 _LTECHO_EOF'
16307 # Quote evaled strings.
16308 for var in SHELL \
16309 ECHO \
16310 SED \
16311 GREP \
16312 EGREP \
16313 FGREP \
16314 LD \
16315 NM \
16316 LN_S \
16317 lt_SP2NL \
16318 lt_NL2SP \
16319 reload_flag \
16320 OBJDUMP \
16321 deplibs_check_method \
16322 file_magic_cmd \
16323 AR \
16324 AR_FLAGS \
16325 STRIP \
16326 RANLIB \
16327 CC \
16328 CFLAGS \
16329 compiler \
16330 lt_cv_sys_global_symbol_pipe \
16331 lt_cv_sys_global_symbol_to_cdecl \
16332 lt_cv_sys_global_symbol_to_c_name_address \
16333 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16334 lt_prog_compiler_no_builtin_flag \
16335 lt_prog_compiler_wl \
16336 lt_prog_compiler_pic \
16337 lt_prog_compiler_static \
16338 lt_cv_prog_compiler_c_o \
16339 need_locks \
16340 DSYMUTIL \
16341 NMEDIT \
16342 LIPO \
16343 OTOOL \
16344 OTOOL64 \
16345 shrext_cmds \
16346 export_dynamic_flag_spec \
16347 whole_archive_flag_spec \
16348 compiler_needs_object \
16349 with_gnu_ld \
16350 allow_undefined_flag \
16351 no_undefined_flag \
16352 hardcode_libdir_flag_spec \
16353 hardcode_libdir_flag_spec_ld \
16354 hardcode_libdir_separator \
16355 fix_srcfile_path \
16356 exclude_expsyms \
16357 include_expsyms \
16358 file_list_spec \
16359 variables_saved_for_relink \
16360 libname_spec \
16361 library_names_spec \
16362 soname_spec \
16363 install_override_mode \
16364 finish_eval \
16365 old_striplib \
16366 striplib \
16367 compiler_lib_search_dirs \
16368 predep_objects \
16369 postdep_objects \
16370 predeps \
16371 postdeps \
16372 compiler_lib_search_path \
16373 LD_CXX \
16374 reload_flag_CXX \
16375 compiler_CXX \
16376 lt_prog_compiler_no_builtin_flag_CXX \
16377 lt_prog_compiler_wl_CXX \
16378 lt_prog_compiler_pic_CXX \
16379 lt_prog_compiler_static_CXX \
16380 lt_cv_prog_compiler_c_o_CXX \
16381 export_dynamic_flag_spec_CXX \
16382 whole_archive_flag_spec_CXX \
16383 compiler_needs_object_CXX \
16384 with_gnu_ld_CXX \
16385 allow_undefined_flag_CXX \
16386 no_undefined_flag_CXX \
16387 hardcode_libdir_flag_spec_CXX \
16388 hardcode_libdir_flag_spec_ld_CXX \
16389 hardcode_libdir_separator_CXX \
16390 fix_srcfile_path_CXX \
16391 exclude_expsyms_CXX \
16392 include_expsyms_CXX \
16393 file_list_spec_CXX \
16394 compiler_lib_search_dirs_CXX \
16395 predep_objects_CXX \
16396 postdep_objects_CXX \
16397 predeps_CXX \
16398 postdeps_CXX \
16399 compiler_lib_search_path_CXX; do
16400 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16401 *[\\\\\\\`\\"\\\$]*)
16402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16407 esac
16408 done
16410 # Double-quote double-evaled strings.
16411 for var in reload_cmds \
16412 old_postinstall_cmds \
16413 old_postuninstall_cmds \
16414 old_archive_cmds \
16415 extract_expsyms_cmds \
16416 old_archive_from_new_cmds \
16417 old_archive_from_expsyms_cmds \
16418 archive_cmds \
16419 archive_expsym_cmds \
16420 module_cmds \
16421 module_expsym_cmds \
16422 export_symbols_cmds \
16423 prelink_cmds \
16424 postinstall_cmds \
16425 postuninstall_cmds \
16426 finish_cmds \
16427 sys_lib_search_path_spec \
16428 sys_lib_dlsearch_path_spec \
16429 reload_cmds_CXX \
16430 old_archive_cmds_CXX \
16431 old_archive_from_new_cmds_CXX \
16432 old_archive_from_expsyms_cmds_CXX \
16433 archive_cmds_CXX \
16434 archive_expsym_cmds_CXX \
16435 module_cmds_CXX \
16436 module_expsym_cmds_CXX \
16437 export_symbols_cmds_CXX \
16438 prelink_cmds_CXX; do
16439 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16440 *[\\\\\\\`\\"\\\$]*)
16441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16446 esac
16447 done
16449 ac_aux_dir='$ac_aux_dir'
16450 xsi_shell='$xsi_shell'
16451 lt_shell_append='$lt_shell_append'
16453 # See if we are running on zsh, and set the options which allow our
16454 # commands through without removal of \ escapes INIT.
16455 if test -n "\${ZSH_VERSION+set}" ; then
16456 setopt NO_GLOB_SUBST
16460 PACKAGE='$PACKAGE'
16461 VERSION='$VERSION'
16462 TIMESTAMP='$TIMESTAMP'
16463 RM='$RM'
16464 ofile='$ofile'
16471 _ACEOF
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 # Handling of arguments.
16476 for ac_config_target in $ac_config_targets
16478 case $ac_config_target in
16479 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16480 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16481 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16482 "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
16483 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16485 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16486 esac
16487 done
16490 # If the user did not use the arguments to specify the items to instantiate,
16491 # then the envvar interface is used. Set only those that are not.
16492 # We use the long form for the default assignment because of an extremely
16493 # bizarre bug on SunOS 4.1.3.
16494 if $ac_need_defaults; then
16495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16499 # Have a temporary directory for convenience. Make it in the build tree
16500 # simply because there is no reason against having it here, and in addition,
16501 # creating and moving files from /tmp can sometimes cause problems.
16502 # Hook for its removal unless debugging.
16503 # Note that there is a small window in which the directory will not be cleaned:
16504 # after its creation but before its name has been assigned to `$tmp'.
16505 $debug ||
16507 tmp=
16508 trap 'exit_status=$?
16509 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16511 trap 'as_fn_exit 1' 1 2 13 15
16513 # Create a (secure) tmp directory for tmp files.
16516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16517 test -n "$tmp" && test -d "$tmp"
16518 } ||
16520 tmp=./conf$$-$RANDOM
16521 (umask 077 && mkdir "$tmp")
16522 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16524 # Set up the scripts for CONFIG_FILES section.
16525 # No need to generate them if there are no CONFIG_FILES.
16526 # This happens for instance with `./config.status config.h'.
16527 if test -n "$CONFIG_FILES"; then
16530 ac_cr=`echo X | tr X '\015'`
16531 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16532 # But we know of no other shell where ac_cr would be empty at this
16533 # point, so we can use a bashism as a fallback.
16534 if test "x$ac_cr" = x; then
16535 eval ac_cr=\$\'\\r\'
16537 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16538 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16539 ac_cs_awk_cr='\r'
16540 else
16541 ac_cs_awk_cr=$ac_cr
16544 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16545 _ACEOF
16549 echo "cat >conf$$subs.awk <<_ACEOF" &&
16550 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16551 echo "_ACEOF"
16552 } >conf$$subs.sh ||
16553 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16554 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16555 ac_delim='%!_!# '
16556 for ac_last_try in false false false false false :; do
16557 . ./conf$$subs.sh ||
16558 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16560 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16561 if test $ac_delim_n = $ac_delim_num; then
16562 break
16563 elif $ac_last_try; then
16564 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16565 else
16566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16568 done
16569 rm -f conf$$subs.sh
16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16573 _ACEOF
16574 sed -n '
16576 s/^/S["/; s/!.*/"]=/
16579 s/^[^!]*!//
16580 :repl
16581 t repl
16582 s/'"$ac_delim"'$//
16583 t delim
16586 s/\(.\{148\}\).*/\1/
16587 t more1
16588 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16591 b repl
16592 :more1
16593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16596 s/.\{148\}//
16597 t nl
16598 :delim
16600 s/\(.\{148\}\).*/\1/
16601 t more2
16602 s/["\\]/\\&/g; s/^/"/; s/$/"/
16605 :more2
16606 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16609 s/.\{148\}//
16610 t delim
16611 ' <conf$$subs.awk | sed '
16612 /^[^""]/{
16614 s/\n//
16616 ' >>$CONFIG_STATUS || ac_write_fail=1
16617 rm -f conf$$subs.awk
16618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16619 _ACAWK
16620 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16621 for (key in S) S_is_set[key] = 1
16622 FS = "\a"
16626 line = $ 0
16627 nfields = split(line, field, "@")
16628 substed = 0
16629 len = length(field[1])
16630 for (i = 2; i < nfields; i++) {
16631 key = field[i]
16632 keylen = length(key)
16633 if (S_is_set[key]) {
16634 value = S[key]
16635 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16636 len += length(value) + length(field[++i])
16637 substed = 1
16638 } else
16639 len += 1 + keylen
16642 print line
16645 _ACAWK
16646 _ACEOF
16647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16648 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16649 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16650 else
16652 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16653 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16654 _ACEOF
16656 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16657 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16658 # trailing colons and then remove the whole line if VPATH becomes empty
16659 # (actually we leave an empty line to preserve line numbers).
16660 if test "x$srcdir" = x.; then
16661 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16662 s/:*\$(srcdir):*/:/
16663 s/:*\${srcdir}:*/:/
16664 s/:*@srcdir@:*/:/
16665 s/^\([^=]*=[ ]*\):*/\1/
16666 s/:*$//
16667 s/^[^=]*=[ ]*$//
16671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16672 fi # test -n "$CONFIG_FILES"
16675 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16676 shift
16677 for ac_tag
16679 case $ac_tag in
16680 :[FHLC]) ac_mode=$ac_tag; continue;;
16681 esac
16682 case $ac_mode$ac_tag in
16683 :[FHL]*:*);;
16684 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16685 :[FH]-) ac_tag=-:-;;
16686 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16687 esac
16688 ac_save_IFS=$IFS
16689 IFS=:
16690 set x $ac_tag
16691 IFS=$ac_save_IFS
16692 shift
16693 ac_file=$1
16694 shift
16696 case $ac_mode in
16697 :L) ac_source=$1;;
16698 :[FH])
16699 ac_file_inputs=
16700 for ac_f
16702 case $ac_f in
16703 -) ac_f="$tmp/stdin";;
16704 *) # Look for the file first in the build tree, then in the source tree
16705 # (if the path is not absolute). The absolute path cannot be DOS-style,
16706 # because $ac_f cannot contain `:'.
16707 test -f "$ac_f" ||
16708 case $ac_f in
16709 [\\/$]*) false;;
16710 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16711 esac ||
16712 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16713 esac
16714 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16715 as_fn_append ac_file_inputs " '$ac_f'"
16716 done
16718 # Let's still pretend it is `configure' which instantiates (i.e., don't
16719 # use $as_me), people would be surprised to read:
16720 # /* config.h. Generated by config.status. */
16721 configure_input='Generated from '`
16722 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16723 `' by configure.'
16724 if test x"$ac_file" != x-; then
16725 configure_input="$ac_file. $configure_input"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16727 $as_echo "$as_me: creating $ac_file" >&6;}
16729 # Neutralize special characters interpreted by sed in replacement strings.
16730 case $configure_input in #(
16731 *\&* | *\|* | *\\* )
16732 ac_sed_conf_input=`$as_echo "$configure_input" |
16733 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16734 *) ac_sed_conf_input=$configure_input;;
16735 esac
16737 case $ac_tag in
16738 *:-:* | *:-) cat >"$tmp/stdin" \
16739 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16740 esac
16742 esac
16744 ac_dir=`$as_dirname -- "$ac_file" ||
16745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16746 X"$ac_file" : 'X\(//\)[^/]' \| \
16747 X"$ac_file" : 'X\(//\)$' \| \
16748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16749 $as_echo X"$ac_file" |
16750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16751 s//\1/
16754 /^X\(\/\/\)[^/].*/{
16755 s//\1/
16758 /^X\(\/\/\)$/{
16759 s//\1/
16762 /^X\(\/\).*/{
16763 s//\1/
16766 s/.*/./; q'`
16767 as_dir="$ac_dir"; as_fn_mkdir_p
16768 ac_builddir=.
16770 case "$ac_dir" in
16771 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16774 # A ".." for each directory in $ac_dir_suffix.
16775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16776 case $ac_top_builddir_sub in
16777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16779 esac ;;
16780 esac
16781 ac_abs_top_builddir=$ac_pwd
16782 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16783 # for backward compatibility:
16784 ac_top_builddir=$ac_top_build_prefix
16786 case $srcdir in
16787 .) # We are building in place.
16788 ac_srcdir=.
16789 ac_top_srcdir=$ac_top_builddir_sub
16790 ac_abs_top_srcdir=$ac_pwd ;;
16791 [\\/]* | ?:[\\/]* ) # Absolute name.
16792 ac_srcdir=$srcdir$ac_dir_suffix;
16793 ac_top_srcdir=$srcdir
16794 ac_abs_top_srcdir=$srcdir ;;
16795 *) # Relative name.
16796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16797 ac_top_srcdir=$ac_top_build_prefix$srcdir
16798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16799 esac
16800 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16803 case $ac_mode in
16806 # CONFIG_FILE
16809 case $INSTALL in
16810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16811 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16812 esac
16813 ac_MKDIR_P=$MKDIR_P
16814 case $MKDIR_P in
16815 [\\/$]* | ?:[\\/]* ) ;;
16816 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16817 esac
16818 _ACEOF
16820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16821 # If the template does not know about datarootdir, expand it.
16822 # FIXME: This hack should be removed a few years after 2.60.
16823 ac_datarootdir_hack=; ac_datarootdir_seen=
16824 ac_sed_dataroot='
16825 /datarootdir/ {
16829 /@datadir@/p
16830 /@docdir@/p
16831 /@infodir@/p
16832 /@localedir@/p
16833 /@mandir@/p'
16834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16835 *datarootdir*) ac_datarootdir_seen=yes;;
16836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16839 _ACEOF
16840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841 ac_datarootdir_hack='
16842 s&@datadir@&$datadir&g
16843 s&@docdir@&$docdir&g
16844 s&@infodir@&$infodir&g
16845 s&@localedir@&$localedir&g
16846 s&@mandir@&$mandir&g
16847 s&\\\${datarootdir}&$datarootdir&g' ;;
16848 esac
16849 _ACEOF
16851 # Neutralize VPATH when `$srcdir' = `.'.
16852 # Shell code in configure.ac might set extrasub.
16853 # FIXME: do we really want to maintain this feature?
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 ac_sed_extra="$ac_vpsub
16856 $extrasub
16857 _ACEOF
16858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16861 s|@configure_input@|$ac_sed_conf_input|;t t
16862 s&@top_builddir@&$ac_top_builddir_sub&;t t
16863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16864 s&@srcdir@&$ac_srcdir&;t t
16865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16866 s&@top_srcdir@&$ac_top_srcdir&;t t
16867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16868 s&@builddir@&$ac_builddir&;t t
16869 s&@abs_builddir@&$ac_abs_builddir&;t t
16870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16871 s&@INSTALL@&$ac_INSTALL&;t t
16872 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16873 $ac_datarootdir_hack
16875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16876 || as_fn_error "could not create $ac_file" "$LINENO" 5
16878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16879 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16882 which seems to be undefined. Please make sure it is defined." >&5
16883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16884 which seems to be undefined. Please make sure it is defined." >&2;}
16886 rm -f "$tmp/stdin"
16887 case $ac_file in
16888 -) cat "$tmp/out" && rm -f "$tmp/out";;
16889 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16890 esac \
16891 || as_fn_error "could not create $ac_file" "$LINENO" 5
16895 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16896 $as_echo "$as_me: executing $ac_file commands" >&6;}
16898 esac
16901 case $ac_file$ac_mode in
16902 "default-1":C)
16903 # Only add multilib support code if we just rebuilt the top-level
16904 # Makefile.
16905 case " $CONFIG_FILES " in
16906 *" Makefile "*)
16907 ac_file=Makefile . ${multi_basedir}/config-ml.in
16909 esac ;;
16910 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16911 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16912 # are listed without --file. Let's play safe and only enable the eval
16913 # if we detect the quoting.
16914 case $CONFIG_FILES in
16915 *\'*) eval set x "$CONFIG_FILES" ;;
16916 *) set x $CONFIG_FILES ;;
16917 esac
16918 shift
16919 for mf
16921 # Strip MF so we end up with the name of the file.
16922 mf=`echo "$mf" | sed -e 's/:.*$//'`
16923 # Check whether this is an Automake generated Makefile or not.
16924 # We used to match only the files named `Makefile.in', but
16925 # some people rename them; so instead we look at the file content.
16926 # Grep'ing the first line is not enough: some people post-process
16927 # each Makefile.in and add a new line on top of each file to say so.
16928 # Grep'ing the whole file is not good either: AIX grep has a line
16929 # limit of 2048, but all sed's we know have understand at least 4000.
16930 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16931 dirpart=`$as_dirname -- "$mf" ||
16932 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16933 X"$mf" : 'X\(//\)[^/]' \| \
16934 X"$mf" : 'X\(//\)$' \| \
16935 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16936 $as_echo X"$mf" |
16937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16938 s//\1/
16941 /^X\(\/\/\)[^/].*/{
16942 s//\1/
16945 /^X\(\/\/\)$/{
16946 s//\1/
16949 /^X\(\/\).*/{
16950 s//\1/
16953 s/.*/./; q'`
16954 else
16955 continue
16957 # Extract the definition of DEPDIR, am__include, and am__quote
16958 # from the Makefile without running `make'.
16959 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16960 test -z "$DEPDIR" && continue
16961 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16962 test -z "am__include" && continue
16963 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16964 # When using ansi2knr, U may be empty or an underscore; expand it
16965 U=`sed -n 's/^U = //p' < "$mf"`
16966 # Find all dependency output files, they are included files with
16967 # $(DEPDIR) in their names. We invoke sed twice because it is the
16968 # simplest approach to changing $(DEPDIR) to its actual value in the
16969 # expansion.
16970 for file in `sed -n "
16971 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16972 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16973 # Make sure the directory exists.
16974 test -f "$dirpart/$file" && continue
16975 fdir=`$as_dirname -- "$file" ||
16976 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16977 X"$file" : 'X\(//\)[^/]' \| \
16978 X"$file" : 'X\(//\)$' \| \
16979 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16980 $as_echo X"$file" |
16981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16982 s//\1/
16985 /^X\(\/\/\)[^/].*/{
16986 s//\1/
16989 /^X\(\/\/\)$/{
16990 s//\1/
16993 /^X\(\/\).*/{
16994 s//\1/
16997 s/.*/./; q'`
16998 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16999 # echo "creating $dirpart/$file"
17000 echo '# dummy' > "$dirpart/$file"
17001 done
17002 done
17005 "libtool":C)
17007 # See if we are running on zsh, and set the options which allow our
17008 # commands through without removal of \ escapes.
17009 if test -n "${ZSH_VERSION+set}" ; then
17010 setopt NO_GLOB_SUBST
17013 cfgfile="${ofile}T"
17014 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17015 $RM "$cfgfile"
17017 cat <<_LT_EOF >> "$cfgfile"
17018 #! $SHELL
17020 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17021 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17025 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17026 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17027 # Written by Gordon Matzigkeit, 1996
17029 # This file is part of GNU Libtool.
17031 # GNU Libtool is free software; you can redistribute it and/or
17032 # modify it under the terms of the GNU General Public License as
17033 # published by the Free Software Foundation; either version 2 of
17034 # the License, or (at your option) any later version.
17036 # As a special exception to the GNU General Public License,
17037 # if you distribute this file as part of a program or library that
17038 # is built using GNU Libtool, you may include this file under the
17039 # same distribution terms that you use for the rest of that program.
17041 # GNU Libtool is distributed in the hope that it will be useful,
17042 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17043 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17044 # GNU General Public License for more details.
17046 # You should have received a copy of the GNU General Public License
17047 # along with GNU Libtool; see the file COPYING. If not, a copy
17048 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17049 # obtained by writing to the Free Software Foundation, Inc.,
17050 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17053 # The names of the tagged configurations supported by this script.
17054 available_tags="CXX "
17056 # ### BEGIN LIBTOOL CONFIG
17058 # Which release of libtool.m4 was used?
17059 macro_version=$macro_version
17060 macro_revision=$macro_revision
17062 # Whether or not to build shared libraries.
17063 build_libtool_libs=$enable_shared
17065 # Whether or not to build static libraries.
17066 build_old_libs=$enable_static
17068 # What type of objects to build.
17069 pic_mode=$pic_mode
17071 # Whether or not to optimize for fast installation.
17072 fast_install=$enable_fast_install
17074 # Shell to use when invoking shell scripts.
17075 SHELL=$lt_SHELL
17077 # An echo program that protects backslashes.
17078 ECHO=$lt_ECHO
17080 # The host system.
17081 host_alias=$host_alias
17082 host=$host
17083 host_os=$host_os
17085 # The build system.
17086 build_alias=$build_alias
17087 build=$build
17088 build_os=$build_os
17090 # A sed program that does not truncate output.
17091 SED=$lt_SED
17093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17094 Xsed="\$SED -e 1s/^X//"
17096 # A grep program that handles long lines.
17097 GREP=$lt_GREP
17099 # An ERE matcher.
17100 EGREP=$lt_EGREP
17102 # A literal string matcher.
17103 FGREP=$lt_FGREP
17105 # A BSD- or MS-compatible name lister.
17106 NM=$lt_NM
17108 # Whether we need soft or hard links.
17109 LN_S=$lt_LN_S
17111 # What is the maximum length of a command?
17112 max_cmd_len=$max_cmd_len
17114 # Object file suffix (normally "o").
17115 objext=$ac_objext
17117 # Executable file suffix (normally "").
17118 exeext=$exeext
17120 # whether the shell understands "unset".
17121 lt_unset=$lt_unset
17123 # turn spaces into newlines.
17124 SP2NL=$lt_lt_SP2NL
17126 # turn newlines into spaces.
17127 NL2SP=$lt_lt_NL2SP
17129 # An object symbol dumper.
17130 OBJDUMP=$lt_OBJDUMP
17132 # Method to check whether dependent libraries are shared objects.
17133 deplibs_check_method=$lt_deplibs_check_method
17135 # Command to use when deplibs_check_method == "file_magic".
17136 file_magic_cmd=$lt_file_magic_cmd
17138 # The archiver.
17139 AR=$lt_AR
17140 AR_FLAGS=$lt_AR_FLAGS
17142 # A symbol stripping program.
17143 STRIP=$lt_STRIP
17145 # Commands used to install an old-style archive.
17146 RANLIB=$lt_RANLIB
17147 old_postinstall_cmds=$lt_old_postinstall_cmds
17148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17150 # Whether to use a lock for old archive extraction.
17151 lock_old_archive_extraction=$lock_old_archive_extraction
17153 # A C compiler.
17154 LTCC=$lt_CC
17156 # LTCC compiler flags.
17157 LTCFLAGS=$lt_CFLAGS
17159 # Take the output of nm and produce a listing of raw symbols and C names.
17160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17162 # Transform the output of nm in a proper C declaration.
17163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17165 # Transform the output of nm in a C name address pair.
17166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17168 # Transform the output of nm in a C name address pair when lib prefix is needed.
17169 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17171 # The name of the directory that contains temporary libtool files.
17172 objdir=$objdir
17174 # Used to examine libraries when file_magic_cmd begins with "file".
17175 MAGIC_CMD=$MAGIC_CMD
17177 # Must we lock files when doing compilation?
17178 need_locks=$lt_need_locks
17180 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17181 DSYMUTIL=$lt_DSYMUTIL
17183 # Tool to change global to local symbols on Mac OS X.
17184 NMEDIT=$lt_NMEDIT
17186 # Tool to manipulate fat objects and archives on Mac OS X.
17187 LIPO=$lt_LIPO
17189 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17190 OTOOL=$lt_OTOOL
17192 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17193 OTOOL64=$lt_OTOOL64
17195 # Old archive suffix (normally "a").
17196 libext=$libext
17198 # Shared library suffix (normally ".so").
17199 shrext_cmds=$lt_shrext_cmds
17201 # The commands to extract the exported symbol list from a shared archive.
17202 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17204 # Variables whose values should be saved in libtool wrapper scripts and
17205 # restored at link time.
17206 variables_saved_for_relink=$lt_variables_saved_for_relink
17208 # Do we need the "lib" prefix for modules?
17209 need_lib_prefix=$need_lib_prefix
17211 # Do we need a version for libraries?
17212 need_version=$need_version
17214 # Library versioning type.
17215 version_type=$version_type
17217 # Shared library runtime path variable.
17218 runpath_var=$runpath_var
17220 # Shared library path variable.
17221 shlibpath_var=$shlibpath_var
17223 # Is shlibpath searched before the hard-coded library search path?
17224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17226 # Format of library name prefix.
17227 libname_spec=$lt_libname_spec
17229 # List of archive names. First name is the real one, the rest are links.
17230 # The last name is the one that the linker finds with -lNAME
17231 library_names_spec=$lt_library_names_spec
17233 # The coded name of the library, if different from the real name.
17234 soname_spec=$lt_soname_spec
17236 # Permission mode override for installation of shared libraries.
17237 install_override_mode=$lt_install_override_mode
17239 # Command to use after installation of a shared archive.
17240 postinstall_cmds=$lt_postinstall_cmds
17242 # Command to use after uninstallation of a shared archive.
17243 postuninstall_cmds=$lt_postuninstall_cmds
17245 # Commands used to finish a libtool library installation in a directory.
17246 finish_cmds=$lt_finish_cmds
17248 # As "finish_cmds", except a single script fragment to be evaled but
17249 # not shown.
17250 finish_eval=$lt_finish_eval
17252 # Whether we should hardcode library paths into libraries.
17253 hardcode_into_libs=$hardcode_into_libs
17255 # Compile-time system search path for libraries.
17256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17258 # Run-time system search path for libraries.
17259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17261 # Whether dlopen is supported.
17262 dlopen_support=$enable_dlopen
17264 # Whether dlopen of programs is supported.
17265 dlopen_self=$enable_dlopen_self
17267 # Whether dlopen of statically linked programs is supported.
17268 dlopen_self_static=$enable_dlopen_self_static
17270 # Commands to strip libraries.
17271 old_striplib=$lt_old_striplib
17272 striplib=$lt_striplib
17275 # The linker used to build libraries.
17276 LD=$lt_LD
17278 # How to create reloadable object files.
17279 reload_flag=$lt_reload_flag
17280 reload_cmds=$lt_reload_cmds
17282 # Commands used to build an old-style archive.
17283 old_archive_cmds=$lt_old_archive_cmds
17285 # A language specific compiler.
17286 CC=$lt_compiler
17288 # Is the compiler the GNU compiler?
17289 with_gcc=$GCC
17291 # Compiler flag to turn off builtin functions.
17292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17294 # How to pass a linker flag through the compiler.
17295 wl=$lt_lt_prog_compiler_wl
17297 # Additional compiler flags for building library objects.
17298 pic_flag=$lt_lt_prog_compiler_pic
17300 # Compiler flag to prevent dynamic linking.
17301 link_static_flag=$lt_lt_prog_compiler_static
17303 # Does compiler simultaneously support -c and -o options?
17304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17306 # Whether or not to add -lc for building shared libraries.
17307 build_libtool_need_lc=$archive_cmds_need_lc
17309 # Whether or not to disallow shared libs when runtime libs are static.
17310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17312 # Compiler flag to allow reflexive dlopens.
17313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17315 # Compiler flag to generate shared objects directly from archives.
17316 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17318 # Whether the compiler copes with passing no objects directly.
17319 compiler_needs_object=$lt_compiler_needs_object
17321 # Create an old-style archive from a shared archive.
17322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17324 # Create a temporary old-style archive to link instead of a shared archive.
17325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17327 # Commands used to build a shared archive.
17328 archive_cmds=$lt_archive_cmds
17329 archive_expsym_cmds=$lt_archive_expsym_cmds
17331 # Commands used to build a loadable module if different from building
17332 # a shared archive.
17333 module_cmds=$lt_module_cmds
17334 module_expsym_cmds=$lt_module_expsym_cmds
17336 # Whether we are building with GNU ld or not.
17337 with_gnu_ld=$lt_with_gnu_ld
17339 # Flag that allows shared libraries with undefined symbols to be built.
17340 allow_undefined_flag=$lt_allow_undefined_flag
17342 # Flag that enforces no undefined symbols.
17343 no_undefined_flag=$lt_no_undefined_flag
17345 # Flag to hardcode \$libdir into a binary during linking.
17346 # This must work even if \$libdir does not exist
17347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17349 # If ld is used when linking, flag to hardcode \$libdir into a binary
17350 # during linking. This must work even if \$libdir does not exist.
17351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17353 # Whether we need a single "-rpath" flag with a separated argument.
17354 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17357 # DIR into the resulting binary.
17358 hardcode_direct=$hardcode_direct
17360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17361 # DIR into the resulting binary and the resulting library dependency is
17362 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17363 # library is relocated.
17364 hardcode_direct_absolute=$hardcode_direct_absolute
17366 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17367 # into the resulting binary.
17368 hardcode_minus_L=$hardcode_minus_L
17370 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17371 # into the resulting binary.
17372 hardcode_shlibpath_var=$hardcode_shlibpath_var
17374 # Set to "yes" if building a shared library automatically hardcodes DIR
17375 # into the library and all subsequent libraries and executables linked
17376 # against it.
17377 hardcode_automatic=$hardcode_automatic
17379 # Set to yes if linker adds runtime paths of dependent libraries
17380 # to runtime path list.
17381 inherit_rpath=$inherit_rpath
17383 # Whether libtool must link a program against all its dependency libraries.
17384 link_all_deplibs=$link_all_deplibs
17386 # Fix the shell variable \$srcfile for the compiler.
17387 fix_srcfile_path=$lt_fix_srcfile_path
17389 # Set to "yes" if exported symbols are required.
17390 always_export_symbols=$always_export_symbols
17392 # The commands to list exported symbols.
17393 export_symbols_cmds=$lt_export_symbols_cmds
17395 # Symbols that should not be listed in the preloaded symbols.
17396 exclude_expsyms=$lt_exclude_expsyms
17398 # Symbols that must always be exported.
17399 include_expsyms=$lt_include_expsyms
17401 # Commands necessary for linking programs (against libraries) with templates.
17402 prelink_cmds=$lt_prelink_cmds
17404 # Specify filename containing input files.
17405 file_list_spec=$lt_file_list_spec
17407 # How to hardcode a shared library path into an executable.
17408 hardcode_action=$hardcode_action
17410 # The directories searched by this compiler when creating a shared library.
17411 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17413 # Dependencies to place before and after the objects being linked to
17414 # create a shared library.
17415 predep_objects=$lt_predep_objects
17416 postdep_objects=$lt_postdep_objects
17417 predeps=$lt_predeps
17418 postdeps=$lt_postdeps
17420 # The library search path used internally by the compiler when linking
17421 # a shared library.
17422 compiler_lib_search_path=$lt_compiler_lib_search_path
17424 # ### END LIBTOOL CONFIG
17426 _LT_EOF
17428 case $host_os in
17429 aix3*)
17430 cat <<\_LT_EOF >> "$cfgfile"
17431 # AIX sometimes has problems with the GCC collect2 program. For some
17432 # reason, if we set the COLLECT_NAMES environment variable, the problems
17433 # vanish in a puff of smoke.
17434 if test "X${COLLECT_NAMES+set}" != Xset; then
17435 COLLECT_NAMES=
17436 export COLLECT_NAMES
17438 _LT_EOF
17440 esac
17443 ltmain="$ac_aux_dir/ltmain.sh"
17446 # We use sed instead of cat because bash on DJGPP gets confused if
17447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17448 # text mode, it properly converts lines to CR/LF. This bash problem
17449 # is reportedly fixed, but why not run on old versions too?
17450 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17451 || (rm -f "$cfgfile"; exit 1)
17453 case $xsi_shell in
17454 yes)
17455 cat << \_LT_EOF >> "$cfgfile"
17457 # func_dirname file append nondir_replacement
17458 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17459 # otherwise set result to NONDIR_REPLACEMENT.
17460 func_dirname ()
17462 case ${1} in
17463 */*) func_dirname_result="${1%/*}${2}" ;;
17464 * ) func_dirname_result="${3}" ;;
17465 esac
17468 # func_basename file
17469 func_basename ()
17471 func_basename_result="${1##*/}"
17474 # func_dirname_and_basename file append nondir_replacement
17475 # perform func_basename and func_dirname in a single function
17476 # call:
17477 # dirname: Compute the dirname of FILE. If nonempty,
17478 # add APPEND to the result, otherwise set result
17479 # to NONDIR_REPLACEMENT.
17480 # value returned in "$func_dirname_result"
17481 # basename: Compute filename of FILE.
17482 # value retuned in "$func_basename_result"
17483 # Implementation must be kept synchronized with func_dirname
17484 # and func_basename. For efficiency, we do not delegate to
17485 # those functions but instead duplicate the functionality here.
17486 func_dirname_and_basename ()
17488 case ${1} in
17489 */*) func_dirname_result="${1%/*}${2}" ;;
17490 * ) func_dirname_result="${3}" ;;
17491 esac
17492 func_basename_result="${1##*/}"
17495 # func_stripname prefix suffix name
17496 # strip PREFIX and SUFFIX off of NAME.
17497 # PREFIX and SUFFIX must not contain globbing or regex special
17498 # characters, hashes, percent signs, but SUFFIX may contain a leading
17499 # dot (in which case that matches only a dot).
17500 func_stripname ()
17502 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17503 # positional parameters, so assign one to ordinary parameter first.
17504 func_stripname_result=${3}
17505 func_stripname_result=${func_stripname_result#"${1}"}
17506 func_stripname_result=${func_stripname_result%"${2}"}
17509 # func_opt_split
17510 func_opt_split ()
17512 func_opt_split_opt=${1%%=*}
17513 func_opt_split_arg=${1#*=}
17516 # func_lo2o object
17517 func_lo2o ()
17519 case ${1} in
17520 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17521 *) func_lo2o_result=${1} ;;
17522 esac
17525 # func_xform libobj-or-source
17526 func_xform ()
17528 func_xform_result=${1%.*}.lo
17531 # func_arith arithmetic-term...
17532 func_arith ()
17534 func_arith_result=$(( $* ))
17537 # func_len string
17538 # STRING may not start with a hyphen.
17539 func_len ()
17541 func_len_result=${#1}
17544 _LT_EOF
17546 *) # Bourne compatible functions.
17547 cat << \_LT_EOF >> "$cfgfile"
17549 # func_dirname file append nondir_replacement
17550 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17551 # otherwise set result to NONDIR_REPLACEMENT.
17552 func_dirname ()
17554 # Extract subdirectory from the argument.
17555 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17556 if test "X$func_dirname_result" = "X${1}"; then
17557 func_dirname_result="${3}"
17558 else
17559 func_dirname_result="$func_dirname_result${2}"
17563 # func_basename file
17564 func_basename ()
17566 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17570 # func_stripname prefix suffix name
17571 # strip PREFIX and SUFFIX off of NAME.
17572 # PREFIX and SUFFIX must not contain globbing or regex special
17573 # characters, hashes, percent signs, but SUFFIX may contain a leading
17574 # dot (in which case that matches only a dot).
17575 # func_strip_suffix prefix name
17576 func_stripname ()
17578 case ${2} in
17579 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17580 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17581 esac
17584 # sed scripts:
17585 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17586 my_sed_long_arg='1s/^-[^=]*=//'
17588 # func_opt_split
17589 func_opt_split ()
17591 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17592 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17595 # func_lo2o object
17596 func_lo2o ()
17598 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17601 # func_xform libobj-or-source
17602 func_xform ()
17604 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17607 # func_arith arithmetic-term...
17608 func_arith ()
17610 func_arith_result=`expr "$@"`
17613 # func_len string
17614 # STRING may not start with a hyphen.
17615 func_len ()
17617 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17620 _LT_EOF
17621 esac
17623 case $lt_shell_append in
17624 yes)
17625 cat << \_LT_EOF >> "$cfgfile"
17627 # func_append var value
17628 # Append VALUE to the end of shell variable VAR.
17629 func_append ()
17631 eval "$1+=\$2"
17633 _LT_EOF
17636 cat << \_LT_EOF >> "$cfgfile"
17638 # func_append var value
17639 # Append VALUE to the end of shell variable VAR.
17640 func_append ()
17642 eval "$1=\$$1\$2"
17645 _LT_EOF
17647 esac
17650 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17651 || (rm -f "$cfgfile"; exit 1)
17653 mv -f "$cfgfile" "$ofile" ||
17654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17655 chmod +x "$ofile"
17658 cat <<_LT_EOF >> "$ofile"
17660 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17662 # The linker used to build libraries.
17663 LD=$lt_LD_CXX
17665 # How to create reloadable object files.
17666 reload_flag=$lt_reload_flag_CXX
17667 reload_cmds=$lt_reload_cmds_CXX
17669 # Commands used to build an old-style archive.
17670 old_archive_cmds=$lt_old_archive_cmds_CXX
17672 # A language specific compiler.
17673 CC=$lt_compiler_CXX
17675 # Is the compiler the GNU compiler?
17676 with_gcc=$GCC_CXX
17678 # Compiler flag to turn off builtin functions.
17679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17681 # How to pass a linker flag through the compiler.
17682 wl=$lt_lt_prog_compiler_wl_CXX
17684 # Additional compiler flags for building library objects.
17685 pic_flag=$lt_lt_prog_compiler_pic_CXX
17687 # Compiler flag to prevent dynamic linking.
17688 link_static_flag=$lt_lt_prog_compiler_static_CXX
17690 # Does compiler simultaneously support -c and -o options?
17691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17693 # Whether or not to add -lc for building shared libraries.
17694 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17696 # Whether or not to disallow shared libs when runtime libs are static.
17697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17699 # Compiler flag to allow reflexive dlopens.
17700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17702 # Compiler flag to generate shared objects directly from archives.
17703 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17705 # Whether the compiler copes with passing no objects directly.
17706 compiler_needs_object=$lt_compiler_needs_object_CXX
17708 # Create an old-style archive from a shared archive.
17709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17711 # Create a temporary old-style archive to link instead of a shared archive.
17712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17714 # Commands used to build a shared archive.
17715 archive_cmds=$lt_archive_cmds_CXX
17716 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17718 # Commands used to build a loadable module if different from building
17719 # a shared archive.
17720 module_cmds=$lt_module_cmds_CXX
17721 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17723 # Whether we are building with GNU ld or not.
17724 with_gnu_ld=$lt_with_gnu_ld_CXX
17726 # Flag that allows shared libraries with undefined symbols to be built.
17727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17729 # Flag that enforces no undefined symbols.
17730 no_undefined_flag=$lt_no_undefined_flag_CXX
17732 # Flag to hardcode \$libdir into a binary during linking.
17733 # This must work even if \$libdir does not exist
17734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17736 # If ld is used when linking, flag to hardcode \$libdir into a binary
17737 # during linking. This must work even if \$libdir does not exist.
17738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17740 # Whether we need a single "-rpath" flag with a separated argument.
17741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17744 # DIR into the resulting binary.
17745 hardcode_direct=$hardcode_direct_CXX
17747 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17748 # DIR into the resulting binary and the resulting library dependency is
17749 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17750 # library is relocated.
17751 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17754 # into the resulting binary.
17755 hardcode_minus_L=$hardcode_minus_L_CXX
17757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17758 # into the resulting binary.
17759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17761 # Set to "yes" if building a shared library automatically hardcodes DIR
17762 # into the library and all subsequent libraries and executables linked
17763 # against it.
17764 hardcode_automatic=$hardcode_automatic_CXX
17766 # Set to yes if linker adds runtime paths of dependent libraries
17767 # to runtime path list.
17768 inherit_rpath=$inherit_rpath_CXX
17770 # Whether libtool must link a program against all its dependency libraries.
17771 link_all_deplibs=$link_all_deplibs_CXX
17773 # Fix the shell variable \$srcfile for the compiler.
17774 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17776 # Set to "yes" if exported symbols are required.
17777 always_export_symbols=$always_export_symbols_CXX
17779 # The commands to list exported symbols.
17780 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17782 # Symbols that should not be listed in the preloaded symbols.
17783 exclude_expsyms=$lt_exclude_expsyms_CXX
17785 # Symbols that must always be exported.
17786 include_expsyms=$lt_include_expsyms_CXX
17788 # Commands necessary for linking programs (against libraries) with templates.
17789 prelink_cmds=$lt_prelink_cmds_CXX
17791 # Specify filename containing input files.
17792 file_list_spec=$lt_file_list_spec_CXX
17794 # How to hardcode a shared library path into an executable.
17795 hardcode_action=$hardcode_action_CXX
17797 # The directories searched by this compiler when creating a shared library.
17798 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17800 # Dependencies to place before and after the objects being linked to
17801 # create a shared library.
17802 predep_objects=$lt_predep_objects_CXX
17803 postdep_objects=$lt_postdep_objects_CXX
17804 predeps=$lt_predeps_CXX
17805 postdeps=$lt_postdeps_CXX
17807 # The library search path used internally by the compiler when linking
17808 # a shared library.
17809 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17811 # ### END LIBTOOL TAG CONFIG: CXX
17812 _LT_EOF
17816 esac
17817 done # for ac_tag
17820 as_fn_exit 0
17821 _ACEOF
17822 ac_clean_files=$ac_clean_files_save
17824 test $ac_write_fail = 0 ||
17825 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17828 # configure is writing to config.log, and then calls config.status.
17829 # config.status does its own redirection, appending to config.log.
17830 # Unfortunately, on DOS this fails, as config.log is still kept open
17831 # by configure, so config.status won't be able to write to it; its
17832 # output is simply discarded. So we exec the FD to /dev/null,
17833 # effectively closing config.log, so it can be properly (re)opened and
17834 # appended to by config.status. When coming back to configure, we
17835 # need to make the FD available again.
17836 if test "$no_create" != yes; then
17837 ac_cs_success=:
17838 ac_config_status_args=
17839 test "$silent" = yes &&
17840 ac_config_status_args="$ac_config_status_args --quiet"
17841 exec 5>/dev/null
17842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17843 exec 5>>config.log
17844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17845 # would make configure fail if this is the last instruction.
17846 $ac_cs_success || as_fn_exit $?
17848 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17850 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}