2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
[official-gcc.git] / libcilkrts / configure
blob3cc8c999733c3df495a68c355539a8db60ec10e8
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 get_gcc_base_ver
608 link_cilkrts
609 XLDFLAGS
610 XCFLAGS
611 lt_cv_dlopen_libs
612 toolexeclibdir
613 toolexecdir
614 CXXCPP
615 OTOOL64
616 OTOOL
617 LIPO
618 NMEDIT
619 DSYMUTIL
620 RANLIB
622 OBJDUMP
623 LN_S
625 ac_ct_DUMPBIN
626 DUMPBIN
628 FGREP
630 LIBTOOL
631 MAC_LINKER_SCRIPT_FALSE
632 MAC_LINKER_SCRIPT_TRUE
633 LINUX_LINKER_SCRIPT_FALSE
634 LINUX_LINKER_SCRIPT_TRUE
635 config_dir
636 ALLOCA
637 am__fastdepCXX_FALSE
638 am__fastdepCXX_TRUE
639 CXXDEPMODE
640 ac_ct_CXX
641 CXXFLAGS
643 EGREP
644 GREP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
663 multi_basedir
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_maintainer_mode
744 enable_multilib
745 enable_dependency_tracking
746 enable_version_specific_runtime_libs
747 enable_shared
748 enable_static
749 with_pic
750 enable_fast_install
751 with_gnu_ld
752 enable_libtool_lock
753 with_gcc_major_version_only
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
765 CXXFLAGS
767 CXXCPP'
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
818 ac_prev=
819 ac_dashdash=
820 for ac_option
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\$ac_option
825 ac_prev=
826 continue
829 case $ac_option in
830 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 *) ac_optarg=yes ;;
832 esac
834 # Accept the important Cygnus configure options, so we can diagnose typos.
836 case $ac_dashdash$ac_option in
838 ac_dashdash=yes ;;
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
841 ac_prev=bindir ;;
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 bindir=$ac_optarg ;;
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
857 --config-cache | -C)
858 cache_file=config.cache ;;
860 -datadir | --datadir | --datadi | --datad)
861 ac_prev=datadir ;;
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=no ;;
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1102 -with-* | --with-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=no ;;
1134 --x)
1135 # Obsolete; use --with-x.
1136 with_x=yes ;;
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1152 -*) as_fn_error "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information."
1156 *=*)
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
1161 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1162 esac
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 esac
1175 done
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 as_fn_error "missing argument to $ac_option"
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1184 no) ;;
1185 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 esac
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1198 case $ac_val in
1199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1202 esac
1203 # Be sure to have absolute directory names.
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
1208 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1209 done
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used." >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error "pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1261 /^X\(\/\/\)$/{
1262 s//\1/
1265 /^X\(\/\).*/{
1266 s//\1/
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1274 else
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root
1358 [DATAROOTDIR/doc/cilk-runtime-library]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1365 cat <<\_ACEOF
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1376 _ACEOF
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
1382 esac
1383 cat <<\_ACEOF
1385 Optional Features:
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
1391 --enable-multilib build many library versions (default)
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-version-specific-runtime-libs
1395 Specify that runtime libraries should be installed
1396 in a compi ler-specific directory
1397 --enable-shared[=PKGS] build shared libraries [default=yes]
1398 --enable-static[=PKGS] build static libraries [default=yes]
1399 --enable-fast-install[=PKGS]
1400 optimize for fast installation [default=yes]
1401 --disable-libtool-lock avoid locking (might break parallel builds)
1403 Optional Packages:
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-pic try to use only PIC/non-PIC objects [default=use
1407 both]
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1409 --with-gcc-major-version-only
1410 use only GCC major number in filesystem paths
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CPP C preprocessor
1421 CXX C++ compiler command
1422 CXXFLAGS C++ compiler flags
1423 CXXCPP C++ preprocessor
1425 Use these variables to override the choices made by `configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1428 Report bugs to <cilk@intel.com>.
1429 _ACEOF
1430 ac_status=$?
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 continue
1439 ac_builddir=.
1441 case "$ac_dir" in
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450 esac ;;
1451 esac
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1457 case $srcdir in
1458 .) # We are building in place.
1459 ac_srcdir=.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1466 *) # Relative name.
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 esac
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1476 echo &&
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1479 echo &&
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1481 else
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 fi || ac_status=$?
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1485 done
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1490 cat <<\_ACEOF
1491 Cilk Runtime Library configure 2.0
1492 generated by GNU Autoconf 2.64
1494 Copyright (C) 2009 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1497 _ACEOF
1498 exit
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.$ac_objext; then :
1531 ac_retval=0
1532 else
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1536 ac_retval=1
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_c_try_cpp LINENO
1544 # ----------------------
1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_cpp ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 if { { ac_try="$ac_cpp conftest.$ac_ext"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } >/dev/null && {
1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 }; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1573 ac_retval=1
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1578 } # ac_fn_c_try_cpp
1580 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1581 # -------------------------------------------------------
1582 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1583 # the include files in INCLUDES and setting the cache variable VAR
1584 # accordingly.
1585 ac_fn_c_check_header_mongrel ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590 $as_echo_n "checking for $2... " >&6; }
1591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1592 $as_echo_n "(cached) " >&6
1594 eval ac_res=\$$3
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 else
1598 # Is the header compilable?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1600 $as_echo_n "checking $2 usability... " >&6; }
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_compile "$LINENO"; then :
1607 ac_header_compiler=yes
1608 else
1609 ac_header_compiler=no
1611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1613 $as_echo "$ac_header_compiler" >&6; }
1615 # Is the header present?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1617 $as_echo_n "checking $2 presence... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_cpp "$LINENO"; then :
1623 ac_header_preproc=yes
1624 else
1625 ac_header_preproc=no
1627 rm -f conftest.err conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1629 $as_echo "$ac_header_preproc" >&6; }
1631 # So? What about this header?
1632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1633 yes:no: )
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1635 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639 no:yes:* )
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1641 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1643 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1645 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1647 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1650 ( cat <<\_ASBOX
1651 ## ----------------------------- ##
1652 ## Report this to cilk@intel.com ##
1653 ## ----------------------------- ##
1654 _ASBOX
1655 ) | sed "s/^/$as_me: WARNING: /" >&2
1657 esac
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 $as_echo_n "(cached) " >&6
1662 else
1663 eval "$3=\$ac_header_compiler"
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 } # ac_fn_c_check_header_mongrel
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=$ac_status
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
1713 } # ac_fn_c_try_run
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 } # ac_fn_c_check_header_compile
1746 # ac_fn_cxx_try_compile LINENO
1747 # ----------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_cxx_try_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_cxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 return $ac_retval
1782 } # ac_fn_cxx_try_compile
1784 # ac_fn_c_try_link LINENO
1785 # -----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_link ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest$ac_exeext
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 $as_test_x conftest$ac_exeext
1812 }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 return $ac_retval
1828 } # ac_fn_c_try_link
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1852 #ifdef __STDC__
1853 # include <limits.h>
1854 #else
1855 # include <assert.h>
1856 #endif
1858 #undef $2
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1875 main ()
1877 return $2 ();
1879 return 0;
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884 else
1885 eval "$3=no"
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_func
1897 # ac_fn_cxx_try_cpp LINENO
1898 # ------------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_cpp ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_cpp conftest.$ac_ext"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } >/dev/null && {
1919 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1920 test ! -s conftest.err
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 return $ac_retval
1932 } # ac_fn_cxx_try_cpp
1934 # ac_fn_cxx_try_link LINENO
1935 # -------------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_cxx_try_link ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 $as_test_x conftest$ac_exeext
1962 }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=1
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 return $ac_retval
1978 } # ac_fn_cxx_try_link
1979 cat >config.log <<_ACEOF
1980 This file contains any messages produced by compilers while
1981 running configure, to aid debugging if configure makes a mistake.
1983 It was created by Cilk Runtime Library $as_me 2.0, which was
1984 generated by GNU Autoconf 2.64. Invocation command line was
1986 $ $0 $@
1988 _ACEOF
1989 exec 5>>config.log
1991 cat <<_ASUNAME
1992 ## --------- ##
1993 ## Platform. ##
1994 ## --------- ##
1996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2008 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013 _ASUNAME
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 $as_echo "PATH: $as_dir"
2021 done
2022 IFS=$as_save_IFS
2024 } >&5
2026 cat >&5 <<_ACEOF
2029 ## ----------- ##
2030 ## Core tests. ##
2031 ## ----------- ##
2033 _ACEOF
2036 # Keep a trace of the command line.
2037 # Strip out --no-create and --no-recursion so they do not pile up.
2038 # Strip out --silent because we don't want to record it for future runs.
2039 # Also quote any args containing shell meta-characters.
2040 # Make two passes to allow for proper duplicate-argument suppression.
2041 ac_configure_args=
2042 ac_configure_args0=
2043 ac_configure_args1=
2044 ac_must_keep_next=false
2045 for ac_pass in 1 2
2047 for ac_arg
2049 case $ac_arg in
2050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2052 | -silent | --silent | --silen | --sile | --sil)
2053 continue ;;
2054 *\'*)
2055 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 esac
2057 case $ac_pass in
2058 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2060 as_fn_append ac_configure_args1 " '$ac_arg'"
2061 if test $ac_must_keep_next = true; then
2062 ac_must_keep_next=false # Got value, back to normal.
2063 else
2064 case $ac_arg in
2065 *=* | --config-cache | -C | -disable-* | --disable-* \
2066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2068 | -with-* | --with-* | -without-* | --without-* | --x)
2069 case "$ac_configure_args0 " in
2070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071 esac
2073 -* ) ac_must_keep_next=true ;;
2074 esac
2076 as_fn_append ac_configure_args " '$ac_arg'"
2078 esac
2079 done
2080 done
2081 { ac_configure_args0=; unset ac_configure_args0;}
2082 { ac_configure_args1=; unset ac_configure_args1;}
2084 # When interrupted or exit'd, cleanup temporary files, and complete
2085 # config.log. We remove comments because anyway the quotes in there
2086 # would cause problems or look ugly.
2087 # WARNING: Use '\'' to represent an apostrophe within the trap.
2088 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2089 trap 'exit_status=$?
2090 # Save into config.log some information that might help in debugging.
2092 echo
2094 cat <<\_ASBOX
2095 ## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##
2098 _ASBOX
2099 echo
2100 # The following way of writing the cache mishandles newlines in values,
2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in #(
2105 *${as_nl}*)
2106 case $ac_var in #(
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 esac
2110 case $ac_var in #(
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2114 esac ;;
2115 esac
2116 done
2117 (set) 2>&1 |
2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2120 sed -n \
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 ;; #(
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2127 esac |
2128 sort
2130 echo
2132 cat <<\_ASBOX
2133 ## ----------------- ##
2134 ## Output variables. ##
2135 ## ----------------- ##
2136 _ASBOX
2137 echo
2138 for ac_var in $ac_subst_vars
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2148 if test -n "$ac_subst_files"; then
2149 cat <<\_ASBOX
2150 ## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##
2153 _ASBOX
2154 echo
2155 for ac_var in $ac_subst_files
2157 eval ac_val=\$$ac_var
2158 case $ac_val in
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 esac
2161 $as_echo "$ac_var='\''$ac_val'\''"
2162 done | sort
2163 echo
2166 if test -s confdefs.h; then
2167 cat <<\_ASBOX
2168 ## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##
2171 _ASBOX
2172 echo
2173 cat confdefs.h
2174 echo
2176 test "$ac_signal" != 0 &&
2177 $as_echo "$as_me: caught signal $ac_signal"
2178 $as_echo "$as_me: exit $exit_status"
2179 } >&5
2180 rm -f core *.core core.conftest.* &&
2181 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182 exit $exit_status
2184 for ac_signal in 1 2 13 15; do
2185 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186 done
2187 ac_signal=0
2189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2190 rm -f -r conftest* confdefs.h
2192 $as_echo "/* confdefs.h */" > confdefs.h
2194 # Predefined preprocessor variables.
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_NAME "$PACKAGE_NAME"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202 _ACEOF
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2206 _ACEOF
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_STRING "$PACKAGE_STRING"
2210 _ACEOF
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214 _ACEOF
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_URL "$PACKAGE_URL"
2218 _ACEOF
2221 # Let the site file select an alternate cache file if it wants to.
2222 # Prefer an explicitly selected file to automatically selected ones.
2223 ac_site_file1=NONE
2224 ac_site_file2=NONE
2225 if test -n "$CONFIG_SITE"; then
2226 ac_site_file1=$CONFIG_SITE
2227 elif test "x$prefix" != xNONE; then
2228 ac_site_file1=$prefix/share/config.site
2229 ac_site_file2=$prefix/etc/config.site
2230 else
2231 ac_site_file1=$ac_default_prefix/share/config.site
2232 ac_site_file2=$ac_default_prefix/etc/config.site
2234 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 test "x$ac_site_file" = xNONE && continue
2237 if test -r "$ac_site_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2241 . "$ac_site_file"
2243 done
2245 if test -r "$cache_file"; then
2246 # Some versions of bash will fail to source /dev/null (special
2247 # files actually), so we avoid doing that.
2248 if test -f "$cache_file"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2250 $as_echo "$as_me: loading cache $cache_file" >&6;}
2251 case $cache_file in
2252 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2253 *) . "./$cache_file";;
2254 esac
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2258 $as_echo "$as_me: creating cache $cache_file" >&6;}
2259 >$cache_file
2262 # Check that the precious variables saved in the cache have kept the same
2263 # value.
2264 ac_cache_corrupted=false
2265 for ac_var in $ac_precious_vars; do
2266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2267 eval ac_new_set=\$ac_env_${ac_var}_set
2268 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2269 eval ac_new_val=\$ac_env_${ac_var}_value
2270 case $ac_old_set,$ac_new_set in
2271 set,)
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2273 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2275 ,set)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2279 ,);;
2281 if test "x$ac_old_val" != "x$ac_new_val"; then
2282 # differences in whitespace do not lead to failure.
2283 ac_old_val_w=`echo x $ac_old_val`
2284 ac_new_val_w=`echo x $ac_new_val`
2285 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2287 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2288 ac_cache_corrupted=:
2289 else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2291 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2292 eval $ac_var=\$ac_old_val
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2295 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2297 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2298 fi;;
2299 esac
2300 # Pass precious variables to config.status.
2301 if test "$ac_new_set" = set; then
2302 case $ac_new_val in
2303 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2304 *) ac_arg=$ac_var=$ac_new_val ;;
2305 esac
2306 case " $ac_configure_args " in
2307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2308 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2309 esac
2311 done
2312 if $ac_cache_corrupted; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2316 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2317 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2319 ## -------------------- ##
2320 ## Main body of script. ##
2321 ## -------------------- ##
2323 ac_ext=c
2324 ac_cpp='$CPP $CPPFLAGS'
2325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 # Needed to define ${target}. Needs to be very early to avoid annoying
2336 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2337 ac_aux_dir=
2338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2339 for ac_t in install-sh install.sh shtool; do
2340 if test -f "$ac_dir/$ac_t"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/$ac_t -c"
2343 break 2
2345 done
2346 done
2347 if test -z "$ac_aux_dir"; then
2348 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2362 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if test "${ac_cv_build+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 ac_build_alias=$build_alias
2370 test "x$ac_build_alias" = x &&
2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x &&
2373 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2381 *-*-*) ;;
2382 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2383 esac
2384 build=$ac_cv_build
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_build
2387 shift
2388 build_cpu=$1
2389 build_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 build_os=$*
2394 IFS=$ac_save_IFS
2395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2399 $as_echo_n "checking host system type... " >&6; }
2400 if test "${ac_cv_host+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 if test "x$host_alias" = x; then
2404 ac_cv_host=$ac_cv_build
2405 else
2406 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2407 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2412 $as_echo "$ac_cv_host" >&6; }
2413 case $ac_cv_host in
2414 *-*-*) ;;
2415 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2416 esac
2417 host=$ac_cv_host
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_host
2420 shift
2421 host_cpu=$1
2422 host_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 host_os=$*
2427 IFS=$ac_save_IFS
2428 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2432 $as_echo_n "checking target system type... " >&6; }
2433 if test "${ac_cv_target+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test "x$target_alias" = x; then
2437 ac_cv_target=$ac_cv_host
2438 else
2439 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2445 $as_echo "$ac_cv_target" >&6; }
2446 case $ac_cv_target in
2447 *-*-*) ;;
2448 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2449 esac
2450 target=$ac_cv_target
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_target
2453 shift
2454 target_cpu=$1
2455 target_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 target_os=$*
2460 IFS=$ac_save_IFS
2461 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2464 # The aliases save the names the user supplied, while $host etc.
2465 # will get canonicalized.
2466 test -n "$target_alias" &&
2467 test "$program_prefix$program_suffix$program_transform_name" = \
2468 NONENONEs,x,x, &&
2469 program_prefix=${target_alias}-
2471 target_alias=${target_alias-$host_alias}
2474 am__api_version='1.11'
2476 # Find a good install program. We prefer a C program (faster),
2477 # so one script is as good as another. But avoid the broken or
2478 # incompatible versions:
2479 # SysV /etc/install, /usr/sbin/install
2480 # SunOS /usr/etc/install
2481 # IRIX /sbin/install
2482 # AIX /bin/install
2483 # AmigaOS /C/install, which installs bootblocks on floppy discs
2484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2487 # OS/2's system install, which has a completely different semantic
2488 # ./install, which can be erroneously created by make from ./install.sh.
2489 # Reject install programs that cannot install multiple files.
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2491 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2492 if test -z "$INSTALL"; then
2493 if test "${ac_cv_path_install+set}" = set; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 # Account for people who put trailing slashes in PATH elements.
2502 case $as_dir/ in #((
2503 ./ | .// | /[cC]/* | \
2504 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2505 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2506 /usr/ucb/* ) ;;
2508 # OSF1 and SCO ODT 3.0 have their own names for install.
2509 # Don't use installbsd from OSF since it installs stuff as root
2510 # by default.
2511 for ac_prog in ginstall scoinst install; do
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2514 if test $ac_prog = install &&
2515 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # AIX install. It has an incompatible calling convention.
2518 elif test $ac_prog = install &&
2519 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # program-specific install script used by HP pwplus--don't use.
2522 else
2523 rm -rf conftest.one conftest.two conftest.dir
2524 echo one > conftest.one
2525 echo two > conftest.two
2526 mkdir conftest.dir
2527 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2528 test -s conftest.one && test -s conftest.two &&
2529 test -s conftest.dir/conftest.one &&
2530 test -s conftest.dir/conftest.two
2531 then
2532 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2533 break 3
2537 done
2538 done
2540 esac
2542 done
2543 IFS=$as_save_IFS
2545 rm -rf conftest.one conftest.two conftest.dir
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2550 else
2551 # As a last resort, use the slow shell script. Don't cache a
2552 # value for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the value is a relative name.
2555 INSTALL=$ac_install_sh
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2559 $as_echo "$INSTALL" >&6; }
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2570 $as_echo_n "checking whether build environment is sane... " >&6; }
2571 # Just in case
2572 sleep 1
2573 echo timestamp > conftest.file
2574 # Reject unsafe characters in $srcdir or the absolute working directory
2575 # name. Accept space and tab only in the latter.
2576 am_lf='
2578 case `pwd` in
2579 *[\\\"\#\$\&\'\`$am_lf]*)
2580 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2581 esac
2582 case $srcdir in
2583 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2584 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2585 esac
2587 # Do `set' in a subshell so we don't clobber the current shell's
2588 # arguments. Must try -L first in case configure is actually a
2589 # symlink; some systems play weird games with the mod time of symlinks
2590 # (eg FreeBSD returns the mod time of the symlink's containing
2591 # directory).
2592 if (
2593 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2594 if test "$*" = "X"; then
2595 # -L didn't work.
2596 set X `ls -t "$srcdir/configure" conftest.file`
2598 rm -f conftest.file
2599 if test "$*" != "X $srcdir/configure conftest.file" \
2600 && test "$*" != "X conftest.file $srcdir/configure"; then
2602 # If neither matched, then we have a broken ls. This can happen
2603 # if, for instance, CONFIG_SHELL is bash and it inherits a
2604 # broken ls alias from the environment. This has actually
2605 # happened. Such a system could not be considered "sane".
2606 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2607 alias in your environment" "$LINENO" 5
2610 test "$2" = conftest.file
2612 then
2613 # Ok.
2615 else
2616 as_fn_error "newly created file is older than distributed files!
2617 Check your system clock" "$LINENO" 5
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620 $as_echo "yes" >&6; }
2621 test "$program_prefix" != NONE &&
2622 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2623 # Use a double $ so make ignores it.
2624 test "$program_suffix" != NONE &&
2625 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2626 # Double any \ or $.
2627 # By default was `s,x,x', remove it if useless.
2628 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2629 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2631 # expand $ac_aux_dir to an absolute path
2632 am_aux_dir=`cd $ac_aux_dir && pwd`
2634 if test x"${MISSING+set}" != xset; then
2635 case $am_aux_dir in
2636 *\ * | *\ *)
2637 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2639 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2640 esac
2642 # Use eval to expand $SHELL
2643 if eval "$MISSING --run true"; then
2644 am_missing_run="$MISSING --run "
2645 else
2646 am_missing_run=
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2648 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2651 if test x"${install_sh}" != xset; then
2652 case $am_aux_dir in
2653 *\ * | *\ *)
2654 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2656 install_sh="\${SHELL} $am_aux_dir/install-sh"
2657 esac
2660 # Installed binaries are usually stripped using `strip' when the user
2661 # run `make install-strip'. However `strip' might not be the right
2662 # tool to use in cross-compilation environments, therefore Automake
2663 # will honor the `STRIP' environment variable to overrule this program.
2664 if test "$cross_compiling" != no; then
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2667 set dummy ${ac_tool_prefix}strip; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if test "${ac_cv_prog_STRIP+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test -n "$STRIP"; then
2674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2687 done
2688 done
2689 IFS=$as_save_IFS
2693 STRIP=$ac_cv_prog_STRIP
2694 if test -n "$STRIP"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2696 $as_echo "$STRIP" >&6; }
2697 else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2704 if test -z "$ac_cv_prog_STRIP"; then
2705 ac_ct_STRIP=$STRIP
2706 # Extract the first word of "strip", so it can be a program name with args.
2707 set dummy strip; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$ac_ct_STRIP"; then
2714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_ac_ct_STRIP="strip"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2727 done
2728 done
2729 IFS=$as_save_IFS
2733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2734 if test -n "$ac_ct_STRIP"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2736 $as_echo "$ac_ct_STRIP" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2742 if test "x$ac_ct_STRIP" = x; then
2743 STRIP=":"
2744 else
2745 case $cross_compiling:$ac_tool_warned in
2746 yes:)
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749 ac_tool_warned=yes ;;
2750 esac
2751 STRIP=$ac_ct_STRIP
2753 else
2754 STRIP="$ac_cv_prog_STRIP"
2758 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2761 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2762 if test -z "$MKDIR_P"; then
2763 if test "${ac_cv_path_mkdir+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_prog in mkdir gmkdir; do
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2774 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2775 'mkdir (GNU coreutils) '* | \
2776 'mkdir (coreutils) '* | \
2777 'mkdir (fileutils) '4.1*)
2778 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2779 break 3;;
2780 esac
2781 done
2782 done
2783 done
2784 IFS=$as_save_IFS
2788 if test "${ac_cv_path_mkdir+set}" = set; then
2789 MKDIR_P="$ac_cv_path_mkdir -p"
2790 else
2791 # As a last resort, use the slow shell script. Don't cache a
2792 # value for MKDIR_P within a source directory, because that will
2793 # break other packages using the cache if that directory is
2794 # removed, or if the value is a relative name.
2795 test -d ./--version && rmdir ./--version
2796 MKDIR_P="$ac_install_sh -d"
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2800 $as_echo "$MKDIR_P" >&6; }
2802 mkdir_p="$MKDIR_P"
2803 case $mkdir_p in
2804 [\\/$]* | ?:[\\/]*) ;;
2805 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2806 esac
2808 for ac_prog in gawk mawk nawk awk
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if test "${ac_cv_prog_AWK+set}" = set; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$AWK"; then
2818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_AWK="$ac_prog"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2831 done
2832 done
2833 IFS=$as_save_IFS
2837 AWK=$ac_cv_prog_AWK
2838 if test -n "$AWK"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2840 $as_echo "$AWK" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2847 test -n "$AWK" && break
2848 done
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2851 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2852 set x ${MAKE-make}
2853 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2854 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 cat >conftest.make <<\_ACEOF
2858 SHELL = /bin/sh
2859 all:
2860 @echo '@@@%%%=$(MAKE)=@@@%%%'
2861 _ACEOF
2862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2863 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2864 *@@@%%%=?*=@@@%%%*)
2865 eval ac_cv_prog_make_${ac_make}_set=yes;;
2867 eval ac_cv_prog_make_${ac_make}_set=no;;
2868 esac
2869 rm -f conftest.make
2871 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873 $as_echo "yes" >&6; }
2874 SET_MAKE=
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 SET_MAKE="MAKE=${MAKE-make}"
2881 rm -rf .tst 2>/dev/null
2882 mkdir .tst 2>/dev/null
2883 if test -d .tst; then
2884 am__leading_dot=.
2885 else
2886 am__leading_dot=_
2888 rmdir .tst 2>/dev/null
2890 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2891 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2892 # is not polluted with repeated "-I."
2893 am__isrc=' -I$(srcdir)'
2894 # test to see if srcdir already configured
2895 if test -f $srcdir/config.status; then
2896 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2900 # test whether we have cygpath
2901 if test -z "$CYGPATH_W"; then
2902 if (cygpath --version) >/dev/null 2>/dev/null; then
2903 CYGPATH_W='cygpath -w'
2904 else
2905 CYGPATH_W=echo
2910 # Define the identity of the package.
2911 PACKAGE='cilk-runtime-library'
2912 VERSION='2.0'
2915 cat >>confdefs.h <<_ACEOF
2916 #define PACKAGE "$PACKAGE"
2917 _ACEOF
2920 cat >>confdefs.h <<_ACEOF
2921 #define VERSION "$VERSION"
2922 _ACEOF
2924 # Some tools Automake needs.
2926 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2929 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2932 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2935 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2938 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2940 # We need awk for the "check" target. The system "awk" is bad on
2941 # some platforms.
2942 # Always define AMTAR for backward compatibility. Yes, it's still used
2943 # in the wild :-( We should find a proper way to deprecate it ...
2944 AMTAR='$${TAR-tar}'
2946 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2955 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2956 # Check whether --enable-maintainer-mode was given.
2957 if test "${enable_maintainer_mode+set}" = set; then :
2958 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2959 else
2960 USE_MAINTAINER_MODE=no
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2964 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2965 if test $USE_MAINTAINER_MODE = yes; then
2966 MAINTAINER_MODE_TRUE=
2967 MAINTAINER_MODE_FALSE='#'
2968 else
2969 MAINTAINER_MODE_TRUE='#'
2970 MAINTAINER_MODE_FALSE=
2973 MAINT=$MAINTAINER_MODE_TRUE
2977 # Default to --enable-multilib
2978 # Check whether --enable-multilib was given.
2979 if test "${enable_multilib+set}" = set; then :
2980 enableval=$enable_multilib; case "$enableval" in
2981 yes) multilib=yes ;;
2982 no) multilib=no ;;
2983 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2984 esac
2985 else
2986 multilib=yes
2990 # We may get other options which we leave undocumented:
2991 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2992 # See config-ml.in if you want the gory details.
2994 if test "$srcdir" = "."; then
2995 if test "$with_target_subdir" != "."; then
2996 multi_basedir="$srcdir/$with_multisrctop../.."
2997 else
2998 multi_basedir="$srcdir/$with_multisrctop.."
3000 else
3001 multi_basedir="$srcdir/.."
3005 # Even if the default multilib is not a cross compilation,
3006 # it may be that some of the other multilibs are.
3007 if test $cross_compiling = no && test $multilib = yes \
3008 && test "x${with_multisubdir}" != x ; then
3009 cross_compiling=maybe
3012 ac_config_commands="$ac_config_commands default-1"
3015 # Test for GNU extensions. Will define _GNU_SOURCE if they're available
3016 DEPDIR="${am__leading_dot}deps"
3018 ac_config_commands="$ac_config_commands depfiles"
3021 am_make=${MAKE-make}
3022 cat > confinc << 'END'
3023 am__doit:
3024 @echo this is the am__doit target
3025 .PHONY: am__doit
3027 # If we don't find an include directive, just comment out the code.
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3030 am__include="#"
3031 am__quote=
3032 _am_result=none
3033 # First try GNU make style include.
3034 echo "include confinc" > confmf
3035 # Ignore all kinds of additional output from `make'.
3036 case `$am_make -s -f confmf 2> /dev/null` in #(
3037 *the\ am__doit\ target*)
3038 am__include=include
3039 am__quote=
3040 _am_result=GNU
3042 esac
3043 # Now try BSD make style include.
3044 if test "$am__include" = "#"; then
3045 echo '.include "confinc"' > confmf
3046 case `$am_make -s -f confmf 2> /dev/null` in #(
3047 *the\ am__doit\ target*)
3048 am__include=.include
3049 am__quote="\""
3050 _am_result=BSD
3052 esac
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3057 $as_echo "$_am_result" >&6; }
3058 rm -f confinc confmf
3060 # Check whether --enable-dependency-tracking was given.
3061 if test "${enable_dependency_tracking+set}" = set; then :
3062 enableval=$enable_dependency_tracking;
3065 if test "x$enable_dependency_tracking" != xno; then
3066 am_depcomp="$ac_aux_dir/depcomp"
3067 AMDEPBACKSLASH='\'
3068 am__nodep='_no'
3070 if test "x$enable_dependency_tracking" != xno; then
3071 AMDEP_TRUE=
3072 AMDEP_FALSE='#'
3073 else
3074 AMDEP_TRUE='#'
3075 AMDEP_FALSE=
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3123 if test -z "$ac_cv_prog_CC"; then
3124 ac_ct_CC=$CC
3125 # Extract the first word of "gcc", so it can be a program name with args.
3126 set dummy gcc; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$ac_ct_CC"; then
3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_ac_ct_CC="gcc"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3146 done
3147 done
3148 IFS=$as_save_IFS
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170 CC=$ac_ct_CC
3172 else
3173 CC="$ac_cv_prog_CC"
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}cc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_CC="${ac_tool_prefix}cc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3217 if test -z "$CC"; then
3218 # Extract the first word of "cc", so it can be a program name with args.
3219 set dummy cc; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 ac_prog_rejected=no
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3237 ac_prog_rejected=yes
3238 continue
3240 ac_cv_prog_CC="cc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3244 done
3245 done
3246 IFS=$as_save_IFS
3248 if test $ac_prog_rejected = yes; then
3249 # We found a bogon in the path, so make sure we never use it.
3250 set dummy $ac_cv_prog_CC
3251 shift
3252 if test $# != 0; then
3253 # We chose a different compiler from the bogus one.
3254 # However, it has the same basename, so the bogon will be chosen
3255 # first if we set CC to just the basename; use the full file name.
3256 shift
3257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3273 if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 for ac_prog in cl.exe
3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3314 test -n "$CC" && break
3315 done
3317 if test -z "$CC"; then
3318 ac_ct_CC=$CC
3319 for ac_prog in cl.exe
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_ac_ct_CC="$ac_prog"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3344 IFS=$as_save_IFS
3348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3349 if test -n "$ac_ct_CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3351 $as_echo "$ac_ct_CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3358 test -n "$ac_ct_CC" && break
3359 done
3361 if test "x$ac_ct_CC" = x; then
3362 CC=""
3363 else
3364 case $cross_compiling:$ac_tool_warned in
3365 yes:)
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370 CC=$ac_ct_CC
3377 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error "no acceptable C compiler found in \$PATH
3380 See \`config.log' for more details." "$LINENO" 5; }
3382 # Provide some information about the compiler.
3383 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3384 set X $ac_compile
3385 ac_compiler=$2
3386 for ac_option in --version -v -V -qversion; do
3387 { { ac_try="$ac_compiler $ac_option >&5"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3395 ac_status=$?
3396 if test -s conftest.err; then
3397 sed '10a\
3398 ... rest of stderr output deleted ...
3399 10q' conftest.err >conftest.er1
3400 cat conftest.er1 >&5
3401 rm -f conftest.er1 conftest.err
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }
3405 done
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 ac_clean_files_save=$ac_clean_files
3419 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3420 # Try to create an executable without -o first, disregard a.out.
3421 # It will help us diagnose broken compilers, and finding out an intuition
3422 # of exeext.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3424 $as_echo_n "checking for C compiler default output file name... " >&6; }
3425 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3427 # The possible output files:
3428 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3430 ac_rmfiles=
3431 for ac_file in $ac_files
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3435 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3436 esac
3437 done
3438 rm -f $ac_rmfiles
3440 if { { ac_try="$ac_link_default"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_link_default") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3453 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3454 # so that the user can short-circuit this test for compilers unknown to
3455 # Autoconf.
3456 for ac_file in $ac_files ''
3458 test -f "$ac_file" || continue
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3462 [ab].out )
3463 # We found the default executable, but exeext='' is most
3464 # certainly right.
3465 break;;
3466 *.* )
3467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3468 then :; else
3469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 # We set ac_cv_exeext here because the later test for it is not
3472 # safe: cross compilers may not add the suffix if given an `-o'
3473 # argument, so we may need to know it at that point already.
3474 # Even if this section looks crufty: it has the advantage of
3475 # actually working.
3476 break;;
3478 break;;
3479 esac
3480 done
3481 test "$ac_cv_exeext" = no && ac_cv_exeext=
3483 else
3484 ac_file=''
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3487 $as_echo "$ac_file" >&6; }
3488 if test -z "$ac_file"; then :
3489 $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 { as_fn_set_status 77
3495 as_fn_error "C compiler cannot create executables
3496 See \`config.log' for more details." "$LINENO" 5; }; }
3498 ac_exeext=$ac_cv_exeext
3500 # Check that the compiler produces executables we can run. If not, either
3501 # the compiler is broken, or we cross compile.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3503 $as_echo_n "checking whether the C compiler works... " >&6; }
3504 # If not cross compiling, check that we can run a simple program.
3505 if test "$cross_compiling" != yes; then
3506 if { ac_try='./$ac_file'
3507 { { case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_try") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; }; then
3517 cross_compiling=no
3518 else
3519 if test "$cross_compiling" = maybe; then
3520 cross_compiling=yes
3521 else
3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error "cannot run C compiled programs.
3525 If you meant to cross compile, use \`--host'.
3526 See \`config.log' for more details." "$LINENO" 5; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3531 $as_echo "yes" >&6; }
3533 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3534 ac_clean_files=$ac_clean_files_save
3535 # Check that the compiler produces executables we can run. If not, either
3536 # the compiler is broken, or we cross compile.
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3538 $as_echo_n "checking whether we are cross compiling... " >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3540 $as_echo "$cross_compiling" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3543 $as_echo_n "checking for suffix of executables... " >&6; }
3544 if { { ac_try="$ac_link"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_link") 2>&5
3552 ac_status=$?
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }; then :
3555 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3556 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3557 # work properly (i.e., refer to `conftest.exe'), while it won't with
3558 # `rm'.
3559 for ac_file in conftest.exe conftest conftest.*; do
3560 test -f "$ac_file" || continue
3561 case $ac_file in
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 break;;
3565 * ) break;;
3566 esac
3567 done
3568 else
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error "cannot compute suffix of executables: cannot compile and link
3572 See \`config.log' for more details." "$LINENO" 5; }
3574 rm -f conftest$ac_cv_exeext
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3576 $as_echo "$ac_cv_exeext" >&6; }
3578 rm -f conftest.$ac_ext
3579 EXEEXT=$ac_cv_exeext
3580 ac_exeext=$EXEEXT
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3582 $as_echo_n "checking for suffix of object files... " >&6; }
3583 if test "${ac_cv_objext+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 rm -f conftest.o conftest.obj
3598 if { { ac_try="$ac_compile"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_compile") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 for ac_file in conftest.o conftest.obj conftest.*; do
3610 test -f "$ac_file" || continue;
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3614 break;;
3615 esac
3616 done
3617 else
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error "cannot compute suffix of object files: cannot compile
3624 See \`config.log' for more details." "$LINENO" 5; }
3626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3629 $as_echo "$ac_cv_objext" >&6; }
3630 OBJEXT=$ac_cv_objext
3631 ac_objext=$OBJEXT
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3633 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3634 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3641 main ()
3643 #ifndef __GNUC__
3644 choke me
3645 #endif
3648 return 0;
3650 _ACEOF
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_compiler_gnu=yes
3653 else
3654 ac_compiler_gnu=no
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3661 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3662 if test $ac_compiler_gnu = yes; then
3663 GCC=yes
3664 else
3665 GCC=
3667 ac_test_CFLAGS=${CFLAGS+set}
3668 ac_save_CFLAGS=$CFLAGS
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3670 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3671 if test "${ac_cv_prog_cc_g+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 ac_save_c_werror_flag=$ac_c_werror_flag
3675 ac_c_werror_flag=yes
3676 ac_cv_prog_cc_g=no
3677 CFLAGS="-g"
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3682 main ()
3686 return 0;
3688 _ACEOF
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690 ac_cv_prog_cc_g=yes
3691 else
3692 CFLAGS=""
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3697 main ()
3701 return 0;
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3706 else
3707 ac_c_werror_flag=$ac_save_c_werror_flag
3708 CFLAGS="-g"
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3713 main ()
3717 return 0;
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_g=yes
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3731 $as_echo "$ac_cv_prog_cc_g" >&6; }
3732 if test "$ac_test_CFLAGS" = set; then
3733 CFLAGS=$ac_save_CFLAGS
3734 elif test $ac_cv_prog_cc_g = yes; then
3735 if test "$GCC" = yes; then
3736 CFLAGS="-g -O2"
3737 else
3738 CFLAGS="-g"
3740 else
3741 if test "$GCC" = yes; then
3742 CFLAGS="-O2"
3743 else
3744 CFLAGS=
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3748 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3749 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_cv_prog_cc_c89=no
3753 ac_save_CC=$CC
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #include <stdarg.h>
3757 #include <stdio.h>
3758 #include <sys/types.h>
3759 #include <sys/stat.h>
3760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3761 struct buf { int x; };
3762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763 static char *e (p, i)
3764 char **p;
3765 int i;
3767 return p[i];
3769 static char *f (char * (*g) (char **, int), char **p, ...)
3771 char *s;
3772 va_list v;
3773 va_start (v,p);
3774 s = g (p, va_arg (v,int));
3775 va_end (v);
3776 return s;
3779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3780 function prototypes and stuff, but not '\xHH' hex character constants.
3781 These don't provoke an error unfortunately, instead are silently treated
3782 as 'x'. The following induces an error, until -std is added to get
3783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3784 array size at least. It's necessary to write '\x00'==0 to get something
3785 that's true only with -std. */
3786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789 inside strings and character constants. */
3790 #define FOO(x) 'x'
3791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793 int test (int i, double x);
3794 struct s1 {int (*f) (int a);};
3795 struct s2 {int (*f) (double a);};
3796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3797 int argc;
3798 char **argv;
3800 main ()
3802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3804 return 0;
3806 _ACEOF
3807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 CC="$ac_save_CC $ac_arg"
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812 ac_cv_prog_cc_c89=$ac_arg
3814 rm -f core conftest.err conftest.$ac_objext
3815 test "x$ac_cv_prog_cc_c89" != "xno" && break
3816 done
3817 rm -f conftest.$ac_ext
3818 CC=$ac_save_CC
3821 # AC_CACHE_VAL
3822 case "x$ac_cv_prog_cc_c89" in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3825 $as_echo "none needed" >&6; } ;;
3826 xno)
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3828 $as_echo "unsupported" >&6; } ;;
3830 CC="$CC $ac_cv_prog_cc_c89"
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3832 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3833 esac
3834 if test "x$ac_cv_prog_cc_c89" != xno; then :
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 depcc="$CC" am_compiler_list=
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3847 $as_echo_n "checking dependency style of $depcc... " >&6; }
3848 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3852 # We make a subdir and do the tests there. Otherwise we can end up
3853 # making bogus files that we don't know about and never remove. For
3854 # instance it was reported that on HP-UX the gcc test will end up
3855 # making a dummy file named `D' -- because `-MD' means `put the output
3856 # in D'.
3857 rm -rf conftest.dir
3858 mkdir conftest.dir
3859 # Copy depcomp to subdir because otherwise we won't find it if we're
3860 # using a relative directory.
3861 cp "$am_depcomp" conftest.dir
3862 cd conftest.dir
3863 # We will build objects and dependencies in a subdirectory because
3864 # it helps to detect inapplicable dependency modes. For instance
3865 # both Tru64's cc and ICC support -MD to output dependencies as a
3866 # side effect of compilation, but ICC will put the dependencies in
3867 # the current directory while Tru64 will put them in the object
3868 # directory.
3869 mkdir sub
3871 am_cv_CC_dependencies_compiler_type=none
3872 if test "$am_compiler_list" = ""; then
3873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875 am__universal=false
3876 case " $depcc " in #(
3877 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3878 esac
3880 for depmode in $am_compiler_list; do
3881 # Setup a source with many dependencies, because some compilers
3882 # like to wrap large dependency lists on column 80 (with \), and
3883 # we should not choose a depcomp mode which is confused by this.
3885 # We need to recreate these files for each test, as the compiler may
3886 # overwrite some of them when testing with obscure command lines.
3887 # This happens at least with the AIX C compiler.
3888 : > sub/conftest.c
3889 for i in 1 2 3 4 5 6; do
3890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3892 # Solaris 8's {/usr,}/bin/sh.
3893 touch sub/conftst$i.h
3894 done
3895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3898 # mode. It turns out that the SunPro C++ compiler does not properly
3899 # handle `-M -o', and we need to detect this. Also, some Intel
3900 # versions had trouble with output in subdirs
3901 am__obj=sub/conftest.${OBJEXT-o}
3902 am__minus_obj="-o $am__obj"
3903 case $depmode in
3904 gcc)
3905 # This depmode causes a compiler race in universal mode.
3906 test "$am__universal" = false || continue
3908 nosideeffect)
3909 # after this tag, mechanisms are not by side-effect, so they'll
3910 # only be used when explicitly requested
3911 if test "x$enable_dependency_tracking" = xyes; then
3912 continue
3913 else
3914 break
3917 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3918 # This compiler won't grok `-c -o', but also, the minuso test has
3919 # not run yet. These depmodes are late enough in the game, and
3920 # so weak that their functioning should not be impacted.
3921 am__obj=conftest.${OBJEXT-o}
3922 am__minus_obj=
3924 none) break ;;
3925 esac
3926 if depmode=$depmode \
3927 source=sub/conftest.c object=$am__obj \
3928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3930 >/dev/null 2>conftest.err &&
3931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3935 # icc doesn't choke on unknown options, it will just issue warnings
3936 # or remarks (even with -Werror). So we grep stderr for any message
3937 # that says an option was ignored or not supported.
3938 # When given -MP, icc 7.0 and 7.1 complain thusly:
3939 # icc: Command line warning: ignoring option '-M'; no argument required
3940 # The diagnosis changed in icc 8.0:
3941 # icc: Command line remark: option '-MP' not supported
3942 if (grep 'ignoring option' conftest.err ||
3943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3944 am_cv_CC_dependencies_compiler_type=$depmode
3945 break
3948 done
3950 cd ..
3951 rm -rf conftest.dir
3952 else
3953 am_cv_CC_dependencies_compiler_type=none
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3958 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3959 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962 test "x$enable_dependency_tracking" != xno \
3963 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3964 am__fastdepCC_TRUE=
3965 am__fastdepCC_FALSE='#'
3966 else
3967 am__fastdepCC_TRUE='#'
3968 am__fastdepCC_FALSE=
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3980 # On Suns, sometimes $CPP names a directory.
3981 if test -n "$CPP" && test -d "$CPP"; then
3982 CPP=
3984 if test -z "$CPP"; then
3985 if test "${ac_cv_prog_CPP+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 # Double quotes because CPP needs to be expanded
3989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991 ac_preproc_ok=false
3992 for ac_c_preproc_warn_flag in '' yes
3994 # Use a header file that comes with gcc, so configuring glibc
3995 # with a fresh cross-compiler works.
3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997 # <limits.h> exists even on freestanding compilers.
3998 # On the NeXT, cc -E runs the code through the compiler's parser,
3999 # not just through cpp. "Syntax error" is here to catch this case.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #ifdef __STDC__
4003 # include <limits.h>
4004 #else
4005 # include <assert.h>
4006 #endif
4007 Syntax error
4008 _ACEOF
4009 if ac_fn_c_try_cpp "$LINENO"; then :
4011 else
4012 # Broken: fails on valid input.
4013 continue
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether nonexistent headers
4018 # can be detected and how.
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <ac_nonexistent.h>
4022 _ACEOF
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 # Passes both tests.
4028 ac_preproc_ok=:
4029 break
4031 rm -f conftest.err conftest.$ac_ext
4033 done
4034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4035 rm -f conftest.err conftest.$ac_ext
4036 if $ac_preproc_ok; then :
4037 break
4040 done
4041 ac_cv_prog_CPP=$CPP
4044 CPP=$ac_cv_prog_CPP
4045 else
4046 ac_cv_prog_CPP=$CPP
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4049 $as_echo "$CPP" >&6; }
4050 ac_preproc_ok=false
4051 for ac_c_preproc_warn_flag in '' yes
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4070 else
4071 # Broken: fails on valid input.
4072 continue
4074 rm -f conftest.err conftest.$ac_ext
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 # Passes both tests.
4087 ac_preproc_ok=:
4088 break
4090 rm -f conftest.err conftest.$ac_ext
4092 done
4093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094 rm -f conftest.err conftest.$ac_ext
4095 if $ac_preproc_ok; then :
4097 else
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4101 See \`config.log' for more details." "$LINENO" 5; }
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4113 if test "${ac_cv_path_GREP+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -z "$GREP"; then
4117 ac_path_GREP_found=false
4118 # Loop through the user's path and test for each of PROGNAME-LIST
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_prog in grep ggrep; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4128 # Check for GNU ac_path_GREP and select it if it is found.
4129 # Check for GNU $ac_path_GREP
4130 case `"$ac_path_GREP" --version 2>&1` in
4131 *GNU*)
4132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 ac_count=0
4135 $as_echo_n 0123456789 >"conftest.in"
4136 while :
4138 cat "conftest.in" "conftest.in" >"conftest.tmp"
4139 mv "conftest.tmp" "conftest.in"
4140 cp "conftest.in" "conftest.nl"
4141 $as_echo 'GREP' >> "conftest.nl"
4142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4144 as_fn_arith $ac_count + 1 && ac_count=$as_val
4145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4146 # Best one so far, save it but keep looking for a better one
4147 ac_cv_path_GREP="$ac_path_GREP"
4148 ac_path_GREP_max=$ac_count
4150 # 10*(2^10) chars as input seems more than enough
4151 test $ac_count -gt 10 && break
4152 done
4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154 esac
4156 $ac_path_GREP_found && break 3
4157 done
4158 done
4159 done
4160 IFS=$as_save_IFS
4161 if test -z "$ac_cv_path_GREP"; then
4162 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164 else
4165 ac_cv_path_GREP=$GREP
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4170 $as_echo "$ac_cv_path_GREP" >&6; }
4171 GREP="$ac_cv_path_GREP"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4175 $as_echo_n "checking for egrep... " >&6; }
4176 if test "${ac_cv_path_EGREP+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4181 else
4182 if test -z "$EGREP"; then
4183 ac_path_EGREP_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in egrep; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4194 # Check for GNU ac_path_EGREP and select it if it is found.
4195 # Check for GNU $ac_path_EGREP
4196 case `"$ac_path_EGREP" --version 2>&1` in
4197 *GNU*)
4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 ac_count=0
4201 $as_echo_n 0123456789 >"conftest.in"
4202 while :
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 $as_echo 'EGREP' >> "conftest.nl"
4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 as_fn_arith $ac_count + 1 && ac_count=$as_val
4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_EGREP="$ac_path_EGREP"
4214 ac_path_EGREP_max=$ac_count
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4218 done
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 esac
4222 $ac_path_EGREP_found && break 3
4223 done
4224 done
4225 done
4226 IFS=$as_save_IFS
4227 if test -z "$ac_cv_path_EGREP"; then
4228 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230 else
4231 ac_cv_path_EGREP=$EGREP
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4237 $as_echo "$ac_cv_path_EGREP" >&6; }
4238 EGREP="$ac_cv_path_EGREP"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4242 $as_echo_n "checking for ANSI C header files... " >&6; }
4243 if test "${ac_cv_header_stdc+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <stdlib.h>
4249 #include <stdarg.h>
4250 #include <string.h>
4251 #include <float.h>
4254 main ()
4258 return 0;
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_header_stdc=yes
4263 else
4264 ac_cv_header_stdc=no
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 if test $ac_cv_header_stdc = yes; then
4269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #include <string.h>
4274 _ACEOF
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "memchr" >/dev/null 2>&1; then :
4278 else
4279 ac_cv_header_stdc=no
4281 rm -f conftest*
4285 if test $ac_cv_header_stdc = yes; then
4286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <stdlib.h>
4291 _ACEOF
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293 $EGREP "free" >/dev/null 2>&1; then :
4295 else
4296 ac_cv_header_stdc=no
4298 rm -f conftest*
4302 if test $ac_cv_header_stdc = yes; then
4303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4304 if test "$cross_compiling" = yes; then :
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <ctype.h>
4310 #include <stdlib.h>
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 #else
4315 # define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
4317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320 #endif
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 main ()
4326 int i;
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4330 return 2;
4331 return 0;
4333 _ACEOF
4334 if ac_fn_c_try_run "$LINENO"; then :
4336 else
4337 ac_cv_header_stdc=no
4339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4340 conftest.$ac_objext conftest.beam conftest.$ac_ext
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4346 $as_echo "$ac_cv_header_stdc" >&6; }
4347 if test $ac_cv_header_stdc = yes; then
4349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4355 inttypes.h stdint.h unistd.h
4356 do :
4357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4358 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4360 eval as_val=\$$as_ac_Header
4361 if test "x$as_val" = x""yes; then :
4362 cat >>confdefs.h <<_ACEOF
4363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4364 _ACEOF
4368 done
4372 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4373 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4374 MINIX=yes
4375 else
4376 MINIX=
4380 if test "$MINIX" = yes; then
4382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4388 $as_echo "#define _MINIX 1" >>confdefs.h
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4395 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4401 # define __EXTENSIONS__ 1
4402 $ac_includes_default
4404 main ()
4408 return 0;
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_safe_to_define___extensions__=yes
4413 else
4414 ac_cv_safe_to_define___extensions__=no
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4420 test $ac_cv_safe_to_define___extensions__ = yes &&
4421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4425 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4427 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4429 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4433 # Build a DLL on Windows
4434 # AC_LIBTOOL_WIN32_DLL
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440 if test -n "$ac_tool_prefix"; then
4441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_CC+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 CC=$ac_cv_prog_CC
4469 if test -n "$CC"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4471 $as_echo "$CC" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4479 if test -z "$ac_cv_prog_CC"; then
4480 ac_ct_CC=$CC
4481 # Extract the first word of "gcc", so it can be a program name with args.
4482 set dummy gcc; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$ac_ct_CC"; then
4489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_ac_ct_CC="gcc"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4509 if test -n "$ac_ct_CC"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4511 $as_echo "$ac_ct_CC" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4517 if test "x$ac_ct_CC" = x; then
4518 CC=""
4519 else
4520 case $cross_compiling:$ac_tool_warned in
4521 yes:)
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4524 ac_tool_warned=yes ;;
4525 esac
4526 CC=$ac_ct_CC
4528 else
4529 CC="$ac_cv_prog_CC"
4532 if test -z "$CC"; then
4533 if test -n "$ac_tool_prefix"; then
4534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4535 set dummy ${ac_tool_prefix}cc; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_prog_CC+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_CC="${ac_tool_prefix}cc"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 CC=$ac_cv_prog_CC
4562 if test -n "$CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4573 if test -z "$CC"; then
4574 # Extract the first word of "cc", so it can be a program name with args.
4575 set dummy cc; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if test "${ac_cv_prog_CC+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$CC"; then
4582 ac_cv_prog_CC="$CC" # Let the user override the test.
4583 else
4584 ac_prog_rejected=no
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4593 ac_prog_rejected=yes
4594 continue
4596 ac_cv_prog_CC="cc"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4604 if test $ac_prog_rejected = yes; then
4605 # We found a bogon in the path, so make sure we never use it.
4606 set dummy $ac_cv_prog_CC
4607 shift
4608 if test $# != 0; then
4609 # We chose a different compiler from the bogus one.
4610 # However, it has the same basename, so the bogon will be chosen
4611 # first if we set CC to just the basename; use the full file name.
4612 shift
4613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4618 CC=$ac_cv_prog_CC
4619 if test -n "$CC"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4621 $as_echo "$CC" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4629 if test -z "$CC"; then
4630 if test -n "$ac_tool_prefix"; then
4631 for ac_prog in cl.exe
4633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_CC+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 CC=$ac_cv_prog_CC
4661 if test -n "$CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663 $as_echo "$CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4670 test -n "$CC" && break
4671 done
4673 if test -z "$CC"; then
4674 ac_ct_CC=$CC
4675 for ac_prog in cl.exe
4677 # Extract the first word of "$ac_prog", so it can be a program name with args.
4678 set dummy $ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$ac_ct_CC"; then
4685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_ac_ct_CC="$ac_prog"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4698 done
4699 done
4700 IFS=$as_save_IFS
4704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4705 if test -n "$ac_ct_CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4707 $as_echo "$ac_ct_CC" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4714 test -n "$ac_ct_CC" && break
4715 done
4717 if test "x$ac_ct_CC" = x; then
4718 CC=""
4719 else
4720 case $cross_compiling:$ac_tool_warned in
4721 yes:)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4724 ac_tool_warned=yes ;;
4725 esac
4726 CC=$ac_ct_CC
4733 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4735 as_fn_error "no acceptable C compiler found in \$PATH
4736 See \`config.log' for more details." "$LINENO" 5; }
4738 # Provide some information about the compiler.
4739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4740 set X $ac_compile
4741 ac_compiler=$2
4742 for ac_option in --version -v -V -qversion; do
4743 { { ac_try="$ac_compiler $ac_option >&5"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4749 $as_echo "$ac_try_echo"; } >&5
4750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4751 ac_status=$?
4752 if test -s conftest.err; then
4753 sed '10a\
4754 ... rest of stderr output deleted ...
4755 10q' conftest.err >conftest.er1
4756 cat conftest.er1 >&5
4757 rm -f conftest.er1 conftest.err
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }
4761 done
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4764 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4765 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4772 main ()
4774 #ifndef __GNUC__
4775 choke me
4776 #endif
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 ac_compiler_gnu=yes
4784 else
4785 ac_compiler_gnu=no
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4793 if test $ac_compiler_gnu = yes; then
4794 GCC=yes
4795 else
4796 GCC=
4798 ac_test_CFLAGS=${CFLAGS+set}
4799 ac_save_CFLAGS=$CFLAGS
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4802 if test "${ac_cv_prog_cc_g+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_save_c_werror_flag=$ac_c_werror_flag
4806 ac_c_werror_flag=yes
4807 ac_cv_prog_cc_g=no
4808 CFLAGS="-g"
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4813 main ()
4817 return 0;
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 ac_cv_prog_cc_g=yes
4822 else
4823 CFLAGS=""
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4828 main ()
4832 return 0;
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4837 else
4838 ac_c_werror_flag=$ac_save_c_werror_flag
4839 CFLAGS="-g"
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 main ()
4848 return 0;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_prog_cc_g=yes
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 ac_c_werror_flag=$ac_save_c_werror_flag
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4862 $as_echo "$ac_cv_prog_cc_g" >&6; }
4863 if test "$ac_test_CFLAGS" = set; then
4864 CFLAGS=$ac_save_CFLAGS
4865 elif test $ac_cv_prog_cc_g = yes; then
4866 if test "$GCC" = yes; then
4867 CFLAGS="-g -O2"
4868 else
4869 CFLAGS="-g"
4871 else
4872 if test "$GCC" = yes; then
4873 CFLAGS="-O2"
4874 else
4875 CFLAGS=
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4879 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4880 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 ac_cv_prog_cc_c89=no
4884 ac_save_CC=$CC
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <stdarg.h>
4888 #include <stdio.h>
4889 #include <sys/types.h>
4890 #include <sys/stat.h>
4891 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4892 struct buf { int x; };
4893 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4894 static char *e (p, i)
4895 char **p;
4896 int i;
4898 return p[i];
4900 static char *f (char * (*g) (char **, int), char **p, ...)
4902 char *s;
4903 va_list v;
4904 va_start (v,p);
4905 s = g (p, va_arg (v,int));
4906 va_end (v);
4907 return s;
4910 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4911 function prototypes and stuff, but not '\xHH' hex character constants.
4912 These don't provoke an error unfortunately, instead are silently treated
4913 as 'x'. The following induces an error, until -std is added to get
4914 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4915 array size at least. It's necessary to write '\x00'==0 to get something
4916 that's true only with -std. */
4917 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4919 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4920 inside strings and character constants. */
4921 #define FOO(x) 'x'
4922 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4924 int test (int i, double x);
4925 struct s1 {int (*f) (int a);};
4926 struct s2 {int (*f) (double a);};
4927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4928 int argc;
4929 char **argv;
4931 main ()
4933 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4935 return 0;
4937 _ACEOF
4938 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4939 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4941 CC="$ac_save_CC $ac_arg"
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943 ac_cv_prog_cc_c89=$ac_arg
4945 rm -f core conftest.err conftest.$ac_objext
4946 test "x$ac_cv_prog_cc_c89" != "xno" && break
4947 done
4948 rm -f conftest.$ac_ext
4949 CC=$ac_save_CC
4952 # AC_CACHE_VAL
4953 case "x$ac_cv_prog_cc_c89" in
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4956 $as_echo "none needed" >&6; } ;;
4957 xno)
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4959 $as_echo "unsupported" >&6; } ;;
4961 CC="$CC $ac_cv_prog_cc_c89"
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4963 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4964 esac
4965 if test "x$ac_cv_prog_cc_c89" != xno; then :
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 depcc="$CC" am_compiler_list=
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4978 $as_echo_n "checking dependency style of $depcc... " >&6; }
4979 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4983 # We make a subdir and do the tests there. Otherwise we can end up
4984 # making bogus files that we don't know about and never remove. For
4985 # instance it was reported that on HP-UX the gcc test will end up
4986 # making a dummy file named `D' -- because `-MD' means `put the output
4987 # in D'.
4988 rm -rf conftest.dir
4989 mkdir conftest.dir
4990 # Copy depcomp to subdir because otherwise we won't find it if we're
4991 # using a relative directory.
4992 cp "$am_depcomp" conftest.dir
4993 cd conftest.dir
4994 # We will build objects and dependencies in a subdirectory because
4995 # it helps to detect inapplicable dependency modes. For instance
4996 # both Tru64's cc and ICC support -MD to output dependencies as a
4997 # side effect of compilation, but ICC will put the dependencies in
4998 # the current directory while Tru64 will put them in the object
4999 # directory.
5000 mkdir sub
5002 am_cv_CC_dependencies_compiler_type=none
5003 if test "$am_compiler_list" = ""; then
5004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5006 am__universal=false
5007 case " $depcc " in #(
5008 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5009 esac
5011 for depmode in $am_compiler_list; do
5012 # Setup a source with many dependencies, because some compilers
5013 # like to wrap large dependency lists on column 80 (with \), and
5014 # we should not choose a depcomp mode which is confused by this.
5016 # We need to recreate these files for each test, as the compiler may
5017 # overwrite some of them when testing with obscure command lines.
5018 # This happens at least with the AIX C compiler.
5019 : > sub/conftest.c
5020 for i in 1 2 3 4 5 6; do
5021 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5022 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5023 # Solaris 8's {/usr,}/bin/sh.
5024 touch sub/conftst$i.h
5025 done
5026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5029 # mode. It turns out that the SunPro C++ compiler does not properly
5030 # handle `-M -o', and we need to detect this. Also, some Intel
5031 # versions had trouble with output in subdirs
5032 am__obj=sub/conftest.${OBJEXT-o}
5033 am__minus_obj="-o $am__obj"
5034 case $depmode in
5035 gcc)
5036 # This depmode causes a compiler race in universal mode.
5037 test "$am__universal" = false || continue
5039 nosideeffect)
5040 # after this tag, mechanisms are not by side-effect, so they'll
5041 # only be used when explicitly requested
5042 if test "x$enable_dependency_tracking" = xyes; then
5043 continue
5044 else
5045 break
5048 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5049 # This compiler won't grok `-c -o', but also, the minuso test has
5050 # not run yet. These depmodes are late enough in the game, and
5051 # so weak that their functioning should not be impacted.
5052 am__obj=conftest.${OBJEXT-o}
5053 am__minus_obj=
5055 none) break ;;
5056 esac
5057 if depmode=$depmode \
5058 source=sub/conftest.c object=$am__obj \
5059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5060 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5061 >/dev/null 2>conftest.err &&
5062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5064 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5066 # icc doesn't choke on unknown options, it will just issue warnings
5067 # or remarks (even with -Werror). So we grep stderr for any message
5068 # that says an option was ignored or not supported.
5069 # When given -MP, icc 7.0 and 7.1 complain thusly:
5070 # icc: Command line warning: ignoring option '-M'; no argument required
5071 # The diagnosis changed in icc 8.0:
5072 # icc: Command line remark: option '-MP' not supported
5073 if (grep 'ignoring option' conftest.err ||
5074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5075 am_cv_CC_dependencies_compiler_type=$depmode
5076 break
5079 done
5081 cd ..
5082 rm -rf conftest.dir
5083 else
5084 am_cv_CC_dependencies_compiler_type=none
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5093 test "x$enable_dependency_tracking" != xno \
5094 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5095 am__fastdepCC_TRUE=
5096 am__fastdepCC_FALSE='#'
5097 else
5098 am__fastdepCC_TRUE='#'
5099 am__fastdepCC_FALSE=
5103 ac_ext=cpp
5104 ac_cpp='$CXXCPP $CPPFLAGS'
5105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5108 if test -z "$CXX"; then
5109 if test -n "$CCC"; then
5110 CXX=$CCC
5111 else
5112 if test -n "$ac_tool_prefix"; then
5113 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_CXX+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if test -n "$CXX"; then
5123 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5136 done
5137 done
5138 IFS=$as_save_IFS
5142 CXX=$ac_cv_prog_CXX
5143 if test -n "$CXX"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5145 $as_echo "$CXX" >&6; }
5146 else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$CXX" && break
5153 done
5155 if test -z "$CXX"; then
5156 ac_ct_CXX=$CXX
5157 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5159 # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$ac_ct_CXX"; then
5167 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_ac_ct_CXX="$ac_prog"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5182 IFS=$as_save_IFS
5186 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5187 if test -n "$ac_ct_CXX"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5189 $as_echo "$ac_ct_CXX" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5196 test -n "$ac_ct_CXX" && break
5197 done
5199 if test "x$ac_ct_CXX" = x; then
5200 CXX="g++"
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208 CXX=$ac_ct_CXX
5214 # Provide some information about the compiler.
5215 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5216 set X $ac_compile
5217 ac_compiler=$2
5218 for ac_option in --version -v -V -qversion; do
5219 { { ac_try="$ac_compiler $ac_option >&5"
5220 case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223 esac
5224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5225 $as_echo "$ac_try_echo"; } >&5
5226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5227 ac_status=$?
5228 if test -s conftest.err; then
5229 sed '10a\
5230 ... rest of stderr output deleted ...
5231 10q' conftest.err >conftest.er1
5232 cat conftest.er1 >&5
5233 rm -f conftest.er1 conftest.err
5235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5236 test $ac_status = 0; }
5237 done
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5240 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5241 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5248 main ()
5250 #ifndef __GNUC__
5251 choke me
5252 #endif
5255 return 0;
5257 _ACEOF
5258 if ac_fn_cxx_try_compile "$LINENO"; then :
5259 ac_compiler_gnu=yes
5260 else
5261 ac_compiler_gnu=no
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5268 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5269 if test $ac_compiler_gnu = yes; then
5270 GXX=yes
5271 else
5272 GXX=
5274 ac_test_CXXFLAGS=${CXXFLAGS+set}
5275 ac_save_CXXFLAGS=$CXXFLAGS
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5277 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5278 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5282 ac_cxx_werror_flag=yes
5283 ac_cv_prog_cxx_g=no
5284 CXXFLAGS="-g"
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5289 main ()
5293 return 0;
5295 _ACEOF
5296 if ac_fn_cxx_try_compile "$LINENO"; then :
5297 ac_cv_prog_cxx_g=yes
5298 else
5299 CXXFLAGS=""
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5304 main ()
5308 return 0;
5310 _ACEOF
5311 if ac_fn_cxx_try_compile "$LINENO"; then :
5313 else
5314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5315 CXXFLAGS="-g"
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 main ()
5324 return 0;
5326 _ACEOF
5327 if ac_fn_cxx_try_compile "$LINENO"; then :
5328 ac_cv_prog_cxx_g=yes
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5338 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5339 if test "$ac_test_CXXFLAGS" = set; then
5340 CXXFLAGS=$ac_save_CXXFLAGS
5341 elif test $ac_cv_prog_cxx_g = yes; then
5342 if test "$GXX" = yes; then
5343 CXXFLAGS="-g -O2"
5344 else
5345 CXXFLAGS="-g"
5347 else
5348 if test "$GXX" = yes; then
5349 CXXFLAGS="-O2"
5350 else
5351 CXXFLAGS=
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 depcc="$CXX" am_compiler_list=
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5363 $as_echo_n "checking dependency style of $depcc... " >&6; }
5364 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5368 # We make a subdir and do the tests there. Otherwise we can end up
5369 # making bogus files that we don't know about and never remove. For
5370 # instance it was reported that on HP-UX the gcc test will end up
5371 # making a dummy file named `D' -- because `-MD' means `put the output
5372 # in D'.
5373 rm -rf conftest.dir
5374 mkdir conftest.dir
5375 # Copy depcomp to subdir because otherwise we won't find it if we're
5376 # using a relative directory.
5377 cp "$am_depcomp" conftest.dir
5378 cd conftest.dir
5379 # We will build objects and dependencies in a subdirectory because
5380 # it helps to detect inapplicable dependency modes. For instance
5381 # both Tru64's cc and ICC support -MD to output dependencies as a
5382 # side effect of compilation, but ICC will put the dependencies in
5383 # the current directory while Tru64 will put them in the object
5384 # directory.
5385 mkdir sub
5387 am_cv_CXX_dependencies_compiler_type=none
5388 if test "$am_compiler_list" = ""; then
5389 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5391 am__universal=false
5392 case " $depcc " in #(
5393 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5394 esac
5396 for depmode in $am_compiler_list; do
5397 # Setup a source with many dependencies, because some compilers
5398 # like to wrap large dependency lists on column 80 (with \), and
5399 # we should not choose a depcomp mode which is confused by this.
5401 # We need to recreate these files for each test, as the compiler may
5402 # overwrite some of them when testing with obscure command lines.
5403 # This happens at least with the AIX C compiler.
5404 : > sub/conftest.c
5405 for i in 1 2 3 4 5 6; do
5406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5407 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5408 # Solaris 8's {/usr,}/bin/sh.
5409 touch sub/conftst$i.h
5410 done
5411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5413 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5414 # mode. It turns out that the SunPro C++ compiler does not properly
5415 # handle `-M -o', and we need to detect this. Also, some Intel
5416 # versions had trouble with output in subdirs
5417 am__obj=sub/conftest.${OBJEXT-o}
5418 am__minus_obj="-o $am__obj"
5419 case $depmode in
5420 gcc)
5421 # This depmode causes a compiler race in universal mode.
5422 test "$am__universal" = false || continue
5424 nosideeffect)
5425 # after this tag, mechanisms are not by side-effect, so they'll
5426 # only be used when explicitly requested
5427 if test "x$enable_dependency_tracking" = xyes; then
5428 continue
5429 else
5430 break
5433 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5434 # This compiler won't grok `-c -o', but also, the minuso test has
5435 # not run yet. These depmodes are late enough in the game, and
5436 # so weak that their functioning should not be impacted.
5437 am__obj=conftest.${OBJEXT-o}
5438 am__minus_obj=
5440 none) break ;;
5441 esac
5442 if depmode=$depmode \
5443 source=sub/conftest.c object=$am__obj \
5444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5445 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5446 >/dev/null 2>conftest.err &&
5447 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5449 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5451 # icc doesn't choke on unknown options, it will just issue warnings
5452 # or remarks (even with -Werror). So we grep stderr for any message
5453 # that says an option was ignored or not supported.
5454 # When given -MP, icc 7.0 and 7.1 complain thusly:
5455 # icc: Command line warning: ignoring option '-M'; no argument required
5456 # The diagnosis changed in icc 8.0:
5457 # icc: Command line remark: option '-MP' not supported
5458 if (grep 'ignoring option' conftest.err ||
5459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5460 am_cv_CXX_dependencies_compiler_type=$depmode
5461 break
5464 done
5466 cd ..
5467 rm -rf conftest.dir
5468 else
5469 am_cv_CXX_dependencies_compiler_type=none
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5474 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5475 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5478 test "x$enable_dependency_tracking" != xno \
5479 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5480 am__fastdepCXX_TRUE=
5481 am__fastdepCXX_FALSE='#'
5482 else
5483 am__fastdepCXX_TRUE='#'
5484 am__fastdepCXX_FALSE=
5488 # AC_PROG_LIBTOOL
5489 # AC_CONFIG_MACRO_DIR([..])
5490 ac_config_files="$ac_config_files Makefile libcilkrts.spec"
5492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5493 # for constant arguments. Useless!
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5495 $as_echo_n "checking for working alloca.h... " >&6; }
5496 if test "${ac_cv_working_alloca_h+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 #include <alloca.h>
5503 main ()
5505 char *p = (char *) alloca (2 * sizeof (int));
5506 if (p) return 0;
5508 return 0;
5510 _ACEOF
5511 if ac_fn_c_try_link "$LINENO"; then :
5512 ac_cv_working_alloca_h=yes
5513 else
5514 ac_cv_working_alloca_h=no
5516 rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5520 $as_echo "$ac_cv_working_alloca_h" >&6; }
5521 if test $ac_cv_working_alloca_h = yes; then
5523 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5528 $as_echo_n "checking for alloca... " >&6; }
5529 if test "${ac_cv_func_alloca_works+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #ifdef __GNUC__
5535 # define alloca __builtin_alloca
5536 #else
5537 # ifdef _MSC_VER
5538 # include <malloc.h>
5539 # define alloca _alloca
5540 # else
5541 # ifdef HAVE_ALLOCA_H
5542 # include <alloca.h>
5543 # else
5544 # ifdef _AIX
5545 #pragma alloca
5546 # else
5547 # ifndef alloca /* predefined by HP cc +Olibcalls */
5548 char *alloca ();
5549 # endif
5550 # endif
5551 # endif
5552 # endif
5553 #endif
5556 main ()
5558 char *p = (char *) alloca (1);
5559 if (p) return 0;
5561 return 0;
5563 _ACEOF
5564 if ac_fn_c_try_link "$LINENO"; then :
5565 ac_cv_func_alloca_works=yes
5566 else
5567 ac_cv_func_alloca_works=no
5569 rm -f core conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5573 $as_echo "$ac_cv_func_alloca_works" >&6; }
5575 if test $ac_cv_func_alloca_works = yes; then
5577 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5579 else
5580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5581 # that cause trouble. Some versions do not even contain alloca or
5582 # contain a buggy version. If you still want to use their alloca,
5583 # use ar to extract alloca.o from them instead of compiling alloca.c.
5585 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5587 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5591 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5592 if test "${ac_cv_os_cray+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #if defined CRAY && ! defined CRAY2
5598 webecray
5599 #else
5600 wenotbecray
5601 #endif
5603 _ACEOF
5604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5605 $EGREP "webecray" >/dev/null 2>&1; then :
5606 ac_cv_os_cray=yes
5607 else
5608 ac_cv_os_cray=no
5610 rm -f conftest*
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5614 $as_echo "$ac_cv_os_cray" >&6; }
5615 if test $ac_cv_os_cray = yes; then
5616 for ac_func in _getb67 GETB67 getb67; do
5617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5619 eval as_val=\$$as_ac_var
5620 if test "x$as_val" = x""yes; then :
5622 cat >>confdefs.h <<_ACEOF
5623 #define CRAY_STACKSEG_END $ac_func
5624 _ACEOF
5626 break
5629 done
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5633 $as_echo_n "checking stack direction for C alloca... " >&6; }
5634 if test "${ac_cv_c_stack_direction+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test "$cross_compiling" = yes; then :
5638 ac_cv_c_stack_direction=0
5639 else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 $ac_includes_default
5644 find_stack_direction ()
5646 static char *addr = 0;
5647 auto char dummy;
5648 if (addr == 0)
5650 addr = &dummy;
5651 return find_stack_direction ();
5653 else
5654 return (&dummy > addr) ? 1 : -1;
5658 main ()
5660 return find_stack_direction () < 0;
5662 _ACEOF
5663 if ac_fn_c_try_run "$LINENO"; then :
5664 ac_cv_c_stack_direction=1
5665 else
5666 ac_cv_c_stack_direction=-1
5668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5669 conftest.$ac_objext conftest.beam conftest.$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5674 $as_echo "$ac_cv_c_stack_direction" >&6; }
5675 cat >>confdefs.h <<_ACEOF
5676 #define STACK_DIRECTION $ac_cv_c_stack_direction
5677 _ACEOF
5683 # Check for dl functions
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
5685 $as_echo_n "checking for dladdr in -ldl... " >&6; }
5686 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 ac_check_lib_save_LIBS=$LIBS
5690 LIBS="-ldl $LIBS"
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5694 /* Override any GCC internal prototype to avoid an error.
5695 Use char because int might match the return type of a GCC
5696 builtin and then its argument prototype would still apply. */
5697 #ifdef __cplusplus
5698 extern "C"
5699 #endif
5700 char dladdr ();
5702 main ()
5704 return dladdr ();
5706 return 0;
5708 _ACEOF
5709 if ac_fn_c_try_link "$LINENO"; then :
5710 ac_cv_lib_dl_dladdr=yes
5711 else
5712 ac_cv_lib_dl_dladdr=no
5714 rm -f core conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_check_lib_save_LIBS
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
5719 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
5720 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
5722 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
5727 # Check whether the target supports protected visibility.
5728 save_CFLAGS="$CFLAGS"
5729 CFLAGS="$CFLAGS -Werror"
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 void __attribute__((visibility("protected"))) foo(void) { }
5734 main ()
5738 return 0;
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 libcilkrts_cv_have_attribute_visibility=yes
5743 else
5744 libcilkrts_cv_have_attribute_visibility=no
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 CFLAGS="$save_CFLAGS"
5748 if test $libcilkrts_cv_have_attribute_visibility = yes; then
5750 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
5754 # Get target configury.
5755 . ${srcdir}/configure.tgt
5756 if test -n "$UNSUPPORTED"; then
5757 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
5760 if test "${multilib}" = "yes"; then
5761 multilib_arg="--enable-multilib"
5762 else
5763 multilib_arg=
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5767 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5768 # Check whether --enable-version-specific-runtime-libs was given.
5769 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5770 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5771 yes) enable_version_specific_runtime_libs=yes ;;
5772 no) enable_version_specific_runtime_libs=no ;;
5773 *) as_fn_error "Unknown argument to enable/disable version-specific libs
5774 " "$LINENO" 5;;
5775 esac
5776 else
5777 enable_version_specific_runtime_libs=no
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5781 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5784 # Calculate toolexeclibdir
5785 # Also toolexecdir, though it's only used in toolexeclibdir
5786 case ${enable_version_specific_runtime_libs} in
5787 yes)
5788 # Need the gcc compiler version to know where to install libraries
5789 # and header files if --enable-version-specific-runtime-libs option
5790 # is selected.
5791 toolexecdir='$(libdir)/gcc/$(target_alias)'
5792 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5795 if test -n "$with_cross_host" &&
5796 test x"$with_cross_host" != x"no"; then
5797 # Install a library built with a cross compiler in tooldir, not libdir.
5798 toolexecdir='$(exec_prefix)/$(target_alias)'
5799 toolexeclibdir='$(toolexecdir)/lib'
5800 else
5801 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5802 toolexeclibdir='$(libdir)'
5804 multi_os_directory=`$CC -print-multi-os-directory`
5805 case $multi_os_directory in
5806 .) ;; # Avoid trailing /.
5807 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5808 esac
5810 esac
5812 # Set config_dir based on the target. config_dir specifies where to get
5813 # target-specific files. The generic implementation is incomplete, but
5814 # contains information on what's needed
5815 case "${target}" in
5817 i?86-*-* | x86_64-*-*)
5818 config_dir="x86"
5821 arm-*-*)
5822 config_dir="arm"
5825 sparc*-*-*)
5826 config_dir="sparc"
5830 config_dir="generic"
5833 esac
5836 # We have linker scripts for appropriate operating systems
5837 linux_linker_script=no
5838 case "${host}" in
5839 *-*-linux*)
5840 linux_linker_script=yes
5842 esac
5843 if test "$linux_linker_script" = "yes"; then
5844 LINUX_LINKER_SCRIPT_TRUE=
5845 LINUX_LINKER_SCRIPT_FALSE='#'
5846 else
5847 LINUX_LINKER_SCRIPT_TRUE='#'
5848 LINUX_LINKER_SCRIPT_FALSE=
5852 mac_linker_script=no
5853 case "${host}" in
5854 *-*-apple*)
5855 mac_linker_script=yes
5857 esac
5858 if test "$mac_linker_script" = "yes"; then
5859 MAC_LINKER_SCRIPT_TRUE=
5860 MAC_LINKER_SCRIPT_FALSE='#'
5861 else
5862 MAC_LINKER_SCRIPT_TRUE='#'
5863 MAC_LINKER_SCRIPT_FALSE=
5867 enable_dlopen=yes
5871 case `pwd` in
5872 *\ * | *\ *)
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5875 esac
5879 macro_version='2.2.7a'
5880 macro_revision='1.3134'
5894 ltmain="$ac_aux_dir/ltmain.sh"
5896 # Backslashify metacharacters that are still active within
5897 # double-quoted strings.
5898 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5900 # Same as above, but do not quote variable references.
5901 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5903 # Sed substitution to delay expansion of an escaped shell variable in a
5904 # double_quote_subst'ed string.
5905 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5907 # Sed substitution to delay expansion of an escaped single quote.
5908 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5910 # Sed substitution to avoid accidental globbing in evaled expressions
5911 no_glob_subst='s/\*/\\\*/g'
5913 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5914 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5915 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5918 $as_echo_n "checking how to print strings... " >&6; }
5919 # Test print first, because it will be a builtin if present.
5920 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5921 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5922 ECHO='print -r --'
5923 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5924 ECHO='printf %s\n'
5925 else
5926 # Use this function as a fallback that always works.
5927 func_fallback_echo ()
5929 eval 'cat <<_LTECHO_EOF
5931 _LTECHO_EOF'
5933 ECHO='func_fallback_echo'
5936 # func_echo_all arg...
5937 # Invoke $ECHO with all args, space-separated.
5938 func_echo_all ()
5940 $ECHO ""
5943 case "$ECHO" in
5944 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5945 $as_echo "printf" >&6; } ;;
5946 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5947 $as_echo "print -r" >&6; } ;;
5948 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5949 $as_echo "cat" >&6; } ;;
5950 esac
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5966 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5967 if test "${ac_cv_path_SED+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5971 for ac_i in 1 2 3 4 5 6 7; do
5972 ac_script="$ac_script$as_nl$ac_script"
5973 done
5974 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5975 { ac_script=; unset ac_script;}
5976 if test -z "$SED"; then
5977 ac_path_SED_found=false
5978 # Loop through the user's path and test for each of PROGNAME-LIST
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_prog in sed gsed; do
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5987 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5988 # Check for GNU ac_path_SED and select it if it is found.
5989 # Check for GNU $ac_path_SED
5990 case `"$ac_path_SED" --version 2>&1` in
5991 *GNU*)
5992 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5994 ac_count=0
5995 $as_echo_n 0123456789 >"conftest.in"
5996 while :
5998 cat "conftest.in" "conftest.in" >"conftest.tmp"
5999 mv "conftest.tmp" "conftest.in"
6000 cp "conftest.in" "conftest.nl"
6001 $as_echo '' >> "conftest.nl"
6002 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6004 as_fn_arith $ac_count + 1 && ac_count=$as_val
6005 if test $ac_count -gt ${ac_path_SED_max-0}; then
6006 # Best one so far, save it but keep looking for a better one
6007 ac_cv_path_SED="$ac_path_SED"
6008 ac_path_SED_max=$ac_count
6010 # 10*(2^10) chars as input seems more than enough
6011 test $ac_count -gt 10 && break
6012 done
6013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6014 esac
6016 $ac_path_SED_found && break 3
6017 done
6018 done
6019 done
6020 IFS=$as_save_IFS
6021 if test -z "$ac_cv_path_SED"; then
6022 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6024 else
6025 ac_cv_path_SED=$SED
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6030 $as_echo "$ac_cv_path_SED" >&6; }
6031 SED="$ac_cv_path_SED"
6032 rm -f conftest.sed
6034 test -z "$SED" && SED=sed
6035 Xsed="$SED -e 1s/^X//"
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6048 $as_echo_n "checking for fgrep... " >&6; }
6049 if test "${ac_cv_path_FGREP+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6053 then ac_cv_path_FGREP="$GREP -F"
6054 else
6055 if test -z "$FGREP"; then
6056 ac_path_FGREP_found=false
6057 # Loop through the user's path and test for each of PROGNAME-LIST
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_prog in fgrep; do
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6066 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6067 # Check for GNU ac_path_FGREP and select it if it is found.
6068 # Check for GNU $ac_path_FGREP
6069 case `"$ac_path_FGREP" --version 2>&1` in
6070 *GNU*)
6071 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6073 ac_count=0
6074 $as_echo_n 0123456789 >"conftest.in"
6075 while :
6077 cat "conftest.in" "conftest.in" >"conftest.tmp"
6078 mv "conftest.tmp" "conftest.in"
6079 cp "conftest.in" "conftest.nl"
6080 $as_echo 'FGREP' >> "conftest.nl"
6081 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083 as_fn_arith $ac_count + 1 && ac_count=$as_val
6084 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6085 # Best one so far, save it but keep looking for a better one
6086 ac_cv_path_FGREP="$ac_path_FGREP"
6087 ac_path_FGREP_max=$ac_count
6089 # 10*(2^10) chars as input seems more than enough
6090 test $ac_count -gt 10 && break
6091 done
6092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6093 esac
6095 $ac_path_FGREP_found && break 3
6096 done
6097 done
6098 done
6099 IFS=$as_save_IFS
6100 if test -z "$ac_cv_path_FGREP"; then
6101 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6103 else
6104 ac_cv_path_FGREP=$FGREP
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6110 $as_echo "$ac_cv_path_FGREP" >&6; }
6111 FGREP="$ac_cv_path_FGREP"
6114 test -z "$GREP" && GREP=grep
6134 # Check whether --with-gnu-ld was given.
6135 if test "${with_gnu_ld+set}" = set; then :
6136 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6137 else
6138 with_gnu_ld=no
6141 ac_prog=ld
6142 if test "$GCC" = yes; then
6143 # Check if gcc -print-prog-name=ld gives a path.
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6145 $as_echo_n "checking for ld used by $CC... " >&6; }
6146 case $host in
6147 *-*-mingw*)
6148 # gcc leaves a trailing carriage return which upsets mingw
6149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6152 esac
6153 case $ac_prog in
6154 # Accept absolute paths.
6155 [\\/]* | ?:[\\/]*)
6156 re_direlt='/[^/][^/]*/\.\./'
6157 # Canonicalize the pathname of ld
6158 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6159 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6160 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6161 done
6162 test -z "$LD" && LD="$ac_prog"
6165 # If it fails, then pretend we aren't using GCC.
6166 ac_prog=ld
6169 # If it is relative, then search for the first ld in PATH.
6170 with_gnu_ld=unknown
6172 esac
6173 elif test "$with_gnu_ld" = yes; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6175 $as_echo_n "checking for GNU ld... " >&6; }
6176 else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6178 $as_echo_n "checking for non-GNU ld... " >&6; }
6180 if test "${lt_cv_path_LD+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -z "$LD"; then
6184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6185 for ac_dir in $PATH; do
6186 IFS="$lt_save_ifs"
6187 test -z "$ac_dir" && ac_dir=.
6188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6189 lt_cv_path_LD="$ac_dir/$ac_prog"
6190 # Check to see if the program is GNU ld. I'd rather use --version,
6191 # but apparently some variants of GNU ld only accept -v.
6192 # Break only if it was the GNU/non-GNU ld that we prefer.
6193 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6194 *GNU* | *'with BFD'*)
6195 test "$with_gnu_ld" != no && break
6198 test "$with_gnu_ld" != yes && break
6200 esac
6202 done
6203 IFS="$lt_save_ifs"
6204 else
6205 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6209 LD="$lt_cv_path_LD"
6210 if test -n "$LD"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6212 $as_echo "$LD" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6217 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6219 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6220 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6224 case `$LD -v 2>&1 </dev/null` in
6225 *GNU* | *'with BFD'*)
6226 lt_cv_prog_gnu_ld=yes
6229 lt_cv_prog_gnu_ld=no
6231 esac
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6234 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6235 with_gnu_ld=$lt_cv_prog_gnu_ld
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6246 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6247 if test "${lt_cv_path_NM+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$NM"; then
6251 # Let the user override the test.
6252 lt_cv_path_NM="$NM"
6253 else
6254 lt_nm_to_check="${ac_tool_prefix}nm"
6255 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6256 lt_nm_to_check="$lt_nm_to_check nm"
6258 for lt_tmp_nm in $lt_nm_to_check; do
6259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6260 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6261 IFS="$lt_save_ifs"
6262 test -z "$ac_dir" && ac_dir=.
6263 tmp_nm="$ac_dir/$lt_tmp_nm"
6264 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6265 # Check to see if the nm accepts a BSD-compat flag.
6266 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6267 # nm: unknown option "B" ignored
6268 # Tru64's nm complains that /dev/null is an invalid object file
6269 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6270 */dev/null* | *'Invalid file or object type'*)
6271 lt_cv_path_NM="$tmp_nm -B"
6272 break
6275 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6276 */dev/null*)
6277 lt_cv_path_NM="$tmp_nm -p"
6278 break
6281 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6282 continue # so that we can try to find one that supports BSD flags
6284 esac
6286 esac
6288 done
6289 IFS="$lt_save_ifs"
6290 done
6291 : ${lt_cv_path_NM=no}
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6295 $as_echo "$lt_cv_path_NM" >&6; }
6296 if test "$lt_cv_path_NM" != "no"; then
6297 NM="$lt_cv_path_NM"
6298 else
6299 # Didn't find any BSD compatible name lister, look for dumpbin.
6300 if test -n "$DUMPBIN"; then :
6301 # Let the user override the test.
6302 else
6303 if test -n "$ac_tool_prefix"; then
6304 for ac_prog in dumpbin "link -dump"
6306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$DUMPBIN"; then
6314 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6329 IFS=$as_save_IFS
6333 DUMPBIN=$ac_cv_prog_DUMPBIN
6334 if test -n "$DUMPBIN"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6336 $as_echo "$DUMPBIN" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6343 test -n "$DUMPBIN" && break
6344 done
6346 if test -z "$DUMPBIN"; then
6347 ac_ct_DUMPBIN=$DUMPBIN
6348 for ac_prog in dumpbin "link -dump"
6350 # Extract the first word of "$ac_prog", so it can be a program name with args.
6351 set dummy $ac_prog; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$ac_ct_DUMPBIN"; then
6358 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6371 done
6372 done
6373 IFS=$as_save_IFS
6377 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6378 if test -n "$ac_ct_DUMPBIN"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6380 $as_echo "$ac_ct_DUMPBIN" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6387 test -n "$ac_ct_DUMPBIN" && break
6388 done
6390 if test "x$ac_ct_DUMPBIN" = x; then
6391 DUMPBIN=":"
6392 else
6393 case $cross_compiling:$ac_tool_warned in
6394 yes:)
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6397 ac_tool_warned=yes ;;
6398 esac
6399 DUMPBIN=$ac_ct_DUMPBIN
6403 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6404 *COFF*)
6405 DUMPBIN="$DUMPBIN -symbols"
6408 DUMPBIN=:
6410 esac
6413 if test "$DUMPBIN" != ":"; then
6414 NM="$DUMPBIN"
6417 test -z "$NM" && NM=nm
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6425 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6426 if test "${lt_cv_nm_interface+set}" = set; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 lt_cv_nm_interface="BSD nm"
6430 echo "int some_variable = 0;" > conftest.$ac_ext
6431 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6432 (eval "$ac_compile" 2>conftest.err)
6433 cat conftest.err >&5
6434 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6435 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6436 cat conftest.err >&5
6437 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6438 cat conftest.out >&5
6439 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6440 lt_cv_nm_interface="MS dumpbin"
6442 rm -f conftest*
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6445 $as_echo "$lt_cv_nm_interface" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6448 $as_echo_n "checking whether ln -s works... " >&6; }
6449 LN_S=$as_ln_s
6450 if test "$LN_S" = "ln -s"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6452 $as_echo "yes" >&6; }
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6455 $as_echo "no, using $LN_S" >&6; }
6458 # find the maximum length of command line arguments
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6460 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6461 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6465 teststring="ABCD"
6467 case $build_os in
6468 msdosdjgpp*)
6469 # On DJGPP, this test can blow up pretty badly due to problems in libc
6470 # (any single argument exceeding 2000 bytes causes a buffer overrun
6471 # during glob expansion). Even if it were fixed, the result of this
6472 # check would be larger than it should be.
6473 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6476 gnu*)
6477 # Under GNU Hurd, this test is not required because there is
6478 # no limit to the length of command line arguments.
6479 # Libtool will interpret -1 as no limit whatsoever
6480 lt_cv_sys_max_cmd_len=-1;
6483 cygwin* | mingw* | cegcc*)
6484 # On Win9x/ME, this test blows up -- it succeeds, but takes
6485 # about 5 minutes as the teststring grows exponentially.
6486 # Worse, since 9x/ME are not pre-emptively multitasking,
6487 # you end up with a "frozen" computer, even though with patience
6488 # the test eventually succeeds (with a max line length of 256k).
6489 # Instead, let's just punt: use the minimum linelength reported by
6490 # all of the supported platforms: 8192 (on NT/2K/XP).
6491 lt_cv_sys_max_cmd_len=8192;
6494 mint*)
6495 # On MiNT this can take a long time and run out of memory.
6496 lt_cv_sys_max_cmd_len=8192;
6499 amigaos*)
6500 # On AmigaOS with pdksh, this test takes hours, literally.
6501 # So we just punt and use a minimum line length of 8192.
6502 lt_cv_sys_max_cmd_len=8192;
6505 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6506 # This has been around since 386BSD, at least. Likely further.
6507 if test -x /sbin/sysctl; then
6508 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6509 elif test -x /usr/sbin/sysctl; then
6510 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6511 else
6512 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6514 # And add a safety zone
6515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6519 interix*)
6520 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6521 lt_cv_sys_max_cmd_len=196608
6524 osf*)
6525 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6526 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6527 # nice to cause kernel panics so lets avoid the loop below.
6528 # First set a reasonable default.
6529 lt_cv_sys_max_cmd_len=16384
6531 if test -x /sbin/sysconfig; then
6532 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6533 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6534 esac
6537 sco3.2v5*)
6538 lt_cv_sys_max_cmd_len=102400
6540 sysv5* | sco5v6* | sysv4.2uw2*)
6541 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6542 if test -n "$kargmax"; then
6543 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6544 else
6545 lt_cv_sys_max_cmd_len=32768
6549 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6550 if test -n "$lt_cv_sys_max_cmd_len"; then
6551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6553 else
6554 # Make teststring a little bigger before we do anything with it.
6555 # a 1K string should be a reasonable start.
6556 for i in 1 2 3 4 5 6 7 8 ; do
6557 teststring=$teststring$teststring
6558 done
6559 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6560 # If test is not a shell built-in, we'll probably end up computing a
6561 # maximum length that is only half of the actual maximum length, but
6562 # we can't tell.
6563 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6564 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6565 test $i != 17 # 1/2 MB should be enough
6567 i=`expr $i + 1`
6568 teststring=$teststring$teststring
6569 done
6570 # Only check the string length outside the loop.
6571 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6572 teststring=
6573 # Add a significant safety factor because C++ compilers can tack on
6574 # massive amounts of additional arguments before passing them to the
6575 # linker. It appears as though 1/2 is a usable value.
6576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6579 esac
6583 if test -n $lt_cv_sys_max_cmd_len ; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6585 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6588 $as_echo "none" >&6; }
6590 max_cmd_len=$lt_cv_sys_max_cmd_len
6597 : ${CP="cp -f"}
6598 : ${MV="mv -f"}
6599 : ${RM="rm -f"}
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6602 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6603 # Try some XSI features
6604 xsi_shell=no
6605 ( _lt_dummy="a/b/c"
6606 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6607 = c,a/b,, \
6608 && eval 'test $(( 1 + 1 )) -eq 2 \
6609 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6610 && xsi_shell=yes
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6612 $as_echo "$xsi_shell" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6616 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6617 lt_shell_append=no
6618 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6619 >/dev/null 2>&1 \
6620 && lt_shell_append=yes
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6622 $as_echo "$lt_shell_append" >&6; }
6625 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6626 lt_unset=unset
6627 else
6628 lt_unset=false
6635 # test EBCDIC or ASCII
6636 case `echo X|tr X '\101'` in
6637 A) # ASCII based system
6638 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6639 lt_SP2NL='tr \040 \012'
6640 lt_NL2SP='tr \015\012 \040\040'
6642 *) # EBCDIC based system
6643 lt_SP2NL='tr \100 \n'
6644 lt_NL2SP='tr \r\n \100\100'
6646 esac
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6657 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6658 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 lt_cv_ld_reload_flag='-r'
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6664 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6665 reload_flag=$lt_cv_ld_reload_flag
6666 case $reload_flag in
6667 "" | " "*) ;;
6668 *) reload_flag=" $reload_flag" ;;
6669 esac
6670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6671 case $host_os in
6672 darwin*)
6673 if test "$GCC" = yes; then
6674 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6675 else
6676 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6679 esac
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$OBJDUMP"; then
6698 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6717 OBJDUMP=$ac_cv_prog_OBJDUMP
6718 if test -n "$OBJDUMP"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6720 $as_echo "$OBJDUMP" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6728 if test -z "$ac_cv_prog_OBJDUMP"; then
6729 ac_ct_OBJDUMP=$OBJDUMP
6730 # Extract the first word of "objdump", so it can be a program name with args.
6731 set dummy objdump; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$ac_ct_OBJDUMP"; then
6738 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6757 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6758 if test -n "$ac_ct_OBJDUMP"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6760 $as_echo "$ac_ct_OBJDUMP" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6766 if test "x$ac_ct_OBJDUMP" = x; then
6767 OBJDUMP="false"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 OBJDUMP=$ac_ct_OBJDUMP
6777 else
6778 OBJDUMP="$ac_cv_prog_OBJDUMP"
6781 test -z "$OBJDUMP" && OBJDUMP=objdump
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6792 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6793 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 lt_cv_file_magic_cmd='$MAGIC_CMD'
6797 lt_cv_file_magic_test_file=
6798 lt_cv_deplibs_check_method='unknown'
6799 # Need to set the preceding variable on all platforms that support
6800 # interlibrary dependencies.
6801 # 'none' -- dependencies not supported.
6802 # `unknown' -- same as none, but documents that we really don't know.
6803 # 'pass_all' -- all dependencies passed with no checks.
6804 # 'test_compile' -- check by making test program.
6805 # 'file_magic [[regex]]' -- check by looking for files in library path
6806 # which responds to the $file_magic_cmd with a given extended regex.
6807 # If you have `file' or equivalent on your system and you're not sure
6808 # whether `pass_all' will *always* work, you probably want this one.
6810 case $host_os in
6811 aix[4-9]*)
6812 lt_cv_deplibs_check_method=pass_all
6815 beos*)
6816 lt_cv_deplibs_check_method=pass_all
6819 bsdi[45]*)
6820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6821 lt_cv_file_magic_cmd='/usr/bin/file -L'
6822 lt_cv_file_magic_test_file=/shlib/libc.so
6825 cygwin*)
6826 # func_win32_libid is a shell function defined in ltmain.sh
6827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6828 lt_cv_file_magic_cmd='func_win32_libid'
6831 mingw* | pw32*)
6832 # Base MSYS/MinGW do not provide the 'file' command needed by
6833 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6834 # unless we find 'file', for example because we are cross-compiling.
6835 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6836 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6837 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6838 lt_cv_file_magic_cmd='func_win32_libid'
6839 else
6840 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6841 lt_cv_file_magic_cmd='$OBJDUMP -f'
6845 cegcc*)
6846 # use the weaker test based on 'objdump'. See mingw*.
6847 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6848 lt_cv_file_magic_cmd='$OBJDUMP -f'
6851 darwin* | rhapsody*)
6852 lt_cv_deplibs_check_method=pass_all
6855 freebsd* | dragonfly*)
6856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6857 case $host_cpu in
6858 i*86 )
6859 # Not sure whether the presence of OpenBSD here was a mistake.
6860 # Let's accept both of them until this is cleared up.
6861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6862 lt_cv_file_magic_cmd=/usr/bin/file
6863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6865 esac
6866 else
6867 lt_cv_deplibs_check_method=pass_all
6871 gnu*)
6872 lt_cv_deplibs_check_method=pass_all
6875 haiku*)
6876 lt_cv_deplibs_check_method=pass_all
6879 hpux10.20* | hpux11*)
6880 lt_cv_file_magic_cmd=/usr/bin/file
6881 case $host_cpu in
6882 ia64*)
6883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6884 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6886 hppa*64*)
6887 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]'
6888 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6892 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6894 esac
6897 interix[3-9]*)
6898 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6902 irix5* | irix6* | nonstopux*)
6903 case $LD in
6904 *-32|*"-32 ") libmagic=32-bit;;
6905 *-n32|*"-n32 ") libmagic=N32;;
6906 *-64|*"-64 ") libmagic=64-bit;;
6907 *) libmagic=never-match;;
6908 esac
6909 lt_cv_deplibs_check_method=pass_all
6912 # This must be Linux ELF.
6913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6914 lt_cv_deplibs_check_method=pass_all
6917 netbsd*)
6918 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6920 else
6921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6925 newos6*)
6926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6927 lt_cv_file_magic_cmd=/usr/bin/file
6928 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6931 *nto* | *qnx*)
6932 lt_cv_deplibs_check_method=pass_all
6935 openbsd*)
6936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6938 else
6939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6943 osf3* | osf4* | osf5*)
6944 lt_cv_deplibs_check_method=pass_all
6947 rdos*)
6948 lt_cv_deplibs_check_method=pass_all
6951 solaris*)
6952 lt_cv_deplibs_check_method=pass_all
6955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6956 lt_cv_deplibs_check_method=pass_all
6959 sysv4 | sysv4.3*)
6960 case $host_vendor in
6961 motorola)
6962 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]'
6963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6965 ncr)
6966 lt_cv_deplibs_check_method=pass_all
6968 sequent)
6969 lt_cv_file_magic_cmd='/bin/file'
6970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6972 sni)
6973 lt_cv_file_magic_cmd='/bin/file'
6974 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6975 lt_cv_file_magic_test_file=/lib/libc.so
6977 siemens)
6978 lt_cv_deplibs_check_method=pass_all
6981 lt_cv_deplibs_check_method=pass_all
6983 esac
6986 tpf*)
6987 lt_cv_deplibs_check_method=pass_all
6989 esac
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6993 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6994 file_magic_cmd=$lt_cv_file_magic_cmd
6995 deplibs_check_method=$lt_cv_deplibs_check_method
6996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}ar; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_AR+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$AR"; then
7018 ac_cv_prog_AR="$AR" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_AR="${ac_tool_prefix}ar"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7037 AR=$ac_cv_prog_AR
7038 if test -n "$AR"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7040 $as_echo "$AR" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_AR"; then
7049 ac_ct_AR=$AR
7050 # Extract the first word of "ar", so it can be a program name with args.
7051 set dummy ar; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 if test -n "$ac_ct_AR"; then
7058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7059 else
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_AR="ar"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7071 done
7072 done
7073 IFS=$as_save_IFS
7077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7078 if test -n "$ac_ct_AR"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7080 $as_echo "$ac_ct_AR" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_AR" = x; then
7087 AR="false"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090 yes:)
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7094 esac
7095 AR=$ac_ct_AR
7097 else
7098 AR="$ac_cv_prog_AR"
7101 test -z "$AR" && AR=ar
7102 test -z "$AR_FLAGS" && AR_FLAGS=cru
7114 if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}strip; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if test "${ac_cv_prog_STRIP+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$STRIP"; then
7123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7136 done
7137 done
7138 IFS=$as_save_IFS
7142 STRIP=$ac_cv_prog_STRIP
7143 if test -n "$STRIP"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7145 $as_echo "$STRIP" >&6; }
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7153 if test -z "$ac_cv_prog_STRIP"; then
7154 ac_ct_STRIP=$STRIP
7155 # Extract the first word of "strip", so it can be a program name with args.
7156 set dummy strip; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 if test -n "$ac_ct_STRIP"; then
7163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_ac_ct_STRIP="strip"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7176 done
7177 done
7178 IFS=$as_save_IFS
7182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7183 if test -n "$ac_ct_STRIP"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7185 $as_echo "$ac_ct_STRIP" >&6; }
7186 else
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7191 if test "x$ac_ct_STRIP" = x; then
7192 STRIP=":"
7193 else
7194 case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7198 ac_tool_warned=yes ;;
7199 esac
7200 STRIP=$ac_ct_STRIP
7202 else
7203 STRIP="$ac_cv_prog_STRIP"
7206 test -z "$STRIP" && STRIP=:
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7219 $as_echo_n "(cached) " >&6
7220 else
7221 if test -n "$RANLIB"; then
7222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7235 done
7236 done
7237 IFS=$as_save_IFS
7241 RANLIB=$ac_cv_prog_RANLIB
7242 if test -n "$RANLIB"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7244 $as_echo "$RANLIB" >&6; }
7245 else
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7252 if test -z "$ac_cv_prog_RANLIB"; then
7253 ac_ct_RANLIB=$RANLIB
7254 # Extract the first word of "ranlib", so it can be a program name with args.
7255 set dummy ranlib; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 if test -n "$ac_ct_RANLIB"; then
7262 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_ac_ct_RANLIB="ranlib"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7275 done
7276 done
7277 IFS=$as_save_IFS
7281 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7282 if test -n "$ac_ct_RANLIB"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7284 $as_echo "$ac_ct_RANLIB" >&6; }
7285 else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7290 if test "x$ac_ct_RANLIB" = x; then
7291 RANLIB=":"
7292 else
7293 case $cross_compiling:$ac_tool_warned in
7294 yes:)
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7297 ac_tool_warned=yes ;;
7298 esac
7299 RANLIB=$ac_ct_RANLIB
7301 else
7302 RANLIB="$ac_cv_prog_RANLIB"
7305 test -z "$RANLIB" && RANLIB=:
7312 # Determine commands to create old-style static archives.
7313 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7314 old_postinstall_cmds='chmod 644 $oldlib'
7315 old_postuninstall_cmds=
7317 if test -n "$RANLIB"; then
7318 case $host_os in
7319 openbsd*)
7320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7323 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7325 esac
7326 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7329 case $host_os in
7330 darwin*)
7331 lock_old_archive_extraction=yes ;;
7333 lock_old_archive_extraction=no ;;
7334 esac
7374 # If no C compiler was specified, use CC.
7375 LTCC=${LTCC-"$CC"}
7377 # If no C compiler flags were specified, use CFLAGS.
7378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7380 # Allow CC to be a program name with arguments.
7381 compiler=$CC
7384 # Check for command to grab the raw symbol name followed by C symbol from nm.
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7386 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7387 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7391 # These are sane defaults that work on at least a few old systems.
7392 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7394 # Character class describing NM global symbol codes.
7395 symcode='[BCDEGRST]'
7397 # Regexp to match symbols that can be accessed directly from C.
7398 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7400 # Define system-specific variables.
7401 case $host_os in
7402 aix*)
7403 symcode='[BCDT]'
7405 cygwin* | mingw* | pw32* | cegcc*)
7406 symcode='[ABCDGISTW]'
7408 hpux*)
7409 if test "$host_cpu" = ia64; then
7410 symcode='[ABCDEGRST]'
7413 irix* | nonstopux*)
7414 symcode='[BCDEGRST]'
7416 osf*)
7417 symcode='[BCDEGQRST]'
7419 solaris*)
7420 symcode='[BDRT]'
7422 sco3.2v5*)
7423 symcode='[DT]'
7425 sysv4.2uw2*)
7426 symcode='[DT]'
7428 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7429 symcode='[ABDT]'
7431 sysv4)
7432 symcode='[DFNSTU]'
7434 esac
7436 # If we're using GNU nm, then use its standard symbol codes.
7437 case `$NM -V 2>&1` in
7438 *GNU* | *'with BFD'*)
7439 symcode='[ABCDGIRSTW]' ;;
7440 esac
7442 # Transform an extracted symbol line into a proper C declaration.
7443 # Some systems (esp. on ia64) link data and code symbols differently,
7444 # so use this general approach.
7445 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7447 # Transform an extracted symbol line into symbol name and symbol address
7448 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7449 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'"
7451 # Handle CRLF in mingw tool chain
7452 opt_cr=
7453 case $build_os in
7454 mingw*)
7455 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7457 esac
7459 # Try without a prefix underscore, then with it.
7460 for ac_symprfx in "" "_"; do
7462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7463 symxfrm="\\1 $ac_symprfx\\2 \\2"
7465 # Write the raw and C identifiers.
7466 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7467 # Fake it for dumpbin and say T for any non-static function
7468 # and D for any global variable.
7469 # Also find C++ and __fastcall symbols from MSVC++,
7470 # which start with @ or ?.
7471 lt_cv_sys_global_symbol_pipe="$AWK '"\
7472 " {last_section=section; section=\$ 3};"\
7473 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7474 " \$ 0!~/External *\|/{next};"\
7475 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7476 " {if(hide[section]) next};"\
7477 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7478 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7479 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7480 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7481 " ' prfx=^$ac_symprfx"
7482 else
7483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7486 # Check to see that the pipe works correctly.
7487 pipe_works=no
7489 rm -f conftest*
7490 cat > conftest.$ac_ext <<_LT_EOF
7491 #ifdef __cplusplus
7492 extern "C" {
7493 #endif
7494 char nm_test_var;
7495 void nm_test_func(void);
7496 void nm_test_func(void){}
7497 #ifdef __cplusplus
7499 #endif
7500 int main(){nm_test_var='a';nm_test_func();return(0);}
7501 _LT_EOF
7503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504 (eval $ac_compile) 2>&5
7505 ac_status=$?
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; }; then
7508 # Now try to grab the symbols.
7509 nlist=conftest.nm
7510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7511 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7512 ac_status=$?
7513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7514 test $ac_status = 0; } && test -s "$nlist"; then
7515 # Try sorting and uniquifying the output.
7516 if sort "$nlist" | uniq > "$nlist"T; then
7517 mv -f "$nlist"T "$nlist"
7518 else
7519 rm -f "$nlist"T
7522 # Make sure that we snagged all the symbols we need.
7523 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7524 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7525 cat <<_LT_EOF > conftest.$ac_ext
7526 #ifdef __cplusplus
7527 extern "C" {
7528 #endif
7530 _LT_EOF
7531 # Now generate the symbol file.
7532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7534 cat <<_LT_EOF >> conftest.$ac_ext
7536 /* The mapping between symbol names and symbols. */
7537 const struct {
7538 const char *name;
7539 void *address;
7541 lt__PROGRAM__LTX_preloaded_symbols[] =
7543 { "@PROGRAM@", (void *) 0 },
7544 _LT_EOF
7545 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7546 cat <<\_LT_EOF >> conftest.$ac_ext
7547 {0, (void *) 0}
7550 /* This works around a problem in FreeBSD linker */
7551 #ifdef FREEBSD_WORKAROUND
7552 static const void *lt_preloaded_setup() {
7553 return lt__PROGRAM__LTX_preloaded_symbols;
7555 #endif
7557 #ifdef __cplusplus
7559 #endif
7560 _LT_EOF
7561 # Now try linking the two files.
7562 mv conftest.$ac_objext conftstm.$ac_objext
7563 lt_save_LIBS="$LIBS"
7564 lt_save_CFLAGS="$CFLAGS"
7565 LIBS="conftstm.$ac_objext"
7566 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7568 (eval $ac_link) 2>&5
7569 ac_status=$?
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7572 pipe_works=yes
7574 LIBS="$lt_save_LIBS"
7575 CFLAGS="$lt_save_CFLAGS"
7576 else
7577 echo "cannot find nm_test_func in $nlist" >&5
7579 else
7580 echo "cannot find nm_test_var in $nlist" >&5
7582 else
7583 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7585 else
7586 echo "$progname: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 rm -rf conftest* conftst*
7591 # Do not use the global_symbol_pipe unless it works.
7592 if test "$pipe_works" = yes; then
7593 break
7594 else
7595 lt_cv_sys_global_symbol_pipe=
7597 done
7601 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7602 lt_cv_sys_global_symbol_to_cdecl=
7604 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7606 $as_echo "failed" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7609 $as_echo "ok" >&6; }
7633 # Check whether --enable-libtool-lock was given.
7634 if test "${enable_libtool_lock+set}" = set; then :
7635 enableval=$enable_libtool_lock;
7638 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7640 # Some flags need to be propagated to the compiler or linker for good
7641 # libtool support.
7642 case $host in
7643 ia64-*-hpux*)
7644 # Find out which ABI we are using.
7645 echo 'int i;' > conftest.$ac_ext
7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7647 (eval $ac_compile) 2>&5
7648 ac_status=$?
7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; }; then
7651 case `/usr/bin/file conftest.$ac_objext` in
7652 *ELF-32*)
7653 HPUX_IA64_MODE="32"
7655 *ELF-64*)
7656 HPUX_IA64_MODE="64"
7658 esac
7660 rm -rf conftest*
7662 *-*-irix6*)
7663 # Find out which ABI we are using.
7664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7666 (eval $ac_compile) 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; }; then
7670 if test "$lt_cv_prog_gnu_ld" = yes; then
7671 case `/usr/bin/file conftest.$ac_objext` in
7672 *32-bit*)
7673 LD="${LD-ld} -melf32bsmip"
7675 *N32*)
7676 LD="${LD-ld} -melf32bmipn32"
7678 *64-bit*)
7679 LD="${LD-ld} -melf64bmip"
7681 esac
7682 else
7683 case `/usr/bin/file conftest.$ac_objext` in
7684 *32-bit*)
7685 LD="${LD-ld} -32"
7687 *N32*)
7688 LD="${LD-ld} -n32"
7690 *64-bit*)
7691 LD="${LD-ld} -64"
7693 esac
7696 rm -rf conftest*
7699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7701 # Find out which ABI we are using.
7702 echo 'int i;' > conftest.$ac_ext
7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 case `/usr/bin/file conftest.o` in
7709 *32-bit*)
7710 case $host in
7711 x86_64-*kfreebsd*-gnu)
7712 LD="${LD-ld} -m elf_i386_fbsd"
7714 x86_64-*linux*)
7715 case `/usr/bin/file conftest.o` in
7716 *x86-64*)
7717 LD="${LD-ld} -m elf32_x86_64"
7720 LD="${LD-ld} -m elf_i386"
7722 esac
7724 powerpc64le-*linux*)
7725 LD="${LD-ld} -m elf32lppclinux"
7727 powerpc64-*linux*)
7728 LD="${LD-ld} -m elf32ppclinux"
7730 s390x-*linux*)
7731 LD="${LD-ld} -m elf_s390"
7733 sparc64-*linux*)
7734 LD="${LD-ld} -m elf32_sparc"
7736 esac
7738 *64-bit*)
7739 case $host in
7740 x86_64-*kfreebsd*-gnu)
7741 LD="${LD-ld} -m elf_x86_64_fbsd"
7743 x86_64-*linux*)
7744 LD="${LD-ld} -m elf_x86_64"
7746 powerpcle-*linux*)
7747 LD="${LD-ld} -m elf64lppc"
7749 powerpc-*linux*)
7750 LD="${LD-ld} -m elf64ppc"
7752 s390*-*linux*|s390*-*tpf*)
7753 LD="${LD-ld} -m elf64_s390"
7755 sparc*-*linux*)
7756 LD="${LD-ld} -m elf64_sparc"
7758 esac
7760 esac
7762 rm -rf conftest*
7765 *-*-sco3.2v5*)
7766 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7767 SAVE_CFLAGS="$CFLAGS"
7768 CFLAGS="$CFLAGS -belf"
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7770 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7771 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 ac_ext=c
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7784 main ()
7788 return 0;
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 lt_cv_cc_needs_belf=yes
7793 else
7794 lt_cv_cc_needs_belf=no
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 ac_ext=c
7799 ac_cpp='$CPP $CPPFLAGS'
7800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7806 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7807 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7808 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7809 CFLAGS="$SAVE_CFLAGS"
7812 sparc*-*solaris*)
7813 # Find out which ABI we are using.
7814 echo 'int i;' > conftest.$ac_ext
7815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7816 (eval $ac_compile) 2>&5
7817 ac_status=$?
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; }; then
7820 case `/usr/bin/file conftest.o` in
7821 *64-bit*)
7822 case $lt_cv_prog_gnu_ld in
7823 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7825 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7826 LD="${LD-ld} -64"
7829 esac
7831 esac
7833 rm -rf conftest*
7835 esac
7837 need_locks="$enable_libtool_lock"
7840 case $host_os in
7841 rhapsody* | darwin*)
7842 if test -n "$ac_tool_prefix"; then
7843 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7844 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$DSYMUTIL"; then
7851 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7864 done
7865 done
7866 IFS=$as_save_IFS
7870 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7871 if test -n "$DSYMUTIL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7873 $as_echo "$DSYMUTIL" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 if test -z "$ac_cv_prog_DSYMUTIL"; then
7882 ac_ct_DSYMUTIL=$DSYMUTIL
7883 # Extract the first word of "dsymutil", so it can be a program name with args.
7884 set dummy dsymutil; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$ac_ct_DSYMUTIL"; then
7891 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7911 if test -n "$ac_ct_DSYMUTIL"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7913 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7919 if test "x$ac_ct_DSYMUTIL" = x; then
7920 DSYMUTIL=":"
7921 else
7922 case $cross_compiling:$ac_tool_warned in
7923 yes:)
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926 ac_tool_warned=yes ;;
7927 esac
7928 DSYMUTIL=$ac_ct_DSYMUTIL
7930 else
7931 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7934 if test -n "$ac_tool_prefix"; then
7935 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7936 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 $as_echo_n "checking for $ac_word... " >&6; }
7939 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -n "$NMEDIT"; then
7943 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7944 else
7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 for as_dir in $PATH
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7952 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7956 done
7957 done
7958 IFS=$as_save_IFS
7962 NMEDIT=$ac_cv_prog_NMEDIT
7963 if test -n "$NMEDIT"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7965 $as_echo "$NMEDIT" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7973 if test -z "$ac_cv_prog_NMEDIT"; then
7974 ac_ct_NMEDIT=$NMEDIT
7975 # Extract the first word of "nmedit", so it can be a program name with args.
7976 set dummy nmedit; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 if test -n "$ac_ct_NMEDIT"; then
7983 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7992 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7996 done
7997 done
7998 IFS=$as_save_IFS
8002 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8003 if test -n "$ac_ct_NMEDIT"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8005 $as_echo "$ac_ct_NMEDIT" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8011 if test "x$ac_ct_NMEDIT" = x; then
8012 NMEDIT=":"
8013 else
8014 case $cross_compiling:$ac_tool_warned in
8015 yes:)
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018 ac_tool_warned=yes ;;
8019 esac
8020 NMEDIT=$ac_ct_NMEDIT
8022 else
8023 NMEDIT="$ac_cv_prog_NMEDIT"
8026 if test -n "$ac_tool_prefix"; then
8027 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8028 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if test "${ac_cv_prog_LIPO+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 if test -n "$LIPO"; then
8035 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8048 done
8049 done
8050 IFS=$as_save_IFS
8054 LIPO=$ac_cv_prog_LIPO
8055 if test -n "$LIPO"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8057 $as_echo "$LIPO" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8065 if test -z "$ac_cv_prog_LIPO"; then
8066 ac_ct_LIPO=$LIPO
8067 # Extract the first word of "lipo", so it can be a program name with args.
8068 set dummy lipo; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$ac_ct_LIPO"; then
8075 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_ac_ct_LIPO="lipo"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8095 if test -n "$ac_ct_LIPO"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8097 $as_echo "$ac_ct_LIPO" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8103 if test "x$ac_ct_LIPO" = x; then
8104 LIPO=":"
8105 else
8106 case $cross_compiling:$ac_tool_warned in
8107 yes:)
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110 ac_tool_warned=yes ;;
8111 esac
8112 LIPO=$ac_ct_LIPO
8114 else
8115 LIPO="$ac_cv_prog_LIPO"
8118 if test -n "$ac_tool_prefix"; then
8119 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8120 set dummy ${ac_tool_prefix}otool; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$OTOOL"; then
8127 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8140 done
8141 done
8142 IFS=$as_save_IFS
8146 OTOOL=$ac_cv_prog_OTOOL
8147 if test -n "$OTOOL"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8149 $as_echo "$OTOOL" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8157 if test -z "$ac_cv_prog_OTOOL"; then
8158 ac_ct_OTOOL=$OTOOL
8159 # Extract the first word of "otool", so it can be a program name with args.
8160 set dummy otool; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$ac_ct_OTOOL"; then
8167 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_prog_ac_ct_OTOOL="otool"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8186 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8187 if test -n "$ac_ct_OTOOL"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8189 $as_echo "$ac_ct_OTOOL" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8195 if test "x$ac_ct_OTOOL" = x; then
8196 OTOOL=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199 yes:)
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202 ac_tool_warned=yes ;;
8203 esac
8204 OTOOL=$ac_ct_OTOOL
8206 else
8207 OTOOL="$ac_cv_prog_OTOOL"
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$OTOOL64"; then
8219 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8232 done
8233 done
8234 IFS=$as_save_IFS
8238 OTOOL64=$ac_cv_prog_OTOOL64
8239 if test -n "$OTOOL64"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8241 $as_echo "$OTOOL64" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 if test -z "$ac_cv_prog_OTOOL64"; then
8250 ac_ct_OTOOL64=$OTOOL64
8251 # Extract the first word of "otool64", so it can be a program name with args.
8252 set dummy otool64; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 if test -n "$ac_ct_OTOOL64"; then
8259 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8268 ac_cv_prog_ac_ct_OTOOL64="otool64"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8272 done
8273 done
8274 IFS=$as_save_IFS
8278 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8279 if test -n "$ac_ct_OTOOL64"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8281 $as_echo "$ac_ct_OTOOL64" >&6; }
8282 else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8287 if test "x$ac_ct_OTOOL64" = x; then
8288 OTOOL64=":"
8289 else
8290 case $cross_compiling:$ac_tool_warned in
8291 yes:)
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8295 esac
8296 OTOOL64=$ac_ct_OTOOL64
8298 else
8299 OTOOL64="$ac_cv_prog_OTOOL64"
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8329 $as_echo_n "checking for -single_module linker flag... " >&6; }
8330 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 lt_cv_apple_cc_single_mod=no
8334 if test -z "${LT_MULTI_MODULE}"; then
8335 # By default we will add the -single_module flag. You can override
8336 # by either setting the environment variable LT_MULTI_MODULE
8337 # non-empty at configure time, or by adding -multi_module to the
8338 # link flags.
8339 rm -rf libconftest.dylib*
8340 echo "int foo(void){return 1;}" > conftest.c
8341 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8342 -dynamiclib -Wl,-single_module conftest.c" >&5
8343 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8344 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8345 _lt_result=$?
8346 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8347 lt_cv_apple_cc_single_mod=yes
8348 else
8349 cat conftest.err >&5
8351 rm -rf libconftest.dylib*
8352 rm -f conftest.*
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8356 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8358 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8359 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 lt_cv_ld_exported_symbols_list=no
8363 save_LDFLAGS=$LDFLAGS
8364 echo "_main" > conftest.sym
8365 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8370 main ()
8374 return 0;
8376 _ACEOF
8377 if ac_fn_c_try_link "$LINENO"; then :
8378 lt_cv_ld_exported_symbols_list=yes
8379 else
8380 lt_cv_ld_exported_symbols_list=no
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LDFLAGS="$save_LDFLAGS"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8388 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8390 $as_echo_n "checking for -force_load linker flag... " >&6; }
8391 if test "${lt_cv_ld_force_load+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 lt_cv_ld_force_load=no
8395 cat > conftest.c << _LT_EOF
8396 int forced_loaded() { return 2;}
8397 _LT_EOF
8398 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8399 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8400 echo "$AR cru libconftest.a conftest.o" >&5
8401 $AR cru libconftest.a conftest.o 2>&5
8402 cat > conftest.c << _LT_EOF
8403 int main() { return 0;}
8404 _LT_EOF
8405 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8406 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8407 _lt_result=$?
8408 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8409 lt_cv_ld_force_load=yes
8410 else
8411 cat conftest.err >&5
8413 rm -f conftest.err libconftest.a conftest conftest.c
8414 rm -rf conftest.dSYM
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8418 $as_echo "$lt_cv_ld_force_load" >&6; }
8419 case $host_os in
8420 rhapsody* | darwin1.[012])
8421 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8422 darwin1.*)
8423 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8424 darwin*) # darwin 5.x on
8425 # if running on 10.5 or later, the deployment target defaults
8426 # to the OS version, if on x86, and 10.4, the deployment
8427 # target defaults to 10.4. Don't you love it?
8428 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8429 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8430 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8431 10.[012][,.]*)
8432 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8433 10.*)
8434 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8435 esac
8437 esac
8438 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8439 _lt_dar_single_mod='$single_module'
8441 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8442 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8443 else
8444 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8446 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8447 _lt_dsymutil='~$DSYMUTIL $lib || :'
8448 else
8449 _lt_dsymutil=
8452 esac
8454 for ac_header in dlfcn.h
8455 do :
8456 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8458 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_DLFCN_H 1
8461 _ACEOF
8465 done
8472 # Set options
8477 enable_win32_dll=no
8480 # Check whether --enable-shared was given.
8481 if test "${enable_shared+set}" = set; then :
8482 enableval=$enable_shared; p=${PACKAGE-default}
8483 case $enableval in
8484 yes) enable_shared=yes ;;
8485 no) enable_shared=no ;;
8487 enable_shared=no
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490 for pkg in $enableval; do
8491 IFS="$lt_save_ifs"
8492 if test "X$pkg" = "X$p"; then
8493 enable_shared=yes
8495 done
8496 IFS="$lt_save_ifs"
8498 esac
8499 else
8500 enable_shared=yes
8511 # Check whether --enable-static was given.
8512 if test "${enable_static+set}" = set; then :
8513 enableval=$enable_static; p=${PACKAGE-default}
8514 case $enableval in
8515 yes) enable_static=yes ;;
8516 no) enable_static=no ;;
8518 enable_static=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_static=yes
8526 done
8527 IFS="$lt_save_ifs"
8529 esac
8530 else
8531 enable_static=yes
8543 # Check whether --with-pic was given.
8544 if test "${with_pic+set}" = set; then :
8545 withval=$with_pic; pic_mode="$withval"
8546 else
8547 pic_mode=default
8551 test -z "$pic_mode" && pic_mode=default
8559 # Check whether --enable-fast-install was given.
8560 if test "${enable_fast_install+set}" = set; then :
8561 enableval=$enable_fast_install; p=${PACKAGE-default}
8562 case $enableval in
8563 yes) enable_fast_install=yes ;;
8564 no) enable_fast_install=no ;;
8566 enable_fast_install=no
8567 # Look at the argument we got. We use all the common list separators.
8568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8569 for pkg in $enableval; do
8570 IFS="$lt_save_ifs"
8571 if test "X$pkg" = "X$p"; then
8572 enable_fast_install=yes
8574 done
8575 IFS="$lt_save_ifs"
8577 esac
8578 else
8579 enable_fast_install=yes
8592 # This can be used to rebuild libtool when needed
8593 LIBTOOL_DEPS="$ltmain"
8595 # Always use our own libtool.
8596 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8623 test -z "$LN_S" && LN_S="ln -s"
8638 if test -n "${ZSH_VERSION+set}" ; then
8639 setopt NO_GLOB_SUBST
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8643 $as_echo_n "checking for objdir... " >&6; }
8644 if test "${lt_cv_objdir+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 rm -f .libs 2>/dev/null
8648 mkdir .libs 2>/dev/null
8649 if test -d .libs; then
8650 lt_cv_objdir=.libs
8651 else
8652 # MS-DOS does not allow filenames that begin with a dot.
8653 lt_cv_objdir=_libs
8655 rmdir .libs 2>/dev/null
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8658 $as_echo "$lt_cv_objdir" >&6; }
8659 objdir=$lt_cv_objdir
8665 cat >>confdefs.h <<_ACEOF
8666 #define LT_OBJDIR "$lt_cv_objdir/"
8667 _ACEOF
8672 case $host_os in
8673 aix3*)
8674 # AIX sometimes has problems with the GCC collect2 program. For some
8675 # reason, if we set the COLLECT_NAMES environment variable, the problems
8676 # vanish in a puff of smoke.
8677 if test "X${COLLECT_NAMES+set}" != Xset; then
8678 COLLECT_NAMES=
8679 export COLLECT_NAMES
8682 esac
8684 # Global variables:
8685 ofile=libtool
8686 can_build_shared=yes
8688 # All known linkers require a `.a' archive for static linking (except MSVC,
8689 # which needs '.lib').
8690 libext=a
8692 with_gnu_ld="$lt_cv_prog_gnu_ld"
8694 old_CC="$CC"
8695 old_CFLAGS="$CFLAGS"
8697 # Set sane defaults for various variables
8698 test -z "$CC" && CC=cc
8699 test -z "$LTCC" && LTCC=$CC
8700 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8701 test -z "$LD" && LD=ld
8702 test -z "$ac_objext" && ac_objext=o
8704 for cc_temp in $compiler""; do
8705 case $cc_temp in
8706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8708 \-*) ;;
8709 *) break;;
8710 esac
8711 done
8712 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8715 # Only perform the check for file, if the check method requires it
8716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8717 case $deplibs_check_method in
8718 file_magic*)
8719 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8721 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8722 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 case $MAGIC_CMD in
8726 [\\/*] | ?:[\\/]*)
8727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8730 lt_save_MAGIC_CMD="$MAGIC_CMD"
8731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8733 for ac_dir in $ac_dummy; do
8734 IFS="$lt_save_ifs"
8735 test -z "$ac_dir" && ac_dir=.
8736 if test -f $ac_dir/${ac_tool_prefix}file; then
8737 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8738 if test -n "$file_magic_test_file"; then
8739 case $deplibs_check_method in
8740 "file_magic "*)
8741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8744 $EGREP "$file_magic_regex" > /dev/null; then
8746 else
8747 cat <<_LT_EOF 1>&2
8749 *** Warning: the command libtool uses to detect shared libraries,
8750 *** $file_magic_cmd, produces output that libtool cannot recognize.
8751 *** The result is that libtool may fail to recognize shared libraries
8752 *** as such. This will affect the creation of libtool libraries that
8753 *** depend on shared libraries, but programs linked with such libtool
8754 *** libraries will work regardless of this problem. Nevertheless, you
8755 *** may want to report the problem to your system manager and/or to
8756 *** bug-libtool@gnu.org
8758 _LT_EOF
8759 fi ;;
8760 esac
8762 break
8764 done
8765 IFS="$lt_save_ifs"
8766 MAGIC_CMD="$lt_save_MAGIC_CMD"
8768 esac
8771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8772 if test -n "$MAGIC_CMD"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8774 $as_echo "$MAGIC_CMD" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8784 if test -z "$lt_cv_path_MAGIC_CMD"; then
8785 if test -n "$ac_tool_prefix"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8787 $as_echo_n "checking for file... " >&6; }
8788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 case $MAGIC_CMD in
8792 [\\/*] | ?:[\\/]*)
8793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8796 lt_save_MAGIC_CMD="$MAGIC_CMD"
8797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8799 for ac_dir in $ac_dummy; do
8800 IFS="$lt_save_ifs"
8801 test -z "$ac_dir" && ac_dir=.
8802 if test -f $ac_dir/file; then
8803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8804 if test -n "$file_magic_test_file"; then
8805 case $deplibs_check_method in
8806 "file_magic "*)
8807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8810 $EGREP "$file_magic_regex" > /dev/null; then
8812 else
8813 cat <<_LT_EOF 1>&2
8815 *** Warning: the command libtool uses to detect shared libraries,
8816 *** $file_magic_cmd, produces output that libtool cannot recognize.
8817 *** The result is that libtool may fail to recognize shared libraries
8818 *** as such. This will affect the creation of libtool libraries that
8819 *** depend on shared libraries, but programs linked with such libtool
8820 *** libraries will work regardless of this problem. Nevertheless, you
8821 *** may want to report the problem to your system manager and/or to
8822 *** bug-libtool@gnu.org
8824 _LT_EOF
8825 fi ;;
8826 esac
8828 break
8830 done
8831 IFS="$lt_save_ifs"
8832 MAGIC_CMD="$lt_save_MAGIC_CMD"
8834 esac
8837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8838 if test -n "$MAGIC_CMD"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8840 $as_echo "$MAGIC_CMD" >&6; }
8841 else
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8847 else
8848 MAGIC_CMD=:
8854 esac
8856 # Use C for the default configuration in the libtool script
8858 lt_save_CC="$CC"
8859 ac_ext=c
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866 # Source file extension for C test sources.
8867 ac_ext=c
8869 # Object file extension for compiled C test sources.
8870 objext=o
8871 objext=$objext
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;"
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}'
8885 # If no C compiler was specified, use CC.
8886 LTCC=${LTCC-"$CC"}
8888 # If no C compiler flags were specified, use CFLAGS.
8889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8891 # Allow CC to be a program name with arguments.
8892 compiler=$CC
8894 # Save the default compiler, since it gets overwritten when the other
8895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8896 compiler_DEFAULT=$CC
8898 # save warnings/boilerplate of simple test code
8899 ac_outfile=conftest.$ac_objext
8900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902 _lt_compiler_boilerplate=`cat conftest.err`
8903 $RM conftest*
8905 ac_outfile=conftest.$ac_objext
8906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8908 _lt_linker_boilerplate=`cat conftest.err`
8909 $RM -r conftest*
8912 ## CAVEAT EMPTOR:
8913 ## There is no encapsulation within the following macros, do not change
8914 ## the running order or otherwise move them around unless you know exactly
8915 ## what you are doing...
8916 if test -n "$compiler"; then
8918 lt_prog_compiler_no_builtin_flag=
8920 if test "$GCC" = yes; then
8921 case $cc_basename in
8922 nvcc*)
8923 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8925 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8926 esac
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8929 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8930 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 lt_cv_prog_compiler_rtti_exceptions=no
8934 ac_outfile=conftest.$ac_objext
8935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936 lt_compiler_flag="-fno-rtti -fno-exceptions"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 # The option is referenced via a variable to avoid confusing sed.
8942 lt_compile=`echo "$ac_compile" | $SED \
8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945 -e 's:$: $lt_compiler_flag:'`
8946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947 (eval "$lt_compile" 2>conftest.err)
8948 ac_status=$?
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 if (exit $ac_status) && test -s "$ac_outfile"; then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings other than the usual output.
8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler_rtti_exceptions=yes
8960 $RM conftest*
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8964 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8966 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8967 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8968 else
8979 lt_prog_compiler_wl=
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_static=
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8986 if test "$GCC" = yes; then
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_static='-static'
8990 case $host_os in
8991 aix*)
8992 # All AIX code is PIC.
8993 if test "$host_cpu" = ia64; then
8994 # AIX 5 now supports IA64 processor
8995 lt_prog_compiler_static='-Bstatic'
8997 lt_prog_compiler_pic='-fPIC'
9000 amigaos*)
9001 case $host_cpu in
9002 powerpc)
9003 # see comment about AmigaOS4 .so support
9004 lt_prog_compiler_pic='-fPIC'
9006 m68k)
9007 # FIXME: we need at least 68020 code to build shared libraries, but
9008 # adding the `-m68020' flag to GCC prevents building anything better,
9009 # like `-m68040'.
9010 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9012 esac
9015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9016 # PIC is the default for these OSes.
9019 mingw* | cygwin* | pw32* | os2* | cegcc*)
9020 # This hack is so that the source file can tell whether it is being
9021 # built for inclusion in a dll (and should export symbols for example).
9022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9023 # (--disable-auto-import) libraries
9024 lt_prog_compiler_pic='-DDLL_EXPORT'
9027 darwin* | rhapsody*)
9028 # PIC is the default on this platform
9029 # Common symbols not allowed in MH_DYLIB files
9030 lt_prog_compiler_pic='-fno-common'
9033 haiku*)
9034 # PIC is the default for Haiku.
9035 # The "-static" flag exists, but is broken.
9036 lt_prog_compiler_static=
9039 hpux*)
9040 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9041 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9042 # sets the default TLS model and affects inlining.
9043 case $host_cpu in
9044 hppa*64*)
9045 # +Z the default
9048 lt_prog_compiler_pic='-fPIC'
9050 esac
9053 interix[3-9]*)
9054 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9055 # Instead, we relocate shared libraries at runtime.
9058 msdosdjgpp*)
9059 # Just because we use GCC doesn't mean we suddenly get shared libraries
9060 # on systems that don't support them.
9061 lt_prog_compiler_can_build_shared=no
9062 enable_shared=no
9065 *nto* | *qnx*)
9066 # QNX uses GNU C++, but need to define -shared option too, otherwise
9067 # it will coredump.
9068 lt_prog_compiler_pic='-fPIC -shared'
9071 sysv4*MP*)
9072 if test -d /usr/nec; then
9073 lt_prog_compiler_pic=-Kconform_pic
9078 lt_prog_compiler_pic='-fPIC'
9080 esac
9082 case $cc_basename in
9083 nvcc*) # Cuda Compiler Driver 2.2
9084 lt_prog_compiler_wl='-Xlinker '
9085 lt_prog_compiler_pic='-Xcompiler -fPIC'
9087 esac
9088 else
9089 # PORTME Check for flag to pass linker flags through the system compiler.
9090 case $host_os in
9091 aix*)
9092 lt_prog_compiler_wl='-Wl,'
9093 if test "$host_cpu" = ia64; then
9094 # AIX 5 now supports IA64 processor
9095 lt_prog_compiler_static='-Bstatic'
9096 else
9097 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9101 mingw* | cygwin* | pw32* | os2* | cegcc*)
9102 # This hack is so that the source file can tell whether it is being
9103 # built for inclusion in a dll (and should export symbols for example).
9104 lt_prog_compiler_pic='-DDLL_EXPORT'
9107 hpux9* | hpux10* | hpux11*)
9108 lt_prog_compiler_wl='-Wl,'
9109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9110 # not for PA HP-UX.
9111 case $host_cpu in
9112 hppa*64*|ia64*)
9113 # +Z the default
9116 lt_prog_compiler_pic='+Z'
9118 esac
9119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9120 lt_prog_compiler_static='${wl}-a ${wl}archive'
9123 irix5* | irix6* | nonstopux*)
9124 lt_prog_compiler_wl='-Wl,'
9125 # PIC (with -KPIC) is the default.
9126 lt_prog_compiler_static='-non_shared'
9129 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9130 case $cc_basename in
9131 # old Intel for x86_64 which still supported -KPIC.
9132 ecc*)
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-KPIC'
9135 lt_prog_compiler_static='-static'
9137 # icc used to be incompatible with GCC.
9138 # ICC 10 doesn't accept -KPIC any more.
9139 icc* | ifort*)
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='-fPIC'
9142 lt_prog_compiler_static='-static'
9144 # Lahey Fortran 8.1.
9145 lf95*)
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='--shared'
9148 lt_prog_compiler_static='--static'
9150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9151 # Portland Group compilers (*not* the Pentium gcc compiler,
9152 # which looks to be a dead project)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-fpic'
9155 lt_prog_compiler_static='-Bstatic'
9157 ccc*)
9158 lt_prog_compiler_wl='-Wl,'
9159 # All Alpha code is PIC.
9160 lt_prog_compiler_static='-non_shared'
9162 xl* | bgxl* | bgf* | mpixl*)
9163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-qpic'
9166 lt_prog_compiler_static='-qstaticlink'
9169 case `$CC -V 2>&1 | sed 5q` in
9170 *Sun\ F* | *Sun*Fortran*)
9171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9172 lt_prog_compiler_pic='-KPIC'
9173 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_wl=''
9176 *Sun\ C*)
9177 # Sun C 5.9
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 lt_prog_compiler_wl='-Wl,'
9182 esac
9184 esac
9187 newsos6)
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9192 *nto* | *qnx*)
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9194 # it will coredump.
9195 lt_prog_compiler_pic='-fPIC -shared'
9198 osf3* | osf4* | osf5*)
9199 lt_prog_compiler_wl='-Wl,'
9200 # All OSF/1 code is PIC.
9201 lt_prog_compiler_static='-non_shared'
9204 rdos*)
9205 lt_prog_compiler_static='-non_shared'
9208 solaris*)
9209 lt_prog_compiler_pic='-KPIC'
9210 lt_prog_compiler_static='-Bstatic'
9211 case $cc_basename in
9212 f77* | f90* | f95*)
9213 lt_prog_compiler_wl='-Qoption ld ';;
9215 lt_prog_compiler_wl='-Wl,';;
9216 esac
9219 sunos4*)
9220 lt_prog_compiler_wl='-Qoption ld '
9221 lt_prog_compiler_pic='-PIC'
9222 lt_prog_compiler_static='-Bstatic'
9225 sysv4 | sysv4.2uw2* | sysv4.3*)
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_pic='-KPIC'
9228 lt_prog_compiler_static='-Bstatic'
9231 sysv4*MP*)
9232 if test -d /usr/nec ;then
9233 lt_prog_compiler_pic='-Kconform_pic'
9234 lt_prog_compiler_static='-Bstatic'
9238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-KPIC'
9241 lt_prog_compiler_static='-Bstatic'
9244 unicos*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_can_build_shared=no
9249 uts4*)
9250 lt_prog_compiler_pic='-pic'
9251 lt_prog_compiler_static='-Bstatic'
9255 lt_prog_compiler_can_build_shared=no
9257 esac
9260 case $host_os in
9261 # For platforms which do not support PIC, -DPIC is meaningless:
9262 *djgpp*)
9263 lt_prog_compiler_pic=
9266 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9268 esac
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9270 $as_echo "$lt_prog_compiler_pic" >&6; }
9278 # Check to make sure the PIC flag actually works.
9280 if test -n "$lt_prog_compiler_pic"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9283 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 lt_cv_prog_compiler_pic_works=no
9287 ac_outfile=conftest.$ac_objext
9288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9289 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9290 # Insert the option either (1) after the last *FLAGS variable, or
9291 # (2) before a word containing "conftest.", or (3) at the end.
9292 # Note that $ac_compile itself does not contain backslashes and begins
9293 # with a dollar sign (not a hyphen), so the echo should work correctly.
9294 # The option is referenced via a variable to avoid confusing sed.
9295 lt_compile=`echo "$ac_compile" | $SED \
9296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9298 -e 's:$: $lt_compiler_flag:'`
9299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9300 (eval "$lt_compile" 2>conftest.err)
9301 ac_status=$?
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 if (exit $ac_status) && test -s "$ac_outfile"; then
9305 # The compiler can only warn and ignore the option if not recognized
9306 # So say no if there are warnings other than the usual output.
9307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_pic_works=yes
9313 $RM conftest*
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9317 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9319 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9320 case $lt_prog_compiler_pic in
9321 "" | " "*) ;;
9322 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9323 esac
9324 else
9325 lt_prog_compiler_pic=
9326 lt_prog_compiler_can_build_shared=no
9337 # Check to make sure the static flag actually works.
9339 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9341 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9342 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 lt_cv_prog_compiler_static_works=no
9346 save_LDFLAGS="$LDFLAGS"
9347 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9348 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9350 # The linker can only warn and ignore the option if not recognized
9351 # So say no if there are warnings
9352 if test -s conftest.err; then
9353 # Append any errors to the config.log.
9354 cat conftest.err 1>&5
9355 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9357 if diff conftest.exp conftest.er2 >/dev/null; then
9358 lt_cv_prog_compiler_static_works=yes
9360 else
9361 lt_cv_prog_compiler_static_works=yes
9364 $RM -r conftest*
9365 LDFLAGS="$save_LDFLAGS"
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9369 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9371 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9373 else
9374 lt_prog_compiler_static=
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9385 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 lt_cv_prog_compiler_c_o=no
9389 $RM -r conftest 2>/dev/null
9390 mkdir conftest
9391 cd conftest
9392 mkdir out
9393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9395 lt_compiler_flag="-o out/conftest2.$ac_objext"
9396 # Insert the option either (1) after the last *FLAGS variable, or
9397 # (2) before a word containing "conftest.", or (3) at the end.
9398 # Note that $ac_compile itself does not contain backslashes and begins
9399 # with a dollar sign (not a hyphen), so the echo should work correctly.
9400 lt_compile=`echo "$ac_compile" | $SED \
9401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9403 -e 's:$: $lt_compiler_flag:'`
9404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9405 (eval "$lt_compile" 2>out/conftest.err)
9406 ac_status=$?
9407 cat out/conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9410 then
9411 # The compiler can only warn and ignore the option if not recognized
9412 # So say no if there are warnings
9413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9416 lt_cv_prog_compiler_c_o=yes
9419 chmod u+w . 2>&5
9420 $RM conftest*
9421 # SGI C++ compiler will create directory out/ii_files/ for
9422 # template instantiation
9423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9424 $RM out/* && rmdir out
9425 cd ..
9426 $RM -r conftest
9427 $RM conftest*
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9431 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9439 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9440 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 lt_cv_prog_compiler_c_o=no
9444 $RM -r conftest 2>/dev/null
9445 mkdir conftest
9446 cd conftest
9447 mkdir out
9448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9450 lt_compiler_flag="-o out/conftest2.$ac_objext"
9451 # Insert the option either (1) after the last *FLAGS variable, or
9452 # (2) before a word containing "conftest.", or (3) at the end.
9453 # Note that $ac_compile itself does not contain backslashes and begins
9454 # with a dollar sign (not a hyphen), so the echo should work correctly.
9455 lt_compile=`echo "$ac_compile" | $SED \
9456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9458 -e 's:$: $lt_compiler_flag:'`
9459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9460 (eval "$lt_compile" 2>out/conftest.err)
9461 ac_status=$?
9462 cat out/conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9465 then
9466 # The compiler can only warn and ignore the option if not recognized
9467 # So say no if there are warnings
9468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9471 lt_cv_prog_compiler_c_o=yes
9474 chmod u+w . 2>&5
9475 $RM conftest*
9476 # SGI C++ compiler will create directory out/ii_files/ for
9477 # template instantiation
9478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9479 $RM out/* && rmdir out
9480 cd ..
9481 $RM -r conftest
9482 $RM conftest*
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9486 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9491 hard_links="nottested"
9492 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9493 # do not overwrite the value of need_locks provided by the user
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9495 $as_echo_n "checking if we can lock with hard links... " >&6; }
9496 hard_links=yes
9497 $RM conftest*
9498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9499 touch conftest.a
9500 ln conftest.a conftest.b 2>&5 || hard_links=no
9501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9503 $as_echo "$hard_links" >&6; }
9504 if test "$hard_links" = no; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9506 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9507 need_locks=warn
9509 else
9510 need_locks=no
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9519 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9521 runpath_var=
9522 allow_undefined_flag=
9523 always_export_symbols=no
9524 archive_cmds=
9525 archive_expsym_cmds=
9526 compiler_needs_object=no
9527 enable_shared_with_static_runtimes=no
9528 export_dynamic_flag_spec=
9529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9530 hardcode_automatic=no
9531 hardcode_direct=no
9532 hardcode_direct_absolute=no
9533 hardcode_libdir_flag_spec=
9534 hardcode_libdir_flag_spec_ld=
9535 hardcode_libdir_separator=
9536 hardcode_minus_L=no
9537 hardcode_shlibpath_var=unsupported
9538 inherit_rpath=no
9539 link_all_deplibs=unknown
9540 module_cmds=
9541 module_expsym_cmds=
9542 old_archive_from_new_cmds=
9543 old_archive_from_expsyms_cmds=
9544 thread_safe_flag_spec=
9545 whole_archive_flag_spec=
9546 # include_expsyms should be a list of space-separated symbols to be *always*
9547 # included in the symbol list
9548 include_expsyms=
9549 # exclude_expsyms can be an extended regexp of symbols to exclude
9550 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9551 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9552 # as well as any symbol that contains `d'.
9553 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9554 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9555 # platforms (ab)use it in PIC code, but their linkers get confused if
9556 # the symbol is explicitly referenced. Since portable code cannot
9557 # rely on this symbol name, it's probably fine to never include it in
9558 # preloaded symbol tables.
9559 # Exclude shared library initialization/finalization symbols.
9560 extract_expsyms_cmds=
9562 case $host_os in
9563 cygwin* | mingw* | pw32* | cegcc*)
9564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9565 # When not using gcc, we currently assume that we are using
9566 # Microsoft Visual C++.
9567 if test "$GCC" != yes; then
9568 with_gnu_ld=no
9571 interix*)
9572 # we just hope/assume this is gcc and not c89 (= MSVC++)
9573 with_gnu_ld=yes
9575 openbsd*)
9576 with_gnu_ld=no
9578 esac
9580 ld_shlibs=yes
9582 # On some targets, GNU ld is compatible enough with the native linker
9583 # that we're better off using the native interface for both.
9584 lt_use_gnu_ld_interface=no
9585 if test "$with_gnu_ld" = yes; then
9586 case $host_os in
9587 aix*)
9588 # The AIX port of GNU ld has always aspired to compatibility
9589 # with the native linker. However, as the warning in the GNU ld
9590 # block says, versions before 2.19.5* couldn't really create working
9591 # shared libraries, regardless of the interface used.
9592 case `$LD -v 2>&1` in
9593 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9594 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9595 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9597 lt_use_gnu_ld_interface=yes
9599 esac
9602 lt_use_gnu_ld_interface=yes
9604 esac
9607 if test "$lt_use_gnu_ld_interface" = yes; then
9608 # If archive_cmds runs LD, not CC, wlarc should be empty
9609 wlarc='${wl}'
9611 # Set some defaults for GNU ld with shared library support. These
9612 # are reset later if shared libraries are not supported. Putting them
9613 # here allows them to be overridden if necessary.
9614 runpath_var=LD_RUN_PATH
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 export_dynamic_flag_spec='${wl}--export-dynamic'
9617 # ancient GNU ld didn't support --whole-archive et. al.
9618 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9619 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9620 else
9621 whole_archive_flag_spec=
9623 supports_anon_versioning=no
9624 case `$LD -v 2>&1` in
9625 *GNU\ gold*) supports_anon_versioning=yes ;;
9626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9629 *\ 2.11.*) ;; # other 2.11 versions
9630 *) supports_anon_versioning=yes ;;
9631 esac
9633 # See if GNU ld supports shared libraries.
9634 case $host_os in
9635 aix[3-9]*)
9636 # On AIX/PPC, the GNU linker is very broken
9637 if test "$host_cpu" != ia64; then
9638 ld_shlibs=no
9639 cat <<_LT_EOF 1>&2
9641 *** Warning: the GNU linker, at least up to release 2.19, is reported
9642 *** to be unable to reliably create shared libraries on AIX.
9643 *** Therefore, libtool is disabling shared libraries support. If you
9644 *** really care for shared libraries, you may want to install binutils
9645 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9646 *** You will then need to restart the configuration process.
9648 _LT_EOF
9652 amigaos*)
9653 case $host_cpu in
9654 powerpc)
9655 # see comment about AmigaOS4 .so support
9656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657 archive_expsym_cmds=''
9659 m68k)
9660 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)'
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_minus_L=yes
9664 esac
9667 beos*)
9668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669 allow_undefined_flag=unsupported
9670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9671 # support --undefined. This deserves some investigation. FIXME
9672 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673 else
9674 ld_shlibs=no
9678 cygwin* | mingw* | pw32* | cegcc*)
9679 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9680 # as there is no search path for DLLs.
9681 hardcode_libdir_flag_spec='-L$libdir'
9682 export_dynamic_flag_spec='${wl}--export-all-symbols'
9683 allow_undefined_flag=unsupported
9684 always_export_symbols=no
9685 enable_shared_with_static_runtimes=yes
9686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9690 # If the export-symbols file already is a .def file (1st line
9691 # is EXPORTS), use it as is; otherwise, prepend...
9692 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9693 cp $export_symbols $output_objdir/$soname.def;
9694 else
9695 echo EXPORTS > $output_objdir/$soname.def;
9696 cat $export_symbols >> $output_objdir/$soname.def;
9698 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9699 else
9700 ld_shlibs=no
9704 haiku*)
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 link_all_deplibs=yes
9709 interix[3-9]*)
9710 hardcode_direct=no
9711 hardcode_shlibpath_var=no
9712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9713 export_dynamic_flag_spec='${wl}-E'
9714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9715 # Instead, shared libraries are loaded at an image base (0x10000000 by
9716 # default) and relocated if they conflict, which is a slow very memory
9717 # consuming and fragmenting process. To avoid this, we pick a random,
9718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9721 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'
9724 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9725 tmp_diet=no
9726 if test "$host_os" = linux-dietlibc; then
9727 case $cc_basename in
9728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9729 esac
9731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9732 && test "$tmp_diet" = no
9733 then
9734 tmp_addflag=' $pic_flag'
9735 tmp_sharedflag='-shared'
9736 case $cc_basename,$host_cpu in
9737 pgcc*) # Portland Group C compiler
9738 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'
9739 tmp_addflag=' $pic_flag'
9741 pgf77* | pgf90* | pgf95* | pgfortran*)
9742 # Portland Group f77 and f90 compilers
9743 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'
9744 tmp_addflag=' $pic_flag -Mnomain' ;;
9745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9746 tmp_addflag=' -i_dynamic' ;;
9747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9748 tmp_addflag=' -i_dynamic -nofor_main' ;;
9749 ifc* | ifort*) # Intel Fortran compiler
9750 tmp_addflag=' -nofor_main' ;;
9751 lf95*) # Lahey Fortran 8.1
9752 whole_archive_flag_spec=
9753 tmp_sharedflag='--shared' ;;
9754 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9755 tmp_sharedflag='-qmkshrobj'
9756 tmp_addflag= ;;
9757 nvcc*) # Cuda Compiler Driver 2.2
9758 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'
9759 compiler_needs_object=yes
9761 esac
9762 case `$CC -V 2>&1 | sed 5q` in
9763 *Sun\ C*) # Sun C 5.9
9764 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'
9765 compiler_needs_object=yes
9766 tmp_sharedflag='-G' ;;
9767 *Sun\ F*) # Sun Fortran 8.3
9768 tmp_sharedflag='-G' ;;
9769 esac
9770 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9772 if test "x$supports_anon_versioning" = xyes; then
9773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9775 echo "local: *; };" >> $output_objdir/$libname.ver~
9776 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9779 case $cc_basename in
9780 xlf* | bgf* | bgxlf* | mpixlf*)
9781 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9782 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9783 hardcode_libdir_flag_spec=
9784 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9785 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9786 if test "x$supports_anon_versioning" = xyes; then
9787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9789 echo "local: *; };" >> $output_objdir/$libname.ver~
9790 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9793 esac
9794 else
9795 ld_shlibs=no
9799 netbsd*)
9800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9801 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9802 wlarc=
9803 else
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'
9809 solaris*)
9810 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9811 ld_shlibs=no
9812 cat <<_LT_EOF 1>&2
9814 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9815 *** create shared libraries on Solaris systems. Therefore, libtool
9816 *** is disabling shared libraries support. We urge you to upgrade GNU
9817 *** binutils to release 2.9.1 or newer. Another option is to modify
9818 *** your PATH or compiler configuration so that the native linker is
9819 *** used, and then restart.
9821 _LT_EOF
9822 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825 else
9826 ld_shlibs=no
9830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9831 case `$LD -v 2>&1` in
9832 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9833 ld_shlibs=no
9834 cat <<_LT_EOF 1>&2
9836 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9837 *** reliably create shared libraries on SCO systems. Therefore, libtool
9838 *** is disabling shared libraries support. We urge you to upgrade GNU
9839 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9840 *** your PATH or compiler configuration so that the native linker is
9841 *** used, and then restart.
9843 _LT_EOF
9846 # For security reasons, it is highly recommended that you always
9847 # use absolute paths for naming shared libraries, and exclude the
9848 # DT_RUNPATH tag from executables and libraries. But doing so
9849 # requires that you compile everything twice, which is a pain.
9850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9853 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9854 else
9855 ld_shlibs=no
9858 esac
9861 sunos4*)
9862 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9863 wlarc=
9864 hardcode_direct=yes
9865 hardcode_shlibpath_var=no
9869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9872 else
9873 ld_shlibs=no
9876 esac
9878 if test "$ld_shlibs" = no; then
9879 runpath_var=
9880 hardcode_libdir_flag_spec=
9881 export_dynamic_flag_spec=
9882 whole_archive_flag_spec=
9884 else
9885 # PORTME fill in a description of your system's linker (not GNU ld)
9886 case $host_os in
9887 aix3*)
9888 allow_undefined_flag=unsupported
9889 always_export_symbols=yes
9890 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'
9891 # Note: this linker hardcodes the directories in LIBPATH if there
9892 # are no directories specified by -L.
9893 hardcode_minus_L=yes
9894 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9895 # Neither direct hardcoding nor static linking is supported with a
9896 # broken collect2.
9897 hardcode_direct=unsupported
9901 aix[4-9]*)
9902 if test "$host_cpu" = ia64; then
9903 # On IA64, the linker does run time linking by default, so we don't
9904 # have to do anything special.
9905 aix_use_runtimelinking=no
9906 exp_sym_flag='-Bexport'
9907 no_entry_flag=""
9908 else
9909 # If we're using GNU nm, then we don't want the "-C" option.
9910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9911 # Also, AIX nm treats weak defined symbols like other global
9912 # defined symbols, whereas GNU nm marks them as "W".
9913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9914 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'
9915 else
9916 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'
9918 aix_use_runtimelinking=no
9920 # Test if we are trying to use run time linking or normal
9921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9922 # need to do runtime linking.
9923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9924 for ld_flag in $LDFLAGS; do
9925 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9926 aix_use_runtimelinking=yes
9927 break
9929 done
9931 esac
9933 exp_sym_flag='-bexport'
9934 no_entry_flag='-bnoentry'
9937 # When large executables or shared objects are built, AIX ld can
9938 # have problems creating the table of contents. If linking a library
9939 # or program results in "error TOC overflow" add -mminimal-toc to
9940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9943 archive_cmds=''
9944 hardcode_direct=yes
9945 hardcode_direct_absolute=yes
9946 hardcode_libdir_separator=':'
9947 link_all_deplibs=yes
9948 file_list_spec='${wl}-f,'
9950 if test "$GCC" = yes; then
9951 case $host_os in aix4.[012]|aix4.[012].*)
9952 # We only want to do this on AIX 4.2 and lower, the check
9953 # below for broken collect2 doesn't work under 4.3+
9954 collect2name=`${CC} -print-prog-name=collect2`
9955 if test -f "$collect2name" &&
9956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9957 then
9958 # We have reworked collect2
9960 else
9961 # We have old collect2
9962 hardcode_direct=unsupported
9963 # It fails to find uninstalled libraries when the uninstalled
9964 # path is not listed in the libpath. Setting hardcode_minus_L
9965 # to unsupported forces relinking
9966 hardcode_minus_L=yes
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_libdir_separator=
9971 esac
9972 shared_flag='-shared'
9973 if test "$aix_use_runtimelinking" = yes; then
9974 shared_flag="$shared_flag "'${wl}-G'
9976 else
9977 # not using gcc
9978 if test "$host_cpu" = ia64; then
9979 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9980 # chokes on -Wl,-G. The following line is correct:
9981 shared_flag='-G'
9982 else
9983 if test "$aix_use_runtimelinking" = yes; then
9984 shared_flag='${wl}-G'
9985 else
9986 shared_flag='${wl}-bM:SRE'
9991 export_dynamic_flag_spec='${wl}-bexpall'
9992 # It seems that -bexpall does not export symbols beginning with
9993 # underscore (_), so it is better to generate a list of symbols to export.
9994 always_export_symbols=yes
9995 if test "$aix_use_runtimelinking" = yes; then
9996 # Warning - without using the other runtime loading flags (-brtl),
9997 # -berok will link without error, but may produce a broken library.
9998 allow_undefined_flag='-berok'
9999 # Determine the default libpath from the value encoded in an
10000 # empty executable.
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10005 main ()
10009 return 0;
10011 _ACEOF
10012 if ac_fn_c_try_link "$LINENO"; then :
10014 lt_aix_libpath_sed='
10015 /Import File Strings/,/^$/ {
10016 /^0/ {
10017 s/^0 *\(.*\)$/\1/
10021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022 # Check for a 64-bit object if we didn't find anything.
10023 if test -z "$aix_libpath"; then
10024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10032 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"
10033 else
10034 if test "$host_cpu" = ia64; then
10035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10036 allow_undefined_flag="-z nodefs"
10037 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"
10038 else
10039 # Determine the default libpath from the value encoded in an
10040 # empty executable.
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10045 main ()
10049 return 0;
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10054 lt_aix_libpath_sed='
10055 /Import File Strings/,/^$/ {
10056 /^0/ {
10057 s/^0 *\(.*\)$/\1/
10061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062 # Check for a 64-bit object if we didn't find anything.
10063 if test -z "$aix_libpath"; then
10064 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10072 # Warning - without using the other run time loading flags,
10073 # -berok will link without error, but may produce a broken library.
10074 no_undefined_flag=' ${wl}-bernotok'
10075 allow_undefined_flag=' ${wl}-berok'
10076 if test "$with_gnu_ld" = yes; then
10077 # We only use this code for GNU lds that support --whole-archive.
10078 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10079 else
10080 # Exported symbols can be pulled into shared objects from archives
10081 whole_archive_flag_spec='$convenience'
10083 archive_cmds_need_lc=yes
10084 # This is similar to how AIX traditionally builds its shared libraries.
10085 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'
10090 amigaos*)
10091 case $host_cpu in
10092 powerpc)
10093 # see comment about AmigaOS4 .so support
10094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095 archive_expsym_cmds=''
10097 m68k)
10098 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)'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10102 esac
10105 bsdi[45]*)
10106 export_dynamic_flag_spec=-rdynamic
10109 cygwin* | mingw* | pw32* | cegcc*)
10110 # When not using gcc, we currently assume that we are using
10111 # Microsoft Visual C++.
10112 # hardcode_libdir_flag_spec is actually meaningless, as there is
10113 # no search path for DLLs.
10114 hardcode_libdir_flag_spec=' '
10115 allow_undefined_flag=unsupported
10116 # Tell ltmain to make .lib files, not .a files.
10117 libext=lib
10118 # Tell ltmain to make .dll files, not .so files.
10119 shrext_cmds=".dll"
10120 # FIXME: Setting linknames here is a bad hack.
10121 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10122 # The linker will automatically build a .lib file if we build a DLL.
10123 old_archive_from_new_cmds='true'
10124 # FIXME: Should let the user specify the lib program.
10125 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10126 fix_srcfile_path='`cygpath -w "$srcfile"`'
10127 enable_shared_with_static_runtimes=yes
10130 darwin* | rhapsody*)
10133 archive_cmds_need_lc=no
10134 hardcode_direct=no
10135 hardcode_automatic=yes
10136 hardcode_shlibpath_var=unsupported
10137 if test "$lt_cv_ld_force_load" = "yes"; then
10138 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\"`'
10139 else
10140 whole_archive_flag_spec=''
10142 link_all_deplibs=yes
10143 allow_undefined_flag="$_lt_dar_allow_undefined"
10144 case $cc_basename in
10145 ifort*) _lt_dar_can_shared=yes ;;
10146 *) _lt_dar_can_shared=$GCC ;;
10147 esac
10148 if test "$_lt_dar_can_shared" = "yes"; then
10149 output_verbose_link_cmd=func_echo_all
10150 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10151 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10152 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}"
10153 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}"
10155 else
10156 ld_shlibs=no
10161 dgux*)
10162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_libdir_flag_spec='-L$libdir'
10164 hardcode_shlibpath_var=no
10167 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10168 # support. Future versions do this automatically, but an explicit c++rt0.o
10169 # does not break anything, and helps significantly (at the cost of a little
10170 # extra space).
10171 freebsd2.2*)
10172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10173 hardcode_libdir_flag_spec='-R$libdir'
10174 hardcode_direct=yes
10175 hardcode_shlibpath_var=no
10178 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10179 freebsd2.*)
10180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_direct=yes
10182 hardcode_minus_L=yes
10183 hardcode_shlibpath_var=no
10186 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10187 freebsd* | dragonfly*)
10188 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10189 hardcode_libdir_flag_spec='-R$libdir'
10190 hardcode_direct=yes
10191 hardcode_shlibpath_var=no
10194 hpux9*)
10195 if test "$GCC" = yes; then
10196 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'
10197 else
10198 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'
10200 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10201 hardcode_libdir_separator=:
10202 hardcode_direct=yes
10204 # hardcode_minus_L: Not really in the search PATH,
10205 # but as the default location of the library.
10206 hardcode_minus_L=yes
10207 export_dynamic_flag_spec='${wl}-E'
10210 hpux10*)
10211 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10213 else
10214 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10216 if test "$with_gnu_ld" = no; then
10217 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10218 hardcode_libdir_flag_spec_ld='+b $libdir'
10219 hardcode_libdir_separator=:
10220 hardcode_direct=yes
10221 hardcode_direct_absolute=yes
10222 export_dynamic_flag_spec='${wl}-E'
10223 # hardcode_minus_L: Not really in the search PATH,
10224 # but as the default location of the library.
10225 hardcode_minus_L=yes
10229 hpux11*)
10230 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10231 case $host_cpu in
10232 hppa*64*)
10233 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 ia64*)
10236 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241 esac
10242 else
10243 case $host_cpu in
10244 hppa*64*)
10245 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 ia64*)
10248 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10252 # Older versions of the 11.00 compiler do not understand -b yet
10253 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10255 $as_echo_n "checking if $CC understands -b... " >&6; }
10256 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10259 lt_cv_prog_compiler__b=no
10260 save_LDFLAGS="$LDFLAGS"
10261 LDFLAGS="$LDFLAGS -b"
10262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10264 # The linker can only warn and ignore the option if not recognized
10265 # So say no if there are warnings
10266 if test -s conftest.err; then
10267 # Append any errors to the config.log.
10268 cat conftest.err 1>&5
10269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10271 if diff conftest.exp conftest.er2 >/dev/null; then
10272 lt_cv_prog_compiler__b=yes
10274 else
10275 lt_cv_prog_compiler__b=yes
10278 $RM -r conftest*
10279 LDFLAGS="$save_LDFLAGS"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10283 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10285 if test x"$lt_cv_prog_compiler__b" = xyes; then
10286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10287 else
10288 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10292 esac
10294 if test "$with_gnu_ld" = no; then
10295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10296 hardcode_libdir_separator=:
10298 case $host_cpu in
10299 hppa*64*|ia64*)
10300 hardcode_direct=no
10301 hardcode_shlibpath_var=no
10304 hardcode_direct=yes
10305 hardcode_direct_absolute=yes
10306 export_dynamic_flag_spec='${wl}-E'
10308 # hardcode_minus_L: Not really in the search PATH,
10309 # but as the default location of the library.
10310 hardcode_minus_L=yes
10312 esac
10316 irix5* | irix6* | nonstopux*)
10317 if test "$GCC" = yes; then
10318 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'
10319 # Try to use the -exported_symbol ld option, if it does not
10320 # work, assume that -exports_file does not work either and
10321 # implicitly export all symbols.
10322 save_LDFLAGS="$LDFLAGS"
10323 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 int foo(void) {}
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329 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'
10332 rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 LDFLAGS="$save_LDFLAGS"
10335 else
10336 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'
10337 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'
10339 archive_cmds_need_lc='no'
10340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341 hardcode_libdir_separator=:
10342 inherit_rpath=yes
10343 link_all_deplibs=yes
10346 netbsd*)
10347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10349 else
10350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10352 hardcode_libdir_flag_spec='-R$libdir'
10353 hardcode_direct=yes
10354 hardcode_shlibpath_var=no
10357 newsos6)
10358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_direct=yes
10360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10361 hardcode_libdir_separator=:
10362 hardcode_shlibpath_var=no
10365 *nto* | *qnx*)
10368 openbsd*)
10369 if test -f /usr/libexec/ld.so; then
10370 hardcode_direct=yes
10371 hardcode_shlibpath_var=no
10372 hardcode_direct_absolute=yes
10373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10377 export_dynamic_flag_spec='${wl}-E'
10378 else
10379 case $host_os in
10380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_libdir_flag_spec='-R$libdir'
10385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10388 esac
10390 else
10391 ld_shlibs=no
10395 os2*)
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_minus_L=yes
10398 allow_undefined_flag=unsupported
10399 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'
10400 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10403 osf3*)
10404 if test "$GCC" = yes; then
10405 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10406 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'
10407 else
10408 allow_undefined_flag=' -expect_unresolved \*'
10409 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'
10411 archive_cmds_need_lc='no'
10412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10413 hardcode_libdir_separator=:
10416 osf4* | osf5*) # as osf3* with the addition of -msym flag
10417 if test "$GCC" = yes; then
10418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10419 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'
10420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10421 else
10422 allow_undefined_flag=' -expect_unresolved \*'
10423 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'
10424 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~
10425 $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'
10427 # Both c and cxx compiler support -rpath directly
10428 hardcode_libdir_flag_spec='-rpath $libdir'
10430 archive_cmds_need_lc='no'
10431 hardcode_libdir_separator=:
10434 solaris*)
10435 no_undefined_flag=' -z defs'
10436 if test "$GCC" = yes; then
10437 wlarc='${wl}'
10438 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10439 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10440 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10441 else
10442 case `$CC -V 2>&1` in
10443 *"Compilers 5.0"*)
10444 wlarc=''
10445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10450 wlarc='${wl}'
10451 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10453 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10455 esac
10457 hardcode_libdir_flag_spec='-R$libdir'
10458 hardcode_shlibpath_var=no
10459 case $host_os in
10460 solaris2.[0-5] | solaris2.[0-5].*) ;;
10462 # The compiler driver will combine and reorder linker options,
10463 # but understands `-z linker_flag'. GCC discards it without `$wl',
10464 # but is careful enough not to reorder.
10465 # Supported since Solaris 2.6 (maybe 2.5.1?)
10466 if test "$GCC" = yes; then
10467 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10468 else
10469 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10472 esac
10473 link_all_deplibs=yes
10476 sunos4*)
10477 if test "x$host_vendor" = xsequent; then
10478 # Use $CC to link under sequent, because it throws in some extra .o
10479 # files that make .init and .fini sections work.
10480 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10481 else
10482 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10484 hardcode_libdir_flag_spec='-L$libdir'
10485 hardcode_direct=yes
10486 hardcode_minus_L=yes
10487 hardcode_shlibpath_var=no
10490 sysv4)
10491 case $host_vendor in
10492 sni)
10493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494 hardcode_direct=yes # is this really true???
10496 siemens)
10497 ## LD is ld it makes a PLAMLIB
10498 ## CC just makes a GrossModule.
10499 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10500 reload_cmds='$CC -r -o $output$reload_objs'
10501 hardcode_direct=no
10503 motorola)
10504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10505 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10507 esac
10508 runpath_var='LD_RUN_PATH'
10509 hardcode_shlibpath_var=no
10512 sysv4.3*)
10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_shlibpath_var=no
10515 export_dynamic_flag_spec='-Bexport'
10518 sysv4*MP*)
10519 if test -d /usr/nec; then
10520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 hardcode_shlibpath_var=no
10522 runpath_var=LD_RUN_PATH
10523 hardcode_runpath_var=yes
10524 ld_shlibs=yes
10528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10529 no_undefined_flag='${wl}-z,text'
10530 archive_cmds_need_lc=no
10531 hardcode_shlibpath_var=no
10532 runpath_var='LD_RUN_PATH'
10534 if test "$GCC" = yes; then
10535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10537 else
10538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 sysv5* | sco3.2v5* | sco5v6*)
10544 # Note: We can NOT use -z defs as we might desire, because we do not
10545 # link with -lc, and that would cause any symbols used from libc to
10546 # always be unresolved, which means just about no library would
10547 # ever link correctly. If we're not using GNU ld we use -z text
10548 # though, which does catch some bad symbols but isn't as heavy-handed
10549 # as -z defs.
10550 no_undefined_flag='${wl}-z,text'
10551 allow_undefined_flag='${wl}-z,nodefs'
10552 archive_cmds_need_lc=no
10553 hardcode_shlibpath_var=no
10554 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10555 hardcode_libdir_separator=':'
10556 link_all_deplibs=yes
10557 export_dynamic_flag_spec='${wl}-Bexport'
10558 runpath_var='LD_RUN_PATH'
10560 if test "$GCC" = yes; then
10561 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563 else
10564 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10565 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 uts4*)
10570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_shlibpath_var=no
10576 ld_shlibs=no
10578 esac
10580 if test x$host_vendor = xsni; then
10581 case $host in
10582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10583 export_dynamic_flag_spec='${wl}-Blargedynsym'
10585 esac
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10590 $as_echo "$ld_shlibs" >&6; }
10591 test "$ld_shlibs" = no && can_build_shared=no
10593 with_gnu_ld=$with_gnu_ld
10610 # Do we need to explicitly link libc?
10612 case "x$archive_cmds_need_lc" in
10613 x|xyes)
10614 # Assume -lc should be added
10615 archive_cmds_need_lc=yes
10617 if test "$enable_shared" = yes && test "$GCC" = yes; then
10618 case $archive_cmds in
10619 *'~'*)
10620 # FIXME: we may have to deal with multi-command sequences.
10622 '$CC '*)
10623 # Test whether the compiler implicitly links with -lc since on some
10624 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10625 # to ld, don't add -lc before -lgcc.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10627 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10628 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 $RM conftest*
10632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10635 (eval $ac_compile) 2>&5
10636 ac_status=$?
10637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10638 test $ac_status = 0; } 2>conftest.err; then
10639 soname=conftest
10640 lib=conftest
10641 libobjs=conftest.$ac_objext
10642 deplibs=
10643 wl=$lt_prog_compiler_wl
10644 pic_flag=$lt_prog_compiler_pic
10645 compiler_flags=-v
10646 linker_flags=-v
10647 verstring=
10648 output_objdir=.
10649 libname=conftest
10650 lt_save_allow_undefined_flag=$allow_undefined_flag
10651 allow_undefined_flag=
10652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10653 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10654 ac_status=$?
10655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10656 test $ac_status = 0; }
10657 then
10658 lt_cv_archive_cmds_need_lc=no
10659 else
10660 lt_cv_archive_cmds_need_lc=yes
10662 allow_undefined_flag=$lt_save_allow_undefined_flag
10663 else
10664 cat conftest.err 1>&5
10666 $RM conftest*
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10670 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10671 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10673 esac
10676 esac
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10835 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10837 if test "$GCC" = yes; then
10838 case $host_os in
10839 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10840 *) lt_awk_arg="/^libraries:/" ;;
10841 esac
10842 case $host_os in
10843 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10844 *) lt_sed_strip_eq="s,=/,/,g" ;;
10845 esac
10846 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10847 case $lt_search_path_spec in
10848 *\;*)
10849 # if the path contains ";" then we assume it to be the separator
10850 # otherwise default to the standard path separator (i.e. ":") - it is
10851 # assumed that no part of a normal pathname contains ";" but that should
10852 # okay in the real world where ";" in dirpaths is itself problematic.
10853 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10856 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10858 esac
10859 # Ok, now we have the path, separated by spaces, we can step through it
10860 # and add multilib dir if necessary.
10861 lt_tmp_lt_search_path_spec=
10862 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10863 for lt_sys_path in $lt_search_path_spec; do
10864 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10865 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10866 else
10867 test -d "$lt_sys_path" && \
10868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10870 done
10871 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10872 BEGIN {RS=" "; FS="/|\n";} {
10873 lt_foo="";
10874 lt_count=0;
10875 for (lt_i = NF; lt_i > 0; lt_i--) {
10876 if ($lt_i != "" && $lt_i != ".") {
10877 if ($lt_i == "..") {
10878 lt_count++;
10879 } else {
10880 if (lt_count == 0) {
10881 lt_foo="/" $lt_i lt_foo;
10882 } else {
10883 lt_count--;
10888 if (lt_foo != "") { lt_freq[lt_foo]++; }
10889 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10891 # AWK program above erroneously prepends '/' to C:/dos/paths
10892 # for these hosts.
10893 case $host_os in
10894 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10895 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10896 esac
10897 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10898 else
10899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10901 library_names_spec=
10902 libname_spec='lib$name'
10903 soname_spec=
10904 shrext_cmds=".so"
10905 postinstall_cmds=
10906 postuninstall_cmds=
10907 finish_cmds=
10908 finish_eval=
10909 shlibpath_var=
10910 shlibpath_overrides_runpath=unknown
10911 version_type=none
10912 dynamic_linker="$host_os ld.so"
10913 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10914 need_lib_prefix=unknown
10915 hardcode_into_libs=no
10917 # when you set need_version to no, make sure it does not cause -set_version
10918 # flags to be left without arguments
10919 need_version=unknown
10921 case $host_os in
10922 aix3*)
10923 version_type=linux
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10925 shlibpath_var=LIBPATH
10927 # AIX 3 has no versioning support, so we append a major version to the name.
10928 soname_spec='${libname}${release}${shared_ext}$major'
10931 aix[4-9]*)
10932 version_type=linux
10933 need_lib_prefix=no
10934 need_version=no
10935 hardcode_into_libs=yes
10936 if test "$host_cpu" = ia64; then
10937 # AIX 5 supports IA64
10938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 else
10941 # With GCC up to 2.95.x, collect2 would create an import file
10942 # for dependence libraries. The import file would start with
10943 # the line `#! .'. This would cause the generated library to
10944 # depend on `.', always an invalid library. This was fixed in
10945 # development snapshots of GCC prior to 3.0.
10946 case $host_os in
10947 aix4 | aix4.[01] | aix4.[01].*)
10948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10949 echo ' yes '
10950 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10952 else
10953 can_build_shared=no
10956 esac
10957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10958 # soname into executable. Probably we can add versioning support to
10959 # collect2, so additional links can be useful in future.
10960 if test "$aix_use_runtimelinking" = yes; then
10961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10962 # instead of lib<name>.a to let people know that these are not
10963 # typical AIX shared libraries.
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 else
10966 # We preserve .a as extension for shared libraries through AIX4.2
10967 # and later when we are not doing run time linking.
10968 library_names_spec='${libname}${release}.a $libname.a'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10971 shlibpath_var=LIBPATH
10975 amigaos*)
10976 case $host_cpu in
10977 powerpc)
10978 # Since July 2007 AmigaOS4 officially supports .so libraries.
10979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 m68k)
10983 library_names_spec='$libname.ixlibrary $libname.a'
10984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10985 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'
10987 esac
10990 beos*)
10991 library_names_spec='${libname}${shared_ext}'
10992 dynamic_linker="$host_os ld.so"
10993 shlibpath_var=LIBRARY_PATH
10996 bsdi[45]*)
10997 version_type=linux
10998 need_version=no
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11005 # the default ld.so.conf also contains /usr/contrib/lib and
11006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11007 # libtool to hard-code these into programs
11010 cygwin* | mingw* | pw32* | cegcc*)
11011 version_type=windows
11012 shrext_cmds=".dll"
11013 need_version=no
11014 need_lib_prefix=no
11016 case $GCC,$host_os in
11017 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11018 library_names_spec='$libname.dll.a'
11019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11020 postinstall_cmds='base_file=`basename \${file}`~
11021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11022 dldir=$destdir/`dirname \$dlpath`~
11023 test -d \$dldir || mkdir -p \$dldir~
11024 $install_prog $dir/$dlname \$dldir/$dlname~
11025 chmod a+x \$dldir/$dlname~
11026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11030 dlpath=$dir/\$dldll~
11031 $RM \$dlpath'
11032 shlibpath_overrides_runpath=yes
11034 case $host_os in
11035 cygwin*)
11036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11039 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11041 mingw* | cegcc*)
11042 # MinGW DLLs use traditional 'lib' prefix
11043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045 pw32*)
11046 # pw32 DLLs use 'pw' prefix rather than 'lib'
11047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11049 esac
11053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11055 esac
11056 dynamic_linker='Win32 ld.exe'
11057 # FIXME: first we should search . and the directory the executable is in
11058 shlibpath_var=PATH
11061 darwin* | rhapsody*)
11062 dynamic_linker="$host_os dyld"
11063 version_type=darwin
11064 need_lib_prefix=no
11065 need_version=no
11066 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11067 soname_spec='${libname}${release}${major}$shared_ext'
11068 shlibpath_overrides_runpath=yes
11069 shlibpath_var=DYLD_LIBRARY_PATH
11070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11076 dgux*)
11077 version_type=linux
11078 need_lib_prefix=no
11079 need_version=no
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11085 freebsd* | dragonfly*)
11086 # DragonFly does not have aout. When/if they implement a new
11087 # versioning mechanism, adjust this.
11088 if test -x /usr/bin/objformat; then
11089 objformat=`/usr/bin/objformat`
11090 else
11091 case $host_os in
11092 freebsd[23].*) objformat=aout ;;
11093 *) objformat=elf ;;
11094 esac
11096 version_type=freebsd-$objformat
11097 case $version_type in
11098 freebsd-elf*)
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11100 need_version=no
11101 need_lib_prefix=no
11103 freebsd-*)
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11105 need_version=yes
11107 esac
11108 shlibpath_var=LD_LIBRARY_PATH
11109 case $host_os in
11110 freebsd2.*)
11111 shlibpath_overrides_runpath=yes
11113 freebsd3.[01]* | freebsdelf3.[01]*)
11114 shlibpath_overrides_runpath=yes
11115 hardcode_into_libs=yes
11117 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11118 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11119 shlibpath_overrides_runpath=no
11120 hardcode_into_libs=yes
11122 *) # from 4.6 on, and DragonFly
11123 shlibpath_overrides_runpath=yes
11124 hardcode_into_libs=yes
11126 esac
11129 gnu*)
11130 version_type=linux
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 hardcode_into_libs=yes
11139 haiku*)
11140 version_type=linux
11141 need_lib_prefix=no
11142 need_version=no
11143 dynamic_linker="$host_os runtime_loader"
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 shlibpath_var=LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11149 hardcode_into_libs=yes
11152 hpux9* | hpux10* | hpux11*)
11153 # Give a soname corresponding to the major version so that dld.sl refuses to
11154 # link against other versions.
11155 version_type=sunos
11156 need_lib_prefix=no
11157 need_version=no
11158 case $host_cpu in
11159 ia64*)
11160 shrext_cmds='.so'
11161 hardcode_into_libs=yes
11162 dynamic_linker="$host_os dld.so"
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 if test "X$HPUX_IA64_MODE" = X32; then
11168 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11169 else
11170 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11174 hppa*64*)
11175 shrext_cmds='.sl'
11176 hardcode_into_libs=yes
11177 dynamic_linker="$host_os dld.sl"
11178 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186 shrext_cmds='.sl'
11187 dynamic_linker="$host_os dld.sl"
11188 shlibpath_var=SHLIB_PATH
11189 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11193 esac
11194 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11195 postinstall_cmds='chmod 555 $lib'
11196 # or fails outright, so override atomically:
11197 install_override_mode=555
11200 interix[3-9]*)
11201 version_type=linux
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=no
11209 hardcode_into_libs=yes
11212 irix5* | irix6* | nonstopux*)
11213 case $host_os in
11214 nonstopux*) version_type=nonstopux ;;
11216 if test "$lt_cv_prog_gnu_ld" = yes; then
11217 version_type=linux
11218 else
11219 version_type=irix
11220 fi ;;
11221 esac
11222 need_lib_prefix=no
11223 need_version=no
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 case $host_os in
11227 irix5* | nonstopux*)
11228 libsuff= shlibsuff=
11231 case $LD in # libtool.m4 will add one of these switches to LD
11232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11233 libsuff= shlibsuff= libmagic=32-bit;;
11234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11235 libsuff=32 shlibsuff=N32 libmagic=N32;;
11236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11238 *) libsuff= shlibsuff= libmagic=never-match;;
11239 esac
11241 esac
11242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11243 shlibpath_overrides_runpath=no
11244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11246 hardcode_into_libs=yes
11249 # No shared lib support for Linux oldld, aout, or coff.
11250 linux*oldld* | linux*aout* | linux*coff*)
11251 dynamic_linker=no
11254 # This must be Linux ELF.
11255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11256 version_type=linux
11257 need_lib_prefix=no
11258 need_version=no
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=no
11265 # Some binutils ld are patched to set DT_RUNPATH
11266 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 lt_cv_shlibpath_overrides_runpath=no
11270 save_LDFLAGS=$LDFLAGS
11271 save_libdir=$libdir
11272 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11273 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11278 main ()
11282 return 0;
11284 _ACEOF
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11287 lt_cv_shlibpath_overrides_runpath=yes
11290 rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LDFLAGS=$save_LDFLAGS
11293 libdir=$save_libdir
11297 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11299 # This implies no fast_install, which is unacceptable.
11300 # Some rework will be needed to allow for fast_install
11301 # before this can be enabled.
11302 hardcode_into_libs=yes
11304 # Append ld.so.conf contents to the search path
11305 if test -f /etc/ld.so.conf; then
11306 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' ' '`
11307 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11310 # We used to test for /lib/ld.so.1 and disable shared libraries on
11311 # powerpc, because MkLinux only supported shared libraries with the
11312 # GNU dynamic linker. Since this was broken with cross compilers,
11313 # most powerpc-linux boxes support dynamic linking these days and
11314 # people can always --disable-shared, the test was removed, and we
11315 # assume the GNU/Linux dynamic linker is in use.
11316 dynamic_linker='GNU/Linux ld.so'
11319 netbsd*)
11320 version_type=sunos
11321 need_lib_prefix=no
11322 need_version=no
11323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11326 dynamic_linker='NetBSD (a.out) ld.so'
11327 else
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 dynamic_linker='NetBSD ld.elf_so'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11334 hardcode_into_libs=yes
11337 newsos6)
11338 version_type=linux
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath=yes
11344 *nto* | *qnx*)
11345 version_type=qnx
11346 need_lib_prefix=no
11347 need_version=no
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=no
11352 hardcode_into_libs=yes
11353 dynamic_linker='ldqnx.so'
11356 openbsd*)
11357 version_type=sunos
11358 sys_lib_dlsearch_path_spec="/usr/lib"
11359 need_lib_prefix=no
11360 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11361 case $host_os in
11362 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11363 *) need_version=no ;;
11364 esac
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11369 case $host_os in
11370 openbsd2.[89] | openbsd2.[89].*)
11371 shlibpath_overrides_runpath=no
11374 shlibpath_overrides_runpath=yes
11376 esac
11377 else
11378 shlibpath_overrides_runpath=yes
11382 os2*)
11383 libname_spec='$name'
11384 shrext_cmds=".dll"
11385 need_lib_prefix=no
11386 library_names_spec='$libname${shared_ext} $libname.a'
11387 dynamic_linker='OS/2 ld.exe'
11388 shlibpath_var=LIBPATH
11391 osf3* | osf4* | osf5*)
11392 version_type=osf
11393 need_lib_prefix=no
11394 need_version=no
11395 soname_spec='${libname}${release}${shared_ext}$major'
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 shlibpath_var=LD_LIBRARY_PATH
11398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11399 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11402 rdos*)
11403 dynamic_linker=no
11406 solaris*)
11407 version_type=linux
11408 need_lib_prefix=no
11409 need_version=no
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11411 soname_spec='${libname}${release}${shared_ext}$major'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=yes
11414 hardcode_into_libs=yes
11415 # ldd complains unless libraries are executable
11416 postinstall_cmds='chmod +x $lib'
11419 sunos4*)
11420 version_type=sunos
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11422 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 if test "$with_gnu_ld" = yes; then
11426 need_lib_prefix=no
11428 need_version=yes
11431 sysv4 | sysv4.3*)
11432 version_type=linux
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 case $host_vendor in
11437 sni)
11438 shlibpath_overrides_runpath=no
11439 need_lib_prefix=no
11440 runpath_var=LD_RUN_PATH
11442 siemens)
11443 need_lib_prefix=no
11445 motorola)
11446 need_lib_prefix=no
11447 need_version=no
11448 shlibpath_overrides_runpath=no
11449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11451 esac
11454 sysv4*MP*)
11455 if test -d /usr/nec ;then
11456 version_type=linux
11457 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11458 soname_spec='$libname${shared_ext}.$major'
11459 shlibpath_var=LD_LIBRARY_PATH
11463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11464 version_type=freebsd-elf
11465 need_lib_prefix=no
11466 need_version=no
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=yes
11471 hardcode_into_libs=yes
11472 if test "$with_gnu_ld" = yes; then
11473 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11474 else
11475 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11476 case $host_os in
11477 sco3.2v5*)
11478 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11480 esac
11482 sys_lib_dlsearch_path_spec='/usr/lib'
11485 tpf*)
11486 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11487 version_type=linux
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 shlibpath_overrides_runpath=no
11493 hardcode_into_libs=yes
11496 uts4*)
11497 version_type=linux
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11504 dynamic_linker=no
11506 esac
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11508 $as_echo "$dynamic_linker" >&6; }
11509 test "$dynamic_linker" = no && can_build_shared=no
11511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11512 if test "$GCC" = yes; then
11513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11516 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11517 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11519 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11520 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11616 hardcode_action=
11617 if test -n "$hardcode_libdir_flag_spec" ||
11618 test -n "$runpath_var" ||
11619 test "X$hardcode_automatic" = "Xyes" ; then
11621 # We can hardcode non-existent directories.
11622 if test "$hardcode_direct" != no &&
11623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11624 # have to relink, otherwise we might link with an installed library
11625 # when we should be linking with a yet-to-be-installed one
11626 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11627 test "$hardcode_minus_L" != no; then
11628 # Linking always hardcodes the temporary library directory.
11629 hardcode_action=relink
11630 else
11631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11632 hardcode_action=immediate
11634 else
11635 # We cannot hardcode anything, or else we can only hardcode existing
11636 # directories.
11637 hardcode_action=unsupported
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11640 $as_echo "$hardcode_action" >&6; }
11642 if test "$hardcode_action" = relink ||
11643 test "$inherit_rpath" = yes; then
11644 # Fast installation is not supported
11645 enable_fast_install=no
11646 elif test "$shlibpath_overrides_runpath" = yes ||
11647 test "$enable_shared" = no; then
11648 # Fast installation is not necessary
11649 enable_fast_install=needless
11657 if test "x$enable_dlopen" != xyes; then
11658 enable_dlopen=unknown
11659 enable_dlopen_self=unknown
11660 enable_dlopen_self_static=unknown
11661 else
11662 lt_cv_dlopen=no
11663 lt_cv_dlopen_libs=
11665 case $host_os in
11666 beos*)
11667 lt_cv_dlopen="load_add_on"
11668 lt_cv_dlopen_libs=
11669 lt_cv_dlopen_self=yes
11672 mingw* | pw32* | cegcc*)
11673 lt_cv_dlopen="LoadLibrary"
11674 lt_cv_dlopen_libs=
11677 cygwin*)
11678 lt_cv_dlopen="dlopen"
11679 lt_cv_dlopen_libs=
11682 darwin*)
11683 # if libdl is installed we need to link against it
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 ac_check_lib_save_LIBS=$LIBS
11690 LIBS="-ldl $LIBS"
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char dlopen ();
11702 main ()
11704 return dlopen ();
11706 return 0;
11708 _ACEOF
11709 if ac_fn_c_try_link "$LINENO"; then :
11710 ac_cv_lib_dl_dlopen=yes
11711 else
11712 ac_cv_lib_dl_dlopen=no
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11720 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11722 else
11724 lt_cv_dlopen="dyld"
11725 lt_cv_dlopen_libs=
11726 lt_cv_dlopen_self=yes
11733 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11734 if test "x$ac_cv_func_shl_load" = x""yes; then :
11735 lt_cv_dlopen="shl_load"
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11738 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 ac_check_lib_save_LIBS=$LIBS
11743 LIBS="-ldld $LIBS"
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char shl_load ();
11755 main ()
11757 return shl_load ();
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_link "$LINENO"; then :
11763 ac_cv_lib_dld_shl_load=yes
11764 else
11765 ac_cv_lib_dld_shl_load=no
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11772 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11773 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11775 else
11776 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11777 if test "x$ac_cv_func_dlopen" = x""yes; then :
11778 lt_cv_dlopen="dlopen"
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 ac_check_lib_save_LIBS=$LIBS
11786 LIBS="-ldl $LIBS"
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 /* Override any GCC internal prototype to avoid an error.
11791 Use char because int might match the return type of a GCC
11792 builtin and then its argument prototype would still apply. */
11793 #ifdef __cplusplus
11794 extern "C"
11795 #endif
11796 char dlopen ();
11798 main ()
11800 return dlopen ();
11802 return 0;
11804 _ACEOF
11805 if ac_fn_c_try_link "$LINENO"; then :
11806 ac_cv_lib_dl_dlopen=yes
11807 else
11808 ac_cv_lib_dl_dlopen=no
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11812 LIBS=$ac_check_lib_save_LIBS
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11815 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11816 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11820 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11821 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-lsvld $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char dlopen ();
11837 main ()
11839 return dlopen ();
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 ac_cv_lib_svld_dlopen=yes
11846 else
11847 ac_cv_lib_svld_dlopen=no
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11854 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11855 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11859 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11860 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 ac_check_lib_save_LIBS=$LIBS
11864 LIBS="-ldld $LIBS"
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char dld_link ();
11876 main ()
11878 return dld_link ();
11880 return 0;
11882 _ACEOF
11883 if ac_fn_c_try_link "$LINENO"; then :
11884 ac_cv_lib_dld_dld_link=yes
11885 else
11886 ac_cv_lib_dld_dld_link=no
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11893 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11894 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11895 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11914 esac
11916 if test "x$lt_cv_dlopen" != xno; then
11917 enable_dlopen=yes
11918 else
11919 enable_dlopen=no
11922 case $lt_cv_dlopen in
11923 dlopen)
11924 save_CPPFLAGS="$CPPFLAGS"
11925 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11927 save_LDFLAGS="$LDFLAGS"
11928 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11930 save_LIBS="$LIBS"
11931 LIBS="$lt_cv_dlopen_libs $LIBS"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11934 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11935 if test "${lt_cv_dlopen_self+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 if test "$cross_compiling" = yes; then :
11939 lt_cv_dlopen_self=cross
11940 else
11941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11942 lt_status=$lt_dlunknown
11943 cat > conftest.$ac_ext <<_LT_EOF
11944 #line 11944 "configure"
11945 #include "confdefs.h"
11947 #if HAVE_DLFCN_H
11948 #include <dlfcn.h>
11949 #endif
11951 #include <stdio.h>
11953 #ifdef RTLD_GLOBAL
11954 # define LT_DLGLOBAL RTLD_GLOBAL
11955 #else
11956 # ifdef DL_GLOBAL
11957 # define LT_DLGLOBAL DL_GLOBAL
11958 # else
11959 # define LT_DLGLOBAL 0
11960 # endif
11961 #endif
11963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11964 find out it does not work in some platform. */
11965 #ifndef LT_DLLAZY_OR_NOW
11966 # ifdef RTLD_LAZY
11967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11968 # else
11969 # ifdef DL_LAZY
11970 # define LT_DLLAZY_OR_NOW DL_LAZY
11971 # else
11972 # ifdef RTLD_NOW
11973 # define LT_DLLAZY_OR_NOW RTLD_NOW
11974 # else
11975 # ifdef DL_NOW
11976 # define LT_DLLAZY_OR_NOW DL_NOW
11977 # else
11978 # define LT_DLLAZY_OR_NOW 0
11979 # endif
11980 # endif
11981 # endif
11982 # endif
11983 #endif
11985 /* When -fvisbility=hidden is used, assume the code has been annotated
11986 correspondingly for the symbols needed. */
11987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11988 void fnord () __attribute__((visibility("default")));
11989 #endif
11991 void fnord () { int i=42; }
11992 int main ()
11994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11995 int status = $lt_dlunknown;
11997 if (self)
11999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12000 else
12002 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12003 else puts (dlerror ());
12005 /* dlclose (self); */
12007 else
12008 puts (dlerror ());
12010 return status;
12012 _LT_EOF
12013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12014 (eval $ac_link) 2>&5
12015 ac_status=$?
12016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12018 (./conftest; exit; ) >&5 2>/dev/null
12019 lt_status=$?
12020 case x$lt_status in
12021 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12022 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12023 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12024 esac
12025 else :
12026 # compilation failed
12027 lt_cv_dlopen_self=no
12030 rm -fr conftest*
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12035 $as_echo "$lt_cv_dlopen_self" >&6; }
12037 if test "x$lt_cv_dlopen_self" = xyes; then
12038 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12040 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12041 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test "$cross_compiling" = yes; then :
12045 lt_cv_dlopen_self_static=cross
12046 else
12047 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12048 lt_status=$lt_dlunknown
12049 cat > conftest.$ac_ext <<_LT_EOF
12050 #line 12050 "configure"
12051 #include "confdefs.h"
12053 #if HAVE_DLFCN_H
12054 #include <dlfcn.h>
12055 #endif
12057 #include <stdio.h>
12059 #ifdef RTLD_GLOBAL
12060 # define LT_DLGLOBAL RTLD_GLOBAL
12061 #else
12062 # ifdef DL_GLOBAL
12063 # define LT_DLGLOBAL DL_GLOBAL
12064 # else
12065 # define LT_DLGLOBAL 0
12066 # endif
12067 #endif
12069 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12070 find out it does not work in some platform. */
12071 #ifndef LT_DLLAZY_OR_NOW
12072 # ifdef RTLD_LAZY
12073 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12074 # else
12075 # ifdef DL_LAZY
12076 # define LT_DLLAZY_OR_NOW DL_LAZY
12077 # else
12078 # ifdef RTLD_NOW
12079 # define LT_DLLAZY_OR_NOW RTLD_NOW
12080 # else
12081 # ifdef DL_NOW
12082 # define LT_DLLAZY_OR_NOW DL_NOW
12083 # else
12084 # define LT_DLLAZY_OR_NOW 0
12085 # endif
12086 # endif
12087 # endif
12088 # endif
12089 #endif
12091 /* When -fvisbility=hidden is used, assume the code has been annotated
12092 correspondingly for the symbols needed. */
12093 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12094 void fnord () __attribute__((visibility("default")));
12095 #endif
12097 void fnord () { int i=42; }
12098 int main ()
12100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12101 int status = $lt_dlunknown;
12103 if (self)
12105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12106 else
12108 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12109 else puts (dlerror ());
12111 /* dlclose (self); */
12113 else
12114 puts (dlerror ());
12116 return status;
12118 _LT_EOF
12119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12120 (eval $ac_link) 2>&5
12121 ac_status=$?
12122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12123 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12124 (./conftest; exit; ) >&5 2>/dev/null
12125 lt_status=$?
12126 case x$lt_status in
12127 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12128 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12129 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12130 esac
12131 else :
12132 # compilation failed
12133 lt_cv_dlopen_self_static=no
12136 rm -fr conftest*
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12141 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12144 CPPFLAGS="$save_CPPFLAGS"
12145 LDFLAGS="$save_LDFLAGS"
12146 LIBS="$save_LIBS"
12148 esac
12150 case $lt_cv_dlopen_self in
12151 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12152 *) enable_dlopen_self=unknown ;;
12153 esac
12155 case $lt_cv_dlopen_self_static in
12156 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12157 *) enable_dlopen_self_static=unknown ;;
12158 esac
12177 striplib=
12178 old_striplib=
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12180 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12181 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12182 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12183 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; }
12186 else
12187 # FIXME - insert some real tests, host_os isn't really good enough
12188 case $host_os in
12189 darwin*)
12190 if test -n "$STRIP" ; then
12191 striplib="$STRIP -x"
12192 old_striplib="$STRIP -S"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194 $as_echo "yes" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12204 esac
12218 # Report which library types will actually be built
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12220 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12222 $as_echo "$can_build_shared" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12225 $as_echo_n "checking whether to build shared libraries... " >&6; }
12226 test "$can_build_shared" = "no" && enable_shared=no
12228 # On AIX, shared libraries and static libraries use the same namespace, and
12229 # are all built from PIC.
12230 case $host_os in
12231 aix3*)
12232 test "$enable_shared" = yes && enable_static=no
12233 if test -n "$RANLIB"; then
12234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12235 postinstall_cmds='$RANLIB $lib'
12239 aix[4-9]*)
12240 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12241 test "$enable_shared" = yes && enable_static=no
12244 esac
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12246 $as_echo "$enable_shared" >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12249 $as_echo_n "checking whether to build static libraries... " >&6; }
12250 # Make sure either enable_shared or enable_static is yes.
12251 test "$enable_shared" = yes || enable_static=yes
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12253 $as_echo "$enable_static" >&6; }
12259 ac_ext=c
12260 ac_cpp='$CPP $CPPFLAGS'
12261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12265 CC="$lt_save_CC"
12267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12268 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12269 (test "X$CXX" != "Xg++"))) ; then
12270 ac_ext=cpp
12271 ac_cpp='$CXXCPP $CPPFLAGS'
12272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12276 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12277 if test -z "$CXXCPP"; then
12278 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 # Double quotes because CXXCPP needs to be expanded
12282 for CXXCPP in "$CXX -E" "/lib/cpp"
12284 ac_preproc_ok=false
12285 for ac_cxx_preproc_warn_flag in '' yes
12287 # Use a header file that comes with gcc, so configuring glibc
12288 # with a fresh cross-compiler works.
12289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12290 # <limits.h> exists even on freestanding compilers.
12291 # On the NeXT, cc -E runs the code through the compiler's parser,
12292 # not just through cpp. "Syntax error" is here to catch this case.
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 #ifdef __STDC__
12296 # include <limits.h>
12297 #else
12298 # include <assert.h>
12299 #endif
12300 Syntax error
12301 _ACEOF
12302 if ac_fn_cxx_try_cpp "$LINENO"; then :
12304 else
12305 # Broken: fails on valid input.
12306 continue
12308 rm -f conftest.err conftest.$ac_ext
12310 # OK, works on sane cases. Now check whether nonexistent headers
12311 # can be detected and how.
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314 #include <ac_nonexistent.h>
12315 _ACEOF
12316 if ac_fn_cxx_try_cpp "$LINENO"; then :
12317 # Broken: success on invalid input.
12318 continue
12319 else
12320 # Passes both tests.
12321 ac_preproc_ok=:
12322 break
12324 rm -f conftest.err conftest.$ac_ext
12326 done
12327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12328 rm -f conftest.err conftest.$ac_ext
12329 if $ac_preproc_ok; then :
12330 break
12333 done
12334 ac_cv_prog_CXXCPP=$CXXCPP
12337 CXXCPP=$ac_cv_prog_CXXCPP
12338 else
12339 ac_cv_prog_CXXCPP=$CXXCPP
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12342 $as_echo "$CXXCPP" >&6; }
12343 ac_preproc_ok=false
12344 for ac_cxx_preproc_warn_flag in '' yes
12346 # Use a header file that comes with gcc, so configuring glibc
12347 # with a fresh cross-compiler works.
12348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349 # <limits.h> exists even on freestanding compilers.
12350 # On the NeXT, cc -E runs the code through the compiler's parser,
12351 # not just through cpp. "Syntax error" is here to catch this case.
12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12354 #ifdef __STDC__
12355 # include <limits.h>
12356 #else
12357 # include <assert.h>
12358 #endif
12359 Syntax error
12360 _ACEOF
12361 if ac_fn_cxx_try_cpp "$LINENO"; then :
12363 else
12364 # Broken: fails on valid input.
12365 continue
12367 rm -f conftest.err conftest.$ac_ext
12369 # OK, works on sane cases. Now check whether nonexistent headers
12370 # can be detected and how.
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 #include <ac_nonexistent.h>
12374 _ACEOF
12375 if ac_fn_cxx_try_cpp "$LINENO"; then :
12376 # Broken: success on invalid input.
12377 continue
12378 else
12379 # Passes both tests.
12380 ac_preproc_ok=:
12381 break
12383 rm -f conftest.err conftest.$ac_ext
12385 done
12386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12387 rm -f conftest.err conftest.$ac_ext
12388 if $ac_preproc_ok; then :
12390 else
12391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12393 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12394 See \`config.log' for more details." "$LINENO" 5; }
12397 ac_ext=c
12398 ac_cpp='$CPP $CPPFLAGS'
12399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12403 else
12404 _lt_caught_CXX_error=yes
12407 ac_ext=cpp
12408 ac_cpp='$CXXCPP $CPPFLAGS'
12409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12413 archive_cmds_need_lc_CXX=no
12414 allow_undefined_flag_CXX=
12415 always_export_symbols_CXX=no
12416 archive_expsym_cmds_CXX=
12417 compiler_needs_object_CXX=no
12418 export_dynamic_flag_spec_CXX=
12419 hardcode_direct_CXX=no
12420 hardcode_direct_absolute_CXX=no
12421 hardcode_libdir_flag_spec_CXX=
12422 hardcode_libdir_flag_spec_ld_CXX=
12423 hardcode_libdir_separator_CXX=
12424 hardcode_minus_L_CXX=no
12425 hardcode_shlibpath_var_CXX=unsupported
12426 hardcode_automatic_CXX=no
12427 inherit_rpath_CXX=no
12428 module_cmds_CXX=
12429 module_expsym_cmds_CXX=
12430 link_all_deplibs_CXX=unknown
12431 old_archive_cmds_CXX=$old_archive_cmds
12432 reload_flag_CXX=$reload_flag
12433 reload_cmds_CXX=$reload_cmds
12434 no_undefined_flag_CXX=
12435 whole_archive_flag_spec_CXX=
12436 enable_shared_with_static_runtimes_CXX=no
12438 # Source file extension for C++ test sources.
12439 ac_ext=cpp
12441 # Object file extension for compiled C++ test sources.
12442 objext=o
12443 objext_CXX=$objext
12445 # No sense in running all these tests if we already determined that
12446 # the CXX compiler isn't working. Some variables (like enable_shared)
12447 # are currently assumed to apply to all compilers on this platform,
12448 # and will be corrupted by setting them based on a non-working compiler.
12449 if test "$_lt_caught_CXX_error" != yes; then
12450 # Code to be used in simple compile tests
12451 lt_simple_compile_test_code="int some_variable = 0;"
12453 # Code to be used in simple link tests
12454 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12463 # If no C compiler was specified, use CC.
12464 LTCC=${LTCC-"$CC"}
12466 # If no C compiler flags were specified, use CFLAGS.
12467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12469 # Allow CC to be a program name with arguments.
12470 compiler=$CC
12473 # save warnings/boilerplate of simple test code
12474 ac_outfile=conftest.$ac_objext
12475 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12476 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12477 _lt_compiler_boilerplate=`cat conftest.err`
12478 $RM conftest*
12480 ac_outfile=conftest.$ac_objext
12481 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12482 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12483 _lt_linker_boilerplate=`cat conftest.err`
12484 $RM -r conftest*
12487 # Allow CC to be a program name with arguments.
12488 lt_save_CC=$CC
12489 lt_save_LD=$LD
12490 lt_save_GCC=$GCC
12491 GCC=$GXX
12492 lt_save_with_gnu_ld=$with_gnu_ld
12493 lt_save_path_LD=$lt_cv_path_LD
12494 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12495 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12496 else
12497 $as_unset lt_cv_prog_gnu_ld
12499 if test -n "${lt_cv_path_LDCXX+set}"; then
12500 lt_cv_path_LD=$lt_cv_path_LDCXX
12501 else
12502 $as_unset lt_cv_path_LD
12504 test -z "${LDCXX+set}" || LD=$LDCXX
12505 CC=${CXX-"c++"}
12506 compiler=$CC
12507 compiler_CXX=$CC
12508 for cc_temp in $compiler""; do
12509 case $cc_temp in
12510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12512 \-*) ;;
12513 *) break;;
12514 esac
12515 done
12516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12519 if test -n "$compiler"; then
12520 # We don't want -fno-exception when compiling C++ code, so set the
12521 # no_builtin_flag separately
12522 if test "$GXX" = yes; then
12523 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12524 else
12525 lt_prog_compiler_no_builtin_flag_CXX=
12528 if test "$GXX" = yes; then
12529 # Set up default GNU C++ configuration
12533 # Check whether --with-gnu-ld was given.
12534 if test "${with_gnu_ld+set}" = set; then :
12535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12536 else
12537 with_gnu_ld=no
12540 ac_prog=ld
12541 if test "$GCC" = yes; then
12542 # Check if gcc -print-prog-name=ld gives a path.
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12544 $as_echo_n "checking for ld used by $CC... " >&6; }
12545 case $host in
12546 *-*-mingw*)
12547 # gcc leaves a trailing carriage return which upsets mingw
12548 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12550 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12551 esac
12552 case $ac_prog in
12553 # Accept absolute paths.
12554 [\\/]* | ?:[\\/]*)
12555 re_direlt='/[^/][^/]*/\.\./'
12556 # Canonicalize the pathname of ld
12557 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12558 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12559 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12560 done
12561 test -z "$LD" && LD="$ac_prog"
12564 # If it fails, then pretend we aren't using GCC.
12565 ac_prog=ld
12568 # If it is relative, then search for the first ld in PATH.
12569 with_gnu_ld=unknown
12571 esac
12572 elif test "$with_gnu_ld" = yes; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12574 $as_echo_n "checking for GNU ld... " >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12577 $as_echo_n "checking for non-GNU ld... " >&6; }
12579 if test "${lt_cv_path_LD+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -z "$LD"; then
12583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12584 for ac_dir in $PATH; do
12585 IFS="$lt_save_ifs"
12586 test -z "$ac_dir" && ac_dir=.
12587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12588 lt_cv_path_LD="$ac_dir/$ac_prog"
12589 # Check to see if the program is GNU ld. I'd rather use --version,
12590 # but apparently some variants of GNU ld only accept -v.
12591 # Break only if it was the GNU/non-GNU ld that we prefer.
12592 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12593 *GNU* | *'with BFD'*)
12594 test "$with_gnu_ld" != no && break
12597 test "$with_gnu_ld" != yes && break
12599 esac
12601 done
12602 IFS="$lt_save_ifs"
12603 else
12604 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12608 LD="$lt_cv_path_LD"
12609 if test -n "$LD"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12611 $as_echo "$LD" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12616 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12619 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12623 case `$LD -v 2>&1 </dev/null` in
12624 *GNU* | *'with BFD'*)
12625 lt_cv_prog_gnu_ld=yes
12628 lt_cv_prog_gnu_ld=no
12630 esac
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12633 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12634 with_gnu_ld=$lt_cv_prog_gnu_ld
12642 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12643 # archiving commands below assume that GNU ld is being used.
12644 if test "$with_gnu_ld" = yes; then
12645 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 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'
12648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12651 # If archive_cmds runs LD, not CC, wlarc should be empty
12652 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12653 # investigate it a little bit more. (MM)
12654 wlarc='${wl}'
12656 # ancient GNU ld didn't support --whole-archive et. al.
12657 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12658 $GREP 'no-whole-archive' > /dev/null; then
12659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12660 else
12661 whole_archive_flag_spec_CXX=
12663 else
12664 with_gnu_ld=no
12665 wlarc=
12667 # A generic and very simple default shared library creation
12668 # command for GNU C++ for the case where it uses the native
12669 # linker, instead of GNU ld. If possible, this setting should
12670 # overridden to take advantage of the native linker features on
12671 # the platform it is being used on.
12672 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12675 # Commands to make compiler produce verbose output that lists
12676 # what "hidden" libraries, object files and flags are used when
12677 # linking a shared library.
12678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12680 else
12681 GXX=no
12682 with_gnu_ld=no
12683 wlarc=
12686 # PORTME: fill in a description of your system's C++ link characteristics
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12688 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12689 ld_shlibs_CXX=yes
12690 case $host_os in
12691 aix3*)
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12695 aix[4-9]*)
12696 if test "$host_cpu" = ia64; then
12697 # On IA64, the linker does run time linking by default, so we don't
12698 # have to do anything special.
12699 aix_use_runtimelinking=no
12700 exp_sym_flag='-Bexport'
12701 no_entry_flag=""
12702 else
12703 aix_use_runtimelinking=no
12705 # Test if we are trying to use run time linking or normal
12706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12707 # need to do runtime linking.
12708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12709 for ld_flag in $LDFLAGS; do
12710 case $ld_flag in
12711 *-brtl*)
12712 aix_use_runtimelinking=yes
12713 break
12715 esac
12716 done
12718 esac
12720 exp_sym_flag='-bexport'
12721 no_entry_flag='-bnoentry'
12724 # When large executables or shared objects are built, AIX ld can
12725 # have problems creating the table of contents. If linking a library
12726 # or program results in "error TOC overflow" add -mminimal-toc to
12727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12730 archive_cmds_CXX=''
12731 hardcode_direct_CXX=yes
12732 hardcode_direct_absolute_CXX=yes
12733 hardcode_libdir_separator_CXX=':'
12734 link_all_deplibs_CXX=yes
12735 file_list_spec_CXX='${wl}-f,'
12737 if test "$GXX" = yes; then
12738 case $host_os in aix4.[012]|aix4.[012].*)
12739 # We only want to do this on AIX 4.2 and lower, the check
12740 # below for broken collect2 doesn't work under 4.3+
12741 collect2name=`${CC} -print-prog-name=collect2`
12742 if test -f "$collect2name" &&
12743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12744 then
12745 # We have reworked collect2
12747 else
12748 # We have old collect2
12749 hardcode_direct_CXX=unsupported
12750 # It fails to find uninstalled libraries when the uninstalled
12751 # path is not listed in the libpath. Setting hardcode_minus_L
12752 # to unsupported forces relinking
12753 hardcode_minus_L_CXX=yes
12754 hardcode_libdir_flag_spec_CXX='-L$libdir'
12755 hardcode_libdir_separator_CXX=
12757 esac
12758 shared_flag='-shared'
12759 if test "$aix_use_runtimelinking" = yes; then
12760 shared_flag="$shared_flag "'${wl}-G'
12762 else
12763 # not using gcc
12764 if test "$host_cpu" = ia64; then
12765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12766 # chokes on -Wl,-G. The following line is correct:
12767 shared_flag='-G'
12768 else
12769 if test "$aix_use_runtimelinking" = yes; then
12770 shared_flag='${wl}-G'
12771 else
12772 shared_flag='${wl}-bM:SRE'
12777 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12778 # It seems that -bexpall does not export symbols beginning with
12779 # underscore (_), so it is better to generate a list of symbols to
12780 # export.
12781 always_export_symbols_CXX=yes
12782 if test "$aix_use_runtimelinking" = yes; then
12783 # Warning - without using the other runtime loading flags (-brtl),
12784 # -berok will link without error, but may produce a broken library.
12785 allow_undefined_flag_CXX='-berok'
12786 # Determine the default libpath from the value encoded in an empty
12787 # executable.
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12792 main ()
12796 return 0;
12798 _ACEOF
12799 if ac_fn_cxx_try_link "$LINENO"; then :
12801 lt_aix_libpath_sed='
12802 /Import File Strings/,/^$/ {
12803 /^0/ {
12804 s/^0 *\(.*\)$/\1/
12808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12809 # Check for a 64-bit object if we didn't find anything.
12810 if test -z "$aix_libpath"; then
12811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12820 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"
12821 else
12822 if test "$host_cpu" = ia64; then
12823 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12824 allow_undefined_flag_CXX="-z nodefs"
12825 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"
12826 else
12827 # Determine the default libpath from the value encoded in an
12828 # empty executable.
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12833 main ()
12837 return 0;
12839 _ACEOF
12840 if ac_fn_cxx_try_link "$LINENO"; then :
12842 lt_aix_libpath_sed='
12843 /Import File Strings/,/^$/ {
12844 /^0/ {
12845 s/^0 *\(.*\)$/\1/
12849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12850 # Check for a 64-bit object if we didn't find anything.
12851 if test -z "$aix_libpath"; then
12852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12855 rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12859 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12860 # Warning - without using the other run time loading flags,
12861 # -berok will link without error, but may produce a broken library.
12862 no_undefined_flag_CXX=' ${wl}-bernotok'
12863 allow_undefined_flag_CXX=' ${wl}-berok'
12864 if test "$with_gnu_ld" = yes; then
12865 # We only use this code for GNU lds that support --whole-archive.
12866 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12867 else
12868 # Exported symbols can be pulled into shared objects from archives
12869 whole_archive_flag_spec_CXX='$convenience'
12871 archive_cmds_need_lc_CXX=yes
12872 # This is similar to how AIX traditionally builds its shared
12873 # libraries.
12874 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'
12879 beos*)
12880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12881 allow_undefined_flag_CXX=unsupported
12882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12883 # support --undefined. This deserves some investigation. FIXME
12884 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12885 else
12886 ld_shlibs_CXX=no
12890 chorus*)
12891 case $cc_basename in
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12896 esac
12899 cygwin* | mingw* | pw32* | cegcc*)
12900 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12901 # as there is no search path for DLLs.
12902 hardcode_libdir_flag_spec_CXX='-L$libdir'
12903 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12904 allow_undefined_flag_CXX=unsupported
12905 always_export_symbols_CXX=no
12906 enable_shared_with_static_runtimes_CXX=yes
12908 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12909 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'
12910 # If the export-symbols file already is a .def file (1st line
12911 # is EXPORTS), use it as is; otherwise, prepend...
12912 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12913 cp $export_symbols $output_objdir/$soname.def;
12914 else
12915 echo EXPORTS > $output_objdir/$soname.def;
12916 cat $export_symbols >> $output_objdir/$soname.def;
12918 $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'
12919 else
12920 ld_shlibs_CXX=no
12923 darwin* | rhapsody*)
12926 archive_cmds_need_lc_CXX=no
12927 hardcode_direct_CXX=no
12928 hardcode_automatic_CXX=yes
12929 hardcode_shlibpath_var_CXX=unsupported
12930 if test "$lt_cv_ld_force_load" = "yes"; then
12931 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\"`'
12932 else
12933 whole_archive_flag_spec_CXX=''
12935 link_all_deplibs_CXX=yes
12936 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12937 case $cc_basename in
12938 ifort*) _lt_dar_can_shared=yes ;;
12939 *) _lt_dar_can_shared=$GCC ;;
12940 esac
12941 if test "$_lt_dar_can_shared" = "yes"; then
12942 output_verbose_link_cmd=func_echo_all
12943 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}"
12944 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12945 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}"
12946 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}"
12947 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12948 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}"
12949 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}"
12952 else
12953 ld_shlibs_CXX=no
12958 dgux*)
12959 case $cc_basename in
12960 ec++*)
12961 # FIXME: insert proper C++ library support
12962 ld_shlibs_CXX=no
12964 ghcx*)
12965 # Green Hills C++ Compiler
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12970 # FIXME: insert proper C++ library support
12971 ld_shlibs_CXX=no
12973 esac
12976 freebsd2.*)
12977 # C++ shared libraries reported to be fairly broken before
12978 # switch to ELF
12979 ld_shlibs_CXX=no
12982 freebsd-elf*)
12983 archive_cmds_need_lc_CXX=no
12986 freebsd* | dragonfly*)
12987 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12988 # conventions
12989 ld_shlibs_CXX=yes
12992 gnu*)
12995 haiku*)
12996 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12997 link_all_deplibs_CXX=yes
13000 hpux9*)
13001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13002 hardcode_libdir_separator_CXX=:
13003 export_dynamic_flag_spec_CXX='${wl}-E'
13004 hardcode_direct_CXX=yes
13005 hardcode_minus_L_CXX=yes # Not in the search PATH,
13006 # but as the default
13007 # location of the library.
13009 case $cc_basename in
13010 CC*)
13011 # FIXME: insert proper C++ library support
13012 ld_shlibs_CXX=no
13014 aCC*)
13015 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'
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13020 # There doesn't appear to be a way to prevent this compiler from
13021 # explicitly linking system object files so we need to strip them
13022 # from the output so that they don't get included in the library
13023 # dependencies.
13024 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"'
13027 if test "$GXX" = yes; then
13028 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'
13029 else
13030 # FIXME: insert proper C++ library support
13031 ld_shlibs_CXX=no
13034 esac
13037 hpux10*|hpux11*)
13038 if test $with_gnu_ld = no; then
13039 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13040 hardcode_libdir_separator_CXX=:
13042 case $host_cpu in
13043 hppa*64*|ia64*)
13046 export_dynamic_flag_spec_CXX='${wl}-E'
13048 esac
13050 case $host_cpu in
13051 hppa*64*|ia64*)
13052 hardcode_direct_CXX=no
13053 hardcode_shlibpath_var_CXX=no
13056 hardcode_direct_CXX=yes
13057 hardcode_direct_absolute_CXX=yes
13058 hardcode_minus_L_CXX=yes # Not in the search PATH,
13059 # but as the default
13060 # location of the library.
13062 esac
13064 case $cc_basename in
13065 CC*)
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13069 aCC*)
13070 case $host_cpu in
13071 hppa*64*)
13072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13074 ia64*)
13075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13080 esac
13081 # Commands to make compiler produce verbose output that lists
13082 # what "hidden" libraries, object files and flags are used when
13083 # linking a shared library.
13085 # There doesn't appear to be a way to prevent this compiler from
13086 # explicitly linking system object files so we need to strip them
13087 # from the output so that they don't get included in the library
13088 # dependencies.
13089 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"'
13092 if test "$GXX" = yes; then
13093 if test $with_gnu_ld = no; then
13094 case $host_cpu in
13095 hppa*64*)
13096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13098 ia64*)
13099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13102 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'
13104 esac
13106 else
13107 # FIXME: insert proper C++ library support
13108 ld_shlibs_CXX=no
13111 esac
13114 interix[3-9]*)
13115 hardcode_direct_CXX=no
13116 hardcode_shlibpath_var_CXX=no
13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13118 export_dynamic_flag_spec_CXX='${wl}-E'
13119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13120 # Instead, shared libraries are loaded at an image base (0x10000000 by
13121 # default) and relocated if they conflict, which is a slow very memory
13122 # consuming and fragmenting process. To avoid this, we pick a random,
13123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13124 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13125 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'
13126 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'
13128 irix5* | irix6*)
13129 case $cc_basename in
13130 CC*)
13131 # SGI C++
13132 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'
13134 # Archives containing C++ object files must be created using
13135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13136 # necessary to make sure instantiated templates are included
13137 # in the archive.
13138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13141 if test "$GXX" = yes; then
13142 if test "$with_gnu_ld" = no; then
13143 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'
13144 else
13145 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'
13148 link_all_deplibs_CXX=yes
13150 esac
13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13152 hardcode_libdir_separator_CXX=:
13153 inherit_rpath_CXX=yes
13156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13157 case $cc_basename in
13158 KCC*)
13159 # Kuck and Associates, Inc. (KAI) C++ Compiler
13161 # KCC will only create a shared library if the output file
13162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13163 # to its proper name (with version) after linking.
13164 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'
13165 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'
13166 # Commands to make compiler produce verbose output that lists
13167 # what "hidden" libraries, object files and flags are used when
13168 # linking a shared library.
13170 # There doesn't appear to be a way to prevent this compiler from
13171 # explicitly linking system object files so we need to strip them
13172 # from the output so that they don't get included in the library
13173 # dependencies.
13174 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"'
13176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13179 # Archives containing C++ object files must be created using
13180 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13183 icpc* | ecpc* )
13184 # Intel C++
13185 with_gnu_ld=yes
13186 # version 8.0 and above of icpc choke on multiply defined symbols
13187 # if we add $predep_objects and $postdep_objects, however 7.1 and
13188 # earlier do not add the objects themselves.
13189 case `$CC -V 2>&1` in
13190 *"Version 7."*)
13191 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 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'
13194 *) # Version 8.0 or newer
13195 tmp_idyn=
13196 case $host_cpu in
13197 ia64*) tmp_idyn=' -i_dynamic';;
13198 esac
13199 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13200 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'
13202 esac
13203 archive_cmds_need_lc_CXX=no
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13206 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13208 pgCC* | pgcpp*)
13209 # Portland Group C++ compiler
13210 case `$CC -V` in
13211 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13212 prelink_cmds_CXX='tpldir=Template.dir~
13213 rm -rf $tpldir~
13214 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13215 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13216 old_archive_cmds_CXX='tpldir=Template.dir~
13217 rm -rf $tpldir~
13218 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13219 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13220 $RANLIB $oldlib'
13221 archive_cmds_CXX='tpldir=Template.dir~
13222 rm -rf $tpldir~
13223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13225 archive_expsym_cmds_CXX='tpldir=Template.dir~
13226 rm -rf $tpldir~
13227 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13228 $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'
13230 *) # Version 6 and above use weak symbols
13231 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13232 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'
13234 esac
13236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13238 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'
13240 cxx*)
13241 # Compaq C++
13242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13243 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'
13245 runpath_var=LD_RUN_PATH
13246 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13247 hardcode_libdir_separator_CXX=:
13249 # Commands to make compiler produce verbose output that lists
13250 # what "hidden" libraries, object files and flags are used when
13251 # linking a shared library.
13253 # There doesn't appear to be a way to prevent this compiler from
13254 # explicitly linking system object files so we need to strip them
13255 # from the output so that they don't get included in the library
13256 # dependencies.
13257 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'
13259 xl* | mpixl* | bgxl*)
13260 # IBM XL 8.0 on PPC, with GNU ld
13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13263 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13264 if test "x$supports_anon_versioning" = xyes; then
13265 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13267 echo "local: *; };" >> $output_objdir/$libname.ver~
13268 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13272 case `$CC -V 2>&1 | sed 5q` in
13273 *Sun\ C*)
13274 # Sun C++ 5.9
13275 no_undefined_flag_CXX=' -zdefs'
13276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13277 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'
13278 hardcode_libdir_flag_spec_CXX='-R$libdir'
13279 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'
13280 compiler_needs_object_CXX=yes
13282 # Not sure whether something based on
13283 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13284 # would be better.
13285 output_verbose_link_cmd='func_echo_all'
13287 # Archives containing C++ object files must be created using
13288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13289 # necessary to make sure instantiated templates are included
13290 # in the archive.
13291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13293 esac
13295 esac
13298 lynxos*)
13299 # FIXME: insert proper C++ library support
13300 ld_shlibs_CXX=no
13303 m88k*)
13304 # FIXME: insert proper C++ library support
13305 ld_shlibs_CXX=no
13308 mvs*)
13309 case $cc_basename in
13310 cxx*)
13311 # FIXME: insert proper C++ library support
13312 ld_shlibs_CXX=no
13315 # FIXME: insert proper C++ library support
13316 ld_shlibs_CXX=no
13318 esac
13321 netbsd*)
13322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13323 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13324 wlarc=
13325 hardcode_libdir_flag_spec_CXX='-R$libdir'
13326 hardcode_direct_CXX=yes
13327 hardcode_shlibpath_var_CXX=no
13329 # Workaround some broken pre-1.5 toolchains
13330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13333 *nto* | *qnx*)
13334 ld_shlibs_CXX=yes
13337 openbsd2*)
13338 # C++ shared libraries are fairly broken
13339 ld_shlibs_CXX=no
13342 openbsd*)
13343 if test -f /usr/libexec/ld.so; then
13344 hardcode_direct_CXX=yes
13345 hardcode_shlibpath_var_CXX=no
13346 hardcode_direct_absolute_CXX=yes
13347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13350 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13351 export_dynamic_flag_spec_CXX='${wl}-E'
13352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13354 output_verbose_link_cmd=func_echo_all
13355 else
13356 ld_shlibs_CXX=no
13360 osf3* | osf4* | osf5*)
13361 case $cc_basename in
13362 KCC*)
13363 # Kuck and Associates, Inc. (KAI) C++ Compiler
13365 # KCC will only create a shared library if the output file
13366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13367 # to its proper name (with version) after linking.
13368 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'
13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13371 hardcode_libdir_separator_CXX=:
13373 # Archives containing C++ object files must be created using
13374 # the KAI C++ compiler.
13375 case $host in
13376 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13377 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13378 esac
13380 RCC*)
13381 # Rational C++ 2.4.1
13382 # FIXME: insert proper C++ library support
13383 ld_shlibs_CXX=no
13385 cxx*)
13386 case $host in
13387 osf3*)
13388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13389 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'
13390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13393 allow_undefined_flag_CXX=' -expect_unresolved \*'
13394 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'
13395 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13396 echo "-hidden">> $lib.exp~
13397 $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~
13398 $RM $lib.exp'
13399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13401 esac
13403 hardcode_libdir_separator_CXX=:
13405 # Commands to make compiler produce verbose output that lists
13406 # what "hidden" libraries, object files and flags are used when
13407 # linking a shared library.
13409 # There doesn't appear to be a way to prevent this compiler from
13410 # explicitly linking system object files so we need to strip them
13411 # from the output so that they don't get included in the library
13412 # dependencies.
13413 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"'
13416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13417 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13418 case $host in
13419 osf3*)
13420 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'
13423 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'
13425 esac
13427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428 hardcode_libdir_separator_CXX=:
13430 # Commands to make compiler produce verbose output that lists
13431 # what "hidden" libraries, object files and flags are used when
13432 # linking a shared library.
13433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13435 else
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13440 esac
13443 psos*)
13444 # FIXME: insert proper C++ library support
13445 ld_shlibs_CXX=no
13448 sunos4*)
13449 case $cc_basename in
13450 CC*)
13451 # Sun C++ 4.x
13452 # FIXME: insert proper C++ library support
13453 ld_shlibs_CXX=no
13455 lcc*)
13456 # Lucid
13457 # FIXME: insert proper C++ library support
13458 ld_shlibs_CXX=no
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13464 esac
13467 solaris*)
13468 case $cc_basename in
13469 CC*)
13470 # Sun C++ 4.2, 5.x and Centerline C++
13471 archive_cmds_need_lc_CXX=yes
13472 no_undefined_flag_CXX=' -zdefs'
13473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13477 hardcode_libdir_flag_spec_CXX='-R$libdir'
13478 hardcode_shlibpath_var_CXX=no
13479 case $host_os in
13480 solaris2.[0-5] | solaris2.[0-5].*) ;;
13482 # The compiler driver will combine and reorder linker options,
13483 # but understands `-z linker_flag'.
13484 # Supported since Solaris 2.6 (maybe 2.5.1?)
13485 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13487 esac
13488 link_all_deplibs_CXX=yes
13490 output_verbose_link_cmd='func_echo_all'
13492 # Archives containing C++ object files must be created using
13493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13494 # necessary to make sure instantiated templates are included
13495 # in the archive.
13496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13498 gcx*)
13499 # Green Hills C++ Compiler
13500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13502 # The C++ compiler must be used to create the archive.
13503 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13506 # GNU C++ compiler with Solaris linker
13507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13509 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13510 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13512 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13514 # Commands to make compiler produce verbose output that lists
13515 # what "hidden" libraries, object files and flags are used when
13516 # linking a shared library.
13517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13518 else
13519 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13520 # platform.
13521 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13522 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13523 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13525 # Commands to make compiler produce verbose output that lists
13526 # what "hidden" libraries, object files and flags are used when
13527 # linking a shared library.
13528 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13531 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13532 case $host_os in
13533 solaris2.[0-5] | solaris2.[0-5].*) ;;
13535 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13537 esac
13540 esac
13543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13544 no_undefined_flag_CXX='${wl}-z,text'
13545 archive_cmds_need_lc_CXX=no
13546 hardcode_shlibpath_var_CXX=no
13547 runpath_var='LD_RUN_PATH'
13549 case $cc_basename in
13550 CC*)
13551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13558 esac
13561 sysv5* | sco3.2v5* | sco5v6*)
13562 # Note: We can NOT use -z defs as we might desire, because we do not
13563 # link with -lc, and that would cause any symbols used from libc to
13564 # always be unresolved, which means just about no library would
13565 # ever link correctly. If we're not using GNU ld we use -z text
13566 # though, which does catch some bad symbols but isn't as heavy-handed
13567 # as -z defs.
13568 no_undefined_flag_CXX='${wl}-z,text'
13569 allow_undefined_flag_CXX='${wl}-z,nodefs'
13570 archive_cmds_need_lc_CXX=no
13571 hardcode_shlibpath_var_CXX=no
13572 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13573 hardcode_libdir_separator_CXX=':'
13574 link_all_deplibs_CXX=yes
13575 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13576 runpath_var='LD_RUN_PATH'
13578 case $cc_basename in
13579 CC*)
13580 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13581 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13582 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13583 '"$old_archive_cmds_CXX"
13584 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13585 '"$reload_cmds_CXX"
13588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591 esac
13594 tandem*)
13595 case $cc_basename in
13596 NCC*)
13597 # NonStop-UX NCC 3.20
13598 # FIXME: insert proper C++ library support
13599 ld_shlibs_CXX=no
13602 # FIXME: insert proper C++ library support
13603 ld_shlibs_CXX=no
13605 esac
13608 vxworks*)
13609 # FIXME: insert proper C++ library support
13610 ld_shlibs_CXX=no
13614 # FIXME: insert proper C++ library support
13615 ld_shlibs_CXX=no
13617 esac
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13620 $as_echo "$ld_shlibs_CXX" >&6; }
13621 test "$ld_shlibs_CXX" = no && can_build_shared=no
13623 GCC_CXX="$GXX"
13624 LD_CXX="$LD"
13626 ## CAVEAT EMPTOR:
13627 ## There is no encapsulation within the following macros, do not change
13628 ## the running order or otherwise move them around unless you know exactly
13629 ## what you are doing...
13630 # Dependencies to place before and after the object being linked:
13631 predep_objects_CXX=
13632 postdep_objects_CXX=
13633 predeps_CXX=
13634 postdeps_CXX=
13635 compiler_lib_search_path_CXX=
13637 cat > conftest.$ac_ext <<_LT_EOF
13638 class Foo
13640 public:
13641 Foo (void) { a = 0; }
13642 private:
13643 int a;
13645 _LT_EOF
13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13648 (eval $ac_compile) 2>&5
13649 ac_status=$?
13650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; }; then
13652 # Parse the compiler output and extract the necessary
13653 # objects, libraries and library flags.
13655 # Sentinel used to keep track of whether or not we are before
13656 # the conftest object file.
13657 pre_test_object_deps_done=no
13659 for p in `eval "$output_verbose_link_cmd"`; do
13660 case $p in
13662 -L* | -R* | -l*)
13663 # Some compilers place space between "-{L,R}" and the path.
13664 # Remove the space.
13665 if test $p = "-L" ||
13666 test $p = "-R"; then
13667 prev=$p
13668 continue
13669 else
13670 prev=
13673 if test "$pre_test_object_deps_done" = no; then
13674 case $p in
13675 -L* | -R*)
13676 # Internal compiler library paths should come after those
13677 # provided the user. The postdeps already come after the
13678 # user supplied libs so there is no need to process them.
13679 if test -z "$compiler_lib_search_path_CXX"; then
13680 compiler_lib_search_path_CXX="${prev}${p}"
13681 else
13682 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13685 # The "-l" case would never come before the object being
13686 # linked, so don't bother handling this case.
13687 esac
13688 else
13689 if test -z "$postdeps_CXX"; then
13690 postdeps_CXX="${prev}${p}"
13691 else
13692 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13697 *.$objext)
13698 # This assumes that the test object file only shows up
13699 # once in the compiler output.
13700 if test "$p" = "conftest.$objext"; then
13701 pre_test_object_deps_done=yes
13702 continue
13705 if test "$pre_test_object_deps_done" = no; then
13706 if test -z "$predep_objects_CXX"; then
13707 predep_objects_CXX="$p"
13708 else
13709 predep_objects_CXX="$predep_objects_CXX $p"
13711 else
13712 if test -z "$postdep_objects_CXX"; then
13713 postdep_objects_CXX="$p"
13714 else
13715 postdep_objects_CXX="$postdep_objects_CXX $p"
13720 *) ;; # Ignore the rest.
13722 esac
13723 done
13725 # Clean up.
13726 rm -f a.out a.exe
13727 else
13728 echo "libtool.m4: error: problem compiling CXX test program"
13731 $RM -f confest.$objext
13733 # PORTME: override above test on systems where it is broken
13734 case $host_os in
13735 interix[3-9]*)
13736 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13737 # hack all around it, let's just trust "g++" to DTRT.
13738 predep_objects_CXX=
13739 postdep_objects_CXX=
13740 postdeps_CXX=
13743 linux*)
13744 case `$CC -V 2>&1 | sed 5q` in
13745 *Sun\ C*)
13746 # Sun C++ 5.9
13748 # The more standards-conforming stlport4 library is
13749 # incompatible with the Cstd library. Avoid specifying
13750 # it if it's in CXXFLAGS. Ignore libCrun as
13751 # -library=stlport4 depends on it.
13752 case " $CXX $CXXFLAGS " in
13753 *" -library=stlport4 "*)
13754 solaris_use_stlport4=yes
13756 esac
13758 if test "$solaris_use_stlport4" != yes; then
13759 postdeps_CXX='-library=Cstd -library=Crun'
13762 esac
13765 solaris*)
13766 case $cc_basename in
13767 CC*)
13768 # The more standards-conforming stlport4 library is
13769 # incompatible with the Cstd library. Avoid specifying
13770 # it if it's in CXXFLAGS. Ignore libCrun as
13771 # -library=stlport4 depends on it.
13772 case " $CXX $CXXFLAGS " in
13773 *" -library=stlport4 "*)
13774 solaris_use_stlport4=yes
13776 esac
13778 # Adding this requires a known-good setup of shared libraries for
13779 # Sun compiler versions before 5.6, else PIC objects from an old
13780 # archive will be linked into the output, leading to subtle bugs.
13781 if test "$solaris_use_stlport4" != yes; then
13782 postdeps_CXX='-library=Cstd -library=Crun'
13785 esac
13787 esac
13790 case " $postdeps_CXX " in
13791 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13792 esac
13793 compiler_lib_search_dirs_CXX=
13794 if test -n "${compiler_lib_search_path_CXX}"; then
13795 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13828 lt_prog_compiler_wl_CXX=
13829 lt_prog_compiler_pic_CXX=
13830 lt_prog_compiler_static_CXX=
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13833 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13835 # C++ specific cases for pic, static, wl, etc.
13836 if test "$GXX" = yes; then
13837 lt_prog_compiler_wl_CXX='-Wl,'
13838 lt_prog_compiler_static_CXX='-static'
13840 case $host_os in
13841 aix*)
13842 # All AIX code is PIC.
13843 if test "$host_cpu" = ia64; then
13844 # AIX 5 now supports IA64 processor
13845 lt_prog_compiler_static_CXX='-Bstatic'
13847 lt_prog_compiler_pic_CXX='-fPIC'
13850 amigaos*)
13851 case $host_cpu in
13852 powerpc)
13853 # see comment about AmigaOS4 .so support
13854 lt_prog_compiler_pic_CXX='-fPIC'
13856 m68k)
13857 # FIXME: we need at least 68020 code to build shared libraries, but
13858 # adding the `-m68020' flag to GCC prevents building anything better,
13859 # like `-m68040'.
13860 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13862 esac
13865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13866 # PIC is the default for these OSes.
13868 mingw* | cygwin* | os2* | pw32* | cegcc*)
13869 # This hack is so that the source file can tell whether it is being
13870 # built for inclusion in a dll (and should export symbols for example).
13871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13872 # (--disable-auto-import) libraries
13873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13875 darwin* | rhapsody*)
13876 # PIC is the default on this platform
13877 # Common symbols not allowed in MH_DYLIB files
13878 lt_prog_compiler_pic_CXX='-fno-common'
13880 *djgpp*)
13881 # DJGPP does not support shared libraries at all
13882 lt_prog_compiler_pic_CXX=
13884 haiku*)
13885 # PIC is the default for Haiku.
13886 # The "-static" flag exists, but is broken.
13887 lt_prog_compiler_static_CXX=
13889 interix[3-9]*)
13890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13891 # Instead, we relocate shared libraries at runtime.
13893 sysv4*MP*)
13894 if test -d /usr/nec; then
13895 lt_prog_compiler_pic_CXX=-Kconform_pic
13898 hpux*)
13899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13901 # sets the default TLS model and affects inlining.
13902 case $host_cpu in
13903 hppa*64*)
13906 lt_prog_compiler_pic_CXX='-fPIC'
13908 esac
13910 *qnx* | *nto*)
13911 # QNX uses GNU C++, but need to define -shared option too, otherwise
13912 # it will coredump.
13913 lt_prog_compiler_pic_CXX='-fPIC -shared'
13916 lt_prog_compiler_pic_CXX='-fPIC'
13918 esac
13919 else
13920 case $host_os in
13921 aix[4-9]*)
13922 # All AIX code is PIC.
13923 if test "$host_cpu" = ia64; then
13924 # AIX 5 now supports IA64 processor
13925 lt_prog_compiler_static_CXX='-Bstatic'
13926 else
13927 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13930 chorus*)
13931 case $cc_basename in
13932 cxch68*)
13933 # Green Hills C++ Compiler
13934 # _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"
13936 esac
13938 dgux*)
13939 case $cc_basename in
13940 ec++*)
13941 lt_prog_compiler_pic_CXX='-KPIC'
13943 ghcx*)
13944 # Green Hills C++ Compiler
13945 lt_prog_compiler_pic_CXX='-pic'
13949 esac
13951 freebsd* | dragonfly*)
13952 # FreeBSD uses GNU C++
13954 hpux9* | hpux10* | hpux11*)
13955 case $cc_basename in
13956 CC*)
13957 lt_prog_compiler_wl_CXX='-Wl,'
13958 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13959 if test "$host_cpu" != ia64; then
13960 lt_prog_compiler_pic_CXX='+Z'
13963 aCC*)
13964 lt_prog_compiler_wl_CXX='-Wl,'
13965 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13966 case $host_cpu in
13967 hppa*64*|ia64*)
13968 # +Z the default
13971 lt_prog_compiler_pic_CXX='+Z'
13973 esac
13977 esac
13979 interix*)
13980 # This is c89, which is MS Visual C++ (no shared libs)
13981 # Anyone wants to do a port?
13983 irix5* | irix6* | nonstopux*)
13984 case $cc_basename in
13985 CC*)
13986 lt_prog_compiler_wl_CXX='-Wl,'
13987 lt_prog_compiler_static_CXX='-non_shared'
13988 # CC pic flag -KPIC is the default.
13992 esac
13994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13995 case $cc_basename in
13996 KCC*)
13997 # KAI C++ Compiler
13998 lt_prog_compiler_wl_CXX='--backend -Wl,'
13999 lt_prog_compiler_pic_CXX='-fPIC'
14001 ecpc* )
14002 # old Intel C++ for x86_64 which still supported -KPIC.
14003 lt_prog_compiler_wl_CXX='-Wl,'
14004 lt_prog_compiler_pic_CXX='-KPIC'
14005 lt_prog_compiler_static_CXX='-static'
14007 icpc* )
14008 # Intel C++, used to be incompatible with GCC.
14009 # ICC 10 doesn't accept -KPIC any more.
14010 lt_prog_compiler_wl_CXX='-Wl,'
14011 lt_prog_compiler_pic_CXX='-fPIC'
14012 lt_prog_compiler_static_CXX='-static'
14014 pgCC* | pgcpp*)
14015 # Portland Group C++ compiler
14016 lt_prog_compiler_wl_CXX='-Wl,'
14017 lt_prog_compiler_pic_CXX='-fpic'
14018 lt_prog_compiler_static_CXX='-Bstatic'
14020 cxx*)
14021 # Compaq C++
14022 # Make sure the PIC flag is empty. It appears that all Alpha
14023 # Linux and Compaq Tru64 Unix objects are PIC.
14024 lt_prog_compiler_pic_CXX=
14025 lt_prog_compiler_static_CXX='-non_shared'
14027 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14028 # IBM XL 8.0, 9.0 on PPC and BlueGene
14029 lt_prog_compiler_wl_CXX='-Wl,'
14030 lt_prog_compiler_pic_CXX='-qpic'
14031 lt_prog_compiler_static_CXX='-qstaticlink'
14034 case `$CC -V 2>&1 | sed 5q` in
14035 *Sun\ C*)
14036 # Sun C++ 5.9
14037 lt_prog_compiler_pic_CXX='-KPIC'
14038 lt_prog_compiler_static_CXX='-Bstatic'
14039 lt_prog_compiler_wl_CXX='-Qoption ld '
14041 esac
14043 esac
14045 lynxos*)
14047 m88k*)
14049 mvs*)
14050 case $cc_basename in
14051 cxx*)
14052 lt_prog_compiler_pic_CXX='-W c,exportall'
14056 esac
14058 netbsd*)
14060 *qnx* | *nto*)
14061 # QNX uses GNU C++, but need to define -shared option too, otherwise
14062 # it will coredump.
14063 lt_prog_compiler_pic_CXX='-fPIC -shared'
14065 osf3* | osf4* | osf5*)
14066 case $cc_basename in
14067 KCC*)
14068 lt_prog_compiler_wl_CXX='--backend -Wl,'
14070 RCC*)
14071 # Rational C++ 2.4.1
14072 lt_prog_compiler_pic_CXX='-pic'
14074 cxx*)
14075 # Digital/Compaq C++
14076 lt_prog_compiler_wl_CXX='-Wl,'
14077 # Make sure the PIC flag is empty. It appears that all Alpha
14078 # Linux and Compaq Tru64 Unix objects are PIC.
14079 lt_prog_compiler_pic_CXX=
14080 lt_prog_compiler_static_CXX='-non_shared'
14084 esac
14086 psos*)
14088 solaris*)
14089 case $cc_basename in
14090 CC*)
14091 # Sun C++ 4.2, 5.x and Centerline C++
14092 lt_prog_compiler_pic_CXX='-KPIC'
14093 lt_prog_compiler_static_CXX='-Bstatic'
14094 lt_prog_compiler_wl_CXX='-Qoption ld '
14096 gcx*)
14097 # Green Hills C++ Compiler
14098 lt_prog_compiler_pic_CXX='-PIC'
14102 esac
14104 sunos4*)
14105 case $cc_basename in
14106 CC*)
14107 # Sun C++ 4.x
14108 lt_prog_compiler_pic_CXX='-pic'
14109 lt_prog_compiler_static_CXX='-Bstatic'
14111 lcc*)
14112 # Lucid
14113 lt_prog_compiler_pic_CXX='-pic'
14117 esac
14119 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14120 case $cc_basename in
14121 CC*)
14122 lt_prog_compiler_wl_CXX='-Wl,'
14123 lt_prog_compiler_pic_CXX='-KPIC'
14124 lt_prog_compiler_static_CXX='-Bstatic'
14126 esac
14128 tandem*)
14129 case $cc_basename in
14130 NCC*)
14131 # NonStop-UX NCC 3.20
14132 lt_prog_compiler_pic_CXX='-KPIC'
14136 esac
14138 vxworks*)
14141 lt_prog_compiler_can_build_shared_CXX=no
14143 esac
14146 case $host_os in
14147 # For platforms which do not support PIC, -DPIC is meaningless:
14148 *djgpp*)
14149 lt_prog_compiler_pic_CXX=
14152 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14154 esac
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14156 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14161 # Check to make sure the PIC flag actually works.
14163 if test -n "$lt_prog_compiler_pic_CXX"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14165 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14166 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14167 $as_echo_n "(cached) " >&6
14168 else
14169 lt_cv_prog_compiler_pic_works_CXX=no
14170 ac_outfile=conftest.$ac_objext
14171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14172 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14173 # Insert the option either (1) after the last *FLAGS variable, or
14174 # (2) before a word containing "conftest.", or (3) at the end.
14175 # Note that $ac_compile itself does not contain backslashes and begins
14176 # with a dollar sign (not a hyphen), so the echo should work correctly.
14177 # The option is referenced via a variable to avoid confusing sed.
14178 lt_compile=`echo "$ac_compile" | $SED \
14179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181 -e 's:$: $lt_compiler_flag:'`
14182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14183 (eval "$lt_compile" 2>conftest.err)
14184 ac_status=$?
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 if (exit $ac_status) && test -s "$ac_outfile"; then
14188 # The compiler can only warn and ignore the option if not recognized
14189 # So say no if there are warnings other than the usual output.
14190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14193 lt_cv_prog_compiler_pic_works_CXX=yes
14196 $RM conftest*
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14200 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14202 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14203 case $lt_prog_compiler_pic_CXX in
14204 "" | " "*) ;;
14205 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14206 esac
14207 else
14208 lt_prog_compiler_pic_CXX=
14209 lt_prog_compiler_can_build_shared_CXX=no
14217 # Check to make sure the static flag actually works.
14219 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14221 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14222 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 lt_cv_prog_compiler_static_works_CXX=no
14226 save_LDFLAGS="$LDFLAGS"
14227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14230 # The linker can only warn and ignore the option if not recognized
14231 # So say no if there are warnings
14232 if test -s conftest.err; then
14233 # Append any errors to the config.log.
14234 cat conftest.err 1>&5
14235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14237 if diff conftest.exp conftest.er2 >/dev/null; then
14238 lt_cv_prog_compiler_static_works_CXX=yes
14240 else
14241 lt_cv_prog_compiler_static_works_CXX=yes
14244 $RM -r conftest*
14245 LDFLAGS="$save_LDFLAGS"
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14249 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14251 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14253 else
14254 lt_prog_compiler_static_CXX=
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14262 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14263 $as_echo_n "(cached) " >&6
14264 else
14265 lt_cv_prog_compiler_c_o_CXX=no
14266 $RM -r conftest 2>/dev/null
14267 mkdir conftest
14268 cd conftest
14269 mkdir out
14270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14272 lt_compiler_flag="-o out/conftest2.$ac_objext"
14273 # Insert the option either (1) after the last *FLAGS variable, or
14274 # (2) before a word containing "conftest.", or (3) at the end.
14275 # Note that $ac_compile itself does not contain backslashes and begins
14276 # with a dollar sign (not a hyphen), so the echo should work correctly.
14277 lt_compile=`echo "$ac_compile" | $SED \
14278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14280 -e 's:$: $lt_compiler_flag:'`
14281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14282 (eval "$lt_compile" 2>out/conftest.err)
14283 ac_status=$?
14284 cat out/conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14287 then
14288 # The compiler can only warn and ignore the option if not recognized
14289 # So say no if there are warnings
14290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14293 lt_cv_prog_compiler_c_o_CXX=yes
14296 chmod u+w . 2>&5
14297 $RM conftest*
14298 # SGI C++ compiler will create directory out/ii_files/ for
14299 # template instantiation
14300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14301 $RM out/* && rmdir out
14302 cd ..
14303 $RM -r conftest
14304 $RM conftest*
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14308 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14314 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 lt_cv_prog_compiler_c_o_CXX=no
14318 $RM -r conftest 2>/dev/null
14319 mkdir conftest
14320 cd conftest
14321 mkdir out
14322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14324 lt_compiler_flag="-o out/conftest2.$ac_objext"
14325 # Insert the option either (1) after the last *FLAGS variable, or
14326 # (2) before a word containing "conftest.", or (3) at the end.
14327 # Note that $ac_compile itself does not contain backslashes and begins
14328 # with a dollar sign (not a hyphen), so the echo should work correctly.
14329 lt_compile=`echo "$ac_compile" | $SED \
14330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14332 -e 's:$: $lt_compiler_flag:'`
14333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14334 (eval "$lt_compile" 2>out/conftest.err)
14335 ac_status=$?
14336 cat out/conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14339 then
14340 # The compiler can only warn and ignore the option if not recognized
14341 # So say no if there are warnings
14342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14345 lt_cv_prog_compiler_c_o_CXX=yes
14348 chmod u+w . 2>&5
14349 $RM conftest*
14350 # SGI C++ compiler will create directory out/ii_files/ for
14351 # template instantiation
14352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14353 $RM out/* && rmdir out
14354 cd ..
14355 $RM -r conftest
14356 $RM conftest*
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14360 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14365 hard_links="nottested"
14366 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14367 # do not overwrite the value of need_locks provided by the user
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14369 $as_echo_n "checking if we can lock with hard links... " >&6; }
14370 hard_links=yes
14371 $RM conftest*
14372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14373 touch conftest.a
14374 ln conftest.a conftest.b 2>&5 || hard_links=no
14375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14377 $as_echo "$hard_links" >&6; }
14378 if test "$hard_links" = no; then
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14381 need_locks=warn
14383 else
14384 need_locks=no
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14390 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14393 case $host_os in
14394 aix[4-9]*)
14395 # If we're using GNU nm, then we don't want the "-C" option.
14396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14397 # Also, AIX nm treats weak defined symbols like other global defined
14398 # symbols, whereas GNU nm marks them as "W".
14399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14400 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'
14401 else
14402 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'
14405 pw32*)
14406 export_symbols_cmds_CXX="$ltdll_cmds"
14408 cygwin* | mingw* | cegcc*)
14409 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'
14412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14414 esac
14415 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14418 $as_echo "$ld_shlibs_CXX" >&6; }
14419 test "$ld_shlibs_CXX" = no && can_build_shared=no
14421 with_gnu_ld_CXX=$with_gnu_ld
14429 # Do we need to explicitly link libc?
14431 case "x$archive_cmds_need_lc_CXX" in
14432 x|xyes)
14433 # Assume -lc should be added
14434 archive_cmds_need_lc_CXX=yes
14436 if test "$enable_shared" = yes && test "$GCC" = yes; then
14437 case $archive_cmds_CXX in
14438 *'~'*)
14439 # FIXME: we may have to deal with multi-command sequences.
14441 '$CC '*)
14442 # Test whether the compiler implicitly links with -lc since on some
14443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14444 # to ld, don't add -lc before -lgcc.
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14446 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14447 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 $RM conftest*
14451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14454 (eval $ac_compile) 2>&5
14455 ac_status=$?
14456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14457 test $ac_status = 0; } 2>conftest.err; then
14458 soname=conftest
14459 lib=conftest
14460 libobjs=conftest.$ac_objext
14461 deplibs=
14462 wl=$lt_prog_compiler_wl_CXX
14463 pic_flag=$lt_prog_compiler_pic_CXX
14464 compiler_flags=-v
14465 linker_flags=-v
14466 verstring=
14467 output_objdir=.
14468 libname=conftest
14469 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14470 allow_undefined_flag_CXX=
14471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14472 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14473 ac_status=$?
14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475 test $ac_status = 0; }
14476 then
14477 lt_cv_archive_cmds_need_lc_CXX=no
14478 else
14479 lt_cv_archive_cmds_need_lc_CXX=yes
14481 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14482 else
14483 cat conftest.err 1>&5
14485 $RM conftest*
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14489 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14490 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14492 esac
14495 esac
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14561 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14563 library_names_spec=
14564 libname_spec='lib$name'
14565 soname_spec=
14566 shrext_cmds=".so"
14567 postinstall_cmds=
14568 postuninstall_cmds=
14569 finish_cmds=
14570 finish_eval=
14571 shlibpath_var=
14572 shlibpath_overrides_runpath=unknown
14573 version_type=none
14574 dynamic_linker="$host_os ld.so"
14575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14576 need_lib_prefix=unknown
14577 hardcode_into_libs=no
14579 # when you set need_version to no, make sure it does not cause -set_version
14580 # flags to be left without arguments
14581 need_version=unknown
14583 case $host_os in
14584 aix3*)
14585 version_type=linux
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14587 shlibpath_var=LIBPATH
14589 # AIX 3 has no versioning support, so we append a major version to the name.
14590 soname_spec='${libname}${release}${shared_ext}$major'
14593 aix[4-9]*)
14594 version_type=linux
14595 need_lib_prefix=no
14596 need_version=no
14597 hardcode_into_libs=yes
14598 if test "$host_cpu" = ia64; then
14599 # AIX 5 supports IA64
14600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 else
14603 # With GCC up to 2.95.x, collect2 would create an import file
14604 # for dependence libraries. The import file would start with
14605 # the line `#! .'. This would cause the generated library to
14606 # depend on `.', always an invalid library. This was fixed in
14607 # development snapshots of GCC prior to 3.0.
14608 case $host_os in
14609 aix4 | aix4.[01] | aix4.[01].*)
14610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14611 echo ' yes '
14612 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14614 else
14615 can_build_shared=no
14618 esac
14619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14620 # soname into executable. Probably we can add versioning support to
14621 # collect2, so additional links can be useful in future.
14622 if test "$aix_use_runtimelinking" = yes; then
14623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14624 # instead of lib<name>.a to let people know that these are not
14625 # typical AIX shared libraries.
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 else
14628 # We preserve .a as extension for shared libraries through AIX4.2
14629 # and later when we are not doing run time linking.
14630 library_names_spec='${libname}${release}.a $libname.a'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LIBPATH
14637 amigaos*)
14638 case $host_cpu in
14639 powerpc)
14640 # Since July 2007 AmigaOS4 officially supports .so libraries.
14641 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644 m68k)
14645 library_names_spec='$libname.ixlibrary $libname.a'
14646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14647 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'
14649 esac
14652 beos*)
14653 library_names_spec='${libname}${shared_ext}'
14654 dynamic_linker="$host_os ld.so"
14655 shlibpath_var=LIBRARY_PATH
14658 bsdi[45]*)
14659 version_type=linux
14660 need_version=no
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14667 # the default ld.so.conf also contains /usr/contrib/lib and
14668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14669 # libtool to hard-code these into programs
14672 cygwin* | mingw* | pw32* | cegcc*)
14673 version_type=windows
14674 shrext_cmds=".dll"
14675 need_version=no
14676 need_lib_prefix=no
14678 case $GCC,$host_os in
14679 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14680 library_names_spec='$libname.dll.a'
14681 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14682 postinstall_cmds='base_file=`basename \${file}`~
14683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14684 dldir=$destdir/`dirname \$dlpath`~
14685 test -d \$dldir || mkdir -p \$dldir~
14686 $install_prog $dir/$dlname \$dldir/$dlname~
14687 chmod a+x \$dldir/$dlname~
14688 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14689 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14692 dlpath=$dir/\$dldll~
14693 $RM \$dlpath'
14694 shlibpath_overrides_runpath=yes
14696 case $host_os in
14697 cygwin*)
14698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14702 mingw* | cegcc*)
14703 # MinGW DLLs use traditional 'lib' prefix
14704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14706 pw32*)
14707 # pw32 DLLs use 'pw' prefix rather than 'lib'
14708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14710 esac
14714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14716 esac
14717 dynamic_linker='Win32 ld.exe'
14718 # FIXME: first we should search . and the directory the executable is in
14719 shlibpath_var=PATH
14722 darwin* | rhapsody*)
14723 dynamic_linker="$host_os dyld"
14724 version_type=darwin
14725 need_lib_prefix=no
14726 need_version=no
14727 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14728 soname_spec='${libname}${release}${major}$shared_ext'
14729 shlibpath_overrides_runpath=yes
14730 shlibpath_var=DYLD_LIBRARY_PATH
14731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14736 dgux*)
14737 version_type=linux
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 shlibpath_var=LD_LIBRARY_PATH
14745 freebsd* | dragonfly*)
14746 # DragonFly does not have aout. When/if they implement a new
14747 # versioning mechanism, adjust this.
14748 if test -x /usr/bin/objformat; then
14749 objformat=`/usr/bin/objformat`
14750 else
14751 case $host_os in
14752 freebsd[23].*) objformat=aout ;;
14753 *) objformat=elf ;;
14754 esac
14756 version_type=freebsd-$objformat
14757 case $version_type in
14758 freebsd-elf*)
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14760 need_version=no
14761 need_lib_prefix=no
14763 freebsd-*)
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14765 need_version=yes
14767 esac
14768 shlibpath_var=LD_LIBRARY_PATH
14769 case $host_os in
14770 freebsd2.*)
14771 shlibpath_overrides_runpath=yes
14773 freebsd3.[01]* | freebsdelf3.[01]*)
14774 shlibpath_overrides_runpath=yes
14775 hardcode_into_libs=yes
14777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14779 shlibpath_overrides_runpath=no
14780 hardcode_into_libs=yes
14782 *) # from 4.6 on, and DragonFly
14783 shlibpath_overrides_runpath=yes
14784 hardcode_into_libs=yes
14786 esac
14789 gnu*)
14790 version_type=linux
14791 need_lib_prefix=no
14792 need_version=no
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 hardcode_into_libs=yes
14799 haiku*)
14800 version_type=linux
14801 need_lib_prefix=no
14802 need_version=no
14803 dynamic_linker="$host_os runtime_loader"
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14805 soname_spec='${libname}${release}${shared_ext}$major'
14806 shlibpath_var=LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14809 hardcode_into_libs=yes
14812 hpux9* | hpux10* | hpux11*)
14813 # Give a soname corresponding to the major version so that dld.sl refuses to
14814 # link against other versions.
14815 version_type=sunos
14816 need_lib_prefix=no
14817 need_version=no
14818 case $host_cpu in
14819 ia64*)
14820 shrext_cmds='.so'
14821 hardcode_into_libs=yes
14822 dynamic_linker="$host_os dld.so"
14823 shlibpath_var=LD_LIBRARY_PATH
14824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 if test "X$HPUX_IA64_MODE" = X32; then
14828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14829 else
14830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14834 hppa*64*)
14835 shrext_cmds='.sl'
14836 hardcode_into_libs=yes
14837 dynamic_linker="$host_os dld.sl"
14838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14846 shrext_cmds='.sl'
14847 dynamic_linker="$host_os dld.sl"
14848 shlibpath_var=SHLIB_PATH
14849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14853 esac
14854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14855 postinstall_cmds='chmod 555 $lib'
14856 # or fails outright, so override atomically:
14857 install_override_mode=555
14860 interix[3-9]*)
14861 version_type=linux
14862 need_lib_prefix=no
14863 need_version=no
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 shlibpath_overrides_runpath=no
14869 hardcode_into_libs=yes
14872 irix5* | irix6* | nonstopux*)
14873 case $host_os in
14874 nonstopux*) version_type=nonstopux ;;
14876 if test "$lt_cv_prog_gnu_ld" = yes; then
14877 version_type=linux
14878 else
14879 version_type=irix
14880 fi ;;
14881 esac
14882 need_lib_prefix=no
14883 need_version=no
14884 soname_spec='${libname}${release}${shared_ext}$major'
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14886 case $host_os in
14887 irix5* | nonstopux*)
14888 libsuff= shlibsuff=
14891 case $LD in # libtool.m4 will add one of these switches to LD
14892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14893 libsuff= shlibsuff= libmagic=32-bit;;
14894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14895 libsuff=32 shlibsuff=N32 libmagic=N32;;
14896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14898 *) libsuff= shlibsuff= libmagic=never-match;;
14899 esac
14901 esac
14902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14903 shlibpath_overrides_runpath=no
14904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14906 hardcode_into_libs=yes
14909 # No shared lib support for Linux oldld, aout, or coff.
14910 linux*oldld* | linux*aout* | linux*coff*)
14911 dynamic_linker=no
14914 # This must be Linux ELF.
14915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14916 version_type=linux
14917 need_lib_prefix=no
14918 need_version=no
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=no
14925 # Some binutils ld are patched to set DT_RUNPATH
14926 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 lt_cv_shlibpath_overrides_runpath=no
14930 save_LDFLAGS=$LDFLAGS
14931 save_libdir=$libdir
14932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14938 main ()
14942 return 0;
14944 _ACEOF
14945 if ac_fn_cxx_try_link "$LINENO"; then :
14946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14947 lt_cv_shlibpath_overrides_runpath=yes
14950 rm -f core conftest.err conftest.$ac_objext \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LDFLAGS=$save_LDFLAGS
14953 libdir=$save_libdir
14957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14959 # This implies no fast_install, which is unacceptable.
14960 # Some rework will be needed to allow for fast_install
14961 # before this can be enabled.
14962 hardcode_into_libs=yes
14964 # Append ld.so.conf contents to the search path
14965 if test -f /etc/ld.so.conf; then
14966 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' ' '`
14967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14970 # We used to test for /lib/ld.so.1 and disable shared libraries on
14971 # powerpc, because MkLinux only supported shared libraries with the
14972 # GNU dynamic linker. Since this was broken with cross compilers,
14973 # most powerpc-linux boxes support dynamic linking these days and
14974 # people can always --disable-shared, the test was removed, and we
14975 # assume the GNU/Linux dynamic linker is in use.
14976 dynamic_linker='GNU/Linux ld.so'
14979 netbsd*)
14980 version_type=sunos
14981 need_lib_prefix=no
14982 need_version=no
14983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14986 dynamic_linker='NetBSD (a.out) ld.so'
14987 else
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
14990 dynamic_linker='NetBSD ld.elf_so'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 shlibpath_overrides_runpath=yes
14994 hardcode_into_libs=yes
14997 newsos6)
14998 version_type=linux
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 shlibpath_var=LD_LIBRARY_PATH
15001 shlibpath_overrides_runpath=yes
15004 *nto* | *qnx*)
15005 version_type=qnx
15006 need_lib_prefix=no
15007 need_version=no
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15010 shlibpath_var=LD_LIBRARY_PATH
15011 shlibpath_overrides_runpath=no
15012 hardcode_into_libs=yes
15013 dynamic_linker='ldqnx.so'
15016 openbsd*)
15017 version_type=sunos
15018 sys_lib_dlsearch_path_spec="/usr/lib"
15019 need_lib_prefix=no
15020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15021 case $host_os in
15022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15023 *) need_version=no ;;
15024 esac
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15029 case $host_os in
15030 openbsd2.[89] | openbsd2.[89].*)
15031 shlibpath_overrides_runpath=no
15034 shlibpath_overrides_runpath=yes
15036 esac
15037 else
15038 shlibpath_overrides_runpath=yes
15042 os2*)
15043 libname_spec='$name'
15044 shrext_cmds=".dll"
15045 need_lib_prefix=no
15046 library_names_spec='$libname${shared_ext} $libname.a'
15047 dynamic_linker='OS/2 ld.exe'
15048 shlibpath_var=LIBPATH
15051 osf3* | osf4* | osf5*)
15052 version_type=osf
15053 need_lib_prefix=no
15054 need_version=no
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 shlibpath_var=LD_LIBRARY_PATH
15058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15062 rdos*)
15063 dynamic_linker=no
15066 solaris*)
15067 version_type=linux
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=yes
15074 hardcode_into_libs=yes
15075 # ldd complains unless libraries are executable
15076 postinstall_cmds='chmod +x $lib'
15079 sunos4*)
15080 version_type=sunos
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=yes
15085 if test "$with_gnu_ld" = yes; then
15086 need_lib_prefix=no
15088 need_version=yes
15091 sysv4 | sysv4.3*)
15092 version_type=linux
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 case $host_vendor in
15097 sni)
15098 shlibpath_overrides_runpath=no
15099 need_lib_prefix=no
15100 runpath_var=LD_RUN_PATH
15102 siemens)
15103 need_lib_prefix=no
15105 motorola)
15106 need_lib_prefix=no
15107 need_version=no
15108 shlibpath_overrides_runpath=no
15109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15111 esac
15114 sysv4*MP*)
15115 if test -d /usr/nec ;then
15116 version_type=linux
15117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15118 soname_spec='$libname${shared_ext}.$major'
15119 shlibpath_var=LD_LIBRARY_PATH
15123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15124 version_type=freebsd-elf
15125 need_lib_prefix=no
15126 need_version=no
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 shlibpath_var=LD_LIBRARY_PATH
15130 shlibpath_overrides_runpath=yes
15131 hardcode_into_libs=yes
15132 if test "$with_gnu_ld" = yes; then
15133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15134 else
15135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15136 case $host_os in
15137 sco3.2v5*)
15138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15140 esac
15142 sys_lib_dlsearch_path_spec='/usr/lib'
15145 tpf*)
15146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15147 version_type=linux
15148 need_lib_prefix=no
15149 need_version=no
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=no
15153 hardcode_into_libs=yes
15156 uts4*)
15157 version_type=linux
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15164 dynamic_linker=no
15166 esac
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15168 $as_echo "$dynamic_linker" >&6; }
15169 test "$dynamic_linker" = no && can_build_shared=no
15171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15172 if test "$GCC" = yes; then
15173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15176 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15179 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15222 hardcode_action_CXX=
15223 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15224 test -n "$runpath_var_CXX" ||
15225 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15227 # We can hardcode non-existent directories.
15228 if test "$hardcode_direct_CXX" != no &&
15229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15230 # have to relink, otherwise we might link with an installed library
15231 # when we should be linking with a yet-to-be-installed one
15232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15233 test "$hardcode_minus_L_CXX" != no; then
15234 # Linking always hardcodes the temporary library directory.
15235 hardcode_action_CXX=relink
15236 else
15237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15238 hardcode_action_CXX=immediate
15240 else
15241 # We cannot hardcode anything, or else we can only hardcode existing
15242 # directories.
15243 hardcode_action_CXX=unsupported
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15246 $as_echo "$hardcode_action_CXX" >&6; }
15248 if test "$hardcode_action_CXX" = relink ||
15249 test "$inherit_rpath_CXX" = yes; then
15250 # Fast installation is not supported
15251 enable_fast_install=no
15252 elif test "$shlibpath_overrides_runpath" = yes ||
15253 test "$enable_shared" = no; then
15254 # Fast installation is not necessary
15255 enable_fast_install=needless
15264 fi # test -n "$compiler"
15266 CC=$lt_save_CC
15267 LDCXX=$LD
15268 LD=$lt_save_LD
15269 GCC=$lt_save_GCC
15270 with_gnu_ld=$lt_save_with_gnu_ld
15271 lt_cv_path_LDCXX=$lt_cv_path_LD
15272 lt_cv_path_LD=$lt_save_path_LD
15273 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15274 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15275 fi # test "$_lt_caught_CXX_error" != yes
15277 ac_ext=c
15278 ac_cpp='$CPP $CPPFLAGS'
15279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15295 ac_config_commands="$ac_config_commands libtool"
15300 # Only expand once:
15308 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15309 # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
15310 # In case the pthread.h system header is not found, this test will fail.
15311 XCFLAGS=""
15312 XLDFLAGS=""
15313 CFLAGS="$CFLAGS -pthread"
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <pthread.h>
15317 void *g(void *d) { return NULL; }
15319 main ()
15321 pthread_t t; pthread_create(&t,NULL,g,NULL);
15323 return 0;
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"; then :
15327 XCFLAGS=" -Wc,-pthread"
15328 else
15329 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 #include <pthread.h>
15333 void *g(void *d) { return NULL; }
15335 main ()
15337 pthread_t t; pthread_create(&t,NULL,g,NULL);
15339 return 0;
15341 _ACEOF
15342 if ac_fn_c_try_link "$LINENO"; then :
15344 else
15345 as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
15347 rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15350 rm -f core conftest.err conftest.$ac_objext \
15351 conftest$ac_exeext conftest.$ac_ext
15353 # Check for pthread_{,attr_}[sg]etaffinity_np.
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 #include <pthread.h>
15358 main ()
15360 cpu_set_t cpuset;
15361 pthread_attr_t attr;
15362 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15363 if (CPU_ISSET (0, &cpuset))
15364 CPU_SET (1, &cpuset);
15365 else
15366 CPU_ZERO (&cpuset);
15367 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15368 pthread_attr_init (&attr);
15369 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15370 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15372 return 0;
15374 _ACEOF
15375 if ac_fn_c_try_link "$LINENO"; then :
15377 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15380 rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15383 # Every c++ lib is linking by default with -nostdlib, which leads to the
15384 # fact, that proper pthread library will not be given at link time. We have
15385 # to hard-code that.
15386 case "${target}" in
15388 *android*)
15389 XLDFLAGS="$XLDFLAGS -lc"
15392 XLDFLAGS="$XLDFLAGS -lpthread"
15395 esac
15400 CFLAGS="$save_CFLAGS"
15402 if test $enable_shared = yes; then
15403 link_cilkrts="-lcilkrts %{static: $LIBS}"
15404 else
15405 link_cilkrts="-lcilkrts $LIBS"
15409 # Determine what GCC version number to use in filesystem paths.
15411 get_gcc_base_ver="cat"
15413 # Check whether --with-gcc-major-version-only was given.
15414 if test "${with_gcc_major_version_only+set}" = set; then :
15415 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15416 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
15424 # Must be last
15425 cat >confcache <<\_ACEOF
15426 # This file is a shell script that caches the results of configure
15427 # tests run on this system so they can be shared between configure
15428 # scripts and configure runs, see configure's option --config-cache.
15429 # It is not useful on other systems. If it contains results you don't
15430 # want to keep, you may remove or edit it.
15432 # config.status only pays attention to the cache file if you give it
15433 # the --recheck option to rerun configure.
15435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15437 # following values.
15439 _ACEOF
15441 # The following way of writing the cache mishandles newlines in values,
15442 # but we know of no workaround that is simple, portable, and efficient.
15443 # So, we kill variables containing newlines.
15444 # Ultrix sh set writes to stderr and can't be redirected directly,
15445 # and sets the high bit in the cache file unless we assign to the vars.
15447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15448 eval ac_val=\$$ac_var
15449 case $ac_val in #(
15450 *${as_nl}*)
15451 case $ac_var in #(
15452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15454 esac
15455 case $ac_var in #(
15456 _ | IFS | as_nl) ;; #(
15457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15458 *) { eval $ac_var=; unset $ac_var;} ;;
15459 esac ;;
15460 esac
15461 done
15463 (set) 2>&1 |
15464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15465 *${as_nl}ac_space=\ *)
15466 # `set' does not quote correctly, so add quotes: double-quote
15467 # substitution turns \\\\ into \\, and sed turns \\ into \.
15468 sed -n \
15469 "s/'/'\\\\''/g;
15470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15471 ;; #(
15473 # `set' quotes correctly as required by POSIX, so do not add quotes.
15474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15476 esac |
15477 sort
15479 sed '
15480 /^ac_cv_env_/b end
15481 t clear
15482 :clear
15483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15484 t end
15485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15486 :end' >>confcache
15487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15488 if test -w "$cache_file"; then
15489 test "x$cache_file" != "x/dev/null" &&
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15491 $as_echo "$as_me: updating cache $cache_file" >&6;}
15492 cat confcache >$cache_file
15493 else
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15495 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15498 rm -f confcache
15500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15501 # Let make expand exec_prefix.
15502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15504 # Transform confdefs.h into DEFS.
15505 # Protect against shell expansion while executing Makefile rules.
15506 # Protect against Makefile macro expansion.
15508 # If the first sed substitution is executed (which looks for macros that
15509 # take arguments), then branch to the quote section. Otherwise,
15510 # look for a macro that doesn't take arguments.
15511 ac_script='
15512 :mline
15513 /\\$/{
15515 s,\\\n,,
15516 b mline
15518 t clear
15519 :clear
15520 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15521 t quote
15522 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15523 t quote
15524 b any
15525 :quote
15526 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15527 s/\[/\\&/g
15528 s/\]/\\&/g
15529 s/\$/$$/g
15531 :any
15534 s/^\n//
15535 s/\n/ /g
15539 DEFS=`sed -n "$ac_script" confdefs.h`
15542 ac_libobjs=
15543 ac_ltlibobjs=
15544 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15545 # 1. Remove the extension, and $U if already installed.
15546 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15547 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15548 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15549 # will be set to the directory where LIBOBJS objects are built.
15550 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15551 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15552 done
15553 LIBOBJS=$ac_libobjs
15555 LTLIBOBJS=$ac_ltlibobjs
15558 if test -n "$EXEEXT"; then
15559 am__EXEEXT_TRUE=
15560 am__EXEEXT_FALSE='#'
15561 else
15562 am__EXEEXT_TRUE='#'
15563 am__EXEEXT_FALSE=
15566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15567 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15571 as_fn_error "conditional \"AMDEP\" was never defined.
15572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15575 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15579 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15583 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
15587 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
15591 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 : ${CONFIG_STATUS=./config.status}
15596 ac_write_fail=0
15597 ac_clean_files_save=$ac_clean_files
15598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15601 as_write_fail=0
15602 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15603 #! $SHELL
15604 # Generated by $as_me.
15605 # Run this file to recreate the current configuration.
15606 # Compiler output produced by configure, useful for debugging
15607 # configure, is in config.log if it exists.
15609 debug=false
15610 ac_cs_recheck=false
15611 ac_cs_silent=false
15613 SHELL=\${CONFIG_SHELL-$SHELL}
15614 export SHELL
15615 _ASEOF
15616 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15617 ## -------------------- ##
15618 ## M4sh Initialization. ##
15619 ## -------------------- ##
15621 # Be more Bourne compatible
15622 DUALCASE=1; export DUALCASE # for MKS sh
15623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15624 emulate sh
15625 NULLCMD=:
15626 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15627 # is contrary to our usage. Disable this feature.
15628 alias -g '${1+"$@"}'='"$@"'
15629 setopt NO_GLOB_SUBST
15630 else
15631 case `(set -o) 2>/dev/null` in #(
15632 *posix*) :
15633 set -o posix ;; #(
15634 *) :
15636 esac
15640 as_nl='
15642 export as_nl
15643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15647 # Prefer a ksh shell builtin over an external printf program on Solaris,
15648 # but without wasting forks for bash or zsh.
15649 if test -z "$BASH_VERSION$ZSH_VERSION" \
15650 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15651 as_echo='print -r --'
15652 as_echo_n='print -rn --'
15653 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15654 as_echo='printf %s\n'
15655 as_echo_n='printf %s'
15656 else
15657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15659 as_echo_n='/usr/ucb/echo -n'
15660 else
15661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15662 as_echo_n_body='eval
15663 arg=$1;
15664 case $arg in #(
15665 *"$as_nl"*)
15666 expr "X$arg" : "X\\(.*\\)$as_nl";
15667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15668 esac;
15669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15671 export as_echo_n_body
15672 as_echo_n='sh -c $as_echo_n_body as_echo'
15674 export as_echo_body
15675 as_echo='sh -c $as_echo_body as_echo'
15678 # The user is always right.
15679 if test "${PATH_SEPARATOR+set}" != set; then
15680 PATH_SEPARATOR=:
15681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15683 PATH_SEPARATOR=';'
15688 # IFS
15689 # We need space, tab and new line, in precisely that order. Quoting is
15690 # there to prevent editors from complaining about space-tab.
15691 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15692 # splitting by setting IFS to empty value.)
15693 IFS=" "" $as_nl"
15695 # Find who we are. Look in the path if we contain no directory separator.
15696 case $0 in #((
15697 *[\\/]* ) as_myself=$0 ;;
15698 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699 for as_dir in $PATH
15701 IFS=$as_save_IFS
15702 test -z "$as_dir" && as_dir=.
15703 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15704 done
15705 IFS=$as_save_IFS
15708 esac
15709 # We did not find ourselves, most probably we were run as `sh COMMAND'
15710 # in which case we are not to be found in the path.
15711 if test "x$as_myself" = x; then
15712 as_myself=$0
15714 if test ! -f "$as_myself"; then
15715 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15716 exit 1
15719 # Unset variables that we do not need and which cause bugs (e.g. in
15720 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15721 # suppresses any "Segmentation fault" message there. '((' could
15722 # trigger a bug in pdksh 5.2.14.
15723 for as_var in BASH_ENV ENV MAIL MAILPATH
15724 do eval test x\${$as_var+set} = xset \
15725 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15726 done
15727 PS1='$ '
15728 PS2='> '
15729 PS4='+ '
15731 # NLS nuisances.
15732 LC_ALL=C
15733 export LC_ALL
15734 LANGUAGE=C
15735 export LANGUAGE
15737 # CDPATH.
15738 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15741 # as_fn_error ERROR [LINENO LOG_FD]
15742 # ---------------------------------
15743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15745 # script with status $?, using 1 if that was 0.
15746 as_fn_error ()
15748 as_status=$?; test $as_status -eq 0 && as_status=1
15749 if test "$3"; then
15750 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15751 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15753 $as_echo "$as_me: error: $1" >&2
15754 as_fn_exit $as_status
15755 } # as_fn_error
15758 # as_fn_set_status STATUS
15759 # -----------------------
15760 # Set $? to STATUS, without forking.
15761 as_fn_set_status ()
15763 return $1
15764 } # as_fn_set_status
15766 # as_fn_exit STATUS
15767 # -----------------
15768 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15769 as_fn_exit ()
15771 set +e
15772 as_fn_set_status $1
15773 exit $1
15774 } # as_fn_exit
15776 # as_fn_unset VAR
15777 # ---------------
15778 # Portably unset VAR.
15779 as_fn_unset ()
15781 { eval $1=; unset $1;}
15783 as_unset=as_fn_unset
15784 # as_fn_append VAR VALUE
15785 # ----------------------
15786 # Append the text in VALUE to the end of the definition contained in VAR. Take
15787 # advantage of any shell optimizations that allow amortized linear growth over
15788 # repeated appends, instead of the typical quadratic growth present in naive
15789 # implementations.
15790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15791 eval 'as_fn_append ()
15793 eval $1+=\$2
15795 else
15796 as_fn_append ()
15798 eval $1=\$$1\$2
15800 fi # as_fn_append
15802 # as_fn_arith ARG...
15803 # ------------------
15804 # Perform arithmetic evaluation on the ARGs, and store the result in the
15805 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15806 # must be portable across $(()) and expr.
15807 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15808 eval 'as_fn_arith ()
15810 as_val=$(( $* ))
15812 else
15813 as_fn_arith ()
15815 as_val=`expr "$@" || test $? -eq 1`
15817 fi # as_fn_arith
15820 if expr a : '\(a\)' >/dev/null 2>&1 &&
15821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15822 as_expr=expr
15823 else
15824 as_expr=false
15827 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15828 as_basename=basename
15829 else
15830 as_basename=false
15833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15834 as_dirname=dirname
15835 else
15836 as_dirname=false
15839 as_me=`$as_basename -- "$0" ||
15840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15841 X"$0" : 'X\(//\)$' \| \
15842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X/"$0" |
15844 sed '/^.*\/\([^/][^/]*\)\/*$/{
15845 s//\1/
15848 /^X\/\(\/\/\)$/{
15849 s//\1/
15852 /^X\/\(\/\).*/{
15853 s//\1/
15856 s/.*/./; q'`
15858 # Avoid depending upon Character Ranges.
15859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15862 as_cr_digits='0123456789'
15863 as_cr_alnum=$as_cr_Letters$as_cr_digits
15865 ECHO_C= ECHO_N= ECHO_T=
15866 case `echo -n x` in #(((((
15867 -n*)
15868 case `echo 'xy\c'` in
15869 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15870 xy) ECHO_C='\c';;
15871 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15872 ECHO_T=' ';;
15873 esac;;
15875 ECHO_N='-n';;
15876 esac
15878 rm -f conf$$ conf$$.exe conf$$.file
15879 if test -d conf$$.dir; then
15880 rm -f conf$$.dir/conf$$.file
15881 else
15882 rm -f conf$$.dir
15883 mkdir conf$$.dir 2>/dev/null
15885 if (echo >conf$$.file) 2>/dev/null; then
15886 if ln -s conf$$.file conf$$ 2>/dev/null; then
15887 as_ln_s='ln -s'
15888 # ... but there are two gotchas:
15889 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15890 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15891 # In both cases, we have to default to `cp -p'.
15892 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15893 as_ln_s='cp -p'
15894 elif ln conf$$.file conf$$ 2>/dev/null; then
15895 as_ln_s=ln
15896 else
15897 as_ln_s='cp -p'
15899 else
15900 as_ln_s='cp -p'
15902 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15903 rmdir conf$$.dir 2>/dev/null
15906 # as_fn_mkdir_p
15907 # -------------
15908 # Create "$as_dir" as a directory, including parents if necessary.
15909 as_fn_mkdir_p ()
15912 case $as_dir in #(
15913 -*) as_dir=./$as_dir;;
15914 esac
15915 test -d "$as_dir" || eval $as_mkdir_p || {
15916 as_dirs=
15917 while :; do
15918 case $as_dir in #(
15919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15920 *) as_qdir=$as_dir;;
15921 esac
15922 as_dirs="'$as_qdir' $as_dirs"
15923 as_dir=`$as_dirname -- "$as_dir" ||
15924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15925 X"$as_dir" : 'X\(//\)[^/]' \| \
15926 X"$as_dir" : 'X\(//\)$' \| \
15927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15928 $as_echo X"$as_dir" |
15929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15930 s//\1/
15933 /^X\(\/\/\)[^/].*/{
15934 s//\1/
15937 /^X\(\/\/\)$/{
15938 s//\1/
15941 /^X\(\/\).*/{
15942 s//\1/
15945 s/.*/./; q'`
15946 test -d "$as_dir" && break
15947 done
15948 test -z "$as_dirs" || eval "mkdir $as_dirs"
15949 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15952 } # as_fn_mkdir_p
15953 if mkdir -p . 2>/dev/null; then
15954 as_mkdir_p='mkdir -p "$as_dir"'
15955 else
15956 test -d ./-p && rmdir ./-p
15957 as_mkdir_p=false
15960 if test -x / >/dev/null 2>&1; then
15961 as_test_x='test -x'
15962 else
15963 if ls -dL / >/dev/null 2>&1; then
15964 as_ls_L_option=L
15965 else
15966 as_ls_L_option=
15968 as_test_x='
15969 eval sh -c '\''
15970 if test -d "$1"; then
15971 test -d "$1/.";
15972 else
15973 case $1 in #(
15974 -*)set "./$1";;
15975 esac;
15976 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15977 ???[sx]*):;;*)false;;esac;fi
15978 '\'' sh
15981 as_executable_p=$as_test_x
15983 # Sed expression to map a string onto a valid CPP name.
15984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15986 # Sed expression to map a string onto a valid variable name.
15987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15990 exec 6>&1
15991 ## ----------------------------------- ##
15992 ## Main body of $CONFIG_STATUS script. ##
15993 ## ----------------------------------- ##
15994 _ASEOF
15995 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998 # Save the log message, to keep $0 and so on meaningful, and to
15999 # report actual input values of CONFIG_FILES etc. instead of their
16000 # values after options handling.
16001 ac_log="
16002 This file was extended by Cilk Runtime Library $as_me 2.0, which was
16003 generated by GNU Autoconf 2.64. Invocation command line was
16005 CONFIG_FILES = $CONFIG_FILES
16006 CONFIG_HEADERS = $CONFIG_HEADERS
16007 CONFIG_LINKS = $CONFIG_LINKS
16008 CONFIG_COMMANDS = $CONFIG_COMMANDS
16009 $ $0 $@
16011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16014 _ACEOF
16016 case $ac_config_files in *"
16017 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16018 esac
16022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 # Files that config.status was made for.
16024 config_files="$ac_config_files"
16025 config_commands="$ac_config_commands"
16027 _ACEOF
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16030 ac_cs_usage="\
16031 \`$as_me' instantiates files and other configuration actions
16032 from templates according to the current configuration. Unless the files
16033 and actions are specified as TAGs, all are instantiated by default.
16035 Usage: $0 [OPTION]... [TAG]...
16037 -h, --help print this help, then exit
16038 -V, --version print version number and configuration settings, then exit
16039 -q, --quiet, --silent
16040 do not print progress messages
16041 -d, --debug don't remove temporary files
16042 --recheck update $as_me by reconfiguring in the same conditions
16043 --file=FILE[:TEMPLATE]
16044 instantiate the configuration file FILE
16046 Configuration files:
16047 $config_files
16049 Configuration commands:
16050 $config_commands
16052 Report bugs to <cilk@intel.com>."
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056 ac_cs_version="\\
16057 Cilk Runtime Library config.status 2.0
16058 configured by $0, generated by GNU Autoconf 2.64,
16059 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16061 Copyright (C) 2009 Free Software Foundation, Inc.
16062 This config.status script is free software; the Free Software Foundation
16063 gives unlimited permission to copy, distribute and modify it."
16065 ac_pwd='$ac_pwd'
16066 srcdir='$srcdir'
16067 INSTALL='$INSTALL'
16068 MKDIR_P='$MKDIR_P'
16069 AWK='$AWK'
16070 test -n "\$AWK" || AWK=awk
16071 _ACEOF
16073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16074 # The default lists apply if the user does not specify any file.
16075 ac_need_defaults=:
16076 while test $# != 0
16078 case $1 in
16079 --*=*)
16080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16081 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16082 ac_shift=:
16085 ac_option=$1
16086 ac_optarg=$2
16087 ac_shift=shift
16089 esac
16091 case $ac_option in
16092 # Handling of the options.
16093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16094 ac_cs_recheck=: ;;
16095 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16096 $as_echo "$ac_cs_version"; exit ;;
16097 --debug | --debu | --deb | --de | --d | -d )
16098 debug=: ;;
16099 --file | --fil | --fi | --f )
16100 $ac_shift
16101 case $ac_optarg in
16102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16103 esac
16104 as_fn_append CONFIG_FILES " '$ac_optarg'"
16105 ac_need_defaults=false;;
16106 --he | --h | --help | --hel | -h )
16107 $as_echo "$ac_cs_usage"; exit ;;
16108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16109 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16110 ac_cs_silent=: ;;
16112 # This is an error.
16113 -*) as_fn_error "unrecognized option: \`$1'
16114 Try \`$0 --help' for more information." ;;
16116 *) as_fn_append ac_config_targets " $1"
16117 ac_need_defaults=false ;;
16119 esac
16120 shift
16121 done
16123 ac_configure_extra_args=
16125 if $ac_cs_silent; then
16126 exec 6>/dev/null
16127 ac_configure_extra_args="$ac_configure_extra_args --silent"
16130 _ACEOF
16131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16132 if \$ac_cs_recheck; then
16133 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16134 shift
16135 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16136 CONFIG_SHELL='$SHELL'
16137 export CONFIG_SHELL
16138 exec "\$@"
16141 _ACEOF
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16143 exec 5>>config.log
16145 echo
16146 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16147 ## Running $as_me. ##
16148 _ASBOX
16149 $as_echo "$ac_log"
16150 } >&5
16152 _ACEOF
16153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155 # INIT-COMMANDS
16158 srcdir="$srcdir"
16159 host="$host"
16160 target="$target"
16161 with_multisubdir="$with_multisubdir"
16162 with_multisrctop="$with_multisrctop"
16163 with_target_subdir="$with_target_subdir"
16164 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16165 multi_basedir="$multi_basedir"
16166 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16167 CC="$CC"
16168 CXX="$CXX"
16169 GFORTRAN="$GFORTRAN"
16170 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16173 # The HP-UX ksh and POSIX shell print the target directory to stdout
16174 # if CDPATH is set.
16175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16177 sed_quote_subst='$sed_quote_subst'
16178 double_quote_subst='$double_quote_subst'
16179 delay_variable_subst='$delay_variable_subst'
16180 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16181 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16182 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16183 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16184 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16185 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16186 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16187 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16188 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16189 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16190 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16191 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16192 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16193 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16194 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16195 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16196 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16197 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16198 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16199 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16200 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16201 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16202 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16203 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16204 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16205 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16206 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16207 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16208 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16209 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16210 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16211 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16212 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16213 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16214 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16215 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16216 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16217 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16218 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16219 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16220 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16221 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16222 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16223 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16224 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16225 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16226 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16227 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16228 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"`'
16229 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16230 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16231 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16232 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16233 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16234 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16235 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16236 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16237 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16238 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16239 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16240 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16241 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16242 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16243 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16244 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16245 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16246 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16247 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16248 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16249 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16250 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16251 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16252 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16253 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16254 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16255 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16256 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16257 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16258 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16259 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16260 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16261 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16262 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16263 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16264 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16265 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16266 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16267 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16268 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16269 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16270 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16271 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16272 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16273 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16274 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16275 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16276 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16277 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16278 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16279 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16280 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16281 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16282 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16283 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16284 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16285 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16286 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16287 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16288 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16289 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16290 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16291 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16292 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16293 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16294 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16295 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16296 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16297 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16298 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16299 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16300 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16301 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16302 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16303 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16304 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16305 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16306 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16307 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16308 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16309 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16310 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16311 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16312 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16313 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16314 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16315 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16316 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16317 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16318 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16319 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16320 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16321 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16322 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16323 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16324 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16325 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16326 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16327 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16328 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16329 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16330 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16331 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16332 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16333 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16334 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16335 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16336 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16337 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16338 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16339 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16340 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16341 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16342 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16343 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16344 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16345 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16346 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16347 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16348 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16349 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16350 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16351 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16352 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16353 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16354 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16356 LTCC='$LTCC'
16357 LTCFLAGS='$LTCFLAGS'
16358 compiler='$compiler_DEFAULT'
16360 # A function that is used when there is no print builtin or printf.
16361 func_fallback_echo ()
16363 eval 'cat <<_LTECHO_EOF
16365 _LTECHO_EOF'
16368 # Quote evaled strings.
16369 for var in SHELL \
16370 ECHO \
16371 SED \
16372 GREP \
16373 EGREP \
16374 FGREP \
16375 LD \
16376 NM \
16377 LN_S \
16378 lt_SP2NL \
16379 lt_NL2SP \
16380 reload_flag \
16381 OBJDUMP \
16382 deplibs_check_method \
16383 file_magic_cmd \
16384 AR \
16385 AR_FLAGS \
16386 STRIP \
16387 RANLIB \
16388 CC \
16389 CFLAGS \
16390 compiler \
16391 lt_cv_sys_global_symbol_pipe \
16392 lt_cv_sys_global_symbol_to_cdecl \
16393 lt_cv_sys_global_symbol_to_c_name_address \
16394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16395 lt_prog_compiler_no_builtin_flag \
16396 lt_prog_compiler_wl \
16397 lt_prog_compiler_pic \
16398 lt_prog_compiler_static \
16399 lt_cv_prog_compiler_c_o \
16400 need_locks \
16401 DSYMUTIL \
16402 NMEDIT \
16403 LIPO \
16404 OTOOL \
16405 OTOOL64 \
16406 shrext_cmds \
16407 export_dynamic_flag_spec \
16408 whole_archive_flag_spec \
16409 compiler_needs_object \
16410 with_gnu_ld \
16411 allow_undefined_flag \
16412 no_undefined_flag \
16413 hardcode_libdir_flag_spec \
16414 hardcode_libdir_flag_spec_ld \
16415 hardcode_libdir_separator \
16416 fix_srcfile_path \
16417 exclude_expsyms \
16418 include_expsyms \
16419 file_list_spec \
16420 variables_saved_for_relink \
16421 libname_spec \
16422 library_names_spec \
16423 soname_spec \
16424 install_override_mode \
16425 finish_eval \
16426 old_striplib \
16427 striplib \
16428 compiler_lib_search_dirs \
16429 predep_objects \
16430 postdep_objects \
16431 predeps \
16432 postdeps \
16433 compiler_lib_search_path \
16434 LD_CXX \
16435 reload_flag_CXX \
16436 compiler_CXX \
16437 lt_prog_compiler_no_builtin_flag_CXX \
16438 lt_prog_compiler_wl_CXX \
16439 lt_prog_compiler_pic_CXX \
16440 lt_prog_compiler_static_CXX \
16441 lt_cv_prog_compiler_c_o_CXX \
16442 export_dynamic_flag_spec_CXX \
16443 whole_archive_flag_spec_CXX \
16444 compiler_needs_object_CXX \
16445 with_gnu_ld_CXX \
16446 allow_undefined_flag_CXX \
16447 no_undefined_flag_CXX \
16448 hardcode_libdir_flag_spec_CXX \
16449 hardcode_libdir_flag_spec_ld_CXX \
16450 hardcode_libdir_separator_CXX \
16451 fix_srcfile_path_CXX \
16452 exclude_expsyms_CXX \
16453 include_expsyms_CXX \
16454 file_list_spec_CXX \
16455 compiler_lib_search_dirs_CXX \
16456 predep_objects_CXX \
16457 postdep_objects_CXX \
16458 predeps_CXX \
16459 postdeps_CXX \
16460 compiler_lib_search_path_CXX; do
16461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16462 *[\\\\\\\`\\"\\\$]*)
16463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16468 esac
16469 done
16471 # Double-quote double-evaled strings.
16472 for var in reload_cmds \
16473 old_postinstall_cmds \
16474 old_postuninstall_cmds \
16475 old_archive_cmds \
16476 extract_expsyms_cmds \
16477 old_archive_from_new_cmds \
16478 old_archive_from_expsyms_cmds \
16479 archive_cmds \
16480 archive_expsym_cmds \
16481 module_cmds \
16482 module_expsym_cmds \
16483 export_symbols_cmds \
16484 prelink_cmds \
16485 postinstall_cmds \
16486 postuninstall_cmds \
16487 finish_cmds \
16488 sys_lib_search_path_spec \
16489 sys_lib_dlsearch_path_spec \
16490 reload_cmds_CXX \
16491 old_archive_cmds_CXX \
16492 old_archive_from_new_cmds_CXX \
16493 old_archive_from_expsyms_cmds_CXX \
16494 archive_cmds_CXX \
16495 archive_expsym_cmds_CXX \
16496 module_cmds_CXX \
16497 module_expsym_cmds_CXX \
16498 export_symbols_cmds_CXX \
16499 prelink_cmds_CXX; do
16500 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16501 *[\\\\\\\`\\"\\\$]*)
16502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16507 esac
16508 done
16510 ac_aux_dir='$ac_aux_dir'
16511 xsi_shell='$xsi_shell'
16512 lt_shell_append='$lt_shell_append'
16514 # See if we are running on zsh, and set the options which allow our
16515 # commands through without removal of \ escapes INIT.
16516 if test -n "\${ZSH_VERSION+set}" ; then
16517 setopt NO_GLOB_SUBST
16521 PACKAGE='$PACKAGE'
16522 VERSION='$VERSION'
16523 TIMESTAMP='$TIMESTAMP'
16524 RM='$RM'
16525 ofile='$ofile'
16532 _ACEOF
16534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16536 # Handling of arguments.
16537 for ac_config_target in $ac_config_targets
16539 case $ac_config_target in
16540 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16541 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16542 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16543 "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
16544 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16546 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16547 esac
16548 done
16551 # If the user did not use the arguments to specify the items to instantiate,
16552 # then the envvar interface is used. Set only those that are not.
16553 # We use the long form for the default assignment because of an extremely
16554 # bizarre bug on SunOS 4.1.3.
16555 if $ac_need_defaults; then
16556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16557 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16560 # Have a temporary directory for convenience. Make it in the build tree
16561 # simply because there is no reason against having it here, and in addition,
16562 # creating and moving files from /tmp can sometimes cause problems.
16563 # Hook for its removal unless debugging.
16564 # Note that there is a small window in which the directory will not be cleaned:
16565 # after its creation but before its name has been assigned to `$tmp'.
16566 $debug ||
16568 tmp=
16569 trap 'exit_status=$?
16570 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16572 trap 'as_fn_exit 1' 1 2 13 15
16574 # Create a (secure) tmp directory for tmp files.
16577 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16578 test -n "$tmp" && test -d "$tmp"
16579 } ||
16581 tmp=./conf$$-$RANDOM
16582 (umask 077 && mkdir "$tmp")
16583 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16585 # Set up the scripts for CONFIG_FILES section.
16586 # No need to generate them if there are no CONFIG_FILES.
16587 # This happens for instance with `./config.status config.h'.
16588 if test -n "$CONFIG_FILES"; then
16591 ac_cr=`echo X | tr X '\015'`
16592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16593 # But we know of no other shell where ac_cr would be empty at this
16594 # point, so we can use a bashism as a fallback.
16595 if test "x$ac_cr" = x; then
16596 eval ac_cr=\$\'\\r\'
16598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16600 ac_cs_awk_cr='\r'
16601 else
16602 ac_cs_awk_cr=$ac_cr
16605 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16606 _ACEOF
16610 echo "cat >conf$$subs.awk <<_ACEOF" &&
16611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16612 echo "_ACEOF"
16613 } >conf$$subs.sh ||
16614 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16616 ac_delim='%!_!# '
16617 for ac_last_try in false false false false false :; do
16618 . ./conf$$subs.sh ||
16619 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16622 if test $ac_delim_n = $ac_delim_num; then
16623 break
16624 elif $ac_last_try; then
16625 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16626 else
16627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16629 done
16630 rm -f conf$$subs.sh
16632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16633 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16634 _ACEOF
16635 sed -n '
16637 s/^/S["/; s/!.*/"]=/
16640 s/^[^!]*!//
16641 :repl
16642 t repl
16643 s/'"$ac_delim"'$//
16644 t delim
16647 s/\(.\{148\}\).*/\1/
16648 t more1
16649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16652 b repl
16653 :more1
16654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16657 s/.\{148\}//
16658 t nl
16659 :delim
16661 s/\(.\{148\}\).*/\1/
16662 t more2
16663 s/["\\]/\\&/g; s/^/"/; s/$/"/
16666 :more2
16667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16670 s/.\{148\}//
16671 t delim
16672 ' <conf$$subs.awk | sed '
16673 /^[^""]/{
16675 s/\n//
16677 ' >>$CONFIG_STATUS || ac_write_fail=1
16678 rm -f conf$$subs.awk
16679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16680 _ACAWK
16681 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16682 for (key in S) S_is_set[key] = 1
16683 FS = "\a"
16687 line = $ 0
16688 nfields = split(line, field, "@")
16689 substed = 0
16690 len = length(field[1])
16691 for (i = 2; i < nfields; i++) {
16692 key = field[i]
16693 keylen = length(key)
16694 if (S_is_set[key]) {
16695 value = S[key]
16696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16697 len += length(value) + length(field[++i])
16698 substed = 1
16699 } else
16700 len += 1 + keylen
16703 print line
16706 _ACAWK
16707 _ACEOF
16708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16710 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16711 else
16713 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16714 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16715 _ACEOF
16717 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16718 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16719 # trailing colons and then remove the whole line if VPATH becomes empty
16720 # (actually we leave an empty line to preserve line numbers).
16721 if test "x$srcdir" = x.; then
16722 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16723 s/:*\$(srcdir):*/:/
16724 s/:*\${srcdir}:*/:/
16725 s/:*@srcdir@:*/:/
16726 s/^\([^=]*=[ ]*\):*/\1/
16727 s/:*$//
16728 s/^[^=]*=[ ]*$//
16732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16733 fi # test -n "$CONFIG_FILES"
16736 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16737 shift
16738 for ac_tag
16740 case $ac_tag in
16741 :[FHLC]) ac_mode=$ac_tag; continue;;
16742 esac
16743 case $ac_mode$ac_tag in
16744 :[FHL]*:*);;
16745 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16746 :[FH]-) ac_tag=-:-;;
16747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16748 esac
16749 ac_save_IFS=$IFS
16750 IFS=:
16751 set x $ac_tag
16752 IFS=$ac_save_IFS
16753 shift
16754 ac_file=$1
16755 shift
16757 case $ac_mode in
16758 :L) ac_source=$1;;
16759 :[FH])
16760 ac_file_inputs=
16761 for ac_f
16763 case $ac_f in
16764 -) ac_f="$tmp/stdin";;
16765 *) # Look for the file first in the build tree, then in the source tree
16766 # (if the path is not absolute). The absolute path cannot be DOS-style,
16767 # because $ac_f cannot contain `:'.
16768 test -f "$ac_f" ||
16769 case $ac_f in
16770 [\\/$]*) false;;
16771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16772 esac ||
16773 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16774 esac
16775 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16776 as_fn_append ac_file_inputs " '$ac_f'"
16777 done
16779 # Let's still pretend it is `configure' which instantiates (i.e., don't
16780 # use $as_me), people would be surprised to read:
16781 # /* config.h. Generated by config.status. */
16782 configure_input='Generated from '`
16783 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16784 `' by configure.'
16785 if test x"$ac_file" != x-; then
16786 configure_input="$ac_file. $configure_input"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16788 $as_echo "$as_me: creating $ac_file" >&6;}
16790 # Neutralize special characters interpreted by sed in replacement strings.
16791 case $configure_input in #(
16792 *\&* | *\|* | *\\* )
16793 ac_sed_conf_input=`$as_echo "$configure_input" |
16794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16795 *) ac_sed_conf_input=$configure_input;;
16796 esac
16798 case $ac_tag in
16799 *:-:* | *:-) cat >"$tmp/stdin" \
16800 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16801 esac
16803 esac
16805 ac_dir=`$as_dirname -- "$ac_file" ||
16806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16807 X"$ac_file" : 'X\(//\)[^/]' \| \
16808 X"$ac_file" : 'X\(//\)$' \| \
16809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16810 $as_echo X"$ac_file" |
16811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16812 s//\1/
16815 /^X\(\/\/\)[^/].*/{
16816 s//\1/
16819 /^X\(\/\/\)$/{
16820 s//\1/
16823 /^X\(\/\).*/{
16824 s//\1/
16827 s/.*/./; q'`
16828 as_dir="$ac_dir"; as_fn_mkdir_p
16829 ac_builddir=.
16831 case "$ac_dir" in
16832 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16834 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16835 # A ".." for each directory in $ac_dir_suffix.
16836 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16837 case $ac_top_builddir_sub in
16838 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16839 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16840 esac ;;
16841 esac
16842 ac_abs_top_builddir=$ac_pwd
16843 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16844 # for backward compatibility:
16845 ac_top_builddir=$ac_top_build_prefix
16847 case $srcdir in
16848 .) # We are building in place.
16849 ac_srcdir=.
16850 ac_top_srcdir=$ac_top_builddir_sub
16851 ac_abs_top_srcdir=$ac_pwd ;;
16852 [\\/]* | ?:[\\/]* ) # Absolute name.
16853 ac_srcdir=$srcdir$ac_dir_suffix;
16854 ac_top_srcdir=$srcdir
16855 ac_abs_top_srcdir=$srcdir ;;
16856 *) # Relative name.
16857 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16858 ac_top_srcdir=$ac_top_build_prefix$srcdir
16859 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16860 esac
16861 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16864 case $ac_mode in
16867 # CONFIG_FILE
16870 case $INSTALL in
16871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16872 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16873 esac
16874 ac_MKDIR_P=$MKDIR_P
16875 case $MKDIR_P in
16876 [\\/$]* | ?:[\\/]* ) ;;
16877 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16878 esac
16879 _ACEOF
16881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16882 # If the template does not know about datarootdir, expand it.
16883 # FIXME: This hack should be removed a few years after 2.60.
16884 ac_datarootdir_hack=; ac_datarootdir_seen=
16885 ac_sed_dataroot='
16886 /datarootdir/ {
16890 /@datadir@/p
16891 /@docdir@/p
16892 /@infodir@/p
16893 /@localedir@/p
16894 /@mandir@/p'
16895 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16896 *datarootdir*) ac_datarootdir_seen=yes;;
16897 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16899 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16900 _ACEOF
16901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902 ac_datarootdir_hack='
16903 s&@datadir@&$datadir&g
16904 s&@docdir@&$docdir&g
16905 s&@infodir@&$infodir&g
16906 s&@localedir@&$localedir&g
16907 s&@mandir@&$mandir&g
16908 s&\\\${datarootdir}&$datarootdir&g' ;;
16909 esac
16910 _ACEOF
16912 # Neutralize VPATH when `$srcdir' = `.'.
16913 # Shell code in configure.ac might set extrasub.
16914 # FIXME: do we really want to maintain this feature?
16915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16916 ac_sed_extra="$ac_vpsub
16917 $extrasub
16918 _ACEOF
16919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16922 s|@configure_input@|$ac_sed_conf_input|;t t
16923 s&@top_builddir@&$ac_top_builddir_sub&;t t
16924 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16925 s&@srcdir@&$ac_srcdir&;t t
16926 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16927 s&@top_srcdir@&$ac_top_srcdir&;t t
16928 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16929 s&@builddir@&$ac_builddir&;t t
16930 s&@abs_builddir@&$ac_abs_builddir&;t t
16931 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16932 s&@INSTALL@&$ac_INSTALL&;t t
16933 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16934 $ac_datarootdir_hack
16936 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16937 || as_fn_error "could not create $ac_file" "$LINENO" 5
16939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16940 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16943 which seems to be undefined. Please make sure it is defined." >&5
16944 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16945 which seems to be undefined. Please make sure it is defined." >&2;}
16947 rm -f "$tmp/stdin"
16948 case $ac_file in
16949 -) cat "$tmp/out" && rm -f "$tmp/out";;
16950 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16951 esac \
16952 || as_fn_error "could not create $ac_file" "$LINENO" 5
16956 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16957 $as_echo "$as_me: executing $ac_file commands" >&6;}
16959 esac
16962 case $ac_file$ac_mode in
16963 "default-1":C)
16964 # Only add multilib support code if we just rebuilt the top-level
16965 # Makefile.
16966 case " $CONFIG_FILES " in
16967 *" Makefile "*)
16968 ac_file=Makefile . ${multi_basedir}/config-ml.in
16970 esac ;;
16971 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16972 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16973 # are listed without --file. Let's play safe and only enable the eval
16974 # if we detect the quoting.
16975 case $CONFIG_FILES in
16976 *\'*) eval set x "$CONFIG_FILES" ;;
16977 *) set x $CONFIG_FILES ;;
16978 esac
16979 shift
16980 for mf
16982 # Strip MF so we end up with the name of the file.
16983 mf=`echo "$mf" | sed -e 's/:.*$//'`
16984 # Check whether this is an Automake generated Makefile or not.
16985 # We used to match only the files named `Makefile.in', but
16986 # some people rename them; so instead we look at the file content.
16987 # Grep'ing the first line is not enough: some people post-process
16988 # each Makefile.in and add a new line on top of each file to say so.
16989 # Grep'ing the whole file is not good either: AIX grep has a line
16990 # limit of 2048, but all sed's we know have understand at least 4000.
16991 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16992 dirpart=`$as_dirname -- "$mf" ||
16993 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16994 X"$mf" : 'X\(//\)[^/]' \| \
16995 X"$mf" : 'X\(//\)$' \| \
16996 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16997 $as_echo X"$mf" |
16998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16999 s//\1/
17002 /^X\(\/\/\)[^/].*/{
17003 s//\1/
17006 /^X\(\/\/\)$/{
17007 s//\1/
17010 /^X\(\/\).*/{
17011 s//\1/
17014 s/.*/./; q'`
17015 else
17016 continue
17018 # Extract the definition of DEPDIR, am__include, and am__quote
17019 # from the Makefile without running `make'.
17020 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17021 test -z "$DEPDIR" && continue
17022 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17023 test -z "am__include" && continue
17024 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17025 # When using ansi2knr, U may be empty or an underscore; expand it
17026 U=`sed -n 's/^U = //p' < "$mf"`
17027 # Find all dependency output files, they are included files with
17028 # $(DEPDIR) in their names. We invoke sed twice because it is the
17029 # simplest approach to changing $(DEPDIR) to its actual value in the
17030 # expansion.
17031 for file in `sed -n "
17032 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17033 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17034 # Make sure the directory exists.
17035 test -f "$dirpart/$file" && continue
17036 fdir=`$as_dirname -- "$file" ||
17037 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17038 X"$file" : 'X\(//\)[^/]' \| \
17039 X"$file" : 'X\(//\)$' \| \
17040 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17041 $as_echo X"$file" |
17042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17043 s//\1/
17046 /^X\(\/\/\)[^/].*/{
17047 s//\1/
17050 /^X\(\/\/\)$/{
17051 s//\1/
17054 /^X\(\/\).*/{
17055 s//\1/
17058 s/.*/./; q'`
17059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17060 # echo "creating $dirpart/$file"
17061 echo '# dummy' > "$dirpart/$file"
17062 done
17063 done
17066 "libtool":C)
17068 # See if we are running on zsh, and set the options which allow our
17069 # commands through without removal of \ escapes.
17070 if test -n "${ZSH_VERSION+set}" ; then
17071 setopt NO_GLOB_SUBST
17074 cfgfile="${ofile}T"
17075 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17076 $RM "$cfgfile"
17078 cat <<_LT_EOF >> "$cfgfile"
17079 #! $SHELL
17081 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17082 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17083 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17084 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17086 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17087 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17088 # Written by Gordon Matzigkeit, 1996
17090 # This file is part of GNU Libtool.
17092 # GNU Libtool is free software; you can redistribute it and/or
17093 # modify it under the terms of the GNU General Public License as
17094 # published by the Free Software Foundation; either version 2 of
17095 # the License, or (at your option) any later version.
17097 # As a special exception to the GNU General Public License,
17098 # if you distribute this file as part of a program or library that
17099 # is built using GNU Libtool, you may include this file under the
17100 # same distribution terms that you use for the rest of that program.
17102 # GNU Libtool is distributed in the hope that it will be useful,
17103 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17104 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17105 # GNU General Public License for more details.
17107 # You should have received a copy of the GNU General Public License
17108 # along with GNU Libtool; see the file COPYING. If not, a copy
17109 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17110 # obtained by writing to the Free Software Foundation, Inc.,
17111 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17114 # The names of the tagged configurations supported by this script.
17115 available_tags="CXX "
17117 # ### BEGIN LIBTOOL CONFIG
17119 # Which release of libtool.m4 was used?
17120 macro_version=$macro_version
17121 macro_revision=$macro_revision
17123 # Whether or not to build shared libraries.
17124 build_libtool_libs=$enable_shared
17126 # Whether or not to build static libraries.
17127 build_old_libs=$enable_static
17129 # What type of objects to build.
17130 pic_mode=$pic_mode
17132 # Whether or not to optimize for fast installation.
17133 fast_install=$enable_fast_install
17135 # Shell to use when invoking shell scripts.
17136 SHELL=$lt_SHELL
17138 # An echo program that protects backslashes.
17139 ECHO=$lt_ECHO
17141 # The host system.
17142 host_alias=$host_alias
17143 host=$host
17144 host_os=$host_os
17146 # The build system.
17147 build_alias=$build_alias
17148 build=$build
17149 build_os=$build_os
17151 # A sed program that does not truncate output.
17152 SED=$lt_SED
17154 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17155 Xsed="\$SED -e 1s/^X//"
17157 # A grep program that handles long lines.
17158 GREP=$lt_GREP
17160 # An ERE matcher.
17161 EGREP=$lt_EGREP
17163 # A literal string matcher.
17164 FGREP=$lt_FGREP
17166 # A BSD- or MS-compatible name lister.
17167 NM=$lt_NM
17169 # Whether we need soft or hard links.
17170 LN_S=$lt_LN_S
17172 # What is the maximum length of a command?
17173 max_cmd_len=$max_cmd_len
17175 # Object file suffix (normally "o").
17176 objext=$ac_objext
17178 # Executable file suffix (normally "").
17179 exeext=$exeext
17181 # whether the shell understands "unset".
17182 lt_unset=$lt_unset
17184 # turn spaces into newlines.
17185 SP2NL=$lt_lt_SP2NL
17187 # turn newlines into spaces.
17188 NL2SP=$lt_lt_NL2SP
17190 # An object symbol dumper.
17191 OBJDUMP=$lt_OBJDUMP
17193 # Method to check whether dependent libraries are shared objects.
17194 deplibs_check_method=$lt_deplibs_check_method
17196 # Command to use when deplibs_check_method == "file_magic".
17197 file_magic_cmd=$lt_file_magic_cmd
17199 # The archiver.
17200 AR=$lt_AR
17201 AR_FLAGS=$lt_AR_FLAGS
17203 # A symbol stripping program.
17204 STRIP=$lt_STRIP
17206 # Commands used to install an old-style archive.
17207 RANLIB=$lt_RANLIB
17208 old_postinstall_cmds=$lt_old_postinstall_cmds
17209 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17211 # Whether to use a lock for old archive extraction.
17212 lock_old_archive_extraction=$lock_old_archive_extraction
17214 # A C compiler.
17215 LTCC=$lt_CC
17217 # LTCC compiler flags.
17218 LTCFLAGS=$lt_CFLAGS
17220 # Take the output of nm and produce a listing of raw symbols and C names.
17221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17223 # Transform the output of nm in a proper C declaration.
17224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17226 # Transform the output of nm in a C name address pair.
17227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17229 # Transform the output of nm in a C name address pair when lib prefix is needed.
17230 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17232 # The name of the directory that contains temporary libtool files.
17233 objdir=$objdir
17235 # Used to examine libraries when file_magic_cmd begins with "file".
17236 MAGIC_CMD=$MAGIC_CMD
17238 # Must we lock files when doing compilation?
17239 need_locks=$lt_need_locks
17241 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17242 DSYMUTIL=$lt_DSYMUTIL
17244 # Tool to change global to local symbols on Mac OS X.
17245 NMEDIT=$lt_NMEDIT
17247 # Tool to manipulate fat objects and archives on Mac OS X.
17248 LIPO=$lt_LIPO
17250 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17251 OTOOL=$lt_OTOOL
17253 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17254 OTOOL64=$lt_OTOOL64
17256 # Old archive suffix (normally "a").
17257 libext=$libext
17259 # Shared library suffix (normally ".so").
17260 shrext_cmds=$lt_shrext_cmds
17262 # The commands to extract the exported symbol list from a shared archive.
17263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17265 # Variables whose values should be saved in libtool wrapper scripts and
17266 # restored at link time.
17267 variables_saved_for_relink=$lt_variables_saved_for_relink
17269 # Do we need the "lib" prefix for modules?
17270 need_lib_prefix=$need_lib_prefix
17272 # Do we need a version for libraries?
17273 need_version=$need_version
17275 # Library versioning type.
17276 version_type=$version_type
17278 # Shared library runtime path variable.
17279 runpath_var=$runpath_var
17281 # Shared library path variable.
17282 shlibpath_var=$shlibpath_var
17284 # Is shlibpath searched before the hard-coded library search path?
17285 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17287 # Format of library name prefix.
17288 libname_spec=$lt_libname_spec
17290 # List of archive names. First name is the real one, the rest are links.
17291 # The last name is the one that the linker finds with -lNAME
17292 library_names_spec=$lt_library_names_spec
17294 # The coded name of the library, if different from the real name.
17295 soname_spec=$lt_soname_spec
17297 # Permission mode override for installation of shared libraries.
17298 install_override_mode=$lt_install_override_mode
17300 # Command to use after installation of a shared archive.
17301 postinstall_cmds=$lt_postinstall_cmds
17303 # Command to use after uninstallation of a shared archive.
17304 postuninstall_cmds=$lt_postuninstall_cmds
17306 # Commands used to finish a libtool library installation in a directory.
17307 finish_cmds=$lt_finish_cmds
17309 # As "finish_cmds", except a single script fragment to be evaled but
17310 # not shown.
17311 finish_eval=$lt_finish_eval
17313 # Whether we should hardcode library paths into libraries.
17314 hardcode_into_libs=$hardcode_into_libs
17316 # Compile-time system search path for libraries.
17317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17319 # Run-time system search path for libraries.
17320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17322 # Whether dlopen is supported.
17323 dlopen_support=$enable_dlopen
17325 # Whether dlopen of programs is supported.
17326 dlopen_self=$enable_dlopen_self
17328 # Whether dlopen of statically linked programs is supported.
17329 dlopen_self_static=$enable_dlopen_self_static
17331 # Commands to strip libraries.
17332 old_striplib=$lt_old_striplib
17333 striplib=$lt_striplib
17336 # The linker used to build libraries.
17337 LD=$lt_LD
17339 # How to create reloadable object files.
17340 reload_flag=$lt_reload_flag
17341 reload_cmds=$lt_reload_cmds
17343 # Commands used to build an old-style archive.
17344 old_archive_cmds=$lt_old_archive_cmds
17346 # A language specific compiler.
17347 CC=$lt_compiler
17349 # Is the compiler the GNU compiler?
17350 with_gcc=$GCC
17352 # Compiler flag to turn off builtin functions.
17353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17355 # How to pass a linker flag through the compiler.
17356 wl=$lt_lt_prog_compiler_wl
17358 # Additional compiler flags for building library objects.
17359 pic_flag=$lt_lt_prog_compiler_pic
17361 # Compiler flag to prevent dynamic linking.
17362 link_static_flag=$lt_lt_prog_compiler_static
17364 # Does compiler simultaneously support -c and -o options?
17365 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17367 # Whether or not to add -lc for building shared libraries.
17368 build_libtool_need_lc=$archive_cmds_need_lc
17370 # Whether or not to disallow shared libs when runtime libs are static.
17371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17373 # Compiler flag to allow reflexive dlopens.
17374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17376 # Compiler flag to generate shared objects directly from archives.
17377 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17379 # Whether the compiler copes with passing no objects directly.
17380 compiler_needs_object=$lt_compiler_needs_object
17382 # Create an old-style archive from a shared archive.
17383 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17385 # Create a temporary old-style archive to link instead of a shared archive.
17386 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17388 # Commands used to build a shared archive.
17389 archive_cmds=$lt_archive_cmds
17390 archive_expsym_cmds=$lt_archive_expsym_cmds
17392 # Commands used to build a loadable module if different from building
17393 # a shared archive.
17394 module_cmds=$lt_module_cmds
17395 module_expsym_cmds=$lt_module_expsym_cmds
17397 # Whether we are building with GNU ld or not.
17398 with_gnu_ld=$lt_with_gnu_ld
17400 # Flag that allows shared libraries with undefined symbols to be built.
17401 allow_undefined_flag=$lt_allow_undefined_flag
17403 # Flag that enforces no undefined symbols.
17404 no_undefined_flag=$lt_no_undefined_flag
17406 # Flag to hardcode \$libdir into a binary during linking.
17407 # This must work even if \$libdir does not exist
17408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17410 # If ld is used when linking, flag to hardcode \$libdir into a binary
17411 # during linking. This must work even if \$libdir does not exist.
17412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17414 # Whether we need a single "-rpath" flag with a separated argument.
17415 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17418 # DIR into the resulting binary.
17419 hardcode_direct=$hardcode_direct
17421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17422 # DIR into the resulting binary and the resulting library dependency is
17423 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17424 # library is relocated.
17425 hardcode_direct_absolute=$hardcode_direct_absolute
17427 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17428 # into the resulting binary.
17429 hardcode_minus_L=$hardcode_minus_L
17431 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17432 # into the resulting binary.
17433 hardcode_shlibpath_var=$hardcode_shlibpath_var
17435 # Set to "yes" if building a shared library automatically hardcodes DIR
17436 # into the library and all subsequent libraries and executables linked
17437 # against it.
17438 hardcode_automatic=$hardcode_automatic
17440 # Set to yes if linker adds runtime paths of dependent libraries
17441 # to runtime path list.
17442 inherit_rpath=$inherit_rpath
17444 # Whether libtool must link a program against all its dependency libraries.
17445 link_all_deplibs=$link_all_deplibs
17447 # Fix the shell variable \$srcfile for the compiler.
17448 fix_srcfile_path=$lt_fix_srcfile_path
17450 # Set to "yes" if exported symbols are required.
17451 always_export_symbols=$always_export_symbols
17453 # The commands to list exported symbols.
17454 export_symbols_cmds=$lt_export_symbols_cmds
17456 # Symbols that should not be listed in the preloaded symbols.
17457 exclude_expsyms=$lt_exclude_expsyms
17459 # Symbols that must always be exported.
17460 include_expsyms=$lt_include_expsyms
17462 # Commands necessary for linking programs (against libraries) with templates.
17463 prelink_cmds=$lt_prelink_cmds
17465 # Specify filename containing input files.
17466 file_list_spec=$lt_file_list_spec
17468 # How to hardcode a shared library path into an executable.
17469 hardcode_action=$hardcode_action
17471 # The directories searched by this compiler when creating a shared library.
17472 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17474 # Dependencies to place before and after the objects being linked to
17475 # create a shared library.
17476 predep_objects=$lt_predep_objects
17477 postdep_objects=$lt_postdep_objects
17478 predeps=$lt_predeps
17479 postdeps=$lt_postdeps
17481 # The library search path used internally by the compiler when linking
17482 # a shared library.
17483 compiler_lib_search_path=$lt_compiler_lib_search_path
17485 # ### END LIBTOOL CONFIG
17487 _LT_EOF
17489 case $host_os in
17490 aix3*)
17491 cat <<\_LT_EOF >> "$cfgfile"
17492 # AIX sometimes has problems with the GCC collect2 program. For some
17493 # reason, if we set the COLLECT_NAMES environment variable, the problems
17494 # vanish in a puff of smoke.
17495 if test "X${COLLECT_NAMES+set}" != Xset; then
17496 COLLECT_NAMES=
17497 export COLLECT_NAMES
17499 _LT_EOF
17501 esac
17504 ltmain="$ac_aux_dir/ltmain.sh"
17507 # We use sed instead of cat because bash on DJGPP gets confused if
17508 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17509 # text mode, it properly converts lines to CR/LF. This bash problem
17510 # is reportedly fixed, but why not run on old versions too?
17511 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17512 || (rm -f "$cfgfile"; exit 1)
17514 case $xsi_shell in
17515 yes)
17516 cat << \_LT_EOF >> "$cfgfile"
17518 # func_dirname file append nondir_replacement
17519 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17520 # otherwise set result to NONDIR_REPLACEMENT.
17521 func_dirname ()
17523 case ${1} in
17524 */*) func_dirname_result="${1%/*}${2}" ;;
17525 * ) func_dirname_result="${3}" ;;
17526 esac
17529 # func_basename file
17530 func_basename ()
17532 func_basename_result="${1##*/}"
17535 # func_dirname_and_basename file append nondir_replacement
17536 # perform func_basename and func_dirname in a single function
17537 # call:
17538 # dirname: Compute the dirname of FILE. If nonempty,
17539 # add APPEND to the result, otherwise set result
17540 # to NONDIR_REPLACEMENT.
17541 # value returned in "$func_dirname_result"
17542 # basename: Compute filename of FILE.
17543 # value retuned in "$func_basename_result"
17544 # Implementation must be kept synchronized with func_dirname
17545 # and func_basename. For efficiency, we do not delegate to
17546 # those functions but instead duplicate the functionality here.
17547 func_dirname_and_basename ()
17549 case ${1} in
17550 */*) func_dirname_result="${1%/*}${2}" ;;
17551 * ) func_dirname_result="${3}" ;;
17552 esac
17553 func_basename_result="${1##*/}"
17556 # func_stripname prefix suffix name
17557 # strip PREFIX and SUFFIX off of NAME.
17558 # PREFIX and SUFFIX must not contain globbing or regex special
17559 # characters, hashes, percent signs, but SUFFIX may contain a leading
17560 # dot (in which case that matches only a dot).
17561 func_stripname ()
17563 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17564 # positional parameters, so assign one to ordinary parameter first.
17565 func_stripname_result=${3}
17566 func_stripname_result=${func_stripname_result#"${1}"}
17567 func_stripname_result=${func_stripname_result%"${2}"}
17570 # func_opt_split
17571 func_opt_split ()
17573 func_opt_split_opt=${1%%=*}
17574 func_opt_split_arg=${1#*=}
17577 # func_lo2o object
17578 func_lo2o ()
17580 case ${1} in
17581 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17582 *) func_lo2o_result=${1} ;;
17583 esac
17586 # func_xform libobj-or-source
17587 func_xform ()
17589 func_xform_result=${1%.*}.lo
17592 # func_arith arithmetic-term...
17593 func_arith ()
17595 func_arith_result=$(( $* ))
17598 # func_len string
17599 # STRING may not start with a hyphen.
17600 func_len ()
17602 func_len_result=${#1}
17605 _LT_EOF
17607 *) # Bourne compatible functions.
17608 cat << \_LT_EOF >> "$cfgfile"
17610 # func_dirname file append nondir_replacement
17611 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17612 # otherwise set result to NONDIR_REPLACEMENT.
17613 func_dirname ()
17615 # Extract subdirectory from the argument.
17616 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17617 if test "X$func_dirname_result" = "X${1}"; then
17618 func_dirname_result="${3}"
17619 else
17620 func_dirname_result="$func_dirname_result${2}"
17624 # func_basename file
17625 func_basename ()
17627 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17631 # func_stripname prefix suffix name
17632 # strip PREFIX and SUFFIX off of NAME.
17633 # PREFIX and SUFFIX must not contain globbing or regex special
17634 # characters, hashes, percent signs, but SUFFIX may contain a leading
17635 # dot (in which case that matches only a dot).
17636 # func_strip_suffix prefix name
17637 func_stripname ()
17639 case ${2} in
17640 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17641 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17642 esac
17645 # sed scripts:
17646 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17647 my_sed_long_arg='1s/^-[^=]*=//'
17649 # func_opt_split
17650 func_opt_split ()
17652 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17653 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17656 # func_lo2o object
17657 func_lo2o ()
17659 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17662 # func_xform libobj-or-source
17663 func_xform ()
17665 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17668 # func_arith arithmetic-term...
17669 func_arith ()
17671 func_arith_result=`expr "$@"`
17674 # func_len string
17675 # STRING may not start with a hyphen.
17676 func_len ()
17678 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17681 _LT_EOF
17682 esac
17684 case $lt_shell_append in
17685 yes)
17686 cat << \_LT_EOF >> "$cfgfile"
17688 # func_append var value
17689 # Append VALUE to the end of shell variable VAR.
17690 func_append ()
17692 eval "$1+=\$2"
17694 _LT_EOF
17697 cat << \_LT_EOF >> "$cfgfile"
17699 # func_append var value
17700 # Append VALUE to the end of shell variable VAR.
17701 func_append ()
17703 eval "$1=\$$1\$2"
17706 _LT_EOF
17708 esac
17711 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17712 || (rm -f "$cfgfile"; exit 1)
17714 mv -f "$cfgfile" "$ofile" ||
17715 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17716 chmod +x "$ofile"
17719 cat <<_LT_EOF >> "$ofile"
17721 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17723 # The linker used to build libraries.
17724 LD=$lt_LD_CXX
17726 # How to create reloadable object files.
17727 reload_flag=$lt_reload_flag_CXX
17728 reload_cmds=$lt_reload_cmds_CXX
17730 # Commands used to build an old-style archive.
17731 old_archive_cmds=$lt_old_archive_cmds_CXX
17733 # A language specific compiler.
17734 CC=$lt_compiler_CXX
17736 # Is the compiler the GNU compiler?
17737 with_gcc=$GCC_CXX
17739 # Compiler flag to turn off builtin functions.
17740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17742 # How to pass a linker flag through the compiler.
17743 wl=$lt_lt_prog_compiler_wl_CXX
17745 # Additional compiler flags for building library objects.
17746 pic_flag=$lt_lt_prog_compiler_pic_CXX
17748 # Compiler flag to prevent dynamic linking.
17749 link_static_flag=$lt_lt_prog_compiler_static_CXX
17751 # Does compiler simultaneously support -c and -o options?
17752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17754 # Whether or not to add -lc for building shared libraries.
17755 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17757 # Whether or not to disallow shared libs when runtime libs are static.
17758 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17760 # Compiler flag to allow reflexive dlopens.
17761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17763 # Compiler flag to generate shared objects directly from archives.
17764 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17766 # Whether the compiler copes with passing no objects directly.
17767 compiler_needs_object=$lt_compiler_needs_object_CXX
17769 # Create an old-style archive from a shared archive.
17770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17772 # Create a temporary old-style archive to link instead of a shared archive.
17773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17775 # Commands used to build a shared archive.
17776 archive_cmds=$lt_archive_cmds_CXX
17777 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17779 # Commands used to build a loadable module if different from building
17780 # a shared archive.
17781 module_cmds=$lt_module_cmds_CXX
17782 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17784 # Whether we are building with GNU ld or not.
17785 with_gnu_ld=$lt_with_gnu_ld_CXX
17787 # Flag that allows shared libraries with undefined symbols to be built.
17788 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17790 # Flag that enforces no undefined symbols.
17791 no_undefined_flag=$lt_no_undefined_flag_CXX
17793 # Flag to hardcode \$libdir into a binary during linking.
17794 # This must work even if \$libdir does not exist
17795 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17797 # If ld is used when linking, flag to hardcode \$libdir into a binary
17798 # during linking. This must work even if \$libdir does not exist.
17799 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17801 # Whether we need a single "-rpath" flag with a separated argument.
17802 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17804 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17805 # DIR into the resulting binary.
17806 hardcode_direct=$hardcode_direct_CXX
17808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17809 # DIR into the resulting binary and the resulting library dependency is
17810 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17811 # library is relocated.
17812 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17814 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17815 # into the resulting binary.
17816 hardcode_minus_L=$hardcode_minus_L_CXX
17818 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17819 # into the resulting binary.
17820 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17822 # Set to "yes" if building a shared library automatically hardcodes DIR
17823 # into the library and all subsequent libraries and executables linked
17824 # against it.
17825 hardcode_automatic=$hardcode_automatic_CXX
17827 # Set to yes if linker adds runtime paths of dependent libraries
17828 # to runtime path list.
17829 inherit_rpath=$inherit_rpath_CXX
17831 # Whether libtool must link a program against all its dependency libraries.
17832 link_all_deplibs=$link_all_deplibs_CXX
17834 # Fix the shell variable \$srcfile for the compiler.
17835 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17837 # Set to "yes" if exported symbols are required.
17838 always_export_symbols=$always_export_symbols_CXX
17840 # The commands to list exported symbols.
17841 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17843 # Symbols that should not be listed in the preloaded symbols.
17844 exclude_expsyms=$lt_exclude_expsyms_CXX
17846 # Symbols that must always be exported.
17847 include_expsyms=$lt_include_expsyms_CXX
17849 # Commands necessary for linking programs (against libraries) with templates.
17850 prelink_cmds=$lt_prelink_cmds_CXX
17852 # Specify filename containing input files.
17853 file_list_spec=$lt_file_list_spec_CXX
17855 # How to hardcode a shared library path into an executable.
17856 hardcode_action=$hardcode_action_CXX
17858 # The directories searched by this compiler when creating a shared library.
17859 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17861 # Dependencies to place before and after the objects being linked to
17862 # create a shared library.
17863 predep_objects=$lt_predep_objects_CXX
17864 postdep_objects=$lt_postdep_objects_CXX
17865 predeps=$lt_predeps_CXX
17866 postdeps=$lt_postdeps_CXX
17868 # The library search path used internally by the compiler when linking
17869 # a shared library.
17870 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17872 # ### END LIBTOOL TAG CONFIG: CXX
17873 _LT_EOF
17877 esac
17878 done # for ac_tag
17881 as_fn_exit 0
17882 _ACEOF
17883 ac_clean_files=$ac_clean_files_save
17885 test $ac_write_fail = 0 ||
17886 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17889 # configure is writing to config.log, and then calls config.status.
17890 # config.status does its own redirection, appending to config.log.
17891 # Unfortunately, on DOS this fails, as config.log is still kept open
17892 # by configure, so config.status won't be able to write to it; its
17893 # output is simply discarded. So we exec the FD to /dev/null,
17894 # effectively closing config.log, so it can be properly (re)opened and
17895 # appended to by config.status. When coming back to configure, we
17896 # need to make the FD available again.
17897 if test "$no_create" != yes; then
17898 ac_cs_success=:
17899 ac_config_status_args=
17900 test "$silent" = yes &&
17901 ac_config_status_args="$ac_config_status_args --quiet"
17902 exec 5>/dev/null
17903 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17904 exec 5>>config.log
17905 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17906 # would make configure fail if this is the last instruction.
17907 $ac_cs_success || as_fn_exit $?
17909 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17911 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}